hexagon-editor 0.1.0-alpha.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 (308) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +105 -0
  3. package/THIRD_PARTY_NOTICES.md +29 -0
  4. package/dist/MarkdownEditor.vue.d.ts +926 -0
  5. package/dist/MarkdownEditor.vue.d.ts.map +1 -0
  6. package/dist/MarkdownEditorLinkForm-mq-BVYM_.js +338 -0
  7. package/dist/MarkdownEditorLinkForm.css +1 -0
  8. package/dist/abnfDiagram-N423BO3Z-DCf6sPky.js +87 -0
  9. package/dist/arc-y6UeoJpJ.js +83 -0
  10. package/dist/architectureDiagram-T3A2C74G-Cc3_3-cI.js +4778 -0
  11. package/dist/base-Bnv2-Te4.js +13338 -0
  12. package/dist/base.css +1 -0
  13. package/dist/blockDiagram-VBNYF7ZC-DWVLZwXY.js +2419 -0
  14. package/dist/c4Diagram-5PPSVZJV-CaIN7qay.js +1577 -0
  15. package/dist/channel-BwXGcavV.js +5 -0
  16. package/dist/chunk-2GRJ4B5K-O75udjPr.js +68 -0
  17. package/dist/chunk-2Q5K7J3B-CySL0lOA.js +15 -0
  18. package/dist/chunk-5RXB4S5H-BKPnLCOJ.js +1408 -0
  19. package/dist/chunk-5VM5RSS4--it1VJIv.js +19 -0
  20. package/dist/chunk-6Q2QTUOP-DNiML-50.js +664 -0
  21. package/dist/chunk-GF5L2VYU-z7A-k0-V.js +1533 -0
  22. package/dist/chunk-JWPE2WC7-DAjx3Kjr.js +8 -0
  23. package/dist/chunk-KBJHAD2P-D4R1VW0r.js +19 -0
  24. package/dist/chunk-RYQCIY6F-DmJAYxq8.js +313 -0
  25. package/dist/chunk-XXDRQBXY-CK913N-t.js +8 -0
  26. package/dist/classDiagram-JCYQIIEL-Djipq_HJ.js +16 -0
  27. package/dist/classDiagram-v2-OCEON4UE-Djipq_HJ.js +16 -0
  28. package/dist/classname.d.ts +13 -0
  29. package/dist/classname.d.ts.map +1 -0
  30. package/dist/classname.js +17 -0
  31. package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts +48 -0
  32. package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts.map +1 -0
  33. package/dist/components/MarkdownEditorImageActions.vue.d.ts +20 -0
  34. package/dist/components/MarkdownEditorImageActions.vue.d.ts.map +1 -0
  35. package/dist/components/MarkdownEditorToolbar.vue.d.ts +62 -0
  36. package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -0
  37. package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts +26 -0
  38. package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts.map +1 -0
  39. package/dist/composables/useFloatingPanel.d.ts +13 -0
  40. package/dist/composables/useFloatingPanel.d.ts.map +1 -0
  41. package/dist/composables/useMarkdownEditorValue.d.ts +19 -0
  42. package/dist/composables/useMarkdownEditorValue.d.ts.map +1 -0
  43. package/dist/configure.d.ts +15 -0
  44. package/dist/configure.d.ts.map +1 -0
  45. package/dist/configure.js +19 -0
  46. package/dist/core/actions.d.ts +16 -0
  47. package/dist/core/actions.d.ts.map +1 -0
  48. package/dist/core/basic-editor-atomic-source.d.ts +9 -0
  49. package/dist/core/basic-editor-atomic-source.d.ts.map +1 -0
  50. package/dist/core/basic-editor-command-helpers.d.ts +11 -0
  51. package/dist/core/basic-editor-command-helpers.d.ts.map +1 -0
  52. package/dist/core/basic-editor-markdown.d.ts +7 -0
  53. package/dist/core/basic-editor-markdown.d.ts.map +1 -0
  54. package/dist/core/basic-editor-renderers.d.ts +6 -0
  55. package/dist/core/basic-editor-renderers.d.ts.map +1 -0
  56. package/dist/core/basic-editor-runtime-plugins.d.ts +7 -0
  57. package/dist/core/basic-editor-runtime-plugins.d.ts.map +1 -0
  58. package/dist/core/basic-editor-selection.d.ts +6 -0
  59. package/dist/core/basic-editor-selection.d.ts.map +1 -0
  60. package/dist/core/basic-editor-table-controls.d.ts +3 -0
  61. package/dist/core/basic-editor-table-controls.d.ts.map +1 -0
  62. package/dist/core/basic-editor-table-popover.d.ts +5 -0
  63. package/dist/core/basic-editor-table-popover.d.ts.map +1 -0
  64. package/dist/core/basic-editor-types.d.ts +96 -0
  65. package/dist/core/basic-editor-types.d.ts.map +1 -0
  66. package/dist/core/basic-editor.d.ts +14 -0
  67. package/dist/core/basic-editor.d.ts.map +1 -0
  68. package/dist/core/content-handler.d.ts +21 -0
  69. package/dist/core/content-handler.d.ts.map +1 -0
  70. package/dist/core/editor-instance.d.ts +38 -0
  71. package/dist/core/editor-instance.d.ts.map +1 -0
  72. package/dist/core/events.d.ts +22 -0
  73. package/dist/core/events.d.ts.map +1 -0
  74. package/dist/core/extension-builder.d.ts +86 -0
  75. package/dist/core/extension-builder.d.ts.map +1 -0
  76. package/dist/core/extensions-manager.d.ts +36 -0
  77. package/dist/core/extensions-manager.d.ts.map +1 -0
  78. package/dist/core/index.d.ts +30 -0
  79. package/dist/core/index.d.ts.map +1 -0
  80. package/dist/core/lists.d.ts +18 -0
  81. package/dist/core/lists.d.ts.map +1 -0
  82. package/dist/core/logger.d.ts +46 -0
  83. package/dist/core/logger.d.ts.map +1 -0
  84. package/dist/core/markdown-parser.d.ts +60 -0
  85. package/dist/core/markdown-parser.d.ts.map +1 -0
  86. package/dist/core/markdown.d.ts +23 -0
  87. package/dist/core/markdown.d.ts.map +1 -0
  88. package/dist/core/markup-editor.d.ts +22 -0
  89. package/dist/core/markup-editor.d.ts.map +1 -0
  90. package/dist/core/optional-renderers.d.ts +9 -0
  91. package/dist/core/optional-renderers.d.ts.map +1 -0
  92. package/dist/core/registries.d.ts +50 -0
  93. package/dist/core/registries.d.ts.map +1 -0
  94. package/dist/core/schema-dynamic-modifier.d.ts +13 -0
  95. package/dist/core/schema-dynamic-modifier.d.ts.map +1 -0
  96. package/dist/core/vue-renderer.d.ts +40 -0
  97. package/dist/core/vue-renderer.d.ts.map +1 -0
  98. package/dist/core.js +46 -0
  99. package/dist/cose-bilkent-JH36ORCC-CXuKFbXy.js +2608 -0
  100. package/dist/cynefin-VYW2F7L2-Bkk-F_Js.js +23766 -0
  101. package/dist/cynefinDiagram-MW4NZA55-DwOK40hm.js +299 -0
  102. package/dist/cytoscape.esm-3W4EOjxC.js +18756 -0
  103. package/dist/dagre-VZM6K2ZE-0VsGm8Ag.js +340 -0
  104. package/dist/defaultLocale-BgPVtth8.js +171 -0
  105. package/dist/diagram-7IWD3JNH-BrApu1hz.js +350 -0
  106. package/dist/diagram-B4RE2ZJO-CVXoBg2r.js +461 -0
  107. package/dist/diagram-LBJQPF4R-Dp0eSz2L.js +142 -0
  108. package/dist/diagram-Q27KOJAE-DWIltqIH.js +528 -0
  109. package/dist/diagram-UB23O5K3-B7z2Lj3K.js +219 -0
  110. package/dist/directives.d.ts +10 -0
  111. package/dist/directives.d.ts.map +1 -0
  112. package/dist/ebnfDiagram-BXEA7PRR-CYgE6z_2.js +109 -0
  113. package/dist/erDiagram-JOGREHBK-D3QWrPo-.js +910 -0
  114. package/dist/extensions/additional/folding-heading.d.ts +11 -0
  115. package/dist/extensions/additional/folding-heading.d.ts.map +1 -0
  116. package/dist/extensions/additional/math.d.ts +36 -0
  117. package/dist/extensions/additional/math.d.ts.map +1 -0
  118. package/dist/extensions/additional/mermaid.d.ts +21 -0
  119. package/dist/extensions/additional/mermaid.d.ts.map +1 -0
  120. package/dist/extensions/additional/quote-link.d.ts +19 -0
  121. package/dist/extensions/additional/quote-link.d.ts.map +1 -0
  122. package/dist/extensions/additional/yfm-html-block.d.ts +21 -0
  123. package/dist/extensions/additional/yfm-html-block.d.ts.map +1 -0
  124. package/dist/extensions/base.d.ts +9 -0
  125. package/dist/extensions/base.d.ts.map +1 -0
  126. package/dist/extensions/behavior/clicks-on-edges.d.ts +12 -0
  127. package/dist/extensions/behavior/clicks-on-edges.d.ts.map +1 -0
  128. package/dist/extensions/behavior/clipboard.d.ts +6 -0
  129. package/dist/extensions/behavior/clipboard.d.ts.map +1 -0
  130. package/dist/extensions/behavior/cursor.d.ts +29 -0
  131. package/dist/extensions/behavior/cursor.d.ts.map +1 -0
  132. package/dist/extensions/behavior/editor-mode-keymap.d.ts +8 -0
  133. package/dist/extensions/behavior/editor-mode-keymap.d.ts.map +1 -0
  134. package/dist/extensions/behavior/history.d.ts +21 -0
  135. package/dist/extensions/behavior/history.d.ts.map +1 -0
  136. package/dist/extensions/behavior/placeholder.d.ts +11 -0
  137. package/dist/extensions/behavior/placeholder.d.ts.map +1 -0
  138. package/dist/extensions/behavior/resizable.d.ts +4 -0
  139. package/dist/extensions/behavior/resizable.d.ts.map +1 -0
  140. package/dist/extensions/behavior/selection-commands.d.ts +24 -0
  141. package/dist/extensions/behavior/selection-commands.d.ts.map +1 -0
  142. package/dist/extensions/behavior/selection-context.d.ts +9 -0
  143. package/dist/extensions/behavior/selection-context.d.ts.map +1 -0
  144. package/dist/extensions/behavior/selection.d.ts +12 -0
  145. package/dist/extensions/behavior/selection.d.ts.map +1 -0
  146. package/dist/extensions/index.d.ts +34 -0
  147. package/dist/extensions/index.d.ts.map +1 -0
  148. package/dist/extensions/markdown/blockquote-specs.d.ts +15 -0
  149. package/dist/extensions/markdown/blockquote-specs.d.ts.map +1 -0
  150. package/dist/extensions/markdown/blockquote.d.ts +14 -0
  151. package/dist/extensions/markdown/blockquote.d.ts.map +1 -0
  152. package/dist/extensions/markdown/bold-specs.d.ts +12 -0
  153. package/dist/extensions/markdown/bold-specs.d.ts.map +1 -0
  154. package/dist/extensions/markdown/bold.d.ts +17 -0
  155. package/dist/extensions/markdown/bold.d.ts.map +1 -0
  156. package/dist/extensions/markdown/breaks-specs.d.ts +22 -0
  157. package/dist/extensions/markdown/breaks-specs.d.ts.map +1 -0
  158. package/dist/extensions/markdown/breaks.d.ts +11 -0
  159. package/dist/extensions/markdown/breaks.d.ts.map +1 -0
  160. package/dist/extensions/markdown/code-block-specs.d.ts +14 -0
  161. package/dist/extensions/markdown/code-block-specs.d.ts.map +1 -0
  162. package/dist/extensions/markdown/code-block.d.ts +14 -0
  163. package/dist/extensions/markdown/code-block.d.ts.map +1 -0
  164. package/dist/extensions/markdown/code-specs.d.ts +9 -0
  165. package/dist/extensions/markdown/code-specs.d.ts.map +1 -0
  166. package/dist/extensions/markdown/code.d.ts +11 -0
  167. package/dist/extensions/markdown/code.d.ts.map +1 -0
  168. package/dist/extensions/markdown/deflist-specs.d.ts +16 -0
  169. package/dist/extensions/markdown/deflist-specs.d.ts.map +1 -0
  170. package/dist/extensions/markdown/deflist.d.ts +14 -0
  171. package/dist/extensions/markdown/deflist.d.ts.map +1 -0
  172. package/dist/extensions/markdown/heading-specs.d.ts +11 -0
  173. package/dist/extensions/markdown/heading-specs.d.ts.map +1 -0
  174. package/dist/extensions/markdown/heading.d.ts +17 -0
  175. package/dist/extensions/markdown/heading.d.ts.map +1 -0
  176. package/dist/extensions/markdown/horizontal-rule-specs.d.ts +10 -0
  177. package/dist/extensions/markdown/horizontal-rule-specs.d.ts.map +1 -0
  178. package/dist/extensions/markdown/horizontal-rule.d.ts +8 -0
  179. package/dist/extensions/markdown/horizontal-rule.d.ts.map +1 -0
  180. package/dist/extensions/markdown/html.d.ts +15 -0
  181. package/dist/extensions/markdown/html.d.ts.map +1 -0
  182. package/dist/extensions/markdown/image.d.ts +39 -0
  183. package/dist/extensions/markdown/image.d.ts.map +1 -0
  184. package/dist/extensions/markdown/italic-specs.d.ts +12 -0
  185. package/dist/extensions/markdown/italic-specs.d.ts.map +1 -0
  186. package/dist/extensions/markdown/italic.d.ts +11 -0
  187. package/dist/extensions/markdown/italic.d.ts.map +1 -0
  188. package/dist/extensions/markdown/link-specs.d.ts +19 -0
  189. package/dist/extensions/markdown/link-specs.d.ts.map +1 -0
  190. package/dist/extensions/markdown/link.d.ts +21 -0
  191. package/dist/extensions/markdown/link.d.ts.map +1 -0
  192. package/dist/extensions/markdown/list-specs.d.ts +6 -0
  193. package/dist/extensions/markdown/list-specs.d.ts.map +1 -0
  194. package/dist/extensions/markdown/lists.d.ts +18 -0
  195. package/dist/extensions/markdown/lists.d.ts.map +1 -0
  196. package/dist/extensions/markdown/mark.d.ts +12 -0
  197. package/dist/extensions/markdown/mark.d.ts.map +1 -0
  198. package/dist/extensions/markdown/strike.d.ts +12 -0
  199. package/dist/extensions/markdown/strike.d.ts.map +1 -0
  200. package/dist/extensions/markdown/subscript.d.ts +12 -0
  201. package/dist/extensions/markdown/subscript.d.ts.map +1 -0
  202. package/dist/extensions/markdown/table-actions.d.ts +14 -0
  203. package/dist/extensions/markdown/table-actions.d.ts.map +1 -0
  204. package/dist/extensions/markdown/table-specs.d.ts +25 -0
  205. package/dist/extensions/markdown/table-specs.d.ts.map +1 -0
  206. package/dist/extensions/markdown/table.d.ts +6 -0
  207. package/dist/extensions/markdown/table.d.ts.map +1 -0
  208. package/dist/extensions/markdown/underline.d.ts +12 -0
  209. package/dist/extensions/markdown/underline.d.ts.map +1 -0
  210. package/dist/extensions/specs.d.ts +13 -0
  211. package/dist/extensions/specs.d.ts.map +1 -0
  212. package/dist/extensions.js +247 -0
  213. package/dist/flowDiagram-UKHOOZJN-CfjPcHNW.js +1638 -0
  214. package/dist/forms/MarkdownEditorForm.vue.d.ts +37 -0
  215. package/dist/forms/MarkdownEditorForm.vue.d.ts.map +1 -0
  216. package/dist/forms/MarkdownEditorImageForm.vue.d.ts +131 -0
  217. package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -0
  218. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +119 -0
  219. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts.map +1 -0
  220. package/dist/forms/MarkdownEditorTextInput.vue.d.ts +39 -0
  221. package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -0
  222. package/dist/forms/index.d.ts +7 -0
  223. package/dist/forms/index.d.ts.map +1 -0
  224. package/dist/forms.js +7 -0
  225. package/dist/full-C-o2lPBX.js +16 -0
  226. package/dist/full-specs-Cl-ODShc.js +10 -0
  227. package/dist/ganttDiagram-PKOTCBZU-ECmaWI-9.js +2711 -0
  228. package/dist/gitGraphDiagram-DS77QQ5N-DgG1RGJ8.js +815 -0
  229. package/dist/graph-DAHC4kPm.js +1545 -0
  230. package/dist/heading-specs-D7Bj4aIM.js +489 -0
  231. package/dist/i18n/index.d.ts +70 -0
  232. package/dist/i18n/index.d.ts.map +1 -0
  233. package/dist/i18n.js +132 -0
  234. package/dist/index-CqpK5VVw.js +149 -0
  235. package/dist/index-uerphigI.js +82 -0
  236. package/dist/index.css +1 -0
  237. package/dist/index.d.ts +87 -0
  238. package/dist/index.d.ts.map +1 -0
  239. package/dist/index.js +1293 -0
  240. package/dist/infoDiagram-6WML65LV-B1Yl3nZV.js +24 -0
  241. package/dist/init-DjUOC4st.js +16 -0
  242. package/dist/ishikawaDiagram-WSZJBQD7-4sngaB5o.js +621 -0
  243. package/dist/journeyDiagram-NVQOT4AX-B_6AmR_j.js +834 -0
  244. package/dist/kanban-definition-27J2QSJJ-B8BO9o8J.js +724 -0
  245. package/dist/katex-ByXcxnHy.js +14436 -0
  246. package/dist/katex-DoRnZ_sp.js +11682 -0
  247. package/dist/layout-DBbo_M5I.js +1519 -0
  248. package/dist/linear-BEdRfKba.js +259 -0
  249. package/dist/map-DRdzG8Ho.js +224 -0
  250. package/dist/mermaid.core-CR0bA2Wa.js +16496 -0
  251. package/dist/mindmap-definition-FAOFIHXS-DnPz807N.js +827 -0
  252. package/dist/optional-renderers-BalvqqvY.js +11 -0
  253. package/dist/ordinal-B6-f3MAq.js +61 -0
  254. package/dist/pegDiagram-VL7TDLO6-csGWlzs8.js +95 -0
  255. package/dist/pieDiagram-7S7Q4E2Y-Bqs8j5FX.js +207 -0
  256. package/dist/presets/commonmark-specs.d.ts +9 -0
  257. package/dist/presets/commonmark-specs.d.ts.map +1 -0
  258. package/dist/presets/commonmark.d.ts +26 -0
  259. package/dist/presets/commonmark.d.ts.map +1 -0
  260. package/dist/presets/default.d.ts +6 -0
  261. package/dist/presets/default.d.ts.map +1 -0
  262. package/dist/presets/full-specs.d.ts +6 -0
  263. package/dist/presets/full-specs.d.ts.map +1 -0
  264. package/dist/presets/full.d.ts +17 -0
  265. package/dist/presets/full.d.ts.map +1 -0
  266. package/dist/presets/index.d.ts +13 -0
  267. package/dist/presets/index.d.ts.map +1 -0
  268. package/dist/presets/zero.d.ts +8 -0
  269. package/dist/presets/zero.d.ts.map +1 -0
  270. package/dist/presets.js +10 -0
  271. package/dist/public-types.d.ts +96 -0
  272. package/dist/public-types.d.ts.map +1 -0
  273. package/dist/quadrantDiagram-CIZ2JOQS-jzP4lRrY.js +1023 -0
  274. package/dist/railroadDiagram-AXF67PYL-BSCyR24u.js +77 -0
  275. package/dist/renderer/MarkdownRenderer.vue.d.ts +10 -0
  276. package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -0
  277. package/dist/renderer/index.d.ts +3 -0
  278. package/dist/renderer/index.d.ts.map +1 -0
  279. package/dist/renderer/markdown.d.ts +2 -0
  280. package/dist/renderer/markdown.d.ts.map +1 -0
  281. package/dist/renderer/mermaid-runtime.d.ts +4 -0
  282. package/dist/renderer/mermaid-runtime.d.ts.map +1 -0
  283. package/dist/renderer.js +258 -0
  284. package/dist/requirementDiagram-LRYGKXZP-DmEkLYqX.js +882 -0
  285. package/dist/sankeyDiagram-W5VNT64P-CYvRYMTh.js +847 -0
  286. package/dist/schema-dynamic-modifier-Dhf0m6tE.js +21514 -0
  287. package/dist/schema-dynamic-modifier.css +1 -0
  288. package/dist/sequenceDiagram-SI44F4Z6-CyWbDtPA.js +2888 -0
  289. package/dist/sizeCapture-X5ZJPWSS-xKhYCY84.js +46 -0
  290. package/dist/specs.js +127 -0
  291. package/dist/stateDiagram-OKZ733FA-DP44R2Dd.js +263 -0
  292. package/dist/stateDiagram-v2-UEYNNEHI-BvlOisND.js +16 -0
  293. package/dist/swimlanes-SLNWSIFB-BKFp8twH.js +5332 -0
  294. package/dist/swimlanesDiagram-ULZ7WXOC-CTvIFuHq.js +13 -0
  295. package/dist/timeline-definition-Z64GVDOM-B4137uIl.js +1055 -0
  296. package/dist/toolbar/config.d.ts +45 -0
  297. package/dist/toolbar/config.d.ts.map +1 -0
  298. package/dist/toolbar/index.d.ts +3 -0
  299. package/dist/toolbar/index.d.ts.map +1 -0
  300. package/dist/toolbar.js +100 -0
  301. package/dist/use-markdown-editor.d.ts +14 -0
  302. package/dist/use-markdown-editor.d.ts.map +1 -0
  303. package/dist/vennDiagram-T6HMQDX7-CPs8gXjx.js +1578 -0
  304. package/dist/version.d.ts +3 -0
  305. package/dist/version.d.ts.map +1 -0
  306. package/dist/wardleyDiagram-T6FBY63Y-BYp13hbI.js +675 -0
  307. package/dist/xychartDiagram-ELKLHX3M-DTT37K2u.js +1388 -0
  308. package/package.json +110 -0
@@ -0,0 +1,1533 @@
1
+ import { g as st } from "./chunk-5VM5RSS4--it1VJIv.js";
2
+ import { g as it } from "./chunk-XXDRQBXY-CK913N-t.js";
3
+ import { s as at } from "./chunk-KBJHAD2P-D4R1VW0r.js";
4
+ import { _ as f, l as we, c as F, u as nt, v as rt, x as Ve, d as Ae, N as ut, b as lt, a as ct, s as ot, g as ht, n as dt, o as pt, k as I, p as At, q as ft, i as gt, O as U } from "./mermaid.core-CR0bA2Wa.js";
5
+ import { f as mt } from "./chunk-2GRJ4B5K-O75udjPr.js";
6
+ var Pe = (function() {
7
+ var s = /* @__PURE__ */ f(function(O, o, h, p) {
8
+ for (h = h || {}, p = O.length; p--; h[O[p]] = o) ;
9
+ return h;
10
+ }, "o"), i = [1, 18], a = [1, 19], n = [1, 20], r = [1, 41], c = [1, 26], u = [1, 42], d = [1, 24], m = [1, 25], g = [1, 32], N = [1, 33], ge = [1, 34], b = [1, 45], me = [1, 35], Ce = [1, 36], be = [1, 37], ke = [1, 38], Ee = [1, 27], Te = [1, 28], ye = [1, 29], De = [1, 30], Fe = [1, 31], k = [1, 44], E = [1, 46], T = [1, 43], y = [1, 47], Be = [1, 9], A = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], _e = [1, 63], Se = [1, 64], _ = [1, 8, 9, 41], Me = [1, 77], R = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], ne = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 46, 47, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], re = [13, 60, 86, 100, 102, 103], Y = [13, 60, 73, 74, 86, 100, 102, 103], Re = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], ue = [1, 103], K = [1, 121], W = [1, 117], Q = [1, 113], j = [1, 119], X = [1, 114], q = [1, 115], H = [1, 116], J = [1, 118], Z = [1, 120], Ge = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Ue = [1, 128], le = [12, 39], Ne = [1, 8, 9, 39, 41, 44, 46], ce = [1, 8, 9, 22], ze = [1, 153], Ye = [1, 8, 9, 61], x = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Le = {
11
+ trace: /* @__PURE__ */ f(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, classLiteralName: 17, DOT: 18, className: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, ANNOTATION_START: 46, ANNOTATION_END: 47, CLASS: 48, emptyBody: 49, SPACE: 50, MEMBER: 51, SEPARATOR: 52, relation: 53, NOTE_FOR: 54, noteText: 55, NOTE: 56, CLASSDEF: 57, classList: 58, stylesOpt: 59, ALPHA: 60, COMMA: 61, direction_tb: 62, direction_bt: 63, direction_rl: 64, direction_lr: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, STYLE: 82, CSSCLASS: 83, style: 84, styleComponent: 85, NUM: 86, COLON: 87, UNIT: 88, BRKT: 89, PCT: 90, commentToken: 91, textToken: 92, graphCodeTokens: 93, textNoTagsToken: 94, TAGSTART: 95, TAGEND: 96, "==": 97, "--": 98, DEFAULT: 99, MINUS: 100, keywords: 101, UNICODE_TEXT: 102, BQUOTE_STR: 103, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "ANNOTATION_START", 47: "ANNOTATION_END", 48: "CLASS", 50: "SPACE", 51: "MEMBER", 52: "SEPARATOR", 54: "NOTE_FOR", 56: "NOTE", 57: "CLASSDEF", 60: "ALPHA", 61: "COMMA", 62: "direction_tb", 63: "direction_bt", 64: "direction_rl", 65: "direction_lr", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "STYLE", 83: "CSSCLASS", 86: "NUM", 87: "COLON", 88: "UNIT", 89: "BRKT", 90: "PCT", 93: "graphCodeTokens", 95: "TAGSTART", 96: "TAGEND", 97: "==", 98: "--", 99: "DEFAULT", 100: "MINUS", 101: "keywords", 102: "UNICODE_TEXT", 103: "BQUOTE_STR" },
16
+ productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [38, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [24, 4], [24, 7], [24, 6], [43, 2], [43, 3], [49, 0], [49, 2], [49, 2], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [58, 1], [58, 3], [32, 1], [32, 1], [32, 1], [32, 1], [53, 3], [53, 2], [53, 2], [53, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [59, 1], [59, 3], [84, 1], [84, 2], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [91, 1], [91, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [94, 1], [94, 1], [94, 1], [94, 1], [16, 1], [16, 1], [16, 1], [16, 1], [17, 1], [55, 1]],
17
+ performAction: /* @__PURE__ */ f(function(o, h, p, l, C, e, $) {
18
+ var t = e.length - 1;
19
+ switch (C) {
20
+ case 8:
21
+ this.$ = e[t - 1];
22
+ break;
23
+ case 9:
24
+ case 10:
25
+ case 13:
26
+ case 15:
27
+ this.$ = e[t];
28
+ break;
29
+ case 11:
30
+ case 14:
31
+ this.$ = e[t - 2] + "." + e[t];
32
+ break;
33
+ case 12:
34
+ case 16:
35
+ this.$ = e[t - 1] + e[t];
36
+ break;
37
+ case 17:
38
+ case 18:
39
+ this.$ = e[t - 1] + "~" + e[t] + "~";
40
+ break;
41
+ case 19:
42
+ l.addRelation(e[t]);
43
+ break;
44
+ case 20:
45
+ e[t - 1].title = l.cleanupLabel(e[t]), l.addRelation(e[t - 1]);
46
+ break;
47
+ case 31:
48
+ this.$ = e[t].trim(), l.setAccTitle(this.$);
49
+ break;
50
+ case 32:
51
+ case 33:
52
+ this.$ = e[t].trim(), l.setAccDescription(this.$);
53
+ break;
54
+ case 34:
55
+ l.addClassesToNamespace(e[t - 3], e[t - 1][0], e[t - 1][1]), l.popNamespace();
56
+ break;
57
+ case 35:
58
+ l.addClassesToNamespace(e[t - 4], e[t - 1][0], e[t - 1][1]), l.popNamespace();
59
+ break;
60
+ case 36:
61
+ this.$ = l.addNamespace(e[t]);
62
+ break;
63
+ case 37:
64
+ this.$ = l.addNamespace(e[t - 1], e[t]);
65
+ break;
66
+ case 38:
67
+ this.$ = [[e[t]], []];
68
+ break;
69
+ case 39:
70
+ this.$ = [[e[t - 1]], []];
71
+ break;
72
+ case 40:
73
+ e[t][0].unshift(e[t - 2]), this.$ = e[t];
74
+ break;
75
+ case 41:
76
+ this.$ = [[], [e[t]]];
77
+ break;
78
+ case 42:
79
+ this.$ = [[], [e[t - 1]]];
80
+ break;
81
+ case 43:
82
+ e[t][1].unshift(e[t - 2]), this.$ = e[t];
83
+ break;
84
+ case 44:
85
+ case 45:
86
+ this.$ = [[], []];
87
+ break;
88
+ case 46:
89
+ this.$ = e[t];
90
+ break;
91
+ case 48:
92
+ l.setCssClass(e[t - 2], e[t]);
93
+ break;
94
+ case 49:
95
+ l.addMembers(e[t - 3], e[t - 1]);
96
+ break;
97
+ case 51:
98
+ l.setCssClass(e[t - 5], e[t - 3]), l.addMembers(e[t - 5], e[t - 1]);
99
+ break;
100
+ case 52:
101
+ l.addAnnotation(e[t - 3], e[t - 1]);
102
+ break;
103
+ case 53:
104
+ l.addAnnotation(e[t - 6], e[t - 4]), l.addMembers(e[t - 6], e[t - 1]);
105
+ break;
106
+ case 54:
107
+ l.addAnnotation(e[t - 5], e[t - 3]);
108
+ break;
109
+ case 55:
110
+ this.$ = e[t], l.addClass(e[t]);
111
+ break;
112
+ case 56:
113
+ this.$ = e[t - 1], l.addClass(e[t - 1]), l.setClassLabel(e[t - 1], e[t]);
114
+ break;
115
+ case 60:
116
+ l.addAnnotation(e[t], e[t - 2]);
117
+ break;
118
+ case 61:
119
+ case 74:
120
+ this.$ = [e[t]];
121
+ break;
122
+ case 62:
123
+ e[t].push(e[t - 1]), this.$ = e[t];
124
+ break;
125
+ case 63:
126
+ break;
127
+ case 64:
128
+ l.addMember(e[t - 1], l.cleanupLabel(e[t]));
129
+ break;
130
+ case 65:
131
+ break;
132
+ case 66:
133
+ break;
134
+ case 67:
135
+ this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
136
+ break;
137
+ case 68:
138
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
139
+ break;
140
+ case 69:
141
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
142
+ break;
143
+ case 70:
144
+ this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
145
+ break;
146
+ case 71:
147
+ this.$ = l.addNote(e[t], e[t - 1]);
148
+ break;
149
+ case 72:
150
+ this.$ = l.addNote(e[t]);
151
+ break;
152
+ case 73:
153
+ this.$ = e[t - 2], l.defineClass(e[t - 1], e[t]);
154
+ break;
155
+ case 75:
156
+ this.$ = e[t - 2].concat([e[t]]);
157
+ break;
158
+ case 76:
159
+ l.setDirection("TB");
160
+ break;
161
+ case 77:
162
+ l.setDirection("BT");
163
+ break;
164
+ case 78:
165
+ l.setDirection("RL");
166
+ break;
167
+ case 79:
168
+ l.setDirection("LR");
169
+ break;
170
+ case 80:
171
+ this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
172
+ break;
173
+ case 81:
174
+ this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
175
+ break;
176
+ case 82:
177
+ this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
178
+ break;
179
+ case 83:
180
+ this.$ = { type1: "none", type2: "none", lineType: e[t] };
181
+ break;
182
+ case 84:
183
+ this.$ = l.relationType.AGGREGATION;
184
+ break;
185
+ case 85:
186
+ this.$ = l.relationType.EXTENSION;
187
+ break;
188
+ case 86:
189
+ this.$ = l.relationType.COMPOSITION;
190
+ break;
191
+ case 87:
192
+ this.$ = l.relationType.DEPENDENCY;
193
+ break;
194
+ case 88:
195
+ this.$ = l.relationType.LOLLIPOP;
196
+ break;
197
+ case 89:
198
+ this.$ = l.lineType.LINE;
199
+ break;
200
+ case 90:
201
+ this.$ = l.lineType.DOTTED_LINE;
202
+ break;
203
+ case 91:
204
+ case 97:
205
+ this.$ = e[t - 2], l.setClickEvent(e[t - 1], e[t]);
206
+ break;
207
+ case 92:
208
+ case 98:
209
+ this.$ = e[t - 3], l.setClickEvent(e[t - 2], e[t - 1]), l.setTooltip(e[t - 2], e[t]);
210
+ break;
211
+ case 93:
212
+ this.$ = e[t - 2], l.setLink(e[t - 1], e[t]);
213
+ break;
214
+ case 94:
215
+ this.$ = e[t - 3], l.setLink(e[t - 2], e[t - 1], e[t]);
216
+ break;
217
+ case 95:
218
+ this.$ = e[t - 3], l.setLink(e[t - 2], e[t - 1]), l.setTooltip(e[t - 2], e[t]);
219
+ break;
220
+ case 96:
221
+ this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 2], e[t]), l.setTooltip(e[t - 3], e[t - 1]);
222
+ break;
223
+ case 99:
224
+ this.$ = e[t - 3], l.setClickEvent(e[t - 2], e[t - 1], e[t]);
225
+ break;
226
+ case 100:
227
+ this.$ = e[t - 4], l.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), l.setTooltip(e[t - 3], e[t]);
228
+ break;
229
+ case 101:
230
+ this.$ = e[t - 3], l.setLink(e[t - 2], e[t]);
231
+ break;
232
+ case 102:
233
+ this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 1], e[t]);
234
+ break;
235
+ case 103:
236
+ this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 1]), l.setTooltip(e[t - 3], e[t]);
237
+ break;
238
+ case 104:
239
+ this.$ = e[t - 5], l.setLink(e[t - 4], e[t - 2], e[t]), l.setTooltip(e[t - 4], e[t - 1]);
240
+ break;
241
+ case 105:
242
+ this.$ = e[t - 2], l.setCssStyle(e[t - 1], e[t]);
243
+ break;
244
+ case 106:
245
+ l.setCssClass(e[t - 1], e[t]);
246
+ break;
247
+ case 107:
248
+ this.$ = [e[t]];
249
+ break;
250
+ case 108:
251
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
252
+ break;
253
+ case 110:
254
+ this.$ = e[t - 1] + e[t];
255
+ break;
256
+ }
257
+ }, "anonymous"),
258
+ table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: n, 38: 22, 42: r, 43: 23, 46: c, 48: u, 51: d, 52: m, 54: g, 56: N, 57: ge, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(Be, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(A, [2, 19], { 22: [1, 50] }), s(A, [2, 21]), s(A, [2, 22]), s(A, [2, 23]), s(A, [2, 24]), s(A, [2, 25]), s(A, [2, 26]), s(A, [2, 27]), s(A, [2, 28]), s(A, [2, 29]), s(A, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(A, [2, 33]), s(A, [2, 63], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: _e, 74: Se }), { 39: [1, 65] }, s(_, [2, 47], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), s(A, [2, 65]), s(A, [2, 66]), { 16: 69, 60: b, 86: k, 100: E, 102: T }, { 16: 39, 17: 40, 19: 70, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 71, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 72, 60: b, 86: k, 100: E, 102: T, 103: y }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: Me, 55: 76 }, { 58: 78, 60: [1, 79] }, s(A, [2, 76]), s(A, [2, 77]), s(A, [2, 78]), s(A, [2, 79]), s(R, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: b, 86: k, 100: E, 102: T, 103: y }), s(R, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 87, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ne, [2, 133]), s(ne, [2, 134]), s(ne, [2, 135]), s(ne, [2, 136]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 137]), s(Be, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 88, 33: i, 35: a, 37: n, 42: r, 46: c, 48: u, 51: d, 52: m, 54: g, 56: N, 57: ge, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }), { 5: 89, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: n, 38: 22, 42: r, 43: 23, 46: c, 48: u, 51: d, 52: m, 54: g, 56: N, 57: ge, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 20]), s(A, [2, 31]), s(A, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: b, 86: k, 100: E, 102: T, 103: y }, { 53: 92, 66: 56, 67: 57, 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: _e, 74: Se }, s(A, [2, 64]), { 67: 93, 73: _e, 74: Se }, s(re, [2, 83], { 66: 94, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(Y, [2, 84]), s(Y, [2, 85]), s(Y, [2, 86]), s(Y, [2, 87]), s(Y, [2, 88]), s(Re, [2, 89]), s(Re, [2, 90]), { 8: [1, 96], 23: 99, 24: 97, 30: 98, 38: 22, 40: 95, 42: r, 43: 23, 48: u, 54: g, 56: N }, { 16: 100, 60: b, 86: k, 100: E, 102: T }, { 41: [1, 102], 45: 101, 51: ue }, { 16: 104, 60: b, 86: k, 100: E, 102: T }, { 47: [1, 105] }, { 13: [1, 106] }, { 13: [1, 107] }, { 79: [1, 108], 81: [1, 109] }, { 22: K, 50: W, 59: 110, 60: Q, 82: j, 84: 111, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, { 60: [1, 122] }, { 13: Me, 55: 123 }, s(_, [2, 72]), s(_, [2, 138]), { 22: K, 50: W, 59: 124, 60: Q, 61: [1, 125], 82: j, 84: 111, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(Ge, [2, 74]), { 16: 39, 17: 40, 19: 126, 60: b, 86: k, 100: E, 102: T, 103: y }, s(R, [2, 16]), s(R, [2, 17]), s(R, [2, 18]), { 11: 127, 12: Ue, 39: [2, 36] }, s(le, [2, 9], { 16: 85, 17: 86, 15: 130, 18: [1, 129], 60: b, 86: k, 100: E, 102: T, 103: y }), s(le, [2, 10]), s(Ne, [2, 55], { 11: 131, 12: Ue }), s(Be, [2, 7]), { 9: [1, 132] }, s(ce, [2, 67]), { 16: 39, 17: 40, 19: 133, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: [1, 135], 16: 39, 17: 40, 19: 134, 60: b, 86: k, 100: E, 102: T, 103: y }, s(re, [2, 82], { 66: 136, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(re, [2, 81]), { 41: [1, 137] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 138, 42: r, 43: 23, 48: u, 54: g, 56: N }, { 8: [1, 139], 41: [2, 38] }, { 8: [1, 140], 41: [2, 41] }, { 8: [1, 141], 41: [2, 44] }, s(_, [2, 48], { 39: [1, 142] }), { 41: [1, 143] }, s(_, [2, 50]), { 41: [2, 61], 45: 144, 51: ue }, { 47: [1, 145] }, { 16: 39, 17: 40, 19: 146, 60: b, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 91], { 13: [1, 147] }), s(A, [2, 93], { 13: [1, 149], 77: [1, 148] }), s(A, [2, 97], { 13: [1, 150], 80: [1, 151] }), { 13: [1, 152] }, s(A, [2, 105], { 61: ze }), s(Ye, [2, 107], { 85: 154, 22: K, 50: W, 60: Q, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(x, [2, 109]), s(x, [2, 111]), s(x, [2, 112]), s(x, [2, 113]), s(x, [2, 114]), s(x, [2, 115]), s(x, [2, 116]), s(x, [2, 117]), s(x, [2, 118]), s(x, [2, 119]), s(A, [2, 106]), s(_, [2, 71]), s(A, [2, 73], { 61: ze }), { 60: [1, 155] }, s(R, [2, 14]), { 39: [2, 37] }, { 13: [1, 156] }, { 15: 157, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, s(le, [2, 12]), s(Ne, [2, 56]), { 1: [2, 4] }, s(ce, [2, 69]), s(ce, [2, 68]), { 16: 39, 17: 40, 19: 158, 60: b, 86: k, 100: E, 102: T, 103: y }, s(re, [2, 80]), s(_, [2, 34]), { 41: [1, 159] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 160, 41: [2, 39], 42: r, 43: 23, 48: u, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 161, 41: [2, 42], 42: r, 43: 23, 48: u, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 162, 41: [2, 45], 42: r, 43: 23, 48: u, 54: g, 56: N }, { 45: 163, 51: ue }, s(_, [2, 49]), { 41: [2, 62] }, s(_, [2, 52], { 39: [1, 164] }), s(A, [2, 60]), s(A, [2, 92]), s(A, [2, 94]), s(A, [2, 95], { 77: [1, 165] }), s(A, [2, 98]), s(A, [2, 99], { 13: [1, 166] }), s(A, [2, 101], { 13: [1, 168], 77: [1, 167] }), { 22: K, 50: W, 60: Q, 82: j, 84: 169, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(x, [2, 110]), s(Ge, [2, 75]), { 14: [1, 170] }, s(le, [2, 11]), s(ce, [2, 70]), s(_, [2, 35]), { 41: [2, 40] }, { 41: [2, 43] }, { 41: [2, 46] }, { 41: [1, 171] }, { 41: [1, 173], 45: 172, 51: ue }, s(A, [2, 96]), s(A, [2, 100]), s(A, [2, 102]), s(A, [2, 103], { 77: [1, 174] }), s(Ye, [2, 108], { 85: 154, 22: K, 50: W, 60: Q, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(Ne, [2, 8]), s(_, [2, 51]), { 41: [1, 175] }, s(_, [2, 54]), s(A, [2, 104]), s(_, [2, 53])],
259
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 127: [2, 37], 132: [2, 4], 144: [2, 62], 160: [2, 40], 161: [2, 43], 162: [2, 46] },
260
+ parseError: /* @__PURE__ */ f(function(o, h) {
261
+ if (h.recoverable)
262
+ this.trace(o);
263
+ else {
264
+ var p = new Error(o);
265
+ throw p.hash = h, p;
266
+ }
267
+ }, "parseError"),
268
+ parse: /* @__PURE__ */ f(function(o) {
269
+ var h = this, p = [0], l = [], C = [null], e = [], $ = this.table, t = "", he = 0, Ke = 0, Ze = 2, We = 1, $e = e.slice.call(arguments, 1), D = Object.create(this.lexer), V = { yy: {} };
270
+ for (var xe in this.yy)
271
+ Object.prototype.hasOwnProperty.call(this.yy, xe) && (V.yy[xe] = this.yy[xe]);
272
+ D.setInput(o, V.yy), V.yy.lexer = D, V.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
273
+ var ve = D.yylloc;
274
+ e.push(ve);
275
+ var et = D.options && D.options.ranges;
276
+ typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
277
+ function tt(S) {
278
+ p.length = p.length - 2 * S, C.length = C.length - S, e.length = e.length - S;
279
+ }
280
+ f(tt, "popStack");
281
+ function Qe() {
282
+ var S;
283
+ return S = l.pop() || D.lex() || We, typeof S != "number" && (S instanceof Array && (l = S, S = l.pop()), S = h.symbols_[S] || S), S;
284
+ }
285
+ f(Qe, "lex");
286
+ for (var B, P, L, Ie, G = {}, de, v, je, pe; ; ) {
287
+ if (P = p[p.length - 1], this.defaultActions[P] ? L = this.defaultActions[P] : ((B === null || typeof B > "u") && (B = Qe()), L = $[P] && $[P][B]), typeof L > "u" || !L.length || !L[0]) {
288
+ var Oe = "";
289
+ pe = [];
290
+ for (de in $[P])
291
+ this.terminals_[de] && de > Ze && pe.push("'" + this.terminals_[de] + "'");
292
+ D.showPosition ? Oe = "Parse error on line " + (he + 1) + `:
293
+ ` + D.showPosition() + `
294
+ Expecting ` + pe.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Oe = "Parse error on line " + (he + 1) + ": Unexpected " + (B == We ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Oe, {
295
+ text: D.match,
296
+ token: this.terminals_[B] || B,
297
+ line: D.yylineno,
298
+ loc: ve,
299
+ expected: pe
300
+ });
301
+ }
302
+ if (L[0] instanceof Array && L.length > 1)
303
+ throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + B);
304
+ switch (L[0]) {
305
+ case 1:
306
+ p.push(B), C.push(D.yytext), e.push(D.yylloc), p.push(L[1]), B = null, Ke = D.yyleng, t = D.yytext, he = D.yylineno, ve = D.yylloc;
307
+ break;
308
+ case 2:
309
+ if (v = this.productions_[L[1]][1], G.$ = C[C.length - v], G._$ = {
310
+ first_line: e[e.length - (v || 1)].first_line,
311
+ last_line: e[e.length - 1].last_line,
312
+ first_column: e[e.length - (v || 1)].first_column,
313
+ last_column: e[e.length - 1].last_column
314
+ }, et && (G._$.range = [
315
+ e[e.length - (v || 1)].range[0],
316
+ e[e.length - 1].range[1]
317
+ ]), Ie = this.performAction.apply(G, [
318
+ t,
319
+ Ke,
320
+ he,
321
+ V.yy,
322
+ L[1],
323
+ C,
324
+ e
325
+ ].concat($e)), typeof Ie < "u")
326
+ return Ie;
327
+ v && (p = p.slice(0, -1 * v * 2), C = C.slice(0, -1 * v), e = e.slice(0, -1 * v)), p.push(this.productions_[L[1]][0]), C.push(G.$), e.push(G._$), je = $[p[p.length - 2]][p[p.length - 1]], p.push(je);
328
+ break;
329
+ case 3:
330
+ return !0;
331
+ }
332
+ }
333
+ return !0;
334
+ }, "parse")
335
+ }, Je = /* @__PURE__ */ (function() {
336
+ var O = {
337
+ EOF: 1,
338
+ parseError: /* @__PURE__ */ f(function(h, p) {
339
+ if (this.yy.parser)
340
+ this.yy.parser.parseError(h, p);
341
+ else
342
+ throw new Error(h);
343
+ }, "parseError"),
344
+ // resets the lexer, sets new input
345
+ setInput: /* @__PURE__ */ f(function(o, h) {
346
+ return this.yy = h || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
347
+ first_line: 1,
348
+ first_column: 0,
349
+ last_line: 1,
350
+ last_column: 0
351
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
352
+ }, "setInput"),
353
+ // consumes and returns one char from the input
354
+ input: /* @__PURE__ */ f(function() {
355
+ var o = this._input[0];
356
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
357
+ var h = o.match(/(?:\r\n?|\n).*/g);
358
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
359
+ }, "input"),
360
+ // unshifts one char (or a string) into the input
361
+ unput: /* @__PURE__ */ f(function(o) {
362
+ var h = o.length, p = o.split(/(?:\r\n?|\n)/g);
363
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
364
+ var l = this.match.split(/(?:\r\n?|\n)/g);
365
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
366
+ var C = this.yylloc.range;
367
+ return this.yylloc = {
368
+ first_line: this.yylloc.first_line,
369
+ last_line: this.yylineno + 1,
370
+ first_column: this.yylloc.first_column,
371
+ last_column: p ? (p.length === l.length ? this.yylloc.first_column : 0) + l[l.length - p.length].length - p[0].length : this.yylloc.first_column - h
372
+ }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
373
+ }, "unput"),
374
+ // When called from action, caches matched text and appends it on next action
375
+ more: /* @__PURE__ */ f(function() {
376
+ return this._more = !0, this;
377
+ }, "more"),
378
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
379
+ reject: /* @__PURE__ */ f(function() {
380
+ if (this.options.backtrack_lexer)
381
+ this._backtrack = !0;
382
+ else
383
+ 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).
384
+ ` + this.showPosition(), {
385
+ text: "",
386
+ token: null,
387
+ line: this.yylineno
388
+ });
389
+ return this;
390
+ }, "reject"),
391
+ // retain first n characters of the match
392
+ less: /* @__PURE__ */ f(function(o) {
393
+ this.unput(this.match.slice(o));
394
+ }, "less"),
395
+ // displays already matched input, i.e. for error messages
396
+ pastInput: /* @__PURE__ */ f(function() {
397
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
398
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
399
+ }, "pastInput"),
400
+ // displays upcoming input, i.e. for error messages
401
+ upcomingInput: /* @__PURE__ */ f(function() {
402
+ var o = this.match;
403
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
404
+ }, "upcomingInput"),
405
+ // displays the character position where the lexing error occurred, i.e. for error messages
406
+ showPosition: /* @__PURE__ */ f(function() {
407
+ var o = this.pastInput(), h = new Array(o.length + 1).join("-");
408
+ return o + this.upcomingInput() + `
409
+ ` + h + "^";
410
+ }, "showPosition"),
411
+ // test the lexed token: return FALSE when not a match, otherwise return token
412
+ test_match: /* @__PURE__ */ f(function(o, h) {
413
+ var p, l, C;
414
+ if (this.options.backtrack_lexer && (C = {
415
+ yylineno: this.yylineno,
416
+ yylloc: {
417
+ first_line: this.yylloc.first_line,
418
+ last_line: this.last_line,
419
+ first_column: this.yylloc.first_column,
420
+ last_column: this.yylloc.last_column
421
+ },
422
+ yytext: this.yytext,
423
+ match: this.match,
424
+ matches: this.matches,
425
+ matched: this.matched,
426
+ yyleng: this.yyleng,
427
+ offset: this.offset,
428
+ _more: this._more,
429
+ _input: this._input,
430
+ yy: this.yy,
431
+ conditionStack: this.conditionStack.slice(0),
432
+ done: this.done
433
+ }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), l = o[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
434
+ first_line: this.yylloc.last_line,
435
+ last_line: this.yylineno + 1,
436
+ first_column: this.yylloc.last_column,
437
+ last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
438
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(o[0].length), this.matched += o[0], p = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
439
+ return p;
440
+ if (this._backtrack) {
441
+ for (var e in C)
442
+ this[e] = C[e];
443
+ return !1;
444
+ }
445
+ return !1;
446
+ }, "test_match"),
447
+ // return next match in input
448
+ next: /* @__PURE__ */ f(function() {
449
+ if (this.done)
450
+ return this.EOF;
451
+ this._input || (this.done = !0);
452
+ var o, h, p, l;
453
+ this._more || (this.yytext = "", this.match = "");
454
+ for (var C = this._currentRules(), e = 0; e < C.length; e++)
455
+ if (p = this._input.match(this.rules[C[e]]), p && (!h || p[0].length > h[0].length)) {
456
+ if (h = p, l = e, this.options.backtrack_lexer) {
457
+ if (o = this.test_match(p, C[e]), o !== !1)
458
+ return o;
459
+ if (this._backtrack) {
460
+ h = !1;
461
+ continue;
462
+ } else
463
+ return !1;
464
+ } else if (!this.options.flex)
465
+ break;
466
+ }
467
+ return h ? (o = this.test_match(h, C[l]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
468
+ ` + this.showPosition(), {
469
+ text: "",
470
+ token: null,
471
+ line: this.yylineno
472
+ });
473
+ }, "next"),
474
+ // return next match that has a token
475
+ lex: /* @__PURE__ */ f(function() {
476
+ var h = this.next();
477
+ return h || this.lex();
478
+ }, "lex"),
479
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
480
+ begin: /* @__PURE__ */ f(function(h) {
481
+ this.conditionStack.push(h);
482
+ }, "begin"),
483
+ // pop the previously active lexer condition state off the condition stack
484
+ popState: /* @__PURE__ */ f(function() {
485
+ var h = this.conditionStack.length - 1;
486
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
487
+ }, "popState"),
488
+ // produce the lexer rule set which is active for the currently active lexer condition state
489
+ _currentRules: /* @__PURE__ */ f(function() {
490
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
491
+ }, "_currentRules"),
492
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
493
+ topState: /* @__PURE__ */ f(function(h) {
494
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
495
+ }, "topState"),
496
+ // alias for begin(condition)
497
+ pushState: /* @__PURE__ */ f(function(h) {
498
+ this.begin(h);
499
+ }, "pushState"),
500
+ // return the number of states currently on the stack
501
+ stateStackSize: /* @__PURE__ */ f(function() {
502
+ return this.conditionStack.length;
503
+ }, "stateStackSize"),
504
+ options: {},
505
+ performAction: /* @__PURE__ */ f(function(h, p, l, C) {
506
+ switch (l) {
507
+ case 0:
508
+ return 62;
509
+ case 1:
510
+ return 63;
511
+ case 2:
512
+ return 64;
513
+ case 3:
514
+ return 65;
515
+ case 4:
516
+ break;
517
+ case 5:
518
+ break;
519
+ case 6:
520
+ return this.begin("acc_title"), 33;
521
+ case 7:
522
+ return this.popState(), "acc_title_value";
523
+ case 8:
524
+ return this.begin("acc_descr"), 35;
525
+ case 9:
526
+ return this.popState(), "acc_descr_value";
527
+ case 10:
528
+ this.begin("acc_descr_multiline");
529
+ break;
530
+ case 11:
531
+ this.popState();
532
+ break;
533
+ case 12:
534
+ return "acc_descr_multiline_value";
535
+ case 13:
536
+ return 8;
537
+ case 14:
538
+ break;
539
+ case 15:
540
+ return 7;
541
+ case 16:
542
+ return 7;
543
+ case 17:
544
+ return "EDGE_STATE";
545
+ case 18:
546
+ this.begin("callback_name");
547
+ break;
548
+ case 19:
549
+ this.popState();
550
+ break;
551
+ case 20:
552
+ this.popState(), this.begin("callback_args");
553
+ break;
554
+ case 21:
555
+ return 79;
556
+ case 22:
557
+ this.popState();
558
+ break;
559
+ case 23:
560
+ return 80;
561
+ case 24:
562
+ this.popState();
563
+ break;
564
+ case 25:
565
+ return "STR";
566
+ case 26:
567
+ this.begin("string");
568
+ break;
569
+ case 27:
570
+ return 82;
571
+ case 28:
572
+ return 57;
573
+ case 29:
574
+ return this.begin("namespace"), 42;
575
+ case 30:
576
+ return this.popState(), 8;
577
+ case 31:
578
+ break;
579
+ case 32:
580
+ return this.begin("namespace-body"), 39;
581
+ case 33:
582
+ this.popState(), this.less(0);
583
+ break;
584
+ case 34:
585
+ return this.popState(), 41;
586
+ case 35:
587
+ return "EOF_IN_STRUCT";
588
+ case 36:
589
+ return 8;
590
+ case 37:
591
+ break;
592
+ case 38:
593
+ return "EDGE_STATE";
594
+ case 39:
595
+ return this.begin("class"), 48;
596
+ case 40:
597
+ return this.popState(), 8;
598
+ case 41:
599
+ break;
600
+ case 42:
601
+ return this.popState(), this.popState(), 41;
602
+ case 43:
603
+ return this.begin("class-body"), 39;
604
+ case 44:
605
+ return this.popState(), 41;
606
+ case 45:
607
+ return "EOF_IN_STRUCT";
608
+ case 46:
609
+ return "EDGE_STATE";
610
+ case 47:
611
+ return "OPEN_IN_STRUCT";
612
+ case 48:
613
+ break;
614
+ case 49:
615
+ return "MEMBER";
616
+ case 50:
617
+ return 83;
618
+ case 51:
619
+ return 75;
620
+ case 52:
621
+ return 76;
622
+ case 53:
623
+ return 78;
624
+ case 54:
625
+ return 54;
626
+ case 55:
627
+ return 56;
628
+ case 56:
629
+ return 46;
630
+ case 57:
631
+ return 47;
632
+ case 58:
633
+ return 81;
634
+ case 59:
635
+ this.popState();
636
+ break;
637
+ case 60:
638
+ return "GENERICTYPE";
639
+ case 61:
640
+ this.begin("generic");
641
+ break;
642
+ case 62:
643
+ this.popState();
644
+ break;
645
+ case 63:
646
+ return "BQUOTE_STR";
647
+ case 64:
648
+ this.begin("bqstring");
649
+ break;
650
+ case 65:
651
+ return 77;
652
+ case 66:
653
+ return 77;
654
+ case 67:
655
+ return 77;
656
+ case 68:
657
+ return 77;
658
+ case 69:
659
+ return 69;
660
+ case 70:
661
+ return 69;
662
+ case 71:
663
+ return 71;
664
+ case 72:
665
+ return 71;
666
+ case 73:
667
+ return 70;
668
+ case 74:
669
+ return 68;
670
+ case 75:
671
+ return 72;
672
+ case 76:
673
+ return 73;
674
+ case 77:
675
+ return 74;
676
+ case 78:
677
+ return 22;
678
+ case 79:
679
+ return 44;
680
+ case 80:
681
+ return 100;
682
+ case 81:
683
+ return 18;
684
+ case 82:
685
+ return "PLUS";
686
+ case 83:
687
+ return 87;
688
+ case 84:
689
+ return 61;
690
+ case 85:
691
+ return 89;
692
+ case 86:
693
+ return 89;
694
+ case 87:
695
+ return 90;
696
+ case 88:
697
+ return "EQUALS";
698
+ case 89:
699
+ return "EQUALS";
700
+ case 90:
701
+ return 60;
702
+ case 91:
703
+ return 12;
704
+ case 92:
705
+ return 14;
706
+ case 93:
707
+ return "PUNCTUATION";
708
+ case 94:
709
+ return 86;
710
+ case 95:
711
+ return 102;
712
+ case 96:
713
+ return 50;
714
+ case 97:
715
+ return 50;
716
+ case 98:
717
+ return 9;
718
+ }
719
+ }, "anonymous"),
720
+ rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-9]+)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
721
+ conditions: { "namespace-body": { rules: [26, 29, 34, 35, 36, 37, 38, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 33, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, "class-body": { rules: [26, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, class: { rules: [26, 40, 41, 42, 43, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr: { rules: [9, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_title: { rules: [7, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, href: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, struct: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, generic: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, bqstring: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, string: { rules: [24, 25, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98], inclusive: !0 } }
722
+ };
723
+ return O;
724
+ })();
725
+ Le.lexer = Je;
726
+ function oe() {
727
+ this.yy = {};
728
+ }
729
+ return f(oe, "Parser"), oe.prototype = Le, Le.Parser = oe, new oe();
730
+ })();
731
+ Pe.parser = Pe;
732
+ var _t = Pe, Xe = ["#", "+", "~", "-", ""], z, qe = (z = class {
733
+ constructor(i, a) {
734
+ this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
735
+ const n = gt(i, F());
736
+ this.parseMember(n);
737
+ }
738
+ getDisplayDetails() {
739
+ let i = this.visibility + U(this.id);
740
+ this.memberType === "method" && (i += `(${U(this.parameters.trim())})`, this.returnType && (i += " : " + U(this.returnType))), i = i.trim();
741
+ const a = this.parseClassifier();
742
+ return {
743
+ displayText: i,
744
+ cssStyle: a
745
+ };
746
+ }
747
+ parseMember(i) {
748
+ let a = "";
749
+ if (this.memberType === "method") {
750
+ const c = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
751
+ if (c) {
752
+ const u = c[1] ? c[1].trim() : "";
753
+ if (Xe.includes(u) && (this.visibility = u), this.id = c[2], this.parameters = c[3] ? c[3].trim() : "", a = c[4] ? c[4].trim() : "", this.returnType = c[5] ? c[5].trim() : "", a === "") {
754
+ const d = this.returnType.substring(this.returnType.length - 1);
755
+ /[$*]/.exec(d) && (a = d, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
756
+ }
757
+ }
758
+ } else {
759
+ const r = i.length, c = i.substring(0, 1), u = i.substring(r - 1);
760
+ Xe.includes(c) && (this.visibility = c), /[$*]/.exec(u) && (a = u), this.id = i.substring(
761
+ this.visibility === "" ? 0 : 1,
762
+ a === "" ? r : r - 1
763
+ );
764
+ }
765
+ this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
766
+ const n = `${this.visibility ? "\\" + this.visibility : ""}${U(this.id)}${this.memberType === "method" ? `(${U(this.parameters)})${this.returnType ? " : " + U(this.returnType) : ""}` : ""}`;
767
+ this.text = n.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
768
+ }
769
+ parseClassifier() {
770
+ switch (this.classifier) {
771
+ case "*":
772
+ return "font-style:italic;";
773
+ case "$":
774
+ return "text-decoration:underline;";
775
+ default:
776
+ return "";
777
+ }
778
+ }
779
+ }, f(z, "ClassMember"), z), fe = "classId-", He = 0, M = /* @__PURE__ */ f((s) => I.sanitizeText(s, F()), "sanitizeText"), w, St = (w = class {
780
+ constructor() {
781
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.functions = [], this.lineType = {
782
+ LINE: 0,
783
+ DOTTED_LINE: 1
784
+ }, this.relationType = {
785
+ AGGREGATION: 0,
786
+ EXTENSION: 1,
787
+ COMPOSITION: 2,
788
+ DEPENDENCY: 3,
789
+ LOLLIPOP: 4
790
+ }, this.setupToolTips = /* @__PURE__ */ f((i) => {
791
+ const a = mt();
792
+ Ae(i).select("svg").selectAll("g").filter(function() {
793
+ return Ae(this).attr("title") !== null;
794
+ }).on("mouseover", (c) => {
795
+ const u = Ae(c.currentTarget), d = u.attr("title");
796
+ if (!d)
797
+ return;
798
+ const m = c.currentTarget.getBoundingClientRect();
799
+ a.transition().duration(200).style("opacity", ".9"), a.html(ut.sanitize(d)).style("left", `${window.scrollX + m.left + m.width / 2}px`).style("top", `${window.scrollY + m.bottom + 4}px`), u.classed("hover", !0);
800
+ }).on("mouseout", (c) => {
801
+ a.transition().duration(500).style("opacity", 0), Ae(c.currentTarget).classed("hover", !1);
802
+ });
803
+ }, "setupToolTips"), this.direction = "TB", this.setAccTitle = lt, this.getAccTitle = ct, this.setAccDescription = ot, this.getAccDescription = ht, this.setDiagramTitle = dt, this.getDiagramTitle = pt, this.getConfig = /* @__PURE__ */ f(() => F().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.popNamespace = this.popNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
804
+ }
805
+ splitClassNameAndType(i) {
806
+ const a = I.sanitizeText(i, F());
807
+ let n = "", r = a;
808
+ if (a.indexOf("~") > 0) {
809
+ const c = a.split("~");
810
+ r = M(c[0]), n = M(c[1]);
811
+ }
812
+ return { className: r, type: n };
813
+ }
814
+ setClassLabel(i, a) {
815
+ const n = I.sanitizeText(i, F());
816
+ a && (a = M(a));
817
+ const { className: r } = this.splitClassNameAndType(n);
818
+ this.classes.get(r).label = a, this.classes.get(r).text = `${a}${this.classes.get(r).type ? `<${this.classes.get(r).type}>` : ""}`;
819
+ }
820
+ /**
821
+ * Function called by parser when a node definition has been found.
822
+ *
823
+ * @param id - ID of the class to add
824
+ * @public
825
+ */
826
+ addClass(i) {
827
+ const a = I.sanitizeText(i, F()), { className: n, type: r } = this.splitClassNameAndType(a);
828
+ if (this.classes.has(n))
829
+ return;
830
+ const c = I.sanitizeText(n, F());
831
+ this.classes.set(c, {
832
+ id: c,
833
+ type: r,
834
+ label: c,
835
+ text: `${c}${r ? `&lt;${r}&gt;` : ""}`,
836
+ shape: "classBox",
837
+ cssClasses: "default",
838
+ methods: [],
839
+ members: [],
840
+ annotations: [],
841
+ styles: [],
842
+ domId: fe + c + "-" + He
843
+ }), He++;
844
+ }
845
+ addInterface(i, a) {
846
+ const n = {
847
+ id: `interface${this.interfaces.length}`,
848
+ label: i,
849
+ classId: a
850
+ };
851
+ this.interfaces.push(n);
852
+ }
853
+ /**
854
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
855
+ * across multiple diagrams on the same page.
856
+ */
857
+ setDiagramId(i) {
858
+ this.diagramId = i;
859
+ }
860
+ /**
861
+ * Function to lookup domId from id in the graph definition.
862
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
863
+ *
864
+ * @param id - class ID to lookup
865
+ * @public
866
+ */
867
+ lookUpDomId(i) {
868
+ const a = I.sanitizeText(i, F());
869
+ if (this.classes.has(a)) {
870
+ const n = this.classes.get(a).domId;
871
+ return this.diagramId ? `${this.diagramId}-${n}` : n;
872
+ }
873
+ throw new Error("Class not found: " + a);
874
+ }
875
+ clear() {
876
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.direction = "TB", At();
877
+ }
878
+ getClass(i) {
879
+ return this.classes.get(i);
880
+ }
881
+ getClasses() {
882
+ return this.classes;
883
+ }
884
+ getRelations() {
885
+ return this.relations;
886
+ }
887
+ getNote(i) {
888
+ const a = typeof i == "number" ? `note${i}` : i;
889
+ return this.notes.get(a);
890
+ }
891
+ getNotes() {
892
+ return this.notes;
893
+ }
894
+ addRelation(i) {
895
+ we.debug("Adding relation: " + JSON.stringify(i));
896
+ const a = [
897
+ this.relationType.LOLLIPOP,
898
+ this.relationType.AGGREGATION,
899
+ this.relationType.COMPOSITION,
900
+ this.relationType.DEPENDENCY,
901
+ this.relationType.EXTENSION
902
+ ];
903
+ i.relation.type1 === this.relationType.LOLLIPOP && !a.includes(i.relation.type2) ? (this.addClass(i.id2), this.addInterface(i.id1, i.id2), i.id1 = `interface${this.interfaces.length - 1}`) : i.relation.type2 === this.relationType.LOLLIPOP && !a.includes(i.relation.type1) ? (this.addClass(i.id1), this.addInterface(i.id2, i.id1), i.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(i.id1), this.addClass(i.id2)), i.id1 = this.splitClassNameAndType(i.id1).className, i.id2 = this.splitClassNameAndType(i.id2).className, i.relationTitle1 = I.sanitizeText(
904
+ i.relationTitle1.trim(),
905
+ F()
906
+ ), i.relationTitle2 = I.sanitizeText(
907
+ i.relationTitle2.trim(),
908
+ F()
909
+ ), this.relations.push(i);
910
+ }
911
+ /**
912
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
913
+ * (like 'interface' or 'service')
914
+ *
915
+ * @param className - The class name
916
+ * @param annotation - The name of the annotation without any brackets
917
+ * @public
918
+ */
919
+ addAnnotation(i, a) {
920
+ const n = this.splitClassNameAndType(i).className;
921
+ this.classes.get(n).annotations.push(a);
922
+ }
923
+ /**
924
+ * Adds a member to the specified class
925
+ *
926
+ * @param className - The class name
927
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
928
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
929
+ * method Otherwise the member will be treated as a normal property
930
+ * @public
931
+ */
932
+ addMember(i, a) {
933
+ this.addClass(i);
934
+ const n = this.splitClassNameAndType(i).className, r = this.classes.get(n);
935
+ if (typeof a == "string") {
936
+ const c = a.trim();
937
+ c.startsWith("<<") && c.endsWith(">>") ? r.annotations.push(M(c.substring(2, c.length - 2))) : c.indexOf(")") > 0 ? r.methods.push(new qe(c, "method")) : c && r.members.push(new qe(c, "attribute"));
938
+ }
939
+ }
940
+ addMembers(i, a) {
941
+ Array.isArray(a) && (a.reverse(), a.forEach((n) => this.addMember(i, n)));
942
+ }
943
+ addNote(i, a) {
944
+ const n = this.notes.size, r = {
945
+ id: `note${n}`,
946
+ class: a,
947
+ text: i,
948
+ index: n
949
+ };
950
+ return this.notes.set(r.id, r), r.id;
951
+ }
952
+ cleanupLabel(i) {
953
+ return i.startsWith(":") && (i = i.substring(1)), M(i.trim());
954
+ }
955
+ /**
956
+ * Called by parser when assigning cssClass to a class
957
+ *
958
+ * @param ids - Comma separated list of ids
959
+ * @param className - Class to add
960
+ */
961
+ setCssClass(i, a) {
962
+ i.split(",").forEach((n) => {
963
+ let r = n;
964
+ /\d/.exec(n[0]) && (r = fe + r), r = this.splitClassNameAndType(r).className;
965
+ const c = this.classes.get(r);
966
+ c && (c.cssClasses += " " + a);
967
+ });
968
+ }
969
+ defineClass(i, a) {
970
+ for (const n of i) {
971
+ let r = this.styleClasses.get(n);
972
+ r === void 0 && (r = { id: n, styles: [], textStyles: [] }, this.styleClasses.set(n, r)), a && a.forEach((c) => {
973
+ if (/color/.exec(c)) {
974
+ const u = c.replace("fill", "bgFill");
975
+ r.textStyles.push(u);
976
+ }
977
+ r.styles.push(c);
978
+ }), this.classes.forEach((c) => {
979
+ c.cssClasses.includes(n) && c.styles.push(...a.flatMap((u) => u.split(",")));
980
+ });
981
+ }
982
+ }
983
+ /**
984
+ * Called by parser when a tooltip is found, e.g. a clickable element.
985
+ *
986
+ * @param ids - Comma separated list of ids
987
+ * @param tooltip - Tooltip to add
988
+ */
989
+ setTooltip(i, a) {
990
+ i.split(",").forEach((n) => {
991
+ if (a !== void 0) {
992
+ const r = this.splitClassNameAndType(n).className, c = this.classes.get(r);
993
+ c && (c.tooltip = M(a));
994
+ }
995
+ });
996
+ }
997
+ getTooltip(i, a) {
998
+ return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
999
+ }
1000
+ /**
1001
+ * Called by parser when a link is found. Adds the URL to the vertex data.
1002
+ *
1003
+ * @param ids - Comma separated list of ids
1004
+ * @param linkStr - URL to create a link for
1005
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
1006
+ */
1007
+ setLink(i, a, n) {
1008
+ const r = F();
1009
+ i.split(",").forEach((c) => {
1010
+ let u = c;
1011
+ /\d/.exec(c[0]) && (u = fe + u), u = this.splitClassNameAndType(u).className;
1012
+ const d = this.classes.get(u);
1013
+ d && (d.link = Ve.formatUrl(a, r), r.securityLevel === "sandbox" ? d.linkTarget = "_top" : typeof n == "string" ? d.linkTarget = M(n) : d.linkTarget = "_blank");
1014
+ }), this.setCssClass(i, "clickable");
1015
+ }
1016
+ /**
1017
+ * Called by parser when a click definition is found. Registers an event handler.
1018
+ *
1019
+ * @param ids - Comma separated list of ids
1020
+ * @param functionName - Function to be called on click
1021
+ * @param functionArgs - Function args the function should be called with
1022
+ */
1023
+ setClickEvent(i, a, n) {
1024
+ i.split(",").forEach((r) => {
1025
+ this.setClickFunc(r, a, n);
1026
+ const c = this.splitClassNameAndType(r).className, u = this.classes.get(c);
1027
+ u && (u.haveCallback = !0);
1028
+ }), this.setCssClass(i, "clickable");
1029
+ }
1030
+ setClickFunc(i, a, n) {
1031
+ const r = I.sanitizeText(i, F());
1032
+ if (F().securityLevel !== "loose" || a === void 0)
1033
+ return;
1034
+ const u = this.splitClassNameAndType(r).className;
1035
+ if (this.classes.has(u)) {
1036
+ let d = [];
1037
+ if (typeof n == "string") {
1038
+ d = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1039
+ for (let m = 0; m < d.length; m++) {
1040
+ let g = d[m].trim();
1041
+ g.startsWith('"') && g.endsWith('"') && (g = g.substr(1, g.length - 2)), d[m] = g;
1042
+ }
1043
+ }
1044
+ d.length === 0 && d.push(u), this.functions.push(() => {
1045
+ const m = this.lookUpDomId(u), g = document.querySelector(`[id="${m}"]`);
1046
+ g !== null && g.addEventListener(
1047
+ "click",
1048
+ () => {
1049
+ Ve.runFunc(a, ...d);
1050
+ },
1051
+ !1
1052
+ );
1053
+ });
1054
+ }
1055
+ }
1056
+ bindFunctions(i) {
1057
+ this.functions.forEach((a) => {
1058
+ a(i);
1059
+ });
1060
+ }
1061
+ // Utility function to escape HTML meta-characters
1062
+ escapeHtml(i) {
1063
+ return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1064
+ }
1065
+ getDirection() {
1066
+ return this.direction;
1067
+ }
1068
+ setDirection(i) {
1069
+ this.direction = i;
1070
+ }
1071
+ static resolveQualifiedId(i, a) {
1072
+ const n = a.at(-1);
1073
+ return n ? `${n}.${i}` : i;
1074
+ }
1075
+ static getAncestorIds(i) {
1076
+ const a = i.split("."), n = new Array(a.length);
1077
+ n[0] = a[0];
1078
+ for (let r = 1; r < a.length; r++)
1079
+ n[r] = `${n[r - 1]}.${a[r]}`;
1080
+ return n;
1081
+ }
1082
+ createNamespaceNode(i, a, n, r = !1) {
1083
+ return {
1084
+ id: i,
1085
+ label: a,
1086
+ classes: /* @__PURE__ */ new Map(),
1087
+ notes: /* @__PURE__ */ new Map(),
1088
+ children: /* @__PURE__ */ new Map(),
1089
+ domId: fe + i + "-" + this.namespaceCounter++,
1090
+ parent: n,
1091
+ explicit: r
1092
+ };
1093
+ }
1094
+ linkParentChild(i, a) {
1095
+ const n = this.namespaces.get(i), r = this.namespaces.get(a);
1096
+ !n || !r || (n.children.has(a) || n.children.set(a, r), r.parent ??= i);
1097
+ }
1098
+ addNamespace(i, a) {
1099
+ const n = w.resolveQualifiedId(i, this.namespaceStack);
1100
+ if (this.namespaceStack.push(n), this.namespaces.has(n)) {
1101
+ const u = this.namespaces.get(n);
1102
+ return u.explicit = !0, a && (u.label = a), n;
1103
+ }
1104
+ const r = n.split("."), c = w.getAncestorIds(n);
1105
+ for (let u = 0; u < c.length; u++) {
1106
+ const d = c[u], m = u > 0 ? c[u - 1] : void 0, g = u === c.length - 1, N = g && a ? a : r[u];
1107
+ this.namespaces.has(d) ? g && (this.namespaces.get(d).explicit = !0) : this.namespaces.set(
1108
+ d,
1109
+ this.createNamespaceNode(d, N, m, g)
1110
+ ), m && this.linkParentChild(m, d);
1111
+ }
1112
+ return n;
1113
+ }
1114
+ popNamespace() {
1115
+ this.namespaceStack.pop();
1116
+ }
1117
+ getNamespace(i) {
1118
+ return this.namespaces.get(i);
1119
+ }
1120
+ getNamespaces() {
1121
+ return this.namespaces;
1122
+ }
1123
+ /**
1124
+ * Function called by parser when a namespace definition has been found.
1125
+ *
1126
+ * @param id - ID of the namespace to add
1127
+ * @param classNames - IDs of the class to add
1128
+ * @param noteNames - IDs of the notes to add
1129
+ * @public
1130
+ */
1131
+ addClassesToNamespace(i, a, n) {
1132
+ if (this.namespaces.has(i)) {
1133
+ for (const r of a) {
1134
+ const { className: c } = this.splitClassNameAndType(r), u = this.getClass(c);
1135
+ u.parent = i, this.namespaces.get(i).classes.set(c, u);
1136
+ }
1137
+ for (const r of n) {
1138
+ const c = this.getNote(r);
1139
+ c.parent = i, this.namespaces.get(i).notes.set(r, c);
1140
+ }
1141
+ }
1142
+ }
1143
+ setCssStyle(i, a) {
1144
+ const n = this.classes.get(i);
1145
+ if (!(!a || !n))
1146
+ for (const r of a)
1147
+ r.includes(",") ? n.styles.push(...r.split(",")) : n.styles.push(r);
1148
+ }
1149
+ /**
1150
+ * Gets the arrow marker for a type index
1151
+ *
1152
+ * @param type - The type to look for
1153
+ * @returns The arrow marker
1154
+ */
1155
+ getArrowMarker(i) {
1156
+ let a;
1157
+ switch (i) {
1158
+ case 0:
1159
+ a = "aggregation";
1160
+ break;
1161
+ case 1:
1162
+ a = "extension";
1163
+ break;
1164
+ case 2:
1165
+ a = "composition";
1166
+ break;
1167
+ case 3:
1168
+ a = "dependency";
1169
+ break;
1170
+ case 4:
1171
+ a = "lollipop";
1172
+ break;
1173
+ default:
1174
+ a = "none";
1175
+ }
1176
+ return a;
1177
+ }
1178
+ /**
1179
+ * Walks up the namespace tree from the given id and returns the nearest ancestor
1180
+ * (or the id itself) that is marked as explicit. Used by compact rendering mode
1181
+ * to reassign children to the nearest user-declared namespace.
1182
+ */
1183
+ resolveExplicitAncestor(i) {
1184
+ let a = i;
1185
+ for (; a; ) {
1186
+ const n = this.namespaces.get(a);
1187
+ if (!n)
1188
+ return;
1189
+ if (n.explicit)
1190
+ return a;
1191
+ a = n.parent;
1192
+ }
1193
+ }
1194
+ getData() {
1195
+ const i = [], a = [], n = F(), r = n.class?.hierarchicalNamespaces ?? !0;
1196
+ for (const u of this.namespaces.values()) {
1197
+ if (!r && !u.explicit)
1198
+ continue;
1199
+ const d = {
1200
+ id: u.id,
1201
+ label: r ? u.label : u.id,
1202
+ isGroup: !0,
1203
+ padding: n.class.padding ?? 16,
1204
+ // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1205
+ shape: "rect",
1206
+ cssStyles: [],
1207
+ look: n.look,
1208
+ parentId: r ? u.parent : void 0
1209
+ };
1210
+ i.push(d);
1211
+ }
1212
+ for (const u of this.classes.values()) {
1213
+ const d = r ? u.parent : this.resolveExplicitAncestor(u.parent), m = {
1214
+ ...u,
1215
+ type: void 0,
1216
+ isGroup: !1,
1217
+ parentId: d,
1218
+ look: n.look
1219
+ };
1220
+ i.push(m);
1221
+ }
1222
+ for (const u of this.notes.values()) {
1223
+ const d = r ? u.parent : this.resolveExplicitAncestor(u.parent), m = {
1224
+ id: u.id,
1225
+ label: u.text,
1226
+ isGroup: !1,
1227
+ shape: "note",
1228
+ padding: n.class.padding ?? 6,
1229
+ cssStyles: [
1230
+ "text-align: left",
1231
+ "white-space: nowrap",
1232
+ `fill: ${n.themeVariables.noteBkgColor}`,
1233
+ `stroke: ${n.themeVariables.noteBorderColor}`
1234
+ ],
1235
+ look: n.look,
1236
+ parentId: d,
1237
+ labelType: "markdown"
1238
+ };
1239
+ i.push(m);
1240
+ const g = this.classes.get(u.class)?.id;
1241
+ if (g) {
1242
+ const N = {
1243
+ id: `edgeNote${u.index}`,
1244
+ start: u.id,
1245
+ end: g,
1246
+ type: "normal",
1247
+ thickness: "normal",
1248
+ classes: "relation",
1249
+ arrowTypeStart: "none",
1250
+ arrowTypeEnd: "none",
1251
+ arrowheadStyle: "",
1252
+ labelStyle: [""],
1253
+ style: ["fill: none"],
1254
+ pattern: "dotted",
1255
+ look: n.look
1256
+ };
1257
+ a.push(N);
1258
+ }
1259
+ }
1260
+ for (const u of this.interfaces) {
1261
+ const d = {
1262
+ id: u.id,
1263
+ label: u.label,
1264
+ isGroup: !1,
1265
+ shape: "rect",
1266
+ cssStyles: ["opacity: 0;"],
1267
+ look: n.look
1268
+ };
1269
+ i.push(d);
1270
+ }
1271
+ let c = 0;
1272
+ for (const u of this.relations) {
1273
+ c++;
1274
+ const d = {
1275
+ id: ft(u.id1, u.id2, {
1276
+ prefix: "id",
1277
+ counter: c
1278
+ }),
1279
+ start: u.id1,
1280
+ end: u.id2,
1281
+ type: "normal",
1282
+ label: u.title,
1283
+ labelpos: "c",
1284
+ thickness: "normal",
1285
+ classes: "relation",
1286
+ arrowTypeStart: this.getArrowMarker(u.relation.type1),
1287
+ arrowTypeEnd: this.getArrowMarker(u.relation.type2),
1288
+ startLabelRight: u.relationTitle1 === "none" ? "" : u.relationTitle1,
1289
+ endLabelLeft: u.relationTitle2 === "none" ? "" : u.relationTitle2,
1290
+ arrowheadStyle: "",
1291
+ labelStyle: ["display: inline-block"],
1292
+ style: u.style || "",
1293
+ pattern: u.relation.lineType == 1 ? "dashed" : "solid",
1294
+ look: n.look,
1295
+ labelType: "markdown"
1296
+ };
1297
+ a.push(d);
1298
+ }
1299
+ return { nodes: i, edges: a, other: {}, config: n, direction: this.getDirection() };
1300
+ }
1301
+ }, f(w, "ClassDB"), w), Ct = /* @__PURE__ */ f((s) => `g.classGroup text {
1302
+ fill: ${s.nodeBorder || s.classText};
1303
+ stroke: none;
1304
+ font-family: ${s.fontFamily};
1305
+ font-size: 10px;
1306
+
1307
+ .title {
1308
+ font-weight: bolder;
1309
+ }
1310
+
1311
+ }
1312
+
1313
+ .cluster-label text {
1314
+ fill: ${s.titleColor};
1315
+ }
1316
+ .cluster-label span {
1317
+ color: ${s.titleColor};
1318
+ }
1319
+ .cluster-label span p {
1320
+ background-color: transparent;
1321
+ }
1322
+
1323
+ .cluster rect {
1324
+ fill: ${s.clusterBkg};
1325
+ stroke: ${s.clusterBorder};
1326
+ stroke-width: 1px;
1327
+ }
1328
+
1329
+ .cluster text {
1330
+ fill: ${s.titleColor};
1331
+ }
1332
+
1333
+ .cluster span {
1334
+ color: ${s.titleColor};
1335
+ }
1336
+
1337
+ .nodeLabel, .edgeLabel {
1338
+ color: ${s.classText};
1339
+ }
1340
+
1341
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
1342
+ color: ${s.noteTextColor};
1343
+ }
1344
+ .edgeLabel .label rect {
1345
+ fill: ${s.mainBkg};
1346
+ }
1347
+ .label text {
1348
+ fill: ${s.classText};
1349
+ }
1350
+
1351
+ .labelBkg {
1352
+ background: ${s.mainBkg};
1353
+ }
1354
+ .edgeLabel .label span {
1355
+ background: ${s.mainBkg};
1356
+ }
1357
+
1358
+ .classTitle {
1359
+ font-weight: bolder;
1360
+ }
1361
+ .node rect,
1362
+ .node circle,
1363
+ .node ellipse,
1364
+ .node polygon,
1365
+ .node path {
1366
+ fill: ${s.mainBkg};
1367
+ stroke: ${s.nodeBorder};
1368
+ stroke-width: ${s.strokeWidth};
1369
+ }
1370
+
1371
+
1372
+ .divider {
1373
+ stroke: ${s.nodeBorder};
1374
+ stroke-width: 1;
1375
+ }
1376
+
1377
+ g.clickable {
1378
+ cursor: pointer;
1379
+ }
1380
+
1381
+ g.classGroup rect {
1382
+ fill: ${s.mainBkg};
1383
+ stroke: ${s.nodeBorder};
1384
+ }
1385
+
1386
+ g.classGroup line {
1387
+ stroke: ${s.nodeBorder};
1388
+ stroke-width: 1;
1389
+ }
1390
+
1391
+ .classLabel .box {
1392
+ stroke: none;
1393
+ stroke-width: 0;
1394
+ fill: ${s.mainBkg};
1395
+ opacity: 0.5;
1396
+ }
1397
+
1398
+ .classLabel .label {
1399
+ fill: ${s.nodeBorder};
1400
+ font-size: 10px;
1401
+ }
1402
+
1403
+ .relation {
1404
+ stroke: ${s.lineColor};
1405
+ stroke-width: ${s.strokeWidth};
1406
+ fill: none;
1407
+ }
1408
+
1409
+ .dashed-line{
1410
+ stroke-dasharray: 3;
1411
+ }
1412
+
1413
+ .dotted-line{
1414
+ stroke-dasharray: 1 2;
1415
+ }
1416
+
1417
+ [id$="-compositionStart"], .composition {
1418
+ fill: ${s.lineColor} !important;
1419
+ stroke: ${s.lineColor} !important;
1420
+ stroke-width: 1;
1421
+ }
1422
+
1423
+ [id$="-compositionEnd"], .composition {
1424
+ fill: ${s.lineColor} !important;
1425
+ stroke: ${s.lineColor} !important;
1426
+ stroke-width: 1;
1427
+ }
1428
+
1429
+ [id$="-dependencyStart"], .dependency {
1430
+ fill: ${s.lineColor} !important;
1431
+ stroke: ${s.lineColor} !important;
1432
+ stroke-width: 1;
1433
+ }
1434
+
1435
+ [id$="-dependencyEnd"], .dependency {
1436
+ fill: ${s.lineColor} !important;
1437
+ stroke: ${s.lineColor} !important;
1438
+ stroke-width: 1;
1439
+ }
1440
+
1441
+ [id$="-extensionStart"], .extension {
1442
+ fill: transparent !important;
1443
+ stroke: ${s.lineColor} !important;
1444
+ stroke-width: 1;
1445
+ }
1446
+
1447
+ [id$="-extensionEnd"], .extension {
1448
+ fill: transparent !important;
1449
+ stroke: ${s.lineColor} !important;
1450
+ stroke-width: 1;
1451
+ }
1452
+
1453
+ [id$="-aggregationStart"], .aggregation {
1454
+ fill: transparent !important;
1455
+ stroke: ${s.lineColor} !important;
1456
+ stroke-width: 1;
1457
+ }
1458
+
1459
+ [id$="-aggregationEnd"], .aggregation {
1460
+ fill: transparent !important;
1461
+ stroke: ${s.lineColor} !important;
1462
+ stroke-width: 1;
1463
+ }
1464
+
1465
+ [id$="-lollipopStart"], .lollipop {
1466
+ fill: ${s.mainBkg} !important;
1467
+ stroke: ${s.lineColor} !important;
1468
+ stroke-width: 1;
1469
+ }
1470
+
1471
+ [id$="-lollipopEnd"], .lollipop {
1472
+ fill: ${s.mainBkg} !important;
1473
+ stroke: ${s.lineColor} !important;
1474
+ stroke-width: 1;
1475
+ }
1476
+
1477
+ .edgeTerminals {
1478
+ font-size: 11px;
1479
+ line-height: initial;
1480
+ }
1481
+
1482
+ .classTitleText {
1483
+ text-anchor: middle;
1484
+ font-size: 18px;
1485
+ fill: ${s.textColor};
1486
+ }
1487
+
1488
+ .edgeLabel[data-look="neo"] {
1489
+ background-color: ${s.edgeLabelBackground};
1490
+ p {
1491
+ background-color: ${s.edgeLabelBackground};
1492
+ }
1493
+ rect {
1494
+ opacity: 0.5;
1495
+ background-color: ${s.edgeLabelBackground};
1496
+ fill: ${s.edgeLabelBackground};
1497
+ }
1498
+ text-align: center;
1499
+ }
1500
+ ${st()}
1501
+ `, "getStyles"), Nt = Ct, bt = /* @__PURE__ */ f((s, i = "TB") => {
1502
+ if (!s.doc)
1503
+ return i;
1504
+ let a = i;
1505
+ for (const n of s.doc)
1506
+ n.stmt === "dir" && (a = n.value);
1507
+ return a;
1508
+ }, "getDir"), kt = /* @__PURE__ */ f(function(s, i) {
1509
+ return i.db.getClasses();
1510
+ }, "getClasses"), Et = /* @__PURE__ */ f(async function(s, i, a, n) {
1511
+ we.info("REF0:"), we.info("Drawing class diagram (v3)", i);
1512
+ const { securityLevel: r, state: c, layout: u } = F();
1513
+ n.db.setDiagramId(i);
1514
+ const d = n.db.getData(), m = it(i, r);
1515
+ d.type = n.type, d.layoutAlgorithm = nt(u), d.nodeSpacing = c?.nodeSpacing || 50, d.rankSpacing = c?.rankSpacing || 50, d.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], d.diagramId = i, await rt(d, m);
1516
+ const g = 8;
1517
+ Ve.insertTitle(
1518
+ m,
1519
+ "classDiagramTitleText",
1520
+ c?.titleTopMargin ?? 25,
1521
+ n.db.getDiagramTitle()
1522
+ ), at(m, g, "classDiagram", c?.useMaxWidth ?? !0);
1523
+ }, "draw"), Lt = {
1524
+ getClasses: kt,
1525
+ draw: Et,
1526
+ getDir: bt
1527
+ };
1528
+ export {
1529
+ St as C,
1530
+ _t as a,
1531
+ Lt as c,
1532
+ Nt as s
1533
+ };