@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.6

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 (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +62488 -24049
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2826 -2276
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +5956 -4781
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/abap.js +6 -0
  10. package/dist/actionscript-3.js +6 -0
  11. package/dist/ada.js +6 -0
  12. package/dist/andromeeda.js +4 -0
  13. package/dist/angular-html.js +32 -0
  14. package/dist/angular-ts.js +21 -0
  15. package/dist/apache.js +6 -0
  16. package/dist/apex.js +6 -0
  17. package/dist/apl.js +16 -0
  18. package/dist/applescript.js +6 -0
  19. package/dist/ara.js +6 -0
  20. package/dist/arc.js +53 -53
  21. package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
  22. package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
  23. package/dist/asciidoc.js +6 -0
  24. package/dist/asm.js +6 -0
  25. package/dist/assets/icons/index.js +1 -1
  26. package/dist/astro.js +18 -0
  27. package/dist/aurora-x.js +4 -0
  28. package/dist/awk.js +6 -0
  29. package/dist/ayu-dark.js +4 -0
  30. package/dist/ballerina.js +6 -0
  31. package/dist/band.js +46 -0
  32. package/dist/bat.js +6 -0
  33. package/dist/beancount.js +6 -0
  34. package/dist/berry.js +6 -0
  35. package/dist/bibtex.js +6 -0
  36. package/dist/bicep.js +6 -0
  37. package/dist/blade.js +20 -0
  38. package/dist/blockDiagram-VD42YOAC.js +1 -1
  39. package/dist/blockDiagram-VD42YOAC2.js +2266 -0
  40. package/dist/bsl.js +8 -0
  41. package/dist/c.js +6 -0
  42. package/dist/c3.js +6 -0
  43. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  44. package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
  45. package/dist/cadence.js +6 -0
  46. package/dist/cairo.js +8 -0
  47. package/dist/catppuccin-frappe.js +4 -0
  48. package/dist/catppuccin-latte.js +4 -0
  49. package/dist/catppuccin-macchiato.js +4 -0
  50. package/dist/catppuccin-mocha.js +4 -0
  51. package/dist/channel.js +2 -2
  52. package/dist/chatbotV2/index.d.ts +57 -19
  53. package/dist/chatbotV2/index.js +120 -56
  54. package/dist/chunk-4BX2VUAB.js +1 -1
  55. package/dist/chunk-4BX2VUAB2.js +9 -0
  56. package/dist/chunk-55IACEB6.js +2 -2
  57. package/dist/chunk-55IACEB62.js +9 -0
  58. package/dist/chunk-B4BG7PRW.js +1 -1
  59. package/dist/chunk-B4BG7PRW2.js +1377 -0
  60. package/dist/chunk-DI55MBZ5.js +14 -14
  61. package/dist/chunk-DI55MBZ52.js +1382 -0
  62. package/dist/chunk-FMBD7UC4.js +1 -1
  63. package/dist/chunk-FMBD7UC42.js +19 -0
  64. package/dist/chunk-QN33PNHL.js +5 -5
  65. package/dist/chunk-QN33PNHL2.js +20 -0
  66. package/dist/chunk-QZHKN3VN.js +1 -1
  67. package/dist/chunk-QZHKN3VN2.js +15 -0
  68. package/dist/chunk-TZMSLE5B.js +1 -1
  69. package/dist/chunk-TZMSLE5B2.js +64 -0
  70. package/dist/clarity.js +6 -0
  71. package/dist/classDiagram-2ON5EDUG.js +1 -1
  72. package/dist/classDiagram-2ON5EDUG2.js +17 -0
  73. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  74. package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
  75. package/dist/clojure.js +6 -0
  76. package/dist/cmake.js +6 -0
  77. package/dist/cobol.js +10 -0
  78. package/dist/code-block-37QAKDTI.js +27 -0
  79. package/dist/codeowners.js +6 -0
  80. package/dist/codeql.js +6 -0
  81. package/dist/coffee.js +8 -0
  82. package/dist/common-lisp.js +6 -0
  83. package/dist/coq.js +6 -0
  84. package/dist/cose-bilkent-S5V4N54A.js +160 -2535
  85. package/dist/cose-bilkent-S5V4N54A2.js +231 -0
  86. package/dist/cpp.js +18 -0
  87. package/dist/crystal.js +18 -0
  88. package/dist/csharp.js +6 -0
  89. package/dist/css.js +6 -0
  90. package/dist/csv.js +6 -0
  91. package/dist/cue.js +6 -0
  92. package/dist/cypher.js +6 -0
  93. package/dist/cytoscape-cose-bilkent.js +2380 -0
  94. package/dist/cytoscape-fcose.js +3840 -0
  95. package/dist/d.js +6 -0
  96. package/dist/dagre-6UL2VRFP.js +44 -44
  97. package/dist/dagre-6UL2VRFP2.js +447 -0
  98. package/dist/dark-plus.js +4 -0
  99. package/dist/dart.js +6 -0
  100. package/dist/dax.js +6 -0
  101. package/dist/dayjs.min.js +2 -2
  102. package/dist/defaultLocale.js +3 -3
  103. package/dist/desktop.js +6 -0
  104. package/dist/diagram-PSM6KHXK.js +198 -414
  105. package/dist/diagram-PSM6KHXK2.js +319 -0
  106. package/dist/diagram-QEK2KX5R.js +26 -26
  107. package/dist/diagram-QEK2KX5R2.js +221 -0
  108. package/dist/diagram-S2PKOQOG.js +12 -12
  109. package/dist/diagram-S2PKOQOG2.js +143 -0
  110. package/dist/diff.js +6 -0
  111. package/dist/docker.js +6 -0
  112. package/dist/dotenv.js +6 -0
  113. package/dist/dracula-soft.js +4 -0
  114. package/dist/dracula.js +4 -0
  115. package/dist/dream-maker.js +6 -0
  116. package/dist/edge.js +12 -0
  117. package/dist/elixir.js +8 -0
  118. package/dist/elm.js +8 -0
  119. package/dist/emacs-lisp.js +6 -0
  120. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  121. package/dist/erDiagram-Q2GNP2WA2.js +843 -0
  122. package/dist/erb.js +10 -0
  123. package/dist/erlang.js +8 -0
  124. package/dist/everforest-dark.js +4 -0
  125. package/dist/everforest-light.js +4 -0
  126. package/dist/fennel.js +6 -0
  127. package/dist/fish.js +6 -0
  128. package/dist/flowDiagram-NV44I4VS.js +6 -6
  129. package/dist/flowDiagram-NV44I4VS2.js +1628 -0
  130. package/dist/fluent.js +6 -0
  131. package/dist/fortran-fixed-form.js +8 -0
  132. package/dist/fortran-free-form.js +6 -0
  133. package/dist/fsharp.js +8 -0
  134. package/dist/ganttDiagram-JELNMOA3.js +1788 -0
  135. package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
  136. package/dist/gdresource.js +10 -0
  137. package/dist/gdscript.js +6 -0
  138. package/dist/gdshader.js +6 -0
  139. package/dist/genie.js +6 -0
  140. package/dist/gherkin.js +6 -0
  141. package/dist/git-commit.js +8 -0
  142. package/dist/git-rebase.js +8 -0
  143. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  144. package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
  145. package/dist/github-dark-default.js +4 -0
  146. package/dist/github-dark-dimmed.js +4 -0
  147. package/dist/github-dark-high-contrast.js +4 -0
  148. package/dist/github-dark.js +4 -0
  149. package/dist/github-light-default.js +4 -0
  150. package/dist/github-light-high-contrast.js +4 -0
  151. package/dist/github-light.js +4 -0
  152. package/dist/gleam.js +6 -0
  153. package/dist/glimmer-js.js +14 -0
  154. package/dist/glimmer-ts.js +14 -0
  155. package/dist/glsl.js +8 -0
  156. package/dist/gn.js +6 -0
  157. package/dist/gnuplot.js +6 -0
  158. package/dist/go.js +6 -0
  159. package/dist/graph.js +17 -18
  160. package/dist/graph2.js +246 -0
  161. package/dist/graphql.js +14 -0
  162. package/dist/groovy.js +6 -0
  163. package/dist/gruvbox-dark-hard.js +4 -0
  164. package/dist/gruvbox-dark-medium.js +4 -0
  165. package/dist/gruvbox-dark-soft.js +4 -0
  166. package/dist/gruvbox-light-hard.js +4 -0
  167. package/dist/gruvbox-light-medium.js +4 -0
  168. package/dist/gruvbox-light-soft.js +4 -0
  169. package/dist/hack.js +10 -0
  170. package/dist/haml.js +10 -0
  171. package/dist/handlebars.js +14 -0
  172. package/dist/haskell.js +6 -0
  173. package/dist/haxe.js +6 -0
  174. package/dist/hcl.js +6 -0
  175. package/dist/hjson.js +6 -0
  176. package/dist/hlsl.js +6 -0
  177. package/dist/houston.js +4 -0
  178. package/dist/html-derivative.js +8 -0
  179. package/dist/html.js +10 -0
  180. package/dist/http.js +14 -0
  181. package/dist/hurl.js +12 -0
  182. package/dist/hxml.js +8 -0
  183. package/dist/hy.js +6 -0
  184. package/dist/imba.js +6 -0
  185. package/dist/index.d.ts +2 -2
  186. package/dist/index.js +37 -37
  187. package/dist/index2.js +216 -684
  188. package/dist/index3.js +689 -0
  189. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  190. package/dist/infoDiagram-WHAUD3N6.js +24 -0
  191. package/dist/ini.js +6 -0
  192. package/dist/java.js +6 -0
  193. package/dist/javascript.js +6 -0
  194. package/dist/jinja.js +11 -0
  195. package/dist/jison.js +8 -0
  196. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  197. package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
  198. package/dist/json.js +6 -0
  199. package/dist/json5.js +6 -0
  200. package/dist/jsonc.js +6 -0
  201. package/dist/jsonl.js +6 -0
  202. package/dist/jsonnet.js +6 -0
  203. package/dist/jssm.js +6 -0
  204. package/dist/jsx.js +6 -0
  205. package/dist/julia.js +16 -0
  206. package/dist/kanagawa-dragon.js +4 -0
  207. package/dist/kanagawa-lotus.js +4 -0
  208. package/dist/kanagawa-wave.js +4 -0
  209. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  210. package/dist/kanban-definition-3W4ZIXB72.js +720 -0
  211. package/dist/katex2.js +11691 -0
  212. package/dist/kdl.js +6 -0
  213. package/dist/kotlin.js +6 -0
  214. package/dist/kusto.js +6 -0
  215. package/dist/laserwave.js +4 -0
  216. package/dist/latex.js +8 -0
  217. package/dist/layout.js +567 -678
  218. package/dist/layout2.js +1224 -0
  219. package/dist/lean.js +6 -0
  220. package/dist/less.js +6 -0
  221. package/dist/light-plus.js +4 -0
  222. package/dist/lineage/index.js +1234 -1241
  223. package/dist/linear.js +1 -1
  224. package/dist/liquid.js +14 -0
  225. package/dist/llvm.js +6 -0
  226. package/dist/log.js +6 -0
  227. package/dist/logo.js +6 -0
  228. package/dist/lua.js +8 -0
  229. package/dist/luau.js +6 -0
  230. package/dist/main.css +1 -1
  231. package/dist/main.js +82 -82
  232. package/dist/make.js +6 -0
  233. package/dist/markdown.js +6 -0
  234. package/dist/marko.js +14 -0
  235. package/dist/material-theme-darker.js +4 -0
  236. package/dist/material-theme-lighter.js +4 -0
  237. package/dist/material-theme-ocean.js +4 -0
  238. package/dist/material-theme-palenight.js +4 -0
  239. package/dist/material-theme.js +4 -0
  240. package/dist/matlab.js +6 -0
  241. package/dist/mdc.js +12 -0
  242. package/dist/mdx.js +6 -0
  243. package/dist/mermaid-4DMBBIKO.js +4 -0
  244. package/dist/mermaid-parser.core.js +155 -155
  245. package/dist/mermaid.js +6 -0
  246. package/dist/min-dark.js +4 -0
  247. package/dist/min-light.js +4 -0
  248. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  249. package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
  250. package/dist/mipsasm.js +6 -0
  251. package/dist/mojo.js +6 -0
  252. package/dist/monokai.js +4 -0
  253. package/dist/moonbit.js +6 -0
  254. package/dist/move.js +6 -0
  255. package/dist/narrat.js +6 -0
  256. package/dist/nextflow.js +6 -0
  257. package/dist/nginx.js +8 -0
  258. package/dist/night-owl.js +4 -0
  259. package/dist/nim.js +20 -0
  260. package/dist/nix.js +9 -0
  261. package/dist/nord.js +4 -0
  262. package/dist/nushell.js +6 -0
  263. package/dist/objective-c.js +6 -0
  264. package/dist/objective-cpp.js +6 -0
  265. package/dist/ocaml.js +6 -0
  266. package/dist/one-dark-pro.js +4 -0
  267. package/dist/one-light.js +4 -0
  268. package/dist/openscad.js +6 -0
  269. package/dist/pascal.js +6 -0
  270. package/dist/perl.js +16 -0
  271. package/dist/php.js +18 -0
  272. package/dist/pie.js +45 -0
  273. package/dist/pieDiagram-ADFJNKIX.js +68 -108
  274. package/dist/pieDiagram-ADFJNKIX2.js +123 -0
  275. package/dist/pkl.js +6 -0
  276. package/dist/plastic.js +4 -0
  277. package/dist/plsql.js +6 -0
  278. package/dist/po.js +6 -0
  279. package/dist/poimandres.js +4 -0
  280. package/dist/polar.js +6 -0
  281. package/dist/postcss.js +6 -0
  282. package/dist/powerquery.js +6 -0
  283. package/dist/powershell.js +6 -0
  284. package/dist/prisma.js +6 -0
  285. package/dist/prolog.js +6 -0
  286. package/dist/proto.js +6 -0
  287. package/dist/pug.js +12 -0
  288. package/dist/puppet.js +6 -0
  289. package/dist/purescript.js +6 -0
  290. package/dist/python.js +6 -0
  291. package/dist/qml.js +8 -0
  292. package/dist/qmldir.js +6 -0
  293. package/dist/qss.js +6 -0
  294. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  295. package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
  296. package/dist/r.js +6 -0
  297. package/dist/racket.js +6 -0
  298. package/dist/raku.js +6 -0
  299. package/dist/razor.js +10 -0
  300. package/dist/red.js +4 -0
  301. package/dist/redux-toolkit.modern.js +563 -555
  302. package/dist/reg.js +6 -0
  303. package/dist/regexp.js +6 -0
  304. package/dist/rel.js +6 -0
  305. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  306. package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
  307. package/dist/riscv.js +6 -0
  308. package/dist/rose-pine-dawn.js +4 -0
  309. package/dist/rose-pine-moon.js +4 -0
  310. package/dist/rose-pine.js +4 -0
  311. package/dist/rosmsg.js +6 -0
  312. package/dist/rst.js +22 -0
  313. package/dist/ruby.js +30 -0
  314. package/dist/rust.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
  316. package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
  317. package/dist/sankeyLinkHorizontal.js +403 -0
  318. package/dist/sas.js +8 -0
  319. package/dist/sass.js +6 -0
  320. package/dist/scala.js +6 -0
  321. package/dist/scheme.js +6 -0
  322. package/dist/scss.js +8 -0
  323. package/dist/sdbl.js +6 -0
  324. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  325. package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
  326. package/dist/shadcn/index.d.ts +24 -40
  327. package/dist/shadcn/index.js +7330 -5516
  328. package/dist/shaderlab.js +8 -0
  329. package/dist/shellscript.js +6 -0
  330. package/dist/shellsession.js +8 -0
  331. package/dist/slack-dark.js +4 -0
  332. package/dist/slack-ochin.js +4 -0
  333. package/dist/smalltalk.js +6 -0
  334. package/dist/snazzy-light.js +4 -0
  335. package/dist/solarized-dark.js +4 -0
  336. package/dist/solarized-light.js +4 -0
  337. package/dist/solidity.js +6 -0
  338. package/dist/soy.js +8 -0
  339. package/dist/sparql.js +8 -0
  340. package/dist/splunk.js +6 -0
  341. package/dist/sql.js +6 -0
  342. package/dist/ssh-config.js +6 -0
  343. package/dist/stata.js +8 -0
  344. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  345. package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
  346. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  347. package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
  348. package/dist/storybook/Typography.stories.tsx +93 -120
  349. package/dist/stylus.js +6 -0
  350. package/dist/svelte.js +14 -0
  351. package/dist/swift.js +6 -0
  352. package/dist/synthwave-84.js +4 -0
  353. package/dist/system-verilog.js +6 -0
  354. package/dist/systemd.js +6 -0
  355. package/dist/talonscript.js +6 -0
  356. package/dist/tasl.js +6 -0
  357. package/dist/tcl.js +6 -0
  358. package/dist/templ.js +12 -0
  359. package/dist/terraform.js +6 -0
  360. package/dist/tex.js +8 -0
  361. package/dist/time.js +900 -0
  362. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  363. package/dist/timeline-definition-IT6M3QCI2.js +802 -0
  364. package/dist/tokyo-night.js +4 -0
  365. package/dist/toml.js +6 -0
  366. package/dist/ts-tags.js +41 -0
  367. package/dist/tsv.js +6 -0
  368. package/dist/tsx.js +6 -0
  369. package/dist/turtle.js +6 -0
  370. package/dist/twig.js +18 -0
  371. package/dist/{types-ByRPUpXR.d.ts → types-BZH4Xw79.d.ts} +1 -1
  372. package/dist/typescript.js +6 -0
  373. package/dist/typespec.js +6 -0
  374. package/dist/typst.js +6 -0
  375. package/dist/union.js +8 -0
  376. package/dist/v.js +6 -0
  377. package/dist/vala.js +6 -0
  378. package/dist/vb.js +6 -0
  379. package/dist/verilog.js +6 -0
  380. package/dist/vesper.js +4 -0
  381. package/dist/vhdl.js +6 -0
  382. package/dist/viml.js +6 -0
  383. package/dist/vitesse-black.js +4 -0
  384. package/dist/vitesse-dark.js +4 -0
  385. package/dist/vitesse-light.js +4 -0
  386. package/dist/vue-html.js +8 -0
  387. package/dist/vue-vine.js +18 -0
  388. package/dist/vue.js +31 -0
  389. package/dist/vyper.js +6 -0
  390. package/dist/wasm.js +6 -0
  391. package/dist/wasm2.js +7 -0
  392. package/dist/wenyan.js +6 -0
  393. package/dist/wgsl.js +6 -0
  394. package/dist/wikitext.js +6 -0
  395. package/dist/wit.js +6 -0
  396. package/dist/wolfram.js +6 -0
  397. package/dist/xml.js +8 -0
  398. package/dist/xsl.js +8 -0
  399. package/dist/xychartDiagram-PRI3JC2R.js +449 -491
  400. package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
  401. package/dist/yaml.js +6 -0
  402. package/dist/zenscript.js +6 -0
  403. package/dist/zig.js +6 -0
  404. package/dist/zipObject.js +128 -0
  405. package/package.json +1 -1
@@ -0,0 +1,1377 @@
1
+ import { g as et } from "./chunk-FMBD7UC42.js";
2
+ import { g as tt } from "./chunk-55IACEB62.js";
3
+ import { s as st } from "./chunk-QN33PNHL2.js";
4
+ import { aG as f, aR as it, aM as F, bl as R, aI as at, aJ as nt, aL as rt, aK as ut, aV as lt, aW as ot, aO as v, b0 as ct, aS as Oe, a$ as we, a_ as ht, b3 as dt, b4 as pt } from "./CoachForm.js";
5
+ import { s as ee } from "./redux-toolkit.modern.js";
6
+ var Ve = function() {
7
+ var s = /* @__PURE__ */ f(function(I, o, h, p) {
8
+ for (h = h || {}, p = I.length; p--; h[I[p]] = o) ;
9
+ return h;
10
+ }, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], c = [1, 26], A = [1, 24], g = [1, 25], D = [1, 32], L = [1, 33], Ae = [1, 34], C = [1, 45], fe = [1, 35], ge = [1, 36], me = [1, 37], Ce = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], Te = [1, 30], ke = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], T = [1, 47], De = [1, 9], d = [1, 8, 9], te = [1, 58], se = [1, 59], ie = [1, 60], ae = [1, 61], ne = [1, 62], Fe = [1, 63], Be = [1, 64], z = [1, 8, 9, 41], Pe = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 50, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ue = [13, 60, 86, 100, 102, 103], K = [13, 60, 73, 74, 86, 100, 102, 103], Me = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], _e = [1, 100], Y = [1, 117], W = [1, 113], Q = [1, 109], j = [1, 115], X = [1, 110], H = [1, 111], q = [1, 112], J = [1, 114], Z = [1, 116], Re = [22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Se = [1, 8, 9, 39, 41, 44], le = [1, 8, 9, 22], Ge = [1, 145], Ue = [1, 8, 9, 61], N = [1, 8, 9, 22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Ne = {
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, CLASS: 46, emptyBody: 47, SPACE: 48, ANNOTATION_START: 49, ANNOTATION_END: 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: "CLASS", 48: "SPACE", 49: "ANNOTATION_START", 50: "ANNOTATION_END", 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], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [43, 2], [43, 3], [47, 0], [47, 2], [47, 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, n, m, e, $) {
18
+ var t = e.length - 1;
19
+ switch (m) {
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
+ n.addRelation(e[t]);
43
+ break;
44
+ case 20:
45
+ e[t - 1].title = n.cleanupLabel(e[t]), n.addRelation(e[t - 1]);
46
+ break;
47
+ case 31:
48
+ this.$ = e[t].trim(), n.setAccTitle(this.$);
49
+ break;
50
+ case 32:
51
+ case 33:
52
+ this.$ = e[t].trim(), n.setAccDescription(this.$);
53
+ break;
54
+ case 34:
55
+ n.addClassesToNamespace(e[t - 3], e[t - 1]);
56
+ break;
57
+ case 35:
58
+ n.addClassesToNamespace(e[t - 4], e[t - 1]);
59
+ break;
60
+ case 36:
61
+ this.$ = e[t], n.addNamespace(e[t]);
62
+ break;
63
+ case 37:
64
+ this.$ = [e[t]];
65
+ break;
66
+ case 38:
67
+ this.$ = [e[t - 1]];
68
+ break;
69
+ case 39:
70
+ e[t].unshift(e[t - 2]), this.$ = e[t];
71
+ break;
72
+ case 41:
73
+ n.setCssClass(e[t - 2], e[t]);
74
+ break;
75
+ case 42:
76
+ n.addMembers(e[t - 3], e[t - 1]);
77
+ break;
78
+ case 44:
79
+ n.setCssClass(e[t - 5], e[t - 3]), n.addMembers(e[t - 5], e[t - 1]);
80
+ break;
81
+ case 45:
82
+ this.$ = e[t], n.addClass(e[t]);
83
+ break;
84
+ case 46:
85
+ this.$ = e[t - 1], n.addClass(e[t - 1]), n.setClassLabel(e[t - 1], e[t]);
86
+ break;
87
+ case 50:
88
+ n.addAnnotation(e[t], e[t - 2]);
89
+ break;
90
+ case 51:
91
+ case 64:
92
+ this.$ = [e[t]];
93
+ break;
94
+ case 52:
95
+ e[t].push(e[t - 1]), this.$ = e[t];
96
+ break;
97
+ case 53:
98
+ break;
99
+ case 54:
100
+ n.addMember(e[t - 1], n.cleanupLabel(e[t]));
101
+ break;
102
+ case 55:
103
+ break;
104
+ case 56:
105
+ break;
106
+ case 57:
107
+ this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
108
+ break;
109
+ case 58:
110
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
111
+ break;
112
+ case 59:
113
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
114
+ break;
115
+ case 60:
116
+ this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
117
+ break;
118
+ case 61:
119
+ n.addNote(e[t], e[t - 1]);
120
+ break;
121
+ case 62:
122
+ n.addNote(e[t]);
123
+ break;
124
+ case 63:
125
+ this.$ = e[t - 2], n.defineClass(e[t - 1], e[t]);
126
+ break;
127
+ case 65:
128
+ this.$ = e[t - 2].concat([e[t]]);
129
+ break;
130
+ case 66:
131
+ n.setDirection("TB");
132
+ break;
133
+ case 67:
134
+ n.setDirection("BT");
135
+ break;
136
+ case 68:
137
+ n.setDirection("RL");
138
+ break;
139
+ case 69:
140
+ n.setDirection("LR");
141
+ break;
142
+ case 70:
143
+ this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
144
+ break;
145
+ case 71:
146
+ this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
147
+ break;
148
+ case 72:
149
+ this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
150
+ break;
151
+ case 73:
152
+ this.$ = { type1: "none", type2: "none", lineType: e[t] };
153
+ break;
154
+ case 74:
155
+ this.$ = n.relationType.AGGREGATION;
156
+ break;
157
+ case 75:
158
+ this.$ = n.relationType.EXTENSION;
159
+ break;
160
+ case 76:
161
+ this.$ = n.relationType.COMPOSITION;
162
+ break;
163
+ case 77:
164
+ this.$ = n.relationType.DEPENDENCY;
165
+ break;
166
+ case 78:
167
+ this.$ = n.relationType.LOLLIPOP;
168
+ break;
169
+ case 79:
170
+ this.$ = n.lineType.LINE;
171
+ break;
172
+ case 80:
173
+ this.$ = n.lineType.DOTTED_LINE;
174
+ break;
175
+ case 81:
176
+ case 87:
177
+ this.$ = e[t - 2], n.setClickEvent(e[t - 1], e[t]);
178
+ break;
179
+ case 82:
180
+ case 88:
181
+ this.$ = e[t - 3], n.setClickEvent(e[t - 2], e[t - 1]), n.setTooltip(e[t - 2], e[t]);
182
+ break;
183
+ case 83:
184
+ this.$ = e[t - 2], n.setLink(e[t - 1], e[t]);
185
+ break;
186
+ case 84:
187
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t - 1], e[t]);
188
+ break;
189
+ case 85:
190
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t - 1]), n.setTooltip(e[t - 2], e[t]);
191
+ break;
192
+ case 86:
193
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 2], e[t]), n.setTooltip(e[t - 3], e[t - 1]);
194
+ break;
195
+ case 89:
196
+ this.$ = e[t - 3], n.setClickEvent(e[t - 2], e[t - 1], e[t]);
197
+ break;
198
+ case 90:
199
+ this.$ = e[t - 4], n.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), n.setTooltip(e[t - 3], e[t]);
200
+ break;
201
+ case 91:
202
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t]);
203
+ break;
204
+ case 92:
205
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 1], e[t]);
206
+ break;
207
+ case 93:
208
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 1]), n.setTooltip(e[t - 3], e[t]);
209
+ break;
210
+ case 94:
211
+ this.$ = e[t - 5], n.setLink(e[t - 4], e[t - 2], e[t]), n.setTooltip(e[t - 4], e[t - 1]);
212
+ break;
213
+ case 95:
214
+ this.$ = e[t - 2], n.setCssStyle(e[t - 1], e[t]);
215
+ break;
216
+ case 96:
217
+ n.setCssClass(e[t - 1], e[t]);
218
+ break;
219
+ case 97:
220
+ this.$ = [e[t]];
221
+ break;
222
+ case 98:
223
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
224
+ break;
225
+ case 100:
226
+ this.$ = e[t - 1] + e[t];
227
+ break;
228
+ }
229
+ }, "anonymous"),
230
+ 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: u, 38: 22, 42: l, 43: 23, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: C, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 19], { 22: [1, 50] }), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), s(d, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 33]), s(d, [2, 53], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }), { 39: [1, 65] }, s(z, [2, 40], { 39: [1, 67], 44: [1, 66] }), s(d, [2, 55]), s(d, [2, 56]), { 16: 68, 60: C, 86: b, 100: E, 102: y }, { 16: 39, 17: 40, 19: 69, 60: C, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 70, 60: C, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 71, 60: C, 86: b, 100: E, 102: y, 103: T }, { 60: [1, 72] }, { 13: [1, 73] }, { 16: 39, 17: 40, 19: 74, 60: C, 86: b, 100: E, 102: y, 103: T }, { 13: Pe, 55: 75 }, { 58: 77, 60: [1, 78] }, s(d, [2, 66]), s(d, [2, 67]), s(d, [2, 68]), s(d, [2, 69]), s(P, [2, 13], { 16: 39, 17: 40, 19: 80, 18: [1, 79], 20: [1, 81], 60: C, 86: b, 100: E, 102: y, 103: T }), s(P, [2, 15], { 20: [1, 82] }), { 15: 83, 16: 84, 17: 85, 60: C, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 86, 60: C, 86: b, 100: E, 102: y, 103: T }, s(re, [2, 123]), s(re, [2, 124]), s(re, [2, 125]), s(re, [2, 126]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 127]), s(De, [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: 87, 33: i, 35: a, 37: u, 42: l, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: C, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }), { 5: 88, 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: u, 38: 22, 42: l, 43: 23, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: C, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 20]), s(d, [2, 31]), s(d, [2, 32]), { 13: [1, 90], 16: 39, 17: 40, 19: 89, 60: C, 86: b, 100: E, 102: y, 103: T }, { 53: 91, 66: 56, 67: 57, 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }, s(d, [2, 54]), { 67: 92, 73: Fe, 74: Be }, s(ue, [2, 73], { 66: 93, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(K, [2, 74]), s(K, [2, 75]), s(K, [2, 76]), s(K, [2, 77]), s(K, [2, 78]), s(Me, [2, 79]), s(Me, [2, 80]), { 8: [1, 95], 24: 96, 40: 94, 43: 23, 46: r }, { 16: 97, 60: C, 86: b, 100: E, 102: y }, { 41: [1, 99], 45: 98, 51: _e }, { 50: [1, 101] }, { 13: [1, 102] }, { 13: [1, 103] }, { 79: [1, 104], 81: [1, 105] }, { 22: Y, 48: W, 59: 106, 60: Q, 82: j, 84: 107, 85: 108, 86: X, 87: H, 88: q, 89: J, 90: Z }, { 60: [1, 118] }, { 13: Pe, 55: 119 }, s(d, [2, 62]), s(d, [2, 128]), { 22: Y, 48: W, 59: 120, 60: Q, 61: [1, 121], 82: j, 84: 107, 85: 108, 86: X, 87: H, 88: q, 89: J, 90: Z }, s(Re, [2, 64]), { 16: 39, 17: 40, 19: 122, 60: C, 86: b, 100: E, 102: y, 103: T }, s(P, [2, 16]), s(P, [2, 17]), s(P, [2, 18]), { 39: [2, 36] }, { 15: 124, 16: 84, 17: 85, 18: [1, 123], 39: [2, 9], 60: C, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 10] }, s(Se, [2, 45], { 11: 125, 12: [1, 126] }), s(De, [2, 7]), { 9: [1, 127] }, s(le, [2, 57]), { 16: 39, 17: 40, 19: 128, 60: C, 86: b, 100: E, 102: y, 103: T }, { 13: [1, 130], 16: 39, 17: 40, 19: 129, 60: C, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 72], { 66: 131, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(ue, [2, 71]), { 41: [1, 132] }, { 24: 96, 40: 133, 43: 23, 46: r }, { 8: [1, 134], 41: [2, 37] }, s(z, [2, 41], { 39: [1, 135] }), { 41: [1, 136] }, s(z, [2, 43]), { 41: [2, 51], 45: 137, 51: _e }, { 16: 39, 17: 40, 19: 138, 60: C, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 81], { 13: [1, 139] }), s(d, [2, 83], { 13: [1, 141], 77: [1, 140] }), s(d, [2, 87], { 13: [1, 142], 80: [1, 143] }), { 13: [1, 144] }, s(d, [2, 95], { 61: Ge }), s(Ue, [2, 97], { 85: 146, 22: Y, 48: W, 60: Q, 82: j, 86: X, 87: H, 88: q, 89: J, 90: Z }), s(N, [2, 99]), s(N, [2, 101]), s(N, [2, 102]), s(N, [2, 103]), s(N, [2, 104]), s(N, [2, 105]), s(N, [2, 106]), s(N, [2, 107]), s(N, [2, 108]), s(N, [2, 109]), s(d, [2, 96]), s(d, [2, 61]), s(d, [2, 63], { 61: Ge }), { 60: [1, 147] }, s(P, [2, 14]), { 15: 148, 16: 84, 17: 85, 60: C, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 12] }, s(Se, [2, 46]), { 13: [1, 149] }, { 1: [2, 4] }, s(le, [2, 59]), s(le, [2, 58]), { 16: 39, 17: 40, 19: 150, 60: C, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 70]), s(d, [2, 34]), { 41: [1, 151] }, { 24: 96, 40: 152, 41: [2, 38], 43: 23, 46: r }, { 45: 153, 51: _e }, s(z, [2, 42]), { 41: [2, 52] }, s(d, [2, 50]), s(d, [2, 82]), s(d, [2, 84]), s(d, [2, 85], { 77: [1, 154] }), s(d, [2, 88]), s(d, [2, 89], { 13: [1, 155] }), s(d, [2, 91], { 13: [1, 157], 77: [1, 156] }), { 22: Y, 48: W, 60: Q, 82: j, 84: 158, 85: 108, 86: X, 87: H, 88: q, 89: J, 90: Z }, s(N, [2, 100]), s(Re, [2, 65]), { 39: [2, 11] }, { 14: [1, 159] }, s(le, [2, 60]), s(d, [2, 35]), { 41: [2, 39] }, { 41: [1, 160] }, s(d, [2, 86]), s(d, [2, 90]), s(d, [2, 92]), s(d, [2, 93], { 77: [1, 161] }), s(Ue, [2, 98], { 85: 146, 22: Y, 48: W, 60: Q, 82: j, 86: X, 87: H, 88: q, 89: J, 90: Z }), s(Se, [2, 8]), s(z, [2, 44]), s(d, [2, 94])],
231
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 36], 85: [2, 10], 124: [2, 12], 127: [2, 4], 137: [2, 52], 148: [2, 11], 152: [2, 39] },
232
+ parseError: /* @__PURE__ */ f(function(o, h) {
233
+ if (h.recoverable)
234
+ this.trace(o);
235
+ else {
236
+ var p = new Error(o);
237
+ throw p.hash = h, p;
238
+ }
239
+ }, "parseError"),
240
+ parse: /* @__PURE__ */ f(function(o) {
241
+ var h = this, p = [0], n = [], m = [null], e = [], $ = this.table, t = "", ce = 0, ze = 0, qe = 2, Ke = 1, Je = e.slice.call(arguments, 1), k = Object.create(this.lexer), O = { yy: {} };
242
+ for (var Le in this.yy)
243
+ Object.prototype.hasOwnProperty.call(this.yy, Le) && (O.yy[Le] = this.yy[Le]);
244
+ k.setInput(o, O.yy), O.yy.lexer = k, O.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
245
+ var xe = k.yylloc;
246
+ e.push(xe);
247
+ var Ze = k.options && k.options.ranges;
248
+ typeof O.yy.parseError == "function" ? this.parseError = O.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
249
+ function $e(_) {
250
+ p.length = p.length - 2 * _, m.length = m.length - _, e.length = e.length - _;
251
+ }
252
+ f($e, "popStack");
253
+ function Ye() {
254
+ var _;
255
+ return _ = n.pop() || k.lex() || Ke, typeof _ != "number" && (_ instanceof Array && (n = _, _ = n.pop()), _ = h.symbols_[_] || _), _;
256
+ }
257
+ f(Ye, "lex");
258
+ for (var B, w, S, ve, M = {}, he, x, We, de; ; ) {
259
+ if (w = p[p.length - 1], this.defaultActions[w] ? S = this.defaultActions[w] : ((B === null || typeof B > "u") && (B = Ye()), S = $[w] && $[w][B]), typeof S > "u" || !S.length || !S[0]) {
260
+ var Ie = "";
261
+ de = [];
262
+ for (he in $[w])
263
+ this.terminals_[he] && he > qe && de.push("'" + this.terminals_[he] + "'");
264
+ k.showPosition ? Ie = "Parse error on line " + (ce + 1) + `:
265
+ ` + k.showPosition() + `
266
+ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie = "Parse error on line " + (ce + 1) + ": Unexpected " + (B == Ke ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Ie, {
267
+ text: k.match,
268
+ token: this.terminals_[B] || B,
269
+ line: k.yylineno,
270
+ loc: xe,
271
+ expected: de
272
+ });
273
+ }
274
+ if (S[0] instanceof Array && S.length > 1)
275
+ throw new Error("Parse Error: multiple actions possible at state: " + w + ", token: " + B);
276
+ switch (S[0]) {
277
+ case 1:
278
+ p.push(B), m.push(k.yytext), e.push(k.yylloc), p.push(S[1]), B = null, ze = k.yyleng, t = k.yytext, ce = k.yylineno, xe = k.yylloc;
279
+ break;
280
+ case 2:
281
+ if (x = this.productions_[S[1]][1], M.$ = m[m.length - x], M._$ = {
282
+ first_line: e[e.length - (x || 1)].first_line,
283
+ last_line: e[e.length - 1].last_line,
284
+ first_column: e[e.length - (x || 1)].first_column,
285
+ last_column: e[e.length - 1].last_column
286
+ }, Ze && (M._$.range = [
287
+ e[e.length - (x || 1)].range[0],
288
+ e[e.length - 1].range[1]
289
+ ]), ve = this.performAction.apply(M, [
290
+ t,
291
+ ze,
292
+ ce,
293
+ O.yy,
294
+ S[1],
295
+ m,
296
+ e
297
+ ].concat(Je)), typeof ve < "u")
298
+ return ve;
299
+ x && (p = p.slice(0, -1 * x * 2), m = m.slice(0, -1 * x), e = e.slice(0, -1 * x)), p.push(this.productions_[S[1]][0]), m.push(M.$), e.push(M._$), We = $[p[p.length - 2]][p[p.length - 1]], p.push(We);
300
+ break;
301
+ case 3:
302
+ return !0;
303
+ }
304
+ }
305
+ return !0;
306
+ }, "parse")
307
+ }, He = /* @__PURE__ */ function() {
308
+ var I = {
309
+ EOF: 1,
310
+ parseError: /* @__PURE__ */ f(function(h, p) {
311
+ if (this.yy.parser)
312
+ this.yy.parser.parseError(h, p);
313
+ else
314
+ throw new Error(h);
315
+ }, "parseError"),
316
+ // resets the lexer, sets new input
317
+ setInput: /* @__PURE__ */ f(function(o, h) {
318
+ 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 = {
319
+ first_line: 1,
320
+ first_column: 0,
321
+ last_line: 1,
322
+ last_column: 0
323
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
324
+ }, "setInput"),
325
+ // consumes and returns one char from the input
326
+ input: /* @__PURE__ */ f(function() {
327
+ var o = this._input[0];
328
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
329
+ var h = o.match(/(?:\r\n?|\n).*/g);
330
+ 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;
331
+ }, "input"),
332
+ // unshifts one char (or a string) into the input
333
+ unput: /* @__PURE__ */ f(function(o) {
334
+ var h = o.length, p = o.split(/(?:\r\n?|\n)/g);
335
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
336
+ var n = this.match.split(/(?:\r\n?|\n)/g);
337
+ 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);
338
+ var m = this.yylloc.range;
339
+ return this.yylloc = {
340
+ first_line: this.yylloc.first_line,
341
+ last_line: this.yylineno + 1,
342
+ first_column: this.yylloc.first_column,
343
+ last_column: p ? (p.length === n.length ? this.yylloc.first_column : 0) + n[n.length - p.length].length - p[0].length : this.yylloc.first_column - h
344
+ }, this.options.ranges && (this.yylloc.range = [m[0], m[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
345
+ }, "unput"),
346
+ // When called from action, caches matched text and appends it on next action
347
+ more: /* @__PURE__ */ f(function() {
348
+ return this._more = !0, this;
349
+ }, "more"),
350
+ // 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.
351
+ reject: /* @__PURE__ */ f(function() {
352
+ if (this.options.backtrack_lexer)
353
+ this._backtrack = !0;
354
+ else
355
+ 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).
356
+ ` + this.showPosition(), {
357
+ text: "",
358
+ token: null,
359
+ line: this.yylineno
360
+ });
361
+ return this;
362
+ }, "reject"),
363
+ // retain first n characters of the match
364
+ less: /* @__PURE__ */ f(function(o) {
365
+ this.unput(this.match.slice(o));
366
+ }, "less"),
367
+ // displays already matched input, i.e. for error messages
368
+ pastInput: /* @__PURE__ */ f(function() {
369
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
370
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
371
+ }, "pastInput"),
372
+ // displays upcoming input, i.e. for error messages
373
+ upcomingInput: /* @__PURE__ */ f(function() {
374
+ var o = this.match;
375
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
376
+ }, "upcomingInput"),
377
+ // displays the character position where the lexing error occurred, i.e. for error messages
378
+ showPosition: /* @__PURE__ */ f(function() {
379
+ var o = this.pastInput(), h = new Array(o.length + 1).join("-");
380
+ return o + this.upcomingInput() + `
381
+ ` + h + "^";
382
+ }, "showPosition"),
383
+ // test the lexed token: return FALSE when not a match, otherwise return token
384
+ test_match: /* @__PURE__ */ f(function(o, h) {
385
+ var p, n, m;
386
+ if (this.options.backtrack_lexer && (m = {
387
+ yylineno: this.yylineno,
388
+ yylloc: {
389
+ first_line: this.yylloc.first_line,
390
+ last_line: this.last_line,
391
+ first_column: this.yylloc.first_column,
392
+ last_column: this.yylloc.last_column
393
+ },
394
+ yytext: this.yytext,
395
+ match: this.match,
396
+ matches: this.matches,
397
+ matched: this.matched,
398
+ yyleng: this.yyleng,
399
+ offset: this.offset,
400
+ _more: this._more,
401
+ _input: this._input,
402
+ yy: this.yy,
403
+ conditionStack: this.conditionStack.slice(0),
404
+ done: this.done
405
+ }, this.options.ranges && (m.yylloc.range = this.yylloc.range.slice(0))), n = o[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
406
+ first_line: this.yylloc.last_line,
407
+ last_line: this.yylineno + 1,
408
+ first_column: this.yylloc.last_column,
409
+ last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
410
+ }, 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)
411
+ return p;
412
+ if (this._backtrack) {
413
+ for (var e in m)
414
+ this[e] = m[e];
415
+ return !1;
416
+ }
417
+ return !1;
418
+ }, "test_match"),
419
+ // return next match in input
420
+ next: /* @__PURE__ */ f(function() {
421
+ if (this.done)
422
+ return this.EOF;
423
+ this._input || (this.done = !0);
424
+ var o, h, p, n;
425
+ this._more || (this.yytext = "", this.match = "");
426
+ for (var m = this._currentRules(), e = 0; e < m.length; e++)
427
+ if (p = this._input.match(this.rules[m[e]]), p && (!h || p[0].length > h[0].length)) {
428
+ if (h = p, n = e, this.options.backtrack_lexer) {
429
+ if (o = this.test_match(p, m[e]), o !== !1)
430
+ return o;
431
+ if (this._backtrack) {
432
+ h = !1;
433
+ continue;
434
+ } else
435
+ return !1;
436
+ } else if (!this.options.flex)
437
+ break;
438
+ }
439
+ return h ? (o = this.test_match(h, m[n]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
440
+ ` + this.showPosition(), {
441
+ text: "",
442
+ token: null,
443
+ line: this.yylineno
444
+ });
445
+ }, "next"),
446
+ // return next match that has a token
447
+ lex: /* @__PURE__ */ f(function() {
448
+ var h = this.next();
449
+ return h || this.lex();
450
+ }, "lex"),
451
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
452
+ begin: /* @__PURE__ */ f(function(h) {
453
+ this.conditionStack.push(h);
454
+ }, "begin"),
455
+ // pop the previously active lexer condition state off the condition stack
456
+ popState: /* @__PURE__ */ f(function() {
457
+ var h = this.conditionStack.length - 1;
458
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
459
+ }, "popState"),
460
+ // produce the lexer rule set which is active for the currently active lexer condition state
461
+ _currentRules: /* @__PURE__ */ f(function() {
462
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
463
+ }, "_currentRules"),
464
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
465
+ topState: /* @__PURE__ */ f(function(h) {
466
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
467
+ }, "topState"),
468
+ // alias for begin(condition)
469
+ pushState: /* @__PURE__ */ f(function(h) {
470
+ this.begin(h);
471
+ }, "pushState"),
472
+ // return the number of states currently on the stack
473
+ stateStackSize: /* @__PURE__ */ f(function() {
474
+ return this.conditionStack.length;
475
+ }, "stateStackSize"),
476
+ options: {},
477
+ performAction: /* @__PURE__ */ f(function(h, p, n, m) {
478
+ switch (n) {
479
+ case 0:
480
+ return 62;
481
+ case 1:
482
+ return 63;
483
+ case 2:
484
+ return 64;
485
+ case 3:
486
+ return 65;
487
+ case 4:
488
+ break;
489
+ case 5:
490
+ break;
491
+ case 6:
492
+ return this.begin("acc_title"), 33;
493
+ case 7:
494
+ return this.popState(), "acc_title_value";
495
+ case 8:
496
+ return this.begin("acc_descr"), 35;
497
+ case 9:
498
+ return this.popState(), "acc_descr_value";
499
+ case 10:
500
+ this.begin("acc_descr_multiline");
501
+ break;
502
+ case 11:
503
+ this.popState();
504
+ break;
505
+ case 12:
506
+ return "acc_descr_multiline_value";
507
+ case 13:
508
+ return 8;
509
+ case 14:
510
+ break;
511
+ case 15:
512
+ return 7;
513
+ case 16:
514
+ return 7;
515
+ case 17:
516
+ return "EDGE_STATE";
517
+ case 18:
518
+ this.begin("callback_name");
519
+ break;
520
+ case 19:
521
+ this.popState();
522
+ break;
523
+ case 20:
524
+ this.popState(), this.begin("callback_args");
525
+ break;
526
+ case 21:
527
+ return 79;
528
+ case 22:
529
+ this.popState();
530
+ break;
531
+ case 23:
532
+ return 80;
533
+ case 24:
534
+ this.popState();
535
+ break;
536
+ case 25:
537
+ return "STR";
538
+ case 26:
539
+ this.begin("string");
540
+ break;
541
+ case 27:
542
+ return 82;
543
+ case 28:
544
+ return 57;
545
+ case 29:
546
+ return this.begin("namespace"), 42;
547
+ case 30:
548
+ return this.popState(), 8;
549
+ case 31:
550
+ break;
551
+ case 32:
552
+ return this.begin("namespace-body"), 39;
553
+ case 33:
554
+ return this.popState(), 41;
555
+ case 34:
556
+ return "EOF_IN_STRUCT";
557
+ case 35:
558
+ return 8;
559
+ case 36:
560
+ break;
561
+ case 37:
562
+ return "EDGE_STATE";
563
+ case 38:
564
+ return this.begin("class"), 46;
565
+ case 39:
566
+ return this.popState(), 8;
567
+ case 40:
568
+ break;
569
+ case 41:
570
+ return this.popState(), this.popState(), 41;
571
+ case 42:
572
+ return this.begin("class-body"), 39;
573
+ case 43:
574
+ return this.popState(), 41;
575
+ case 44:
576
+ return "EOF_IN_STRUCT";
577
+ case 45:
578
+ return "EDGE_STATE";
579
+ case 46:
580
+ return "OPEN_IN_STRUCT";
581
+ case 47:
582
+ break;
583
+ case 48:
584
+ return "MEMBER";
585
+ case 49:
586
+ return 83;
587
+ case 50:
588
+ return 75;
589
+ case 51:
590
+ return 76;
591
+ case 52:
592
+ return 78;
593
+ case 53:
594
+ return 54;
595
+ case 54:
596
+ return 56;
597
+ case 55:
598
+ return 49;
599
+ case 56:
600
+ return 50;
601
+ case 57:
602
+ return 81;
603
+ case 58:
604
+ this.popState();
605
+ break;
606
+ case 59:
607
+ return "GENERICTYPE";
608
+ case 60:
609
+ this.begin("generic");
610
+ break;
611
+ case 61:
612
+ this.popState();
613
+ break;
614
+ case 62:
615
+ return "BQUOTE_STR";
616
+ case 63:
617
+ this.begin("bqstring");
618
+ break;
619
+ case 64:
620
+ return 77;
621
+ case 65:
622
+ return 77;
623
+ case 66:
624
+ return 77;
625
+ case 67:
626
+ return 77;
627
+ case 68:
628
+ return 69;
629
+ case 69:
630
+ return 69;
631
+ case 70:
632
+ return 71;
633
+ case 71:
634
+ return 71;
635
+ case 72:
636
+ return 70;
637
+ case 73:
638
+ return 68;
639
+ case 74:
640
+ return 72;
641
+ case 75:
642
+ return 73;
643
+ case 76:
644
+ return 74;
645
+ case 77:
646
+ return 22;
647
+ case 78:
648
+ return 44;
649
+ case 79:
650
+ return 100;
651
+ case 80:
652
+ return 18;
653
+ case 81:
654
+ return "PLUS";
655
+ case 82:
656
+ return 87;
657
+ case 83:
658
+ return 61;
659
+ case 84:
660
+ return 89;
661
+ case 85:
662
+ return 89;
663
+ case 86:
664
+ return 90;
665
+ case 87:
666
+ return "EQUALS";
667
+ case 88:
668
+ return "EQUALS";
669
+ case 89:
670
+ return 60;
671
+ case 90:
672
+ return 12;
673
+ case 91:
674
+ return 14;
675
+ case 92:
676
+ return "PUNCTUATION";
677
+ case 93:
678
+ return 86;
679
+ case 94:
680
+ return 102;
681
+ case 95:
682
+ return 48;
683
+ case 96:
684
+ return 48;
685
+ case 97:
686
+ return 9;
687
+ }
688
+ }, "anonymous"),
689
+ 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)/, /^(?:$)/],
690
+ conditions: { "namespace-body": { rules: [26, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, "class-body": { rules: [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, class: { rules: [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr: { rules: [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_title: { rules: [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, href: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, struct: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, generic: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, bqstring: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, string: { rules: [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 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], inclusive: !0 } }
691
+ };
692
+ return I;
693
+ }();
694
+ Ne.lexer = He;
695
+ function oe() {
696
+ this.yy = {};
697
+ }
698
+ return f(oe, "Parser"), oe.prototype = Ne, Ne.Parser = oe, new oe();
699
+ }();
700
+ Ve.parser = Ve;
701
+ var kt = Ve, Qe = ["#", "+", "~", "-", ""], G, je = (G = class {
702
+ constructor(i, a) {
703
+ this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
704
+ const u = it(i, F());
705
+ this.parseMember(u);
706
+ }
707
+ getDisplayDetails() {
708
+ let i = this.visibility + R(this.id);
709
+ this.memberType === "method" && (i += `(${R(this.parameters.trim())})`, this.returnType && (i += " : " + R(this.returnType))), i = i.trim();
710
+ const a = this.parseClassifier();
711
+ return {
712
+ displayText: i,
713
+ cssStyle: a
714
+ };
715
+ }
716
+ parseMember(i) {
717
+ let a = "";
718
+ if (this.memberType === "method") {
719
+ const r = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
720
+ if (r) {
721
+ const c = r[1] ? r[1].trim() : "";
722
+ if (Qe.includes(c) && (this.visibility = c), this.id = r[2], this.parameters = r[3] ? r[3].trim() : "", a = r[4] ? r[4].trim() : "", this.returnType = r[5] ? r[5].trim() : "", a === "") {
723
+ const A = this.returnType.substring(this.returnType.length - 1);
724
+ /[$*]/.exec(A) && (a = A, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
725
+ }
726
+ }
727
+ } else {
728
+ const l = i.length, r = i.substring(0, 1), c = i.substring(l - 1);
729
+ Qe.includes(r) && (this.visibility = r), /[$*]/.exec(c) && (a = c), this.id = i.substring(
730
+ this.visibility === "" ? 0 : 1,
731
+ a === "" ? l : l - 1
732
+ );
733
+ }
734
+ this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
735
+ const u = `${this.visibility ? "\\" + this.visibility : ""}${R(this.id)}${this.memberType === "method" ? `(${R(this.parameters)})${this.returnType ? " : " + R(this.returnType) : ""}` : ""}`;
736
+ this.text = u.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
737
+ }
738
+ parseClassifier() {
739
+ switch (this.classifier) {
740
+ case "*":
741
+ return "font-style:italic;";
742
+ case "$":
743
+ return "text-decoration:underline;";
744
+ default:
745
+ return "";
746
+ }
747
+ }
748
+ }, f(G, "ClassMember"), G), pe = "classId-", Xe = 0, V = /* @__PURE__ */ f((s) => v.sanitizeText(s, F()), "sanitizeText"), U, Dt = (U = class {
749
+ constructor() {
750
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
751
+ LINE: 0,
752
+ DOTTED_LINE: 1
753
+ }, this.relationType = {
754
+ AGGREGATION: 0,
755
+ EXTENSION: 1,
756
+ COMPOSITION: 2,
757
+ DEPENDENCY: 3,
758
+ LOLLIPOP: 4
759
+ }, this.setupToolTips = /* @__PURE__ */ f((i) => {
760
+ let a = ee(".mermaidTooltip");
761
+ (a._groups || a)[0][0] === null && (a = ee("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), ee(i).select("svg").selectAll("g.node").on("mouseover", (r) => {
762
+ const c = ee(r.currentTarget);
763
+ if (c.attr("title") === null)
764
+ return;
765
+ const g = this.getBoundingClientRect();
766
+ a.transition().duration(200).style("opacity", ".9"), a.text(c.attr("title")).style("left", window.scrollX + g.left + (g.right - g.left) / 2 + "px").style("top", window.scrollY + g.top - 14 + document.body.scrollTop + "px"), a.html(a.html().replace(/&lt;br\/&gt;/g, "<br/>")), c.classed("hover", !0);
767
+ }).on("mouseout", (r) => {
768
+ a.transition().duration(500).style("opacity", 0), ee(r.currentTarget).classed("hover", !1);
769
+ });
770
+ }, "setupToolTips"), this.direction = "TB", this.setAccTitle = at, this.getAccTitle = nt, this.setAccDescription = rt, this.getAccDescription = ut, this.setDiagramTitle = lt, this.getDiagramTitle = ot, 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.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);
771
+ }
772
+ splitClassNameAndType(i) {
773
+ const a = v.sanitizeText(i, F());
774
+ let u = "", l = a;
775
+ if (a.indexOf("~") > 0) {
776
+ const r = a.split("~");
777
+ l = V(r[0]), u = V(r[1]);
778
+ }
779
+ return { className: l, type: u };
780
+ }
781
+ setClassLabel(i, a) {
782
+ const u = v.sanitizeText(i, F());
783
+ a && (a = V(a));
784
+ const { className: l } = this.splitClassNameAndType(u);
785
+ this.classes.get(l).label = a, this.classes.get(l).text = `${a}${this.classes.get(l).type ? `<${this.classes.get(l).type}>` : ""}`;
786
+ }
787
+ /**
788
+ * Function called by parser when a node definition has been found.
789
+ *
790
+ * @param id - ID of the class to add
791
+ * @public
792
+ */
793
+ addClass(i) {
794
+ const a = v.sanitizeText(i, F()), { className: u, type: l } = this.splitClassNameAndType(a);
795
+ if (this.classes.has(u))
796
+ return;
797
+ const r = v.sanitizeText(u, F());
798
+ this.classes.set(r, {
799
+ id: r,
800
+ type: l,
801
+ label: r,
802
+ text: `${r}${l ? `&lt;${l}&gt;` : ""}`,
803
+ shape: "classBox",
804
+ cssClasses: "default",
805
+ methods: [],
806
+ members: [],
807
+ annotations: [],
808
+ styles: [],
809
+ domId: pe + r + "-" + Xe
810
+ }), Xe++;
811
+ }
812
+ addInterface(i, a) {
813
+ const u = {
814
+ id: `interface${this.interfaces.length}`,
815
+ label: i,
816
+ classId: a
817
+ };
818
+ this.interfaces.push(u);
819
+ }
820
+ /**
821
+ * Function to lookup domId from id in the graph definition.
822
+ *
823
+ * @param id - class ID to lookup
824
+ * @public
825
+ */
826
+ lookUpDomId(i) {
827
+ const a = v.sanitizeText(i, F());
828
+ if (this.classes.has(a))
829
+ return this.classes.get(a).domId;
830
+ throw new Error("Class not found: " + a);
831
+ }
832
+ clear() {
833
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", ct();
834
+ }
835
+ getClass(i) {
836
+ return this.classes.get(i);
837
+ }
838
+ getClasses() {
839
+ return this.classes;
840
+ }
841
+ getRelations() {
842
+ return this.relations;
843
+ }
844
+ getNotes() {
845
+ return this.notes;
846
+ }
847
+ addRelation(i) {
848
+ Oe.debug("Adding relation: " + JSON.stringify(i));
849
+ const a = [
850
+ this.relationType.LOLLIPOP,
851
+ this.relationType.AGGREGATION,
852
+ this.relationType.COMPOSITION,
853
+ this.relationType.DEPENDENCY,
854
+ this.relationType.EXTENSION
855
+ ];
856
+ 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 = v.sanitizeText(
857
+ i.relationTitle1.trim(),
858
+ F()
859
+ ), i.relationTitle2 = v.sanitizeText(
860
+ i.relationTitle2.trim(),
861
+ F()
862
+ ), this.relations.push(i);
863
+ }
864
+ /**
865
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
866
+ * (like 'interface' or 'service')
867
+ *
868
+ * @param className - The class name
869
+ * @param annotation - The name of the annotation without any brackets
870
+ * @public
871
+ */
872
+ addAnnotation(i, a) {
873
+ const u = this.splitClassNameAndType(i).className;
874
+ this.classes.get(u).annotations.push(a);
875
+ }
876
+ /**
877
+ * Adds a member to the specified class
878
+ *
879
+ * @param className - The class name
880
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
881
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
882
+ * method Otherwise the member will be treated as a normal property
883
+ * @public
884
+ */
885
+ addMember(i, a) {
886
+ this.addClass(i);
887
+ const u = this.splitClassNameAndType(i).className, l = this.classes.get(u);
888
+ if (typeof a == "string") {
889
+ const r = a.trim();
890
+ r.startsWith("<<") && r.endsWith(">>") ? l.annotations.push(V(r.substring(2, r.length - 2))) : r.indexOf(")") > 0 ? l.methods.push(new je(r, "method")) : r && l.members.push(new je(r, "attribute"));
891
+ }
892
+ }
893
+ addMembers(i, a) {
894
+ Array.isArray(a) && (a.reverse(), a.forEach((u) => this.addMember(i, u)));
895
+ }
896
+ addNote(i, a) {
897
+ const u = {
898
+ id: `note${this.notes.length}`,
899
+ class: a,
900
+ text: i
901
+ };
902
+ this.notes.push(u);
903
+ }
904
+ cleanupLabel(i) {
905
+ return i.startsWith(":") && (i = i.substring(1)), V(i.trim());
906
+ }
907
+ /**
908
+ * Called by parser when assigning cssClass to a class
909
+ *
910
+ * @param ids - Comma separated list of ids
911
+ * @param className - Class to add
912
+ */
913
+ setCssClass(i, a) {
914
+ i.split(",").forEach((u) => {
915
+ let l = u;
916
+ /\d/.exec(u[0]) && (l = pe + l);
917
+ const r = this.classes.get(l);
918
+ r && (r.cssClasses += " " + a);
919
+ });
920
+ }
921
+ defineClass(i, a) {
922
+ for (const u of i) {
923
+ let l = this.styleClasses.get(u);
924
+ l === void 0 && (l = { id: u, styles: [], textStyles: [] }, this.styleClasses.set(u, l)), a && a.forEach((r) => {
925
+ if (/color/.exec(r)) {
926
+ const c = r.replace("fill", "bgFill");
927
+ l.textStyles.push(c);
928
+ }
929
+ l.styles.push(r);
930
+ }), this.classes.forEach((r) => {
931
+ r.cssClasses.includes(u) && r.styles.push(...a.flatMap((c) => c.split(",")));
932
+ });
933
+ }
934
+ }
935
+ /**
936
+ * Called by parser when a tooltip is found, e.g. a clickable element.
937
+ *
938
+ * @param ids - Comma separated list of ids
939
+ * @param tooltip - Tooltip to add
940
+ */
941
+ setTooltip(i, a) {
942
+ i.split(",").forEach((u) => {
943
+ a !== void 0 && (this.classes.get(u).tooltip = V(a));
944
+ });
945
+ }
946
+ getTooltip(i, a) {
947
+ return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
948
+ }
949
+ /**
950
+ * Called by parser when a link is found. Adds the URL to the vertex data.
951
+ *
952
+ * @param ids - Comma separated list of ids
953
+ * @param linkStr - URL to create a link for
954
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
955
+ */
956
+ setLink(i, a, u) {
957
+ const l = F();
958
+ i.split(",").forEach((r) => {
959
+ let c = r;
960
+ /\d/.exec(r[0]) && (c = pe + c);
961
+ const A = this.classes.get(c);
962
+ A && (A.link = we.formatUrl(a, l), l.securityLevel === "sandbox" ? A.linkTarget = "_top" : typeof u == "string" ? A.linkTarget = V(u) : A.linkTarget = "_blank");
963
+ }), this.setCssClass(i, "clickable");
964
+ }
965
+ /**
966
+ * Called by parser when a click definition is found. Registers an event handler.
967
+ *
968
+ * @param ids - Comma separated list of ids
969
+ * @param functionName - Function to be called on click
970
+ * @param functionArgs - Function args the function should be called with
971
+ */
972
+ setClickEvent(i, a, u) {
973
+ i.split(",").forEach((l) => {
974
+ this.setClickFunc(l, a, u), this.classes.get(l).haveCallback = !0;
975
+ }), this.setCssClass(i, "clickable");
976
+ }
977
+ setClickFunc(i, a, u) {
978
+ const l = v.sanitizeText(i, F());
979
+ if (F().securityLevel !== "loose" || a === void 0)
980
+ return;
981
+ const c = l;
982
+ if (this.classes.has(c)) {
983
+ const A = this.lookUpDomId(c);
984
+ let g = [];
985
+ if (typeof u == "string") {
986
+ g = u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
987
+ for (let D = 0; D < g.length; D++) {
988
+ let L = g[D].trim();
989
+ L.startsWith('"') && L.endsWith('"') && (L = L.substr(1, L.length - 2)), g[D] = L;
990
+ }
991
+ }
992
+ g.length === 0 && g.push(A), this.functions.push(() => {
993
+ const D = document.querySelector(`[id="${A}"]`);
994
+ D !== null && D.addEventListener(
995
+ "click",
996
+ () => {
997
+ we.runFunc(a, ...g);
998
+ },
999
+ !1
1000
+ );
1001
+ });
1002
+ }
1003
+ }
1004
+ bindFunctions(i) {
1005
+ this.functions.forEach((a) => {
1006
+ a(i);
1007
+ });
1008
+ }
1009
+ getDirection() {
1010
+ return this.direction;
1011
+ }
1012
+ setDirection(i) {
1013
+ this.direction = i;
1014
+ }
1015
+ /**
1016
+ * Function called by parser when a namespace definition has been found.
1017
+ *
1018
+ * @param id - ID of the namespace to add
1019
+ * @public
1020
+ */
1021
+ addNamespace(i) {
1022
+ this.namespaces.has(i) || (this.namespaces.set(i, {
1023
+ id: i,
1024
+ classes: /* @__PURE__ */ new Map(),
1025
+ children: {},
1026
+ domId: pe + i + "-" + this.namespaceCounter
1027
+ }), this.namespaceCounter++);
1028
+ }
1029
+ getNamespace(i) {
1030
+ return this.namespaces.get(i);
1031
+ }
1032
+ getNamespaces() {
1033
+ return this.namespaces;
1034
+ }
1035
+ /**
1036
+ * Function called by parser when a namespace definition has been found.
1037
+ *
1038
+ * @param id - ID of the namespace to add
1039
+ * @param classNames - IDs of the class to add
1040
+ * @public
1041
+ */
1042
+ addClassesToNamespace(i, a) {
1043
+ if (this.namespaces.has(i))
1044
+ for (const u of a) {
1045
+ const { className: l } = this.splitClassNameAndType(u);
1046
+ this.classes.get(l).parent = i, this.namespaces.get(i).classes.set(l, this.classes.get(l));
1047
+ }
1048
+ }
1049
+ setCssStyle(i, a) {
1050
+ const u = this.classes.get(i);
1051
+ if (!(!a || !u))
1052
+ for (const l of a)
1053
+ l.includes(",") ? u.styles.push(...l.split(",")) : u.styles.push(l);
1054
+ }
1055
+ /**
1056
+ * Gets the arrow marker for a type index
1057
+ *
1058
+ * @param type - The type to look for
1059
+ * @returns The arrow marker
1060
+ */
1061
+ getArrowMarker(i) {
1062
+ let a;
1063
+ switch (i) {
1064
+ case 0:
1065
+ a = "aggregation";
1066
+ break;
1067
+ case 1:
1068
+ a = "extension";
1069
+ break;
1070
+ case 2:
1071
+ a = "composition";
1072
+ break;
1073
+ case 3:
1074
+ a = "dependency";
1075
+ break;
1076
+ case 4:
1077
+ a = "lollipop";
1078
+ break;
1079
+ default:
1080
+ a = "none";
1081
+ }
1082
+ return a;
1083
+ }
1084
+ getData() {
1085
+ var r;
1086
+ const i = [], a = [], u = F();
1087
+ for (const c of this.namespaces.keys()) {
1088
+ const A = this.namespaces.get(c);
1089
+ if (A) {
1090
+ const g = {
1091
+ id: A.id,
1092
+ label: A.id,
1093
+ isGroup: !0,
1094
+ padding: u.class.padding ?? 16,
1095
+ // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1096
+ shape: "rect",
1097
+ cssStyles: ["fill: none", "stroke: black"],
1098
+ look: u.look
1099
+ };
1100
+ i.push(g);
1101
+ }
1102
+ }
1103
+ for (const c of this.classes.keys()) {
1104
+ const A = this.classes.get(c);
1105
+ if (A) {
1106
+ const g = A;
1107
+ g.parentId = A.parent, g.look = u.look, i.push(g);
1108
+ }
1109
+ }
1110
+ let l = 0;
1111
+ for (const c of this.notes) {
1112
+ l++;
1113
+ const A = {
1114
+ id: c.id,
1115
+ label: c.text,
1116
+ isGroup: !1,
1117
+ shape: "note",
1118
+ padding: u.class.padding ?? 6,
1119
+ cssStyles: [
1120
+ "text-align: left",
1121
+ "white-space: nowrap",
1122
+ `fill: ${u.themeVariables.noteBkgColor}`,
1123
+ `stroke: ${u.themeVariables.noteBorderColor}`
1124
+ ],
1125
+ look: u.look
1126
+ };
1127
+ i.push(A);
1128
+ const g = ((r = this.classes.get(c.class)) == null ? void 0 : r.id) ?? "";
1129
+ if (g) {
1130
+ const D = {
1131
+ id: `edgeNote${l}`,
1132
+ start: c.id,
1133
+ end: g,
1134
+ type: "normal",
1135
+ thickness: "normal",
1136
+ classes: "relation",
1137
+ arrowTypeStart: "none",
1138
+ arrowTypeEnd: "none",
1139
+ arrowheadStyle: "",
1140
+ labelStyle: [""],
1141
+ style: ["fill: none"],
1142
+ pattern: "dotted",
1143
+ look: u.look
1144
+ };
1145
+ a.push(D);
1146
+ }
1147
+ }
1148
+ for (const c of this.interfaces) {
1149
+ const A = {
1150
+ id: c.id,
1151
+ label: c.label,
1152
+ isGroup: !1,
1153
+ shape: "rect",
1154
+ cssStyles: ["opacity: 0;"],
1155
+ look: u.look
1156
+ };
1157
+ i.push(A);
1158
+ }
1159
+ l = 0;
1160
+ for (const c of this.relations) {
1161
+ l++;
1162
+ const A = {
1163
+ id: ht(c.id1, c.id2, {
1164
+ prefix: "id",
1165
+ counter: l
1166
+ }),
1167
+ start: c.id1,
1168
+ end: c.id2,
1169
+ type: "normal",
1170
+ label: c.title,
1171
+ labelpos: "c",
1172
+ thickness: "normal",
1173
+ classes: "relation",
1174
+ arrowTypeStart: this.getArrowMarker(c.relation.type1),
1175
+ arrowTypeEnd: this.getArrowMarker(c.relation.type2),
1176
+ startLabelRight: c.relationTitle1 === "none" ? "" : c.relationTitle1,
1177
+ endLabelLeft: c.relationTitle2 === "none" ? "" : c.relationTitle2,
1178
+ arrowheadStyle: "",
1179
+ labelStyle: ["display: inline-block"],
1180
+ style: c.style || "",
1181
+ pattern: c.relation.lineType == 1 ? "dashed" : "solid",
1182
+ look: u.look
1183
+ };
1184
+ a.push(A);
1185
+ }
1186
+ return { nodes: i, edges: a, other: {}, config: u, direction: this.getDirection() };
1187
+ }
1188
+ }, f(U, "ClassDB"), U), At = /* @__PURE__ */ f((s) => `g.classGroup text {
1189
+ fill: ${s.nodeBorder || s.classText};
1190
+ stroke: none;
1191
+ font-family: ${s.fontFamily};
1192
+ font-size: 10px;
1193
+
1194
+ .title {
1195
+ font-weight: bolder;
1196
+ }
1197
+
1198
+ }
1199
+
1200
+ .nodeLabel, .edgeLabel {
1201
+ color: ${s.classText};
1202
+ }
1203
+ .edgeLabel .label rect {
1204
+ fill: ${s.mainBkg};
1205
+ }
1206
+ .label text {
1207
+ fill: ${s.classText};
1208
+ }
1209
+
1210
+ .labelBkg {
1211
+ background: ${s.mainBkg};
1212
+ }
1213
+ .edgeLabel .label span {
1214
+ background: ${s.mainBkg};
1215
+ }
1216
+
1217
+ .classTitle {
1218
+ font-weight: bolder;
1219
+ }
1220
+ .node rect,
1221
+ .node circle,
1222
+ .node ellipse,
1223
+ .node polygon,
1224
+ .node path {
1225
+ fill: ${s.mainBkg};
1226
+ stroke: ${s.nodeBorder};
1227
+ stroke-width: 1px;
1228
+ }
1229
+
1230
+
1231
+ .divider {
1232
+ stroke: ${s.nodeBorder};
1233
+ stroke-width: 1;
1234
+ }
1235
+
1236
+ g.clickable {
1237
+ cursor: pointer;
1238
+ }
1239
+
1240
+ g.classGroup rect {
1241
+ fill: ${s.mainBkg};
1242
+ stroke: ${s.nodeBorder};
1243
+ }
1244
+
1245
+ g.classGroup line {
1246
+ stroke: ${s.nodeBorder};
1247
+ stroke-width: 1;
1248
+ }
1249
+
1250
+ .classLabel .box {
1251
+ stroke: none;
1252
+ stroke-width: 0;
1253
+ fill: ${s.mainBkg};
1254
+ opacity: 0.5;
1255
+ }
1256
+
1257
+ .classLabel .label {
1258
+ fill: ${s.nodeBorder};
1259
+ font-size: 10px;
1260
+ }
1261
+
1262
+ .relation {
1263
+ stroke: ${s.lineColor};
1264
+ stroke-width: 1;
1265
+ fill: none;
1266
+ }
1267
+
1268
+ .dashed-line{
1269
+ stroke-dasharray: 3;
1270
+ }
1271
+
1272
+ .dotted-line{
1273
+ stroke-dasharray: 1 2;
1274
+ }
1275
+
1276
+ #compositionStart, .composition {
1277
+ fill: ${s.lineColor} !important;
1278
+ stroke: ${s.lineColor} !important;
1279
+ stroke-width: 1;
1280
+ }
1281
+
1282
+ #compositionEnd, .composition {
1283
+ fill: ${s.lineColor} !important;
1284
+ stroke: ${s.lineColor} !important;
1285
+ stroke-width: 1;
1286
+ }
1287
+
1288
+ #dependencyStart, .dependency {
1289
+ fill: ${s.lineColor} !important;
1290
+ stroke: ${s.lineColor} !important;
1291
+ stroke-width: 1;
1292
+ }
1293
+
1294
+ #dependencyStart, .dependency {
1295
+ fill: ${s.lineColor} !important;
1296
+ stroke: ${s.lineColor} !important;
1297
+ stroke-width: 1;
1298
+ }
1299
+
1300
+ #extensionStart, .extension {
1301
+ fill: transparent !important;
1302
+ stroke: ${s.lineColor} !important;
1303
+ stroke-width: 1;
1304
+ }
1305
+
1306
+ #extensionEnd, .extension {
1307
+ fill: transparent !important;
1308
+ stroke: ${s.lineColor} !important;
1309
+ stroke-width: 1;
1310
+ }
1311
+
1312
+ #aggregationStart, .aggregation {
1313
+ fill: transparent !important;
1314
+ stroke: ${s.lineColor} !important;
1315
+ stroke-width: 1;
1316
+ }
1317
+
1318
+ #aggregationEnd, .aggregation {
1319
+ fill: transparent !important;
1320
+ stroke: ${s.lineColor} !important;
1321
+ stroke-width: 1;
1322
+ }
1323
+
1324
+ #lollipopStart, .lollipop {
1325
+ fill: ${s.mainBkg} !important;
1326
+ stroke: ${s.lineColor} !important;
1327
+ stroke-width: 1;
1328
+ }
1329
+
1330
+ #lollipopEnd, .lollipop {
1331
+ fill: ${s.mainBkg} !important;
1332
+ stroke: ${s.lineColor} !important;
1333
+ stroke-width: 1;
1334
+ }
1335
+
1336
+ .edgeTerminals {
1337
+ font-size: 11px;
1338
+ line-height: initial;
1339
+ }
1340
+
1341
+ .classTitleText {
1342
+ text-anchor: middle;
1343
+ font-size: 18px;
1344
+ fill: ${s.textColor};
1345
+ }
1346
+ ${et()}
1347
+ `, "getStyles"), Ft = At, ft = /* @__PURE__ */ f((s, i = "TB") => {
1348
+ if (!s.doc)
1349
+ return i;
1350
+ let a = i;
1351
+ for (const u of s.doc)
1352
+ u.stmt === "dir" && (a = u.value);
1353
+ return a;
1354
+ }, "getDir"), gt = /* @__PURE__ */ f(function(s, i) {
1355
+ return i.db.getClasses();
1356
+ }, "getClasses"), mt = /* @__PURE__ */ f(async function(s, i, a, u) {
1357
+ Oe.info("REF0:"), Oe.info("Drawing class diagram (v3)", i);
1358
+ const { securityLevel: l, state: r, layout: c } = F(), A = u.db.getData(), g = tt(i, l);
1359
+ A.type = u.type, A.layoutAlgorithm = dt(c), A.nodeSpacing = (r == null ? void 0 : r.nodeSpacing) || 50, A.rankSpacing = (r == null ? void 0 : r.rankSpacing) || 50, A.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], A.diagramId = i, await pt(A, g);
1360
+ const D = 8;
1361
+ we.insertTitle(
1362
+ g,
1363
+ "classDiagramTitleText",
1364
+ (r == null ? void 0 : r.titleTopMargin) ?? 25,
1365
+ u.db.getDiagramTitle()
1366
+ ), st(g, D, "classDiagram", (r == null ? void 0 : r.useMaxWidth) ?? !0);
1367
+ }, "draw"), Bt = {
1368
+ getClasses: gt,
1369
+ draw: mt,
1370
+ getDir: ft
1371
+ };
1372
+ export {
1373
+ Dt as C,
1374
+ Bt as a,
1375
+ kt as c,
1376
+ Ft as s
1377
+ };