@altimateai/ui-components 0.0.78-beta.1 → 0.0.78

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 (404) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +23919 -67654
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2231 -2829
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +5100 -6285
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/arc.js +53 -53
  10. package/dist/architectureDiagram-VXUJARFQ.js +4315 -480
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +19 -57
  16. package/dist/chatbotV2/index.js +56 -91
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +14 -14
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +2535 -160
  28. package/dist/dagre-6UL2VRFP.js +101 -101
  29. package/dist/dayjs.min.js +2 -2
  30. package/dist/defaultLocale.js +3 -3
  31. package/dist/diagram-PSM6KHXK.js +414 -198
  32. package/dist/diagram-QEK2KX5R.js +26 -26
  33. package/dist/diagram-S2PKOQOG.js +12 -12
  34. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  35. package/dist/flowDiagram-NV44I4VS.js +6 -6
  36. package/dist/ganttDiagram-LVOFAZNH.js +1718 -843
  37. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  38. package/dist/graph.js +18 -17
  39. package/dist/index.d.ts +6 -101
  40. package/dist/index.js +37 -37
  41. package/dist/index2.js +684 -216
  42. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  43. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  44. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  45. package/dist/layout.js +678 -567
  46. package/dist/lineage/index.js +1309 -1302
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +150 -150
  50. package/dist/mermaid-parser.core.js +155 -155
  51. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  52. package/dist/pieDiagram-ADFJNKIX.js +108 -68
  53. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  54. package/dist/redux-toolkit.modern.js +555 -563
  55. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  56. package/dist/sankeyDiagram-TZEHDZUN.js +622 -229
  57. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  58. package/dist/shadcn/index.d.ts +8 -11
  59. package/dist/shadcn/index.js +4733 -6547
  60. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  61. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  62. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  63. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  64. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  65. package/package.json +1 -1
  66. package/dist/abap.js +0 -6
  67. package/dist/actionscript-3.js +0 -6
  68. package/dist/ada.js +0 -6
  69. package/dist/andromeeda.js +0 -4
  70. package/dist/angular-html.js +0 -32
  71. package/dist/angular-ts.js +0 -21
  72. package/dist/apache.js +0 -6
  73. package/dist/apex.js +0 -6
  74. package/dist/apl.js +0 -16
  75. package/dist/applescript.js +0 -6
  76. package/dist/ara.js +0 -6
  77. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  78. package/dist/asciidoc.js +0 -6
  79. package/dist/asm.js +0 -6
  80. package/dist/astro.js +0 -18
  81. package/dist/aurora-x.js +0 -4
  82. package/dist/awk.js +0 -6
  83. package/dist/ayu-dark.js +0 -4
  84. package/dist/ballerina.js +0 -6
  85. package/dist/band.js +0 -46
  86. package/dist/bat.js +0 -6
  87. package/dist/beancount.js +0 -6
  88. package/dist/berry.js +0 -6
  89. package/dist/bibtex.js +0 -6
  90. package/dist/bicep.js +0 -6
  91. package/dist/blade.js +0 -20
  92. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  93. package/dist/bsl.js +0 -8
  94. package/dist/c.js +0 -6
  95. package/dist/c3.js +0 -6
  96. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  97. package/dist/cadence.js +0 -6
  98. package/dist/cairo.js +0 -8
  99. package/dist/catppuccin-frappe.js +0 -4
  100. package/dist/catppuccin-latte.js +0 -4
  101. package/dist/catppuccin-macchiato.js +0 -4
  102. package/dist/catppuccin-mocha.js +0 -4
  103. package/dist/chunk-4BX2VUAB2.js +0 -9
  104. package/dist/chunk-55IACEB62.js +0 -9
  105. package/dist/chunk-B4BG7PRW2.js +0 -1377
  106. package/dist/chunk-DI55MBZ52.js +0 -1382
  107. package/dist/chunk-FMBD7UC42.js +0 -19
  108. package/dist/chunk-QN33PNHL2.js +0 -20
  109. package/dist/chunk-QZHKN3VN2.js +0 -15
  110. package/dist/chunk-TZMSLE5B2.js +0 -64
  111. package/dist/clarity.js +0 -6
  112. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  113. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  114. package/dist/clojure.js +0 -6
  115. package/dist/cmake.js +0 -6
  116. package/dist/cobol.js +0 -10
  117. package/dist/code-block-37QAKDTI.js +0 -27
  118. package/dist/codeowners.js +0 -6
  119. package/dist/codeql.js +0 -6
  120. package/dist/coffee.js +0 -8
  121. package/dist/common-lisp.js +0 -6
  122. package/dist/coq.js +0 -6
  123. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  124. package/dist/cpp.js +0 -18
  125. package/dist/crystal.js +0 -18
  126. package/dist/csharp.js +0 -6
  127. package/dist/css.js +0 -6
  128. package/dist/csv.js +0 -6
  129. package/dist/cue.js +0 -6
  130. package/dist/cypher.js +0 -6
  131. package/dist/cytoscape-cose-bilkent.js +0 -2380
  132. package/dist/cytoscape-fcose.js +0 -3840
  133. package/dist/d.js +0 -6
  134. package/dist/dagre-6UL2VRFP2.js +0 -447
  135. package/dist/dark-plus.js +0 -4
  136. package/dist/dart.js +0 -6
  137. package/dist/dax.js +0 -6
  138. package/dist/desktop.js +0 -6
  139. package/dist/diagram-PSM6KHXK2.js +0 -319
  140. package/dist/diagram-QEK2KX5R2.js +0 -221
  141. package/dist/diagram-S2PKOQOG2.js +0 -143
  142. package/dist/diff.js +0 -6
  143. package/dist/docker.js +0 -6
  144. package/dist/dotenv.js +0 -6
  145. package/dist/dracula-soft.js +0 -4
  146. package/dist/dracula.js +0 -4
  147. package/dist/dream-maker.js +0 -6
  148. package/dist/edge.js +0 -12
  149. package/dist/elixir.js +0 -8
  150. package/dist/elm.js +0 -8
  151. package/dist/emacs-lisp.js +0 -6
  152. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  153. package/dist/erb.js +0 -10
  154. package/dist/erlang.js +0 -8
  155. package/dist/everforest-dark.js +0 -4
  156. package/dist/everforest-light.js +0 -4
  157. package/dist/fennel.js +0 -6
  158. package/dist/fish.js +0 -6
  159. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  160. package/dist/fluent.js +0 -6
  161. package/dist/fortran-fixed-form.js +0 -8
  162. package/dist/fortran-free-form.js +0 -6
  163. package/dist/fsharp.js +0 -8
  164. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  165. package/dist/gdresource.js +0 -10
  166. package/dist/gdscript.js +0 -6
  167. package/dist/gdshader.js +0 -6
  168. package/dist/genie.js +0 -6
  169. package/dist/gherkin.js +0 -6
  170. package/dist/git-commit.js +0 -8
  171. package/dist/git-rebase.js +0 -8
  172. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  173. package/dist/github-dark-default.js +0 -4
  174. package/dist/github-dark-dimmed.js +0 -4
  175. package/dist/github-dark-high-contrast.js +0 -4
  176. package/dist/github-dark.js +0 -4
  177. package/dist/github-light-default.js +0 -4
  178. package/dist/github-light-high-contrast.js +0 -4
  179. package/dist/github-light.js +0 -4
  180. package/dist/gleam.js +0 -6
  181. package/dist/glimmer-js.js +0 -14
  182. package/dist/glimmer-ts.js +0 -14
  183. package/dist/glsl.js +0 -8
  184. package/dist/gn.js +0 -6
  185. package/dist/gnuplot.js +0 -6
  186. package/dist/go.js +0 -6
  187. package/dist/graph2.js +0 -246
  188. package/dist/graphql.js +0 -14
  189. package/dist/groovy.js +0 -6
  190. package/dist/gruvbox-dark-hard.js +0 -4
  191. package/dist/gruvbox-dark-medium.js +0 -4
  192. package/dist/gruvbox-dark-soft.js +0 -4
  193. package/dist/gruvbox-light-hard.js +0 -4
  194. package/dist/gruvbox-light-medium.js +0 -4
  195. package/dist/gruvbox-light-soft.js +0 -4
  196. package/dist/hack.js +0 -10
  197. package/dist/haml.js +0 -10
  198. package/dist/handlebars.js +0 -14
  199. package/dist/haskell.js +0 -6
  200. package/dist/haxe.js +0 -6
  201. package/dist/hcl.js +0 -6
  202. package/dist/hjson.js +0 -6
  203. package/dist/hlsl.js +0 -6
  204. package/dist/houston.js +0 -4
  205. package/dist/html-derivative.js +0 -8
  206. package/dist/html.js +0 -10
  207. package/dist/http.js +0 -14
  208. package/dist/hurl.js +0 -12
  209. package/dist/hxml.js +0 -8
  210. package/dist/hy.js +0 -6
  211. package/dist/imba.js +0 -6
  212. package/dist/index3.js +0 -689
  213. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  214. package/dist/ini.js +0 -6
  215. package/dist/java.js +0 -6
  216. package/dist/javascript.js +0 -6
  217. package/dist/jinja.js +0 -11
  218. package/dist/jison.js +0 -8
  219. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  220. package/dist/json.js +0 -6
  221. package/dist/json5.js +0 -6
  222. package/dist/jsonc.js +0 -6
  223. package/dist/jsonl.js +0 -6
  224. package/dist/jsonnet.js +0 -6
  225. package/dist/jssm.js +0 -6
  226. package/dist/jsx.js +0 -6
  227. package/dist/julia.js +0 -16
  228. package/dist/kanagawa-dragon.js +0 -4
  229. package/dist/kanagawa-lotus.js +0 -4
  230. package/dist/kanagawa-wave.js +0 -4
  231. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  232. package/dist/katex2.js +0 -11691
  233. package/dist/kdl.js +0 -6
  234. package/dist/kotlin.js +0 -6
  235. package/dist/kusto.js +0 -6
  236. package/dist/laserwave.js +0 -4
  237. package/dist/latex.js +0 -8
  238. package/dist/layout2.js +0 -1224
  239. package/dist/lean.js +0 -6
  240. package/dist/less.js +0 -6
  241. package/dist/light-plus.js +0 -4
  242. package/dist/liquid.js +0 -14
  243. package/dist/llvm.js +0 -6
  244. package/dist/log.js +0 -6
  245. package/dist/logo.js +0 -6
  246. package/dist/lua.js +0 -8
  247. package/dist/luau.js +0 -6
  248. package/dist/make.js +0 -6
  249. package/dist/markdown.js +0 -6
  250. package/dist/marko.js +0 -14
  251. package/dist/material-theme-darker.js +0 -4
  252. package/dist/material-theme-lighter.js +0 -4
  253. package/dist/material-theme-ocean.js +0 -4
  254. package/dist/material-theme-palenight.js +0 -4
  255. package/dist/material-theme.js +0 -4
  256. package/dist/matlab.js +0 -6
  257. package/dist/mdc.js +0 -12
  258. package/dist/mdx.js +0 -6
  259. package/dist/mermaid-4DMBBIKO.js +0 -4
  260. package/dist/mermaid.js +0 -6
  261. package/dist/min-dark.js +0 -4
  262. package/dist/min-light.js +0 -4
  263. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  264. package/dist/mipsasm.js +0 -6
  265. package/dist/mojo.js +0 -6
  266. package/dist/monokai.js +0 -4
  267. package/dist/moonbit.js +0 -6
  268. package/dist/move.js +0 -6
  269. package/dist/narrat.js +0 -6
  270. package/dist/nextflow.js +0 -6
  271. package/dist/nginx.js +0 -8
  272. package/dist/night-owl.js +0 -4
  273. package/dist/nim.js +0 -20
  274. package/dist/nix.js +0 -9
  275. package/dist/nord.js +0 -4
  276. package/dist/nushell.js +0 -6
  277. package/dist/objective-c.js +0 -6
  278. package/dist/objective-cpp.js +0 -6
  279. package/dist/ocaml.js +0 -6
  280. package/dist/one-dark-pro.js +0 -4
  281. package/dist/one-light.js +0 -4
  282. package/dist/openscad.js +0 -6
  283. package/dist/pascal.js +0 -6
  284. package/dist/perl.js +0 -16
  285. package/dist/php.js +0 -18
  286. package/dist/pie.js +0 -45
  287. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  288. package/dist/pkl.js +0 -6
  289. package/dist/plastic.js +0 -4
  290. package/dist/plsql.js +0 -6
  291. package/dist/po.js +0 -6
  292. package/dist/poimandres.js +0 -4
  293. package/dist/polar.js +0 -6
  294. package/dist/postcss.js +0 -6
  295. package/dist/powerquery.js +0 -6
  296. package/dist/powershell.js +0 -6
  297. package/dist/prisma.js +0 -6
  298. package/dist/prolog.js +0 -6
  299. package/dist/proto.js +0 -6
  300. package/dist/pug.js +0 -12
  301. package/dist/puppet.js +0 -6
  302. package/dist/purescript.js +0 -6
  303. package/dist/python.js +0 -6
  304. package/dist/qml.js +0 -8
  305. package/dist/qmldir.js +0 -6
  306. package/dist/qss.js +0 -6
  307. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  308. package/dist/r.js +0 -6
  309. package/dist/racket.js +0 -6
  310. package/dist/raku.js +0 -6
  311. package/dist/razor.js +0 -10
  312. package/dist/red.js +0 -4
  313. package/dist/reg.js +0 -6
  314. package/dist/regexp.js +0 -6
  315. package/dist/rel.js +0 -6
  316. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  317. package/dist/riscv.js +0 -6
  318. package/dist/rose-pine-dawn.js +0 -4
  319. package/dist/rose-pine-moon.js +0 -4
  320. package/dist/rose-pine.js +0 -4
  321. package/dist/rosmsg.js +0 -6
  322. package/dist/rst.js +0 -22
  323. package/dist/ruby.js +0 -30
  324. package/dist/rust.js +0 -6
  325. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  326. package/dist/sankeyLinkHorizontal.js +0 -403
  327. package/dist/sas.js +0 -8
  328. package/dist/sass.js +0 -6
  329. package/dist/scala.js +0 -6
  330. package/dist/scheme.js +0 -6
  331. package/dist/scss.js +0 -8
  332. package/dist/sdbl.js +0 -6
  333. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  334. package/dist/shaderlab.js +0 -8
  335. package/dist/shellscript.js +0 -6
  336. package/dist/shellsession.js +0 -8
  337. package/dist/slack-dark.js +0 -4
  338. package/dist/slack-ochin.js +0 -4
  339. package/dist/smalltalk.js +0 -6
  340. package/dist/snazzy-light.js +0 -4
  341. package/dist/solarized-dark.js +0 -4
  342. package/dist/solarized-light.js +0 -4
  343. package/dist/solidity.js +0 -6
  344. package/dist/soy.js +0 -8
  345. package/dist/sparql.js +0 -8
  346. package/dist/splunk.js +0 -6
  347. package/dist/sql.js +0 -6
  348. package/dist/ssh-config.js +0 -6
  349. package/dist/stata.js +0 -8
  350. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  351. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  352. package/dist/stylus.js +0 -6
  353. package/dist/svelte.js +0 -14
  354. package/dist/swift.js +0 -6
  355. package/dist/synthwave-84.js +0 -4
  356. package/dist/system-verilog.js +0 -6
  357. package/dist/systemd.js +0 -6
  358. package/dist/talonscript.js +0 -6
  359. package/dist/tasl.js +0 -6
  360. package/dist/tcl.js +0 -6
  361. package/dist/templ.js +0 -12
  362. package/dist/terraform.js +0 -6
  363. package/dist/tex.js +0 -8
  364. package/dist/time.js +0 -900
  365. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  366. package/dist/tokyo-night.js +0 -4
  367. package/dist/toml.js +0 -6
  368. package/dist/ts-tags.js +0 -41
  369. package/dist/tsv.js +0 -6
  370. package/dist/tsx.js +0 -6
  371. package/dist/turtle.js +0 -6
  372. package/dist/twig.js +0 -18
  373. package/dist/typescript.js +0 -6
  374. package/dist/typespec.js +0 -6
  375. package/dist/typst.js +0 -6
  376. package/dist/union.js +0 -8
  377. package/dist/v.js +0 -6
  378. package/dist/vala.js +0 -6
  379. package/dist/vb.js +0 -6
  380. package/dist/verilog.js +0 -6
  381. package/dist/vesper.js +0 -4
  382. package/dist/vhdl.js +0 -6
  383. package/dist/viml.js +0 -6
  384. package/dist/vitesse-black.js +0 -4
  385. package/dist/vitesse-dark.js +0 -4
  386. package/dist/vitesse-light.js +0 -4
  387. package/dist/vue-html.js +0 -8
  388. package/dist/vue-vine.js +0 -18
  389. package/dist/vue.js +0 -31
  390. package/dist/vyper.js +0 -6
  391. package/dist/wasm.js +0 -7
  392. package/dist/wasm2.js +0 -6
  393. package/dist/wenyan.js +0 -6
  394. package/dist/wgsl.js +0 -6
  395. package/dist/wikitext.js +0 -6
  396. package/dist/wit.js +0 -6
  397. package/dist/wolfram.js +0 -6
  398. package/dist/xml.js +0 -8
  399. package/dist/xsl.js +0 -8
  400. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  401. package/dist/yaml.js +0 -6
  402. package/dist/zenscript.js +0 -6
  403. package/dist/zig.js +0 -6
  404. package/dist/zipObject.js +0 -128
@@ -1,843 +0,0 @@
1
- import { g as Dt } from "./chunk-55IACEB62.js";
2
- import { s as wt } from "./chunk-QN33PNHL2.js";
3
- import { aG as u, aI as Vt, aJ as Lt, aL as Mt, aK as Bt, aV as Ft, aW as Yt, aM as tt, aS as D, b0 as Pt, a_ as Gt, b5 as zt, b3 as Kt, b4 as Zt, a$ as Ut, A as jt } from "./CoachForm.js";
4
- import { s as Wt } from "./redux-toolkit.modern.js";
5
- import { c as Qt } from "./channel.js";
6
- var dt = function() {
7
- var s = /* @__PURE__ */ u(function(R, n, a, c) {
8
- for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
9
- return a;
10
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], h = [1, 10], d = [1, 11], o = [1, 12], l = [1, 13], f = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], G = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], yt = [63, 64, 65, 66, 67], ft = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], v = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], z = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
11
- trace: /* @__PURE__ */ u(function() {
12
- }, "trace"),
13
- yy: {},
14
- symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, attribute: 51, attributeType: 52, attributeName: 53, attributeKeyTypeList: 54, attributeComment: 55, ATTRIBUTE_WORD: 56, attributeKeyType: 57, ",": 58, ATTRIBUTE_KEY: 59, COMMENT: 60, cardinality: 61, relType: 62, ZERO_OR_ONE: 63, ZERO_OR_MORE: 64, ONE_OR_MORE: 65, ONLY_ONE: 66, MD_PARENT: 67, NON_IDENTIFYING: 68, IDENTIFYING: 69, WORD: 70, $accept: 0, $end: 1 },
15
- terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 56: "ATTRIBUTE_WORD", 58: ",", 59: "ATTRIBUTE_KEY", 60: "COMMENT", 63: "ZERO_OR_ONE", 64: "ZERO_OR_MORE", 65: "ONE_OR_MORE", 66: "ONLY_ONE", 67: "MD_PARENT", 68: "NON_IDENTIFYING", 69: "IDENTIFYING", 70: "WORD" },
16
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [18, 1], [18, 2], [51, 2], [51, 3], [51, 3], [51, 4], [52, 1], [53, 1], [54, 1], [54, 3], [57, 1], [55, 1], [12, 3], [61, 1], [61, 1], [61, 1], [61, 1], [61, 1], [62, 1], [62, 1], [14, 1], [14, 1], [14, 1]],
17
- performAction: /* @__PURE__ */ u(function(n, a, c, r, p, t, K) {
18
- var e = t.length - 1;
19
- switch (p) {
20
- case 1:
21
- break;
22
- case 2:
23
- this.$ = [];
24
- break;
25
- case 3:
26
- t[e - 1].push(t[e]), this.$ = t[e - 1];
27
- break;
28
- case 4:
29
- case 5:
30
- this.$ = t[e];
31
- break;
32
- case 6:
33
- case 7:
34
- this.$ = [];
35
- break;
36
- case 8:
37
- r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
38
- break;
39
- case 9:
40
- r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
41
- break;
42
- case 10:
43
- r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
44
- break;
45
- case 11:
46
- r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
47
- break;
48
- case 12:
49
- r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
50
- break;
51
- case 13:
52
- r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
53
- break;
54
- case 14:
55
- r.addEntity(t[e - 2]);
56
- break;
57
- case 15:
58
- r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
59
- break;
60
- case 16:
61
- r.addEntity(t[e]);
62
- break;
63
- case 17:
64
- r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
65
- break;
66
- case 18:
67
- r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
68
- break;
69
- case 19:
70
- r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
71
- break;
72
- case 20:
73
- r.addEntity(t[e - 5], t[e - 3]);
74
- break;
75
- case 21:
76
- r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
77
- break;
78
- case 22:
79
- r.addEntity(t[e - 3], t[e - 1]);
80
- break;
81
- case 23:
82
- r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
83
- break;
84
- case 24:
85
- case 25:
86
- this.$ = t[e].trim(), r.setAccTitle(this.$);
87
- break;
88
- case 26:
89
- case 27:
90
- this.$ = t[e].trim(), r.setAccDescription(this.$);
91
- break;
92
- case 32:
93
- r.setDirection("TB");
94
- break;
95
- case 33:
96
- r.setDirection("BT");
97
- break;
98
- case 34:
99
- r.setDirection("RL");
100
- break;
101
- case 35:
102
- r.setDirection("LR");
103
- break;
104
- case 36:
105
- this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
106
- break;
107
- case 37:
108
- case 38:
109
- case 56:
110
- case 64:
111
- this.$ = [t[e]];
112
- break;
113
- case 39:
114
- case 40:
115
- this.$ = t[e - 2].concat([t[e]]);
116
- break;
117
- case 41:
118
- this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
119
- break;
120
- case 42:
121
- this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
122
- break;
123
- case 43:
124
- this.$ = [t[e]];
125
- break;
126
- case 44:
127
- t[e - 2].push(t[e]), this.$ = t[e - 2];
128
- break;
129
- case 46:
130
- this.$ = t[e - 1] + t[e];
131
- break;
132
- case 54:
133
- case 76:
134
- case 77:
135
- this.$ = t[e].replace(/"/g, "");
136
- break;
137
- case 55:
138
- case 78:
139
- this.$ = t[e];
140
- break;
141
- case 57:
142
- t[e].push(t[e - 1]), this.$ = t[e];
143
- break;
144
- case 58:
145
- this.$ = { type: t[e - 1], name: t[e] };
146
- break;
147
- case 59:
148
- this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
149
- break;
150
- case 60:
151
- this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
152
- break;
153
- case 61:
154
- this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
155
- break;
156
- case 62:
157
- case 63:
158
- case 66:
159
- this.$ = t[e];
160
- break;
161
- case 65:
162
- t[e - 2].push(t[e]), this.$ = t[e - 2];
163
- break;
164
- case 67:
165
- this.$ = t[e].replace(/"/g, "");
166
- break;
167
- case 68:
168
- this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
169
- break;
170
- case 69:
171
- this.$ = r.Cardinality.ZERO_OR_ONE;
172
- break;
173
- case 70:
174
- this.$ = r.Cardinality.ZERO_OR_MORE;
175
- break;
176
- case 71:
177
- this.$ = r.Cardinality.ONE_OR_MORE;
178
- break;
179
- case 72:
180
- this.$ = r.Cardinality.ONLY_ONE;
181
- break;
182
- case 73:
183
- this.$ = r.Cardinality.MD_PARENT;
184
- break;
185
- case 74:
186
- this.$ = r.Identification.NON_IDENTIFYING;
187
- break;
188
- case 75:
189
- this.$ = r.Identification.IDENTIFYING;
190
- break;
191
- }
192
- }, "anonymous"),
193
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: G }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: G }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(yt, [2, 74]), s(yt, [2, 75]), { 6: ft, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: G }), s(v, [2, 45]), s(v, [2, 50]), s(v, [2, 51]), s(v, [2, 52]), s(v, [2, 53]), s(i, [2, 41], { 42: N }), { 6: ft, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(z, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: G }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(v, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(z, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(z, [2, 60]), s(at, [2, 64]), s(z, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: G }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(z, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
194
- defaultActions: { 52: [2, 62], 72: [2, 57] },
195
- parseError: /* @__PURE__ */ u(function(n, a) {
196
- if (a.recoverable)
197
- this.trace(n);
198
- else {
199
- var c = new Error(n);
200
- throw c.hash = a, c;
201
- }
202
- }, "parseError"),
203
- parse: /* @__PURE__ */ u(function(n) {
204
- var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", H = 0, St = 0, It = 2, Tt = 1, xt = t.slice.call(arguments, 1), y = Object.create(this.lexer), I = { yy: {} };
205
- for (var lt in this.yy)
206
- Object.prototype.hasOwnProperty.call(this.yy, lt) && (I.yy[lt] = this.yy[lt]);
207
- y.setInput(n, I.yy), I.yy.lexer = y, I.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
208
- var ot = y.yylloc;
209
- t.push(ot);
210
- var vt = y.options && y.options.ranges;
211
- typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
212
- function Ct(b) {
213
- c.length = c.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
214
- }
215
- u(Ct, "popStack");
216
- function Ot() {
217
- var b;
218
- return b = r.pop() || y.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
219
- }
220
- u(Ot, "lex");
221
- for (var g, x, m, ht, C = {}, J, k, At, $; ; ) {
222
- if (x = c[c.length - 1], this.defaultActions[x] ? m = this.defaultActions[x] : ((g === null || typeof g > "u") && (g = Ot()), m = K[x] && K[x][g]), typeof m > "u" || !m.length || !m[0]) {
223
- var ut = "";
224
- $ = [];
225
- for (J in K[x])
226
- this.terminals_[J] && J > It && $.push("'" + this.terminals_[J] + "'");
227
- y.showPosition ? ut = "Parse error on line " + (H + 1) + `:
228
- ` + y.showPosition() + `
229
- Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (H + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
230
- text: y.match,
231
- token: this.terminals_[g] || g,
232
- line: y.yylineno,
233
- loc: ot,
234
- expected: $
235
- });
236
- }
237
- if (m[0] instanceof Array && m.length > 1)
238
- throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + g);
239
- switch (m[0]) {
240
- case 1:
241
- c.push(g), p.push(y.yytext), t.push(y.yylloc), c.push(m[1]), g = null, St = y.yyleng, e = y.yytext, H = y.yylineno, ot = y.yylloc;
242
- break;
243
- case 2:
244
- if (k = this.productions_[m[1]][1], C.$ = p[p.length - k], C._$ = {
245
- first_line: t[t.length - (k || 1)].first_line,
246
- last_line: t[t.length - 1].last_line,
247
- first_column: t[t.length - (k || 1)].first_column,
248
- last_column: t[t.length - 1].last_column
249
- }, vt && (C._$.range = [
250
- t[t.length - (k || 1)].range[0],
251
- t[t.length - 1].range[1]
252
- ]), ht = this.performAction.apply(C, [
253
- e,
254
- St,
255
- H,
256
- I.yy,
257
- m[1],
258
- p,
259
- t
260
- ].concat(xt)), typeof ht < "u")
261
- return ht;
262
- k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(C.$), t.push(C._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
263
- break;
264
- case 3:
265
- return !0;
266
- }
267
- }
268
- return !0;
269
- }, "parse")
270
- }, Rt = /* @__PURE__ */ function() {
271
- var R = {
272
- EOF: 1,
273
- parseError: /* @__PURE__ */ u(function(a, c) {
274
- if (this.yy.parser)
275
- this.yy.parser.parseError(a, c);
276
- else
277
- throw new Error(a);
278
- }, "parseError"),
279
- // resets the lexer, sets new input
280
- setInput: /* @__PURE__ */ u(function(n, a) {
281
- return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
282
- first_line: 1,
283
- first_column: 0,
284
- last_line: 1,
285
- last_column: 0
286
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
287
- }, "setInput"),
288
- // consumes and returns one char from the input
289
- input: /* @__PURE__ */ u(function() {
290
- var n = this._input[0];
291
- this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
292
- var a = n.match(/(?:\r\n?|\n).*/g);
293
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
294
- }, "input"),
295
- // unshifts one char (or a string) into the input
296
- unput: /* @__PURE__ */ u(function(n) {
297
- var a = n.length, c = n.split(/(?:\r\n?|\n)/g);
298
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
299
- var r = this.match.split(/(?:\r\n?|\n)/g);
300
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
301
- var p = this.yylloc.range;
302
- return this.yylloc = {
303
- first_line: this.yylloc.first_line,
304
- last_line: this.yylineno + 1,
305
- first_column: this.yylloc.first_column,
306
- last_column: c ? (c.length === r.length ? this.yylloc.first_column : 0) + r[r.length - c.length].length - c[0].length : this.yylloc.first_column - a
307
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
308
- }, "unput"),
309
- // When called from action, caches matched text and appends it on next action
310
- more: /* @__PURE__ */ u(function() {
311
- return this._more = !0, this;
312
- }, "more"),
313
- // 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.
314
- reject: /* @__PURE__ */ u(function() {
315
- if (this.options.backtrack_lexer)
316
- this._backtrack = !0;
317
- else
318
- 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).
319
- ` + this.showPosition(), {
320
- text: "",
321
- token: null,
322
- line: this.yylineno
323
- });
324
- return this;
325
- }, "reject"),
326
- // retain first n characters of the match
327
- less: /* @__PURE__ */ u(function(n) {
328
- this.unput(this.match.slice(n));
329
- }, "less"),
330
- // displays already matched input, i.e. for error messages
331
- pastInput: /* @__PURE__ */ u(function() {
332
- var n = this.matched.substr(0, this.matched.length - this.match.length);
333
- return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
334
- }, "pastInput"),
335
- // displays upcoming input, i.e. for error messages
336
- upcomingInput: /* @__PURE__ */ u(function() {
337
- var n = this.match;
338
- return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
339
- }, "upcomingInput"),
340
- // displays the character position where the lexing error occurred, i.e. for error messages
341
- showPosition: /* @__PURE__ */ u(function() {
342
- var n = this.pastInput(), a = new Array(n.length + 1).join("-");
343
- return n + this.upcomingInput() + `
344
- ` + a + "^";
345
- }, "showPosition"),
346
- // test the lexed token: return FALSE when not a match, otherwise return token
347
- test_match: /* @__PURE__ */ u(function(n, a) {
348
- var c, r, p;
349
- if (this.options.backtrack_lexer && (p = {
350
- yylineno: this.yylineno,
351
- yylloc: {
352
- first_line: this.yylloc.first_line,
353
- last_line: this.last_line,
354
- first_column: this.yylloc.first_column,
355
- last_column: this.yylloc.last_column
356
- },
357
- yytext: this.yytext,
358
- match: this.match,
359
- matches: this.matches,
360
- matched: this.matched,
361
- yyleng: this.yyleng,
362
- offset: this.offset,
363
- _more: this._more,
364
- _input: this._input,
365
- yy: this.yy,
366
- conditionStack: this.conditionStack.slice(0),
367
- done: this.done
368
- }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
369
- first_line: this.yylloc.last_line,
370
- last_line: this.yylineno + 1,
371
- first_column: this.yylloc.last_column,
372
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
373
- }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
374
- return c;
375
- if (this._backtrack) {
376
- for (var t in p)
377
- this[t] = p[t];
378
- return !1;
379
- }
380
- return !1;
381
- }, "test_match"),
382
- // return next match in input
383
- next: /* @__PURE__ */ u(function() {
384
- if (this.done)
385
- return this.EOF;
386
- this._input || (this.done = !0);
387
- var n, a, c, r;
388
- this._more || (this.yytext = "", this.match = "");
389
- for (var p = this._currentRules(), t = 0; t < p.length; t++)
390
- if (c = this._input.match(this.rules[p[t]]), c && (!a || c[0].length > a[0].length)) {
391
- if (a = c, r = t, this.options.backtrack_lexer) {
392
- if (n = this.test_match(c, p[t]), n !== !1)
393
- return n;
394
- if (this._backtrack) {
395
- a = !1;
396
- continue;
397
- } else
398
- return !1;
399
- } else if (!this.options.flex)
400
- break;
401
- }
402
- return a ? (n = this.test_match(a, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
403
- ` + this.showPosition(), {
404
- text: "",
405
- token: null,
406
- line: this.yylineno
407
- });
408
- }, "next"),
409
- // return next match that has a token
410
- lex: /* @__PURE__ */ u(function() {
411
- var a = this.next();
412
- return a || this.lex();
413
- }, "lex"),
414
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
415
- begin: /* @__PURE__ */ u(function(a) {
416
- this.conditionStack.push(a);
417
- }, "begin"),
418
- // pop the previously active lexer condition state off the condition stack
419
- popState: /* @__PURE__ */ u(function() {
420
- var a = this.conditionStack.length - 1;
421
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
422
- }, "popState"),
423
- // produce the lexer rule set which is active for the currently active lexer condition state
424
- _currentRules: /* @__PURE__ */ u(function() {
425
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
426
- }, "_currentRules"),
427
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
428
- topState: /* @__PURE__ */ u(function(a) {
429
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
430
- }, "topState"),
431
- // alias for begin(condition)
432
- pushState: /* @__PURE__ */ u(function(a) {
433
- this.begin(a);
434
- }, "pushState"),
435
- // return the number of states currently on the stack
436
- stateStackSize: /* @__PURE__ */ u(function() {
437
- return this.conditionStack.length;
438
- }, "stateStackSize"),
439
- options: { "case-insensitive": !0 },
440
- performAction: /* @__PURE__ */ u(function(a, c, r, p) {
441
- switch (r) {
442
- case 0:
443
- return this.begin("acc_title"), 24;
444
- case 1:
445
- return this.popState(), "acc_title_value";
446
- case 2:
447
- return this.begin("acc_descr"), 26;
448
- case 3:
449
- return this.popState(), "acc_descr_value";
450
- case 4:
451
- this.begin("acc_descr_multiline");
452
- break;
453
- case 5:
454
- this.popState();
455
- break;
456
- case 6:
457
- return "acc_descr_multiline_value";
458
- case 7:
459
- return 33;
460
- case 8:
461
- return 34;
462
- case 9:
463
- return 35;
464
- case 10:
465
- return 36;
466
- case 11:
467
- return 10;
468
- case 12:
469
- break;
470
- case 13:
471
- return 8;
472
- case 14:
473
- return 50;
474
- case 15:
475
- return 70;
476
- case 16:
477
- return 4;
478
- case 17:
479
- return this.begin("block"), 17;
480
- case 18:
481
- return 49;
482
- case 19:
483
- return 49;
484
- case 20:
485
- return 42;
486
- case 21:
487
- return 15;
488
- case 22:
489
- return 13;
490
- case 23:
491
- break;
492
- case 24:
493
- return 59;
494
- case 25:
495
- return 56;
496
- case 26:
497
- return 56;
498
- case 27:
499
- return 60;
500
- case 28:
501
- break;
502
- case 29:
503
- return this.popState(), 19;
504
- case 30:
505
- return c.yytext[0];
506
- case 31:
507
- return 20;
508
- case 32:
509
- return 21;
510
- case 33:
511
- return this.begin("style"), 44;
512
- case 34:
513
- return this.popState(), 10;
514
- case 35:
515
- break;
516
- case 36:
517
- return 13;
518
- case 37:
519
- return 42;
520
- case 38:
521
- return 49;
522
- case 39:
523
- return this.begin("style"), 37;
524
- case 40:
525
- return 43;
526
- case 41:
527
- return 63;
528
- case 42:
529
- return 65;
530
- case 43:
531
- return 65;
532
- case 44:
533
- return 65;
534
- case 45:
535
- return 63;
536
- case 46:
537
- return 63;
538
- case 47:
539
- return 64;
540
- case 48:
541
- return 64;
542
- case 49:
543
- return 64;
544
- case 50:
545
- return 64;
546
- case 51:
547
- return 64;
548
- case 52:
549
- return 65;
550
- case 53:
551
- return 64;
552
- case 54:
553
- return 65;
554
- case 55:
555
- return 66;
556
- case 56:
557
- return 66;
558
- case 57:
559
- return 66;
560
- case 58:
561
- return 66;
562
- case 59:
563
- return 63;
564
- case 60:
565
- return 64;
566
- case 61:
567
- return 65;
568
- case 62:
569
- return 67;
570
- case 63:
571
- return 68;
572
- case 64:
573
- return 69;
574
- case 65:
575
- return 69;
576
- case 66:
577
- return 68;
578
- case 67:
579
- return 68;
580
- case 68:
581
- return 68;
582
- case 69:
583
- return 41;
584
- case 70:
585
- return 47;
586
- case 71:
587
- return 40;
588
- case 72:
589
- return 48;
590
- case 73:
591
- return c.yytext[0];
592
- case 74:
593
- return 6;
594
- }
595
- }, "anonymous"),
596
- rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:[0-9])/i, /^(?:.)/i, /^(?:$)/i],
597
- conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74], inclusive: !0 } }
598
- };
599
- return R;
600
- }();
601
- ct.lexer = Rt;
602
- function q() {
603
- this.yy = {};
604
- }
605
- return u(q, "Parser"), q.prototype = ct, ct.Parser = q, new q();
606
- }();
607
- dt.parser = dt;
608
- var Xt = dt, w, qt = (w = class {
609
- constructor() {
610
- this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
611
- ZERO_OR_ONE: "ZERO_OR_ONE",
612
- ZERO_OR_MORE: "ZERO_OR_MORE",
613
- ONE_OR_MORE: "ONE_OR_MORE",
614
- ONLY_ONE: "ONLY_ONE",
615
- MD_PARENT: "MD_PARENT"
616
- }, this.Identification = {
617
- NON_IDENTIFYING: "NON_IDENTIFYING",
618
- IDENTIFYING: "IDENTIFYING"
619
- }, this.setAccTitle = Vt, this.getAccTitle = Lt, this.setAccDescription = Mt, this.getAccDescription = Bt, this.setDiagramTitle = Ft, this.getDiagramTitle = Yt, this.getConfig = /* @__PURE__ */ u(() => tt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
620
- }
621
- /**
622
- * Add entity
623
- * @param name - The name of the entity
624
- * @param alias - The alias of the entity
625
- */
626
- addEntity(i, h = "") {
627
- var d;
628
- return this.entities.has(i) ? !((d = this.entities.get(i)) != null && d.alias) && h && (this.entities.get(i).alias = h, D.info(`Add alias '${h}' to entity '${i}'`)) : (this.entities.set(i, {
629
- id: `entity-${i}-${this.entities.size}`,
630
- label: i,
631
- attributes: [],
632
- alias: h,
633
- shape: "erBox",
634
- look: tt().look ?? "default",
635
- cssClasses: "default",
636
- cssStyles: []
637
- }), D.info("Added new entity :", i)), this.entities.get(i);
638
- }
639
- getEntity(i) {
640
- return this.entities.get(i);
641
- }
642
- getEntities() {
643
- return this.entities;
644
- }
645
- getClasses() {
646
- return this.classes;
647
- }
648
- addAttributes(i, h) {
649
- const d = this.addEntity(i);
650
- let o;
651
- for (o = h.length - 1; o >= 0; o--)
652
- h[o].keys || (h[o].keys = []), h[o].comment || (h[o].comment = ""), d.attributes.push(h[o]), D.debug("Added attribute ", h[o].name);
653
- }
654
- /**
655
- * Add a relationship
656
- *
657
- * @param entA - The first entity in the relationship
658
- * @param rolA - The role played by the first entity in relation to the second
659
- * @param entB - The second entity in the relationship
660
- * @param rSpec - The details of the relationship between the two entities
661
- */
662
- addRelationship(i, h, d, o) {
663
- const l = this.entities.get(i), f = this.entities.get(d);
664
- if (!l || !f)
665
- return;
666
- const _ = {
667
- entityA: l.id,
668
- roleA: h,
669
- entityB: f.id,
670
- relSpec: o
671
- };
672
- this.relationships.push(_), D.debug("Added new relationship :", _);
673
- }
674
- getRelationships() {
675
- return this.relationships;
676
- }
677
- getDirection() {
678
- return this.direction;
679
- }
680
- setDirection(i) {
681
- this.direction = i;
682
- }
683
- getCompiledStyles(i) {
684
- let h = [];
685
- for (const d of i) {
686
- const o = this.classes.get(d);
687
- o != null && o.styles && (h = [...h, ...o.styles ?? []].map((l) => l.trim())), o != null && o.textStyles && (h = [...h, ...o.textStyles ?? []].map((l) => l.trim()));
688
- }
689
- return h;
690
- }
691
- addCssStyles(i, h) {
692
- for (const d of i) {
693
- const o = this.entities.get(d);
694
- if (!h || !o)
695
- return;
696
- for (const l of h)
697
- o.cssStyles.push(l);
698
- }
699
- }
700
- addClass(i, h) {
701
- i.forEach((d) => {
702
- let o = this.classes.get(d);
703
- o === void 0 && (o = { id: d, styles: [], textStyles: [] }, this.classes.set(d, o)), h && h.forEach(function(l) {
704
- if (/color/.exec(l)) {
705
- const f = l.replace("fill", "bgFill");
706
- o.textStyles.push(f);
707
- }
708
- o.styles.push(l);
709
- });
710
- });
711
- }
712
- setClass(i, h) {
713
- for (const d of i) {
714
- const o = this.entities.get(d);
715
- if (o)
716
- for (const l of h)
717
- o.cssClasses += " " + l;
718
- }
719
- }
720
- clear() {
721
- this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Pt();
722
- }
723
- getData() {
724
- const i = [], h = [], d = tt();
725
- for (const l of this.entities.keys()) {
726
- const f = this.entities.get(l);
727
- f && (f.cssCompiledStyles = this.getCompiledStyles(f.cssClasses.split(" ")), i.push(f));
728
- }
729
- let o = 0;
730
- for (const l of this.relationships) {
731
- const f = {
732
- id: Gt(l.entityA, l.entityB, {
733
- prefix: "id",
734
- counter: o++
735
- }),
736
- type: "normal",
737
- curve: "basis",
738
- start: l.entityA,
739
- end: l.entityB,
740
- label: l.roleA,
741
- labelpos: "c",
742
- thickness: "normal",
743
- classes: "relationshipLine",
744
- arrowTypeStart: l.relSpec.cardB.toLowerCase(),
745
- arrowTypeEnd: l.relSpec.cardA.toLowerCase(),
746
- pattern: l.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
747
- look: d.look
748
- };
749
- h.push(f);
750
- }
751
- return { nodes: i, edges: h, other: {}, config: d, direction: "TB" };
752
- }
753
- }, u(w, "ErDB"), w), Nt = {};
754
- zt(Nt, {
755
- draw: () => Ht
756
- });
757
- var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
758
- D.info("REF0:"), D.info("Drawing er diagram (unified)", i);
759
- const { securityLevel: o, er: l, layout: f } = tt(), _ = d.db.getData(), E = Dt(i, o);
760
- _.type = d.type, _.layoutAlgorithm = Kt(f), _.config.flowchart.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 140, _.config.flowchart.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Zt(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
761
- const V = E.selectAll('[id*="-background"]');
762
- Array.from(V).length > 0 && V.each(function() {
763
- const S = Wt(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
764
- if (!T.empty()) {
765
- const L = T.attr("transform");
766
- S.attr("transform", L);
767
- }
768
- });
769
- const Z = 8;
770
- Ut.insertTitle(
771
- E,
772
- "erDiagramTitleText",
773
- (l == null ? void 0 : l.titleTopMargin) ?? 25,
774
- d.db.getDiagramTitle()
775
- ), wt(E, Z, "erDiagram", (l == null ? void 0 : l.useMaxWidth) ?? !0);
776
- }, "draw"), Jt = /* @__PURE__ */ u((s, i) => {
777
- const h = Qt, d = h(s, "r"), o = h(s, "g"), l = h(s, "b");
778
- return jt(d, o, l, i);
779
- }, "fade"), $t = /* @__PURE__ */ u((s) => `
780
- .entityBox {
781
- fill: ${s.mainBkg};
782
- stroke: ${s.nodeBorder};
783
- }
784
-
785
- .relationshipLabelBox {
786
- fill: ${s.tertiaryColor};
787
- opacity: 0.7;
788
- background-color: ${s.tertiaryColor};
789
- rect {
790
- opacity: 0.5;
791
- }
792
- }
793
-
794
- .labelBkg {
795
- background-color: ${Jt(s.tertiaryColor, 0.5)};
796
- }
797
-
798
- .edgeLabel .label {
799
- fill: ${s.nodeBorder};
800
- font-size: 14px;
801
- }
802
-
803
- .label {
804
- font-family: ${s.fontFamily};
805
- color: ${s.nodeTextColor || s.textColor};
806
- }
807
-
808
- .edge-pattern-dashed {
809
- stroke-dasharray: 8,8;
810
- }
811
-
812
- .node rect,
813
- .node circle,
814
- .node ellipse,
815
- .node polygon
816
- {
817
- fill: ${s.mainBkg};
818
- stroke: ${s.nodeBorder};
819
- stroke-width: 1px;
820
- }
821
-
822
- .relationshipLine {
823
- stroke: ${s.lineColor};
824
- stroke-width: 1;
825
- fill: none;
826
- }
827
-
828
- .marker {
829
- fill: none !important;
830
- stroke: ${s.lineColor} !important;
831
- stroke-width: 1;
832
- }
833
- `, "getStyles"), te = $t, ae = {
834
- parser: Xt,
835
- get db() {
836
- return new qt();
837
- },
838
- renderer: Nt,
839
- styles: te
840
- };
841
- export {
842
- ae as diagram
843
- };