@loopstack/loopstack-studio 0.25.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1691) hide show
  1. package/dist/_virtual/rolldown_runtime.js +20 -0
  2. package/dist/api/auth.js +2 -4
  3. package/dist/api/client.js +7 -9
  4. package/dist/api/config.js +2 -4
  5. package/dist/api/dashboard.js +2 -4
  6. package/dist/api/documents.js +2 -4
  7. package/dist/api/environments.js +4 -0
  8. package/dist/api/index.js +23 -21
  9. package/dist/api/processor.js +2 -4
  10. package/dist/api/secrets.js +2 -4
  11. package/dist/api/workflows.js +2 -4
  12. package/dist/api/workspaces.js +2 -4
  13. package/dist/app/EnvironmentEmbedRoot.js +41 -24
  14. package/dist/components/ai-elements/code-block.js +71 -53
  15. package/dist/components/ai-elements/message.js +82 -41
  16. package/dist/components/ai-elements/prompt-input.js +253 -162
  17. package/dist/components/ai-elements/reasoning.js +116 -78
  18. package/dist/components/ai-elements/shimmer.js +35 -23
  19. package/dist/components/ai-elements/sources.js +58 -29
  20. package/dist/components/data-table/ConfirmDialog.js +30 -14
  21. package/dist/components/data-table/DataList.js +200 -138
  22. package/dist/components/data-table/DataTable.js +236 -168
  23. package/dist/components/data-table/DataTableBatchAction.js +27 -18
  24. package/dist/components/data-table/DataTableFilters.js +78 -53
  25. package/dist/components/data-table/DataTablePagination.js +104 -72
  26. package/dist/components/data-table/DataTableToolbar.js +65 -53
  27. package/dist/components/dynamic-form/ArrayController.js +103 -85
  28. package/dist/components/dynamic-form/CodeContent.js +36 -28
  29. package/dist/components/dynamic-form/Form.js +56 -43
  30. package/dist/components/dynamic-form/FormBody.js +10 -12
  31. package/dist/components/dynamic-form/FormElement.js +41 -31
  32. package/dist/components/dynamic-form/FormElementHeader.js +20 -12
  33. package/dist/components/dynamic-form/InputController.js +38 -36
  34. package/dist/components/dynamic-form/MarkdownContent.js +74 -53
  35. package/dist/components/dynamic-form/MermaidDiagram.js +24 -22
  36. package/dist/components/dynamic-form/ObjectController.js +32 -24
  37. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -35
  38. package/dist/components/dynamic-form/fields/CheckboxField.js +48 -39
  39. package/dist/components/dynamic-form/fields/CodeViewField.js +50 -42
  40. package/dist/components/dynamic-form/fields/InputField.js +90 -62
  41. package/dist/components/dynamic-form/fields/MarkdownViewField.js +19 -16
  42. package/dist/components/dynamic-form/fields/RadioField.js +62 -46
  43. package/dist/components/dynamic-form/fields/SelectField.js +58 -40
  44. package/dist/components/dynamic-form/fields/SliderField.js +100 -94
  45. package/dist/components/dynamic-form/fields/SwitchField.js +61 -42
  46. package/dist/components/dynamic-form/fields/TextareaField.js +72 -53
  47. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +2 -4
  48. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +5 -6
  49. package/dist/components/dynamic-form/hooks/useFieldConfig.js +20 -19
  50. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +2 -4
  51. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +2 -4
  52. package/dist/components/feedback/ErrorAlert.js +17 -11
  53. package/dist/components/feedback/ErrorBoundary.js +14 -16
  54. package/dist/components/feedback/ErrorSnackbar.js +30 -13
  55. package/dist/components/feedback/LoadingCentered.js +28 -15
  56. package/dist/components/feedback/Snackbar.js +44 -43
  57. package/dist/components/feedback/index.js +5 -5
  58. package/dist/components/index.js +47 -47
  59. package/dist/components/layout/MainLayout.js +25 -17
  60. package/dist/components/layout/StudioSidebar.js +203 -140
  61. package/dist/components/lists/CustomListView.js +74 -49
  62. package/dist/components/lists/ListView.js +102 -66
  63. package/dist/components/loopstack-elements/link.js +104 -65
  64. package/dist/components/loopstack-elements/tool.js +142 -70
  65. package/dist/components/messages/CompletionMessagePaper.js +85 -53
  66. package/dist/components/page/PageBreadcrumbs.js +83 -64
  67. package/dist/components/ui/DiscordLogo.js +22 -16
  68. package/dist/components/ui/GoogleLogo.js +44 -40
  69. package/dist/components/ui/accordion.js +52 -31
  70. package/dist/components/ui/alert-dialog.js +109 -59
  71. package/dist/components/ui/alert.js +36 -22
  72. package/dist/components/ui/avatar.js +35 -21
  73. package/dist/components/ui/badge.js +17 -13
  74. package/dist/components/ui/breadcrumb.js +82 -46
  75. package/dist/components/ui/button-group.js +5 -5
  76. package/dist/components/ui/button.js +21 -17
  77. package/dist/components/ui/card.js +74 -40
  78. package/dist/components/ui/checkbox.js +23 -17
  79. package/dist/components/ui/collapsible.js +25 -17
  80. package/dist/components/ui/command.js +2 -1
  81. package/dist/components/ui/context-menu.js +52 -32
  82. package/dist/components/ui/dialog.js +107 -62
  83. package/dist/components/ui/drawer.js +99 -54
  84. package/dist/components/ui/dropdown-menu.js +159 -91
  85. package/dist/components/ui/hover-card.js +2 -1
  86. package/dist/components/ui/input-group.js +56 -36
  87. package/dist/components/ui/input.js +15 -11
  88. package/dist/components/ui/label.js +15 -11
  89. package/dist/components/ui/popover.js +38 -25
  90. package/dist/components/ui/radio-group.js +33 -22
  91. package/dist/components/ui/scroll-area.js +43 -28
  92. package/dist/components/ui/select.js +134 -73
  93. package/dist/components/ui/separator.js +17 -13
  94. package/dist/components/ui/sheet.js +105 -60
  95. package/dist/components/ui/sidebar.js +451 -269
  96. package/dist/components/ui/skeleton.js +14 -10
  97. package/dist/components/ui/slider.js +41 -32
  98. package/dist/components/ui/switch.js +21 -15
  99. package/dist/components/ui/table.js +85 -46
  100. package/dist/components/ui/tabs.js +45 -26
  101. package/dist/components/ui/textarea.js +14 -10
  102. package/dist/components/ui/tooltip.js +41 -26
  103. package/dist/components/ui-widgets/UiActions.js +37 -30
  104. package/dist/components/ui-widgets/UiWidget.js +46 -34
  105. package/dist/components/ui-widgets/widgets/AiPromptInput.js +42 -28
  106. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +21 -16
  107. package/dist/components/ui-widgets/widgets/SandboxRun.js +28 -19
  108. package/dist/components/ui-widgets/widgets/SubmitButton.js +20 -15
  109. package/dist/events/api-client-events.js +2 -4
  110. package/dist/events/sse-client-events.js +2 -4
  111. package/dist/features/code-explorer/CodeExplorer.js +2 -1
  112. package/dist/features/code-explorer/components/CodeExplorerTree.js +3 -2
  113. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +29 -31
  114. package/dist/features/code-explorer/components/FileContentViewer.js +148 -108
  115. package/dist/features/code-explorer/components/FileTabsBar.js +2 -1
  116. package/dist/features/code-explorer/components/FileTabsBarBase.js +169 -134
  117. package/dist/features/code-explorer/index.js +1 -1
  118. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
  119. package/dist/features/code-explorer/utils/fileIcons.js +39 -41
  120. package/dist/features/dashboard/Dashboard.js +121 -79
  121. package/dist/features/dashboard/RunItem.js +70 -50
  122. package/dist/features/dashboard/RunList.js +28 -17
  123. package/dist/features/debug/components/ConfigFlowViewer.js +67 -49
  124. package/dist/features/debug/components/WorkflowDebugHeader.js +46 -30
  125. package/dist/features/debug/components/WorkflowDebugLegend.js +68 -56
  126. package/dist/features/debug/components/WorkflowFlowViewer.js +96 -76
  127. package/dist/features/debug/components/workflow-flow/StateNode.js +102 -73
  128. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +40 -35
  129. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +94 -61
  130. package/dist/features/debug/index.js +3 -3
  131. package/dist/features/debug/lib/edge-paths.js +31 -33
  132. package/dist/features/debug/lib/flow-utils.js +145 -147
  133. package/dist/features/documents/DocumentRenderer.js +73 -68
  134. package/dist/features/documents/components/DocumentItem.js +24 -21
  135. package/dist/features/documents/components/DocumentList.js +45 -39
  136. package/dist/features/documents/components/DocumentMetadataPills.js +59 -44
  137. package/dist/features/documents/document-details/DocumentDetails.js +413 -298
  138. package/dist/features/documents/document-details/PromptDetails.js +142 -105
  139. package/dist/features/documents/index.js +4 -4
  140. package/dist/features/documents/renderers/AiMessage.js +48 -39
  141. package/dist/features/documents/renderers/AiMessageContent.js +164 -108
  142. package/dist/features/documents/renderers/ChoicesRenderer.js +89 -77
  143. package/dist/features/documents/renderers/ClaudeMessage.js +91 -74
  144. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +53 -44
  145. package/dist/features/documents/renderers/DocumentDebugRenderer.js +30 -26
  146. package/dist/features/documents/renderers/DocumentFormRenderer.js +85 -69
  147. package/dist/features/documents/renderers/DocumentMessageRenderer.js +9 -10
  148. package/dist/features/documents/renderers/ErrorMessageRenderer.js +13 -11
  149. package/dist/features/documents/renderers/LinkMessageRenderer.js +14 -15
  150. package/dist/features/documents/renderers/MarkdownMessageRenderer.js +10 -8
  151. package/dist/features/documents/renderers/PlainMessageRenderer.js +9 -7
  152. package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
  153. package/dist/features/documents/renderers/useDocumentTransition.js +33 -30
  154. package/dist/features/feature-registry/FeatureRegistryProvider.js +17 -0
  155. package/dist/features/feature-registry/index.js +1 -0
  156. package/dist/features/file-explorer/api/files.js +7 -0
  157. package/dist/features/file-explorer/components/FileExplorerPanel.js +95 -0
  158. package/dist/features/file-explorer/components/FileTabsBar.js +18 -0
  159. package/dist/features/file-explorer/components/FileTree.js +90 -0
  160. package/dist/features/file-explorer/file-explorer-feature.js +12 -0
  161. package/dist/features/file-explorer/hooks/useFileExplorer.js +44 -0
  162. package/dist/features/file-explorer/index.js +2 -0
  163. package/dist/features/file-explorer/providers/FileExplorerProvider.js +112 -0
  164. package/dist/features/health/LocalHealthCheck.js +53 -54
  165. package/dist/features/health/index.js +1 -1
  166. package/dist/features/oauth/OAuthCallbackPage.js +2 -2
  167. package/dist/features/oauth/OAuthPromptRenderer.js +235 -156
  168. package/dist/features/oauth/index.js +2 -2
  169. package/dist/features/oauth/useOAuthPopup.js +71 -52
  170. package/dist/features/runs/Runs.js +187 -145
  171. package/dist/features/secrets/components/WorkbenchSecretsPanel.js +178 -0
  172. package/dist/features/secrets/index.js +1 -0
  173. package/dist/features/secrets/renderers/SecretInputRenderer.js +87 -0
  174. package/dist/features/secrets/secrets-feature.js +14 -0
  175. package/dist/features/workbench/Workbench.js +50 -74
  176. package/dist/features/workbench/WorkflowItem.js +68 -49
  177. package/dist/features/workbench/WorkflowList.js +127 -49
  178. package/dist/features/workbench/components/NewRunDialog.js +309 -212
  179. package/dist/features/workbench/components/SidebarPanel.js +155 -0
  180. package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +82 -0
  181. package/dist/features/workbench/components/WorkbenchIconSidebar.js +137 -51
  182. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +134 -123
  183. package/dist/features/workbench/components/WorkbenchRunsPanel.js +32 -0
  184. package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
  185. package/dist/features/workbench/components/WorkbenchSidebarShell.js +80 -0
  186. package/dist/features/workbench/components/WorkflowForms.js +23 -17
  187. package/dist/features/workbench/components/WorkflowHistoryItem.js +122 -96
  188. package/dist/features/workbench/components/WorkflowHistoryList.js +54 -31
  189. package/dist/features/workbench/components/buttons/WorkflowButtons.js +99 -70
  190. package/dist/features/workbench/hooks/useAutoScrollBottom.js +25 -21
  191. package/dist/features/workbench/hooks/useScrollToListItem.js +21 -20
  192. package/dist/features/workbench/hooks/useWorkflowData.js +44 -31
  193. package/dist/features/workbench/hooks/useWorkflowListState.js +12 -13
  194. package/dist/features/workbench/index.js +8 -7
  195. package/dist/features/workbench/providers/ScrollProvider.js +19 -15
  196. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -78
  197. package/dist/features/workspaces/Workspaces.js +226 -161
  198. package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
  199. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +75 -60
  200. package/dist/features/workspaces/components/ExecutionTimeline.js +185 -143
  201. package/dist/features/workspaces/components/NewWorkflowRunDialog.js +26 -18
  202. package/dist/features/workspaces/components/WorkflowRunForm.js +133 -85
  203. package/dist/features/workspaces/components/WorkspaceHomePage.js +81 -60
  204. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +69 -52
  205. package/dist/features/workspaces/components/workflow-form/HeaderSection.js +41 -27
  206. package/dist/features/workspaces/components/workflow-form/SelectionView.js +103 -64
  207. package/dist/features/workspaces/index.js +3 -3
  208. package/dist/frontend/studio/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1968 -0
  209. package/dist/hooks/index.js +6 -6
  210. package/dist/hooks/query-keys.js +31 -33
  211. package/dist/hooks/use-mobile.js +11 -12
  212. package/dist/hooks/useApi.js +14 -16
  213. package/dist/hooks/useAuth.js +53 -38
  214. package/dist/hooks/useConfig.js +37 -26
  215. package/dist/hooks/useDashboard.js +15 -12
  216. package/dist/hooks/useDebounce.js +11 -12
  217. package/dist/hooks/useDocuments.js +35 -23
  218. package/dist/hooks/useEnvironmentPreviewUrl.js +13 -0
  219. package/dist/hooks/useEnvironments.js +8 -0
  220. package/dist/hooks/useFiles.js +2 -1
  221. package/dist/hooks/useProcessor.js +17 -14
  222. package/dist/hooks/useSecrets.js +64 -45
  223. package/dist/hooks/useWorkflows.js +163 -109
  224. package/dist/hooks/useWorkspaces.js +125 -83
  225. package/dist/index.d.ts +1395 -0
  226. package/dist/index.js +87 -80
  227. package/dist/lib/requireParam.js +2 -4
  228. package/dist/lib/utils.js +5 -7
  229. package/dist/loopstack-studio.css +1 -1
  230. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +4 -6
  231. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +6 -8
  232. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +17 -19
  233. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +71 -73
  234. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +13 -16
  235. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
  236. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +2 -4
  237. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +34 -36
  238. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +110 -138
  239. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +11 -13
  240. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +3 -5
  241. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +2 -4
  242. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +2 -4
  243. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +6 -8
  244. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +8 -10
  245. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +6 -8
  246. package/dist/node_modules/@iconify/utils/lib/icon/name.js +6 -8
  247. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +2 -4
  248. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +10 -12
  249. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +2 -4
  250. package/dist/node_modules/@iconify/utils/lib/svg/build.js +18 -20
  251. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +6 -8
  252. package/dist/node_modules/@iconify/utils/lib/svg/html.js +2 -4
  253. package/dist/node_modules/@iconify/utils/lib/svg/id.js +8 -10
  254. package/dist/node_modules/@iconify/utils/lib/svg/size.js +5 -7
  255. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +2 -2
  256. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +17 -20
  257. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +17 -20
  258. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +23 -28
  259. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +21 -26
  260. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +17 -20
  261. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +17 -20
  262. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +425 -436
  263. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +17 -20
  264. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +38 -45
  265. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +22 -27
  266. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +2 -2
  267. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +2 -2
  268. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +2 -2
  269. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +2 -2
  270. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +2 -2
  271. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +2 -2
  272. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +2 -2
  273. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +2 -2
  274. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +52 -56
  275. package/dist/node_modules/@shikijs/core/dist/index.js +575 -577
  276. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +157 -159
  277. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -4
  278. package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -3
  279. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -3
  280. package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -3
  281. package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -3
  282. package/dist/node_modules/@shikijs/langs/dist/angular-html.js +13 -15
  283. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -5
  284. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +7 -9
  285. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -5
  286. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +7 -9
  287. package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -5
  288. package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +15 -17
  289. package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -3
  290. package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -3
  291. package/dist/node_modules/@shikijs/langs/dist/apl.js +13 -15
  292. package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -3
  293. package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -3
  294. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -3
  295. package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -3
  296. package/dist/node_modules/@shikijs/langs/dist/astro.js +15 -17
  297. package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -3
  298. package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -3
  299. package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -3
  300. package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -3
  301. package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -3
  302. package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -3
  303. package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -3
  304. package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -3
  305. package/dist/node_modules/@shikijs/langs/dist/blade.js +17 -19
  306. package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -5
  307. package/dist/node_modules/@shikijs/langs/dist/c.js +2 -3
  308. package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -3
  309. package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -3
  310. package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -5
  311. package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -3
  312. package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -3
  313. package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -3
  314. package/dist/node_modules/@shikijs/langs/dist/cobol.js +7 -9
  315. package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -3
  316. package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -3
  317. package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -5
  318. package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -3
  319. package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -3
  320. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +9 -11
  321. package/dist/node_modules/@shikijs/langs/dist/cpp.js +11 -13
  322. package/dist/node_modules/@shikijs/langs/dist/crystal.js +15 -17
  323. package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -3
  324. package/dist/node_modules/@shikijs/langs/dist/css.js +2 -3
  325. package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -3
  326. package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -3
  327. package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -3
  328. package/dist/node_modules/@shikijs/langs/dist/d.js +2 -3
  329. package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -3
  330. package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -3
  331. package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -3
  332. package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -3
  333. package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -3
  334. package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -3
  335. package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -3
  336. package/dist/node_modules/@shikijs/langs/dist/edge.js +9 -11
  337. package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -5
  338. package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -5
  339. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -3
  340. package/dist/node_modules/@shikijs/langs/dist/erb.js +7 -9
  341. package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -5
  342. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +9 -11
  343. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +9 -11
  344. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +9 -11
  345. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +7 -9
  346. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -5
  347. package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -3
  348. package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -3
  349. package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -3
  350. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -5
  351. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -3
  352. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -5
  353. package/dist/node_modules/@shikijs/langs/dist/gdresource.js +7 -9
  354. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -3
  355. package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -3
  356. package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -3
  357. package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -3
  358. package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -5
  359. package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -5
  360. package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -3
  361. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +11 -13
  362. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +11 -13
  363. package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -5
  364. package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -3
  365. package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -3
  366. package/dist/node_modules/@shikijs/langs/dist/go.js +2 -3
  367. package/dist/node_modules/@shikijs/langs/dist/graphql.js +11 -13
  368. package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -3
  369. package/dist/node_modules/@shikijs/langs/dist/hack.js +7 -9
  370. package/dist/node_modules/@shikijs/langs/dist/haml.js +7 -9
  371. package/dist/node_modules/@shikijs/langs/dist/handlebars.js +11 -13
  372. package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -3
  373. package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -3
  374. package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -3
  375. package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -3
  376. package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -3
  377. package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -5
  378. package/dist/node_modules/@shikijs/langs/dist/html.js +7 -9
  379. package/dist/node_modules/@shikijs/langs/dist/http.js +11 -13
  380. package/dist/node_modules/@shikijs/langs/dist/hurl.js +9 -11
  381. package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -5
  382. package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -3
  383. package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -3
  384. package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -3
  385. package/dist/node_modules/@shikijs/langs/dist/java.js +2 -3
  386. package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -3
  387. package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -5
  388. package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -5
  389. package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -5
  390. package/dist/node_modules/@shikijs/langs/dist/json.js +2 -3
  391. package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -3
  392. package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -3
  393. package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -3
  394. package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -3
  395. package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -3
  396. package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -3
  397. package/dist/node_modules/@shikijs/langs/dist/julia.js +13 -15
  398. package/dist/node_modules/@shikijs/langs/dist/just.js +15 -17
  399. package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -3
  400. package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -3
  401. package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -3
  402. package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -5
  403. package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -3
  404. package/dist/node_modules/@shikijs/langs/dist/less.js +2 -3
  405. package/dist/node_modules/@shikijs/langs/dist/liquid.js +11 -13
  406. package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -3
  407. package/dist/node_modules/@shikijs/langs/dist/log.js +2 -3
  408. package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -3
  409. package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -5
  410. package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -3
  411. package/dist/node_modules/@shikijs/langs/dist/make.js +2 -3
  412. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -3
  413. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -3
  414. package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -3
  415. package/dist/node_modules/@shikijs/langs/dist/marko.js +11 -13
  416. package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -3
  417. package/dist/node_modules/@shikijs/langs/dist/mdc.js +9 -11
  418. package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -3
  419. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -3
  420. package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -3
  421. package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -3
  422. package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -3
  423. package/dist/node_modules/@shikijs/langs/dist/move.js +2 -3
  424. package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -3
  425. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -3
  426. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -5
  427. package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -5
  428. package/dist/node_modules/@shikijs/langs/dist/nim.js +17 -19
  429. package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -5
  430. package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -3
  431. package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -3
  432. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -3
  433. package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -3
  434. package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -3
  435. package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -3
  436. package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -3
  437. package/dist/node_modules/@shikijs/langs/dist/perl.js +13 -15
  438. package/dist/node_modules/@shikijs/langs/dist/php.js +15 -17
  439. package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -3
  440. package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -3
  441. package/dist/node_modules/@shikijs/langs/dist/po.js +2 -3
  442. package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -3
  443. package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -3
  444. package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -3
  445. package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -3
  446. package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -3
  447. package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -3
  448. package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -3
  449. package/dist/node_modules/@shikijs/langs/dist/pug.js +9 -11
  450. package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -3
  451. package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -3
  452. package/dist/node_modules/@shikijs/langs/dist/python.js +2 -3
  453. package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -5
  454. package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -3
  455. package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -3
  456. package/dist/node_modules/@shikijs/langs/dist/r.js +2 -3
  457. package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -3
  458. package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -3
  459. package/dist/node_modules/@shikijs/langs/dist/razor.js +7 -9
  460. package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -3
  461. package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -3
  462. package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -3
  463. package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -3
  464. package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -3
  465. package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -3
  466. package/dist/node_modules/@shikijs/langs/dist/rst.js +19 -21
  467. package/dist/node_modules/@shikijs/langs/dist/ruby.js +27 -29
  468. package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -3
  469. package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -5
  470. package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -3
  471. package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -3
  472. package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -3
  473. package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -5
  474. package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -3
  475. package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -5
  476. package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -3
  477. package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -5
  478. package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -3
  479. package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -3
  480. package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -5
  481. package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -5
  482. package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -3
  483. package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -3
  484. package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -3
  485. package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -5
  486. package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -3
  487. package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -5
  488. package/dist/node_modules/@shikijs/langs/dist/svelte.js +11 -13
  489. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -3
  490. package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -3
  491. package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -3
  492. package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -3
  493. package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -3
  494. package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -3
  495. package/dist/node_modules/@shikijs/langs/dist/templ.js +9 -11
  496. package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -3
  497. package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -5
  498. package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -3
  499. package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +15 -17
  500. package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -3
  501. package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -3
  502. package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -3
  503. package/dist/node_modules/@shikijs/langs/dist/twig.js +15 -17
  504. package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -3
  505. package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -3
  506. package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -3
  507. package/dist/node_modules/@shikijs/langs/dist/v.js +2 -3
  508. package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -3
  509. package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -3
  510. package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -3
  511. package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -3
  512. package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -3
  513. package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -3
  514. package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -5
  515. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -3
  516. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -5
  517. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +15 -17
  518. package/dist/node_modules/@shikijs/langs/dist/vue.js +23 -25
  519. package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -3
  520. package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -3
  521. package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -3
  522. package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -3
  523. package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -3
  524. package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -3
  525. package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -3
  526. package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -5
  527. package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -5
  528. package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -3
  529. package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -3
  530. package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -3
  531. package/dist/node_modules/@shikijs/primitive/dist/index.js +319 -321
  532. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -4
  533. package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -4
  534. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -4
  535. package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -4
  536. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -4
  537. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -4
  538. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -4
  539. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -4
  540. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -4
  541. package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -4
  542. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -4
  543. package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -4
  544. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -4
  545. package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -4
  546. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -4
  547. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -4
  548. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -4
  549. package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -4
  550. package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -4
  551. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -4
  552. package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -4
  553. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -4
  554. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -4
  555. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -4
  556. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -4
  557. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -4
  558. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -4
  559. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -4
  560. package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -4
  561. package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -4
  562. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -4
  563. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -4
  564. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -4
  565. package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -4
  566. package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -4
  567. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -4
  568. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -4
  569. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -4
  570. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -4
  571. package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -4
  572. package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -4
  573. package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -4
  574. package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -4
  575. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -4
  576. package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -4
  577. package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -4
  578. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -4
  579. package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -4
  580. package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -4
  581. package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -4
  582. package/dist/node_modules/@shikijs/themes/dist/red.js +2 -4
  583. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -4
  584. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -4
  585. package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -4
  586. package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -4
  587. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -4
  588. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -4
  589. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -4
  590. package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -4
  591. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -4
  592. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -4
  593. package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -4
  594. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -4
  595. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -4
  596. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -4
  597. package/dist/node_modules/@shikijs/types/dist/index.js +2 -4
  598. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +947 -949
  599. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
  600. package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -6
  601. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
  602. package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
  603. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +693 -695
  604. package/dist/node_modules/@xyflow/react/dist/esm/index.js +881 -883
  605. package/dist/node_modules/@xyflow/system/dist/esm/index.js +1221 -1223
  606. package/dist/node_modules/bail/index.js +2 -4
  607. package/dist/node_modules/ccount/index.js +2 -4
  608. package/dist/node_modules/character-entities-html4/index.js +2 -4
  609. package/dist/node_modules/character-entities-legacy/index.js +2 -4
  610. package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
  611. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +4 -6
  612. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -4
  613. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +9 -11
  614. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +15 -17
  615. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +17 -19
  616. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +24 -26
  617. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +201 -203
  618. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +16 -18
  619. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +17 -19
  620. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +12 -14
  621. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +140 -142
  622. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +4 -5
  623. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +25 -27
  624. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +149 -151
  625. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +14 -16
  626. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +38 -40
  627. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +64 -65
  628. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +11 -13
  629. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +101 -103
  630. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +5 -7
  631. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +45 -47
  632. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +6 -8
  633. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +73 -75
  634. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +180 -182
  635. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +23 -24
  636. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +26 -28
  637. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +2 -4
  638. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +246 -246
  639. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +2 -4
  640. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +31 -33
  641. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +64 -67
  642. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +10 -12
  643. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +35 -36
  644. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +26 -28
  645. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +240 -242
  646. package/dist/node_modules/chevrotain-allstar/lib/atn.js +133 -134
  647. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +10 -11
  648. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
  649. package/dist/node_modules/classcat/index.js +3 -5
  650. package/dist/node_modules/comma-separated-tokens/index.js +3 -5
  651. package/dist/node_modules/cose-base/cose-base.js +21 -21
  652. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7940 -7937
  653. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +6 -8
  654. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +6 -8
  655. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
  656. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +4 -6
  657. package/dist/node_modules/d3/src/index.js +95 -95
  658. package/dist/node_modules/d3-array/src/ascending.js +2 -4
  659. package/dist/node_modules/d3-array/src/bisect.js +8 -8
  660. package/dist/node_modules/d3-array/src/bisector.js +6 -8
  661. package/dist/node_modules/d3-array/src/descending.js +2 -4
  662. package/dist/node_modules/d3-array/src/max.js +2 -4
  663. package/dist/node_modules/d3-array/src/min.js +2 -4
  664. package/dist/node_modules/d3-array/src/number.js +2 -4
  665. package/dist/node_modules/d3-array/src/range.js +2 -4
  666. package/dist/node_modules/d3-array/src/ticks.js +11 -13
  667. package/dist/node_modules/d3-axis/src/axis.js +46 -48
  668. package/dist/node_modules/d3-axis/src/identity.js +2 -4
  669. package/dist/node_modules/d3-brush/src/brush.js +4 -6
  670. package/dist/node_modules/d3-color/src/color.js +84 -86
  671. package/dist/node_modules/d3-color/src/define.js +3 -5
  672. package/dist/node_modules/d3-color/src/lab.js +43 -45
  673. package/dist/node_modules/d3-color/src/math.js +2 -4
  674. package/dist/node_modules/d3-dispatch/src/dispatch.js +17 -18
  675. package/dist/node_modules/d3-drag/src/constant.js +2 -4
  676. package/dist/node_modules/d3-drag/src/drag.js +75 -77
  677. package/dist/node_modules/d3-drag/src/event.js +3 -5
  678. package/dist/node_modules/d3-drag/src/nodrag.js +9 -11
  679. package/dist/node_modules/d3-drag/src/noevent.js +4 -6
  680. package/dist/node_modules/d3-ease/src/cubic.js +2 -4
  681. package/dist/node_modules/d3-format/src/defaultLocale.js +6 -8
  682. package/dist/node_modules/d3-format/src/exponent.js +4 -6
  683. package/dist/node_modules/d3-format/src/formatDecimal.js +3 -5
  684. package/dist/node_modules/d3-format/src/formatGroup.js +2 -4
  685. package/dist/node_modules/d3-format/src/formatNumerals.js +2 -4
  686. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +8 -10
  687. package/dist/node_modules/d3-format/src/formatRounded.js +4 -6
  688. package/dist/node_modules/d3-format/src/formatSpecifier.js +8 -10
  689. package/dist/node_modules/d3-format/src/formatTrim.js +2 -4
  690. package/dist/node_modules/d3-format/src/formatTypes.js +13 -15
  691. package/dist/node_modules/d3-format/src/identity.js +2 -4
  692. package/dist/node_modules/d3-format/src/locale.js +31 -33
  693. package/dist/node_modules/d3-format/src/precisionFixed.js +4 -6
  694. package/dist/node_modules/d3-format/src/precisionPrefix.js +4 -6
  695. package/dist/node_modules/d3-format/src/precisionRound.js +4 -6
  696. package/dist/node_modules/d3-hierarchy/src/accessors.js +2 -4
  697. package/dist/node_modules/d3-hierarchy/src/constant.js +3 -5
  698. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +2 -4
  699. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +4 -6
  700. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +2 -4
  701. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +2 -4
  702. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +2 -4
  703. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +2 -4
  704. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +2 -4
  705. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +44 -46
  706. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +2 -4
  707. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +2 -4
  708. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +2 -4
  709. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +4 -6
  710. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +2 -4
  711. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +2 -4
  712. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +2 -4
  713. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +14 -16
  714. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +2 -4
  715. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +2 -4
  716. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +9 -11
  717. package/dist/node_modules/d3-interpolate/src/array.js +4 -6
  718. package/dist/node_modules/d3-interpolate/src/basis.js +4 -6
  719. package/dist/node_modules/d3-interpolate/src/basisClosed.js +4 -6
  720. package/dist/node_modules/d3-interpolate/src/color.js +17 -19
  721. package/dist/node_modules/d3-interpolate/src/constant.js +2 -4
  722. package/dist/node_modules/d3-interpolate/src/date.js +2 -4
  723. package/dist/node_modules/d3-interpolate/src/hcl.js +6 -8
  724. package/dist/node_modules/d3-interpolate/src/number.js +2 -4
  725. package/dist/node_modules/d3-interpolate/src/numberArray.js +3 -5
  726. package/dist/node_modules/d3-interpolate/src/object.js +4 -6
  727. package/dist/node_modules/d3-interpolate/src/rgb.js +9 -11
  728. package/dist/node_modules/d3-interpolate/src/round.js +2 -4
  729. package/dist/node_modules/d3-interpolate/src/string.js +14 -16
  730. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +5 -7
  731. package/dist/node_modules/d3-interpolate/src/transform/index.js +11 -13
  732. package/dist/node_modules/d3-interpolate/src/transform/parse.js +8 -10
  733. package/dist/node_modules/d3-interpolate/src/value.js +12 -14
  734. package/dist/node_modules/d3-interpolate/src/zoom.js +11 -13
  735. package/dist/node_modules/d3-path/src/path.js +14 -16
  736. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +2 -4
  737. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +2 -4
  738. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +2 -4
  739. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +12 -13
  740. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -4
  741. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +2 -4
  742. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +17 -19
  743. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +3 -5
  744. package/dist/node_modules/d3-sankey/src/align.js +10 -12
  745. package/dist/node_modules/d3-sankey/src/constant.js +2 -4
  746. package/dist/node_modules/d3-sankey/src/sankey.js +168 -170
  747. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +6 -8
  748. package/dist/node_modules/d3-scale/src/band.js +9 -11
  749. package/dist/node_modules/d3-scale/src/constant.js +2 -4
  750. package/dist/node_modules/d3-scale/src/continuous.js +47 -49
  751. package/dist/node_modules/d3-scale/src/init.js +2 -4
  752. package/dist/node_modules/d3-scale/src/linear.js +13 -15
  753. package/dist/node_modules/d3-scale/src/nice.js +2 -4
  754. package/dist/node_modules/d3-scale/src/number.js +2 -4
  755. package/dist/node_modules/d3-scale/src/ordinal.js +16 -18
  756. package/dist/node_modules/d3-scale/src/tickFormat.js +14 -16
  757. package/dist/node_modules/d3-scale/src/time.js +34 -36
  758. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -5
  759. package/dist/node_modules/d3-scale-chromatic/src/colors.js +2 -4
  760. package/dist/node_modules/d3-selection/src/array.js +2 -4
  761. package/dist/node_modules/d3-selection/src/constant.js +2 -4
  762. package/dist/node_modules/d3-selection/src/creator.js +10 -12
  763. package/dist/node_modules/d3-selection/src/matcher.js +3 -5
  764. package/dist/node_modules/d3-selection/src/namespace.js +5 -7
  765. package/dist/node_modules/d3-selection/src/namespaces.js +3 -5
  766. package/dist/node_modules/d3-selection/src/pointer.js +4 -6
  767. package/dist/node_modules/d3-selection/src/select.js +4 -6
  768. package/dist/node_modules/d3-selection/src/selection/append.js +4 -6
  769. package/dist/node_modules/d3-selection/src/selection/attr.js +17 -19
  770. package/dist/node_modules/d3-selection/src/selection/call.js +2 -4
  771. package/dist/node_modules/d3-selection/src/selection/classed.js +23 -25
  772. package/dist/node_modules/d3-selection/src/selection/clone.js +5 -7
  773. package/dist/node_modules/d3-selection/src/selection/data.js +16 -18
  774. package/dist/node_modules/d3-selection/src/selection/datum.js +2 -4
  775. package/dist/node_modules/d3-selection/src/selection/dispatch.js +10 -12
  776. package/dist/node_modules/d3-selection/src/selection/each.js +2 -4
  777. package/dist/node_modules/d3-selection/src/selection/empty.js +2 -4
  778. package/dist/node_modules/d3-selection/src/selection/enter.js +11 -13
  779. package/dist/node_modules/d3-selection/src/selection/exit.js +5 -7
  780. package/dist/node_modules/d3-selection/src/selection/filter.js +6 -8
  781. package/dist/node_modules/d3-selection/src/selection/html.js +6 -8
  782. package/dist/node_modules/d3-selection/src/selection/index.js +79 -80
  783. package/dist/node_modules/d3-selection/src/selection/insert.js +6 -8
  784. package/dist/node_modules/d3-selection/src/selection/iterator.js +2 -4
  785. package/dist/node_modules/d3-selection/src/selection/join.js +2 -4
  786. package/dist/node_modules/d3-selection/src/selection/lower.js +4 -6
  787. package/dist/node_modules/d3-selection/src/selection/merge.js +4 -6
  788. package/dist/node_modules/d3-selection/src/selection/node.js +2 -4
  789. package/dist/node_modules/d3-selection/src/selection/nodes.js +2 -4
  790. package/dist/node_modules/d3-selection/src/selection/on.js +9 -11
  791. package/dist/node_modules/d3-selection/src/selection/order.js +2 -4
  792. package/dist/node_modules/d3-selection/src/selection/property.js +6 -8
  793. package/dist/node_modules/d3-selection/src/selection/raise.js +4 -6
  794. package/dist/node_modules/d3-selection/src/selection/remove.js +4 -6
  795. package/dist/node_modules/d3-selection/src/selection/select.js +6 -8
  796. package/dist/node_modules/d3-selection/src/selection/selectAll.js +9 -11
  797. package/dist/node_modules/d3-selection/src/selection/selectChild.js +8 -10
  798. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +8 -10
  799. package/dist/node_modules/d3-selection/src/selection/size.js +2 -4
  800. package/dist/node_modules/d3-selection/src/selection/sort.js +6 -8
  801. package/dist/node_modules/d3-selection/src/selection/sparse.js +2 -4
  802. package/dist/node_modules/d3-selection/src/selection/style.js +12 -14
  803. package/dist/node_modules/d3-selection/src/selection/text.js +6 -8
  804. package/dist/node_modules/d3-selection/src/selector.js +4 -6
  805. package/dist/node_modules/d3-selection/src/selectorAll.js +4 -6
  806. package/dist/node_modules/d3-selection/src/sourceEvent.js +2 -4
  807. package/dist/node_modules/d3-selection/src/window.js +2 -4
  808. package/dist/node_modules/d3-shape/src/arc.js +36 -38
  809. package/dist/node_modules/d3-shape/src/array.js +2 -3
  810. package/dist/node_modules/d3-shape/src/constant.js +2 -4
  811. package/dist/node_modules/d3-shape/src/curve/basis.js +8 -10
  812. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +16 -18
  813. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +7 -9
  814. package/dist/node_modules/d3-shape/src/curve/bump.js +13 -15
  815. package/dist/node_modules/d3-shape/src/curve/bundle.js +7 -9
  816. package/dist/node_modules/d3-shape/src/curve/cardinal.js +8 -10
  817. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +10 -12
  818. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +7 -9
  819. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +17 -19
  820. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +11 -13
  821. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +8 -10
  822. package/dist/node_modules/d3-shape/src/curve/linear.js +5 -7
  823. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +10 -12
  824. package/dist/node_modules/d3-shape/src/curve/monotone.js +21 -23
  825. package/dist/node_modules/d3-shape/src/curve/natural.js +7 -9
  826. package/dist/node_modules/d3-shape/src/curve/step.js +17 -19
  827. package/dist/node_modules/d3-shape/src/descending.js +2 -4
  828. package/dist/node_modules/d3-shape/src/identity.js +2 -4
  829. package/dist/node_modules/d3-shape/src/line.js +17 -19
  830. package/dist/node_modules/d3-shape/src/math.js +6 -8
  831. package/dist/node_modules/d3-shape/src/noop.js +2 -4
  832. package/dist/node_modules/d3-shape/src/path.js +4 -6
  833. package/dist/node_modules/d3-shape/src/pie.js +13 -15
  834. package/dist/node_modules/d3-shape/src/point.js +3 -5
  835. package/dist/node_modules/d3-time/src/day.js +15 -17
  836. package/dist/node_modules/d3-time/src/duration.js +2 -4
  837. package/dist/node_modules/d3-time/src/hour.js +14 -16
  838. package/dist/node_modules/d3-time/src/interval.js +5 -7
  839. package/dist/node_modules/d3-time/src/millisecond.js +5 -7
  840. package/dist/node_modules/d3-time/src/minute.js +14 -16
  841. package/dist/node_modules/d3-time/src/month.js +12 -14
  842. package/dist/node_modules/d3-time/src/second.js +7 -9
  843. package/dist/node_modules/d3-time/src/ticks.js +64 -66
  844. package/dist/node_modules/d3-time/src/week.js +19 -21
  845. package/dist/node_modules/d3-time/src/year.js +8 -10
  846. package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -8
  847. package/dist/node_modules/d3-time-format/src/locale.js +344 -346
  848. package/dist/node_modules/d3-timer/src/timeout.js +4 -6
  849. package/dist/node_modules/d3-timer/src/timer.js +31 -33
  850. package/dist/node_modules/d3-transition/src/index.js +2 -2
  851. package/dist/node_modules/d3-transition/src/interrupt.js +3 -4
  852. package/dist/node_modules/d3-transition/src/selection/index.js +4 -5
  853. package/dist/node_modules/d3-transition/src/selection/interrupt.js +4 -6
  854. package/dist/node_modules/d3-transition/src/selection/transition.js +14 -16
  855. package/dist/node_modules/d3-transition/src/transition/attr.js +26 -28
  856. package/dist/node_modules/d3-transition/src/transition/attrTween.js +11 -13
  857. package/dist/node_modules/d3-transition/src/transition/delay.js +9 -11
  858. package/dist/node_modules/d3-transition/src/transition/duration.js +9 -11
  859. package/dist/node_modules/d3-transition/src/transition/ease.js +6 -8
  860. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +6 -8
  861. package/dist/node_modules/d3-transition/src/transition/end.js +4 -6
  862. package/dist/node_modules/d3-transition/src/transition/filter.js +6 -8
  863. package/dist/node_modules/d3-transition/src/transition/index.js +61 -63
  864. package/dist/node_modules/d3-transition/src/transition/interpolate.js +7 -9
  865. package/dist/node_modules/d3-transition/src/transition/merge.js +4 -6
  866. package/dist/node_modules/d3-transition/src/transition/on.js +7 -9
  867. package/dist/node_modules/d3-transition/src/transition/remove.js +4 -6
  868. package/dist/node_modules/d3-transition/src/transition/schedule.js +18 -20
  869. package/dist/node_modules/d3-transition/src/transition/select.js +8 -10
  870. package/dist/node_modules/d3-transition/src/transition/selectAll.js +8 -10
  871. package/dist/node_modules/d3-transition/src/transition/selection.js +5 -7
  872. package/dist/node_modules/d3-transition/src/transition/style.js +19 -21
  873. package/dist/node_modules/d3-transition/src/transition/styleTween.js +6 -8
  874. package/dist/node_modules/d3-transition/src/transition/text.js +6 -8
  875. package/dist/node_modules/d3-transition/src/transition/textTween.js +6 -8
  876. package/dist/node_modules/d3-transition/src/transition/transition.js +8 -10
  877. package/dist/node_modules/d3-transition/src/transition/tween.js +12 -14
  878. package/dist/node_modules/d3-zoom/src/constant.js +2 -4
  879. package/dist/node_modules/d3-zoom/src/event.js +2 -4
  880. package/dist/node_modules/d3-zoom/src/index.js +2 -2
  881. package/dist/node_modules/d3-zoom/src/noevent.js +3 -5
  882. package/dist/node_modules/d3-zoom/src/transform.js +10 -12
  883. package/dist/node_modules/d3-zoom/src/zoom.js +114 -116
  884. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +12 -14
  885. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +9 -11
  886. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +34 -36
  887. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +7 -9
  888. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +49 -51
  889. package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
  890. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +163 -165
  891. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +43 -45
  892. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +10 -12
  893. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +4 -6
  894. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +6 -8
  895. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +12 -14
  896. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +20 -22
  897. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +34 -36
  898. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +13 -15
  899. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +30 -32
  900. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +28 -30
  901. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +18 -20
  902. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +10 -12
  903. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +148 -150
  904. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +18 -20
  905. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +17 -19
  906. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +14 -16
  907. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +63 -64
  908. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -10
  909. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +82 -84
  910. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +13 -15
  911. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -3
  912. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -3
  913. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
  914. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +4 -6
  915. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +4 -6
  916. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +11 -13
  917. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +129 -131
  918. package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
  919. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +16 -18
  920. package/dist/node_modules/dayjs/dayjs.min.js +4 -6
  921. package/dist/node_modules/dayjs/plugin/advancedFormat.js +4 -6
  922. package/dist/node_modules/dayjs/plugin/customParseFormat.js +4 -6
  923. package/dist/node_modules/dayjs/plugin/duration.js +4 -6
  924. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -6
  925. package/dist/node_modules/decode-named-character-reference/index.dom.js +5 -7
  926. package/dist/node_modules/devlop/lib/default.js +2 -4
  927. package/dist/node_modules/dompurify/dist/purify.es.js +180 -182
  928. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +4 -6
  929. package/dist/node_modules/entities/dist/esm/decode.js +85 -87
  930. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -4
  931. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +4 -6
  932. package/dist/node_modules/extend/index.js +6 -9
  933. package/dist/node_modules/hast-util-from-dom/lib/index.js +30 -32
  934. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +8 -10
  935. package/dist/node_modules/hast-util-from-parse5/lib/index.js +80 -82
  936. package/dist/node_modules/hast-util-is-element/lib/index.js +15 -17
  937. package/dist/node_modules/hast-util-parse-selector/lib/index.js +5 -7
  938. package/dist/node_modules/hast-util-raw/lib/index.js +134 -136
  939. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +21 -23
  940. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +3 -5
  941. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
  942. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +249 -250
  943. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +4 -6
  944. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
  945. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
  946. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +15 -17
  947. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1495 -1497
  948. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +146 -148
  949. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +19 -20
  950. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +798 -800
  951. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +31 -33
  952. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +8 -10
  953. package/dist/node_modules/hast-util-sanitize/lib/index.js +104 -106
  954. package/dist/node_modules/hast-util-sanitize/lib/schema.js +11 -12
  955. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +7 -9
  956. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +2 -4
  957. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +23 -25
  958. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +21 -22
  959. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +4 -6
  960. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +2 -4
  961. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +5 -7
  962. package/dist/node_modules/hast-util-to-html/lib/index.js +36 -38
  963. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +68 -70
  964. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +4 -6
  965. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +30 -32
  966. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +9 -10
  967. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +190 -192
  968. package/dist/node_modules/hast-util-to-parse5/lib/index.js +69 -71
  969. package/dist/node_modules/hast-util-to-text/lib/index.js +59 -61
  970. package/dist/node_modules/hast-util-whitespace/lib/index.js +6 -8
  971. package/dist/node_modules/hastscript/lib/create-h.js +24 -26
  972. package/dist/node_modules/hastscript/lib/index.js +5 -7
  973. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -4
  974. package/dist/node_modules/html-url-attributes/lib/index.js +2 -4
  975. package/dist/node_modules/html-void-elements/index.js +2 -4
  976. package/dist/node_modules/inline-style-parser/cjs/index.js +4 -6
  977. package/dist/node_modules/internmap/src/index.js +20 -22
  978. package/dist/node_modules/katex/dist/katex.js +2307 -2301
  979. package/dist/node_modules/khroma/dist/channels/index.js +21 -23
  980. package/dist/node_modules/khroma/dist/channels/reusable.js +3 -5
  981. package/dist/node_modules/khroma/dist/channels/type.js +5 -7
  982. package/dist/node_modules/khroma/dist/color/hex.js +8 -10
  983. package/dist/node_modules/khroma/dist/color/hsl.js +17 -19
  984. package/dist/node_modules/khroma/dist/color/index.js +15 -17
  985. package/dist/node_modules/khroma/dist/color/keyword.js +8 -10
  986. package/dist/node_modules/khroma/dist/color/rgb.js +12 -14
  987. package/dist/node_modules/khroma/dist/constants.js +5 -7
  988. package/dist/node_modules/khroma/dist/methods/adjust.js +6 -8
  989. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +6 -8
  990. package/dist/node_modules/khroma/dist/methods/change.js +7 -9
  991. package/dist/node_modules/khroma/dist/methods/channel.js +4 -6
  992. package/dist/node_modules/khroma/dist/methods/darken.js +3 -5
  993. package/dist/node_modules/khroma/dist/methods/invert.js +6 -8
  994. package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -5
  995. package/dist/node_modules/khroma/dist/methods/is_light.js +3 -5
  996. package/dist/node_modules/khroma/dist/methods/lighten.js +3 -5
  997. package/dist/node_modules/khroma/dist/methods/luminance.js +6 -8
  998. package/dist/node_modules/khroma/dist/methods/mix.js +6 -8
  999. package/dist/node_modules/khroma/dist/methods/rgba.js +13 -15
  1000. package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -5
  1001. package/dist/node_modules/khroma/dist/utils/channel.js +6 -8
  1002. package/dist/node_modules/khroma/dist/utils/index.js +8 -10
  1003. package/dist/node_modules/khroma/dist/utils/lang.js +2 -4
  1004. package/dist/node_modules/khroma/dist/utils/unit.js +2 -4
  1005. package/dist/node_modules/langium/lib/default-module.js +64 -66
  1006. package/dist/node_modules/langium/lib/dependency-injection.js +39 -37
  1007. package/dist/node_modules/langium/lib/documentation/comment-provider.js +5 -7
  1008. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +6 -8
  1009. package/dist/node_modules/langium/lib/documentation/jsdoc.js +202 -204
  1010. package/dist/node_modules/langium/lib/index.js +182 -0
  1011. package/dist/node_modules/langium/lib/languages/generated/ast.js +534 -343
  1012. package/dist/node_modules/langium/lib/languages/grammar-config.js +8 -10
  1013. package/dist/node_modules/langium/lib/parser/async-parser.js +76 -4
  1014. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +6 -8
  1015. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +54 -56
  1016. package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
  1017. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +7 -9
  1018. package/dist/node_modules/langium/lib/parser/langium-parser.js +188 -190
  1019. package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
  1020. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +203 -204
  1021. package/dist/node_modules/langium/lib/parser/token-builder.js +30 -32
  1022. package/dist/node_modules/langium/lib/parser/value-converter.js +15 -17
  1023. package/dist/node_modules/langium/lib/references/linker.js +103 -104
  1024. package/dist/node_modules/langium/lib/references/name-provider.js +7 -9
  1025. package/dist/node_modules/langium/lib/references/references.js +51 -53
  1026. package/dist/node_modules/langium/lib/references/scope-computation.js +12 -14
  1027. package/dist/node_modules/langium/lib/references/scope-provider.js +11 -13
  1028. package/dist/node_modules/langium/lib/references/scope.js +56 -27
  1029. package/dist/node_modules/langium/lib/serializer/hydrator.js +69 -71
  1030. package/dist/node_modules/langium/lib/serializer/json-serializer.js +21 -23
  1031. package/dist/node_modules/langium/lib/service-registry.js +5 -7
  1032. package/dist/node_modules/langium/lib/syntax-tree.js +31 -33
  1033. package/dist/node_modules/langium/lib/utils/ast-utils.js +112 -77
  1034. package/dist/node_modules/langium/lib/utils/caching.js +42 -33
  1035. package/dist/node_modules/langium/lib/utils/cancellation.js +5 -7
  1036. package/dist/node_modules/langium/lib/utils/collections.js +33 -35
  1037. package/dist/node_modules/langium/lib/utils/cst-utils.js +161 -46
  1038. package/dist/node_modules/langium/lib/utils/disposable.js +3 -5
  1039. package/dist/node_modules/langium/lib/utils/errors.js +9 -8
  1040. package/dist/node_modules/langium/lib/utils/event.js +5 -7
  1041. package/dist/node_modules/langium/lib/utils/grammar-loader.js +14 -16
  1042. package/dist/node_modules/langium/lib/utils/grammar-utils.js +249 -172
  1043. package/dist/node_modules/langium/lib/utils/index.js +53 -0
  1044. package/dist/node_modules/langium/lib/utils/promise-utils.js +19 -18
  1045. package/dist/node_modules/langium/lib/utils/regexp-utils.js +76 -53
  1046. package/dist/node_modules/langium/lib/utils/stream.js +153 -155
  1047. package/dist/node_modules/langium/lib/utils/uri-utils.js +12 -14
  1048. package/dist/node_modules/langium/lib/validation/document-validator.js +103 -104
  1049. package/dist/node_modules/langium/lib/validation/validation-registry.js +14 -15
  1050. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +17 -19
  1051. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +2 -4
  1052. package/dist/node_modules/langium/lib/workspace/configuration.js +5 -7
  1053. package/dist/node_modules/langium/lib/workspace/document-builder.js +134 -131
  1054. package/dist/node_modules/langium/lib/workspace/documents.js +83 -85
  1055. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +4 -5
  1056. package/dist/node_modules/langium/lib/workspace/index-manager.js +14 -16
  1057. package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
  1058. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +9 -11
  1059. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +33 -35
  1060. package/dist/node_modules/layout-base/layout-base.js +4 -6
  1061. package/dist/node_modules/lodash/_Symbol.js +7 -0
  1062. package/dist/node_modules/lodash/_baseGetTag.js +13 -0
  1063. package/dist/node_modules/lodash/_baseTrim.js +11 -0
  1064. package/dist/node_modules/lodash/_freeGlobal.js +6 -0
  1065. package/dist/node_modules/lodash/_getRawTag.js +17 -0
  1066. package/dist/node_modules/lodash/_objectToString.js +10 -0
  1067. package/dist/node_modules/lodash/_root.js +8 -0
  1068. package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
  1069. package/dist/{frontend/studio/node_modules → node_modules}/lodash/debounce.js +8 -10
  1070. package/dist/node_modules/lodash/isObject.js +10 -0
  1071. package/dist/node_modules/lodash/isObjectLike.js +9 -0
  1072. package/dist/node_modules/lodash/isSymbol.js +12 -0
  1073. package/dist/node_modules/lodash/now.js +10 -0
  1074. package/dist/node_modules/lodash/toNumber.js +22 -0
  1075. package/dist/node_modules/lodash-es/_DataView.js +4 -6
  1076. package/dist/node_modules/lodash-es/_Hash.js +13 -14
  1077. package/dist/node_modules/lodash-es/_ListCache.js +13 -14
  1078. package/dist/node_modules/lodash-es/_Map.js +4 -6
  1079. package/dist/node_modules/lodash-es/_MapCache.js +13 -14
  1080. package/dist/node_modules/lodash-es/_Promise.js +4 -6
  1081. package/dist/node_modules/lodash-es/_Set.js +4 -6
  1082. package/dist/node_modules/lodash-es/_SetCache.js +9 -10
  1083. package/dist/node_modules/lodash-es/_Stack.js +11 -12
  1084. package/dist/node_modules/lodash-es/_Symbol.js +3 -5
  1085. package/dist/node_modules/lodash-es/_Uint8Array.js +3 -5
  1086. package/dist/node_modules/lodash-es/_WeakMap.js +4 -6
  1087. package/dist/node_modules/lodash-es/_apply.js +3 -4
  1088. package/dist/node_modules/lodash-es/_arrayEach.js +3 -4
  1089. package/dist/node_modules/lodash-es/_arrayFilter.js +3 -4
  1090. package/dist/node_modules/lodash-es/_arrayIncludes.js +5 -6
  1091. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +3 -4
  1092. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
  1093. package/dist/node_modules/lodash-es/_arrayMap.js +3 -4
  1094. package/dist/node_modules/lodash-es/_arrayPush.js +3 -4
  1095. package/dist/node_modules/lodash-es/_arrayReduce.js +3 -4
  1096. package/dist/node_modules/lodash-es/_arraySome.js +3 -4
  1097. package/dist/node_modules/lodash-es/_asciiSize.js +3 -5
  1098. package/dist/node_modules/lodash-es/_assignMergeValue.js +6 -7
  1099. package/dist/node_modules/lodash-es/_assignValue.js +7 -8
  1100. package/dist/node_modules/lodash-es/_assocIndexOf.js +5 -6
  1101. package/dist/node_modules/lodash-es/_baseAssign.js +6 -7
  1102. package/dist/node_modules/lodash-es/_baseAssignIn.js +6 -7
  1103. package/dist/node_modules/lodash-es/_baseAssignValue.js +5 -6
  1104. package/dist/node_modules/lodash-es/_baseClone.js +50 -51
  1105. package/dist/node_modules/lodash-es/_baseCreate.js +5 -7
  1106. package/dist/node_modules/lodash-es/_baseEach.js +4 -6
  1107. package/dist/node_modules/lodash-es/_baseExtremum.js +5 -6
  1108. package/dist/node_modules/lodash-es/_baseFilter.js +5 -6
  1109. package/dist/node_modules/lodash-es/_baseFindIndex.js +3 -4
  1110. package/dist/node_modules/lodash-es/_baseFlatten.js +7 -8
  1111. package/dist/node_modules/lodash-es/_baseFor.js +3 -5
  1112. package/dist/node_modules/lodash-es/_baseForOwn.js +6 -7
  1113. package/dist/node_modules/lodash-es/_baseGet.js +7 -8
  1114. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +6 -7
  1115. package/dist/node_modules/lodash-es/_baseGetTag.js +8 -9
  1116. package/dist/node_modules/lodash-es/_baseGt.js +3 -4
  1117. package/dist/node_modules/lodash-es/_baseHas.js +5 -6
  1118. package/dist/node_modules/lodash-es/_baseHasIn.js +3 -4
  1119. package/dist/node_modules/lodash-es/_baseIndexOf.js +7 -8
  1120. package/dist/node_modules/lodash-es/_baseIsArguments.js +7 -8
  1121. package/dist/node_modules/lodash-es/_baseIsEqual.js +6 -7
  1122. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +22 -23
  1123. package/dist/node_modules/lodash-es/_baseIsMap.js +7 -8
  1124. package/dist/node_modules/lodash-es/_baseIsMatch.js +8 -9
  1125. package/dist/node_modules/lodash-es/_baseIsNaN.js +3 -4
  1126. package/dist/node_modules/lodash-es/_baseIsNative.js +9 -10
  1127. package/dist/node_modules/lodash-es/_baseIsSet.js +7 -8
  1128. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +9 -10
  1129. package/dist/node_modules/lodash-es/_baseIteratee.js +9 -10
  1130. package/dist/node_modules/lodash-es/_baseKeys.js +8 -9
  1131. package/dist/node_modules/lodash-es/_baseKeysIn.js +10 -11
  1132. package/dist/node_modules/lodash-es/_baseLt.js +3 -4
  1133. package/dist/node_modules/lodash-es/_baseMap.js +7 -8
  1134. package/dist/node_modules/lodash-es/_baseMatches.js +9 -10
  1135. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +14 -15
  1136. package/dist/node_modules/lodash-es/_baseMerge.js +15 -16
  1137. package/dist/node_modules/lodash-es/_baseMergeDeep.js +23 -24
  1138. package/dist/node_modules/lodash-es/_baseOrderBy.js +22 -23
  1139. package/dist/node_modules/lodash-es/_basePick.js +7 -8
  1140. package/dist/node_modules/lodash-es/_basePickBy.js +8 -9
  1141. package/dist/node_modules/lodash-es/_baseProperty.js +3 -4
  1142. package/dist/node_modules/lodash-es/_basePropertyDeep.js +5 -6
  1143. package/dist/node_modules/lodash-es/_baseRange.js +5 -6
  1144. package/dist/node_modules/lodash-es/_baseReduce.js +3 -4
  1145. package/dist/node_modules/lodash-es/_baseRest.js +7 -8
  1146. package/dist/node_modules/lodash-es/_baseSet.js +13 -14
  1147. package/dist/node_modules/lodash-es/_baseSetToString.js +8 -10
  1148. package/dist/node_modules/lodash-es/_baseSortBy.js +3 -4
  1149. package/dist/node_modules/lodash-es/_baseTimes.js +3 -4
  1150. package/dist/node_modules/lodash-es/_baseToString.js +12 -13
  1151. package/dist/node_modules/lodash-es/_baseTrim.js +6 -7
  1152. package/dist/node_modules/lodash-es/_baseUnary.js +3 -4
  1153. package/dist/node_modules/lodash-es/_baseUniq.js +16 -17
  1154. package/dist/node_modules/lodash-es/_baseValues.js +5 -6
  1155. package/dist/node_modules/lodash-es/_baseZipObject.js +3 -4
  1156. package/dist/node_modules/lodash-es/_cacheHas.js +3 -4
  1157. package/dist/node_modules/lodash-es/_castFunction.js +5 -6
  1158. package/dist/node_modules/lodash-es/_castPath.js +8 -9
  1159. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +5 -6
  1160. package/dist/node_modules/lodash-es/_cloneBuffer.js +8 -9
  1161. package/dist/node_modules/lodash-es/_cloneDataView.js +5 -6
  1162. package/dist/node_modules/lodash-es/_cloneRegExp.js +5 -6
  1163. package/dist/node_modules/lodash-es/_cloneSymbol.js +6 -7
  1164. package/dist/node_modules/lodash-es/_cloneTypedArray.js +5 -6
  1165. package/dist/node_modules/lodash-es/_compareAscending.js +5 -6
  1166. package/dist/node_modules/lodash-es/_compareMultiple.js +5 -6
  1167. package/dist/node_modules/lodash-es/_copyArray.js +3 -4
  1168. package/dist/node_modules/lodash-es/_copyObject.js +6 -7
  1169. package/dist/node_modules/lodash-es/_copySymbols.js +6 -7
  1170. package/dist/node_modules/lodash-es/_copySymbolsIn.js +6 -7
  1171. package/dist/node_modules/lodash-es/_coreJsData.js +3 -5
  1172. package/dist/node_modules/lodash-es/_createAssigner.js +7 -8
  1173. package/dist/node_modules/lodash-es/_createBaseEach.js +5 -6
  1174. package/dist/node_modules/lodash-es/_createBaseFor.js +3 -4
  1175. package/dist/node_modules/lodash-es/_createFind.js +9 -10
  1176. package/dist/node_modules/lodash-es/_createRange.js +7 -8
  1177. package/dist/node_modules/lodash-es/_createSet.js +7 -9
  1178. package/dist/node_modules/lodash-es/_defineProperty.js +4 -6
  1179. package/dist/node_modules/lodash-es/_equalArrays.js +11 -12
  1180. package/dist/node_modules/lodash-es/_equalByTag.js +28 -29
  1181. package/dist/node_modules/lodash-es/_equalObjects.js +8 -9
  1182. package/dist/node_modules/lodash-es/_flatRest.js +7 -8
  1183. package/dist/node_modules/lodash-es/_freeGlobal.js +2 -4
  1184. package/dist/node_modules/lodash-es/_getAllKeys.js +7 -8
  1185. package/dist/node_modules/lodash-es/_getAllKeysIn.js +7 -8
  1186. package/dist/node_modules/lodash-es/_getMapData.js +5 -6
  1187. package/dist/node_modules/lodash-es/_getMatchData.js +7 -8
  1188. package/dist/node_modules/lodash-es/_getNative.js +7 -8
  1189. package/dist/node_modules/lodash-es/_getPrototype.js +3 -5
  1190. package/dist/node_modules/lodash-es/_getRawTag.js +9 -10
  1191. package/dist/node_modules/lodash-es/_getSymbols.js +7 -9
  1192. package/dist/node_modules/lodash-es/_getSymbolsIn.js +8 -10
  1193. package/dist/node_modules/lodash-es/_getTag.js +19 -21
  1194. package/dist/node_modules/lodash-es/_getValue.js +3 -4
  1195. package/dist/node_modules/lodash-es/_hasPath.js +12 -13
  1196. package/dist/node_modules/lodash-es/_hasUnicode.js +5 -6
  1197. package/dist/node_modules/lodash-es/_hashClear.js +5 -6
  1198. package/dist/node_modules/lodash-es/_hashDelete.js +4 -5
  1199. package/dist/node_modules/lodash-es/_hashGet.js +8 -9
  1200. package/dist/node_modules/lodash-es/_hashHas.js +6 -7
  1201. package/dist/node_modules/lodash-es/_hashSet.js +6 -7
  1202. package/dist/node_modules/lodash-es/_initCloneArray.js +5 -6
  1203. package/dist/node_modules/lodash-es/_initCloneByTag.js +28 -29
  1204. package/dist/node_modules/lodash-es/_initCloneObject.js +7 -8
  1205. package/dist/node_modules/lodash-es/_isFlattenable.js +8 -9
  1206. package/dist/node_modules/lodash-es/_isIndex.js +5 -6
  1207. package/dist/node_modules/lodash-es/_isIterateeCall.js +9 -10
  1208. package/dist/node_modules/lodash-es/_isKey.js +8 -9
  1209. package/dist/node_modules/lodash-es/_isKeyable.js +3 -4
  1210. package/dist/node_modules/lodash-es/_isMasked.js +8 -9
  1211. package/dist/node_modules/lodash-es/_isPrototype.js +5 -6
  1212. package/dist/node_modules/lodash-es/_isStrictComparable.js +5 -6
  1213. package/dist/node_modules/lodash-es/_listCacheClear.js +3 -4
  1214. package/dist/node_modules/lodash-es/_listCacheDelete.js +7 -8
  1215. package/dist/node_modules/lodash-es/_listCacheGet.js +5 -6
  1216. package/dist/node_modules/lodash-es/_listCacheHas.js +5 -6
  1217. package/dist/node_modules/lodash-es/_listCacheSet.js +5 -6
  1218. package/dist/node_modules/lodash-es/_mapCacheClear.js +9 -10
  1219. package/dist/node_modules/lodash-es/_mapCacheDelete.js +6 -7
  1220. package/dist/node_modules/lodash-es/_mapCacheGet.js +5 -6
  1221. package/dist/node_modules/lodash-es/_mapCacheHas.js +5 -6
  1222. package/dist/node_modules/lodash-es/_mapCacheSet.js +5 -6
  1223. package/dist/node_modules/lodash-es/_mapToArray.js +3 -4
  1224. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +3 -4
  1225. package/dist/node_modules/lodash-es/_memoizeCapped.js +7 -8
  1226. package/dist/node_modules/lodash-es/_nativeCreate.js +3 -5
  1227. package/dist/node_modules/lodash-es/_nativeKeys.js +3 -5
  1228. package/dist/node_modules/lodash-es/_nativeKeysIn.js +3 -4
  1229. package/dist/node_modules/lodash-es/_nodeUtil.js +4 -6
  1230. package/dist/node_modules/lodash-es/_objectToString.js +5 -6
  1231. package/dist/node_modules/lodash-es/_overArg.js +3 -4
  1232. package/dist/node_modules/lodash-es/_overRest.js +8 -9
  1233. package/dist/node_modules/lodash-es/_root.js +3 -5
  1234. package/dist/node_modules/lodash-es/_safeGet.js +3 -4
  1235. package/dist/node_modules/lodash-es/_setCacheAdd.js +5 -6
  1236. package/dist/node_modules/lodash-es/_setCacheHas.js +3 -4
  1237. package/dist/node_modules/lodash-es/_setToArray.js +3 -4
  1238. package/dist/node_modules/lodash-es/_setToString.js +4 -6
  1239. package/dist/node_modules/lodash-es/_shortOut.js +6 -7
  1240. package/dist/node_modules/lodash-es/_stackClear.js +5 -6
  1241. package/dist/node_modules/lodash-es/_stackDelete.js +3 -4
  1242. package/dist/node_modules/lodash-es/_stackGet.js +3 -4
  1243. package/dist/node_modules/lodash-es/_stackHas.js +3 -4
  1244. package/dist/node_modules/lodash-es/_stackSet.js +10 -11
  1245. package/dist/node_modules/lodash-es/_strictIndexOf.js +3 -4
  1246. package/dist/node_modules/lodash-es/_stringSize.js +7 -8
  1247. package/dist/node_modules/lodash-es/_stringToPath.js +5 -7
  1248. package/dist/node_modules/lodash-es/_toKey.js +7 -8
  1249. package/dist/node_modules/lodash-es/_toSource.js +7 -8
  1250. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +5 -6
  1251. package/dist/node_modules/lodash-es/_unicodeSize.js +16 -17
  1252. package/dist/node_modules/lodash-es/clone.js +6 -7
  1253. package/dist/node_modules/lodash-es/cloneDeep.js +6 -7
  1254. package/dist/node_modules/lodash-es/constant.js +3 -4
  1255. package/dist/node_modules/lodash-es/defaults.js +11 -13
  1256. package/dist/node_modules/lodash-es/eq.js +3 -4
  1257. package/dist/node_modules/lodash-es/filter.js +8 -9
  1258. package/dist/node_modules/lodash-es/find.js +4 -6
  1259. package/dist/node_modules/lodash-es/findIndex.js +9 -10
  1260. package/dist/node_modules/lodash-es/flatMap.js +6 -7
  1261. package/dist/node_modules/lodash-es/flatten.js +5 -6
  1262. package/dist/node_modules/lodash-es/forEach.js +8 -9
  1263. package/dist/node_modules/lodash-es/forIn.js +7 -8
  1264. package/dist/node_modules/lodash-es/forOwn.js +6 -7
  1265. package/dist/node_modules/lodash-es/get.js +5 -6
  1266. package/dist/node_modules/lodash-es/has.js +6 -7
  1267. package/dist/node_modules/lodash-es/hasIn.js +6 -7
  1268. package/dist/node_modules/lodash-es/identity.js +3 -4
  1269. package/dist/node_modules/lodash-es/isArguments.js +6 -8
  1270. package/dist/node_modules/lodash-es/isArray.js +2 -4
  1271. package/dist/node_modules/lodash-es/isArrayLike.js +6 -7
  1272. package/dist/node_modules/lodash-es/isArrayLikeObject.js +6 -7
  1273. package/dist/node_modules/lodash-es/isBuffer.js +4 -6
  1274. package/dist/node_modules/lodash-es/isEmpty.js +17 -18
  1275. package/dist/node_modules/lodash-es/isFunction.js +9 -10
  1276. package/dist/node_modules/lodash-es/isLength.js +5 -6
  1277. package/dist/node_modules/lodash-es/isMap.js +5 -7
  1278. package/dist/node_modules/lodash-es/isObject.js +3 -4
  1279. package/dist/node_modules/lodash-es/isObjectLike.js +3 -4
  1280. package/dist/node_modules/lodash-es/isPlainObject.js +12 -13
  1281. package/dist/node_modules/lodash-es/isSet.js +5 -7
  1282. package/dist/node_modules/lodash-es/isString.js +8 -9
  1283. package/dist/node_modules/lodash-es/isSymbol.js +7 -8
  1284. package/dist/node_modules/lodash-es/isTypedArray.js +5 -7
  1285. package/dist/node_modules/lodash-es/isUndefined.js +3 -4
  1286. package/dist/node_modules/lodash-es/keys.js +7 -8
  1287. package/dist/node_modules/lodash-es/keysIn.js +7 -8
  1288. package/dist/node_modules/lodash-es/last.js +3 -4
  1289. package/dist/node_modules/lodash-es/map.js +8 -9
  1290. package/dist/node_modules/lodash-es/mapValues.js +8 -9
  1291. package/dist/node_modules/lodash-es/max.js +7 -8
  1292. package/dist/node_modules/lodash-es/memoize.js +8 -9
  1293. package/dist/node_modules/lodash-es/merge.js +5 -7
  1294. package/dist/node_modules/lodash-es/min.js +7 -8
  1295. package/dist/node_modules/lodash-es/minBy.js +7 -8
  1296. package/dist/node_modules/lodash-es/noop.js +3 -4
  1297. package/dist/node_modules/lodash-es/now.js +4 -6
  1298. package/dist/node_modules/lodash-es/pick.js +5 -7
  1299. package/dist/node_modules/lodash-es/property.js +8 -9
  1300. package/dist/node_modules/lodash-es/range.js +3 -5
  1301. package/dist/node_modules/lodash-es/reduce.js +10 -11
  1302. package/dist/node_modules/lodash-es/size.js +12 -13
  1303. package/dist/node_modules/lodash-es/sortBy.js +7 -9
  1304. package/dist/node_modules/lodash-es/stubArray.js +3 -4
  1305. package/dist/node_modules/lodash-es/stubFalse.js +3 -4
  1306. package/dist/node_modules/lodash-es/toFinite.js +6 -7
  1307. package/dist/node_modules/lodash-es/toInteger.js +5 -6
  1308. package/dist/node_modules/lodash-es/toNumber.js +13 -14
  1309. package/dist/node_modules/lodash-es/toPlainObject.js +6 -7
  1310. package/dist/node_modules/lodash-es/toString.js +5 -6
  1311. package/dist/node_modules/lodash-es/union.js +7 -9
  1312. package/dist/node_modules/lodash-es/uniqBy.js +6 -7
  1313. package/dist/node_modules/lodash-es/uniqueId.js +7 -8
  1314. package/dist/node_modules/lodash-es/values.js +6 -7
  1315. package/dist/node_modules/lodash-es/zipObject.js +6 -7
  1316. package/dist/node_modules/longest-streak/index.js +2 -4
  1317. package/dist/node_modules/markdown-table/index.js +9 -11
  1318. package/dist/node_modules/marked/lib/marked.esm.js +685 -687
  1319. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +12 -14
  1320. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +2 -4
  1321. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +180 -182
  1322. package/dist/node_modules/mdast-util-gfm/lib/index.js +18 -20
  1323. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +67 -69
  1324. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +45 -47
  1325. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +13 -15
  1326. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +28 -30
  1327. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +14 -16
  1328. package/dist/node_modules/mdast-util-math/lib/index.js +13 -15
  1329. package/dist/node_modules/mdast-util-phrasing/lib/index.js +3 -5
  1330. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +9 -11
  1331. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +2 -4
  1332. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +2 -4
  1333. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -4
  1334. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +2 -4
  1335. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +2 -4
  1336. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +4 -6
  1337. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +2 -4
  1338. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +2 -4
  1339. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +6 -8
  1340. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +4 -6
  1341. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +53 -55
  1342. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +2 -4
  1343. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +6 -8
  1344. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +4 -6
  1345. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +13 -15
  1346. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +2 -4
  1347. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +2 -4
  1348. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +2 -4
  1349. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +2 -4
  1350. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +2 -4
  1351. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +2 -4
  1352. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +4 -6
  1353. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +4 -6
  1354. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +2 -4
  1355. package/dist/node_modules/mdast-util-to-hast/lib/index.js +6 -8
  1356. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +2 -4
  1357. package/dist/node_modules/mdast-util-to-hast/lib/state.js +59 -61
  1358. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +4 -6
  1359. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +4 -6
  1360. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +16 -18
  1361. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +4 -6
  1362. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +12 -14
  1363. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +6 -8
  1364. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +4 -6
  1365. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +4 -6
  1366. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +6 -8
  1367. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +41 -43
  1368. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +5 -7
  1369. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +4 -6
  1370. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +9 -11
  1371. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +5 -7
  1372. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +10 -12
  1373. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -4
  1374. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +4 -6
  1375. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +12 -14
  1376. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -4
  1377. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +5 -7
  1378. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -4
  1379. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -6
  1380. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -4
  1381. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -4
  1382. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -4
  1383. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -4
  1384. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -4
  1385. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -4
  1386. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -4
  1387. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -4
  1388. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -4
  1389. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +4 -6
  1390. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -4
  1391. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -8
  1392. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +4 -6
  1393. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +4 -6
  1394. package/dist/node_modules/mdast-util-to-string/lib/index.js +12 -14
  1395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +374 -378
  1396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +1347 -1349
  1397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AHTNJAMY.js +549 -555
  1398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +38 -40
  1399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +7 -9
  1400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +4 -6
  1401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js +198 -204
  1402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +5 -7
  1403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +2345 -2347
  1404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +253 -257
  1405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +20 -22
  1406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +35 -37
  1407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +15 -17
  1408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +344 -346
  1409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -5
  1410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +718 -746
  1411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +588 -594
  1412. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +4 -8
  1413. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +204 -206
  1414. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +37 -39
  1415. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +891 -893
  1416. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +37 -39
  1417. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +13 -15
  1418. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +9 -11
  1419. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +9 -11
  1420. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +114 -116
  1421. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +188 -190
  1422. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +70 -72
  1423. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +185 -189
  1424. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +154 -156
  1425. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +72 -76
  1426. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.js +75 -79
  1427. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.js +896 -900
  1428. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +685 -687
  1429. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +569 -571
  1430. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +15 -17
  1431. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +304 -308
  1432. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +377 -379
  1433. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-6JOO6SKY.js +114 -116
  1434. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.js +87 -91
  1435. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +94 -96
  1436. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js +273 -279
  1437. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.js +59 -63
  1438. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +202 -212
  1439. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +564 -568
  1440. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +155 -157
  1441. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +9 -11
  1442. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +559 -561
  1443. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +370 -372
  1444. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +450 -454
  1445. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +658 -680
  1446. package/dist/node_modules/mermaid/dist/mermaid.core.js +430 -434
  1447. package/dist/node_modules/micromark/lib/constructs.js +79 -80
  1448. package/dist/node_modules/micromark/lib/create-tokenizer.js +12 -14
  1449. package/dist/node_modules/micromark/lib/initialize/content.js +7 -9
  1450. package/dist/node_modules/micromark/lib/initialize/document.js +14 -15
  1451. package/dist/node_modules/micromark/lib/initialize/flow.js +7 -9
  1452. package/dist/node_modules/micromark/lib/initialize/text.js +6 -8
  1453. package/dist/node_modules/micromark/lib/parse.js +18 -20
  1454. package/dist/node_modules/micromark/lib/postprocess.js +4 -6
  1455. package/dist/node_modules/micromark/lib/preprocess.js +4 -6
  1456. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +18 -20
  1457. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +15 -17
  1458. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +9 -11
  1459. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +13 -15
  1460. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +6 -8
  1461. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +14 -16
  1462. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +21 -22
  1463. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +15 -16
  1464. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +11 -13
  1465. package/dist/node_modules/micromark-core-commonmark/lib/content.js +17 -18
  1466. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +29 -30
  1467. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +6 -8
  1468. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +13 -15
  1469. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +67 -68
  1470. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +64 -66
  1471. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +111 -112
  1472. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +6 -8
  1473. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +6 -8
  1474. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +6 -8
  1475. package/dist/node_modules/micromark-core-commonmark/lib/list.js +31 -32
  1476. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +10 -12
  1477. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +9 -11
  1478. package/dist/node_modules/micromark-extension-gfm/index.js +14 -16
  1479. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +120 -122
  1480. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +31 -33
  1481. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +9 -11
  1482. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +4 -6
  1483. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -4
  1484. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +34 -36
  1485. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +18 -20
  1486. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +20 -21
  1487. package/dist/node_modules/micromark-extension-math/lib/math-text.js +9 -11
  1488. package/dist/node_modules/micromark-extension-math/lib/syntax.js +6 -8
  1489. package/dist/node_modules/micromark-factory-destination/index.js +8 -10
  1490. package/dist/node_modules/micromark-factory-label/index.js +5 -7
  1491. package/dist/node_modules/micromark-factory-space/index.js +5 -7
  1492. package/dist/node_modules/micromark-factory-title/index.js +6 -8
  1493. package/dist/node_modules/micromark-factory-whitespace/index.js +5 -7
  1494. package/dist/node_modules/micromark-util-character/index.js +12 -14
  1495. package/dist/node_modules/micromark-util-chunked/index.js +4 -6
  1496. package/dist/node_modules/micromark-util-classify-character/index.js +5 -7
  1497. package/dist/node_modules/micromark-util-combine-extensions/index.js +11 -13
  1498. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -4
  1499. package/dist/node_modules/micromark-util-decode-string/index.js +9 -11
  1500. package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -4
  1501. package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -4
  1502. package/dist/node_modules/micromark-util-resolve-all/index.js +2 -4
  1503. package/dist/node_modules/micromark-util-sanitize-uri/index.js +4 -6
  1504. package/dist/node_modules/micromark-util-subtokenize/index.js +8 -10
  1505. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +8 -10
  1506. package/dist/node_modules/motion/dist/es/react.js +2 -2
  1507. package/dist/node_modules/nanoid/index.browser.js +4 -6
  1508. package/dist/node_modules/nanoid/url-alphabet/index.js +2 -4
  1509. package/dist/node_modules/property-information/index.js +23 -25
  1510. package/dist/node_modules/property-information/lib/aria.js +39 -41
  1511. package/dist/node_modules/property-information/lib/find.js +16 -18
  1512. package/dist/node_modules/property-information/lib/hast-to-react.js +2 -4
  1513. package/dist/node_modules/property-information/lib/html.js +94 -96
  1514. package/dist/node_modules/property-information/lib/normalize.js +2 -4
  1515. package/dist/node_modules/property-information/lib/svg.js +77 -79
  1516. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +4 -6
  1517. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +2 -4
  1518. package/dist/node_modules/property-information/lib/util/create.js +8 -10
  1519. package/dist/node_modules/property-information/lib/util/defined-info.js +11 -13
  1520. package/dist/node_modules/property-information/lib/util/info.js +3 -5
  1521. package/dist/node_modules/property-information/lib/util/merge.js +4 -6
  1522. package/dist/node_modules/property-information/lib/util/schema.js +3 -5
  1523. package/dist/node_modules/property-information/lib/util/types.js +14 -15
  1524. package/dist/node_modules/property-information/lib/xlink.js +3 -5
  1525. package/dist/node_modules/property-information/lib/xml.js +3 -5
  1526. package/dist/node_modules/property-information/lib/xmlns.js +5 -7
  1527. package/dist/node_modules/rehype-harden/dist/index.js +45 -47
  1528. package/dist/node_modules/rehype-katex/lib/index.js +23 -25
  1529. package/dist/node_modules/rehype-raw/lib/index.js +4 -6
  1530. package/dist/node_modules/rehype-sanitize/lib/index.js +4 -6
  1531. package/dist/node_modules/remark-gfm/lib/index.js +7 -9
  1532. package/dist/node_modules/remark-math/lib/index.js +7 -9
  1533. package/dist/node_modules/remark-parse/lib/index.js +4 -6
  1534. package/dist/node_modules/remark-rehype/lib/index.js +5 -7
  1535. package/dist/node_modules/remend/dist/index.js +324 -326
  1536. package/dist/node_modules/roughjs/bundled/rough.esm.js +875 -877
  1537. package/dist/node_modules/shiki/dist/bundle-full.js +12 -13
  1538. package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +8 -10
  1539. package/dist/node_modules/shiki/dist/engine-oniguruma.js +5 -7
  1540. package/dist/node_modules/shiki/dist/langs-bundle-full-DfKZStlK.js +5 -7
  1541. package/dist/node_modules/shiki/dist/themes.js +3 -5
  1542. package/dist/node_modules/shiki/dist/wasm.js +2 -2
  1543. package/dist/node_modules/space-separated-tokens/index.js +3 -5
  1544. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +699 -701
  1545. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +8 -10
  1546. package/dist/node_modules/streamdown/dist/index.js +1 -1
  1547. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +2 -2
  1548. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +712 -709
  1549. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +2 -4
  1550. package/dist/node_modules/stringify-entities/lib/core.js +16 -18
  1551. package/dist/node_modules/stringify-entities/lib/index.js +5 -7
  1552. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +8 -10
  1553. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +4 -6
  1554. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +4 -6
  1555. package/dist/node_modules/stringify-entities/lib/util/to-named.js +12 -14
  1556. package/dist/node_modules/style-to-js/cjs/index.js +7 -9
  1557. package/dist/node_modules/style-to-js/cjs/utilities.js +4 -6
  1558. package/dist/node_modules/style-to-object/cjs/index.js +6 -8
  1559. package/dist/node_modules/stylis/src/Enum.js +2 -4
  1560. package/dist/node_modules/stylis/src/Parser.js +36 -38
  1561. package/dist/node_modules/stylis/src/Serializer.js +15 -17
  1562. package/dist/node_modules/stylis/src/Tokenizer.js +51 -53
  1563. package/dist/node_modules/stylis/src/Utility.js +15 -17
  1564. package/dist/node_modules/trim-lines/index.js +8 -10
  1565. package/dist/node_modules/trough/lib/index.js +4 -6
  1566. package/dist/node_modules/ts-dedent/esm/index.js +2 -4
  1567. package/dist/node_modules/unified/lib/callable-instance.js +2 -4
  1568. package/dist/node_modules/unified/lib/index.js +101 -102
  1569. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -4
  1570. package/dist/node_modules/unist-util-find-after/lib/index.js +4 -6
  1571. package/dist/node_modules/unist-util-is/lib/index.js +29 -31
  1572. package/dist/node_modules/unist-util-position/lib/index.js +5 -7
  1573. package/dist/node_modules/unist-util-stringify-position/lib/index.js +8 -10
  1574. package/dist/node_modules/unist-util-visit/lib/index.js +4 -6
  1575. package/dist/node_modules/unist-util-visit-parents/lib/color.js +2 -4
  1576. package/dist/node_modules/unist-util-visit-parents/lib/index.js +20 -21
  1577. package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -3
  1578. package/dist/node_modules/uuid/dist/esm-browser/rng.js +6 -8
  1579. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +5 -7
  1580. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -10
  1581. package/dist/node_modules/vaul/dist/index.js +274 -276
  1582. package/dist/node_modules/vfile/lib/index.js +42 -44
  1583. package/dist/node_modules/vfile/lib/minpath.browser.js +20 -22
  1584. package/dist/node_modules/vfile/lib/minproc.browser.js +3 -5
  1585. package/dist/node_modules/vfile/lib/minurl.browser.js +6 -8
  1586. package/dist/node_modules/vfile/lib/minurl.shared.js +2 -4
  1587. package/dist/node_modules/vfile-location/lib/index.js +5 -7
  1588. package/dist/node_modules/vfile-message/lib/index.js +5 -7
  1589. package/dist/node_modules/vscode-jsonrpc/browser.js +6 -8
  1590. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +9 -11
  1591. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +6 -8
  1592. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +26 -28
  1593. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +15 -17
  1594. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +11 -13
  1595. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +4 -6
  1596. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +6 -8
  1597. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +4 -6
  1598. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +4 -6
  1599. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +4 -6
  1600. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +9 -11
  1601. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +29 -31
  1602. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +6 -8
  1603. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +4 -6
  1604. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +6 -8
  1605. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +6 -8
  1606. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +8 -10
  1607. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +21 -23
  1608. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +6 -8
  1609. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +6 -8
  1610. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +6 -8
  1611. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +6 -8
  1612. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +6 -8
  1613. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +6 -8
  1614. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +12 -14
  1615. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -8
  1616. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +6 -8
  1617. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +6 -8
  1618. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +6 -8
  1619. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +6 -8
  1620. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +6 -8
  1621. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +53 -55
  1622. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +6 -8
  1623. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +6 -8
  1624. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +8 -10
  1625. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +10 -12
  1626. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +6 -8
  1627. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +6 -8
  1628. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +6 -8
  1629. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +6 -8
  1630. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +6 -8
  1631. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +6 -8
  1632. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +4 -6
  1633. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +19 -21
  1634. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +847 -849
  1635. package/dist/node_modules/vscode-uri/lib/esm/index.js +4 -6
  1636. package/dist/node_modules/web-namespaces/index.js +2 -4
  1637. package/dist/node_modules/zwitch/index.js +5 -7
  1638. package/dist/packages/contracts/dist/enums/index.js +12 -14
  1639. package/dist/packages/contracts/dist/enums/registry.enum.js +4 -6
  1640. package/dist/packages/contracts/dist/enums/sort-order.enum.js +4 -6
  1641. package/dist/packages/contracts/dist/enums/user-type.enum.js +4 -6
  1642. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +4 -6
  1643. package/dist/pages/DashboardPage.js +78 -59
  1644. package/dist/pages/DebugPage.js +17 -12
  1645. package/dist/pages/DebugWorkflowDetailsPage.js +105 -91
  1646. package/dist/pages/DebugWorkflowsPage.js +162 -125
  1647. package/dist/pages/EmbedWorkbenchPage.js +63 -48
  1648. package/dist/pages/PreviewWorkbenchPage.js +370 -271
  1649. package/dist/pages/RunsListPage.js +46 -43
  1650. package/dist/pages/RunsPage.js +33 -31
  1651. package/dist/pages/StudioLandingPage.js +132 -97
  1652. package/dist/pages/WorkbenchPage.js +65 -57
  1653. package/dist/pages/WorkflowDebugPage.js +96 -74
  1654. package/dist/pages/WorkspacePage.js +88 -72
  1655. package/dist/pages/WorkspaceRunsPage.js +75 -43
  1656. package/dist/pages/WorkspacesPage.js +17 -22
  1657. package/dist/providers/ComponentOverridesProvider.js +12 -9
  1658. package/dist/providers/InvalidationEventsProvider.js +35 -33
  1659. package/dist/providers/QueryProvider.js +18 -14
  1660. package/dist/providers/SseProvider.js +29 -28
  1661. package/dist/providers/StudioPreferencesProvider.js +54 -0
  1662. package/dist/providers/StudioProvider.js +19 -14
  1663. package/dist/routing/LocalRouter.js +9 -6
  1664. package/dist/services/createApiClient.js +5 -7
  1665. package/dist/services/eventEmitter.js +2 -3
  1666. package/dist/services/index.js +2 -2
  1667. package/dist/types/ai.types.js +5 -7
  1668. package/package.json +8 -8
  1669. package/dist/_virtual/_rolldown/runtime.js +0 -20
  1670. package/dist/features/documents/renderers/SecretInputRenderer.js +0 -89
  1671. package/dist/features/workbench/components/RemoteFileTabsBar.js +0 -19
  1672. package/dist/features/workbench/components/RemoteFileTree.js +0 -59
  1673. package/dist/features/workbench/components/WorkbenchFilesPanel.js +0 -56
  1674. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +0 -40
  1675. package/dist/features/workbench/components/WorkbenchFlowPanel.js +0 -38
  1676. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +0 -153
  1677. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +0 -145
  1678. package/dist/frontend/studio/node_modules/lodash/_Symbol.js +0 -9
  1679. package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +0 -15
  1680. package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +0 -13
  1681. package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +0 -8
  1682. package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +0 -19
  1683. package/dist/frontend/studio/node_modules/lodash/_objectToString.js +0 -12
  1684. package/dist/frontend/studio/node_modules/lodash/_root.js +0 -10
  1685. package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +0 -13
  1686. package/dist/frontend/studio/node_modules/lodash/isObject.js +0 -12
  1687. package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +0 -11
  1688. package/dist/frontend/studio/node_modules/lodash/isSymbol.js +0 -14
  1689. package/dist/frontend/studio/node_modules/lodash/now.js +0 -12
  1690. package/dist/frontend/studio/node_modules/lodash/toNumber.js +0 -24
  1691. package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +0 -1867
@@ -1,15 +1,14 @@
1
- import { __name as e, log as t } from "./chunk-AGHRB4JF.js";
2
- import { assignWithDepth_default as n, calculateMathMLDimensions as r, clear as i, common_default as a, configureSvgSize as o, getAccDescription as s, getAccTitle as c, getConfig as l, getConfig2 as u, getDiagramTitle as d, getUrl as f, hasKatex as p, renderKatexSanitized as m, sanitizeText as h, setAccDescription as g, setAccTitle as _, setConfig2 as v, setDiagramTitle as y } from "./chunk-ICPOFSXX.js";
3
- import b from "../../../../d3-selection/src/select.js";
1
+ import { __name, log } from "./chunk-AGHRB4JF.js";
2
+ import { assignWithDepth_default, calculateMathMLDimensions, clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, getUrl, hasKatex, renderKatexSanitized, sanitizeText, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-ICPOFSXX.js";
3
+ import select_default from "../../../../d3-selection/src/select.js";
4
4
  import "../../../../d3/src/index.js";
5
- import { JSON_SCHEMA as x, load as S } from "./chunk-XPW4576I.js";
6
- import { require_dist as C } from "../../../../@braintree/sanitize-url/dist/index.js";
7
- import { parseFontSize as w, utils_default as T } from "./chunk-5PVQY5BW.js";
8
- import { drawBackgroundRect as E, drawEmbeddedImage as D, drawImage as O, drawRect as k, getNoteRect as A, getTextObj as j } from "./chunk-YZCP3GAM.js";
9
- import { ImperativeState as M } from "./chunk-QZHKN3VN.js";
10
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.mjs
11
- var N = C(), P = (function() {
12
- var t = /* @__PURE__ */ e(function(e, t, n, r) {
5
+ import { JSON_SCHEMA, load } from "./chunk-XPW4576I.js";
6
+ import { require_dist } from "../../../../@braintree/sanitize-url/dist/index.js";
7
+ import { ZERO_WIDTH_SPACE, parseFontSize, utils_default } from "./chunk-5PVQY5BW.js";
8
+ import { drawBackgroundRect, drawEmbeddedImage, drawImage, drawRect, getNoteRect, getTextObj } from "./chunk-YZCP3GAM.js";
9
+ import { ImperativeState } from "./chunk-QZHKN3VN.js";
10
+ var import_dist = require_dist(), parser = (function() {
11
+ var t = /* @__PURE__ */ __name(function(e, t, n, r) {
13
12
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
14
13
  return n;
15
14
  }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
@@ -48,14 +47,14 @@ var N = C(), P = (function() {
48
47
  63,
49
48
  64,
50
49
  73
51
- ], L = [1, 74], ee = [1, 80], R = [1, 81], te = [1, 82], ne = [1, 83], z = [1, 84], B = [1, 85], V = [1, 86], re = [1, 87], H = [1, 88], U = [1, 89], W = [1, 90], ie = [1, 91], ae = [1, 92], oe = [1, 93], G = [1, 94], se = [1, 95], K = [1, 96], ce = [1, 97], le = [1, 98], ue = [1, 99], de = [1, 100], fe = [1, 101], pe = [1, 102], me = [1, 103], he = [1, 104], ge = [1, 105], _e = [2, 78], ve = [
50
+ ], L = [1, 74], R = [1, 80], z = [1, 81], B = [1, 82], V = [1, 83], Be = [1, 84], Ve = [1, 85], He = [1, 86], Ue = [1, 87], We = [1, 88], Ge = [1, 89], Ke = [1, 90], qe = [1, 91], Je = [1, 92], Ye = [1, 93], H = [1, 94], U = [1, 95], W = [1, 96], Xe = [1, 97], Ze = [1, 98], Qe = [1, 99], $e = [1, 100], et = [1, 101], G = [1, 102], tt = [1, 103], nt = [1, 104], rt = [1, 105], it = [2, 78], K = [
52
51
  4,
53
52
  5,
54
53
  17,
55
54
  51,
56
55
  53,
57
56
  54
58
- ], ye = [
57
+ ], q = [
59
58
  4,
60
59
  5,
61
60
  10,
@@ -87,7 +86,7 @@ var N = C(), P = (function() {
87
86
  63,
88
87
  64,
89
88
  73
90
- ], be = [
89
+ ], at = [
91
90
  4,
92
91
  5,
93
92
  10,
@@ -120,7 +119,7 @@ var N = C(), P = (function() {
120
119
  63,
121
120
  64,
122
121
  73
123
- ], xe = [
122
+ ], J = [
124
123
  4,
125
124
  5,
126
125
  10,
@@ -153,7 +152,7 @@ var N = C(), P = (function() {
153
152
  63,
154
153
  64,
155
154
  73
156
- ], Se = [
155
+ ], ot = [
157
156
  4,
158
157
  5,
159
158
  10,
@@ -186,13 +185,13 @@ var N = C(), P = (function() {
186
185
  63,
187
186
  64,
188
187
  73
189
- ], Ce = [5, 52], q = [
188
+ ], Y = [5, 52], X = [
190
189
  70,
191
190
  71,
192
191
  72,
193
192
  73
194
- ], J = [1, 151], we = {
195
- trace: /* @__PURE__ */ e(function() {}, "trace"),
193
+ ], Z = [1, 151], Q = {
194
+ trace: /* @__PURE__ */ __name(function() {}, "trace"),
196
195
  yy: {},
197
196
  symbols_: {
198
197
  error: 2,
@@ -490,7 +489,7 @@ var N = C(), P = (function() {
490
489
  [69, 1],
491
490
  [58, 1]
492
491
  ],
493
- performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
492
+ performAction: /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
494
493
  var s = a.length - 1;
495
494
  switch (i) {
496
495
  case 3: return r.apply(a[s]), a[s];
@@ -1181,32 +1180,32 @@ var N = C(), P = (function() {
1181
1180
  {
1182
1181
  69: 78,
1183
1182
  72: [1, 79],
1184
- 78: ee,
1185
- 79: R,
1186
- 80: te,
1187
- 81: ne,
1188
- 82: z,
1189
- 83: B,
1190
- 84: V,
1191
- 85: re,
1192
- 86: H,
1193
- 87: U,
1194
- 88: W,
1195
- 89: ie,
1196
- 90: ae,
1197
- 91: oe,
1198
- 92: G,
1199
- 93: se,
1200
- 94: K,
1201
- 95: ce,
1202
- 96: le,
1203
- 97: ue,
1204
- 98: de,
1205
- 99: fe,
1206
- 100: pe,
1207
- 101: me,
1208
- 102: he,
1209
- 103: ge
1183
+ 78: R,
1184
+ 79: z,
1185
+ 80: B,
1186
+ 81: V,
1187
+ 82: Be,
1188
+ 83: Ve,
1189
+ 84: He,
1190
+ 85: Ue,
1191
+ 86: We,
1192
+ 87: Ge,
1193
+ 88: Ke,
1194
+ 89: qe,
1195
+ 90: Je,
1196
+ 91: Ye,
1197
+ 92: H,
1198
+ 93: U,
1199
+ 94: W,
1200
+ 95: Xe,
1201
+ 96: Ze,
1202
+ 97: Qe,
1203
+ 98: $e,
1204
+ 99: et,
1205
+ 100: G,
1206
+ 101: tt,
1207
+ 102: nt,
1208
+ 103: rt
1210
1209
  },
1211
1210
  {
1212
1211
  57: 106,
@@ -1261,10 +1260,10 @@ var N = C(), P = (function() {
1261
1260
  102,
1262
1261
  103,
1263
1262
  104
1264
- ], _e),
1263
+ ], it),
1265
1264
  t(I, [2, 6]),
1266
1265
  t(I, [2, 16]),
1267
- t(ve, [2, 10], { 11: 114 }),
1266
+ t(K, [2, 10], { 11: 114 }),
1268
1267
  t(I, [2, 18]),
1269
1268
  {
1270
1269
  5: [1, 116],
@@ -1281,26 +1280,26 @@ var N = C(), P = (function() {
1281
1280
  t(I, [2, 29]),
1282
1281
  t(I, [2, 32]),
1283
1282
  t(I, [2, 33]),
1284
- t(ye, a, { 7: 120 }),
1285
- t(ye, a, { 7: 121 }),
1286
- t(ye, a, { 7: 122 }),
1287
- t(be, a, {
1283
+ t(q, a, { 7: 120 }),
1284
+ t(q, a, { 7: 121 }),
1285
+ t(q, a, { 7: 122 }),
1286
+ t(at, a, {
1288
1287
  41: 123,
1289
1288
  7: 124
1290
1289
  }),
1291
- t(xe, a, {
1290
+ t(J, a, {
1292
1291
  43: 125,
1293
1292
  7: 126
1294
1293
  }),
1295
- t(xe, a, {
1294
+ t(J, a, {
1296
1295
  7: 126,
1297
1296
  43: 127
1298
1297
  }),
1299
- t(Se, a, {
1298
+ t(ot, a, {
1300
1299
  46: 128,
1301
1300
  7: 129
1302
1301
  }),
1303
- t(ye, a, { 7: 130 }),
1302
+ t(q, a, { 7: 130 }),
1304
1303
  {
1305
1304
  5: [1, 132],
1306
1305
  52: [1, 131]
@@ -1309,7 +1308,7 @@ var N = C(), P = (function() {
1309
1308
  5: [1, 134],
1310
1309
  52: [1, 133]
1311
1310
  },
1312
- t(Ce, _e, {
1311
+ t(Y, it, {
1313
1312
  74: 135,
1314
1313
  75: [1, 136]
1315
1314
  }),
@@ -1331,59 +1330,59 @@ var N = C(), P = (function() {
1331
1330
  },
1332
1331
  {
1333
1332
  69: 146,
1334
- 78: ee,
1335
- 79: R,
1336
- 80: te,
1337
- 81: ne,
1338
- 82: z,
1339
- 83: B,
1340
- 84: V,
1341
- 85: re,
1342
- 86: H,
1343
- 87: U,
1344
- 88: W,
1345
- 89: ie,
1346
- 90: ae,
1347
- 91: oe,
1348
- 92: G,
1349
- 93: se,
1350
- 94: K,
1351
- 95: ce,
1352
- 96: le,
1353
- 97: ue,
1354
- 98: de,
1355
- 99: fe,
1356
- 100: pe,
1357
- 101: me,
1358
- 102: he,
1359
- 103: ge
1333
+ 78: R,
1334
+ 79: z,
1335
+ 80: B,
1336
+ 81: V,
1337
+ 82: Be,
1338
+ 83: Ve,
1339
+ 84: He,
1340
+ 85: Ue,
1341
+ 86: We,
1342
+ 87: Ge,
1343
+ 88: Ke,
1344
+ 89: qe,
1345
+ 90: Je,
1346
+ 91: Ye,
1347
+ 92: H,
1348
+ 93: U,
1349
+ 94: W,
1350
+ 95: Xe,
1351
+ 96: Ze,
1352
+ 97: Qe,
1353
+ 98: $e,
1354
+ 99: et,
1355
+ 100: G,
1356
+ 101: tt,
1357
+ 102: nt,
1358
+ 103: rt
1360
1359
  },
1361
- t(q, [2, 79]),
1362
- t(q, [2, 80]),
1363
- t(q, [2, 81]),
1364
- t(q, [2, 82]),
1365
- t(q, [2, 83]),
1366
- t(q, [2, 84]),
1367
- t(q, [2, 85]),
1368
- t(q, [2, 86]),
1369
- t(q, [2, 87]),
1370
- t(q, [2, 88]),
1371
- t(q, [2, 89]),
1372
- t(q, [2, 90]),
1373
- t(q, [2, 91]),
1374
- t(q, [2, 92]),
1375
- t(q, [2, 93]),
1376
- t(q, [2, 94]),
1377
- t(q, [2, 95]),
1378
- t(q, [2, 96]),
1379
- t(q, [2, 97]),
1380
- t(q, [2, 98]),
1381
- t(q, [2, 99]),
1382
- t(q, [2, 100]),
1383
- t(q, [2, 101]),
1384
- t(q, [2, 102]),
1385
- t(q, [2, 103]),
1386
- t(q, [2, 104]),
1360
+ t(X, [2, 79]),
1361
+ t(X, [2, 80]),
1362
+ t(X, [2, 81]),
1363
+ t(X, [2, 82]),
1364
+ t(X, [2, 83]),
1365
+ t(X, [2, 84]),
1366
+ t(X, [2, 85]),
1367
+ t(X, [2, 86]),
1368
+ t(X, [2, 87]),
1369
+ t(X, [2, 88]),
1370
+ t(X, [2, 89]),
1371
+ t(X, [2, 90]),
1372
+ t(X, [2, 91]),
1373
+ t(X, [2, 92]),
1374
+ t(X, [2, 93]),
1375
+ t(X, [2, 94]),
1376
+ t(X, [2, 95]),
1377
+ t(X, [2, 96]),
1378
+ t(X, [2, 97]),
1379
+ t(X, [2, 98]),
1380
+ t(X, [2, 99]),
1381
+ t(X, [2, 100]),
1382
+ t(X, [2, 101]),
1383
+ t(X, [2, 102]),
1384
+ t(X, [2, 103]),
1385
+ t(X, [2, 104]),
1387
1386
  {
1388
1387
  23: 147,
1389
1388
  73: F
@@ -1397,19 +1396,19 @@ var N = C(), P = (function() {
1397
1396
  { 73: [2, 69] },
1398
1397
  {
1399
1398
  58: 150,
1400
- 104: J
1399
+ 104: Z
1401
1400
  },
1402
1401
  {
1403
1402
  58: 152,
1404
- 104: J
1403
+ 104: Z
1405
1404
  },
1406
1405
  {
1407
1406
  58: 153,
1408
- 104: J
1407
+ 104: Z
1409
1408
  },
1410
1409
  {
1411
1410
  58: 154,
1412
- 104: J
1411
+ 104: Z
1413
1412
  },
1414
1413
  {
1415
1414
  4: [1, 157],
@@ -1738,7 +1737,7 @@ var N = C(), P = (function() {
1738
1737
  t(I, [2, 50]),
1739
1738
  { 16: [1, 173] },
1740
1739
  t(I, [2, 55]),
1741
- t(Ce, [2, 76]),
1740
+ t(Y, [2, 76]),
1742
1741
  { 76: [1, 174] },
1743
1742
  { 16: [1, 175] },
1744
1743
  t(I, [2, 52]),
@@ -1759,7 +1758,7 @@ var N = C(), P = (function() {
1759
1758
  },
1760
1759
  {
1761
1760
  58: 180,
1762
- 104: J
1761
+ 104: Z
1763
1762
  },
1764
1763
  {
1765
1764
  23: 181,
@@ -1768,11 +1767,11 @@ var N = C(), P = (function() {
1768
1767
  },
1769
1768
  {
1770
1769
  58: 183,
1771
- 104: J
1770
+ 104: Z
1772
1771
  },
1773
1772
  {
1774
1773
  58: 184,
1775
- 104: J
1774
+ 104: Z
1776
1775
  },
1777
1776
  {
1778
1777
  66: [1, 185],
@@ -1784,15 +1783,15 @@ var N = C(), P = (function() {
1784
1783
  { 5: [2, 62] },
1785
1784
  { 5: [2, 63] },
1786
1785
  t(I, [2, 17]),
1787
- t(ve, [2, 11]),
1786
+ t(K, [2, 11]),
1788
1787
  {
1789
1788
  13: 186,
1790
1789
  51: D,
1791
1790
  53: O,
1792
1791
  54: k
1793
1792
  },
1794
- t(ve, [2, 13]),
1795
- t(ve, [2, 14]),
1793
+ t(K, [2, 13]),
1794
+ t(K, [2, 14]),
1796
1795
  t(I, [2, 19]),
1797
1796
  t(I, [2, 35]),
1798
1797
  t(I, [2, 36]),
@@ -1812,20 +1811,20 @@ var N = C(), P = (function() {
1812
1811
  { 5: [1, 194] },
1813
1812
  {
1814
1813
  58: 195,
1815
- 104: J
1814
+ 104: Z
1816
1815
  },
1817
1816
  {
1818
1817
  58: 196,
1819
- 104: J
1818
+ 104: Z
1820
1819
  },
1821
1820
  {
1822
1821
  58: 197,
1823
- 104: J
1822
+ 104: Z
1824
1823
  },
1825
1824
  { 5: [2, 75] },
1826
1825
  {
1827
1826
  58: 198,
1828
- 104: J
1827
+ 104: Z
1829
1828
  },
1830
1829
  {
1831
1830
  23: 199,
@@ -1837,22 +1836,22 @@ var N = C(), P = (function() {
1837
1836
  23: 200,
1838
1837
  73: F
1839
1838
  },
1840
- t(ve, [2, 12]),
1841
- t(be, a, {
1839
+ t(K, [2, 12]),
1840
+ t(at, a, {
1842
1841
  7: 124,
1843
1842
  41: 201
1844
1843
  }),
1845
- t(xe, a, {
1844
+ t(J, a, {
1846
1845
  7: 126,
1847
1846
  43: 202
1848
1847
  }),
1849
- t(Se, a, {
1848
+ t(ot, a, {
1850
1849
  7: 129,
1851
1850
  46: 203
1852
1851
  }),
1853
1852
  t(I, [2, 49]),
1854
1853
  t(I, [2, 54]),
1855
- t(Ce, [2, 77]),
1854
+ t(Y, [2, 77]),
1856
1855
  t(I, [2, 51]),
1857
1856
  t(I, [2, 56]),
1858
1857
  { 5: [2, 70] },
@@ -1861,7 +1860,7 @@ var N = C(), P = (function() {
1861
1860
  { 5: [2, 73] },
1862
1861
  {
1863
1862
  58: 204,
1864
- 104: J
1863
+ 104: Z
1865
1864
  },
1866
1865
  { 104: [2, 66] },
1867
1866
  { 17: [2, 48] },
@@ -1892,14 +1891,14 @@ var N = C(), P = (function() {
1892
1891
  203: [2, 44],
1893
1892
  204: [2, 74]
1894
1893
  },
1895
- parseError: /* @__PURE__ */ e(function(e, t) {
1894
+ parseError: /* @__PURE__ */ __name(function(e, t) {
1896
1895
  if (t.recoverable) this.trace(e);
1897
1896
  else {
1898
1897
  var n = Error(e);
1899
1898
  throw n.hash = t, n;
1900
1899
  }
1901
1900
  }, "parseError"),
1902
- parse: /* @__PURE__ */ e(function(t) {
1901
+ parse: /* @__PURE__ */ __name(function(t) {
1903
1902
  var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1904
1903
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1905
1904
  h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
@@ -1910,12 +1909,12 @@ var N = C(), P = (function() {
1910
1909
  function b(e) {
1911
1910
  r.length -= 2 * e, a.length -= e, o.length -= e;
1912
1911
  }
1913
- e(b, "popStack");
1912
+ __name(b, "popStack");
1914
1913
  function x() {
1915
1914
  var e = i.pop() || h.lex() || p;
1916
1915
  return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1917
1916
  }
1918
- e(x, "lex");
1917
+ __name(x, "lex");
1919
1918
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1920
1919
  if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1921
1920
  var M = "";
@@ -1956,14 +1955,14 @@ var N = C(), P = (function() {
1956
1955
  return !0;
1957
1956
  }, "parse")
1958
1957
  };
1959
- we.lexer = /* @__PURE__ */ (function() {
1958
+ Q.lexer = /* @__PURE__ */ (function() {
1960
1959
  return {
1961
1960
  EOF: 1,
1962
- parseError: /* @__PURE__ */ e(function(e, t) {
1961
+ parseError: /* @__PURE__ */ __name(function(e, t) {
1963
1962
  if (this.yy.parser) this.yy.parser.parseError(e, t);
1964
1963
  else throw Error(e);
1965
1964
  }, "parseError"),
1966
- setInput: /* @__PURE__ */ e(function(e, t) {
1965
+ setInput: /* @__PURE__ */ __name(function(e, t) {
1967
1966
  return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1968
1967
  first_line: 1,
1969
1968
  first_column: 0,
@@ -1971,11 +1970,11 @@ var N = C(), P = (function() {
1971
1970
  last_column: 0
1972
1971
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1973
1972
  }, "setInput"),
1974
- input: /* @__PURE__ */ e(function() {
1973
+ input: /* @__PURE__ */ __name(function() {
1975
1974
  var e = this._input[0];
1976
1975
  return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1977
1976
  }, "input"),
1978
- unput: /* @__PURE__ */ e(function(e) {
1977
+ unput: /* @__PURE__ */ __name(function(e) {
1979
1978
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1980
1979
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1981
1980
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -1988,10 +1987,10 @@ var N = C(), P = (function() {
1988
1987
  last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1989
1988
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1990
1989
  }, "unput"),
1991
- more: /* @__PURE__ */ e(function() {
1990
+ more: /* @__PURE__ */ __name(function() {
1992
1991
  return this._more = !0, this;
1993
1992
  }, "more"),
1994
- reject: /* @__PURE__ */ e(function() {
1993
+ reject: /* @__PURE__ */ __name(function() {
1995
1994
  if (this.options.backtrack_lexer) this._backtrack = !0;
1996
1995
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1997
1996
  text: "",
@@ -2000,22 +1999,22 @@ var N = C(), P = (function() {
2000
1999
  });
2001
2000
  return this;
2002
2001
  }, "reject"),
2003
- less: /* @__PURE__ */ e(function(e) {
2002
+ less: /* @__PURE__ */ __name(function(e) {
2004
2003
  this.unput(this.match.slice(e));
2005
2004
  }, "less"),
2006
- pastInput: /* @__PURE__ */ e(function() {
2005
+ pastInput: /* @__PURE__ */ __name(function() {
2007
2006
  var e = this.matched.substr(0, this.matched.length - this.match.length);
2008
2007
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2009
2008
  }, "pastInput"),
2010
- upcomingInput: /* @__PURE__ */ e(function() {
2009
+ upcomingInput: /* @__PURE__ */ __name(function() {
2011
2010
  var e = this.match;
2012
2011
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2013
2012
  }, "upcomingInput"),
2014
- showPosition: /* @__PURE__ */ e(function() {
2013
+ showPosition: /* @__PURE__ */ __name(function() {
2015
2014
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
2016
2015
  return e + this.upcomingInput() + "\n" + t + "^";
2017
2016
  }, "showPosition"),
2018
- test_match: /* @__PURE__ */ e(function(e, t) {
2017
+ test_match: /* @__PURE__ */ __name(function(e, t) {
2019
2018
  var n, r, i;
2020
2019
  if (this.options.backtrack_lexer && (i = {
2021
2020
  yylineno: this.yylineno,
@@ -2048,7 +2047,7 @@ var N = C(), P = (function() {
2048
2047
  }
2049
2048
  return !1;
2050
2049
  }, "test_match"),
2051
- next: /* @__PURE__ */ e(function() {
2050
+ next: /* @__PURE__ */ __name(function() {
2052
2051
  if (this.done) return this.EOF;
2053
2052
  this._input || (this.done = !0);
2054
2053
  var e, t, n, r;
@@ -2068,29 +2067,29 @@ var N = C(), P = (function() {
2068
2067
  line: this.yylineno
2069
2068
  });
2070
2069
  }, "next"),
2071
- lex: /* @__PURE__ */ e(function() {
2070
+ lex: /* @__PURE__ */ __name(function() {
2072
2071
  return this.next() || this.lex();
2073
2072
  }, "lex"),
2074
- begin: /* @__PURE__ */ e(function(e) {
2073
+ begin: /* @__PURE__ */ __name(function(e) {
2075
2074
  this.conditionStack.push(e);
2076
2075
  }, "begin"),
2077
- popState: /* @__PURE__ */ e(function() {
2076
+ popState: /* @__PURE__ */ __name(function() {
2078
2077
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2079
2078
  }, "popState"),
2080
- _currentRules: /* @__PURE__ */ e(function() {
2079
+ _currentRules: /* @__PURE__ */ __name(function() {
2081
2080
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2082
2081
  }, "_currentRules"),
2083
- topState: /* @__PURE__ */ e(function(e) {
2082
+ topState: /* @__PURE__ */ __name(function(e) {
2084
2083
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2085
2084
  }, "topState"),
2086
- pushState: /* @__PURE__ */ e(function(e) {
2085
+ pushState: /* @__PURE__ */ __name(function(e) {
2087
2086
  this.begin(e);
2088
2087
  }, "pushState"),
2089
- stateStackSize: /* @__PURE__ */ e(function() {
2088
+ stateStackSize: /* @__PURE__ */ __name(function() {
2090
2089
  return this.conditionStack.length;
2091
2090
  }, "stateStackSize"),
2092
2091
  options: { "case-insensitive": !0 },
2093
- performAction: /* @__PURE__ */ e(function(e, t, n, r) {
2092
+ performAction: /* @__PURE__ */ __name(function(e, t, n, r) {
2094
2093
  switch (n) {
2095
2094
  case 0: return 5;
2096
2095
  case 1: break;
@@ -2428,13 +2427,13 @@ var N = C(), P = (function() {
2428
2427
  }
2429
2428
  };
2430
2429
  })();
2431
- function Te() {
2430
+ function $() {
2432
2431
  this.yy = {};
2433
2432
  }
2434
- return e(Te, "Parser"), Te.prototype = we, we.Parser = Te, new Te();
2433
+ return __name($, "Parser"), $.prototype = Q, Q.Parser = $, new $();
2435
2434
  })();
2436
- P.parser = P;
2437
- var F = P, I = {
2435
+ parser.parser = parser;
2436
+ var sequenceDiagram_default = parser, LINETYPE = {
2438
2437
  SOLID: 0,
2439
2438
  DOTTED: 1,
2440
2439
  NOTE: 2,
@@ -2486,14 +2485,14 @@ var F = P, I = {
2486
2485
  CENTRAL_CONNECTION: 59,
2487
2486
  CENTRAL_CONNECTION_REVERSE: 60,
2488
2487
  CENTRAL_CONNECTION_DUAL: 61
2489
- }, L = {
2488
+ }, ARROWTYPE = {
2490
2489
  FILLED: 0,
2491
2490
  OPEN: 1
2492
- }, ee = {
2491
+ }, PLACEMENT = {
2493
2492
  LEFTOF: 0,
2494
2493
  RIGHTOF: 1,
2495
2494
  OVER: 2
2496
- }, R = {
2495
+ }, PARTICIPANT_TYPE = {
2497
2496
  ACTOR: "actor",
2498
2497
  BOUNDARY: "boundary",
2499
2498
  COLLECTIONS: "collections",
@@ -2502,9 +2501,9 @@ var F = P, I = {
2502
2501
  ENTITY: "entity",
2503
2502
  PARTICIPANT: "participant",
2504
2503
  QUEUE: "queue"
2505
- }, te = class {
2504
+ }, SequenceDB = class {
2506
2505
  constructor() {
2507
- this.state = new M(() => ({
2506
+ this.state = new ImperativeState(() => ({
2508
2507
  prevActor: void 0,
2509
2508
  actors: /* @__PURE__ */ new Map(),
2510
2509
  createdActors: /* @__PURE__ */ new Map(),
@@ -2517,11 +2516,9 @@ var F = P, I = {
2517
2516
  currentBox: void 0,
2518
2517
  lastCreated: void 0,
2519
2518
  lastDestroyed: void 0
2520
- })), this.setAccTitle = _, this.setAccDescription = g, this.setDiagramTitle = y, this.getAccTitle = c, this.getAccDescription = s, this.getDiagramTitle = d, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(u().wrap), this.LINETYPE = I, this.ARROWTYPE = L, this.PLACEMENT = ee;
2521
- }
2522
- static {
2523
- e(this, "SequenceDB");
2519
+ })), this.setAccTitle = setAccTitle, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getAccTitle = getAccTitle, this.getAccDescription = getAccDescription, this.getDiagramTitle = getDiagramTitle, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(getConfig2().wrap), this.LINETYPE = LINETYPE, this.ARROWTYPE = ARROWTYPE, this.PLACEMENT = PLACEMENT;
2524
2520
  }
2521
+ static #e = __name(this, "SequenceDB");
2525
2522
  addBox(e) {
2526
2523
  this.state.records.boxes.push({
2527
2524
  name: e.text,
@@ -2534,7 +2531,7 @@ var F = P, I = {
2534
2531
  let a = this.state.records.currentBox, o;
2535
2532
  if (i !== void 0) {
2536
2533
  let e;
2537
- e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = S(e, { schema: x });
2534
+ e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = load(e, { schema: JSON_SCHEMA });
2538
2535
  }
2539
2536
  r = o?.type ?? r, o?.alias && (!n || n.text === t) && (n = {
2540
2537
  text: o.alias,
@@ -2661,17 +2658,17 @@ var F = P, I = {
2661
2658
  };
2662
2659
  }
2663
2660
  autoWrap() {
2664
- return this.state.records.wrapEnabled === void 0 ? u().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2661
+ return this.state.records.wrapEnabled === void 0 ? getConfig2().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2665
2662
  }
2666
2663
  clear() {
2667
- this.state.reset(), i();
2664
+ this.state.reset(), clear();
2668
2665
  }
2669
2666
  parseMessage(e) {
2670
2667
  let n = e.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
2671
2668
  text: i,
2672
2669
  wrap: r
2673
2670
  };
2674
- return t.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2671
+ return log.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2675
2672
  }
2676
2673
  parseBoxData(e) {
2677
2674
  let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
@@ -2682,7 +2679,7 @@ var F = P, I = {
2682
2679
  }
2683
2680
  let { wrap: i, cleanedText: a } = this.extractWrap(r);
2684
2681
  return {
2685
- text: a ? h(a, u()) : void 0,
2682
+ text: a ? sanitizeText(a, getConfig2()) : void 0,
2686
2683
  color: n,
2687
2684
  wrap: i
2688
2685
  };
@@ -2707,23 +2704,23 @@ var F = P, I = {
2707
2704
  addLinks(e, n) {
2708
2705
  let r = this.getActor(e);
2709
2706
  try {
2710
- let e = h(n.text, u());
2707
+ let e = sanitizeText(n.text, getConfig2());
2711
2708
  e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2712
2709
  let t = JSON.parse(e);
2713
2710
  this.insertLinks(r, t);
2714
2711
  } catch (e) {
2715
- t.error("error while parsing actor link text", e);
2712
+ log.error("error while parsing actor link text", e);
2716
2713
  }
2717
2714
  }
2718
2715
  addALink(e, n) {
2719
2716
  let r = this.getActor(e);
2720
2717
  try {
2721
- let e = {}, t = h(n.text, u()), i = t.indexOf("@");
2718
+ let e = {}, t = sanitizeText(n.text, getConfig2()), i = t.indexOf("@");
2722
2719
  t = t.replace(/&equals;/g, "="), t = t.replace(/&amp;/g, "&");
2723
2720
  let a = t.slice(0, i - 1).trim();
2724
2721
  e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
2725
2722
  } catch (e) {
2726
- t.error("error while parsing actor link text", e);
2723
+ log.error("error while parsing actor link text", e);
2727
2724
  }
2728
2725
  }
2729
2726
  insertLinks(e, t) {
@@ -2733,10 +2730,10 @@ var F = P, I = {
2733
2730
  addProperties(e, n) {
2734
2731
  let r = this.getActor(e);
2735
2732
  try {
2736
- let e = h(n.text, u()), t = JSON.parse(e);
2733
+ let e = sanitizeText(n.text, getConfig2()), t = JSON.parse(e);
2737
2734
  this.insertProperties(r, t);
2738
2735
  } catch (e) {
2739
- t.error("error while parsing actor properties text", e);
2736
+ log.error("error while parsing actor properties text", e);
2740
2737
  }
2741
2738
  }
2742
2739
  insertProperties(e, t) {
@@ -2752,7 +2749,7 @@ var F = P, I = {
2752
2749
  let e = i.innerHTML, t = JSON.parse(e);
2753
2750
  t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
2754
2751
  } catch (e) {
2755
- t.error("error while parsing actor details text", e);
2752
+ log.error("error while parsing actor details text", e);
2756
2753
  }
2757
2754
  }
2758
2755
  getActorProperty(e, t) {
@@ -2858,7 +2855,7 @@ var F = P, I = {
2858
2855
  this.addSignal(void 0, void 0, void 0, e.signalType);
2859
2856
  break;
2860
2857
  case "setAccTitle":
2861
- _(e.text);
2858
+ setAccTitle(e.text);
2862
2859
  break;
2863
2860
  case "parStart":
2864
2861
  this.addSignal(void 0, void 0, e.parText, e.signalType);
@@ -2887,10 +2884,10 @@ var F = P, I = {
2887
2884
  }
2888
2885
  }
2889
2886
  getConfig() {
2890
- return u().sequence;
2887
+ return getConfig2().sequence;
2891
2888
  }
2892
- }, ne = /* @__PURE__ */ e((e) => {
2893
- let t = e.dropShadow ?? "none", { look: n } = u();
2889
+ }, styles_default = /* @__PURE__ */ __name((e) => {
2890
+ let t = e.dropShadow ?? "none", { look: n } = getConfig2();
2894
2891
  return `.actor {
2895
2892
  stroke: ${e.actorBorder};
2896
2893
  fill: ${e.actorBkg};
@@ -3026,10 +3023,10 @@ var F = P, I = {
3026
3023
  stroke: ${e.nodeBorder};
3027
3024
  }
3028
3025
  `;
3029
- }, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", re = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */ e(function(e, t) {
3030
- let n = k(e, t);
3031
- return l().look === "neo" && n.attr("data-look", "neo"), n;
3032
- }, "drawRect"), ie = /* @__PURE__ */ e(function(e, t, n, r, i) {
3026
+ }, "getStyles"), ACTOR_TYPE_WIDTH = 36, TOP_ACTOR_CLASS = "actor-top", BOTTOM_ACTOR_CLASS = "actor-bottom", ACTOR_BOX_CLASS = "actor-box", ACTOR_MAN_FIGURE_CLASS = "actor-man", COLOR_THEMES = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), drawRect2 = /* @__PURE__ */ __name(function(e, t) {
3027
+ let n = drawRect(e, t);
3028
+ return getConfig().look === "neo" && n.attr("data-look", "neo"), n;
3029
+ }, "drawRect"), drawPopup = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3033
3030
  if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3034
3031
  height: 0,
3035
3032
  width: 0
@@ -3045,18 +3042,18 @@ var F = P, I = {
3045
3042
  if (f.attr("class", "actorPopupMenuPanel" + u), f.attr("x", s.x), f.attr("y", s.height), f.attr("fill", s.fill), f.attr("stroke", s.stroke), f.attr("width", d), f.attr("height", s.height), f.attr("rx", s.rx), f.attr("ry", s.ry), a != null) {
3046
3043
  var p = 20;
3047
3044
  for (let e in a) {
3048
- var m = l.append("a"), h = (0, N.sanitizeUrl)(a[e]);
3049
- m.attr("xlink:href", h), m.attr("target", "_blank"), je(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3045
+ var m = l.append("a"), h = (0, import_dist.sanitizeUrl)(a[e]);
3046
+ m.attr("xlink:href", h), m.attr("target", "_blank"), _drawMenuItemTextCandidateFunc(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3050
3047
  }
3051
3048
  }
3052
3049
  return f.attr("height", p), {
3053
3050
  height: s.height + p,
3054
3051
  width: d
3055
3052
  };
3056
- }, "drawPopup"), ae = /* @__PURE__ */ e(function(e) {
3053
+ }, "drawPopup"), popupMenuToggle = /* @__PURE__ */ __name(function(e) {
3057
3054
  return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3058
- }, "popupMenuToggle"), oe = /* @__PURE__ */ e(async function(e, t, n = null) {
3059
- let r = e.append("foreignObject"), i = await m(t.text, l()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3055
+ }, "popupMenuToggle"), drawKatex = /* @__PURE__ */ __name(async function(e, t, n = null) {
3056
+ let r = e.append("foreignObject"), i = await renderKatexSanitized(t.text, getConfig()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3060
3057
  if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
3061
3058
  let n = e.node().firstChild;
3062
3059
  n.setAttribute("height", a.height + 2 * t.textMargin);
@@ -3071,20 +3068,20 @@ var F = P, I = {
3071
3068
  r.attr("x", Math.round(e + Math.abs(e - i) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
3072
3069
  }
3073
3070
  return [r];
3074
- }, "drawKatex"), G = /* @__PURE__ */ e(function(t, n) {
3075
- let r = 0, i = 0, o = n.text.split(a.lineBreakRegex), [s, c] = w(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ e(() => n.y, "yfunc");
3071
+ }, "drawKatex"), drawText = /* @__PURE__ */ __name(function(t, n) {
3072
+ let r = 0, i = 0, o = n.text.split(common_default.lineBreakRegex), [s, c] = parseFontSize(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ __name(() => n.y, "yfunc");
3076
3073
  if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3077
3074
  case "top":
3078
3075
  case "start":
3079
- d = /* @__PURE__ */ e(() => Math.round(n.y + n.textMargin), "yfunc");
3076
+ d = /* @__PURE__ */ __name(() => Math.round(n.y + n.textMargin), "yfunc");
3080
3077
  break;
3081
3078
  case "middle":
3082
3079
  case "center":
3083
- d = /* @__PURE__ */ e(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
3080
+ d = /* @__PURE__ */ __name(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
3084
3081
  break;
3085
3082
  case "bottom":
3086
3083
  case "end":
3087
- d = /* @__PURE__ */ e(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
3084
+ d = /* @__PURE__ */ __name(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
3088
3085
  break;
3089
3086
  }
3090
3087
  if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
@@ -3113,68 +3110,68 @@ var F = P, I = {
3113
3110
  n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (o._groups || o)[0][0].getBBox().height, r = i), l.push(o);
3114
3111
  }
3115
3112
  return l;
3116
- }, "drawText"), se = /* @__PURE__ */ e(function(t, n) {
3113
+ }, "drawText"), drawLabel = /* @__PURE__ */ __name(function(t, n) {
3117
3114
  function r(e, t, n, r, i) {
3118
3115
  return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3119
3116
  }
3120
- e(r, "genPoints");
3117
+ __name(r, "genPoints");
3121
3118
  let i = t.append("polygon");
3122
- return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, G(t, n), i;
3123
- }, "drawLabel"), K = -1, ce = /* @__PURE__ */ e((e, t, n, r) => {
3119
+ return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, drawText(t, n), i;
3120
+ }, "drawLabel"), actorCnt = -1, fixLifeLineHeights = /* @__PURE__ */ __name((e, t, n, r) => {
3124
3121
  e.select && n.forEach((n) => {
3125
3122
  let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3126
3123
  !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3127
3124
  });
3128
- }, "fixLifeLineHeights"), le = /* @__PURE__ */ e(function(e, t, n, r, i) {
3125
+ }, "fixLifeLineHeights"), drawActorTypeParticipant = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3129
3126
  let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower();
3130
3127
  var h = m;
3131
- r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), c === "neo" && h.attr("data-look", "neo"));
3132
- let g = A();
3128
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), c === "neo" && h.attr("data-look", "neo"));
3129
+ let g = getNoteRect();
3133
3130
  var _ = "actor";
3134
- t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, c === "neo" && (g.rx = 6, g.ry = 6);
3135
- let v = W(h, g), y = i.get(t.name) ?? 0;
3136
- if (U.has(l) && (v.style("stroke", f[y % f.length]), v.style("fill", d[y % f.length])), c === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
3131
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, c === "neo" && (g.rx = 6, g.ry = 6);
3132
+ let v = drawRect2(h, g), y = i.get(t.name) ?? 0;
3133
+ if (COLOR_THEMES.has(l) && (v.style("stroke", f[y % f.length]), v.style("fill", d[y % f.length])), c === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
3137
3134
  let e = t.properties.icon.trim();
3138
- e.charAt(0) === "@" ? D(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
3135
+ e.charAt(0) === "@" ? drawEmbeddedImage(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : drawImage(h, g.x + g.width - 20, g.y + 10, e);
3139
3136
  }
3140
- r || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), Y(n, p(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3137
+ r || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3141
3138
  let b = t.height;
3142
3139
  if (v.node) {
3143
3140
  let e = v.node().getBBox();
3144
3141
  t.height = e.height, b = e.height;
3145
3142
  }
3146
3143
  return b;
3147
- }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ e(function(e, t, n, r, i) {
3144
+ }, "drawActorTypeParticipant"), drawActorTypeCollections = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3148
3145
  let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower();
3149
3146
  var h = m;
3150
- r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), c === "neo" && h.attr("data-look", "neo"));
3151
- let g = A();
3147
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), c === "neo" && h.attr("data-look", "neo"));
3148
+ let g = getNoteRect();
3152
3149
  var _ = "actor";
3153
- t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
3150
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
3154
3151
  let v = {
3155
3152
  ...g,
3156
3153
  x: g.x + -6,
3157
3154
  y: g.y + 6,
3158
3155
  class: "actor"
3159
- }, y = W(h, g), b = W(h, v);
3156
+ }, y = drawRect2(h, g), b = drawRect2(h, v);
3160
3157
  t.rectData = g, c === "neo" && h.attr("filter", "url(#drop-shadow)");
3161
3158
  let x = i.get(t.name) ?? 0;
3162
- if (U.has(l) && (y.style("stroke", f[x % f.length]), y.style("fill", d[x % f.length]), b.style("stroke", f[x % f.length]), b.style("fill", d[x % f.length])), t.properties?.icon) {
3159
+ if (COLOR_THEMES.has(l) && (y.style("stroke", f[x % f.length]), y.style("fill", d[x % f.length]), b.style("stroke", f[x % f.length]), b.style("fill", d[x % f.length])), t.properties?.icon) {
3163
3160
  let e = t.properties.icon.trim();
3164
- e.charAt(0) === "@" ? D(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
3161
+ e.charAt(0) === "@" ? drawEmbeddedImage(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : drawImage(h, g.x + g.width - 20, g.y + 10, e);
3165
3162
  }
3166
- Y(n, p(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${re}` }, n);
3163
+ _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3167
3164
  let S = t.height;
3168
3165
  if (y.node) {
3169
3166
  let e = y.node().getBBox();
3170
3167
  t.height = e.height, S = e.height;
3171
3168
  }
3172
3169
  return r || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
3173
- }, "drawActorTypeCollections"), de = /* @__PURE__ */ e(function(e, t, n, r, i) {
3170
+ }, "drawActorTypeCollections"), drawActorTypeQueue = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3174
3171
  let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower(), h = m;
3175
- r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), c === "neo" && h.attr("data-look", "neo"));
3176
- let g = A(), _ = "actor";
3177
- t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${V}` : _ += ` ${B}`, h.attr("class", _), g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.name = t.name;
3172
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), c === "neo" && h.attr("data-look", "neo"));
3173
+ let g = getNoteRect(), _ = "actor";
3174
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, h.attr("class", _), g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.name = t.name;
3178
3175
  let v = g.height / 2, y = v / (2.5 + g.height / 50), b = h.append("g"), x = h.append("g"), S = `M ${g.x},${g.y + v}
3179
3176
  a ${y},${v} 0 0 0 0,${g.height}
3180
3177
  h ${g.width - 2 * y}
@@ -3184,42 +3181,42 @@ var F = P, I = {
3184
3181
  b.append("path").attr("d", S), x.append("path").attr("d", `M ${g.x},${g.y + v}
3185
3182
  a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g, c === "neo" && b.attr("filter", "url(#drop-shadow)");
3186
3183
  let C = i.get(t.name) ?? 0;
3187
- if (U.has(l) && (b.style("stroke", f[C % f.length]), b.style("fill", d[C % f.length]), x.style("stroke", f[C % f.length]), x.style("fill", d[C % f.length])), t.properties?.icon) {
3184
+ if (COLOR_THEMES.has(l) && (b.style("stroke", f[C % f.length]), b.style("fill", d[C % f.length]), x.style("stroke", f[C % f.length]), x.style("fill", d[C % f.length])), t.properties?.icon) {
3188
3185
  let e = t.properties.icon.trim(), n = g.x + g.width - 20, r = g.y + 10;
3189
- e.charAt(0) === "@" ? D(h, n, r, e.substr(1)) : O(h, n, r, e);
3186
+ e.charAt(0) === "@" ? drawEmbeddedImage(h, n, r, e.substr(1)) : drawImage(h, n, r, e);
3190
3187
  }
3191
- Y(n, p(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3188
+ _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3192
3189
  let w = t.height, T = b.select("path:last-child");
3193
3190
  if (T.node()) {
3194
3191
  let e = T.node().getBBox();
3195
3192
  t.height = e.height, w = e.height;
3196
3193
  }
3197
3194
  return r || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
3198
- }, "drawActorTypeQueue"), fe = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3195
+ }, "drawActorTypeQueue"), drawActorTypeControl = /* @__PURE__ */ __name(function(e, t, n, r, i, a) {
3199
3196
  let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: m, actorBorder: h, actorBkg: g } = d, _ = e.append("g").lower();
3200
- r || (K++, _.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3201
- let v = e.append("g"), y = H;
3202
- r ? y += ` ${V}` : y += ` ${B}`, v.attr("class", y), v.attr("name", t.name);
3203
- let b = A();
3197
+ r || (actorCnt++, _.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
3198
+ let v = e.append("g"), y = ACTOR_MAN_FIGURE_CLASS;
3199
+ r ? y += ` ${BOTTOM_ACTOR_CLASS}` : y += ` ${TOP_ACTOR_CLASS}`, v.attr("class", y), v.attr("name", t.name);
3200
+ let b = getNoteRect();
3204
3201
  b.x = t.x, b.y = o, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
3205
3202
  let x = t.x + t.width / 2, S = o + 32;
3206
3203
  v.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("filter", `${l === "neo" ? "url(#drop-shadow)" : ""}`), v.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${x}, ${S - 22})`);
3207
3204
  let C = a.get(t.name) ?? 0;
3208
- return U.has(u) ? (v.style("stroke", m[C % m.length]), v.style("fill", f[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), Y(n, p(t.description))(t.description, v, b.x, b.y + 22 + (r ? 5 : 12), b.width, b.height, { class: `actor ${H}` }, n), r || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
3209
- }, "drawActorTypeControl"), pe = /* @__PURE__ */ e(function(e, t, n, r, i) {
3205
+ return COLOR_THEMES.has(u) ? (v.style("stroke", m[C % m.length]), v.style("fill", f[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, v, b.x, b.y + 22 + (r ? 5 : 12), b.width, b.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), r || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
3206
+ }, "drawActorTypeControl"), drawActorTypeEntity = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3210
3207
  let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 75, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower(), h = e.append("g"), g = "actor";
3211
- r ? g += ` ${V}` : g += ` ${B}`, h.attr("class", g), h.attr("name", t.name);
3212
- let _ = A();
3208
+ r ? g += ` ${BOTTOM_ACTOR_CLASS}` : g += ` ${TOP_ACTOR_CLASS}`, h.attr("class", g), h.attr("name", t.name);
3209
+ let _ = getNoteRect();
3213
3210
  _.x = t.x, _.y = a, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
3214
3211
  let v = t.x + t.width / 2, y = a + (r ? 10 : 25);
3215
3212
  h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2), c === "neo" && h.attr("filter", "url(#drop-shadow)");
3216
3213
  let b = i.get(t.name) ?? 0;
3217
- return U.has(l) && (h.style("stroke", f[b % f.length]), h.style("fill", d[b % f.length])), t.height = h.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (K++, m.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K), Y(n, p(t.description))(t.description, h, _.x, _.y + (r ? 15 : 30), _.width, _.height, { class: `actor ${H}` }, n), r ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3218
- }, "drawActorTypeEntity"), me = /* @__PURE__ */ e(function(e, t, n, r, i) {
3214
+ return COLOR_THEMES.has(l) && (h.style("stroke", f[b % f.length]), h.style("fill", d[b % f.length])), t.height = h.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (actorCnt++, m.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, _.x, _.y + (r ? 15 : 30), _.width, _.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), r ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3215
+ }, "drawActorTypeEntity"), drawActorTypeDatabase = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3219
3216
  let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height + 2 * n.boxTextMargin, { theme: c, themeVariables: l, look: u } = n, { bkgColorArray: d, borderColorArray: f, actorBorder: m } = l, h = e.append("g").lower(), g = h;
3220
- r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), u === "neo" && g.attr("data-look", "neo"));
3221
- let _ = A(), v = "actor";
3222
- t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", r ? v += ` ${V}` : v += ` ${B}`, _.x = t.x, _.y = a, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = a;
3217
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = actorCnt, t.links != null && g.attr("id", "root-" + actorCnt), u === "neo" && g.attr("data-look", "neo"));
3218
+ let _ = getNoteRect(), v = "actor";
3219
+ t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", r ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = t.x, _.y = a, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = a;
3223
3220
  let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
3224
3221
  C.attr("class", v);
3225
3222
  let w = `
@@ -3232,91 +3229,91 @@ var F = P, I = {
3232
3229
  `;
3233
3230
  C.append("path").attr("d", w), u === "neo" && C.attr("filter", "url(#drop-shadow)");
3234
3231
  let T = i.get(t.name) ?? 0;
3235
- U.has(c) ? (C.style("stroke", f[T % f.length]), C.style("fill", d[T % f.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, Y(n, p(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${re}` }, n);
3232
+ COLOR_THEMES.has(c) ? (C.style("stroke", f[T % f.length]), C.style("fill", d[T % f.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3236
3233
  let E = C.select("path:last-child");
3237
3234
  return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), r || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
3238
- }, "drawActorTypeDatabase"), he = /* @__PURE__ */ e(function(e, t, n, r, i) {
3235
+ }, "drawActorTypeDatabase"), drawActorTypeBoundary = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3239
3236
  let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 80, c = e.append("g").lower(), { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: m, actorBorder: h } = d;
3240
- r || (K++, c.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3241
- let g = e.append("g"), _ = H;
3242
- r ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name);
3243
- let v = A();
3244
- v.x = t.x, v.y = a, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", a + 12), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", a + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", a + 12).attr("r", 22), l === "neo" && g.attr("filter", "url(#drop-shadow)");
3237
+ r || (actorCnt++, c.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
3238
+ let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
3239
+ r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", t.name);
3240
+ let v = getNoteRect();
3241
+ v.x = t.x, v.y = a, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", a + 12), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", a + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", a + 12).attr("r", 22), l === "neo" && g.attr("filter", "url(#drop-shadow)");
3245
3242
  let y = i.get(t.name) ?? 0;
3246
- return U.has(u) ? (g.style("stroke", m[y % m.length]), g.style("fill", f[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), Y(n, p(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${H}` }, n), g.attr("transform", "translate(0,21)"), r || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
3247
- }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ e(function(e, t, n, r, i) {
3243
+ return COLOR_THEMES.has(u) ? (g.style("stroke", m[y % m.length]), g.style("fill", f[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), g.attr("transform", "translate(0,21)"), r || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
3244
+ }, "drawActorTypeBoundary"), drawActorTypeActor = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3248
3245
  let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 80, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f, actorBorder: m } = u, h = e.append("g").lower();
3249
- r || (K++, h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3250
- let g = e.append("g"), _ = H;
3251
- r ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3246
+ r || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
3247
+ let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
3248
+ r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3252
3249
  let v = c === "neo" ? .5 : 1, y = c === "neo" ? a + (1 - v) * 30 : a;
3253
- g.append("line").attr("id", "actor-man-torso" + K).attr("x1", o).attr("y1", y + 25 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", o - z / 2 * v).attr("y1", y + 33 * v).attr("x2", o + z / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", o - z / 2 * v).attr("y1", y + 60 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("x1", o).attr("y1", y + 45 * v).attr("x2", o + (z / 2 - 2) * v).attr("y2", y + 60 * v);
3250
+ g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", o).attr("y1", y + 25 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", o - ACTOR_TYPE_WIDTH / 2 * v).attr("y1", y + 33 * v).attr("x2", o + ACTOR_TYPE_WIDTH / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", o - ACTOR_TYPE_WIDTH / 2 * v).attr("y1", y + 60 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("x1", o).attr("y1", y + 45 * v).attr("x2", o + (ACTOR_TYPE_WIDTH / 2 - 2) * v).attr("y2", y + 60 * v);
3254
3251
  let b = g.append("circle");
3255
3252
  b.attr("cx", t.x + t.width / 2), b.attr("cy", y + 10 * v), b.attr("r", 15 * v), b.attr("width", t.width * v), b.attr("height", t.height * v), t.height = g.node().getBBox().height;
3256
- let x = A();
3253
+ let x = getNoteRect();
3257
3254
  x.x = t.x, x.y = y, x.fill = "#eaeaea", x.width = t.width, x.height = t.height / v, x.class = "actor", x.rx = 3, x.ry = 3;
3258
3255
  let S = i.get(t.name) ?? 0;
3259
- return U.has(l) ? (g.style("stroke", f[S % f.length]), g.style("fill", d[S % f.length])) : g.style("stroke", m), Y(n, p(t.description))(t.description, g, x.x, y + 35 * v - (c === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${H}` }, n), t.height;
3260
- }, "drawActorTypeActor"), _e = /* @__PURE__ */ e(async function(e, t, n, r, i, a, o) {
3256
+ return COLOR_THEMES.has(l) ? (g.style("stroke", f[S % f.length]), g.style("fill", d[S % f.length])) : g.style("stroke", m), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, x.x, y + 35 * v - (c === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), t.height;
3257
+ }, "drawActorTypeActor"), drawActor = /* @__PURE__ */ __name(async function(e, t, n, r, i, a, o) {
3261
3258
  let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
3262
3259
  switch (t.type) {
3263
- case "actor": return await ge(e, t, n, r, s);
3264
- case "participant": return await le(e, t, n, r, s);
3265
- case "boundary": return await he(e, t, n, r, s);
3266
- case "control": return await fe(e, t, n, r, i, s);
3267
- case "entity": return await pe(e, t, n, r, s);
3268
- case "database": return await me(e, t, n, r, s);
3269
- case "collections": return await ue(e, t, n, r, s);
3270
- case "queue": return await de(e, t, n, r, s);
3260
+ case "actor": return await drawActorTypeActor(e, t, n, r, s);
3261
+ case "participant": return await drawActorTypeParticipant(e, t, n, r, s);
3262
+ case "boundary": return await drawActorTypeBoundary(e, t, n, r, s);
3263
+ case "control": return await drawActorTypeControl(e, t, n, r, i, s);
3264
+ case "entity": return await drawActorTypeEntity(e, t, n, r, s);
3265
+ case "database": return await drawActorTypeDatabase(e, t, n, r, s);
3266
+ case "collections": return await drawActorTypeCollections(e, t, n, r, s);
3267
+ case "queue": return await drawActorTypeQueue(e, t, n, r, s);
3271
3268
  }
3272
- }, "drawActor"), ve = /* @__PURE__ */ e(function(e, t, n) {
3269
+ }, "drawActor"), drawBox = /* @__PURE__ */ __name(function(e, t, n) {
3273
3270
  let r = e.append("g");
3274
- Se(r, t), t.name && Y(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3275
- }, "drawBox"), ye = /* @__PURE__ */ e(function(e) {
3271
+ drawBackgroundRect2(r, t), t.name && _drawTextCandidateFunc(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3272
+ }, "drawBox"), anchorElement = /* @__PURE__ */ __name(function(e) {
3276
3273
  return e.append("g");
3277
- }, "anchorElement"), be = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
3278
- let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = A(), p = t.anchored, m = t.actor;
3274
+ }, "anchorElement"), drawActivation = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
3275
+ let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = getNoteRect(), p = t.anchored, m = t.actor;
3279
3276
  f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
3280
- let h = W(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
3281
- U.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
3282
- }, "drawActivation"), xe = /* @__PURE__ */ e(async function(t, n, r, i, a) {
3283
- let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, m = t.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), h = /* @__PURE__ */ e(function(e, t, n, r) {
3277
+ let h = drawRect2(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
3278
+ COLOR_THEMES.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
3279
+ }, "drawActivation"), drawLoop = /* @__PURE__ */ __name(async function(t, n, r, i, a) {
3280
+ let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, m = t.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), h = /* @__PURE__ */ __name(function(e, t, n, r) {
3284
3281
  return m.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3285
3282
  }, "drawLoopLine");
3286
3283
  h(n.startx, n.starty, n.stopx, n.starty), h(n.stopx, n.starty, n.stopx, n.stopy), h(n.startx, n.stopy, n.stopx, n.stopy), h(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
3287
3284
  h(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
3288
3285
  });
3289
- let g = j();
3290
- g.text = r, g.x = n.startx, g.y = n.starty, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(l ?? 0, 50), g.height = c + (i.look === "neo" ? 15 : 0) || 20, g.textMargin = s, g.class = "labelText", se(m, g), g = ke(), g.text = n.title, g.x = n.startx + l / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + o + s, g.anchor = "middle", g.valign = "middle", g.textMargin = s, g.class = "loopText", g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = !0;
3291
- let _ = p(g.text) ? await oe(m, g, n) : G(m, g);
3286
+ let g = getTextObj();
3287
+ g.text = r, g.x = n.startx, g.y = n.starty, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(l ?? 0, 50), g.height = c + (i.look === "neo" ? 15 : 0) || 20, g.textMargin = s, g.class = "labelText", drawLabel(m, g), g = getTextObj2(), g.text = n.title, g.x = n.startx + l / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + o + s, g.anchor = "middle", g.valign = "middle", g.textMargin = s, g.class = "loopText", g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = !0;
3288
+ let _ = hasKatex(g.text) ? await drawKatex(m, g, n) : drawText(m, g);
3292
3289
  if (n.sectionTitles !== void 0) {
3293
3290
  for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3294
- g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "loopText", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, p(g.text) ? (n.starty = n.sections[e].y, await oe(m, g, n)) : G(m, g);
3291
+ g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "loopText", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, hasKatex(g.text) ? (n.starty = n.sections[e].y, await drawKatex(m, g, n)) : drawText(m, g);
3295
3292
  let r = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3296
3293
  n.sections[e].height += r - (o + s);
3297
3294
  }
3298
3295
  }
3299
3296
  return n.height = Math.round(n.stopy - n.starty), m;
3300
- }, "drawLoop"), Se = /* @__PURE__ */ e(function(e, t) {
3301
- E(e, t);
3302
- }, "drawBackgroundRect"), Ce = /* @__PURE__ */ e(function(e, t) {
3297
+ }, "drawLoop"), drawBackgroundRect2 = /* @__PURE__ */ __name(function(e, t) {
3298
+ drawBackgroundRect(e, t);
3299
+ }, "drawBackgroundRect"), insertDatabaseIcon = /* @__PURE__ */ __name(function(e, t) {
3303
3300
  e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
3304
- }, "insertDatabaseIcon"), q = /* @__PURE__ */ e(function(e, t) {
3301
+ }, "insertDatabaseIcon"), insertComputerIcon = /* @__PURE__ */ __name(function(e, t) {
3305
3302
  e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
3306
- }, "insertComputerIcon"), J = /* @__PURE__ */ e(function(e, t) {
3303
+ }, "insertComputerIcon"), insertClockIcon = /* @__PURE__ */ __name(function(e, t) {
3307
3304
  e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
3308
- }, "insertClockIcon"), we = /* @__PURE__ */ e(function(e, t) {
3305
+ }, "insertClockIcon"), insertArrowHead = /* @__PURE__ */ __name(function(e, t) {
3309
3306
  e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3310
- }, "insertArrowHead"), Te = /* @__PURE__ */ e(function(e, t) {
3307
+ }, "insertArrowHead"), insertArrowFilledHead = /* @__PURE__ */ __name(function(e, t) {
3311
3308
  e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
3312
- }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ e(function(e, t) {
3309
+ }, "insertArrowFilledHead"), insertSequenceNumber = /* @__PURE__ */ __name(function(e, t) {
3313
3310
  e.append("defs").append("marker").attr("id", t + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
3314
- }, "insertSequenceNumber"), De = /* @__PURE__ */ e(function(e, t) {
3311
+ }, "insertSequenceNumber"), insertArrowCrossHead = /* @__PURE__ */ __name(function(e, t) {
3315
3312
  e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3316
- }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ e(function(e, t) {
3313
+ }, "insertArrowCrossHead"), insertDropShadow = /* @__PURE__ */ __name(function(e, t) {
3317
3314
  let { theme: n } = t;
3318
3315
  e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
3319
- }, "insertDropShadow"), ke = /* @__PURE__ */ e(function() {
3316
+ }, "insertDropShadow"), getTextObj2 = /* @__PURE__ */ __name(function() {
3320
3317
  return {
3321
3318
  x: 0,
3322
3319
  y: 0,
@@ -3331,7 +3328,7 @@ var F = P, I = {
3331
3328
  tspan: !0,
3332
3329
  valign: void 0
3333
3330
  };
3334
- }, "getTextObj"), Ae = /* @__PURE__ */ e(function() {
3331
+ }, "getTextObj"), getNoteRect2 = /* @__PURE__ */ __name(function() {
3335
3332
  return {
3336
3333
  x: 0,
3337
3334
  y: 0,
@@ -3343,95 +3340,95 @@ var F = P, I = {
3343
3340
  rx: 0,
3344
3341
  ry: 0
3345
3342
  };
3346
- }, "getNoteRect"), Y = /* @__PURE__ */ (function() {
3343
+ }, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
3347
3344
  function t(e, t, n, r, i, a, o) {
3348
3345
  s(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), o);
3349
3346
  }
3350
- e(t, "byText");
3347
+ __name(t, "byText");
3351
3348
  function n(e, t, n, r, i, o, c, l) {
3352
- let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = w(u), h = e.split(a.lineBreakRegex);
3349
+ let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = parseFontSize(u), h = e.split(common_default.lineBreakRegex);
3353
3350
  for (let e = 0; e < h.length; e++) {
3354
3351
  let a = e * p - p * (h.length - 1) / 2, l = t.append("text").attr("x", n + i / 2).attr("y", r).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
3355
3352
  l.append("tspan").attr("x", n + i / 2).attr("dy", a).text(h[e]), l.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(l, c);
3356
3353
  }
3357
3354
  }
3358
- e(n, "byTspan");
3355
+ __name(n, "byTspan");
3359
3356
  function i(e, t, r, i, a, o, c, l) {
3360
3357
  let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", o).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3361
3358
  d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, o, c, l), s(d, c);
3362
3359
  }
3363
- e(i, "byFo");
3360
+ __name(i, "byFo");
3364
3361
  async function o(e, t, i, a, o, c, u, d) {
3365
- let f = await r(e, l()), p = t.append("switch"), h = p.append("foreignObject").attr("x", i + o / 2 - f.width / 2).attr("y", a + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3366
- h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await m(e, l())), n(e, p, i, a, o, c, u, d), s(h, u);
3362
+ let f = await calculateMathMLDimensions(e, getConfig()), p = t.append("switch"), h = p.append("foreignObject").attr("x", i + o / 2 - f.width / 2).attr("y", a + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3363
+ h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(e, getConfig())), n(e, p, i, a, o, c, u, d), s(h, u);
3367
3364
  }
3368
- e(o, "byKatex");
3365
+ __name(o, "byKatex");
3369
3366
  function s(e, t) {
3370
3367
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3371
3368
  }
3372
- return e(s, "_setTextAttrs"), function(e, r = !1) {
3369
+ return __name(s, "_setTextAttrs"), function(e, r = !1) {
3373
3370
  return r ? o : e.textPlacement === "fo" ? i : e.textPlacement === "old" ? t : n;
3374
3371
  };
3375
- })(), je = /* @__PURE__ */ (function() {
3372
+ })(), _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
3376
3373
  function t(e, t, n, r, a, o, s) {
3377
3374
  i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3378
3375
  }
3379
- e(t, "byText");
3376
+ __name(t, "byText");
3380
3377
  function n(e, t, n, r, o, s, c, l) {
3381
- let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, p = e.split(a.lineBreakRegex);
3378
+ let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, p = e.split(common_default.lineBreakRegex);
3382
3379
  for (let e = 0; e < p.length; e++) {
3383
3380
  let a = e * u - u * (p.length - 1) / 2, o = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", u).style("font-weight", f).style("font-family", d);
3384
3381
  o.append("tspan").attr("x", n).attr("dy", a).text(p[e]), o.attr("y", r + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(o, c);
3385
3382
  }
3386
3383
  }
3387
- e(n, "byTspan");
3384
+ __name(n, "byTspan");
3388
3385
  function r(e, t, r, a, o, s, c, l) {
3389
3386
  let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3390
3387
  d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
3391
3388
  }
3392
- e(r, "byFo");
3389
+ __name(r, "byFo");
3393
3390
  function i(e, t) {
3394
3391
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3395
3392
  }
3396
- return e(i, "_setTextAttrs"), function(e) {
3393
+ return __name(i, "_setTextAttrs"), function(e) {
3397
3394
  return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
3398
3395
  };
3399
- })(), X = {
3400
- drawRect: W,
3401
- drawText: G,
3402
- drawLabel: se,
3403
- drawActor: _e,
3404
- drawBox: ve,
3405
- drawPopup: ie,
3406
- anchorElement: ye,
3407
- drawActivation: be,
3408
- drawLoop: xe,
3409
- drawBackgroundRect: Se,
3410
- insertArrowHead: we,
3411
- insertArrowFilledHead: Te,
3412
- insertSequenceNumber: Ee,
3413
- insertArrowCrossHead: De,
3414
- insertDatabaseIcon: Ce,
3415
- insertComputerIcon: q,
3416
- insertClockIcon: J,
3417
- getTextObj: ke,
3418
- getNoteRect: Ae,
3419
- fixLifeLineHeights: ce,
3420
- sanitizeUrl: N.sanitizeUrl,
3421
- insertDropShadow: Oe,
3422
- insertSolidTopArrowHead: /* @__PURE__ */ e(function(e, t) {
3396
+ })(), svgDraw_default = {
3397
+ drawRect: drawRect2,
3398
+ drawText,
3399
+ drawLabel,
3400
+ drawActor,
3401
+ drawBox,
3402
+ drawPopup,
3403
+ anchorElement,
3404
+ drawActivation,
3405
+ drawLoop,
3406
+ drawBackgroundRect: drawBackgroundRect2,
3407
+ insertArrowHead,
3408
+ insertArrowFilledHead,
3409
+ insertSequenceNumber,
3410
+ insertArrowCrossHead,
3411
+ insertDatabaseIcon,
3412
+ insertComputerIcon,
3413
+ insertClockIcon,
3414
+ getTextObj: getTextObj2,
3415
+ getNoteRect: getNoteRect2,
3416
+ fixLifeLineHeights,
3417
+ sanitizeUrl: import_dist.sanitizeUrl,
3418
+ insertDropShadow,
3419
+ insertSolidTopArrowHead: /* @__PURE__ */ __name(function(e, t) {
3423
3420
  e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3424
3421
  }, "insertSolidTopArrowHead"),
3425
- insertSolidBottomArrowHead: /* @__PURE__ */ e(function(e, t) {
3422
+ insertSolidBottomArrowHead: /* @__PURE__ */ __name(function(e, t) {
3426
3423
  e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3427
3424
  }, "insertSolidBottomArrowHead"),
3428
- insertStickTopArrowHead: /* @__PURE__ */ e(function(e, t) {
3425
+ insertStickTopArrowHead: /* @__PURE__ */ __name(function(e, t) {
3429
3426
  e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3430
3427
  }, "insertStickTopArrowHead"),
3431
- insertStickBottomArrowHead: /* @__PURE__ */ e(function(e, t) {
3428
+ insertStickBottomArrowHead: /* @__PURE__ */ __name(function(e, t) {
3432
3429
  e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3433
3430
  }, "insertStickBottomArrowHead")
3434
- }, Z = {}, Q = {
3431
+ }, conf = {}, bounds = {
3435
3432
  data: {
3436
3433
  startx: void 0,
3437
3434
  stopx: void 0,
@@ -3442,37 +3439,37 @@ var F = P, I = {
3442
3439
  sequenceItems: [],
3443
3440
  activations: [],
3444
3441
  models: {
3445
- getHeight: /* @__PURE__ */ e(function() {
3442
+ getHeight: /* @__PURE__ */ __name(function() {
3446
3443
  return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3447
3444
  }, "getHeight"),
3448
- clear: /* @__PURE__ */ e(function() {
3445
+ clear: /* @__PURE__ */ __name(function() {
3449
3446
  this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3450
3447
  }, "clear"),
3451
- addBox: /* @__PURE__ */ e(function(e) {
3448
+ addBox: /* @__PURE__ */ __name(function(e) {
3452
3449
  this.boxes.push(e);
3453
3450
  }, "addBox"),
3454
- addActor: /* @__PURE__ */ e(function(e) {
3451
+ addActor: /* @__PURE__ */ __name(function(e) {
3455
3452
  this.actors.push(e);
3456
3453
  }, "addActor"),
3457
- addLoop: /* @__PURE__ */ e(function(e) {
3454
+ addLoop: /* @__PURE__ */ __name(function(e) {
3458
3455
  this.loops.push(e);
3459
3456
  }, "addLoop"),
3460
- addMessage: /* @__PURE__ */ e(function(e) {
3457
+ addMessage: /* @__PURE__ */ __name(function(e) {
3461
3458
  this.messages.push(e);
3462
3459
  }, "addMessage"),
3463
- addNote: /* @__PURE__ */ e(function(e) {
3460
+ addNote: /* @__PURE__ */ __name(function(e) {
3464
3461
  this.notes.push(e);
3465
3462
  }, "addNote"),
3466
- lastActor: /* @__PURE__ */ e(function() {
3463
+ lastActor: /* @__PURE__ */ __name(function() {
3467
3464
  return this.actors[this.actors.length - 1];
3468
3465
  }, "lastActor"),
3469
- lastLoop: /* @__PURE__ */ e(function() {
3466
+ lastLoop: /* @__PURE__ */ __name(function() {
3470
3467
  return this.loops[this.loops.length - 1];
3471
3468
  }, "lastLoop"),
3472
- lastMessage: /* @__PURE__ */ e(function() {
3469
+ lastMessage: /* @__PURE__ */ __name(function() {
3473
3470
  return this.messages[this.messages.length - 1];
3474
3471
  }, "lastMessage"),
3475
- lastNote: /* @__PURE__ */ e(function() {
3472
+ lastNote: /* @__PURE__ */ __name(function() {
3476
3473
  return this.notes[this.notes.length - 1];
3477
3474
  }, "lastNote"),
3478
3475
  actors: [],
@@ -3481,50 +3478,50 @@ var F = P, I = {
3481
3478
  messages: [],
3482
3479
  notes: []
3483
3480
  },
3484
- init: /* @__PURE__ */ e(function() {
3481
+ init: /* @__PURE__ */ __name(function() {
3485
3482
  this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3486
3483
  startx: void 0,
3487
3484
  stopx: void 0,
3488
3485
  starty: void 0,
3489
3486
  stopy: void 0
3490
- }, this.verticalPos = 0, He(u());
3487
+ }, this.verticalPos = 0, setConf(getConfig2());
3491
3488
  }, "init"),
3492
- updateVal: /* @__PURE__ */ e(function(e, t, n, r) {
3489
+ updateVal: /* @__PURE__ */ __name(function(e, t, n, r) {
3493
3490
  e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3494
3491
  }, "updateVal"),
3495
- updateBounds: /* @__PURE__ */ e(function(t, n, r, i) {
3492
+ updateBounds: /* @__PURE__ */ __name(function(t, n, r, i) {
3496
3493
  let a = this, o = 0;
3497
3494
  function s(s) {
3498
- return /* @__PURE__ */ e(function(e) {
3495
+ return /* @__PURE__ */ __name(function(e) {
3499
3496
  o++;
3500
3497
  let c = a.sequenceItems.length - o + 1;
3501
- a.updateVal(e, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(e, "stopy", i + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "startx", t - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopx", r + c * Z.boxMargin, Math.max), s !== "activation" && (a.updateVal(e, "startx", t - c * Z.boxMargin, Math.min), a.updateVal(e, "stopx", r + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopy", i + c * Z.boxMargin, Math.max));
3498
+ a.updateVal(e, "starty", n - c * conf.boxMargin, Math.min), a.updateVal(e, "stopy", i + c * conf.boxMargin, Math.max), a.updateVal(bounds.data, "startx", t - c * conf.boxMargin, Math.min), a.updateVal(bounds.data, "stopx", r + c * conf.boxMargin, Math.max), s !== "activation" && (a.updateVal(e, "startx", t - c * conf.boxMargin, Math.min), a.updateVal(e, "stopx", r + c * conf.boxMargin, Math.max), a.updateVal(bounds.data, "starty", n - c * conf.boxMargin, Math.min), a.updateVal(bounds.data, "stopy", i + c * conf.boxMargin, Math.max));
3502
3499
  }, "updateItemBounds");
3503
3500
  }
3504
- e(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3501
+ __name(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3505
3502
  }, "updateBounds"),
3506
- insert: /* @__PURE__ */ e(function(e, t, n, r) {
3507
- let i = a.getMin(e, n), o = a.getMax(e, n), s = a.getMin(t, r), c = a.getMax(t, r);
3508
- this.updateVal(Q.data, "startx", i, Math.min), this.updateVal(Q.data, "starty", s, Math.min), this.updateVal(Q.data, "stopx", o, Math.max), this.updateVal(Q.data, "stopy", c, Math.max), this.updateBounds(i, s, o, c);
3503
+ insert: /* @__PURE__ */ __name(function(e, t, n, r) {
3504
+ let i = common_default.getMin(e, n), o = common_default.getMax(e, n), s = common_default.getMin(t, r), c = common_default.getMax(t, r);
3505
+ this.updateVal(bounds.data, "startx", i, Math.min), this.updateVal(bounds.data, "starty", s, Math.min), this.updateVal(bounds.data, "stopx", o, Math.max), this.updateVal(bounds.data, "stopy", c, Math.max), this.updateBounds(i, s, o, c);
3509
3506
  }, "insert"),
3510
- newActivation: /* @__PURE__ */ e(function(e, t, n) {
3511
- let r = n.get(e.from), i = Ue(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
3507
+ newActivation: /* @__PURE__ */ __name(function(e, t, n) {
3508
+ let r = n.get(e.from), i = actorActivations(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * conf.activationWidth / 2;
3512
3509
  this.activations.push({
3513
3510
  startx: a,
3514
3511
  starty: this.verticalPos + 2,
3515
- stopx: a + Z.activationWidth,
3512
+ stopx: a + conf.activationWidth,
3516
3513
  stopy: void 0,
3517
3514
  actor: e.from,
3518
- anchored: X.anchorElement(t)
3515
+ anchored: svgDraw_default.anchorElement(t)
3519
3516
  });
3520
3517
  }, "newActivation"),
3521
- endActivation: /* @__PURE__ */ e(function(e) {
3518
+ endActivation: /* @__PURE__ */ __name(function(e) {
3522
3519
  let t = this.activations.map(function(e) {
3523
3520
  return e.actor;
3524
3521
  }).lastIndexOf(e.from);
3525
3522
  return this.activations.splice(t, 1)[0];
3526
3523
  }, "endActivation"),
3527
- createLoop: /* @__PURE__ */ e(function(e = {
3524
+ createLoop: /* @__PURE__ */ __name(function(e = {
3528
3525
  message: void 0,
3529
3526
  wrap: !1,
3530
3527
  width: void 0
@@ -3541,59 +3538,59 @@ var F = P, I = {
3541
3538
  fill: t
3542
3539
  };
3543
3540
  }, "createLoop"),
3544
- newLoop: /* @__PURE__ */ e(function(e = {
3541
+ newLoop: /* @__PURE__ */ __name(function(e = {
3545
3542
  message: void 0,
3546
3543
  wrap: !1,
3547
3544
  width: void 0
3548
3545
  }, t) {
3549
3546
  this.sequenceItems.push(this.createLoop(e, t));
3550
3547
  }, "newLoop"),
3551
- endLoop: /* @__PURE__ */ e(function() {
3548
+ endLoop: /* @__PURE__ */ __name(function() {
3552
3549
  return this.sequenceItems.pop();
3553
3550
  }, "endLoop"),
3554
- isLoopOverlap: /* @__PURE__ */ e(function() {
3551
+ isLoopOverlap: /* @__PURE__ */ __name(function() {
3555
3552
  return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3556
3553
  }, "isLoopOverlap"),
3557
- addSectionToLoop: /* @__PURE__ */ e(function(e) {
3554
+ addSectionToLoop: /* @__PURE__ */ __name(function(e) {
3558
3555
  let t = this.sequenceItems.pop();
3559
3556
  t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3560
- y: Q.getVerticalPos(),
3557
+ y: bounds.getVerticalPos(),
3561
3558
  height: 0
3562
3559
  }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3563
3560
  }, "addSectionToLoop"),
3564
- saveVerticalPos: /* @__PURE__ */ e(function() {
3561
+ saveVerticalPos: /* @__PURE__ */ __name(function() {
3565
3562
  this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3566
3563
  }, "saveVerticalPos"),
3567
- resetVerticalPos: /* @__PURE__ */ e(function() {
3564
+ resetVerticalPos: /* @__PURE__ */ __name(function() {
3568
3565
  this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3569
3566
  }, "resetVerticalPos"),
3570
- bumpVerticalPos: /* @__PURE__ */ e(function(e) {
3571
- this.verticalPos += e, this.data.stopy = a.getMax(this.data.stopy, this.verticalPos);
3567
+ bumpVerticalPos: /* @__PURE__ */ __name(function(e) {
3568
+ this.verticalPos += e, this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
3572
3569
  }, "bumpVerticalPos"),
3573
- getVerticalPos: /* @__PURE__ */ e(function() {
3570
+ getVerticalPos: /* @__PURE__ */ __name(function() {
3574
3571
  return this.verticalPos;
3575
3572
  }, "getVerticalPos"),
3576
- getBounds: /* @__PURE__ */ e(function() {
3573
+ getBounds: /* @__PURE__ */ __name(function() {
3577
3574
  return {
3578
3575
  bounds: this.data,
3579
3576
  models: this.models
3580
3577
  };
3581
3578
  }, "getBounds")
3582
- }, Me = /* @__PURE__ */ e(async function(e, t, n) {
3583
- Q.bumpVerticalPos(Z.boxMargin), t.height = Z.boxMargin, t.starty = Q.getVerticalPos();
3584
- let r = A();
3585
- r.x = t.startx, r.y = t.starty, r.width = t.width || Z.width, r.class = "note";
3579
+ }, drawNote = /* @__PURE__ */ __name(async function(e, t, n) {
3580
+ bounds.bumpVerticalPos(conf.boxMargin), t.height = conf.boxMargin, t.starty = bounds.getVerticalPos();
3581
+ let r = getNoteRect();
3582
+ r.x = t.startx, r.y = t.starty, r.width = t.width || conf.width, r.class = "note";
3586
3583
  let i = e.append("g");
3587
3584
  i.attr("data-et", "note"), i.attr("data-id", "i" + n);
3588
- let a = X.drawRect(i, r), o = j();
3589
- o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily = Z.noteFontFamily, o.fontSize = Z.noteFontSize, o.fontWeight = Z.noteFontWeight, o.anchor = Z.noteAlign, o.textMargin = Z.noteMargin, o.valign = "center";
3590
- let s = p(o.text) ? await oe(i, o) : G(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3591
- a.attr("height", c + 2 * Z.noteMargin), t.height += c + 2 * Z.noteMargin, Q.bumpVerticalPos(c + 2 * Z.noteMargin), t.stopy = t.starty + c + 2 * Z.noteMargin, t.stopx = t.startx + r.width, Q.insert(t.startx, t.starty, t.stopx, t.stopy), Q.models.addNote(t);
3592
- }, "drawNote"), Ne = /* @__PURE__ */ e(function(t, n, r, i, a, o, s) {
3593
- let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = tt(n, i), g = t.append("g"), _ = 16.5, v = /* @__PURE__ */ e((e, t) => {
3585
+ let a = svgDraw_default.drawRect(i, r), o = getTextObj();
3586
+ o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily = conf.noteFontFamily, o.fontSize = conf.noteFontSize, o.fontWeight = conf.noteFontWeight, o.anchor = conf.noteAlign, o.textMargin = conf.noteMargin, o.valign = "center";
3587
+ let s = hasKatex(o.text) ? await drawKatex(i, o) : drawText(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3588
+ a.attr("height", c + 2 * conf.noteMargin), t.height += c + 2 * conf.noteMargin, bounds.bumpVerticalPos(c + 2 * conf.noteMargin), t.stopy = t.starty + c + 2 * conf.noteMargin, t.stopx = t.startx + r.width, bounds.insert(t.startx, t.starty, t.stopx, t.stopy), bounds.models.addNote(t);
3589
+ }, "drawNote"), drawCentralConnection = /* @__PURE__ */ __name(function(t, n, r, i, a, o, s) {
3590
+ let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = isReverseArrowType(n, i), g = t.append("g"), _ = 16.5, v = /* @__PURE__ */ __name((e, t) => {
3594
3591
  let n = e ? _ : -_;
3595
3592
  return t ? -n : n;
3596
- }, "getCircleOffset"), y = /* @__PURE__ */ e((e) => {
3593
+ }, "getCircleOffset"), y = /* @__PURE__ */ __name((e) => {
3597
3594
  g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3598
3595
  }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
3599
3596
  if (d) switch (n.centralConnection) {
@@ -3618,247 +3615,247 @@ var F = P, I = {
3618
3615
  y(f), y(p);
3619
3616
  break;
3620
3617
  }
3621
- }, "drawCentralConnection"), Pe = /* @__PURE__ */ e((e) => ({
3618
+ }, "drawCentralConnection"), messageFont = /* @__PURE__ */ __name((e) => ({
3622
3619
  fontFamily: e.messageFontFamily,
3623
3620
  fontSize: e.messageFontSize,
3624
3621
  fontWeight: e.messageFontWeight
3625
- }), "messageFont"), Fe = /* @__PURE__ */ e((e) => ({
3622
+ }), "messageFont"), noteFont = /* @__PURE__ */ __name((e) => ({
3626
3623
  fontFamily: e.noteFontFamily,
3627
3624
  fontSize: e.noteFontSize,
3628
3625
  fontWeight: e.noteFontWeight
3629
- }), "noteFont"), Ie = /* @__PURE__ */ e((e) => ({
3626
+ }), "noteFont"), actorFont = /* @__PURE__ */ __name((e) => ({
3630
3627
  fontFamily: e.actorFontFamily,
3631
3628
  fontSize: e.actorFontSize,
3632
3629
  fontWeight: e.actorFontWeight
3633
3630
  }), "actorFont");
3634
- async function Le(e, t) {
3635
- Q.bumpVerticalPos(10);
3636
- let { startx: n, stopx: i, message: o } = t, s = a.splitBreaks(o).length, c = p(o), l = c ? await r(o, u()) : T.calculateTextDimensions(o, Pe(Z));
3631
+ async function boundMessage(e, t) {
3632
+ bounds.bumpVerticalPos(10);
3633
+ let { startx: n, stopx: i, message: o } = t, s = common_default.splitBreaks(o).length, c = hasKatex(o), l = c ? await calculateMathMLDimensions(o, getConfig2()) : utils_default.calculateTextDimensions(o, messageFont(conf));
3637
3634
  if (!c) {
3638
3635
  let e = l.height / s;
3639
- t.height += e, Q.bumpVerticalPos(e);
3636
+ t.height += e, bounds.bumpVerticalPos(e);
3640
3637
  }
3641
3638
  let d, f = l.height - 10, m = l.width;
3642
3639
  if (n === i) {
3643
- d = Q.getVerticalPos() + f, Z.rightAngles || (f += Z.boxMargin, d = Q.getVerticalPos() + f), f += 30;
3644
- let e = a.getMax(m / 2, Z.width / 2);
3645
- Q.insert(n - e, Q.getVerticalPos() - 10 + f, i + e, Q.getVerticalPos() + 30 + f);
3646
- } else f += Z.boxMargin, d = Q.getVerticalPos() + f, Q.insert(n, d - 10, i, d);
3647
- return Q.bumpVerticalPos(f), t.height += f, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), d;
3640
+ d = bounds.getVerticalPos() + f, conf.rightAngles || (f += conf.boxMargin, d = bounds.getVerticalPos() + f), f += 30;
3641
+ let e = common_default.getMax(m / 2, conf.width / 2);
3642
+ bounds.insert(n - e, bounds.getVerticalPos() - 10 + f, i + e, bounds.getVerticalPos() + 30 + f);
3643
+ } else f += conf.boxMargin, d = bounds.getVerticalPos() + f, bounds.insert(n, d - 10, i, d);
3644
+ return bounds.bumpVerticalPos(f), t.height += f, t.stopy = t.starty + t.height, bounds.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), d;
3648
3645
  }
3649
- e(Le, "boundMessage");
3650
- var Re = /* @__PURE__ */ e(async function(e, t, n, r, i, o) {
3651
- let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: m, sequenceVisible: h } = t, g = T.calculateTextDimensions(u, Pe(Z)), _ = j();
3652
- _.x = s, _.y = l + 10, _.width = c - s, _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = Z.messageFontFamily, _.fontSize = Z.messageFontSize, _.fontWeight = Z.messageFontWeight, _.anchor = Z.messageAlign, _.valign = "center", _.textMargin = Z.wrapPadding, _.tspan = !1, p(_.text) ? await oe(e, _, {
3646
+ __name(boundMessage, "boundMessage");
3647
+ var drawMessage = /* @__PURE__ */ __name(async function(e, t, n, r, i, o) {
3648
+ let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: m, sequenceVisible: h } = t, g = utils_default.calculateTextDimensions(u, messageFont(conf)), _ = getTextObj();
3649
+ _.x = s, _.y = l + 10, _.width = c - s, _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = conf.messageFontFamily, _.fontSize = conf.messageFontSize, _.fontWeight = conf.messageFontWeight, _.anchor = conf.messageAlign, _.valign = "center", _.textMargin = conf.wrapPadding, _.tspan = !1, hasKatex(_.text) ? await drawKatex(e, _, {
3653
3650
  startx: s,
3654
3651
  stopx: c,
3655
3652
  starty: n
3656
- }) : G(e, _);
3653
+ }) : drawText(e, _);
3657
3654
  let v = g.width, y;
3658
3655
  if (s === c) {
3659
- let o = h || Z.showSequenceNumbers, l = tt(i, r), u = nt(i, r), d = s + (o && (l || u) ? 10 : 0);
3660
- y = Z.rightAngles ? e.append("path").attr("d", `M ${d},${n} H ${s + a.getMax(Z.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + d + "," + n + " C " + (d + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), $e(i, r) && Ne(e, i, t, r, s, c, n);
3661
- } else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", c), y.attr("y2", n), $e(i, r) && Ne(e, i, t, r, s, c, n);
3656
+ let o = h || conf.showSequenceNumbers, l = isReverseArrowType(i, r), u = isBidirectionalArrowType(i, r), d = s + (o && (l || u) ? 10 : 0);
3657
+ y = conf.rightAngles ? e.append("path").attr("d", `M ${d},${n} H ${s + common_default.getMax(conf.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + d + "," + n + " C " + (d + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), hasCentralConnection(i, r) && drawCentralConnection(e, i, t, r, s, c, n);
3658
+ } else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", c), y.attr("y2", n), hasCentralConnection(i, r) && drawCentralConnection(e, i, t, r, s, c, n);
3662
3659
  d === r.db.LINETYPE.DOTTED || d === r.db.LINETYPE.DOTTED_CROSS || d === r.db.LINETYPE.DOTTED_POINT || d === r.db.LINETYPE.DOTTED_OPEN || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === r.db.LINETYPE.SOLID_TOP_DOTTED || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === r.db.LINETYPE.STICK_TOP_DOTTED || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (y.style("stroke-dasharray", "3, 3"), y.attr("class", "messageLine1")) : y.attr("class", "messageLine0"), y.attr("data-et", "message"), y.attr("data-id", "i" + t.id), y.attr("data-from", t.from), y.attr("data-to", t.to);
3663
3660
  let b = "";
3664
- if (Z.arrowMarkerAbsolute && (b = f(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (d === r.db.LINETYPE.SOLID_TOP || d === r.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.SOLID_BOTTOM || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.STICK_TOP || d === r.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.STICK_BOTTOM || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.SOLID || d === r.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (d === r.db.LINETYPE.SOLID_POINT || d === r.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (d === r.db.LINETYPE.SOLID_CROSS || d === r.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), h || Z.showSequenceNumbers) {
3665
- let a = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = $e(i, r), f = s, p = c;
3661
+ if (conf.arrowMarkerAbsolute && (b = getUrl(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (d === r.db.LINETYPE.SOLID_TOP || d === r.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.SOLID_BOTTOM || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.STICK_TOP || d === r.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.STICK_BOTTOM || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.SOLID || d === r.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (d === r.db.LINETYPE.SOLID_POINT || d === r.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (d === r.db.LINETYPE.SOLID_CROSS || d === r.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), h || conf.showSequenceNumbers) {
3662
+ let a = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = hasCentralConnection(i, r), f = s, p = c;
3666
3663
  a ? (s < c ? f = s + 12 : (f = s - 6 + (u ? -5 : 0), f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", f)) : l ? (c > s ? p = c - 12 : (p = c - 6, f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += u ? 15 : 0, y.attr("x2", p), y.attr("x1", f)) : y.attr("x1", s + 6);
3667
3664
  let h = 0, g = s === c, _ = s <= c;
3668
3665
  h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(m);
3669
3666
  }
3670
- }, "drawMessage"), ze = /* @__PURE__ */ e(function(e, t, n, r, i, o, s) {
3667
+ }, "drawMessage"), addActorRenderingData = /* @__PURE__ */ __name(function(e, t, n, r, i, o, s) {
3671
3668
  let c = 0, l = 0, u, d = 0;
3672
3669
  for (let e of r) {
3673
3670
  let r = t.get(e), o = r.box;
3674
- u && u != o && (s || Q.models.addBox(u), l += Z.boxMargin + u.margin), o && o != u && (s || (o.x = c + l, o.y = i), l += o.margin), r.width = a.getMax(r.width || Z.width, Z.width), r.height = a.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, d = a.getMax(d, r.height), n.get(r.name) && (l += r.width / 2), r.x = c + l, r.starty = Q.getVerticalPos(), Q.insert(r.x, i, r.x + r.width, r.height), c += r.width + l, r.box && (r.box.width = c + o.margin - r.box.x), l = r.margin, u = r.box, Q.models.addActor(r);
3671
+ u && u != o && (s || bounds.models.addBox(u), l += conf.boxMargin + u.margin), o && o != u && (s || (o.x = c + l, o.y = i), l += o.margin), r.width = common_default.getMax(r.width || conf.width, conf.width), r.height = common_default.getMax(r.height || conf.height, conf.height), r.margin = r.margin || conf.actorMargin, d = common_default.getMax(d, r.height), n.get(r.name) && (l += r.width / 2), r.x = c + l, r.starty = bounds.getVerticalPos(), bounds.insert(r.x, i, r.x + r.width, r.height), c += r.width + l, r.box && (r.box.width = c + o.margin - r.box.x), l = r.margin, u = r.box, bounds.models.addActor(r);
3675
3672
  }
3676
- u && !s && Q.models.addBox(u), Q.bumpVerticalPos(d);
3677
- }, "addActorRenderingData"), Be = /* @__PURE__ */ e(async function(e, t, n, r, i, o, s) {
3673
+ u && !s && bounds.models.addBox(u), bounds.bumpVerticalPos(d);
3674
+ }, "addActorRenderingData"), drawActors = /* @__PURE__ */ __name(async function(e, t, n, r, i, o, s) {
3678
3675
  if (r) {
3679
3676
  let r = 0;
3680
- Q.bumpVerticalPos(Z.boxMargin * 2);
3677
+ bounds.bumpVerticalPos(conf.boxMargin * 2);
3681
3678
  for (let c of n) {
3682
3679
  let n = t.get(c);
3683
- n.stopy ||= Q.getVerticalPos();
3684
- let l = await X.drawActor(e, n, Z, !0, i, o, s);
3685
- r = a.getMax(r, l);
3680
+ n.stopy ||= bounds.getVerticalPos();
3681
+ let l = await svgDraw_default.drawActor(e, n, conf, !0, i, o, s);
3682
+ r = common_default.getMax(r, l);
3686
3683
  }
3687
- Q.bumpVerticalPos(r + Z.boxMargin);
3684
+ bounds.bumpVerticalPos(r + conf.boxMargin);
3688
3685
  } else for (let r of n) {
3689
3686
  let n = t.get(r);
3690
- await X.drawActor(e, n, Z, !1, i, o, s);
3687
+ await svgDraw_default.drawActor(e, n, conf, !1, i, o, s);
3691
3688
  }
3692
- }, "drawActors"), Ve = /* @__PURE__ */ e(function(e, t, n, r) {
3689
+ }, "drawActors"), drawActorsPopup = /* @__PURE__ */ __name(function(e, t, n, r) {
3693
3690
  let i = 0, a = 0;
3694
3691
  for (let o of n) {
3695
- let n = t.get(o), s = Je(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
3692
+ let n = t.get(o), s = getRequiredPopupWidth(n), c = svgDraw_default.drawPopup(e, n, s, conf, conf.forceMenus, r);
3696
3693
  c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
3697
3694
  }
3698
3695
  return {
3699
3696
  maxHeight: i,
3700
3697
  maxWidth: a
3701
3698
  };
3702
- }, "drawActorsPopup"), He = /* @__PURE__ */ e(function(e) {
3703
- n(Z, e), e.fontFamily && (Z.actorFontFamily = Z.noteFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.actorFontSize = Z.noteFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.actorFontWeight = Z.noteFontWeight = Z.messageFontWeight = e.fontWeight);
3704
- }, "setConf"), Ue = /* @__PURE__ */ e(function(e) {
3705
- return Q.activations.filter(function(t) {
3699
+ }, "drawActorsPopup"), setConf = /* @__PURE__ */ __name(function(e) {
3700
+ assignWithDepth_default(conf, e), e.fontFamily && (conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = e.fontFamily), e.fontSize && (conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = e.fontSize), e.fontWeight && (conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = e.fontWeight);
3701
+ }, "setConf"), actorActivations = /* @__PURE__ */ __name(function(e) {
3702
+ return bounds.activations.filter(function(t) {
3706
3703
  return t.actor === e;
3707
3704
  });
3708
- }, "actorActivations"), We = /* @__PURE__ */ e(function(e, t) {
3709
- let n = t.get(e), r = Ue(e);
3705
+ }, "actorActivations"), activationBounds = /* @__PURE__ */ __name(function(e, t) {
3706
+ let n = t.get(e), r = actorActivations(e);
3710
3707
  return [r.reduce(function(e, t) {
3711
- return a.getMin(e, t.startx);
3708
+ return common_default.getMin(e, t.startx);
3712
3709
  }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3713
- return a.getMax(e, t.stopx);
3710
+ return common_default.getMax(e, t.stopx);
3714
3711
  }, n.x + n.width / 2 + 1)];
3715
3712
  }, "activationBounds");
3716
- function $(e, n, r, i, o) {
3717
- Q.bumpVerticalPos(r);
3713
+ function adjustLoopHeightForWrap(e, n, r, i, o) {
3714
+ bounds.bumpVerticalPos(r);
3718
3715
  let s = i;
3719
3716
  if (n.id && n.message && e[n.id]) {
3720
- let r = e[n.id].width, o = Pe(Z);
3721
- n.message = T.wrapLabel(`[${n.message}]`, r - 2 * Z.wrapPadding, o), n.width = r, n.wrap = !0;
3722
- let c = T.calculateTextDimensions(n.message, o), l = a.getMax(c.height, Z.labelBoxHeight);
3723
- s = i + l, t.debug(`${l} - ${n.message}`);
3717
+ let r = e[n.id].width, o = messageFont(conf);
3718
+ n.message = utils_default.wrapLabel(`[${n.message}]`, r - 2 * conf.wrapPadding, o), n.width = r, n.wrap = !0;
3719
+ let c = utils_default.calculateTextDimensions(n.message, o), l = common_default.getMax(c.height, conf.labelBoxHeight);
3720
+ s = i + l, log.debug(`${l} - ${n.message}`);
3724
3721
  }
3725
- o(n), Q.bumpVerticalPos(s);
3722
+ o(n), bounds.bumpVerticalPos(s);
3726
3723
  }
3727
- e($, "adjustLoopHeightForWrap");
3728
- function Ge(t, n, r, i, a, o, s) {
3724
+ __name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
3725
+ function adjustCreatedDestroyedData(t, n, r, i, a, o, s) {
3729
3726
  function c(e, r) {
3730
- e.x < a.get(t.from).x ? (Q.insert(n.stopx - r, n.starty, n.startx, n.stopy + e.height / 2 + Z.noteMargin), n.stopx += r) : (Q.insert(n.startx, n.starty, n.stopx + r, n.stopy + e.height / 2 + Z.noteMargin), n.stopx -= r);
3727
+ e.x < a.get(t.from).x ? (bounds.insert(n.stopx - r, n.starty, n.startx, n.stopy + e.height / 2 + conf.noteMargin), n.stopx += r) : (bounds.insert(n.startx, n.starty, n.stopx + r, n.stopy + e.height / 2 + conf.noteMargin), n.stopx -= r);
3731
3728
  }
3732
- e(c, "receiverAdjustment");
3729
+ __name(c, "receiverAdjustment");
3733
3730
  function l(e, r) {
3734
- e.x < a.get(t.to).x ? (Q.insert(n.startx - r, n.starty, n.stopx, n.stopy + e.height / 2 + Z.noteMargin), n.startx += r) : (Q.insert(n.stopx, n.starty, n.startx + r, n.stopy + e.height / 2 + Z.noteMargin), n.startx -= r);
3731
+ e.x < a.get(t.to).x ? (bounds.insert(n.startx - r, n.starty, n.stopx, n.stopy + e.height / 2 + conf.noteMargin), n.startx += r) : (bounds.insert(n.stopx, n.starty, n.startx + r, n.stopy + e.height / 2 + conf.noteMargin), n.startx -= r);
3735
3732
  }
3736
- e(l, "senderAdjustment");
3733
+ __name(l, "senderAdjustment");
3737
3734
  let u = [
3738
- R.ACTOR,
3739
- R.CONTROL,
3740
- R.ENTITY,
3741
- R.DATABASE
3735
+ PARTICIPANT_TYPE.ACTOR,
3736
+ PARTICIPANT_TYPE.CONTROL,
3737
+ PARTICIPANT_TYPE.ENTITY,
3738
+ PARTICIPANT_TYPE.DATABASE
3742
3739
  ];
3743
3740
  if (o.get(t.to) == i) {
3744
3741
  let e = a.get(t.to);
3745
- c(e, u.includes(e.type) ? z / 2 + 3 : e.width / 2 + 3), e.starty = r - e.height / 2, Q.bumpVerticalPos(e.height / 2);
3742
+ c(e, u.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : e.width / 2 + 3), e.starty = r - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
3746
3743
  } else if (s.get(t.from) == i) {
3747
3744
  let e = a.get(t.from);
3748
- Z.mirrorActors && l(e, u.includes(e.type) ? z / 2 : e.width / 2), e.stopy = r - e.height / 2, Q.bumpVerticalPos(e.height / 2);
3745
+ conf.mirrorActors && l(e, u.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 : e.width / 2), e.stopy = r - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
3749
3746
  } else if (s.get(t.to) == i) {
3750
3747
  let e = a.get(t.to);
3751
- Z.mirrorActors && c(e, u.includes(e.type) ? z / 2 + 3 : e.width / 2 + 3), e.stopy = r - e.height / 2, Q.bumpVerticalPos(e.height / 2);
3748
+ conf.mirrorActors && c(e, u.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : e.width / 2 + 3), e.stopy = r - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
3752
3749
  }
3753
3750
  }
3754
- e(Ge, "adjustCreatedDestroyedData");
3755
- var Ke = /* @__PURE__ */ e(async function(n, r, i, a) {
3756
- let { securityLevel: s, sequence: c, look: l } = u();
3757
- Z = c;
3751
+ __name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
3752
+ var draw = /* @__PURE__ */ __name(async function(n, r, i, a) {
3753
+ let { securityLevel: s, sequence: c, look: l } = getConfig2();
3754
+ conf = c;
3758
3755
  let d;
3759
- s === "sandbox" && (d = b("#i" + r));
3760
- let f = b(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? d.nodes()[0].contentDocument : document;
3761
- Q.init(), t.debug(a.db);
3762
- let m = s === "sandbox" ? f.select(`[id="${r}"]`) : b(`[id="${r}"]`), h = a.db.getActors(), g = a.db.getCreatedActors(), _ = a.db.getDestroyedActors(), v = a.db.getBoxes(), y = a.db.getActorKeys(), x = a.db.getMessages(), S = a.db.getDiagramTitle(), C = a.db.hasAtLeastOneBox(), w = a.db.hasAtLeastOneBoxWithTitle(), T = await qe(h, x, a);
3763
- if (Z.height = await Ye(h, T, v), X.insertComputerIcon(m, r), X.insertDatabaseIcon(m, r), X.insertClockIcon(m, r), C && (Q.bumpVerticalPos(Z.boxMargin), w && Q.bumpVerticalPos(v[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
3756
+ s === "sandbox" && (d = select_default("#i" + r));
3757
+ let f = select_default(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? d.nodes()[0].contentDocument : document;
3758
+ bounds.init(), log.debug(a.db);
3759
+ let m = s === "sandbox" ? f.select(`[id="${r}"]`) : select_default(`[id="${r}"]`), h = a.db.getActors(), g = a.db.getCreatedActors(), _ = a.db.getDestroyedActors(), v = a.db.getBoxes(), y = a.db.getActorKeys(), x = a.db.getMessages(), S = a.db.getDiagramTitle(), C = a.db.hasAtLeastOneBox(), w = a.db.hasAtLeastOneBoxWithTitle(), T = await getMaxMessageWidthPerActor(h, x, a);
3760
+ if (conf.height = await calculateActorMargins(h, T, v), svgDraw_default.insertComputerIcon(m, r), svgDraw_default.insertDatabaseIcon(m, r), svgDraw_default.insertClockIcon(m, r), C && (bounds.bumpVerticalPos(conf.boxMargin), w && bounds.bumpVerticalPos(v[0].textMaxHeight)), conf.hideUnusedParticipants === !0) {
3764
3761
  let e = /* @__PURE__ */ new Set();
3765
3762
  x.forEach((t) => {
3766
3763
  e.add(t.from), e.add(t.to);
3767
3764
  }), y = y.filter((t) => e.has(t));
3768
3765
  }
3769
3766
  let E = new Map(y.map((e, t) => [h.get(e)?.name ?? e, t]));
3770
- ze(m, h, g, y, 0, x, !1);
3771
- let D = await it(x, h, T, a);
3772
- X.insertArrowHead(m, r), X.insertArrowCrossHead(m, r), X.insertArrowFilledHead(m, r), X.insertSequenceNumber(m, r), X.insertSolidTopArrowHead(m, r), X.insertSolidBottomArrowHead(m, r), X.insertStickTopArrowHead(m, r), X.insertStickBottomArrowHead(m, r), l === "neo" && X.insertDropShadow(m, Z);
3767
+ addActorRenderingData(m, h, g, y, 0, x, !1);
3768
+ let D = await calculateLoopBounds(x, h, T, a);
3769
+ svgDraw_default.insertArrowHead(m, r), svgDraw_default.insertArrowCrossHead(m, r), svgDraw_default.insertArrowFilledHead(m, r), svgDraw_default.insertSequenceNumber(m, r), svgDraw_default.insertSolidTopArrowHead(m, r), svgDraw_default.insertSolidBottomArrowHead(m, r), svgDraw_default.insertStickTopArrowHead(m, r), svgDraw_default.insertStickBottomArrowHead(m, r), l === "neo" && svgDraw_default.insertDropShadow(m, conf);
3773
3770
  function O(e, t) {
3774
- let n = Q.endActivation(e);
3775
- n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(m, n, t, Z, Ue(e.from).length, a, E), Q.insert(n.startx, t - 10, n.stopx, t);
3771
+ let n = bounds.endActivation(e);
3772
+ n.starty + 18 > t && (n.starty = t - 6, t += 12), svgDraw_default.drawActivation(m, n, t, conf, actorActivations(e.from).length, a, E), bounds.insert(n.startx, t - 10, n.stopx, t);
3776
3773
  }
3777
- e(O, "activeEnd");
3774
+ __name(O, "activeEnd");
3778
3775
  let k = 1, A = 1, j = [], M = [], N = 0;
3779
3776
  for (let e of x) {
3780
3777
  let n, r, i;
3781
3778
  switch (e.type) {
3782
3779
  case a.db.LINETYPE.NOTE:
3783
- Q.resetVerticalPos(), r = e.noteModel, await Me(m, r, e.id);
3780
+ bounds.resetVerticalPos(), r = e.noteModel, await drawNote(m, r, e.id);
3784
3781
  break;
3785
3782
  case a.db.LINETYPE.ACTIVE_START:
3786
- Q.newActivation(e, m, h);
3783
+ bounds.newActivation(e, m, h);
3787
3784
  break;
3788
3785
  case a.db.LINETYPE.CENTRAL_CONNECTION:
3789
- Q.newActivation(e, m, h);
3786
+ bounds.newActivation(e, m, h);
3790
3787
  break;
3791
3788
  case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3792
- Q.newActivation(e, m, h);
3789
+ bounds.newActivation(e, m, h);
3793
3790
  break;
3794
3791
  case a.db.LINETYPE.ACTIVE_END:
3795
- O(e, Q.getVerticalPos());
3792
+ O(e, bounds.getVerticalPos());
3796
3793
  break;
3797
3794
  case a.db.LINETYPE.LOOP_START:
3798
- $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3795
+ adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3799
3796
  break;
3800
3797
  case a.db.LINETYPE.LOOP_END:
3801
- n = Q.endLoop(), await X.drawLoop(m, n, "loop", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3798
+ n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "loop", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
3802
3799
  break;
3803
3800
  case a.db.LINETYPE.RECT_START:
3804
- $(D, e, Z.boxMargin, Z.boxMargin, (e) => Q.newLoop(void 0, e.message));
3801
+ adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin, (e) => bounds.newLoop(void 0, e.message));
3805
3802
  break;
3806
3803
  case a.db.LINETYPE.RECT_END:
3807
- n = Q.endLoop(), M.push(n), Q.models.addLoop(n), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos());
3804
+ n = bounds.endLoop(), M.push(n), bounds.models.addLoop(n), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos());
3808
3805
  break;
3809
3806
  case a.db.LINETYPE.OPT_START:
3810
- $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3807
+ adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3811
3808
  break;
3812
3809
  case a.db.LINETYPE.OPT_END:
3813
- n = Q.endLoop(), await X.drawLoop(m, n, "opt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3810
+ n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "opt", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
3814
3811
  break;
3815
3812
  case a.db.LINETYPE.ALT_START:
3816
- $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3813
+ adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3817
3814
  break;
3818
3815
  case a.db.LINETYPE.ALT_ELSE:
3819
- $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3816
+ adjustLoopHeightForWrap(D, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
3820
3817
  break;
3821
3818
  case a.db.LINETYPE.ALT_END:
3822
- n = Q.endLoop(), await X.drawLoop(m, n, "alt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3819
+ n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "alt", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
3823
3820
  break;
3824
3821
  case a.db.LINETYPE.PAR_START:
3825
3822
  case a.db.LINETYPE.PAR_OVER_START:
3826
- $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e)), Q.saveVerticalPos();
3823
+ adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e)), bounds.saveVerticalPos();
3827
3824
  break;
3828
3825
  case a.db.LINETYPE.PAR_AND:
3829
- $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3826
+ adjustLoopHeightForWrap(D, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
3830
3827
  break;
3831
3828
  case a.db.LINETYPE.PAR_END:
3832
- n = Q.endLoop(), await X.drawLoop(m, n, "par", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3829
+ n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "par", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
3833
3830
  break;
3834
3831
  case a.db.LINETYPE.AUTONUMBER:
3835
3832
  k = e.message.start || k, A = e.message.step || A, e.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
3836
3833
  break;
3837
3834
  case a.db.LINETYPE.CRITICAL_START:
3838
- $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3835
+ adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3839
3836
  break;
3840
3837
  case a.db.LINETYPE.CRITICAL_OPTION:
3841
- $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3838
+ adjustLoopHeightForWrap(D, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
3842
3839
  break;
3843
3840
  case a.db.LINETYPE.CRITICAL_END:
3844
- n = Q.endLoop(), await X.drawLoop(m, n, "critical", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3841
+ n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "critical", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
3845
3842
  break;
3846
3843
  case a.db.LINETYPE.BREAK_START:
3847
- $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3844
+ adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3848
3845
  break;
3849
3846
  case a.db.LINETYPE.BREAK_END:
3850
- n = Q.endLoop(), await X.drawLoop(m, n, "break", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3847
+ n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "break", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
3851
3848
  break;
3852
3849
  default: try {
3853
- i = e.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = a.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
3854
- let t = await Le(m, i);
3855
- Ge(e, i, t, N, h, g, _), j.push({
3850
+ i = e.msgModel, i.starty = bounds.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = a.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
3851
+ let t = await boundMessage(m, i);
3852
+ adjustCreatedDestroyedData(e, i, t, N, h, g, _), j.push({
3856
3853
  messageModel: i,
3857
3854
  lineStartY: t,
3858
3855
  msg: e
3859
- }), Q.models.addMessage(i);
3856
+ }), bounds.models.addMessage(i);
3860
3857
  } catch (e) {
3861
- t.error("error while drawing message", e);
3858
+ log.error("error while drawing message", e);
3862
3859
  }
3863
3860
  }
3864
3861
  [
@@ -3890,84 +3887,84 @@ var Ke = /* @__PURE__ */ e(async function(n, r, i, a) {
3890
3887
  a.db.LINETYPE.BIDIRECTIONAL_DOTTED
3891
3888
  ].includes(e.type) && (k += A), N++;
3892
3889
  }
3893
- t.debug("createdActors", g), t.debug("destroyedActors", _), await Be(m, h, y, !1, r, a, E);
3894
- for (let e of j) await Re(m, e.messageModel, e.lineStartY, a, e.msg, r);
3895
- Z.mirrorActors && await Be(m, h, y, !0, r, a, E), M.forEach((e) => X.drawBackgroundRect(m, e)), ce(m, h, y, Z);
3896
- for (let e of Q.models.boxes) {
3897
- e.height = Q.getVerticalPos() - e.y, Q.insert(e.x, e.y, e.x + e.width, e.height);
3898
- let t = Z.boxMargin * 2;
3899
- e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", X.drawBox(m, e, Z);
3890
+ log.debug("createdActors", g), log.debug("destroyedActors", _), await drawActors(m, h, y, !1, r, a, E);
3891
+ for (let e of j) await drawMessage(m, e.messageModel, e.lineStartY, a, e.msg, r);
3892
+ conf.mirrorActors && await drawActors(m, h, y, !0, r, a, E), M.forEach((e) => svgDraw_default.drawBackgroundRect(m, e)), fixLifeLineHeights(m, h, y, conf);
3893
+ for (let e of bounds.models.boxes) {
3894
+ e.height = bounds.getVerticalPos() - e.y, bounds.insert(e.x, e.y, e.x + e.width, e.height);
3895
+ let t = conf.boxMargin * 2;
3896
+ e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", svgDraw_default.drawBox(m, e, conf);
3900
3897
  }
3901
- C && Q.bumpVerticalPos(Z.boxMargin);
3902
- let P = Ve(m, h, y, p), { bounds: F } = Q.getBounds();
3898
+ C && bounds.bumpVerticalPos(conf.boxMargin);
3899
+ let P = drawActorsPopup(m, h, y, p), { bounds: F } = bounds.getBounds();
3903
3900
  F.startx === void 0 && (F.startx = 0), F.starty === void 0 && (F.starty = 0), F.stopx === void 0 && (F.stopx = 0), F.stopy === void 0 && (F.stopy = 0);
3904
3901
  let I = F.stopy - F.starty;
3905
3902
  I < P.maxHeight && (I = P.maxHeight);
3906
- let L = I + 2 * Z.diagramMarginY;
3907
- Z.mirrorActors && (L = L - Z.boxMargin + Z.bottomMarginAdj);
3908
- let ee = F.stopx - F.startx;
3909
- ee < P.maxWidth && (ee = P.maxWidth);
3910
- let R = ee + 2 * Z.diagramMarginX;
3911
- S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), o(m, L, R, Z.useMaxWidth);
3912
- let te = S ? 40 : 0, ne = h.size && l === "neo" ? 30 : 0;
3913
- m.attr("viewBox", F.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + te) + " " + R + " " + (L + te + ne)), t.debug("models:", Q.models);
3903
+ let L = I + 2 * conf.diagramMarginY;
3904
+ conf.mirrorActors && (L = L - conf.boxMargin + conf.bottomMarginAdj);
3905
+ let R = F.stopx - F.startx;
3906
+ R < P.maxWidth && (R = P.maxWidth);
3907
+ let z = R + 2 * conf.diagramMarginX;
3908
+ S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25), configureSvgSize(m, L, z, conf.useMaxWidth);
3909
+ let B = S ? 40 : 0, V = h.size && l === "neo" ? 30 : 0;
3910
+ m.attr("viewBox", F.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + B) + " " + z + " " + (L + B + V)), log.debug("models:", bounds.models);
3914
3911
  }, "draw");
3915
- async function qe(e, n, i) {
3912
+ async function getMaxMessageWidthPerActor(e, n, i) {
3916
3913
  let o = {};
3917
3914
  for (let t of n) if (e.get(t.to) && e.get(t.from)) {
3918
3915
  let n = e.get(t.to);
3919
3916
  if (t.placement === i.db.PLACEMENT.LEFTOF && !n.prevActor || t.placement === i.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
3920
- let s = t.placement !== void 0, c = !s, l = s ? Fe(Z) : Pe(Z), d = t.wrap ? T.wrapLabel(t.message, Z.width - 2 * Z.wrapPadding, l) : t.message, f = (p(d) ? await r(t.message, u()) : T.calculateTextDimensions(d, l)).width + 2 * Z.wrapPadding;
3921
- c && t.from === n.nextActor ? o[t.to] = a.getMax(o[t.to] || 0, f) : c && t.from === n.prevActor ? o[t.from] = a.getMax(o[t.from] || 0, f) : c && t.from === t.to ? (o[t.from] = a.getMax(o[t.from] || 0, f / 2), o[t.to] = a.getMax(o[t.to] || 0, f / 2)) : t.placement === i.db.PLACEMENT.RIGHTOF ? o[t.from] = a.getMax(o[t.from] || 0, f) : t.placement === i.db.PLACEMENT.LEFTOF ? o[n.prevActor] = a.getMax(o[n.prevActor] || 0, f) : t.placement === i.db.PLACEMENT.OVER && (n.prevActor && (o[n.prevActor] = a.getMax(o[n.prevActor] || 0, f / 2)), n.nextActor && (o[t.from] = a.getMax(o[t.from] || 0, f / 2)));
3917
+ let s = t.placement !== void 0, c = !s, l = s ? noteFont(conf) : messageFont(conf), d = t.wrap ? utils_default.wrapLabel(t.message, conf.width - 2 * conf.wrapPadding, l) : t.message, f = (hasKatex(d) ? await calculateMathMLDimensions(t.message, getConfig2()) : utils_default.calculateTextDimensions(d, l)).width + 2 * conf.wrapPadding;
3918
+ c && t.from === n.nextActor ? o[t.to] = common_default.getMax(o[t.to] || 0, f) : c && t.from === n.prevActor ? o[t.from] = common_default.getMax(o[t.from] || 0, f) : c && t.from === t.to ? (o[t.from] = common_default.getMax(o[t.from] || 0, f / 2), o[t.to] = common_default.getMax(o[t.to] || 0, f / 2)) : t.placement === i.db.PLACEMENT.RIGHTOF ? o[t.from] = common_default.getMax(o[t.from] || 0, f) : t.placement === i.db.PLACEMENT.LEFTOF ? o[n.prevActor] = common_default.getMax(o[n.prevActor] || 0, f) : t.placement === i.db.PLACEMENT.OVER && (n.prevActor && (o[n.prevActor] = common_default.getMax(o[n.prevActor] || 0, f / 2)), n.nextActor && (o[t.from] = common_default.getMax(o[t.from] || 0, f / 2)));
3922
3919
  }
3923
- return t.debug("maxMessageWidthPerActor:", o), o;
3920
+ return log.debug("maxMessageWidthPerActor:", o), o;
3924
3921
  }
3925
- e(qe, "getMaxMessageWidthPerActor");
3926
- var Je = /* @__PURE__ */ e(function(e) {
3927
- let t = 0, n = Ie(Z);
3922
+ __name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
3923
+ var getRequiredPopupWidth = /* @__PURE__ */ __name(function(e) {
3924
+ let t = 0, n = actorFont(conf);
3928
3925
  for (let r in e.links) {
3929
- let e = T.calculateTextDimensions(r, n).width + 2 * Z.wrapPadding + 2 * Z.boxMargin;
3926
+ let e = utils_default.calculateTextDimensions(r, n).width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
3930
3927
  t < e && (t = e);
3931
3928
  }
3932
3929
  return t;
3933
3930
  }, "getRequiredPopupWidth");
3934
- async function Ye(e, t, n) {
3931
+ async function calculateActorMargins(e, t, n) {
3935
3932
  let i = 0;
3936
3933
  for (let t of e.keys()) {
3937
3934
  let n = e.get(t);
3938
- n.wrap && (n.description = T.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ie(Z)));
3939
- let o = p(n.description) ? await r(n.description, u()) : T.calculateTextDimensions(n.description, Ie(Z));
3940
- n.width = n.wrap ? Z.width : a.getMax(Z.width, o.width + 2 * Z.wrapPadding), n.height = n.wrap ? a.getMax(o.height, Z.height) : Z.height, i = a.getMax(i, n.height);
3935
+ n.wrap && (n.description = utils_default.wrapLabel(n.description, conf.width - 2 * conf.wrapPadding, actorFont(conf)));
3936
+ let o = hasKatex(n.description) ? await calculateMathMLDimensions(n.description, getConfig2()) : utils_default.calculateTextDimensions(n.description, actorFont(conf));
3937
+ n.width = n.wrap ? conf.width : common_default.getMax(conf.width, o.width + 2 * conf.wrapPadding), n.height = n.wrap ? common_default.getMax(o.height, conf.height) : conf.height, i = common_default.getMax(i, n.height);
3941
3938
  }
3942
3939
  for (let n in t) {
3943
3940
  let r = e.get(n);
3944
3941
  if (!r) continue;
3945
3942
  let i = e.get(r.nextActor);
3946
3943
  if (!i) {
3947
- let e = t[n] + Z.actorMargin - r.width / 2;
3948
- r.margin = a.getMax(e, Z.actorMargin);
3944
+ let e = t[n] + conf.actorMargin - r.width / 2;
3945
+ r.margin = common_default.getMax(e, conf.actorMargin);
3949
3946
  continue;
3950
3947
  }
3951
- let o = t[n] + Z.actorMargin - r.width / 2 - i.width / 2;
3952
- r.margin = a.getMax(o, Z.actorMargin);
3948
+ let o = t[n] + conf.actorMargin - r.width / 2 - i.width / 2;
3949
+ r.margin = common_default.getMax(o, conf.actorMargin);
3953
3950
  }
3954
3951
  let o = 0;
3955
3952
  return n.forEach((t) => {
3956
- let n = Pe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), i = Z.boxMargin * 8;
3957
- r += i, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = T.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
3958
- let s = T.calculateTextDimensions(t.name, n);
3959
- o = a.getMax(s.height, o);
3960
- let c = a.getMax(r, s.width + 2 * Z.wrapPadding);
3961
- if (t.margin = Z.boxTextMargin, r < c) {
3953
+ let n = messageFont(conf), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), i = conf.boxMargin * 8;
3954
+ r += i, r -= 2 * conf.boxTextMargin, t.wrap && (t.name = utils_default.wrapLabel(t.name, r - 2 * conf.wrapPadding, n));
3955
+ let s = utils_default.calculateTextDimensions(t.name, n);
3956
+ o = common_default.getMax(s.height, o);
3957
+ let c = common_default.getMax(r, s.width + 2 * conf.wrapPadding);
3958
+ if (t.margin = conf.boxTextMargin, r < c) {
3962
3959
  let e = (c - r) / 2;
3963
3960
  t.margin += e;
3964
3961
  }
3965
- }), n.forEach((e) => e.textMaxHeight = o), a.getMax(i, Z.height);
3962
+ }), n.forEach((e) => e.textMaxHeight = o), common_default.getMax(i, conf.height);
3966
3963
  }
3967
- e(Ye, "calculateActorMargins");
3968
- var Xe = /* @__PURE__ */ e(async function(e, n, i) {
3969
- let o = n.get(e.from), s = n.get(e.to), c = o.x, l = s.x, d = e.wrap && e.message, f = p(e.message) ? await r(e.message, u()) : T.calculateTextDimensions(d ? T.wrapLabel(e.message, Z.width, Fe(Z)) : e.message, Fe(Z)), m = {
3970
- width: d ? Z.width : a.getMax(Z.width, f.width + 2 * Z.noteMargin),
3964
+ __name(calculateActorMargins, "calculateActorMargins");
3965
+ var buildNoteModel = /* @__PURE__ */ __name(async function(e, n, i) {
3966
+ let o = n.get(e.from), s = n.get(e.to), c = o.x, l = s.x, d = e.wrap && e.message, f = hasKatex(e.message) ? await calculateMathMLDimensions(e.message, getConfig2()) : utils_default.calculateTextDimensions(d ? utils_default.wrapLabel(e.message, conf.width, noteFont(conf)) : e.message, noteFont(conf)), m = {
3967
+ width: d ? conf.width : common_default.getMax(conf.width, f.width + 2 * conf.noteMargin),
3971
3968
  height: 0,
3972
3969
  startx: o.x,
3973
3970
  stopx: 0,
@@ -3975,18 +3972,18 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
3975
3972
  stopy: 0,
3976
3973
  message: e.message
3977
3974
  };
3978
- return e.placement === i.db.PLACEMENT.RIGHTOF ? (m.width = d ? a.getMax(Z.width, f.width) : a.getMax(o.width / 2 + s.width / 2, f.width + 2 * Z.noteMargin), m.startx = c + (o.width + Z.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (m.width = d ? a.getMax(Z.width, f.width + 2 * Z.noteMargin) : a.getMax(o.width / 2 + s.width / 2, f.width + 2 * Z.noteMargin), m.startx = c - m.width + (o.width - Z.actorMargin) / 2) : e.to === e.from ? (f = T.calculateTextDimensions(d ? T.wrapLabel(e.message, a.getMax(Z.width, o.width), Fe(Z)) : e.message, Fe(Z)), m.width = d ? a.getMax(Z.width, o.width) : a.getMax(o.width, Z.width, f.width + 2 * Z.noteMargin), m.startx = c + (o.width - m.width) / 2) : (m.width = Math.abs(c + o.width / 2 - (l + s.width / 2)) + Z.actorMargin, m.startx = c < l ? c + o.width / 2 - Z.actorMargin / 2 : l + s.width / 2 - Z.actorMargin / 2), d && (m.message = T.wrapLabel(e.message, m.width - 2 * Z.wrapPadding, Fe(Z))), t.debug(`NM:[${m.startx},${m.stopx},${m.starty},${m.stopy}:${m.width},${m.height}=${e.message}]`), m;
3979
- }, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */ e(function(e, t) {
3975
+ return e.placement === i.db.PLACEMENT.RIGHTOF ? (m.width = d ? common_default.getMax(conf.width, f.width) : common_default.getMax(o.width / 2 + s.width / 2, f.width + 2 * conf.noteMargin), m.startx = c + (o.width + conf.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (m.width = d ? common_default.getMax(conf.width, f.width + 2 * conf.noteMargin) : common_default.getMax(o.width / 2 + s.width / 2, f.width + 2 * conf.noteMargin), m.startx = c - m.width + (o.width - conf.actorMargin) / 2) : e.to === e.from ? (f = utils_default.calculateTextDimensions(d ? utils_default.wrapLabel(e.message, common_default.getMax(conf.width, o.width), noteFont(conf)) : e.message, noteFont(conf)), m.width = d ? common_default.getMax(conf.width, o.width) : common_default.getMax(o.width, conf.width, f.width + 2 * conf.noteMargin), m.startx = c + (o.width - m.width) / 2) : (m.width = Math.abs(c + o.width / 2 - (l + s.width / 2)) + conf.actorMargin, m.startx = c < l ? c + o.width / 2 - conf.actorMargin / 2 : l + s.width / 2 - conf.actorMargin / 2), d && (m.message = utils_default.wrapLabel(e.message, m.width - 2 * conf.wrapPadding, noteFont(conf))), log.debug(`NM:[${m.startx},${m.stopx},${m.starty},${m.stopy}:${m.width},${m.height}=${e.message}]`), m;
3976
+ }, "buildNoteModel"), CENTRAL_CONNECTION_BASE_OFFSET = 4, CENTRAL_CONNECTION_BIDIRECTIONAL_OFFSET = 6, hasCentralConnection = /* @__PURE__ */ __name(function(e, t) {
3980
3977
  let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3981
3978
  return [
3982
3979
  n,
3983
3980
  r,
3984
3981
  i
3985
3982
  ].includes(e.centralConnection);
3986
- }, "hasCentralConnection"), et = /* @__PURE__ */ e(function(e, t, n) {
3983
+ }, "hasCentralConnection"), calculateCentralConnectionOffset = /* @__PURE__ */ __name(function(e, t, n) {
3987
3984
  let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3988
- return (e.centralConnection === r || e.centralConnection === i) && (s += Ze), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Qe), s;
3989
- }, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */ e(function(e, t) {
3985
+ return (e.centralConnection === r || e.centralConnection === i) && (s += CENTRAL_CONNECTION_BASE_OFFSET), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -CENTRAL_CONNECTION_BIDIRECTIONAL_OFFSET), s;
3986
+ }, "calculateCentralConnectionOffset"), isReverseArrowType = /* @__PURE__ */ __name(function(e, t) {
3990
3987
  let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
3991
3988
  return [
3992
3989
  n,
@@ -3998,11 +3995,11 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
3998
3995
  c,
3999
3996
  l
4000
3997
  ].includes(e.type);
4001
- }, "isReverseArrowType"), nt = /* @__PURE__ */ e(function(e, t) {
3998
+ }, "isReverseArrowType"), isBidirectionalArrowType = /* @__PURE__ */ __name(function(e, t) {
4002
3999
  let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
4003
4000
  return [n, r].includes(e.type);
4004
- }, "isBidirectionalArrowType"), rt = /* @__PURE__ */ e(function(t, n, r) {
4005
- let { look: i } = u();
4001
+ }, "isBidirectionalArrowType"), buildMessageModel = /* @__PURE__ */ __name(function(t, n, r) {
4002
+ let { look: i } = getConfig2();
4006
4003
  if (![
4007
4004
  r.db.LINETYPE.SOLID_OPEN,
4008
4005
  r.db.LINETYPE.DOTTED_OPEN,
@@ -4031,10 +4028,10 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4031
4028
  r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4032
4029
  r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4033
4030
  ].includes(t.type)) return {};
4034
- let [o, s] = We(t.from, n), [c, l] = We(t.to, n), d = o <= c, f = d ? s : o, p = d ? c : l;
4035
- i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (p += d ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (f += d ? 3 : -3)), f += et(t, r, d);
4036
- let m = Math.abs(c - l) > 2, h = /* @__PURE__ */ e((e) => d ? -e : e, "adjustValue");
4037
- t.from === t.to ? p = f : (t.activate && !m && (p += h(Z.activationWidth / 2 - 1)), [
4031
+ let [o, s] = activationBounds(t.from, n), [c, l] = activationBounds(t.to, n), d = o <= c, f = d ? s : o, p = d ? c : l;
4032
+ i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (p += d ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (f += d ? 3 : -3)), f += calculateCentralConnectionOffset(t, r, d);
4033
+ let m = Math.abs(c - l) > 2, h = /* @__PURE__ */ __name((e) => d ? -e : e, "adjustValue");
4034
+ t.from === t.to ? p = f : (t.activate && !m && (p += h(conf.activationWidth / 2 - 1)), [
4038
4035
  r.db.LINETYPE.SOLID_OPEN,
4039
4036
  r.db.LINETYPE.DOTTED_OPEN,
4040
4037
  r.db.LINETYPE.STICK_TOP,
@@ -4063,10 +4060,10 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4063
4060
  c,
4064
4061
  l
4065
4062
  ], _ = Math.abs(f - p);
4066
- t.wrap && t.message && (t.message = T.wrapLabel(t.message, a.getMax(_ + 2 * Z.wrapPadding, Z.width), Pe(Z)));
4067
- let v = T.calculateTextDimensions(t.message, Pe(Z));
4063
+ t.wrap && t.message && (t.message = utils_default.wrapLabel(t.message, common_default.getMax(_ + 2 * conf.wrapPadding, conf.width), messageFont(conf)));
4064
+ let v = utils_default.calculateTextDimensions(t.message, messageFont(conf));
4068
4065
  return {
4069
- width: a.getMax(t.wrap ? 0 : v.width + 2 * Z.wrapPadding, _ + 2 * Z.wrapPadding, Z.width),
4066
+ width: common_default.getMax(t.wrap ? 0 : v.width + 2 * conf.wrapPadding, _ + 2 * conf.wrapPadding, conf.width),
4070
4067
  height: 0,
4071
4068
  startx: f,
4072
4069
  stopx: p,
@@ -4078,7 +4075,7 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4078
4075
  fromBounds: Math.min.apply(null, g),
4079
4076
  toBounds: Math.max.apply(null, g)
4080
4077
  };
4081
- }, "buildMessageModel"), it = /* @__PURE__ */ e(async function(e, n, r, i) {
4078
+ }, "buildMessageModel"), calculateLoopBounds = /* @__PURE__ */ __name(async function(e, n, r, i) {
4082
4079
  let o = {}, s = [], c, l, u;
4083
4080
  for (let t of e) {
4084
4081
  switch (t.type) {
@@ -4112,48 +4109,47 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4112
4109
  break;
4113
4110
  case i.db.LINETYPE.ACTIVE_START:
4114
4111
  {
4115
- let e = n.get(t.from ? t.from : t.to.actor), r = Ue(t.from ? t.from : t.to.actor).length, i = e.x + e.width / 2 + (r - 1) * Z.activationWidth / 2, a = {
4112
+ let e = n.get(t.from ? t.from : t.to.actor), r = actorActivations(t.from ? t.from : t.to.actor).length, i = e.x + e.width / 2 + (r - 1) * conf.activationWidth / 2, a = {
4116
4113
  startx: i,
4117
- stopx: i + Z.activationWidth,
4114
+ stopx: i + conf.activationWidth,
4118
4115
  actor: t.from,
4119
4116
  enabled: !0
4120
4117
  };
4121
- Q.activations.push(a);
4118
+ bounds.activations.push(a);
4122
4119
  }
4123
4120
  break;
4124
4121
  case i.db.LINETYPE.ACTIVE_END:
4125
4122
  {
4126
- let e = Q.activations.map((e) => e.actor).lastIndexOf(t.from);
4127
- Q.activations.splice(e, 1).splice(0, 1);
4123
+ let e = bounds.activations.map((e) => e.actor).lastIndexOf(t.from);
4124
+ bounds.activations.splice(e, 1).splice(0, 1);
4128
4125
  }
4129
4126
  break;
4130
4127
  }
4131
- t.placement === void 0 ? (u = rt(t, n, i), t.msgModel = u, u.startx && u.stopx && s.length > 0 && s.forEach((e) => {
4128
+ t.placement === void 0 ? (u = buildMessageModel(t, n, i), t.msgModel = u, u.startx && u.stopx && s.length > 0 && s.forEach((e) => {
4132
4129
  if (c = e, u.startx === u.stopx) {
4133
4130
  let e = n.get(t.from), r = n.get(t.to);
4134
- c.from = a.getMin(e.x - u.width / 2, e.x - e.width / 2, c.from), c.to = a.getMax(r.x + u.width / 2, r.x + e.width / 2, c.to), c.width = a.getMax(c.width, Math.abs(c.to - c.from)) - Z.labelBoxWidth;
4135
- } else c.from = a.getMin(u.startx, c.from), c.to = a.getMax(u.stopx, c.to), c.width = a.getMax(c.width, u.width) - Z.labelBoxWidth;
4136
- })) : (l = await Xe(t, n, i), t.noteModel = l, s.forEach((e) => {
4137
- c = e, c.from = a.getMin(c.from, l.startx), c.to = a.getMax(c.to, l.startx + l.width), c.width = a.getMax(c.width, Math.abs(c.from - c.to)) - Z.labelBoxWidth;
4131
+ c.from = common_default.getMin(e.x - u.width / 2, e.x - e.width / 2, c.from), c.to = common_default.getMax(r.x + u.width / 2, r.x + e.width / 2, c.to), c.width = common_default.getMax(c.width, Math.abs(c.to - c.from)) - conf.labelBoxWidth;
4132
+ } else c.from = common_default.getMin(u.startx, c.from), c.to = common_default.getMax(u.stopx, c.to), c.width = common_default.getMax(c.width, u.width) - conf.labelBoxWidth;
4133
+ })) : (l = await buildNoteModel(t, n, i), t.noteModel = l, s.forEach((e) => {
4134
+ c = e, c.from = common_default.getMin(c.from, l.startx), c.to = common_default.getMax(c.to, l.startx + l.width), c.width = common_default.getMax(c.width, Math.abs(c.from - c.to)) - conf.labelBoxWidth;
4138
4135
  }));
4139
4136
  }
4140
- return Q.activations = [], t.debug("Loop type widths:", o), o;
4141
- }, "calculateLoopBounds"), at = {
4142
- parser: F,
4137
+ return bounds.activations = [], log.debug("Loop type widths:", o), o;
4138
+ }, "calculateLoopBounds"), diagram = {
4139
+ parser: sequenceDiagram_default,
4143
4140
  get db() {
4144
- return new te();
4141
+ return new SequenceDB();
4145
4142
  },
4146
4143
  renderer: {
4147
- bounds: Q,
4148
- drawActors: Be,
4149
- drawActorsPopup: Ve,
4150
- setConf: He,
4151
- draw: Ke
4144
+ bounds,
4145
+ drawActors,
4146
+ drawActorsPopup,
4147
+ setConf,
4148
+ draw
4152
4149
  },
4153
- styles: ne,
4154
- init: /* @__PURE__ */ e((e) => {
4155
- e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, v({ sequence: { wrap: e.wrap } }));
4150
+ styles: styles_default,
4151
+ init: /* @__PURE__ */ __name((e) => {
4152
+ e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, setConfig2({ sequence: { wrap: e.wrap } }));
4156
4153
  }, "init")
4157
4154
  };
4158
- //#endregion
4159
- export { at as diagram };
4155
+ export { diagram };