@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
@@ -1,1968 +1,1867 @@
1
- var v = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), y = v((e, t) => {
2
- var n = Object.defineProperty, r = (e, t, r) => t in e ? n(e, t, {
3
- enumerable: !0,
4
- configurable: !0,
5
- writable: !0,
6
- value: r
7
- }) : e[t] = r, i = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), a = (e, t, n) => r(e, typeof t == "symbol" ? t : t + "", n), o = i((e, t) => {
8
- var n = "\0", r = "\0", i = "", o = class {
9
- constructor(e) {
10
- a(this, "_isDirected", !0), a(this, "_isMultigraph", !1), a(this, "_isCompound", !1), a(this, "_label"), a(this, "_defaultNodeLabelFn", () => {}), a(this, "_defaultEdgeLabelFn", () => {}), a(this, "_nodes", {}), a(this, "_in", {}), a(this, "_preds", {}), a(this, "_out", {}), a(this, "_sucs", {}), a(this, "_edgeObjs", {}), a(this, "_edgeLabels", {}), a(this, "_nodeCount", 0), a(this, "_edgeCount", 0), a(this, "_parent"), a(this, "_children"), e && (this._isDirected = Object.hasOwn(e, "directed") ? e.directed : !0, this._isMultigraph = Object.hasOwn(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.hasOwn(e, "compound") ? e.compound : !1), this._isCompound && (this._parent = {}, this._children = {}, this._children[r] = {});
11
- }
12
- isDirected() {
13
- return this._isDirected;
14
- }
15
- isMultigraph() {
16
- return this._isMultigraph;
17
- }
18
- isCompound() {
19
- return this._isCompound;
20
- }
21
- setGraph(e) {
22
- return this._label = e, this;
23
- }
24
- graph() {
25
- return this._label;
26
- }
27
- setDefaultNodeLabel(e) {
28
- return this._defaultNodeLabelFn = e, typeof e != "function" && (this._defaultNodeLabelFn = () => e), this;
29
- }
30
- nodeCount() {
31
- return this._nodeCount;
32
- }
33
- nodes() {
34
- return Object.keys(this._nodes);
35
- }
36
- sources() {
37
- var e = this;
38
- return this.nodes().filter((t) => Object.keys(e._in[t]).length === 0);
39
- }
40
- sinks() {
41
- var e = this;
42
- return this.nodes().filter((t) => Object.keys(e._out[t]).length === 0);
43
- }
44
- setNodes(e, t) {
45
- var n = arguments, r = this;
46
- return e.forEach(function(e) {
47
- n.length > 1 ? r.setNode(e, t) : r.setNode(e);
48
- }), this;
49
- }
50
- setNode(e, t) {
51
- return Object.hasOwn(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = r, this._children[e] = {}, this._children[r][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
52
- }
53
- node(e) {
54
- return this._nodes[e];
55
- }
56
- hasNode(e) {
57
- return Object.hasOwn(this._nodes, e);
58
- }
59
- removeNode(e) {
60
- var t = this;
61
- if (Object.hasOwn(this._nodes, e)) {
62
- var n = (e) => t.removeEdge(t._edgeObjs[e]);
63
- delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], this.children(e).forEach(function(e) {
64
- t.setParent(e);
65
- }), delete this._children[e]), Object.keys(this._in[e]).forEach(n), delete this._in[e], delete this._preds[e], Object.keys(this._out[e]).forEach(n), delete this._out[e], delete this._sucs[e], --this._nodeCount;
66
- }
67
- return this;
68
- }
69
- setParent(e, t) {
70
- if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
71
- if (t === void 0) t = r;
72
- else {
73
- t += "";
74
- for (var n = t; n !== void 0; n = this.parent(n)) if (n === e) throw Error("Setting " + t + " as parent of " + e + " would create a cycle");
75
- this.setNode(t);
76
- }
77
- return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
78
- }
79
- _removeFromParentsChildList(e) {
80
- delete this._children[this._parent[e]][e];
81
- }
82
- parent(e) {
83
- if (this._isCompound) {
84
- var t = this._parent[e];
85
- if (t !== r) return t;
86
- }
87
- }
88
- children(e = r) {
89
- if (this._isCompound) {
90
- var t = this._children[e];
91
- if (t) return Object.keys(t);
92
- } else {
93
- if (e === r) return this.nodes();
94
- if (this.hasNode(e)) return [];
95
- }
96
- }
97
- predecessors(e) {
98
- var t = this._preds[e];
99
- if (t) return Object.keys(t);
100
- }
101
- successors(e) {
102
- var t = this._sucs[e];
103
- if (t) return Object.keys(t);
104
- }
105
- neighbors(e) {
106
- var t = this.predecessors(e);
107
- if (t) {
108
- let r = new Set(t);
109
- for (var n of this.successors(e)) r.add(n);
110
- return Array.from(r.values());
111
- }
112
- }
113
- isLeaf(e) {
114
- var t;
115
- return t = this.isDirected() ? this.successors(e) : this.neighbors(e), t.length === 0;
116
- }
117
- filterNodes(e) {
118
- var t = new this.constructor({
119
- directed: this._isDirected,
120
- multigraph: this._isMultigraph,
121
- compound: this._isCompound
122
- });
123
- t.setGraph(this.graph());
124
- var n = this;
125
- Object.entries(this._nodes).forEach(function([n, r]) {
126
- e(n) && t.setNode(n, r);
127
- }), Object.values(this._edgeObjs).forEach(function(e) {
128
- t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, n.edge(e));
129
- });
130
- var r = {};
131
- function i(e) {
132
- var a = n.parent(e);
133
- return a === void 0 || t.hasNode(a) ? (r[e] = a, a) : a in r ? r[a] : i(a);
134
- }
135
- return this._isCompound && t.nodes().forEach((e) => t.setParent(e, i(e))), t;
136
- }
137
- setDefaultEdgeLabel(e) {
138
- return this._defaultEdgeLabelFn = e, typeof e != "function" && (this._defaultEdgeLabelFn = () => e), this;
139
- }
140
- edgeCount() {
141
- return this._edgeCount;
142
- }
143
- edges() {
144
- return Object.values(this._edgeObjs);
145
- }
146
- setPath(e, t) {
147
- var n = this, r = arguments;
148
- return e.reduce(function(e, i) {
149
- return r.length > 1 ? n.setEdge(e, i, t) : n.setEdge(e, i), i;
150
- }), this;
151
- }
152
- setEdge() {
153
- var e, t, n, r, i = !1, a = arguments[0];
154
- typeof a == "object" && a && "v" in a ? (e = a.v, t = a.w, n = a.name, arguments.length === 2 && (r = arguments[1], i = !0)) : (e = a, t = arguments[1], n = arguments[3], arguments.length > 2 && (r = arguments[2], i = !0)), e = "" + e, t = "" + t, n !== void 0 && (n = "" + n);
155
- var o = l(this._isDirected, e, t, n);
156
- if (Object.hasOwn(this._edgeLabels, o)) return i && (this._edgeLabels[o] = r), this;
157
- if (n !== void 0 && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
158
- this.setNode(e), this.setNode(t), this._edgeLabels[o] = i ? r : this._defaultEdgeLabelFn(e, t, n);
159
- var c = u(this._isDirected, e, t, n);
160
- return e = c.v, t = c.w, Object.freeze(c), this._edgeObjs[o] = c, s(this._preds[t], e), s(this._sucs[e], t), this._in[t][o] = c, this._out[e][o] = c, this._edgeCount++, this;
161
- }
162
- edge(e, t, n) {
163
- var r = arguments.length === 1 ? d(this._isDirected, arguments[0]) : l(this._isDirected, e, t, n);
164
- return this._edgeLabels[r];
165
- }
166
- edgeAsObj() {
167
- let e = this.edge(...arguments);
168
- return typeof e == "object" ? e : { label: e };
169
- }
170
- hasEdge(e, t, n) {
171
- var r = arguments.length === 1 ? d(this._isDirected, arguments[0]) : l(this._isDirected, e, t, n);
172
- return Object.hasOwn(this._edgeLabels, r);
173
- }
174
- removeEdge(e, t, n) {
175
- var r = arguments.length === 1 ? d(this._isDirected, arguments[0]) : l(this._isDirected, e, t, n), i = this._edgeObjs[r];
176
- return i && (e = i.v, t = i.w, delete this._edgeLabels[r], delete this._edgeObjs[r], c(this._preds[t], e), c(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--), this;
177
- }
178
- inEdges(e, t) {
179
- return this.isDirected() ? this.filterEdges(this._in[e], e, t) : this.nodeEdges(e, t);
180
- }
181
- outEdges(e, t) {
182
- return this.isDirected() ? this.filterEdges(this._out[e], e, t) : this.nodeEdges(e, t);
183
- }
184
- nodeEdges(e, t) {
185
- if (e in this._nodes) return this.filterEdges({
186
- ...this._in[e],
187
- ...this._out[e]
188
- }, e, t);
189
- }
190
- filterEdges(e, t, n) {
191
- if (e) {
192
- var r = Object.values(e);
193
- return n ? r.filter(function(e) {
194
- return e.v === t && e.w === n || e.v === n && e.w === t;
195
- }) : r;
196
- }
197
- }
198
- };
199
- function s(e, t) {
200
- e[t] ? e[t]++ : e[t] = 1;
201
- }
202
- function c(e, t) {
203
- --e[t] || delete e[t];
204
- }
205
- function l(e, t, r, a) {
206
- var o = "" + t, s = "" + r;
207
- if (!e && o > s) {
208
- var c = o;
209
- o = s, s = c;
210
- }
211
- return o + i + s + i + (a === void 0 ? n : a);
212
- }
213
- function u(e, t, n, r) {
214
- var i = "" + t, a = "" + n;
215
- if (!e && i > a) {
216
- var o = i;
217
- i = a, a = o;
218
- }
219
- var s = {
220
- v: i,
221
- w: a
222
- };
223
- return r && (s.name = r), s;
224
- }
225
- function d(e, t) {
226
- return l(e, t.v, t.w, t.name);
227
- }
228
- t.exports = o;
229
- }), s = i((e, t) => {
230
- t.exports = "3.0.2";
231
- }), c = i((e, t) => {
232
- t.exports = {
233
- Graph: o(),
234
- version: s()
235
- };
236
- }), l = i((e, t) => {
237
- var n = o();
238
- t.exports = {
239
- write: r,
240
- read: s
1
+ //#region ../../node_modules/@dagrejs/dagre/dist/dagre.esm.js
2
+ var e = Object.defineProperty, t = (t, n, r) => n in t ? e(t, n, {
3
+ enumerable: !0,
4
+ configurable: !0,
5
+ writable: !0,
6
+ value: r
7
+ }) : t[n] = r, n = (t, n) => {
8
+ for (var r in n) e(t, r, {
9
+ get: n[r],
10
+ enumerable: !0
11
+ });
12
+ }, r = (e, n, r) => t(e, typeof n == "symbol" ? n : n + "", r), i = {};
13
+ n(i, {
14
+ Graph: () => s,
15
+ alg: () => h,
16
+ json: () => m,
17
+ version: () => p
18
+ });
19
+ var a = Object.defineProperty, o = (e, t) => {
20
+ for (var n in t) a(e, n, {
21
+ get: t[n],
22
+ enumerable: !0
23
+ });
24
+ }, s = class {
25
+ constructor(e) {
26
+ this._isDirected = !0, this._isMultigraph = !1, this._isCompound = !1, this._nodes = {}, this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}, this._nodeCount = 0, this._edgeCount = 0, this._defaultNodeLabelFn = () => {}, this._defaultEdgeLabelFn = () => {}, e && (this._isDirected = "directed" in e ? e.directed : !0, this._isMultigraph = "multigraph" in e ? e.multigraph : !1, this._isCompound = "compound" in e ? e.compound : !1), this._isCompound && (this._parent = {}, this._children = {}, this._children["\0"] = {});
27
+ }
28
+ isDirected() {
29
+ return this._isDirected;
30
+ }
31
+ isMultigraph() {
32
+ return this._isMultigraph;
33
+ }
34
+ isCompound() {
35
+ return this._isCompound;
36
+ }
37
+ setGraph(e) {
38
+ return this._label = e, this;
39
+ }
40
+ graph() {
41
+ return this._label;
42
+ }
43
+ setDefaultNodeLabel(e) {
44
+ return typeof e == "function" ? this._defaultNodeLabelFn = e : this._defaultNodeLabelFn = () => e, this;
45
+ }
46
+ nodeCount() {
47
+ return this._nodeCount;
48
+ }
49
+ nodes() {
50
+ return Object.keys(this._nodes);
51
+ }
52
+ sources() {
53
+ return this.nodes().filter((e) => Object.keys(this._in[e]).length === 0);
54
+ }
55
+ sinks() {
56
+ return this.nodes().filter((e) => Object.keys(this._out[e]).length === 0);
57
+ }
58
+ setNodes(e, t) {
59
+ return e.forEach((e) => {
60
+ t === void 0 ? this.setNode(e) : this.setNode(e, t);
61
+ }), this;
62
+ }
63
+ setNode(e, t) {
64
+ return e in this._nodes ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = "\0", this._children[e] = {}, this._children["\0"][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
65
+ }
66
+ node(e) {
67
+ return this._nodes[e];
68
+ }
69
+ hasNode(e) {
70
+ return e in this._nodes;
71
+ }
72
+ removeNode(e) {
73
+ if (e in this._nodes) {
74
+ let t = (e) => this.removeEdge(this._edgeObjs[e]);
75
+ delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], this.children(e).forEach((e) => {
76
+ this.setParent(e);
77
+ }), delete this._children[e]), Object.keys(this._in[e]).forEach(t), delete this._in[e], delete this._preds[e], Object.keys(this._out[e]).forEach(t), delete this._out[e], delete this._sucs[e], --this._nodeCount;
78
+ }
79
+ return this;
80
+ }
81
+ setParent(e, t) {
82
+ if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
83
+ if (t === void 0) t = "\0";
84
+ else {
85
+ t += "";
86
+ for (let n = t; n !== void 0; n = this.parent(n)) if (n === e) throw Error("Setting " + t + " as parent of " + e + " would create a cycle");
87
+ this.setNode(t);
88
+ }
89
+ return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
90
+ }
91
+ parent(e) {
92
+ if (this._isCompound) {
93
+ let t = this._parent[e];
94
+ if (t !== "\0") return t;
95
+ }
96
+ }
97
+ children(e = "\0") {
98
+ if (this._isCompound) {
99
+ let t = this._children[e];
100
+ if (t) return Object.keys(t);
101
+ } else {
102
+ if (e === "\0") return this.nodes();
103
+ if (this.hasNode(e)) return [];
104
+ }
105
+ return [];
106
+ }
107
+ predecessors(e) {
108
+ let t = this._preds[e];
109
+ if (t) return Object.keys(t);
110
+ }
111
+ successors(e) {
112
+ let t = this._sucs[e];
113
+ if (t) return Object.keys(t);
114
+ }
115
+ neighbors(e) {
116
+ let t = this.predecessors(e);
117
+ if (t) {
118
+ let n = new Set(t);
119
+ for (let t of this.successors(e)) n.add(t);
120
+ return Array.from(n.values());
121
+ }
122
+ }
123
+ isLeaf(e) {
124
+ let t;
125
+ return t = this.isDirected() ? this.successors(e) : this.neighbors(e), t.length === 0;
126
+ }
127
+ filterNodes(e) {
128
+ let t = new this.constructor({
129
+ directed: this._isDirected,
130
+ multigraph: this._isMultigraph,
131
+ compound: this._isCompound
132
+ });
133
+ t.setGraph(this.graph()), Object.entries(this._nodes).forEach(([n, r]) => {
134
+ e(n) && t.setNode(n, r);
135
+ }), Object.values(this._edgeObjs).forEach((e) => {
136
+ t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, this.edge(e));
137
+ });
138
+ let n = {}, r = (e) => {
139
+ let i = this.parent(e);
140
+ return !i || t.hasNode(i) ? (n[e] = i ?? void 0, i ?? void 0) : i in n ? n[i] : r(i);
241
141
  };
242
- function r(e) {
243
- var t = {
244
- options: {
245
- directed: e.isDirected(),
246
- multigraph: e.isMultigraph(),
247
- compound: e.isCompound()
248
- },
249
- nodes: i(e),
250
- edges: a(e)
251
- };
252
- return e.graph() !== void 0 && (t.value = structuredClone(e.graph())), t;
253
- }
254
- function i(e) {
255
- return e.nodes().map(function(t) {
256
- var n = e.node(t), r = e.parent(t), i = { v: t };
257
- return n !== void 0 && (i.value = n), r !== void 0 && (i.parent = r), i;
258
- });
259
- }
260
- function a(e) {
261
- return e.edges().map(function(t) {
262
- var n = e.edge(t), r = {
263
- v: t.v,
264
- w: t.w
265
- };
266
- return t.name !== void 0 && (r.name = t.name), n !== void 0 && (r.value = n), r;
267
- });
268
- }
269
- function s(e) {
270
- var t = new n(e.options).setGraph(e.value);
271
- return e.nodes.forEach(function(e) {
272
- t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent);
273
- }), e.edges.forEach(function(e) {
274
- t.setEdge({
275
- v: e.v,
276
- w: e.w,
277
- name: e.name
278
- }, e.value);
279
- }), t;
280
- }
281
- }), u = i((e, t) => {
282
- t.exports = r;
283
- var n = () => 1;
284
- function r(e, t, r, a) {
285
- return i(e, String(t), r || n, a || function(t) {
286
- return e.outEdges(t);
287
- });
288
- }
289
- function i(e, t, n, r) {
290
- var i = {}, a = !0, o = 0, s = e.nodes(), c = function(e) {
291
- var t = n(e);
292
- i[e.v].distance + t < i[e.w].distance && (i[e.w] = {
293
- distance: i[e.v].distance + t,
294
- predecessor: e.v
295
- }, a = !0);
296
- }, l = function() {
297
- s.forEach(function(e) {
298
- r(e).forEach(function(t) {
299
- var n = t.v === e ? t.v : t.w;
300
- c({
301
- v: n,
302
- w: n === t.v ? t.w : t.v
303
- });
304
- });
305
- });
306
- };
307
- s.forEach(function(e) {
308
- i[e] = { distance: e === t ? 0 : Infinity };
309
- });
310
- for (var u = s.length, d = 1; d < u && (a = !1, o++, l(), a); d++);
311
- if (o === u - 1 && (a = !1, l(), a)) throw Error("The graph contains a negative weight cycle");
312
- return i;
313
- }
314
- }), d = i((e, t) => {
315
- t.exports = n;
316
- function n(e) {
317
- var t = {}, n = [], r;
318
- function i(n) {
319
- Object.hasOwn(t, n) || (t[n] = !0, r.push(n), e.successors(n).forEach(i), e.predecessors(n).forEach(i));
320
- }
321
- return e.nodes().forEach(function(e) {
322
- r = [], i(e), r.length && n.push(r);
323
- }), n;
324
- }
325
- }), f = i((e, t) => {
326
- t.exports = class {
327
- constructor() {
328
- a(this, "_arr", []), a(this, "_keyIndices", {});
329
- }
330
- size() {
331
- return this._arr.length;
332
- }
333
- keys() {
334
- return this._arr.map(function(e) {
335
- return e.key;
336
- });
337
- }
338
- has(e) {
339
- return Object.hasOwn(this._keyIndices, e);
340
- }
341
- priority(e) {
342
- var t = this._keyIndices[e];
343
- if (t !== void 0) return this._arr[t].priority;
344
- }
345
- min() {
346
- if (this.size() === 0) throw Error("Queue underflow");
347
- return this._arr[0].key;
348
- }
349
- add(e, t) {
350
- var n = this._keyIndices;
351
- if (e = String(e), !Object.hasOwn(n, e)) {
352
- var r = this._arr, i = r.length;
353
- return n[e] = i, r.push({
354
- key: e,
355
- priority: t
356
- }), this._decrease(i), !0;
357
- }
358
- return !1;
359
- }
360
- removeMin() {
361
- this._swap(0, this._arr.length - 1);
362
- var e = this._arr.pop();
363
- return delete this._keyIndices[e.key], this._heapify(0), e.key;
364
- }
365
- decrease(e, t) {
366
- var n = this._keyIndices[e];
367
- if (t > this._arr[n].priority) throw Error("New priority is greater than current priority. Key: " + e + " Old: " + this._arr[n].priority + " New: " + t);
368
- this._arr[n].priority = t, this._decrease(n);
369
- }
370
- _heapify(e) {
371
- var t = this._arr, n = 2 * e, r = n + 1, i = e;
372
- n < t.length && (i = t[n].priority < t[i].priority ? n : i, r < t.length && (i = t[r].priority < t[i].priority ? r : i), i !== e && (this._swap(e, i), this._heapify(i)));
373
- }
374
- _decrease(e) {
375
- for (var t = this._arr, n = t[e].priority, r; e !== 0 && (r = e >> 1, !(t[r].priority < n));) this._swap(e, r), e = r;
376
- }
377
- _swap(e, t) {
378
- var n = this._arr, r = this._keyIndices, i = n[e], a = n[t];
379
- n[e] = a, n[t] = i, r[a.key] = e, r[i.key] = t;
380
- }
142
+ return this._isCompound && t.nodes().forEach((e) => t.setParent(e, r(e))), t;
143
+ }
144
+ setDefaultEdgeLabel(e) {
145
+ return typeof e == "function" ? this._defaultEdgeLabelFn = e : this._defaultEdgeLabelFn = () => e, this;
146
+ }
147
+ edgeCount() {
148
+ return this._edgeCount;
149
+ }
150
+ edges() {
151
+ return Object.values(this._edgeObjs);
152
+ }
153
+ setPath(e, t) {
154
+ return e.reduce((e, n) => (t === void 0 ? this.setEdge(e, n) : this.setEdge(e, n, t), n)), this;
155
+ }
156
+ setEdge(e, t, n, r) {
157
+ let i, a, o, s, l = !1;
158
+ typeof e == "object" && e && "v" in e ? (i = e.v, a = e.w, o = e.name, arguments.length === 2 && (s = t, l = !0)) : (i = e, a = t, o = r, arguments.length > 2 && (s = n, l = !0)), i = "" + i, a = "" + a, o !== void 0 && (o = "" + o);
159
+ let f = u(this._isDirected, i, a, o);
160
+ if (f in this._edgeLabels) return l && (this._edgeLabels[f] = s), this;
161
+ if (o !== void 0 && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
162
+ this.setNode(i), this.setNode(a), this._edgeLabels[f] = l ? s : this._defaultEdgeLabelFn(i, a, o);
163
+ let p = d(this._isDirected, i, a, o);
164
+ return i = p.v, a = p.w, Object.freeze(p), this._edgeObjs[f] = p, c(this._preds[a], i), c(this._sucs[i], a), this._in[a][f] = p, this._out[i][f] = p, this._edgeCount++, this;
165
+ }
166
+ edge(e, t, n) {
167
+ let r = arguments.length === 1 ? f(this._isDirected, e) : u(this._isDirected, e, t, n);
168
+ return this._edgeLabels[r];
169
+ }
170
+ edgeAsObj(e, t, n) {
171
+ let r = arguments.length === 1 ? this.edge(e) : this.edge(e, t, n);
172
+ return typeof r == "object" ? r : { label: r };
173
+ }
174
+ hasEdge(e, t, n) {
175
+ return (arguments.length === 1 ? f(this._isDirected, e) : u(this._isDirected, e, t, n)) in this._edgeLabels;
176
+ }
177
+ removeEdge(e, t, n) {
178
+ let r = arguments.length === 1 ? f(this._isDirected, e) : u(this._isDirected, e, t, n), i = this._edgeObjs[r];
179
+ if (i) {
180
+ let e = i.v, t = i.w;
181
+ delete this._edgeLabels[r], delete this._edgeObjs[r], l(this._preds[t], e), l(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--;
182
+ }
183
+ return this;
184
+ }
185
+ inEdges(e, t) {
186
+ return this.isDirected() ? this.filterEdges(this._in[e], e, t) : this.nodeEdges(e, t);
187
+ }
188
+ outEdges(e, t) {
189
+ return this.isDirected() ? this.filterEdges(this._out[e], e, t) : this.nodeEdges(e, t);
190
+ }
191
+ nodeEdges(e, t) {
192
+ if (e in this._nodes) return this.filterEdges({
193
+ ...this._in[e],
194
+ ...this._out[e]
195
+ }, e, t);
196
+ }
197
+ _removeFromParentsChildList(e) {
198
+ delete this._children[this._parent[e]][e];
199
+ }
200
+ filterEdges(e, t, n) {
201
+ if (!e) return;
202
+ let r = Object.values(e);
203
+ return n ? r.filter((e) => e.v === t && e.w === n || e.v === n && e.w === t) : r;
204
+ }
205
+ };
206
+ function c(e, t) {
207
+ e[t] ? e[t]++ : e[t] = 1;
208
+ }
209
+ function l(e, t) {
210
+ e[t] !== void 0 && !--e[t] && delete e[t];
211
+ }
212
+ function u(e, t, n, r) {
213
+ let i = "" + t, a = "" + n;
214
+ if (!e && i > a) {
215
+ let e = i;
216
+ i = a, a = e;
217
+ }
218
+ return i + "" + a + "" + (r === void 0 ? "\0" : r);
219
+ }
220
+ function d(e, t, n, r) {
221
+ let i = "" + t, a = "" + n;
222
+ if (!e && i > a) {
223
+ let e = i;
224
+ i = a, a = e;
225
+ }
226
+ let o = {
227
+ v: i,
228
+ w: a
229
+ };
230
+ return r && (o.name = r), o;
231
+ }
232
+ function f(e, t) {
233
+ return u(e, t.v, t.w, t.name);
234
+ }
235
+ var p = "4.0.1", m = {};
236
+ o(m, {
237
+ read: () => re,
238
+ write: () => ee
239
+ });
240
+ function ee(e) {
241
+ let t = {
242
+ options: {
243
+ directed: e.isDirected(),
244
+ multigraph: e.isMultigraph(),
245
+ compound: e.isCompound()
246
+ },
247
+ nodes: te(e),
248
+ edges: ne(e)
249
+ }, n = e.graph();
250
+ return n !== void 0 && (t.value = structuredClone(n)), t;
251
+ }
252
+ function te(e) {
253
+ return e.nodes().map((t) => {
254
+ let n = e.node(t), r = e.parent(t), i = { v: t };
255
+ return n !== void 0 && (i.value = n), r !== void 0 && (i.parent = r), i;
256
+ });
257
+ }
258
+ function ne(e) {
259
+ return e.edges().map((t) => {
260
+ let n = e.edge(t), r = {
261
+ v: t.v,
262
+ w: t.w
381
263
  };
382
- }), p = i((e, t) => {
383
- var n = f();
384
- t.exports = i;
385
- var r = () => 1;
386
- function i(e, t, n, i) {
387
- return a(e, String(t), n || r, i || function(t) {
388
- return e.outEdges(t);
389
- });
390
- }
391
- function a(e, t, r, i) {
392
- var a = {}, o = new n(), s, c, l = function(e) {
393
- var t = e.v === s ? e.w : e.v, n = a[t], i = r(e), l = c.distance + i;
394
- if (i < 0) throw Error("dijkstra does not allow negative edge weights. Bad edge: " + e + " Weight: " + i);
395
- l < n.distance && (n.distance = l, n.predecessor = s, o.decrease(t, l));
396
- };
397
- for (e.nodes().forEach(function(e) {
398
- var n = e === t ? 0 : Infinity;
399
- a[e] = { distance: n }, o.add(e, n);
400
- }); o.size() > 0 && (s = o.removeMin(), c = a[s], c.distance !== Infinity);) i(s).forEach(l);
401
- return a;
402
- }
403
- }), m = i((e, t) => {
404
- var n = p();
405
- t.exports = r;
406
- function r(e, t, r) {
407
- return e.nodes().reduce(function(i, a) {
408
- return i[a] = n(e, a, t, r), i;
409
- }, {});
410
- }
411
- }), h = i((e, t) => {
412
- t.exports = n;
413
- function n(e, t, n) {
414
- if (e[t].predecessor !== void 0) throw Error("Invalid source vertex");
415
- if (e[n].predecessor === void 0 && n !== t) throw Error("Invalid destination vertex");
416
- return {
417
- weight: e[n].distance,
418
- path: r(e, t, n)
419
- };
420
- }
421
- function r(e, t, n) {
422
- for (var r = [], i = n; i !== t;) r.push(i), i = e[i].predecessor;
423
- return r.push(t), r.reverse();
424
- }
425
- }), g = i((e, t) => {
426
- t.exports = n;
427
- function n(e) {
428
- var t = 0, n = [], r = {}, i = [];
429
- function a(o) {
430
- var s = r[o] = {
431
- onStack: !0,
432
- lowlink: t,
433
- index: t++
434
- };
435
- if (n.push(o), e.successors(o).forEach(function(e) {
436
- Object.hasOwn(r, e) ? r[e].onStack && (s.lowlink = Math.min(s.lowlink, r[e].index)) : (a(e), s.lowlink = Math.min(s.lowlink, r[e].lowlink));
437
- }), s.lowlink === s.index) {
438
- var c = [], l;
439
- do
440
- l = n.pop(), r[l].onStack = !1, c.push(l);
441
- while (o !== l);
442
- i.push(c);
443
- }
444
- }
445
- return e.nodes().forEach(function(e) {
446
- Object.hasOwn(r, e) || a(e);
447
- }), i;
448
- }
449
- }), b = i((e, t) => {
450
- var n = g();
451
- t.exports = r;
452
- function r(e) {
453
- return n(e).filter(function(t) {
454
- return t.length > 1 || t.length === 1 && e.hasEdge(t[0], t[0]);
455
- });
456
- }
457
- }), x = i((e, t) => {
458
- t.exports = r;
459
- var n = () => 1;
460
- function r(e, t, r) {
461
- return i(e, t || n, r || function(t) {
462
- return e.outEdges(t);
463
- });
464
- }
465
- function i(e, t, n) {
466
- var r = {}, i = e.nodes();
467
- return i.forEach(function(e) {
468
- r[e] = {}, r[e][e] = { distance: 0 }, i.forEach(function(t) {
469
- e !== t && (r[e][t] = { distance: Infinity });
470
- }), n(e).forEach(function(n) {
471
- var i = n.v === e ? n.w : n.v, a = t(n);
472
- r[e][i] = {
473
- distance: a,
474
- predecessor: e
475
- };
476
- });
477
- }), i.forEach(function(e) {
478
- var t = r[e];
479
- i.forEach(function(n) {
480
- var a = r[n];
481
- i.forEach(function(n) {
482
- var r = a[e], i = t[n], o = a[n], s = r.distance + i.distance;
483
- s < o.distance && (o.distance = s, o.predecessor = i.predecessor);
484
- });
264
+ return t.name !== void 0 && (r.name = t.name), n !== void 0 && (r.value = n), r;
265
+ });
266
+ }
267
+ function re(e) {
268
+ let t = new s(e.options);
269
+ return e.value !== void 0 && t.setGraph(e.value), e.nodes.forEach((e) => {
270
+ t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent);
271
+ }), e.edges.forEach((e) => {
272
+ t.setEdge({
273
+ v: e.v,
274
+ w: e.w,
275
+ name: e.name
276
+ }, e.value);
277
+ }), t;
278
+ }
279
+ var h = {};
280
+ o(h, {
281
+ CycleException: () => b,
282
+ bellmanFord: () => g,
283
+ components: () => oe,
284
+ dijkstra: () => v,
285
+ dijkstraAll: () => le,
286
+ findCycles: () => ue,
287
+ floydWarshall: () => fe,
288
+ isAcyclic: () => he,
289
+ postorder: () => ve,
290
+ preorder: () => ye,
291
+ prim: () => be,
292
+ shortestPaths: () => xe,
293
+ tarjan: () => y,
294
+ topsort: () => me
295
+ });
296
+ var ie = () => 1;
297
+ function g(e, t, n, r) {
298
+ return ae(e, String(t), n || ie, r || function(t) {
299
+ return e.outEdges(t);
300
+ });
301
+ }
302
+ function ae(e, t, n, r) {
303
+ let i = {}, a, o = 0, s = e.nodes(), c = function(e) {
304
+ let t = n(e);
305
+ i[e.v].distance + t < i[e.w].distance && (i[e.w] = {
306
+ distance: i[e.v].distance + t,
307
+ predecessor: e.v
308
+ }, a = !0);
309
+ }, l = function() {
310
+ s.forEach(function(e) {
311
+ r(e).forEach(function(t) {
312
+ let n = t.v === e ? t.v : t.w;
313
+ c({
314
+ v: n,
315
+ w: n === t.v ? t.w : t.v
485
316
  });
486
- }), r;
487
- }
488
- }), S = i((e, t) => {
489
- function n(e) {
490
- var t = {}, n = {}, i = [];
491
- function a(o) {
492
- if (Object.hasOwn(n, o)) throw new r();
493
- Object.hasOwn(t, o) || (n[o] = !0, t[o] = !0, e.predecessors(o).forEach(a), delete n[o], i.push(o));
494
- }
495
- if (e.sinks().forEach(a), Object.keys(t).length !== e.nodeCount()) throw new r();
496
- return i;
497
- }
498
- var r = class extends Error {
499
- constructor() {
500
- super(...arguments);
501
- }
502
- };
503
- t.exports = n, n.CycleException = r;
504
- }), C = i((e, t) => {
505
- var n = S();
506
- t.exports = r;
507
- function r(e) {
508
- try {
509
- n(e);
510
- } catch (e) {
511
- if (e instanceof n.CycleException) return !1;
512
- throw e;
513
- }
514
- return !0;
515
- }
516
- }), w = i((e, t) => {
517
- t.exports = n;
518
- function n(e, t, n, i, a) {
519
- Array.isArray(t) || (t = [t]);
520
- var o = (e.isDirected() ? e.successors : e.neighbors).bind(e), s = {};
521
- return t.forEach(function(t) {
522
- if (!e.hasNode(t)) throw Error("Graph does not have node: " + t);
523
- a = r(e, t, n === "post", s, o, i, a);
524
- }), a;
525
- }
526
- function r(e, t, n, i, a, o, s) {
527
- return Object.hasOwn(i, t) || (i[t] = !0, n || (s = o(s, t)), a(t).forEach(function(t) {
528
- s = r(e, t, n, i, a, o, s);
529
- }), n && (s = o(s, t))), s;
530
- }
531
- }), T = i((e, t) => {
532
- var n = w();
533
- t.exports = r;
534
- function r(e, t, r) {
535
- return n(e, t, r, function(e, t) {
536
- return e.push(t), e;
537
- }, []);
538
- }
539
- }), E = i((e, t) => {
540
- var n = T();
541
- t.exports = r;
542
- function r(e, t) {
543
- return n(e, t, "post");
544
- }
545
- }), D = i((e, t) => {
546
- var n = T();
547
- t.exports = r;
548
- function r(e, t) {
549
- return n(e, t, "pre");
550
- }
551
- }), O = i((e, t) => {
552
- var n = o(), r = f();
553
- t.exports = i;
554
- function i(e, t) {
555
- var i = new n(), a = {}, o = new r(), s;
556
- function c(e) {
557
- var n = e.v === s ? e.w : e.v, r = o.priority(n);
558
- if (r !== void 0) {
559
- var i = t(e);
560
- i < r && (a[n] = s, o.decrease(n, i));
561
- }
562
- }
563
- if (e.nodeCount() === 0) return i;
564
- e.nodes().forEach(function(e) {
565
- o.add(e, Infinity), i.setNode(e);
566
- }), o.decrease(e.nodes()[0], 0);
567
- for (var l = !1; o.size() > 0;) {
568
- if (s = o.removeMin(), Object.hasOwn(a, s)) i.setEdge(s, a[s]);
569
- else {
570
- if (l) throw Error("Input graph is not connected: " + e);
571
- l = !0;
572
- }
573
- e.nodeEdges(s).forEach(c);
574
- }
575
- return i;
576
- }
577
- }), k = i((e, t) => {
578
- var n = p(), r = u();
579
- t.exports = i;
580
- function i(e, t, n, r) {
581
- return a(e, t, n, r || function(t) {
582
- return e.outEdges(t);
583
317
  });
584
- }
585
- function a(e, t, i, a) {
586
- if (i === void 0) return n(e, t, i, a);
587
- for (var o = !1, s = e.nodes(), c = 0; c < s.length; c++) {
588
- for (var l = a(s[c]), u = 0; u < l.length; u++) {
589
- var d = l[u], f = d.v === s[c] ? d.v : d.w;
590
- i({
591
- v: f,
592
- w: f === d.v ? d.w : d.v
593
- }) < 0 && (o = !0);
594
- }
595
- if (o) return r(e, t, i, a);
596
- }
597
- return n(e, t, i, a);
598
- }
599
- }), A = i((e, t) => {
600
- t.exports = {
601
- bellmanFord: u(),
602
- components: d(),
603
- dijkstra: p(),
604
- dijkstraAll: m(),
605
- extractPath: h(),
606
- findCycles: b(),
607
- floydWarshall: x(),
608
- isAcyclic: C(),
609
- postorder: E(),
610
- preorder: D(),
611
- prim: O(),
612
- shortestPaths: k(),
613
- reduce: w(),
614
- tarjan: g(),
615
- topsort: S()
616
- };
617
- }), M = c();
618
- t.exports = {
619
- Graph: M.Graph,
620
- json: l(),
621
- alg: A(),
622
- version: M.version
623
- };
624
- }), ne = v((e, t) => {
625
- var n = class {
626
- constructor() {
627
- let e = {};
628
- e._next = e._prev = e, this._sentinel = e;
629
- }
630
- dequeue() {
631
- let e = this._sentinel, t = e._prev;
632
- if (t !== e) return r(t), t;
633
- }
634
- enqueue(e) {
635
- let t = this._sentinel;
636
- e._prev && e._next && r(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
637
- }
638
- toString() {
639
- let e = [], t = this._sentinel, n = t._prev;
640
- for (; n !== t;) e.push(JSON.stringify(n, i)), n = n._prev;
641
- return "[" + e.join(", ") + "]";
642
- }
643
- };
644
- function r(e) {
645
- e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
646
- }
647
- function i(e, t) {
648
- if (e !== "_next" && e !== "_prev") return t;
649
- }
650
- t.exports = n;
651
- }), oe = v((e, r) => {
652
- var i = y().Graph, a = ne();
653
- r.exports = s;
654
- var o = () => 1;
655
- function s(e, t) {
656
- if (e.nodeCount() <= 1) return [];
657
- let n = u(e, t || o);
658
- return c(n.graph, n.buckets, n.zeroIdx).flatMap((t) => e.outEdges(t.v, t.w));
659
- }
660
- function c(e, t, n) {
661
- let r = [], i = t[t.length - 1], a = t[0], o;
662
- for (; e.nodeCount();) {
663
- for (; o = a.dequeue();) l(e, t, n, o);
664
- for (; o = i.dequeue();) l(e, t, n, o);
665
- if (e.nodeCount()) {
666
- for (let i = t.length - 2; i > 0; --i) if (o = t[i].dequeue(), o) {
667
- r = r.concat(l(e, t, n, o, !0));
668
- break;
669
- }
670
- }
671
- }
672
- return r;
673
- }
674
- function l(e, t, n, r, i) {
675
- let a = i ? [] : void 0;
676
- return e.inEdges(r.v).forEach((r) => {
677
- let o = e.edge(r), s = e.node(r.v);
678
- i && a.push({
679
- v: r.v,
680
- w: r.w
681
- }), s.out -= o, d(t, n, s);
682
- }), e.outEdges(r.v).forEach((r) => {
683
- let i = e.edge(r), a = r.w, o = e.node(a);
684
- o.in -= i, d(t, n, o);
685
- }), e.removeNode(r.v), a;
686
- }
687
- function u(e, t) {
688
- let n = new i(), r = 0, o = 0;
689
- e.nodes().forEach((e) => {
690
- n.setNode(e, {
691
- v: e,
692
- in: 0,
693
- out: 0
694
- });
695
- }), e.edges().forEach((e) => {
696
- let i = n.edge(e.v, e.w) || 0, a = t(e), s = i + a;
697
- n.setEdge(e.v, e.w, s), o = Math.max(o, n.node(e.v).out += a), r = Math.max(r, n.node(e.w).in += a);
698
318
  });
699
- let s = f(o + r + 3).map(() => new a()), c = r + 1;
700
- return n.nodes().forEach((e) => {
701
- d(s, c, n.node(e));
702
- }), {
703
- graph: n,
704
- buckets: s,
705
- zeroIdx: c
319
+ };
320
+ s.forEach(function(e) {
321
+ i[e] = {
322
+ distance: e === t ? 0 : Infinity,
323
+ predecessor: ""
706
324
  };
707
- }
708
- function d(e, t, n) {
709
- n.out ? n.in ? e[n.out - n.in + t].enqueue(n) : e[e.length - 1].enqueue(n) : e[0].enqueue(n);
710
- }
711
- function f(e) {
712
- let t = [];
713
- for (let n = 0; n < e; n++) t.push(n);
714
- return t;
715
- }
716
- }), _ = v((e, n) => {
717
- var r = y().Graph;
718
- n.exports = {
719
- addBorderNode: p,
720
- addDummyNode: i,
721
- applyWithChunking: g,
722
- asNonCompoundGraph: o,
723
- buildLayerMatrix: u,
724
- intersectRect: l,
725
- mapValues: O,
726
- maxRank: b,
727
- normalizeRanks: d,
728
- notime: C,
729
- partition: x,
730
- pick: D,
731
- predecessorWeights: c,
732
- range: E,
733
- removeEmptyRanks: f,
734
- simplify: a,
735
- successorWeights: s,
736
- time: S,
737
- uniqueId: T,
738
- zipObject: k
325
+ });
326
+ let u = s.length;
327
+ for (let e = 1; e < u && (a = !1, o++, l(), a); e++);
328
+ if (o === u - 1 && (a = !1, l(), a)) throw Error("The graph contains a negative weight cycle");
329
+ return i;
330
+ }
331
+ function oe(e) {
332
+ let t = {}, n = [], r;
333
+ function i(n) {
334
+ n in t || (t[n] = !0, r.push(n), e.successors(n).forEach(i), e.predecessors(n).forEach(i));
335
+ }
336
+ return e.nodes().forEach(function(e) {
337
+ r = [], i(e), r.length && n.push(r);
338
+ }), n;
339
+ }
340
+ var _ = class {
341
+ constructor() {
342
+ this._arr = [], this._keyIndices = {};
343
+ }
344
+ size() {
345
+ return this._arr.length;
346
+ }
347
+ keys() {
348
+ return this._arr.map((e) => e.key);
349
+ }
350
+ has(e) {
351
+ return e in this._keyIndices;
352
+ }
353
+ priority(e) {
354
+ let t = this._keyIndices[e];
355
+ if (t !== void 0) return this._arr[t].priority;
356
+ }
357
+ min() {
358
+ if (this.size() === 0) throw Error("Queue underflow");
359
+ return this._arr[0].key;
360
+ }
361
+ add(e, t) {
362
+ let n = this._keyIndices, r = String(e);
363
+ if (!(r in n)) {
364
+ let e = this._arr, i = e.length;
365
+ return n[r] = i, e.push({
366
+ key: r,
367
+ priority: t
368
+ }), this._decrease(i), !0;
369
+ }
370
+ return !1;
371
+ }
372
+ removeMin() {
373
+ this._swap(0, this._arr.length - 1);
374
+ let e = this._arr.pop();
375
+ return delete this._keyIndices[e.key], this._heapify(0), e.key;
376
+ }
377
+ decrease(e, t) {
378
+ let n = this._keyIndices[e];
379
+ if (n === void 0) throw Error(`Key not found: ${e}`);
380
+ let r = this._arr[n].priority;
381
+ if (t > r) throw Error(`New priority is greater than current priority. Key: ${e} Old: ${r} New: ${t}`);
382
+ this._arr[n].priority = t, this._decrease(n);
383
+ }
384
+ _heapify(e) {
385
+ let t = this._arr, n = 2 * e, r = n + 1, i = e;
386
+ n < t.length && (i = t[n].priority < t[i].priority ? n : i, r < t.length && (i = t[r].priority < t[i].priority ? r : i), i !== e && (this._swap(e, i), this._heapify(i)));
387
+ }
388
+ _decrease(e) {
389
+ let t = this._arr, n = t[e].priority, r;
390
+ for (; e !== 0 && (r = e >> 1, !(t[r].priority < n));) this._swap(e, r), e = r;
391
+ }
392
+ _swap(e, t) {
393
+ let n = this._arr, r = this._keyIndices, i = n[e], a = n[t];
394
+ n[e] = a, n[t] = i, r[a.key] = e, r[i.key] = t;
395
+ }
396
+ }, se = () => 1;
397
+ function v(e, t, n, r) {
398
+ return ce(e, String(t), n || se, r || function(t) {
399
+ return e.outEdges(t);
400
+ });
401
+ }
402
+ function ce(e, t, n, r) {
403
+ let i = {}, a = new _(), o, s, c = function(e) {
404
+ let t = e.v === o ? e.w : e.v, r = i[t], c = n(e), l = s.distance + c;
405
+ if (c < 0) throw Error("dijkstra does not allow negative edge weights. Bad edge: " + e + " Weight: " + c);
406
+ l < r.distance && (r.distance = l, r.predecessor = o, a.decrease(t, l));
739
407
  };
740
- function i(e, t, n, r) {
741
- for (var i = r; e.hasNode(i);) i = T(r);
742
- return n.dummy = t, e.setNode(i, n), i;
743
- }
744
- function a(e) {
745
- let t = new r().setGraph(e.graph());
746
- return e.nodes().forEach((n) => t.setNode(n, e.node(n))), e.edges().forEach((n) => {
747
- let r = t.edge(n.v, n.w) || {
748
- weight: 0,
749
- minlen: 1
750
- }, i = e.edge(n);
751
- t.setEdge(n.v, n.w, {
752
- weight: r.weight + i.weight,
753
- minlen: Math.max(r.minlen, i.minlen)
754
- });
755
- }), t;
756
- }
757
- function o(e) {
758
- let t = new r({ multigraph: e.isMultigraph() }).setGraph(e.graph());
759
- return e.nodes().forEach((n) => {
760
- e.children(n).length || t.setNode(n, e.node(n));
761
- }), e.edges().forEach((n) => {
762
- t.setEdge(n, e.edge(n));
763
- }), t;
764
- }
765
- function s(e) {
766
- let t = e.nodes().map((t) => {
767
- let n = {};
768
- return e.outEdges(t).forEach((t) => {
769
- n[t.w] = (n[t.w] || 0) + e.edge(t).weight;
770
- }), n;
771
- });
772
- return k(e.nodes(), t);
773
- }
774
- function c(e) {
775
- let t = e.nodes().map((t) => {
776
- let n = {};
777
- return e.inEdges(t).forEach((t) => {
778
- n[t.v] = (n[t.v] || 0) + e.edge(t).weight;
779
- }), n;
780
- });
781
- return k(e.nodes(), t);
782
- }
783
- function l(e, t) {
784
- let n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
785
- if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
786
- let c, l;
787
- return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = o * a / i), {
788
- x: n + c,
789
- y: r + l
408
+ for (e.nodes().forEach(function(e) {
409
+ let n = e === t ? 0 : Infinity;
410
+ i[e] = {
411
+ distance: n,
412
+ predecessor: ""
413
+ }, a.add(e, n);
414
+ }); a.size() > 0 && (o = a.removeMin(), s = i[o], s.distance !== Infinity);) r(o).forEach(c);
415
+ return i;
416
+ }
417
+ function le(e, t, n) {
418
+ return e.nodes().reduce(function(r, i) {
419
+ return r[i] = v(e, i, t, n), r;
420
+ }, {});
421
+ }
422
+ function y(e) {
423
+ let t = 0, n = [], r = {}, i = [];
424
+ function a(o) {
425
+ let s = r[o] = {
426
+ onStack: !0,
427
+ lowlink: t,
428
+ index: t++
790
429
  };
791
- }
792
- function u(e) {
793
- let t = E(b(e) + 1).map(() => []);
794
- return e.nodes().forEach((n) => {
795
- let r = e.node(n), i = r.rank;
796
- i !== void 0 && (t[i][r.order] = n);
797
- }), t;
798
- }
799
- function d(e) {
800
- let t = e.nodes().map((t) => {
801
- let n = e.node(t).rank;
802
- return n === void 0 ? Number.MAX_VALUE : n;
803
- }), n = g(Math.min, t);
804
- e.nodes().forEach((t) => {
805
- let r = e.node(t);
806
- Object.hasOwn(r, "rank") && (r.rank -= n);
807
- });
808
- }
809
- function f(e) {
810
- let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = g(Math.min, t), r = [];
811
- e.nodes().forEach((t) => {
812
- let i = e.node(t).rank - n;
813
- r[i] || (r[i] = []), r[i].push(t);
814
- });
815
- let i = 0, a = e.graph().nodeRankFactor;
816
- Array.from(r).forEach((t, n) => {
817
- t === void 0 && n % a !== 0 ? --i : t !== void 0 && i && t.forEach((t) => e.node(t).rank += i);
430
+ if (n.push(o), e.successors(o).forEach(function(e) {
431
+ e in r ? r[e].onStack && (s.lowlink = Math.min(s.lowlink, r[e].index)) : (a(e), s.lowlink = Math.min(s.lowlink, r[e].lowlink));
432
+ }), s.lowlink === s.index) {
433
+ let e = [], t;
434
+ do
435
+ t = n.pop(), r[t].onStack = !1, e.push(t);
436
+ while (o !== t);
437
+ i.push(e);
438
+ }
439
+ }
440
+ return e.nodes().forEach(function(e) {
441
+ e in r || a(e);
442
+ }), i;
443
+ }
444
+ function ue(e) {
445
+ return y(e).filter(function(t) {
446
+ return t.length > 1 || t.length === 1 && e.hasEdge(t[0], t[0]);
447
+ });
448
+ }
449
+ var de = () => 1;
450
+ function fe(e, t, n) {
451
+ return pe(e, t || de, n || function(t) {
452
+ return e.outEdges(t);
453
+ });
454
+ }
455
+ function pe(e, t, n) {
456
+ let r = {}, i = e.nodes();
457
+ return i.forEach(function(e) {
458
+ r[e] = {}, r[e][e] = {
459
+ distance: 0,
460
+ predecessor: ""
461
+ }, i.forEach(function(t) {
462
+ e !== t && (r[e][t] = {
463
+ distance: Infinity,
464
+ predecessor: ""
465
+ });
466
+ }), n(e).forEach(function(n) {
467
+ let i = n.v === e ? n.w : n.v, a = t(n);
468
+ r[e][i] = {
469
+ distance: a,
470
+ predecessor: e
471
+ };
818
472
  });
819
- }
820
- function p(e, t, n, r) {
821
- let a = {
822
- width: 0,
823
- height: 0
824
- };
825
- return arguments.length >= 4 && (a.rank = n, a.order = r), i(e, "border", a, t);
826
- }
827
- function m(e, t = h) {
828
- let n = [];
829
- for (let r = 0; r < e.length; r += t) {
830
- let i = e.slice(r, r + t);
831
- n.push(i);
832
- }
833
- return n;
834
- }
835
- var h = 65535;
836
- function g(e, t) {
837
- if (t.length > h) {
838
- let n = m(t);
839
- return e.apply(null, n.map((t) => e.apply(null, t)));
840
- } else return e.apply(null, t);
841
- }
842
- function b(e) {
843
- let t = e.nodes().map((t) => {
844
- let n = e.node(t).rank;
845
- return n === void 0 ? Number.MIN_VALUE : n;
473
+ }), i.forEach(function(e) {
474
+ let t = r[e];
475
+ i.forEach(function(n) {
476
+ let a = r[n];
477
+ i.forEach(function(n) {
478
+ let r = a[e], i = t[n], o = a[n], s = r.distance + i.distance;
479
+ s < o.distance && (o.distance = s, o.predecessor = i.predecessor);
480
+ });
846
481
  });
847
- return g(Math.max, t);
848
- }
849
- function x(e, t) {
850
- let n = {
851
- lhs: [],
852
- rhs: []
853
- };
854
- return e.forEach((e) => {
855
- t(e) ? n.lhs.push(e) : n.rhs.push(e);
856
- }), n;
857
- }
858
- function S(e, t) {
859
- let n = Date.now();
860
- try {
861
- return t();
862
- } finally {
863
- console.log(e + " time: " + (Date.now() - n) + "ms");
864
- }
865
- }
866
- function C(e, t) {
867
- return t();
868
- }
869
- var w = 0;
870
- function T(e) {
871
- return e + ("" + ++w);
872
- }
873
- function E(e, t, n = 1) {
874
- t ?? (t = e, e = 0);
875
- let r = (e) => e < t;
876
- n < 0 && (r = (e) => t < e);
877
- let i = [];
878
- for (let t = e; r(t); t += n) i.push(t);
879
- return i;
880
- }
881
- function D(e, t) {
882
- let n = {};
883
- for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
884
- return n;
885
- }
886
- function O(e, t) {
887
- let n = t;
888
- return typeof t == "string" && (n = (e) => e[t]), Object.entries(e).reduce((e, [t, r]) => (e[t] = n(r, t), e), {});
889
- }
890
- function k(e, t) {
891
- return e.reduce((e, n, r) => (e[n] = t[r], e), {});
892
- }
893
- }), pe = v((e, t) => {
894
- var n = oe(), a = _().uniqueId;
895
- t.exports = {
896
- run: o,
897
- undo: c
898
- };
482
+ }), r;
483
+ }
484
+ var b = class extends Error {
485
+ constructor(...e) {
486
+ super(...e);
487
+ }
488
+ };
489
+ function me(e) {
490
+ let t = {}, n = {}, r = [];
491
+ function i(a) {
492
+ if (a in n) throw new b();
493
+ a in t || (n[a] = !0, t[a] = !0, e.predecessors(a).forEach(i), delete n[a], r.push(a));
494
+ }
495
+ if (e.sinks().forEach(i), Object.keys(t).length !== e.nodeCount()) throw new b();
496
+ return r;
497
+ }
498
+ function he(e) {
499
+ try {
500
+ me(e);
501
+ } catch (e) {
502
+ if (e instanceof b) return !1;
503
+ throw e;
504
+ }
505
+ return !0;
506
+ }
507
+ function ge(e, t, n, r, i) {
508
+ Array.isArray(t) || (t = [t]);
509
+ let a = ((t) => (e.isDirected() ? e.successors(t) : e.neighbors(t)) ?? []), o = {};
510
+ return t.forEach(function(t) {
511
+ if (!e.hasNode(t)) throw Error("Graph does not have node: " + t);
512
+ i = _e(e, t, n === "post", o, a, r, i);
513
+ }), i;
514
+ }
515
+ function _e(e, t, n, r, i, a, o) {
516
+ return t in r || (r[t] = !0, n || (o = a(o, t)), i(t).forEach(function(t) {
517
+ o = _e(e, t, n, r, i, a, o);
518
+ }), n && (o = a(o, t))), o;
519
+ }
520
+ function x(e, t, n) {
521
+ return ge(e, t, n, function(e, t) {
522
+ return e.push(t), e;
523
+ }, []);
524
+ }
525
+ function ve(e, t) {
526
+ return x(e, t, "post");
527
+ }
528
+ function ye(e, t) {
529
+ return x(e, t, "pre");
530
+ }
531
+ function be(e, t) {
532
+ let n = new s(), r = {}, i = new _(), a;
899
533
  function o(e) {
900
- (e.graph().acyclicer === "greedy" ? n(e, t(e)) : s(e)).forEach((t) => {
901
- let n = e.edge(t);
902
- e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, a("rev"));
903
- });
904
- function t(e) {
905
- return (t) => e.edge(t).weight;
906
- }
907
- }
908
- function s(e) {
909
- let t = [], n = {}, r = {};
910
- function i(a) {
911
- Object.hasOwn(r, a) || (r[a] = !0, n[a] = !0, e.outEdges(a).forEach((e) => {
912
- Object.hasOwn(n, e.w) ? t.push(e) : i(e.w);
913
- }), delete n[a]);
914
- }
915
- return e.nodes().forEach(i), t;
916
- }
917
- function c(e) {
918
- e.edges().forEach((t) => {
919
- let n = e.edge(t);
920
- if (n.reversed) {
921
- e.removeEdge(t);
922
- let r = n.forwardName;
923
- delete n.reversed, delete n.forwardName, e.setEdge(t.w, t.v, n, r);
924
- }
534
+ let n = e.v === a ? e.w : e.v, o = i.priority(n);
535
+ if (o !== void 0) {
536
+ let s = t(e);
537
+ s < o && (r[n] = a, i.decrease(n, s));
538
+ }
539
+ }
540
+ if (e.nodeCount() === 0) return n;
541
+ e.nodes().forEach(function(e) {
542
+ i.add(e, Infinity), n.setNode(e);
543
+ }), i.decrease(e.nodes()[0], 0);
544
+ let c = !1;
545
+ for (; i.size() > 0;) {
546
+ if (a = i.removeMin(), a in r) n.setEdge(a, r[a]);
547
+ else {
548
+ if (c) throw Error("Input graph is not connected: " + e);
549
+ c = !0;
550
+ }
551
+ e.nodeEdges(a).forEach(o);
552
+ }
553
+ return n;
554
+ }
555
+ function xe(e, t, n, r) {
556
+ return Se(e, t, n, r ?? ((t) => e.outEdges(t) ?? []));
557
+ }
558
+ function Se(e, t, n, r) {
559
+ if (n === void 0) return v(e, t, n, r);
560
+ let i = !1, a = e.nodes();
561
+ for (let o = 0; o < a.length; o++) {
562
+ let s = r(a[o]);
563
+ for (let e = 0; e < s.length; e++) {
564
+ let t = s[e], r = t.v === a[o] ? t.v : t.w;
565
+ n({
566
+ v: r,
567
+ w: r === t.v ? t.w : t.v
568
+ }) < 0 && (i = !0);
569
+ }
570
+ if (i) return g(e, t, n, r);
571
+ }
572
+ return v(e, t, n, r);
573
+ }
574
+ function S(e, t, n, r) {
575
+ let i = r;
576
+ for (; e.hasNode(i);) i = M(r);
577
+ return n.dummy = t, e.setNode(i, n), i;
578
+ }
579
+ function Ce(e) {
580
+ let t = new s().setGraph(e.graph());
581
+ return e.nodes().forEach((n) => t.setNode(n, e.node(n))), e.edges().forEach((n) => {
582
+ let r = t.edge(n.v, n.w) || {
583
+ weight: 0,
584
+ minlen: 1
585
+ }, i = e.edge(n);
586
+ t.setEdge(n.v, n.w, {
587
+ weight: r.weight + i.weight,
588
+ minlen: Math.max(r.minlen, i.minlen)
925
589
  });
926
- }
927
- }), we = v((e, t) => {
928
- var n = _();
929
- t.exports = {
930
- run: r,
931
- undo: o
590
+ }), t;
591
+ }
592
+ function C(e) {
593
+ let t = new s({ multigraph: e.isMultigraph() }).setGraph(e.graph());
594
+ return e.nodes().forEach((n) => {
595
+ e.children(n).length || t.setNode(n, e.node(n));
596
+ }), e.edges().forEach((n) => {
597
+ t.setEdge(n, e.edge(n));
598
+ }), t;
599
+ }
600
+ function w(e, t) {
601
+ let n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
602
+ if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
603
+ let c, l;
604
+ return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = o * a / i), {
605
+ x: n + c,
606
+ y: r + l
932
607
  };
933
- function r(e) {
934
- e.graph().dummyChains = [], e.edges().forEach((t) => a(e, t));
935
- }
936
- function a(e, t) {
937
- let r = t.v, i = e.node(r).rank, a = t.w, o = e.node(a).rank, s = t.name, c = e.edge(t), l = c.labelRank;
938
- if (o === i + 1) return;
939
- e.removeEdge(t);
940
- let u, d, f;
941
- for (f = 0, ++i; i < o; ++f, ++i) c.points = [], d = {
942
- width: 0,
943
- height: 0,
944
- edgeLabel: c,
945
- edgeObj: t,
946
- rank: i
947
- }, u = n.addDummyNode(e, "edge", d, "_d"), i === l && (d.width = c.width, d.height = c.height, d.dummy = "edge-label", d.labelpos = c.labelpos), e.setEdge(r, u, { weight: c.weight }, s), f === 0 && e.graph().dummyChains.push(u), r = u;
948
- e.setEdge(r, a, { weight: c.weight }, s);
949
- }
950
- function o(e) {
951
- e.graph().dummyChains.forEach((t) => {
952
- let n = e.node(t), r = n.edgeLabel, i;
953
- for (e.setEdge(n.edgeObj, r); n.dummy;) i = e.successors(t)[0], e.removeNode(t), r.points.push({
954
- x: n.x,
955
- y: n.y
956
- }), n.dummy === "edge-label" && (r.x = n.x, r.y = n.y, r.width = n.width, r.height = n.height), t = i, n = e.node(t);
957
- });
958
- }
959
- }), j = v((e, t) => {
960
- var { applyWithChunking: n } = _();
961
- t.exports = {
962
- longestPath: r,
963
- slack: a
608
+ }
609
+ function T(e) {
610
+ let t = N(k(e) + 1).map(() => []);
611
+ return e.nodes().forEach((n) => {
612
+ let r = e.node(n), i = r.rank;
613
+ i !== void 0 && (t[i] || (t[i] = []), t[i][r.order] = n);
614
+ }), t;
615
+ }
616
+ function we(e) {
617
+ let t = e.nodes().map((t) => {
618
+ let n = e.node(t).rank;
619
+ return n === void 0 ? Number.MAX_VALUE : n;
620
+ }), n = O(Math.min, t);
621
+ e.nodes().forEach((t) => {
622
+ let r = e.node(t);
623
+ Object.hasOwn(r, "rank") && (r.rank -= n);
624
+ });
625
+ }
626
+ function Te(e) {
627
+ let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = O(Math.min, t), r = [];
628
+ e.nodes().forEach((t) => {
629
+ let i = e.node(t).rank - n;
630
+ r[i] || (r[i] = []), r[i].push(t);
631
+ });
632
+ let i = 0, a = e.graph().nodeRankFactor;
633
+ Array.from(r).forEach((t, n) => {
634
+ t === void 0 && n % a !== 0 ? --i : t !== void 0 && i && t.forEach((t) => e.node(t).rank += i);
635
+ });
636
+ }
637
+ function E(e, t, n, r) {
638
+ let i = {
639
+ width: 0,
640
+ height: 0
964
641
  };
965
- function r(e) {
966
- var t = {};
967
- function r(i) {
968
- var a = e.node(i);
969
- if (Object.hasOwn(t, i)) return a.rank;
970
- t[i] = !0;
971
- let o = e.outEdges(i).map((t) => t == null ? Infinity : r(t.w) - e.edge(t).minlen);
972
- var s = n(Math.min, o);
973
- return s === Infinity && (s = 0), a.rank = s;
974
- }
975
- e.sources().forEach(r);
976
- }
977
- function a(e, t) {
978
- return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
979
- }
980
- }), G = v((e, n) => {
981
- var r = y().Graph, i = j().slack;
982
- n.exports = a;
983
- function a(e) {
984
- var t = new r({ directed: !1 }), n = e.nodes()[0], a = e.nodeCount();
985
- t.setNode(n, {});
986
- for (var s, u; o(t, e) < a;) s = c(t, e), u = t.hasNode(s.v) ? i(e, s) : -i(e, s), l(t, e, u);
987
- return t;
988
- }
989
- function o(e, t) {
990
- function n(r) {
991
- t.nodeEdges(r).forEach((a) => {
992
- var o = a.v, s = r === o ? a.w : o;
993
- !e.hasNode(s) && !i(t, a) && (e.setNode(s, {}), e.setEdge(r, s, {}), n(s));
994
- });
995
- }
996
- return e.nodes().forEach(n), e.nodeCount();
997
- }
998
- function c(e, t) {
999
- return t.edges().reduce((n, r) => {
1000
- let a = Infinity;
1001
- return e.hasNode(r.v) !== e.hasNode(r.w) && (a = i(t, r)), a < n[0] ? [a, r] : n;
1002
- }, [Infinity, null])[1];
1003
- }
1004
- function l(e, t, n) {
1005
- e.nodes().forEach((e) => t.node(e).rank += n);
1006
- }
1007
- }), Ie = v((e, n) => {
1008
- var r = G(), a = j().slack, o = j().longestPath, l = y().alg.preorder, u = y().alg.postorder, d = _().simplify;
1009
- n.exports = f, f.initLowLimValues = g, f.initCutValues = p, f.calcCutValue = h, f.leaveEdge = x, f.enterEdge = S, f.exchangeEdges = C;
1010
- function f(e) {
1011
- e = d(e), o(e);
1012
- var t = r(e);
1013
- g(t), p(t, e);
1014
- for (var n, i; n = x(t);) i = S(t, e, n), C(t, e, n, i);
1015
- }
1016
- function p(e, t) {
1017
- var n = u(e, e.nodes());
1018
- n = n.slice(0, n.length - 1), n.forEach((n) => m(e, t, n));
1019
- }
1020
- function m(e, t, n) {
1021
- var r = e.node(n).parent;
1022
- e.edge(n, r).cutvalue = h(e, t, n);
1023
- }
1024
- function h(e, t, n) {
1025
- var r = e.node(n).parent, i = !0, a = t.edge(n, r), o = 0;
1026
- return a ||= (i = !1, t.edge(r, n)), o = a.weight, t.nodeEdges(n).forEach((a) => {
1027
- var s = a.v === n, c = s ? a.w : a.v;
1028
- if (c !== r) {
1029
- var l = s === i, u = t.edge(a).weight;
1030
- if (o += l ? u : -u, T(e, n, c)) {
1031
- var d = e.edge(n, c).cutvalue;
1032
- o += l ? -d : d;
1033
- }
1034
- }
1035
- }), o;
1036
- }
1037
- function g(e, t) {
1038
- arguments.length < 2 && (t = e.nodes()[0]), b(e, {}, 1, t);
1039
- }
1040
- function b(e, t, n, r, i) {
1041
- var a = n, o = e.node(r);
1042
- return t[r] = !0, e.neighbors(r).forEach((i) => {
1043
- Object.hasOwn(t, i) || (n = b(e, t, n, i, r));
1044
- }), o.low = a, o.lim = n++, i ? o.parent = i : delete o.parent, n;
1045
- }
1046
- function x(e) {
1047
- return e.edges().find((t) => e.edge(t).cutvalue < 0);
1048
- }
1049
- function S(e, t, n) {
1050
- var r = n.v, i = n.w;
1051
- t.hasEdge(r, i) || (r = n.w, i = n.v);
1052
- var o = e.node(r), s = e.node(i), c = o, l = !1;
1053
- return o.lim > s.lim && (c = s, l = !0), t.edges().filter((t) => l === E(e, e.node(t.v), c) && l !== E(e, e.node(t.w), c)).reduce((e, n) => a(t, n) < a(t, e) ? n : e);
1054
- }
1055
- function C(e, t, n, r) {
1056
- var i = n.v, a = n.w;
1057
- e.removeEdge(i, a), e.setEdge(r.v, r.w, {}), g(e), p(e, t), w(e, t);
1058
- }
1059
- function w(e, t) {
1060
- var n = l(e, e.nodes().find((e) => !t.node(e).parent));
1061
- n = n.slice(1), n.forEach((n) => {
1062
- var r = e.node(n).parent, i = t.edge(n, r), a = !1;
1063
- i || (i = t.edge(r, n), a = !0), t.node(n).rank = t.node(r).rank + (a ? i.minlen : -i.minlen);
1064
- });
1065
- }
1066
- function T(e, t, n) {
1067
- return e.hasEdge(t, n);
1068
- }
1069
- function E(e, t, n) {
1070
- return n.low <= t.lim && t.lim <= n.lim;
1071
- }
1072
- }), qe = v((e, t) => {
1073
- var n = j().longestPath, r = G(), i = Ie();
1074
- t.exports = a;
1075
- function a(e) {
1076
- var t = e.graph().ranker;
1077
- if (t instanceof Function) return t(e);
1078
- switch (e.graph().ranker) {
1079
- case "network-simplex":
1080
- d(e);
1081
- break;
1082
- case "tight-tree":
1083
- u(e);
1084
- break;
1085
- case "longest-path":
1086
- o(e);
642
+ return arguments.length >= 4 && (i.rank = n, i.order = r), S(e, "border", i, t);
643
+ }
644
+ function Ee(e, t = D) {
645
+ let n = [];
646
+ for (let r = 0; r < e.length; r += t) {
647
+ let i = e.slice(r, r + t);
648
+ n.push(i);
649
+ }
650
+ return n;
651
+ }
652
+ var D = 65535;
653
+ function O(e, t) {
654
+ return t.length > D ? e(...Ee(t).map((t) => e(...t))) : e(...t);
655
+ }
656
+ function k(e) {
657
+ let t = e.nodes().map((t) => {
658
+ let n = e.node(t).rank;
659
+ return n === void 0 ? Number.MIN_VALUE : n;
660
+ });
661
+ return O(Math.max, t);
662
+ }
663
+ function De(e, t) {
664
+ let n = {
665
+ lhs: [],
666
+ rhs: []
667
+ };
668
+ return e.forEach((e) => {
669
+ t(e) ? n.lhs.push(e) : n.rhs.push(e);
670
+ }), n;
671
+ }
672
+ function A(e, t) {
673
+ let n = Date.now();
674
+ try {
675
+ return t();
676
+ } finally {
677
+ console.log(e + " time: " + (Date.now() - n) + "ms");
678
+ }
679
+ }
680
+ function j(e, t) {
681
+ return t();
682
+ }
683
+ var Oe = 0;
684
+ function M(e) {
685
+ return e + ("" + ++Oe);
686
+ }
687
+ function N(e, t, n = 1) {
688
+ t ?? (t = e, e = 0);
689
+ let r = (e) => e < t;
690
+ n < 0 && (r = (e) => t < e);
691
+ let i = [];
692
+ for (let t = e; r(t); t += n) i.push(t);
693
+ return i;
694
+ }
695
+ function P(e, t) {
696
+ let n = {};
697
+ for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
698
+ return n;
699
+ }
700
+ function F(e, t) {
701
+ let n;
702
+ return n = typeof t == "string" ? (e) => e[t] : t, Object.entries(e).reduce((e, [t, r]) => (e[t] = n(r, t), e), {});
703
+ }
704
+ function ke(e, t) {
705
+ return e.reduce((e, n, r) => (e[n] = t[r], e), {});
706
+ }
707
+ var I = "\0", Ae = "3.0.0", je = class {
708
+ constructor() {
709
+ r(this, "_sentinel");
710
+ let e = {};
711
+ e._next = e._prev = e, this._sentinel = e;
712
+ }
713
+ dequeue() {
714
+ let e = this._sentinel, t = e._prev;
715
+ if (t !== e) return L(t), t;
716
+ }
717
+ enqueue(e) {
718
+ let t = this._sentinel;
719
+ e._prev && e._next && L(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
720
+ }
721
+ toString() {
722
+ let e = [], t = this._sentinel, n = t._prev;
723
+ for (; n !== t;) e.push(JSON.stringify(n, Me)), n = n._prev;
724
+ return "[" + e.join(", ") + "]";
725
+ }
726
+ };
727
+ function L(e) {
728
+ e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
729
+ }
730
+ function Me(e, t) {
731
+ if (e !== "_next" && e !== "_prev") return t;
732
+ }
733
+ var Ne = je, Pe = () => 1;
734
+ function Fe(e, t) {
735
+ if (e.nodeCount() <= 1) return [];
736
+ let n = Le(e, t || Pe);
737
+ return Ie(n.graph, n.buckets, n.zeroIdx).flatMap((t) => e.outEdges(t.v, t.w) || []);
738
+ }
739
+ function Ie(e, t, n) {
740
+ let r = [], i = t[t.length - 1], a = t[0], o;
741
+ for (; e.nodeCount();) {
742
+ for (; o = a.dequeue();) R(e, t, n, o);
743
+ for (; o = i.dequeue();) R(e, t, n, o);
744
+ if (e.nodeCount()) {
745
+ for (let i = t.length - 2; i > 0; --i) if (o = t[i]?.dequeue(), o) {
746
+ r = r.concat(R(e, t, n, o, !0) || []);
1087
747
  break;
1088
- case "none": break;
1089
- default: d(e);
1090
- }
1091
- }
1092
- var o = n;
1093
- function u(e) {
1094
- n(e), r(e);
1095
- }
1096
- function d(e) {
1097
- i(e);
1098
- }
1099
- }), Re = v((e, t) => {
1100
- t.exports = n;
1101
- function n(e) {
1102
- let t = i(e);
1103
- e.graph().dummyChains.forEach((n) => {
1104
- let i = e.node(n), a = i.edgeObj, o = r(e, t, a.v, a.w), s = o.path, c = o.lca, l = 0, u = s[l], d = !0;
1105
- for (; n !== a.w;) {
1106
- if (i = e.node(n), d) {
1107
- for (; (u = s[l]) !== c && e.node(u).maxRank < i.rank;) l++;
1108
- u === c && (d = !1);
1109
- }
1110
- if (!d) {
1111
- for (; l < s.length - 1 && e.node(u = s[l + 1]).minRank <= i.rank;) l++;
1112
- u = s[l];
1113
- }
1114
- e.setParent(n, u), n = e.successors(n)[0];
1115
748
  }
1116
- });
1117
- }
1118
- function r(e, t, n, r) {
1119
- let i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c, l;
1120
- c = n;
1121
- do
1122
- c = e.parent(c), i.push(c);
1123
- while (c && (t[c].low > o || s > t[c].lim));
1124
- for (l = c, c = r; (c = e.parent(c)) !== l;) a.push(c);
1125
- return {
1126
- path: i.concat(a.reverse()),
1127
- lca: l
1128
- };
1129
- }
1130
- function i(e) {
1131
- let t = {}, n = 0;
1132
- function r(i) {
1133
- let a = n;
1134
- e.children(i).forEach(r), t[i] = {
1135
- low: a,
1136
- lim: n++
1137
- };
1138
749
  }
1139
- return e.children().forEach(r), t;
1140
750
  }
1141
- }), Pe = v((e, t) => {
1142
- var n = _();
1143
- t.exports = {
1144
- run: r,
1145
- cleanup: c
1146
- };
1147
- function r(e) {
1148
- let t = n.addDummyNode(e, "root", {}, "_root"), r = o(e), i = Object.values(r), c = n.applyWithChunking(Math.max, i) - 1, l = 2 * c + 1;
1149
- e.graph().nestingRoot = t, e.edges().forEach((t) => e.edge(t).minlen *= l);
1150
- let u = s(e) + 1;
1151
- e.children().forEach((n) => a(e, t, l, u, c, r, n)), e.graph().nodeRankFactor = l;
1152
- }
1153
- function a(e, t, r, i, o, s, c) {
1154
- let l = e.children(c);
1155
- if (!l.length) {
1156
- c !== t && e.setEdge(t, c, {
1157
- weight: 0,
1158
- minlen: r
1159
- });
1160
- return;
1161
- }
1162
- let u = n.addBorderNode(e, "_bt"), d = n.addBorderNode(e, "_bb"), f = e.node(c);
1163
- e.setParent(u, c), f.borderTop = u, e.setParent(d, c), f.borderBottom = d, l.forEach((n) => {
1164
- a(e, t, r, i, o, s, n);
1165
- let l = e.node(n), f = l.borderTop ? l.borderTop : n, p = l.borderBottom ? l.borderBottom : n, m = l.borderTop ? i : 2 * i, h = f === p ? o - s[c] + 1 : 1;
1166
- e.setEdge(u, f, {
1167
- weight: m,
1168
- minlen: h,
1169
- nestingEdge: !0
1170
- }), e.setEdge(p, d, {
1171
- weight: m,
1172
- minlen: h,
1173
- nestingEdge: !0
1174
- });
1175
- }), e.parent(c) || e.setEdge(t, u, {
1176
- weight: 0,
1177
- minlen: o + s[c]
751
+ return r;
752
+ }
753
+ function R(e, t, n, r, i) {
754
+ let a = [], o = i ? a : void 0;
755
+ return (e.inEdges(r.v) || []).forEach((r) => {
756
+ let o = e.edge(r), s = e.node(r.v);
757
+ i && a.push({
758
+ v: r.v,
759
+ w: r.w
760
+ }), s.out -= o, z(t, n, s);
761
+ }), (e.outEdges(r.v) || []).forEach((r) => {
762
+ let i = e.edge(r), a = r.w, o = e.node(a);
763
+ o.in -= i, z(t, n, o);
764
+ }), e.removeNode(r.v), o;
765
+ }
766
+ function Le(e, t) {
767
+ let n = new s(), r = 0, i = 0;
768
+ e.nodes().forEach((e) => {
769
+ n.setNode(e, {
770
+ v: e,
771
+ in: 0,
772
+ out: 0
1178
773
  });
1179
- }
1180
- function o(e) {
1181
- var t = {};
1182
- function n(r, i) {
1183
- var a = e.children(r);
1184
- a && a.length && a.forEach((e) => n(e, i + 1)), t[r] = i;
1185
- }
1186
- return e.children().forEach((e) => n(e, 1)), t;
1187
- }
1188
- function s(e) {
1189
- return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
1190
- }
1191
- function c(e) {
1192
- var t = e.graph();
1193
- e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((t) => {
1194
- e.edge(t).nestingEdge && e.removeEdge(t);
774
+ }), e.edges().forEach((e) => {
775
+ let a = n.edge(e.v, e.w) || 0, o = t(e), s = a + o;
776
+ n.setEdge(e.v, e.w, s);
777
+ let c = n.node(e.v), l = n.node(e.w);
778
+ i = Math.max(i, c.out += o), r = Math.max(r, l.in += o);
779
+ });
780
+ let a = Re(i + r + 3).map(() => new Ne()), o = r + 1;
781
+ return n.nodes().forEach((e) => {
782
+ z(a, o, n.node(e));
783
+ }), {
784
+ graph: n,
785
+ buckets: a,
786
+ zeroIdx: o
787
+ };
788
+ }
789
+ function z(e, t, n) {
790
+ var r, i, a;
791
+ n.out ? n.in ? (a = e[n.out - n.in + t]) == null || a.enqueue(n) : (i = e[e.length - 1]) == null || i.enqueue(n) : (r = e[0]) == null || r.enqueue(n);
792
+ }
793
+ function Re(e) {
794
+ let t = [];
795
+ for (let n = 0; n < e; n++) t.push(n);
796
+ return t;
797
+ }
798
+ function ze(e) {
799
+ (e.graph().acyclicer === "greedy" ? Fe(e, t(e)) : Be(e)).forEach((t) => {
800
+ let n = e.edge(t);
801
+ e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, M("rev"));
802
+ });
803
+ function t(e) {
804
+ return (t) => e.edge(t).weight;
805
+ }
806
+ }
807
+ function Be(e) {
808
+ let t = [], n = {}, r = {};
809
+ function i(a) {
810
+ Object.hasOwn(r, a) || (r[a] = !0, n[a] = !0, e.outEdges(a).forEach((e) => {
811
+ Object.hasOwn(n, e.w) ? t.push(e) : i(e.w);
812
+ }), delete n[a]);
813
+ }
814
+ return e.nodes().forEach(i), t;
815
+ }
816
+ function Ve(e) {
817
+ e.edges().forEach((t) => {
818
+ let n = e.edge(t);
819
+ if (n.reversed) {
820
+ e.removeEdge(t);
821
+ let r = n.forwardName;
822
+ delete n.reversed, delete n.forwardName, e.setEdge(t.w, t.v, n, r);
823
+ }
824
+ });
825
+ }
826
+ function He(e) {
827
+ e.graph().dummyChains = [], e.edges().forEach((t) => Ue(e, t));
828
+ }
829
+ function Ue(e, t) {
830
+ let n = t.v, r = e.node(n).rank, i = t.w, a = e.node(i).rank, o = t.name, s = e.edge(t), c = s.labelRank;
831
+ if (a === r + 1) return;
832
+ e.removeEdge(t);
833
+ let l, u, d;
834
+ for (d = 0, ++r; r < a; ++d, ++r) s.points = [], u = {
835
+ width: 0,
836
+ height: 0,
837
+ edgeLabel: s,
838
+ edgeObj: t,
839
+ rank: r
840
+ }, l = S(e, "edge", u, "_d"), r === c && (u.width = s.width, u.height = s.height, u.dummy = "edge-label", u.labelpos = s.labelpos), e.setEdge(n, l, { weight: s.weight }, o), d === 0 && e.graph().dummyChains.push(l), n = l;
841
+ e.setEdge(n, i, { weight: s.weight }, o);
842
+ }
843
+ function We(e) {
844
+ e.graph().dummyChains.forEach((t) => {
845
+ let n = e.node(t), r = n.edgeLabel, i;
846
+ for (e.setEdge(n.edgeObj, r); n.dummy;) i = e.successors(t)[0], e.removeNode(t), r.points.push({
847
+ x: n.x,
848
+ y: n.y
849
+ }), n.dummy === "edge-label" && (r.x = n.x, r.y = n.y, r.width = n.width, r.height = n.height), t = i, n = e.node(t);
850
+ });
851
+ }
852
+ function B(e) {
853
+ let t = {};
854
+ function n(r) {
855
+ let i = e.node(r);
856
+ if (Object.hasOwn(t, r)) return i.rank;
857
+ t[r] = !0;
858
+ let a = e.outEdges(r), o = a ? a.map((t) => t == null ? Infinity : n(t.w) - e.edge(t).minlen) : [], s = O(Math.min, o);
859
+ return s === Infinity && (s = 0), i.rank = s;
860
+ }
861
+ e.sources().forEach(n);
862
+ }
863
+ function V(e, t) {
864
+ return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
865
+ }
866
+ var H = Ge;
867
+ function Ge(e) {
868
+ let t = new s({ directed: !1 }), n = e.nodes();
869
+ if (n.length === 0) throw Error("Graph must have at least one node");
870
+ let r = n[0], i = e.nodeCount();
871
+ t.setNode(r, {});
872
+ let a, o;
873
+ for (; Ke(t, e) < i && (a = qe(t, e), a);) o = t.hasNode(a.v) ? V(e, a) : -V(e, a), Je(t, e, o);
874
+ return t;
875
+ }
876
+ function Ke(e, t) {
877
+ function n(r) {
878
+ let i = t.nodeEdges(r);
879
+ i && i.forEach((i) => {
880
+ let a = i.v, o = r === a ? i.w : a;
881
+ !e.hasNode(o) && !V(t, i) && (e.setNode(o, {}), e.setEdge(r, o, {}), n(o));
1195
882
  });
1196
883
  }
1197
- }), Ge = v((e, t) => {
1198
- var n = _();
1199
- t.exports = r;
1200
- function r(e) {
1201
- function t(n) {
1202
- let r = e.children(n), i = e.node(n);
1203
- if (r.length && r.forEach(t), Object.hasOwn(i, "minRank")) {
1204
- i.borderLeft = [], i.borderRight = [];
1205
- for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) a(e, "borderLeft", "_bl", n, i, t), a(e, "borderRight", "_br", n, i, t);
1206
- }
1207
- }
1208
- e.children().forEach(t);
1209
- }
1210
- function a(e, t, r, i, a, o) {
1211
- let s = {
1212
- width: 0,
1213
- height: 0,
1214
- rank: o,
1215
- borderType: t
1216
- }, c = a[t][o - 1], l = n.addDummyNode(e, "border", s, r);
1217
- a[t][o] = l, e.setParent(l, i), c && e.setEdge(c, l, { weight: 1 });
1218
- }
1219
- }), Be = v((e, t) => {
1220
- t.exports = {
1221
- adjust: n,
1222
- undo: r
884
+ return e.nodes().forEach(n), e.nodeCount();
885
+ }
886
+ function qe(e, t) {
887
+ return t.edges().reduce((n, r) => {
888
+ let i = Infinity;
889
+ return e.hasNode(r.v) !== e.hasNode(r.w) && (i = V(t, r)), i < n[0] ? [i, r] : n;
890
+ }, [Infinity, null])[1];
891
+ }
892
+ function Je(e, t, n) {
893
+ e.nodes().forEach((e) => t.node(e).rank += n);
894
+ }
895
+ var { preorder: Ye, postorder: Xe } = h, Ze = U;
896
+ U.initLowLimValues = K, U.initCutValues = W, U.calcCutValue = G, U.leaveEdge = J, U.enterEdge = $e, U.exchangeEdges = et;
897
+ function U(e) {
898
+ e = Ce(e), B(e);
899
+ let t = H(e);
900
+ K(t), W(t, e);
901
+ let n, r;
902
+ for (; n = J(t);) r = $e(t, e, n), et(t, e, n, r);
903
+ }
904
+ function W(e, t) {
905
+ let n = Xe(e, e.nodes());
906
+ n = n.slice(0, n.length - 1), n.forEach((n) => Qe(e, t, n));
907
+ }
908
+ function Qe(e, t, n) {
909
+ let r = e.node(n).parent, i = e.edge(n, r);
910
+ i.cutvalue = G(e, t, n);
911
+ }
912
+ function G(e, t, n) {
913
+ let r = e.node(n).parent, i = !0, a = t.edge(n, r), o = 0;
914
+ a ||= (i = !1, t.edge(r, n)), o = a.weight;
915
+ let s = t.nodeEdges(n);
916
+ return s && s.forEach((a) => {
917
+ let s = a.v === n, c = s ? a.w : a.v;
918
+ if (c !== r) {
919
+ let r = s === i, l = t.edge(a).weight;
920
+ if (o += r ? l : -l, nt(e, n, c)) {
921
+ let t = e.edge(n, c).cutvalue;
922
+ o += r ? -t : t;
923
+ }
924
+ }
925
+ }), o;
926
+ }
927
+ function K(e, t) {
928
+ arguments.length < 2 && (t = e.nodes()[0]), q(e, {}, 1, t);
929
+ }
930
+ function q(e, t, n, r, i) {
931
+ let a = n, o = e.node(r);
932
+ t[r] = !0;
933
+ let s = e.neighbors(r);
934
+ return s && s.forEach((i) => {
935
+ Object.hasOwn(t, i) || (n = q(e, t, n, i, r));
936
+ }), o.low = a, o.lim = n++, i ? o.parent = i : delete o.parent, n;
937
+ }
938
+ function J(e) {
939
+ return e.edges().find((t) => e.edge(t).cutvalue < 0);
940
+ }
941
+ function $e(e, t, n) {
942
+ let r = n.v, i = n.w;
943
+ t.hasEdge(r, i) || (r = n.w, i = n.v);
944
+ let a = e.node(r), o = e.node(i), s = a, c = !1;
945
+ return a.lim > o.lim && (s = o, c = !0), t.edges().filter((t) => c === rt(e, e.node(t.v), s) && c !== rt(e, e.node(t.w), s)).reduce((e, n) => V(t, n) < V(t, e) ? n : e);
946
+ }
947
+ function et(e, t, n, r) {
948
+ let i = n.v, a = n.w;
949
+ e.removeEdge(i, a), e.setEdge(r.v, r.w, {}), K(e), W(e, t), tt(e, t);
950
+ }
951
+ function tt(e, t) {
952
+ let n = e.nodes().find((t) => !e.node(t).parent);
953
+ if (!n) return;
954
+ let r = Ye(e, [n]);
955
+ r = r.slice(1), r.forEach((n) => {
956
+ let r = e.node(n).parent, i = t.edge(n, r), a = !1;
957
+ i || (i = t.edge(r, n), a = !0), t.node(n).rank = t.node(r).rank + (a ? i.minlen : -i.minlen);
958
+ });
959
+ }
960
+ function nt(e, t, n) {
961
+ return e.hasEdge(t, n);
962
+ }
963
+ function rt(e, t, n) {
964
+ return n.low <= t.lim && t.lim <= n.lim;
965
+ }
966
+ var it = at;
967
+ function at(e) {
968
+ let t = e.graph().ranker;
969
+ if (typeof t == "function") return t(e);
970
+ switch (t) {
971
+ case "network-simplex":
972
+ ct(e);
973
+ break;
974
+ case "tight-tree":
975
+ st(e);
976
+ break;
977
+ case "longest-path":
978
+ ot(e);
979
+ break;
980
+ case "none": break;
981
+ default: ct(e);
982
+ }
983
+ }
984
+ var ot = B;
985
+ function st(e) {
986
+ B(e), H(e);
987
+ }
988
+ function ct(e) {
989
+ Ze(e);
990
+ }
991
+ var lt = ut;
992
+ function ut(e) {
993
+ let t = ft(e);
994
+ e.graph().dummyChains.forEach((n) => {
995
+ let r = e.node(n), i = r.edgeObj, a = dt(e, t, i.v, i.w), o = a.path, s = a.lca, c = 0, l = o[c], u = !0;
996
+ for (; n !== i.w;) {
997
+ if (r = e.node(n), u) {
998
+ for (; (l = o[c]) !== s && e.node(l).maxRank < r.rank;) c++;
999
+ l === s && (u = !1);
1000
+ }
1001
+ if (!u) {
1002
+ for (; c < o.length - 1 && e.node(o[c + 1]).minRank <= r.rank;) c++;
1003
+ l = o[c];
1004
+ }
1005
+ l !== void 0 && e.setParent(n, l), n = e.successors(n)[0];
1006
+ }
1007
+ });
1008
+ }
1009
+ function dt(e, t, n, r) {
1010
+ let i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c;
1011
+ c = n;
1012
+ do
1013
+ c = e.parent(c), i.push(c);
1014
+ while (c && (t[c].low > o || s > t[c].lim));
1015
+ let l = c, u = r;
1016
+ for (; (u = e.parent(u)) !== l;) a.push(u);
1017
+ return {
1018
+ path: i.concat(a.reverse()),
1019
+ lca: l
1223
1020
  };
1224
- function n(e) {
1225
- let t = e.graph().rankdir.toLowerCase();
1226
- (t === "lr" || t === "rl") && i(e);
1227
- }
1228
- function r(e) {
1229
- let t = e.graph().rankdir.toLowerCase();
1230
- (t === "bt" || t === "rl") && o(e), (t === "lr" || t === "rl") && (c(e), i(e));
1231
- }
1232
- function i(e) {
1233
- e.nodes().forEach((t) => a(e.node(t))), e.edges().forEach((t) => a(e.edge(t)));
1234
- }
1235
- function a(e) {
1236
- let t = e.width;
1237
- e.width = e.height, e.height = t;
1021
+ }
1022
+ function ft(e) {
1023
+ let t = {}, n = 0;
1024
+ function r(i) {
1025
+ let a = n;
1026
+ e.children(i).forEach(r), t[i] = {
1027
+ low: a,
1028
+ lim: n++
1029
+ };
1238
1030
  }
1239
- function o(e) {
1240
- e.nodes().forEach((t) => s(e.node(t))), e.edges().forEach((t) => {
1241
- let n = e.edge(t);
1242
- n.points.forEach(s), Object.hasOwn(n, "y") && s(n);
1031
+ return e.children(I).forEach(r), t;
1032
+ }
1033
+ function pt(e) {
1034
+ let t = S(e, "root", {}, "_root"), n = mt(e), r = Object.values(n), i = O(Math.max, r) - 1, a = 2 * i + 1;
1035
+ e.graph().nestingRoot = t, e.edges().forEach((t) => e.edge(t).minlen *= a);
1036
+ let o = ht(e) + 1;
1037
+ e.children(I).forEach((r) => Y(e, t, a, o, i, n, r)), e.graph().nodeRankFactor = a;
1038
+ }
1039
+ function Y(e, t, n, r, i, a, o) {
1040
+ let s = e.children(o);
1041
+ if (!s.length) {
1042
+ o !== t && e.setEdge(t, o, {
1043
+ weight: 0,
1044
+ minlen: n
1243
1045
  });
1244
- }
1245
- function s(e) {
1246
- e.y = -e.y;
1247
- }
1248
- function c(e) {
1249
- e.nodes().forEach((t) => l(e.node(t))), e.edges().forEach((t) => {
1250
- let n = e.edge(t);
1251
- n.points.forEach(l), Object.hasOwn(n, "x") && l(n);
1046
+ return;
1047
+ }
1048
+ let c = E(e, "_bt"), l = E(e, "_bb"), u = e.node(o);
1049
+ e.setParent(c, o), u.borderTop = c, e.setParent(l, o), u.borderBottom = l, s.forEach((s) => {
1050
+ Y(e, t, n, r, i, a, s);
1051
+ let u = e.node(s), d = u.borderTop ? u.borderTop : s, f = u.borderBottom ? u.borderBottom : s, p = u.borderTop ? r : 2 * r, m = d === f ? i - (a[o] ?? 0) + 1 : 1;
1052
+ e.setEdge(c, d, {
1053
+ weight: p,
1054
+ minlen: m,
1055
+ nestingEdge: !0
1056
+ }), e.setEdge(f, l, {
1057
+ weight: p,
1058
+ minlen: m,
1059
+ nestingEdge: !0
1252
1060
  });
1253
- }
1254
- function l(e) {
1255
- let t = e.x;
1256
- e.x = e.y, e.y = t;
1257
- }
1258
- }), Xe = v((e, t) => {
1259
- var n = _();
1260
- t.exports = r;
1261
- function r(e) {
1262
- let t = {}, r = e.nodes().filter((t) => !e.children(t).length), i = r.map((t) => e.node(t).rank), a = n.applyWithChunking(Math.max, i), o = n.range(a + 1).map(() => []);
1263
- function s(n) {
1264
- t[n] || (t[n] = !0, o[e.node(n).rank].push(n), e.successors(n).forEach(s));
1265
- }
1266
- return r.sort((t, n) => e.node(t).rank - e.node(n).rank).forEach(s), o;
1267
- }
1268
- }), Ue = v((e, t) => {
1269
- var n = _().zipObject;
1270
- t.exports = r;
1271
- function r(e, t) {
1272
- let n = 0;
1273
- for (let r = 1; r < t.length; ++r) n += a(e, t[r - 1], t[r]);
1274
- return n;
1275
- }
1276
- function a(e, t, r) {
1277
- let i = n(r, r.map((e, t) => t)), a = t.flatMap((t) => e.outEdges(t).map((t) => ({
1278
- pos: i[t.w],
1061
+ }), e.parent(o) || e.setEdge(t, c, {
1062
+ weight: 0,
1063
+ minlen: i + (a[o] ?? 0)
1064
+ });
1065
+ }
1066
+ function mt(e) {
1067
+ let t = {};
1068
+ function n(r, i) {
1069
+ let a = e.children(r);
1070
+ a && a.length && a.forEach((e) => n(e, i + 1)), t[r] = i;
1071
+ }
1072
+ return e.children(I).forEach((e) => n(e, 1)), t;
1073
+ }
1074
+ function ht(e) {
1075
+ return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
1076
+ }
1077
+ function gt(e) {
1078
+ let t = e.graph();
1079
+ e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((t) => {
1080
+ e.edge(t).nestingEdge && e.removeEdge(t);
1081
+ });
1082
+ }
1083
+ var _t = vt;
1084
+ function vt(e) {
1085
+ function t(n) {
1086
+ let r = e.children(n), i = e.node(n);
1087
+ if (r.length && r.forEach(t), Object.hasOwn(i, "minRank")) {
1088
+ i.borderLeft = [], i.borderRight = [];
1089
+ for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) yt(e, "borderLeft", "_bl", n, i, t), yt(e, "borderRight", "_br", n, i, t);
1090
+ }
1091
+ }
1092
+ e.children(I).forEach(t);
1093
+ }
1094
+ function yt(e, t, n, r, i, a) {
1095
+ let o = {
1096
+ width: 0,
1097
+ height: 0,
1098
+ rank: a,
1099
+ borderType: t
1100
+ }, s = i[t][a - 1], c = S(e, "border", o, n);
1101
+ i[t][a] = c, e.setParent(c, r), s && e.setEdge(s, c, { weight: 1 });
1102
+ }
1103
+ function bt(e) {
1104
+ let t = e.graph().rankdir?.toLowerCase();
1105
+ (t === "lr" || t === "rl") && St(e);
1106
+ }
1107
+ function xt(e) {
1108
+ let t = e.graph().rankdir?.toLowerCase();
1109
+ (t === "bt" || t === "rl") && wt(e), (t === "lr" || t === "rl") && (Tt(e), St(e));
1110
+ }
1111
+ function St(e) {
1112
+ e.nodes().forEach((t) => Ct(e.node(t))), e.edges().forEach((t) => Ct(e.edge(t)));
1113
+ }
1114
+ function Ct(e) {
1115
+ let t = e.width;
1116
+ e.width = e.height, e.height = t;
1117
+ }
1118
+ function wt(e) {
1119
+ e.nodes().forEach((t) => X(e.node(t))), e.edges().forEach((t) => {
1120
+ var n;
1121
+ let r = e.edge(t);
1122
+ (n = r.points) == null || n.forEach(X), Object.hasOwn(r, "y") && X(r);
1123
+ });
1124
+ }
1125
+ function X(e) {
1126
+ e.y = -e.y;
1127
+ }
1128
+ function Tt(e) {
1129
+ e.nodes().forEach((t) => Z(e.node(t))), e.edges().forEach((t) => {
1130
+ var n;
1131
+ let r = e.edge(t);
1132
+ (n = r.points) == null || n.forEach(Z), Object.hasOwn(r, "x") && Z(r);
1133
+ });
1134
+ }
1135
+ function Z(e) {
1136
+ let t = e.x;
1137
+ e.x = e.y, e.y = t;
1138
+ }
1139
+ function Et(e) {
1140
+ let t = {}, n = e.nodes().filter((t) => !e.children(t).length), r = n.map((t) => e.node(t).rank), i = N(O(Math.max, r) + 1).map(() => []);
1141
+ function a(n) {
1142
+ if (t[n]) return;
1143
+ t[n] = !0, i[e.node(n).rank].push(n);
1144
+ let r = e.successors(n);
1145
+ r && r.forEach(a);
1146
+ }
1147
+ return n.sort((t, n) => e.node(t).rank - e.node(n).rank).forEach(a), i;
1148
+ }
1149
+ function Dt(e, t) {
1150
+ let n = 0;
1151
+ for (let r = 1; r < t.length; ++r) n += Ot(e, t[r - 1], t[r]);
1152
+ return n;
1153
+ }
1154
+ function Ot(e, t, n) {
1155
+ let r = ke(n, n.map((e, t) => t)), i = t.flatMap((t) => {
1156
+ let n = e.outEdges(t);
1157
+ return n ? n.map((t) => ({
1158
+ pos: r[t.w],
1279
1159
  weight: e.edge(t).weight
1280
- })).sort((e, t) => e.pos - t.pos)), o = 1;
1281
- for (; o < r.length;) o <<= 1;
1282
- let s = 2 * o - 1;
1283
- --o;
1284
- let c = Array(s).fill(0), l = 0;
1285
- return a.forEach((e) => {
1286
- let t = e.pos + o;
1287
- c[t] += e.weight;
1288
- let n = 0;
1289
- for (; t > 0;) t % 2 && (n += c[t + 1]), t = t - 1 >> 1, c[t] += e.weight;
1290
- l += e.weight * n;
1291
- }), l;
1292
- }
1293
- }), Qe = v((e, t) => {
1294
- t.exports = n;
1295
- function n(e, t = []) {
1296
- return t.map((t) => {
1297
- let n = e.inEdges(t);
1298
- if (n.length) {
1299
- let r = n.reduce((t, n) => {
1300
- let r = e.edge(n), i = e.node(n.v);
1301
- return {
1302
- sum: t.sum + r.weight * i.order,
1303
- weight: t.weight + r.weight
1304
- };
1305
- }, {
1306
- sum: 0,
1307
- weight: 0
1308
- });
1160
+ })).sort((e, t) => e.pos - t.pos) : [];
1161
+ }), a = 1;
1162
+ for (; a < n.length;) a <<= 1;
1163
+ let o = 2 * a - 1;
1164
+ --a;
1165
+ let s = Array(o).fill(0), c = 0;
1166
+ return i.forEach((e) => {
1167
+ let t = e.pos + a;
1168
+ s[t] += e.weight;
1169
+ let n = 0;
1170
+ for (; t > 0;) t % 2 && (n += s[t + 1]), t = t - 1 >> 1, s[t] += e.weight;
1171
+ c += e.weight * n;
1172
+ }), c;
1173
+ }
1174
+ function kt(e, t = []) {
1175
+ return t.map((t) => {
1176
+ let n = e.inEdges(t);
1177
+ if (!n || !n.length) return { v: t };
1178
+ {
1179
+ let r = n.reduce((t, n) => {
1180
+ let r = e.edge(n), i = e.node(n.v);
1309
1181
  return {
1310
- v: t,
1311
- barycenter: r.sum / r.weight,
1312
- weight: r.weight
1182
+ sum: t.sum + r.weight * i.order,
1183
+ weight: t.weight + r.weight
1313
1184
  };
1314
- } else return { v: t };
1315
- });
1316
- }
1317
- }), Ze = v((e, t) => {
1318
- var n = _();
1319
- t.exports = r;
1320
- function r(e, t) {
1321
- let n = {};
1322
- return e.forEach((e, t) => {
1323
- let r = n[e.v] = {
1324
- indegree: 0,
1325
- in: [],
1326
- out: [],
1327
- vs: [e.v],
1328
- i: t
1329
- };
1330
- e.barycenter !== void 0 && (r.barycenter = e.barycenter, r.weight = e.weight);
1331
- }), t.edges().forEach((e) => {
1332
- let t = n[e.v], r = n[e.w];
1333
- t !== void 0 && r !== void 0 && (r.indegree++, t.out.push(n[e.w]));
1334
- }), a(Object.values(n).filter((e) => !e.indegree));
1335
- }
1336
- function a(e) {
1337
- let t = [];
1338
- function r(e) {
1339
- return (t) => {
1340
- t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && o(e, t);
1341
- };
1342
- }
1343
- function i(t) {
1344
- return (n) => {
1345
- n.in.push(t), --n.indegree === 0 && e.push(n);
1185
+ }, {
1186
+ sum: 0,
1187
+ weight: 0
1188
+ });
1189
+ return {
1190
+ v: t,
1191
+ barycenter: r.sum / r.weight,
1192
+ weight: r.weight
1346
1193
  };
1347
1194
  }
1348
- for (; e.length;) {
1349
- let n = e.pop();
1350
- t.push(n), n.in.reverse().forEach(r(n)), n.out.forEach(i(n));
1351
- }
1352
- return t.filter((e) => !e.merged).map((e) => n.pick(e, [
1353
- "vs",
1354
- "i",
1355
- "barycenter",
1356
- "weight"
1357
- ]));
1358
- }
1359
- function o(e, t) {
1360
- let n = 0, r = 0;
1361
- e.weight && (n += e.barycenter * e.weight, r += e.weight), t.weight && (n += t.barycenter * t.weight, r += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / r, e.weight = r, e.i = Math.min(t.i, e.i), t.merged = !0;
1362
- }
1363
- }), tt = v((e, t) => {
1364
- var n = _();
1365
- t.exports = r;
1366
- function r(e, t) {
1367
- let r = n.partition(e, (e) => Object.hasOwn(e, "barycenter")), i = r.lhs, s = r.rhs.sort((e, t) => t.i - e.i), c = [], l = 0, u = 0, d = 0;
1368
- i.sort(o(!!t)), d = a(c, s, d), i.forEach((e) => {
1369
- d += e.vs.length, c.push(e.vs), l += e.barycenter * e.weight, u += e.weight, d = a(c, s, d);
1370
- });
1371
- let f = { vs: c.flat(!0) };
1372
- return u && (f.barycenter = l / u, f.weight = u), f;
1195
+ });
1196
+ }
1197
+ function At(e, t) {
1198
+ let n = {};
1199
+ return e.forEach((e, t) => {
1200
+ let r = {
1201
+ indegree: 0,
1202
+ in: [],
1203
+ out: [],
1204
+ vs: [e.v],
1205
+ i: t
1206
+ };
1207
+ e.barycenter !== void 0 && (r.barycenter = e.barycenter, r.weight = e.weight), n[e.v] = r;
1208
+ }), t.edges().forEach((e) => {
1209
+ let t = n[e.v], r = n[e.w];
1210
+ t !== void 0 && r !== void 0 && (r.indegree++, t.out.push(r));
1211
+ }), jt(Object.values(n).filter((e) => !e.indegree));
1212
+ }
1213
+ function jt(e) {
1214
+ let t = [];
1215
+ function n(e) {
1216
+ return (t) => {
1217
+ t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && Mt(e, t);
1218
+ };
1373
1219
  }
1374
- function a(e, t, n) {
1375
- let r;
1376
- for (; t.length && (r = t[t.length - 1]).i <= n;) t.pop(), e.push(r.vs), n++;
1377
- return n;
1220
+ function r(t) {
1221
+ return (n) => {
1222
+ n.in.push(t), --n.indegree === 0 && e.push(n);
1223
+ };
1378
1224
  }
1379
- function o(e) {
1380
- return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
1381
- }
1382
- }), it = v((e, t) => {
1383
- var n = Qe(), r = Ze(), i = tt();
1384
- t.exports = a;
1385
- function a(e, t, c, l) {
1386
- let u = e.children(t), d = e.node(t), f = d ? d.borderLeft : void 0, p = d ? d.borderRight : void 0, m = {};
1387
- f && (u = u.filter((e) => e !== f && e !== p));
1388
- let h = n(e, u);
1389
- h.forEach((t) => {
1390
- if (e.children(t.v).length) {
1391
- let n = a(e, t.v, c, l);
1392
- m[t.v] = n, Object.hasOwn(n, "barycenter") && s(t, n);
1393
- }
1394
- });
1395
- let g = r(h, c);
1396
- o(g, m);
1397
- let b = i(g, l);
1398
- if (f && (b.vs = [
1399
- f,
1400
- b.vs,
1401
- p
1402
- ].flat(!0), e.predecessors(f).length)) {
1403
- let t = e.node(e.predecessors(f)[0]), n = e.node(e.predecessors(p)[0]);
1404
- Object.hasOwn(b, "barycenter") || (b.barycenter = 0, b.weight = 0), b.barycenter = (b.barycenter * b.weight + t.order + n.order) / (b.weight + 2), b.weight += 2;
1225
+ for (; e.length;) {
1226
+ let i = e.pop();
1227
+ t.push(i), i.in.reverse().forEach(n(i)), i.out.forEach(r(i));
1228
+ }
1229
+ return t.filter((e) => !e.merged).map((e) => P(e, [
1230
+ "vs",
1231
+ "i",
1232
+ "barycenter",
1233
+ "weight"
1234
+ ]));
1235
+ }
1236
+ function Mt(e, t) {
1237
+ let n = 0, r = 0;
1238
+ e.weight && (n += e.barycenter * e.weight, r += e.weight), t.weight && (n += t.barycenter * t.weight, r += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / r, e.weight = r, e.i = Math.min(t.i, e.i), t.merged = !0;
1239
+ }
1240
+ function Nt(e, t) {
1241
+ let n = De(e, (e) => Object.hasOwn(e, "barycenter")), r = n.lhs, i = n.rhs.sort((e, t) => t.i - e.i), a = [], o = 0, s = 0, c = 0;
1242
+ r.sort(Ft(!!t)), c = Pt(a, i, c), r.forEach((e) => {
1243
+ c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = Pt(a, i, c);
1244
+ });
1245
+ let l = { vs: a.flat(1) };
1246
+ return s && (l.barycenter = o / s, l.weight = s), l;
1247
+ }
1248
+ function Pt(e, t, n) {
1249
+ let r;
1250
+ for (; t.length && (r = t[t.length - 1]).i <= n;) t.pop(), e.push(r.vs), n++;
1251
+ return n;
1252
+ }
1253
+ function Ft(e) {
1254
+ return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
1255
+ }
1256
+ function It(e, t, n, r) {
1257
+ let i = e.children(t), a = e.node(t), o = a ? a.borderLeft : void 0, s = a ? a.borderRight : void 0, c = {};
1258
+ o && (i = i.filter((e) => e !== o && e !== s));
1259
+ let l = kt(e, i);
1260
+ l.forEach((t) => {
1261
+ if (e.children(t.v).length) {
1262
+ let i = It(e, t.v, n, r);
1263
+ c[t.v] = i, Object.hasOwn(i, "barycenter") && Rt(t, i);
1264
+ }
1265
+ });
1266
+ let u = At(l, n);
1267
+ Lt(u, c);
1268
+ let d = Nt(u, r);
1269
+ if (o && s) {
1270
+ d.vs = [
1271
+ o,
1272
+ d.vs,
1273
+ s
1274
+ ].flat(1);
1275
+ let t = e.predecessors(o);
1276
+ if (t && t.length) {
1277
+ let n = e.node(t[0]), r = e.predecessors(s), i = e.node(r[0]);
1278
+ Object.hasOwn(d, "barycenter") || (d.barycenter = 0, d.weight = 0), d.barycenter = (d.barycenter * d.weight + n.order + i.order) / (d.weight + 2), d.weight += 2;
1279
+ }
1280
+ }
1281
+ return d;
1282
+ }
1283
+ function Lt(e, t) {
1284
+ e.forEach((e) => {
1285
+ e.vs = e.vs.flatMap((e) => t[e] ? t[e].vs : e);
1286
+ });
1287
+ }
1288
+ function Rt(e, t) {
1289
+ e.barycenter === void 0 ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
1290
+ }
1291
+ function zt(e, t, n, r) {
1292
+ r ||= e.nodes();
1293
+ let i = Bt(e), a = new s({ compound: !0 }).setGraph({ root: i }).setDefaultNodeLabel((t) => e.node(t));
1294
+ return r.forEach((r) => {
1295
+ let o = e.node(r), s = e.parent(r);
1296
+ if (o.rank === t || o.minRank <= t && t <= o.maxRank) {
1297
+ a.setNode(r), a.setParent(r, s || i);
1298
+ let c = e[n](r);
1299
+ c && c.forEach((t) => {
1300
+ let n = t.v === r ? t.w : t.v, i = a.edge(n, r), o = i === void 0 ? 0 : i.weight;
1301
+ a.setEdge(n, r, { weight: e.edge(t).weight + o });
1302
+ }), Object.hasOwn(o, "minRank") && a.setNode(r, {
1303
+ borderLeft: o.borderLeft[t],
1304
+ borderRight: o.borderRight[t]
1305
+ });
1405
1306
  }
1406
- return b;
1407
- }
1408
- function o(e, t) {
1409
- e.forEach((e) => {
1410
- e.vs = e.vs.flatMap((e) => t[e] ? t[e].vs : e);
1307
+ }), a;
1308
+ }
1309
+ function Bt(e) {
1310
+ let t;
1311
+ for (; e.hasNode(t = M("_root")););
1312
+ return t;
1313
+ }
1314
+ function Vt(e, t, n) {
1315
+ let r = {}, i;
1316
+ n.forEach((n) => {
1317
+ let a = e.parent(n), o, s;
1318
+ for (; a;) {
1319
+ if (o = e.parent(a), o ? (s = r[o], r[o] = a) : (s = i, i = a), s && s !== a) {
1320
+ t.setEdge(s, a);
1321
+ return;
1322
+ }
1323
+ a = o;
1324
+ }
1325
+ });
1326
+ }
1327
+ function Ht(e, t = {}) {
1328
+ if (typeof t.customOrder == "function") {
1329
+ t.customOrder(e, Ht);
1330
+ return;
1331
+ }
1332
+ let n = k(e), r = Ut(e, N(1, n + 1), "inEdges"), i = Ut(e, N(n - 1, -1, -1), "outEdges"), a = Et(e);
1333
+ if (Gt(e, a), t.disableOptimalOrderHeuristic) return;
1334
+ let o = Infinity, s, c = t.constraints || [];
1335
+ for (let t = 0, n = 0; n < 4; ++t, ++n) {
1336
+ Wt(t % 2 ? r : i, t % 4 >= 2, c), a = T(e);
1337
+ let l = Dt(e, a);
1338
+ l < o ? (n = 0, s = Object.assign({}, a), o = l) : l === o && (s = structuredClone(a));
1339
+ }
1340
+ Gt(e, s);
1341
+ }
1342
+ function Ut(e, t, n) {
1343
+ let r = /* @__PURE__ */ new Map(), i = (e, t) => {
1344
+ r.has(e) || r.set(e, []), r.get(e).push(t);
1345
+ };
1346
+ for (let t of e.nodes()) {
1347
+ let n = e.node(t);
1348
+ if (typeof n.rank == "number" && i(n.rank, t), typeof n.minRank == "number" && typeof n.maxRank == "number") for (let e = n.minRank; e <= n.maxRank; e++) e !== n.rank && i(e, t);
1349
+ }
1350
+ return t.map(function(t) {
1351
+ return zt(e, t, n, r.get(t) || []);
1352
+ });
1353
+ }
1354
+ function Wt(e, t, n) {
1355
+ let r = new s();
1356
+ e.forEach(function(e) {
1357
+ n.forEach((e) => r.setEdge(e.left, e.right));
1358
+ let i = e.graph().root, a = It(e, i, r, t);
1359
+ a.vs.forEach((t, n) => e.node(t).order = n), Vt(e, r, a.vs);
1360
+ });
1361
+ }
1362
+ function Gt(e, t) {
1363
+ Object.values(t).forEach((t) => t.forEach((t, n) => e.node(t).order = n));
1364
+ }
1365
+ function Kt(e, t) {
1366
+ let n = {};
1367
+ function r(t, r) {
1368
+ let i = 0, a = 0, o = t.length, s = r[r.length - 1];
1369
+ return r.forEach((t, c) => {
1370
+ let l = Jt(e, t), u = l ? e.node(l).order : o;
1371
+ (l || t === s) && (r.slice(a, c + 1).forEach((t) => {
1372
+ let r = e.predecessors(t);
1373
+ r && r.forEach((r) => {
1374
+ let a = e.node(r), o = a.order;
1375
+ (o < i || u < o) && !(a.dummy && e.node(t).dummy) && Yt(n, r, t);
1376
+ });
1377
+ }), a = c + 1, i = u);
1378
+ }), r;
1379
+ }
1380
+ return t.length && t.reduce(r), n;
1381
+ }
1382
+ function qt(e, t) {
1383
+ let n = {};
1384
+ function r(t, r, i, a, o) {
1385
+ N(r, i).forEach((r) => {
1386
+ let i = t[r];
1387
+ if (i !== void 0 && e.node(i).dummy) {
1388
+ let t = e.predecessors(i);
1389
+ t && t.forEach((t) => {
1390
+ if (t === void 0) return;
1391
+ let r = e.node(t);
1392
+ r.dummy && (r.order < a || r.order > o) && Yt(n, t, i);
1393
+ });
1394
+ }
1411
1395
  });
1412
1396
  }
1413
- function s(e, t) {
1414
- e.barycenter === void 0 ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
1415
- }
1416
- }), st = v((e, n) => {
1417
- var r = y().Graph, a = _();
1418
- n.exports = o;
1419
- function o(e, t, n, i) {
1420
- i ||= e.nodes();
1421
- let a = s(e), o = new r({ compound: !0 }).setGraph({ root: a }).setDefaultNodeLabel((t) => e.node(t));
1422
- return i.forEach((r) => {
1423
- let i = e.node(r), s = e.parent(r);
1424
- (i.rank === t || i.minRank <= t && t <= i.maxRank) && (o.setNode(r), o.setParent(r, s || a), e[n](r).forEach((t) => {
1425
- let n = t.v === r ? t.w : t.v, i = o.edge(n, r), a = i === void 0 ? 0 : i.weight;
1426
- o.setEdge(n, r, { weight: e.edge(t).weight + a });
1427
- }), Object.hasOwn(i, "minRank") && o.setNode(r, {
1428
- borderLeft: i.borderLeft[t],
1429
- borderRight: i.borderRight[t]
1430
- }));
1431
- }), o;
1432
- }
1433
- function s(e) {
1434
- for (var t; e.hasNode(t = a.uniqueId("_root")););
1435
- return t;
1436
- }
1437
- }), dt = v((e, t) => {
1438
- t.exports = n;
1439
- function n(e, t, n) {
1440
- let r = {}, i;
1441
- n.forEach((n) => {
1442
- let a = e.parent(n), o, s;
1443
- for (; a;) {
1444
- if (o = e.parent(a), o ? (s = r[o], r[o] = a) : (s = i, i = a), s && s !== a) {
1445
- t.setEdge(s, a);
1446
- return;
1397
+ function i(t, n) {
1398
+ let i = -1, a = -1, o = 0;
1399
+ return n.forEach((s, c) => {
1400
+ if (e.node(s).dummy === "border") {
1401
+ let t = e.predecessors(s);
1402
+ if (t && t.length) {
1403
+ let s = t[0];
1404
+ if (s === void 0) return;
1405
+ a = e.node(s).order, r(n, o, c, i, a), o = c, i = a;
1447
1406
  }
1448
- a = o;
1449
1407
  }
1450
- });
1451
- }
1452
- }), ft = v((e, n) => {
1453
- var r = Xe(), a = Ue(), o = it(), s = st(), c = dt(), l = y().Graph, u = _();
1454
- n.exports = d;
1455
- function d(e, t = {}) {
1456
- if (typeof t.customOrder == "function") {
1457
- t.customOrder(e, d);
1458
- return;
1459
- }
1460
- let n = u.maxRank(e), i = f(e, u.range(1, n + 1), "inEdges"), o = f(e, u.range(n - 1, -1, -1), "outEdges"), s = r(e);
1461
- if (m(e, s), t.disableOptimalOrderHeuristic) return;
1462
- let c = Infinity, l, h = t.constraints || [];
1463
- for (let t = 0, n = 0; n < 4; ++t, ++n) {
1464
- p(t % 2 ? i : o, t % 4 >= 2, h), s = u.buildLayerMatrix(e);
1465
- let r = a(e, s);
1466
- r < c ? (n = 0, l = Object.assign({}, s), c = r) : r === c && (l = structuredClone(s));
1467
- }
1468
- m(e, l);
1408
+ r(n, o, n.length, a, t.length);
1409
+ }), n;
1469
1410
  }
1470
- function f(e, t, n) {
1471
- let r = /* @__PURE__ */ new Map(), i = (e, t) => {
1472
- r.has(e) || r.set(e, []), r.get(e).push(t);
1473
- };
1474
- for (let t of e.nodes()) {
1475
- let n = e.node(t);
1476
- if (typeof n.rank == "number" && i(n.rank, t), typeof n.minRank == "number" && typeof n.maxRank == "number") for (let e = n.minRank; e <= n.maxRank; e++) e !== n.rank && i(e, t);
1477
- }
1478
- return t.map(function(t) {
1479
- return s(e, t, n, r.get(t) || []);
1411
+ return t.length && t.reduce(i), n;
1412
+ }
1413
+ function Jt(e, t) {
1414
+ if (e.node(t).dummy) {
1415
+ let n = e.predecessors(t);
1416
+ if (n) return n.find((t) => e.node(t).dummy);
1417
+ }
1418
+ }
1419
+ function Yt(e, t, n) {
1420
+ if (t > n) {
1421
+ let e = t;
1422
+ t = n, n = e;
1423
+ }
1424
+ let r = e[t];
1425
+ r || (e[t] = r = {}), r[n] = !0;
1426
+ }
1427
+ function Xt(e, t, n) {
1428
+ if (t > n) {
1429
+ let e = t;
1430
+ t = n, n = e;
1431
+ }
1432
+ let r = e[t];
1433
+ return r !== void 0 && Object.hasOwn(r, n);
1434
+ }
1435
+ function Zt(e, t, n, r) {
1436
+ let i = {}, a = {}, o = {};
1437
+ return t.forEach((e) => {
1438
+ e.forEach((e, t) => {
1439
+ i[e] = e, a[e] = e, o[e] = t;
1480
1440
  });
1481
- }
1482
- function p(e, t, n) {
1483
- let r = new l();
1484
- e.forEach(function(e) {
1485
- n.forEach((e) => r.setEdge(e.left, e.right));
1486
- let i = e.graph().root, a = o(e, i, r, t);
1487
- a.vs.forEach((t, n) => e.node(t).order = n), c(e, r, a.vs);
1441
+ }), t.forEach((e) => {
1442
+ let t = -1;
1443
+ e.forEach((e) => {
1444
+ let s = r(e);
1445
+ if (s && s.length) {
1446
+ let r = s.sort((e, t) => {
1447
+ let n = o[e], r = o[t];
1448
+ return (n === void 0 ? 0 : n) - (r === void 0 ? 0 : r);
1449
+ }), c = (r.length - 1) / 2;
1450
+ for (let s = Math.floor(c), l = Math.ceil(c); s <= l; ++s) {
1451
+ let c = r[s];
1452
+ if (c === void 0) continue;
1453
+ let l = o[c];
1454
+ if (l !== void 0 && a[e] === e && t < l && !Xt(n, e, c)) {
1455
+ let n = i[c];
1456
+ n !== void 0 && (a[c] = e, a[e] = i[e] = n, t = l);
1457
+ }
1458
+ }
1459
+ }
1488
1460
  });
1489
- }
1490
- function m(e, t) {
1491
- Object.values(t).forEach((t) => t.forEach((t, n) => e.node(t).order = n));
1492
- }
1493
- }), yt = v((e, n) => {
1494
- var r = y().Graph, a = _();
1495
- n.exports = {
1496
- positionX: b,
1497
- findType1Conflicts: o,
1498
- findType2Conflicts: s,
1499
- addConflict: l,
1500
- hasConflict: u,
1501
- verticalAlignment: d,
1502
- horizontalCompaction: f,
1503
- alignCoordinates: h,
1504
- findSmallestWidthAlignment: m,
1505
- balance: g
1461
+ }), {
1462
+ root: i,
1463
+ align: a
1506
1464
  };
1507
- function o(e, t) {
1508
- let n = {};
1509
- function r(t, r) {
1510
- let i = 0, a = 0, o = t.length, s = r[r.length - 1];
1511
- return r.forEach((t, u) => {
1512
- let d = c(e, t), f = d ? e.node(d).order : o;
1513
- (d || t === s) && (r.slice(a, u + 1).forEach((t) => {
1514
- e.predecessors(t).forEach((r) => {
1515
- let a = e.node(r), o = a.order;
1516
- (o < i || f < o) && !(a.dummy && e.node(t).dummy) && l(n, r, t);
1517
- });
1518
- }), a = u + 1, i = f);
1519
- }), r;
1520
- }
1521
- return t.length && t.reduce(r), n;
1522
- }
1523
- function s(e, t) {
1524
- let n = {};
1525
- function r(t, r, i, o, s) {
1526
- let c;
1527
- a.range(r, i).forEach((r) => {
1528
- c = t[r], e.node(c).dummy && e.predecessors(c).forEach((t) => {
1529
- let r = e.node(t);
1530
- r.dummy && (r.order < o || r.order > s) && l(n, t, c);
1531
- });
1532
- });
1533
- }
1534
- function i(t, n) {
1535
- let i = -1, a, o = 0;
1536
- return n.forEach((s, c) => {
1537
- if (e.node(s).dummy === "border") {
1538
- let t = e.predecessors(s);
1539
- t.length && (a = e.node(t[0]).order, r(n, o, c, i, a), o = c, i = a);
1540
- }
1541
- r(n, o, n.length, a, t.length);
1542
- }), n;
1543
- }
1544
- return t.length && t.reduce(i), n;
1545
- }
1465
+ }
1466
+ function Qt(e, t, n, r, i = !1) {
1467
+ let a = {}, o = $t(e, t, n, i), s = i ? "borderLeft" : "borderRight";
1546
1468
  function c(e, t) {
1547
- if (e.node(t).dummy) return e.predecessors(t).find((t) => e.node(t).dummy);
1548
- }
1549
- function l(e, t, n) {
1550
- if (t > n) {
1551
- let e = t;
1552
- t = n, n = e;
1469
+ let n = o.nodes().slice(), r = {}, i = n.pop();
1470
+ for (; i;) {
1471
+ if (r[i]) e(i);
1472
+ else {
1473
+ r[i] = !0, n.push(i);
1474
+ for (let e of t(i)) n.push(e);
1475
+ }
1476
+ i = n.pop();
1553
1477
  }
1554
- let r = e[t];
1555
- r || (e[t] = r = {}), r[n] = !0;
1556
1478
  }
1557
- function u(e, t, n) {
1558
- if (t > n) {
1559
- let e = t;
1560
- t = n, n = e;
1561
- }
1562
- return !!e[t] && Object.hasOwn(e[t], n);
1479
+ function l(e) {
1480
+ let t = o.inEdges(e);
1481
+ t ? a[e] = t.reduce((e, t) => {
1482
+ let n = a[t.v] ?? 0, r = o.edge(t);
1483
+ return Math.max(e, n + (r === void 0 ? 0 : r));
1484
+ }, 0) : a[e] = 0;
1485
+ }
1486
+ function u(t) {
1487
+ let n = o.outEdges(t), r = Infinity;
1488
+ n && (r = n.reduce((e, t) => {
1489
+ let n = a[t.w], r = o.edge(t);
1490
+ return Math.min(e, (n === void 0 ? 0 : n) - (r === void 0 ? 0 : r));
1491
+ }, Infinity));
1492
+ let i = e.node(t);
1493
+ r !== Infinity && i.borderType !== s && (a[t] = Math.max(a[t] === void 0 ? 0 : a[t], r));
1563
1494
  }
1564
- function d(e, t, n, r) {
1565
- let i = {}, a = {}, o = {};
1566
- return t.forEach((e) => {
1567
- e.forEach((e, t) => {
1568
- i[e] = e, a[e] = e, o[e] = t;
1569
- });
1570
- }), t.forEach((e) => {
1571
- let t = -1;
1572
- e.forEach((e) => {
1573
- let s = r(e);
1574
- if (s.length) {
1575
- s = s.sort((e, t) => o[e] - o[t]);
1576
- let r = (s.length - 1) / 2;
1577
- for (let c = Math.floor(r), l = Math.ceil(r); c <= l; ++c) {
1578
- let r = s[c];
1579
- a[e] === e && t < o[r] && !u(n, e, r) && (a[r] = e, a[e] = i[e] = i[r], t = o[r]);
1580
- }
1581
- }
1582
- });
1583
- }), {
1584
- root: i,
1585
- align: a
1586
- };
1495
+ function d(e) {
1496
+ return o.predecessors(e) || [];
1587
1497
  }
1588
- function f(e, t, n, r, i) {
1589
- let a = {}, o = p(e, t, n, i), s = i ? "borderLeft" : "borderRight";
1590
- function c(e, t) {
1591
- let n = o.nodes().slice(), r = {}, i = n.pop();
1592
- for (; i;) {
1593
- if (r[i]) e(i);
1594
- else {
1595
- r[i] = !0, n.push(i);
1596
- for (let e of t(i)) n.push(e);
1597
- }
1598
- i = n.pop();
1599
- }
1600
- }
1601
- function l(e) {
1602
- a[e] = o.inEdges(e).reduce((e, t) => Math.max(e, a[t.v] + o.edge(t)), 0);
1603
- }
1604
- function u(t) {
1605
- let n = o.outEdges(t).reduce((e, t) => Math.min(e, a[t.w] - o.edge(t)), Infinity), r = e.node(t);
1606
- n !== Infinity && r.borderType !== s && (a[t] = Math.max(a[t], n));
1607
- }
1608
- return c(l, o.predecessors.bind(o)), c(u, o.successors.bind(o)), Object.keys(r).forEach((e) => a[e] = a[n[e]]), a;
1609
- }
1610
- function p(e, t, n, i) {
1611
- let a = new r(), o = e.graph(), s = x(o.nodesep, o.edgesep, i);
1612
- return t.forEach((t) => {
1613
- let r;
1614
- t.forEach((t) => {
1615
- let i = n[t];
1616
- if (a.setNode(i), r) {
1617
- var o = n[r], c = a.edge(o, i);
1618
- a.setEdge(o, i, Math.max(s(e, t, r), c || 0));
1498
+ function f(e) {
1499
+ return o.successors(e) || [];
1500
+ }
1501
+ return c(l, d), c(u, f), Object.keys(r).forEach((e) => {
1502
+ let t = n[e];
1503
+ t !== void 0 && (a[e] = a[t] ?? 0);
1504
+ }), a;
1505
+ }
1506
+ function $t(e, t, n, r) {
1507
+ let i = new s(), a = e.graph(), o = an(a.nodesep, a.edgesep, r);
1508
+ return t.forEach((t) => {
1509
+ let r;
1510
+ t.forEach((t) => {
1511
+ let a = n[t];
1512
+ if (a !== void 0) {
1513
+ if (i.setNode(a), r !== void 0) {
1514
+ let s = n[r];
1515
+ if (s !== void 0) {
1516
+ let n = i.edge(s, a);
1517
+ i.setEdge(s, a, Math.max(o(e, t, r), n || 0));
1518
+ }
1619
1519
  }
1620
1520
  r = t;
1621
- });
1622
- }), a;
1623
- }
1624
- function m(e, t) {
1625
- return Object.values(t).reduce((t, n) => {
1626
- let r = -Infinity, i = Infinity;
1627
- Object.entries(n).forEach(([t, n]) => {
1628
- let a = S(e, t) / 2;
1629
- r = Math.max(n + a, r), i = Math.min(n - a, i);
1630
- });
1631
- let a = r - i;
1632
- return a < t[0] && (t = [a, n]), t;
1633
- }, [Infinity, null])[1];
1634
- }
1635
- function h(e, t) {
1636
- let n = Object.values(t), r = a.applyWithChunking(Math.min, n), i = a.applyWithChunking(Math.max, n);
1637
- ["u", "d"].forEach((n) => {
1638
- ["l", "r"].forEach((o) => {
1639
- let s = n + o, c = e[s];
1640
- if (c === t) return;
1641
- let l = Object.values(c), u = r - a.applyWithChunking(Math.min, l);
1642
- o !== "l" && (u = i - a.applyWithChunking(Math.max, l)), u && (e[s] = a.mapValues(c, (e) => e + u));
1643
- });
1644
- });
1645
- }
1646
- function g(e, t) {
1647
- return a.mapValues(e.ul, (n, r) => {
1648
- if (t) return e[t.toLowerCase()][r];
1649
- {
1650
- let t = Object.values(e).map((e) => e[r]).sort((e, t) => e - t);
1651
- return (t[1] + t[2]) / 2;
1652
1521
  }
1653
1522
  });
1654
- }
1655
- function b(e) {
1656
- let t = a.buildLayerMatrix(e), n = Object.assign(o(e, t), s(e, t)), r = {}, i;
1657
- return ["u", "d"].forEach((o) => {
1658
- i = o === "u" ? t : Object.values(t).reverse(), ["l", "r"].forEach((t) => {
1659
- t === "r" && (i = i.map((e) => Object.values(e).reverse()));
1660
- let s = (o === "u" ? e.predecessors : e.successors).bind(e), c = d(e, i, n, s), l = f(e, i, c.root, c.align, t === "r");
1661
- t === "r" && (l = a.mapValues(l, (e) => -e)), r[o + t] = l;
1662
- });
1663
- }), h(r, m(e, r)), g(r, e.graph().align);
1664
- }
1665
- function x(e, t, n) {
1666
- return (r, i, a) => {
1667
- let o = r.node(i), s = r.node(a), c = 0, l;
1668
- if (c += o.width / 2, Object.hasOwn(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
1669
- case "l":
1670
- l = -o.width / 2;
1671
- break;
1672
- case "r":
1673
- l = o.width / 2;
1674
- break;
1675
- }
1676
- if (l && (c += n ? l : -l), l = 0, c += (o.dummy ? t : e) / 2, c += (s.dummy ? t : e) / 2, c += s.width / 2, Object.hasOwn(s, "labelpos")) switch (s.labelpos.toLowerCase()) {
1677
- case "l":
1678
- l = s.width / 2;
1679
- break;
1680
- case "r":
1681
- l = -s.width / 2;
1682
- break;
1683
- }
1684
- return l && (c += n ? l : -l), l = 0, c;
1685
- };
1686
- }
1687
- function S(e, t) {
1688
- return e.node(t).width;
1689
- }
1690
- }), Nt = v((e, t) => {
1691
- var n = _(), r = yt().positionX;
1692
- t.exports = a;
1693
- function a(e) {
1694
- e = n.asNonCompoundGraph(e), o(e), Object.entries(r(e)).forEach(([t, n]) => e.node(t).x = n);
1695
- }
1696
- function o(e) {
1697
- let t = n.buildLayerMatrix(e), r = e.graph().ranksep, i = e.graph().rankalign, a = 0;
1698
- t.forEach((t) => {
1699
- let n = t.reduce((t, n) => {
1700
- let r = e.node(n).height;
1701
- return t > r ? t : r;
1702
- }, 0);
1703
- t.forEach((t) => {
1704
- let r = e.node(t);
1705
- i === "top" ? r.y = a + r.height / 2 : i === "bottom" ? r.y = a + n - r.height / 2 : r.y = a + n / 2;
1706
- }), a += n + r;
1523
+ }), i;
1524
+ }
1525
+ function en(e, t) {
1526
+ return Object.values(t).reduce((t, n) => {
1527
+ let r = -Infinity, i = Infinity;
1528
+ Object.entries(n).forEach(([t, n]) => {
1529
+ let a = on(e, t) / 2;
1530
+ r = Math.max(n + a, r), i = Math.min(n - a, i);
1707
1531
  });
1708
- }
1709
- }), Rt = v((e, n) => {
1710
- var r = pe(), s = we(), c = qe(), l = _().normalizeRanks, h = Re(), g = _().removeEmptyRanks, b = Pe(), x = Ge(), S = Be(), C = ft(), w = Nt(), T = _(), D = y().Graph;
1711
- n.exports = k;
1712
- function k(e, t = {}) {
1713
- let n = t.debugTiming ? T.time : T.notime;
1714
- return n("layout", () => {
1715
- let r = n(" buildLayoutGraph", () => V(e));
1716
- return n(" runLayout", () => A(r, n, t)), n(" updateInputGraph", () => M(e, r)), r;
1532
+ let a = r - i;
1533
+ return a < t[0] && (t = [a, n]), t;
1534
+ }, [Infinity, null])[1];
1535
+ }
1536
+ function tn(e, t) {
1537
+ let n = Object.values(t), r = O(Math.min, n), i = O(Math.max, n);
1538
+ ["u", "d"].forEach((n) => {
1539
+ ["l", "r"].forEach((a) => {
1540
+ let o = n + a, s = e[o];
1541
+ if (!s || s === t) return;
1542
+ let c = Object.values(s), l = r - O(Math.min, c);
1543
+ a !== "l" && (l = i - O(Math.max, c)), l && (e[o] = F(s, (e) => e + l));
1717
1544
  });
1718
- }
1719
- function A(e, t, n) {
1720
- t(" makeSpaceForEdgeLabels", () => H(e)), t(" removeSelfEdges", () => ee(e)), t(" acyclic", () => r.run(e)), t(" nestingGraph.run", () => b.run(e)), t(" rank", () => c(T.asNonCompoundGraph(e))), t(" injectEdgeLabelProxies", () => U(e)), t(" removeEmptyRanks", () => g(e)), t(" nestingGraph.cleanup", () => b.cleanup(e)), t(" normalizeRanks", () => l(e)), t(" assignRankMinMax", () => W(e)), t(" removeEdgeLabelProxies", () => K(e)), t(" normalize.run", () => s.run(e)), t(" parentDummyChains", () => h(e)), t(" addBorderSegments", () => x(e)), t(" order", () => C(e, n)), t(" insertSelfEdges", () => te(e)), t(" adjustCoordinateSystem", () => S.adjust(e)), t(" position", () => w(e)), t(" positionSelfEdges", () => re(e)), t(" removeBorderNodes", () => Z(e)), t(" normalize.undo", () => s.undo(e)), t(" fixupEdgeLabelCoords", () => Y(e)), t(" undoCoordinateSystem", () => S.undo(e)), t(" translateGraph", () => q(e)), t(" assignNodeIntersects", () => J(e)), t(" reversePoints", () => X(e)), t(" acyclic.undo", () => r.undo(e));
1721
- }
1722
- function M(e, t) {
1723
- e.nodes().forEach((n) => {
1724
- let r = e.node(n), i = t.node(n);
1725
- r && (r.x = i.x, r.y = i.y, r.order = i.order, r.rank = i.rank, t.children(n).length && (r.width = i.width, r.height = i.height));
1726
- }), e.edges().forEach((n) => {
1727
- let r = e.edge(n), i = t.edge(n);
1728
- r.points = i.points, Object.hasOwn(i, "x") && (r.x = i.x, r.y = i.y);
1729
- }), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
1730
- }
1731
- var N = [
1732
- "nodesep",
1733
- "edgesep",
1734
- "ranksep",
1735
- "marginx",
1736
- "marginy"
1737
- ], P = {
1738
- ranksep: 50,
1739
- edgesep: 20,
1740
- nodesep: 50,
1741
- rankdir: "tb",
1742
- rankalign: "center"
1743
- }, F = [
1744
- "acyclicer",
1745
- "ranker",
1746
- "rankdir",
1747
- "align",
1748
- "rankalign"
1749
- ], I = [
1750
- "width",
1751
- "height",
1752
- "rank"
1753
- ], L = {
1754
- width: 0,
1755
- height: 0
1756
- }, R = [
1757
- "minlen",
1758
- "weight",
1759
- "width",
1760
- "height",
1761
- "labeloffset"
1762
- ], z = {
1763
- minlen: 1,
1764
- weight: 1,
1765
- width: 0,
1766
- height: 0,
1767
- labeloffset: 10,
1768
- labelpos: "r"
1769
- }, B = ["labelpos"];
1770
- function V(e) {
1771
- let t = new D({
1772
- multigraph: !0,
1773
- compound: !0
1774
- }), n = $(e.graph());
1775
- return t.setGraph(Object.assign({}, P, Q(n, N), T.pick(n, F))), e.nodes().forEach((n) => {
1776
- let r = Q($(e.node(n)), I);
1777
- Object.keys(L).forEach((e) => {
1778
- r[e] === void 0 && (r[e] = L[e]);
1779
- }), t.setNode(n, r), t.setParent(n, e.parent(n));
1780
- }), e.edges().forEach((n) => {
1781
- let r = $(e.edge(n));
1782
- t.setEdge(n, Object.assign({}, z, Q(r, R), T.pick(r, B)));
1783
- }), t;
1784
- }
1785
- function H(e) {
1786
- let t = e.graph();
1787
- t.ranksep /= 2, e.edges().forEach((n) => {
1788
- let r = e.edge(n);
1789
- r.minlen *= 2, r.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? r.width += r.labeloffset : r.height += r.labeloffset);
1545
+ });
1546
+ }
1547
+ function nn(e, t = void 0) {
1548
+ let n = e.ul;
1549
+ return n ? F(n, (n, r) => {
1550
+ if (t) {
1551
+ let n = e[t.toLowerCase()];
1552
+ if (n && n[r] !== void 0) return n[r];
1553
+ }
1554
+ let i = Object.values(e).map((e) => {
1555
+ let t = e[r];
1556
+ return t === void 0 ? 0 : t;
1557
+ }).sort((e, t) => e - t);
1558
+ return ((i[1] ?? 0) + (i[2] ?? 0)) / 2;
1559
+ }) : {};
1560
+ }
1561
+ function rn(e) {
1562
+ let t = T(e), n = Object.assign(Kt(e, t), qt(e, t)), r = {}, i;
1563
+ return ["u", "d"].forEach((a) => {
1564
+ i = a === "u" ? t : Object.values(t).reverse(), ["l", "r"].forEach((t) => {
1565
+ t === "r" && (i = i.map((e) => Object.values(e).reverse()));
1566
+ let o = Zt(e, i, n, (t) => (a === "u" ? e.predecessors(t) : e.successors(t)) || []), s = Qt(e, i, o.root, o.align, t === "r");
1567
+ t === "r" && (s = F(s, (e) => -e)), r[a + t] = s;
1790
1568
  });
1791
- }
1792
- function U(e) {
1793
- e.edges().forEach((t) => {
1794
- let n = e.edge(t);
1795
- if (n.width && n.height) {
1796
- let n = e.node(t.v), r = {
1797
- rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
1798
- e: t
1799
- };
1800
- T.addDummyNode(e, "edge-proxy", r, "_ep");
1801
- }
1802
- });
1803
- }
1804
- function W(e) {
1805
- let t = 0;
1806
- e.nodes().forEach((n) => {
1807
- let r = e.node(n);
1808
- r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = Math.max(t, r.maxRank));
1809
- }), e.graph().maxRank = t;
1810
- }
1811
- function K(e) {
1812
- e.nodes().forEach((t) => {
1813
- let n = e.node(t);
1814
- n.dummy === "edge-proxy" && (e.edge(n.e).labelRank = n.rank, e.removeNode(t));
1815
- });
1816
- }
1817
- function q(e) {
1818
- let t = Infinity, n = 0, r = Infinity, i = 0, a = e.graph(), o = a.marginx || 0, s = a.marginy || 0;
1819
- function c(e) {
1820
- let a = e.x, o = e.y, s = e.width, c = e.height;
1821
- t = Math.min(t, a - s / 2), n = Math.max(n, a + s / 2), r = Math.min(r, o - c / 2), i = Math.max(i, o + c / 2);
1569
+ }), tn(r, en(e, r)), nn(r, e.graph().align);
1570
+ }
1571
+ function an(e, t, n) {
1572
+ return (r, i, a) => {
1573
+ let o = r.node(i), s = r.node(a), c = 0, l;
1574
+ if (c += o.width / 2, Object.hasOwn(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
1575
+ case "l":
1576
+ l = -o.width / 2;
1577
+ break;
1578
+ case "r":
1579
+ l = o.width / 2;
1580
+ break;
1822
1581
  }
1823
- e.nodes().forEach((t) => c(e.node(t))), e.edges().forEach((t) => {
1824
- let n = e.edge(t);
1825
- Object.hasOwn(n, "x") && c(n);
1826
- }), t -= o, r -= s, e.nodes().forEach((n) => {
1827
- let i = e.node(n);
1828
- i.x -= t, i.y -= r;
1829
- }), e.edges().forEach((n) => {
1830
- let i = e.edge(n);
1831
- i.points.forEach((e) => {
1832
- e.x -= t, e.y -= r;
1833
- }), Object.hasOwn(i, "x") && (i.x -= t), Object.hasOwn(i, "y") && (i.y -= r);
1834
- }), a.width = n - t + o, a.height = i - r + s;
1835
- }
1836
- function J(e) {
1837
- e.edges().forEach((t) => {
1838
- let n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
1839
- n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(T.intersectRect(r, a)), n.points.push(T.intersectRect(i, o));
1840
- });
1841
- }
1842
- function Y(e) {
1843
- e.edges().forEach((t) => {
1844
- let n = e.edge(t);
1845
- if (Object.hasOwn(n, "x")) switch ((n.labelpos === "l" || n.labelpos === "r") && (n.width -= n.labeloffset), n.labelpos) {
1846
- case "l":
1847
- n.x -= n.width / 2 + n.labeloffset;
1848
- break;
1849
- case "r":
1850
- n.x += n.width / 2 + n.labeloffset;
1851
- break;
1852
- }
1853
- });
1854
- }
1855
- function X(e) {
1856
- e.edges().forEach((t) => {
1857
- let n = e.edge(t);
1858
- n.reversed && n.points.reverse();
1859
- });
1860
- }
1861
- function Z(e) {
1862
- e.nodes().forEach((t) => {
1863
- if (e.children(t).length) {
1864
- let n = e.node(t), r = e.node(n.borderTop), i = e.node(n.borderBottom), a = e.node(n.borderLeft[n.borderLeft.length - 1]), o = e.node(n.borderRight[n.borderRight.length - 1]);
1865
- n.width = Math.abs(o.x - a.x), n.height = Math.abs(i.y - r.y), n.x = a.x + n.width / 2, n.y = r.y + n.height / 2;
1866
- }
1867
- }), e.nodes().forEach((t) => {
1868
- e.node(t).dummy === "border" && e.removeNode(t);
1869
- });
1870
- }
1871
- function ee(e) {
1872
- e.edges().forEach((t) => {
1873
- if (t.v === t.w) {
1874
- var n = e.node(t.v);
1875
- n.selfEdges ||= [], n.selfEdges.push({
1876
- e: t,
1877
- label: e.edge(t)
1878
- }), e.removeEdge(t);
1879
- }
1880
- });
1881
- }
1882
- function te(e) {
1883
- T.buildLayerMatrix(e).forEach((t) => {
1884
- var n = 0;
1885
- t.forEach((t, r) => {
1886
- var i = e.node(t);
1887
- i.order = r + n, (i.selfEdges || []).forEach((t) => {
1888
- T.addDummyNode(e, "selfedge", {
1889
- width: t.label.width,
1890
- height: t.label.height,
1891
- rank: i.rank,
1892
- order: r + ++n,
1893
- e: t.e,
1894
- label: t.label
1895
- }, "_se");
1896
- }), delete i.selfEdges;
1897
- });
1898
- });
1899
- }
1900
- function re(e) {
1901
- e.nodes().forEach((t) => {
1902
- var n = e.node(t);
1903
- if (n.dummy === "selfedge") {
1904
- var r = e.node(n.e.v), i = r.x + r.width / 2, a = r.y, o = n.x - i, s = r.height / 2;
1905
- e.setEdge(n.e, n.label), e.removeNode(t), n.label.points = [
1906
- {
1907
- x: i + 2 * o / 3,
1908
- y: a - s
1909
- },
1910
- {
1911
- x: i + 5 * o / 6,
1912
- y: a - s
1913
- },
1914
- {
1915
- x: i + o,
1916
- y: a
1917
- },
1918
- {
1919
- x: i + 5 * o / 6,
1920
- y: a + s
1921
- },
1922
- {
1923
- x: i + 2 * o / 3,
1924
- y: a + s
1925
- }
1926
- ], n.label.x = n.x, n.label.y = n.y;
1927
- }
1928
- });
1929
- }
1930
- function Q(e, t) {
1931
- return T.mapValues(T.pick(e, t), Number);
1932
- }
1933
- function $(e) {
1934
- var t = {};
1935
- return e && Object.entries(e).forEach(([e, n]) => {
1936
- typeof e == "string" && (e = e.toLowerCase()), t[e] = n;
1937
- }), t;
1938
- }
1939
- }), St = v((e, n) => {
1940
- var r = _(), a = y().Graph;
1941
- n.exports = { debugOrdering: o };
1942
- function o(e) {
1943
- let t = r.buildLayerMatrix(e), n = new a({
1944
- compound: !0,
1945
- multigraph: !0
1946
- }).setGraph({});
1947
- return e.nodes().forEach((t) => {
1948
- n.setNode(t, { label: t }), n.setParent(t, "layer" + e.node(t).rank);
1949
- }), e.edges().forEach((e) => n.setEdge(e.v, e.w, {}, e.name)), t.forEach((e, t) => {
1950
- let r = "layer" + t;
1951
- n.setNode(r, { rank: "same" }), e.reduce((e, t) => (n.setEdge(e, t, { style: "invis" }), t));
1952
- }), n;
1953
- }
1954
- }), Ft = v((e, t) => {
1955
- t.exports = "2.0.4";
1956
- }), dagre_esm_default = v((e, n) => {
1957
- n.exports = {
1958
- graphlib: y(),
1959
- layout: Rt(),
1960
- debug: St(),
1961
- util: {
1962
- time: _().time,
1963
- notime: _().notime
1964
- },
1965
- version: Ft()
1582
+ if (l && (c += n ? l : -l), l = void 0, c += (o.dummy ? t : e) / 2, c += (s.dummy ? t : e) / 2, c += s.width / 2, Object.hasOwn(s, "labelpos")) switch (s.labelpos.toLowerCase()) {
1583
+ case "l":
1584
+ l = s.width / 2;
1585
+ break;
1586
+ case "r":
1587
+ l = -s.width / 2;
1588
+ break;
1589
+ }
1590
+ return l && (c += n ? l : -l), c;
1966
1591
  };
1967
- })();
1968
- export { dagre_esm_default as default };
1592
+ }
1593
+ function on(e, t) {
1594
+ return e.node(t).width;
1595
+ }
1596
+ function sn(e) {
1597
+ e = C(e), cn(e), Object.entries(rn(e)).forEach(([t, n]) => e.node(t).x = n);
1598
+ }
1599
+ function cn(e) {
1600
+ let t = T(e), n = e.graph(), r = n.ranksep, i = n.rankalign, a = 0;
1601
+ t.forEach((t) => {
1602
+ let n = t.reduce((t, n) => {
1603
+ let r = e.node(n).height ?? 0;
1604
+ return t > r ? t : r;
1605
+ }, 0);
1606
+ t.forEach((t) => {
1607
+ let r = e.node(t);
1608
+ i === "top" ? r.y = a + r.height / 2 : i === "bottom" ? r.y = a + n - r.height / 2 : r.y = a + n / 2;
1609
+ }), a += n + r;
1610
+ });
1611
+ }
1612
+ function ln(e, t = {}) {
1613
+ let n = t.debugTiming ? A : j;
1614
+ return n("layout", () => {
1615
+ let r = n(" buildLayoutGraph", () => bn(e));
1616
+ return n(" runLayout", () => un(r, n, t)), n(" updateInputGraph", () => dn(e, r)), r;
1617
+ });
1618
+ }
1619
+ function un(e, t, n) {
1620
+ t(" makeSpaceForEdgeLabels", () => xn(e)), t(" removeSelfEdges", () => An(e)), t(" acyclic", () => ze(e)), t(" nestingGraph.run", () => pt(e)), t(" rank", () => it(C(e))), t(" injectEdgeLabelProxies", () => Sn(e)), t(" removeEmptyRanks", () => Te(e)), t(" nestingGraph.cleanup", () => gt(e)), t(" normalizeRanks", () => we(e)), t(" assignRankMinMax", () => Cn(e)), t(" removeEdgeLabelProxies", () => wn(e)), t(" normalize.run", () => He(e)), t(" parentDummyChains", () => lt(e)), t(" addBorderSegments", () => _t(e)), t(" order", () => Ht(e, n)), t(" insertSelfEdges", () => jn(e)), t(" adjustCoordinateSystem", () => bt(e)), t(" position", () => sn(e)), t(" positionSelfEdges", () => Mn(e)), t(" removeBorderNodes", () => kn(e)), t(" normalize.undo", () => We(e)), t(" fixupEdgeLabelCoords", () => Dn(e)), t(" undoCoordinateSystem", () => xt(e)), t(" translateGraph", () => Tn(e)), t(" assignNodeIntersects", () => En(e)), t(" reversePoints", () => On(e)), t(" acyclic.undo", () => Ve(e));
1621
+ }
1622
+ function dn(e, t) {
1623
+ e.nodes().forEach((n) => {
1624
+ let r = e.node(n), i = t.node(n);
1625
+ r && (r.x = i.x, r.y = i.y, r.order = i.order, r.rank = i.rank, t.children(n).length && (r.width = i.width, r.height = i.height));
1626
+ }), e.edges().forEach((n) => {
1627
+ let r = e.edge(n), i = t.edge(n);
1628
+ r.points = i.points, Object.hasOwn(i, "x") && (r.x = i.x, r.y = i.y);
1629
+ }), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
1630
+ }
1631
+ var fn = [
1632
+ "nodesep",
1633
+ "edgesep",
1634
+ "ranksep",
1635
+ "marginx",
1636
+ "marginy"
1637
+ ], pn = {
1638
+ ranksep: 50,
1639
+ edgesep: 20,
1640
+ nodesep: 50,
1641
+ rankdir: "TB",
1642
+ rankalign: "center"
1643
+ }, mn = [
1644
+ "acyclicer",
1645
+ "ranker",
1646
+ "rankdir",
1647
+ "align",
1648
+ "rankalign"
1649
+ ], hn = [
1650
+ "width",
1651
+ "height",
1652
+ "rank"
1653
+ ], gn = {
1654
+ width: 0,
1655
+ height: 0
1656
+ }, _n = [
1657
+ "minlen",
1658
+ "weight",
1659
+ "width",
1660
+ "height",
1661
+ "labeloffset"
1662
+ ], vn = {
1663
+ minlen: 1,
1664
+ weight: 1,
1665
+ width: 0,
1666
+ height: 0,
1667
+ labeloffset: 10,
1668
+ labelpos: "r"
1669
+ }, yn = ["labelpos"];
1670
+ function bn(e) {
1671
+ let t = new s({
1672
+ multigraph: !0,
1673
+ compound: !0
1674
+ }), n = $(e.graph());
1675
+ return t.setGraph(Object.assign({}, pn, Q(n, fn), P(n, mn))), e.nodes().forEach((n) => {
1676
+ let r = Q($(e.node(n)), hn);
1677
+ Object.keys(gn).forEach((e) => {
1678
+ r[e] === void 0 && (r[e] = gn[e]);
1679
+ }), t.setNode(n, r);
1680
+ let i = e.parent(n);
1681
+ i !== void 0 && t.setParent(n, i);
1682
+ }), e.edges().forEach((n) => {
1683
+ let r = $(e.edge(n));
1684
+ t.setEdge(n, Object.assign({}, vn, Q(r, _n), P(r, yn)));
1685
+ }), t;
1686
+ }
1687
+ function xn(e) {
1688
+ let t = e.graph();
1689
+ t.ranksep /= 2, e.edges().forEach((n) => {
1690
+ let r = e.edge(n);
1691
+ r.minlen *= 2, r.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? r.width += r.labeloffset : r.height += r.labeloffset);
1692
+ });
1693
+ }
1694
+ function Sn(e) {
1695
+ e.edges().forEach((t) => {
1696
+ let n = e.edge(t);
1697
+ if (n.width && n.height) {
1698
+ let n = e.node(t.v);
1699
+ S(e, "edge-proxy", {
1700
+ rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
1701
+ e: t
1702
+ }, "_ep");
1703
+ }
1704
+ });
1705
+ }
1706
+ function Cn(e) {
1707
+ let t = 0;
1708
+ e.nodes().forEach((n) => {
1709
+ let r = e.node(n);
1710
+ r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = Math.max(t, r.maxRank));
1711
+ }), e.graph().maxRank = t;
1712
+ }
1713
+ function wn(e) {
1714
+ e.nodes().forEach((t) => {
1715
+ let n = e.node(t);
1716
+ if (n.dummy === "edge-proxy") {
1717
+ let r = n;
1718
+ e.edge(r.e).labelRank = n.rank, e.removeNode(t);
1719
+ }
1720
+ });
1721
+ }
1722
+ function Tn(e) {
1723
+ let t = Infinity, n = 0, r = Infinity, i = 0, a = e.graph(), o = a.marginx || 0, s = a.marginy || 0;
1724
+ function c(e) {
1725
+ let a = e.x, o = e.y, s = e.width, c = e.height;
1726
+ t = Math.min(t, a - s / 2), n = Math.max(n, a + s / 2), r = Math.min(r, o - c / 2), i = Math.max(i, o + c / 2);
1727
+ }
1728
+ e.nodes().forEach((t) => c(e.node(t))), e.edges().forEach((t) => {
1729
+ let n = e.edge(t);
1730
+ Object.hasOwn(n, "x") && c(n);
1731
+ }), t -= o, r -= s, e.nodes().forEach((n) => {
1732
+ let i = e.node(n);
1733
+ i.x -= t, i.y -= r;
1734
+ }), e.edges().forEach((n) => {
1735
+ let i = e.edge(n);
1736
+ i.points.forEach((e) => {
1737
+ e.x -= t, e.y -= r;
1738
+ }), Object.hasOwn(i, "x") && (i.x -= t), Object.hasOwn(i, "y") && (i.y -= r);
1739
+ }), a.width = n - t + o, a.height = i - r + s;
1740
+ }
1741
+ function En(e) {
1742
+ e.edges().forEach((t) => {
1743
+ let n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
1744
+ n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(w(r, a)), n.points.push(w(i, o));
1745
+ });
1746
+ }
1747
+ function Dn(e) {
1748
+ e.edges().forEach((t) => {
1749
+ let n = e.edge(t);
1750
+ if (Object.hasOwn(n, "x")) switch ((n.labelpos === "l" || n.labelpos === "r") && (n.width -= n.labeloffset), n.labelpos) {
1751
+ case "l":
1752
+ n.x -= n.width / 2 + n.labeloffset;
1753
+ break;
1754
+ case "r":
1755
+ n.x += n.width / 2 + n.labeloffset;
1756
+ break;
1757
+ }
1758
+ });
1759
+ }
1760
+ function On(e) {
1761
+ e.edges().forEach((t) => {
1762
+ let n = e.edge(t);
1763
+ n.reversed && n.points.reverse();
1764
+ });
1765
+ }
1766
+ function kn(e) {
1767
+ e.nodes().forEach((t) => {
1768
+ if (e.children(t).length) {
1769
+ let n = e.node(t), r = e.node(n.borderTop), i = e.node(n.borderBottom), a = e.node(n.borderLeft[n.borderLeft.length - 1]), o = e.node(n.borderRight[n.borderRight.length - 1]);
1770
+ n.width = Math.abs(o.x - a.x), n.height = Math.abs(i.y - r.y), n.x = a.x + n.width / 2, n.y = r.y + n.height / 2;
1771
+ }
1772
+ }), e.nodes().forEach((t) => {
1773
+ e.node(t).dummy === "border" && e.removeNode(t);
1774
+ });
1775
+ }
1776
+ function An(e) {
1777
+ e.edges().forEach((t) => {
1778
+ if (t.v === t.w) {
1779
+ let n = e.node(t.v);
1780
+ n.selfEdges ||= [], n.selfEdges.push({
1781
+ e: t,
1782
+ label: e.edge(t)
1783
+ }), e.removeEdge(t);
1784
+ }
1785
+ });
1786
+ }
1787
+ function jn(e) {
1788
+ T(e).forEach((t) => {
1789
+ let n = 0;
1790
+ t.forEach((t, r) => {
1791
+ let i = e.node(t);
1792
+ i.order = r + n, (i.selfEdges || []).forEach((t) => {
1793
+ S(e, "selfedge", {
1794
+ width: t.label.width,
1795
+ height: t.label.height,
1796
+ rank: i.rank,
1797
+ order: r + ++n,
1798
+ e: t.e,
1799
+ label: t.label
1800
+ }, "_se");
1801
+ }), delete i.selfEdges;
1802
+ });
1803
+ });
1804
+ }
1805
+ function Mn(e) {
1806
+ e.nodes().forEach((t) => {
1807
+ let n = e.node(t);
1808
+ if (n.dummy === "selfedge") {
1809
+ let r = n, i = e.node(r.e.v), a = i.x + i.width / 2, o = i.y, s = n.x - a, c = i.height / 2;
1810
+ e.setEdge(r.e, r.label), e.removeNode(t), r.label.points = [
1811
+ {
1812
+ x: a + 2 * s / 3,
1813
+ y: o - c
1814
+ },
1815
+ {
1816
+ x: a + 5 * s / 6,
1817
+ y: o - c
1818
+ },
1819
+ {
1820
+ x: a + s,
1821
+ y: o
1822
+ },
1823
+ {
1824
+ x: a + 5 * s / 6,
1825
+ y: o + c
1826
+ },
1827
+ {
1828
+ x: a + 2 * s / 3,
1829
+ y: o + c
1830
+ }
1831
+ ], r.label.x = n.x, r.label.y = n.y;
1832
+ }
1833
+ });
1834
+ }
1835
+ function Q(e, t) {
1836
+ return F(P(e, t), Number);
1837
+ }
1838
+ function $(e) {
1839
+ let t = {};
1840
+ return e && Object.entries(e).forEach(([e, n]) => {
1841
+ typeof e == "string" && (e = e.toLowerCase()), t[e] = n;
1842
+ }), t;
1843
+ }
1844
+ function Nn(e) {
1845
+ let t = T(e), n = new s({
1846
+ compound: !0,
1847
+ multigraph: !0
1848
+ }).setGraph({});
1849
+ return e.nodes().forEach((t) => {
1850
+ n.setNode(t, { label: t }), n.setParent(t, "layer" + e.node(t).rank);
1851
+ }), e.edges().forEach((e) => n.setEdge(e.v, e.w, {}, e.name)), t.forEach((e, t) => {
1852
+ let r = "layer" + t;
1853
+ n.setNode(r, { rank: "same" }), e.reduce((e, t) => (n.setEdge(e, t, { style: "invis" }), t));
1854
+ }), n;
1855
+ }
1856
+ var Pn = {
1857
+ graphlib: i,
1858
+ version: Ae,
1859
+ layout: ln,
1860
+ debug: Nn,
1861
+ util: {
1862
+ time: A,
1863
+ notime: j
1864
+ }
1865
+ };
1866
+ //#endregion
1867
+ export { Pn as To };