@loopstack/loopstack-studio 0.24.0 → 0.25.1

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 (1771) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/api/auth.js +4 -2
  3. package/dist/api/client.js +9 -7
  4. package/dist/api/config.js +7 -5
  5. package/dist/api/dashboard.js +4 -2
  6. package/dist/api/documents.js +4 -2
  7. package/dist/api/index.js +21 -23
  8. package/dist/api/processor.js +5 -3
  9. package/dist/api/secrets.js +4 -2
  10. package/dist/api/workflows.js +11 -3
  11. package/dist/api/workspaces.js +4 -2
  12. package/dist/app/EnvironmentEmbedRoot.js +24 -31
  13. package/dist/components/ai-elements/code-block.js +53 -71
  14. package/dist/components/ai-elements/message.js +41 -82
  15. package/dist/components/ai-elements/prompt-input.js +162 -253
  16. package/dist/components/ai-elements/reasoning.js +78 -116
  17. package/dist/components/ai-elements/shimmer.js +23 -35
  18. package/dist/components/ai-elements/sources.js +29 -58
  19. package/dist/components/data-table/ConfirmDialog.js +14 -30
  20. package/dist/components/data-table/DataList.js +138 -198
  21. package/dist/components/data-table/DataTable.js +168 -234
  22. package/dist/components/data-table/DataTableBatchAction.js +18 -27
  23. package/dist/components/data-table/DataTableFilters.js +53 -78
  24. package/dist/components/data-table/DataTablePagination.js +72 -104
  25. package/dist/components/data-table/DataTableToolbar.js +53 -65
  26. package/dist/components/dynamic-form/ArrayController.js +85 -103
  27. package/dist/components/dynamic-form/CodeContent.js +28 -36
  28. package/dist/components/dynamic-form/Form.js +43 -56
  29. package/dist/components/dynamic-form/FormBody.js +12 -10
  30. package/dist/components/dynamic-form/FormElement.js +31 -41
  31. package/dist/components/dynamic-form/FormElementHeader.js +12 -20
  32. package/dist/components/dynamic-form/InputController.js +36 -38
  33. package/dist/components/dynamic-form/MarkdownContent.js +53 -74
  34. package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
  35. package/dist/components/dynamic-form/ObjectController.js +24 -32
  36. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
  37. package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
  38. package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
  39. package/dist/components/dynamic-form/fields/InputField.js +62 -90
  40. package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
  41. package/dist/components/dynamic-form/fields/RadioField.js +46 -62
  42. package/dist/components/dynamic-form/fields/SelectField.js +40 -58
  43. package/dist/components/dynamic-form/fields/SliderField.js +94 -100
  44. package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
  45. package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
  46. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
  47. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
  48. package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
  49. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
  50. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
  51. package/dist/components/feedback/ErrorAlert.js +11 -17
  52. package/dist/components/feedback/ErrorBoundary.js +16 -14
  53. package/dist/components/feedback/ErrorSnackbar.js +13 -30
  54. package/dist/components/feedback/LoadingCentered.js +15 -28
  55. package/dist/components/feedback/Snackbar.js +43 -44
  56. package/dist/components/feedback/index.js +5 -5
  57. package/dist/components/index.js +47 -47
  58. package/dist/components/layout/MainLayout.js +17 -25
  59. package/dist/components/layout/StudioSidebar.js +132 -202
  60. package/dist/components/lists/CustomListView.js +49 -74
  61. package/dist/components/lists/ListView.js +66 -102
  62. package/dist/components/loopstack-elements/link.js +71 -109
  63. package/dist/components/loopstack-elements/tool.js +99 -0
  64. package/dist/components/messages/CompletionMessagePaper.js +53 -85
  65. package/dist/components/page/PageBreadcrumbs.js +64 -83
  66. package/dist/components/ui/DiscordLogo.js +16 -22
  67. package/dist/components/ui/GoogleLogo.js +40 -44
  68. package/dist/components/ui/accordion.js +31 -52
  69. package/dist/components/ui/alert-dialog.js +59 -109
  70. package/dist/components/ui/alert.js +22 -36
  71. package/dist/components/ui/avatar.js +21 -35
  72. package/dist/components/ui/badge.js +13 -17
  73. package/dist/components/ui/breadcrumb.js +46 -82
  74. package/dist/components/ui/button-group.js +5 -5
  75. package/dist/components/ui/button.js +17 -21
  76. package/dist/components/ui/card.js +40 -74
  77. package/dist/components/ui/checkbox.js +17 -23
  78. package/dist/components/ui/collapsible.js +17 -25
  79. package/dist/components/ui/command.js +1 -2
  80. package/dist/components/ui/context-menu.js +32 -52
  81. package/dist/components/ui/dialog.js +62 -107
  82. package/dist/components/ui/drawer.js +54 -99
  83. package/dist/components/ui/dropdown-menu.js +91 -159
  84. package/dist/components/ui/hover-card.js +1 -2
  85. package/dist/components/ui/input-group.js +36 -56
  86. package/dist/components/ui/input.js +11 -15
  87. package/dist/components/ui/label.js +11 -15
  88. package/dist/components/ui/popover.js +25 -38
  89. package/dist/components/ui/radio-group.js +22 -33
  90. package/dist/components/ui/scroll-area.js +28 -43
  91. package/dist/components/ui/select.js +73 -134
  92. package/dist/components/ui/separator.js +13 -17
  93. package/dist/components/ui/sheet.js +60 -105
  94. package/dist/components/ui/sidebar.js +269 -451
  95. package/dist/components/ui/skeleton.js +10 -14
  96. package/dist/components/ui/slider.js +17 -15
  97. package/dist/components/ui/switch.js +15 -21
  98. package/dist/components/ui/table.js +46 -85
  99. package/dist/components/ui/tabs.js +26 -45
  100. package/dist/components/ui/textarea.js +10 -14
  101. package/dist/components/ui/tooltip.js +26 -41
  102. package/dist/components/ui-widgets/UiActions.js +30 -31
  103. package/dist/components/ui-widgets/UiWidget.js +34 -55
  104. package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
  105. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
  106. package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
  107. package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
  108. package/dist/events/api-client-events.js +4 -2
  109. package/dist/events/sse-client-events.js +4 -2
  110. package/dist/features/code-explorer/CodeExplorer.js +1 -2
  111. package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
  112. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
  113. package/dist/features/code-explorer/components/FileContentViewer.js +120 -185
  114. package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
  115. package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
  116. package/dist/features/code-explorer/index.js +1 -1
  117. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
  118. package/dist/features/code-explorer/utils/fileIcons.js +41 -39
  119. package/dist/features/dashboard/Dashboard.js +79 -121
  120. package/dist/features/dashboard/RunItem.js +50 -68
  121. package/dist/features/dashboard/RunList.js +17 -28
  122. package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
  123. package/dist/features/debug/components/WorkflowDebugHeader.js +32 -0
  124. package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
  125. package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
  126. package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
  127. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
  128. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
  129. package/dist/features/debug/index.js +3 -3
  130. package/dist/features/debug/lib/edge-paths.js +33 -31
  131. package/dist/features/debug/lib/flow-utils.js +156 -162
  132. package/dist/features/documents/DocumentRenderer.js +77 -45
  133. package/dist/features/documents/components/DocumentItem.js +21 -24
  134. package/dist/features/documents/components/DocumentList.js +39 -42
  135. package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
  136. package/dist/features/documents/document-details/DocumentDetails.js +298 -413
  137. package/dist/features/documents/document-details/PromptDetails.js +105 -142
  138. package/dist/features/documents/index.js +4 -4
  139. package/dist/features/documents/renderers/AiMessage.js +39 -48
  140. package/dist/features/documents/renderers/AiMessageContent.js +108 -164
  141. package/dist/features/documents/renderers/ChoicesRenderer.js +80 -0
  142. package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
  143. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
  144. package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
  145. package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
  146. package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
  147. package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
  148. package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -16
  149. package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
  150. package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
  151. package/dist/features/documents/renderers/SecretInputRenderer.js +89 -0
  152. package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
  153. package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
  154. package/dist/features/health/LocalHealthCheck.js +54 -53
  155. package/dist/features/health/index.js +1 -1
  156. package/dist/features/oauth/OAuthCallbackPage.js +2 -2
  157. package/dist/features/oauth/OAuthPromptRenderer.js +135 -184
  158. package/dist/features/oauth/index.js +2 -2
  159. package/dist/features/oauth/useOAuthPopup.js +52 -71
  160. package/dist/features/runs/Runs.js +145 -187
  161. package/dist/features/workbench/Workbench.js +72 -98
  162. package/dist/features/workbench/WorkflowItem.js +49 -67
  163. package/dist/features/workbench/WorkflowList.js +50 -82
  164. package/dist/features/workbench/components/NewRunDialog.js +214 -311
  165. package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
  166. package/dist/features/workbench/components/RemoteFileTree.js +54 -85
  167. package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
  168. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -90
  169. package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
  170. package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
  171. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
  172. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
  173. package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
  174. package/dist/features/workbench/components/WorkflowForms.js +17 -22
  175. package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
  176. package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
  177. package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
  178. package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
  179. package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
  180. package/dist/features/workbench/hooks/useWorkflowData.js +32 -45
  181. package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
  182. package/dist/features/workbench/index.js +7 -8
  183. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
  184. package/dist/features/workbench/providers/ScrollProvider.js +16 -20
  185. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
  186. package/dist/features/workspaces/Workspaces.js +161 -226
  187. package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
  188. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
  189. package/dist/features/workspaces/components/ExecutionTimeline.js +144 -185
  190. package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
  191. package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
  192. package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
  193. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
  194. package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
  195. package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
  196. package/dist/features/workspaces/index.js +3 -3
  197. package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
  198. package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
  199. package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
  200. package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
  201. package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
  202. package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
  203. package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
  204. package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
  205. package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
  206. package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
  207. package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
  208. package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
  209. package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
  210. package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
  211. package/dist/hooks/index.js +6 -6
  212. package/dist/hooks/query-keys.js +39 -78
  213. package/dist/hooks/use-mobile.js +12 -11
  214. package/dist/hooks/useApi.js +16 -14
  215. package/dist/hooks/useAuth.js +38 -53
  216. package/dist/hooks/useConfig.js +26 -37
  217. package/dist/hooks/useDashboard.js +12 -15
  218. package/dist/hooks/useDebounce.js +12 -11
  219. package/dist/hooks/useDocuments.js +23 -35
  220. package/dist/hooks/useFiles.js +1 -2
  221. package/dist/hooks/useProcessor.js +14 -17
  222. package/dist/hooks/useSecrets.js +45 -64
  223. package/dist/hooks/useWorkflows.js +113 -78
  224. package/dist/hooks/useWorkspaces.js +83 -123
  225. package/dist/index.d.ts +0 -1305
  226. package/dist/index.js +80 -80
  227. package/dist/lib/requireParam.js +4 -2
  228. package/dist/lib/utils.js +7 -5
  229. package/dist/loopstack-studio.css +1 -1
  230. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
  231. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
  232. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
  233. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
  234. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
  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 +4 -2
  237. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
  238. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
  239. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
  240. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
  241. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
  242. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
  243. package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
  244. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
  245. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
  246. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
  247. package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
  248. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
  249. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
  250. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
  251. package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
  252. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
  253. package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
  254. package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
  255. package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
  256. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
  257. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
  258. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
  259. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
  260. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
  261. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
  262. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
  263. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
  264. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
  265. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
  266. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
  267. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
  268. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
  269. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
  270. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
  271. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
  272. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
  273. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
  274. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
  275. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
  276. package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
  277. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
  278. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
  279. package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
  280. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
  281. package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
  282. package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
  283. package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
  284. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
  285. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
  286. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
  287. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
  288. package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
  289. package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
  290. package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
  291. package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
  292. package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
  293. package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
  294. package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
  295. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
  296. package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
  297. package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
  298. package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
  299. package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
  300. package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
  301. package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
  302. package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
  303. package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
  304. package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
  305. package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
  306. package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
  307. package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
  308. package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
  309. package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
  310. package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
  311. package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
  312. package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
  313. package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
  314. package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
  315. package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
  316. package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
  317. package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
  318. package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
  319. package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
  320. package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
  321. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
  322. package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
  323. package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
  324. package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
  325. package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
  326. package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
  327. package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
  328. package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
  329. package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
  330. package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
  331. package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
  332. package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
  333. package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
  334. package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
  335. package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
  336. package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
  337. package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
  338. package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
  339. package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
  340. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
  341. package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
  342. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  343. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
  344. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
  345. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
  346. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
  347. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
  348. package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
  349. package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
  350. package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
  351. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
  352. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
  353. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
  354. package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
  355. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
  356. package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
  357. package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
  358. package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
  359. package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
  360. package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
  361. package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
  362. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
  363. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
  364. package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
  365. package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
  366. package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
  367. package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
  368. package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
  369. package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
  370. package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
  371. package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
  372. package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
  373. package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
  374. package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
  375. package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
  376. package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
  377. package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
  378. package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
  379. package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
  380. package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
  381. package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
  382. package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
  383. package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
  384. package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
  385. package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
  386. package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
  387. package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
  388. package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
  389. package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
  390. package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
  391. package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
  392. package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
  393. package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
  394. package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
  395. package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
  396. package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
  397. package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
  398. package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
  399. package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
  400. package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
  401. package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
  402. package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
  403. package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
  404. package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
  405. package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
  406. package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
  407. package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
  408. package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
  409. package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
  410. package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
  411. package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
  412. package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
  413. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
  414. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
  415. package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
  416. package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
  417. package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
  418. package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
  419. package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
  420. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
  421. package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
  422. package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
  423. package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
  424. package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
  425. package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
  426. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
  427. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
  428. package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
  429. package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
  430. package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
  431. package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
  432. package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
  433. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
  434. package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
  435. package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
  436. package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
  437. package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
  438. package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
  439. package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
  440. package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
  441. package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
  442. package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
  443. package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
  444. package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
  445. package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
  446. package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
  447. package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
  448. package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
  449. package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
  450. package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
  451. package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
  452. package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
  453. package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
  454. package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
  455. package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
  456. package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
  457. package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
  458. package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
  459. package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
  460. package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
  461. package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
  462. package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
  463. package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
  464. package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
  465. package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
  466. package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
  467. package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
  468. package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
  469. package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
  470. package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
  471. package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
  472. package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
  473. package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
  474. package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
  475. package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
  476. package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
  477. package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
  478. package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
  479. package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
  480. package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
  481. package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
  482. package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
  483. package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
  484. package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
  485. package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
  486. package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
  487. package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
  488. package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
  489. package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
  490. package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
  491. package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
  492. package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
  493. package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
  494. package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
  495. package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
  496. package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
  497. package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
  498. package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
  499. package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
  500. package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
  501. package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
  502. package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
  503. package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
  504. package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
  505. package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
  506. package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
  507. package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
  508. package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
  509. package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
  510. package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
  511. package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
  512. package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
  513. package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
  514. package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
  515. package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
  516. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
  517. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
  518. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
  519. package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
  520. package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
  521. package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
  522. package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
  523. package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
  524. package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
  525. package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
  526. package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
  527. package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
  528. package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
  529. package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
  530. package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
  531. package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
  532. package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
  533. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
  534. package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
  535. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
  536. package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
  537. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
  538. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
  539. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
  540. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
  541. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
  542. package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
  543. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
  544. package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
  545. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
  546. package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
  547. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
  548. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
  549. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
  550. package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
  551. package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
  552. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
  553. package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
  554. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
  555. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
  556. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
  557. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
  558. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
  559. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
  560. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
  561. package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
  562. package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
  563. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
  564. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
  565. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
  566. package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
  567. package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
  568. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
  569. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
  570. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
  571. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
  572. package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
  573. package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
  574. package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
  575. package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
  576. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
  577. package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
  578. package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
  579. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
  580. package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
  581. package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
  582. package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
  583. package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
  584. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
  585. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
  586. package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
  587. package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
  588. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
  589. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
  590. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
  591. package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
  592. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
  593. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
  594. package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
  595. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
  596. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
  597. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
  598. package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
  599. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
  600. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
  601. package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
  602. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
  603. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
  604. package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
  605. package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
  606. package/dist/node_modules/bail/index.js +4 -2
  607. package/dist/node_modules/ccount/index.js +4 -2
  608. package/dist/node_modules/character-entities-html4/index.js +4 -2
  609. package/dist/node_modules/character-entities-legacy/index.js +4 -2
  610. package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
  611. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
  612. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
  613. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
  614. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
  615. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
  616. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
  617. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
  618. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
  619. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
  620. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
  621. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
  622. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
  623. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
  624. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
  625. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
  626. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
  627. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
  628. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
  629. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
  630. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
  631. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
  632. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
  633. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
  634. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
  635. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
  636. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
  637. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
  638. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
  639. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
  640. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
  641. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
  642. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
  643. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
  644. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
  645. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
  646. package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
  647. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
  648. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
  649. package/dist/node_modules/classcat/index.js +5 -3
  650. package/dist/node_modules/comma-separated-tokens/index.js +5 -3
  651. package/dist/node_modules/cose-base/cose-base.js +21 -21
  652. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
  653. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
  654. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
  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 +6 -4
  657. package/dist/node_modules/d3/src/index.js +95 -95
  658. package/dist/node_modules/d3-array/src/ascending.js +4 -2
  659. package/dist/node_modules/d3-array/src/bisect.js +8 -8
  660. package/dist/node_modules/d3-array/src/bisector.js +8 -6
  661. package/dist/node_modules/d3-array/src/descending.js +4 -2
  662. package/dist/node_modules/d3-array/src/max.js +4 -2
  663. package/dist/node_modules/d3-array/src/min.js +4 -2
  664. package/dist/node_modules/d3-array/src/number.js +4 -2
  665. package/dist/node_modules/d3-array/src/range.js +4 -2
  666. package/dist/node_modules/d3-array/src/ticks.js +13 -11
  667. package/dist/node_modules/d3-axis/src/axis.js +48 -46
  668. package/dist/node_modules/d3-axis/src/identity.js +4 -2
  669. package/dist/node_modules/d3-brush/src/brush.js +6 -4
  670. package/dist/node_modules/d3-color/src/color.js +86 -84
  671. package/dist/node_modules/d3-color/src/define.js +5 -3
  672. package/dist/node_modules/d3-color/src/lab.js +45 -43
  673. package/dist/node_modules/d3-color/src/math.js +4 -2
  674. package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
  675. package/dist/node_modules/d3-drag/src/constant.js +4 -2
  676. package/dist/node_modules/d3-drag/src/drag.js +77 -75
  677. package/dist/node_modules/d3-drag/src/event.js +5 -3
  678. package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
  679. package/dist/node_modules/d3-drag/src/noevent.js +6 -4
  680. package/dist/node_modules/d3-ease/src/cubic.js +4 -2
  681. package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
  682. package/dist/node_modules/d3-format/src/exponent.js +6 -4
  683. package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
  684. package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
  685. package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
  686. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
  687. package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
  688. package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
  689. package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
  690. package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
  691. package/dist/node_modules/d3-format/src/identity.js +4 -2
  692. package/dist/node_modules/d3-format/src/locale.js +33 -31
  693. package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
  694. package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
  695. package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
  696. package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
  697. package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
  698. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
  699. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
  700. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
  701. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
  702. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
  703. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
  704. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
  705. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
  706. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
  707. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
  708. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
  709. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
  710. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
  711. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
  712. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
  713. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
  714. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
  715. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
  716. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
  717. package/dist/node_modules/d3-interpolate/src/array.js +6 -4
  718. package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
  719. package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
  720. package/dist/node_modules/d3-interpolate/src/color.js +19 -17
  721. package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
  722. package/dist/node_modules/d3-interpolate/src/date.js +4 -2
  723. package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
  724. package/dist/node_modules/d3-interpolate/src/number.js +4 -2
  725. package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
  726. package/dist/node_modules/d3-interpolate/src/object.js +6 -4
  727. package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
  728. package/dist/node_modules/d3-interpolate/src/round.js +4 -2
  729. package/dist/node_modules/d3-interpolate/src/string.js +16 -14
  730. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
  731. package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
  732. package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
  733. package/dist/node_modules/d3-interpolate/src/value.js +14 -12
  734. package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
  735. package/dist/node_modules/d3-path/src/path.js +16 -14
  736. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
  737. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
  738. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
  739. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
  740. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
  741. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
  742. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
  743. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
  744. package/dist/node_modules/d3-sankey/src/align.js +12 -10
  745. package/dist/node_modules/d3-sankey/src/constant.js +4 -2
  746. package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
  747. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
  748. package/dist/node_modules/d3-scale/src/band.js +11 -9
  749. package/dist/node_modules/d3-scale/src/constant.js +4 -2
  750. package/dist/node_modules/d3-scale/src/continuous.js +49 -47
  751. package/dist/node_modules/d3-scale/src/init.js +4 -2
  752. package/dist/node_modules/d3-scale/src/linear.js +15 -13
  753. package/dist/node_modules/d3-scale/src/nice.js +4 -2
  754. package/dist/node_modules/d3-scale/src/number.js +4 -2
  755. package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
  756. package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
  757. package/dist/node_modules/d3-scale/src/time.js +36 -34
  758. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
  759. package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
  760. package/dist/node_modules/d3-selection/src/array.js +4 -2
  761. package/dist/node_modules/d3-selection/src/constant.js +4 -2
  762. package/dist/node_modules/d3-selection/src/creator.js +12 -10
  763. package/dist/node_modules/d3-selection/src/matcher.js +5 -3
  764. package/dist/node_modules/d3-selection/src/namespace.js +7 -5
  765. package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
  766. package/dist/node_modules/d3-selection/src/pointer.js +6 -4
  767. package/dist/node_modules/d3-selection/src/select.js +6 -4
  768. package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
  769. package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
  770. package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
  771. package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
  772. package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
  773. package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
  774. package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
  775. package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
  776. package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
  777. package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
  778. package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
  779. package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
  780. package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
  781. package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
  782. package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
  783. package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
  784. package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
  785. package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
  786. package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
  787. package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
  788. package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
  789. package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
  790. package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
  791. package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
  792. package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
  793. package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
  794. package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
  795. package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
  796. package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
  797. package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
  798. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
  799. package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
  800. package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
  801. package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
  802. package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
  803. package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
  804. package/dist/node_modules/d3-selection/src/selector.js +6 -4
  805. package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
  806. package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
  807. package/dist/node_modules/d3-selection/src/window.js +4 -2
  808. package/dist/node_modules/d3-shape/src/arc.js +38 -36
  809. package/dist/node_modules/d3-shape/src/array.js +3 -2
  810. package/dist/node_modules/d3-shape/src/constant.js +4 -2
  811. package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
  812. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
  813. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
  814. package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
  815. package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
  816. package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
  817. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
  818. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
  819. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
  820. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
  821. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
  822. package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
  823. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
  824. package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
  825. package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
  826. package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
  827. package/dist/node_modules/d3-shape/src/descending.js +4 -2
  828. package/dist/node_modules/d3-shape/src/identity.js +4 -2
  829. package/dist/node_modules/d3-shape/src/line.js +19 -17
  830. package/dist/node_modules/d3-shape/src/math.js +8 -6
  831. package/dist/node_modules/d3-shape/src/noop.js +4 -2
  832. package/dist/node_modules/d3-shape/src/path.js +6 -4
  833. package/dist/node_modules/d3-shape/src/pie.js +15 -13
  834. package/dist/node_modules/d3-shape/src/point.js +5 -3
  835. package/dist/node_modules/d3-time/src/day.js +17 -15
  836. package/dist/node_modules/d3-time/src/duration.js +4 -2
  837. package/dist/node_modules/d3-time/src/hour.js +16 -14
  838. package/dist/node_modules/d3-time/src/interval.js +7 -5
  839. package/dist/node_modules/d3-time/src/millisecond.js +7 -5
  840. package/dist/node_modules/d3-time/src/minute.js +16 -14
  841. package/dist/node_modules/d3-time/src/month.js +14 -12
  842. package/dist/node_modules/d3-time/src/second.js +9 -7
  843. package/dist/node_modules/d3-time/src/ticks.js +66 -64
  844. package/dist/node_modules/d3-time/src/week.js +21 -19
  845. package/dist/node_modules/d3-time/src/year.js +10 -8
  846. package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
  847. package/dist/node_modules/d3-time-format/src/locale.js +346 -344
  848. package/dist/node_modules/d3-timer/src/timeout.js +6 -4
  849. package/dist/node_modules/d3-timer/src/timer.js +33 -31
  850. package/dist/node_modules/d3-transition/src/index.js +2 -2
  851. package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
  852. package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
  853. package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
  854. package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
  855. package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
  856. package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
  857. package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
  858. package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
  859. package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
  860. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
  861. package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
  862. package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
  863. package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
  864. package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
  865. package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
  866. package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
  867. package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
  868. package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
  869. package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
  870. package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
  871. package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
  872. package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
  873. package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
  874. package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
  875. package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
  876. package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
  877. package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
  878. package/dist/node_modules/d3-zoom/src/constant.js +4 -2
  879. package/dist/node_modules/d3-zoom/src/event.js +4 -2
  880. package/dist/node_modules/d3-zoom/src/index.js +2 -2
  881. package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
  882. package/dist/node_modules/d3-zoom/src/transform.js +12 -10
  883. package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
  884. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
  885. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
  886. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
  887. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
  888. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
  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 +165 -163
  891. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
  892. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
  893. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
  894. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
  895. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
  896. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
  897. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
  898. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
  899. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
  900. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
  901. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
  902. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
  903. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
  904. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
  905. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
  906. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
  907. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
  908. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
  909. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
  910. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
  911. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
  912. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
  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 +6 -4
  915. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
  916. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
  917. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
  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 +23 -21
  920. package/dist/node_modules/dayjs/dayjs.min.js +6 -4
  921. package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
  922. package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
  923. package/dist/node_modules/dayjs/plugin/duration.js +6 -4
  924. package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
  925. package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
  926. package/dist/node_modules/devlop/lib/default.js +4 -2
  927. package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
  928. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
  929. package/dist/node_modules/entities/dist/esm/decode.js +87 -85
  930. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
  931. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
  932. package/dist/node_modules/extend/index.js +9 -6
  933. package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
  934. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
  935. package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
  936. package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
  937. package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
  938. package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
  939. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
  940. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
  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 +250 -249
  943. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
  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 +17 -15
  947. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
  948. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
  949. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
  950. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
  951. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
  952. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
  953. package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
  954. package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
  955. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
  956. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
  957. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
  958. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
  959. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
  960. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
  961. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
  962. package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
  963. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
  964. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
  965. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
  966. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
  967. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
  968. package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
  969. package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
  970. package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
  971. package/dist/node_modules/hastscript/lib/create-h.js +26 -24
  972. package/dist/node_modules/hastscript/lib/index.js +7 -5
  973. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
  974. package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
  975. package/dist/node_modules/html-void-elements/index.js +4 -2
  976. package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
  977. package/dist/node_modules/internmap/src/index.js +22 -20
  978. package/dist/node_modules/katex/dist/katex.js +2914 -2873
  979. package/dist/node_modules/khroma/dist/channels/index.js +23 -21
  980. package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
  981. package/dist/node_modules/khroma/dist/channels/type.js +7 -5
  982. package/dist/node_modules/khroma/dist/color/hex.js +10 -8
  983. package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
  984. package/dist/node_modules/khroma/dist/color/index.js +17 -15
  985. package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
  986. package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
  987. package/dist/node_modules/khroma/dist/constants.js +7 -5
  988. package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
  989. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
  990. package/dist/node_modules/khroma/dist/methods/change.js +9 -7
  991. package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
  992. package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
  993. package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
  994. package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
  995. package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
  996. package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
  997. package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
  998. package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
  999. package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
  1000. package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
  1001. package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
  1002. package/dist/node_modules/khroma/dist/utils/index.js +10 -8
  1003. package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
  1004. package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
  1005. package/dist/node_modules/langium/lib/default-module.js +66 -64
  1006. package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
  1007. package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
  1008. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
  1009. package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
  1010. package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
  1011. package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
  1012. package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
  1013. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
  1014. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
  1015. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
  1016. package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
  1017. package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
  1018. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
  1019. package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
  1020. package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
  1021. package/dist/node_modules/langium/lib/references/linker.js +104 -103
  1022. package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
  1023. package/dist/node_modules/langium/lib/references/references.js +53 -51
  1024. package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
  1025. package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
  1026. package/dist/node_modules/langium/lib/references/scope.js +27 -56
  1027. package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
  1028. package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
  1029. package/dist/node_modules/langium/lib/service-registry.js +7 -5
  1030. package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
  1031. package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
  1032. package/dist/node_modules/langium/lib/utils/caching.js +33 -42
  1033. package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
  1034. package/dist/node_modules/langium/lib/utils/collections.js +35 -33
  1035. package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
  1036. package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
  1037. package/dist/node_modules/langium/lib/utils/errors.js +8 -9
  1038. package/dist/node_modules/langium/lib/utils/event.js +7 -5
  1039. package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
  1040. package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
  1041. package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
  1042. package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
  1043. package/dist/node_modules/langium/lib/utils/stream.js +155 -153
  1044. package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
  1045. package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
  1046. package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
  1047. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
  1048. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
  1049. package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
  1050. package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
  1051. package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
  1052. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
  1053. package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
  1054. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
  1055. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
  1056. package/dist/node_modules/layout-base/layout-base.js +6 -4
  1057. package/dist/node_modules/lodash-es/_DataView.js +6 -4
  1058. package/dist/node_modules/lodash-es/_Hash.js +14 -13
  1059. package/dist/node_modules/lodash-es/_ListCache.js +14 -13
  1060. package/dist/node_modules/lodash-es/_Map.js +6 -4
  1061. package/dist/node_modules/lodash-es/_MapCache.js +14 -13
  1062. package/dist/node_modules/lodash-es/_Promise.js +6 -4
  1063. package/dist/node_modules/lodash-es/_Set.js +6 -4
  1064. package/dist/node_modules/lodash-es/_SetCache.js +10 -9
  1065. package/dist/node_modules/lodash-es/_Stack.js +12 -11
  1066. package/dist/node_modules/lodash-es/_Symbol.js +5 -3
  1067. package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
  1068. package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
  1069. package/dist/node_modules/lodash-es/_apply.js +4 -3
  1070. package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
  1071. package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
  1072. package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
  1073. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
  1074. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
  1075. package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
  1076. package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
  1077. package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
  1078. package/dist/node_modules/lodash-es/_arraySome.js +4 -3
  1079. package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
  1080. package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
  1081. package/dist/node_modules/lodash-es/_assignValue.js +8 -7
  1082. package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
  1083. package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
  1084. package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
  1085. package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
  1086. package/dist/node_modules/lodash-es/_baseClone.js +51 -50
  1087. package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
  1088. package/dist/node_modules/lodash-es/_baseEach.js +6 -4
  1089. package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
  1090. package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
  1091. package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
  1092. package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
  1093. package/dist/node_modules/lodash-es/_baseFor.js +5 -3
  1094. package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
  1095. package/dist/node_modules/lodash-es/_baseGet.js +8 -7
  1096. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
  1097. package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
  1098. package/dist/node_modules/lodash-es/_baseGt.js +4 -3
  1099. package/dist/node_modules/lodash-es/_baseHas.js +6 -5
  1100. package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
  1101. package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
  1102. package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
  1103. package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
  1104. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
  1105. package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
  1106. package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
  1107. package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
  1108. package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
  1109. package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
  1110. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
  1111. package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
  1112. package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
  1113. package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
  1114. package/dist/node_modules/lodash-es/_baseLt.js +4 -3
  1115. package/dist/node_modules/lodash-es/_baseMap.js +8 -7
  1116. package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
  1117. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
  1118. package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
  1119. package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
  1120. package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
  1121. package/dist/node_modules/lodash-es/_basePick.js +8 -7
  1122. package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
  1123. package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
  1124. package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
  1125. package/dist/node_modules/lodash-es/_baseRange.js +6 -5
  1126. package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
  1127. package/dist/node_modules/lodash-es/_baseRest.js +8 -7
  1128. package/dist/node_modules/lodash-es/_baseSet.js +14 -13
  1129. package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
  1130. package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
  1131. package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
  1132. package/dist/node_modules/lodash-es/_baseToString.js +13 -12
  1133. package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
  1134. package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
  1135. package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
  1136. package/dist/node_modules/lodash-es/_baseValues.js +6 -5
  1137. package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
  1138. package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
  1139. package/dist/node_modules/lodash-es/_castFunction.js +6 -5
  1140. package/dist/node_modules/lodash-es/_castPath.js +9 -8
  1141. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
  1142. package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
  1143. package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
  1144. package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
  1145. package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
  1146. package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
  1147. package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
  1148. package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
  1149. package/dist/node_modules/lodash-es/_copyArray.js +4 -3
  1150. package/dist/node_modules/lodash-es/_copyObject.js +7 -6
  1151. package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
  1152. package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
  1153. package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
  1154. package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
  1155. package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
  1156. package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
  1157. package/dist/node_modules/lodash-es/_createFind.js +10 -9
  1158. package/dist/node_modules/lodash-es/_createRange.js +8 -7
  1159. package/dist/node_modules/lodash-es/_createSet.js +9 -7
  1160. package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
  1161. package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
  1162. package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
  1163. package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
  1164. package/dist/node_modules/lodash-es/_flatRest.js +8 -7
  1165. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
  1166. package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
  1167. package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
  1168. package/dist/node_modules/lodash-es/_getMapData.js +6 -5
  1169. package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
  1170. package/dist/node_modules/lodash-es/_getNative.js +8 -7
  1171. package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
  1172. package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
  1173. package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
  1174. package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
  1175. package/dist/node_modules/lodash-es/_getTag.js +21 -19
  1176. package/dist/node_modules/lodash-es/_getValue.js +4 -3
  1177. package/dist/node_modules/lodash-es/_hasPath.js +13 -12
  1178. package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
  1179. package/dist/node_modules/lodash-es/_hashClear.js +6 -5
  1180. package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
  1181. package/dist/node_modules/lodash-es/_hashGet.js +9 -8
  1182. package/dist/node_modules/lodash-es/_hashHas.js +7 -6
  1183. package/dist/node_modules/lodash-es/_hashSet.js +7 -6
  1184. package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
  1185. package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
  1186. package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
  1187. package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
  1188. package/dist/node_modules/lodash-es/_isIndex.js +6 -5
  1189. package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
  1190. package/dist/node_modules/lodash-es/_isKey.js +9 -8
  1191. package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
  1192. package/dist/node_modules/lodash-es/_isMasked.js +9 -8
  1193. package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
  1194. package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
  1195. package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
  1196. package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
  1197. package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
  1198. package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
  1199. package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
  1200. package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
  1201. package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
  1202. package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
  1203. package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
  1204. package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
  1205. package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
  1206. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
  1207. package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
  1208. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
  1209. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
  1210. package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
  1211. package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
  1212. package/dist/node_modules/lodash-es/_objectToString.js +6 -5
  1213. package/dist/node_modules/lodash-es/_overArg.js +4 -3
  1214. package/dist/node_modules/lodash-es/_overRest.js +9 -8
  1215. package/dist/node_modules/lodash-es/_root.js +5 -3
  1216. package/dist/node_modules/lodash-es/_safeGet.js +4 -3
  1217. package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
  1218. package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
  1219. package/dist/node_modules/lodash-es/_setToArray.js +4 -3
  1220. package/dist/node_modules/lodash-es/_setToString.js +6 -4
  1221. package/dist/node_modules/lodash-es/_shortOut.js +7 -6
  1222. package/dist/node_modules/lodash-es/_stackClear.js +6 -5
  1223. package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
  1224. package/dist/node_modules/lodash-es/_stackGet.js +4 -3
  1225. package/dist/node_modules/lodash-es/_stackHas.js +4 -3
  1226. package/dist/node_modules/lodash-es/_stackSet.js +11 -10
  1227. package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
  1228. package/dist/node_modules/lodash-es/_stringSize.js +8 -7
  1229. package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
  1230. package/dist/node_modules/lodash-es/_toKey.js +8 -7
  1231. package/dist/node_modules/lodash-es/_toSource.js +8 -7
  1232. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
  1233. package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
  1234. package/dist/node_modules/lodash-es/clone.js +7 -6
  1235. package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
  1236. package/dist/node_modules/lodash-es/constant.js +4 -3
  1237. package/dist/node_modules/lodash-es/defaults.js +13 -11
  1238. package/dist/node_modules/lodash-es/eq.js +4 -3
  1239. package/dist/node_modules/lodash-es/filter.js +9 -8
  1240. package/dist/node_modules/lodash-es/find.js +6 -4
  1241. package/dist/node_modules/lodash-es/findIndex.js +10 -9
  1242. package/dist/node_modules/lodash-es/flatMap.js +7 -6
  1243. package/dist/node_modules/lodash-es/flatten.js +6 -5
  1244. package/dist/node_modules/lodash-es/forEach.js +9 -8
  1245. package/dist/node_modules/lodash-es/forIn.js +8 -7
  1246. package/dist/node_modules/lodash-es/forOwn.js +7 -6
  1247. package/dist/node_modules/lodash-es/get.js +6 -5
  1248. package/dist/node_modules/lodash-es/has.js +7 -6
  1249. package/dist/node_modules/lodash-es/hasIn.js +7 -6
  1250. package/dist/node_modules/lodash-es/identity.js +4 -3
  1251. package/dist/node_modules/lodash-es/isArguments.js +8 -6
  1252. package/dist/node_modules/lodash-es/isArray.js +4 -2
  1253. package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
  1254. package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
  1255. package/dist/node_modules/lodash-es/isBuffer.js +6 -4
  1256. package/dist/node_modules/lodash-es/isEmpty.js +18 -17
  1257. package/dist/node_modules/lodash-es/isFunction.js +10 -9
  1258. package/dist/node_modules/lodash-es/isLength.js +6 -5
  1259. package/dist/node_modules/lodash-es/isMap.js +7 -5
  1260. package/dist/node_modules/lodash-es/isObject.js +4 -3
  1261. package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
  1262. package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
  1263. package/dist/node_modules/lodash-es/isSet.js +7 -5
  1264. package/dist/node_modules/lodash-es/isString.js +9 -8
  1265. package/dist/node_modules/lodash-es/isSymbol.js +8 -7
  1266. package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
  1267. package/dist/node_modules/lodash-es/isUndefined.js +4 -3
  1268. package/dist/node_modules/lodash-es/keys.js +8 -7
  1269. package/dist/node_modules/lodash-es/keysIn.js +8 -7
  1270. package/dist/node_modules/lodash-es/last.js +4 -3
  1271. package/dist/node_modules/lodash-es/map.js +9 -8
  1272. package/dist/node_modules/lodash-es/mapValues.js +9 -8
  1273. package/dist/node_modules/lodash-es/max.js +8 -7
  1274. package/dist/node_modules/lodash-es/memoize.js +9 -8
  1275. package/dist/node_modules/lodash-es/merge.js +7 -5
  1276. package/dist/node_modules/lodash-es/min.js +8 -7
  1277. package/dist/node_modules/lodash-es/minBy.js +8 -7
  1278. package/dist/node_modules/lodash-es/noop.js +4 -3
  1279. package/dist/node_modules/lodash-es/now.js +6 -4
  1280. package/dist/node_modules/lodash-es/pick.js +7 -5
  1281. package/dist/node_modules/lodash-es/property.js +9 -8
  1282. package/dist/node_modules/lodash-es/range.js +5 -3
  1283. package/dist/node_modules/lodash-es/reduce.js +11 -10
  1284. package/dist/node_modules/lodash-es/size.js +13 -12
  1285. package/dist/node_modules/lodash-es/sortBy.js +9 -7
  1286. package/dist/node_modules/lodash-es/stubArray.js +4 -3
  1287. package/dist/node_modules/lodash-es/stubFalse.js +4 -3
  1288. package/dist/node_modules/lodash-es/toFinite.js +7 -6
  1289. package/dist/node_modules/lodash-es/toInteger.js +6 -5
  1290. package/dist/node_modules/lodash-es/toNumber.js +14 -13
  1291. package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
  1292. package/dist/node_modules/lodash-es/toString.js +6 -5
  1293. package/dist/node_modules/lodash-es/union.js +9 -7
  1294. package/dist/node_modules/lodash-es/uniqBy.js +7 -6
  1295. package/dist/node_modules/lodash-es/uniqueId.js +8 -7
  1296. package/dist/node_modules/lodash-es/values.js +7 -6
  1297. package/dist/node_modules/lodash-es/zipObject.js +7 -6
  1298. package/dist/node_modules/longest-streak/index.js +4 -2
  1299. package/dist/node_modules/markdown-table/index.js +11 -9
  1300. package/dist/node_modules/marked/lib/marked.esm.js +687 -685
  1301. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
  1302. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
  1303. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
  1304. package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
  1305. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
  1306. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
  1307. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
  1308. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
  1309. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
  1310. package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
  1311. package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
  1312. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
  1313. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
  1314. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
  1315. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
  1316. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
  1317. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
  1318. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
  1319. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
  1320. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
  1321. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
  1322. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
  1323. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
  1324. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
  1325. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
  1326. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
  1327. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
  1328. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
  1329. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
  1330. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
  1331. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
  1332. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
  1333. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
  1334. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
  1335. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
  1336. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
  1337. package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
  1338. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
  1339. package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
  1340. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
  1341. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
  1342. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
  1343. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
  1344. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
  1345. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
  1346. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
  1347. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
  1348. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
  1349. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
  1350. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
  1351. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
  1352. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
  1353. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
  1354. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
  1355. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
  1356. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
  1357. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
  1358. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
  1359. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
  1360. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
  1361. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
  1362. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
  1363. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
  1364. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
  1365. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
  1366. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
  1367. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
  1368. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
  1369. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
  1370. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
  1371. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
  1372. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
  1373. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
  1374. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
  1375. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
  1376. package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
  1377. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
  1378. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
  1379. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
  1380. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
  1381. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
  1382. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
  1383. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
  1384. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
  1385. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
  1386. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
  1387. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
  1388. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
  1389. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
  1390. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
  1391. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
  1392. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
  1393. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
  1394. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
  1395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
  1396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
  1397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
  1398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
  1399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
  1400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
  1401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
  1402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
  1403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
  1404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
  1405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
  1406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
  1407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
  1408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
  1409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
  1410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
  1411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
  1412. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
  1413. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
  1414. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
  1415. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
  1416. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
  1417. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
  1418. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
  1419. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
  1420. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
  1421. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
  1422. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
  1423. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
  1424. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
  1425. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
  1426. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
  1427. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
  1428. package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
  1429. package/dist/node_modules/micromark/lib/constructs.js +80 -79
  1430. package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
  1431. package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
  1432. package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
  1433. package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
  1434. package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
  1435. package/dist/node_modules/micromark/lib/parse.js +20 -18
  1436. package/dist/node_modules/micromark/lib/postprocess.js +6 -4
  1437. package/dist/node_modules/micromark/lib/preprocess.js +6 -4
  1438. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
  1439. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
  1440. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
  1441. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
  1442. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
  1443. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
  1444. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
  1445. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
  1446. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
  1447. package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
  1448. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
  1449. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
  1450. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
  1451. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
  1452. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
  1453. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
  1454. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
  1455. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
  1456. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
  1457. package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
  1458. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
  1459. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
  1460. package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
  1461. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
  1462. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
  1463. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
  1464. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
  1465. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
  1466. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
  1467. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
  1468. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
  1469. package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
  1470. package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
  1471. package/dist/node_modules/micromark-factory-destination/index.js +10 -8
  1472. package/dist/node_modules/micromark-factory-label/index.js +7 -5
  1473. package/dist/node_modules/micromark-factory-space/index.js +7 -5
  1474. package/dist/node_modules/micromark-factory-title/index.js +8 -6
  1475. package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
  1476. package/dist/node_modules/micromark-util-character/index.js +14 -12
  1477. package/dist/node_modules/micromark-util-chunked/index.js +6 -4
  1478. package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
  1479. package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
  1480. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
  1481. package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
  1482. package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
  1483. package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
  1484. package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
  1485. package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
  1486. package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
  1487. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
  1488. package/dist/node_modules/motion/dist/es/react.js +2 -2
  1489. package/dist/node_modules/nanoid/index.browser.js +6 -4
  1490. package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
  1491. package/dist/node_modules/property-information/index.js +25 -23
  1492. package/dist/node_modules/property-information/lib/aria.js +41 -39
  1493. package/dist/node_modules/property-information/lib/find.js +18 -16
  1494. package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
  1495. package/dist/node_modules/property-information/lib/html.js +96 -94
  1496. package/dist/node_modules/property-information/lib/normalize.js +4 -2
  1497. package/dist/node_modules/property-information/lib/svg.js +79 -77
  1498. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
  1499. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
  1500. package/dist/node_modules/property-information/lib/util/create.js +10 -8
  1501. package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
  1502. package/dist/node_modules/property-information/lib/util/info.js +5 -3
  1503. package/dist/node_modules/property-information/lib/util/merge.js +6 -4
  1504. package/dist/node_modules/property-information/lib/util/schema.js +5 -3
  1505. package/dist/node_modules/property-information/lib/util/types.js +15 -14
  1506. package/dist/node_modules/property-information/lib/xlink.js +5 -3
  1507. package/dist/node_modules/property-information/lib/xml.js +5 -3
  1508. package/dist/node_modules/property-information/lib/xmlns.js +7 -5
  1509. package/dist/node_modules/rehype-harden/dist/index.js +47 -45
  1510. package/dist/node_modules/rehype-katex/lib/index.js +25 -23
  1511. package/dist/node_modules/rehype-raw/lib/index.js +6 -4
  1512. package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
  1513. package/dist/node_modules/remark-gfm/lib/index.js +9 -7
  1514. package/dist/node_modules/remark-math/lib/index.js +9 -7
  1515. package/dist/node_modules/remark-parse/lib/index.js +6 -4
  1516. package/dist/node_modules/remark-rehype/lib/index.js +7 -5
  1517. package/dist/node_modules/remend/dist/index.js +368 -297
  1518. package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
  1519. package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
  1520. package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
  1521. package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
  1522. package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
  1523. package/dist/node_modules/shiki/dist/themes.js +6 -4
  1524. package/dist/node_modules/shiki/dist/wasm.js +2 -2
  1525. package/dist/node_modules/space-separated-tokens/index.js +5 -3
  1526. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
  1527. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
  1528. package/dist/node_modules/streamdown/dist/index.js +1 -1
  1529. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
  1530. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
  1531. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
  1532. package/dist/node_modules/stringify-entities/lib/core.js +18 -16
  1533. package/dist/node_modules/stringify-entities/lib/index.js +7 -5
  1534. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
  1535. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
  1536. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
  1537. package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
  1538. package/dist/node_modules/style-to-js/cjs/index.js +9 -7
  1539. package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
  1540. package/dist/node_modules/style-to-object/cjs/index.js +8 -6
  1541. package/dist/node_modules/stylis/src/Enum.js +4 -2
  1542. package/dist/node_modules/stylis/src/Parser.js +38 -36
  1543. package/dist/node_modules/stylis/src/Serializer.js +17 -15
  1544. package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
  1545. package/dist/node_modules/stylis/src/Utility.js +17 -15
  1546. package/dist/node_modules/trim-lines/index.js +10 -8
  1547. package/dist/node_modules/trough/lib/index.js +6 -4
  1548. package/dist/node_modules/ts-dedent/esm/index.js +4 -2
  1549. package/dist/node_modules/unified/lib/callable-instance.js +4 -2
  1550. package/dist/node_modules/unified/lib/index.js +102 -101
  1551. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
  1552. package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
  1553. package/dist/node_modules/unist-util-is/lib/index.js +31 -29
  1554. package/dist/node_modules/unist-util-position/lib/index.js +7 -5
  1555. package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
  1556. package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
  1557. package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
  1558. package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
  1559. package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
  1560. package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
  1561. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
  1562. package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
  1563. package/dist/node_modules/vaul/dist/index.js +276 -274
  1564. package/dist/node_modules/vfile/lib/index.js +44 -42
  1565. package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
  1566. package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
  1567. package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
  1568. package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
  1569. package/dist/node_modules/vfile-location/lib/index.js +7 -5
  1570. package/dist/node_modules/vfile-message/lib/index.js +7 -5
  1571. package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
  1572. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
  1573. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
  1574. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
  1575. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
  1576. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
  1577. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
  1578. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
  1579. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
  1580. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
  1581. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
  1582. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
  1583. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
  1584. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
  1585. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
  1586. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
  1587. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
  1588. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
  1589. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
  1590. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
  1591. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
  1592. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
  1593. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
  1594. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
  1595. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
  1596. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
  1597. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
  1598. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
  1599. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
  1600. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
  1601. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
  1602. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
  1603. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
  1604. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
  1605. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
  1606. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
  1607. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
  1608. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
  1609. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
  1610. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
  1611. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
  1612. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
  1613. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
  1614. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
  1615. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
  1616. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
  1617. package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
  1618. package/dist/node_modules/web-namespaces/index.js +4 -2
  1619. package/dist/node_modules/zwitch/index.js +7 -5
  1620. package/dist/packages/contracts/dist/enums/index.js +21 -20
  1621. package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
  1622. package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
  1623. package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
  1624. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +7 -5
  1625. package/dist/pages/DashboardPage.js +55 -99
  1626. package/dist/pages/DebugPage.js +12 -17
  1627. package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
  1628. package/dist/pages/DebugWorkflowsPage.js +44 -42
  1629. package/dist/pages/EmbedWorkbenchPage.js +49 -73
  1630. package/dist/pages/PreviewWorkbenchPage.js +242 -448
  1631. package/dist/pages/RunsListPage.js +44 -61
  1632. package/dist/pages/RunsPage.js +31 -48
  1633. package/dist/pages/StudioLandingPage.js +97 -132
  1634. package/dist/pages/WorkbenchPage.js +56 -86
  1635. package/dist/pages/WorkflowDebugPage.js +78 -0
  1636. package/dist/pages/WorkspacePage.js +72 -113
  1637. package/dist/pages/WorkspaceRunsPage.js +43 -70
  1638. package/dist/pages/WorkspacesPage.js +24 -35
  1639. package/dist/providers/ComponentOverridesProvider.js +9 -12
  1640. package/dist/providers/InvalidationEventsProvider.js +33 -35
  1641. package/dist/providers/QueryProvider.js +14 -18
  1642. package/dist/providers/SseProvider.js +28 -30
  1643. package/dist/providers/StudioProvider.js +14 -19
  1644. package/dist/routing/LocalRouter.js +20 -26
  1645. package/dist/services/createApiClient.js +7 -5
  1646. package/dist/services/eventEmitter.js +3 -2
  1647. package/dist/services/index.js +2 -2
  1648. package/dist/types/ai.types.js +7 -5
  1649. package/package.json +33 -33
  1650. package/dist/_virtual/rolldown_runtime.js +0 -20
  1651. package/dist/api/namespaces.js +0 -7
  1652. package/dist/api/pipelines.js +0 -13
  1653. package/dist/components/ai-elements/tool.js +0 -158
  1654. package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
  1655. package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
  1656. package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
  1657. package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
  1658. package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
  1659. package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
  1660. package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
  1661. package/dist/features/workbench/NavigationItems.js +0 -52
  1662. package/dist/features/workbench/WorkbenchNavigation.js +0 -38
  1663. package/dist/features/workbench/components/NavigationItem.js +0 -68
  1664. package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
  1665. package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
  1666. package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
  1667. package/dist/features/workspaces/components/PipelineForm.js +0 -152
  1668. package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
  1669. package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
  1670. package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
  1671. package/dist/hooks/useNamespaceTree.js +0 -27
  1672. package/dist/hooks/useNamespaces.js +0 -25
  1673. package/dist/hooks/usePipelines.js +0 -161
  1674. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
  1675. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
  1676. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
  1677. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
  1678. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
  1679. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
  1680. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
  1681. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
  1682. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
  1683. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
  1684. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
  1685. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
  1686. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
  1687. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
  1688. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
  1689. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
  1690. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
  1691. package/dist/node_modules/langium/lib/index.js +0 -182
  1692. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  1693. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  1694. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  1695. package/dist/node_modules/lodash/_Symbol.js +0 -7
  1696. package/dist/node_modules/lodash/_baseGetTag.js +0 -13
  1697. package/dist/node_modules/lodash/_baseTrim.js +0 -11
  1698. package/dist/node_modules/lodash/_freeGlobal.js +0 -6
  1699. package/dist/node_modules/lodash/_getRawTag.js +0 -17
  1700. package/dist/node_modules/lodash/_objectToString.js +0 -10
  1701. package/dist/node_modules/lodash/_root.js +0 -8
  1702. package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
  1703. package/dist/node_modules/lodash/isObject.js +0 -10
  1704. package/dist/node_modules/lodash/isObjectLike.js +0 -9
  1705. package/dist/node_modules/lodash/isSymbol.js +0 -12
  1706. package/dist/node_modules/lodash/now.js +0 -10
  1707. package/dist/node_modules/lodash/toNumber.js +0 -22
  1708. package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
  1709. package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
  1710. package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
  1711. package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
  1712. package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
  1713. package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
  1714. package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
  1715. package/dist/node_modules/lodash-es/_baseSome.js +0 -9
  1716. package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
  1717. package/dist/node_modules/lodash-es/assign.js +0 -14
  1718. package/dist/node_modules/lodash-es/compact.js +0 -9
  1719. package/dist/node_modules/lodash-es/difference.js +0 -8
  1720. package/dist/node_modules/lodash-es/drop.js +0 -8
  1721. package/dist/node_modules/lodash-es/dropRight.js +0 -8
  1722. package/dist/node_modules/lodash-es/every.js +0 -11
  1723. package/dist/node_modules/lodash-es/groupBy.js +0 -6
  1724. package/dist/node_modules/lodash-es/head.js +0 -5
  1725. package/dist/node_modules/lodash-es/includes.js +0 -13
  1726. package/dist/node_modules/lodash-es/indexOf.js +0 -11
  1727. package/dist/node_modules/lodash-es/isRegExp.js +0 -5
  1728. package/dist/node_modules/lodash-es/negate.js +0 -16
  1729. package/dist/node_modules/lodash-es/pickBy.js +0 -15
  1730. package/dist/node_modules/lodash-es/reject.js +0 -10
  1731. package/dist/node_modules/lodash-es/some.js +0 -11
  1732. package/dist/node_modules/lodash-es/uniq.js +0 -6
  1733. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
  1734. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
  1735. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
  1736. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
  1737. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
  1738. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
  1739. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
  1740. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
  1741. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
  1742. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
  1743. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
  1744. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
  1745. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
  1746. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
  1747. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
  1748. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
  1749. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
  1750. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
  1751. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
  1752. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
  1753. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
  1754. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
  1755. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
  1756. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
  1757. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
  1758. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
  1759. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
  1760. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
  1761. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
  1762. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
  1763. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
  1764. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
  1765. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
  1766. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
  1767. package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
  1768. package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
  1769. package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
  1770. package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
  1771. package/dist/pages/PipelineDebugPage.js +0 -115
@@ -0,0 +1,3038 @@
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";
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";
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 = [
23
+ 8,
24
+ 10,
25
+ 21,
26
+ 28,
27
+ 29,
28
+ 30,
29
+ 31,
30
+ 39,
31
+ 43,
32
+ 46
33
+ ], f = [1, 23], p = [1, 24], m = [
34
+ 8,
35
+ 10,
36
+ 15,
37
+ 16,
38
+ 21,
39
+ 28,
40
+ 29,
41
+ 30,
42
+ 31,
43
+ 39,
44
+ 43,
45
+ 46
46
+ ], h = [
47
+ 8,
48
+ 10,
49
+ 15,
50
+ 16,
51
+ 21,
52
+ 27,
53
+ 28,
54
+ 29,
55
+ 30,
56
+ 31,
57
+ 39,
58
+ 43,
59
+ 46
60
+ ], g = [1, 49], _ = {
61
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
62
+ yy: {},
63
+ symbols_: {
64
+ error: 2,
65
+ spaceLines: 3,
66
+ SPACELINE: 4,
67
+ NL: 5,
68
+ separator: 6,
69
+ SPACE: 7,
70
+ EOF: 8,
71
+ start: 9,
72
+ BLOCK_DIAGRAM_KEY: 10,
73
+ document: 11,
74
+ stop: 12,
75
+ statement: 13,
76
+ link: 14,
77
+ LINK: 15,
78
+ START_LINK: 16,
79
+ LINK_LABEL: 17,
80
+ STR: 18,
81
+ nodeStatement: 19,
82
+ columnsStatement: 20,
83
+ SPACE_BLOCK: 21,
84
+ blockStatement: 22,
85
+ classDefStatement: 23,
86
+ cssClassStatement: 24,
87
+ styleStatement: 25,
88
+ node: 26,
89
+ SIZE: 27,
90
+ COLUMNS: 28,
91
+ "id-block": 29,
92
+ end: 30,
93
+ NODE_ID: 31,
94
+ nodeShapeNLabel: 32,
95
+ dirList: 33,
96
+ DIR: 34,
97
+ NODE_DSTART: 35,
98
+ NODE_DEND: 36,
99
+ BLOCK_ARROW_START: 37,
100
+ BLOCK_ARROW_END: 38,
101
+ classDef: 39,
102
+ CLASSDEF_ID: 40,
103
+ CLASSDEF_STYLEOPTS: 41,
104
+ DEFAULT: 42,
105
+ class: 43,
106
+ CLASSENTITY_IDS: 44,
107
+ STYLECLASS: 45,
108
+ style: 46,
109
+ STYLE_ENTITY_IDS: 47,
110
+ STYLE_DEFINITION_DATA: 48,
111
+ $accept: 0,
112
+ $end: 1
113
+ },
114
+ terminals_: {
115
+ 2: "error",
116
+ 4: "SPACELINE",
117
+ 5: "NL",
118
+ 7: "SPACE",
119
+ 8: "EOF",
120
+ 10: "BLOCK_DIAGRAM_KEY",
121
+ 15: "LINK",
122
+ 16: "START_LINK",
123
+ 17: "LINK_LABEL",
124
+ 18: "STR",
125
+ 21: "SPACE_BLOCK",
126
+ 27: "SIZE",
127
+ 28: "COLUMNS",
128
+ 29: "id-block",
129
+ 30: "end",
130
+ 31: "NODE_ID",
131
+ 34: "DIR",
132
+ 35: "NODE_DSTART",
133
+ 36: "NODE_DEND",
134
+ 37: "BLOCK_ARROW_START",
135
+ 38: "BLOCK_ARROW_END",
136
+ 39: "classDef",
137
+ 40: "CLASSDEF_ID",
138
+ 41: "CLASSDEF_STYLEOPTS",
139
+ 42: "DEFAULT",
140
+ 43: "class",
141
+ 44: "CLASSENTITY_IDS",
142
+ 45: "STYLECLASS",
143
+ 46: "style",
144
+ 47: "STYLE_ENTITY_IDS",
145
+ 48: "STYLE_DEFINITION_DATA"
146
+ },
147
+ productions_: [
148
+ 0,
149
+ [3, 1],
150
+ [3, 2],
151
+ [3, 2],
152
+ [6, 1],
153
+ [6, 1],
154
+ [6, 1],
155
+ [9, 3],
156
+ [12, 1],
157
+ [12, 1],
158
+ [12, 2],
159
+ [12, 2],
160
+ [11, 1],
161
+ [11, 2],
162
+ [14, 1],
163
+ [14, 4],
164
+ [13, 1],
165
+ [13, 1],
166
+ [13, 1],
167
+ [13, 1],
168
+ [13, 1],
169
+ [13, 1],
170
+ [13, 1],
171
+ [19, 3],
172
+ [19, 2],
173
+ [19, 1],
174
+ [20, 1],
175
+ [22, 4],
176
+ [22, 3],
177
+ [26, 1],
178
+ [26, 2],
179
+ [33, 1],
180
+ [33, 2],
181
+ [32, 3],
182
+ [32, 4],
183
+ [23, 3],
184
+ [23, 3],
185
+ [24, 3],
186
+ [25, 3]
187
+ ],
188
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
189
+ var s = a.length - 1;
190
+ switch (i) {
191
+ case 4:
192
+ r.getLogger().debug("Rule: separator (NL) ");
193
+ break;
194
+ case 5:
195
+ r.getLogger().debug("Rule: separator (Space) ");
196
+ break;
197
+ case 6:
198
+ r.getLogger().debug("Rule: separator (EOF) ");
199
+ break;
200
+ case 7:
201
+ r.getLogger().debug("Rule: hierarchy: ", a[s - 1]), r.setHierarchy(a[s - 1]);
202
+ break;
203
+ case 8:
204
+ r.getLogger().debug("Stop NL ");
205
+ break;
206
+ case 9:
207
+ r.getLogger().debug("Stop EOF ");
208
+ break;
209
+ case 10:
210
+ r.getLogger().debug("Stop NL2 ");
211
+ break;
212
+ case 11:
213
+ r.getLogger().debug("Stop EOF2 ");
214
+ break;
215
+ case 12:
216
+ r.getLogger().debug("Rule: statement: ", a[s]), typeof a[s].length == "number" ? this.$ = a[s] : this.$ = [a[s]];
217
+ break;
218
+ case 13:
219
+ r.getLogger().debug("Rule: statement #2: ", a[s - 1]), this.$ = [a[s - 1]].concat(a[s]);
220
+ break;
221
+ case 14:
222
+ r.getLogger().debug("Rule: link: ", a[s], e), this.$ = {
223
+ edgeTypeStr: a[s],
224
+ label: ""
225
+ };
226
+ break;
227
+ 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]
231
+ };
232
+ break;
233
+ case 18:
234
+ let t = parseInt(a[s]);
235
+ this.$ = {
236
+ id: r.generateId(),
237
+ type: "space",
238
+ label: "",
239
+ width: t,
240
+ children: []
241
+ };
242
+ break;
243
+ 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);
246
+ this.$ = [
247
+ {
248
+ id: a[s - 2].id,
249
+ label: a[s - 2].label,
250
+ type: a[s - 2].type,
251
+ directions: a[s - 2].directions
252
+ },
253
+ {
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,
258
+ type: "edge",
259
+ directions: a[s].directions,
260
+ arrowTypeEnd: n,
261
+ arrowTypeStart: "arrow_open"
262
+ },
263
+ {
264
+ id: a[s].id,
265
+ label: a[s].label,
266
+ type: r.typeStr2Type(a[s].typeStr),
267
+ directions: a[s].directions
268
+ }
269
+ ];
270
+ break;
271
+ 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)
278
+ };
279
+ break;
280
+ 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,
286
+ widthInColumns: 1
287
+ };
288
+ break;
289
+ case 26:
290
+ r.getLogger().debug("APA123", this ? this : "na"), r.getLogger().debug("COLUMNS: ", a[s]), this.$ = {
291
+ type: "column-setting",
292
+ columns: a[s] === "auto" ? -1 : parseInt(a[s])
293
+ };
294
+ break;
295
+ case 27:
296
+ r.getLogger().debug("Rule: id-block statement : ", a[s - 2], a[s - 1]), r.generateId(), this.$ = {
297
+ ...a[s - 2],
298
+ type: "composite",
299
+ children: a[s - 1]
300
+ };
301
+ break;
302
+ case 28:
303
+ r.getLogger().debug("Rule: blockStatement : ", a[s - 2], a[s - 1], a[s]), this.$ = {
304
+ id: r.generateId(),
305
+ type: "composite",
306
+ label: "",
307
+ children: a[s - 1]
308
+ };
309
+ break;
310
+ case 29:
311
+ r.getLogger().debug("Rule: node (NODE_ID separator): ", a[s]), this.$ = { id: a[s] };
312
+ break;
313
+ 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
319
+ };
320
+ break;
321
+ case 31:
322
+ r.getLogger().debug("Rule: dirList: ", a[s]), this.$ = [a[s]];
323
+ break;
324
+ case 32:
325
+ r.getLogger().debug("Rule: dirList: ", a[s - 1], a[s]), this.$ = [a[s - 1]].concat(a[s]);
326
+ break;
327
+ 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]
331
+ };
332
+ break;
333
+ 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]
338
+ };
339
+ break;
340
+ case 35:
341
+ case 36:
342
+ this.$ = {
343
+ type: "classDef",
344
+ id: a[s - 1].trim(),
345
+ css: a[s].trim()
346
+ };
347
+ break;
348
+ case 37:
349
+ this.$ = {
350
+ type: "applyClass",
351
+ id: a[s - 1].trim(),
352
+ styleClass: a[s].trim()
353
+ };
354
+ break;
355
+ case 38:
356
+ this.$ = {
357
+ type: "applyStyles",
358
+ id: a[s - 1].trim(),
359
+ stylesStr: a[s].trim()
360
+ };
361
+ break;
362
+ }
363
+ }, "anonymous"),
364
+ table: [
365
+ {
366
+ 9: 1,
367
+ 10: [1, 2]
368
+ },
369
+ { 1: [3] },
370
+ {
371
+ 10: n,
372
+ 11: 3,
373
+ 13: 4,
374
+ 19: 5,
375
+ 20: 6,
376
+ 21: r,
377
+ 22: 8,
378
+ 23: 9,
379
+ 24: 10,
380
+ 25: 11,
381
+ 26: 12,
382
+ 28: i,
383
+ 29: a,
384
+ 31: o,
385
+ 39: s,
386
+ 43: c,
387
+ 46: l
388
+ },
389
+ { 8: [1, 20] },
390
+ t(u, [2, 12], {
391
+ 13: 4,
392
+ 19: 5,
393
+ 20: 6,
394
+ 22: 8,
395
+ 23: 9,
396
+ 24: 10,
397
+ 25: 11,
398
+ 26: 12,
399
+ 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
408
+ }),
409
+ t(d, [2, 16], {
410
+ 14: 22,
411
+ 15: f,
412
+ 16: p
413
+ }),
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]),
422
+ {
423
+ 19: 26,
424
+ 26: 12,
425
+ 31: o
426
+ },
427
+ {
428
+ 10: n,
429
+ 11: 27,
430
+ 13: 4,
431
+ 19: 5,
432
+ 20: 6,
433
+ 21: r,
434
+ 22: 8,
435
+ 23: 9,
436
+ 24: 10,
437
+ 25: 11,
438
+ 26: 12,
439
+ 28: i,
440
+ 29: a,
441
+ 31: o,
442
+ 39: s,
443
+ 43: c,
444
+ 46: l
445
+ },
446
+ {
447
+ 40: [1, 28],
448
+ 42: [1, 29]
449
+ },
450
+ { 44: [1, 30] },
451
+ { 47: [1, 31] },
452
+ t(h, [2, 29], {
453
+ 32: 32,
454
+ 35: [1, 33],
455
+ 37: [1, 34]
456
+ }),
457
+ { 1: [2, 7] },
458
+ t(u, [2, 13]),
459
+ {
460
+ 26: 35,
461
+ 31: o
462
+ },
463
+ { 31: [2, 14] },
464
+ { 17: [1, 36] },
465
+ t(m, [2, 24]),
466
+ {
467
+ 10: n,
468
+ 11: 37,
469
+ 13: 4,
470
+ 14: 22,
471
+ 15: f,
472
+ 16: p,
473
+ 19: 5,
474
+ 20: 6,
475
+ 21: r,
476
+ 22: 8,
477
+ 23: 9,
478
+ 24: 10,
479
+ 25: 11,
480
+ 26: 12,
481
+ 28: i,
482
+ 29: a,
483
+ 31: o,
484
+ 39: s,
485
+ 43: c,
486
+ 46: l
487
+ },
488
+ { 30: [1, 38] },
489
+ { 41: [1, 39] },
490
+ { 41: [1, 40] },
491
+ { 45: [1, 41] },
492
+ { 48: [1, 42] },
493
+ t(h, [2, 30]),
494
+ { 18: [1, 43] },
495
+ { 18: [1, 44] },
496
+ t(m, [2, 23]),
497
+ { 18: [1, 45] },
498
+ { 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]),
504
+ { 36: [1, 47] },
505
+ {
506
+ 33: 48,
507
+ 34: g
508
+ },
509
+ { 15: [1, 50] },
510
+ t(d, [2, 27]),
511
+ t(h, [2, 33]),
512
+ { 38: [1, 51] },
513
+ {
514
+ 33: 52,
515
+ 34: g,
516
+ 38: [2, 31]
517
+ },
518
+ { 31: [2, 15] },
519
+ t(h, [2, 34]),
520
+ { 38: [2, 32] }
521
+ ],
522
+ defaultActions: {
523
+ 20: [2, 7],
524
+ 23: [2, 14],
525
+ 50: [2, 15],
526
+ 52: [2, 32]
527
+ },
528
+ parseError: /* @__PURE__ */ e(function(e, t) {
529
+ if (t.recoverable) this.trace(e);
530
+ else {
531
+ var n = Error(e);
532
+ throw n.hash = t, n;
533
+ }
534
+ }, "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;
545
+ }
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;
550
+ }
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
562
+ });
563
+ }
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]) {
566
+ 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--);
568
+ break;
569
+ 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);
585
+ break;
586
+ case 3: return !0;
587
+ }
588
+ }
589
+ return !0;
590
+ }, "parse")
591
+ };
592
+ _.lexer = /* @__PURE__ */ (function() {
593
+ return {
594
+ EOF: 1,
595
+ parseError: /* @__PURE__ */ e(function(e, t) {
596
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
597
+ else throw Error(e);
598
+ }, "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 = {
601
+ first_line: 1,
602
+ first_column: 0,
603
+ last_line: 1,
604
+ last_column: 0
605
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
606
+ }, "setInput"),
607
+ input: /* @__PURE__ */ e(function() {
608
+ var e = this._input[0];
609
+ 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
+ }, "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;
617
+ return this.yylloc = {
618
+ first_line: this.yylloc.first_line,
619
+ last_line: this.yylineno + 1,
620
+ 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;
623
+ }, "unput"),
624
+ more: /* @__PURE__ */ e(function() {
625
+ return this._more = !0, this;
626
+ }, "more"),
627
+ reject: /* @__PURE__ */ e(function() {
628
+ if (this.options.backtrack_lexer) this._backtrack = !0;
629
+ 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
+ text: "",
631
+ token: null,
632
+ line: this.yylineno
633
+ });
634
+ return this;
635
+ }, "reject"),
636
+ less: /* @__PURE__ */ e(function(e) {
637
+ this.unput(this.match.slice(e));
638
+ }, "less"),
639
+ pastInput: /* @__PURE__ */ e(function() {
640
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
641
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
642
+ }, "pastInput"),
643
+ upcomingInput: /* @__PURE__ */ e(function() {
644
+ var e = this.match;
645
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
646
+ }, "upcomingInput"),
647
+ showPosition: /* @__PURE__ */ e(function() {
648
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
649
+ return e + this.upcomingInput() + "\n" + t + "^";
650
+ }, "showPosition"),
651
+ test_match: /* @__PURE__ */ e(function(e, t) {
652
+ var n, r, i;
653
+ if (this.options.backtrack_lexer && (i = {
654
+ yylineno: this.yylineno,
655
+ yylloc: {
656
+ first_line: this.yylloc.first_line,
657
+ last_line: this.last_line,
658
+ first_column: this.yylloc.first_column,
659
+ last_column: this.yylloc.last_column
660
+ },
661
+ yytext: this.yytext,
662
+ match: this.match,
663
+ matches: this.matches,
664
+ matched: this.matched,
665
+ yyleng: this.yyleng,
666
+ offset: this.offset,
667
+ _more: this._more,
668
+ _input: this._input,
669
+ yy: this.yy,
670
+ conditionStack: this.conditionStack.slice(0),
671
+ 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 = {
673
+ first_line: this.yylloc.last_line,
674
+ last_line: this.yylineno + 1,
675
+ 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;
678
+ if (this._backtrack) {
679
+ for (var a in i) this[a] = i[a];
680
+ return !1;
681
+ }
682
+ return !1;
683
+ }, "test_match"),
684
+ next: /* @__PURE__ */ e(function() {
685
+ if (this.done) return this.EOF;
686
+ this._input || (this.done = !0);
687
+ var e, t, n, r;
688
+ 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;
692
+ if (this._backtrack) {
693
+ t = !1;
694
+ continue;
695
+ } else return !1;
696
+ } else if (!this.options.flex) break;
697
+ }
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(), {
699
+ text: "",
700
+ token: null,
701
+ line: this.yylineno
702
+ });
703
+ }, "next"),
704
+ lex: /* @__PURE__ */ e(function() {
705
+ return this.next() || this.lex();
706
+ }, "lex"),
707
+ begin: /* @__PURE__ */ e(function(e) {
708
+ this.conditionStack.push(e);
709
+ }, "begin"),
710
+ popState: /* @__PURE__ */ e(function() {
711
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
712
+ }, "popState"),
713
+ _currentRules: /* @__PURE__ */ e(function() {
714
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
715
+ }, "_currentRules"),
716
+ topState: /* @__PURE__ */ e(function(e) {
717
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
718
+ }, "topState"),
719
+ pushState: /* @__PURE__ */ e(function(e) {
720
+ this.begin(e);
721
+ }, "pushState"),
722
+ stateStackSize: /* @__PURE__ */ e(function() {
723
+ return this.conditionStack.length;
724
+ }, "stateStackSize"),
725
+ options: {},
726
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
727
+ switch (n) {
728
+ case 0: return e.getLogger().debug("Found block-beta"), 10;
729
+ case 1: return e.getLogger().debug("Found id-block"), 29;
730
+ case 2: return e.getLogger().debug("Found block"), 10;
731
+ case 3:
732
+ e.getLogger().debug(".", t.yytext);
733
+ break;
734
+ case 4:
735
+ e.getLogger().debug("_", t.yytext);
736
+ break;
737
+ 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;
740
+ case 8:
741
+ this.pushState("md_string");
742
+ break;
743
+ case 9: return "MD_STR";
744
+ case 10:
745
+ this.popState();
746
+ break;
747
+ case 11:
748
+ this.pushState("string");
749
+ break;
750
+ case 12:
751
+ e.getLogger().debug("LEX: POPPING STR:", t.yytext), this.popState();
752
+ 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;
756
+ case 16: return 42;
757
+ case 17: return "LINKSTYLE";
758
+ case 18: return "INTERPOLATE";
759
+ case 19: return this.pushState("CLASSDEF"), 39;
760
+ case 20: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
761
+ case 21: return this.popState(), this.pushState("CLASSDEFID"), 40;
762
+ case 22: return this.popState(), 41;
763
+ case 23: return this.pushState("CLASS"), 43;
764
+ case 24: return this.popState(), this.pushState("CLASS_STYLE"), 44;
765
+ case 25: return this.popState(), 45;
766
+ case 26: return this.pushState("STYLE_STMNT"), 46;
767
+ case 27: return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
768
+ case 28: return this.popState(), 48;
769
+ case 29: return this.pushState("acc_title"), "acc_title";
770
+ case 30: return this.popState(), "acc_title_value";
771
+ case 31: return this.pushState("acc_descr"), "acc_descr";
772
+ case 32: return this.popState(), "acc_descr_value";
773
+ case 33:
774
+ this.pushState("acc_descr_multiline");
775
+ break;
776
+ case 34:
777
+ this.popState();
778
+ break;
779
+ case 35: return "acc_descr_multiline_value";
780
+ case 36: return 30;
781
+ case 37: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
782
+ case 38: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
783
+ case 39: return this.popState(), e.getLogger().debug("Lex: ))"), "NODE_DEND";
784
+ case 40: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
785
+ case 41: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
786
+ case 42: return this.popState(), e.getLogger().debug("Lex: (-"), "NODE_DEND";
787
+ case 43: return this.popState(), e.getLogger().debug("Lex: -)"), "NODE_DEND";
788
+ case 44: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
789
+ case 45: return this.popState(), e.getLogger().debug("Lex: ]]"), "NODE_DEND";
790
+ case 46: return this.popState(), e.getLogger().debug("Lex: ("), "NODE_DEND";
791
+ case 47: return this.popState(), e.getLogger().debug("Lex: ])"), "NODE_DEND";
792
+ case 48: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
793
+ case 49: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
794
+ case 50: return this.popState(), e.getLogger().debug("Lex: )]"), "NODE_DEND";
795
+ case 51: return this.popState(), e.getLogger().debug("Lex: )"), "NODE_DEND";
796
+ case 52: return this.popState(), e.getLogger().debug("Lex: ]>"), "NODE_DEND";
797
+ case 53: return this.popState(), e.getLogger().debug("Lex: ]"), "NODE_DEND";
798
+ case 54: return e.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
799
+ case 55: return e.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
800
+ case 56: return e.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
801
+ case 57: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
802
+ case 58: return e.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
803
+ case 59: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
804
+ case 60: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
805
+ case 61: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
806
+ case 62: return e.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
807
+ case 63: return e.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
808
+ case 64: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
809
+ case 65: return this.pushState("NODE"), 35;
810
+ case 66: return this.pushState("NODE"), 35;
811
+ case 67: return this.pushState("NODE"), 35;
812
+ case 68: return this.pushState("NODE"), 35;
813
+ case 69: return this.pushState("NODE"), 35;
814
+ case 70: return this.pushState("NODE"), 35;
815
+ case 71: return this.pushState("NODE"), 35;
816
+ case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
817
+ 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;
820
+ case 76:
821
+ this.pushState("md_string");
822
+ break;
823
+ case 77:
824
+ this.pushState("md_string");
825
+ break;
826
+ case 78: return "NODE_DESCR";
827
+ case 79:
828
+ this.popState();
829
+ break;
830
+ case 80:
831
+ e.getLogger().debug("Lex: Starting string"), this.pushState("string");
832
+ break;
833
+ case 81:
834
+ e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
835
+ break;
836
+ case 82: return e.getLogger().debug("LEX: NODE_DESCR:", t.yytext), "NODE_DESCR";
837
+ case 83:
838
+ e.getLogger().debug("LEX POPPING"), this.popState();
839
+ break;
840
+ case 84:
841
+ e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
842
+ 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;
857
+ case 99:
858
+ this.pushState("md_string");
859
+ break;
860
+ 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;
865
+ }
866
+ }, "anonymous"),
867
+ rules: [
868
+ /^(?:block-beta\b)/,
869
+ /^(?:block:)/,
870
+ /^(?:block\b)/,
871
+ /^(?:[\s]+)/,
872
+ /^(?:[\n]+)/,
873
+ /^(?:((\u000D\u000A)|(\u000A)))/,
874
+ /^(?:columns\s+auto\b)/,
875
+ /^(?:columns\s+[\d]+)/,
876
+ /^(?:["][`])/,
877
+ /^(?:[^`"]+)/,
878
+ /^(?:[`]["])/,
879
+ /^(?:["])/,
880
+ /^(?:["])/,
881
+ /^(?:[^"]*)/,
882
+ /^(?:space[:]\d+)/,
883
+ /^(?:space\b)/,
884
+ /^(?:default\b)/,
885
+ /^(?:linkStyle\b)/,
886
+ /^(?:interpolate\b)/,
887
+ /^(?:classDef\s+)/,
888
+ /^(?:DEFAULT\s+)/,
889
+ /^(?:\w+\s+)/,
890
+ /^(?:[^\n]*)/,
891
+ /^(?:class\s+)/,
892
+ /^(?:(\w+)+((,\s*\w+)*))/,
893
+ /^(?:[^\n]*)/,
894
+ /^(?:style\s+)/,
895
+ /^(?:(\w+)+((,\s*\w+)*))/,
896
+ /^(?:[^\n]*)/,
897
+ /^(?:accTitle\s*:\s*)/,
898
+ /^(?:(?!\n||)*[^\n]*)/,
899
+ /^(?:accDescr\s*:\s*)/,
900
+ /^(?:(?!\n||)*[^\n]*)/,
901
+ /^(?:accDescr\s*\{\s*)/,
902
+ /^(?:[\}])/,
903
+ /^(?:[^\}]*)/,
904
+ /^(?:end\b\s*)/,
905
+ /^(?:\(\(\()/,
906
+ /^(?:\)\)\))/,
907
+ /^(?:[\)]\))/,
908
+ /^(?:\}\})/,
909
+ /^(?:\})/,
910
+ /^(?:\(-)/,
911
+ /^(?:-\))/,
912
+ /^(?:\(\()/,
913
+ /^(?:\]\])/,
914
+ /^(?:\()/,
915
+ /^(?:\]\))/,
916
+ /^(?:\\\])/,
917
+ /^(?:\/\])/,
918
+ /^(?:\)\])/,
919
+ /^(?:[\)])/,
920
+ /^(?:\]>)/,
921
+ /^(?:[\]])/,
922
+ /^(?:-\))/,
923
+ /^(?:\(-)/,
924
+ /^(?:\)\))/,
925
+ /^(?:\))/,
926
+ /^(?:\(\(\()/,
927
+ /^(?:\(\()/,
928
+ /^(?:\{\{)/,
929
+ /^(?:\{)/,
930
+ /^(?:>)/,
931
+ /^(?:\(\[)/,
932
+ /^(?:\()/,
933
+ /^(?:\[\[)/,
934
+ /^(?:\[\|)/,
935
+ /^(?:\[\()/,
936
+ /^(?:\)\)\))/,
937
+ /^(?:\[\\)/,
938
+ /^(?:\[\/)/,
939
+ /^(?:\[\\)/,
940
+ /^(?:\[)/,
941
+ /^(?:<\[)/,
942
+ /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
943
+ /^(?:$)/,
944
+ /^(?:["][`])/,
945
+ /^(?:["][`])/,
946
+ /^(?:[^`"]+)/,
947
+ /^(?:[`]["])/,
948
+ /^(?:["])/,
949
+ /^(?:["])/,
950
+ /^(?:[^"]+)/,
951
+ /^(?:["])/,
952
+ /^(?:\]>\s*\()/,
953
+ /^(?:,?\s*right\s*)/,
954
+ /^(?:,?\s*left\s*)/,
955
+ /^(?:,?\s*x\s*)/,
956
+ /^(?:,?\s*y\s*)/,
957
+ /^(?:,?\s*up\s*)/,
958
+ /^(?:,?\s*down\s*)/,
959
+ /^(?:\)\s*)/,
960
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
961
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
962
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
963
+ /^(?:\s*~~[\~]+\s*)/,
964
+ /^(?:\s*[xo<]?--\s*)/,
965
+ /^(?:\s*[xo<]?==\s*)/,
966
+ /^(?:\s*[xo<]?-\.\s*)/,
967
+ /^(?:["][`])/,
968
+ /^(?:["])/,
969
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
970
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
971
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
972
+ /^(?::\d+)/
973
+ ],
974
+ conditions: {
975
+ STYLE_DEFINITION: {
976
+ rules: [28],
977
+ inclusive: !1
978
+ },
979
+ STYLE_STMNT: {
980
+ rules: [27],
981
+ inclusive: !1
982
+ },
983
+ CLASSDEFID: {
984
+ rules: [22],
985
+ inclusive: !1
986
+ },
987
+ CLASSDEF: {
988
+ rules: [20, 21],
989
+ inclusive: !1
990
+ },
991
+ CLASS_STYLE: {
992
+ rules: [25],
993
+ inclusive: !1
994
+ },
995
+ CLASS: {
996
+ rules: [24],
997
+ inclusive: !1
998
+ },
999
+ LLABEL: {
1000
+ rules: [
1001
+ 99,
1002
+ 100,
1003
+ 101,
1004
+ 102,
1005
+ 103
1006
+ ],
1007
+ inclusive: !1
1008
+ },
1009
+ ARROW_DIR: {
1010
+ rules: [
1011
+ 85,
1012
+ 86,
1013
+ 87,
1014
+ 88,
1015
+ 89,
1016
+ 90,
1017
+ 91
1018
+ ],
1019
+ inclusive: !1
1020
+ },
1021
+ BLOCK_ARROW: {
1022
+ rules: [
1023
+ 76,
1024
+ 81,
1025
+ 84
1026
+ ],
1027
+ inclusive: !1
1028
+ },
1029
+ NODE: {
1030
+ rules: [
1031
+ 37,
1032
+ 38,
1033
+ 39,
1034
+ 40,
1035
+ 41,
1036
+ 42,
1037
+ 43,
1038
+ 44,
1039
+ 45,
1040
+ 46,
1041
+ 47,
1042
+ 48,
1043
+ 49,
1044
+ 50,
1045
+ 51,
1046
+ 52,
1047
+ 53,
1048
+ 77,
1049
+ 80
1050
+ ],
1051
+ inclusive: !1
1052
+ },
1053
+ md_string: {
1054
+ rules: [
1055
+ 9,
1056
+ 10,
1057
+ 78,
1058
+ 79
1059
+ ],
1060
+ inclusive: !1
1061
+ },
1062
+ space: {
1063
+ rules: [],
1064
+ inclusive: !1
1065
+ },
1066
+ string: {
1067
+ rules: [
1068
+ 12,
1069
+ 13,
1070
+ 82,
1071
+ 83
1072
+ ],
1073
+ inclusive: !1
1074
+ },
1075
+ acc_descr_multiline: {
1076
+ rules: [34, 35],
1077
+ inclusive: !1
1078
+ },
1079
+ acc_descr: {
1080
+ rules: [32],
1081
+ inclusive: !1
1082
+ },
1083
+ acc_title: {
1084
+ rules: [30],
1085
+ inclusive: !1
1086
+ },
1087
+ INITIAL: {
1088
+ rules: [
1089
+ 0,
1090
+ 1,
1091
+ 2,
1092
+ 3,
1093
+ 4,
1094
+ 5,
1095
+ 6,
1096
+ 7,
1097
+ 8,
1098
+ 11,
1099
+ 14,
1100
+ 15,
1101
+ 16,
1102
+ 17,
1103
+ 18,
1104
+ 19,
1105
+ 23,
1106
+ 26,
1107
+ 29,
1108
+ 31,
1109
+ 33,
1110
+ 36,
1111
+ 54,
1112
+ 55,
1113
+ 56,
1114
+ 57,
1115
+ 58,
1116
+ 59,
1117
+ 60,
1118
+ 61,
1119
+ 62,
1120
+ 63,
1121
+ 64,
1122
+ 65,
1123
+ 66,
1124
+ 67,
1125
+ 68,
1126
+ 69,
1127
+ 70,
1128
+ 71,
1129
+ 72,
1130
+ 73,
1131
+ 74,
1132
+ 75,
1133
+ 92,
1134
+ 93,
1135
+ 94,
1136
+ 95,
1137
+ 96,
1138
+ 97,
1139
+ 98,
1140
+ 104
1141
+ ],
1142
+ inclusive: !0
1143
+ }
1144
+ }
1145
+ };
1146
+ })();
1147
+ function v() {
1148
+ this.yy = {};
1149
+ }
1150
+ return e(v, "Parser"), v.prototype = _, _.Parser = v, new v();
1151
+ })();
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 = {
1156
+ id: e,
1157
+ styles: [],
1158
+ 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);
1164
+ }
1165
+ n.styles.push(t);
1166
+ });
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) {
1171
+ 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,
1177
+ type: "na",
1178
+ children: []
1179
+ }, O.set(t, n);
1180
+ }
1181
+ n.classes ||= [], n.classes.push(t);
1182
+ });
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);
1188
+ continue;
1189
+ }
1190
+ if (e.type === "applyClass") {
1191
+ se(e.id, e?.styleClass ?? "");
1192
+ continue;
1193
+ }
1194
+ if (e.type === "applyStyles") {
1195
+ e?.stylesStr && oe(e.id, e?.stylesStr);
1196
+ continue;
1197
+ }
1198
+ if (e.type === "column-setting") n.columns = e.columns ?? -1;
1199
+ 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);
1202
+ } else {
1203
+ 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);
1210
+ }
1211
+ } else t === void 0 && i.push(e);
1212
+ }
1213
+ }
1214
+ n.children = i;
1215
+ }, "populateBlockDatabase"), le = [], P = {
1216
+ id: "root",
1217
+ type: "composite",
1218
+ children: [],
1219
+ columns: -1
1220
+ }, ue = /* @__PURE__ */ e(() => {
1221
+ t.debug("Clear called"), i(), P = {
1222
+ id: "root",
1223
+ type: "composite",
1224
+ children: [],
1225
+ columns: -1
1226
+ }, O = /* @__PURE__ */ new Map([["root", P]]), le = [], N = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(), re = "";
1227
+ }, "clear");
1228
+ function de(e) {
1229
+ switch (t.debug("typeStr2Type", e), e) {
1230
+ case "[]": return "square";
1231
+ case "()": return t.debug("we have a round"), "round";
1232
+ case "(())": return "circle";
1233
+ case ">]": return "rect_left_inv_arrow";
1234
+ case "{}": return "diamond";
1235
+ case "{{}}": return "hexagon";
1236
+ case "([])": return "stadium";
1237
+ case "[[]]": return "subroutine";
1238
+ case "[()]": return "cylinder";
1239
+ case "((()))": return "doublecircle";
1240
+ case "[//]": return "lean_right";
1241
+ case "[\\\\]": return "lean_left";
1242
+ case "[/\\]": return "trapezoid";
1243
+ case "[\\/]": return "inv_trapezoid";
1244
+ case "<[]>": return "block_arrow";
1245
+ default: return "na";
1246
+ }
1247
+ }
1248
+ e(de, "typeStr2Type");
1249
+ function fe(e) {
1250
+ switch (t.debug("typeStr2Type", e), e) {
1251
+ case "==": return "thick";
1252
+ default: return "normal";
1253
+ }
1254
+ }
1255
+ e(fe, "edgeTypeStr2Type");
1256
+ function pe(e) {
1257
+ switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
1258
+ case "x": return "arrow_cross";
1259
+ case "o": return "arrow_circle";
1260
+ case ">": return "arrow_point";
1261
+ default: return "";
1262
+ }
1263
+ }
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;
1276
+ }, "setHierarchy"),
1277
+ getBlock: /* @__PURE__ */ e((e) => O.get(e), "getBlock"),
1278
+ setBlock: /* @__PURE__ */ e((e) => {
1279
+ O.set(e.id, e);
1280
+ }, "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;
1284
+ }, "getColumns"),
1285
+ getClasses: /* @__PURE__ */ e(function() {
1286
+ return N;
1287
+ }, "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;
1292
+ }, "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 {
1298
+ font-family: ${e.fontFamily};
1299
+ color: ${e.nodeTextColor || e.textColor};
1300
+ }
1301
+ .cluster-label text {
1302
+ fill: ${e.titleColor};
1303
+ }
1304
+ .cluster-label span,p {
1305
+ color: ${e.titleColor};
1306
+ }
1307
+
1308
+
1309
+
1310
+ .label text,span,p {
1311
+ fill: ${e.nodeTextColor || e.textColor};
1312
+ color: ${e.nodeTextColor || e.textColor};
1313
+ }
1314
+
1315
+ .node rect,
1316
+ .node circle,
1317
+ .node ellipse,
1318
+ .node polygon,
1319
+ .node path {
1320
+ fill: ${e.mainBkg};
1321
+ stroke: ${e.nodeBorder};
1322
+ stroke-width: 1px;
1323
+ }
1324
+ .flowchart-label text {
1325
+ text-anchor: middle;
1326
+ }
1327
+ // .flowchart-label .text-outer-tspan {
1328
+ // text-anchor: middle;
1329
+ // }
1330
+ // .flowchart-label .text-inner-tspan {
1331
+ // text-anchor: start;
1332
+ // }
1333
+
1334
+ .node .label {
1335
+ text-align: center;
1336
+ }
1337
+ .node.clickable {
1338
+ cursor: pointer;
1339
+ }
1340
+
1341
+ .arrowheadPath {
1342
+ fill: ${e.arrowheadColor};
1343
+ }
1344
+
1345
+ .edgePath .path {
1346
+ stroke: ${e.lineColor};
1347
+ stroke-width: 2.0px;
1348
+ }
1349
+
1350
+ .flowchart-link {
1351
+ stroke: ${e.lineColor};
1352
+ fill: none;
1353
+ }
1354
+
1355
+ .edgeLabel {
1356
+ background-color: ${e.edgeLabelBackground};
1357
+ /*
1358
+ * This is for backward compatibility with existing code that didn't
1359
+ * add a \`<p>\` around edge labels.
1360
+ *
1361
+ * TODO: We should probably remove this in a future release.
1362
+ */
1363
+ p {
1364
+ margin: 0;
1365
+ padding: 0;
1366
+ display: inline;
1367
+ }
1368
+ rect {
1369
+ opacity: 0.5;
1370
+ background-color: ${e.edgeLabelBackground};
1371
+ fill: ${e.edgeLabelBackground};
1372
+ }
1373
+ text-align: center;
1374
+ }
1375
+
1376
+ /* For html labels only */
1377
+ .labelBkg {
1378
+ background-color: ${e.edgeLabelBackground};
1379
+ }
1380
+
1381
+ .node .cluster {
1382
+ // fill: ${F(e.mainBkg, .5)};
1383
+ fill: ${F(e.clusterBkg, .5)};
1384
+ stroke: ${F(e.clusterBorder, .2)};
1385
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1386
+ stroke-width: 1px;
1387
+ }
1388
+
1389
+ .cluster text {
1390
+ fill: ${e.titleColor};
1391
+ }
1392
+
1393
+ .cluster span,p {
1394
+ color: ${e.titleColor};
1395
+ }
1396
+ /* .cluster div {
1397
+ color: ${e.titleColor};
1398
+ } */
1399
+
1400
+ div.mermaidTooltip {
1401
+ position: absolute;
1402
+ text-align: center;
1403
+ max-width: 200px;
1404
+ padding: 2px;
1405
+ font-family: ${e.fontFamily};
1406
+ font-size: 12px;
1407
+ background: ${e.tertiaryColor};
1408
+ border: 1px solid ${e.border2};
1409
+ border-radius: 2px;
1410
+ pointer-events: none;
1411
+ z-index: 100;
1412
+ }
1413
+
1414
+ .flowchartTitleText {
1415
+ text-anchor: middle;
1416
+ font-size: 18px;
1417
+ fill: ${e.textColor};
1418
+ }
1419
+ ${C()}
1420
+ `, "getStyles"), _e = /* @__PURE__ */ e((e, t, n, r) => {
1421
+ t.forEach((t) => {
1422
+ ve[t](e, n, r);
1423
+ });
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");
1427
+ }, "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");
1430
+ }, "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");
1433
+ }, "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");
1436
+ }, "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);
1439
+ }, "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");
1442
+ }, "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");
1445
+ }, "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");
1448
+ }, "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");
1451
+ }, "barb")
1452
+ }, ye = _e, I = c()?.block?.padding ?? 8;
1453
+ function L(e, t) {
1454
+ 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);
1456
+ return e < 0 ? {
1457
+ px: t,
1458
+ py: 0
1459
+ } : e === 1 ? {
1460
+ px: 0,
1461
+ py: t
1462
+ } : {
1463
+ px: t % e,
1464
+ py: Math.floor(t / e)
1465
+ };
1466
+ }
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 ?? {
1472
+ width: 0,
1473
+ height: 0,
1474
+ x: 0,
1475
+ y: 0
1476
+ };
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));
1478
+ }
1479
+ return {
1480
+ width: n,
1481
+ height: r
1482
+ };
1483
+ }, "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,
1488
+ x: 0,
1489
+ y: 0
1490
+ });
1491
+ let a = 0, o = 0;
1492
+ 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);
1508
+ }
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);
1516
+ }
1517
+ }
1518
+ e.size = {
1519
+ width: f,
1520
+ height: p,
1521
+ x: 0,
1522
+ y: 0
1523
+ };
1524
+ }
1525
+ t.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
1526
+ }
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;
1543
+ }
1544
+ }
1545
+ let s = /* @__PURE__ */ new Map();
1546
+ {
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;
1549
+ }
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}`);
1562
+ }
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);
1566
+ }
1567
+ }
1568
+ t.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1569
+ }
1570
+ e(z, "layoutBlocks");
1571
+ function B(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1572
+ minX: 0,
1573
+ minY: 0,
1574
+ maxX: 0,
1575
+ maxY: 0
1576
+ }) {
1577
+ 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);
1580
+ }
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
1586
+ }));
1587
+ return {
1588
+ minX: t,
1589
+ minY: n,
1590
+ maxX: r,
1591
+ maxY: i
1592
+ };
1593
+ }
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;
1600
+ return {
1601
+ x: r,
1602
+ y: i,
1603
+ width: a - r,
1604
+ height: s
1605
+ };
1606
+ }
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,
1616
+ markdown: !1,
1617
+ isNode: i,
1618
+ 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 = {
1623
+ arrow_cross: "cross",
1624
+ arrow_point: "point",
1625
+ arrow_barb: "barb",
1626
+ arrow_circle: "circle",
1627
+ aggregation: "aggregation",
1628
+ extension: "extension",
1629
+ composition: "composition",
1630
+ dependency: "dependency",
1631
+ 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}`);
1636
+ return;
1637
+ }
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,
1645
+ 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);
1654
+ } else {
1655
+ let e = f(s).select("text").node();
1656
+ e && typeof e.getBBox == "function" && (d = e.getBBox());
1657
+ }
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);
1667
+ }
1668
+ i.attr("transform", h(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startLeft = n, W(p, t.startLabelLeft);
1669
+ }
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);
1677
+ }
1678
+ i.attr("transform", h(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startRight = n, W(p, t.startLabelRight);
1679
+ }
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);
1687
+ }
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);
1689
+ }
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);
1697
+ }
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);
1699
+ }
1700
+ return s;
1701
+ }, "insertEdgeLabel");
1702
+ function W(e, t) {
1703
+ l(c()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1704
+ }
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());
1709
+ 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);
1714
+ }
1715
+ a.attr("transform", `translate(${o}, ${s + i / 2})`);
1716
+ }
1717
+ 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;
1722
+ }
1723
+ t.attr("transform", `translate(${n}, ${i})`);
1724
+ }
1725
+ 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;
1730
+ }
1731
+ t.attr("transform", `translate(${n}, ${i})`);
1732
+ }
1733
+ 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;
1738
+ }
1739
+ t.attr("transform", `translate(${n}, ${i})`);
1740
+ }
1741
+ 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;
1746
+ }
1747
+ t.attr("transform", `translate(${n}, ${i})`);
1748
+ }
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)}
1756
+ 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
1764
+ };
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;
1766
+ } 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
1775
+ };
1776
+ }
1777
+ }, "intersection"), ke = /* @__PURE__ */ e((e, n) => {
1778
+ t.debug("abc88 cutPathAtIntersect", e, n);
1779
+ let r = [], i = e[0], a = !1;
1780
+ 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) {
1798
+ case "normal":
1799
+ S = "edge-thickness-normal";
1800
+ break;
1801
+ case "thick":
1802
+ S = "edge-thickness-thick";
1803
+ break;
1804
+ case "invisible":
1805
+ S = "edge-thickness-thick";
1806
+ break;
1807
+ default: S = "";
1808
+ }
1809
+ switch (r.pattern) {
1810
+ case "solid":
1811
+ S += " edge-pattern-solid";
1812
+ break;
1813
+ case "dotted":
1814
+ S += " edge-pattern-dotted";
1815
+ break;
1816
+ case "dashed":
1817
+ S += " edge-pattern-dashed";
1818
+ break;
1819
+ }
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) {
1827
+ case "x":
1828
+ t.add("right"), t.add("left");
1829
+ break;
1830
+ case "y":
1831
+ t.add("up"), t.add("down");
1832
+ break;
1833
+ default:
1834
+ t.add(n);
1835
+ break;
1836
+ }
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") ? [
1841
+ {
1842
+ x: 0,
1843
+ y: 0
1844
+ },
1845
+ {
1846
+ x: a,
1847
+ y: 0
1848
+ },
1849
+ {
1850
+ x: o / 2,
1851
+ y: 2 * s
1852
+ },
1853
+ {
1854
+ x: o - a,
1855
+ y: 0
1856
+ },
1857
+ {
1858
+ x: o,
1859
+ y: 0
1860
+ },
1861
+ {
1862
+ x: o,
1863
+ y: -i / 3
1864
+ },
1865
+ {
1866
+ x: o + 2 * s,
1867
+ y: -i / 2
1868
+ },
1869
+ {
1870
+ x: o,
1871
+ y: -2 * i / 3
1872
+ },
1873
+ {
1874
+ x: o,
1875
+ y: -i
1876
+ },
1877
+ {
1878
+ x: o - a,
1879
+ y: -i
1880
+ },
1881
+ {
1882
+ x: o / 2,
1883
+ y: -i - 2 * s
1884
+ },
1885
+ {
1886
+ x: a,
1887
+ y: -i
1888
+ },
1889
+ {
1890
+ x: 0,
1891
+ y: -i
1892
+ },
1893
+ {
1894
+ x: 0,
1895
+ y: -2 * i / 3
1896
+ },
1897
+ {
1898
+ x: -2 * s,
1899
+ y: -i / 2
1900
+ },
1901
+ {
1902
+ x: 0,
1903
+ y: -i / 3
1904
+ }
1905
+ ] : r.has("right") && r.has("left") && r.has("up") ? [
1906
+ {
1907
+ x: a,
1908
+ y: 0
1909
+ },
1910
+ {
1911
+ x: o - a,
1912
+ y: 0
1913
+ },
1914
+ {
1915
+ x: o,
1916
+ y: -i / 2
1917
+ },
1918
+ {
1919
+ x: o - a,
1920
+ y: -i
1921
+ },
1922
+ {
1923
+ x: a,
1924
+ y: -i
1925
+ },
1926
+ {
1927
+ x: 0,
1928
+ y: -i / 2
1929
+ }
1930
+ ] : r.has("right") && r.has("left") && r.has("down") ? [
1931
+ {
1932
+ x: 0,
1933
+ y: 0
1934
+ },
1935
+ {
1936
+ x: a,
1937
+ y: -i
1938
+ },
1939
+ {
1940
+ x: o - a,
1941
+ y: -i
1942
+ },
1943
+ {
1944
+ x: o,
1945
+ y: 0
1946
+ }
1947
+ ] : r.has("right") && r.has("up") && r.has("down") ? [
1948
+ {
1949
+ x: 0,
1950
+ y: 0
1951
+ },
1952
+ {
1953
+ x: o,
1954
+ y: -a
1955
+ },
1956
+ {
1957
+ x: o,
1958
+ y: -i + a
1959
+ },
1960
+ {
1961
+ x: 0,
1962
+ y: -i
1963
+ }
1964
+ ] : r.has("left") && r.has("up") && r.has("down") ? [
1965
+ {
1966
+ x: o,
1967
+ y: 0
1968
+ },
1969
+ {
1970
+ x: 0,
1971
+ y: -a
1972
+ },
1973
+ {
1974
+ x: 0,
1975
+ y: -i + a
1976
+ },
1977
+ {
1978
+ x: o,
1979
+ y: -i
1980
+ }
1981
+ ] : r.has("right") && r.has("left") ? [
1982
+ {
1983
+ x: a,
1984
+ y: 0
1985
+ },
1986
+ {
1987
+ x: a,
1988
+ y: -s
1989
+ },
1990
+ {
1991
+ x: o - a,
1992
+ y: -s
1993
+ },
1994
+ {
1995
+ x: o - a,
1996
+ y: 0
1997
+ },
1998
+ {
1999
+ x: o,
2000
+ y: -i / 2
2001
+ },
2002
+ {
2003
+ x: o - a,
2004
+ y: -i
2005
+ },
2006
+ {
2007
+ x: o - a,
2008
+ y: -i + s
2009
+ },
2010
+ {
2011
+ x: a,
2012
+ y: -i + s
2013
+ },
2014
+ {
2015
+ x: a,
2016
+ y: -i
2017
+ },
2018
+ {
2019
+ x: 0,
2020
+ y: -i / 2
2021
+ }
2022
+ ] : r.has("up") && r.has("down") ? [
2023
+ {
2024
+ x: o / 2,
2025
+ y: 0
2026
+ },
2027
+ {
2028
+ x: 0,
2029
+ y: -s
2030
+ },
2031
+ {
2032
+ x: a,
2033
+ y: -s
2034
+ },
2035
+ {
2036
+ x: a,
2037
+ y: -i + s
2038
+ },
2039
+ {
2040
+ x: 0,
2041
+ y: -i + s
2042
+ },
2043
+ {
2044
+ x: o / 2,
2045
+ y: -i
2046
+ },
2047
+ {
2048
+ x: o,
2049
+ y: -i + s
2050
+ },
2051
+ {
2052
+ x: o - a,
2053
+ y: -i + s
2054
+ },
2055
+ {
2056
+ x: o - a,
2057
+ y: -s
2058
+ },
2059
+ {
2060
+ x: o,
2061
+ y: -s
2062
+ }
2063
+ ] : r.has("right") && r.has("up") ? [
2064
+ {
2065
+ x: 0,
2066
+ y: 0
2067
+ },
2068
+ {
2069
+ x: o,
2070
+ y: -a
2071
+ },
2072
+ {
2073
+ x: 0,
2074
+ y: -i
2075
+ }
2076
+ ] : r.has("right") && r.has("down") ? [
2077
+ {
2078
+ x: 0,
2079
+ y: 0
2080
+ },
2081
+ {
2082
+ x: o,
2083
+ y: 0
2084
+ },
2085
+ {
2086
+ x: 0,
2087
+ y: -i
2088
+ }
2089
+ ] : r.has("left") && r.has("up") ? [
2090
+ {
2091
+ x: o,
2092
+ y: 0
2093
+ },
2094
+ {
2095
+ x: 0,
2096
+ y: -a
2097
+ },
2098
+ {
2099
+ x: o,
2100
+ y: -i
2101
+ }
2102
+ ] : r.has("left") && r.has("down") ? [
2103
+ {
2104
+ x: o,
2105
+ y: 0
2106
+ },
2107
+ {
2108
+ x: 0,
2109
+ y: 0
2110
+ },
2111
+ {
2112
+ x: o,
2113
+ y: -i
2114
+ }
2115
+ ] : r.has("right") ? [
2116
+ {
2117
+ x: a,
2118
+ y: -s
2119
+ },
2120
+ {
2121
+ x: a,
2122
+ y: -s
2123
+ },
2124
+ {
2125
+ x: o - a,
2126
+ y: -s
2127
+ },
2128
+ {
2129
+ x: o - a,
2130
+ y: 0
2131
+ },
2132
+ {
2133
+ x: o,
2134
+ y: -i / 2
2135
+ },
2136
+ {
2137
+ x: o - a,
2138
+ y: -i
2139
+ },
2140
+ {
2141
+ x: o - a,
2142
+ y: -i + s
2143
+ },
2144
+ {
2145
+ x: a,
2146
+ y: -i + s
2147
+ },
2148
+ {
2149
+ x: a,
2150
+ y: -i + s
2151
+ }
2152
+ ] : r.has("left") ? [
2153
+ {
2154
+ x: a,
2155
+ y: 0
2156
+ },
2157
+ {
2158
+ x: a,
2159
+ y: -s
2160
+ },
2161
+ {
2162
+ x: o - a,
2163
+ y: -s
2164
+ },
2165
+ {
2166
+ x: o - a,
2167
+ y: -i + s
2168
+ },
2169
+ {
2170
+ x: a,
2171
+ y: -i + s
2172
+ },
2173
+ {
2174
+ x: a,
2175
+ y: -i
2176
+ },
2177
+ {
2178
+ x: 0,
2179
+ y: -i / 2
2180
+ }
2181
+ ] : r.has("up") ? [
2182
+ {
2183
+ x: a,
2184
+ y: -s
2185
+ },
2186
+ {
2187
+ x: a,
2188
+ y: -i + s
2189
+ },
2190
+ {
2191
+ x: 0,
2192
+ y: -i + s
2193
+ },
2194
+ {
2195
+ x: o / 2,
2196
+ y: -i
2197
+ },
2198
+ {
2199
+ x: o,
2200
+ y: -i + s
2201
+ },
2202
+ {
2203
+ x: o - a,
2204
+ y: -i + s
2205
+ },
2206
+ {
2207
+ x: o - a,
2208
+ y: -s
2209
+ }
2210
+ ] : r.has("down") ? [
2211
+ {
2212
+ x: o / 2,
2213
+ y: 0
2214
+ },
2215
+ {
2216
+ x: 0,
2217
+ y: -s
2218
+ },
2219
+ {
2220
+ x: a,
2221
+ y: -s
2222
+ },
2223
+ {
2224
+ x: a,
2225
+ y: -i + s
2226
+ },
2227
+ {
2228
+ x: o - a,
2229
+ y: -i + s
2230
+ },
2231
+ {
2232
+ x: o - a,
2233
+ y: -s
2234
+ },
2235
+ {
2236
+ x: o,
2237
+ y: -s
2238
+ }
2239
+ ] : [{
2240
+ x: 0,
2241
+ y: 0
2242
+ }];
2243
+ }, "getArrowPoints");
2244
+ function Ne(e, t) {
2245
+ return e.intersect(t);
2246
+ }
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
2256
+ };
2257
+ }
2258
+ e(Fe, "intersectEllipse");
2259
+ var Ie = Fe;
2260
+ function Le(e, t, n) {
2261
+ return Ie(e, t, t, n);
2262
+ }
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
2270
+ };
2271
+ }
2272
+ e(ze, "intersectLine");
2273
+ function G(e, t) {
2274
+ return e * t > 0;
2275
+ }
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
2287
+ }, {
2288
+ x: c + f.x,
2289
+ y: l + f.y
2290
+ });
2291
+ p && a.push(p);
2292
+ }
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;
2297
+ }
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
2309
+ };
2310
+ }, "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,
2320
+ 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);
2326
+ }
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
2332
+ };
2333
+ }, "labelHelper"), J = /* @__PURE__ */ e((e, t) => {
2334
+ let n = t.node().getBBox();
2335
+ e.width = n.width, e.height = n.height;
2336
+ }, "updateNodeBounds");
2337
+ function Y(e, t, n, r) {
2338
+ return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
2339
+ return e.x + "," + e.y;
2340
+ }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
2341
+ }
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,
2355
+ y: 0
2356
+ },
2357
+ {
2358
+ x: a,
2359
+ y: -a / 2
2360
+ },
2361
+ {
2362
+ x: a / 2,
2363
+ y: -a
2364
+ },
2365
+ {
2366
+ x: 0,
2367
+ y: -a / 2
2368
+ }
2369
+ ];
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", [
2378
+ {
2379
+ x: 0,
2380
+ y: 28 / 2
2381
+ },
2382
+ {
2383
+ x: 28 / 2,
2384
+ y: 0
2385
+ },
2386
+ {
2387
+ x: 0,
2388
+ y: -28 / 2
2389
+ },
2390
+ {
2391
+ x: -28 / 2,
2392
+ y: 0
2393
+ }
2394
+ ].map(function(e) {
2395
+ 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 = [
2401
+ {
2402
+ x: a,
2403
+ y: 0
2404
+ },
2405
+ {
2406
+ x: o - a,
2407
+ y: 0
2408
+ },
2409
+ {
2410
+ x: o,
2411
+ y: -i / 2
2412
+ },
2413
+ {
2414
+ x: o - a,
2415
+ y: -i
2416
+ },
2417
+ {
2418
+ x: a,
2419
+ y: -i
2420
+ },
2421
+ {
2422
+ x: 0,
2423
+ y: -i / 2
2424
+ }
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,
2438
+ y: 0
2439
+ },
2440
+ {
2441
+ x: i,
2442
+ y: 0
2443
+ },
2444
+ {
2445
+ x: i,
2446
+ y: -a
2447
+ },
2448
+ {
2449
+ x: -a / 2,
2450
+ y: -a
2451
+ },
2452
+ {
2453
+ x: 0,
2454
+ y: -a / 2
2455
+ }
2456
+ ];
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 = [
2462
+ {
2463
+ x: -2 * a / 6,
2464
+ y: 0
2465
+ },
2466
+ {
2467
+ x: i - a / 6,
2468
+ y: 0
2469
+ },
2470
+ {
2471
+ x: i + 2 * a / 6,
2472
+ y: -a
2473
+ },
2474
+ {
2475
+ x: a / 6,
2476
+ y: -a
2477
+ }
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,
2486
+ y: 0
2487
+ },
2488
+ {
2489
+ x: i + a / 6,
2490
+ y: 0
2491
+ },
2492
+ {
2493
+ x: i - 2 * a / 6,
2494
+ y: -a
2495
+ },
2496
+ {
2497
+ x: -a / 6,
2498
+ y: -a
2499
+ }
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,
2508
+ y: 0
2509
+ },
2510
+ {
2511
+ x: i + 2 * a / 6,
2512
+ y: 0
2513
+ },
2514
+ {
2515
+ x: i - a / 6,
2516
+ y: -a
2517
+ },
2518
+ {
2519
+ x: a / 6,
2520
+ y: -a
2521
+ }
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,
2530
+ y: 0
2531
+ },
2532
+ {
2533
+ x: i - a / 6,
2534
+ y: 0
2535
+ },
2536
+ {
2537
+ x: i + 2 * a / 6,
2538
+ y: -a
2539
+ },
2540
+ {
2541
+ x: -2 * a / 6,
2542
+ y: -a
2543
+ }
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 = [
2550
+ {
2551
+ x: 0,
2552
+ y: 0
2553
+ },
2554
+ {
2555
+ x: i + a / 2,
2556
+ y: 0
2557
+ },
2558
+ {
2559
+ x: i,
2560
+ y: -a / 2
2561
+ },
2562
+ {
2563
+ x: i + a / 2,
2564
+ y: -a
2565
+ },
2566
+ {
2567
+ x: 0,
2568
+ y: -a
2569
+ }
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;
2581
+ }
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}`);
2590
+ });
2591
+ }
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}`);
2601
+ });
2602
+ }
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}`);
2614
+ });
2615
+ }
2616
+ return J(n, i), n.intersect = function(e) {
2617
+ return K.rect(n, e);
2618
+ }, r;
2619
+ }, "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);
2625
+ }, "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(" "));
2627
+ }
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 = {
2635
+ width: 0,
2636
+ height: 0
2637
+ };
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);
2641
+ }
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);
2647
+ }
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 = [
2669
+ {
2670
+ x: 0,
2671
+ y: 0
2672
+ },
2673
+ {
2674
+ x: i,
2675
+ y: 0
2676
+ },
2677
+ {
2678
+ x: i,
2679
+ y: -a
2680
+ },
2681
+ {
2682
+ x: 0,
2683
+ y: -a
2684
+ },
2685
+ {
2686
+ x: 0,
2687
+ y: 0
2688
+ },
2689
+ {
2690
+ x: -8,
2691
+ y: 0
2692
+ },
2693
+ {
2694
+ x: i + 8,
2695
+ y: 0
2696
+ },
2697
+ {
2698
+ x: i + 8,
2699
+ y: -a
2700
+ },
2701
+ {
2702
+ x: -8,
2703
+ y: -a
2704
+ },
2705
+ {
2706
+ x: -8,
2707
+ y: 0
2708
+ }
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;
2749
+ }, "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);
2761
+ }
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);
2771
+ }
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);
2781
+ }
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);
2792
+ }
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;
2797
+ }
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;
2810
+ }, "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;
2823
+ }, "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) {
2829
+ case "round":
2830
+ a = 5, o = "rect";
2831
+ break;
2832
+ case "composite":
2833
+ a = 0, o = "composite", c = 0;
2834
+ break;
2835
+ case "square":
2836
+ o = "rect";
2837
+ break;
2838
+ case "diamond":
2839
+ o = "question";
2840
+ break;
2841
+ case "hexagon":
2842
+ o = "hexagon";
2843
+ break;
2844
+ case "block_arrow":
2845
+ o = "block_arrow";
2846
+ break;
2847
+ case "odd":
2848
+ o = "rect_left_inv_arrow";
2849
+ break;
2850
+ case "lean_right":
2851
+ o = "lean_right";
2852
+ break;
2853
+ case "lean_left":
2854
+ o = "lean_left";
2855
+ break;
2856
+ case "trapezoid":
2857
+ o = "trapezoid";
2858
+ break;
2859
+ case "inv_trapezoid":
2860
+ o = "inv_trapezoid";
2861
+ break;
2862
+ case "rect_left_inv_arrow":
2863
+ o = "rect_left_inv_arrow";
2864
+ break;
2865
+ case "circle":
2866
+ o = "circle";
2867
+ break;
2868
+ case "ellipse":
2869
+ o = "ellipse";
2870
+ break;
2871
+ case "stadium":
2872
+ o = "stadium";
2873
+ break;
2874
+ case "subroutine":
2875
+ o = "subroutine";
2876
+ break;
2877
+ case "cylinder":
2878
+ o = "cylinder";
2879
+ break;
2880
+ case "group":
2881
+ o = "rect";
2882
+ break;
2883
+ case "doublecircle":
2884
+ o = "doublecircle";
2885
+ break;
2886
+ default: o = "rect";
2887
+ }
2888
+ let l = v(r?.styles ?? []), u = r.label, d = r.size ?? {
2889
+ width: 0,
2890
+ height: 0,
2891
+ x: 0,
2892
+ y: 0
2893
+ }, f = t.getDiagramId();
2894
+ 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,
2910
+ intersect: void 0,
2911
+ type: r.type,
2912
+ padding: c ?? s()?.block?.padding ?? 0
2913
+ };
2914
+ }
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,
2923
+ x: 0,
2924
+ y: 0,
2925
+ node: i
2926
+ }, n.setBlock(o), i.remove();
2927
+ }
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));
2932
+ }
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);
2936
+ }
2937
+ e($, "performOperations");
2938
+ async function vt(e, t, n) {
2939
+ await $(e, t, n, gt);
2940
+ }
2941
+ e(vt, "calculateBlockSizes");
2942
+ async function yt(e, t, n) {
2943
+ await $(e, t, n, _t);
2944
+ }
2945
+ e(yt, "insertBlocks");
2946
+ async function bt(e, t, n, r, i) {
2947
+ let a = new T({
2948
+ multigraph: !0,
2949
+ compound: !0
2950
+ });
2951
+ a.setGraph({
2952
+ rankdir: "TB",
2953
+ nodesep: 10,
2954
+ ranksep: 10,
2955
+ marginx: 8,
2956
+ marginy: 8
2957
+ });
2958
+ for (let e of n) e.size && a.setNode(e.id, {
2959
+ width: e.size.width,
2960
+ height: e.size.height,
2961
+ intersect: e.intersect
2962
+ });
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 = [
2967
+ {
2968
+ x: r.x,
2969
+ y: r.y
2970
+ },
2971
+ {
2972
+ x: r.x + (s.x - r.x) / 2,
2973
+ y: r.y + (s.y - r.y) / 2
2974
+ },
2975
+ {
2976
+ x: s.x,
2977
+ y: s.y
2978
+ }
2979
+ ], l = i ? `${i}-${n.id}` : n.id;
2980
+ Ae(e, {
2981
+ v: n.start,
2982
+ w: n.end,
2983
+ name: l
2984
+ }, {
2985
+ ...n,
2986
+ id: l,
2987
+ arrowTypeEnd: n.arrowTypeEnd,
2988
+ arrowTypeStart: n.arrowTypeStart,
2989
+ points: c,
2990
+ 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,
2994
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2995
+ arrowTypeEnd: n.arrowTypeEnd,
2996
+ arrowTypeStart: n.arrowTypeStart,
2997
+ points: c,
2998
+ 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 }));
3004
+ }
3005
+ }
3006
+ }
3007
+ e(bt, "insertEdges");
3008
+ var xt = {
3009
+ parser: D,
3010
+ db: he,
3011
+ 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, [
3019
+ "point",
3020
+ "circle",
3021
+ "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}`);
3029
+ }
3030
+ }, "draw"),
3031
+ getClasses: /* @__PURE__ */ e(function(e, t) {
3032
+ return t.db.getClasses();
3033
+ }, "getClasses")
3034
+ },
3035
+ styles: ge
3036
+ };
3037
+ //#endregion
3038
+ export { xt as diagram };