@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,3640 @@
1
+ import { __name as e, log as t } from "./chunk-AGHRB4JF.js";
2
+ import { evaluate as n, getConfig as r, getConfig2 as i, getEffectiveHtmlLabels as a, hasKatex as o, parseGenericTypes as s, sanitizeText as c, sanitizeText3 as l } from "./chunk-ICPOFSXX.js";
3
+ import u from "../../../../d3-selection/src/select.js";
4
+ import "../../../../d3/src/index.js";
5
+ import { calculateTextWidth as d, decodeEntities as f, handleUndefinedAttr as p } from "./chunk-5PVQY5BW.js";
6
+ import { configureLabelImages as m, getSubGraphTitleMargins as h } from "./chunk-ZZ45TVLE.js";
7
+ import { compileStyles as g, solidStateFill as _, styles2String as v, userNodeOverrides as y } from "./chunk-X2U36JSP.js";
8
+ import { createText as b, getIconSVG as x } from "./chunk-U2HBQHQK.js";
9
+ import { at as S } from "../../../../roughjs/bundled/rough.esm.js";
10
+ //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.mjs
11
+ var C = /* @__PURE__ */ e(async (e, t, r) => {
12
+ let a, o = t.useHtmlLabels || n(i()?.htmlLabels);
13
+ a = r || "node default";
14
+ let s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = s.insert("g").attr("class", "label").attr("style", p(t.labelStyle)), d;
15
+ d = t.label === void 0 ? "" : typeof t.label == "string" ? t.label : t.label[0];
16
+ let h = !!t.icon || !!t.img, g = t.labelType === "markdown", _ = await b(l, c(f(d), i()), {
17
+ useHtmlLabels: o,
18
+ width: t.width || i().flowchart?.wrappingWidth,
19
+ classes: g ? "markdown-node-label" : "",
20
+ style: t.labelStyle,
21
+ addSvgBackground: h,
22
+ markdown: g
23
+ }, i()), v = _.getBBox(), y = (t?.padding ?? 0) / 2;
24
+ if (o) {
25
+ let e = _.children[0], t = u(_);
26
+ await m(e, d), v = e.getBoundingClientRect(), t.attr("width", v.width), t.attr("height", v.height);
27
+ }
28
+ return o ? l.attr("transform", "translate(" + -v.width / 2 + ", " + -v.height / 2 + ")") : l.attr("transform", "translate(0, " + -v.height / 2 + ")"), t.centerLabel && l.attr("transform", "translate(" + -v.width / 2 + ", " + -v.height / 2 + ")"), l.insert("rect", ":first-child"), {
29
+ shapeSvg: s,
30
+ bbox: v,
31
+ halfPadding: y,
32
+ label: l
33
+ };
34
+ }, "labelHelper"), w = /* @__PURE__ */ e(async (e, t, n) => {
35
+ let r = n.useHtmlLabels ?? a(i()), o = e.insert("g").attr("class", "label").attr("style", n.labelStyle || ""), s = await b(o, c(f(t), i()), {
36
+ useHtmlLabels: r,
37
+ width: n.width || i()?.flowchart?.wrappingWidth,
38
+ style: n.labelStyle,
39
+ addSvgBackground: !!n.icon || !!n.img
40
+ }), l = s.getBBox(), d = n.padding / 2;
41
+ if (a(i())) {
42
+ let e = s.children[0], t = u(s);
43
+ l = e.getBoundingClientRect(), t.attr("width", l.width), t.attr("height", l.height);
44
+ }
45
+ return r ? o.attr("transform", "translate(" + -l.width / 2 + ", " + -l.height / 2 + ")") : o.attr("transform", "translate(0, " + -l.height / 2 + ")"), n.centerLabel && o.attr("transform", "translate(" + -l.width / 2 + ", " + -l.height / 2 + ")"), o.insert("rect", ":first-child"), {
46
+ shapeSvg: e,
47
+ bbox: l,
48
+ halfPadding: d,
49
+ label: o
50
+ };
51
+ }, "insertLabel"), T = /* @__PURE__ */ e((e, t) => {
52
+ let n = t.node().getBBox();
53
+ e.width = n.width, e.height = n.height;
54
+ }, "updateNodeBounds"), E = /* @__PURE__ */ e((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
55
+ function D(e) {
56
+ let t = e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`);
57
+ return t.push("Z"), t.join(" ");
58
+ }
59
+ e(D, "createPathFromPoints");
60
+ function O(e, t, n, r, i, a) {
61
+ let o = [], s = n - e, c = r - t, l = s / a, u = 2 * Math.PI / l, d = t + c / 2;
62
+ for (let t = 0; t <= 50; t++) {
63
+ let n = e + t / 50 * s, r = d + i * Math.sin(u * (n - e));
64
+ o.push({
65
+ x: n,
66
+ y: r
67
+ });
68
+ }
69
+ return o;
70
+ }
71
+ e(O, "generateFullSineWavePoints");
72
+ function k(e, t, n, r, i, a) {
73
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
74
+ for (let i = 0; i < r; i++) {
75
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
76
+ o.push({
77
+ x: -a,
78
+ y: -l
79
+ });
80
+ }
81
+ return o;
82
+ }
83
+ e(k, "generateCirclePoints");
84
+ function A(t) {
85
+ let n = Array.from(t.childNodes).filter((e) => e.tagName === "path"), r = document.createElementNS("http://www.w3.org/2000/svg", "path"), i = n.map((e) => e.getAttribute("d")).filter((e) => e !== null).join(" ");
86
+ r.setAttribute("d", i);
87
+ let a = n.find((e) => e.getAttribute("fill") !== "none"), o = n.find((e) => e.getAttribute("stroke") !== "none"), s = /* @__PURE__ */ e((e, t) => e?.getAttribute(t) ?? void 0, "getAttr");
88
+ if (a) {
89
+ let e = {
90
+ fill: s(a, "fill"),
91
+ "fill-opacity": s(a, "fill-opacity") ?? "1"
92
+ };
93
+ Object.entries(e).forEach(([e, t]) => {
94
+ t && r.setAttribute(e, t);
95
+ });
96
+ }
97
+ if (o) {
98
+ let e = {
99
+ stroke: s(o, "stroke"),
100
+ "stroke-width": s(o, "stroke-width") ?? "1",
101
+ "stroke-opacity": s(o, "stroke-opacity") ?? "1"
102
+ };
103
+ Object.entries(e).forEach(([e, t]) => {
104
+ t && r.setAttribute(e, t);
105
+ });
106
+ }
107
+ let c = document.createElementNS("http://www.w3.org/2000/svg", "g");
108
+ return c.appendChild(r), c;
109
+ }
110
+ e(A, "mergePaths");
111
+ var j = /* @__PURE__ */ e((e, t) => {
112
+ 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;
113
+ 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), {
114
+ x: n + c,
115
+ y: r + l
116
+ };
117
+ }, "intersectRect"), M = /* @__PURE__ */ e(async (e, t, n, r = !1, o = !1) => {
118
+ let s = t || "";
119
+ typeof s == "object" && (s = s[0]);
120
+ let c = i(), l = a(c);
121
+ return await b(e, s, {
122
+ style: n,
123
+ isTitle: r,
124
+ useHtmlLabels: l,
125
+ markdown: !1,
126
+ isNode: o,
127
+ width: Infinity
128
+ }, c);
129
+ }, "createLabel"), N = /* @__PURE__ */ e((e, t, n, r, i) => [
130
+ "M",
131
+ e + i,
132
+ t,
133
+ "H",
134
+ e + n - i,
135
+ "A",
136
+ i,
137
+ i,
138
+ 0,
139
+ 0,
140
+ 1,
141
+ e + n,
142
+ t + i,
143
+ "V",
144
+ t + r - i,
145
+ "A",
146
+ i,
147
+ i,
148
+ 0,
149
+ 0,
150
+ 1,
151
+ e + n - i,
152
+ t + r,
153
+ "H",
154
+ e + i,
155
+ "A",
156
+ i,
157
+ i,
158
+ 0,
159
+ 0,
160
+ 1,
161
+ e,
162
+ t + r - i,
163
+ "V",
164
+ t + i,
165
+ "A",
166
+ i,
167
+ i,
168
+ 0,
169
+ 0,
170
+ 1,
171
+ e + i,
172
+ t,
173
+ "Z"
174
+ ].join(" "), "createRoundedRectPathD"), P = /* @__PURE__ */ e(async (e, n) => {
175
+ t.info("Creating subgraph rect for ", n.id, n);
176
+ let r = i(), { themeVariables: o, handDrawnSeed: s } = r, { clusterBkg: c, clusterBorder: l } = o, { labelStyles: d, nodeStyles: f, borderStyles: p, backgroundStyles: m } = v(n), g = e.insert("g").attr("class", "cluster " + n.cssClasses).attr("id", n.domId).attr("data-look", n.look), _ = a(r), x = g.insert("g").attr("class", "cluster-label "), C;
177
+ C = n.labelType === "markdown" ? await b(x, n.label, {
178
+ style: n.labelStyle,
179
+ useHtmlLabels: _,
180
+ isNode: !0,
181
+ width: n.width
182
+ }) : await M(x, n.label, n.labelStyle || "", !1, !0);
183
+ let w = C.getBBox();
184
+ if (a(r)) {
185
+ let e = C.children[0], t = u(C);
186
+ w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
187
+ }
188
+ let T = n.width <= w.width + n.padding ? w.width + n.padding : n.width;
189
+ n.width <= w.width + n.padding ? n.diff = (T - n.width) / 2 - n.padding : n.diff = -n.padding;
190
+ let E = n.height, D = n.x - T / 2, O = n.y - E / 2;
191
+ t.trace("Data ", n, JSON.stringify(n));
192
+ let k;
193
+ if (n.look === "handDrawn") {
194
+ let e = S.svg(g), r = y(n, {
195
+ roughness: .7,
196
+ fill: c,
197
+ stroke: l,
198
+ fillWeight: 3,
199
+ seed: s
200
+ }), i = e.path(N(D, O, T, E, 0), r);
201
+ k = g.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child"), k.select("path:nth-child(2)").attr("style", p.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
202
+ } else k = g.insert("rect", ":first-child"), k.attr("style", f).attr("rx", n.rx).attr("ry", n.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
203
+ let { subGraphTitleTopMargin: A } = h(r);
204
+ if (x.attr("transform", `translate(${n.x - w.width / 2}, ${n.y - n.height / 2 + A})`), d) {
205
+ let e = x.select("span");
206
+ e && e.attr("style", d);
207
+ }
208
+ let P = k.node().getBBox();
209
+ return n.offsetX = 0, n.width = P.width, n.height = P.height, n.offsetY = w.height - n.padding / 2, n.intersect = function(e) {
210
+ return j(n, e);
211
+ }, {
212
+ cluster: g,
213
+ labelBBox: w
214
+ };
215
+ }, "rect"), F = {
216
+ rect: P,
217
+ squareRect: P,
218
+ roundedWithTitle: /* @__PURE__ */ e(async (e, t) => {
219
+ let n = i(), { themeVariables: r, handDrawnSeed: o } = n, { altBackground: s, compositeBackground: c, compositeTitleBackground: l, nodeBorder: d } = r, f = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look), p = f.insert("g", ":first-child"), m = f.insert("g").attr("class", "cluster-label"), h = f.append("rect"), g = await M(m, t.label, t.labelStyle, void 0, !0), _ = g.getBBox();
220
+ if (a(n)) {
221
+ let e = g.children[0], t = u(g);
222
+ _ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
223
+ }
224
+ let v = 0 * t.padding, y = v / 2, b = (t.width <= _.width + t.padding ? _.width + t.padding : t.width) + v;
225
+ t.width <= _.width + t.padding ? t.diff = (b - t.width) / 2 - t.padding : t.diff = -t.padding;
226
+ let x = t.height + v, C = t.height + v - _.height - 6, w = t.x - b / 2, T = t.y - x / 2;
227
+ t.width = b;
228
+ let E = t.y - t.height / 2 - y + _.height + 2, D;
229
+ if (t.look === "handDrawn") {
230
+ let e = t.cssClasses.includes("statediagram-cluster-alt"), n = S.svg(f), r = t.rx || t.ry ? n.path(N(w, T, b, x, 10), {
231
+ roughness: .7,
232
+ fill: l,
233
+ fillStyle: "solid",
234
+ stroke: d,
235
+ seed: o
236
+ }) : n.rectangle(w, T, b, x, { seed: o });
237
+ D = f.insert(() => r, ":first-child");
238
+ let i = n.rectangle(w, E, b, C, {
239
+ fill: e ? s : c,
240
+ fillStyle: e ? "hachure" : "solid",
241
+ stroke: d,
242
+ seed: o
243
+ });
244
+ D = f.insert(() => r, ":first-child"), h = f.insert(() => i);
245
+ } else D = p.insert("rect", ":first-child"), D.attr("class", "outer").attr("x", w).attr("y", T).attr("width", b).attr("height", x).attr("data-look", t.look), h.attr("class", "inner").attr("x", w).attr("y", E).attr("width", b).attr("height", C);
246
+ return m.attr("transform", `translate(${t.x - _.width / 2}, ${T + 1 - (a(n) ? 0 : 3)})`), t.height = D.node().getBBox().height, t.offsetX = 0, t.offsetY = _.height - t.padding / 2, t.labelBBox = _, t.intersect = function(e) {
247
+ return j(t, e);
248
+ }, {
249
+ cluster: f,
250
+ labelBBox: _
251
+ };
252
+ }, "roundedWithTitle"),
253
+ noteGroup: /* @__PURE__ */ e((e, t) => {
254
+ let n = e.insert("g").attr("class", "note-cluster").attr("id", t.domId), r = n.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
255
+ r.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2 - a).attr("width", t.width + i).attr("height", t.height + i).attr("fill", "none");
256
+ let o = r.node().getBBox();
257
+ return t.width = o.width, t.height = o.height, t.intersect = function(e) {
258
+ return j(t, e);
259
+ }, {
260
+ cluster: n,
261
+ labelBBox: {
262
+ width: 0,
263
+ height: 0
264
+ }
265
+ };
266
+ }, "noteGroup"),
267
+ divider: /* @__PURE__ */ e((e, t) => {
268
+ let { themeVariables: n, handDrawnSeed: r } = i(), { nodeBorder: a } = n, o = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look), s = o.insert("g", ":first-child"), c = 0 * t.padding, l = t.width + c;
269
+ t.diff = -t.padding;
270
+ let u = t.height + c, d = t.x - l / 2, f = t.y - u / 2;
271
+ t.width = l;
272
+ let p;
273
+ if (t.look === "handDrawn") {
274
+ let e = S.svg(o).rectangle(d, f, l, u, {
275
+ fill: "lightgrey",
276
+ roughness: .5,
277
+ strokeLineDash: [5],
278
+ stroke: a,
279
+ seed: r
280
+ });
281
+ p = o.insert(() => e, ":first-child");
282
+ } else {
283
+ p = s.insert("rect", ":first-child");
284
+ let e = "outer";
285
+ e = (t.look, "divider"), p.attr("class", e).attr("x", d).attr("y", f).attr("width", l).attr("height", u).attr("data-look", t.look);
286
+ }
287
+ return t.height = p.node().getBBox().height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(e) {
288
+ return j(t, e);
289
+ }, {
290
+ cluster: o,
291
+ labelBBox: {}
292
+ };
293
+ }, "divider"),
294
+ kanbanSection: /* @__PURE__ */ e(async (e, n) => {
295
+ t.info("Creating subgraph rect for ", n.id, n);
296
+ let r = i(), { themeVariables: o, handDrawnSeed: s } = r, { clusterBkg: c, clusterBorder: l } = o, { labelStyles: d, nodeStyles: f, borderStyles: p, backgroundStyles: m } = v(n), g = e.insert("g").attr("class", "cluster " + n.cssClasses).attr("id", n.domId).attr("data-look", n.look), _ = a(r), x = g.insert("g").attr("class", "cluster-label "), C = await b(x, n.label, {
297
+ style: n.labelStyle,
298
+ useHtmlLabels: _,
299
+ isNode: !0,
300
+ width: n.width
301
+ }), w = C.getBBox();
302
+ if (a(r)) {
303
+ let e = C.children[0], t = u(C);
304
+ w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
305
+ }
306
+ let T = n.width <= w.width + n.padding ? w.width + n.padding : n.width;
307
+ n.width <= w.width + n.padding ? n.diff = (T - n.width) / 2 - n.padding : n.diff = -n.padding;
308
+ let E = n.height, D = n.x - T / 2, O = n.y - E / 2;
309
+ t.trace("Data ", n, JSON.stringify(n));
310
+ let k;
311
+ if (n.look === "handDrawn") {
312
+ let e = S.svg(g), r = y(n, {
313
+ roughness: .7,
314
+ fill: c,
315
+ stroke: l,
316
+ fillWeight: 4,
317
+ seed: s
318
+ }), i = e.path(N(D, O, T, E, n.rx), r);
319
+ k = g.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child"), k.select("path:nth-child(2)").attr("style", p.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
320
+ } else k = g.insert("rect", ":first-child"), k.attr("style", f).attr("rx", n.rx).attr("ry", n.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
321
+ let { subGraphTitleTopMargin: A } = h(r);
322
+ if (x.attr("transform", `translate(${n.x - w.width / 2}, ${n.y - n.height / 2 + A})`), d) {
323
+ let e = x.select("span");
324
+ e && e.attr("style", d);
325
+ }
326
+ let M = k.node().getBBox();
327
+ return n.offsetX = 0, n.width = M.width, n.height = M.height, n.offsetY = w.height - n.padding / 2, n.intersect = function(e) {
328
+ return j(n, e);
329
+ }, {
330
+ cluster: g,
331
+ labelBBox: w
332
+ };
333
+ }, "kanbanSection")
334
+ }, I = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ e(async (e, t) => {
335
+ let n = await F[t.shape || "rect"](e, t);
336
+ return I.set(t.id, n), n;
337
+ }, "insertCluster"), te = /* @__PURE__ */ e(() => {
338
+ I = /* @__PURE__ */ new Map();
339
+ }, "clear");
340
+ function L(e, t) {
341
+ return e.intersect(t);
342
+ }
343
+ e(L, "intersectNode");
344
+ var R = L;
345
+ function ne(e, t, n, r) {
346
+ 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);
347
+ r.x < i && (l = -l);
348
+ var u = Math.abs(t * n * s / c);
349
+ return r.y < a && (u = -u), {
350
+ x: i + l,
351
+ y: a + u
352
+ };
353
+ }
354
+ e(ne, "intersectEllipse");
355
+ var z = ne;
356
+ function B(e, t, n) {
357
+ return z(e, t, t, n);
358
+ }
359
+ e(B, "intersectCircle");
360
+ var V = B;
361
+ function H(e, t, n, r) {
362
+ {
363
+ let i = t.y - e.y, a = e.x - t.x, o = t.x * e.y - e.x * t.y, s = i * n.x + a * n.y + o, c = i * r.x + a * r.y + o, l = 1e-6;
364
+ if (s !== 0 && c !== 0 && re(s, c)) return;
365
+ let u = r.y - n.y, d = n.x - r.x, f = r.x * n.y - n.x * r.y, p = u * e.x + d * e.y + f, m = u * t.x + d * t.y + f;
366
+ if (Math.abs(p) < l && Math.abs(m) < l && re(p, m)) return;
367
+ let h = i * d - u * a;
368
+ if (h === 0) return;
369
+ let g = Math.abs(h / 2), _ = a * f - d * o, v = _ < 0 ? (_ - g) / h : (_ + g) / h;
370
+ return _ = u * o - i * f, {
371
+ x: v,
372
+ y: _ < 0 ? (_ - g) / h : (_ + g) / h
373
+ };
374
+ }
375
+ }
376
+ e(H, "intersectLine");
377
+ function re(e, t) {
378
+ return e * t > 0;
379
+ }
380
+ e(re, "sameSign");
381
+ var ie = H;
382
+ function U(e, t, n) {
383
+ let r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
384
+ typeof t.forEach == "function" ? t.forEach(function(e) {
385
+ o = Math.min(o, e.x), s = Math.min(s, e.y);
386
+ }) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
387
+ let c = r - e.width / 2 - o, l = i - e.height / 2 - s;
388
+ for (let r = 0; r < t.length; r++) {
389
+ let i = t[r], o = t[r < t.length - 1 ? r + 1 : 0], s = ie(e, n, {
390
+ x: c + i.x,
391
+ y: l + i.y
392
+ }, {
393
+ x: c + o.x,
394
+ y: l + o.y
395
+ });
396
+ s && a.push(s);
397
+ }
398
+ return a.length ? (a.length > 1 && a.sort(function(e, t) {
399
+ let 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);
400
+ return a < c ? -1 : a === c ? 0 : 1;
401
+ }), a[0]) : e;
402
+ }
403
+ e(U, "intersectPolygon");
404
+ var W = {
405
+ node: R,
406
+ circle: V,
407
+ ellipse: z,
408
+ polygon: U,
409
+ rect: j
410
+ };
411
+ function G(e, n) {
412
+ let { labelStyles: r } = v(n);
413
+ n.labelStyle = r;
414
+ let i = E(n), a = i;
415
+ i || (a = "anchor");
416
+ let o = e.insert("g").attr("class", a).attr("id", n.domId || n.id), { cssStyles: s } = n, c = S.svg(o), l = y(n, {
417
+ fill: "black",
418
+ stroke: "none",
419
+ fillStyle: "solid"
420
+ });
421
+ n.look !== "handDrawn" && (l.roughness = 0);
422
+ let u = c.circle(0, 0, 2, l), d = o.insert(() => u, ":first-child");
423
+ return d.attr("class", "anchor").attr("style", p(s)), T(n, d), n.intersect = function(e) {
424
+ return t.info("Circle intersect", n, 1, e), W.circle(n, 1, e);
425
+ }, o;
426
+ }
427
+ e(G, "anchor");
428
+ function K(e, t, n, r, i, a, o) {
429
+ let s = (e + n) / 2, c = (t + r) / 2, l = Math.atan2(r - t, n - e), u = (n - e) / 2, d = (r - t) / 2, f = u / i, p = d / a, m = Math.sqrt(f ** 2 + p ** 2);
430
+ if (m > 1) throw Error("The given radii are too small to create an arc between the points.");
431
+ let h = Math.sqrt(1 - m ** 2), g = s + h * a * Math.sin(l) * (o ? -1 : 1), _ = c - h * i * Math.cos(l) * (o ? -1 : 1), v = Math.atan2((t - _) / a, (e - g) / i), y = Math.atan2((r - _) / a, (n - g) / i) - v;
432
+ o && y < 0 && (y += 2 * Math.PI), !o && y > 0 && (y -= 2 * Math.PI);
433
+ let b = [];
434
+ for (let e = 0; e < 20; e++) {
435
+ let t = v + e / 19 * y, n = g + i * Math.cos(t), r = _ + a * Math.sin(t);
436
+ b.push({
437
+ x: n,
438
+ y: r
439
+ });
440
+ }
441
+ return b;
442
+ }
443
+ e(K, "generateArcPoints");
444
+ function ae(e, t, n) {
445
+ let [r, i] = [t, n].sort((e, t) => t - e);
446
+ return i * (1 - Math.sqrt(1 - (e / r / 2) ** 2));
447
+ }
448
+ e(ae, "calculateArcSagitta");
449
+ async function oe(t, n) {
450
+ let { labelStyles: r, nodeStyles: i } = v(n);
451
+ n.labelStyle = r;
452
+ let a = n.padding ?? 0, o = n.look === "neo" ? 16 : a, s = n.look === "neo" ? 12 : a, c = /* @__PURE__ */ e((e) => e + s, "calcTotalHeight"), l = /* @__PURE__ */ e((e) => {
453
+ let t = e / 2;
454
+ return [t / (2.5 + e / 50), t];
455
+ }, "calcEllipseRadius"), { shapeSvg: u, bbox: d } = await C(t, n, E(n)), f = c(n?.height ? n?.height : d.height), [p, m] = l(f), h = ae(f, p, m), g = (n?.width ? n?.width : d.width) + o * 2 + h - h, _ = f, { cssStyles: b } = n, x = [
456
+ {
457
+ x: g / 2,
458
+ y: -_ / 2
459
+ },
460
+ {
461
+ x: -g / 2,
462
+ y: -_ / 2
463
+ },
464
+ ...K(-g / 2, -_ / 2, -g / 2, _ / 2, p, m, !1),
465
+ {
466
+ x: g / 2,
467
+ y: _ / 2
468
+ },
469
+ ...K(g / 2, _ / 2, g / 2, -_ / 2, p, m, !0)
470
+ ], w = S.svg(u), O = y(n, {});
471
+ n.look !== "handDrawn" && (O.roughness = 0, O.fillStyle = "solid");
472
+ let k = D(x), A = w.path(k, O), j = u.insert(() => A, ":first-child");
473
+ return j.attr("class", "basic label-container outer-path"), b && n.look !== "handDrawn" && j.selectAll("path").attr("style", b), i && n.look !== "handDrawn" && j.selectAll("path").attr("style", i), j.attr("transform", `translate(${p / 2}, 0)`), T(n, j), n.intersect = function(e) {
474
+ return W.polygon(n, x, e);
475
+ }, u;
476
+ }
477
+ e(oe, "bowTieRect");
478
+ function q(e, t, n, r) {
479
+ return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
480
+ return e.x + "," + e.y;
481
+ }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
482
+ }
483
+ e(q, "insertPolygonShape");
484
+ var se = 12;
485
+ async function ce(e, t) {
486
+ let { labelStyles: n, nodeStyles: r } = v(t);
487
+ t.labelStyle = n;
488
+ let i = t.padding ?? 0, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 24 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ?? c.width) + (t.look === "neo" ? a * 2 : a + se), u = (t?.height ?? c.height) + (t.look === "neo" ? o * 2 : o), d = l, f = -u, p = [
489
+ {
490
+ x: 0 + se,
491
+ y: f
492
+ },
493
+ {
494
+ x: d,
495
+ y: f
496
+ },
497
+ {
498
+ x: d,
499
+ y: 0
500
+ },
501
+ {
502
+ x: 0,
503
+ y: 0
504
+ },
505
+ {
506
+ x: 0,
507
+ y: f + se
508
+ },
509
+ {
510
+ x: 0 + se,
511
+ y: f
512
+ }
513
+ ], m, { cssStyles: h } = t;
514
+ if (t.look === "handDrawn") {
515
+ let e = S.svg(s), n = y(t, {}), r = D(p), i = e.path(r, n);
516
+ m = s.insert(() => i, ":first-child").attr("transform", `translate(${-l / 2}, ${u / 2})`), h && m.attr("style", h);
517
+ } else m = q(s, l, u, p);
518
+ return r && m.attr("style", r), T(t, m), t.intersect = function(e) {
519
+ return W.polygon(t, p, e);
520
+ }, s;
521
+ }
522
+ e(ce, "card");
523
+ function le(e, t) {
524
+ let { nodeStyles: n } = v(t);
525
+ t.label = "";
526
+ let r = e.insert("g").attr("class", E(t)).attr("id", t.domId ?? t.id), { cssStyles: i } = t, a = Math.max(28, t.width ?? 0), o = [
527
+ {
528
+ x: 0,
529
+ y: a / 2
530
+ },
531
+ {
532
+ x: a / 2,
533
+ y: 0
534
+ },
535
+ {
536
+ x: 0,
537
+ y: -a / 2
538
+ },
539
+ {
540
+ x: -a / 2,
541
+ y: 0
542
+ }
543
+ ], s = S.svg(r), c = y(t, {});
544
+ t.look !== "handDrawn" && (c.roughness = 0, c.fillStyle = "solid");
545
+ let l = D(o), u = s.path(l, c), d = r.insert(() => u, ":first-child");
546
+ return i && t.look !== "handDrawn" && d.selectAll("path").attr("style", i), n && t.look !== "handDrawn" && d.selectAll("path").attr("style", n), t.width = 28, t.height = 28, t.intersect = function(e) {
547
+ return W.polygon(t, o, e);
548
+ }, r;
549
+ }
550
+ e(le, "choice");
551
+ async function ue(e, n, r) {
552
+ let { labelStyles: i, nodeStyles: a } = v(n);
553
+ n.labelStyle = i;
554
+ let { shapeSvg: o, bbox: s, halfPadding: c } = await C(e, n, E(n)), l = r?.padding ?? c, u = n.look === "neo" ? s.width / 2 + 32 : s.width / 2 + l, d, { cssStyles: f } = n;
555
+ if (n.look === "handDrawn") {
556
+ let e = S.svg(o), t = y(n, {}), r = e.circle(0, 0, u * 2, t);
557
+ d = o.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", p(f));
558
+ } else d = o.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", a).attr("r", u).attr("cx", 0).attr("cy", 0);
559
+ return T(n, d), n.calcIntersect = function(e, t) {
560
+ let n = e.width / 2;
561
+ return W.circle(e, n, t);
562
+ }, n.intersect = function(e) {
563
+ return t.info("Circle intersect", n, u, e), W.circle(n, u, e);
564
+ }, o;
565
+ }
566
+ e(ue, "circle");
567
+ function de(e) {
568
+ let t = Math.cos(Math.PI / 4), n = Math.sin(Math.PI / 4), r = e * 2, i = {
569
+ x: r / 2 * t,
570
+ y: r / 2 * n
571
+ }, a = {
572
+ x: -(r / 2) * t,
573
+ y: r / 2 * n
574
+ }, o = {
575
+ x: -(r / 2) * t,
576
+ y: -(r / 2) * n
577
+ }, s = {
578
+ x: r / 2 * t,
579
+ y: -(r / 2) * n
580
+ };
581
+ return `M ${a.x},${a.y} L ${s.x},${s.y}
582
+ M ${i.x},${i.y} L ${o.x},${o.y}`;
583
+ }
584
+ e(de, "createLine");
585
+ function fe(e, n) {
586
+ let { labelStyles: r, nodeStyles: i } = v(n);
587
+ n.labelStyle = r, n.label = "";
588
+ let a = e.insert("g").attr("class", E(n)).attr("id", n.domId ?? n.id), o = Math.max(30, n?.width ?? 0), { cssStyles: s } = n, c = S.svg(a), l = y(n, {});
589
+ n.look !== "handDrawn" && (l.roughness = 0, l.fillStyle = "solid");
590
+ let u = c.circle(0, 0, o * 2, l), d = de(o), f = c.path(d, l), p = a.insert(() => u, ":first-child");
591
+ return p.insert(() => f), p.attr("class", "outer-path"), s && n.look !== "handDrawn" && p.selectAll("path").attr("style", s), i && n.look !== "handDrawn" && p.selectAll("path").attr("style", i), T(n, p), n.intersect = function(e) {
592
+ return t.info("crossedCircle intersect", n, {
593
+ radius: o,
594
+ point: e
595
+ }), W.circle(n, o, e);
596
+ }, a;
597
+ }
598
+ e(fe, "crossedCircle");
599
+ function J(e, t, n, r = 100, i = 0, a = 180) {
600
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
601
+ for (let i = 0; i < r; i++) {
602
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
603
+ o.push({
604
+ x: -a,
605
+ y: -l
606
+ });
607
+ }
608
+ return o;
609
+ }
610
+ e(J, "generateCirclePoints");
611
+ async function pe(e, t) {
612
+ let { labelStyles: n, nodeStyles: r } = v(t);
613
+ t.labelStyle = n;
614
+ let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + s, u = a.height + c, d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
615
+ ...J(l / 2, -u / 2, d, 30, -90, 0),
616
+ {
617
+ x: -l / 2 - d,
618
+ y: d
619
+ },
620
+ ...J(l / 2 + d * 2, -d, d, 20, -180, -270),
621
+ ...J(l / 2 + d * 2, d, d, 20, -90, -180),
622
+ {
623
+ x: -l / 2 - d,
624
+ y: -u / 2
625
+ },
626
+ ...J(l / 2, u / 2, d, 20, 0, 90)
627
+ ], m = [
628
+ {
629
+ x: l / 2,
630
+ y: -u / 2 - d
631
+ },
632
+ {
633
+ x: -l / 2,
634
+ y: -u / 2 - d
635
+ },
636
+ ...J(l / 2, -u / 2, d, 20, -90, 0),
637
+ {
638
+ x: -l / 2 - d,
639
+ y: -d
640
+ },
641
+ ...J(l / 2 + l * .1, -d, d, 20, -180, -270),
642
+ ...J(l / 2 + l * .1, d, d, 20, -90, -180),
643
+ {
644
+ x: -l / 2 - d,
645
+ y: u / 2
646
+ },
647
+ ...J(l / 2, u / 2, d, 20, 0, 90),
648
+ {
649
+ x: -l / 2,
650
+ y: u / 2 + d
651
+ },
652
+ {
653
+ x: l / 2,
654
+ y: u / 2 + d
655
+ }
656
+ ], h = S.svg(i), g = y(t, { fill: "none" });
657
+ t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
658
+ let _ = D(p).replace("Z", ""), b = h.path(_, g), x = D(m), w = h.path(x, { ...g }), O = i.insert("g", ":first-child");
659
+ return O.insert(() => w, ":first-child").attr("stroke-opacity", 0), O.insert(() => b, ":first-child"), O.attr("class", "text"), f && t.look !== "handDrawn" && O.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && O.selectAll("path").attr("style", r), O.attr("transform", `translate(${d}, 0)`), o.attr("transform", `translate(${-l / 2 + d - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), T(t, O), t.intersect = function(e) {
660
+ return W.polygon(t, m, e);
661
+ }, i;
662
+ }
663
+ e(pe, "curlyBraceLeft");
664
+ function Y(e, t, n, r = 100, i = 0, a = 180) {
665
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
666
+ for (let i = 0; i < r; i++) {
667
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
668
+ o.push({
669
+ x: a,
670
+ y: l
671
+ });
672
+ }
673
+ return o;
674
+ }
675
+ e(Y, "generateCirclePoints");
676
+ async function me(e, t) {
677
+ let { labelStyles: n, nodeStyles: r } = v(t);
678
+ t.labelStyle = n;
679
+ let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + (t.look === "neo" ? s * 2 : s), u = a.height + (t.look === "neo" ? c * 2 : c), d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
680
+ ...Y(l / 2, -u / 2, d, 20, -90, 0),
681
+ {
682
+ x: l / 2 + d,
683
+ y: -d
684
+ },
685
+ ...Y(l / 2 + d * 2, -d, d, 20, -180, -270),
686
+ ...Y(l / 2 + d * 2, d, d, 20, -90, -180),
687
+ {
688
+ x: l / 2 + d,
689
+ y: u / 2
690
+ },
691
+ ...Y(l / 2, u / 2, d, 20, 0, 90)
692
+ ], m = [
693
+ {
694
+ x: -l / 2,
695
+ y: -u / 2 - d
696
+ },
697
+ {
698
+ x: l / 2,
699
+ y: -u / 2 - d
700
+ },
701
+ ...Y(l / 2, -u / 2, d, 20, -90, 0),
702
+ {
703
+ x: l / 2 + d,
704
+ y: -d
705
+ },
706
+ ...Y(l / 2 + d * 2, -d, d, 20, -180, -270),
707
+ ...Y(l / 2 + d * 2, d, d, 20, -90, -180),
708
+ {
709
+ x: l / 2 + d,
710
+ y: u / 2
711
+ },
712
+ ...Y(l / 2, u / 2, d, 20, 0, 90),
713
+ {
714
+ x: l / 2,
715
+ y: u / 2 + d
716
+ },
717
+ {
718
+ x: -l / 2,
719
+ y: u / 2 + d
720
+ }
721
+ ], h = S.svg(i), g = y(t, { fill: "none" });
722
+ t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
723
+ let _ = D(p).replace("Z", ""), b = h.path(_, g), x = D(m), w = h.path(x, { ...g }), O = i.insert("g", ":first-child");
724
+ return O.insert(() => w, ":first-child").attr("stroke-opacity", 0), O.insert(() => b, ":first-child"), O.attr("class", "text"), f && t.look !== "handDrawn" && O.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && O.selectAll("path").attr("style", r), O.attr("transform", `translate(${-d}, 0)`), o.attr("transform", `translate(${-l / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), T(t, O), t.intersect = function(e) {
725
+ return W.polygon(t, m, e);
726
+ }, i;
727
+ }
728
+ e(me, "curlyBraceRight");
729
+ function X(e, t, n, r = 100, i = 0, a = 180) {
730
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
731
+ for (let i = 0; i < r; i++) {
732
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
733
+ o.push({
734
+ x: -a,
735
+ y: -l
736
+ });
737
+ }
738
+ return o;
739
+ }
740
+ e(X, "generateCirclePoints");
741
+ async function he(e, t) {
742
+ let { labelStyles: n, nodeStyles: r } = v(t);
743
+ t.labelStyle = n;
744
+ let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + (t.look === "neo" ? s * 2 : s), u = a.height + (t.look === "neo" ? c * 2 : c), d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
745
+ ...X(l / 2, -u / 2, d, 30, -90, 0),
746
+ {
747
+ x: -l / 2 - d,
748
+ y: d
749
+ },
750
+ ...X(l / 2 + d * 2, -d, d, 20, -180, -270),
751
+ ...X(l / 2 + d * 2, d, d, 20, -90, -180),
752
+ {
753
+ x: -l / 2 - d,
754
+ y: -u / 2
755
+ },
756
+ ...X(l / 2, u / 2, d, 20, 0, 90)
757
+ ], m = [
758
+ ...X(-l / 2 + d + d / 2, -u / 2, d, 20, -90, -180),
759
+ {
760
+ x: l / 2 - d / 2,
761
+ y: d
762
+ },
763
+ ...X(-l / 2 - d / 2, -d, d, 20, 0, 90),
764
+ ...X(-l / 2 - d / 2, d, d, 20, -90, 0),
765
+ {
766
+ x: l / 2 - d / 2,
767
+ y: -d
768
+ },
769
+ ...X(-l / 2 + d + d / 2, u / 2, d, 30, -180, -270)
770
+ ], h = [
771
+ {
772
+ x: l / 2,
773
+ y: -u / 2 - d
774
+ },
775
+ {
776
+ x: -l / 2,
777
+ y: -u / 2 - d
778
+ },
779
+ ...X(l / 2, -u / 2, d, 20, -90, 0),
780
+ {
781
+ x: -l / 2 - d,
782
+ y: -d
783
+ },
784
+ ...X(l / 2 + d * 2, -d, d, 20, -180, -270),
785
+ ...X(l / 2 + d * 2, d, d, 20, -90, -180),
786
+ {
787
+ x: -l / 2 - d,
788
+ y: u / 2
789
+ },
790
+ ...X(l / 2, u / 2, d, 20, 0, 90),
791
+ {
792
+ x: -l / 2,
793
+ y: u / 2 + d
794
+ },
795
+ {
796
+ x: l / 2 - d - d / 2,
797
+ y: u / 2 + d
798
+ },
799
+ ...X(-l / 2 + d + d / 2, -u / 2, d, 20, -90, -180),
800
+ {
801
+ x: l / 2 - d / 2,
802
+ y: d
803
+ },
804
+ ...X(-l / 2 - d / 2, -d, d, 20, 0, 90),
805
+ ...X(-l / 2 - d / 2, d, d, 20, -90, 0),
806
+ {
807
+ x: l / 2 - d / 2,
808
+ y: -d
809
+ },
810
+ ...X(-l / 2 + d + d / 2, u / 2, d, 30, -180, -270)
811
+ ], g = S.svg(i), _ = y(t, { fill: "none" });
812
+ t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
813
+ let b = D(p).replace("Z", ""), x = g.path(b, _), w = D(m).replace("Z", ""), O = g.path(w, _), k = D(h), A = g.path(k, { ..._ }), j = i.insert("g", ":first-child");
814
+ return j.insert(() => A, ":first-child").attr("stroke-opacity", 0), j.insert(() => x, ":first-child"), j.insert(() => O, ":first-child"), j.attr("class", "text"), f && t.look !== "handDrawn" && j.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && j.selectAll("path").attr("style", r), j.attr("transform", `translate(${d - d / 4}, 0)`), o.attr("transform", `translate(${-l / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), T(t, j), t.intersect = function(e) {
815
+ return W.polygon(t, h, e);
816
+ }, i;
817
+ }
818
+ e(he, "curlyBraces");
819
+ async function ge(e, t) {
820
+ let { labelStyles: n, nodeStyles: r } = v(t);
821
+ t.labelStyle = n;
822
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = Math.max(20, (c.width + a * 2) * 1.25, t?.width ?? 0), u = Math.max(5, c.height + o * 2, t?.height ?? 0), d = u / 2, { cssStyles: f } = t, p = S.svg(s), m = y(t, {});
823
+ t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
824
+ let h = l, g = u, _ = h - d, b = g / 4, x = [
825
+ {
826
+ x: _,
827
+ y: 0
828
+ },
829
+ {
830
+ x: b,
831
+ y: 0
832
+ },
833
+ {
834
+ x: 0,
835
+ y: g / 2
836
+ },
837
+ {
838
+ x: b,
839
+ y: g
840
+ },
841
+ {
842
+ x: _,
843
+ y: g
844
+ },
845
+ ...k(-_, -g / 2, d, 50, 270, 90)
846
+ ], w = D(x), O = p.path(w, m), A = s.insert(() => O, ":first-child");
847
+ return A.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && A.selectChildren("path").attr("style", f), r && t.look !== "handDrawn" && A.selectChildren("path").attr("style", r), A.attr("transform", `translate(${-l / 2}, ${-u / 2})`), T(t, A), t.intersect = function(e) {
848
+ return W.polygon(t, x, e);
849
+ }, s;
850
+ }
851
+ e(ge, "curvedTrapezoid");
852
+ var _e = /* @__PURE__ */ e((e, t, n, r, i, a) => [
853
+ `M${e},${t + a}`,
854
+ `a${i},${a} 0,0,0 ${n},0`,
855
+ `a${i},${a} 0,0,0 ${-n},0`,
856
+ `l0,${r}`,
857
+ `a${i},${a} 0,0,0 ${n},0`,
858
+ `l0,${-r}`
859
+ ].join(" "), "createCylinderPathD"), ve = /* @__PURE__ */ e((e, t, n, r, i, a) => [
860
+ `M${e},${t + a}`,
861
+ `M${e + n},${t + a}`,
862
+ `a${i},${a} 0,0,0 ${-n},0`,
863
+ `l0,${r}`,
864
+ `a${i},${a} 0,0,0 ${n},0`,
865
+ `l0,${-r}`
866
+ ].join(" "), "createOuterCylinderPathD"), ye = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), be = 8, xe = 8;
867
+ async function Se(e, t) {
868
+ let { labelStyles: n, nodeStyles: r } = v(t);
869
+ t.labelStyle = n;
870
+ let i = t.padding ?? 0, a = t.look === "neo" ? 24 : i, o = t.look === "neo" ? 24 : i;
871
+ if (t.width || t.height) {
872
+ let e = t.width ?? 0;
873
+ t.width = (t.width ?? 0) - o, t.width < xe && (t.width = xe);
874
+ let n = e / 2 / (2.5 + e / 50);
875
+ t.height = (t.height ?? 0) - a - n * 3, t.height < be && (t.height = be);
876
+ }
877
+ let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t.width ? t.width : c.width) + o, d = u / 2, f = d / (2.5 + u / 50), m = (t.height ? t.height : c.height) + a + f, h, { cssStyles: g } = t;
878
+ if (t.look === "handDrawn") {
879
+ let e = S.svg(s), n = ve(0, 0, u, m, d, f), r = ye(0, f, u, m, d, f), i = y(t, {}), a = e.path(n, i), o = e.path(r, y(t, { fill: "none" }));
880
+ h = s.insert(() => o, ":first-child"), h = s.insert(() => a, ":first-child"), h.attr("class", "basic label-container"), g && h.attr("style", g);
881
+ } else {
882
+ let e = _e(0, 0, u, m, d, f);
883
+ h = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", p(g)).attr("style", r);
884
+ }
885
+ return h.attr("label-offset-y", f), h.attr("transform", `translate(${-u / 2}, ${-(m / 2 + f)})`), T(t, h), l.attr("transform", `translate(${-(c.width / 2) - (c.x - (c.left ?? 0))}, ${-(c.height / 2) + (t.padding ?? 0) / 1.5 - (c.y - (c.top ?? 0))})`), t.intersect = function(e) {
886
+ let n = W.rect(t, e), r = n.x - (t.x ?? 0);
887
+ if (d != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) {
888
+ let i = f * f * (1 - r * r / (d * d));
889
+ i > 0 && (i = Math.sqrt(i)), i = f - i, e.y - (t.y ?? 0) > 0 && (i = -i), n.y += i;
890
+ }
891
+ return n;
892
+ }, s;
893
+ }
894
+ e(Se, "cylinder");
895
+ async function Ce(e, t) {
896
+ let { labelStyles: n, nodeStyles: r } = v(t);
897
+ t.labelStyle = n;
898
+ let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = s.width + i, u = s.height + a, d = u * .2, f = -l / 2, p = -u / 2 - d / 2, { cssStyles: m } = t, h = S.svg(o), g = y(t, {});
899
+ t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
900
+ let _ = [
901
+ {
902
+ x: f,
903
+ y: p + d
904
+ },
905
+ {
906
+ x: -f,
907
+ y: p + d
908
+ },
909
+ {
910
+ x: -f,
911
+ y: -p
912
+ },
913
+ {
914
+ x: f,
915
+ y: -p
916
+ },
917
+ {
918
+ x: f,
919
+ y: p
920
+ },
921
+ {
922
+ x: -f,
923
+ y: p
924
+ },
925
+ {
926
+ x: -f,
927
+ y: p + d
928
+ }
929
+ ], b = h.polygon(_.map((e) => [e.x, e.y]), g), x = o.insert(() => b, ":first-child");
930
+ return x.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && x.selectAll("path").attr("style", m), r && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), c.attr("transform", `translate(${f + (t.padding ?? 0) / 2 - (s.x - (s.left ?? 0))}, ${p + d + (t.padding ?? 0) / 2 - (s.y - (s.top ?? 0))})`), T(t, x), t.intersect = function(e) {
931
+ return W.rect(t, e);
932
+ }, o;
933
+ }
934
+ e(Ce, "dividedRectangle");
935
+ async function we(e, n) {
936
+ let { labelStyles: r, nodeStyles: i } = v(n), a = n.look === "neo" ? 12 : 5;
937
+ n.labelStyle = r;
938
+ let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await C(e, n, E(n)), u = (n?.width ? n?.width / 2 : l.width / 2) + (s ?? 0), d = u - a, f, { cssStyles: m } = n;
939
+ if (n.look === "handDrawn") {
940
+ let e = S.svg(c), t = y(n, {
941
+ roughness: .2,
942
+ strokeWidth: 2.5
943
+ }), r = y(n, {
944
+ roughness: .2,
945
+ strokeWidth: 1.5
946
+ }), i = e.circle(0, 0, u * 2, t), a = e.circle(0, 0, d * 2, r);
947
+ f = c.insert("g", ":first-child"), f.attr("class", p(n.cssClasses)).attr("style", p(m)), f.node()?.appendChild(i), f.node()?.appendChild(a);
948
+ } else {
949
+ f = c.insert("g", ":first-child");
950
+ let e = f.insert("circle", ":first-child"), t = f.insert("circle");
951
+ f.attr("class", "basic label-container").attr("style", i), e.attr("class", "outer-circle").attr("style", i).attr("r", u).attr("cx", 0).attr("cy", 0), t.attr("class", "inner-circle").attr("style", i).attr("r", d).attr("cx", 0).attr("cy", 0);
952
+ }
953
+ return T(n, f), n.intersect = function(e) {
954
+ return t.info("DoubleCircle intersect", n, u, e), W.circle(n, u, e);
955
+ }, c;
956
+ }
957
+ e(we, "doublecircle");
958
+ function Te(e, n, { config: { themeVariables: r } }) {
959
+ let { labelStyles: i, nodeStyles: a } = v(n);
960
+ n.label = "", n.labelStyle = i;
961
+ let o = e.insert("g").attr("class", E(n)).attr("id", n.domId ?? n.id), { cssStyles: s } = n, c = S.svg(o), { nodeBorder: l } = r, u = y(n, { fillStyle: "solid" });
962
+ n.look !== "handDrawn" && (u.roughness = 0);
963
+ let d = c.circle(0, 0, 14, u), f = o.insert(() => d, ":first-child");
964
+ return f.selectAll("path").attr("style", `fill: ${l} !important;`), s && s.length > 0 && n.look !== "handDrawn" && f.selectAll("path").attr("style", s), a && n.look !== "handDrawn" && f.selectAll("path").attr("style", a), T(n, f), n.intersect = function(e) {
965
+ return t.info("filledCircle intersect", n, {
966
+ radius: 7,
967
+ point: e
968
+ }), W.circle(n, 7, e);
969
+ }, o;
970
+ }
971
+ e(Te, "filledCircle");
972
+ var Ee = 10, De = 10;
973
+ async function Oe(e, n) {
974
+ let { labelStyles: r, nodeStyles: i } = v(n);
975
+ n.labelStyle = r;
976
+ let a = n.padding ?? 0, o = n.look === "neo" ? a * 2 : a;
977
+ (n.width || n.height) && (n.height = n?.height ?? 0, n.height < Ee && (n.height = Ee), n.width = (n?.width ?? 0) - o - o / 2, n.width < De && (n.width = De));
978
+ let { shapeSvg: s, bbox: c, label: l } = await C(e, n, E(n)), u = (n?.width ? n?.width : c.width) + (o ?? 0), d = n?.height ? n?.height : u + c.height, f = d, p = [
979
+ {
980
+ x: 0,
981
+ y: -d
982
+ },
983
+ {
984
+ x: f,
985
+ y: -d
986
+ },
987
+ {
988
+ x: f / 2,
989
+ y: 0
990
+ }
991
+ ], { cssStyles: m } = n, h = S.svg(s), g = y(n, {});
992
+ n.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
993
+ let _ = D(p), b = h.path(_, g), x = s.insert(() => b, ":first-child").attr("transform", `translate(${-d / 2}, ${d / 2})`).attr("class", "outer-path");
994
+ return m && n.look !== "handDrawn" && x.selectChildren("path").attr("style", m), i && n.look !== "handDrawn" && x.selectChildren("path").attr("style", i), n.width = u, n.height = d, T(n, x), l.attr("transform", `translate(${-c.width / 2 - (c.x - (c.left ?? 0))}, ${-d / 2 + (n.padding ?? 0) / 2 + (c.y - (c.top ?? 0))})`), n.intersect = function(e) {
995
+ return t.info("Triangle intersect", n, p, e), W.polygon(n, p, e);
996
+ }, s;
997
+ }
998
+ e(Oe, "flippedTriangle");
999
+ function ke(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
1000
+ let { nodeStyles: a } = v(t);
1001
+ t.label = "";
1002
+ let o = e.insert("g").attr("class", E(t)).attr("id", t.domId ?? t.id), { cssStyles: s } = t, c = Math.max(70, t?.width ?? 0), l = Math.max(10, t?.height ?? 0);
1003
+ n === "LR" && (c = Math.max(10, t?.width ?? 0), l = Math.max(70, t?.height ?? 0));
1004
+ let u = -1 * c / 2, d = -1 * l / 2, f = S.svg(o), p = y(t, {
1005
+ stroke: i.lineColor,
1006
+ fill: i.lineColor
1007
+ });
1008
+ t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
1009
+ let m = f.rectangle(u, d, c, l, p), h = o.insert(() => m, ":first-child");
1010
+ s && t.look !== "handDrawn" && h.selectAll("path").attr("style", s), a && t.look !== "handDrawn" && h.selectAll("path").attr("style", a), T(t, h);
1011
+ let g = r?.padding ?? 0;
1012
+ return t.width && t.height && (t.width += g / 2 || 0, t.height += g / 2 || 0), t.intersect = function(e) {
1013
+ return W.rect(t, e);
1014
+ }, o;
1015
+ }
1016
+ e(ke, "forkJoin");
1017
+ async function Ae(e, n) {
1018
+ let { labelStyles: r, nodeStyles: i } = v(n);
1019
+ n.labelStyle = r;
1020
+ let a = n.look === "neo" ? 16 : n.padding ?? 0, o = n.look === "neo" ? 12 : n.padding ?? 0;
1021
+ (n.width || n.height) && (n.height = (n?.height ?? 0) - o * 2, n.height < 10 && (n.height = 10), n.width = (n?.width ?? 0) - a * 2, n.width < 15 && (n.width = 15));
1022
+ let { shapeSvg: s, bbox: c } = await C(e, n, E(n)), l = (n?.width ? n?.width : Math.max(15, c.width)) + a * 2, u = (n?.height ? n?.height : Math.max(10, c.height)) + o * 2, d = u / 2, { cssStyles: f } = n, p = S.svg(s), m = y(n, {});
1023
+ n.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
1024
+ let h = [
1025
+ {
1026
+ x: -l / 2,
1027
+ y: -u / 2
1028
+ },
1029
+ {
1030
+ x: l / 2 - d,
1031
+ y: -u / 2
1032
+ },
1033
+ ...k(-l / 2 + d, 0, d, 50, 90, 270),
1034
+ {
1035
+ x: l / 2 - d,
1036
+ y: u / 2
1037
+ },
1038
+ {
1039
+ x: -l / 2,
1040
+ y: u / 2
1041
+ }
1042
+ ], g = D(h), _ = p.path(g, m), b = s.insert(() => _, ":first-child");
1043
+ return b.attr("class", "basic label-container outer-path"), f && n.look !== "handDrawn" && b.selectChildren("path").attr("style", f), i && n.look !== "handDrawn" && b.selectChildren("path").attr("style", i), T(n, b), n.intersect = function(e) {
1044
+ return t.info("Pill intersect", n, {
1045
+ radius: d,
1046
+ point: e
1047
+ }), W.polygon(n, h, e);
1048
+ }, s;
1049
+ }
1050
+ e(Ae, "halfRoundedRectangle");
1051
+ var je = /* @__PURE__ */ e((e, t, n, r, i) => [
1052
+ `M${e + i},${t}`,
1053
+ `L${e + n - i},${t}`,
1054
+ `L${e + n},${t - r / 2}`,
1055
+ `L${e + n - i},${t - r}`,
1056
+ `L${e + i},${t - r}`,
1057
+ `L${e},${t - r / 2}`,
1058
+ "Z"
1059
+ ].join(" "), "createHexagonPathD");
1060
+ async function Me(e, t) {
1061
+ let { labelStyles: n, nodeStyles: r } = v(t), i = t.look === "neo" ? 3.5 : 4;
1062
+ t.labelStyle = n;
1063
+ let a = t.padding ?? 0, o = t.look === "neo" ? 70 : a, s = t.look === "neo" ? 32 : a;
1064
+ if (t.width || t.height) {
1065
+ let e = (t.height ?? 0) / i;
1066
+ t.width = (t?.width ?? 0) - 2 * e - s, t.height = (t.height ?? 0) - o;
1067
+ }
1068
+ let { shapeSvg: c, bbox: l } = await C(e, t, E(t)), u = (t?.height ? t?.height : l.height) + o, d = u / i, f = (t?.width ? t?.width : l.width) + 2 * d + s, p = [
1069
+ {
1070
+ x: d,
1071
+ y: 0
1072
+ },
1073
+ {
1074
+ x: f - d,
1075
+ y: 0
1076
+ },
1077
+ {
1078
+ x: f,
1079
+ y: -u / 2
1080
+ },
1081
+ {
1082
+ x: f - d,
1083
+ y: -u
1084
+ },
1085
+ {
1086
+ x: d,
1087
+ y: -u
1088
+ },
1089
+ {
1090
+ x: 0,
1091
+ y: -u / 2
1092
+ }
1093
+ ], m, { cssStyles: h } = t;
1094
+ if (t.look === "handDrawn") {
1095
+ let e = S.svg(c), n = y(t, {}), r = je(0, 0, f, u, d), i = e.path(r, n);
1096
+ m = c.insert(() => i, ":first-child").attr("transform", `translate(${-f / 2}, ${u / 2})`), h && m.attr("style", h);
1097
+ } else m = q(c, f, u, p);
1098
+ return r && m.attr("style", r), t.width = f, t.height = u, T(t, m), t.intersect = function(e) {
1099
+ return W.polygon(t, p, e);
1100
+ }, c;
1101
+ }
1102
+ e(Me, "hexagon");
1103
+ async function Ne(e, n) {
1104
+ let { labelStyles: r, nodeStyles: i } = v(n);
1105
+ n.label = "", n.labelStyle = r;
1106
+ let { shapeSvg: a } = await C(e, n, E(n)), o = Math.max(30, n?.width ?? 0), s = Math.max(30, n?.height ?? 0), { cssStyles: c } = n, l = S.svg(a), u = y(n, {});
1107
+ n.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid");
1108
+ let d = [
1109
+ {
1110
+ x: 0,
1111
+ y: 0
1112
+ },
1113
+ {
1114
+ x: o,
1115
+ y: 0
1116
+ },
1117
+ {
1118
+ x: 0,
1119
+ y: s
1120
+ },
1121
+ {
1122
+ x: o,
1123
+ y: s
1124
+ }
1125
+ ], f = D(d), p = l.path(f, u), m = a.insert(() => p, ":first-child");
1126
+ return m.attr("class", "basic label-container outer-path"), c && n.look !== "handDrawn" && m.selectChildren("path").attr("style", c), i && n.look !== "handDrawn" && m.selectChildren("path").attr("style", i), m.attr("transform", `translate(${-o / 2}, ${-s / 2})`), T(n, m), n.intersect = function(e) {
1127
+ return t.info("Pill intersect", n, { points: d }), W.polygon(n, d, e);
1128
+ }, a;
1129
+ }
1130
+ e(Ne, "hourglass");
1131
+ async function Pe(e, n, { config: { themeVariables: r, flowchart: i } }) {
1132
+ let { labelStyles: a } = v(n);
1133
+ n.labelStyle = a;
1134
+ let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
1135
+ n.width = Math.max(c, l ?? 0);
1136
+ let { shapeSvg: u, bbox: d, label: f } = await C(e, n, "icon-shape default"), p = n.pos === "t", m = c, h = c, { nodeBorder: _ } = r, { stylesMap: b } = g(n), w = -h / 2, E = -m / 2, D = n.label ? 8 : 0, O = S.svg(u), k = y(n, {
1137
+ stroke: "none",
1138
+ fill: "none"
1139
+ });
1140
+ n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
1141
+ let A = O.rectangle(w, E, h, m, k), j = Math.max(h, d.width), M = m + d.height + D, N = O.rectangle(-j / 2, -M / 2, j, M, {
1142
+ ...k,
1143
+ fill: "transparent",
1144
+ stroke: "none"
1145
+ }), P = u.insert(() => A, ":first-child"), F = u.insert(() => N);
1146
+ if (n.icon) {
1147
+ let e = u.append("g");
1148
+ e.html(`<g>${await x(n.icon, {
1149
+ height: c,
1150
+ width: c,
1151
+ fallbackPrefix: ""
1152
+ })}</g>`);
1153
+ let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
1154
+ e.attr("transform", `translate(${-r / 2 - a},${p ? d.height / 2 + D / 2 - i / 2 - o : -d.height / 2 - D / 2 - i / 2 - o})`), e.attr("style", `color: ${b.get("stroke") ?? _};`);
1155
+ }
1156
+ return f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${p ? -M / 2 : M / 2 - d.height})`), P.attr("transform", `translate(0,${p ? d.height / 2 + D / 2 : -d.height / 2 - D / 2})`), T(n, F), n.intersect = function(e) {
1157
+ if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
1158
+ let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
1159
+ return o = p ? [
1160
+ {
1161
+ x: r - d.width / 2,
1162
+ y: i - a / 2
1163
+ },
1164
+ {
1165
+ x: r + d.width / 2,
1166
+ y: i - a / 2
1167
+ },
1168
+ {
1169
+ x: r + d.width / 2,
1170
+ y: i - a / 2 + d.height + D
1171
+ },
1172
+ {
1173
+ x: r + h / 2,
1174
+ y: i - a / 2 + d.height + D
1175
+ },
1176
+ {
1177
+ x: r + h / 2,
1178
+ y: i + a / 2
1179
+ },
1180
+ {
1181
+ x: r - h / 2,
1182
+ y: i + a / 2
1183
+ },
1184
+ {
1185
+ x: r - h / 2,
1186
+ y: i - a / 2 + d.height + D
1187
+ },
1188
+ {
1189
+ x: r - d.width / 2,
1190
+ y: i - a / 2 + d.height + D
1191
+ }
1192
+ ] : [
1193
+ {
1194
+ x: r - h / 2,
1195
+ y: i - a / 2
1196
+ },
1197
+ {
1198
+ x: r + h / 2,
1199
+ y: i - a / 2
1200
+ },
1201
+ {
1202
+ x: r + h / 2,
1203
+ y: i - a / 2 + m
1204
+ },
1205
+ {
1206
+ x: r + d.width / 2,
1207
+ y: i - a / 2 + m
1208
+ },
1209
+ {
1210
+ x: r + d.width / 2 / 2,
1211
+ y: i + a / 2
1212
+ },
1213
+ {
1214
+ x: r - d.width / 2,
1215
+ y: i + a / 2
1216
+ },
1217
+ {
1218
+ x: r - d.width / 2,
1219
+ y: i - a / 2 + m
1220
+ },
1221
+ {
1222
+ x: r - h / 2,
1223
+ y: i - a / 2 + m
1224
+ }
1225
+ ], W.polygon(n, o, e);
1226
+ }, u;
1227
+ }
1228
+ e(Pe, "icon");
1229
+ async function Fe(e, n, { config: { themeVariables: r, flowchart: i } }) {
1230
+ let { labelStyles: a } = v(n);
1231
+ n.labelStyle = a;
1232
+ let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
1233
+ n.width = Math.max(c, l ?? 0);
1234
+ let { shapeSvg: u, bbox: d, label: f } = await C(e, n, "icon-shape default"), p = n.label ? 8 : 0, m = n.pos === "t", { nodeBorder: h, mainBkg: _ } = r, { stylesMap: b } = g(n), w = S.svg(u), E = y(n, {});
1235
+ n.look !== "handDrawn" && (E.roughness = 0, E.fillStyle = "solid"), E.stroke = b.get("fill") ?? _;
1236
+ let D = u.append("g");
1237
+ n.icon && D.html(`<g>${await x(n.icon, {
1238
+ height: c,
1239
+ width: c,
1240
+ fallbackPrefix: ""
1241
+ })}</g>`);
1242
+ let O = D.node().getBBox(), k = O.width, A = O.height, j = O.x, M = O.y, N = Math.max(k, A) * Math.SQRT2 + 40, P = w.circle(0, 0, N, E), F = Math.max(N, d.width), I = N + d.height + p, ee = w.rectangle(-F / 2, -I / 2, F, I, {
1243
+ ...E,
1244
+ fill: "transparent",
1245
+ stroke: "none"
1246
+ }), te = u.insert(() => P, ":first-child"), L = u.insert(() => ee);
1247
+ return D.attr("transform", `translate(${-k / 2 - j},${m ? d.height / 2 + p / 2 - A / 2 - M : -d.height / 2 - p / 2 - A / 2 - M})`), D.attr("style", `color: ${b.get("stroke") ?? h};`), f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -I / 2 : I / 2 - d.height})`), te.attr("transform", `translate(0,${m ? d.height / 2 + p / 2 : -d.height / 2 - p / 2})`), T(n, L), n.intersect = function(e) {
1248
+ return t.info("iconSquare intersect", n, e), W.rect(n, e);
1249
+ }, u;
1250
+ }
1251
+ e(Fe, "iconCircle");
1252
+ async function Ie(e, n, { config: { themeVariables: r, flowchart: i } }) {
1253
+ let { labelStyles: a } = v(n);
1254
+ n.labelStyle = a;
1255
+ let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
1256
+ n.width = Math.max(c, l ?? 0);
1257
+ let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await C(e, n, "icon-shape default"), m = n.pos === "t", h = c + f * 2, _ = c + f * 2, { nodeBorder: b, mainBkg: w } = r, { stylesMap: E } = g(n), D = -_ / 2, O = -h / 2, k = n.label ? 8 : 0, A = S.svg(u), j = y(n, {});
1258
+ n.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid"), j.stroke = E.get("fill") ?? w;
1259
+ let M = A.path(N(D, O, _, h, 5), j), P = Math.max(_, d.width), F = h + d.height + k, I = A.rectangle(-P / 2, -F / 2, P, F, {
1260
+ ...j,
1261
+ fill: "transparent",
1262
+ stroke: "none"
1263
+ }), ee = u.insert(() => M, ":first-child").attr("class", "icon-shape2"), te = u.insert(() => I);
1264
+ if (n.icon) {
1265
+ let e = u.append("g");
1266
+ e.html(`<g>${await x(n.icon, {
1267
+ height: c,
1268
+ width: c,
1269
+ fallbackPrefix: ""
1270
+ })}</g>`);
1271
+ let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
1272
+ e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + k / 2 - i / 2 - o : -d.height / 2 - k / 2 - i / 2 - o})`), e.attr("style", `color: ${E.get("stroke") ?? b};`);
1273
+ }
1274
+ return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -F / 2 : F / 2 - d.height})`), ee.attr("transform", `translate(0,${m ? d.height / 2 + k / 2 : -d.height / 2 - k / 2})`), T(n, te), n.intersect = function(e) {
1275
+ if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
1276
+ let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
1277
+ return o = m ? [
1278
+ {
1279
+ x: r - d.width / 2,
1280
+ y: i - a / 2
1281
+ },
1282
+ {
1283
+ x: r + d.width / 2,
1284
+ y: i - a / 2
1285
+ },
1286
+ {
1287
+ x: r + d.width / 2,
1288
+ y: i - a / 2 + d.height + k
1289
+ },
1290
+ {
1291
+ x: r + _ / 2,
1292
+ y: i - a / 2 + d.height + k
1293
+ },
1294
+ {
1295
+ x: r + _ / 2,
1296
+ y: i + a / 2
1297
+ },
1298
+ {
1299
+ x: r - _ / 2,
1300
+ y: i + a / 2
1301
+ },
1302
+ {
1303
+ x: r - _ / 2,
1304
+ y: i - a / 2 + d.height + k
1305
+ },
1306
+ {
1307
+ x: r - d.width / 2,
1308
+ y: i - a / 2 + d.height + k
1309
+ }
1310
+ ] : [
1311
+ {
1312
+ x: r - _ / 2,
1313
+ y: i - a / 2
1314
+ },
1315
+ {
1316
+ x: r + _ / 2,
1317
+ y: i - a / 2
1318
+ },
1319
+ {
1320
+ x: r + _ / 2,
1321
+ y: i - a / 2 + h
1322
+ },
1323
+ {
1324
+ x: r + d.width / 2,
1325
+ y: i - a / 2 + h
1326
+ },
1327
+ {
1328
+ x: r + d.width / 2 / 2,
1329
+ y: i + a / 2
1330
+ },
1331
+ {
1332
+ x: r - d.width / 2,
1333
+ y: i + a / 2
1334
+ },
1335
+ {
1336
+ x: r - d.width / 2,
1337
+ y: i - a / 2 + h
1338
+ },
1339
+ {
1340
+ x: r - _ / 2,
1341
+ y: i - a / 2 + h
1342
+ }
1343
+ ], W.polygon(n, o, e);
1344
+ }, u;
1345
+ }
1346
+ e(Ie, "iconRounded");
1347
+ async function Le(e, n, { config: { themeVariables: r, flowchart: i } }) {
1348
+ let { labelStyles: a } = v(n);
1349
+ n.labelStyle = a;
1350
+ let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
1351
+ n.width = Math.max(c, l ?? 0);
1352
+ let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await C(e, n, "icon-shape default"), m = n.pos === "t", h = c + f * 2, _ = c + f * 2, { nodeBorder: b, mainBkg: w } = r, { stylesMap: E } = g(n), D = -_ / 2, O = -h / 2, k = n.label ? 8 : 0, A = S.svg(u), j = y(n, {});
1353
+ n.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid"), j.stroke = E.get("fill") ?? w;
1354
+ let M = A.path(N(D, O, _, h, .1), j), P = Math.max(_, d.width), F = h + d.height + k, I = A.rectangle(-P / 2, -F / 2, P, F, {
1355
+ ...j,
1356
+ fill: "transparent",
1357
+ stroke: "none"
1358
+ }), ee = u.insert(() => M, ":first-child"), te = u.insert(() => I);
1359
+ if (n.icon) {
1360
+ let e = u.append("g");
1361
+ e.html(`<g>${await x(n.icon, {
1362
+ height: c,
1363
+ width: c,
1364
+ fallbackPrefix: ""
1365
+ })}</g>`);
1366
+ let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
1367
+ e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + k / 2 - i / 2 - o : -d.height / 2 - k / 2 - i / 2 - o})`), e.attr("style", `color: ${E.get("stroke") ?? b};`);
1368
+ }
1369
+ return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -F / 2 : F / 2 - d.height})`), ee.attr("transform", `translate(0,${m ? d.height / 2 + k / 2 : -d.height / 2 - k / 2})`), T(n, te), n.intersect = function(e) {
1370
+ if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
1371
+ let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
1372
+ return o = m ? [
1373
+ {
1374
+ x: r - d.width / 2,
1375
+ y: i - a / 2
1376
+ },
1377
+ {
1378
+ x: r + d.width / 2,
1379
+ y: i - a / 2
1380
+ },
1381
+ {
1382
+ x: r + d.width / 2,
1383
+ y: i - a / 2 + d.height + k
1384
+ },
1385
+ {
1386
+ x: r + _ / 2,
1387
+ y: i - a / 2 + d.height + k
1388
+ },
1389
+ {
1390
+ x: r + _ / 2,
1391
+ y: i + a / 2
1392
+ },
1393
+ {
1394
+ x: r - _ / 2,
1395
+ y: i + a / 2
1396
+ },
1397
+ {
1398
+ x: r - _ / 2,
1399
+ y: i - a / 2 + d.height + k
1400
+ },
1401
+ {
1402
+ x: r - d.width / 2,
1403
+ y: i - a / 2 + d.height + k
1404
+ }
1405
+ ] : [
1406
+ {
1407
+ x: r - _ / 2,
1408
+ y: i - a / 2
1409
+ },
1410
+ {
1411
+ x: r + _ / 2,
1412
+ y: i - a / 2
1413
+ },
1414
+ {
1415
+ x: r + _ / 2,
1416
+ y: i - a / 2 + h
1417
+ },
1418
+ {
1419
+ x: r + d.width / 2,
1420
+ y: i - a / 2 + h
1421
+ },
1422
+ {
1423
+ x: r + d.width / 2 / 2,
1424
+ y: i + a / 2
1425
+ },
1426
+ {
1427
+ x: r - d.width / 2,
1428
+ y: i + a / 2
1429
+ },
1430
+ {
1431
+ x: r - d.width / 2,
1432
+ y: i - a / 2 + h
1433
+ },
1434
+ {
1435
+ x: r - _ / 2,
1436
+ y: i - a / 2 + h
1437
+ }
1438
+ ], W.polygon(n, o, e);
1439
+ }, u;
1440
+ }
1441
+ e(Le, "iconSquare");
1442
+ async function Re(e, n, { config: { flowchart: r } }) {
1443
+ let i = new Image();
1444
+ i.src = n?.img ?? "", await i.decode();
1445
+ let a = Number(i.naturalWidth.toString().replace("px", "")), o = Number(i.naturalHeight.toString().replace("px", ""));
1446
+ n.imageAspectRatio = a / o;
1447
+ let { labelStyles: s } = v(n);
1448
+ n.labelStyle = s;
1449
+ let c = r?.wrappingWidth;
1450
+ n.defaultWidth = r?.wrappingWidth;
1451
+ let l = Math.max(n.label ? c ?? 0 : 0, n?.assetWidth ?? a), u = n.constraint === "on" && n?.assetHeight ? n.assetHeight * n.imageAspectRatio : l, d = n.constraint === "on" ? u / n.imageAspectRatio : n?.assetHeight ?? o;
1452
+ n.width = Math.max(u, c ?? 0);
1453
+ let { shapeSvg: f, bbox: p, label: m } = await C(e, n, "image-shape default"), h = n.pos === "t", g = -u / 2, _ = -d / 2, b = n.label ? 8 : 0, x = S.svg(f), w = y(n, {});
1454
+ n.look !== "handDrawn" && (w.roughness = 0, w.fillStyle = "solid");
1455
+ let E = x.rectangle(g, _, u, d, w), D = Math.max(u, p.width), O = d + p.height + b, k = x.rectangle(-D / 2, -O / 2, D, O, {
1456
+ ...w,
1457
+ fill: "none",
1458
+ stroke: "none"
1459
+ }), A = f.insert(() => E, ":first-child"), j = f.insert(() => k);
1460
+ if (n.img) {
1461
+ let e = f.append("image");
1462
+ e.attr("href", n.img), e.attr("width", u), e.attr("height", d), e.attr("preserveAspectRatio", "none"), e.attr("transform", `translate(${-u / 2},${h ? O / 2 - d : -O / 2})`);
1463
+ }
1464
+ return m.attr("transform", `translate(${-p.width / 2 - (p.x - (p.left ?? 0))},${h ? -d / 2 - p.height / 2 - b / 2 : d / 2 - p.height / 2 + b / 2})`), A.attr("transform", `translate(0,${h ? p.height / 2 + b / 2 : -p.height / 2 - b / 2})`), T(n, j), n.intersect = function(e) {
1465
+ if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
1466
+ let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
1467
+ return o = h ? [
1468
+ {
1469
+ x: r - p.width / 2,
1470
+ y: i - a / 2
1471
+ },
1472
+ {
1473
+ x: r + p.width / 2,
1474
+ y: i - a / 2
1475
+ },
1476
+ {
1477
+ x: r + p.width / 2,
1478
+ y: i - a / 2 + p.height + b
1479
+ },
1480
+ {
1481
+ x: r + u / 2,
1482
+ y: i - a / 2 + p.height + b
1483
+ },
1484
+ {
1485
+ x: r + u / 2,
1486
+ y: i + a / 2
1487
+ },
1488
+ {
1489
+ x: r - u / 2,
1490
+ y: i + a / 2
1491
+ },
1492
+ {
1493
+ x: r - u / 2,
1494
+ y: i - a / 2 + p.height + b
1495
+ },
1496
+ {
1497
+ x: r - p.width / 2,
1498
+ y: i - a / 2 + p.height + b
1499
+ }
1500
+ ] : [
1501
+ {
1502
+ x: r - u / 2,
1503
+ y: i - a / 2
1504
+ },
1505
+ {
1506
+ x: r + u / 2,
1507
+ y: i - a / 2
1508
+ },
1509
+ {
1510
+ x: r + u / 2,
1511
+ y: i - a / 2 + d
1512
+ },
1513
+ {
1514
+ x: r + p.width / 2,
1515
+ y: i - a / 2 + d
1516
+ },
1517
+ {
1518
+ x: r + p.width / 2 / 2,
1519
+ y: i + a / 2
1520
+ },
1521
+ {
1522
+ x: r - p.width / 2,
1523
+ y: i + a / 2
1524
+ },
1525
+ {
1526
+ x: r - p.width / 2,
1527
+ y: i - a / 2 + d
1528
+ },
1529
+ {
1530
+ x: r - u / 2,
1531
+ y: i - a / 2 + d
1532
+ }
1533
+ ], W.polygon(n, o, e);
1534
+ }, f;
1535
+ }
1536
+ e(Re, "imageSquare");
1537
+ async function ze(e, t) {
1538
+ let { labelStyles: n, nodeStyles: r } = v(t);
1539
+ t.labelStyle = n;
1540
+ let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = Math.max(c.width + (o ?? 0) * 2, t?.width ?? 0), u = Math.max(c.height + (a ?? 0) * 2, t?.height ?? 0), d = [
1541
+ {
1542
+ x: 0,
1543
+ y: 0
1544
+ },
1545
+ {
1546
+ x: l,
1547
+ y: 0
1548
+ },
1549
+ {
1550
+ x: l + 3 * u / 6,
1551
+ y: -u
1552
+ },
1553
+ {
1554
+ x: -3 * u / 6,
1555
+ y: -u
1556
+ }
1557
+ ], f, { cssStyles: p } = t;
1558
+ if (t.look === "handDrawn") {
1559
+ let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
1560
+ f = s.insert(() => i, ":first-child").attr("transform", `translate(${-l / 2}, ${u / 2})`), p && f.attr("style", p);
1561
+ } else f = q(s, l, u, d);
1562
+ return r && f.attr("style", r), t.width = l, t.height = u, T(t, f), t.intersect = function(e) {
1563
+ return W.polygon(t, d, e);
1564
+ }, s;
1565
+ }
1566
+ e(ze, "inv_trapezoid");
1567
+ async function Be(e, t, n) {
1568
+ let { labelStyles: r, nodeStyles: i } = v(t);
1569
+ t.labelStyle = r;
1570
+ let { shapeSvg: a, bbox: o } = await C(e, t, E(t)), s = Math.max(o.width + n.labelPaddingX * 2, t?.width || 0), c = Math.max(o.height + n.labelPaddingY * 2, t?.height || 0), l = -s / 2, u = -c / 2, d, { rx: f, ry: m } = t, { cssStyles: h } = t;
1571
+ if (n?.rx && n.ry && (f = n.rx, m = n.ry), t.look === "handDrawn") {
1572
+ let e = S.svg(a), n = y(t, {}), r = f || m ? e.path(N(l, u, s, c, f || 0), n) : e.rectangle(l, u, s, c, n);
1573
+ d = a.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", p(h));
1574
+ } else d = a.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", i).attr("rx", p(f)).attr("ry", p(m)).attr("x", l).attr("y", u).attr("width", s).attr("height", c);
1575
+ return T(t, d), t.calcIntersect = function(e, t) {
1576
+ return W.rect(e, t);
1577
+ }, t.intersect = function(e) {
1578
+ return W.rect(t, e);
1579
+ }, a;
1580
+ }
1581
+ e(Be, "drawRect");
1582
+ async function Ve(e, t) {
1583
+ let { shapeSvg: n, bbox: r, label: i } = await C(e, t, "label"), a = n.insert("rect", ":first-child");
1584
+ return a.attr("width", .1).attr("height", .1), n.attr("class", "label edgeLabel"), i.attr("transform", `translate(${-(r.width / 2) - (r.x - (r.left ?? 0))}, ${-(r.height / 2) - (r.y - (r.top ?? 0))})`), T(t, a), t.intersect = function(e) {
1585
+ return W.rect(t, e);
1586
+ }, n;
1587
+ }
1588
+ e(Ve, "labelRect");
1589
+ async function He(e, t) {
1590
+ let { labelStyles: n, nodeStyles: r } = v(t);
1591
+ t.labelStyle = n;
1592
+ let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ?? c.height) + a, u = (t?.width ?? c.width) + o, d = [
1593
+ {
1594
+ x: 0,
1595
+ y: 0
1596
+ },
1597
+ {
1598
+ x: u + 3 * l / 6,
1599
+ y: 0
1600
+ },
1601
+ {
1602
+ x: u,
1603
+ y: -l
1604
+ },
1605
+ {
1606
+ x: -(3 * l) / 6,
1607
+ y: -l
1608
+ }
1609
+ ], f, { cssStyles: p } = t;
1610
+ if (t.look === "handDrawn") {
1611
+ let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
1612
+ f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
1613
+ } else f = q(s, u, l, d);
1614
+ return r && f.attr("style", r), t.width = u, t.height = l, T(t, f), t.intersect = function(e) {
1615
+ return W.polygon(t, d, e);
1616
+ }, s;
1617
+ }
1618
+ e(He, "lean_left");
1619
+ async function Ue(e, t) {
1620
+ let { labelStyles: n, nodeStyles: r } = v(t);
1621
+ t.labelStyle = n;
1622
+ let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ?? c.height) + a, u = (t?.width ?? c.width) + o, d = [
1623
+ {
1624
+ x: -3 * l / 6,
1625
+ y: 0
1626
+ },
1627
+ {
1628
+ x: u,
1629
+ y: 0
1630
+ },
1631
+ {
1632
+ x: u + 3 * l / 6,
1633
+ y: -l
1634
+ },
1635
+ {
1636
+ x: 0,
1637
+ y: -l
1638
+ }
1639
+ ], f, { cssStyles: p } = t;
1640
+ if (t.look === "handDrawn") {
1641
+ let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
1642
+ f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
1643
+ } else f = q(s, u, l, d);
1644
+ return r && f.attr("style", r), t.width = u, t.height = l, T(t, f), t.intersect = function(e) {
1645
+ return W.polygon(t, d, e);
1646
+ }, s;
1647
+ }
1648
+ e(Ue, "lean_right");
1649
+ function We(e, n) {
1650
+ let { labelStyles: r, nodeStyles: i } = v(n);
1651
+ n.label = "", n.labelStyle = r;
1652
+ let a = e.insert("g").attr("class", E(n)).attr("id", n.domId ?? n.id), { cssStyles: o } = n, s = Math.max(35, n?.width ?? 0), c = Math.max(35, n?.height ?? 0), l = [
1653
+ {
1654
+ x: s,
1655
+ y: 0
1656
+ },
1657
+ {
1658
+ x: 0,
1659
+ y: c + 7 / 2
1660
+ },
1661
+ {
1662
+ x: s - 14,
1663
+ y: c + 7 / 2
1664
+ },
1665
+ {
1666
+ x: 0,
1667
+ y: 2 * c
1668
+ },
1669
+ {
1670
+ x: s,
1671
+ y: c - 7 / 2
1672
+ },
1673
+ {
1674
+ x: 14,
1675
+ y: c - 7 / 2
1676
+ }
1677
+ ], u = S.svg(a), d = y(n, {});
1678
+ n.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
1679
+ let f = D(l), p = u.path(f, d), m = a.insert(() => p, ":first-child");
1680
+ return m.attr("class", "outer-path"), o && n.look !== "handDrawn" && m.selectAll("path").attr("style", o), i && n.look !== "handDrawn" && m.selectAll("path").attr("style", i), m.attr("transform", `translate(-${s / 2},${-c})`), T(n, m), n.intersect = function(e) {
1681
+ return t.info("lightningBolt intersect", n, e), W.polygon(n, l, e);
1682
+ }, a;
1683
+ }
1684
+ e(We, "lightningBolt");
1685
+ var Ge = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
1686
+ `M${e},${t + a}`,
1687
+ `a${i},${a} 0,0,0 ${n},0`,
1688
+ `a${i},${a} 0,0,0 ${-n},0`,
1689
+ `l0,${r}`,
1690
+ `a${i},${a} 0,0,0 ${n},0`,
1691
+ `l0,${-r}`,
1692
+ `M${e},${t + a + o}`,
1693
+ `a${i},${a} 0,0,0 ${n},0`
1694
+ ].join(" "), "createCylinderPathD"), Ke = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
1695
+ `M${e},${t + a}`,
1696
+ `M${e + n},${t + a}`,
1697
+ `a${i},${a} 0,0,0 ${-n},0`,
1698
+ `l0,${r}`,
1699
+ `a${i},${a} 0,0,0 ${n},0`,
1700
+ `l0,${-r}`,
1701
+ `M${e},${t + a + o}`,
1702
+ `a${i},${a} 0,0,0 ${n},0`
1703
+ ].join(" "), "createOuterCylinderPathD"), qe = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), Je = 10, Ye = 10;
1704
+ async function Xe(e, t) {
1705
+ let { labelStyles: n, nodeStyles: r } = v(t);
1706
+ t.labelStyle = n;
1707
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 24 : i;
1708
+ if (t.width || t.height) {
1709
+ let e = t.width ?? 0;
1710
+ t.width = (t.width ?? 0) - a, t.width < Ye && (t.width = Ye);
1711
+ let n = e / 2 / (2.5 + e / 50);
1712
+ t.height = (t.height ?? 0) - o - n * 3, t.height < Je && (t.height = Je);
1713
+ }
1714
+ let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = u / 2, f = d / (2.5 + u / 50), m = (t?.height ? t?.height : c.height) + f + o * 2, h = m * .1, g, { cssStyles: _ } = t;
1715
+ if (t.look === "handDrawn") {
1716
+ let e = S.svg(s), n = Ke(0, 0, u, m, d, f, h), r = qe(0, f, u, m, d, f), i = y(t, {}), a = e.path(n, i), o = e.path(r, i);
1717
+ s.insert(() => o, ":first-child").attr("class", "line"), g = s.insert(() => a, ":first-child"), g.attr("class", "basic label-container"), _ && g.attr("style", _);
1718
+ } else {
1719
+ let e = Ge(0, 0, u, m, d, f, h);
1720
+ g = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", p(_)).attr("style", r);
1721
+ }
1722
+ return g.attr("label-offset-y", f), g.attr("transform", `translate(${-u / 2}, ${-(m / 2 + f)})`), T(t, g), l.attr("transform", `translate(${-(c.width / 2) - (c.x - (c.left ?? 0))}, ${-(c.height / 2) + f - (c.y - (c.top ?? 0))})`), t.intersect = function(e) {
1723
+ let n = W.rect(t, e), r = n.x - (t.x ?? 0);
1724
+ if (d != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) {
1725
+ let i = f * f * (1 - r * r / (d * d));
1726
+ i > 0 && (i = Math.sqrt(i)), i = f - i, e.y - (t.y ?? 0) > 0 && (i = -i), n.y += i;
1727
+ }
1728
+ return n;
1729
+ }, s;
1730
+ }
1731
+ e(Xe, "linedCylinder");
1732
+ async function Ze(e, t) {
1733
+ let { labelStyles: n, nodeStyles: r } = v(t);
1734
+ t.labelStyle = n;
1735
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
1736
+ (t.width || t.height) && (t.width = (t.width ?? 0) * 10 / 11 - a * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - o * 2, t.height < 10 && (t.height = 10));
1737
+ let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ? t?.width : c.width) + (a ?? 0) * 2, d = (t?.height ? t?.height : c.height) + (o ?? 0) * 2, f = t.look === "neo" ? d / 4 : d / 8, p = d + f, { cssStyles: m } = t, h = S.svg(s), g = y(t, {});
1738
+ t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
1739
+ let _ = [
1740
+ {
1741
+ x: -u / 2 - u / 2 * .1,
1742
+ y: -p / 2
1743
+ },
1744
+ {
1745
+ x: -u / 2 - u / 2 * .1,
1746
+ y: p / 2
1747
+ },
1748
+ ...O(-u / 2 - u / 2 * .1, p / 2, u / 2 + u / 2 * .1, p / 2, f, .8),
1749
+ {
1750
+ x: u / 2 + u / 2 * .1,
1751
+ y: -p / 2
1752
+ },
1753
+ {
1754
+ x: -u / 2 - u / 2 * .1,
1755
+ y: -p / 2
1756
+ },
1757
+ {
1758
+ x: -u / 2,
1759
+ y: -p / 2
1760
+ },
1761
+ {
1762
+ x: -u / 2,
1763
+ y: p / 2 * 1.1
1764
+ },
1765
+ {
1766
+ x: -u / 2,
1767
+ y: -p / 2
1768
+ }
1769
+ ], b = h.polygon(_.map((e) => [e.x, e.y]), g), x = s.insert(() => b, ":first-child");
1770
+ return x.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && x.selectAll("path").attr("style", m), r && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), x.attr("transform", `translate(0,${-f / 2})`), l.attr("transform", `translate(${-u / 2 + (t.padding ?? 0) + u / 2 * .1 / 2 - (c.x - (c.left ?? 0))},${-d / 2 + (t.padding ?? 0) - f / 2 - (c.y - (c.top ?? 0))})`), T(t, x), t.intersect = function(e) {
1771
+ return W.polygon(t, _, e);
1772
+ }, s;
1773
+ }
1774
+ e(Ze, "linedWaveEdgedRect");
1775
+ async function Qe(e, t) {
1776
+ let { labelStyles: n, nodeStyles: r } = v(t);
1777
+ t.labelStyle = n;
1778
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, s = t.look === "neo" ? 10 : 5;
1779
+ (t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - a * 2 - 2 * s, 10), t.height = Math.max((t?.height ?? 0) - o * 2 - 2 * s, 10));
1780
+ let { shapeSvg: c, bbox: l, label: u } = await C(e, t, E(t)), d = (t?.width ? t?.width : l.width) + a * 2 + 2 * s, f = (t?.height ? t?.height : l.height) + o * 2 + 2 * s, p = d - 2 * s, m = f - 2 * s, h = -p / 2, g = -m / 2, { cssStyles: _ } = t, b = S.svg(c), x = y(t, {}), w = [
1781
+ {
1782
+ x: h - s,
1783
+ y: g + s
1784
+ },
1785
+ {
1786
+ x: h - s,
1787
+ y: g + m + s
1788
+ },
1789
+ {
1790
+ x: h + p - s,
1791
+ y: g + m + s
1792
+ },
1793
+ {
1794
+ x: h + p - s,
1795
+ y: g + m
1796
+ },
1797
+ {
1798
+ x: h + p,
1799
+ y: g + m
1800
+ },
1801
+ {
1802
+ x: h + p,
1803
+ y: g + m - s
1804
+ },
1805
+ {
1806
+ x: h + p + s,
1807
+ y: g + m - s
1808
+ },
1809
+ {
1810
+ x: h + p + s,
1811
+ y: g - s
1812
+ },
1813
+ {
1814
+ x: h + s,
1815
+ y: g - s
1816
+ },
1817
+ {
1818
+ x: h + s,
1819
+ y: g
1820
+ },
1821
+ {
1822
+ x: h,
1823
+ y: g
1824
+ },
1825
+ {
1826
+ x: h,
1827
+ y: g + s
1828
+ }
1829
+ ], O = [
1830
+ {
1831
+ x: h,
1832
+ y: g + s
1833
+ },
1834
+ {
1835
+ x: h + p - s,
1836
+ y: g + s
1837
+ },
1838
+ {
1839
+ x: h + p - s,
1840
+ y: g + m
1841
+ },
1842
+ {
1843
+ x: h + p,
1844
+ y: g + m
1845
+ },
1846
+ {
1847
+ x: h + p,
1848
+ y: g
1849
+ },
1850
+ {
1851
+ x: h,
1852
+ y: g
1853
+ }
1854
+ ];
1855
+ t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
1856
+ let k = D(w), j = b.path(k, x), M = D(O), N = b.path(M, x);
1857
+ t.look !== "handDrawn" && (j = A(j), N = A(N));
1858
+ let P = c.insert("g", ":first-child");
1859
+ return P.insert(() => j), P.insert(() => N), P.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && P.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && P.selectAll("path").attr("style", r), u.attr("transform", `translate(${-(l.width / 2) - s - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + s - (l.y - (l.top ?? 0))})`), T(t, P), t.intersect = function(e) {
1860
+ return W.polygon(t, w, e);
1861
+ }, c;
1862
+ }
1863
+ e(Qe, "multiRect");
1864
+ async function $e(e, t) {
1865
+ let { labelStyles: n, nodeStyles: r } = v(t);
1866
+ t.labelStyle = n;
1867
+ let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.padding ?? 0, c = t.look === "neo" ? 16 : s, l = t.look === "neo" ? 12 : s, u = !0;
1868
+ (t.width || t.height) && (u = !1, t.width = (t?.width ?? 0) - c * 2, t.height = (t?.height ?? 0) - l * 3);
1869
+ let d = Math.max(a.width, t?.width ?? 0) + c * 2, f = Math.max(a.height, t?.height ?? 0) + l * 3, p = t.look === "neo" ? f / 4 : f / 8, m = f + (u ? p / 2 : -p / 2), h = -d / 2, g = -m / 2, { cssStyles: _ } = t, b = O(h - 10, g + m + 10, h + d - 10, g + m + 10, p, .8), x = b?.[b.length - 1], w = [
1870
+ {
1871
+ x: h - 10,
1872
+ y: g + 10
1873
+ },
1874
+ {
1875
+ x: h - 10,
1876
+ y: g + m + 10
1877
+ },
1878
+ ...b,
1879
+ {
1880
+ x: h + d - 10,
1881
+ y: x.y - 10
1882
+ },
1883
+ {
1884
+ x: h + d,
1885
+ y: x.y - 10
1886
+ },
1887
+ {
1888
+ x: h + d,
1889
+ y: x.y - 20
1890
+ },
1891
+ {
1892
+ x: h + d + 10,
1893
+ y: x.y - 20
1894
+ },
1895
+ {
1896
+ x: h + d + 10,
1897
+ y: g - 10
1898
+ },
1899
+ {
1900
+ x: h + 10,
1901
+ y: g - 10
1902
+ },
1903
+ {
1904
+ x: h + 10,
1905
+ y: g
1906
+ },
1907
+ {
1908
+ x: h,
1909
+ y: g
1910
+ },
1911
+ {
1912
+ x: h,
1913
+ y: g + 10
1914
+ }
1915
+ ], k = [
1916
+ {
1917
+ x: h,
1918
+ y: g + 10
1919
+ },
1920
+ {
1921
+ x: h + d - 10,
1922
+ y: g + 10
1923
+ },
1924
+ {
1925
+ x: h + d - 10,
1926
+ y: x.y - 10
1927
+ },
1928
+ {
1929
+ x: h + d,
1930
+ y: x.y - 10
1931
+ },
1932
+ {
1933
+ x: h + d,
1934
+ y: g
1935
+ },
1936
+ {
1937
+ x: h,
1938
+ y: g
1939
+ }
1940
+ ], A = S.svg(i), j = y(t, {});
1941
+ t.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid");
1942
+ let M = D(w), N = A.path(M, j), P = D(k), F = A.path(P, j), I = i.insert(() => N, ":first-child");
1943
+ return I.insert(() => F), I.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && I.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && I.selectAll("path").attr("style", r), I.attr("transform", `translate(0,${-p / 2})`), o.attr("transform", `translate(${-(a.width / 2) - 10 - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + 10 - p / 2 - (a.y - (a.top ?? 0))})`), T(t, I), t.intersect = function(e) {
1944
+ return W.polygon(t, w, e);
1945
+ }, i;
1946
+ }
1947
+ e($e, "multiWaveEdgedRectangle");
1948
+ async function et(e, t, { config: { themeVariables: n } }) {
1949
+ let { labelStyles: i, nodeStyles: o } = v(t);
1950
+ t.labelStyle = i, t.useHtmlLabels || a(r()) || (t.centerLabel = !0);
1951
+ let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = Math.max(c.width + (t.padding ?? 0) * 2, t?.width ?? 0), d = Math.max(c.height + (t.padding ?? 0) * 2, t?.height ?? 0), f = -u / 2, p = -d / 2, { cssStyles: m } = t, h = S.svg(s), g = y(t, {
1952
+ fill: n.noteBkgColor,
1953
+ stroke: n.noteBorderColor
1954
+ });
1955
+ t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
1956
+ let _ = h.rectangle(f, p, u, d, g), b = s.insert(() => _, ":first-child");
1957
+ return b.attr("class", "basic label-container outer-path"), l.attr("class", "label noteLabel"), m && t.look !== "handDrawn" && b.selectAll("path").attr("style", m), o && t.look !== "handDrawn" && b.selectAll("path").attr("style", o), l.attr("transform", `translate(${-c.width / 2 - (c.x - (c.left ?? 0))}, ${-(c.height / 2) - (c.y - (c.top ?? 0))})`), T(t, b), t.intersect = function(e) {
1958
+ return W.rect(t, e);
1959
+ }, s;
1960
+ }
1961
+ e(et, "note");
1962
+ var tt = /* @__PURE__ */ e((e, t, n) => [
1963
+ `M${e + n / 2},${t}`,
1964
+ `L${e + n},${t - n / 2}`,
1965
+ `L${e + n / 2},${t - n}`,
1966
+ `L${e},${t - n / 2}`,
1967
+ "Z"
1968
+ ].join(" "), "createDecisionBoxPathD");
1969
+ async function nt(e, t) {
1970
+ let { labelStyles: n, nodeStyles: r } = v(t);
1971
+ t.labelStyle = n;
1972
+ let { shapeSvg: i, bbox: a } = await C(e, t, E(t)), o = a.width + (t.padding ?? 0) + (a.height + (t.padding ?? 0)), s = .5, c = [
1973
+ {
1974
+ x: o / 2,
1975
+ y: 0
1976
+ },
1977
+ {
1978
+ x: o,
1979
+ y: -o / 2
1980
+ },
1981
+ {
1982
+ x: o / 2,
1983
+ y: -o
1984
+ },
1985
+ {
1986
+ x: 0,
1987
+ y: -o / 2
1988
+ }
1989
+ ], l, { cssStyles: u } = t;
1990
+ if (t.look === "handDrawn") {
1991
+ let e = S.svg(i), n = y(t, {}), r = tt(0, 0, o), a = e.path(r, n);
1992
+ l = i.insert(() => a, ":first-child").attr("transform", `translate(${-o / 2 + s}, ${o / 2})`), u && l.attr("style", u);
1993
+ } else l = q(i, o, o, c), l.attr("transform", `translate(${-o / 2 + s}, ${o / 2})`);
1994
+ return r && l.attr("style", r), T(t, l), t.calcIntersect = function(e, t) {
1995
+ let n = e.width, r = [
1996
+ {
1997
+ x: n / 2,
1998
+ y: 0
1999
+ },
2000
+ {
2001
+ x: n,
2002
+ y: -n / 2
2003
+ },
2004
+ {
2005
+ x: n / 2,
2006
+ y: -n
2007
+ },
2008
+ {
2009
+ x: 0,
2010
+ y: -n / 2
2011
+ }
2012
+ ], i = W.polygon(e, r, t);
2013
+ return {
2014
+ x: i.x - .5,
2015
+ y: i.y - .5
2016
+ };
2017
+ }, t.intersect = function(e) {
2018
+ return this.calcIntersect(t, e);
2019
+ }, i;
2020
+ }
2021
+ e(nt, "question");
2022
+ async function rt(e, t) {
2023
+ let { labelStyles: n, nodeStyles: r } = v(t);
2024
+ t.labelStyle = n;
2025
+ let i = t.padding ?? 0, a = t.look === "neo" ? 21 : i ?? 0, o = t.look === "neo" ? 12 : i ?? 0, { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ?? c.width) + (t.look === "neo" ? a * 2 : a), d = (t?.height ?? c.height) + (t.look === "neo" ? o * 2 : o), f = -u / 2, p = -d / 2, m = p / 2, h = [
2026
+ {
2027
+ x: f + m,
2028
+ y: p
2029
+ },
2030
+ {
2031
+ x: f,
2032
+ y: 0
2033
+ },
2034
+ {
2035
+ x: f + m,
2036
+ y: -p
2037
+ },
2038
+ {
2039
+ x: -f,
2040
+ y: -p
2041
+ },
2042
+ {
2043
+ x: -f,
2044
+ y: p
2045
+ }
2046
+ ], { cssStyles: g } = t, _ = S.svg(s), b = y(t, {});
2047
+ t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
2048
+ let x = D(h), w = _.path(x, b), O = s.insert(() => w, ":first-child");
2049
+ return O.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && O.selectAll("path").attr("style", g), r && t.look !== "handDrawn" && O.selectAll("path").attr("style", r), O.attr("transform", `translate(${-m / 2},0)`), l.attr("transform", `translate(${-m / 2 - c.width / 2 - (c.x - (c.left ?? 0))}, ${-(c.height / 2) - (c.y - (c.top ?? 0))})`), T(t, O), t.intersect = function(e) {
2050
+ return W.polygon(t, h, e);
2051
+ }, s;
2052
+ }
2053
+ e(rt, "rect_left_inv_arrow");
2054
+ async function it(e, n) {
2055
+ let { labelStyles: r, nodeStyles: o } = v(n);
2056
+ n.labelStyle = r;
2057
+ let s;
2058
+ s = n.cssClasses ? "node " + n.cssClasses : "node default";
2059
+ let c = e.insert("g").attr("class", s).attr("id", n.domId || n.id), l = c.insert("g"), d = c.insert("g").attr("class", "label").attr("style", o), f = n.description, p = n.label, m = await M(d, p, n.labelStyle, !0, !0), h = {
2060
+ width: 0,
2061
+ height: 0
2062
+ };
2063
+ if (a(i())) {
2064
+ let e = m.children[0], t = u(m);
2065
+ h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2066
+ }
2067
+ t.info("Text 2", f);
2068
+ let g = f || [], _ = m.getBBox(), b = await M(d, Array.isArray(g) ? g.join("<br/>") : g, n.labelStyle, !0, !0), x = b.children[0], C = u(b);
2069
+ h = x.getBoundingClientRect(), C.attr("width", h.width), C.attr("height", h.height);
2070
+ let w = (n.padding || 0) / 2;
2071
+ u(b).attr("transform", "translate( " + (h.width > _.width ? 0 : (_.width - h.width) / 2) + ", " + (_.height + w + 5) + ")"), u(m).attr("transform", "translate( " + (h.width < _.width ? 0 : -(_.width - h.width) / 2) + ", 0)"), h = d.node().getBBox(), d.attr("transform", "translate(" + -h.width / 2 + ", " + (-h.height / 2 - w + 3) + ")");
2072
+ let E = h.width + (n.padding || 0), D = h.height + (n.padding || 0), O = -h.width / 2 - w, k = -h.height / 2 - w, A, j;
2073
+ if (n.look === "handDrawn") {
2074
+ let e = S.svg(c), r = y(n, {}), i = e.path(N(O, k, E, D, n.rx || 0), r), a = e.line(-h.width / 2 - w, -h.height / 2 - w + _.height + w, h.width / 2 + w, -h.height / 2 - w + _.height + w, r);
2075
+ j = c.insert(() => (t.debug("Rough node insert CXC", i), a), ":first-child"), A = c.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child");
2076
+ } else A = l.insert("rect", ":first-child"), j = l.insert("line"), A.attr("class", "outer title-state").attr("style", o).attr("x", -h.width / 2 - w).attr("y", -h.height / 2 - w).attr("width", h.width + (n.padding || 0)).attr("height", h.height + (n.padding || 0)), j.attr("class", "divider").attr("x1", -h.width / 2 - w).attr("x2", h.width / 2 + w).attr("y1", -h.height / 2 - w + _.height + w).attr("y2", -h.height / 2 - w + _.height + w);
2077
+ return T(n, A), n.intersect = function(e) {
2078
+ return W.rect(n, e);
2079
+ }, c;
2080
+ }
2081
+ e(it, "rectWithTitle");
2082
+ async function at(e, t, { config: { themeVariables: n } }) {
2083
+ let r = n?.radius ?? 5;
2084
+ return Be(e, t, {
2085
+ rx: r,
2086
+ ry: r,
2087
+ classes: "",
2088
+ labelPaddingX: (t?.padding ?? 0) * 1,
2089
+ labelPaddingY: (t?.padding ?? 0) * 1
2090
+ });
2091
+ }
2092
+ e(at, "roundedRect");
2093
+ var Z = 8;
2094
+ async function ot(e, t) {
2095
+ let { labelStyles: n, nodeStyles: r } = v(t);
2096
+ t.labelStyle = n;
2097
+ let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = (t?.width ?? s.width) + i * 2 + (t.look === "neo" ? Z : Z * 2), u = (t?.height ?? s.height) + a * 2, d = l - Z, f = u, m = Z - l / 2, h = -u / 2, { cssStyles: g } = t, _ = S.svg(o), b = y(t, {});
2098
+ t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
2099
+ let x = [
2100
+ {
2101
+ x: m,
2102
+ y: h
2103
+ },
2104
+ {
2105
+ x: m + d,
2106
+ y: h
2107
+ },
2108
+ {
2109
+ x: m + d,
2110
+ y: h + f
2111
+ },
2112
+ {
2113
+ x: m - Z,
2114
+ y: h + f
2115
+ },
2116
+ {
2117
+ x: m - Z,
2118
+ y: h
2119
+ },
2120
+ {
2121
+ x: m,
2122
+ y: h
2123
+ },
2124
+ {
2125
+ x: m,
2126
+ y: h + f
2127
+ }
2128
+ ], w = _.polygon(x.map((e) => [e.x, e.y]), b), D = o.insert(() => w, ":first-child");
2129
+ return D.attr("class", "basic label-container outer-path").attr("style", p(g)), r && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), g && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), c.attr("transform", `translate(${Z / 2 - s.width / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) - (s.y - (s.top ?? 0))})`), T(t, D), t.intersect = function(e) {
2130
+ return W.rect(t, e);
2131
+ }, o;
2132
+ }
2133
+ e(ot, "shadedProcess");
2134
+ async function st(e, t) {
2135
+ let { labelStyles: n, nodeStyles: r } = v(t);
2136
+ t.labelStyle = n;
2137
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
2138
+ (t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - a * 2, 10), t.height = Math.max((t?.height ?? 0) / 1.5 - o * 2, 10));
2139
+ let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = ((t?.height ? t?.height : c.height) + o * 2) * 1.5, f = u, p = d / 1.5, m = -f / 2, h = -p / 2, { cssStyles: g } = t, _ = S.svg(s), b = y(t, {});
2140
+ t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
2141
+ let x = [
2142
+ {
2143
+ x: m,
2144
+ y: h
2145
+ },
2146
+ {
2147
+ x: m,
2148
+ y: h + p
2149
+ },
2150
+ {
2151
+ x: m + f,
2152
+ y: h + p
2153
+ },
2154
+ {
2155
+ x: m + f,
2156
+ y: h - p / 2
2157
+ }
2158
+ ], w = D(x), O = _.path(w, b), k = s.insert(() => O, ":first-child");
2159
+ return k.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && k.selectChildren("path").attr("style", g), r && t.look !== "handDrawn" && k.selectChildren("path").attr("style", r), k.attr("transform", `translate(0, ${p / 4})`), l.attr("transform", `translate(${-f / 2 + (t.padding ?? 0) - (c.x - (c.left ?? 0))}, ${-p / 4 + (t.padding ?? 0) - (c.y - (c.top ?? 0))})`), T(t, k), t.intersect = function(e) {
2160
+ return W.polygon(t, x, e);
2161
+ }, s;
2162
+ }
2163
+ e(st, "slopedRect");
2164
+ async function ct(e, t) {
2165
+ let n = t.padding ?? 0, r = t.look === "neo" ? 16 : n * 2, i = t.look === "neo" ? 12 : n;
2166
+ return Be(e, t, {
2167
+ rx: 0,
2168
+ ry: 0,
2169
+ classes: "",
2170
+ labelPaddingX: t.labelPaddingX ?? r,
2171
+ labelPaddingY: i
2172
+ });
2173
+ }
2174
+ e(ct, "squareRect");
2175
+ async function lt(e, t) {
2176
+ let { labelStyles: n, nodeStyles: r } = v(t);
2177
+ t.labelStyle = n;
2178
+ let i = t.padding ?? 0, a = t.look === "neo" ? 20 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = c.height + (t.look === "neo" ? o * 2 : o), u = c.width + l / 4 + (t.look === "neo" ? a * 2 : a), d = l / 2, { cssStyles: f } = t, p = S.svg(s), m = y(t, {});
2179
+ t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
2180
+ let h = [
2181
+ {
2182
+ x: -u / 2 + d,
2183
+ y: -l / 2
2184
+ },
2185
+ {
2186
+ x: u / 2 - d,
2187
+ y: -l / 2
2188
+ },
2189
+ ...k(-u / 2 + d, 0, d, 50, 90, 270),
2190
+ {
2191
+ x: u / 2 - d,
2192
+ y: l / 2
2193
+ },
2194
+ ...k(u / 2 - d, 0, d, 50, 270, 450)
2195
+ ], g = D(h), _ = p.path(g, m), b = s.insert(() => _, ":first-child");
2196
+ return b.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && b.selectChildren("path").attr("style", f), r && t.look !== "handDrawn" && b.selectChildren("path").attr("style", r), T(t, b), t.intersect = function(e) {
2197
+ return W.polygon(t, h, e);
2198
+ }, s;
2199
+ }
2200
+ e(lt, "stadium");
2201
+ async function ut(e, t) {
2202
+ return Be(e, t, {
2203
+ rx: t.look === "neo" ? 3 : 5,
2204
+ ry: t.look === "neo" ? 3 : 5,
2205
+ classes: "flowchart-node"
2206
+ });
2207
+ }
2208
+ e(ut, "state");
2209
+ function dt(e, t, { config: { themeVariables: n } }) {
2210
+ let { labelStyles: r, nodeStyles: i } = v(t);
2211
+ t.labelStyle = r;
2212
+ let { cssStyles: a } = t, { lineColor: o, stateBorder: s, nodeBorder: c, nodeShadow: l } = n;
2213
+ (t.width || t.height) && ((t.width ?? 0) < 14 && (t.width = 14), (t.height ?? 0) < 14 && (t.height = 14)), t.width ||= 14, t.height ||= 14;
2214
+ let u = e.insert("g").attr("class", "node default").attr("id", t.domId ?? t.id), d = S.svg(u), f = y(t, {});
2215
+ t.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid");
2216
+ let p = d.circle(0, 0, t.width, {
2217
+ ...f,
2218
+ stroke: o,
2219
+ strokeWidth: 2
2220
+ }), m = s ?? c, h = (t.width ?? 0) * 5 / 14, g = d.circle(0, 0, h, {
2221
+ ...f,
2222
+ fill: m,
2223
+ stroke: m,
2224
+ strokeWidth: 2,
2225
+ fillStyle: "solid"
2226
+ }), _ = u.insert(() => p, ":first-child");
2227
+ if (_.insert(() => g), t.look !== "handDrawn" && _.attr("class", "outer-path"), a && _.selectAll("path").attr("style", a), i && _.selectAll("path").attr("style", i), t.width < 25 && l && t.look !== "handDrawn") {
2228
+ let t = e.node()?.ownerSVGElement?.id ?? "", n = t ? `${t}-drop-shadow-small` : "drop-shadow-small";
2229
+ _.attr("style", `filter:url(#${n})`);
2230
+ }
2231
+ return T(t, _), t.intersect = function(e) {
2232
+ return W.circle(t, (t.width ?? 0) / 2, e);
2233
+ }, u;
2234
+ }
2235
+ e(dt, "stateEnd");
2236
+ function ft(e, t, { config: { themeVariables: n } }) {
2237
+ let { lineColor: r, nodeShadow: i } = n;
2238
+ (t.width || t.height) && ((t.width ?? 0) < 14 && (t.width = 14), (t.height ?? 0) < 14 && (t.height = 14)), t.width ||= 14, t.height ||= 14;
2239
+ let a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), o;
2240
+ if (t.look === "handDrawn") {
2241
+ let e = S.svg(a).circle(0, 0, t.width, _(r));
2242
+ o = a.insert(() => e), o.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14);
2243
+ } else o = a.insert("circle", ":first-child"), o.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14);
2244
+ if (t.width < 25 && i && t.look !== "handDrawn") {
2245
+ let t = e.node()?.ownerSVGElement?.id ?? "", n = t ? `${t}-drop-shadow-small` : "drop-shadow-small";
2246
+ o.attr("style", `filter:url(#${n})`);
2247
+ }
2248
+ return T(t, o), t.intersect = function(e) {
2249
+ return W.circle(t, (t.width ?? 7) / 2, e);
2250
+ }, a;
2251
+ }
2252
+ e(ft, "stateStart");
2253
+ var pt = 8;
2254
+ async function mt(e, t) {
2255
+ let { labelStyles: n, nodeStyles: r } = v(t);
2256
+ t.labelStyle = n;
2257
+ let i = t?.padding ?? 8, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ?? c.width) + 2 * pt + a, u = (t?.height ?? c.height) + o, d = l - 2 * pt, f = u, m = -l / 2, h = -u / 2, g = [
2258
+ {
2259
+ x: 0,
2260
+ y: 0
2261
+ },
2262
+ {
2263
+ x: d,
2264
+ y: 0
2265
+ },
2266
+ {
2267
+ x: d,
2268
+ y: -f
2269
+ },
2270
+ {
2271
+ x: 0,
2272
+ y: -f
2273
+ },
2274
+ {
2275
+ x: 0,
2276
+ y: 0
2277
+ },
2278
+ {
2279
+ x: -8,
2280
+ y: 0
2281
+ },
2282
+ {
2283
+ x: d + 8,
2284
+ y: 0
2285
+ },
2286
+ {
2287
+ x: d + 8,
2288
+ y: -f
2289
+ },
2290
+ {
2291
+ x: -8,
2292
+ y: -f
2293
+ },
2294
+ {
2295
+ x: -8,
2296
+ y: 0
2297
+ }
2298
+ ];
2299
+ if (t.look === "handDrawn") {
2300
+ let e = S.svg(s), n = y(t, {}), r = e.rectangle(m, h, d + 16, f, n), i = e.line(m + pt, h, m + pt, h + f, n), a = e.line(m + pt + d, h, m + pt + d, h + f, n);
2301
+ s.insert(() => i, ":first-child"), s.insert(() => a, ":first-child");
2302
+ let o = s.insert(() => r, ":first-child"), { cssStyles: c } = t;
2303
+ o.attr("class", "basic label-container").attr("style", p(c)), T(t, o);
2304
+ } else {
2305
+ let e = q(s, d, f, g);
2306
+ r && e.attr("style", r), T(t, e);
2307
+ }
2308
+ return t.intersect = function(e) {
2309
+ return W.polygon(t, g, e);
2310
+ }, s;
2311
+ }
2312
+ e(mt, "subroutine");
2313
+ var ht = .2;
2314
+ async function gt(e, t) {
2315
+ let { labelStyles: n, nodeStyles: r } = v(t);
2316
+ t.labelStyle = n;
2317
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
2318
+ (t.width || t.height) && (t.height = Math.max((t?.height ?? 0) - o * 2, 10), t.width = Math.max((t?.width ?? 0) - a * 2 - ht * (t.height + o * 2), 10));
2319
+ let { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ? t?.height : c.height) + o * 2, u = ht * l, d = ht * l, f = (t?.width ? t?.width : c.width) + a * 2 + u - u, p = l, m = -f / 2, h = -p / 2, { cssStyles: g } = t, _ = S.svg(s), b = y(t, {}), x = [
2320
+ {
2321
+ x: m - u / 2,
2322
+ y: h
2323
+ },
2324
+ {
2325
+ x: m + f + u / 2,
2326
+ y: h
2327
+ },
2328
+ {
2329
+ x: m + f + u / 2,
2330
+ y: h + p
2331
+ },
2332
+ {
2333
+ x: m - u / 2,
2334
+ y: h + p
2335
+ }
2336
+ ], w = [
2337
+ {
2338
+ x: m + f - u / 2,
2339
+ y: h + p
2340
+ },
2341
+ {
2342
+ x: m + f + u / 2,
2343
+ y: h + p
2344
+ },
2345
+ {
2346
+ x: m + f + u / 2,
2347
+ y: h + p - d
2348
+ }
2349
+ ];
2350
+ t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
2351
+ let O = D(x), k = _.path(O, b), A = D(w), j = _.path(A, {
2352
+ ...b,
2353
+ fillStyle: "solid"
2354
+ }), M = s.insert(() => j, ":first-child");
2355
+ return M.insert(() => k, ":first-child"), M.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && M.selectAll("path").attr("style", g), r && t.look !== "handDrawn" && M.selectAll("path").attr("style", r), T(t, M), t.intersect = function(e) {
2356
+ return W.polygon(t, x, e);
2357
+ }, s;
2358
+ }
2359
+ e(gt, "taggedRect");
2360
+ async function _t(e, t) {
2361
+ let { labelStyles: n, nodeStyles: r } = v(t);
2362
+ t.labelStyle = n;
2363
+ let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), c = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), l = c / 8, u = .2 * s, d = .2 * c, f = c + l, { cssStyles: p } = t, m = S.svg(i), h = y(t, {});
2364
+ t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
2365
+ let g = [
2366
+ {
2367
+ x: -s / 2 - s / 2 * .1,
2368
+ y: f / 2
2369
+ },
2370
+ ...O(-s / 2 - s / 2 * .1, f / 2, s / 2 + s / 2 * .1, f / 2, l, .8),
2371
+ {
2372
+ x: s / 2 + s / 2 * .1,
2373
+ y: -f / 2
2374
+ },
2375
+ {
2376
+ x: -s / 2 - s / 2 * .1,
2377
+ y: -f / 2
2378
+ }
2379
+ ], _ = -s / 2 + s / 2 * .1, b = -f / 2 - d * .4, x = [
2380
+ {
2381
+ x: _ + s - u,
2382
+ y: (b + c) * 1.3
2383
+ },
2384
+ {
2385
+ x: _ + s,
2386
+ y: b + c - d
2387
+ },
2388
+ {
2389
+ x: _ + s,
2390
+ y: (b + c) * .9
2391
+ },
2392
+ ...O(_ + s, (b + c) * 1.25, _ + s - u, (b + c) * 1.3, -c * .02, .5)
2393
+ ], w = D(g), k = m.path(w, h), A = D(x), j = m.path(A, {
2394
+ ...h,
2395
+ fillStyle: "solid"
2396
+ }), M = i.insert(() => j, ":first-child");
2397
+ return M.insert(() => k, ":first-child"), M.attr("class", "basic label-container outer-path"), p && t.look !== "handDrawn" && M.selectAll("path").attr("style", p), r && t.look !== "handDrawn" && M.selectAll("path").attr("style", r), M.attr("transform", `translate(0,${-l / 2})`), o.attr("transform", `translate(${-s / 2 + (t.padding ?? 0) - (a.x - (a.left ?? 0))},${-c / 2 + (t.padding ?? 0) - l / 2 - (a.y - (a.top ?? 0))})`), T(t, M), t.intersect = function(e) {
2398
+ return W.polygon(t, g, e);
2399
+ }, i;
2400
+ }
2401
+ e(_t, "taggedWaveEdgedRectangle");
2402
+ async function vt(e, t) {
2403
+ let { labelStyles: n, nodeStyles: r } = v(t);
2404
+ t.labelStyle = n;
2405
+ let { shapeSvg: i, bbox: a } = await C(e, t, E(t)), o = Math.max(a.width + (t.padding ?? 0), t?.width || 0), s = Math.max(a.height + (t.padding ?? 0), t?.height || 0), c = -o / 2, l = -s / 2, u = i.insert("rect", ":first-child");
2406
+ return u.attr("class", "text").attr("style", r).attr("rx", 0).attr("ry", 0).attr("x", c).attr("y", l).attr("width", o).attr("height", s), T(t, u), t.intersect = function(e) {
2407
+ return W.rect(t, e);
2408
+ }, i;
2409
+ }
2410
+ e(vt, "text");
2411
+ var yt = /* @__PURE__ */ e((e, t, n, r, i, a) => `M${e},${t}
2412
+ a${i},${a} 0,0,1 0,${-r}
2413
+ l${n},0
2414
+ a${i},${a} 0,0,1 0,${r}
2415
+ M${n},${-r}
2416
+ a${i},${a} 0,0,0 0,${r}
2417
+ l${-n},0`, "createCylinderPathD"), bt = /* @__PURE__ */ e((e, t, n, r, i, a) => [
2418
+ `M${e},${t}`,
2419
+ `M${e + n},${t}`,
2420
+ `a${i},${a} 0,0,0 0,${-r}`,
2421
+ `l${-n},0`,
2422
+ `a${i},${a} 0,0,0 0,${r}`,
2423
+ `l${n},0`
2424
+ ].join(" "), "createOuterCylinderPathD"), xt = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e + n / 2},${-r / 2}`, `a${i},${a} 0,0,0 0,${r}`].join(" "), "createInnerCylinderPathD"), St = 5, Ct = 10;
2425
+ async function wt(e, t) {
2426
+ let { labelStyles: n, nodeStyles: r } = v(t);
2427
+ t.labelStyle = n;
2428
+ let i = t.padding ?? 0, a = t.look === "neo" ? 12 : i / 2;
2429
+ if (t.width || t.height) {
2430
+ let e = t.height ?? 0;
2431
+ t.height = (t.height ?? 0) - a, t.height < St && (t.height = St);
2432
+ let n = e / 2 / (2.5 + e / 50);
2433
+ t.width = (t.width ?? 0) - a - n * 3, t.width < Ct && (t.width = Ct);
2434
+ }
2435
+ let { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = (t.height ? t.height : s.height) + a, u = l / 2, d = u / (2.5 + l / 50), f = (t.width ? t.width : s.width) + d + a, { cssStyles: m } = t, h;
2436
+ if (t.look === "handDrawn") {
2437
+ let e = S.svg(o), n = bt(0, 0, f, l, d, u), r = xt(0, 0, f, l, d, u), i = e.path(n, y(t, {})), a = e.path(r, y(t, { fill: "none" }));
2438
+ h = o.insert(() => a, ":first-child"), h = o.insert(() => i, ":first-child"), h.attr("class", "basic label-container"), m && h.attr("style", m);
2439
+ } else {
2440
+ let e = yt(0, 0, f, l, d, u);
2441
+ h = o.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", p(m)).attr("style", r), h.attr("class", "basic label-container outer-path"), m && h.selectAll("path").attr("style", m), r && h.selectAll("path").attr("style", r);
2442
+ }
2443
+ return h.attr("label-offset-x", d), h.attr("transform", `translate(${-f / 2}, ${l / 2} )`), c.attr("transform", `translate(${-(s.width / 2) - d - (s.x - (s.left ?? 0))}, ${-(s.height / 2) - (s.y - (s.top ?? 0))})`), T(t, h), t.intersect = function(e) {
2444
+ let n = W.rect(t, e), r = n.y - (t.y ?? 0);
2445
+ if (u != 0 && (Math.abs(r) < (t.height ?? 0) / 2 || Math.abs(r) == (t.height ?? 0) / 2 && Math.abs(n.x - (t.x ?? 0)) > (t.width ?? 0) / 2 - d)) {
2446
+ let i = d * d * (1 - r * r / (u * u));
2447
+ i != 0 && (i = Math.sqrt(Math.abs(i))), i = d - i, e.x - (t.x ?? 0) > 0 && (i = -i), n.x += i;
2448
+ }
2449
+ return n;
2450
+ }, o;
2451
+ }
2452
+ e(wt, "tiltedCylinder");
2453
+ async function Tt(e, t) {
2454
+ let { labelStyles: n, nodeStyles: r } = v(t);
2455
+ t.labelStyle = n;
2456
+ let i = t.padding ?? 0, a = (t.look, i), o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ?? c.height) + a, u = (t?.width ?? c.width) + o, d = [
2457
+ {
2458
+ x: -3 * l / 6,
2459
+ y: 0
2460
+ },
2461
+ {
2462
+ x: u + 3 * l / 6,
2463
+ y: 0
2464
+ },
2465
+ {
2466
+ x: u,
2467
+ y: -l
2468
+ },
2469
+ {
2470
+ x: 0,
2471
+ y: -l
2472
+ }
2473
+ ], f, { cssStyles: p } = t;
2474
+ if (t.look === "handDrawn") {
2475
+ let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
2476
+ f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
2477
+ } else f = q(s, u, l, d);
2478
+ return r && f.attr("style", r), t.width = u, t.height = l, T(t, f), t.intersect = function(e) {
2479
+ return W.polygon(t, d, e);
2480
+ }, s;
2481
+ }
2482
+ e(Tt, "trapezoid");
2483
+ async function Et(e, t) {
2484
+ let { labelStyles: n, nodeStyles: r } = v(t);
2485
+ t.labelStyle = n;
2486
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
2487
+ (t.width || t.height) && (t.height = (t.height ?? 0) - o * 2, t.height < 5 && (t.height = 5), t.width = (t.width ?? 0) - a * 2, t.width < 15 && (t.width = 15));
2488
+ let { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ? t?.width : c.width) + a * 2, u = (t?.height ? t?.height : c.height) + o * 2, { cssStyles: d } = t, f = S.svg(s), p = y(t, {});
2489
+ t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
2490
+ let m = [
2491
+ {
2492
+ x: -l / 2 * .8,
2493
+ y: -u / 2
2494
+ },
2495
+ {
2496
+ x: l / 2 * .8,
2497
+ y: -u / 2
2498
+ },
2499
+ {
2500
+ x: l / 2,
2501
+ y: -u / 2 * .6
2502
+ },
2503
+ {
2504
+ x: l / 2,
2505
+ y: u / 2
2506
+ },
2507
+ {
2508
+ x: -l / 2,
2509
+ y: u / 2
2510
+ },
2511
+ {
2512
+ x: -l / 2,
2513
+ y: -u / 2 * .6
2514
+ }
2515
+ ], h = D(m), g = f.path(h, p), _ = s.insert(() => g, ":first-child");
2516
+ return _.attr("class", "basic label-container outer-path"), d && t.look !== "handDrawn" && _.selectChildren("path").attr("style", d), r && t.look !== "handDrawn" && _.selectChildren("path").attr("style", r), T(t, _), t.intersect = function(e) {
2517
+ return W.polygon(t, m, e);
2518
+ }, s;
2519
+ }
2520
+ e(Et, "trapezoidalPentagon");
2521
+ var Dt = 10, Ot = 10;
2522
+ async function kt(e, r) {
2523
+ let { labelStyles: a, nodeStyles: o } = v(r);
2524
+ r.labelStyle = a;
2525
+ let s = r.padding ?? 0, c = r.look === "neo" ? s * 2 : s;
2526
+ (r.width || r.height) && (r.width = ((r?.width ?? 0) - c) / 2, r.width < Ot && (r.width = Ot), r.height = r?.height ?? 0, r.height < Dt && (r.height = Dt));
2527
+ let { shapeSvg: l, bbox: u, label: d } = await C(e, r, E(r)), f = n(i().flowchart?.htmlLabels), p = (r?.width ? r?.width : u.width) + c, m = r?.height ? r?.height : p + u.height, h = m, g = [
2528
+ {
2529
+ x: 0,
2530
+ y: 0
2531
+ },
2532
+ {
2533
+ x: h,
2534
+ y: 0
2535
+ },
2536
+ {
2537
+ x: h / 2,
2538
+ y: -m
2539
+ }
2540
+ ], { cssStyles: _ } = r, b = S.svg(l), x = y(r, {});
2541
+ r.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
2542
+ let w = D(g), O = b.path(w, x), k = l.insert(() => O, ":first-child").attr("transform", `translate(${-m / 2}, ${m / 2})`).attr("class", "outer-path");
2543
+ return _ && r.look !== "handDrawn" && k.selectChildren("path").attr("style", _), o && r.look !== "handDrawn" && k.selectChildren("path").attr("style", o), r.width = p, r.height = m, T(r, k), d.attr("transform", `translate(${-u.width / 2 - (u.x - (u.left ?? 0))}, ${m / 2 - (u.height + (r.padding ?? 0) / (f ? 2 : 1) - (u.y - (u.top ?? 0)))})`), r.intersect = function(e) {
2544
+ return t.info("Triangle intersect", r, g, e), W.polygon(r, g, e);
2545
+ }, l;
2546
+ }
2547
+ e(kt, "triangle");
2548
+ async function At(e, t) {
2549
+ let { labelStyles: n, nodeStyles: r } = v(t);
2550
+ t.labelStyle = n;
2551
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, s = !0;
2552
+ (t.width || t.height) && (s = !1, t.width = (t?.width ?? 0) - a * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - o * 2, t.height < 10 && (t.height = 10));
2553
+ let { shapeSvg: c, bbox: l, label: u } = await C(e, t, E(t)), d = (t?.width ? t?.width : l.width) + (a ?? 0) * 2, f = (t?.height ? t?.height : l.height) + (o ?? 0) * 2, p = t.look === "neo" ? f / 4 : f / 8, m = f + (s ? p : -p), { cssStyles: h } = t, g = 14 - d, _ = g > 0 ? g / 2 : 0, b = S.svg(c), x = y(t, {});
2554
+ t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
2555
+ let w = [
2556
+ {
2557
+ x: -d / 2 - _,
2558
+ y: m / 2
2559
+ },
2560
+ ...O(-d / 2 - _, m / 2, d / 2 + _, m / 2, p, .8),
2561
+ {
2562
+ x: d / 2 + _,
2563
+ y: -m / 2
2564
+ },
2565
+ {
2566
+ x: -d / 2 - _,
2567
+ y: -m / 2
2568
+ }
2569
+ ], k = D(w), A = b.path(k, x), j = c.insert(() => A, ":first-child");
2570
+ return j.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && j.selectAll("path").attr("style", h), r && t.look !== "handDrawn" && j.selectAll("path").attr("style", r), j.attr("transform", `translate(0,${-p / 2})`), u.attr("transform", `translate(${-d / 2 + (t.padding ?? 0) - (l.x - (l.left ?? 0))},${-f / 2 + (t.padding ?? 0) - p - (l.y - (l.top ?? 0))})`), T(t, j), t.intersect = function(e) {
2571
+ return W.polygon(t, w, e);
2572
+ }, c;
2573
+ }
2574
+ e(At, "waveEdgedRectangle");
2575
+ async function jt(e, t) {
2576
+ let { labelStyles: n, nodeStyles: r } = v(t);
2577
+ t.labelStyle = n;
2578
+ let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 20 : i;
2579
+ if (t.width || t.height) {
2580
+ t.width = t?.width ?? 0, t.width < 20 && (t.width = 20), t.height = t?.height ?? 0, t.height < 10 && (t.height = 10);
2581
+ let e = Math.min(t.height * .2, t.height / 4);
2582
+ t.height = Math.ceil(t.height - o - 20 / 9 * e), t.width -= a * 2;
2583
+ }
2584
+ let { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ? t?.width : c.width) + a * 2, u = (t?.height ? t?.height : c.height) + o, d = u / 8, f = u + d * 2, { cssStyles: p } = t, m = S.svg(s), h = y(t, {});
2585
+ t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
2586
+ let g = [
2587
+ {
2588
+ x: -l / 2,
2589
+ y: f / 2
2590
+ },
2591
+ ...O(-l / 2, f / 2, l / 2, f / 2, d, 1),
2592
+ {
2593
+ x: l / 2,
2594
+ y: -f / 2
2595
+ },
2596
+ ...O(l / 2, -f / 2, -l / 2, -f / 2, d, -1)
2597
+ ], _ = D(g), b = m.path(_, h), x = s.insert(() => b, ":first-child");
2598
+ return x.attr("class", "basic label-container"), p && t.look !== "handDrawn" && x.selectAll("path").attr("style", p), r && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), T(t, x), t.intersect = function(e) {
2599
+ return W.polygon(t, g, e);
2600
+ }, s;
2601
+ }
2602
+ e(jt, "waveRectangle");
2603
+ var Q = 10;
2604
+ async function Mt(e, t) {
2605
+ let { labelStyles: n, nodeStyles: r } = v(t);
2606
+ t.labelStyle = n;
2607
+ let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0;
2608
+ (t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - i * 2 - Q, 10), t.height = Math.max((t?.height ?? 0) - a * 2 - Q, 10));
2609
+ let { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = (t?.width ? t?.width : s.width) + i * 2 + Q, u = (t?.height ? t?.height : s.height) + a * 2 + Q, d = l - Q, f = u - Q, p = -d / 2, m = -f / 2, { cssStyles: h } = t, g = S.svg(o), _ = y(t, {}), b = [
2610
+ {
2611
+ x: p - Q,
2612
+ y: m - Q
2613
+ },
2614
+ {
2615
+ x: p - Q,
2616
+ y: m + f
2617
+ },
2618
+ {
2619
+ x: p + d,
2620
+ y: m + f
2621
+ },
2622
+ {
2623
+ x: p + d,
2624
+ y: m - Q
2625
+ }
2626
+ ], x = `M${p - Q},${m - Q} L${p + d},${m - Q} L${p + d},${m + f} L${p - Q},${m + f} L${p - Q},${m - Q}
2627
+ M${p - Q},${m} L${p + d},${m}
2628
+ M${p},${m - Q} L${p},${m + f}`;
2629
+ t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
2630
+ let w = g.path(x, _), D = o.insert(() => w, ":first-child");
2631
+ return D.attr("transform", `translate(${Q / 2}, ${Q / 2})`), D.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && D.selectAll("path").attr("style", h), r && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), c.attr("transform", `translate(${-(s.width / 2) + Q / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) + Q / 2 - (s.y - (s.top ?? 0))})`), T(t, D), t.intersect = function(e) {
2632
+ return W.polygon(t, b, e);
2633
+ }, o;
2634
+ }
2635
+ e(Mt, "windowPane");
2636
+ var Nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Pt = /* @__PURE__ */ new Set([
2637
+ "redux",
2638
+ "redux-dark",
2639
+ "redux-color",
2640
+ "redux-dark-color"
2641
+ ]);
2642
+ async function Ft(e, t) {
2643
+ let i = t;
2644
+ i.alias && (t.label = i.alias);
2645
+ let { theme: a, themeVariables: o } = r(), { rowEven: s, rowOdd: c, nodeBorder: l, borderColorArray: f } = o;
2646
+ if (t.look === "handDrawn") {
2647
+ let { themeVariables: n } = r(), { background: i } = n;
2648
+ await Ft(e, {
2649
+ ...t,
2650
+ id: t.id + "-background",
2651
+ domId: (t.domId || t.id) + "-background",
2652
+ look: "default",
2653
+ cssStyles: ["stroke: none", `fill: ${i}`]
2654
+ });
2655
+ }
2656
+ let p = r();
2657
+ t.useHtmlLabels = p.htmlLabels;
2658
+ let m = p.er?.diagramPadding ?? 10, h = p.er?.entityPadding ?? 6, { cssStyles: g } = t, { labelStyles: _, nodeStyles: b } = v(t);
2659
+ if (i.attributes.length === 0 && t.label) {
2660
+ let r = {
2661
+ rx: 0,
2662
+ ry: 0,
2663
+ labelPaddingX: m,
2664
+ labelPaddingY: m * 1.5,
2665
+ classes: ""
2666
+ };
2667
+ d(t.label, p) + r.labelPaddingX * 2 < p.er.minEntityWidth && (t.width = p.er.minEntityWidth);
2668
+ let o = await Be(e, t, r);
2669
+ if (a != null && Nt.has(a)) {
2670
+ let e = i.colorIndex ?? 0;
2671
+ o.attr("data-color-id", `color-${e % f.length}`);
2672
+ }
2673
+ if (!n(p.htmlLabels)) {
2674
+ let e = o.select("text"), t = e.node()?.getBBox();
2675
+ e.attr("transform", `translate(${-t.width / 2}, 0)`);
2676
+ }
2677
+ return o;
2678
+ }
2679
+ p.htmlLabels || (m *= 1.25, h *= 1.25);
2680
+ let x = E(t);
2681
+ x ||= "node default";
2682
+ let C = e.insert("g").attr("class", x).attr("id", t.domId || t.id), w = await It(C, t.label ?? "", p, 0, 0, ["name"], _);
2683
+ w.height += h;
2684
+ let D = 0, O = [], k = [], A = 0, j = 0, M = 0, N = 0, P = !0, F = !0;
2685
+ for (let e of i.attributes) {
2686
+ let t = await It(C, e.type, p, 0, D, ["attribute-type"], _);
2687
+ A = Math.max(A, t.width + m);
2688
+ let n = await It(C, e.name, p, 0, D, ["attribute-name"], _);
2689
+ j = Math.max(j, n.width + m);
2690
+ let r = await It(C, e.keys.join(), p, 0, D, ["attribute-keys"], _);
2691
+ M = Math.max(M, r.width + m);
2692
+ let i = await It(C, e.comment, p, 0, D, ["attribute-comment"], _);
2693
+ N = Math.max(N, i.width + m);
2694
+ let a = Math.max(t.height, n.height, r.height, i.height) + h;
2695
+ k.push({
2696
+ yOffset: D,
2697
+ rowHeight: a
2698
+ }), D += a;
2699
+ }
2700
+ let I = 4;
2701
+ M <= m && (P = !1, M = 0, I--), N <= m && (F = !1, N = 0, I--);
2702
+ let ee = C.node().getBBox();
2703
+ if (w.width + m * 2 - (A + j + M + N) > 0) {
2704
+ let e = w.width + m * 2 - (A + j + M + N);
2705
+ A += e / I, j += e / I, M > 0 && (M += e / I), N > 0 && (N += e / I);
2706
+ }
2707
+ let te = A + j + M + N, L = S.svg(C), R = y(t, {});
2708
+ t.look !== "handDrawn" && (R.roughness = 0, R.fillStyle = "solid");
2709
+ let ne = 0;
2710
+ k.length > 0 && (ne = k.reduce((e, t) => e + (t?.rowHeight ?? 0), 0));
2711
+ let z = Math.max(ee.width + m * 2, t?.width || 0, te), B = Math.max((ne ?? 0) + w.height, t?.height || 0), V = -z / 2, H = -B / 2;
2712
+ if (C.selectAll("g:not(:first-child)").each((e, t, n) => {
2713
+ let r = u(n[t]), i = r.attr("transform"), a = 0, o = 0;
2714
+ if (i) {
2715
+ let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
2716
+ e && (a = parseFloat(e[1]), o = parseFloat(e[2]), r.attr("class").includes("attribute-name") ? a += A : r.attr("class").includes("attribute-keys") ? a += A + j : r.attr("class").includes("attribute-comment") && (a += A + j + M));
2717
+ }
2718
+ r.attr("transform", `translate(${V + m / 2 + a}, ${o + H + w.height + h / 2})`);
2719
+ }), C.select(".name").attr("transform", "translate(" + -w.width / 2 + ", " + (H + h / 2) + ")"), a != null && Nt.has(a)) {
2720
+ let e = i.colorIndex ?? 0;
2721
+ C.attr("data-color-id", `color-${e % f.length}`);
2722
+ }
2723
+ let re = L.rectangle(V, H, z, B, R), ie = C.insert(() => re, ":first-child").attr("class", "outer-path").attr("style", g.join(""));
2724
+ O.push(0);
2725
+ for (let [e, t] of k.entries()) {
2726
+ let n = (e + 1) % 2 == 0 && t.yOffset !== 0, r = L.rectangle(V, w.height + H + t?.yOffset, z, t?.rowHeight, {
2727
+ ...R,
2728
+ fill: n ? s : c,
2729
+ stroke: l
2730
+ });
2731
+ C.insert(() => r, "g.label").attr("style", g.join("")).attr("class", `row-rect-${n ? "even" : "odd"}`);
2732
+ }
2733
+ let U = 1e-4, G = Lt(V, w.height + H, z + V, w.height + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R);
2734
+ if (C.insert(() => K).attr("class", "divider"), G = Lt(A + V, w.height + H, A + V, B + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider"), P) {
2735
+ let e = A + j + V;
2736
+ G = Lt(e, w.height + H, e, B + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider");
2737
+ }
2738
+ if (F) {
2739
+ let e = A + j + M + V;
2740
+ G = Lt(e, w.height + H, e, B + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider");
2741
+ }
2742
+ for (let e of O) {
2743
+ let t = w.height + H + e;
2744
+ G = Lt(V, t, z + V, t, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider");
2745
+ }
2746
+ if (T(t, ie), b && t.look !== "handDrawn") if (a != null && Pt.has(a)) C.selectAll("path").attr("style", b);
2747
+ else {
2748
+ let e = b.split(";")?.filter((e) => e.includes("stroke"))?.map((e) => `${e}`).join("; ");
2749
+ C.selectAll("path").attr("style", e ?? ""), C.selectAll(".row-rect-even path").attr("style", b);
2750
+ }
2751
+ return t.intersect = function(e) {
2752
+ return W.rect(t, e);
2753
+ }, C;
2754
+ }
2755
+ e(Ft, "erBox");
2756
+ async function It(e, t, r, i = 0, a = 0, o = [], c = "") {
2757
+ let l = e.insert("g").attr("class", `label ${o.join(" ")}`).attr("transform", `translate(${i}, ${a})`).attr("style", c);
2758
+ t !== s(t) && (t = s(t), t = t.replaceAll("<", "&lt;").replaceAll(">", "&gt;"));
2759
+ let f = l.node().appendChild(await b(l, t, {
2760
+ width: d(t, r) + 100,
2761
+ style: c,
2762
+ useHtmlLabels: r.htmlLabels
2763
+ }, r));
2764
+ if (t.includes("&lt;") || t.includes("&gt;")) {
2765
+ let e = f.children[0];
2766
+ for (e.textContent = e.textContent.replaceAll("&lt;", "<").replaceAll("&gt;", ">"); e.childNodes[0];) e = e.childNodes[0], e.textContent = e.textContent.replaceAll("&lt;", "<").replaceAll("&gt;", ">");
2767
+ }
2768
+ let p = f.getBBox();
2769
+ if (n(r.htmlLabels)) {
2770
+ let e = f.children[0];
2771
+ e.style.textAlign = "start";
2772
+ let t = u(f);
2773
+ p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
2774
+ }
2775
+ return p;
2776
+ }
2777
+ e(It, "addText");
2778
+ function Lt(e, t, n, r, i) {
2779
+ return e === n ? [
2780
+ {
2781
+ x: e - i / 2,
2782
+ y: t
2783
+ },
2784
+ {
2785
+ x: e + i / 2,
2786
+ y: t
2787
+ },
2788
+ {
2789
+ x: n + i / 2,
2790
+ y: r
2791
+ },
2792
+ {
2793
+ x: n - i / 2,
2794
+ y: r
2795
+ }
2796
+ ] : [
2797
+ {
2798
+ x: e,
2799
+ y: t - i / 2
2800
+ },
2801
+ {
2802
+ x: e,
2803
+ y: t + i / 2
2804
+ },
2805
+ {
2806
+ x: n,
2807
+ y: r + i / 2
2808
+ },
2809
+ {
2810
+ x: n,
2811
+ y: r - i / 2
2812
+ }
2813
+ ];
2814
+ }
2815
+ e(Lt, "lineToPolygon");
2816
+ async function Rt(e, t, n, r, i = n.class.padding ?? 12) {
2817
+ let a = r ? 0 : 3, o = e.insert("g").attr("class", E(t)).attr("id", t.domId || t.id), s = null, c = null, l = null, u = null, d = 0, f = 0, p = 0;
2818
+ if (s = o.insert("g").attr("class", "annotation-group text"), t.annotations.length > 0) {
2819
+ let e = t.annotations[0];
2820
+ await zt(s, { text: `\xAB${e}\xBB` }, 0), d = s.node().getBBox().height;
2821
+ }
2822
+ c = o.insert("g").attr("class", "label-group text"), await zt(c, t, 0, ["font-weight: bolder"]);
2823
+ let m = c.node().getBBox();
2824
+ f = m.height, l = o.insert("g").attr("class", "members-group text");
2825
+ let h = 0;
2826
+ for (let e of t.members) {
2827
+ let t = await zt(l, e, h, [e.parseClassifier()]);
2828
+ h += t + a;
2829
+ }
2830
+ p = l.node().getBBox().height, p <= 0 && (p = i / 2), u = o.insert("g").attr("class", "methods-group text");
2831
+ let g = 0;
2832
+ for (let e of t.methods) {
2833
+ let t = await zt(u, e, g, [e.parseClassifier()]);
2834
+ g += t + a;
2835
+ }
2836
+ let _ = o.node().getBBox();
2837
+ if (s !== null) {
2838
+ let e = s.node().getBBox();
2839
+ s.attr("transform", `translate(${-e.width / 2})`);
2840
+ }
2841
+ return c.attr("transform", `translate(${-m.width / 2}, ${d})`), _ = o.node().getBBox(), l.attr("transform", `translate(0, ${d + f + i * 2})`), _ = o.node().getBBox(), u.attr("transform", `translate(0, ${d + f + (p ? p + i * 4 : i * 2)})`), _ = o.node().getBBox(), {
2842
+ shapeSvg: o,
2843
+ bbox: _
2844
+ };
2845
+ }
2846
+ e(Rt, "textHelper");
2847
+ async function zt(t, i, a, s = []) {
2848
+ let c = t.insert("g").attr("class", "label").attr("style", s.join("; ")), p = r(), m = "useHtmlLabels" in i ? i.useHtmlLabels : n(p.htmlLabels) ?? !0, h = "";
2849
+ h = "text" in i ? i.text : i.label, !m && h.startsWith("\\") && (h = h.substring(1)), o(h) && (m = !0);
2850
+ let g = await b(c, l(f(h)), {
2851
+ width: d(h, p) + 50,
2852
+ classes: "markdown-node-label",
2853
+ useHtmlLabels: m
2854
+ }, p), _, v = 1;
2855
+ if (m) {
2856
+ let t = g.children[0], n = u(g);
2857
+ v = t.innerHTML.split("<br>").length, t.innerHTML.includes("</math>") && (v += t.innerHTML.split("<mrow>").length - 1);
2858
+ let r = t.getElementsByTagName("img");
2859
+ if (r) {
2860
+ let t = h.replace(/<img[^>]*>/g, "").trim() === "";
2861
+ await Promise.all([...r].map((n) => new Promise((r) => {
2862
+ function i() {
2863
+ if (n.style.display = "flex", n.style.flexDirection = "column", t) {
2864
+ let e = p.fontSize?.toString() ?? window.getComputedStyle(document.body).fontSize, t = parseInt(e, 10) * 5 + "px";
2865
+ n.style.minWidth = t, n.style.maxWidth = t;
2866
+ } else n.style.width = "100%";
2867
+ r(n);
2868
+ }
2869
+ e(i, "setupImage"), setTimeout(() => {
2870
+ n.complete && i();
2871
+ }), n.addEventListener("error", i), n.addEventListener("load", i);
2872
+ })));
2873
+ }
2874
+ _ = t.getBoundingClientRect(), n.attr("width", _.width), n.attr("height", _.height);
2875
+ } else {
2876
+ s.includes("font-weight: bolder") && u(g).selectAll("tspan").attr("font-weight", ""), v = g.children.length;
2877
+ let e = g.children[0];
2878
+ (g.textContent === "" || g.textContent.includes("&gt")) && (e.textContent = h[0] + h.substring(1).replaceAll("&gt;", ">").replaceAll("&lt;", "<").trim(), h[1] === " " && (e.textContent = e.textContent[0] + " " + e.textContent.substring(1))), e.textContent === "undefined" && (e.textContent = ""), _ = g.getBBox();
2879
+ }
2880
+ return c.attr("transform", "translate(0," + (-_.height / (2 * v) + a) + ")"), _.height;
2881
+ }
2882
+ e(zt, "addText");
2883
+ async function Bt(e, t) {
2884
+ let r = i(), { themeVariables: a } = r, { useGradient: o } = a, s = r.class.padding ?? 12, c = s, l = t.useHtmlLabels ?? n(r.htmlLabels) ?? !0, d = t;
2885
+ d.annotations = d.annotations ?? [], d.members = d.members ?? [], d.methods = d.methods ?? [];
2886
+ let { shapeSvg: f, bbox: p } = await Rt(e, t, r, l, c), { labelStyles: m, nodeStyles: h } = v(t);
2887
+ t.labelStyle = m, t.cssStyles = d.styles || "";
2888
+ let g = d.styles?.join(";") || h || "";
2889
+ t.cssStyles ||= g.replaceAll("!important", "").split(";");
2890
+ let _ = d.members.length === 0 && d.methods.length === 0 && !r.class?.hideEmptyMembersBox, b = S.svg(f), x = y(t, {});
2891
+ t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
2892
+ let C = Math.max(t.width ?? 0, p.width), w = Math.max(t.height ?? 0, p.height), E = (t.height ?? 0) > p.height;
2893
+ d.members.length === 0 && d.methods.length === 0 ? w += c : d.members.length > 0 && d.methods.length === 0 && (w += c * 2);
2894
+ let D = -C / 2, O = -w / 2, k = _ ? s * 2 : d.members.length === 0 && d.methods.length === 0 ? -s : 0;
2895
+ E && (k = s * 2);
2896
+ let A = b.rectangle(D - s, O - s - (_ ? s : d.members.length === 0 && d.methods.length === 0 ? -s / 2 : 0), C + 2 * s, w + 2 * s + k, x), j = f.insert(() => A, ":first-child");
2897
+ j.attr("class", "basic label-container outer-path");
2898
+ let M = j.node().getBBox(), N = f.select(".annotation-group").node().getBBox().height - (_ ? s / 2 : 0) || 0, P = f.select(".label-group").node().getBBox().height - (_ ? s / 2 : 0) || 0, F = f.select(".members-group").node().getBBox().height - (_ ? s / 2 : 0) || 0, I = (N + P + O + s - (O - s - (_ ? s : d.members.length === 0 && d.methods.length === 0 ? -s / 2 : 0))) / 2;
2899
+ if (f.selectAll(".text").each((e, t, n) => {
2900
+ let i = u(n[t]), a = i.attr("transform"), o = 0;
2901
+ if (a) {
2902
+ let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
2903
+ e && (o = parseFloat(e[2]));
2904
+ }
2905
+ let p = o + O + s - (_ ? s : d.members.length === 0 && d.methods.length === 0 ? -s / 2 : 0);
2906
+ if (i.attr("class").includes("methods-group")) {
2907
+ let e = Math.max(F, c / 2);
2908
+ p = E ? Math.max(I, N + P + e + O + c * 2 + s) + c * 2 : N + P + e + O + c * 4 + s;
2909
+ }
2910
+ d.members.length === 0 && d.methods.length === 0 && r.class?.hideEmptyMembersBox && (p = d.annotations.length > 0 ? o - c : o), l || (p -= 4);
2911
+ let m = D;
2912
+ (i.attr("class").includes("label-group") || i.attr("class").includes("annotation-group")) && (m = -i.node()?.getBBox().width / 2 || 0, f.selectAll("text").each(function(e, t, n) {
2913
+ window.getComputedStyle(n[t]).textAnchor === "middle" && (m = 0);
2914
+ })), i.attr("transform", `translate(${m}, ${p})`);
2915
+ }), d.members.length > 0 || d.methods.length > 0 || _) {
2916
+ let e = N + P + O + s, n = b.line(M.x, e, M.x + M.width, e + .001, x);
2917
+ f.insert(() => n).attr("class", `divider${t.look === "neo" && !o ? " neo-line" : ""}`).attr("style", g);
2918
+ }
2919
+ if (_ || d.members.length > 0 || d.methods.length > 0) {
2920
+ let e = N + P + F + O + c * 2 + s, n = b.line(M.x, E ? Math.max(I, e) : e, M.x + M.width, (E ? Math.max(I, e) : e) + .001, x);
2921
+ f.insert(() => n).attr("class", `divider${t.look === "neo" && !o ? " neo-line" : ""}`).attr("style", g);
2922
+ }
2923
+ if (d.look !== "handDrawn" && f.selectAll("path").attr("style", g), j.select(":nth-child(2)").attr("style", g), f.selectAll(".divider").select("path").attr("style", g), t.labelStyle ? f.selectAll("span").attr("style", t.labelStyle) : f.selectAll("span").attr("style", g), !l) {
2924
+ let e = RegExp(/color\s*:\s*([^;]*)/), t = e.exec(g);
2925
+ if (t) {
2926
+ let e = t[0].replace("color", "fill");
2927
+ f.selectAll("tspan").attr("style", e);
2928
+ } else if (m) {
2929
+ let t = e.exec(m);
2930
+ if (t) {
2931
+ let e = t[0].replace("color", "fill");
2932
+ f.selectAll("tspan").attr("style", e);
2933
+ }
2934
+ }
2935
+ }
2936
+ return T(t, j), t.intersect = function(e) {
2937
+ return W.rect(t, e);
2938
+ }, f;
2939
+ }
2940
+ e(Bt, "classBox");
2941
+ async function Vt(e, t) {
2942
+ let { labelStyles: n, nodeStyles: r } = v(t);
2943
+ t.labelStyle = n;
2944
+ let a = t, o = t, s = "verifyMethod" in t, c = E(t), { themeVariables: l } = i(), { borderColorArray: d, requirementEdgeLabelBackground: f } = l, p = e.insert("g").attr("class", c).attr("id", t.domId ?? t.id), m;
2945
+ m = s ? await $(p, `&lt;&lt;${a.type}&gt;&gt;`, 0, t.labelStyle) : await $(p, "&lt;&lt;Element&gt;&gt;", 0, t.labelStyle);
2946
+ let h = m, g = await $(p, a.name, h, t.labelStyle + "; font-weight: bold;");
2947
+ if (h += g + 20, s) {
2948
+ let e = await $(p, `${a.requirementId ? `ID: ${a.requirementId}` : ""}`, h, t.labelStyle);
2949
+ h += e;
2950
+ let n = await $(p, `${a.text ? `Text: ${a.text}` : ""}`, h, t.labelStyle);
2951
+ h += n;
2952
+ let r = await $(p, `${a.risk ? `Risk: ${a.risk}` : ""}`, h, t.labelStyle);
2953
+ h += r, await $(p, `${a.verifyMethod ? `Verification: ${a.verifyMethod}` : ""}`, h, t.labelStyle);
2954
+ } else {
2955
+ let e = await $(p, `${o.type ? `Type: ${o.type}` : ""}`, h, t.labelStyle);
2956
+ h += e, await $(p, `${o.docRef ? `Doc Ref: ${o.docRef}` : ""}`, h, t.labelStyle);
2957
+ }
2958
+ let _ = (p.node()?.getBBox().width ?? 200) + 20, b = (p.node()?.getBBox().height ?? 200) + 20, x = -_ / 2, C = -b / 2, w = S.svg(p), D = y(t, {});
2959
+ t.look !== "handDrawn" && (D.roughness = 0, D.fillStyle = "solid");
2960
+ let O = w.rectangle(x, C, _, b, D), k = p.insert(() => O, ":first-child");
2961
+ if (k.attr("class", "basic label-container outer-path").attr("style", r), d?.length) {
2962
+ let e = t.colorIndex ?? 0;
2963
+ p.attr("data-color-id", `color-${e % d.length}`);
2964
+ }
2965
+ if (p.selectAll(".label").each((e, t, n) => {
2966
+ let r = u(n[t]), i = r.attr("transform"), a = 0, o = 0;
2967
+ if (i) {
2968
+ let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
2969
+ e && (a = parseFloat(e[1]), o = parseFloat(e[2]));
2970
+ }
2971
+ let s = o - b / 2, c = x + 20 / 2;
2972
+ (t === 0 || t === 1) && (c = a), r.attr("transform", `translate(${c}, ${s + 20})`);
2973
+ }), h > m + g + 20) {
2974
+ let e = C + m + g + 20, n;
2975
+ if (t.look === "neo") {
2976
+ let t = .001, r = [
2977
+ [x, e],
2978
+ [x + _, e],
2979
+ [x + _, e + t],
2980
+ [x, e + t]
2981
+ ];
2982
+ n = w.polygon(r, D);
2983
+ } else n = w.line(x, e, x + _, e, D);
2984
+ p.insert(() => n).attr("class", "divider");
2985
+ }
2986
+ return T(t, k), t.intersect = function(e) {
2987
+ return W.rect(t, e);
2988
+ }, r && t.look !== "handDrawn" && (f || d?.length) && p.selectAll("path").attr("style", r), p;
2989
+ }
2990
+ e(Vt, "requirementBox");
2991
+ async function $(e, t, n, r = "") {
2992
+ if (t === "") return 0;
2993
+ let a = e.insert("g").attr("class", "label").attr("style", r), o = i(), s = o.htmlLabels ?? !0, c = await b(a, l(f(t)), {
2994
+ width: d(t, o) + 50,
2995
+ classes: "markdown-node-label",
2996
+ useHtmlLabels: s,
2997
+ style: r
2998
+ }, o), p;
2999
+ if (s) {
3000
+ let e = c.children[0], t = u(c);
3001
+ p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
3002
+ } else {
3003
+ let e = c.children[0];
3004
+ for (let t of e.children) r && t.setAttribute("style", r);
3005
+ p = c.getBBox(), p.height += 6;
3006
+ }
3007
+ return a.attr("transform", `translate(${-p.width / 2},${-p.height / 2 + n})`), p.height;
3008
+ }
3009
+ e($, "addText");
3010
+ var Ht = /* @__PURE__ */ e((e) => {
3011
+ switch (e) {
3012
+ case "Very High": return "red";
3013
+ case "High": return "orange";
3014
+ case "Medium": return null;
3015
+ case "Low": return "blue";
3016
+ case "Very Low": return "lightblue";
3017
+ }
3018
+ }, "colorFromPriority");
3019
+ async function Ut(e, t, { config: n }) {
3020
+ let { labelStyles: r, nodeStyles: i } = v(t);
3021
+ t.labelStyle = r || "";
3022
+ let a = t.width;
3023
+ t.width = (t.width ?? 200) - 10;
3024
+ let { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = t.padding || 10, u = "", d;
3025
+ "ticket" in t && t.ticket && n?.kanban?.ticketBaseUrl && (u = n?.kanban?.ticketBaseUrl.replace("#TICKET#", t.ticket), d = o.insert("svg:a", ":first-child").attr("class", "kanban-ticket-link").attr("xlink:href", u).attr("target", "_blank"));
3026
+ let f = {
3027
+ useHtmlLabels: t.useHtmlLabels,
3028
+ labelStyle: t.labelStyle || "",
3029
+ width: t.width,
3030
+ img: t.img,
3031
+ padding: t.padding || 8,
3032
+ centerLabel: !1
3033
+ }, p, m;
3034
+ d ? {label: p, bbox: m} = await w(d, "ticket" in t && t.ticket || "", f) : {label: p, bbox: m} = await w(o, "ticket" in t && t.ticket || "", f);
3035
+ let { label: h, bbox: g } = await w(o, "assigned" in t && t.assigned || "", f);
3036
+ t.width = a;
3037
+ let _ = t?.width || 0, b = Math.max(m.height, g.height) / 2, x = Math.max(s.height + 20, t?.height || 0) + b, D = -_ / 2, O = -x / 2;
3038
+ c.attr("transform", "translate(" + (l - _ / 2) + ", " + (-b - s.height / 2) + ")"), p.attr("transform", "translate(" + (l - _ / 2) + ", " + (-b + s.height / 2) + ")"), h.attr("transform", "translate(" + (l + _ / 2 - g.width - 20) + ", " + (-b + s.height / 2) + ")");
3039
+ let k, { rx: A, ry: j } = t, { cssStyles: M } = t;
3040
+ if (t.look === "handDrawn") {
3041
+ let e = S.svg(o), n = y(t, {}), r = A || j ? e.path(N(D, O, _, x, A || 0), n) : e.rectangle(D, O, _, x, n);
3042
+ k = o.insert(() => r, ":first-child"), k.attr("class", "basic label-container").attr("style", M || null);
3043
+ } else {
3044
+ k = o.insert("rect", ":first-child"), k.attr("class", "basic label-container __APA__").attr("style", i).attr("rx", A ?? 5).attr("ry", j ?? 5).attr("x", D).attr("y", O).attr("width", _).attr("height", x);
3045
+ let e = "priority" in t && t.priority;
3046
+ if (e) {
3047
+ let t = o.append("line"), n = D + 2, r = O + Math.floor((A ?? 0) / 2), i = O + x - Math.floor((A ?? 0) / 2);
3048
+ t.attr("x1", n).attr("y1", r).attr("x2", n).attr("y2", i).attr("stroke-width", "4").attr("stroke", Ht(e));
3049
+ }
3050
+ }
3051
+ return T(t, k), t.height = x, t.intersect = function(e) {
3052
+ return W.rect(t, e);
3053
+ }, o;
3054
+ }
3055
+ e(Ut, "kanbanItem");
3056
+ async function Wt(e, n) {
3057
+ let { labelStyles: r, nodeStyles: i } = v(n);
3058
+ n.labelStyle = r;
3059
+ let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await C(e, n, E(n)), l = o.width + 10 * s, u = o.height + 8 * s, d = .15 * l, { cssStyles: f } = n, m = o.width + 20, h = o.height + 20, g = Math.max(l, m), _ = Math.max(u, h);
3060
+ c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`);
3061
+ let b, x = `M0 0
3062
+ a${d},${d} 1 0,0 ${g * .25},${-1 * _ * .1}
3063
+ a${d},${d} 1 0,0 ${g * .25},0
3064
+ a${d},${d} 1 0,0 ${g * .25},0
3065
+ a${d},${d} 1 0,0 ${g * .25},${_ * .1}
3066
+
3067
+ a${d},${d} 1 0,0 ${g * .15},${_ * .33}
3068
+ a${d * .8},${d * .8} 1 0,0 0,${_ * .34}
3069
+ a${d},${d} 1 0,0 ${-1 * g * .15},${_ * .33}
3070
+
3071
+ a${d},${d} 1 0,0 ${-1 * g * .25},${_ * .15}
3072
+ a${d},${d} 1 0,0 ${-1 * g * .25},0
3073
+ a${d},${d} 1 0,0 ${-1 * g * .25},0
3074
+ a${d},${d} 1 0,0 ${-1 * g * .25},${-1 * _ * .15}
3075
+
3076
+ a${d},${d} 1 0,0 ${-1 * g * .1},${-1 * _ * .33}
3077
+ a${d * .8},${d * .8} 1 0,0 0,${-1 * _ * .34}
3078
+ a${d},${d} 1 0,0 ${g * .1},${-1 * _ * .33}
3079
+ H0 V0 Z`;
3080
+ if (n.look === "handDrawn") {
3081
+ let e = S.svg(a), t = y(n, {}), r = e.path(x, t);
3082
+ b = a.insert(() => r, ":first-child"), b.attr("class", "basic label-container").attr("style", p(f));
3083
+ } else b = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", x);
3084
+ return b.attr("transform", `translate(${-g / 2}, ${-_ / 2})`), T(n, b), n.calcIntersect = function(e, t) {
3085
+ return W.rect(e, t);
3086
+ }, n.intersect = function(e) {
3087
+ return t.info("Bang intersect", n, e), W.rect(n, e);
3088
+ }, a;
3089
+ }
3090
+ e(Wt, "bang");
3091
+ async function Gt(e, n) {
3092
+ let { labelStyles: r, nodeStyles: i } = v(n);
3093
+ n.labelStyle = r;
3094
+ let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await C(e, n, E(n)), l = o.width + 2 * s, u = o.height + 2 * s, d = .15 * l, f = .25 * l, m = .35 * l, h = .2 * l, { cssStyles: g } = n, _, b = `M0 0
3095
+ a${d},${d} 0 0,1 ${l * .25},${-1 * l * .1}
3096
+ a${m},${m} 1 0,1 ${l * .4},${-1 * l * .1}
3097
+ a${f},${f} 1 0,1 ${l * .35},${l * .2}
3098
+
3099
+ a${d},${d} 1 0,1 ${l * .15},${u * .35}
3100
+ a${h},${h} 1 0,1 ${-1 * l * .15},${u * .65}
3101
+
3102
+ a${f},${d} 1 0,1 ${-1 * l * .25},${l * .15}
3103
+ a${m},${m} 1 0,1 ${-1 * l * .5},0
3104
+ a${d},${d} 1 0,1 ${-1 * l * .25},${-1 * l * .15}
3105
+
3106
+ a${d},${d} 1 0,1 ${-1 * l * .1},${-1 * u * .35}
3107
+ a${h},${h} 1 0,1 ${l * .1},${-1 * u * .65}
3108
+ H0 V0 Z`;
3109
+ if (n.look === "handDrawn") {
3110
+ let e = S.svg(a), t = y(n, {}), r = e.path(b, t);
3111
+ _ = a.insert(() => r, ":first-child"), _.attr("class", "basic label-container").attr("style", p(g));
3112
+ } else _ = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", b);
3113
+ return c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), _.attr("transform", `translate(${-l / 2}, ${-u / 2})`), T(n, _), n.calcIntersect = function(e, t) {
3114
+ return W.rect(e, t);
3115
+ }, n.intersect = function(e) {
3116
+ return t.info("Cloud intersect", n, e), W.rect(n, e);
3117
+ }, a;
3118
+ }
3119
+ e(Gt, "cloud");
3120
+ async function Kt(e, t) {
3121
+ let { labelStyles: n, nodeStyles: r } = v(t);
3122
+ t.labelStyle = n;
3123
+ let { shapeSvg: i, bbox: a, halfPadding: o, label: s } = await C(e, t, E(t)), c = a.width + 8 * o, l = a.height + 2 * o, u = t.look === "neo" ? `
3124
+ M${-c / 2} ${l / 2 - 5}
3125
+ v${-l + 10}
3126
+ q0,-5 5,-5
3127
+ h${c - 10}
3128
+ q5,0 5,5
3129
+ v${l - 5}
3130
+ H${-c / 2}
3131
+ Z
3132
+ ` : `
3133
+ M${-c / 2} ${l / 2 - 5}
3134
+ v${-l + 10}
3135
+ q0,-5 5,-5
3136
+ h${c - 10}
3137
+ q5,0 5,5
3138
+ v${l - 10}
3139
+ q0,5 -5,5
3140
+ h${-(c - 10)}
3141
+ q-5,0 -5,-5
3142
+ Z
3143
+ `;
3144
+ if (!t.domId) throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);
3145
+ let d = i.append("path").attr("id", t.domId).attr("class", "node-bkg node-" + t.type).attr("style", r).attr("d", u);
3146
+ return i.append("line").attr("class", "node-line-").attr("x1", -c / 2).attr("y1", l / 2).attr("x2", c / 2).attr("y2", l / 2), s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), i.append(() => s.node()), T(t, d), t.calcIntersect = function(e, t) {
3147
+ return W.rect(e, t);
3148
+ }, t.intersect = function(e) {
3149
+ return W.rect(t, e);
3150
+ }, i;
3151
+ }
3152
+ e(Kt, "defaultMindmapNode");
3153
+ async function qt(e, t) {
3154
+ return ue(e, t, { padding: t.padding ?? 0 });
3155
+ }
3156
+ e(qt, "mindmapCircle");
3157
+ var Jt = [
3158
+ {
3159
+ semanticName: "Process",
3160
+ name: "Rectangle",
3161
+ shortName: "rect",
3162
+ description: "Standard process shape",
3163
+ aliases: [
3164
+ "proc",
3165
+ "process",
3166
+ "rectangle"
3167
+ ],
3168
+ internalAliases: ["squareRect"],
3169
+ handler: ct
3170
+ },
3171
+ {
3172
+ semanticName: "Event",
3173
+ name: "Rounded Rectangle",
3174
+ shortName: "rounded",
3175
+ description: "Represents an event",
3176
+ aliases: ["event"],
3177
+ internalAliases: ["roundedRect"],
3178
+ handler: at
3179
+ },
3180
+ {
3181
+ semanticName: "Terminal Point",
3182
+ name: "Stadium",
3183
+ shortName: "stadium",
3184
+ description: "Terminal point",
3185
+ aliases: ["terminal", "pill"],
3186
+ handler: lt
3187
+ },
3188
+ {
3189
+ semanticName: "Subprocess",
3190
+ name: "Framed Rectangle",
3191
+ shortName: "fr-rect",
3192
+ description: "Subprocess",
3193
+ aliases: [
3194
+ "subprocess",
3195
+ "subproc",
3196
+ "framed-rectangle",
3197
+ "subroutine"
3198
+ ],
3199
+ handler: mt
3200
+ },
3201
+ {
3202
+ semanticName: "Database",
3203
+ name: "Cylinder",
3204
+ shortName: "cyl",
3205
+ description: "Database storage",
3206
+ aliases: [
3207
+ "db",
3208
+ "database",
3209
+ "cylinder"
3210
+ ],
3211
+ handler: Se
3212
+ },
3213
+ {
3214
+ semanticName: "Start",
3215
+ name: "Circle",
3216
+ shortName: "circle",
3217
+ description: "Starting point",
3218
+ aliases: ["circ"],
3219
+ handler: ue
3220
+ },
3221
+ {
3222
+ semanticName: "Bang",
3223
+ name: "Bang",
3224
+ shortName: "bang",
3225
+ description: "Bang",
3226
+ aliases: ["bang"],
3227
+ handler: Wt
3228
+ },
3229
+ {
3230
+ semanticName: "Cloud",
3231
+ name: "Cloud",
3232
+ shortName: "cloud",
3233
+ description: "cloud",
3234
+ aliases: ["cloud"],
3235
+ handler: Gt
3236
+ },
3237
+ {
3238
+ semanticName: "Decision",
3239
+ name: "Diamond",
3240
+ shortName: "diam",
3241
+ description: "Decision-making step",
3242
+ aliases: [
3243
+ "decision",
3244
+ "diamond",
3245
+ "question"
3246
+ ],
3247
+ handler: nt
3248
+ },
3249
+ {
3250
+ semanticName: "Prepare Conditional",
3251
+ name: "Hexagon",
3252
+ shortName: "hex",
3253
+ description: "Preparation or condition step",
3254
+ aliases: ["hexagon", "prepare"],
3255
+ handler: Me
3256
+ },
3257
+ {
3258
+ semanticName: "Data Input/Output",
3259
+ name: "Lean Right",
3260
+ shortName: "lean-r",
3261
+ description: "Represents input or output",
3262
+ aliases: ["lean-right", "in-out"],
3263
+ internalAliases: ["lean_right"],
3264
+ handler: Ue
3265
+ },
3266
+ {
3267
+ semanticName: "Data Input/Output",
3268
+ name: "Lean Left",
3269
+ shortName: "lean-l",
3270
+ description: "Represents output or input",
3271
+ aliases: ["lean-left", "out-in"],
3272
+ internalAliases: ["lean_left"],
3273
+ handler: He
3274
+ },
3275
+ {
3276
+ semanticName: "Priority Action",
3277
+ name: "Trapezoid Base Bottom",
3278
+ shortName: "trap-b",
3279
+ description: "Priority action",
3280
+ aliases: [
3281
+ "priority",
3282
+ "trapezoid-bottom",
3283
+ "trapezoid"
3284
+ ],
3285
+ handler: Tt
3286
+ },
3287
+ {
3288
+ semanticName: "Manual Operation",
3289
+ name: "Trapezoid Base Top",
3290
+ shortName: "trap-t",
3291
+ description: "Represents a manual task",
3292
+ aliases: [
3293
+ "manual",
3294
+ "trapezoid-top",
3295
+ "inv-trapezoid"
3296
+ ],
3297
+ internalAliases: ["inv_trapezoid"],
3298
+ handler: ze
3299
+ },
3300
+ {
3301
+ semanticName: "Stop",
3302
+ name: "Double Circle",
3303
+ shortName: "dbl-circ",
3304
+ description: "Represents a stop point",
3305
+ aliases: ["double-circle"],
3306
+ internalAliases: ["doublecircle"],
3307
+ handler: we
3308
+ },
3309
+ {
3310
+ semanticName: "Text Block",
3311
+ name: "Text Block",
3312
+ shortName: "text",
3313
+ description: "Text block",
3314
+ handler: vt
3315
+ },
3316
+ {
3317
+ semanticName: "Card",
3318
+ name: "Notched Rectangle",
3319
+ shortName: "notch-rect",
3320
+ description: "Represents a card",
3321
+ aliases: ["card", "notched-rectangle"],
3322
+ handler: ce
3323
+ },
3324
+ {
3325
+ semanticName: "Lined/Shaded Process",
3326
+ name: "Lined Rectangle",
3327
+ shortName: "lin-rect",
3328
+ description: "Lined process shape",
3329
+ aliases: [
3330
+ "lined-rectangle",
3331
+ "lined-process",
3332
+ "lin-proc",
3333
+ "shaded-process"
3334
+ ],
3335
+ handler: ot
3336
+ },
3337
+ {
3338
+ semanticName: "Start",
3339
+ name: "Small Circle",
3340
+ shortName: "sm-circ",
3341
+ description: "Small starting point",
3342
+ aliases: ["start", "small-circle"],
3343
+ internalAliases: ["stateStart"],
3344
+ handler: ft
3345
+ },
3346
+ {
3347
+ semanticName: "Stop",
3348
+ name: "Framed Circle",
3349
+ shortName: "fr-circ",
3350
+ description: "Stop point",
3351
+ aliases: ["stop", "framed-circle"],
3352
+ internalAliases: ["stateEnd"],
3353
+ handler: dt
3354
+ },
3355
+ {
3356
+ semanticName: "Fork/Join",
3357
+ name: "Filled Rectangle",
3358
+ shortName: "fork",
3359
+ description: "Fork or join in process flow",
3360
+ aliases: ["join"],
3361
+ internalAliases: ["forkJoin"],
3362
+ handler: ke
3363
+ },
3364
+ {
3365
+ semanticName: "Collate",
3366
+ name: "Hourglass",
3367
+ shortName: "hourglass",
3368
+ description: "Represents a collate operation",
3369
+ aliases: ["hourglass", "collate"],
3370
+ handler: Ne
3371
+ },
3372
+ {
3373
+ semanticName: "Comment",
3374
+ name: "Curly Brace",
3375
+ shortName: "brace",
3376
+ description: "Adds a comment",
3377
+ aliases: ["comment", "brace-l"],
3378
+ handler: pe
3379
+ },
3380
+ {
3381
+ semanticName: "Comment Right",
3382
+ name: "Curly Brace",
3383
+ shortName: "brace-r",
3384
+ description: "Adds a comment",
3385
+ handler: me
3386
+ },
3387
+ {
3388
+ semanticName: "Comment with braces on both sides",
3389
+ name: "Curly Braces",
3390
+ shortName: "braces",
3391
+ description: "Adds a comment",
3392
+ handler: he
3393
+ },
3394
+ {
3395
+ semanticName: "Com Link",
3396
+ name: "Lightning Bolt",
3397
+ shortName: "bolt",
3398
+ description: "Communication link",
3399
+ aliases: ["com-link", "lightning-bolt"],
3400
+ handler: We
3401
+ },
3402
+ {
3403
+ semanticName: "Document",
3404
+ name: "Document",
3405
+ shortName: "doc",
3406
+ description: "Represents a document",
3407
+ aliases: ["doc", "document"],
3408
+ handler: At
3409
+ },
3410
+ {
3411
+ semanticName: "Delay",
3412
+ name: "Half-Rounded Rectangle",
3413
+ shortName: "delay",
3414
+ description: "Represents a delay",
3415
+ aliases: ["half-rounded-rectangle"],
3416
+ handler: Ae
3417
+ },
3418
+ {
3419
+ semanticName: "Direct Access Storage",
3420
+ name: "Horizontal Cylinder",
3421
+ shortName: "h-cyl",
3422
+ description: "Direct access storage",
3423
+ aliases: ["das", "horizontal-cylinder"],
3424
+ handler: wt
3425
+ },
3426
+ {
3427
+ semanticName: "Disk Storage",
3428
+ name: "Lined Cylinder",
3429
+ shortName: "lin-cyl",
3430
+ description: "Disk storage",
3431
+ aliases: ["disk", "lined-cylinder"],
3432
+ handler: Xe
3433
+ },
3434
+ {
3435
+ semanticName: "Display",
3436
+ name: "Curved Trapezoid",
3437
+ shortName: "curv-trap",
3438
+ description: "Represents a display",
3439
+ aliases: ["curved-trapezoid", "display"],
3440
+ handler: ge
3441
+ },
3442
+ {
3443
+ semanticName: "Divided Process",
3444
+ name: "Divided Rectangle",
3445
+ shortName: "div-rect",
3446
+ description: "Divided process shape",
3447
+ aliases: [
3448
+ "div-proc",
3449
+ "divided-rectangle",
3450
+ "divided-process"
3451
+ ],
3452
+ handler: Ce
3453
+ },
3454
+ {
3455
+ semanticName: "Extract",
3456
+ name: "Triangle",
3457
+ shortName: "tri",
3458
+ description: "Extraction process",
3459
+ aliases: ["extract", "triangle"],
3460
+ handler: kt
3461
+ },
3462
+ {
3463
+ semanticName: "Internal Storage",
3464
+ name: "Window Pane",
3465
+ shortName: "win-pane",
3466
+ description: "Internal storage",
3467
+ aliases: ["internal-storage", "window-pane"],
3468
+ handler: Mt
3469
+ },
3470
+ {
3471
+ semanticName: "Junction",
3472
+ name: "Filled Circle",
3473
+ shortName: "f-circ",
3474
+ description: "Junction point",
3475
+ aliases: ["junction", "filled-circle"],
3476
+ handler: Te
3477
+ },
3478
+ {
3479
+ semanticName: "Loop Limit",
3480
+ name: "Trapezoidal Pentagon",
3481
+ shortName: "notch-pent",
3482
+ description: "Loop limit step",
3483
+ aliases: ["loop-limit", "notched-pentagon"],
3484
+ handler: Et
3485
+ },
3486
+ {
3487
+ semanticName: "Manual File",
3488
+ name: "Flipped Triangle",
3489
+ shortName: "flip-tri",
3490
+ description: "Manual file operation",
3491
+ aliases: ["manual-file", "flipped-triangle"],
3492
+ handler: Oe
3493
+ },
3494
+ {
3495
+ semanticName: "Manual Input",
3496
+ name: "Sloped Rectangle",
3497
+ shortName: "sl-rect",
3498
+ description: "Manual input step",
3499
+ aliases: ["manual-input", "sloped-rectangle"],
3500
+ handler: st
3501
+ },
3502
+ {
3503
+ semanticName: "Multi-Document",
3504
+ name: "Stacked Document",
3505
+ shortName: "docs",
3506
+ description: "Multiple documents",
3507
+ aliases: [
3508
+ "documents",
3509
+ "st-doc",
3510
+ "stacked-document"
3511
+ ],
3512
+ handler: $e
3513
+ },
3514
+ {
3515
+ semanticName: "Multi-Process",
3516
+ name: "Stacked Rectangle",
3517
+ shortName: "st-rect",
3518
+ description: "Multiple processes",
3519
+ aliases: [
3520
+ "procs",
3521
+ "processes",
3522
+ "stacked-rectangle"
3523
+ ],
3524
+ handler: Qe
3525
+ },
3526
+ {
3527
+ semanticName: "Stored Data",
3528
+ name: "Bow Tie Rectangle",
3529
+ shortName: "bow-rect",
3530
+ description: "Stored data",
3531
+ aliases: ["stored-data", "bow-tie-rectangle"],
3532
+ handler: oe
3533
+ },
3534
+ {
3535
+ semanticName: "Summary",
3536
+ name: "Crossed Circle",
3537
+ shortName: "cross-circ",
3538
+ description: "Summary",
3539
+ aliases: ["summary", "crossed-circle"],
3540
+ handler: fe
3541
+ },
3542
+ {
3543
+ semanticName: "Tagged Document",
3544
+ name: "Tagged Document",
3545
+ shortName: "tag-doc",
3546
+ description: "Tagged document",
3547
+ aliases: ["tag-doc", "tagged-document"],
3548
+ handler: _t
3549
+ },
3550
+ {
3551
+ semanticName: "Tagged Process",
3552
+ name: "Tagged Rectangle",
3553
+ shortName: "tag-rect",
3554
+ description: "Tagged process",
3555
+ aliases: [
3556
+ "tagged-rectangle",
3557
+ "tag-proc",
3558
+ "tagged-process"
3559
+ ],
3560
+ handler: gt
3561
+ },
3562
+ {
3563
+ semanticName: "Paper Tape",
3564
+ name: "Flag",
3565
+ shortName: "flag",
3566
+ description: "Paper tape",
3567
+ aliases: ["paper-tape"],
3568
+ handler: jt
3569
+ },
3570
+ {
3571
+ semanticName: "Odd",
3572
+ name: "Odd",
3573
+ shortName: "odd",
3574
+ description: "Odd shape",
3575
+ internalAliases: ["rect_left_inv_arrow"],
3576
+ handler: rt
3577
+ },
3578
+ {
3579
+ semanticName: "Lined Document",
3580
+ name: "Lined Document",
3581
+ shortName: "lin-doc",
3582
+ description: "Lined document",
3583
+ aliases: ["lined-document"],
3584
+ handler: Ze
3585
+ }
3586
+ ], Yt = (/* @__PURE__ */ e(() => {
3587
+ let e = [...Object.entries({
3588
+ state: ut,
3589
+ choice: le,
3590
+ note: et,
3591
+ rectWithTitle: it,
3592
+ labelRect: Ve,
3593
+ iconSquare: Le,
3594
+ iconCircle: Fe,
3595
+ icon: Pe,
3596
+ iconRounded: Ie,
3597
+ imageSquare: Re,
3598
+ anchor: G,
3599
+ kanbanItem: Ut,
3600
+ mindmapCircle: qt,
3601
+ defaultMindmapNode: Kt,
3602
+ classBox: Bt,
3603
+ erBox: Ft,
3604
+ requirementBox: Vt
3605
+ }), ...Jt.flatMap((e) => [
3606
+ e.shortName,
3607
+ ..."aliases" in e ? e.aliases : [],
3608
+ ..."internalAliases" in e ? e.internalAliases : []
3609
+ ].map((t) => [t, e.handler]))];
3610
+ return Object.fromEntries(e);
3611
+ }, "generateShapeMap"))();
3612
+ function Xt(e) {
3613
+ return e in Yt;
3614
+ }
3615
+ e(Xt, "isValidShape");
3616
+ var Zt = /* @__PURE__ */ new Map();
3617
+ async function Qt(e, t, n) {
3618
+ let r, i;
3619
+ t.shape === "rect" && (t.rx && t.ry ? t.shape = "roundedRect" : t.shape = "squareRect");
3620
+ let a = t.shape ? Yt[t.shape] : void 0;
3621
+ if (!a) throw Error(`No such shape: ${t.shape}. Please check your syntax.`);
3622
+ if (t.link) {
3623
+ let o;
3624
+ n.config.securityLevel === "sandbox" ? o = "_top" : t.linkTarget && (o = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", o ?? null), i = await a(r, t, n);
3625
+ } else i = await a(e, t, n), r = i;
3626
+ return r.attr("data-look", p(t.look)), t.tooltip && i.attr("title", t.tooltip), Zt.set(t.id, r), t.haveCallback && r.attr("class", r.attr("class") + " clickable"), r;
3627
+ }
3628
+ e(Qt, "insertNode");
3629
+ var $t = /* @__PURE__ */ e((e, t) => {
3630
+ Zt.set(t.id, e);
3631
+ }, "setNodeElem"), en = /* @__PURE__ */ e(() => {
3632
+ Zt.clear();
3633
+ }, "clear"), tn = /* @__PURE__ */ e((e) => {
3634
+ let n = Zt.get(e.id);
3635
+ t.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
3636
+ let r = e.diff || 0;
3637
+ 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;
3638
+ }, "positionNode");
3639
+ //#endregion
3640
+ export { te as clear, en as clear2, M as createLabel_default, ee as insertCluster, Qt as insertNode, Xt as isValidShape, C as labelHelper, tn as positionNode, $t as setNodeElem, T as updateNodeBounds };