@pi-outpost/embed 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
  5. package/dist/arc-BBnpgwVQ.js +80 -0
  6. package/dist/arc-DcUn9_NX.cjs +1 -0
  7. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
  11. package/dist/array-CApNbSU9.js +6 -0
  12. package/dist/array-DZSRzHA_.cjs +1 -0
  13. package/dist/bash-BLBHkRa_.js +169 -0
  14. package/dist/bash-DHJu-DNv.cjs +1 -0
  15. package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
  16. package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
  17. package/dist/c-4QgYfi8K.cjs +1 -0
  18. package/dist/c-Cw4FsAeJ.js +176 -0
  19. package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
  20. package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
  21. package/dist/channel-DV0ST12Z.js +5 -0
  22. package/dist/channel-DkMGzfUR.cjs +1 -0
  23. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  24. package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
  25. package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
  26. package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
  27. package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
  28. package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
  29. package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
  30. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  31. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
  32. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  33. package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
  34. package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
  35. package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
  36. package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
  37. package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
  38. package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
  39. package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
  40. package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
  41. package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
  42. package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
  43. package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
  44. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  45. package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
  46. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
  47. package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
  48. package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
  49. package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
  50. package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
  51. package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
  52. package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
  53. package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
  54. package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
  55. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
  56. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
  57. package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
  58. package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
  59. package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
  60. package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
  61. package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
  62. package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
  63. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
  64. package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
  65. package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
  66. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  67. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  68. package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
  69. package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
  70. package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
  71. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  72. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
  73. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
  74. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
  75. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
  76. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
  77. package/dist/core-2nR1zkKb.cjs +3 -0
  78. package/dist/core-BO2hTFeF.js +845 -0
  79. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
  80. package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
  81. package/dist/cpp-BUtp-HE2.cjs +1 -0
  82. package/dist/cpp-CeyO6lBG.js +225 -0
  83. package/dist/csharp-BJu4kEpt.cjs +1 -0
  84. package/dist/csharp-Ck6Fet_o.js +260 -0
  85. package/dist/css-ClSGJRju.js +140 -0
  86. package/dist/css-DeFr0lev.cjs +1 -0
  87. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
  88. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
  89. package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
  90. package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
  91. package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
  92. package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
  93. package/dist/dagre-BBlCxSvR.cjs +1 -0
  94. package/dist/dagre-BpqwxFKp.js +1701 -0
  95. package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
  96. package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
  97. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  98. package/dist/defaultLocale-up9-vqhM.js +201 -0
  99. package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
  100. package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
  101. package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
  102. package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
  103. package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
  104. package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
  105. package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
  106. package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
  107. package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
  108. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
  109. package/dist/dist-D6LMt8nW.js +59 -0
  110. package/dist/dist-DNGlMOWd.cjs +1 -0
  111. package/dist/dockerfile-O4rAswfG.js +34 -0
  112. package/dist/dockerfile-YBgAWga3.cjs +1 -0
  113. package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
  114. package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
  115. package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
  116. package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
  117. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
  118. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
  119. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
  120. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
  121. package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
  122. package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
  123. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
  124. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
  125. package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
  126. package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
  127. package/dist/go-D-pz-dmd.cjs +1 -0
  128. package/dist/go-rg7jg1mu.js +140 -0
  129. package/dist/graphlib-B0GbLif1.js +1267 -0
  130. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  131. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
  132. package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
  133. package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
  134. package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
  135. package/dist/ini-C1q3_1-Q.js +88 -0
  136. package/dist/ini-nVcUEghj.cjs +1 -0
  137. package/dist/init-07zIhv_j.cjs +1 -0
  138. package/dist/init-CirqLVcp.js +15 -0
  139. package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
  140. package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
  141. package/dist/java-CUN_usaq.cjs +1 -0
  142. package/dist/java-HguKEfA2.js +169 -0
  143. package/dist/javascript-C8NCH8DE.js +436 -0
  144. package/dist/javascript-UZXSyUuu.cjs +1 -0
  145. package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
  146. package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
  147. package/dist/json-Cp01TR_B.js +36 -0
  148. package/dist/json-usH_MUzR.cjs +1 -0
  149. package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
  150. package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
  151. package/dist/line-Ca8dE_lT.cjs +1 -0
  152. package/dist/line-O2xx2vVQ.js +34 -0
  153. package/dist/linear-CVhyaVzf.js +289 -0
  154. package/dist/linear-Cl2-QuPP.cjs +1 -0
  155. package/dist/map-CwPlMWPw.cjs +1 -0
  156. package/dist/map-DU12fF3s.js +241 -0
  157. package/dist/markdown-CzgRofaE.js +181 -0
  158. package/dist/markdown-qeo95R0i.cjs +1 -0
  159. package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
  160. package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
  161. package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
  162. package/dist/mermaid.core-DQrbAA--.cjs +10 -0
  163. package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
  164. package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
  165. package/dist/mount.d.ts +31 -0
  166. package/dist/ordinal-CCTD6_le.js +65 -0
  167. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  168. package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
  169. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
  170. package/dist/path-Kklx0M1v.cjs +1 -0
  171. package/dist/path-mKa7UESy.js +85 -0
  172. package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
  173. package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
  174. package/dist/php-C9FOMGEA.js +294 -0
  175. package/dist/php-j6EhDZDE.cjs +2 -0
  176. package/dist/pi-outpost-embed.cjs +305 -0
  177. package/dist/pi-outpost-embed.js +40942 -0
  178. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
  179. package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
  180. package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
  181. package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
  182. package/dist/plaintext-BYYAHR3Z.js +10 -0
  183. package/dist/plaintext-DmnjizxG.cjs +1 -0
  184. package/dist/python-BYJzTRkK.cjs +1 -0
  185. package/dist/python-DKAazMIE.js +238 -0
  186. package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
  187. package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
  188. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
  189. package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
  190. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
  191. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
  192. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
  193. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
  194. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
  195. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
  196. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
  197. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
  198. package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
  199. package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
  200. package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
  201. package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
  202. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  203. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  204. package/dist/rough.esm-C5XyeDCN.js +1352 -0
  205. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  206. package/dist/ruby-BAUeZQKZ.js +262 -0
  207. package/dist/ruby-ClR4zp-1.cjs +1 -0
  208. package/dist/rust-DiTjMjP5.js +169 -0
  209. package/dist/rust-ghVvEWhm.cjs +1 -0
  210. package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
  211. package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
  212. package/dist/scss-CKxh5HRg.cjs +1 -0
  213. package/dist/scss-CckAvQOx.js +150 -0
  214. package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
  215. package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
  216. package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
  217. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  218. package/dist/sql-B-Rnc2C3.js +118 -0
  219. package/dist/sql-B7syKcd8.cjs +1 -0
  220. package/dist/src-CR--T_NF.cjs +1 -0
  221. package/dist/src-DJ4x3y2O.js +2142 -0
  222. package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
  223. package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
  224. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
  225. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
  226. package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
  227. package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
  228. package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
  229. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
  230. package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
  231. package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
  232. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
  233. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
  234. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
  235. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
  236. package/dist/typescript-clWeqIBY.cjs +1 -0
  237. package/dist/typescript-mdYq8uqf.js +521 -0
  238. package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
  239. package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
  240. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
  241. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
  242. package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
  243. package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
  244. package/dist/xml-BamqaQOf.cjs +1 -0
  245. package/dist/xml-DVYfB8uY.js +166 -0
  246. package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
  247. package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
  248. package/dist/yaml-_1BORZTQ.js +144 -0
  249. package/dist/yaml-bAgWofBg.cjs +1 -0
  250. package/package.json +72 -0
@@ -0,0 +1,1727 @@
1
+ import { n as e, t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
+ import { m as n, p as r } from "./src-DJ4x3y2O.js";
3
+ import { H as i, K as a, U as o, a as s, it as c, v as l, w as u, x as d, y as f } from "./chunk-WYO6CB5R-Y9HJHB3Q.js";
4
+ import { t as p } from "./channel-DV0ST12Z.js";
5
+ import { c as m, g as h } from "./chunk-ICXQ74PX-CC59NQmW.js";
6
+ import "./chunk-HOUHSVGY-CtRCnz1G.js";
7
+ import "./chunk-Q4XR5HBZ-Bk18cMuk.js";
8
+ import "./chunk-7BUUIJ7U-BFUeQBoS.js";
9
+ import "./chunk-OGEWGWER-BGdqgMza.js";
10
+ import { t as g } from "./chunk-XXDRQBXY-DsVp5qjg.js";
11
+ import { t as _ } from "./chunk-VR4S4FIN-Ci491c8N.js";
12
+ import "./chunk-C7G6YPKG-GTlyrFFt.js";
13
+ import "./chunk-ZGVPDNZ5-CDTkXY1G.js";
14
+ import "./chunk-52WLFC77-C9zQbcGs.js";
15
+ import { r as v, t as y } from "./chunk-FWX5IMBZ-h3GfgkP2.js";
16
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q63AITRT.mjs
17
+ var b = (function() {
18
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
19
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
20
+ return n;
21
+ }, "o"), n = [
22
+ 6,
23
+ 8,
24
+ 10,
25
+ 22,
26
+ 24,
27
+ 26,
28
+ 28,
29
+ 33,
30
+ 34,
31
+ 35,
32
+ 36,
33
+ 37,
34
+ 40,
35
+ 43,
36
+ 44,
37
+ 48,
38
+ 50,
39
+ 51,
40
+ 52
41
+ ], r = [1, 10], i = [1, 11], a = [1, 12], o = [1, 13], s = [1, 23], c = [1, 24], l = [1, 25], u = [1, 26], d = [1, 27], f = [1, 19], p = [1, 28], m = [1, 29], h = [1, 20], g = [1, 18], _ = [1, 21], v = [1, 22], y = [1, 36], b = [1, 37], x = [1, 38], S = [1, 39], C = [1, 40], w = [
42
+ 6,
43
+ 8,
44
+ 10,
45
+ 13,
46
+ 15,
47
+ 17,
48
+ 20,
49
+ 21,
50
+ 22,
51
+ 24,
52
+ 26,
53
+ 28,
54
+ 33,
55
+ 34,
56
+ 35,
57
+ 36,
58
+ 37,
59
+ 40,
60
+ 43,
61
+ 44,
62
+ 48,
63
+ 50,
64
+ 51,
65
+ 52,
66
+ 66,
67
+ 67,
68
+ 68,
69
+ 69,
70
+ 70
71
+ ], T = [1, 45], E = [1, 46], D = [1, 55], O = [
72
+ 40,
73
+ 48,
74
+ 50,
75
+ 51,
76
+ 52,
77
+ 71,
78
+ 72
79
+ ], k = [1, 66], A = [1, 64], j = [1, 61], M = [1, 65], N = [1, 67], P = [
80
+ 6,
81
+ 8,
82
+ 10,
83
+ 13,
84
+ 17,
85
+ 22,
86
+ 24,
87
+ 26,
88
+ 28,
89
+ 33,
90
+ 34,
91
+ 35,
92
+ 36,
93
+ 37,
94
+ 40,
95
+ 41,
96
+ 42,
97
+ 43,
98
+ 44,
99
+ 48,
100
+ 49,
101
+ 50,
102
+ 51,
103
+ 52,
104
+ 66,
105
+ 67,
106
+ 68,
107
+ 69,
108
+ 70
109
+ ], F = [
110
+ 66,
111
+ 67,
112
+ 68,
113
+ 69,
114
+ 70
115
+ ], I = [1, 85], L = [1, 84], R = [1, 82], z = [1, 83], B = [
116
+ 6,
117
+ 10,
118
+ 42,
119
+ 47
120
+ ], V = [
121
+ 6,
122
+ 10,
123
+ 13,
124
+ 41,
125
+ 42,
126
+ 47,
127
+ 48,
128
+ 49
129
+ ], H = [1, 93], U = [1, 92], W = [1, 91], G = [19, 58], K = [1, 102], q = [1, 101], J = [
130
+ 19,
131
+ 58,
132
+ 61,
133
+ 63
134
+ ], Y = {
135
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
136
+ yy: {},
137
+ symbols_: {
138
+ error: 2,
139
+ start: 3,
140
+ ER_DIAGRAM: 4,
141
+ document: 5,
142
+ EOF: 6,
143
+ line: 7,
144
+ SPACE: 8,
145
+ statement: 9,
146
+ NEWLINE: 10,
147
+ entityName: 11,
148
+ relSpec: 12,
149
+ COLON: 13,
150
+ role: 14,
151
+ STYLE_SEPARATOR: 15,
152
+ idList: 16,
153
+ BLOCK_START: 17,
154
+ attributes: 18,
155
+ BLOCK_STOP: 19,
156
+ SQS: 20,
157
+ SQE: 21,
158
+ title: 22,
159
+ title_value: 23,
160
+ acc_title: 24,
161
+ acc_title_value: 25,
162
+ acc_descr: 26,
163
+ acc_descr_value: 27,
164
+ acc_descr_multiline_value: 28,
165
+ direction: 29,
166
+ classDefStatement: 30,
167
+ classStatement: 31,
168
+ styleStatement: 32,
169
+ direction_tb: 33,
170
+ direction_bt: 34,
171
+ direction_rl: 35,
172
+ direction_lr: 36,
173
+ CLASSDEF: 37,
174
+ stylesOpt: 38,
175
+ separator: 39,
176
+ UNICODE_TEXT: 40,
177
+ STYLE_TEXT: 41,
178
+ COMMA: 42,
179
+ CLASS: 43,
180
+ STYLE: 44,
181
+ style: 45,
182
+ styleComponent: 46,
183
+ SEMI: 47,
184
+ NUM: 48,
185
+ BRKT: 49,
186
+ ENTITY_NAME: 50,
187
+ DECIMAL_NUM: 51,
188
+ ENTITY_ONE: 52,
189
+ attribute: 53,
190
+ attributeType: 54,
191
+ attributeName: 55,
192
+ attributeKeyTypeList: 56,
193
+ attributeComment: 57,
194
+ ATTRIBUTE_WORD: 58,
195
+ "?": 59,
196
+ attributeKeyType: 60,
197
+ ",": 61,
198
+ ATTRIBUTE_KEY: 62,
199
+ COMMENT: 63,
200
+ cardinality: 64,
201
+ relType: 65,
202
+ ZERO_OR_ONE: 66,
203
+ ZERO_OR_MORE: 67,
204
+ ONE_OR_MORE: 68,
205
+ ONLY_ONE: 69,
206
+ MD_PARENT: 70,
207
+ NON_IDENTIFYING: 71,
208
+ IDENTIFYING: 72,
209
+ WORD: 73,
210
+ $accept: 0,
211
+ $end: 1
212
+ },
213
+ terminals_: {
214
+ 2: "error",
215
+ 4: "ER_DIAGRAM",
216
+ 6: "EOF",
217
+ 8: "SPACE",
218
+ 10: "NEWLINE",
219
+ 13: "COLON",
220
+ 15: "STYLE_SEPARATOR",
221
+ 17: "BLOCK_START",
222
+ 19: "BLOCK_STOP",
223
+ 20: "SQS",
224
+ 21: "SQE",
225
+ 22: "title",
226
+ 23: "title_value",
227
+ 24: "acc_title",
228
+ 25: "acc_title_value",
229
+ 26: "acc_descr",
230
+ 27: "acc_descr_value",
231
+ 28: "acc_descr_multiline_value",
232
+ 33: "direction_tb",
233
+ 34: "direction_bt",
234
+ 35: "direction_rl",
235
+ 36: "direction_lr",
236
+ 37: "CLASSDEF",
237
+ 40: "UNICODE_TEXT",
238
+ 41: "STYLE_TEXT",
239
+ 42: "COMMA",
240
+ 43: "CLASS",
241
+ 44: "STYLE",
242
+ 47: "SEMI",
243
+ 48: "NUM",
244
+ 49: "BRKT",
245
+ 50: "ENTITY_NAME",
246
+ 51: "DECIMAL_NUM",
247
+ 52: "ENTITY_ONE",
248
+ 58: "ATTRIBUTE_WORD",
249
+ 59: "?",
250
+ 61: ",",
251
+ 62: "ATTRIBUTE_KEY",
252
+ 63: "COMMENT",
253
+ 66: "ZERO_OR_ONE",
254
+ 67: "ZERO_OR_MORE",
255
+ 68: "ONE_OR_MORE",
256
+ 69: "ONLY_ONE",
257
+ 70: "MD_PARENT",
258
+ 71: "NON_IDENTIFYING",
259
+ 72: "IDENTIFYING",
260
+ 73: "WORD"
261
+ },
262
+ productions_: [
263
+ 0,
264
+ [3, 3],
265
+ [5, 0],
266
+ [5, 2],
267
+ [7, 2],
268
+ [7, 1],
269
+ [7, 1],
270
+ [7, 1],
271
+ [9, 5],
272
+ [9, 9],
273
+ [9, 7],
274
+ [9, 7],
275
+ [9, 4],
276
+ [9, 6],
277
+ [9, 3],
278
+ [9, 5],
279
+ [9, 1],
280
+ [9, 3],
281
+ [9, 7],
282
+ [9, 9],
283
+ [9, 6],
284
+ [9, 8],
285
+ [9, 4],
286
+ [9, 6],
287
+ [9, 2],
288
+ [9, 2],
289
+ [9, 2],
290
+ [9, 1],
291
+ [9, 1],
292
+ [9, 1],
293
+ [9, 1],
294
+ [9, 1],
295
+ [29, 1],
296
+ [29, 1],
297
+ [29, 1],
298
+ [29, 1],
299
+ [30, 4],
300
+ [16, 1],
301
+ [16, 1],
302
+ [16, 3],
303
+ [16, 3],
304
+ [31, 3],
305
+ [32, 4],
306
+ [38, 1],
307
+ [38, 3],
308
+ [45, 1],
309
+ [45, 2],
310
+ [39, 1],
311
+ [39, 1],
312
+ [39, 1],
313
+ [46, 1],
314
+ [46, 1],
315
+ [46, 1],
316
+ [46, 1],
317
+ [11, 1],
318
+ [11, 1],
319
+ [11, 1],
320
+ [11, 1],
321
+ [11, 1],
322
+ [18, 1],
323
+ [18, 2],
324
+ [53, 2],
325
+ [53, 3],
326
+ [53, 3],
327
+ [53, 4],
328
+ [54, 1],
329
+ [54, 2],
330
+ [55, 1],
331
+ [56, 1],
332
+ [56, 3],
333
+ [60, 1],
334
+ [57, 1],
335
+ [12, 3],
336
+ [64, 1],
337
+ [64, 1],
338
+ [64, 1],
339
+ [64, 1],
340
+ [64, 1],
341
+ [65, 1],
342
+ [65, 1],
343
+ [14, 1],
344
+ [14, 1],
345
+ [14, 1]
346
+ ],
347
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
348
+ var s = a.length - 1;
349
+ switch (i) {
350
+ case 1: break;
351
+ case 2:
352
+ this.$ = [];
353
+ break;
354
+ case 3:
355
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
356
+ break;
357
+ case 4:
358
+ case 5:
359
+ this.$ = a[s];
360
+ break;
361
+ case 6:
362
+ case 7:
363
+ this.$ = [];
364
+ break;
365
+ case 8:
366
+ r.addEntity(a[s - 4]), r.addEntity(a[s - 2]), r.addRelationship(a[s - 4], a[s], a[s - 2], a[s - 3]);
367
+ break;
368
+ case 9:
369
+ r.addEntity(a[s - 8]), r.addEntity(a[s - 4]), r.addRelationship(a[s - 8], a[s], a[s - 4], a[s - 5]), r.setClass([a[s - 8]], a[s - 6]), r.setClass([a[s - 4]], a[s - 2]);
370
+ break;
371
+ case 10:
372
+ r.addEntity(a[s - 6]), r.addEntity(a[s - 2]), r.addRelationship(a[s - 6], a[s], a[s - 2], a[s - 3]), r.setClass([a[s - 6]], a[s - 4]);
373
+ break;
374
+ case 11:
375
+ r.addEntity(a[s - 6]), r.addEntity(a[s - 4]), r.addRelationship(a[s - 6], a[s], a[s - 4], a[s - 5]), r.setClass([a[s - 4]], a[s - 2]);
376
+ break;
377
+ case 12:
378
+ r.addEntity(a[s - 3]), r.addAttributes(a[s - 3], a[s - 1]);
379
+ break;
380
+ case 13:
381
+ r.addEntity(a[s - 5]), r.addAttributes(a[s - 5], a[s - 1]), r.setClass([a[s - 5]], a[s - 3]);
382
+ break;
383
+ case 14:
384
+ r.addEntity(a[s - 2]);
385
+ break;
386
+ case 15:
387
+ r.addEntity(a[s - 4]), r.setClass([a[s - 4]], a[s - 2]);
388
+ break;
389
+ case 16:
390
+ r.addEntity(a[s]);
391
+ break;
392
+ case 17:
393
+ r.addEntity(a[s - 2]), r.setClass([a[s - 2]], a[s]);
394
+ break;
395
+ case 18:
396
+ r.addEntity(a[s - 6], a[s - 4]), r.addAttributes(a[s - 6], a[s - 1]);
397
+ break;
398
+ case 19:
399
+ r.addEntity(a[s - 8], a[s - 6]), r.addAttributes(a[s - 8], a[s - 1]), r.setClass([a[s - 8]], a[s - 3]);
400
+ break;
401
+ case 20:
402
+ r.addEntity(a[s - 5], a[s - 3]);
403
+ break;
404
+ case 21:
405
+ r.addEntity(a[s - 7], a[s - 5]), r.setClass([a[s - 7]], a[s - 2]);
406
+ break;
407
+ case 22:
408
+ r.addEntity(a[s - 3], a[s - 1]);
409
+ break;
410
+ case 23:
411
+ r.addEntity(a[s - 5], a[s - 3]), r.setClass([a[s - 5]], a[s]);
412
+ break;
413
+ case 24:
414
+ case 25:
415
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
416
+ break;
417
+ case 26:
418
+ case 27:
419
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
420
+ break;
421
+ case 32:
422
+ r.setDirection("TB");
423
+ break;
424
+ case 33:
425
+ r.setDirection("BT");
426
+ break;
427
+ case 34:
428
+ r.setDirection("RL");
429
+ break;
430
+ case 35:
431
+ r.setDirection("LR");
432
+ break;
433
+ case 36:
434
+ this.$ = a[s - 3], r.addClass(a[s - 2], a[s - 1]);
435
+ break;
436
+ case 37:
437
+ case 38:
438
+ case 59:
439
+ case 68:
440
+ this.$ = [a[s]];
441
+ break;
442
+ case 39:
443
+ case 40:
444
+ this.$ = a[s - 2].concat([a[s]]);
445
+ break;
446
+ case 41:
447
+ this.$ = a[s - 2], r.setClass(a[s - 1], a[s]);
448
+ break;
449
+ case 42:
450
+ this.$ = a[s - 3], r.addCssStyles(a[s - 2], a[s - 1]);
451
+ break;
452
+ case 43:
453
+ this.$ = [a[s]];
454
+ break;
455
+ case 44:
456
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
457
+ break;
458
+ case 46:
459
+ this.$ = a[s - 1] + a[s];
460
+ break;
461
+ case 54:
462
+ case 80:
463
+ case 81:
464
+ this.$ = a[s].replace(/"/g, "");
465
+ break;
466
+ case 55:
467
+ case 56:
468
+ case 57:
469
+ case 58:
470
+ case 82:
471
+ this.$ = a[s];
472
+ break;
473
+ case 60:
474
+ a[s].push(a[s - 1]), this.$ = a[s];
475
+ break;
476
+ case 61:
477
+ this.$ = {
478
+ type: a[s - 1],
479
+ name: a[s]
480
+ };
481
+ break;
482
+ case 62:
483
+ this.$ = {
484
+ type: a[s - 2],
485
+ name: a[s - 1],
486
+ keys: a[s]
487
+ };
488
+ break;
489
+ case 63:
490
+ this.$ = {
491
+ type: a[s - 2],
492
+ name: a[s - 1],
493
+ comment: a[s]
494
+ };
495
+ break;
496
+ case 64:
497
+ this.$ = {
498
+ type: a[s - 3],
499
+ name: a[s - 2],
500
+ keys: a[s - 1],
501
+ comment: a[s]
502
+ };
503
+ break;
504
+ case 65:
505
+ case 67:
506
+ case 70:
507
+ this.$ = a[s];
508
+ break;
509
+ case 66:
510
+ this.$ = a[s - 1] + a[s];
511
+ break;
512
+ case 69:
513
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
514
+ break;
515
+ case 71:
516
+ this.$ = a[s].replace(/"/g, "");
517
+ break;
518
+ case 72:
519
+ this.$ = {
520
+ cardA: a[s],
521
+ relType: a[s - 1],
522
+ cardB: a[s - 2]
523
+ };
524
+ break;
525
+ case 73:
526
+ this.$ = r.Cardinality.ZERO_OR_ONE;
527
+ break;
528
+ case 74:
529
+ this.$ = r.Cardinality.ZERO_OR_MORE;
530
+ break;
531
+ case 75:
532
+ this.$ = r.Cardinality.ONE_OR_MORE;
533
+ break;
534
+ case 76:
535
+ this.$ = r.Cardinality.ONLY_ONE;
536
+ break;
537
+ case 77:
538
+ this.$ = r.Cardinality.MD_PARENT;
539
+ break;
540
+ case 78:
541
+ this.$ = r.Identification.NON_IDENTIFYING;
542
+ break;
543
+ case 79:
544
+ this.$ = r.Identification.IDENTIFYING;
545
+ break;
546
+ }
547
+ }, "anonymous"),
548
+ table: [
549
+ {
550
+ 3: 1,
551
+ 4: [1, 2]
552
+ },
553
+ { 1: [3] },
554
+ t(n, [2, 2], { 5: 3 }),
555
+ {
556
+ 6: [1, 4],
557
+ 7: 5,
558
+ 8: [1, 6],
559
+ 9: 7,
560
+ 10: [1, 8],
561
+ 11: 9,
562
+ 22: r,
563
+ 24: i,
564
+ 26: a,
565
+ 28: o,
566
+ 29: 14,
567
+ 30: 15,
568
+ 31: 16,
569
+ 32: 17,
570
+ 33: s,
571
+ 34: c,
572
+ 35: l,
573
+ 36: u,
574
+ 37: d,
575
+ 40: f,
576
+ 43: p,
577
+ 44: m,
578
+ 48: h,
579
+ 50: g,
580
+ 51: _,
581
+ 52: v
582
+ },
583
+ t(n, [2, 7], { 1: [2, 1] }),
584
+ t(n, [2, 3]),
585
+ {
586
+ 9: 30,
587
+ 11: 9,
588
+ 22: r,
589
+ 24: i,
590
+ 26: a,
591
+ 28: o,
592
+ 29: 14,
593
+ 30: 15,
594
+ 31: 16,
595
+ 32: 17,
596
+ 33: s,
597
+ 34: c,
598
+ 35: l,
599
+ 36: u,
600
+ 37: d,
601
+ 40: f,
602
+ 43: p,
603
+ 44: m,
604
+ 48: h,
605
+ 50: g,
606
+ 51: _,
607
+ 52: v
608
+ },
609
+ t(n, [2, 5]),
610
+ t(n, [2, 6]),
611
+ t(n, [2, 16], {
612
+ 12: 31,
613
+ 64: 35,
614
+ 15: [1, 32],
615
+ 17: [1, 33],
616
+ 20: [1, 34],
617
+ 66: y,
618
+ 67: b,
619
+ 68: x,
620
+ 69: S,
621
+ 70: C
622
+ }),
623
+ { 23: [1, 41] },
624
+ { 25: [1, 42] },
625
+ { 27: [1, 43] },
626
+ t(n, [2, 27]),
627
+ t(n, [2, 28]),
628
+ t(n, [2, 29]),
629
+ t(n, [2, 30]),
630
+ t(n, [2, 31]),
631
+ t(w, [2, 54]),
632
+ t(w, [2, 55]),
633
+ t(w, [2, 56]),
634
+ t(w, [2, 57]),
635
+ t(w, [2, 58]),
636
+ t(n, [2, 32]),
637
+ t(n, [2, 33]),
638
+ t(n, [2, 34]),
639
+ t(n, [2, 35]),
640
+ {
641
+ 16: 44,
642
+ 40: T,
643
+ 41: E
644
+ },
645
+ {
646
+ 16: 47,
647
+ 40: T,
648
+ 41: E
649
+ },
650
+ {
651
+ 16: 48,
652
+ 40: T,
653
+ 41: E
654
+ },
655
+ t(n, [2, 4]),
656
+ {
657
+ 11: 49,
658
+ 40: f,
659
+ 48: h,
660
+ 50: g,
661
+ 51: _,
662
+ 52: v
663
+ },
664
+ {
665
+ 16: 50,
666
+ 40: T,
667
+ 41: E
668
+ },
669
+ {
670
+ 18: 51,
671
+ 19: [1, 52],
672
+ 53: 53,
673
+ 54: 54,
674
+ 58: D
675
+ },
676
+ {
677
+ 11: 56,
678
+ 40: f,
679
+ 48: h,
680
+ 50: g,
681
+ 51: _,
682
+ 52: v
683
+ },
684
+ {
685
+ 65: 57,
686
+ 71: [1, 58],
687
+ 72: [1, 59]
688
+ },
689
+ t(O, [2, 73]),
690
+ t(O, [2, 74]),
691
+ t(O, [2, 75]),
692
+ t(O, [2, 76]),
693
+ t(O, [2, 77]),
694
+ t(n, [2, 24]),
695
+ t(n, [2, 25]),
696
+ t(n, [2, 26]),
697
+ {
698
+ 13: k,
699
+ 38: 60,
700
+ 41: A,
701
+ 42: j,
702
+ 45: 62,
703
+ 46: 63,
704
+ 48: M,
705
+ 49: N
706
+ },
707
+ t(P, [2, 37]),
708
+ t(P, [2, 38]),
709
+ {
710
+ 16: 68,
711
+ 40: T,
712
+ 41: E,
713
+ 42: j
714
+ },
715
+ {
716
+ 13: k,
717
+ 38: 69,
718
+ 41: A,
719
+ 42: j,
720
+ 45: 62,
721
+ 46: 63,
722
+ 48: M,
723
+ 49: N
724
+ },
725
+ {
726
+ 13: [1, 70],
727
+ 15: [1, 71]
728
+ },
729
+ t(n, [2, 17], {
730
+ 64: 35,
731
+ 12: 72,
732
+ 17: [1, 73],
733
+ 42: j,
734
+ 66: y,
735
+ 67: b,
736
+ 68: x,
737
+ 69: S,
738
+ 70: C
739
+ }),
740
+ { 19: [1, 74] },
741
+ t(n, [2, 14]),
742
+ {
743
+ 18: 75,
744
+ 19: [2, 59],
745
+ 53: 53,
746
+ 54: 54,
747
+ 58: D
748
+ },
749
+ {
750
+ 55: 76,
751
+ 58: [1, 77]
752
+ },
753
+ {
754
+ 58: [2, 65],
755
+ 59: [1, 78]
756
+ },
757
+ { 21: [1, 79] },
758
+ {
759
+ 64: 80,
760
+ 66: y,
761
+ 67: b,
762
+ 68: x,
763
+ 69: S,
764
+ 70: C
765
+ },
766
+ t(F, [2, 78]),
767
+ t(F, [2, 79]),
768
+ {
769
+ 6: I,
770
+ 10: L,
771
+ 39: 81,
772
+ 42: R,
773
+ 47: z
774
+ },
775
+ {
776
+ 40: [1, 86],
777
+ 41: [1, 87]
778
+ },
779
+ t(B, [2, 43], {
780
+ 46: 88,
781
+ 13: k,
782
+ 41: A,
783
+ 48: M,
784
+ 49: N
785
+ }),
786
+ t(V, [2, 45]),
787
+ t(V, [2, 50]),
788
+ t(V, [2, 51]),
789
+ t(V, [2, 52]),
790
+ t(V, [2, 53]),
791
+ t(n, [2, 41], { 42: j }),
792
+ {
793
+ 6: I,
794
+ 10: L,
795
+ 39: 89,
796
+ 42: R,
797
+ 47: z
798
+ },
799
+ {
800
+ 14: 90,
801
+ 40: H,
802
+ 50: U,
803
+ 73: W
804
+ },
805
+ {
806
+ 16: 94,
807
+ 40: T,
808
+ 41: E
809
+ },
810
+ {
811
+ 11: 95,
812
+ 40: f,
813
+ 48: h,
814
+ 50: g,
815
+ 51: _,
816
+ 52: v
817
+ },
818
+ {
819
+ 18: 96,
820
+ 19: [1, 97],
821
+ 53: 53,
822
+ 54: 54,
823
+ 58: D
824
+ },
825
+ t(n, [2, 12]),
826
+ { 19: [2, 60] },
827
+ t(G, [2, 61], {
828
+ 56: 98,
829
+ 57: 99,
830
+ 60: 100,
831
+ 62: K,
832
+ 63: q
833
+ }),
834
+ t([
835
+ 19,
836
+ 58,
837
+ 62,
838
+ 63
839
+ ], [2, 67]),
840
+ { 58: [2, 66] },
841
+ t(n, [2, 22], {
842
+ 15: [1, 104],
843
+ 17: [1, 103]
844
+ }),
845
+ t([
846
+ 40,
847
+ 48,
848
+ 50,
849
+ 51,
850
+ 52
851
+ ], [2, 72]),
852
+ t(n, [2, 36]),
853
+ {
854
+ 13: k,
855
+ 41: A,
856
+ 45: 105,
857
+ 46: 63,
858
+ 48: M,
859
+ 49: N
860
+ },
861
+ t(n, [2, 47]),
862
+ t(n, [2, 48]),
863
+ t(n, [2, 49]),
864
+ t(P, [2, 39]),
865
+ t(P, [2, 40]),
866
+ t(V, [2, 46]),
867
+ t(n, [2, 42]),
868
+ t(n, [2, 8]),
869
+ t(n, [2, 80]),
870
+ t(n, [2, 81]),
871
+ t(n, [2, 82]),
872
+ {
873
+ 13: [1, 106],
874
+ 42: j
875
+ },
876
+ {
877
+ 13: [1, 108],
878
+ 15: [1, 107]
879
+ },
880
+ { 19: [1, 109] },
881
+ t(n, [2, 15]),
882
+ t(G, [2, 62], {
883
+ 57: 110,
884
+ 61: [1, 111],
885
+ 63: q
886
+ }),
887
+ t(G, [2, 63]),
888
+ t(J, [2, 68]),
889
+ t(G, [2, 71]),
890
+ t(J, [2, 70]),
891
+ {
892
+ 18: 112,
893
+ 19: [1, 113],
894
+ 53: 53,
895
+ 54: 54,
896
+ 58: D
897
+ },
898
+ {
899
+ 16: 114,
900
+ 40: T,
901
+ 41: E
902
+ },
903
+ t(B, [2, 44], {
904
+ 46: 88,
905
+ 13: k,
906
+ 41: A,
907
+ 48: M,
908
+ 49: N
909
+ }),
910
+ {
911
+ 14: 115,
912
+ 40: H,
913
+ 50: U,
914
+ 73: W
915
+ },
916
+ {
917
+ 16: 116,
918
+ 40: T,
919
+ 41: E
920
+ },
921
+ {
922
+ 14: 117,
923
+ 40: H,
924
+ 50: U,
925
+ 73: W
926
+ },
927
+ t(n, [2, 13]),
928
+ t(G, [2, 64]),
929
+ {
930
+ 60: 118,
931
+ 62: K
932
+ },
933
+ { 19: [1, 119] },
934
+ t(n, [2, 20]),
935
+ t(n, [2, 23], {
936
+ 17: [1, 120],
937
+ 42: j
938
+ }),
939
+ t(n, [2, 11]),
940
+ {
941
+ 13: [1, 121],
942
+ 42: j
943
+ },
944
+ t(n, [2, 10]),
945
+ t(J, [2, 69]),
946
+ t(n, [2, 18]),
947
+ {
948
+ 18: 122,
949
+ 19: [1, 123],
950
+ 53: 53,
951
+ 54: 54,
952
+ 58: D
953
+ },
954
+ {
955
+ 14: 124,
956
+ 40: H,
957
+ 50: U,
958
+ 73: W
959
+ },
960
+ { 19: [1, 125] },
961
+ t(n, [2, 21]),
962
+ t(n, [2, 9]),
963
+ t(n, [2, 19])
964
+ ],
965
+ defaultActions: {
966
+ 75: [2, 60],
967
+ 78: [2, 66]
968
+ },
969
+ parseError: /* @__PURE__ */ e(function(e, t) {
970
+ if (t.recoverable) this.trace(e);
971
+ else {
972
+ var n = Error(e);
973
+ throw n.hash = t, n;
974
+ }
975
+ }, "parseError"),
976
+ parse: /* @__PURE__ */ e(function(t) {
977
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
978
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
979
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
980
+ var v = h.yylloc;
981
+ o.push(v);
982
+ var y = h.options && h.options.ranges;
983
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
984
+ function b(e) {
985
+ r.length -= 2 * e, a.length -= e, o.length -= e;
986
+ }
987
+ e(b, "popStack");
988
+ function x() {
989
+ var e = i.pop() || h.lex() || p;
990
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
991
+ }
992
+ e(x, "lex");
993
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
994
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
995
+ var M = "";
996
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
997
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
998
+ text: h.match,
999
+ token: this.terminals_[S] || S,
1000
+ line: h.yylineno,
1001
+ loc: v,
1002
+ expected: j
1003
+ });
1004
+ }
1005
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1006
+ switch (T[0]) {
1007
+ case 1:
1008
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1009
+ break;
1010
+ case 2:
1011
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1012
+ first_line: o[o.length - (k || 1)].first_line,
1013
+ last_line: o[o.length - 1].last_line,
1014
+ first_column: o[o.length - (k || 1)].first_column,
1015
+ last_column: o[o.length - 1].last_column
1016
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1017
+ c,
1018
+ u,
1019
+ l,
1020
+ g.yy,
1021
+ T[1],
1022
+ a,
1023
+ o
1024
+ ].concat(m)), E !== void 0) return E;
1025
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1026
+ break;
1027
+ case 3: return !0;
1028
+ }
1029
+ }
1030
+ return !0;
1031
+ }, "parse")
1032
+ };
1033
+ Y.lexer = /* @__PURE__ */ (function() {
1034
+ return {
1035
+ EOF: 1,
1036
+ parseError: /* @__PURE__ */ e(function(e, t) {
1037
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1038
+ else throw Error(e);
1039
+ }, "parseError"),
1040
+ setInput: /* @__PURE__ */ e(function(e, t) {
1041
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1042
+ first_line: 1,
1043
+ first_column: 0,
1044
+ last_line: 1,
1045
+ last_column: 0
1046
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1047
+ }, "setInput"),
1048
+ input: /* @__PURE__ */ e(function() {
1049
+ var e = this._input[0];
1050
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1051
+ }, "input"),
1052
+ unput: /* @__PURE__ */ e(function(e) {
1053
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1054
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1055
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1056
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1057
+ var i = this.yylloc.range;
1058
+ return this.yylloc = {
1059
+ first_line: this.yylloc.first_line,
1060
+ last_line: this.yylineno + 1,
1061
+ first_column: this.yylloc.first_column,
1062
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1063
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1064
+ }, "unput"),
1065
+ more: /* @__PURE__ */ e(function() {
1066
+ return this._more = !0, this;
1067
+ }, "more"),
1068
+ reject: /* @__PURE__ */ e(function() {
1069
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1070
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1071
+ text: "",
1072
+ token: null,
1073
+ line: this.yylineno
1074
+ });
1075
+ return this;
1076
+ }, "reject"),
1077
+ less: /* @__PURE__ */ e(function(e) {
1078
+ this.unput(this.match.slice(e));
1079
+ }, "less"),
1080
+ pastInput: /* @__PURE__ */ e(function() {
1081
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1082
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1083
+ }, "pastInput"),
1084
+ upcomingInput: /* @__PURE__ */ e(function() {
1085
+ var e = this.match;
1086
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1087
+ }, "upcomingInput"),
1088
+ showPosition: /* @__PURE__ */ e(function() {
1089
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1090
+ return e + this.upcomingInput() + "\n" + t + "^";
1091
+ }, "showPosition"),
1092
+ test_match: /* @__PURE__ */ e(function(e, t) {
1093
+ var n, r, i;
1094
+ if (this.options.backtrack_lexer && (i = {
1095
+ yylineno: this.yylineno,
1096
+ yylloc: {
1097
+ first_line: this.yylloc.first_line,
1098
+ last_line: this.last_line,
1099
+ first_column: this.yylloc.first_column,
1100
+ last_column: this.yylloc.last_column
1101
+ },
1102
+ yytext: this.yytext,
1103
+ match: this.match,
1104
+ matches: this.matches,
1105
+ matched: this.matched,
1106
+ yyleng: this.yyleng,
1107
+ offset: this.offset,
1108
+ _more: this._more,
1109
+ _input: this._input,
1110
+ yy: this.yy,
1111
+ conditionStack: this.conditionStack.slice(0),
1112
+ done: this.done
1113
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1114
+ first_line: this.yylloc.last_line,
1115
+ last_line: this.yylineno + 1,
1116
+ first_column: this.yylloc.last_column,
1117
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1118
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1119
+ if (this._backtrack) {
1120
+ for (var a in i) this[a] = i[a];
1121
+ return !1;
1122
+ }
1123
+ return !1;
1124
+ }, "test_match"),
1125
+ next: /* @__PURE__ */ e(function() {
1126
+ if (this.done) return this.EOF;
1127
+ this._input || (this.done = !0);
1128
+ var e, t, n, r;
1129
+ this._more || (this.yytext = "", this.match = "");
1130
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1131
+ if (t = n, r = a, this.options.backtrack_lexer) {
1132
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1133
+ if (this._backtrack) {
1134
+ t = !1;
1135
+ continue;
1136
+ } else return !1;
1137
+ } else if (!this.options.flex) break;
1138
+ }
1139
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1140
+ text: "",
1141
+ token: null,
1142
+ line: this.yylineno
1143
+ });
1144
+ }, "next"),
1145
+ lex: /* @__PURE__ */ e(function() {
1146
+ return this.next() || this.lex();
1147
+ }, "lex"),
1148
+ begin: /* @__PURE__ */ e(function(e) {
1149
+ this.conditionStack.push(e);
1150
+ }, "begin"),
1151
+ popState: /* @__PURE__ */ e(function() {
1152
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1153
+ }, "popState"),
1154
+ _currentRules: /* @__PURE__ */ e(function() {
1155
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1156
+ }, "_currentRules"),
1157
+ topState: /* @__PURE__ */ e(function(e) {
1158
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1159
+ }, "topState"),
1160
+ pushState: /* @__PURE__ */ e(function(e) {
1161
+ this.begin(e);
1162
+ }, "pushState"),
1163
+ stateStackSize: /* @__PURE__ */ e(function() {
1164
+ return this.conditionStack.length;
1165
+ }, "stateStackSize"),
1166
+ options: { "case-insensitive": !0 },
1167
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
1168
+ switch (n) {
1169
+ case 0: return this.begin("acc_title"), 24;
1170
+ case 1: return this.popState(), "acc_title_value";
1171
+ case 2: return this.begin("acc_descr"), 26;
1172
+ case 3: return this.popState(), "acc_descr_value";
1173
+ case 4:
1174
+ this.begin("acc_descr_multiline");
1175
+ break;
1176
+ case 5:
1177
+ this.popState();
1178
+ break;
1179
+ case 6: return "acc_descr_multiline_value";
1180
+ case 7: return 33;
1181
+ case 8: return 34;
1182
+ case 9: return 35;
1183
+ case 10: return 36;
1184
+ case 11: return 10;
1185
+ case 12: break;
1186
+ case 13: return 8;
1187
+ case 14: return 50;
1188
+ case 15: return 73;
1189
+ case 16: return 4;
1190
+ case 17: return this.begin("block"), 17;
1191
+ case 18: return 49;
1192
+ case 19: return 49;
1193
+ case 20: return 42;
1194
+ case 21: return 15;
1195
+ case 22: return 13;
1196
+ case 23: break;
1197
+ case 24: return 62;
1198
+ case 25: return 58;
1199
+ case 26: return 58;
1200
+ case 27:
1201
+ this.begin("block_bq");
1202
+ break;
1203
+ case 28: return 58;
1204
+ case 29:
1205
+ this.popState();
1206
+ break;
1207
+ case 30: return 63;
1208
+ case 31: break;
1209
+ case 32: return this.popState(), 19;
1210
+ case 33: return t.yytext[0];
1211
+ case 34: return 20;
1212
+ case 35: return 21;
1213
+ case 36: return this.begin("style"), 44;
1214
+ case 37: return this.popState(), 10;
1215
+ case 38: break;
1216
+ case 39: return 13;
1217
+ case 40: return 42;
1218
+ case 41: return 49;
1219
+ case 42: return this.begin("style"), 37;
1220
+ case 43: return 43;
1221
+ case 44: return 66;
1222
+ case 45: return 68;
1223
+ case 46: return 68;
1224
+ case 47: return 68;
1225
+ case 48: return 66;
1226
+ case 49: return 66;
1227
+ case 50: return 67;
1228
+ case 51: return 67;
1229
+ case 52: return 67;
1230
+ case 53: return 67;
1231
+ case 54: return 67;
1232
+ case 55: return 68;
1233
+ case 56: return 67;
1234
+ case 57: return 68;
1235
+ case 58: return 69;
1236
+ case 59: return 69;
1237
+ case 60: return 51;
1238
+ case 61: return 69;
1239
+ case 62: return 69;
1240
+ case 63: return 69;
1241
+ case 64: return 52;
1242
+ case 65: return 48;
1243
+ case 66: return 69;
1244
+ case 67: return 66;
1245
+ case 68: return 67;
1246
+ case 69: return 68;
1247
+ case 70: return 70;
1248
+ case 71: return 71;
1249
+ case 72: return 72;
1250
+ case 73: return 72;
1251
+ case 74: return 71;
1252
+ case 75: return 71;
1253
+ case 76: return 71;
1254
+ case 77: return 41;
1255
+ case 78: return 47;
1256
+ case 79: return 40;
1257
+ case 80: return t.yytext[0];
1258
+ case 81: return 6;
1259
+ }
1260
+ }, "anonymous"),
1261
+ rules: [
1262
+ /^(?:accTitle\s*:\s*)/i,
1263
+ /^(?:(?!\n||)*[^\n]*)/i,
1264
+ /^(?:accDescr\s*:\s*)/i,
1265
+ /^(?:(?!\n||)*[^\n]*)/i,
1266
+ /^(?:accDescr\s*\{\s*)/i,
1267
+ /^(?:[\}])/i,
1268
+ /^(?:[^\}]*)/i,
1269
+ /^(?:.*direction\s+TB[^\n]*)/i,
1270
+ /^(?:.*direction\s+BT[^\n]*)/i,
1271
+ /^(?:.*direction\s+RL[^\n]*)/i,
1272
+ /^(?:.*direction\s+LR[^\n]*)/i,
1273
+ /^(?:[\n]+)/i,
1274
+ /^(?:\s+)/i,
1275
+ /^(?:[\s]+)/i,
1276
+ /^(?:"[^"%\r\n\v\b\\]+")/i,
1277
+ /^(?:"[^"]*")/i,
1278
+ /^(?:erDiagram\b)/i,
1279
+ /^(?:\{)/i,
1280
+ /^(?:#)/i,
1281
+ /^(?:#)/i,
1282
+ /^(?:,)/i,
1283
+ /^(?::::)/i,
1284
+ /^(?::)/i,
1285
+ /^(?:\s+)/i,
1286
+ /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,
1287
+ /^(?:([^\s]*)[~].*[~]([^\s]*))/i,
1288
+ /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,
1289
+ /^(?:[`])/i,
1290
+ /^(?:[^`]+)/i,
1291
+ /^(?:[`])/i,
1292
+ /^(?:"[^"]*")/i,
1293
+ /^(?:[\n]+)/i,
1294
+ /^(?:\})/i,
1295
+ /^(?:.)/i,
1296
+ /^(?:\[)/i,
1297
+ /^(?:\])/i,
1298
+ /^(?:style\b)/i,
1299
+ /^(?:[\n]+)/i,
1300
+ /^(?:\s+)/i,
1301
+ /^(?::)/i,
1302
+ /^(?:,)/i,
1303
+ /^(?:#)/i,
1304
+ /^(?:classDef\b)/i,
1305
+ /^(?:class\b)/i,
1306
+ /^(?:one or zero\b)/i,
1307
+ /^(?:one or more\b)/i,
1308
+ /^(?:one or many\b)/i,
1309
+ /^(?:1\+)/i,
1310
+ /^(?:\|o\b)/i,
1311
+ /^(?:zero or one\b)/i,
1312
+ /^(?:zero or more\b)/i,
1313
+ /^(?:zero or many\b)/i,
1314
+ /^(?:0\+)/i,
1315
+ /^(?:\}o\b)/i,
1316
+ /^(?:many\(0\))/i,
1317
+ /^(?:many\(1\))/i,
1318
+ /^(?:many\b)/i,
1319
+ /^(?:\}\|)/i,
1320
+ /^(?:one\b)/i,
1321
+ /^(?:only one\b)/i,
1322
+ /^(?:[0-9]+\.[0-9]+)/i,
1323
+ /^(?:1(?=\s+[A-Za-z_"']))/i,
1324
+ /^(?:1(?=\s+[0-9]))/i,
1325
+ /^(?:1(?=(--|\.\.|\.-|-\.)))/i,
1326
+ /^(?:1\b)/i,
1327
+ /^(?:[0-9]+)/i,
1328
+ /^(?:\|\|)/i,
1329
+ /^(?:o\|)/i,
1330
+ /^(?:o\{)/i,
1331
+ /^(?:\|\{)/i,
1332
+ /^(?:u(?=[\.\-\|]))/i,
1333
+ /^(?:\.\.)/i,
1334
+ /^(?:--)/i,
1335
+ /^(?:to\b)/i,
1336
+ /^(?:optionally to\b)/i,
1337
+ /^(?:\.-)/i,
1338
+ /^(?:-\.)/i,
1339
+ /^(?:([^\x00-\x7F]|\w|-|\*)+)/i,
1340
+ /^(?:;)/i,
1341
+ /^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,
1342
+ /^(?:.)/i,
1343
+ /^(?:$)/i
1344
+ ],
1345
+ conditions: {
1346
+ style: {
1347
+ rules: [
1348
+ 37,
1349
+ 38,
1350
+ 39,
1351
+ 40,
1352
+ 41,
1353
+ 77,
1354
+ 78
1355
+ ],
1356
+ inclusive: !1
1357
+ },
1358
+ acc_descr_multiline: {
1359
+ rules: [5, 6],
1360
+ inclusive: !1
1361
+ },
1362
+ acc_descr: {
1363
+ rules: [3],
1364
+ inclusive: !1
1365
+ },
1366
+ acc_title: {
1367
+ rules: [1],
1368
+ inclusive: !1
1369
+ },
1370
+ block_bq: {
1371
+ rules: [28, 29],
1372
+ inclusive: !1
1373
+ },
1374
+ block: {
1375
+ rules: [
1376
+ 23,
1377
+ 24,
1378
+ 25,
1379
+ 26,
1380
+ 27,
1381
+ 30,
1382
+ 31,
1383
+ 32,
1384
+ 33
1385
+ ],
1386
+ inclusive: !1
1387
+ },
1388
+ INITIAL: {
1389
+ rules: [
1390
+ 0,
1391
+ 2,
1392
+ 4,
1393
+ 7,
1394
+ 8,
1395
+ 9,
1396
+ 10,
1397
+ 11,
1398
+ 12,
1399
+ 13,
1400
+ 14,
1401
+ 15,
1402
+ 16,
1403
+ 17,
1404
+ 18,
1405
+ 19,
1406
+ 20,
1407
+ 21,
1408
+ 22,
1409
+ 34,
1410
+ 35,
1411
+ 36,
1412
+ 42,
1413
+ 43,
1414
+ 44,
1415
+ 45,
1416
+ 46,
1417
+ 47,
1418
+ 48,
1419
+ 49,
1420
+ 50,
1421
+ 51,
1422
+ 52,
1423
+ 53,
1424
+ 54,
1425
+ 55,
1426
+ 56,
1427
+ 57,
1428
+ 58,
1429
+ 59,
1430
+ 60,
1431
+ 61,
1432
+ 62,
1433
+ 63,
1434
+ 64,
1435
+ 65,
1436
+ 66,
1437
+ 67,
1438
+ 68,
1439
+ 69,
1440
+ 70,
1441
+ 71,
1442
+ 72,
1443
+ 73,
1444
+ 74,
1445
+ 75,
1446
+ 76,
1447
+ 79,
1448
+ 80,
1449
+ 81
1450
+ ],
1451
+ inclusive: !0
1452
+ }
1453
+ }
1454
+ };
1455
+ })();
1456
+ function X() {
1457
+ this.yy = {};
1458
+ }
1459
+ return e(X, "Parser"), X.prototype = Y, Y.Parser = X, new X();
1460
+ })();
1461
+ b.parser = b;
1462
+ var x = b, S = class {
1463
+ constructor() {
1464
+ this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
1465
+ ZERO_OR_ONE: "ZERO_OR_ONE",
1466
+ ZERO_OR_MORE: "ZERO_OR_MORE",
1467
+ ONE_OR_MORE: "ONE_OR_MORE",
1468
+ ONLY_ONE: "ONLY_ONE",
1469
+ MD_PARENT: "MD_PARENT"
1470
+ }, this.Identification = {
1471
+ NON_IDENTIFYING: "NON_IDENTIFYING",
1472
+ IDENTIFYING: "IDENTIFYING"
1473
+ }, this.setAccTitle = o, this.getAccTitle = f, this.setAccDescription = i, this.getAccDescription = l, this.setDiagramTitle = a, this.getDiagramTitle = u, this.getConfig = /* @__PURE__ */ e(() => d().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);
1474
+ }
1475
+ static {
1476
+ e(this, "ErDB");
1477
+ }
1478
+ addEntity(e, t = "") {
1479
+ return this.entities.has(e) ? !this.entities.get(e)?.alias && t && (this.entities.get(e).alias = t, n.info(`Add alias '${t}' to entity '${e}'`)) : (this.entities.set(e, {
1480
+ id: `entity-${e}-${this.entities.size}`,
1481
+ label: e,
1482
+ attributes: [],
1483
+ alias: t,
1484
+ shape: "erBox",
1485
+ look: d().look ?? "default",
1486
+ cssClasses: "default",
1487
+ cssStyles: [],
1488
+ labelType: "markdown"
1489
+ }), n.info("Added new entity :", e)), this.entities.get(e);
1490
+ }
1491
+ getEntity(e) {
1492
+ return this.entities.get(e);
1493
+ }
1494
+ getEntities() {
1495
+ return this.entities;
1496
+ }
1497
+ getClasses() {
1498
+ return this.classes;
1499
+ }
1500
+ addAttributes(e, t) {
1501
+ let r = this.addEntity(e), i;
1502
+ for (i = t.length - 1; i >= 0; i--) t[i].keys || (t[i].keys = []), t[i].comment || (t[i].comment = ""), r.attributes.push(t[i]), n.debug("Added attribute ", t[i].name);
1503
+ }
1504
+ addRelationship(e, t, r, i) {
1505
+ let a = this.entities.get(e), o = this.entities.get(r);
1506
+ if (!a || !o) return;
1507
+ let s = {
1508
+ entityA: a.id,
1509
+ roleA: t,
1510
+ entityB: o.id,
1511
+ relSpec: i
1512
+ };
1513
+ this.relationships.push(s), n.debug("Added new relationship :", s);
1514
+ }
1515
+ getRelationships() {
1516
+ return this.relationships;
1517
+ }
1518
+ getDirection() {
1519
+ return this.direction;
1520
+ }
1521
+ setDirection(e) {
1522
+ this.direction = e;
1523
+ }
1524
+ getCompiledStyles(e) {
1525
+ let t = [];
1526
+ for (let n of e) {
1527
+ let e = this.classes.get(n);
1528
+ e?.styles && (t = [...t, ...e.styles ?? []].map((e) => e.trim())), e?.textStyles && (t = [...t, ...e.textStyles ?? []].map((e) => e.trim()));
1529
+ }
1530
+ return t;
1531
+ }
1532
+ addCssStyles(e, t) {
1533
+ for (let n of e) {
1534
+ let e = this.entities.get(n);
1535
+ if (!t || !e) return;
1536
+ for (let n of t) e.cssStyles.push(n);
1537
+ }
1538
+ }
1539
+ addClass(e, t) {
1540
+ e.forEach((e) => {
1541
+ let n = this.classes.get(e);
1542
+ n === void 0 && (n = {
1543
+ id: e,
1544
+ styles: [],
1545
+ textStyles: []
1546
+ }, this.classes.set(e, n)), t && t.forEach(function(e) {
1547
+ if (/color/.exec(e)) {
1548
+ let t = e.replace("fill", "bgFill");
1549
+ n.textStyles.push(t);
1550
+ }
1551
+ n.styles.push(e);
1552
+ });
1553
+ });
1554
+ }
1555
+ setClass(e, t) {
1556
+ for (let n of e) {
1557
+ let e = this.entities.get(n);
1558
+ if (e) for (let n of t) e.cssClasses += " " + n;
1559
+ }
1560
+ }
1561
+ clear() {
1562
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], s();
1563
+ }
1564
+ getData() {
1565
+ let e = [], t = [], n = d(), r = 0;
1566
+ for (let t of this.entities.keys()) {
1567
+ let n = this.entities.get(t);
1568
+ n && (n.cssCompiledStyles = this.getCompiledStyles(n.cssClasses.split(" ")), n.colorIndex = r++, e.push(n));
1569
+ }
1570
+ let i = 0;
1571
+ for (let e of this.relationships) {
1572
+ let r = {
1573
+ id: m(e.entityA, e.entityB, {
1574
+ prefix: "id",
1575
+ counter: i++
1576
+ }),
1577
+ type: "normal",
1578
+ curve: "basis",
1579
+ start: e.entityA,
1580
+ end: e.entityB,
1581
+ label: e.roleA,
1582
+ labelpos: "c",
1583
+ thickness: "normal",
1584
+ classes: "relationshipLine",
1585
+ arrowTypeStart: e.relSpec.cardB.toLowerCase(),
1586
+ arrowTypeEnd: e.relSpec.cardA.toLowerCase(),
1587
+ pattern: e.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
1588
+ look: n.look,
1589
+ labelType: "markdown"
1590
+ };
1591
+ t.push(r);
1592
+ }
1593
+ return {
1594
+ nodes: e,
1595
+ edges: t,
1596
+ other: {},
1597
+ config: n,
1598
+ direction: "TB"
1599
+ };
1600
+ }
1601
+ }, C = {};
1602
+ t(C, { draw: () => w });
1603
+ var w = /* @__PURE__ */ e(async function(e, t, i, a) {
1604
+ n.info("REF0:"), n.info("Drawing er diagram (unified)", t);
1605
+ let { securityLevel: o, er: s, layout: c } = d(), l = a.db.getData(), u = g(t, o);
1606
+ l.type = a.type, l.layoutAlgorithm = y(c), l.config.flowchart.nodeSpacing = s?.nodeSpacing || 140, l.config.flowchart.rankSpacing = s?.rankSpacing || 80, l.direction = a.db.getDirection();
1607
+ let { config: f } = l, { look: p } = f;
1608
+ p === "neo" ? l.markers = [
1609
+ "only_one_neo",
1610
+ "zero_or_one_neo",
1611
+ "one_or_more_neo",
1612
+ "zero_or_more_neo"
1613
+ ] : l.markers = [
1614
+ "only_one",
1615
+ "zero_or_one",
1616
+ "one_or_more",
1617
+ "zero_or_more"
1618
+ ], l.diagramId = t, await v(l, u), l.layoutAlgorithm === "elk" && u.select(".edges").lower();
1619
+ let m = u.selectAll("[id*=\"-background\"]");
1620
+ Array.from(m).length > 0 && m.each(function() {
1621
+ let e = r(this), t = e.attr("id").replace("-background", ""), n = u.select(`#${CSS.escape(t)}`);
1622
+ if (!n.empty()) {
1623
+ let t = n.attr("transform");
1624
+ e.attr("transform", t);
1625
+ }
1626
+ }), h.insertTitle(u, "erDiagramTitleText", s?.titleTopMargin ?? 25, a.db.getDiagramTitle()), _(u, 8, "erDiagram", s?.useMaxWidth ?? !0);
1627
+ }, "draw"), T = /* @__PURE__ */ e((e, t) => {
1628
+ let n = p;
1629
+ return c(n(e, "r"), n(e, "g"), n(e, "b"), t);
1630
+ }, "fade"), E = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), D = /* @__PURE__ */ e((e) => {
1631
+ let { theme: t, look: n, bkgColorArray: r, borderColorArray: i } = e;
1632
+ if (!E.has(t)) return "";
1633
+ let a = r?.length > 0, o = "";
1634
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) o += `
1635
+
1636
+ [data-look="${n}"][data-color-id="color-${t}"].node path {
1637
+ stroke: ${i[t]};
1638
+ ${a ? `fill: ${r[t]};` : ""}
1639
+ }
1640
+
1641
+ [data-look="${n}"][data-color-id="color-${t}"].node rect {
1642
+ stroke: ${i[t]};
1643
+ ${a ? `fill: ${r[t]};` : ""}
1644
+ }
1645
+ `;
1646
+ return o;
1647
+ }, "genColor"), O = {
1648
+ parser: x,
1649
+ get db() {
1650
+ return new S();
1651
+ },
1652
+ renderer: C,
1653
+ styles: /* @__PURE__ */ e((e) => {
1654
+ let { look: t, theme: n, erEdgeLabelBackground: r, strokeWidth: i } = e;
1655
+ return `
1656
+ ${D(e)}
1657
+ .entityBox {
1658
+ fill: ${e.mainBkg};
1659
+ stroke: ${e.nodeBorder};
1660
+ }
1661
+
1662
+ .relationshipLabelBox {
1663
+ fill: ${e.tertiaryColor};
1664
+ opacity: 0.7;
1665
+ background-color: ${e.tertiaryColor};
1666
+ rect {
1667
+ opacity: 0.5;
1668
+ }
1669
+ }
1670
+
1671
+ .labelBkg {
1672
+ background-color: ${E.has(n) && r ? r : T(e.tertiaryColor, .5)};
1673
+ }
1674
+
1675
+ .edgeLabel {
1676
+ background-color: ${E.has(n) && r ? r : e.edgeLabelBackground};
1677
+ }
1678
+ .edgeLabel .label rect {
1679
+ fill: ${E.has(n) && r ? r : e.edgeLabelBackground};
1680
+ }
1681
+ .edgeLabel .label text {
1682
+ fill: ${e.textColor};
1683
+ }
1684
+
1685
+ .edgeLabel .label {
1686
+ fill: ${e.nodeBorder};
1687
+ font-size: 14px;
1688
+ }
1689
+
1690
+ .label {
1691
+ font-family: ${e.fontFamily};
1692
+ color: ${e.nodeTextColor || e.textColor};
1693
+ }
1694
+
1695
+ .edge-pattern-dashed {
1696
+ stroke-dasharray: 8,8;
1697
+ }
1698
+
1699
+ .node rect,
1700
+ .node circle,
1701
+ .node ellipse,
1702
+ .node polygon
1703
+ {
1704
+ fill: ${e.mainBkg};
1705
+ stroke: ${e.nodeBorder};
1706
+ stroke-width: ${t === "neo" ? i : "1px"};
1707
+ }
1708
+
1709
+ .relationshipLine {
1710
+ stroke: ${e.lineColor};
1711
+ stroke-width: ${t === "neo" ? i : "1px"};
1712
+ fill: none;
1713
+ }
1714
+
1715
+ .marker {
1716
+ fill: none !important;
1717
+ stroke: ${e.lineColor} !important;
1718
+ stroke-width: 1;
1719
+ }
1720
+ [data-look=neo].labelBkg {
1721
+ background-color: ${T(e.tertiaryColor, .5)};
1722
+ }
1723
+ `;
1724
+ }, "getStyles")
1725
+ };
1726
+ //#endregion
1727
+ export { O as diagram };