@loopstack/loopstack-studio 0.25.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1691) hide show
  1. package/dist/_virtual/rolldown_runtime.js +20 -0
  2. package/dist/api/auth.js +2 -4
  3. package/dist/api/client.js +7 -9
  4. package/dist/api/config.js +2 -4
  5. package/dist/api/dashboard.js +2 -4
  6. package/dist/api/documents.js +2 -4
  7. package/dist/api/environments.js +4 -0
  8. package/dist/api/index.js +23 -21
  9. package/dist/api/processor.js +2 -4
  10. package/dist/api/secrets.js +2 -4
  11. package/dist/api/workflows.js +2 -4
  12. package/dist/api/workspaces.js +2 -4
  13. package/dist/app/EnvironmentEmbedRoot.js +41 -24
  14. package/dist/components/ai-elements/code-block.js +71 -53
  15. package/dist/components/ai-elements/message.js +82 -41
  16. package/dist/components/ai-elements/prompt-input.js +253 -162
  17. package/dist/components/ai-elements/reasoning.js +116 -78
  18. package/dist/components/ai-elements/shimmer.js +35 -23
  19. package/dist/components/ai-elements/sources.js +58 -29
  20. package/dist/components/data-table/ConfirmDialog.js +30 -14
  21. package/dist/components/data-table/DataList.js +200 -138
  22. package/dist/components/data-table/DataTable.js +236 -168
  23. package/dist/components/data-table/DataTableBatchAction.js +27 -18
  24. package/dist/components/data-table/DataTableFilters.js +78 -53
  25. package/dist/components/data-table/DataTablePagination.js +104 -72
  26. package/dist/components/data-table/DataTableToolbar.js +65 -53
  27. package/dist/components/dynamic-form/ArrayController.js +103 -85
  28. package/dist/components/dynamic-form/CodeContent.js +36 -28
  29. package/dist/components/dynamic-form/Form.js +56 -43
  30. package/dist/components/dynamic-form/FormBody.js +10 -12
  31. package/dist/components/dynamic-form/FormElement.js +41 -31
  32. package/dist/components/dynamic-form/FormElementHeader.js +20 -12
  33. package/dist/components/dynamic-form/InputController.js +38 -36
  34. package/dist/components/dynamic-form/MarkdownContent.js +74 -53
  35. package/dist/components/dynamic-form/MermaidDiagram.js +24 -22
  36. package/dist/components/dynamic-form/ObjectController.js +32 -24
  37. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -35
  38. package/dist/components/dynamic-form/fields/CheckboxField.js +48 -39
  39. package/dist/components/dynamic-form/fields/CodeViewField.js +50 -42
  40. package/dist/components/dynamic-form/fields/InputField.js +90 -62
  41. package/dist/components/dynamic-form/fields/MarkdownViewField.js +19 -16
  42. package/dist/components/dynamic-form/fields/RadioField.js +62 -46
  43. package/dist/components/dynamic-form/fields/SelectField.js +58 -40
  44. package/dist/components/dynamic-form/fields/SliderField.js +100 -94
  45. package/dist/components/dynamic-form/fields/SwitchField.js +61 -42
  46. package/dist/components/dynamic-form/fields/TextareaField.js +72 -53
  47. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +2 -4
  48. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +5 -6
  49. package/dist/components/dynamic-form/hooks/useFieldConfig.js +20 -19
  50. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +2 -4
  51. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +2 -4
  52. package/dist/components/feedback/ErrorAlert.js +17 -11
  53. package/dist/components/feedback/ErrorBoundary.js +14 -16
  54. package/dist/components/feedback/ErrorSnackbar.js +30 -13
  55. package/dist/components/feedback/LoadingCentered.js +28 -15
  56. package/dist/components/feedback/Snackbar.js +44 -43
  57. package/dist/components/feedback/index.js +5 -5
  58. package/dist/components/index.js +47 -47
  59. package/dist/components/layout/MainLayout.js +25 -17
  60. package/dist/components/layout/StudioSidebar.js +203 -140
  61. package/dist/components/lists/CustomListView.js +74 -49
  62. package/dist/components/lists/ListView.js +102 -66
  63. package/dist/components/loopstack-elements/link.js +104 -65
  64. package/dist/components/loopstack-elements/tool.js +142 -70
  65. package/dist/components/messages/CompletionMessagePaper.js +85 -53
  66. package/dist/components/page/PageBreadcrumbs.js +83 -64
  67. package/dist/components/ui/DiscordLogo.js +22 -16
  68. package/dist/components/ui/GoogleLogo.js +44 -40
  69. package/dist/components/ui/accordion.js +52 -31
  70. package/dist/components/ui/alert-dialog.js +109 -59
  71. package/dist/components/ui/alert.js +36 -22
  72. package/dist/components/ui/avatar.js +35 -21
  73. package/dist/components/ui/badge.js +17 -13
  74. package/dist/components/ui/breadcrumb.js +82 -46
  75. package/dist/components/ui/button-group.js +5 -5
  76. package/dist/components/ui/button.js +21 -17
  77. package/dist/components/ui/card.js +74 -40
  78. package/dist/components/ui/checkbox.js +23 -17
  79. package/dist/components/ui/collapsible.js +25 -17
  80. package/dist/components/ui/command.js +2 -1
  81. package/dist/components/ui/context-menu.js +52 -32
  82. package/dist/components/ui/dialog.js +107 -62
  83. package/dist/components/ui/drawer.js +99 -54
  84. package/dist/components/ui/dropdown-menu.js +159 -91
  85. package/dist/components/ui/hover-card.js +2 -1
  86. package/dist/components/ui/input-group.js +56 -36
  87. package/dist/components/ui/input.js +15 -11
  88. package/dist/components/ui/label.js +15 -11
  89. package/dist/components/ui/popover.js +38 -25
  90. package/dist/components/ui/radio-group.js +33 -22
  91. package/dist/components/ui/scroll-area.js +43 -28
  92. package/dist/components/ui/select.js +134 -73
  93. package/dist/components/ui/separator.js +17 -13
  94. package/dist/components/ui/sheet.js +105 -60
  95. package/dist/components/ui/sidebar.js +451 -269
  96. package/dist/components/ui/skeleton.js +14 -10
  97. package/dist/components/ui/slider.js +41 -32
  98. package/dist/components/ui/switch.js +21 -15
  99. package/dist/components/ui/table.js +85 -46
  100. package/dist/components/ui/tabs.js +45 -26
  101. package/dist/components/ui/textarea.js +14 -10
  102. package/dist/components/ui/tooltip.js +41 -26
  103. package/dist/components/ui-widgets/UiActions.js +37 -30
  104. package/dist/components/ui-widgets/UiWidget.js +46 -34
  105. package/dist/components/ui-widgets/widgets/AiPromptInput.js +42 -28
  106. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +21 -16
  107. package/dist/components/ui-widgets/widgets/SandboxRun.js +28 -19
  108. package/dist/components/ui-widgets/widgets/SubmitButton.js +20 -15
  109. package/dist/events/api-client-events.js +2 -4
  110. package/dist/events/sse-client-events.js +2 -4
  111. package/dist/features/code-explorer/CodeExplorer.js +2 -1
  112. package/dist/features/code-explorer/components/CodeExplorerTree.js +3 -2
  113. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +29 -31
  114. package/dist/features/code-explorer/components/FileContentViewer.js +148 -108
  115. package/dist/features/code-explorer/components/FileTabsBar.js +2 -1
  116. package/dist/features/code-explorer/components/FileTabsBarBase.js +169 -134
  117. package/dist/features/code-explorer/index.js +1 -1
  118. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
  119. package/dist/features/code-explorer/utils/fileIcons.js +39 -41
  120. package/dist/features/dashboard/Dashboard.js +121 -79
  121. package/dist/features/dashboard/RunItem.js +70 -50
  122. package/dist/features/dashboard/RunList.js +28 -17
  123. package/dist/features/debug/components/ConfigFlowViewer.js +67 -49
  124. package/dist/features/debug/components/WorkflowDebugHeader.js +46 -30
  125. package/dist/features/debug/components/WorkflowDebugLegend.js +68 -56
  126. package/dist/features/debug/components/WorkflowFlowViewer.js +96 -76
  127. package/dist/features/debug/components/workflow-flow/StateNode.js +102 -73
  128. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +40 -35
  129. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +94 -61
  130. package/dist/features/debug/index.js +3 -3
  131. package/dist/features/debug/lib/edge-paths.js +31 -33
  132. package/dist/features/debug/lib/flow-utils.js +145 -147
  133. package/dist/features/documents/DocumentRenderer.js +73 -68
  134. package/dist/features/documents/components/DocumentItem.js +24 -21
  135. package/dist/features/documents/components/DocumentList.js +45 -39
  136. package/dist/features/documents/components/DocumentMetadataPills.js +59 -44
  137. package/dist/features/documents/document-details/DocumentDetails.js +413 -298
  138. package/dist/features/documents/document-details/PromptDetails.js +142 -105
  139. package/dist/features/documents/index.js +4 -4
  140. package/dist/features/documents/renderers/AiMessage.js +48 -39
  141. package/dist/features/documents/renderers/AiMessageContent.js +164 -108
  142. package/dist/features/documents/renderers/ChoicesRenderer.js +89 -77
  143. package/dist/features/documents/renderers/ClaudeMessage.js +91 -74
  144. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +53 -44
  145. package/dist/features/documents/renderers/DocumentDebugRenderer.js +30 -26
  146. package/dist/features/documents/renderers/DocumentFormRenderer.js +85 -69
  147. package/dist/features/documents/renderers/DocumentMessageRenderer.js +9 -10
  148. package/dist/features/documents/renderers/ErrorMessageRenderer.js +13 -11
  149. package/dist/features/documents/renderers/LinkMessageRenderer.js +14 -15
  150. package/dist/features/documents/renderers/MarkdownMessageRenderer.js +10 -8
  151. package/dist/features/documents/renderers/PlainMessageRenderer.js +9 -7
  152. package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
  153. package/dist/features/documents/renderers/useDocumentTransition.js +33 -30
  154. package/dist/features/feature-registry/FeatureRegistryProvider.js +17 -0
  155. package/dist/features/feature-registry/index.js +1 -0
  156. package/dist/features/file-explorer/api/files.js +7 -0
  157. package/dist/features/file-explorer/components/FileExplorerPanel.js +95 -0
  158. package/dist/features/file-explorer/components/FileTabsBar.js +18 -0
  159. package/dist/features/file-explorer/components/FileTree.js +90 -0
  160. package/dist/features/file-explorer/file-explorer-feature.js +12 -0
  161. package/dist/features/file-explorer/hooks/useFileExplorer.js +44 -0
  162. package/dist/features/file-explorer/index.js +2 -0
  163. package/dist/features/file-explorer/providers/FileExplorerProvider.js +112 -0
  164. package/dist/features/health/LocalHealthCheck.js +53 -54
  165. package/dist/features/health/index.js +1 -1
  166. package/dist/features/oauth/OAuthCallbackPage.js +2 -2
  167. package/dist/features/oauth/OAuthPromptRenderer.js +235 -156
  168. package/dist/features/oauth/index.js +2 -2
  169. package/dist/features/oauth/useOAuthPopup.js +71 -52
  170. package/dist/features/runs/Runs.js +187 -145
  171. package/dist/features/secrets/components/WorkbenchSecretsPanel.js +178 -0
  172. package/dist/features/secrets/index.js +1 -0
  173. package/dist/features/secrets/renderers/SecretInputRenderer.js +87 -0
  174. package/dist/features/secrets/secrets-feature.js +14 -0
  175. package/dist/features/workbench/Workbench.js +50 -74
  176. package/dist/features/workbench/WorkflowItem.js +68 -49
  177. package/dist/features/workbench/WorkflowList.js +127 -49
  178. package/dist/features/workbench/components/NewRunDialog.js +309 -212
  179. package/dist/features/workbench/components/SidebarPanel.js +155 -0
  180. package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +82 -0
  181. package/dist/features/workbench/components/WorkbenchIconSidebar.js +137 -51
  182. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +134 -123
  183. package/dist/features/workbench/components/WorkbenchRunsPanel.js +32 -0
  184. package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
  185. package/dist/features/workbench/components/WorkbenchSidebarShell.js +80 -0
  186. package/dist/features/workbench/components/WorkflowForms.js +23 -17
  187. package/dist/features/workbench/components/WorkflowHistoryItem.js +122 -96
  188. package/dist/features/workbench/components/WorkflowHistoryList.js +54 -31
  189. package/dist/features/workbench/components/buttons/WorkflowButtons.js +99 -70
  190. package/dist/features/workbench/hooks/useAutoScrollBottom.js +25 -21
  191. package/dist/features/workbench/hooks/useScrollToListItem.js +21 -20
  192. package/dist/features/workbench/hooks/useWorkflowData.js +44 -31
  193. package/dist/features/workbench/hooks/useWorkflowListState.js +12 -13
  194. package/dist/features/workbench/index.js +8 -7
  195. package/dist/features/workbench/providers/ScrollProvider.js +19 -15
  196. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -78
  197. package/dist/features/workspaces/Workspaces.js +226 -161
  198. package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
  199. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +75 -60
  200. package/dist/features/workspaces/components/ExecutionTimeline.js +185 -143
  201. package/dist/features/workspaces/components/NewWorkflowRunDialog.js +26 -18
  202. package/dist/features/workspaces/components/WorkflowRunForm.js +133 -85
  203. package/dist/features/workspaces/components/WorkspaceHomePage.js +81 -60
  204. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +69 -52
  205. package/dist/features/workspaces/components/workflow-form/HeaderSection.js +41 -27
  206. package/dist/features/workspaces/components/workflow-form/SelectionView.js +103 -64
  207. package/dist/features/workspaces/index.js +3 -3
  208. package/dist/frontend/studio/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1968 -0
  209. package/dist/hooks/index.js +6 -6
  210. package/dist/hooks/query-keys.js +31 -33
  211. package/dist/hooks/use-mobile.js +11 -12
  212. package/dist/hooks/useApi.js +14 -16
  213. package/dist/hooks/useAuth.js +53 -38
  214. package/dist/hooks/useConfig.js +37 -26
  215. package/dist/hooks/useDashboard.js +15 -12
  216. package/dist/hooks/useDebounce.js +11 -12
  217. package/dist/hooks/useDocuments.js +35 -23
  218. package/dist/hooks/useEnvironmentPreviewUrl.js +13 -0
  219. package/dist/hooks/useEnvironments.js +8 -0
  220. package/dist/hooks/useFiles.js +2 -1
  221. package/dist/hooks/useProcessor.js +17 -14
  222. package/dist/hooks/useSecrets.js +64 -45
  223. package/dist/hooks/useWorkflows.js +163 -109
  224. package/dist/hooks/useWorkspaces.js +125 -83
  225. package/dist/index.d.ts +1395 -0
  226. package/dist/index.js +87 -80
  227. package/dist/lib/requireParam.js +2 -4
  228. package/dist/lib/utils.js +5 -7
  229. package/dist/loopstack-studio.css +1 -1
  230. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +4 -6
  231. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +6 -8
  232. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +17 -19
  233. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +71 -73
  234. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +13 -16
  235. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
  236. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +2 -4
  237. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +34 -36
  238. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +110 -138
  239. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +11 -13
  240. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +3 -5
  241. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +2 -4
  242. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +2 -4
  243. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +6 -8
  244. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +8 -10
  245. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +6 -8
  246. package/dist/node_modules/@iconify/utils/lib/icon/name.js +6 -8
  247. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +2 -4
  248. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +10 -12
  249. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +2 -4
  250. package/dist/node_modules/@iconify/utils/lib/svg/build.js +18 -20
  251. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +6 -8
  252. package/dist/node_modules/@iconify/utils/lib/svg/html.js +2 -4
  253. package/dist/node_modules/@iconify/utils/lib/svg/id.js +8 -10
  254. package/dist/node_modules/@iconify/utils/lib/svg/size.js +5 -7
  255. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +2 -2
  256. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +17 -20
  257. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +17 -20
  258. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +23 -28
  259. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +21 -26
  260. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +17 -20
  261. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +17 -20
  262. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +425 -436
  263. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +17 -20
  264. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +38 -45
  265. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +22 -27
  266. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +2 -2
  267. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +2 -2
  268. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +2 -2
  269. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +2 -2
  270. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +2 -2
  271. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +2 -2
  272. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +2 -2
  273. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +2 -2
  274. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +52 -56
  275. package/dist/node_modules/@shikijs/core/dist/index.js +575 -577
  276. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +157 -159
  277. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -4
  278. package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -3
  279. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -3
  280. package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -3
  281. package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -3
  282. package/dist/node_modules/@shikijs/langs/dist/angular-html.js +13 -15
  283. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -5
  284. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +7 -9
  285. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -5
  286. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +7 -9
  287. package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -5
  288. package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +15 -17
  289. package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -3
  290. package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -3
  291. package/dist/node_modules/@shikijs/langs/dist/apl.js +13 -15
  292. package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -3
  293. package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -3
  294. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -3
  295. package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -3
  296. package/dist/node_modules/@shikijs/langs/dist/astro.js +15 -17
  297. package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -3
  298. package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -3
  299. package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -3
  300. package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -3
  301. package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -3
  302. package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -3
  303. package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -3
  304. package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -3
  305. package/dist/node_modules/@shikijs/langs/dist/blade.js +17 -19
  306. package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -5
  307. package/dist/node_modules/@shikijs/langs/dist/c.js +2 -3
  308. package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -3
  309. package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -3
  310. package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -5
  311. package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -3
  312. package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -3
  313. package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -3
  314. package/dist/node_modules/@shikijs/langs/dist/cobol.js +7 -9
  315. package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -3
  316. package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -3
  317. package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -5
  318. package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -3
  319. package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -3
  320. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +9 -11
  321. package/dist/node_modules/@shikijs/langs/dist/cpp.js +11 -13
  322. package/dist/node_modules/@shikijs/langs/dist/crystal.js +15 -17
  323. package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -3
  324. package/dist/node_modules/@shikijs/langs/dist/css.js +2 -3
  325. package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -3
  326. package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -3
  327. package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -3
  328. package/dist/node_modules/@shikijs/langs/dist/d.js +2 -3
  329. package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -3
  330. package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -3
  331. package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -3
  332. package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -3
  333. package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -3
  334. package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -3
  335. package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -3
  336. package/dist/node_modules/@shikijs/langs/dist/edge.js +9 -11
  337. package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -5
  338. package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -5
  339. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -3
  340. package/dist/node_modules/@shikijs/langs/dist/erb.js +7 -9
  341. package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -5
  342. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +9 -11
  343. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +9 -11
  344. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +9 -11
  345. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +7 -9
  346. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -5
  347. package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -3
  348. package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -3
  349. package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -3
  350. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -5
  351. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -3
  352. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -5
  353. package/dist/node_modules/@shikijs/langs/dist/gdresource.js +7 -9
  354. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -3
  355. package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -3
  356. package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -3
  357. package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -3
  358. package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -5
  359. package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -5
  360. package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -3
  361. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +11 -13
  362. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +11 -13
  363. package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -5
  364. package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -3
  365. package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -3
  366. package/dist/node_modules/@shikijs/langs/dist/go.js +2 -3
  367. package/dist/node_modules/@shikijs/langs/dist/graphql.js +11 -13
  368. package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -3
  369. package/dist/node_modules/@shikijs/langs/dist/hack.js +7 -9
  370. package/dist/node_modules/@shikijs/langs/dist/haml.js +7 -9
  371. package/dist/node_modules/@shikijs/langs/dist/handlebars.js +11 -13
  372. package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -3
  373. package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -3
  374. package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -3
  375. package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -3
  376. package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -3
  377. package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -5
  378. package/dist/node_modules/@shikijs/langs/dist/html.js +7 -9
  379. package/dist/node_modules/@shikijs/langs/dist/http.js +11 -13
  380. package/dist/node_modules/@shikijs/langs/dist/hurl.js +9 -11
  381. package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -5
  382. package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -3
  383. package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -3
  384. package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -3
  385. package/dist/node_modules/@shikijs/langs/dist/java.js +2 -3
  386. package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -3
  387. package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -5
  388. package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -5
  389. package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -5
  390. package/dist/node_modules/@shikijs/langs/dist/json.js +2 -3
  391. package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -3
  392. package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -3
  393. package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -3
  394. package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -3
  395. package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -3
  396. package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -3
  397. package/dist/node_modules/@shikijs/langs/dist/julia.js +13 -15
  398. package/dist/node_modules/@shikijs/langs/dist/just.js +15 -17
  399. package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -3
  400. package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -3
  401. package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -3
  402. package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -5
  403. package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -3
  404. package/dist/node_modules/@shikijs/langs/dist/less.js +2 -3
  405. package/dist/node_modules/@shikijs/langs/dist/liquid.js +11 -13
  406. package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -3
  407. package/dist/node_modules/@shikijs/langs/dist/log.js +2 -3
  408. package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -3
  409. package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -5
  410. package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -3
  411. package/dist/node_modules/@shikijs/langs/dist/make.js +2 -3
  412. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -3
  413. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -3
  414. package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -3
  415. package/dist/node_modules/@shikijs/langs/dist/marko.js +11 -13
  416. package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -3
  417. package/dist/node_modules/@shikijs/langs/dist/mdc.js +9 -11
  418. package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -3
  419. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -3
  420. package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -3
  421. package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -3
  422. package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -3
  423. package/dist/node_modules/@shikijs/langs/dist/move.js +2 -3
  424. package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -3
  425. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -3
  426. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -5
  427. package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -5
  428. package/dist/node_modules/@shikijs/langs/dist/nim.js +17 -19
  429. package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -5
  430. package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -3
  431. package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -3
  432. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -3
  433. package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -3
  434. package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -3
  435. package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -3
  436. package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -3
  437. package/dist/node_modules/@shikijs/langs/dist/perl.js +13 -15
  438. package/dist/node_modules/@shikijs/langs/dist/php.js +15 -17
  439. package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -3
  440. package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -3
  441. package/dist/node_modules/@shikijs/langs/dist/po.js +2 -3
  442. package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -3
  443. package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -3
  444. package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -3
  445. package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -3
  446. package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -3
  447. package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -3
  448. package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -3
  449. package/dist/node_modules/@shikijs/langs/dist/pug.js +9 -11
  450. package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -3
  451. package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -3
  452. package/dist/node_modules/@shikijs/langs/dist/python.js +2 -3
  453. package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -5
  454. package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -3
  455. package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -3
  456. package/dist/node_modules/@shikijs/langs/dist/r.js +2 -3
  457. package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -3
  458. package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -3
  459. package/dist/node_modules/@shikijs/langs/dist/razor.js +7 -9
  460. package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -3
  461. package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -3
  462. package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -3
  463. package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -3
  464. package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -3
  465. package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -3
  466. package/dist/node_modules/@shikijs/langs/dist/rst.js +19 -21
  467. package/dist/node_modules/@shikijs/langs/dist/ruby.js +27 -29
  468. package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -3
  469. package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -5
  470. package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -3
  471. package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -3
  472. package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -3
  473. package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -5
  474. package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -3
  475. package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -5
  476. package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -3
  477. package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -5
  478. package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -3
  479. package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -3
  480. package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -5
  481. package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -5
  482. package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -3
  483. package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -3
  484. package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -3
  485. package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -5
  486. package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -3
  487. package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -5
  488. package/dist/node_modules/@shikijs/langs/dist/svelte.js +11 -13
  489. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -3
  490. package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -3
  491. package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -3
  492. package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -3
  493. package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -3
  494. package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -3
  495. package/dist/node_modules/@shikijs/langs/dist/templ.js +9 -11
  496. package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -3
  497. package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -5
  498. package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -3
  499. package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +15 -17
  500. package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -3
  501. package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -3
  502. package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -3
  503. package/dist/node_modules/@shikijs/langs/dist/twig.js +15 -17
  504. package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -3
  505. package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -3
  506. package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -3
  507. package/dist/node_modules/@shikijs/langs/dist/v.js +2 -3
  508. package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -3
  509. package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -3
  510. package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -3
  511. package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -3
  512. package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -3
  513. package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -3
  514. package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -5
  515. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -3
  516. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -5
  517. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +15 -17
  518. package/dist/node_modules/@shikijs/langs/dist/vue.js +23 -25
  519. package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -3
  520. package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -3
  521. package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -3
  522. package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -3
  523. package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -3
  524. package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -3
  525. package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -3
  526. package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -5
  527. package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -5
  528. package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -3
  529. package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -3
  530. package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -3
  531. package/dist/node_modules/@shikijs/primitive/dist/index.js +319 -321
  532. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -4
  533. package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -4
  534. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -4
  535. package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -4
  536. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -4
  537. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -4
  538. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -4
  539. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -4
  540. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -4
  541. package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -4
  542. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -4
  543. package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -4
  544. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -4
  545. package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -4
  546. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -4
  547. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -4
  548. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -4
  549. package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -4
  550. package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -4
  551. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -4
  552. package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -4
  553. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -4
  554. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -4
  555. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -4
  556. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -4
  557. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -4
  558. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -4
  559. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -4
  560. package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -4
  561. package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -4
  562. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -4
  563. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -4
  564. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -4
  565. package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -4
  566. package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -4
  567. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -4
  568. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -4
  569. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -4
  570. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -4
  571. package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -4
  572. package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -4
  573. package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -4
  574. package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -4
  575. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -4
  576. package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -4
  577. package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -4
  578. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -4
  579. package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -4
  580. package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -4
  581. package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -4
  582. package/dist/node_modules/@shikijs/themes/dist/red.js +2 -4
  583. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -4
  584. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -4
  585. package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -4
  586. package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -4
  587. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -4
  588. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -4
  589. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -4
  590. package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -4
  591. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -4
  592. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -4
  593. package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -4
  594. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -4
  595. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -4
  596. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -4
  597. package/dist/node_modules/@shikijs/types/dist/index.js +2 -4
  598. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +947 -949
  599. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
  600. package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -6
  601. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
  602. package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
  603. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +693 -695
  604. package/dist/node_modules/@xyflow/react/dist/esm/index.js +881 -883
  605. package/dist/node_modules/@xyflow/system/dist/esm/index.js +1221 -1223
  606. package/dist/node_modules/bail/index.js +2 -4
  607. package/dist/node_modules/ccount/index.js +2 -4
  608. package/dist/node_modules/character-entities-html4/index.js +2 -4
  609. package/dist/node_modules/character-entities-legacy/index.js +2 -4
  610. package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
  611. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +4 -6
  612. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -4
  613. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +9 -11
  614. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +15 -17
  615. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +17 -19
  616. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +24 -26
  617. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +201 -203
  618. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +16 -18
  619. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +17 -19
  620. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +12 -14
  621. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +140 -142
  622. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +4 -5
  623. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +25 -27
  624. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +149 -151
  625. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +14 -16
  626. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +38 -40
  627. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +64 -65
  628. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +11 -13
  629. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +101 -103
  630. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +5 -7
  631. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +45 -47
  632. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +6 -8
  633. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +73 -75
  634. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +180 -182
  635. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +23 -24
  636. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +26 -28
  637. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +2 -4
  638. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +246 -246
  639. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +2 -4
  640. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +31 -33
  641. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +64 -67
  642. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +10 -12
  643. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +35 -36
  644. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +26 -28
  645. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +240 -242
  646. package/dist/node_modules/chevrotain-allstar/lib/atn.js +133 -134
  647. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +10 -11
  648. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
  649. package/dist/node_modules/classcat/index.js +3 -5
  650. package/dist/node_modules/comma-separated-tokens/index.js +3 -5
  651. package/dist/node_modules/cose-base/cose-base.js +21 -21
  652. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7940 -7937
  653. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +6 -8
  654. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +6 -8
  655. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
  656. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +4 -6
  657. package/dist/node_modules/d3/src/index.js +95 -95
  658. package/dist/node_modules/d3-array/src/ascending.js +2 -4
  659. package/dist/node_modules/d3-array/src/bisect.js +8 -8
  660. package/dist/node_modules/d3-array/src/bisector.js +6 -8
  661. package/dist/node_modules/d3-array/src/descending.js +2 -4
  662. package/dist/node_modules/d3-array/src/max.js +2 -4
  663. package/dist/node_modules/d3-array/src/min.js +2 -4
  664. package/dist/node_modules/d3-array/src/number.js +2 -4
  665. package/dist/node_modules/d3-array/src/range.js +2 -4
  666. package/dist/node_modules/d3-array/src/ticks.js +11 -13
  667. package/dist/node_modules/d3-axis/src/axis.js +46 -48
  668. package/dist/node_modules/d3-axis/src/identity.js +2 -4
  669. package/dist/node_modules/d3-brush/src/brush.js +4 -6
  670. package/dist/node_modules/d3-color/src/color.js +84 -86
  671. package/dist/node_modules/d3-color/src/define.js +3 -5
  672. package/dist/node_modules/d3-color/src/lab.js +43 -45
  673. package/dist/node_modules/d3-color/src/math.js +2 -4
  674. package/dist/node_modules/d3-dispatch/src/dispatch.js +17 -18
  675. package/dist/node_modules/d3-drag/src/constant.js +2 -4
  676. package/dist/node_modules/d3-drag/src/drag.js +75 -77
  677. package/dist/node_modules/d3-drag/src/event.js +3 -5
  678. package/dist/node_modules/d3-drag/src/nodrag.js +9 -11
  679. package/dist/node_modules/d3-drag/src/noevent.js +4 -6
  680. package/dist/node_modules/d3-ease/src/cubic.js +2 -4
  681. package/dist/node_modules/d3-format/src/defaultLocale.js +6 -8
  682. package/dist/node_modules/d3-format/src/exponent.js +4 -6
  683. package/dist/node_modules/d3-format/src/formatDecimal.js +3 -5
  684. package/dist/node_modules/d3-format/src/formatGroup.js +2 -4
  685. package/dist/node_modules/d3-format/src/formatNumerals.js +2 -4
  686. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +8 -10
  687. package/dist/node_modules/d3-format/src/formatRounded.js +4 -6
  688. package/dist/node_modules/d3-format/src/formatSpecifier.js +8 -10
  689. package/dist/node_modules/d3-format/src/formatTrim.js +2 -4
  690. package/dist/node_modules/d3-format/src/formatTypes.js +13 -15
  691. package/dist/node_modules/d3-format/src/identity.js +2 -4
  692. package/dist/node_modules/d3-format/src/locale.js +31 -33
  693. package/dist/node_modules/d3-format/src/precisionFixed.js +4 -6
  694. package/dist/node_modules/d3-format/src/precisionPrefix.js +4 -6
  695. package/dist/node_modules/d3-format/src/precisionRound.js +4 -6
  696. package/dist/node_modules/d3-hierarchy/src/accessors.js +2 -4
  697. package/dist/node_modules/d3-hierarchy/src/constant.js +3 -5
  698. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +2 -4
  699. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +4 -6
  700. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +2 -4
  701. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +2 -4
  702. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +2 -4
  703. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +2 -4
  704. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +2 -4
  705. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +44 -46
  706. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +2 -4
  707. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +2 -4
  708. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +2 -4
  709. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +4 -6
  710. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +2 -4
  711. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +2 -4
  712. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +2 -4
  713. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +14 -16
  714. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +2 -4
  715. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +2 -4
  716. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +9 -11
  717. package/dist/node_modules/d3-interpolate/src/array.js +4 -6
  718. package/dist/node_modules/d3-interpolate/src/basis.js +4 -6
  719. package/dist/node_modules/d3-interpolate/src/basisClosed.js +4 -6
  720. package/dist/node_modules/d3-interpolate/src/color.js +17 -19
  721. package/dist/node_modules/d3-interpolate/src/constant.js +2 -4
  722. package/dist/node_modules/d3-interpolate/src/date.js +2 -4
  723. package/dist/node_modules/d3-interpolate/src/hcl.js +6 -8
  724. package/dist/node_modules/d3-interpolate/src/number.js +2 -4
  725. package/dist/node_modules/d3-interpolate/src/numberArray.js +3 -5
  726. package/dist/node_modules/d3-interpolate/src/object.js +4 -6
  727. package/dist/node_modules/d3-interpolate/src/rgb.js +9 -11
  728. package/dist/node_modules/d3-interpolate/src/round.js +2 -4
  729. package/dist/node_modules/d3-interpolate/src/string.js +14 -16
  730. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +5 -7
  731. package/dist/node_modules/d3-interpolate/src/transform/index.js +11 -13
  732. package/dist/node_modules/d3-interpolate/src/transform/parse.js +8 -10
  733. package/dist/node_modules/d3-interpolate/src/value.js +12 -14
  734. package/dist/node_modules/d3-interpolate/src/zoom.js +11 -13
  735. package/dist/node_modules/d3-path/src/path.js +14 -16
  736. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +2 -4
  737. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +2 -4
  738. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +2 -4
  739. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +12 -13
  740. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -4
  741. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +2 -4
  742. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +17 -19
  743. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +3 -5
  744. package/dist/node_modules/d3-sankey/src/align.js +10 -12
  745. package/dist/node_modules/d3-sankey/src/constant.js +2 -4
  746. package/dist/node_modules/d3-sankey/src/sankey.js +168 -170
  747. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +6 -8
  748. package/dist/node_modules/d3-scale/src/band.js +9 -11
  749. package/dist/node_modules/d3-scale/src/constant.js +2 -4
  750. package/dist/node_modules/d3-scale/src/continuous.js +47 -49
  751. package/dist/node_modules/d3-scale/src/init.js +2 -4
  752. package/dist/node_modules/d3-scale/src/linear.js +13 -15
  753. package/dist/node_modules/d3-scale/src/nice.js +2 -4
  754. package/dist/node_modules/d3-scale/src/number.js +2 -4
  755. package/dist/node_modules/d3-scale/src/ordinal.js +16 -18
  756. package/dist/node_modules/d3-scale/src/tickFormat.js +14 -16
  757. package/dist/node_modules/d3-scale/src/time.js +34 -36
  758. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -5
  759. package/dist/node_modules/d3-scale-chromatic/src/colors.js +2 -4
  760. package/dist/node_modules/d3-selection/src/array.js +2 -4
  761. package/dist/node_modules/d3-selection/src/constant.js +2 -4
  762. package/dist/node_modules/d3-selection/src/creator.js +10 -12
  763. package/dist/node_modules/d3-selection/src/matcher.js +3 -5
  764. package/dist/node_modules/d3-selection/src/namespace.js +5 -7
  765. package/dist/node_modules/d3-selection/src/namespaces.js +3 -5
  766. package/dist/node_modules/d3-selection/src/pointer.js +4 -6
  767. package/dist/node_modules/d3-selection/src/select.js +4 -6
  768. package/dist/node_modules/d3-selection/src/selection/append.js +4 -6
  769. package/dist/node_modules/d3-selection/src/selection/attr.js +17 -19
  770. package/dist/node_modules/d3-selection/src/selection/call.js +2 -4
  771. package/dist/node_modules/d3-selection/src/selection/classed.js +23 -25
  772. package/dist/node_modules/d3-selection/src/selection/clone.js +5 -7
  773. package/dist/node_modules/d3-selection/src/selection/data.js +16 -18
  774. package/dist/node_modules/d3-selection/src/selection/datum.js +2 -4
  775. package/dist/node_modules/d3-selection/src/selection/dispatch.js +10 -12
  776. package/dist/node_modules/d3-selection/src/selection/each.js +2 -4
  777. package/dist/node_modules/d3-selection/src/selection/empty.js +2 -4
  778. package/dist/node_modules/d3-selection/src/selection/enter.js +11 -13
  779. package/dist/node_modules/d3-selection/src/selection/exit.js +5 -7
  780. package/dist/node_modules/d3-selection/src/selection/filter.js +6 -8
  781. package/dist/node_modules/d3-selection/src/selection/html.js +6 -8
  782. package/dist/node_modules/d3-selection/src/selection/index.js +79 -80
  783. package/dist/node_modules/d3-selection/src/selection/insert.js +6 -8
  784. package/dist/node_modules/d3-selection/src/selection/iterator.js +2 -4
  785. package/dist/node_modules/d3-selection/src/selection/join.js +2 -4
  786. package/dist/node_modules/d3-selection/src/selection/lower.js +4 -6
  787. package/dist/node_modules/d3-selection/src/selection/merge.js +4 -6
  788. package/dist/node_modules/d3-selection/src/selection/node.js +2 -4
  789. package/dist/node_modules/d3-selection/src/selection/nodes.js +2 -4
  790. package/dist/node_modules/d3-selection/src/selection/on.js +9 -11
  791. package/dist/node_modules/d3-selection/src/selection/order.js +2 -4
  792. package/dist/node_modules/d3-selection/src/selection/property.js +6 -8
  793. package/dist/node_modules/d3-selection/src/selection/raise.js +4 -6
  794. package/dist/node_modules/d3-selection/src/selection/remove.js +4 -6
  795. package/dist/node_modules/d3-selection/src/selection/select.js +6 -8
  796. package/dist/node_modules/d3-selection/src/selection/selectAll.js +9 -11
  797. package/dist/node_modules/d3-selection/src/selection/selectChild.js +8 -10
  798. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +8 -10
  799. package/dist/node_modules/d3-selection/src/selection/size.js +2 -4
  800. package/dist/node_modules/d3-selection/src/selection/sort.js +6 -8
  801. package/dist/node_modules/d3-selection/src/selection/sparse.js +2 -4
  802. package/dist/node_modules/d3-selection/src/selection/style.js +12 -14
  803. package/dist/node_modules/d3-selection/src/selection/text.js +6 -8
  804. package/dist/node_modules/d3-selection/src/selector.js +4 -6
  805. package/dist/node_modules/d3-selection/src/selectorAll.js +4 -6
  806. package/dist/node_modules/d3-selection/src/sourceEvent.js +2 -4
  807. package/dist/node_modules/d3-selection/src/window.js +2 -4
  808. package/dist/node_modules/d3-shape/src/arc.js +36 -38
  809. package/dist/node_modules/d3-shape/src/array.js +2 -3
  810. package/dist/node_modules/d3-shape/src/constant.js +2 -4
  811. package/dist/node_modules/d3-shape/src/curve/basis.js +8 -10
  812. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +16 -18
  813. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +7 -9
  814. package/dist/node_modules/d3-shape/src/curve/bump.js +13 -15
  815. package/dist/node_modules/d3-shape/src/curve/bundle.js +7 -9
  816. package/dist/node_modules/d3-shape/src/curve/cardinal.js +8 -10
  817. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +10 -12
  818. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +7 -9
  819. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +17 -19
  820. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +11 -13
  821. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +8 -10
  822. package/dist/node_modules/d3-shape/src/curve/linear.js +5 -7
  823. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +10 -12
  824. package/dist/node_modules/d3-shape/src/curve/monotone.js +21 -23
  825. package/dist/node_modules/d3-shape/src/curve/natural.js +7 -9
  826. package/dist/node_modules/d3-shape/src/curve/step.js +17 -19
  827. package/dist/node_modules/d3-shape/src/descending.js +2 -4
  828. package/dist/node_modules/d3-shape/src/identity.js +2 -4
  829. package/dist/node_modules/d3-shape/src/line.js +17 -19
  830. package/dist/node_modules/d3-shape/src/math.js +6 -8
  831. package/dist/node_modules/d3-shape/src/noop.js +2 -4
  832. package/dist/node_modules/d3-shape/src/path.js +4 -6
  833. package/dist/node_modules/d3-shape/src/pie.js +13 -15
  834. package/dist/node_modules/d3-shape/src/point.js +3 -5
  835. package/dist/node_modules/d3-time/src/day.js +15 -17
  836. package/dist/node_modules/d3-time/src/duration.js +2 -4
  837. package/dist/node_modules/d3-time/src/hour.js +14 -16
  838. package/dist/node_modules/d3-time/src/interval.js +5 -7
  839. package/dist/node_modules/d3-time/src/millisecond.js +5 -7
  840. package/dist/node_modules/d3-time/src/minute.js +14 -16
  841. package/dist/node_modules/d3-time/src/month.js +12 -14
  842. package/dist/node_modules/d3-time/src/second.js +7 -9
  843. package/dist/node_modules/d3-time/src/ticks.js +64 -66
  844. package/dist/node_modules/d3-time/src/week.js +19 -21
  845. package/dist/node_modules/d3-time/src/year.js +8 -10
  846. package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -8
  847. package/dist/node_modules/d3-time-format/src/locale.js +344 -346
  848. package/dist/node_modules/d3-timer/src/timeout.js +4 -6
  849. package/dist/node_modules/d3-timer/src/timer.js +31 -33
  850. package/dist/node_modules/d3-transition/src/index.js +2 -2
  851. package/dist/node_modules/d3-transition/src/interrupt.js +3 -4
  852. package/dist/node_modules/d3-transition/src/selection/index.js +4 -5
  853. package/dist/node_modules/d3-transition/src/selection/interrupt.js +4 -6
  854. package/dist/node_modules/d3-transition/src/selection/transition.js +14 -16
  855. package/dist/node_modules/d3-transition/src/transition/attr.js +26 -28
  856. package/dist/node_modules/d3-transition/src/transition/attrTween.js +11 -13
  857. package/dist/node_modules/d3-transition/src/transition/delay.js +9 -11
  858. package/dist/node_modules/d3-transition/src/transition/duration.js +9 -11
  859. package/dist/node_modules/d3-transition/src/transition/ease.js +6 -8
  860. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +6 -8
  861. package/dist/node_modules/d3-transition/src/transition/end.js +4 -6
  862. package/dist/node_modules/d3-transition/src/transition/filter.js +6 -8
  863. package/dist/node_modules/d3-transition/src/transition/index.js +61 -63
  864. package/dist/node_modules/d3-transition/src/transition/interpolate.js +7 -9
  865. package/dist/node_modules/d3-transition/src/transition/merge.js +4 -6
  866. package/dist/node_modules/d3-transition/src/transition/on.js +7 -9
  867. package/dist/node_modules/d3-transition/src/transition/remove.js +4 -6
  868. package/dist/node_modules/d3-transition/src/transition/schedule.js +18 -20
  869. package/dist/node_modules/d3-transition/src/transition/select.js +8 -10
  870. package/dist/node_modules/d3-transition/src/transition/selectAll.js +8 -10
  871. package/dist/node_modules/d3-transition/src/transition/selection.js +5 -7
  872. package/dist/node_modules/d3-transition/src/transition/style.js +19 -21
  873. package/dist/node_modules/d3-transition/src/transition/styleTween.js +6 -8
  874. package/dist/node_modules/d3-transition/src/transition/text.js +6 -8
  875. package/dist/node_modules/d3-transition/src/transition/textTween.js +6 -8
  876. package/dist/node_modules/d3-transition/src/transition/transition.js +8 -10
  877. package/dist/node_modules/d3-transition/src/transition/tween.js +12 -14
  878. package/dist/node_modules/d3-zoom/src/constant.js +2 -4
  879. package/dist/node_modules/d3-zoom/src/event.js +2 -4
  880. package/dist/node_modules/d3-zoom/src/index.js +2 -2
  881. package/dist/node_modules/d3-zoom/src/noevent.js +3 -5
  882. package/dist/node_modules/d3-zoom/src/transform.js +10 -12
  883. package/dist/node_modules/d3-zoom/src/zoom.js +114 -116
  884. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +12 -14
  885. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +9 -11
  886. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +34 -36
  887. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +7 -9
  888. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +49 -51
  889. package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
  890. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +163 -165
  891. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +43 -45
  892. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +10 -12
  893. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +4 -6
  894. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +6 -8
  895. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +12 -14
  896. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +20 -22
  897. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +34 -36
  898. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +13 -15
  899. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +30 -32
  900. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +28 -30
  901. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +18 -20
  902. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +10 -12
  903. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +148 -150
  904. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +18 -20
  905. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +17 -19
  906. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +14 -16
  907. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +63 -64
  908. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -10
  909. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +82 -84
  910. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +13 -15
  911. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -3
  912. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -3
  913. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
  914. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +4 -6
  915. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +4 -6
  916. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +11 -13
  917. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +129 -131
  918. package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
  919. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +16 -18
  920. package/dist/node_modules/dayjs/dayjs.min.js +4 -6
  921. package/dist/node_modules/dayjs/plugin/advancedFormat.js +4 -6
  922. package/dist/node_modules/dayjs/plugin/customParseFormat.js +4 -6
  923. package/dist/node_modules/dayjs/plugin/duration.js +4 -6
  924. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -6
  925. package/dist/node_modules/decode-named-character-reference/index.dom.js +5 -7
  926. package/dist/node_modules/devlop/lib/default.js +2 -4
  927. package/dist/node_modules/dompurify/dist/purify.es.js +180 -182
  928. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +4 -6
  929. package/dist/node_modules/entities/dist/esm/decode.js +85 -87
  930. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -4
  931. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +4 -6
  932. package/dist/node_modules/extend/index.js +6 -9
  933. package/dist/node_modules/hast-util-from-dom/lib/index.js +30 -32
  934. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +8 -10
  935. package/dist/node_modules/hast-util-from-parse5/lib/index.js +80 -82
  936. package/dist/node_modules/hast-util-is-element/lib/index.js +15 -17
  937. package/dist/node_modules/hast-util-parse-selector/lib/index.js +5 -7
  938. package/dist/node_modules/hast-util-raw/lib/index.js +134 -136
  939. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +21 -23
  940. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +3 -5
  941. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
  942. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +249 -250
  943. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +4 -6
  944. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
  945. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
  946. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +15 -17
  947. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1495 -1497
  948. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +146 -148
  949. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +19 -20
  950. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +798 -800
  951. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +31 -33
  952. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +8 -10
  953. package/dist/node_modules/hast-util-sanitize/lib/index.js +104 -106
  954. package/dist/node_modules/hast-util-sanitize/lib/schema.js +11 -12
  955. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +7 -9
  956. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +2 -4
  957. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +23 -25
  958. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +21 -22
  959. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +4 -6
  960. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +2 -4
  961. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +5 -7
  962. package/dist/node_modules/hast-util-to-html/lib/index.js +36 -38
  963. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +68 -70
  964. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +4 -6
  965. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +30 -32
  966. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +9 -10
  967. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +190 -192
  968. package/dist/node_modules/hast-util-to-parse5/lib/index.js +69 -71
  969. package/dist/node_modules/hast-util-to-text/lib/index.js +59 -61
  970. package/dist/node_modules/hast-util-whitespace/lib/index.js +6 -8
  971. package/dist/node_modules/hastscript/lib/create-h.js +24 -26
  972. package/dist/node_modules/hastscript/lib/index.js +5 -7
  973. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -4
  974. package/dist/node_modules/html-url-attributes/lib/index.js +2 -4
  975. package/dist/node_modules/html-void-elements/index.js +2 -4
  976. package/dist/node_modules/inline-style-parser/cjs/index.js +4 -6
  977. package/dist/node_modules/internmap/src/index.js +20 -22
  978. package/dist/node_modules/katex/dist/katex.js +2307 -2301
  979. package/dist/node_modules/khroma/dist/channels/index.js +21 -23
  980. package/dist/node_modules/khroma/dist/channels/reusable.js +3 -5
  981. package/dist/node_modules/khroma/dist/channels/type.js +5 -7
  982. package/dist/node_modules/khroma/dist/color/hex.js +8 -10
  983. package/dist/node_modules/khroma/dist/color/hsl.js +17 -19
  984. package/dist/node_modules/khroma/dist/color/index.js +15 -17
  985. package/dist/node_modules/khroma/dist/color/keyword.js +8 -10
  986. package/dist/node_modules/khroma/dist/color/rgb.js +12 -14
  987. package/dist/node_modules/khroma/dist/constants.js +5 -7
  988. package/dist/node_modules/khroma/dist/methods/adjust.js +6 -8
  989. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +6 -8
  990. package/dist/node_modules/khroma/dist/methods/change.js +7 -9
  991. package/dist/node_modules/khroma/dist/methods/channel.js +4 -6
  992. package/dist/node_modules/khroma/dist/methods/darken.js +3 -5
  993. package/dist/node_modules/khroma/dist/methods/invert.js +6 -8
  994. package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -5
  995. package/dist/node_modules/khroma/dist/methods/is_light.js +3 -5
  996. package/dist/node_modules/khroma/dist/methods/lighten.js +3 -5
  997. package/dist/node_modules/khroma/dist/methods/luminance.js +6 -8
  998. package/dist/node_modules/khroma/dist/methods/mix.js +6 -8
  999. package/dist/node_modules/khroma/dist/methods/rgba.js +13 -15
  1000. package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -5
  1001. package/dist/node_modules/khroma/dist/utils/channel.js +6 -8
  1002. package/dist/node_modules/khroma/dist/utils/index.js +8 -10
  1003. package/dist/node_modules/khroma/dist/utils/lang.js +2 -4
  1004. package/dist/node_modules/khroma/dist/utils/unit.js +2 -4
  1005. package/dist/node_modules/langium/lib/default-module.js +64 -66
  1006. package/dist/node_modules/langium/lib/dependency-injection.js +39 -37
  1007. package/dist/node_modules/langium/lib/documentation/comment-provider.js +5 -7
  1008. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +6 -8
  1009. package/dist/node_modules/langium/lib/documentation/jsdoc.js +202 -204
  1010. package/dist/node_modules/langium/lib/index.js +182 -0
  1011. package/dist/node_modules/langium/lib/languages/generated/ast.js +534 -343
  1012. package/dist/node_modules/langium/lib/languages/grammar-config.js +8 -10
  1013. package/dist/node_modules/langium/lib/parser/async-parser.js +76 -4
  1014. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +6 -8
  1015. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +54 -56
  1016. package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
  1017. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +7 -9
  1018. package/dist/node_modules/langium/lib/parser/langium-parser.js +188 -190
  1019. package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
  1020. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +203 -204
  1021. package/dist/node_modules/langium/lib/parser/token-builder.js +30 -32
  1022. package/dist/node_modules/langium/lib/parser/value-converter.js +15 -17
  1023. package/dist/node_modules/langium/lib/references/linker.js +103 -104
  1024. package/dist/node_modules/langium/lib/references/name-provider.js +7 -9
  1025. package/dist/node_modules/langium/lib/references/references.js +51 -53
  1026. package/dist/node_modules/langium/lib/references/scope-computation.js +12 -14
  1027. package/dist/node_modules/langium/lib/references/scope-provider.js +11 -13
  1028. package/dist/node_modules/langium/lib/references/scope.js +56 -27
  1029. package/dist/node_modules/langium/lib/serializer/hydrator.js +69 -71
  1030. package/dist/node_modules/langium/lib/serializer/json-serializer.js +21 -23
  1031. package/dist/node_modules/langium/lib/service-registry.js +5 -7
  1032. package/dist/node_modules/langium/lib/syntax-tree.js +31 -33
  1033. package/dist/node_modules/langium/lib/utils/ast-utils.js +112 -77
  1034. package/dist/node_modules/langium/lib/utils/caching.js +42 -33
  1035. package/dist/node_modules/langium/lib/utils/cancellation.js +5 -7
  1036. package/dist/node_modules/langium/lib/utils/collections.js +33 -35
  1037. package/dist/node_modules/langium/lib/utils/cst-utils.js +161 -46
  1038. package/dist/node_modules/langium/lib/utils/disposable.js +3 -5
  1039. package/dist/node_modules/langium/lib/utils/errors.js +9 -8
  1040. package/dist/node_modules/langium/lib/utils/event.js +5 -7
  1041. package/dist/node_modules/langium/lib/utils/grammar-loader.js +14 -16
  1042. package/dist/node_modules/langium/lib/utils/grammar-utils.js +249 -172
  1043. package/dist/node_modules/langium/lib/utils/index.js +53 -0
  1044. package/dist/node_modules/langium/lib/utils/promise-utils.js +19 -18
  1045. package/dist/node_modules/langium/lib/utils/regexp-utils.js +76 -53
  1046. package/dist/node_modules/langium/lib/utils/stream.js +153 -155
  1047. package/dist/node_modules/langium/lib/utils/uri-utils.js +12 -14
  1048. package/dist/node_modules/langium/lib/validation/document-validator.js +103 -104
  1049. package/dist/node_modules/langium/lib/validation/validation-registry.js +14 -15
  1050. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +17 -19
  1051. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +2 -4
  1052. package/dist/node_modules/langium/lib/workspace/configuration.js +5 -7
  1053. package/dist/node_modules/langium/lib/workspace/document-builder.js +134 -131
  1054. package/dist/node_modules/langium/lib/workspace/documents.js +83 -85
  1055. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +4 -5
  1056. package/dist/node_modules/langium/lib/workspace/index-manager.js +14 -16
  1057. package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
  1058. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +9 -11
  1059. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +33 -35
  1060. package/dist/node_modules/layout-base/layout-base.js +4 -6
  1061. package/dist/node_modules/lodash/_Symbol.js +7 -0
  1062. package/dist/node_modules/lodash/_baseGetTag.js +13 -0
  1063. package/dist/node_modules/lodash/_baseTrim.js +11 -0
  1064. package/dist/node_modules/lodash/_freeGlobal.js +6 -0
  1065. package/dist/node_modules/lodash/_getRawTag.js +17 -0
  1066. package/dist/node_modules/lodash/_objectToString.js +10 -0
  1067. package/dist/node_modules/lodash/_root.js +8 -0
  1068. package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
  1069. package/dist/{frontend/studio/node_modules → node_modules}/lodash/debounce.js +8 -10
  1070. package/dist/node_modules/lodash/isObject.js +10 -0
  1071. package/dist/node_modules/lodash/isObjectLike.js +9 -0
  1072. package/dist/node_modules/lodash/isSymbol.js +12 -0
  1073. package/dist/node_modules/lodash/now.js +10 -0
  1074. package/dist/node_modules/lodash/toNumber.js +22 -0
  1075. package/dist/node_modules/lodash-es/_DataView.js +4 -6
  1076. package/dist/node_modules/lodash-es/_Hash.js +13 -14
  1077. package/dist/node_modules/lodash-es/_ListCache.js +13 -14
  1078. package/dist/node_modules/lodash-es/_Map.js +4 -6
  1079. package/dist/node_modules/lodash-es/_MapCache.js +13 -14
  1080. package/dist/node_modules/lodash-es/_Promise.js +4 -6
  1081. package/dist/node_modules/lodash-es/_Set.js +4 -6
  1082. package/dist/node_modules/lodash-es/_SetCache.js +9 -10
  1083. package/dist/node_modules/lodash-es/_Stack.js +11 -12
  1084. package/dist/node_modules/lodash-es/_Symbol.js +3 -5
  1085. package/dist/node_modules/lodash-es/_Uint8Array.js +3 -5
  1086. package/dist/node_modules/lodash-es/_WeakMap.js +4 -6
  1087. package/dist/node_modules/lodash-es/_apply.js +3 -4
  1088. package/dist/node_modules/lodash-es/_arrayEach.js +3 -4
  1089. package/dist/node_modules/lodash-es/_arrayFilter.js +3 -4
  1090. package/dist/node_modules/lodash-es/_arrayIncludes.js +5 -6
  1091. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +3 -4
  1092. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
  1093. package/dist/node_modules/lodash-es/_arrayMap.js +3 -4
  1094. package/dist/node_modules/lodash-es/_arrayPush.js +3 -4
  1095. package/dist/node_modules/lodash-es/_arrayReduce.js +3 -4
  1096. package/dist/node_modules/lodash-es/_arraySome.js +3 -4
  1097. package/dist/node_modules/lodash-es/_asciiSize.js +3 -5
  1098. package/dist/node_modules/lodash-es/_assignMergeValue.js +6 -7
  1099. package/dist/node_modules/lodash-es/_assignValue.js +7 -8
  1100. package/dist/node_modules/lodash-es/_assocIndexOf.js +5 -6
  1101. package/dist/node_modules/lodash-es/_baseAssign.js +6 -7
  1102. package/dist/node_modules/lodash-es/_baseAssignIn.js +6 -7
  1103. package/dist/node_modules/lodash-es/_baseAssignValue.js +5 -6
  1104. package/dist/node_modules/lodash-es/_baseClone.js +50 -51
  1105. package/dist/node_modules/lodash-es/_baseCreate.js +5 -7
  1106. package/dist/node_modules/lodash-es/_baseEach.js +4 -6
  1107. package/dist/node_modules/lodash-es/_baseExtremum.js +5 -6
  1108. package/dist/node_modules/lodash-es/_baseFilter.js +5 -6
  1109. package/dist/node_modules/lodash-es/_baseFindIndex.js +3 -4
  1110. package/dist/node_modules/lodash-es/_baseFlatten.js +7 -8
  1111. package/dist/node_modules/lodash-es/_baseFor.js +3 -5
  1112. package/dist/node_modules/lodash-es/_baseForOwn.js +6 -7
  1113. package/dist/node_modules/lodash-es/_baseGet.js +7 -8
  1114. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +6 -7
  1115. package/dist/node_modules/lodash-es/_baseGetTag.js +8 -9
  1116. package/dist/node_modules/lodash-es/_baseGt.js +3 -4
  1117. package/dist/node_modules/lodash-es/_baseHas.js +5 -6
  1118. package/dist/node_modules/lodash-es/_baseHasIn.js +3 -4
  1119. package/dist/node_modules/lodash-es/_baseIndexOf.js +7 -8
  1120. package/dist/node_modules/lodash-es/_baseIsArguments.js +7 -8
  1121. package/dist/node_modules/lodash-es/_baseIsEqual.js +6 -7
  1122. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +22 -23
  1123. package/dist/node_modules/lodash-es/_baseIsMap.js +7 -8
  1124. package/dist/node_modules/lodash-es/_baseIsMatch.js +8 -9
  1125. package/dist/node_modules/lodash-es/_baseIsNaN.js +3 -4
  1126. package/dist/node_modules/lodash-es/_baseIsNative.js +9 -10
  1127. package/dist/node_modules/lodash-es/_baseIsSet.js +7 -8
  1128. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +9 -10
  1129. package/dist/node_modules/lodash-es/_baseIteratee.js +9 -10
  1130. package/dist/node_modules/lodash-es/_baseKeys.js +8 -9
  1131. package/dist/node_modules/lodash-es/_baseKeysIn.js +10 -11
  1132. package/dist/node_modules/lodash-es/_baseLt.js +3 -4
  1133. package/dist/node_modules/lodash-es/_baseMap.js +7 -8
  1134. package/dist/node_modules/lodash-es/_baseMatches.js +9 -10
  1135. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +14 -15
  1136. package/dist/node_modules/lodash-es/_baseMerge.js +15 -16
  1137. package/dist/node_modules/lodash-es/_baseMergeDeep.js +23 -24
  1138. package/dist/node_modules/lodash-es/_baseOrderBy.js +22 -23
  1139. package/dist/node_modules/lodash-es/_basePick.js +7 -8
  1140. package/dist/node_modules/lodash-es/_basePickBy.js +8 -9
  1141. package/dist/node_modules/lodash-es/_baseProperty.js +3 -4
  1142. package/dist/node_modules/lodash-es/_basePropertyDeep.js +5 -6
  1143. package/dist/node_modules/lodash-es/_baseRange.js +5 -6
  1144. package/dist/node_modules/lodash-es/_baseReduce.js +3 -4
  1145. package/dist/node_modules/lodash-es/_baseRest.js +7 -8
  1146. package/dist/node_modules/lodash-es/_baseSet.js +13 -14
  1147. package/dist/node_modules/lodash-es/_baseSetToString.js +8 -10
  1148. package/dist/node_modules/lodash-es/_baseSortBy.js +3 -4
  1149. package/dist/node_modules/lodash-es/_baseTimes.js +3 -4
  1150. package/dist/node_modules/lodash-es/_baseToString.js +12 -13
  1151. package/dist/node_modules/lodash-es/_baseTrim.js +6 -7
  1152. package/dist/node_modules/lodash-es/_baseUnary.js +3 -4
  1153. package/dist/node_modules/lodash-es/_baseUniq.js +16 -17
  1154. package/dist/node_modules/lodash-es/_baseValues.js +5 -6
  1155. package/dist/node_modules/lodash-es/_baseZipObject.js +3 -4
  1156. package/dist/node_modules/lodash-es/_cacheHas.js +3 -4
  1157. package/dist/node_modules/lodash-es/_castFunction.js +5 -6
  1158. package/dist/node_modules/lodash-es/_castPath.js +8 -9
  1159. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +5 -6
  1160. package/dist/node_modules/lodash-es/_cloneBuffer.js +8 -9
  1161. package/dist/node_modules/lodash-es/_cloneDataView.js +5 -6
  1162. package/dist/node_modules/lodash-es/_cloneRegExp.js +5 -6
  1163. package/dist/node_modules/lodash-es/_cloneSymbol.js +6 -7
  1164. package/dist/node_modules/lodash-es/_cloneTypedArray.js +5 -6
  1165. package/dist/node_modules/lodash-es/_compareAscending.js +5 -6
  1166. package/dist/node_modules/lodash-es/_compareMultiple.js +5 -6
  1167. package/dist/node_modules/lodash-es/_copyArray.js +3 -4
  1168. package/dist/node_modules/lodash-es/_copyObject.js +6 -7
  1169. package/dist/node_modules/lodash-es/_copySymbols.js +6 -7
  1170. package/dist/node_modules/lodash-es/_copySymbolsIn.js +6 -7
  1171. package/dist/node_modules/lodash-es/_coreJsData.js +3 -5
  1172. package/dist/node_modules/lodash-es/_createAssigner.js +7 -8
  1173. package/dist/node_modules/lodash-es/_createBaseEach.js +5 -6
  1174. package/dist/node_modules/lodash-es/_createBaseFor.js +3 -4
  1175. package/dist/node_modules/lodash-es/_createFind.js +9 -10
  1176. package/dist/node_modules/lodash-es/_createRange.js +7 -8
  1177. package/dist/node_modules/lodash-es/_createSet.js +7 -9
  1178. package/dist/node_modules/lodash-es/_defineProperty.js +4 -6
  1179. package/dist/node_modules/lodash-es/_equalArrays.js +11 -12
  1180. package/dist/node_modules/lodash-es/_equalByTag.js +28 -29
  1181. package/dist/node_modules/lodash-es/_equalObjects.js +8 -9
  1182. package/dist/node_modules/lodash-es/_flatRest.js +7 -8
  1183. package/dist/node_modules/lodash-es/_freeGlobal.js +2 -4
  1184. package/dist/node_modules/lodash-es/_getAllKeys.js +7 -8
  1185. package/dist/node_modules/lodash-es/_getAllKeysIn.js +7 -8
  1186. package/dist/node_modules/lodash-es/_getMapData.js +5 -6
  1187. package/dist/node_modules/lodash-es/_getMatchData.js +7 -8
  1188. package/dist/node_modules/lodash-es/_getNative.js +7 -8
  1189. package/dist/node_modules/lodash-es/_getPrototype.js +3 -5
  1190. package/dist/node_modules/lodash-es/_getRawTag.js +9 -10
  1191. package/dist/node_modules/lodash-es/_getSymbols.js +7 -9
  1192. package/dist/node_modules/lodash-es/_getSymbolsIn.js +8 -10
  1193. package/dist/node_modules/lodash-es/_getTag.js +19 -21
  1194. package/dist/node_modules/lodash-es/_getValue.js +3 -4
  1195. package/dist/node_modules/lodash-es/_hasPath.js +12 -13
  1196. package/dist/node_modules/lodash-es/_hasUnicode.js +5 -6
  1197. package/dist/node_modules/lodash-es/_hashClear.js +5 -6
  1198. package/dist/node_modules/lodash-es/_hashDelete.js +4 -5
  1199. package/dist/node_modules/lodash-es/_hashGet.js +8 -9
  1200. package/dist/node_modules/lodash-es/_hashHas.js +6 -7
  1201. package/dist/node_modules/lodash-es/_hashSet.js +6 -7
  1202. package/dist/node_modules/lodash-es/_initCloneArray.js +5 -6
  1203. package/dist/node_modules/lodash-es/_initCloneByTag.js +28 -29
  1204. package/dist/node_modules/lodash-es/_initCloneObject.js +7 -8
  1205. package/dist/node_modules/lodash-es/_isFlattenable.js +8 -9
  1206. package/dist/node_modules/lodash-es/_isIndex.js +5 -6
  1207. package/dist/node_modules/lodash-es/_isIterateeCall.js +9 -10
  1208. package/dist/node_modules/lodash-es/_isKey.js +8 -9
  1209. package/dist/node_modules/lodash-es/_isKeyable.js +3 -4
  1210. package/dist/node_modules/lodash-es/_isMasked.js +8 -9
  1211. package/dist/node_modules/lodash-es/_isPrototype.js +5 -6
  1212. package/dist/node_modules/lodash-es/_isStrictComparable.js +5 -6
  1213. package/dist/node_modules/lodash-es/_listCacheClear.js +3 -4
  1214. package/dist/node_modules/lodash-es/_listCacheDelete.js +7 -8
  1215. package/dist/node_modules/lodash-es/_listCacheGet.js +5 -6
  1216. package/dist/node_modules/lodash-es/_listCacheHas.js +5 -6
  1217. package/dist/node_modules/lodash-es/_listCacheSet.js +5 -6
  1218. package/dist/node_modules/lodash-es/_mapCacheClear.js +9 -10
  1219. package/dist/node_modules/lodash-es/_mapCacheDelete.js +6 -7
  1220. package/dist/node_modules/lodash-es/_mapCacheGet.js +5 -6
  1221. package/dist/node_modules/lodash-es/_mapCacheHas.js +5 -6
  1222. package/dist/node_modules/lodash-es/_mapCacheSet.js +5 -6
  1223. package/dist/node_modules/lodash-es/_mapToArray.js +3 -4
  1224. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +3 -4
  1225. package/dist/node_modules/lodash-es/_memoizeCapped.js +7 -8
  1226. package/dist/node_modules/lodash-es/_nativeCreate.js +3 -5
  1227. package/dist/node_modules/lodash-es/_nativeKeys.js +3 -5
  1228. package/dist/node_modules/lodash-es/_nativeKeysIn.js +3 -4
  1229. package/dist/node_modules/lodash-es/_nodeUtil.js +4 -6
  1230. package/dist/node_modules/lodash-es/_objectToString.js +5 -6
  1231. package/dist/node_modules/lodash-es/_overArg.js +3 -4
  1232. package/dist/node_modules/lodash-es/_overRest.js +8 -9
  1233. package/dist/node_modules/lodash-es/_root.js +3 -5
  1234. package/dist/node_modules/lodash-es/_safeGet.js +3 -4
  1235. package/dist/node_modules/lodash-es/_setCacheAdd.js +5 -6
  1236. package/dist/node_modules/lodash-es/_setCacheHas.js +3 -4
  1237. package/dist/node_modules/lodash-es/_setToArray.js +3 -4
  1238. package/dist/node_modules/lodash-es/_setToString.js +4 -6
  1239. package/dist/node_modules/lodash-es/_shortOut.js +6 -7
  1240. package/dist/node_modules/lodash-es/_stackClear.js +5 -6
  1241. package/dist/node_modules/lodash-es/_stackDelete.js +3 -4
  1242. package/dist/node_modules/lodash-es/_stackGet.js +3 -4
  1243. package/dist/node_modules/lodash-es/_stackHas.js +3 -4
  1244. package/dist/node_modules/lodash-es/_stackSet.js +10 -11
  1245. package/dist/node_modules/lodash-es/_strictIndexOf.js +3 -4
  1246. package/dist/node_modules/lodash-es/_stringSize.js +7 -8
  1247. package/dist/node_modules/lodash-es/_stringToPath.js +5 -7
  1248. package/dist/node_modules/lodash-es/_toKey.js +7 -8
  1249. package/dist/node_modules/lodash-es/_toSource.js +7 -8
  1250. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +5 -6
  1251. package/dist/node_modules/lodash-es/_unicodeSize.js +16 -17
  1252. package/dist/node_modules/lodash-es/clone.js +6 -7
  1253. package/dist/node_modules/lodash-es/cloneDeep.js +6 -7
  1254. package/dist/node_modules/lodash-es/constant.js +3 -4
  1255. package/dist/node_modules/lodash-es/defaults.js +11 -13
  1256. package/dist/node_modules/lodash-es/eq.js +3 -4
  1257. package/dist/node_modules/lodash-es/filter.js +8 -9
  1258. package/dist/node_modules/lodash-es/find.js +4 -6
  1259. package/dist/node_modules/lodash-es/findIndex.js +9 -10
  1260. package/dist/node_modules/lodash-es/flatMap.js +6 -7
  1261. package/dist/node_modules/lodash-es/flatten.js +5 -6
  1262. package/dist/node_modules/lodash-es/forEach.js +8 -9
  1263. package/dist/node_modules/lodash-es/forIn.js +7 -8
  1264. package/dist/node_modules/lodash-es/forOwn.js +6 -7
  1265. package/dist/node_modules/lodash-es/get.js +5 -6
  1266. package/dist/node_modules/lodash-es/has.js +6 -7
  1267. package/dist/node_modules/lodash-es/hasIn.js +6 -7
  1268. package/dist/node_modules/lodash-es/identity.js +3 -4
  1269. package/dist/node_modules/lodash-es/isArguments.js +6 -8
  1270. package/dist/node_modules/lodash-es/isArray.js +2 -4
  1271. package/dist/node_modules/lodash-es/isArrayLike.js +6 -7
  1272. package/dist/node_modules/lodash-es/isArrayLikeObject.js +6 -7
  1273. package/dist/node_modules/lodash-es/isBuffer.js +4 -6
  1274. package/dist/node_modules/lodash-es/isEmpty.js +17 -18
  1275. package/dist/node_modules/lodash-es/isFunction.js +9 -10
  1276. package/dist/node_modules/lodash-es/isLength.js +5 -6
  1277. package/dist/node_modules/lodash-es/isMap.js +5 -7
  1278. package/dist/node_modules/lodash-es/isObject.js +3 -4
  1279. package/dist/node_modules/lodash-es/isObjectLike.js +3 -4
  1280. package/dist/node_modules/lodash-es/isPlainObject.js +12 -13
  1281. package/dist/node_modules/lodash-es/isSet.js +5 -7
  1282. package/dist/node_modules/lodash-es/isString.js +8 -9
  1283. package/dist/node_modules/lodash-es/isSymbol.js +7 -8
  1284. package/dist/node_modules/lodash-es/isTypedArray.js +5 -7
  1285. package/dist/node_modules/lodash-es/isUndefined.js +3 -4
  1286. package/dist/node_modules/lodash-es/keys.js +7 -8
  1287. package/dist/node_modules/lodash-es/keysIn.js +7 -8
  1288. package/dist/node_modules/lodash-es/last.js +3 -4
  1289. package/dist/node_modules/lodash-es/map.js +8 -9
  1290. package/dist/node_modules/lodash-es/mapValues.js +8 -9
  1291. package/dist/node_modules/lodash-es/max.js +7 -8
  1292. package/dist/node_modules/lodash-es/memoize.js +8 -9
  1293. package/dist/node_modules/lodash-es/merge.js +5 -7
  1294. package/dist/node_modules/lodash-es/min.js +7 -8
  1295. package/dist/node_modules/lodash-es/minBy.js +7 -8
  1296. package/dist/node_modules/lodash-es/noop.js +3 -4
  1297. package/dist/node_modules/lodash-es/now.js +4 -6
  1298. package/dist/node_modules/lodash-es/pick.js +5 -7
  1299. package/dist/node_modules/lodash-es/property.js +8 -9
  1300. package/dist/node_modules/lodash-es/range.js +3 -5
  1301. package/dist/node_modules/lodash-es/reduce.js +10 -11
  1302. package/dist/node_modules/lodash-es/size.js +12 -13
  1303. package/dist/node_modules/lodash-es/sortBy.js +7 -9
  1304. package/dist/node_modules/lodash-es/stubArray.js +3 -4
  1305. package/dist/node_modules/lodash-es/stubFalse.js +3 -4
  1306. package/dist/node_modules/lodash-es/toFinite.js +6 -7
  1307. package/dist/node_modules/lodash-es/toInteger.js +5 -6
  1308. package/dist/node_modules/lodash-es/toNumber.js +13 -14
  1309. package/dist/node_modules/lodash-es/toPlainObject.js +6 -7
  1310. package/dist/node_modules/lodash-es/toString.js +5 -6
  1311. package/dist/node_modules/lodash-es/union.js +7 -9
  1312. package/dist/node_modules/lodash-es/uniqBy.js +6 -7
  1313. package/dist/node_modules/lodash-es/uniqueId.js +7 -8
  1314. package/dist/node_modules/lodash-es/values.js +6 -7
  1315. package/dist/node_modules/lodash-es/zipObject.js +6 -7
  1316. package/dist/node_modules/longest-streak/index.js +2 -4
  1317. package/dist/node_modules/markdown-table/index.js +9 -11
  1318. package/dist/node_modules/marked/lib/marked.esm.js +685 -687
  1319. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +12 -14
  1320. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +2 -4
  1321. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +180 -182
  1322. package/dist/node_modules/mdast-util-gfm/lib/index.js +18 -20
  1323. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +67 -69
  1324. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +45 -47
  1325. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +13 -15
  1326. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +28 -30
  1327. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +14 -16
  1328. package/dist/node_modules/mdast-util-math/lib/index.js +13 -15
  1329. package/dist/node_modules/mdast-util-phrasing/lib/index.js +3 -5
  1330. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +9 -11
  1331. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +2 -4
  1332. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +2 -4
  1333. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -4
  1334. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +2 -4
  1335. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +2 -4
  1336. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +4 -6
  1337. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +2 -4
  1338. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +2 -4
  1339. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +6 -8
  1340. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +4 -6
  1341. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +53 -55
  1342. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +2 -4
  1343. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +6 -8
  1344. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +4 -6
  1345. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +13 -15
  1346. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +2 -4
  1347. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +2 -4
  1348. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +2 -4
  1349. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +2 -4
  1350. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +2 -4
  1351. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +2 -4
  1352. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +4 -6
  1353. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +4 -6
  1354. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +2 -4
  1355. package/dist/node_modules/mdast-util-to-hast/lib/index.js +6 -8
  1356. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +2 -4
  1357. package/dist/node_modules/mdast-util-to-hast/lib/state.js +59 -61
  1358. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +4 -6
  1359. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +4 -6
  1360. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +16 -18
  1361. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +4 -6
  1362. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +12 -14
  1363. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +6 -8
  1364. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +4 -6
  1365. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +4 -6
  1366. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +6 -8
  1367. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +41 -43
  1368. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +5 -7
  1369. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +4 -6
  1370. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +9 -11
  1371. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +5 -7
  1372. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +10 -12
  1373. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -4
  1374. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +4 -6
  1375. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +12 -14
  1376. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -4
  1377. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +5 -7
  1378. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -4
  1379. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -6
  1380. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -4
  1381. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -4
  1382. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -4
  1383. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -4
  1384. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -4
  1385. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -4
  1386. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -4
  1387. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -4
  1388. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -4
  1389. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +4 -6
  1390. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -4
  1391. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -8
  1392. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +4 -6
  1393. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +4 -6
  1394. package/dist/node_modules/mdast-util-to-string/lib/index.js +12 -14
  1395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +374 -378
  1396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +1347 -1349
  1397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AHTNJAMY.js +549 -555
  1398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +38 -40
  1399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +7 -9
  1400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +4 -6
  1401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js +198 -204
  1402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +5 -7
  1403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +2345 -2347
  1404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +253 -257
  1405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +20 -22
  1406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +35 -37
  1407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +15 -17
  1408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +344 -346
  1409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -5
  1410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +718 -746
  1411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +588 -594
  1412. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +4 -8
  1413. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +204 -206
  1414. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +37 -39
  1415. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +891 -893
  1416. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +37 -39
  1417. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +13 -15
  1418. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +9 -11
  1419. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +9 -11
  1420. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +114 -116
  1421. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +188 -190
  1422. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +70 -72
  1423. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +185 -189
  1424. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +154 -156
  1425. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +72 -76
  1426. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.js +75 -79
  1427. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.js +896 -900
  1428. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +685 -687
  1429. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +569 -571
  1430. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +15 -17
  1431. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +304 -308
  1432. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +377 -379
  1433. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-6JOO6SKY.js +114 -116
  1434. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.js +87 -91
  1435. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +94 -96
  1436. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js +273 -279
  1437. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.js +59 -63
  1438. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +202 -212
  1439. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +564 -568
  1440. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +155 -157
  1441. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +9 -11
  1442. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +559 -561
  1443. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +370 -372
  1444. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +450 -454
  1445. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +658 -680
  1446. package/dist/node_modules/mermaid/dist/mermaid.core.js +430 -434
  1447. package/dist/node_modules/micromark/lib/constructs.js +79 -80
  1448. package/dist/node_modules/micromark/lib/create-tokenizer.js +12 -14
  1449. package/dist/node_modules/micromark/lib/initialize/content.js +7 -9
  1450. package/dist/node_modules/micromark/lib/initialize/document.js +14 -15
  1451. package/dist/node_modules/micromark/lib/initialize/flow.js +7 -9
  1452. package/dist/node_modules/micromark/lib/initialize/text.js +6 -8
  1453. package/dist/node_modules/micromark/lib/parse.js +18 -20
  1454. package/dist/node_modules/micromark/lib/postprocess.js +4 -6
  1455. package/dist/node_modules/micromark/lib/preprocess.js +4 -6
  1456. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +18 -20
  1457. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +15 -17
  1458. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +9 -11
  1459. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +13 -15
  1460. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +6 -8
  1461. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +14 -16
  1462. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +21 -22
  1463. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +15 -16
  1464. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +11 -13
  1465. package/dist/node_modules/micromark-core-commonmark/lib/content.js +17 -18
  1466. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +29 -30
  1467. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +6 -8
  1468. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +13 -15
  1469. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +67 -68
  1470. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +64 -66
  1471. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +111 -112
  1472. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +6 -8
  1473. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +6 -8
  1474. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +6 -8
  1475. package/dist/node_modules/micromark-core-commonmark/lib/list.js +31 -32
  1476. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +10 -12
  1477. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +9 -11
  1478. package/dist/node_modules/micromark-extension-gfm/index.js +14 -16
  1479. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +120 -122
  1480. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +31 -33
  1481. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +9 -11
  1482. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +4 -6
  1483. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -4
  1484. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +34 -36
  1485. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +18 -20
  1486. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +20 -21
  1487. package/dist/node_modules/micromark-extension-math/lib/math-text.js +9 -11
  1488. package/dist/node_modules/micromark-extension-math/lib/syntax.js +6 -8
  1489. package/dist/node_modules/micromark-factory-destination/index.js +8 -10
  1490. package/dist/node_modules/micromark-factory-label/index.js +5 -7
  1491. package/dist/node_modules/micromark-factory-space/index.js +5 -7
  1492. package/dist/node_modules/micromark-factory-title/index.js +6 -8
  1493. package/dist/node_modules/micromark-factory-whitespace/index.js +5 -7
  1494. package/dist/node_modules/micromark-util-character/index.js +12 -14
  1495. package/dist/node_modules/micromark-util-chunked/index.js +4 -6
  1496. package/dist/node_modules/micromark-util-classify-character/index.js +5 -7
  1497. package/dist/node_modules/micromark-util-combine-extensions/index.js +11 -13
  1498. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -4
  1499. package/dist/node_modules/micromark-util-decode-string/index.js +9 -11
  1500. package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -4
  1501. package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -4
  1502. package/dist/node_modules/micromark-util-resolve-all/index.js +2 -4
  1503. package/dist/node_modules/micromark-util-sanitize-uri/index.js +4 -6
  1504. package/dist/node_modules/micromark-util-subtokenize/index.js +8 -10
  1505. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +8 -10
  1506. package/dist/node_modules/motion/dist/es/react.js +2 -2
  1507. package/dist/node_modules/nanoid/index.browser.js +4 -6
  1508. package/dist/node_modules/nanoid/url-alphabet/index.js +2 -4
  1509. package/dist/node_modules/property-information/index.js +23 -25
  1510. package/dist/node_modules/property-information/lib/aria.js +39 -41
  1511. package/dist/node_modules/property-information/lib/find.js +16 -18
  1512. package/dist/node_modules/property-information/lib/hast-to-react.js +2 -4
  1513. package/dist/node_modules/property-information/lib/html.js +94 -96
  1514. package/dist/node_modules/property-information/lib/normalize.js +2 -4
  1515. package/dist/node_modules/property-information/lib/svg.js +77 -79
  1516. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +4 -6
  1517. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +2 -4
  1518. package/dist/node_modules/property-information/lib/util/create.js +8 -10
  1519. package/dist/node_modules/property-information/lib/util/defined-info.js +11 -13
  1520. package/dist/node_modules/property-information/lib/util/info.js +3 -5
  1521. package/dist/node_modules/property-information/lib/util/merge.js +4 -6
  1522. package/dist/node_modules/property-information/lib/util/schema.js +3 -5
  1523. package/dist/node_modules/property-information/lib/util/types.js +14 -15
  1524. package/dist/node_modules/property-information/lib/xlink.js +3 -5
  1525. package/dist/node_modules/property-information/lib/xml.js +3 -5
  1526. package/dist/node_modules/property-information/lib/xmlns.js +5 -7
  1527. package/dist/node_modules/rehype-harden/dist/index.js +45 -47
  1528. package/dist/node_modules/rehype-katex/lib/index.js +23 -25
  1529. package/dist/node_modules/rehype-raw/lib/index.js +4 -6
  1530. package/dist/node_modules/rehype-sanitize/lib/index.js +4 -6
  1531. package/dist/node_modules/remark-gfm/lib/index.js +7 -9
  1532. package/dist/node_modules/remark-math/lib/index.js +7 -9
  1533. package/dist/node_modules/remark-parse/lib/index.js +4 -6
  1534. package/dist/node_modules/remark-rehype/lib/index.js +5 -7
  1535. package/dist/node_modules/remend/dist/index.js +324 -326
  1536. package/dist/node_modules/roughjs/bundled/rough.esm.js +875 -877
  1537. package/dist/node_modules/shiki/dist/bundle-full.js +12 -13
  1538. package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +8 -10
  1539. package/dist/node_modules/shiki/dist/engine-oniguruma.js +5 -7
  1540. package/dist/node_modules/shiki/dist/langs-bundle-full-DfKZStlK.js +5 -7
  1541. package/dist/node_modules/shiki/dist/themes.js +3 -5
  1542. package/dist/node_modules/shiki/dist/wasm.js +2 -2
  1543. package/dist/node_modules/space-separated-tokens/index.js +3 -5
  1544. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +699 -701
  1545. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +8 -10
  1546. package/dist/node_modules/streamdown/dist/index.js +1 -1
  1547. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +2 -2
  1548. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +712 -709
  1549. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +2 -4
  1550. package/dist/node_modules/stringify-entities/lib/core.js +16 -18
  1551. package/dist/node_modules/stringify-entities/lib/index.js +5 -7
  1552. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +8 -10
  1553. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +4 -6
  1554. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +4 -6
  1555. package/dist/node_modules/stringify-entities/lib/util/to-named.js +12 -14
  1556. package/dist/node_modules/style-to-js/cjs/index.js +7 -9
  1557. package/dist/node_modules/style-to-js/cjs/utilities.js +4 -6
  1558. package/dist/node_modules/style-to-object/cjs/index.js +6 -8
  1559. package/dist/node_modules/stylis/src/Enum.js +2 -4
  1560. package/dist/node_modules/stylis/src/Parser.js +36 -38
  1561. package/dist/node_modules/stylis/src/Serializer.js +15 -17
  1562. package/dist/node_modules/stylis/src/Tokenizer.js +51 -53
  1563. package/dist/node_modules/stylis/src/Utility.js +15 -17
  1564. package/dist/node_modules/trim-lines/index.js +8 -10
  1565. package/dist/node_modules/trough/lib/index.js +4 -6
  1566. package/dist/node_modules/ts-dedent/esm/index.js +2 -4
  1567. package/dist/node_modules/unified/lib/callable-instance.js +2 -4
  1568. package/dist/node_modules/unified/lib/index.js +101 -102
  1569. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -4
  1570. package/dist/node_modules/unist-util-find-after/lib/index.js +4 -6
  1571. package/dist/node_modules/unist-util-is/lib/index.js +29 -31
  1572. package/dist/node_modules/unist-util-position/lib/index.js +5 -7
  1573. package/dist/node_modules/unist-util-stringify-position/lib/index.js +8 -10
  1574. package/dist/node_modules/unist-util-visit/lib/index.js +4 -6
  1575. package/dist/node_modules/unist-util-visit-parents/lib/color.js +2 -4
  1576. package/dist/node_modules/unist-util-visit-parents/lib/index.js +20 -21
  1577. package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -3
  1578. package/dist/node_modules/uuid/dist/esm-browser/rng.js +6 -8
  1579. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +5 -7
  1580. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -10
  1581. package/dist/node_modules/vaul/dist/index.js +274 -276
  1582. package/dist/node_modules/vfile/lib/index.js +42 -44
  1583. package/dist/node_modules/vfile/lib/minpath.browser.js +20 -22
  1584. package/dist/node_modules/vfile/lib/minproc.browser.js +3 -5
  1585. package/dist/node_modules/vfile/lib/minurl.browser.js +6 -8
  1586. package/dist/node_modules/vfile/lib/minurl.shared.js +2 -4
  1587. package/dist/node_modules/vfile-location/lib/index.js +5 -7
  1588. package/dist/node_modules/vfile-message/lib/index.js +5 -7
  1589. package/dist/node_modules/vscode-jsonrpc/browser.js +6 -8
  1590. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +9 -11
  1591. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +6 -8
  1592. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +26 -28
  1593. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +15 -17
  1594. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +11 -13
  1595. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +4 -6
  1596. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +6 -8
  1597. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +4 -6
  1598. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +4 -6
  1599. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +4 -6
  1600. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +9 -11
  1601. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +29 -31
  1602. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +6 -8
  1603. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +4 -6
  1604. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +6 -8
  1605. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +6 -8
  1606. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +8 -10
  1607. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +21 -23
  1608. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +6 -8
  1609. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +6 -8
  1610. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +6 -8
  1611. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +6 -8
  1612. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +6 -8
  1613. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +6 -8
  1614. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +12 -14
  1615. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -8
  1616. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +6 -8
  1617. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +6 -8
  1618. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +6 -8
  1619. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +6 -8
  1620. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +6 -8
  1621. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +53 -55
  1622. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +6 -8
  1623. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +6 -8
  1624. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +8 -10
  1625. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +10 -12
  1626. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +6 -8
  1627. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +6 -8
  1628. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +6 -8
  1629. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +6 -8
  1630. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +6 -8
  1631. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +6 -8
  1632. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +4 -6
  1633. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +19 -21
  1634. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +847 -849
  1635. package/dist/node_modules/vscode-uri/lib/esm/index.js +4 -6
  1636. package/dist/node_modules/web-namespaces/index.js +2 -4
  1637. package/dist/node_modules/zwitch/index.js +5 -7
  1638. package/dist/packages/contracts/dist/enums/index.js +12 -14
  1639. package/dist/packages/contracts/dist/enums/registry.enum.js +4 -6
  1640. package/dist/packages/contracts/dist/enums/sort-order.enum.js +4 -6
  1641. package/dist/packages/contracts/dist/enums/user-type.enum.js +4 -6
  1642. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +4 -6
  1643. package/dist/pages/DashboardPage.js +78 -59
  1644. package/dist/pages/DebugPage.js +17 -12
  1645. package/dist/pages/DebugWorkflowDetailsPage.js +105 -91
  1646. package/dist/pages/DebugWorkflowsPage.js +162 -125
  1647. package/dist/pages/EmbedWorkbenchPage.js +63 -48
  1648. package/dist/pages/PreviewWorkbenchPage.js +370 -271
  1649. package/dist/pages/RunsListPage.js +46 -43
  1650. package/dist/pages/RunsPage.js +33 -31
  1651. package/dist/pages/StudioLandingPage.js +132 -97
  1652. package/dist/pages/WorkbenchPage.js +65 -57
  1653. package/dist/pages/WorkflowDebugPage.js +96 -74
  1654. package/dist/pages/WorkspacePage.js +88 -72
  1655. package/dist/pages/WorkspaceRunsPage.js +75 -43
  1656. package/dist/pages/WorkspacesPage.js +17 -22
  1657. package/dist/providers/ComponentOverridesProvider.js +12 -9
  1658. package/dist/providers/InvalidationEventsProvider.js +35 -33
  1659. package/dist/providers/QueryProvider.js +18 -14
  1660. package/dist/providers/SseProvider.js +29 -28
  1661. package/dist/providers/StudioPreferencesProvider.js +54 -0
  1662. package/dist/providers/StudioProvider.js +19 -14
  1663. package/dist/routing/LocalRouter.js +9 -6
  1664. package/dist/services/createApiClient.js +5 -7
  1665. package/dist/services/eventEmitter.js +2 -3
  1666. package/dist/services/index.js +2 -2
  1667. package/dist/types/ai.types.js +5 -7
  1668. package/package.json +8 -8
  1669. package/dist/_virtual/_rolldown/runtime.js +0 -20
  1670. package/dist/features/documents/renderers/SecretInputRenderer.js +0 -89
  1671. package/dist/features/workbench/components/RemoteFileTabsBar.js +0 -19
  1672. package/dist/features/workbench/components/RemoteFileTree.js +0 -59
  1673. package/dist/features/workbench/components/WorkbenchFilesPanel.js +0 -56
  1674. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +0 -40
  1675. package/dist/features/workbench/components/WorkbenchFlowPanel.js +0 -38
  1676. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +0 -153
  1677. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +0 -145
  1678. package/dist/frontend/studio/node_modules/lodash/_Symbol.js +0 -9
  1679. package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +0 -15
  1680. package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +0 -13
  1681. package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +0 -8
  1682. package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +0 -19
  1683. package/dist/frontend/studio/node_modules/lodash/_objectToString.js +0 -12
  1684. package/dist/frontend/studio/node_modules/lodash/_root.js +0 -10
  1685. package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +0 -13
  1686. package/dist/frontend/studio/node_modules/lodash/isObject.js +0 -12
  1687. package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +0 -11
  1688. package/dist/frontend/studio/node_modules/lodash/isSymbol.js +0 -14
  1689. package/dist/frontend/studio/node_modules/lodash/now.js +0 -12
  1690. package/dist/frontend/studio/node_modules/lodash/toNumber.js +0 -24
  1691. package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +0 -1867
@@ -1,25 +1,24 @@
1
- import { __name as e, log as t } from "./chunk-AGHRB4JF.js";
2
- import n from "../../../../khroma/dist/methods/rgba.js";
3
- import r from "../../../../khroma/dist/methods/channel.js";
4
- import { clear as i, common_default as a, configureSvgSize as o, getConfig as s, getConfig2 as c, getEffectiveHtmlLabels as l, getUrl as u, sanitizeText as d } from "./chunk-ICPOFSXX.js";
5
- import f from "../../../../d3-selection/src/select.js";
6
- import p from "../../../../d3-shape/src/line.js";
7
- import m from "../../../../d3-shape/src/curve/basis.js";
1
+ import { __name, log } from "./chunk-AGHRB4JF.js";
2
+ import rgba_default from "../../../../khroma/dist/methods/rgba.js";
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";
5
+ import select_default from "../../../../d3-selection/src/select.js";
6
+ import line_default from "../../../../d3-shape/src/line.js";
7
+ import basis_default from "../../../../d3-shape/src/curve/basis.js";
8
8
  import "../../../../d3/src/index.js";
9
- import { computeLabelTransform as h, getLineFunctionsWithOffset as g } from "./chunk-BSJP7CBP.js";
10
- import { decodeEntities as _, getStylesFromArray as v, utils_default as y } from "./chunk-5PVQY5BW.js";
11
- import { configureLabelImages as b, getSubGraphTitleMargins as x } from "./chunk-ZZ45TVLE.js";
12
- import { createText as S } from "./chunk-U2HBQHQK.js";
13
- import { getIconStyles as C } from "./chunk-FMBD7UC4.js";
14
- import w from "../../../../lodash-es/clone.js";
15
- import { Graph as T } from "../../../../dagre-d3-es/src/graphlib/graph.js";
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";
13
+ import { getIconStyles } from "./chunk-FMBD7UC4.js";
14
+ import clone_default from "../../../../lodash-es/clone.js";
15
+ import { Graph } from "../../../../dagre-d3-es/src/graphlib/graph.js";
16
16
  import "../../../../dagre-d3-es/src/graphlib/index.js";
17
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.mjs
18
- var E = (function() {
19
- var t = /* @__PURE__ */ e(function(e, t, n, r) {
20
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
21
- return n;
22
- }, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], c = [1, 17], l = [1, 18], u = [8, 30], d = [
17
+ var parser = (function() {
18
+ var S = /* @__PURE__ */ __name(function(e, S, C, w) {
19
+ for (C ||= {}, w = e.length; w--; C[e[w]] = S);
20
+ return C;
21
+ }, "o"), C = [1, 15], w = [1, 7], T = [1, 13], E = [1, 14], D = [1, 19], O = [1, 16], k = [1, 17], A = [1, 18], j = [8, 30], M = [
23
22
  8,
24
23
  10,
25
24
  21,
@@ -30,7 +29,7 @@ var E = (function() {
30
29
  39,
31
30
  43,
32
31
  46
33
- ], f = [1, 23], p = [1, 24], m = [
32
+ ], N = [1, 23], P = [1, 24], F = [
34
33
  8,
35
34
  10,
36
35
  15,
@@ -43,7 +42,7 @@ var E = (function() {
43
42
  39,
44
43
  43,
45
44
  46
46
- ], h = [
45
+ ], I = [
47
46
  8,
48
47
  10,
49
48
  15,
@@ -57,8 +56,8 @@ var E = (function() {
57
56
  39,
58
57
  43,
59
58
  46
60
- ], g = [1, 49], _ = {
61
- trace: /* @__PURE__ */ e(function() {}, "trace"),
59
+ ], L = [1, 49], R = {
60
+ trace: /* @__PURE__ */ __name(function() {}, "trace"),
62
61
  yy: {},
63
62
  symbols_: {
64
63
  error: 2,
@@ -185,178 +184,178 @@ var E = (function() {
185
184
  [24, 3],
186
185
  [25, 3]
187
186
  ],
188
- performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
189
- var s = a.length - 1;
190
- switch (i) {
187
+ performAction: /* @__PURE__ */ __name(function(e, S, C, w, T, E, D) {
188
+ var O = E.length - 1;
189
+ switch (T) {
191
190
  case 4:
192
- r.getLogger().debug("Rule: separator (NL) ");
191
+ w.getLogger().debug("Rule: separator (NL) ");
193
192
  break;
194
193
  case 5:
195
- r.getLogger().debug("Rule: separator (Space) ");
194
+ w.getLogger().debug("Rule: separator (Space) ");
196
195
  break;
197
196
  case 6:
198
- r.getLogger().debug("Rule: separator (EOF) ");
197
+ w.getLogger().debug("Rule: separator (EOF) ");
199
198
  break;
200
199
  case 7:
201
- r.getLogger().debug("Rule: hierarchy: ", a[s - 1]), r.setHierarchy(a[s - 1]);
200
+ w.getLogger().debug("Rule: hierarchy: ", E[O - 1]), w.setHierarchy(E[O - 1]);
202
201
  break;
203
202
  case 8:
204
- r.getLogger().debug("Stop NL ");
203
+ w.getLogger().debug("Stop NL ");
205
204
  break;
206
205
  case 9:
207
- r.getLogger().debug("Stop EOF ");
206
+ w.getLogger().debug("Stop EOF ");
208
207
  break;
209
208
  case 10:
210
- r.getLogger().debug("Stop NL2 ");
209
+ w.getLogger().debug("Stop NL2 ");
211
210
  break;
212
211
  case 11:
213
- r.getLogger().debug("Stop EOF2 ");
212
+ w.getLogger().debug("Stop EOF2 ");
214
213
  break;
215
214
  case 12:
216
- r.getLogger().debug("Rule: statement: ", a[s]), typeof a[s].length == "number" ? this.$ = a[s] : this.$ = [a[s]];
215
+ w.getLogger().debug("Rule: statement: ", E[O]), typeof E[O].length == "number" ? this.$ = E[O] : this.$ = [E[O]];
217
216
  break;
218
217
  case 13:
219
- r.getLogger().debug("Rule: statement #2: ", a[s - 1]), this.$ = [a[s - 1]].concat(a[s]);
218
+ w.getLogger().debug("Rule: statement #2: ", E[O - 1]), this.$ = [E[O - 1]].concat(E[O]);
220
219
  break;
221
220
  case 14:
222
- r.getLogger().debug("Rule: link: ", a[s], e), this.$ = {
223
- edgeTypeStr: a[s],
221
+ w.getLogger().debug("Rule: link: ", E[O], e), this.$ = {
222
+ edgeTypeStr: E[O],
224
223
  label: ""
225
224
  };
226
225
  break;
227
226
  case 15:
228
- r.getLogger().debug("Rule: LABEL link: ", a[s - 3], a[s - 1], a[s]), this.$ = {
229
- edgeTypeStr: a[s],
230
- label: a[s - 1]
227
+ w.getLogger().debug("Rule: LABEL link: ", E[O - 3], E[O - 1], E[O]), this.$ = {
228
+ edgeTypeStr: E[O],
229
+ label: E[O - 1]
231
230
  };
232
231
  break;
233
232
  case 18:
234
- let t = parseInt(a[s]);
233
+ let S = parseInt(E[O]);
235
234
  this.$ = {
236
- id: r.generateId(),
235
+ id: w.generateId(),
237
236
  type: "space",
238
237
  label: "",
239
- width: t,
238
+ width: S,
240
239
  children: []
241
240
  };
242
241
  break;
243
242
  case 23:
244
- r.getLogger().debug("Rule: (nodeStatement link node) ", a[s - 2], a[s - 1], a[s], " typestr: ", a[s - 1].edgeTypeStr);
245
- let n = r.edgeStrToEdgeData(a[s - 1].edgeTypeStr);
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);
246
245
  this.$ = [
247
246
  {
248
- id: a[s - 2].id,
249
- label: a[s - 2].label,
250
- type: a[s - 2].type,
251
- directions: a[s - 2].directions
247
+ id: E[O - 2].id,
248
+ label: E[O - 2].label,
249
+ type: E[O - 2].type,
250
+ directions: E[O - 2].directions
252
251
  },
253
252
  {
254
- id: a[s - 2].id + "-" + a[s].id,
255
- start: a[s - 2].id,
256
- end: a[s].id,
257
- label: a[s - 1].label,
253
+ id: E[O - 2].id + "-" + E[O].id,
254
+ start: E[O - 2].id,
255
+ end: E[O].id,
256
+ label: E[O - 1].label,
258
257
  type: "edge",
259
- directions: a[s].directions,
260
- arrowTypeEnd: n,
258
+ directions: E[O].directions,
259
+ arrowTypeEnd: C,
261
260
  arrowTypeStart: "arrow_open"
262
261
  },
263
262
  {
264
- id: a[s].id,
265
- label: a[s].label,
266
- type: r.typeStr2Type(a[s].typeStr),
267
- directions: a[s].directions
263
+ id: E[O].id,
264
+ label: E[O].label,
265
+ type: w.typeStr2Type(E[O].typeStr),
266
+ directions: E[O].directions
268
267
  }
269
268
  ];
270
269
  break;
271
270
  case 24:
272
- r.getLogger().debug("Rule: nodeStatement (abc88 node size) ", a[s - 1], a[s]), this.$ = {
273
- id: a[s - 1].id,
274
- label: a[s - 1].label,
275
- type: r.typeStr2Type(a[s - 1].typeStr),
276
- directions: a[s - 1].directions,
277
- widthInColumns: parseInt(a[s], 10)
271
+ w.getLogger().debug("Rule: nodeStatement (abc88 node size) ", E[O - 1], E[O]), this.$ = {
272
+ id: E[O - 1].id,
273
+ label: E[O - 1].label,
274
+ type: w.typeStr2Type(E[O - 1].typeStr),
275
+ directions: E[O - 1].directions,
276
+ widthInColumns: parseInt(E[O], 10)
278
277
  };
279
278
  break;
280
279
  case 25:
281
- r.getLogger().debug("Rule: nodeStatement (node) ", a[s]), this.$ = {
282
- id: a[s].id,
283
- label: a[s].label,
284
- type: r.typeStr2Type(a[s].typeStr),
285
- directions: a[s].directions,
280
+ w.getLogger().debug("Rule: nodeStatement (node) ", E[O]), this.$ = {
281
+ id: E[O].id,
282
+ label: E[O].label,
283
+ type: w.typeStr2Type(E[O].typeStr),
284
+ directions: E[O].directions,
286
285
  widthInColumns: 1
287
286
  };
288
287
  break;
289
288
  case 26:
290
- r.getLogger().debug("APA123", this ? this : "na"), r.getLogger().debug("COLUMNS: ", a[s]), this.$ = {
289
+ w.getLogger().debug("APA123", this ? this : "na"), w.getLogger().debug("COLUMNS: ", E[O]), this.$ = {
291
290
  type: "column-setting",
292
- columns: a[s] === "auto" ? -1 : parseInt(a[s])
291
+ columns: E[O] === "auto" ? -1 : parseInt(E[O])
293
292
  };
294
293
  break;
295
294
  case 27:
296
- r.getLogger().debug("Rule: id-block statement : ", a[s - 2], a[s - 1]), r.generateId(), this.$ = {
297
- ...a[s - 2],
295
+ w.getLogger().debug("Rule: id-block statement : ", E[O - 2], E[O - 1]), w.generateId(), this.$ = {
296
+ ...E[O - 2],
298
297
  type: "composite",
299
- children: a[s - 1]
298
+ children: E[O - 1]
300
299
  };
301
300
  break;
302
301
  case 28:
303
- r.getLogger().debug("Rule: blockStatement : ", a[s - 2], a[s - 1], a[s]), this.$ = {
304
- id: r.generateId(),
302
+ w.getLogger().debug("Rule: blockStatement : ", E[O - 2], E[O - 1], E[O]), this.$ = {
303
+ id: w.generateId(),
305
304
  type: "composite",
306
305
  label: "",
307
- children: a[s - 1]
306
+ children: E[O - 1]
308
307
  };
309
308
  break;
310
309
  case 29:
311
- r.getLogger().debug("Rule: node (NODE_ID separator): ", a[s]), this.$ = { id: a[s] };
310
+ w.getLogger().debug("Rule: node (NODE_ID separator): ", E[O]), this.$ = { id: E[O] };
312
311
  break;
313
312
  case 30:
314
- r.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", a[s - 1], a[s]), this.$ = {
315
- id: a[s - 1],
316
- label: a[s].label,
317
- typeStr: a[s].typeStr,
318
- directions: a[s].directions
313
+ w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", E[O - 1], E[O]), this.$ = {
314
+ id: E[O - 1],
315
+ label: E[O].label,
316
+ typeStr: E[O].typeStr,
317
+ directions: E[O].directions
319
318
  };
320
319
  break;
321
320
  case 31:
322
- r.getLogger().debug("Rule: dirList: ", a[s]), this.$ = [a[s]];
321
+ w.getLogger().debug("Rule: dirList: ", E[O]), this.$ = [E[O]];
323
322
  break;
324
323
  case 32:
325
- r.getLogger().debug("Rule: dirList: ", a[s - 1], a[s]), this.$ = [a[s - 1]].concat(a[s]);
324
+ w.getLogger().debug("Rule: dirList: ", E[O - 1], E[O]), this.$ = [E[O - 1]].concat(E[O]);
326
325
  break;
327
326
  case 33:
328
- r.getLogger().debug("Rule: nodeShapeNLabel: ", a[s - 2], a[s - 1], a[s]), this.$ = {
329
- typeStr: a[s - 2] + a[s],
330
- label: a[s - 1]
327
+ w.getLogger().debug("Rule: nodeShapeNLabel: ", E[O - 2], E[O - 1], E[O]), this.$ = {
328
+ typeStr: E[O - 2] + E[O],
329
+ label: E[O - 1]
331
330
  };
332
331
  break;
333
332
  case 34:
334
- r.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", a[s - 3], a[s - 2], " #3:", a[s - 1], a[s]), this.$ = {
335
- typeStr: a[s - 3] + a[s],
336
- label: a[s - 2],
337
- directions: a[s - 1]
333
+ w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", E[O - 3], E[O - 2], " #3:", E[O - 1], E[O]), this.$ = {
334
+ typeStr: E[O - 3] + E[O],
335
+ label: E[O - 2],
336
+ directions: E[O - 1]
338
337
  };
339
338
  break;
340
339
  case 35:
341
340
  case 36:
342
341
  this.$ = {
343
342
  type: "classDef",
344
- id: a[s - 1].trim(),
345
- css: a[s].trim()
343
+ id: E[O - 1].trim(),
344
+ css: E[O].trim()
346
345
  };
347
346
  break;
348
347
  case 37:
349
348
  this.$ = {
350
349
  type: "applyClass",
351
- id: a[s - 1].trim(),
352
- styleClass: a[s].trim()
350
+ id: E[O - 1].trim(),
351
+ styleClass: E[O].trim()
353
352
  };
354
353
  break;
355
354
  case 38:
356
355
  this.$ = {
357
356
  type: "applyStyles",
358
- id: a[s - 1].trim(),
359
- stylesStr: a[s].trim()
357
+ id: E[O - 1].trim(),
358
+ stylesStr: E[O].trim()
360
359
  };
361
360
  break;
362
361
  }
@@ -368,26 +367,26 @@ var E = (function() {
368
367
  },
369
368
  { 1: [3] },
370
369
  {
371
- 10: n,
370
+ 10: C,
372
371
  11: 3,
373
372
  13: 4,
374
373
  19: 5,
375
374
  20: 6,
376
- 21: r,
375
+ 21: w,
377
376
  22: 8,
378
377
  23: 9,
379
378
  24: 10,
380
379
  25: 11,
381
380
  26: 12,
382
- 28: i,
383
- 29: a,
384
- 31: o,
385
- 39: s,
386
- 43: c,
387
- 46: l
381
+ 28: T,
382
+ 29: E,
383
+ 31: D,
384
+ 39: O,
385
+ 43: k,
386
+ 46: A
388
387
  },
389
388
  { 8: [1, 20] },
390
- t(u, [2, 12], {
389
+ S(j, [2, 12], {
391
390
  13: 4,
392
391
  19: 5,
393
392
  20: 6,
@@ -397,51 +396,51 @@ var E = (function() {
397
396
  25: 11,
398
397
  26: 12,
399
398
  11: 21,
400
- 10: n,
401
- 21: r,
402
- 28: i,
403
- 29: a,
404
- 31: o,
405
- 39: s,
406
- 43: c,
407
- 46: l
399
+ 10: C,
400
+ 21: w,
401
+ 28: T,
402
+ 29: E,
403
+ 31: D,
404
+ 39: O,
405
+ 43: k,
406
+ 46: A
408
407
  }),
409
- t(d, [2, 16], {
408
+ S(M, [2, 16], {
410
409
  14: 22,
411
- 15: f,
412
- 16: p
410
+ 15: N,
411
+ 16: P
413
412
  }),
414
- t(d, [2, 17]),
415
- t(d, [2, 18]),
416
- t(d, [2, 19]),
417
- t(d, [2, 20]),
418
- t(d, [2, 21]),
419
- t(d, [2, 22]),
420
- t(m, [2, 25], { 27: [1, 25] }),
421
- t(d, [2, 26]),
413
+ S(M, [2, 17]),
414
+ S(M, [2, 18]),
415
+ S(M, [2, 19]),
416
+ S(M, [2, 20]),
417
+ S(M, [2, 21]),
418
+ S(M, [2, 22]),
419
+ S(F, [2, 25], { 27: [1, 25] }),
420
+ S(M, [2, 26]),
422
421
  {
423
422
  19: 26,
424
423
  26: 12,
425
- 31: o
424
+ 31: D
426
425
  },
427
426
  {
428
- 10: n,
427
+ 10: C,
429
428
  11: 27,
430
429
  13: 4,
431
430
  19: 5,
432
431
  20: 6,
433
- 21: r,
432
+ 21: w,
434
433
  22: 8,
435
434
  23: 9,
436
435
  24: 10,
437
436
  25: 11,
438
437
  26: 12,
439
- 28: i,
440
- 29: a,
441
- 31: o,
442
- 39: s,
443
- 43: c,
444
- 46: l
438
+ 28: T,
439
+ 29: E,
440
+ 31: D,
441
+ 39: O,
442
+ 43: k,
443
+ 46: A
445
444
  },
446
445
  {
447
446
  40: [1, 28],
@@ -449,74 +448,74 @@ var E = (function() {
449
448
  },
450
449
  { 44: [1, 30] },
451
450
  { 47: [1, 31] },
452
- t(h, [2, 29], {
451
+ S(I, [2, 29], {
453
452
  32: 32,
454
453
  35: [1, 33],
455
454
  37: [1, 34]
456
455
  }),
457
456
  { 1: [2, 7] },
458
- t(u, [2, 13]),
457
+ S(j, [2, 13]),
459
458
  {
460
459
  26: 35,
461
- 31: o
460
+ 31: D
462
461
  },
463
462
  { 31: [2, 14] },
464
463
  { 17: [1, 36] },
465
- t(m, [2, 24]),
464
+ S(F, [2, 24]),
466
465
  {
467
- 10: n,
466
+ 10: C,
468
467
  11: 37,
469
468
  13: 4,
470
469
  14: 22,
471
- 15: f,
472
- 16: p,
470
+ 15: N,
471
+ 16: P,
473
472
  19: 5,
474
473
  20: 6,
475
- 21: r,
474
+ 21: w,
476
475
  22: 8,
477
476
  23: 9,
478
477
  24: 10,
479
478
  25: 11,
480
479
  26: 12,
481
- 28: i,
482
- 29: a,
483
- 31: o,
484
- 39: s,
485
- 43: c,
486
- 46: l
480
+ 28: T,
481
+ 29: E,
482
+ 31: D,
483
+ 39: O,
484
+ 43: k,
485
+ 46: A
487
486
  },
488
487
  { 30: [1, 38] },
489
488
  { 41: [1, 39] },
490
489
  { 41: [1, 40] },
491
490
  { 45: [1, 41] },
492
491
  { 48: [1, 42] },
493
- t(h, [2, 30]),
492
+ S(I, [2, 30]),
494
493
  { 18: [1, 43] },
495
494
  { 18: [1, 44] },
496
- t(m, [2, 23]),
495
+ S(F, [2, 23]),
497
496
  { 18: [1, 45] },
498
497
  { 30: [1, 46] },
499
- t(d, [2, 28]),
500
- t(d, [2, 35]),
501
- t(d, [2, 36]),
502
- t(d, [2, 37]),
503
- t(d, [2, 38]),
498
+ S(M, [2, 28]),
499
+ S(M, [2, 35]),
500
+ S(M, [2, 36]),
501
+ S(M, [2, 37]),
502
+ S(M, [2, 38]),
504
503
  { 36: [1, 47] },
505
504
  {
506
505
  33: 48,
507
- 34: g
506
+ 34: L
508
507
  },
509
508
  { 15: [1, 50] },
510
- t(d, [2, 27]),
511
- t(h, [2, 33]),
509
+ S(M, [2, 27]),
510
+ S(I, [2, 33]),
512
511
  { 38: [1, 51] },
513
512
  {
514
513
  33: 52,
515
- 34: g,
514
+ 34: L,
516
515
  38: [2, 31]
517
516
  },
518
517
  { 31: [2, 15] },
519
- t(h, [2, 34]),
518
+ S(I, [2, 34]),
520
519
  { 38: [2, 32] }
521
520
  ],
522
521
  defaultActions: {
@@ -525,63 +524,63 @@ var E = (function() {
525
524
  50: [2, 15],
526
525
  52: [2, 32]
527
526
  },
528
- parseError: /* @__PURE__ */ e(function(e, t) {
529
- if (t.recoverable) this.trace(e);
527
+ parseError: /* @__PURE__ */ __name(function(e, S) {
528
+ if (S.recoverable) this.trace(e);
530
529
  else {
531
- var n = Error(e);
532
- throw n.hash = t, n;
530
+ var C = Error(e);
531
+ throw C.hash = S, C;
533
532
  }
534
533
  }, "parseError"),
535
- parse: /* @__PURE__ */ e(function(t) {
536
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
537
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
538
- h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
539
- var v = h.yylloc;
540
- o.push(v);
541
- var y = h.options && h.options.ranges;
542
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
543
- function b(e) {
544
- r.length -= 2 * e, a.length -= e, o.length -= e;
534
+ parse: /* @__PURE__ */ __name(function(S) {
535
+ var C = this, w = [0], T = [], E = [null], D = [], O = this.table, k = "", A = 0, j = 0, M = 0, N = 2, P = 1, F = D.slice.call(arguments, 1), I = Object.create(this.lexer), L = { yy: {} };
536
+ for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (L.yy[R] = this.yy[R]);
537
+ I.setInput(S, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
538
+ var z = I.yylloc;
539
+ D.push(z);
540
+ var B = I.options && I.options.ranges;
541
+ typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
542
+ function V(e) {
543
+ w.length -= 2 * e, E.length -= e, D.length -= e;
545
544
  }
546
- e(b, "popStack");
547
- function x() {
548
- var e = i.pop() || h.lex() || p;
549
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
545
+ __name(V, "popStack");
546
+ function H() {
547
+ var e = T.pop() || I.lex() || P;
548
+ return typeof e != "number" && (e instanceof Array && (T = e, e = T.pop()), e = C.symbols_[e] || e), e;
550
549
  }
551
- e(x, "lex");
552
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
553
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
554
- var M = "";
555
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
556
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
557
- text: h.match,
558
- token: this.terminals_[S] || S,
559
- line: h.yylineno,
560
- loc: v,
561
- expected: j
550
+ __name(H, "lex");
551
+ for (var U, W, G, K, q, J = {}, Y, X, Z, Q;;) {
552
+ if (G = w[w.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ??= H(), K = O[G] && O[G][U]), K === void 0 || !K.length || !K[0]) {
553
+ var $ = "";
554
+ for (Y in Q = [], O[G]) this.terminals_[Y] && Y > N && Q.push("'" + this.terminals_[Y] + "'");
555
+ $ = I.showPosition ? "Parse error on line " + (A + 1) + ":\n" + I.showPosition() + "\nExpecting " + Q.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : "Parse error on line " + (A + 1) + ": Unexpected " + (U == P ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError($, {
556
+ text: I.match,
557
+ token: this.terminals_[U] || U,
558
+ line: I.yylineno,
559
+ loc: z,
560
+ expected: Q
562
561
  });
563
562
  }
564
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
565
- switch (T[0]) {
563
+ if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
564
+ switch (K[0]) {
566
565
  case 1:
567
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
566
+ w.push(U), E.push(I.yytext), D.push(I.yylloc), w.push(K[1]), U = null, W ? (U = W, W = null) : (j = I.yyleng, k = I.yytext, A = I.yylineno, z = I.yylloc, M > 0 && M--);
568
567
  break;
569
568
  case 2:
570
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
571
- first_line: o[o.length - (k || 1)].first_line,
572
- last_line: o[o.length - 1].last_line,
573
- first_column: o[o.length - (k || 1)].first_column,
574
- last_column: o[o.length - 1].last_column
575
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
576
- c,
577
- u,
578
- l,
579
- g.yy,
580
- T[1],
581
- a,
582
- o
583
- ].concat(m)), E !== void 0) return E;
584
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
569
+ if (X = this.productions_[K[1]][1], J.$ = E[E.length - X], J._$ = {
570
+ first_line: D[D.length - (X || 1)].first_line,
571
+ last_line: D[D.length - 1].last_line,
572
+ first_column: D[D.length - (X || 1)].first_column,
573
+ last_column: D[D.length - 1].last_column
574
+ }, B && (J._$.range = [D[D.length - (X || 1)].range[0], D[D.length - 1].range[1]]), q = this.performAction.apply(J, [
575
+ k,
576
+ j,
577
+ A,
578
+ L.yy,
579
+ K[1],
580
+ E,
581
+ D
582
+ ].concat(F)), q !== void 0) return q;
583
+ X && (w = w.slice(0, -1 * X * 2), E = E.slice(0, -1 * X), D = D.slice(0, -1 * X)), w.push(this.productions_[K[1]][0]), E.push(J.$), D.push(J._$), Z = O[w[w.length - 2]][w[w.length - 1]], w.push(Z);
585
584
  break;
586
585
  case 3: return !0;
587
586
  }
@@ -589,42 +588,42 @@ var E = (function() {
589
588
  return !0;
590
589
  }, "parse")
591
590
  };
592
- _.lexer = /* @__PURE__ */ (function() {
591
+ R.lexer = /* @__PURE__ */ (function() {
593
592
  return {
594
593
  EOF: 1,
595
- parseError: /* @__PURE__ */ e(function(e, t) {
596
- if (this.yy.parser) this.yy.parser.parseError(e, t);
594
+ parseError: /* @__PURE__ */ __name(function(e, S) {
595
+ if (this.yy.parser) this.yy.parser.parseError(e, S);
597
596
  else throw Error(e);
598
597
  }, "parseError"),
599
- setInput: /* @__PURE__ */ e(function(e, t) {
600
- return this.yy = t || 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 = {
598
+ setInput: /* @__PURE__ */ __name(function(e, S) {
599
+ return this.yy = S || 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 = {
601
600
  first_line: 1,
602
601
  first_column: 0,
603
602
  last_line: 1,
604
603
  last_column: 0
605
604
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
606
605
  }, "setInput"),
607
- input: /* @__PURE__ */ e(function() {
606
+ input: /* @__PURE__ */ __name(function() {
608
607
  var e = this._input[0];
609
608
  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;
610
609
  }, "input"),
611
- unput: /* @__PURE__ */ e(function(e) {
612
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
613
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
614
- var r = this.match.split(/(?:\r\n?|\n)/g);
615
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
616
- var i = this.yylloc.range;
610
+ unput: /* @__PURE__ */ __name(function(e) {
611
+ var S = e.length, C = e.split(/(?:\r\n?|\n)/g);
612
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S), this.offset -= S;
613
+ var w = this.match.split(/(?:\r\n?|\n)/g);
614
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1);
615
+ var T = this.yylloc.range;
617
616
  return this.yylloc = {
618
617
  first_line: this.yylloc.first_line,
619
618
  last_line: this.yylineno + 1,
620
619
  first_column: this.yylloc.first_column,
621
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
622
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
620
+ last_column: C ? (C.length === w.length ? this.yylloc.first_column : 0) + w[w.length - C.length].length - C[0].length : this.yylloc.first_column - S
621
+ }, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this;
623
622
  }, "unput"),
624
- more: /* @__PURE__ */ e(function() {
623
+ more: /* @__PURE__ */ __name(function() {
625
624
  return this._more = !0, this;
626
625
  }, "more"),
627
- reject: /* @__PURE__ */ e(function() {
626
+ reject: /* @__PURE__ */ __name(function() {
628
627
  if (this.options.backtrack_lexer) this._backtrack = !0;
629
628
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
630
629
  text: "",
@@ -633,24 +632,24 @@ var E = (function() {
633
632
  });
634
633
  return this;
635
634
  }, "reject"),
636
- less: /* @__PURE__ */ e(function(e) {
635
+ less: /* @__PURE__ */ __name(function(e) {
637
636
  this.unput(this.match.slice(e));
638
637
  }, "less"),
639
- pastInput: /* @__PURE__ */ e(function() {
638
+ pastInput: /* @__PURE__ */ __name(function() {
640
639
  var e = this.matched.substr(0, this.matched.length - this.match.length);
641
640
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
642
641
  }, "pastInput"),
643
- upcomingInput: /* @__PURE__ */ e(function() {
642
+ upcomingInput: /* @__PURE__ */ __name(function() {
644
643
  var e = this.match;
645
644
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
646
645
  }, "upcomingInput"),
647
- showPosition: /* @__PURE__ */ e(function() {
648
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
649
- return e + this.upcomingInput() + "\n" + t + "^";
646
+ showPosition: /* @__PURE__ */ __name(function() {
647
+ var e = this.pastInput(), S = Array(e.length + 1).join("-");
648
+ return e + this.upcomingInput() + "\n" + S + "^";
650
649
  }, "showPosition"),
651
- test_match: /* @__PURE__ */ e(function(e, t) {
652
- var n, r, i;
653
- if (this.options.backtrack_lexer && (i = {
650
+ test_match: /* @__PURE__ */ __name(function(e, S) {
651
+ var C, w, T;
652
+ if (this.options.backtrack_lexer && (T = {
654
653
  yylineno: this.yylineno,
655
654
  yylloc: {
656
655
  first_line: this.yylloc.first_line,
@@ -669,74 +668,74 @@ var E = (function() {
669
668
  yy: this.yy,
670
669
  conditionStack: this.conditionStack.slice(0),
671
670
  done: this.done
672
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
671
+ }, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), w = e[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
673
672
  first_line: this.yylloc.last_line,
674
673
  last_line: this.yylineno + 1,
675
674
  first_column: this.yylloc.last_column,
676
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
677
- }, 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], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
675
+ last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
676
+ }, 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], C = this.performAction.call(this, this.yy, this, S, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
678
677
  if (this._backtrack) {
679
- for (var a in i) this[a] = i[a];
678
+ for (var E in T) this[E] = T[E];
680
679
  return !1;
681
680
  }
682
681
  return !1;
683
682
  }, "test_match"),
684
- next: /* @__PURE__ */ e(function() {
683
+ next: /* @__PURE__ */ __name(function() {
685
684
  if (this.done) return this.EOF;
686
685
  this._input || (this.done = !0);
687
- var e, t, n, r;
686
+ var e, S, C, w;
688
687
  this._more || (this.yytext = "", this.match = "");
689
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
690
- if (t = n, r = a, this.options.backtrack_lexer) {
691
- if (e = this.test_match(n, i[a]), e !== !1) return e;
688
+ for (var T = this._currentRules(), E = 0; E < T.length; E++) if (C = this._input.match(this.rules[T[E]]), C && (!S || C[0].length > S[0].length)) {
689
+ if (S = C, w = E, this.options.backtrack_lexer) {
690
+ if (e = this.test_match(C, T[E]), e !== !1) return e;
692
691
  if (this._backtrack) {
693
- t = !1;
692
+ S = !1;
694
693
  continue;
695
694
  } else return !1;
696
695
  } else if (!this.options.flex) break;
697
696
  }
698
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
697
+ return S ? (e = this.test_match(S, T[w]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
699
698
  text: "",
700
699
  token: null,
701
700
  line: this.yylineno
702
701
  });
703
702
  }, "next"),
704
- lex: /* @__PURE__ */ e(function() {
703
+ lex: /* @__PURE__ */ __name(function() {
705
704
  return this.next() || this.lex();
706
705
  }, "lex"),
707
- begin: /* @__PURE__ */ e(function(e) {
706
+ begin: /* @__PURE__ */ __name(function(e) {
708
707
  this.conditionStack.push(e);
709
708
  }, "begin"),
710
- popState: /* @__PURE__ */ e(function() {
709
+ popState: /* @__PURE__ */ __name(function() {
711
710
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
712
711
  }, "popState"),
713
- _currentRules: /* @__PURE__ */ e(function() {
712
+ _currentRules: /* @__PURE__ */ __name(function() {
714
713
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
715
714
  }, "_currentRules"),
716
- topState: /* @__PURE__ */ e(function(e) {
715
+ topState: /* @__PURE__ */ __name(function(e) {
717
716
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
718
717
  }, "topState"),
719
- pushState: /* @__PURE__ */ e(function(e) {
718
+ pushState: /* @__PURE__ */ __name(function(e) {
720
719
  this.begin(e);
721
720
  }, "pushState"),
722
- stateStackSize: /* @__PURE__ */ e(function() {
721
+ stateStackSize: /* @__PURE__ */ __name(function() {
723
722
  return this.conditionStack.length;
724
723
  }, "stateStackSize"),
725
724
  options: {},
726
- performAction: /* @__PURE__ */ e(function(e, t, n, r) {
727
- switch (n) {
725
+ performAction: /* @__PURE__ */ __name(function(e, S, C, w) {
726
+ switch (C) {
728
727
  case 0: return e.getLogger().debug("Found block-beta"), 10;
729
728
  case 1: return e.getLogger().debug("Found id-block"), 29;
730
729
  case 2: return e.getLogger().debug("Found block"), 10;
731
730
  case 3:
732
- e.getLogger().debug(".", t.yytext);
731
+ e.getLogger().debug(".", S.yytext);
733
732
  break;
734
733
  case 4:
735
- e.getLogger().debug("_", t.yytext);
734
+ e.getLogger().debug("_", S.yytext);
736
735
  break;
737
736
  case 5: return 5;
738
- case 6: return t.yytext = -1, 28;
739
- case 7: return t.yytext = t.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", t.yytext), 28;
737
+ case 6: return S.yytext = -1, 28;
738
+ case 7: return S.yytext = S.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", S.yytext), 28;
740
739
  case 8:
741
740
  this.pushState("md_string");
742
741
  break;
@@ -748,11 +747,11 @@ var E = (function() {
748
747
  this.pushState("string");
749
748
  break;
750
749
  case 12:
751
- e.getLogger().debug("LEX: POPPING STR:", t.yytext), this.popState();
750
+ e.getLogger().debug("LEX: POPPING STR:", S.yytext), this.popState();
752
751
  break;
753
- case 13: return e.getLogger().debug("LEX: STR end:", t.yytext), "STR";
754
- case 14: return t.yytext = t.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", t.yytext), 21;
755
- case 15: return t.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", t.yytext), 21;
752
+ case 13: return e.getLogger().debug("LEX: STR end:", S.yytext), "STR";
753
+ case 14: return S.yytext = S.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", S.yytext), 21;
754
+ case 15: return S.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", S.yytext), 21;
756
755
  case 16: return 42;
757
756
  case 17: return "LINKSTYLE";
758
757
  case 18: return "INTERPOLATE";
@@ -815,8 +814,8 @@ var E = (function() {
815
814
  case 71: return this.pushState("NODE"), 35;
816
815
  case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
817
816
  case 73: return this.pushState("BLOCK_ARROW"), e.getLogger().debug("LEX ARR START"), 37;
818
- case 74: return e.getLogger().debug("Lex: NODE_ID", t.yytext), 31;
819
- case 75: return e.getLogger().debug("Lex: EOF", t.yytext), 8;
817
+ case 74: return e.getLogger().debug("Lex: NODE_ID", S.yytext), 31;
818
+ case 75: return e.getLogger().debug("Lex: EOF", S.yytext), 8;
820
819
  case 76:
821
820
  this.pushState("md_string");
822
821
  break;
@@ -833,35 +832,35 @@ var E = (function() {
833
832
  case 81:
834
833
  e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
835
834
  break;
836
- case 82: return e.getLogger().debug("LEX: NODE_DESCR:", t.yytext), "NODE_DESCR";
835
+ case 82: return e.getLogger().debug("LEX: NODE_DESCR:", S.yytext), "NODE_DESCR";
837
836
  case 83:
838
837
  e.getLogger().debug("LEX POPPING"), this.popState();
839
838
  break;
840
839
  case 84:
841
840
  e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
842
841
  break;
843
- case 85: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", t.yytext), "DIR";
844
- case 86: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", t.yytext), "DIR";
845
- case 87: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", t.yytext), "DIR";
846
- case 88: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", t.yytext), "DIR";
847
- case 89: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", t.yytext), "DIR";
848
- case 90: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", t.yytext), "DIR";
849
- case 91: return t.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", t.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
850
- case 92: return e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
851
- case 93: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
852
- case 94: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
853
- case 95: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
854
- case 96: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
855
- case 97: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
856
- case 98: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
842
+ case 85: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", S.yytext), "DIR";
843
+ case 86: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", S.yytext), "DIR";
844
+ case 87: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", S.yytext), "DIR";
845
+ case 88: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", S.yytext), "DIR";
846
+ case 89: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", S.yytext), "DIR";
847
+ case 90: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", S.yytext), "DIR";
848
+ case 91: return S.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", S.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
849
+ case 92: return e.getLogger().debug("Lex: LINK", "#" + S.yytext + "#"), 15;
850
+ case 93: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
851
+ case 94: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
852
+ case 95: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
853
+ case 96: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
854
+ case 97: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
855
+ case 98: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
857
856
  case 99:
858
857
  this.pushState("md_string");
859
858
  break;
860
859
  case 100: return e.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
861
- case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
862
- case 102: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
863
- case 103: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
864
- case 104: return e.getLogger().debug("Lex: COLON", t.yytext), t.yytext = t.yytext.slice(1), 27;
860
+ case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + S.yytext + "#"), 15;
861
+ case 102: return this.popState(), e.getLogger().debug("Lex: LINK", S.yytext), 15;
862
+ case 103: return this.popState(), e.getLogger().debug("Lex: LINK", S.yytext), 15;
863
+ case 104: return e.getLogger().debug("Lex: COLON", S.yytext), S.yytext = S.yytext.slice(1), 27;
865
864
  }
866
865
  }, "anonymous"),
867
866
  rules: [
@@ -1144,91 +1143,91 @@ var E = (function() {
1144
1143
  }
1145
1144
  };
1146
1145
  })();
1147
- function v() {
1146
+ function z() {
1148
1147
  this.yy = {};
1149
1148
  }
1150
- return e(v, "Parser"), v.prototype = _, _.Parser = v, new v();
1149
+ return __name(z, "Parser"), z.prototype = R, R.Parser = z, new z();
1151
1150
  })();
1152
- E.parser = E;
1153
- var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(), j = "color", M = "fill", ee = "bgFill", te = ",", ne = c(), N = /* @__PURE__ */ new Map(), re = "", ie = /* @__PURE__ */ e((e) => a.sanitizeText(e, ne), "sanitizeText"), ae = /* @__PURE__ */ e(function(e, t = "") {
1154
- let n = N.get(e);
1155
- n || (n = {
1151
+ parser.parser = parser;
1152
+ var block_default = parser, blockDatabase = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), COLOR_KEYWORD = "color", FILL_KEYWORD = "fill", BG_FILL = "bgFill", STYLECLASS_SEP = ",", config = getConfig2(), classes = /* @__PURE__ */ new Map(), diagramId = "", sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, config), "sanitizeText"), addStyleClass = /* @__PURE__ */ __name(function(e, S = "") {
1153
+ let C = classes.get(e);
1154
+ C || (C = {
1156
1155
  id: e,
1157
1156
  styles: [],
1158
1157
  textStyles: []
1159
- }, N.set(e, n)), t?.split(te).forEach((e) => {
1160
- let t = e.replace(/([^;]*);/, "$1").trim();
1161
- if (RegExp(j).exec(e)) {
1162
- let e = t.replace(M, ee).replace(j, M);
1163
- n.textStyles.push(e);
1158
+ }, classes.set(e, C)), S?.split(STYLECLASS_SEP).forEach((e) => {
1159
+ let S = e.replace(/([^;]*);/, "$1").trim();
1160
+ if (RegExp(COLOR_KEYWORD).exec(e)) {
1161
+ let e = S.replace(FILL_KEYWORD, BG_FILL).replace(COLOR_KEYWORD, FILL_KEYWORD);
1162
+ C.textStyles.push(e);
1164
1163
  }
1165
- n.styles.push(t);
1164
+ C.styles.push(S);
1166
1165
  });
1167
- }, "addStyleClass"), oe = /* @__PURE__ */ e(function(e, t = "") {
1168
- let n = O.get(e);
1169
- t != null && (n.styles = t.split(te));
1170
- }, "addStyle2Node"), se = /* @__PURE__ */ e(function(e, t) {
1166
+ }, "addStyleClass"), addStyle2Node = /* @__PURE__ */ __name(function(e, S = "") {
1167
+ let C = blockDatabase.get(e);
1168
+ S != null && (C.styles = S.split(STYLECLASS_SEP));
1169
+ }, "addStyle2Node"), setCssClass = /* @__PURE__ */ __name(function(e, S) {
1171
1170
  e.split(",").forEach(function(e) {
1172
- let n = O.get(e);
1173
- if (n === void 0) {
1174
- let t = e.trim();
1175
- n = {
1176
- id: t,
1171
+ let C = blockDatabase.get(e);
1172
+ if (C === void 0) {
1173
+ let S = e.trim();
1174
+ C = {
1175
+ id: S,
1177
1176
  type: "na",
1178
1177
  children: []
1179
- }, O.set(t, n);
1178
+ }, blockDatabase.set(S, C);
1180
1179
  }
1181
- n.classes ||= [], n.classes.push(t);
1180
+ C.classes ||= [], C.classes.push(S);
1182
1181
  });
1183
- }, "setCssClass"), ce = /* @__PURE__ */ e((e, n) => {
1184
- let r = e.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
1185
- for (let e of r) {
1186
- if (typeof a == "number" && a > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > a && t.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`), e.label &&= ie(e.label), e.type === "classDef") {
1187
- ae(e.id, e.css);
1182
+ }, "setCssClass"), populateBlockDatabase = /* @__PURE__ */ __name((e, C) => {
1183
+ let w = e.flat(), T = [], E = w.find((e) => e?.type === "column-setting")?.columns ?? -1;
1184
+ for (let e of w) {
1185
+ if (typeof E == "number" && E > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > E && log.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${E}`), e.label &&= sanitizeText2(e.label), e.type === "classDef") {
1186
+ addStyleClass(e.id, e.css);
1188
1187
  continue;
1189
1188
  }
1190
1189
  if (e.type === "applyClass") {
1191
- se(e.id, e?.styleClass ?? "");
1190
+ setCssClass(e.id, e?.styleClass ?? "");
1192
1191
  continue;
1193
1192
  }
1194
1193
  if (e.type === "applyStyles") {
1195
- e?.stylesStr && oe(e.id, e?.stylesStr);
1194
+ e?.stylesStr && addStyle2Node(e.id, e?.stylesStr);
1196
1195
  continue;
1197
1196
  }
1198
- if (e.type === "column-setting") n.columns = e.columns ?? -1;
1197
+ if (e.type === "column-setting") C.columns = e.columns ?? -1;
1199
1198
  else if (e.type === "edge") {
1200
- let t = (A.get(e.id) ?? 0) + 1;
1201
- A.set(e.id, t), e.id = t + "-" + e.id, k.push(e);
1199
+ let S = (edgeCount.get(e.id) ?? 0) + 1;
1200
+ edgeCount.set(e.id, S), e.id = S + "-" + e.id, edgeList.push(e);
1202
1201
  } else {
1203
1202
  e.label || (e.type === "composite" ? e.label = "" : e.label = e.id);
1204
- let t = O.get(e.id);
1205
- if (t === void 0 ? O.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && ce(e.children, e), e.type === "space") {
1206
- let t = e.width ?? 1;
1207
- for (let n = 0; n < t; n++) {
1208
- let t = w(e);
1209
- t.id = t.id + "-" + n, O.set(t.id, t), i.push(t);
1203
+ let S = blockDatabase.get(e.id);
1204
+ 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
+ let S = e.width ?? 1;
1206
+ for (let C = 0; C < S; C++) {
1207
+ let S = clone_default(e);
1208
+ S.id = S.id + "-" + C, blockDatabase.set(S.id, S), T.push(S);
1210
1209
  }
1211
- } else t === void 0 && i.push(e);
1210
+ } else S === void 0 && T.push(e);
1212
1211
  }
1213
1212
  }
1214
- n.children = i;
1215
- }, "populateBlockDatabase"), le = [], P = {
1213
+ C.children = T;
1214
+ }, "populateBlockDatabase"), blocks = [], rootBlock = {
1216
1215
  id: "root",
1217
1216
  type: "composite",
1218
1217
  children: [],
1219
1218
  columns: -1
1220
- }, ue = /* @__PURE__ */ e(() => {
1221
- t.debug("Clear called"), i(), P = {
1219
+ }, clear2 = /* @__PURE__ */ __name(() => {
1220
+ log.debug("Clear called"), clear(), rootBlock = {
1222
1221
  id: "root",
1223
1222
  type: "composite",
1224
1223
  children: [],
1225
1224
  columns: -1
1226
- }, O = /* @__PURE__ */ new Map([["root", P]]), le = [], N = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(), re = "";
1225
+ }, blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]), blocks = [], classes = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), diagramId = "";
1227
1226
  }, "clear");
1228
- function de(e) {
1229
- switch (t.debug("typeStr2Type", e), e) {
1227
+ function typeStr2Type(e) {
1228
+ switch (log.debug("typeStr2Type", e), e) {
1230
1229
  case "[]": return "square";
1231
- case "()": return t.debug("we have a round"), "round";
1230
+ case "()": return log.debug("we have a round"), "round";
1232
1231
  case "(())": return "circle";
1233
1232
  case ">]": return "rect_left_inv_arrow";
1234
1233
  case "{}": return "diamond";
@@ -1245,15 +1244,15 @@ function de(e) {
1245
1244
  default: return "na";
1246
1245
  }
1247
1246
  }
1248
- e(de, "typeStr2Type");
1249
- function fe(e) {
1250
- switch (t.debug("typeStr2Type", e), e) {
1247
+ __name(typeStr2Type, "typeStr2Type");
1248
+ function edgeTypeStr2Type(e) {
1249
+ switch (log.debug("typeStr2Type", e), e) {
1251
1250
  case "==": return "thick";
1252
1251
  default: return "normal";
1253
1252
  }
1254
1253
  }
1255
- e(fe, "edgeTypeStr2Type");
1256
- function pe(e) {
1254
+ __name(edgeTypeStr2Type, "edgeTypeStr2Type");
1255
+ function edgeStrToEdgeData(e) {
1257
1256
  switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
1258
1257
  case "x": return "arrow_cross";
1259
1258
  case "o": return "arrow_circle";
@@ -1261,40 +1260,40 @@ function pe(e) {
1261
1260
  default: return "";
1262
1261
  }
1263
1262
  }
1264
- e(pe, "edgeStrToEdgeData");
1265
- var me = 0, he = {
1266
- getConfig: /* @__PURE__ */ e(() => s().block, "getConfig"),
1267
- typeStr2Type: de,
1268
- edgeTypeStr2Type: fe,
1269
- edgeStrToEdgeData: pe,
1270
- getLogger: /* @__PURE__ */ e(() => t, "getLogger"),
1271
- getBlocksFlat: /* @__PURE__ */ e(() => [...O.values()], "getBlocksFlat"),
1272
- getBlocks: /* @__PURE__ */ e(() => le || [], "getBlocks"),
1273
- getEdges: /* @__PURE__ */ e(() => k, "getEdges"),
1274
- setHierarchy: /* @__PURE__ */ e((e) => {
1275
- P.children = e, ce(e, P), le = P.children;
1263
+ __name(edgeStrToEdgeData, "edgeStrToEdgeData");
1264
+ var cnt = 0, blockDB_default = {
1265
+ getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
1266
+ typeStr2Type,
1267
+ edgeTypeStr2Type,
1268
+ edgeStrToEdgeData,
1269
+ getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
1270
+ getBlocksFlat: /* @__PURE__ */ __name(() => [...blockDatabase.values()], "getBlocksFlat"),
1271
+ getBlocks: /* @__PURE__ */ __name(() => blocks || [], "getBlocks"),
1272
+ getEdges: /* @__PURE__ */ __name(() => edgeList, "getEdges"),
1273
+ setHierarchy: /* @__PURE__ */ __name((e) => {
1274
+ rootBlock.children = e, populateBlockDatabase(e, rootBlock), blocks = rootBlock.children;
1276
1275
  }, "setHierarchy"),
1277
- getBlock: /* @__PURE__ */ e((e) => O.get(e), "getBlock"),
1278
- setBlock: /* @__PURE__ */ e((e) => {
1279
- O.set(e.id, e);
1276
+ getBlock: /* @__PURE__ */ __name((e) => blockDatabase.get(e), "getBlock"),
1277
+ setBlock: /* @__PURE__ */ __name((e) => {
1278
+ blockDatabase.set(e.id, e);
1280
1279
  }, "setBlock"),
1281
- getColumns: /* @__PURE__ */ e((e) => {
1282
- let t = O.get(e);
1283
- return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
1280
+ getColumns: /* @__PURE__ */ __name((e) => {
1281
+ let S = blockDatabase.get(e);
1282
+ return S ? S.columns ? S.columns : S.children ? S.children.length : -1 : -1;
1284
1283
  }, "getColumns"),
1285
- getClasses: /* @__PURE__ */ e(function() {
1286
- return N;
1284
+ getClasses: /* @__PURE__ */ __name(function() {
1285
+ return classes;
1287
1286
  }, "getClasses"),
1288
- clear: ue,
1289
- generateId: /* @__PURE__ */ e(() => (me++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + me), "generateId"),
1290
- setDiagramId: /* @__PURE__ */ e((e) => {
1291
- re = e;
1287
+ clear: clear2,
1288
+ generateId: /* @__PURE__ */ __name(() => (cnt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt), "generateId"),
1289
+ setDiagramId: /* @__PURE__ */ __name((e) => {
1290
+ diagramId = e;
1292
1291
  }, "setDiagramId"),
1293
- getDiagramId: /* @__PURE__ */ e(() => re, "getDiagramId")
1294
- }, F = /* @__PURE__ */ e((e, t) => {
1295
- let i = r;
1296
- return n(i(e, "r"), i(e, "g"), i(e, "b"), t);
1297
- }, "fade"), ge = /* @__PURE__ */ e((e) => `.label {
1292
+ getDiagramId: /* @__PURE__ */ __name(() => diagramId, "getDiagramId")
1293
+ }, fade = /* @__PURE__ */ __name((e, S) => {
1294
+ let T = channel_default;
1295
+ return rgba_default(T(e, "r"), T(e, "g"), T(e, "b"), S);
1296
+ }, "fade"), styles_default = /* @__PURE__ */ __name((e) => `.label {
1298
1297
  font-family: ${e.fontFamily};
1299
1298
  color: ${e.nodeTextColor || e.textColor};
1300
1299
  }
@@ -1379,9 +1378,9 @@ var me = 0, he = {
1379
1378
  }
1380
1379
 
1381
1380
  .node .cluster {
1382
- // fill: ${F(e.mainBkg, .5)};
1383
- fill: ${F(e.clusterBkg, .5)};
1384
- stroke: ${F(e.clusterBorder, .2)};
1381
+ // fill: ${fade(e.mainBkg, .5)};
1382
+ fill: ${fade(e.clusterBkg, .5)};
1383
+ stroke: ${fade(e.clusterBorder, .2)};
1385
1384
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1386
1385
  stroke-width: 1px;
1387
1386
  }
@@ -1416,210 +1415,210 @@ var me = 0, he = {
1416
1415
  font-size: 18px;
1417
1416
  fill: ${e.textColor};
1418
1417
  }
1419
- ${C()}
1420
- `, "getStyles"), _e = /* @__PURE__ */ e((e, t, n, r) => {
1421
- t.forEach((t) => {
1422
- ve[t](e, n, r);
1418
+ ${getIconStyles()}
1419
+ `, "getStyles"), insertMarkers = /* @__PURE__ */ __name((e, S, C, w) => {
1420
+ S.forEach((S) => {
1421
+ markers[S](e, C, w);
1423
1422
  });
1424
- }, "insertMarkers"), ve = {
1425
- extension: /* @__PURE__ */ e((e, n, r) => {
1426
- t.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1423
+ }, "insertMarkers"), markers = {
1424
+ extension: /* @__PURE__ */ __name((e, C, w) => {
1425
+ log.trace("Making markers for ", w), e.append("defs").append("marker").attr("id", w + "_" + C + "-extensionStart").attr("class", "marker extension " + C).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", w + "_" + C + "-extensionEnd").attr("class", "marker extension " + C).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1427
1426
  }, "extension"),
1428
- composition: /* @__PURE__ */ e((e, t, n) => {
1429
- e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1427
+ composition: /* @__PURE__ */ __name((e, S, C) => {
1428
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionStart").attr("class", "marker composition " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionEnd").attr("class", "marker composition " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1430
1429
  }, "composition"),
1431
- aggregation: /* @__PURE__ */ e((e, t, n) => {
1432
- e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1430
+ aggregation: /* @__PURE__ */ __name((e, S, C) => {
1431
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationStart").attr("class", "marker aggregation " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationEnd").attr("class", "marker aggregation " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1433
1432
  }, "aggregation"),
1434
- dependency: /* @__PURE__ */ e((e, t, n) => {
1435
- e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1433
+ dependency: /* @__PURE__ */ __name((e, S, C) => {
1434
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyStart").attr("class", "marker dependency " + S).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyEnd").attr("class", "marker dependency " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1436
1435
  }, "dependency"),
1437
- lollipop: /* @__PURE__ */ e((e, t, n) => {
1438
- e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1436
+ lollipop: /* @__PURE__ */ __name((e, S, C) => {
1437
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopStart").attr("class", "marker lollipop " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopEnd").attr("class", "marker lollipop " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1439
1438
  }, "lollipop"),
1440
- point: /* @__PURE__ */ e((e, t, n) => {
1441
- e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1439
+ point: /* @__PURE__ */ __name((e, S, C) => {
1440
+ e.append("marker").attr("id", C + "_" + S + "-pointEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-pointStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1442
1441
  }, "point"),
1443
- circle: /* @__PURE__ */ e((e, t, n) => {
1444
- e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1442
+ circle: /* @__PURE__ */ __name((e, S, C) => {
1443
+ e.append("marker").attr("id", C + "_" + S + "-circleEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-circleStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1445
1444
  }, "circle"),
1446
- cross: /* @__PURE__ */ e((e, t, n) => {
1447
- e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1445
+ cross: /* @__PURE__ */ __name((e, S, C) => {
1446
+ e.append("marker").attr("id", C + "_" + S + "-crossEnd").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-crossStart").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1448
1447
  }, "cross"),
1449
- barb: /* @__PURE__ */ e((e, t, n) => {
1450
- e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
1448
+ barb: /* @__PURE__ */ __name((e, S, C) => {
1449
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
1451
1450
  }, "barb")
1452
- }, ye = _e, I = c()?.block?.padding ?? 8;
1453
- function L(e, t) {
1451
+ }, markers_default = insertMarkers, padding = getConfig2()?.block?.padding ?? 8;
1452
+ function calculateBlockPosition(e, S) {
1454
1453
  if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1455
- if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
1454
+ if (S < 0 || !Number.isInteger(S)) throw Error("Position must be a non-negative integer." + S);
1456
1455
  return e < 0 ? {
1457
- px: t,
1456
+ px: S,
1458
1457
  py: 0
1459
1458
  } : e === 1 ? {
1460
1459
  px: 0,
1461
- py: t
1460
+ py: S
1462
1461
  } : {
1463
- px: t % e,
1464
- py: Math.floor(t / e)
1462
+ px: S % e,
1463
+ py: Math.floor(S / e)
1465
1464
  };
1466
1465
  }
1467
- e(L, "calculateBlockPosition");
1468
- var be = /* @__PURE__ */ e((e) => {
1469
- let n = 0, r = 0;
1470
- for (let i of e.children) {
1471
- let { width: e, height: a, x: o, y: s } = i.size ?? {
1466
+ __name(calculateBlockPosition, "calculateBlockPosition");
1467
+ var getMaxChildSize = /* @__PURE__ */ __name((e) => {
1468
+ let C = 0, w = 0;
1469
+ for (let T of e.children) {
1470
+ let { width: e, height: E, x: D, y: O } = T.size ?? {
1472
1471
  width: 0,
1473
1472
  height: 0,
1474
1473
  x: 0,
1475
1474
  y: 0
1476
1475
  };
1477
- t.debug("getMaxChildSize abc95 child:", i.id, "width:", e, "height:", a, "x:", o, "y:", s, i.type), i.type !== "space" && (e > n && (n = e / (i.widthInColumns ?? 1)), a > r && (r = a));
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));
1478
1477
  }
1479
1478
  return {
1480
- width: n,
1481
- height: r
1479
+ width: C,
1480
+ height: w
1482
1481
  };
1483
1482
  }, "getMaxChildSize");
1484
- function R(e, n, r = 0, i = 0) {
1485
- t.debug("setBlockSizes abc95 (start)", e.id, e?.size?.x, "block width =", e?.size, "siblingWidth", r), e?.size?.width || (e.size = {
1486
- width: r,
1487
- height: i,
1483
+ function setBlockSizes(e, C, w = 0, T = 0) {
1484
+ log.debug("setBlockSizes abc95 (start)", e.id, e?.size?.x, "block width =", e?.size, "siblingWidth", w), e?.size?.width || (e.size = {
1485
+ width: w,
1486
+ height: T,
1488
1487
  x: 0,
1489
1488
  y: 0
1490
1489
  });
1491
- let a = 0, o = 0;
1490
+ let E = 0, D = 0;
1492
1491
  if (e.children?.length > 0) {
1493
- for (let t of e.children) R(t, n);
1494
- let s = be(e);
1495
- a = s.width, o = s.height, t.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", a, o);
1496
- for (let n of e.children) n.size && (t.debug(`abc95 Setting size of children of ${e.id} id=${n.id} ${a} ${o} ${JSON.stringify(n.size)}`), n.size.width = a * (n.widthInColumns ?? 1) + I * ((n.widthInColumns ?? 1) - 1), n.size.height = o, n.size.x = 0, n.size.y = 0, t.debug(`abc95 updating size of ${e.id} children child:${n.id} maxWidth:${a} maxHeight:${o}`));
1497
- for (let t of e.children) R(t, n, a, o);
1498
- let c = e.columns ?? -1, l = 0;
1499
- for (let t of e.children) l += t.widthInColumns ?? 1;
1500
- let u = e.children.length;
1501
- c > 0 && c < l && (u = c);
1502
- let d = Math.ceil(l / u), f = u * (a + I) + I, p = d * (o + I) + I;
1503
- if (f < r) {
1504
- t.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${f}`), f = r, p = i;
1505
- let n = (r - u * I - I) / u, s = (i - d * I - I) / d;
1506
- t.debug("Size indata abc88", e.id, "childWidth", n, "maxWidth", a), t.debug("Size indata abc88", e.id, "childHeight", s, "maxHeight", o), t.debug("Size indata abc88 xSize", u, "padding", I);
1507
- for (let t of e.children) t.size && (t.size.width = n, t.size.height = s, t.size.x = 0, t.size.y = 0);
1492
+ for (let S of e.children) setBlockSizes(S, C);
1493
+ let O = getMaxChildSize(e);
1494
+ E = O.width, D = O.height, log.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", E, D);
1495
+ for (let C of e.children) C.size && (log.debug(`abc95 Setting size of children of ${e.id} id=${C.id} ${E} ${D} ${JSON.stringify(C.size)}`), C.size.width = E * (C.widthInColumns ?? 1) + padding * ((C.widthInColumns ?? 1) - 1), C.size.height = D, C.size.x = 0, C.size.y = 0, log.debug(`abc95 updating size of ${e.id} children child:${C.id} maxWidth:${E} maxHeight:${D}`));
1496
+ for (let S of e.children) setBlockSizes(S, C, E, D);
1497
+ let k = e.columns ?? -1, A = 0;
1498
+ for (let S of e.children) A += S.widthInColumns ?? 1;
1499
+ let j = e.children.length;
1500
+ k > 0 && k < A && (j = k);
1501
+ let M = Math.ceil(A / j), N = j * (E + padding) + padding, P = M * (D + padding) + padding;
1502
+ if (N < w) {
1503
+ log.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${w} siblingHeight ${T} width ${N}`), N = w, P = T;
1504
+ let C = (w - j * padding - padding) / j, O = (T - M * padding - padding) / M;
1505
+ log.debug("Size indata abc88", e.id, "childWidth", C, "maxWidth", E), log.debug("Size indata abc88", e.id, "childHeight", O, "maxHeight", D), log.debug("Size indata abc88 xSize", j, "padding", padding);
1506
+ for (let S of e.children) S.size && (S.size.width = C, S.size.height = O, S.size.x = 0, S.size.y = 0);
1508
1507
  }
1509
- if (t.debug(`abc95 (finale calc) ${e.id} xSize ${u} ySize ${d} columns ${c}${e.children.length} width=${Math.max(f, e.size?.width || 0)}`), f < (e?.size?.width || 0)) {
1510
- f = e?.size?.width || 0;
1511
- let n = c > 0 ? Math.min(e.children.length, c) : e.children.length;
1512
- if (n > 0) {
1513
- let r = (f - n * I - I) / n;
1514
- t.debug("abc95 (growing to fit) width", e.id, f, e.size?.width, r);
1515
- for (let t of e.children) t.size && (t.size.width = r);
1508
+ if (log.debug(`abc95 (finale calc) ${e.id} xSize ${j} ySize ${M} columns ${k}${e.children.length} width=${Math.max(N, e.size?.width || 0)}`), N < (e?.size?.width || 0)) {
1509
+ N = e?.size?.width || 0;
1510
+ let C = k > 0 ? Math.min(e.children.length, k) : e.children.length;
1511
+ if (C > 0) {
1512
+ let w = (N - C * padding - padding) / C;
1513
+ log.debug("abc95 (growing to fit) width", e.id, N, e.size?.width, w);
1514
+ for (let S of e.children) S.size && (S.size.width = w);
1516
1515
  }
1517
1516
  }
1518
1517
  e.size = {
1519
- width: f,
1520
- height: p,
1518
+ width: N,
1519
+ height: P,
1521
1520
  x: 0,
1522
1521
  y: 0
1523
1522
  };
1524
1523
  }
1525
- t.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
1524
+ log.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
1526
1525
  }
1527
- e(R, "setBlockSizes");
1528
- function z(e, n) {
1529
- t.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1530
- let r = e.columns ?? -1;
1531
- if (t.debug("layoutBlocks columns abc95", e.id, "=>", r, e), e.children && e.children.length > 0) {
1532
- let i = e?.children[0]?.size?.width ?? 0, a = e.children.length * i + (e.children.length - 1) * I;
1533
- t.debug("widthOfChildren 88", a, "posX");
1534
- let o = /* @__PURE__ */ new Map();
1535
- {
1536
- let t = 0;
1537
- for (let n of e.children) {
1538
- if (!n.size) continue;
1539
- let { py: e } = L(r, t), i = o.get(e) ?? 0;
1540
- n.size.height > i && o.set(e, n.size.height);
1541
- let a = n?.widthInColumns ?? 1;
1542
- r > 0 && (a = Math.min(a, r - t % r)), t += a;
1526
+ __name(setBlockSizes, "setBlockSizes");
1527
+ function layoutBlocks(e, C) {
1528
+ log.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1529
+ let w = e.columns ?? -1;
1530
+ if (log.debug("layoutBlocks columns abc95", e.id, "=>", w, e), e.children && e.children.length > 0) {
1531
+ let T = e?.children[0]?.size?.width ?? 0, E = e.children.length * T + (e.children.length - 1) * padding;
1532
+ log.debug("widthOfChildren 88", E, "posX");
1533
+ let D = /* @__PURE__ */ new Map();
1534
+ {
1535
+ let S = 0;
1536
+ for (let C of e.children) {
1537
+ if (!C.size) continue;
1538
+ let { py: e } = calculateBlockPosition(w, S), T = D.get(e) ?? 0;
1539
+ C.size.height > T && D.set(e, C.size.height);
1540
+ let E = C?.widthInColumns ?? 1;
1541
+ w > 0 && (E = Math.min(E, w - S % w)), S += E;
1543
1542
  }
1544
1543
  }
1545
- let s = /* @__PURE__ */ new Map();
1544
+ let O = /* @__PURE__ */ new Map();
1546
1545
  {
1547
- let e = 0, t = [...o.keys()].sort((e, t) => e - t);
1548
- for (let n of t) s.set(n, e), e += (o.get(n) ?? 0) + I;
1546
+ let e = 0, S = [...D.keys()].sort((e, S) => e - S);
1547
+ for (let C of S) O.set(C, e), e += (D.get(C) ?? 0) + padding;
1549
1548
  }
1550
- let c = 0;
1551
- t.debug("abc91 block?.size?.x", e.id, e?.size?.x);
1552
- let l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -I, u = 0;
1553
- for (let i of e.children) {
1554
- let a = e;
1555
- if (!i.size) continue;
1556
- let { width: d, height: f } = i.size, { px: p, py: m } = L(r, c);
1557
- if (m != u && (u = m, l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -I, t.debug("New row in layout for block", e.id, " and child ", i.id, u)), t.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${I}`), a.size) {
1558
- let e = d / 2;
1559
- i.size.x = l + I + e, t.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${e} padding=${I} width=${d} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d * (i?.widthInColumns ?? 1) / 2}`), l = i.size.x + e;
1560
- let n = s.get(m) ?? 0, r = o.get(m) ?? f;
1561
- i.size.y = a.size.y - a.size.height / 2 + n + r / 2 + I, t.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${I}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d * (i?.widthInColumns ?? 1) / 2}`);
1549
+ let k = 0;
1550
+ log.debug("abc91 block?.size?.x", e.id, e?.size?.x);
1551
+ let A = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -padding, j = 0;
1552
+ for (let T of e.children) {
1553
+ let E = e;
1554
+ if (!T.size) continue;
1555
+ let { width: M, height: N } = T.size, { px: P, py: F } = calculateBlockPosition(w, k);
1556
+ if (F != j && (j = F, A = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -padding, log.debug("New row in layout for block", e.id, " and child ", T.id, j)), log.debug(`abc89 layout blocks (child) id: ${T.id} Pos: ${k} (px, py) ${P},${F} (${E?.size?.x},${E?.size?.y}) parent: ${E.id} width: ${M}${padding}`), E.size) {
1557
+ let e = M / 2;
1558
+ T.size.x = A + padding + e, log.debug(`abc91 layout blocks (calc) px, pyid:${T.id} startingPos=X${A} new startingPosX${T.size.x} ${e} padding=${padding} width=${M} halfWidth=${e} => x:${T.size.x} y:${T.size.y} ${T.widthInColumns} (width * (child?.w || 1)) / 2 ${M * (T?.widthInColumns ?? 1) / 2}`), A = T.size.x + e;
1559
+ let C = O.get(F) ?? 0, w = D.get(F) ?? N;
1560
+ T.size.y = E.size.y - E.size.height / 2 + C + w / 2 + padding, log.debug(`abc88 layout blocks (calc) px, pyid:${T.id}startingPosX${A}${padding}${e}=>x:${T.size.x}y:${T.size.y}${T.widthInColumns}(width * (child?.w || 1)) / 2${M * (T?.widthInColumns ?? 1) / 2}`);
1562
1561
  }
1563
- i.children && z(i, n);
1564
- let h = i?.widthInColumns ?? 1;
1565
- r > 0 && (h = Math.min(h, r - c % r)), c += h, t.debug("abc88 columnsPos", i, c);
1562
+ T.children && layoutBlocks(T, C);
1563
+ let I = T?.widthInColumns ?? 1;
1564
+ w > 0 && (I = Math.min(I, w - k % w)), k += I, log.debug("abc88 columnsPos", T, k);
1566
1565
  }
1567
1566
  }
1568
- t.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1567
+ log.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1569
1568
  }
1570
- e(z, "layoutBlocks");
1571
- function B(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1569
+ __name(layoutBlocks, "layoutBlocks");
1570
+ function findBounds(e, { minX: S, minY: C, maxX: w, maxY: T } = {
1572
1571
  minX: 0,
1573
1572
  minY: 0,
1574
1573
  maxX: 0,
1575
1574
  maxY: 0
1576
1575
  }) {
1577
1576
  if (e.size && e.id !== "root") {
1578
- let { x: a, y: o, width: s, height: c } = e.size;
1579
- a - s / 2 < t && (t = a - s / 2), o - c / 2 < n && (n = o - c / 2), a + s / 2 > r && (r = a + s / 2), o + c / 2 > i && (i = o + c / 2);
1577
+ let { x: E, y: D, width: O, height: k } = e.size;
1578
+ E - O / 2 < S && (S = E - O / 2), D - k / 2 < C && (C = D - k / 2), E + O / 2 > w && (w = E + O / 2), D + k / 2 > T && (T = D + k / 2);
1580
1579
  }
1581
- if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = B(a, {
1582
- minX: t,
1583
- minY: n,
1584
- maxX: r,
1585
- maxY: i
1580
+ if (e.children) for (let E of e.children) ({minX: S, minY: C, maxX: w, maxY: T} = findBounds(E, {
1581
+ minX: S,
1582
+ minY: C,
1583
+ maxX: w,
1584
+ maxY: T
1586
1585
  }));
1587
1586
  return {
1588
- minX: t,
1589
- minY: n,
1590
- maxX: r,
1591
- maxY: i
1587
+ minX: S,
1588
+ minY: C,
1589
+ maxX: w,
1590
+ maxY: T
1592
1591
  };
1593
1592
  }
1594
- e(B, "findBounds");
1595
- function xe(e) {
1596
- let n = e.getBlock("root");
1597
- if (!n) return;
1598
- R(n, e, 0, 0), z(n, e), t.debug("getBlocks", JSON.stringify(n, null, 2));
1599
- let { minX: r, minY: i, maxX: a, maxY: o } = B(n), s = o - i;
1593
+ __name(findBounds, "findBounds");
1594
+ function layout(e) {
1595
+ let C = e.getBlock("root");
1596
+ if (!C) return;
1597
+ setBlockSizes(C, e, 0, 0), layoutBlocks(C, e), log.debug("getBlocks", JSON.stringify(C, null, 2));
1598
+ let { minX: w, minY: T, maxX: E, maxY: D } = findBounds(C), O = D - T;
1600
1599
  return {
1601
- x: r,
1602
- y: i,
1603
- width: a - r,
1604
- height: s
1600
+ x: w,
1601
+ y: T,
1602
+ width: E - w,
1603
+ height: O
1605
1604
  };
1606
1605
  }
1607
- e(xe, "layout");
1608
- var V = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
1609
- let a = t || "";
1610
- typeof a == "object" && (a = a[0]);
1611
- let o = c(), s = l(o);
1612
- return await S(e, a, {
1613
- style: n,
1614
- isTitle: r,
1615
- useHtmlLabels: s,
1606
+ __name(layout, "layout");
1607
+ var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w = !1, T = !1) => {
1608
+ let E = S || "";
1609
+ typeof E == "object" && (E = E[0]);
1610
+ let D = getConfig2(), O = getEffectiveHtmlLabels(D);
1611
+ return await createText(e, E, {
1612
+ style: C,
1613
+ isTitle: w,
1614
+ useHtmlLabels: O,
1616
1615
  markdown: !1,
1617
- isNode: i,
1616
+ isNode: T,
1618
1617
  width: Infinity
1619
- }, o);
1620
- }, "createLabel"), Se = /* @__PURE__ */ e((e, t, n, r, i) => {
1621
- t.arrowTypeStart && we(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && we(e, "end", t.arrowTypeEnd, n, r, i);
1622
- }, "addEdgeMarkers"), Ce = {
1618
+ }, D);
1619
+ }, "createLabel"), addEdgeMarkers = /* @__PURE__ */ __name((e, S, C, w, T) => {
1620
+ S.arrowTypeStart && addEdgeMarker(e, "start", S.arrowTypeStart, C, w, T), S.arrowTypeEnd && addEdgeMarker(e, "end", S.arrowTypeEnd, C, w, T);
1621
+ }, "addEdgeMarkers"), arrowTypesMap = {
1623
1622
  arrow_cross: "cross",
1624
1623
  arrow_point: "point",
1625
1624
  arrow_barb: "barb",
@@ -1629,479 +1628,479 @@ var V = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
1629
1628
  composition: "composition",
1630
1629
  dependency: "dependency",
1631
1630
  lollipop: "lollipop"
1632
- }, we = /* @__PURE__ */ e((e, n, r, i, a, o) => {
1633
- let s = Ce[r];
1634
- if (!s) {
1635
- t.warn(`Unknown arrow type: ${r}`);
1631
+ }, addEdgeMarker = /* @__PURE__ */ __name((e, C, w, T, E, D) => {
1632
+ let O = arrowTypesMap[w];
1633
+ if (!O) {
1634
+ log.warn(`Unknown arrow type: ${w}`);
1636
1635
  return;
1637
1636
  }
1638
- let c = n === "start" ? "Start" : "End";
1639
- e.attr(`marker-${n}`, `url(${i}#${a}_${o}-${s}${c})`);
1640
- }, "addEdgeMarker"), H = {}, U = {}, Te = /* @__PURE__ */ e(async (e, t) => {
1641
- let n = c(), r = l(n), i = e.insert("g").attr("class", "edgeLabel"), a = i.insert("g").attr("class", "label"), o = t.labelType === "markdown", s = await S(e, t.label, {
1642
- style: t.labelStyle,
1643
- useHtmlLabels: r,
1644
- addSvgBackground: o,
1637
+ let k = C === "start" ? "Start" : "End";
1638
+ e.attr(`marker-${C}`, `url(${T}#${E}_${D}-${O}${k})`);
1639
+ }, "addEdgeMarker"), edgeLabels = {}, terminalLabels = {}, insertEdgeLabel = /* @__PURE__ */ __name(async (e, S) => {
1640
+ let C = getConfig2(), w = getEffectiveHtmlLabels(C), T = e.insert("g").attr("class", "edgeLabel"), E = T.insert("g").attr("class", "label"), D = S.labelType === "markdown", O = await createText(e, S.label, {
1641
+ style: S.labelStyle,
1642
+ useHtmlLabels: w,
1643
+ addSvgBackground: D,
1645
1644
  isNode: !1,
1646
- markdown: o,
1647
- width: o ? void 0 : Infinity
1648
- }, n);
1649
- a.node().appendChild(s);
1650
- let u = s.getBBox(), d = u;
1651
- if (r) {
1652
- let e = s.children[0], t = f(s);
1653
- u = e.getBoundingClientRect(), d = u, t.attr("width", u.width), t.attr("height", u.height);
1645
+ markdown: D,
1646
+ width: D ? void 0 : Infinity
1647
+ }, C);
1648
+ E.node().appendChild(O);
1649
+ let j = O.getBBox(), M = j;
1650
+ if (w) {
1651
+ let e = O.children[0], S = select_default(O);
1652
+ j = e.getBoundingClientRect(), M = j, S.attr("width", j.width), S.attr("height", j.height);
1654
1653
  } else {
1655
- let e = f(s).select("text").node();
1656
- e && typeof e.getBBox == "function" && (d = e.getBBox());
1654
+ let e = select_default(O).select("text").node();
1655
+ e && typeof e.getBBox == "function" && (M = e.getBBox());
1657
1656
  }
1658
- a.attr("transform", h(d, r)), H[t.id] = i, t.width = u.width, t.height = u.height;
1659
- let p;
1660
- if (t.startLabelLeft) {
1661
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.startLabelLeft, t.labelStyle);
1662
- p = a;
1663
- let o = a.getBBox();
1664
- if (r) {
1665
- let e = a.children[0], t = f(a);
1666
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1657
+ E.attr("transform", computeLabelTransform(M, w)), edgeLabels[S.id] = T, S.width = j.width, S.height = j.height;
1658
+ let P;
1659
+ if (S.startLabelLeft) {
1660
+ let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.startLabelLeft, S.labelStyle);
1661
+ P = E;
1662
+ let D = E.getBBox();
1663
+ if (w) {
1664
+ let e = E.children[0], S = select_default(E);
1665
+ D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
1667
1666
  }
1668
- i.attr("transform", h(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startLeft = n, W(p, t.startLabelLeft);
1667
+ T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startLeft = C, setTerminalWidth(P, S.startLabelLeft);
1669
1668
  }
1670
- if (t.startLabelRight) {
1671
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(n, t.startLabelRight, t.labelStyle);
1672
- p = a, i.node().appendChild(a);
1673
- let o = a.getBBox();
1674
- if (r) {
1675
- let e = a.children[0], t = f(a);
1676
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1669
+ 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);
1672
+ let D = E.getBBox();
1673
+ if (w) {
1674
+ let e = E.children[0], S = select_default(E);
1675
+ D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
1677
1676
  }
1678
- i.attr("transform", h(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startRight = n, W(p, t.startLabelRight);
1677
+ T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startRight = C, setTerminalWidth(P, S.startLabelRight);
1679
1678
  }
1680
- if (t.endLabelLeft) {
1681
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelLeft, t.labelStyle);
1682
- p = a;
1683
- let o = a.getBBox();
1684
- if (r) {
1685
- let e = a.children[0], t = f(a);
1686
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1679
+ 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);
1681
+ P = E;
1682
+ let D = E.getBBox();
1683
+ if (w) {
1684
+ let e = E.children[0], S = select_default(E);
1685
+ D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
1687
1686
  }
1688
- i.attr("transform", h(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endLeft = n, W(p, t.endLabelLeft);
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);
1689
1688
  }
1690
- if (t.endLabelRight) {
1691
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelRight, t.labelStyle);
1692
- p = a;
1693
- let o = a.getBBox();
1694
- if (r) {
1695
- let e = a.children[0], t = f(a);
1696
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1689
+ 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);
1691
+ P = E;
1692
+ let D = E.getBBox();
1693
+ if (w) {
1694
+ let e = E.children[0], S = select_default(E);
1695
+ D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
1697
1696
  }
1698
- i.attr("transform", h(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endRight = n, W(p, t.endLabelRight);
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);
1699
1698
  }
1700
- return s;
1699
+ return O;
1701
1700
  }, "insertEdgeLabel");
1702
- function W(e, t) {
1703
- l(c()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1701
+ function setTerminalWidth(e, S) {
1702
+ getEffectiveHtmlLabels(getConfig2()) && e && (e.style.width = S.length * 9 + "px", e.style.height = "12px");
1704
1703
  }
1705
- e(W, "setTerminalWidth");
1706
- var Ee = /* @__PURE__ */ e((e, n) => {
1707
- t.debug("Moving label abc88 ", e.id, e.label, H[e.id], n);
1708
- let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = x(c());
1704
+ __name(setTerminalWidth, "setTerminalWidth");
1705
+ var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
1706
+ log.debug("Moving label abc88 ", e.id, e.label, edgeLabels[e.id], C);
1707
+ let w = C.updatedPath ? C.updatedPath : C.originalPath, { subGraphTitleTotalMargin: T } = getSubGraphTitleMargins(getConfig2());
1709
1708
  if (e.label) {
1710
- let a = H[e.id], o = e.x, s = e.y;
1711
- if (r) {
1712
- let i = y.calcLabelPosition(r);
1713
- t.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
1709
+ let E = edgeLabels[e.id], D = e.x, O = e.y;
1710
+ if (w) {
1711
+ let T = utils_default.calcLabelPosition(w);
1712
+ log.debug("Moving label " + e.label + " from (", D, ",", O, ") to (", T.x, ",", T.y, ") abc88"), C.updatedPath && (D = T.x, O = T.y);
1714
1713
  }
1715
- a.attr("transform", `translate(${o}, ${s + i / 2})`);
1714
+ E.attr("transform", `translate(${D}, ${O + T / 2})`);
1716
1715
  }
1717
1716
  if (e.startLabelLeft) {
1718
- let t = U[e.id].startLeft, n = e.x, i = e.y;
1719
- if (r) {
1720
- let t = y.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
1721
- n = t.x, i = t.y;
1717
+ let S = terminalLabels[e.id].startLeft, C = e.x, T = e.y;
1718
+ if (w) {
1719
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", w);
1720
+ C = S.x, T = S.y;
1722
1721
  }
1723
- t.attr("transform", `translate(${n}, ${i})`);
1722
+ S.attr("transform", `translate(${C}, ${T})`);
1724
1723
  }
1725
1724
  if (e.startLabelRight) {
1726
- let t = U[e.id].startRight, n = e.x, i = e.y;
1727
- if (r) {
1728
- let t = y.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
1729
- n = t.x, i = t.y;
1725
+ let S = terminalLabels[e.id].startRight, C = e.x, T = e.y;
1726
+ if (w) {
1727
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", w);
1728
+ C = S.x, T = S.y;
1730
1729
  }
1731
- t.attr("transform", `translate(${n}, ${i})`);
1730
+ S.attr("transform", `translate(${C}, ${T})`);
1732
1731
  }
1733
1732
  if (e.endLabelLeft) {
1734
- let t = U[e.id].endLeft, n = e.x, i = e.y;
1735
- if (r) {
1736
- let t = y.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
1737
- n = t.x, i = t.y;
1733
+ let S = terminalLabels[e.id].endLeft, C = e.x, T = e.y;
1734
+ if (w) {
1735
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", w);
1736
+ C = S.x, T = S.y;
1738
1737
  }
1739
- t.attr("transform", `translate(${n}, ${i})`);
1738
+ S.attr("transform", `translate(${C}, ${T})`);
1740
1739
  }
1741
1740
  if (e.endLabelRight) {
1742
- let t = U[e.id].endRight, n = e.x, i = e.y;
1743
- if (r) {
1744
- let t = y.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
1745
- n = t.x, i = t.y;
1741
+ let S = terminalLabels[e.id].endRight, C = e.x, T = e.y;
1742
+ if (w) {
1743
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", w);
1744
+ C = S.x, T = S.y;
1746
1745
  }
1747
- t.attr("transform", `translate(${n}, ${i})`);
1746
+ S.attr("transform", `translate(${C}, ${T})`);
1748
1747
  }
1749
- }, "positionEdgeLabel"), De = /* @__PURE__ */ e((e, t) => {
1750
- let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
1751
- return i >= o || a >= s;
1752
- }, "outsideNode"), Oe = /* @__PURE__ */ e((e, n, r) => {
1753
- t.debug(`intersection calc abc89:
1754
- outsidePoint: ${JSON.stringify(n)}
1755
- insidePoint : ${JSON.stringify(r)}
1748
+ }, "positionEdgeLabel"), outsideNode = /* @__PURE__ */ __name((e, S) => {
1749
+ let C = e.x, w = e.y, T = Math.abs(S.x - C), E = Math.abs(S.y - w), D = e.width / 2, O = e.height / 2;
1750
+ return T >= D || E >= O;
1751
+ }, "outsideNode"), intersection = /* @__PURE__ */ __name((e, C, w) => {
1752
+ log.debug(`intersection calc abc89:
1753
+ outsidePoint: ${JSON.stringify(C)}
1754
+ insidePoint : ${JSON.stringify(w)}
1756
1755
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1757
- let i = e.x, a = e.y, o = Math.abs(i - r.x), s = e.width / 2, c = r.x < n.x ? s - o : s + o, l = e.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
1758
- if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
1759
- let e = r.y < n.y ? n.y - l - a : a - l - n.y;
1760
- c = d * e / u;
1761
- let i = {
1762
- x: r.x < n.x ? r.x + c : r.x - d + c,
1763
- y: r.y < n.y ? r.y + u - e : r.y - u + e
1756
+ let T = e.x, E = e.y, D = Math.abs(T - w.x), O = e.width / 2, k = w.x < C.x ? O - D : O + D, A = e.height / 2, j = Math.abs(C.y - w.y), M = Math.abs(C.x - w.x);
1757
+ if (Math.abs(E - C.y) * O > Math.abs(T - C.x) * A) {
1758
+ let e = w.y < C.y ? C.y - A - E : E - A - C.y;
1759
+ k = M * e / j;
1760
+ let T = {
1761
+ x: w.x < C.x ? w.x + k : w.x - M + k,
1762
+ y: w.y < C.y ? w.y + j - e : w.y - j + e
1764
1763
  };
1765
- return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), t.debug(`abc89 topp/bott calc, Q ${u}, q ${e}, R ${d}, r ${c}`, i), i;
1764
+ return k === 0 && (T.x = C.x, T.y = C.y), M === 0 && (T.x = C.x), j === 0 && (T.y = C.y), log.debug(`abc89 topp/bott calc, Q ${j}, q ${e}, R ${M}, r ${k}`, T), T;
1766
1765
  } else {
1767
- c = r.x < n.x ? n.x - s - i : i - s - n.x;
1768
- let e = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + e : r.y - e;
1769
- return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
1770
- _x: a,
1771
- _y: o
1772
- }), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
1773
- x: a,
1774
- y: o
1766
+ k = w.x < C.x ? C.x - O - T : T - O - C.x;
1767
+ let e = j * k / M, E = w.x < C.x ? w.x + M - k : w.x - M + k, D = w.y < C.y ? w.y + e : w.y - e;
1768
+ return log.debug(`sides calc abc89, Q ${j}, q ${e}, R ${M}, r ${k}`, {
1769
+ _x: E,
1770
+ _y: D
1771
+ }), k === 0 && (E = C.x, D = C.y), M === 0 && (E = C.x), j === 0 && (D = C.y), {
1772
+ x: E,
1773
+ y: D
1775
1774
  };
1776
1775
  }
1777
- }, "intersection"), ke = /* @__PURE__ */ e((e, n) => {
1778
- t.debug("abc88 cutPathAtIntersect", e, n);
1779
- let r = [], i = e[0], a = !1;
1776
+ }, "intersection"), cutPathAtIntersect = /* @__PURE__ */ __name((e, C) => {
1777
+ log.debug("abc88 cutPathAtIntersect", e, C);
1778
+ let w = [], T = e[0], E = !1;
1780
1779
  return e.forEach((e) => {
1781
- if (!De(n, e) && !a) {
1782
- let t = Oe(n, i, e), o = !1;
1783
- r.forEach((e) => {
1784
- o ||= e.x === t.x && e.y === t.y;
1785
- }), r.some((e) => e.x === t.x && e.y === t.y) || r.push(t), a = !0;
1786
- } else i = e, a || r.push(e);
1787
- }), r;
1788
- }, "cutPathAtIntersect"), Ae = /* @__PURE__ */ e(function(e, n, r, i, a, o, s) {
1789
- let l = r.points;
1790
- t.debug("abc88 InsertEdge: edge=", r, "e=", n);
1791
- let d = !1, f = o.node(n.v);
1792
- var h = o.node(n.w);
1793
- h?.intersect && f?.intersect && (l = l.slice(1, r.points.length - 1), l.unshift(f.intersect(l[0])), l.push(h.intersect(l[l.length - 1]))), r.toCluster && (t.debug("to cluster abc88", i[r.toCluster]), l = ke(r.points, i[r.toCluster].node), d = !0), r.fromCluster && (t.debug("from cluster abc88", i[r.fromCluster]), l = ke(l.reverse(), i[r.fromCluster].node).reverse(), d = !0);
1794
- let _ = l.filter((e) => !Number.isNaN(e.y)), v = m;
1795
- r.curve && (a === "graph" || a === "flowchart") && (v = r.curve);
1796
- let { x: y, y: b } = g(r), x = p().x(y).y(b).curve(v), S;
1797
- switch (r.thickness) {
1780
+ if (!outsideNode(C, e) && !E) {
1781
+ let S = intersection(C, T, e), D = !1;
1782
+ w.forEach((e) => {
1783
+ D ||= e.x === S.x && e.y === S.y;
1784
+ }), w.some((e) => e.x === S.x && e.y === S.y) || w.push(S), E = !0;
1785
+ } else T = e, E || w.push(e);
1786
+ }), w;
1787
+ }, "cutPathAtIntersect"), insertEdge = /* @__PURE__ */ __name(function(e, C, w, T, E, D, O) {
1788
+ let A = w.points;
1789
+ log.debug("abc88 InsertEdge: edge=", w, "e=", C);
1790
+ let M = !1, N = D.node(C.v);
1791
+ var I = D.node(C.w);
1792
+ I?.intersect && N?.intersect && (A = A.slice(1, w.points.length - 1), A.unshift(N.intersect(A[0])), A.push(I.intersect(A[A.length - 1]))), w.toCluster && (log.debug("to cluster abc88", T[w.toCluster]), A = cutPathAtIntersect(w.points, T[w.toCluster].node), M = !0), w.fromCluster && (log.debug("from cluster abc88", T[w.fromCluster]), A = cutPathAtIntersect(A.reverse(), T[w.fromCluster].node).reverse(), M = !0);
1793
+ let R = A.filter((e) => !Number.isNaN(e.y)), z = basis_default;
1794
+ w.curve && (E === "graph" || E === "flowchart") && (z = w.curve);
1795
+ let { x: B, y: V } = getLineFunctionsWithOffset(w), H = line_default().x(B).y(V).curve(z), U;
1796
+ switch (w.thickness) {
1798
1797
  case "normal":
1799
- S = "edge-thickness-normal";
1798
+ U = "edge-thickness-normal";
1800
1799
  break;
1801
1800
  case "thick":
1802
- S = "edge-thickness-thick";
1801
+ U = "edge-thickness-thick";
1803
1802
  break;
1804
1803
  case "invisible":
1805
- S = "edge-thickness-thick";
1804
+ U = "edge-thickness-thick";
1806
1805
  break;
1807
- default: S = "";
1806
+ default: U = "";
1808
1807
  }
1809
- switch (r.pattern) {
1808
+ switch (w.pattern) {
1810
1809
  case "solid":
1811
- S += " edge-pattern-solid";
1810
+ U += " edge-pattern-solid";
1812
1811
  break;
1813
1812
  case "dotted":
1814
- S += " edge-pattern-dotted";
1813
+ U += " edge-pattern-dotted";
1815
1814
  break;
1816
1815
  case "dashed":
1817
- S += " edge-pattern-dashed";
1816
+ U += " edge-pattern-dashed";
1818
1817
  break;
1819
1818
  }
1820
- let C = e.append("path").attr("d", x(_)).attr("id", r.id).attr("class", " " + S + (r.classes ? " " + r.classes : "")).attr("style", r.style), w = "";
1821
- (c().flowchart.arrowMarkerAbsolute || c().state.arrowMarkerAbsolute) && (w = u(!0)), Se(C, r, w, s, a);
1822
- let T = {};
1823
- return d && (T.updatedPath = l), T.originalPath = r.points, T;
1824
- }, "insertEdge"), je = /* @__PURE__ */ e((e) => {
1825
- let t = /* @__PURE__ */ new Set();
1826
- for (let n of e) switch (n) {
1819
+ let W = e.append("path").attr("d", H(R)).attr("id", w.id).attr("class", " " + U + (w.classes ? " " + w.classes : "")).attr("style", w.style), G = "";
1820
+ (getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) && (G = getUrl(!0)), addEdgeMarkers(W, w, G, O, E);
1821
+ let K = {};
1822
+ return M && (K.updatedPath = A), K.originalPath = w.points, K;
1823
+ }, "insertEdge"), expandAndDeduplicateDirections = /* @__PURE__ */ __name((e) => {
1824
+ let S = /* @__PURE__ */ new Set();
1825
+ for (let C of e) switch (C) {
1827
1826
  case "x":
1828
- t.add("right"), t.add("left");
1827
+ S.add("right"), S.add("left");
1829
1828
  break;
1830
1829
  case "y":
1831
- t.add("up"), t.add("down");
1830
+ S.add("up"), S.add("down");
1832
1831
  break;
1833
1832
  default:
1834
- t.add(n);
1833
+ S.add(C);
1835
1834
  break;
1836
1835
  }
1837
- return t;
1838
- }, "expandAndDeduplicateDirections"), Me = /* @__PURE__ */ e((e, t, n) => {
1839
- let r = je(e), i = t.height + 2 * n.padding, a = i / 2, o = t.width + 2 * a + n.padding, s = n.padding / 2;
1840
- return r.has("right") && r.has("left") && r.has("up") && r.has("down") ? [
1836
+ 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") ? [
1841
1840
  {
1842
1841
  x: 0,
1843
1842
  y: 0
1844
1843
  },
1845
1844
  {
1846
- x: a,
1845
+ x: E,
1847
1846
  y: 0
1848
1847
  },
1849
1848
  {
1850
- x: o / 2,
1851
- y: 2 * s
1849
+ x: D / 2,
1850
+ y: 2 * O
1852
1851
  },
1853
1852
  {
1854
- x: o - a,
1853
+ x: D - E,
1855
1854
  y: 0
1856
1855
  },
1857
1856
  {
1858
- x: o,
1857
+ x: D,
1859
1858
  y: 0
1860
1859
  },
1861
1860
  {
1862
- x: o,
1863
- y: -i / 3
1861
+ x: D,
1862
+ y: -T / 3
1864
1863
  },
1865
1864
  {
1866
- x: o + 2 * s,
1867
- y: -i / 2
1865
+ x: D + 2 * O,
1866
+ y: -T / 2
1868
1867
  },
1869
1868
  {
1870
- x: o,
1871
- y: -2 * i / 3
1869
+ x: D,
1870
+ y: -2 * T / 3
1872
1871
  },
1873
1872
  {
1874
- x: o,
1875
- y: -i
1873
+ x: D,
1874
+ y: -T
1876
1875
  },
1877
1876
  {
1878
- x: o - a,
1879
- y: -i
1877
+ x: D - E,
1878
+ y: -T
1880
1879
  },
1881
1880
  {
1882
- x: o / 2,
1883
- y: -i - 2 * s
1881
+ x: D / 2,
1882
+ y: -T - 2 * O
1884
1883
  },
1885
1884
  {
1886
- x: a,
1887
- y: -i
1885
+ x: E,
1886
+ y: -T
1888
1887
  },
1889
1888
  {
1890
1889
  x: 0,
1891
- y: -i
1890
+ y: -T
1892
1891
  },
1893
1892
  {
1894
1893
  x: 0,
1895
- y: -2 * i / 3
1894
+ y: -2 * T / 3
1896
1895
  },
1897
1896
  {
1898
- x: -2 * s,
1899
- y: -i / 2
1897
+ x: -2 * O,
1898
+ y: -T / 2
1900
1899
  },
1901
1900
  {
1902
1901
  x: 0,
1903
- y: -i / 3
1902
+ y: -T / 3
1904
1903
  }
1905
- ] : r.has("right") && r.has("left") && r.has("up") ? [
1904
+ ] : w.has("right") && w.has("left") && w.has("up") ? [
1906
1905
  {
1907
- x: a,
1906
+ x: E,
1908
1907
  y: 0
1909
1908
  },
1910
1909
  {
1911
- x: o - a,
1910
+ x: D - E,
1912
1911
  y: 0
1913
1912
  },
1914
1913
  {
1915
- x: o,
1916
- y: -i / 2
1914
+ x: D,
1915
+ y: -T / 2
1917
1916
  },
1918
1917
  {
1919
- x: o - a,
1920
- y: -i
1918
+ x: D - E,
1919
+ y: -T
1921
1920
  },
1922
1921
  {
1923
- x: a,
1924
- y: -i
1922
+ x: E,
1923
+ y: -T
1925
1924
  },
1926
1925
  {
1927
1926
  x: 0,
1928
- y: -i / 2
1927
+ y: -T / 2
1929
1928
  }
1930
- ] : r.has("right") && r.has("left") && r.has("down") ? [
1929
+ ] : w.has("right") && w.has("left") && w.has("down") ? [
1931
1930
  {
1932
1931
  x: 0,
1933
1932
  y: 0
1934
1933
  },
1935
1934
  {
1936
- x: a,
1937
- y: -i
1935
+ x: E,
1936
+ y: -T
1938
1937
  },
1939
1938
  {
1940
- x: o - a,
1941
- y: -i
1939
+ x: D - E,
1940
+ y: -T
1942
1941
  },
1943
1942
  {
1944
- x: o,
1943
+ x: D,
1945
1944
  y: 0
1946
1945
  }
1947
- ] : r.has("right") && r.has("up") && r.has("down") ? [
1946
+ ] : w.has("right") && w.has("up") && w.has("down") ? [
1948
1947
  {
1949
1948
  x: 0,
1950
1949
  y: 0
1951
1950
  },
1952
1951
  {
1953
- x: o,
1954
- y: -a
1952
+ x: D,
1953
+ y: -E
1955
1954
  },
1956
1955
  {
1957
- x: o,
1958
- y: -i + a
1956
+ x: D,
1957
+ y: -T + E
1959
1958
  },
1960
1959
  {
1961
1960
  x: 0,
1962
- y: -i
1961
+ y: -T
1963
1962
  }
1964
- ] : r.has("left") && r.has("up") && r.has("down") ? [
1963
+ ] : w.has("left") && w.has("up") && w.has("down") ? [
1965
1964
  {
1966
- x: o,
1965
+ x: D,
1967
1966
  y: 0
1968
1967
  },
1969
1968
  {
1970
1969
  x: 0,
1971
- y: -a
1970
+ y: -E
1972
1971
  },
1973
1972
  {
1974
1973
  x: 0,
1975
- y: -i + a
1974
+ y: -T + E
1976
1975
  },
1977
1976
  {
1978
- x: o,
1979
- y: -i
1977
+ x: D,
1978
+ y: -T
1980
1979
  }
1981
- ] : r.has("right") && r.has("left") ? [
1980
+ ] : w.has("right") && w.has("left") ? [
1982
1981
  {
1983
- x: a,
1982
+ x: E,
1984
1983
  y: 0
1985
1984
  },
1986
1985
  {
1987
- x: a,
1988
- y: -s
1986
+ x: E,
1987
+ y: -O
1989
1988
  },
1990
1989
  {
1991
- x: o - a,
1992
- y: -s
1990
+ x: D - E,
1991
+ y: -O
1993
1992
  },
1994
1993
  {
1995
- x: o - a,
1994
+ x: D - E,
1996
1995
  y: 0
1997
1996
  },
1998
1997
  {
1999
- x: o,
2000
- y: -i / 2
1998
+ x: D,
1999
+ y: -T / 2
2001
2000
  },
2002
2001
  {
2003
- x: o - a,
2004
- y: -i
2002
+ x: D - E,
2003
+ y: -T
2005
2004
  },
2006
2005
  {
2007
- x: o - a,
2008
- y: -i + s
2006
+ x: D - E,
2007
+ y: -T + O
2009
2008
  },
2010
2009
  {
2011
- x: a,
2012
- y: -i + s
2010
+ x: E,
2011
+ y: -T + O
2013
2012
  },
2014
2013
  {
2015
- x: a,
2016
- y: -i
2014
+ x: E,
2015
+ y: -T
2017
2016
  },
2018
2017
  {
2019
2018
  x: 0,
2020
- y: -i / 2
2019
+ y: -T / 2
2021
2020
  }
2022
- ] : r.has("up") && r.has("down") ? [
2021
+ ] : w.has("up") && w.has("down") ? [
2023
2022
  {
2024
- x: o / 2,
2023
+ x: D / 2,
2025
2024
  y: 0
2026
2025
  },
2027
2026
  {
2028
2027
  x: 0,
2029
- y: -s
2028
+ y: -O
2030
2029
  },
2031
2030
  {
2032
- x: a,
2033
- y: -s
2031
+ x: E,
2032
+ y: -O
2034
2033
  },
2035
2034
  {
2036
- x: a,
2037
- y: -i + s
2035
+ x: E,
2036
+ y: -T + O
2038
2037
  },
2039
2038
  {
2040
2039
  x: 0,
2041
- y: -i + s
2040
+ y: -T + O
2042
2041
  },
2043
2042
  {
2044
- x: o / 2,
2045
- y: -i
2043
+ x: D / 2,
2044
+ y: -T
2046
2045
  },
2047
2046
  {
2048
- x: o,
2049
- y: -i + s
2047
+ x: D,
2048
+ y: -T + O
2050
2049
  },
2051
2050
  {
2052
- x: o - a,
2053
- y: -i + s
2051
+ x: D - E,
2052
+ y: -T + O
2054
2053
  },
2055
2054
  {
2056
- x: o - a,
2057
- y: -s
2055
+ x: D - E,
2056
+ y: -O
2058
2057
  },
2059
2058
  {
2060
- x: o,
2061
- y: -s
2059
+ x: D,
2060
+ y: -O
2062
2061
  }
2063
- ] : r.has("right") && r.has("up") ? [
2062
+ ] : w.has("right") && w.has("up") ? [
2064
2063
  {
2065
2064
  x: 0,
2066
2065
  y: 0
2067
2066
  },
2068
2067
  {
2069
- x: o,
2070
- y: -a
2068
+ x: D,
2069
+ y: -E
2071
2070
  },
2072
2071
  {
2073
2072
  x: 0,
2074
- y: -i
2073
+ y: -T
2075
2074
  }
2076
- ] : r.has("right") && r.has("down") ? [
2075
+ ] : w.has("right") && w.has("down") ? [
2077
2076
  {
2078
2077
  x: 0,
2079
2078
  y: 0
2080
2079
  },
2081
2080
  {
2082
- x: o,
2081
+ x: D,
2083
2082
  y: 0
2084
2083
  },
2085
2084
  {
2086
2085
  x: 0,
2087
- y: -i
2086
+ y: -T
2088
2087
  }
2089
- ] : r.has("left") && r.has("up") ? [
2088
+ ] : w.has("left") && w.has("up") ? [
2090
2089
  {
2091
- x: o,
2090
+ x: D,
2092
2091
  y: 0
2093
2092
  },
2094
2093
  {
2095
2094
  x: 0,
2096
- y: -a
2095
+ y: -E
2097
2096
  },
2098
2097
  {
2099
- x: o,
2100
- y: -i
2098
+ x: D,
2099
+ y: -T
2101
2100
  }
2102
- ] : r.has("left") && r.has("down") ? [
2101
+ ] : w.has("left") && w.has("down") ? [
2103
2102
  {
2104
- x: o,
2103
+ x: D,
2105
2104
  y: 0
2106
2105
  },
2107
2106
  {
@@ -2109,272 +2108,272 @@ var Ee = /* @__PURE__ */ e((e, n) => {
2109
2108
  y: 0
2110
2109
  },
2111
2110
  {
2112
- x: o,
2113
- y: -i
2111
+ x: D,
2112
+ y: -T
2114
2113
  }
2115
- ] : r.has("right") ? [
2114
+ ] : w.has("right") ? [
2116
2115
  {
2117
- x: a,
2118
- y: -s
2116
+ x: E,
2117
+ y: -O
2119
2118
  },
2120
2119
  {
2121
- x: a,
2122
- y: -s
2120
+ x: E,
2121
+ y: -O
2123
2122
  },
2124
2123
  {
2125
- x: o - a,
2126
- y: -s
2124
+ x: D - E,
2125
+ y: -O
2127
2126
  },
2128
2127
  {
2129
- x: o - a,
2128
+ x: D - E,
2130
2129
  y: 0
2131
2130
  },
2132
2131
  {
2133
- x: o,
2134
- y: -i / 2
2132
+ x: D,
2133
+ y: -T / 2
2135
2134
  },
2136
2135
  {
2137
- x: o - a,
2138
- y: -i
2136
+ x: D - E,
2137
+ y: -T
2139
2138
  },
2140
2139
  {
2141
- x: o - a,
2142
- y: -i + s
2140
+ x: D - E,
2141
+ y: -T + O
2143
2142
  },
2144
2143
  {
2145
- x: a,
2146
- y: -i + s
2144
+ x: E,
2145
+ y: -T + O
2147
2146
  },
2148
2147
  {
2149
- x: a,
2150
- y: -i + s
2148
+ x: E,
2149
+ y: -T + O
2151
2150
  }
2152
- ] : r.has("left") ? [
2151
+ ] : w.has("left") ? [
2153
2152
  {
2154
- x: a,
2153
+ x: E,
2155
2154
  y: 0
2156
2155
  },
2157
2156
  {
2158
- x: a,
2159
- y: -s
2157
+ x: E,
2158
+ y: -O
2160
2159
  },
2161
2160
  {
2162
- x: o - a,
2163
- y: -s
2161
+ x: D - E,
2162
+ y: -O
2164
2163
  },
2165
2164
  {
2166
- x: o - a,
2167
- y: -i + s
2165
+ x: D - E,
2166
+ y: -T + O
2168
2167
  },
2169
2168
  {
2170
- x: a,
2171
- y: -i + s
2169
+ x: E,
2170
+ y: -T + O
2172
2171
  },
2173
2172
  {
2174
- x: a,
2175
- y: -i
2173
+ x: E,
2174
+ y: -T
2176
2175
  },
2177
2176
  {
2178
2177
  x: 0,
2179
- y: -i / 2
2178
+ y: -T / 2
2180
2179
  }
2181
- ] : r.has("up") ? [
2180
+ ] : w.has("up") ? [
2182
2181
  {
2183
- x: a,
2184
- y: -s
2182
+ x: E,
2183
+ y: -O
2185
2184
  },
2186
2185
  {
2187
- x: a,
2188
- y: -i + s
2186
+ x: E,
2187
+ y: -T + O
2189
2188
  },
2190
2189
  {
2191
2190
  x: 0,
2192
- y: -i + s
2191
+ y: -T + O
2193
2192
  },
2194
2193
  {
2195
- x: o / 2,
2196
- y: -i
2194
+ x: D / 2,
2195
+ y: -T
2197
2196
  },
2198
2197
  {
2199
- x: o,
2200
- y: -i + s
2198
+ x: D,
2199
+ y: -T + O
2201
2200
  },
2202
2201
  {
2203
- x: o - a,
2204
- y: -i + s
2202
+ x: D - E,
2203
+ y: -T + O
2205
2204
  },
2206
2205
  {
2207
- x: o - a,
2208
- y: -s
2206
+ x: D - E,
2207
+ y: -O
2209
2208
  }
2210
- ] : r.has("down") ? [
2209
+ ] : w.has("down") ? [
2211
2210
  {
2212
- x: o / 2,
2211
+ x: D / 2,
2213
2212
  y: 0
2214
2213
  },
2215
2214
  {
2216
2215
  x: 0,
2217
- y: -s
2216
+ y: -O
2218
2217
  },
2219
2218
  {
2220
- x: a,
2221
- y: -s
2219
+ x: E,
2220
+ y: -O
2222
2221
  },
2223
2222
  {
2224
- x: a,
2225
- y: -i + s
2223
+ x: E,
2224
+ y: -T + O
2226
2225
  },
2227
2226
  {
2228
- x: o - a,
2229
- y: -i + s
2227
+ x: D - E,
2228
+ y: -T + O
2230
2229
  },
2231
2230
  {
2232
- x: o - a,
2233
- y: -s
2231
+ x: D - E,
2232
+ y: -O
2234
2233
  },
2235
2234
  {
2236
- x: o,
2237
- y: -s
2235
+ x: D,
2236
+ y: -O
2238
2237
  }
2239
2238
  ] : [{
2240
2239
  x: 0,
2241
2240
  y: 0
2242
2241
  }];
2243
2242
  }, "getArrowPoints");
2244
- function Ne(e, t) {
2245
- return e.intersect(t);
2243
+ function intersectNode(e, S) {
2244
+ return e.intersect(S);
2246
2245
  }
2247
- e(Ne, "intersectNode");
2248
- var Pe = Ne;
2249
- function Fe(e, t, n, r) {
2250
- var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
2251
- r.x < i && (l = -l);
2252
- var u = Math.abs(t * n * s / c);
2253
- return r.y < a && (u = -u), {
2254
- x: i + l,
2255
- y: a + u
2246
+ __name(intersectNode, "intersectNode");
2247
+ var intersect_node_default = intersectNode;
2248
+ function intersectEllipse(e, S, C, w) {
2249
+ var T = e.x, E = e.y, D = T - w.x, O = E - w.y, k = Math.sqrt(S * S * O * O + C * C * D * D), A = Math.abs(S * C * D / k);
2250
+ w.x < T && (A = -A);
2251
+ var j = Math.abs(S * C * O / k);
2252
+ return w.y < E && (j = -j), {
2253
+ x: T + A,
2254
+ y: E + j
2256
2255
  };
2257
2256
  }
2258
- e(Fe, "intersectEllipse");
2259
- var Ie = Fe;
2260
- function Le(e, t, n) {
2261
- return Ie(e, t, t, n);
2257
+ __name(intersectEllipse, "intersectEllipse");
2258
+ var intersect_ellipse_default = intersectEllipse;
2259
+ function intersectCircle(e, S, C) {
2260
+ return intersect_ellipse_default(e, S, S, C);
2262
2261
  }
2263
- e(Le, "intersectCircle");
2264
- var Re = Le;
2265
- function ze(e, t, n, r) {
2266
- var i = t.y - e.y, a, o = e.x - t.x, s, c = t.x * e.y - e.x * t.y, l, u, d, f = i * n.x + o * n.y + c, p = i * r.x + o * r.y + c, m, h, g, _, v;
2267
- if (!(f !== 0 && p !== 0 && G(f, p)) && (a = r.y - n.y, s = n.x - r.x, l = r.x * n.y - n.x * r.y, u = a * e.x + s * e.y + l, d = a * t.x + s * t.y + l, !(u !== 0 && d !== 0 && G(u, d)) && (m = i * s - a * o, m !== 0))) return h = Math.abs(m / 2), g = o * l - s * c, _ = g < 0 ? (g - h) / m : (g + h) / m, g = a * c - i * l, v = g < 0 ? (g - h) / m : (g + h) / m, {
2268
- x: _,
2269
- y: v
2262
+ __name(intersectCircle, "intersectCircle");
2263
+ var intersect_circle_default = intersectCircle;
2264
+ function intersectLine(e, S, C, w) {
2265
+ var T = S.y - e.y, E, D = e.x - S.x, O, k = S.x * e.y - e.x * S.y, A, j, M, N = T * C.x + D * C.y + k, P = T * w.x + D * w.y + k, F, I, L, R, z;
2266
+ if (!(N !== 0 && P !== 0 && sameSign(N, P)) && (E = w.y - C.y, O = C.x - w.x, A = w.x * C.y - C.x * w.y, j = E * e.x + O * e.y + A, M = E * S.x + O * S.y + A, !(j !== 0 && M !== 0 && sameSign(j, M)) && (F = T * O - E * D, F !== 0))) return I = Math.abs(F / 2), L = D * A - O * k, R = L < 0 ? (L - I) / F : (L + I) / F, L = E * k - T * A, z = L < 0 ? (L - I) / F : (L + I) / F, {
2267
+ x: R,
2268
+ y: z
2270
2269
  };
2271
2270
  }
2272
- e(ze, "intersectLine");
2273
- function G(e, t) {
2274
- return e * t > 0;
2271
+ __name(intersectLine, "intersectLine");
2272
+ function sameSign(e, S) {
2273
+ return e * S > 0;
2275
2274
  }
2276
- e(G, "sameSign");
2277
- var Be = ze, Ve = He;
2278
- function He(e, t, n) {
2279
- var r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
2280
- typeof t.forEach == "function" ? t.forEach(function(e) {
2281
- o = Math.min(o, e.x), s = Math.min(s, e.y);
2282
- }) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
2283
- for (var c = r - e.width / 2 - o, l = i - e.height / 2 - s, u = 0; u < t.length; u++) {
2284
- var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = Be(e, n, {
2285
- x: c + d.x,
2286
- y: l + d.y
2275
+ __name(sameSign, "sameSign");
2276
+ var intersect_line_default = intersectLine, intersect_polygon_default = intersectPolygon;
2277
+ function intersectPolygon(e, S, C) {
2278
+ var w = e.x, T = e.y, E = [], D = Infinity, O = Infinity;
2279
+ typeof S.forEach == "function" ? S.forEach(function(e) {
2280
+ D = Math.min(D, e.x), O = Math.min(O, e.y);
2281
+ }) : (D = Math.min(D, S.x), O = Math.min(O, S.y));
2282
+ for (var k = w - e.width / 2 - D, A = T - e.height / 2 - O, j = 0; j < S.length; j++) {
2283
+ var M = S[j], N = S[j < S.length - 1 ? j + 1 : 0], P = intersect_line_default(e, C, {
2284
+ x: k + M.x,
2285
+ y: A + M.y
2287
2286
  }, {
2288
- x: c + f.x,
2289
- y: l + f.y
2287
+ x: k + N.x,
2288
+ y: A + N.y
2290
2289
  });
2291
- p && a.push(p);
2290
+ P && E.push(P);
2292
2291
  }
2293
- return a.length ? (a.length > 1 && a.sort(function(e, t) {
2294
- var r = e.x - n.x, i = e.y - n.y, a = Math.sqrt(r * r + i * i), o = t.x - n.x, s = t.y - n.y, c = Math.sqrt(o * o + s * s);
2295
- return a < c ? -1 : a === c ? 0 : 1;
2296
- }), a[0]) : e;
2292
+ return E.length ? (E.length > 1 && E.sort(function(e, S) {
2293
+ var w = e.x - C.x, T = e.y - C.y, E = Math.sqrt(w * w + T * T), D = S.x - C.x, O = S.y - C.y, k = Math.sqrt(D * D + O * O);
2294
+ return E < k ? -1 : E === k ? 0 : 1;
2295
+ }), E[0]) : e;
2297
2296
  }
2298
- e(He, "intersectPolygon");
2299
- var K = {
2300
- node: Pe,
2301
- circle: Re,
2302
- ellipse: Ie,
2303
- polygon: Ve,
2304
- rect: /* @__PURE__ */ e((e, t) => {
2305
- var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
2306
- return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
2307
- x: n + c,
2308
- y: r + l
2297
+ __name(intersectPolygon, "intersectPolygon");
2298
+ var intersect_default = {
2299
+ node: intersect_node_default,
2300
+ circle: intersect_circle_default,
2301
+ ellipse: intersect_ellipse_default,
2302
+ polygon: intersect_polygon_default,
2303
+ rect: /* @__PURE__ */ __name((e, S) => {
2304
+ var C = e.x, w = e.y, T = S.x - C, E = S.y - w, D = e.width / 2, O = e.height / 2, k, A;
2305
+ return Math.abs(E) * D > Math.abs(T) * O ? (E < 0 && (O = -O), k = E === 0 ? 0 : O * T / E, A = O) : (T < 0 && (D = -D), k = D, A = T === 0 ? 0 : D * E / T), {
2306
+ x: C + k,
2307
+ y: w + A
2309
2308
  };
2310
2309
  }, "intersectRect")
2311
- }, q = /* @__PURE__ */ e(async (e, t, n, r) => {
2312
- let i = c(), a, o = t.useHtmlLabels || l(i);
2313
- a = n || "node default";
2314
- let s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), u = s.insert("g").attr("class", "label").attr("style", t.labelStyle), p;
2315
- p = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
2316
- let m;
2317
- m = t.labelType === "markdown" ? S(u, d(_(p), i), {
2318
- useHtmlLabels: o,
2319
- width: t.width || i.flowchart.wrappingWidth,
2310
+ }, labelHelper = /* @__PURE__ */ __name(async (e, S, C, w) => {
2311
+ let T = getConfig2(), E, D = S.useHtmlLabels || getEffectiveHtmlLabels(T);
2312
+ E = C || "node default";
2313
+ let O = e.insert("g").attr("class", E).attr("id", S.domId || S.id), j = O.insert("g").attr("class", "label").attr("style", S.labelStyle), P;
2314
+ P = S.labelText === void 0 ? "" : typeof S.labelText == "string" ? S.labelText : S.labelText[0];
2315
+ let F;
2316
+ F = S.labelType === "markdown" ? createText(j, sanitizeText(decodeEntities(P), T), {
2317
+ useHtmlLabels: D,
2318
+ width: S.width || T.flowchart.wrappingWidth,
2320
2319
  classes: "markdown-node-label"
2321
- }, i) : await V(u, d(_(p), i), t.labelStyle, !1, r);
2322
- let h = m.getBBox(), g = t.padding / 2;
2323
- if (l(i)) {
2324
- let e = m.children[0], t = f(m);
2325
- await b(e, p), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2320
+ }, T) : await createLabel_default(j, sanitizeText(decodeEntities(P), T), S.labelStyle, !1, w);
2321
+ let I = F.getBBox(), L = S.padding / 2;
2322
+ if (getEffectiveHtmlLabels(T)) {
2323
+ let e = F.children[0], S = select_default(F);
2324
+ await configureLabelImages(e, P), I = e.getBoundingClientRect(), S.attr("width", I.width), S.attr("height", I.height);
2326
2325
  }
2327
- return o ? u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : u.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), u.insert("rect", ":first-child"), {
2328
- shapeSvg: s,
2329
- bbox: h,
2330
- halfPadding: g,
2331
- label: u
2326
+ return D ? j.attr("transform", "translate(" + -I.width / 2 + ", " + -I.height / 2 + ")") : j.attr("transform", "translate(0, " + -I.height / 2 + ")"), S.centerLabel && j.attr("transform", "translate(" + -I.width / 2 + ", " + -I.height / 2 + ")"), j.insert("rect", ":first-child"), {
2327
+ shapeSvg: O,
2328
+ bbox: I,
2329
+ halfPadding: L,
2330
+ label: j
2332
2331
  };
2333
- }, "labelHelper"), J = /* @__PURE__ */ e((e, t) => {
2334
- let n = t.node().getBBox();
2335
- e.width = n.width, e.height = n.height;
2332
+ }, "labelHelper"), updateNodeBounds = /* @__PURE__ */ __name((e, S) => {
2333
+ let C = S.node().getBBox();
2334
+ e.width = C.width, e.height = C.height;
2336
2335
  }, "updateNodeBounds");
2337
- function Y(e, t, n, r) {
2338
- return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
2336
+ function insertPolygonShape(e, S, C, w) {
2337
+ return e.insert("polygon", ":first-child").attr("points", w.map(function(e) {
2339
2338
  return e.x + "," + e.y;
2340
- }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
2339
+ }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -S / 2 + "," + C / 2 + ")");
2341
2340
  }
2342
- e(Y, "insertPolygonShape");
2343
- var Ue = /* @__PURE__ */ e(async (e, n) => {
2344
- n.useHtmlLabels || l(c()) || (n.centerLabel = !0);
2345
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, "node " + n.classes, !0);
2346
- t.info("Classes = ", n.classes);
2347
- let o = r.insert("rect", ":first-child");
2348
- return o.attr("rx", n.rx).attr("ry", n.ry).attr("x", -i.width / 2 - a).attr("y", -i.height / 2 - a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), J(n, o), n.intersect = function(e) {
2349
- return K.rect(n, e);
2350
- }, r;
2351
- }, "note"), We = /* @__PURE__ */ e((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ e((e, t) => `${t || "node default"}${We(e.classes)} ${We(e.class)}`, "getClassesFromNode"), Ge = /* @__PURE__ */ e(async (e, n) => {
2352
- let { shapeSvg: r, bbox: i } = await q(e, n, X(n, void 0), !0), a = i.width + n.padding + (i.height + n.padding), o = [
2353
- {
2354
- x: a / 2,
2341
+ __name(insertPolygonShape, "insertPolygonShape");
2342
+ var note_default = /* @__PURE__ */ __name(async (e, C) => {
2343
+ C.useHtmlLabels || getEffectiveHtmlLabels(getConfig2()) || (C.centerLabel = !0);
2344
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, !0);
2345
+ log.info("Classes = ", C.classes);
2346
+ let D = w.insert("rect", ":first-child");
2347
+ return D.attr("rx", C.rx).attr("ry", C.ry).attr("x", -T.width / 2 - E).attr("y", -T.height / 2 - E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), updateNodeBounds(C, D), C.intersect = function(e) {
2348
+ return intersect_default.rect(C, e);
2349
+ }, w;
2350
+ }, "note"), formatClass = /* @__PURE__ */ __name((e) => e ? " " + e : "", "formatClass"), getClassesFromNode = /* @__PURE__ */ __name((e, S) => `${S || "node default"}${formatClass(e.classes)} ${formatClass(e.class)}`, "getClassesFromNode"), question = /* @__PURE__ */ __name(async (e, C) => {
2351
+ let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), E = T.width + C.padding + (T.height + C.padding), D = [
2352
+ {
2353
+ x: E / 2,
2355
2354
  y: 0
2356
2355
  },
2357
2356
  {
2358
- x: a,
2359
- y: -a / 2
2357
+ x: E,
2358
+ y: -E / 2
2360
2359
  },
2361
2360
  {
2362
- x: a / 2,
2363
- y: -a
2361
+ x: E / 2,
2362
+ y: -E
2364
2363
  },
2365
2364
  {
2366
2365
  x: 0,
2367
- y: -a / 2
2366
+ y: -E / 2
2368
2367
  }
2369
2368
  ];
2370
- t.info("Question main (Circle)");
2371
- let s = Y(r, a, a, o);
2372
- return s.attr("style", n.style), J(n, s), n.intersect = function(e) {
2373
- return t.warn("Intersect called"), K.polygon(n, o, e);
2374
- }, r;
2375
- }, "question"), Ke = /* @__PURE__ */ e((e, t) => {
2376
- let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2377
- return n.insert("polygon", ":first-child").attr("points", [
2369
+ log.info("Question main (Circle)");
2370
+ let O = insertPolygonShape(w, E, E, D);
2371
+ return O.attr("style", C.style), updateNodeBounds(C, O), C.intersect = function(e) {
2372
+ return log.warn("Intersect called"), intersect_default.polygon(C, D, e);
2373
+ }, w;
2374
+ }, "question"), choice = /* @__PURE__ */ __name((e, S) => {
2375
+ let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id);
2376
+ return C.insert("polygon", ":first-child").attr("points", [
2378
2377
  {
2379
2378
  x: 0,
2380
2379
  y: 28 / 2
@@ -2393,294 +2392,294 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
2393
2392
  }
2394
2393
  ].map(function(e) {
2395
2394
  return e.x + "," + e.y;
2396
- }).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(e) {
2397
- return K.circle(t, 14, e);
2398
- }, n;
2399
- }, "choice"), qe = /* @__PURE__ */ e(async (e, t) => {
2400
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = i / 4, o = r.width + 2 * a + t.padding, s = [
2395
+ }).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), S.width = 28, S.height = 28, S.intersect = function(e) {
2396
+ return intersect_default.circle(S, 14, e);
2397
+ }, C;
2398
+ }, "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 = [
2401
2400
  {
2402
- x: a,
2401
+ x: E,
2403
2402
  y: 0
2404
2403
  },
2405
2404
  {
2406
- x: o - a,
2405
+ x: D - E,
2407
2406
  y: 0
2408
2407
  },
2409
2408
  {
2410
- x: o,
2411
- y: -i / 2
2409
+ x: D,
2410
+ y: -T / 2
2412
2411
  },
2413
2412
  {
2414
- x: o - a,
2415
- y: -i
2413
+ x: D - E,
2414
+ y: -T
2416
2415
  },
2417
2416
  {
2418
- x: a,
2419
- y: -i
2417
+ x: E,
2418
+ y: -T
2420
2419
  },
2421
2420
  {
2422
2421
  x: 0,
2423
- y: -i / 2
2422
+ y: -T / 2
2424
2423
  }
2425
- ], c = Y(n, o, i, s);
2426
- return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2427
- return K.polygon(t, s, e);
2428
- }, n;
2429
- }, "hexagon"), Je = /* @__PURE__ */ e(async (e, t) => {
2430
- let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = Me(t.directions, r, t), c = Y(n, o, i, s);
2431
- return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2432
- return K.polygon(t, s, e);
2433
- }, n;
2434
- }, "block_arrow"), Ye = /* @__PURE__ */ e(async (e, t) => {
2435
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2436
- {
2437
- x: -a / 2,
2424
+ ], k = insertPolygonShape(C, D, T, O);
2425
+ return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e) {
2426
+ return intersect_default.polygon(S, O, e);
2427
+ }, C;
2428
+ }, "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);
2432
+ }, C;
2433
+ }, "block_arrow"), rect_left_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
2434
+ 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 = [
2435
+ {
2436
+ x: -E / 2,
2438
2437
  y: 0
2439
2438
  },
2440
2439
  {
2441
- x: i,
2440
+ x: T,
2442
2441
  y: 0
2443
2442
  },
2444
2443
  {
2445
- x: i,
2446
- y: -a
2444
+ x: T,
2445
+ y: -E
2447
2446
  },
2448
2447
  {
2449
- x: -a / 2,
2450
- y: -a
2448
+ x: -E / 2,
2449
+ y: -E
2451
2450
  },
2452
2451
  {
2453
2452
  x: 0,
2454
- y: -a / 2
2453
+ y: -E / 2
2455
2454
  }
2456
2455
  ];
2457
- return Y(n, i, a, o).attr("style", t.style), t.width = i + a, t.height = a, t.intersect = function(e) {
2458
- return K.polygon(t, o, e);
2459
- }, n;
2460
- }, "rect_left_inv_arrow"), Xe = /* @__PURE__ */ e(async (e, t) => {
2461
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2456
+ return insertPolygonShape(C, T, E, D).attr("style", S.style), S.width = T + E, S.height = E, S.intersect = function(e) {
2457
+ return intersect_default.polygon(S, D, e);
2458
+ }, C;
2459
+ }, "rect_left_inv_arrow"), lean_right = /* @__PURE__ */ __name(async (e, S) => {
2460
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2462
2461
  {
2463
- x: -2 * a / 6,
2462
+ x: -2 * E / 6,
2464
2463
  y: 0
2465
2464
  },
2466
2465
  {
2467
- x: i - a / 6,
2466
+ x: T - E / 6,
2468
2467
  y: 0
2469
2468
  },
2470
2469
  {
2471
- x: i + 2 * a / 6,
2472
- y: -a
2470
+ x: T + 2 * E / 6,
2471
+ y: -E
2473
2472
  },
2474
2473
  {
2475
- x: a / 6,
2476
- y: -a
2474
+ x: E / 6,
2475
+ y: -E
2477
2476
  }
2478
- ], s = Y(n, i, a, o);
2479
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2480
- return K.polygon(t, o, e);
2481
- }, n;
2482
- }, "lean_right"), Ze = /* @__PURE__ */ e(async (e, t) => {
2483
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2484
- {
2485
- x: 2 * a / 6,
2477
+ ], O = insertPolygonShape(C, T, E, D);
2478
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2479
+ return intersect_default.polygon(S, D, e);
2480
+ }, C;
2481
+ }, "lean_right"), lean_left = /* @__PURE__ */ __name(async (e, S) => {
2482
+ 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 = [
2483
+ {
2484
+ x: 2 * E / 6,
2486
2485
  y: 0
2487
2486
  },
2488
2487
  {
2489
- x: i + a / 6,
2488
+ x: T + E / 6,
2490
2489
  y: 0
2491
2490
  },
2492
2491
  {
2493
- x: i - 2 * a / 6,
2494
- y: -a
2492
+ x: T - 2 * E / 6,
2493
+ y: -E
2495
2494
  },
2496
2495
  {
2497
- x: -a / 6,
2498
- y: -a
2496
+ x: -E / 6,
2497
+ y: -E
2499
2498
  }
2500
- ], s = Y(n, i, a, o);
2501
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2502
- return K.polygon(t, o, e);
2503
- }, n;
2504
- }, "lean_left"), Qe = /* @__PURE__ */ e(async (e, t) => {
2505
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2506
- {
2507
- x: -2 * a / 6,
2499
+ ], O = insertPolygonShape(C, T, E, D);
2500
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2501
+ return intersect_default.polygon(S, D, e);
2502
+ }, C;
2503
+ }, "lean_left"), trapezoid = /* @__PURE__ */ __name(async (e, S) => {
2504
+ 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 = [
2505
+ {
2506
+ x: -2 * E / 6,
2508
2507
  y: 0
2509
2508
  },
2510
2509
  {
2511
- x: i + 2 * a / 6,
2510
+ x: T + 2 * E / 6,
2512
2511
  y: 0
2513
2512
  },
2514
2513
  {
2515
- x: i - a / 6,
2516
- y: -a
2514
+ x: T - E / 6,
2515
+ y: -E
2517
2516
  },
2518
2517
  {
2519
- x: a / 6,
2520
- y: -a
2518
+ x: E / 6,
2519
+ y: -E
2521
2520
  }
2522
- ], s = Y(n, i, a, o);
2523
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2524
- return K.polygon(t, o, e);
2525
- }, n;
2526
- }, "trapezoid"), $e = /* @__PURE__ */ e(async (e, t) => {
2527
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2528
- {
2529
- x: a / 6,
2521
+ ], O = insertPolygonShape(C, T, E, D);
2522
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2523
+ return intersect_default.polygon(S, D, e);
2524
+ }, C;
2525
+ }, "trapezoid"), inv_trapezoid = /* @__PURE__ */ __name(async (e, S) => {
2526
+ 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 = [
2527
+ {
2528
+ x: E / 6,
2530
2529
  y: 0
2531
2530
  },
2532
2531
  {
2533
- x: i - a / 6,
2532
+ x: T - E / 6,
2534
2533
  y: 0
2535
2534
  },
2536
2535
  {
2537
- x: i + 2 * a / 6,
2538
- y: -a
2536
+ x: T + 2 * E / 6,
2537
+ y: -E
2539
2538
  },
2540
2539
  {
2541
- x: -2 * a / 6,
2542
- y: -a
2540
+ x: -2 * E / 6,
2541
+ y: -E
2543
2542
  }
2544
- ], s = Y(n, i, a, o);
2545
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2546
- return K.polygon(t, o, e);
2547
- }, n;
2548
- }, "inv_trapezoid"), et = /* @__PURE__ */ e(async (e, t) => {
2549
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2543
+ ], O = insertPolygonShape(C, T, E, D);
2544
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2545
+ return intersect_default.polygon(S, D, e);
2546
+ }, C;
2547
+ }, "inv_trapezoid"), rect_right_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
2548
+ 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 = [
2550
2549
  {
2551
2550
  x: 0,
2552
2551
  y: 0
2553
2552
  },
2554
2553
  {
2555
- x: i + a / 2,
2554
+ x: T + E / 2,
2556
2555
  y: 0
2557
2556
  },
2558
2557
  {
2559
- x: i,
2560
- y: -a / 2
2558
+ x: T,
2559
+ y: -E / 2
2561
2560
  },
2562
2561
  {
2563
- x: i + a / 2,
2564
- y: -a
2562
+ x: T + E / 2,
2563
+ y: -E
2565
2564
  },
2566
2565
  {
2567
2566
  x: 0,
2568
- y: -a
2567
+ y: -E
2569
2568
  }
2570
- ], s = Y(n, i, a, o);
2571
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2572
- return K.polygon(t, o, e);
2573
- }, n;
2574
- }, "rect_right_inv_arrow"), tt = /* @__PURE__ */ e(async (e, t) => {
2575
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = i / 2, o = a / (2.5 + i / 50), s = r.height + o + t.padding, c = "M 0," + o + " a " + a + "," + o + " 0,0,0 " + i + " 0 a " + a + "," + o + " 0,0,0 " + -i + " 0 l 0," + s + " a " + a + "," + o + " 0,0,0 " + i + " 0 l 0," + -s;
2576
- return J(t, n.attr("label-offset-y", o).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -i / 2 + "," + -(s / 2 + o) + ")")), t.intersect = function(e) {
2577
- let n = K.rect(t, e), r = n.x - t.x;
2578
- if (a != 0 && (Math.abs(r) < t.width / 2 || Math.abs(r) == t.width / 2 && Math.abs(n.y - t.y) > t.height / 2 - o)) {
2579
- let i = o * o * (1 - r * r / (a * a));
2580
- i != 0 && (i = Math.sqrt(i)), i = o - i, e.y - t.y > 0 && (i = -i), n.y += i;
2569
+ ], O = insertPolygonShape(C, T, E, D);
2570
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2571
+ return intersect_default.polygon(S, D, e);
2572
+ }, C;
2573
+ }, "rect_right_inv_arrow"), cylinder = /* @__PURE__ */ __name(async (e, S) => {
2574
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = T / 2, D = E / (2.5 + T / 50), O = w.height + D + S.padding, k = "M 0," + D + " a " + E + "," + D + " 0,0,0 " + T + " 0 a " + E + "," + D + " 0,0,0 " + -T + " 0 l 0," + O + " a " + E + "," + D + " 0,0,0 " + T + " 0 l 0," + -O;
2575
+ return updateNodeBounds(S, C.attr("label-offset-y", D).insert("path", ":first-child").attr("style", S.style).attr("d", k).attr("transform", "translate(" + -T / 2 + "," + -(O / 2 + D) + ")")), S.intersect = function(e) {
2576
+ let C = intersect_default.rect(S, e), w = C.x - S.x;
2577
+ if (E != 0 && (Math.abs(w) < S.width / 2 || Math.abs(w) == S.width / 2 && Math.abs(C.y - S.y) > S.height / 2 - D)) {
2578
+ let T = D * D * (1 - w * w / (E * E));
2579
+ T != 0 && (T = Math.sqrt(T)), T = D - T, e.y - S.y > 0 && (T = -T), C.y += T;
2581
2580
  }
2582
- return n;
2583
- }, n;
2584
- }, "cylinder"), nt = /* @__PURE__ */ e(async (e, n) => {
2585
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, "node " + n.classes + " " + n.class, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
2586
- if (o.attr("class", "basic label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
2587
- let e = new Set(Object.keys(n.props));
2588
- n.props.borders && (Z(o, n.props.borders, s, c), e.delete("borders")), e.forEach((e) => {
2589
- t.warn(`Unknown node property ${e}`);
2581
+ return C;
2582
+ }, C;
2583
+ }, "cylinder"), rect = /* @__PURE__ */ __name(async (e, C) => {
2584
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes + " " + C.class, !0), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
2585
+ if (D.attr("class", "basic label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
2586
+ let e = new Set(Object.keys(C.props));
2587
+ C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e.delete("borders")), e.forEach((e) => {
2588
+ log.warn(`Unknown node property ${e}`);
2590
2589
  });
2591
2590
  }
2592
- return J(n, o), n.intersect = function(e) {
2593
- return K.rect(n, e);
2594
- }, r;
2595
- }, "rect"), rt = /* @__PURE__ */ e(async (e, n) => {
2596
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, "node " + n.classes, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
2597
- if (o.attr("class", "basic cluster composite label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
2598
- let e = new Set(Object.keys(n.props));
2599
- n.props.borders && (Z(o, n.props.borders, s, c), e.delete("borders")), e.forEach((e) => {
2600
- t.warn(`Unknown node property ${e}`);
2591
+ return updateNodeBounds(C, D), C.intersect = function(e) {
2592
+ return intersect_default.rect(C, e);
2593
+ }, w;
2594
+ }, "rect"), composite = /* @__PURE__ */ __name(async (e, C) => {
2595
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, !0), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
2596
+ if (D.attr("class", "basic cluster composite label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
2597
+ let e = new Set(Object.keys(C.props));
2598
+ C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e.delete("borders")), e.forEach((e) => {
2599
+ log.warn(`Unknown node property ${e}`);
2601
2600
  });
2602
2601
  }
2603
- return J(n, o), n.intersect = function(e) {
2604
- return K.rect(n, e);
2605
- }, r;
2606
- }, "composite"), it = /* @__PURE__ */ e(async (e, n) => {
2607
- let { shapeSvg: r } = await q(e, n, "label", !0);
2608
- t.trace("Classes = ", n.class);
2609
- let i = r.insert("rect", ":first-child");
2610
- if (i.attr("width", 0).attr("height", 0), r.attr("class", "label edgeLabel"), n.props) {
2611
- let e = new Set(Object.keys(n.props));
2612
- n.props.borders && (Z(i, n.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
2613
- t.warn(`Unknown node property ${e}`);
2602
+ return updateNodeBounds(C, D), C.intersect = function(e) {
2603
+ return intersect_default.rect(C, e);
2604
+ }, w;
2605
+ }, "composite"), labelRect = /* @__PURE__ */ __name(async (e, C) => {
2606
+ let { shapeSvg: w } = await labelHelper(e, C, "label", !0);
2607
+ log.trace("Classes = ", C.class);
2608
+ let T = w.insert("rect", ":first-child");
2609
+ if (T.attr("width", 0).attr("height", 0), w.attr("class", "label edgeLabel"), C.props) {
2610
+ let e = new Set(Object.keys(C.props));
2611
+ C.props.borders && (applyNodePropertyBorders(T, C.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
2612
+ log.warn(`Unknown node property ${e}`);
2614
2613
  });
2615
2614
  }
2616
- return J(n, i), n.intersect = function(e) {
2617
- return K.rect(n, e);
2618
- }, r;
2615
+ return updateNodeBounds(C, T), C.intersect = function(e) {
2616
+ return intersect_default.rect(C, e);
2617
+ }, w;
2619
2618
  }, "labelRect");
2620
- function Z(n, r, i, a) {
2621
- let o = [], s = /* @__PURE__ */ e((e) => {
2622
- o.push(e, 0);
2623
- }, "addBorder"), c = /* @__PURE__ */ e((e) => {
2624
- o.push(0, e);
2619
+ function applyNodePropertyBorders(C, w, T, E) {
2620
+ let D = [], O = /* @__PURE__ */ __name((e) => {
2621
+ D.push(e, 0);
2622
+ }, "addBorder"), k = /* @__PURE__ */ __name((e) => {
2623
+ D.push(0, e);
2625
2624
  }, "skipBorder");
2626
- r.includes("t") ? (t.debug("add top border"), s(i)) : c(i), r.includes("r") ? (t.debug("add right border"), s(a)) : c(a), r.includes("b") ? (t.debug("add bottom border"), s(i)) : c(i), r.includes("l") ? (t.debug("add left border"), s(a)) : c(a), n.attr("stroke-dasharray", o.join(" "));
2625
+ w.includes("t") ? (log.debug("add top border"), O(T)) : k(T), w.includes("r") ? (log.debug("add right border"), O(E)) : k(E), w.includes("b") ? (log.debug("add bottom border"), O(T)) : k(T), w.includes("l") ? (log.debug("add left border"), O(E)) : k(E), C.attr("stroke-dasharray", D.join(" "));
2627
2626
  }
2628
- e(Z, "applyNodePropertyBorders");
2629
- var at = /* @__PURE__ */ e(async (e, n) => {
2630
- let r;
2631
- r = n.classes ? "node " + n.classes : "node default";
2632
- let i = e.insert("g").attr("class", r).attr("id", n.domId || n.id), a = i.insert("rect", ":first-child"), o = i.insert("line"), s = i.insert("g").attr("class", "label"), u = n.labelText.flat ? n.labelText.flat() : n.labelText, d = "";
2633
- d = typeof u == "object" ? u[0] : u, t.info("Label text abc79", d, u, typeof u == "object");
2634
- let p = await V(s, d, n.labelStyle, !0, !0), m = {
2627
+ __name(applyNodePropertyBorders, "applyNodePropertyBorders");
2628
+ var rectWithTitle = /* @__PURE__ */ __name(async (e, C) => {
2629
+ let w;
2630
+ w = C.classes ? "node " + C.classes : "node default";
2631
+ let T = e.insert("g").attr("class", w).attr("id", C.domId || C.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("g").attr("class", "label"), j = C.labelText.flat ? C.labelText.flat() : C.labelText, M = "";
2632
+ M = typeof j == "object" ? j[0] : j, log.info("Label text abc79", M, j, typeof j == "object");
2633
+ let P = await createLabel_default(O, M, C.labelStyle, !0, !0), F = {
2635
2634
  width: 0,
2636
2635
  height: 0
2637
2636
  };
2638
- if (l(c())) {
2639
- let e = p.children[0], t = f(p);
2640
- m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2637
+ if (getEffectiveHtmlLabels(getConfig2())) {
2638
+ let e = P.children[0], S = select_default(P);
2639
+ F = e.getBoundingClientRect(), S.attr("width", F.width), S.attr("height", F.height);
2641
2640
  }
2642
- t.info("Text 2", u);
2643
- let h = u.slice(1, u.length), g = p.getBBox(), _ = await V(s, h.join ? h.join("<br/>") : h, n.labelStyle, !0, !0);
2644
- if (l(c())) {
2645
- let e = _.children[0], t = f(_);
2646
- m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2641
+ log.info("Text 2", j);
2642
+ let I = j.slice(1, j.length), L = P.getBBox(), R = await createLabel_default(O, I.join ? I.join("<br/>") : I, C.labelStyle, !0, !0);
2643
+ if (getEffectiveHtmlLabels(getConfig2())) {
2644
+ let e = R.children[0], S = select_default(R);
2645
+ F = e.getBoundingClientRect(), S.attr("width", F.width), S.attr("height", F.height);
2647
2646
  }
2648
- let v = n.padding / 2;
2649
- return f(_).attr("transform", "translate( " + (m.width > g.width ? 0 : (g.width - m.width) / 2) + ", " + (g.height + v + 5) + ")"), f(p).attr("transform", "translate( " + (m.width < g.width ? 0 : -(g.width - m.width) / 2) + ", 0)"), m = s.node().getBBox(), s.attr("transform", "translate(" + -m.width / 2 + ", " + (-m.height / 2 - v + 3) + ")"), a.attr("class", "outer title-state").attr("x", -m.width / 2 - v).attr("y", -m.height / 2 - v).attr("width", m.width + n.padding).attr("height", m.height + n.padding), o.attr("class", "divider").attr("x1", -m.width / 2 - v).attr("x2", m.width / 2 + v).attr("y1", -m.height / 2 - v + g.height + v).attr("y2", -m.height / 2 - v + g.height + v), J(n, a), n.intersect = function(e) {
2650
- return K.rect(n, e);
2651
- }, i;
2652
- }, "rectWithTitle"), ot = /* @__PURE__ */ e(async (e, t) => {
2653
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = r.width + i / 4 + t.padding;
2654
- return J(t, n.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -a / 2).attr("y", -i / 2).attr("width", a).attr("height", i)), t.intersect = function(e) {
2655
- return K.rect(t, e);
2656
- }, n;
2657
- }, "stadium"), st = /* @__PURE__ */ e(async (e, n) => {
2658
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, X(n, void 0), !0), o = r.insert("circle", ":first-child");
2659
- return o.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), t.info("Circle main"), J(n, o), n.intersect = function(e) {
2660
- return t.info("Circle intersect", n, i.width / 2 + a, e), K.circle(n, i.width / 2 + a, e);
2661
- }, r;
2662
- }, "circle"), ct = /* @__PURE__ */ e(async (e, n) => {
2663
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, X(n, void 0), !0), o = r.insert("g", ":first-child"), s = o.insert("circle"), c = o.insert("circle");
2664
- return o.attr("class", n.class), s.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a + 5).attr("width", i.width + n.padding + 10).attr("height", i.height + n.padding + 10), c.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), t.info("DoubleCircle main"), J(n, s), n.intersect = function(e) {
2665
- return t.info("DoubleCircle intersect", n, i.width / 2 + a + 5, e), K.circle(n, i.width / 2 + a + 5, e);
2666
- }, r;
2667
- }, "doublecircle"), lt = /* @__PURE__ */ e(async (e, t) => {
2668
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2647
+ let z = C.padding / 2;
2648
+ return select_default(R).attr("transform", "translate( " + (F.width > L.width ? 0 : (L.width - F.width) / 2) + ", " + (L.height + z + 5) + ")"), select_default(P).attr("transform", "translate( " + (F.width < L.width ? 0 : -(L.width - F.width) / 2) + ", 0)"), F = O.node().getBBox(), O.attr("transform", "translate(" + -F.width / 2 + ", " + (-F.height / 2 - z + 3) + ")"), E.attr("class", "outer title-state").attr("x", -F.width / 2 - z).attr("y", -F.height / 2 - z).attr("width", F.width + C.padding).attr("height", F.height + C.padding), D.attr("class", "divider").attr("x1", -F.width / 2 - z).attr("x2", F.width / 2 + z).attr("y1", -F.height / 2 - z + L.height + z).attr("y2", -F.height / 2 - z + L.height + z), updateNodeBounds(C, E), C.intersect = function(e) {
2649
+ return intersect_default.rect(C, e);
2650
+ }, T;
2651
+ }, "rectWithTitle"), stadium = /* @__PURE__ */ __name(async (e, S) => {
2652
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.height + S.padding, E = w.width + T / 4 + S.padding;
2653
+ return updateNodeBounds(S, C.insert("rect", ":first-child").attr("style", S.style).attr("rx", T / 2).attr("ry", T / 2).attr("x", -E / 2).attr("y", -T / 2).attr("width", E).attr("height", T)), S.intersect = function(e) {
2654
+ return intersect_default.rect(S, e);
2655
+ }, C;
2656
+ }, "stadium"), circle2 = /* @__PURE__ */ __name(async (e, C) => {
2657
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), D = w.insert("circle", ":first-child");
2658
+ return D.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("Circle main"), updateNodeBounds(C, D), C.intersect = function(e) {
2659
+ return log.info("Circle intersect", C, T.width / 2 + E, e), intersect_default.circle(C, T.width / 2 + E, e);
2660
+ }, w;
2661
+ }, "circle"), doublecircle = /* @__PURE__ */ __name(async (e, C) => {
2662
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), D = w.insert("g", ":first-child"), O = D.insert("circle"), k = D.insert("circle");
2663
+ return D.attr("class", C.class), O.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E + 5).attr("width", T.width + C.padding + 10).attr("height", T.height + C.padding + 10), k.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("DoubleCircle main"), updateNodeBounds(C, O), C.intersect = function(e) {
2664
+ return log.info("DoubleCircle intersect", C, T.width / 2 + E + 5, e), intersect_default.circle(C, T.width / 2 + E + 5, e);
2665
+ }, w;
2666
+ }, "doublecircle"), subroutine = /* @__PURE__ */ __name(async (e, S) => {
2667
+ 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 = [
2669
2668
  {
2670
2669
  x: 0,
2671
2670
  y: 0
2672
2671
  },
2673
2672
  {
2674
- x: i,
2673
+ x: T,
2675
2674
  y: 0
2676
2675
  },
2677
2676
  {
2678
- x: i,
2679
- y: -a
2677
+ x: T,
2678
+ y: -E
2680
2679
  },
2681
2680
  {
2682
2681
  x: 0,
2683
- y: -a
2682
+ y: -E
2684
2683
  },
2685
2684
  {
2686
2685
  x: 0,
@@ -2691,348 +2690,347 @@ var at = /* @__PURE__ */ e(async (e, n) => {
2691
2690
  y: 0
2692
2691
  },
2693
2692
  {
2694
- x: i + 8,
2693
+ x: T + 8,
2695
2694
  y: 0
2696
2695
  },
2697
2696
  {
2698
- x: i + 8,
2699
- y: -a
2697
+ x: T + 8,
2698
+ y: -E
2700
2699
  },
2701
2700
  {
2702
2701
  x: -8,
2703
- y: -a
2702
+ y: -E
2704
2703
  },
2705
2704
  {
2706
2705
  x: -8,
2707
2706
  y: 0
2708
2707
  }
2709
- ], s = Y(n, i, a, o);
2710
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2711
- return K.polygon(t, o, e);
2712
- }, n;
2713
- }, "subroutine"), ut = /* @__PURE__ */ e((e, t) => {
2714
- let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child");
2715
- return r.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), J(t, r), t.intersect = function(e) {
2716
- return K.circle(t, 7, e);
2717
- }, n;
2718
- }, "start"), dt = /* @__PURE__ */ e((e, t, n) => {
2719
- let r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 70, a = 10;
2720
- return n === "LR" && (i = 10, a = 70), J(t, r.append("rect").attr("x", -1 * i / 2).attr("y", -1 * a / 2).attr("width", i).attr("height", a).attr("class", "fork-join")), t.height += t.padding / 2, t.width += t.padding / 2, t.intersect = function(e) {
2721
- return K.rect(t, e);
2722
- }, r;
2723
- }, "forkJoin"), ft = {
2724
- rhombus: Ge,
2725
- composite: rt,
2726
- question: Ge,
2727
- rect: nt,
2728
- labelRect: it,
2729
- rectWithTitle: at,
2730
- choice: Ke,
2731
- circle: st,
2732
- doublecircle: ct,
2733
- stadium: ot,
2734
- hexagon: qe,
2735
- block_arrow: Je,
2736
- rect_left_inv_arrow: Ye,
2737
- lean_right: Xe,
2738
- lean_left: Ze,
2739
- trapezoid: Qe,
2740
- inv_trapezoid: $e,
2741
- rect_right_inv_arrow: et,
2742
- cylinder: tt,
2743
- start: ut,
2744
- end: /* @__PURE__ */ e((e, t) => {
2745
- let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child"), i = n.insert("circle", ":first-child");
2746
- return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), r.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), J(t, i), t.intersect = function(e) {
2747
- return K.circle(t, 7, e);
2748
- }, n;
2708
+ ], O = insertPolygonShape(C, T, E, D);
2709
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2710
+ return intersect_default.polygon(S, D, e);
2711
+ }, C;
2712
+ }, "subroutine"), start = /* @__PURE__ */ __name((e, S) => {
2713
+ let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child");
2714
+ return w.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), updateNodeBounds(S, w), S.intersect = function(e) {
2715
+ return intersect_default.circle(S, 7, e);
2716
+ }, C;
2717
+ }, "start"), forkJoin = /* @__PURE__ */ __name((e, S, C) => {
2718
+ let w = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), T = 70, E = 10;
2719
+ return C === "LR" && (T = 10, E = 70), updateNodeBounds(S, w.append("rect").attr("x", -1 * T / 2).attr("y", -1 * E / 2).attr("width", T).attr("height", E).attr("class", "fork-join")), S.height += S.padding / 2, S.width += S.padding / 2, S.intersect = function(e) {
2720
+ return intersect_default.rect(S, e);
2721
+ }, w;
2722
+ }, "forkJoin"), shapes = {
2723
+ rhombus: question,
2724
+ composite,
2725
+ question,
2726
+ rect,
2727
+ labelRect,
2728
+ rectWithTitle,
2729
+ choice,
2730
+ circle: circle2,
2731
+ doublecircle,
2732
+ stadium,
2733
+ hexagon,
2734
+ block_arrow,
2735
+ rect_left_inv_arrow,
2736
+ lean_right,
2737
+ lean_left,
2738
+ trapezoid,
2739
+ inv_trapezoid,
2740
+ rect_right_inv_arrow,
2741
+ cylinder,
2742
+ start,
2743
+ end: /* @__PURE__ */ __name((e, S) => {
2744
+ let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child"), T = C.insert("circle", ":first-child");
2745
+ return T.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), w.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), updateNodeBounds(S, T), S.intersect = function(e) {
2746
+ return intersect_default.circle(S, 7, e);
2747
+ }, C;
2749
2748
  }, "end"),
2750
- note: Ue,
2751
- subroutine: lt,
2752
- fork: dt,
2753
- join: dt,
2754
- class_box: /* @__PURE__ */ e(async (e, t) => {
2755
- let n = t.padding / 2, r;
2756
- r = t.classes ? "node " + t.classes : "node default";
2757
- let i = e.insert("g").attr("class", r).attr("id", t.domId || t.id), a = i.insert("rect", ":first-child"), o = i.insert("line"), s = i.insert("line"), u = 0, d = 4, p = i.insert("g").attr("class", "label"), m = 0, h = t.classData.annotations?.[0], g = await V(p, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), _ = g.getBBox();
2758
- if (l(c())) {
2759
- let e = g.children[0], t = f(g);
2760
- _ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
2749
+ note: note_default,
2750
+ subroutine,
2751
+ fork: forkJoin,
2752
+ join: forkJoin,
2753
+ class_box: /* @__PURE__ */ __name(async (e, S) => {
2754
+ let C = S.padding / 2, w;
2755
+ w = S.classes ? "node " + S.classes : "node default";
2756
+ let T = e.insert("g").attr("class", w).attr("id", S.domId || S.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("line"), j = 0, M = 4, P = T.insert("g").attr("class", "label"), F = 0, I = S.classData.annotations?.[0], L = await createLabel_default(P, S.classData.annotations[0] ? "«" + S.classData.annotations[0] + "»" : "", S.labelStyle, !0, !0), R = L.getBBox();
2757
+ if (getEffectiveHtmlLabels(getConfig2())) {
2758
+ let e = L.children[0], S = select_default(L);
2759
+ R = e.getBoundingClientRect(), S.attr("width", R.width), S.attr("height", R.height);
2761
2760
  }
2762
- t.classData.annotations[0] && (d += _.height + 4, u += _.width);
2763
- let v = t.classData.label;
2764
- t.classData.type !== void 0 && t.classData.type !== "" && (l(c()) ? v += "&lt;" + t.classData.type + "&gt;" : v += "<" + t.classData.type + ">");
2765
- let y = await V(p, v, t.labelStyle, !0, !0);
2766
- f(y).attr("class", "classTitle");
2767
- let b = y.getBBox();
2768
- if (l(c())) {
2769
- let e = y.children[0], t = f(y);
2770
- b = e.getBoundingClientRect(), t.attr("width", b.width), t.attr("height", b.height);
2761
+ S.classData.annotations[0] && (M += R.height + 4, j += R.width);
2762
+ let z = S.classData.label;
2763
+ S.classData.type !== void 0 && S.classData.type !== "" && (getEffectiveHtmlLabels(getConfig2()) ? z += "&lt;" + S.classData.type + "&gt;" : z += "<" + S.classData.type + ">");
2764
+ let B = await createLabel_default(P, z, S.labelStyle, !0, !0);
2765
+ select_default(B).attr("class", "classTitle");
2766
+ let V = B.getBBox();
2767
+ if (getEffectiveHtmlLabels(getConfig2())) {
2768
+ let e = B.children[0], S = select_default(B);
2769
+ V = e.getBoundingClientRect(), S.attr("width", V.width), S.attr("height", V.height);
2771
2770
  }
2772
- d += b.height + 4, b.width > u && (u = b.width);
2773
- let x = [];
2774
- t.classData.members.forEach(async (e) => {
2775
- let n = e.getDisplayDetails(), r = n.displayText;
2776
- l(c()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2777
- let i = await V(p, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
2778
- if (l(c())) {
2779
- let e = i.children[0], t = f(i);
2780
- a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
2771
+ M += V.height + 4, V.width > j && (j = V.width);
2772
+ let H = [];
2773
+ S.classData.members.forEach(async (e) => {
2774
+ let C = e.getDisplayDetails(), w = C.displayText;
2775
+ getEffectiveHtmlLabels(getConfig2()) && (w = w.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2776
+ let T = await createLabel_default(P, w, C.cssStyle ? C.cssStyle : S.labelStyle, !0, !0), E = T.getBBox();
2777
+ if (getEffectiveHtmlLabels(getConfig2())) {
2778
+ let e = T.children[0], S = select_default(T);
2779
+ E = e.getBoundingClientRect(), S.attr("width", E.width), S.attr("height", E.height);
2781
2780
  }
2782
- a.width > u && (u = a.width), d += a.height + 4, x.push(i);
2783
- }), d += 8;
2784
- let S = [];
2785
- if (t.classData.methods.forEach(async (e) => {
2786
- let n = e.getDisplayDetails(), r = n.displayText;
2787
- l(c()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2788
- let i = await V(p, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
2789
- if (l(c())) {
2790
- let e = i.children[0], t = f(i);
2791
- a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
2781
+ E.width > j && (j = E.width), M += E.height + 4, H.push(T);
2782
+ }), M += 8;
2783
+ let U = [];
2784
+ if (S.classData.methods.forEach(async (e) => {
2785
+ let C = e.getDisplayDetails(), w = C.displayText;
2786
+ getEffectiveHtmlLabels(getConfig2()) && (w = w.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2787
+ let T = await createLabel_default(P, w, C.cssStyle ? C.cssStyle : S.labelStyle, !0, !0), E = T.getBBox();
2788
+ if (getEffectiveHtmlLabels(getConfig2())) {
2789
+ let e = T.children[0], S = select_default(T);
2790
+ E = e.getBoundingClientRect(), S.attr("width", E.width), S.attr("height", E.height);
2792
2791
  }
2793
- a.width > u && (u = a.width), d += a.height + 4, S.push(i);
2794
- }), d += 8, h) {
2795
- let e = (u - _.width) / 2;
2796
- f(g).attr("transform", "translate( " + (-1 * u / 2 + e) + ", " + -1 * d / 2 + ")"), m = _.height + 4;
2792
+ E.width > j && (j = E.width), M += E.height + 4, U.push(T);
2793
+ }), M += 8, I) {
2794
+ let e = (j - R.width) / 2;
2795
+ select_default(L).attr("transform", "translate( " + (-1 * j / 2 + e) + ", " + -1 * M / 2 + ")"), F = R.height + 4;
2797
2796
  }
2798
- let C = (u - b.width) / 2;
2799
- return f(y).attr("transform", "translate( " + (-1 * u / 2 + C) + ", " + (-1 * d / 2 + m) + ")"), m += b.height + 4, o.attr("class", "divider").attr("x1", -u / 2 - n).attr("x2", u / 2 + n).attr("y1", -d / 2 - n + 8 + m).attr("y2", -d / 2 - n + 8 + m), m += 8, x.forEach((e) => {
2800
- f(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m + 8 / 2) + ")");
2801
- let t = e?.getBBox();
2802
- m += (t?.height ?? 0) + 4;
2803
- }), m += 8, s.attr("class", "divider").attr("x1", -u / 2 - n).attr("x2", u / 2 + n).attr("y1", -d / 2 - n + 8 + m).attr("y2", -d / 2 - n + 8 + m), m += 8, S.forEach((e) => {
2804
- f(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m) + ")");
2805
- let t = e?.getBBox();
2806
- m += (t?.height ?? 0) + 4;
2807
- }), a.attr("style", t.style).attr("class", "outer title-state").attr("x", -u / 2 - n).attr("y", -(d / 2) - n).attr("width", u + t.padding).attr("height", d + t.padding), J(t, a), t.intersect = function(e) {
2808
- return K.rect(t, e);
2809
- }, i;
2797
+ let W = (j - V.width) / 2;
2798
+ return select_default(B).attr("transform", "translate( " + (-1 * j / 2 + W) + ", " + (-1 * M / 2 + F) + ")"), F += V.height + 4, D.attr("class", "divider").attr("x1", -j / 2 - C).attr("x2", j / 2 + C).attr("y1", -M / 2 - C + 8 + F).attr("y2", -M / 2 - C + 8 + F), F += 8, H.forEach((e) => {
2799
+ select_default(e).attr("transform", "translate( " + -j / 2 + ", " + (-1 * M / 2 + F + 8 / 2) + ")");
2800
+ let S = e?.getBBox();
2801
+ F += (S?.height ?? 0) + 4;
2802
+ }), F += 8, O.attr("class", "divider").attr("x1", -j / 2 - C).attr("x2", j / 2 + C).attr("y1", -M / 2 - C + 8 + F).attr("y2", -M / 2 - C + 8 + F), F += 8, U.forEach((e) => {
2803
+ select_default(e).attr("transform", "translate( " + -j / 2 + ", " + (-1 * M / 2 + F) + ")");
2804
+ let S = e?.getBBox();
2805
+ F += (S?.height ?? 0) + 4;
2806
+ }), E.attr("style", S.style).attr("class", "outer title-state").attr("x", -j / 2 - C).attr("y", -(M / 2) - C).attr("width", j + S.padding).attr("height", M + S.padding), updateNodeBounds(S, E), S.intersect = function(e) {
2807
+ return intersect_default.rect(S, e);
2808
+ }, T;
2810
2809
  }, "class_box")
2811
- }, Q = {}, pt = /* @__PURE__ */ e(async (e, t, n) => {
2812
- let r, i;
2813
- if (t.link) {
2814
- let a;
2815
- c().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await ft[t.shape](r, t, n);
2816
- } else i = await ft[t.shape](e, t, n), r = i;
2817
- return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), Q[t.id] = r, t.haveCallback && Q[t.id].attr("class", Q[t.id].attr("class") + " clickable"), r;
2818
- }, "insertNode"), mt = /* @__PURE__ */ e((e) => {
2819
- let n = Q[e.id];
2820
- t.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
2821
- let r = e.diff || 0;
2822
- return e.clusterNode ? n.attr("transform", "translate(" + (e.x + r - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : n.attr("transform", "translate(" + e.x + ", " + e.y + ")"), r;
2810
+ }, nodeElems = {}, insertNode = /* @__PURE__ */ __name(async (e, S, C) => {
2811
+ let w, T;
2812
+ if (S.link) {
2813
+ let E;
2814
+ getConfig2().securityLevel === "sandbox" ? E = "_top" : S.linkTarget && (E = S.linkTarget || "_blank"), w = e.insert("svg:a").attr("xlink:href", S.link).attr("target", E), T = await shapes[S.shape](w, S, C);
2815
+ } else T = await shapes[S.shape](e, S, C), w = T;
2816
+ return S.tooltip && T.attr("title", S.tooltip), S.class && T.attr("class", "node default " + S.class), nodeElems[S.id] = w, S.haveCallback && nodeElems[S.id].attr("class", nodeElems[S.id].attr("class") + " clickable"), w;
2817
+ }, "insertNode"), positionNode = /* @__PURE__ */ __name((e) => {
2818
+ let C = nodeElems[e.id];
2819
+ log.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
2820
+ let w = e.diff || 0;
2821
+ return e.clusterNode ? C.attr("transform", "translate(" + (e.x + w - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : C.attr("transform", "translate(" + e.x + ", " + e.y + ")"), w;
2823
2822
  }, "positionNode");
2824
- function ht(e, t, n = !1) {
2825
- let r = e, i = "default";
2826
- (r?.classes?.length || 0) > 0 && (i = (r?.classes ?? []).join(" ")), i += " flowchart-label";
2827
- let a = 0, o = "", c;
2828
- switch (r.type) {
2823
+ function getNodeFromBlock(e, S, C = !1) {
2824
+ let w = e, T = "default";
2825
+ (w?.classes?.length || 0) > 0 && (T = (w?.classes ?? []).join(" ")), T += " flowchart-label";
2826
+ let E = 0, D = "", k;
2827
+ switch (w.type) {
2829
2828
  case "round":
2830
- a = 5, o = "rect";
2829
+ E = 5, D = "rect";
2831
2830
  break;
2832
2831
  case "composite":
2833
- a = 0, o = "composite", c = 0;
2832
+ E = 0, D = "composite", k = 0;
2834
2833
  break;
2835
2834
  case "square":
2836
- o = "rect";
2835
+ D = "rect";
2837
2836
  break;
2838
2837
  case "diamond":
2839
- o = "question";
2838
+ D = "question";
2840
2839
  break;
2841
2840
  case "hexagon":
2842
- o = "hexagon";
2841
+ D = "hexagon";
2843
2842
  break;
2844
2843
  case "block_arrow":
2845
- o = "block_arrow";
2844
+ D = "block_arrow";
2846
2845
  break;
2847
2846
  case "odd":
2848
- o = "rect_left_inv_arrow";
2847
+ D = "rect_left_inv_arrow";
2849
2848
  break;
2850
2849
  case "lean_right":
2851
- o = "lean_right";
2850
+ D = "lean_right";
2852
2851
  break;
2853
2852
  case "lean_left":
2854
- o = "lean_left";
2853
+ D = "lean_left";
2855
2854
  break;
2856
2855
  case "trapezoid":
2857
- o = "trapezoid";
2856
+ D = "trapezoid";
2858
2857
  break;
2859
2858
  case "inv_trapezoid":
2860
- o = "inv_trapezoid";
2859
+ D = "inv_trapezoid";
2861
2860
  break;
2862
2861
  case "rect_left_inv_arrow":
2863
- o = "rect_left_inv_arrow";
2862
+ D = "rect_left_inv_arrow";
2864
2863
  break;
2865
2864
  case "circle":
2866
- o = "circle";
2865
+ D = "circle";
2867
2866
  break;
2868
2867
  case "ellipse":
2869
- o = "ellipse";
2868
+ D = "ellipse";
2870
2869
  break;
2871
2870
  case "stadium":
2872
- o = "stadium";
2871
+ D = "stadium";
2873
2872
  break;
2874
2873
  case "subroutine":
2875
- o = "subroutine";
2874
+ D = "subroutine";
2876
2875
  break;
2877
2876
  case "cylinder":
2878
- o = "cylinder";
2877
+ D = "cylinder";
2879
2878
  break;
2880
2879
  case "group":
2881
- o = "rect";
2880
+ D = "rect";
2882
2881
  break;
2883
2882
  case "doublecircle":
2884
- o = "doublecircle";
2883
+ D = "doublecircle";
2885
2884
  break;
2886
- default: o = "rect";
2885
+ default: D = "rect";
2887
2886
  }
2888
- let l = v(r?.styles ?? []), u = r.label, d = r.size ?? {
2887
+ let A = getStylesFromArray(w?.styles ?? []), j = w.label, M = w.size ?? {
2889
2888
  width: 0,
2890
2889
  height: 0,
2891
2890
  x: 0,
2892
2891
  y: 0
2893
- }, f = t.getDiagramId();
2892
+ }, N = S.getDiagramId();
2894
2893
  return {
2895
- labelStyle: l.labelStyle,
2896
- shape: o,
2897
- labelText: u,
2898
- rx: a,
2899
- ry: a,
2900
- class: i,
2901
- style: l.style,
2902
- id: r.id,
2903
- domId: f ? `${f}-${r.id}` : r.id,
2904
- directions: r.directions,
2905
- width: d.width,
2906
- height: d.height,
2907
- x: d.x,
2908
- y: d.y,
2909
- positioned: n,
2894
+ labelStyle: A.labelStyle,
2895
+ shape: D,
2896
+ labelText: j,
2897
+ rx: E,
2898
+ ry: E,
2899
+ class: T,
2900
+ style: A.style,
2901
+ id: w.id,
2902
+ domId: N ? `${N}-${w.id}` : w.id,
2903
+ directions: w.directions,
2904
+ width: M.width,
2905
+ height: M.height,
2906
+ x: M.x,
2907
+ y: M.y,
2908
+ positioned: C,
2910
2909
  intersect: void 0,
2911
- type: r.type,
2912
- padding: c ?? s()?.block?.padding ?? 0
2910
+ type: w.type,
2911
+ padding: k ?? getConfig()?.block?.padding ?? 0
2913
2912
  };
2914
2913
  }
2915
- e(ht, "getNodeFromBlock");
2916
- async function gt(e, t, n) {
2917
- let r = ht(t, n, !1);
2918
- if (r.type === "group") return;
2919
- let i = await pt(e, r, { config: s() }), a = i.node().getBBox(), o = n.getBlock(r.id);
2920
- o.size = {
2921
- width: a.width,
2922
- height: a.height,
2914
+ __name(getNodeFromBlock, "getNodeFromBlock");
2915
+ async function calculateBlockSize(e, S, C) {
2916
+ let w = getNodeFromBlock(S, C, !1);
2917
+ if (w.type === "group") return;
2918
+ let T = await insertNode(e, w, { config: getConfig() }), E = T.node().getBBox(), D = C.getBlock(w.id);
2919
+ D.size = {
2920
+ width: E.width,
2921
+ height: E.height,
2923
2922
  x: 0,
2924
2923
  y: 0,
2925
- node: i
2926
- }, n.setBlock(o), i.remove();
2924
+ node: T
2925
+ }, C.setBlock(D), T.remove();
2927
2926
  }
2928
- e(gt, "calculateBlockSize");
2929
- async function _t(e, t, n) {
2930
- let r = ht(t, n, !0);
2931
- n.getBlock(r.id).type !== "space" && (await pt(e, r, { config: s() }), t.intersect = r?.intersect, mt(r));
2927
+ __name(calculateBlockSize, "calculateBlockSize");
2928
+ async function insertBlockPositioned(e, S, C) {
2929
+ let w = getNodeFromBlock(S, C, !0);
2930
+ C.getBlock(w.id).type !== "space" && (await insertNode(e, w, { config: getConfig() }), S.intersect = w?.intersect, positionNode(w));
2932
2931
  }
2933
- e(_t, "insertBlockPositioned");
2934
- async function $(e, t, n, r) {
2935
- for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
2932
+ __name(insertBlockPositioned, "insertBlockPositioned");
2933
+ async function performOperations(e, S, C, w) {
2934
+ for (let T of S) await w(e, T, C), T.children && await performOperations(e, T.children, C, w);
2936
2935
  }
2937
- e($, "performOperations");
2938
- async function vt(e, t, n) {
2939
- await $(e, t, n, gt);
2936
+ __name(performOperations, "performOperations");
2937
+ async function calculateBlockSizes(e, S, C) {
2938
+ await performOperations(e, S, C, calculateBlockSize);
2940
2939
  }
2941
- e(vt, "calculateBlockSizes");
2942
- async function yt(e, t, n) {
2943
- await $(e, t, n, _t);
2940
+ __name(calculateBlockSizes, "calculateBlockSizes");
2941
+ async function insertBlocks(e, S, C) {
2942
+ await performOperations(e, S, C, insertBlockPositioned);
2944
2943
  }
2945
- e(yt, "insertBlocks");
2946
- async function bt(e, t, n, r, i) {
2947
- let a = new T({
2944
+ __name(insertBlocks, "insertBlocks");
2945
+ async function insertEdges(e, S, C, w, T) {
2946
+ let E = new Graph({
2948
2947
  multigraph: !0,
2949
2948
  compound: !0
2950
2949
  });
2951
- a.setGraph({
2950
+ E.setGraph({
2952
2951
  rankdir: "TB",
2953
2952
  nodesep: 10,
2954
2953
  ranksep: 10,
2955
2954
  marginx: 8,
2956
2955
  marginy: 8
2957
2956
  });
2958
- for (let e of n) e.size && a.setNode(e.id, {
2957
+ for (let e of C) e.size && E.setNode(e.id, {
2959
2958
  width: e.size.width,
2960
2959
  height: e.size.height,
2961
2960
  intersect: e.intersect
2962
2961
  });
2963
- for (let n of t) if (n.start && n.end) {
2964
- let t = r.getBlock(n.start), o = r.getBlock(n.end);
2965
- if (t?.size && o?.size) {
2966
- let r = t.size, s = o.size, c = [
2962
+ for (let C of S) if (C.start && C.end) {
2963
+ let S = w.getBlock(C.start), D = w.getBlock(C.end);
2964
+ if (S?.size && D?.size) {
2965
+ let w = S.size, O = D.size, k = [
2967
2966
  {
2968
- x: r.x,
2969
- y: r.y
2967
+ x: w.x,
2968
+ y: w.y
2970
2969
  },
2971
2970
  {
2972
- x: r.x + (s.x - r.x) / 2,
2973
- y: r.y + (s.y - r.y) / 2
2971
+ x: w.x + (O.x - w.x) / 2,
2972
+ y: w.y + (O.y - w.y) / 2
2974
2973
  },
2975
2974
  {
2976
- x: s.x,
2977
- y: s.y
2975
+ x: O.x,
2976
+ y: O.y
2978
2977
  }
2979
- ], l = i ? `${i}-${n.id}` : n.id;
2980
- Ae(e, {
2981
- v: n.start,
2982
- w: n.end,
2983
- name: l
2978
+ ], A = T ? `${T}-${C.id}` : C.id;
2979
+ insertEdge(e, {
2980
+ v: C.start,
2981
+ w: C.end,
2982
+ name: A
2984
2983
  }, {
2985
- ...n,
2986
- id: l,
2987
- arrowTypeEnd: n.arrowTypeEnd,
2988
- arrowTypeStart: n.arrowTypeStart,
2989
- points: c,
2984
+ ...C,
2985
+ id: A,
2986
+ arrowTypeEnd: C.arrowTypeEnd,
2987
+ arrowTypeStart: C.arrowTypeStart,
2988
+ points: k,
2990
2989
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2991
- }, void 0, "block", a, i), n.label && (await Te(e, {
2992
- ...n,
2993
- label: n.label,
2990
+ }, void 0, "block", E, T), C.label && (await insertEdgeLabel(e, {
2991
+ ...C,
2992
+ label: C.label,
2994
2993
  labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2995
- arrowTypeEnd: n.arrowTypeEnd,
2996
- arrowTypeStart: n.arrowTypeStart,
2997
- points: c,
2994
+ arrowTypeEnd: C.arrowTypeEnd,
2995
+ arrowTypeStart: C.arrowTypeStart,
2996
+ points: k,
2998
2997
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2999
- }), Ee({
3000
- ...n,
3001
- x: c[1].x,
3002
- y: c[1].y
3003
- }, { originalPath: c }));
2998
+ }), positionEdgeLabel({
2999
+ ...C,
3000
+ x: k[1].x,
3001
+ y: k[1].y
3002
+ }, { originalPath: k }));
3004
3003
  }
3005
3004
  }
3006
3005
  }
3007
- e(bt, "insertEdges");
3008
- var xt = {
3009
- parser: D,
3010
- db: he,
3006
+ __name(insertEdges, "insertEdges");
3007
+ var diagram = {
3008
+ parser: block_default,
3009
+ db: blockDB_default,
3011
3010
  renderer: {
3012
- draw: /* @__PURE__ */ e(async function(e, n, r, i) {
3013
- let { securityLevel: a, block: c } = s(), l = i.db;
3014
- l.setDiagramId(n);
3015
- let u;
3016
- a === "sandbox" && (u = f("#i" + n));
3017
- let d = f(a === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), p = a === "sandbox" ? d.select(`[id="${n}"]`) : f(`[id="${n}"]`);
3018
- ye(p, [
3011
+ draw: /* @__PURE__ */ __name(async function(e, C, w, T) {
3012
+ let { securityLevel: E, block: k } = getConfig(), A = T.db;
3013
+ A.setDiagramId(C);
3014
+ let j;
3015
+ E === "sandbox" && (j = select_default("#i" + C));
3016
+ let M = select_default(E === "sandbox" ? j.nodes()[0].contentDocument.body : "body"), P = E === "sandbox" ? M.select(`[id="${C}"]`) : select_default(`[id="${C}"]`);
3017
+ markers_default(P, [
3019
3018
  "point",
3020
3019
  "circle",
3021
3020
  "cross"
3022
- ], i.type, n);
3023
- let m = l.getBlocks(), h = l.getBlocksFlat(), g = l.getEdges(), _ = p.insert("g").attr("class", "block");
3024
- await vt(_, m, l);
3025
- let v = xe(l);
3026
- if (await yt(_, m, l), await bt(_, g, h, l, n), v) {
3027
- let e = v, n = Math.max(1, Math.round(.125 * (e.width / e.height))), r = e.height + n + 10, i = e.width + 10, { useMaxWidth: a } = c;
3028
- o(p, r, i, !!a), t.debug("Here Bounds", v, e), p.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
3021
+ ], T.type, C);
3022
+ let F = A.getBlocks(), I = A.getBlocksFlat(), L = A.getEdges(), R = P.insert("g").attr("class", "block");
3023
+ await calculateBlockSizes(R, F, A);
3024
+ let z = layout(A);
3025
+ if (await insertBlocks(R, F, A), await insertEdges(R, L, I, A, C), z) {
3026
+ let e = z, C = Math.max(1, Math.round(.125 * (e.width / e.height))), w = e.height + C + 10, T = e.width + 10, { useMaxWidth: E } = k;
3027
+ configureSvgSize(P, w, T, !!E), log.debug("Here Bounds", z, e), P.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
3029
3028
  }
3030
3029
  }, "draw"),
3031
- getClasses: /* @__PURE__ */ e(function(e, t) {
3032
- return t.db.getClasses();
3030
+ getClasses: /* @__PURE__ */ __name(function(e, S) {
3031
+ return S.db.getClasses();
3033
3032
  }, "getClasses")
3034
3033
  },
3035
- styles: ge
3034
+ styles: styles_default
3036
3035
  };
3037
- //#endregion
3038
- export { xt as diagram };
3036
+ export { diagram };