@bkm016/basalt 0.1.16 → 0.1.17

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 (534) hide show
  1. package/{chunk-9ymm1gge.js → chunk-9jtvj8md.js} +202 -202
  2. package/compiled.js +1 -1
  3. package/package.json +1 -1
  4. package/web/{chunk-75meb0dh.js → chunk-013et20n.js} +2 -2
  5. package/web/chunk-013et20n.js.br +0 -0
  6. package/web/chunk-013et20n.js.gz +0 -0
  7. package/web/chunk-0ernj3c0.js +1 -0
  8. package/web/chunk-0ernj3c0.js.br +0 -0
  9. package/web/chunk-0ernj3c0.js.gz +0 -0
  10. package/web/chunk-0j65yg1p.js +1 -0
  11. package/web/chunk-0j65yg1p.js.br +0 -0
  12. package/web/chunk-0j65yg1p.js.gz +0 -0
  13. package/web/chunk-0khcpaa8.js +1 -0
  14. package/web/chunk-0khcpaa8.js.br +0 -0
  15. package/web/chunk-0khcpaa8.js.gz +0 -0
  16. package/web/chunk-0wbdd74r.js +1 -0
  17. package/web/chunk-0wbdd74r.js.br +2 -0
  18. package/web/chunk-0wbdd74r.js.gz +0 -0
  19. package/web/chunk-1f2wvhq9.js +1 -0
  20. package/web/chunk-1f2wvhq9.js.br +0 -0
  21. package/web/chunk-1f2wvhq9.js.gz +0 -0
  22. package/web/{chunk-75kzvpf3.js → chunk-1q2kmv35.js} +18 -18
  23. package/web/chunk-1q2kmv35.js.br +0 -0
  24. package/web/chunk-1q2kmv35.js.gz +0 -0
  25. package/web/{chunk-36e78034.js → chunk-1tfrm3pk.js} +2 -2
  26. package/web/chunk-1tfrm3pk.js.br +0 -0
  27. package/web/chunk-1tfrm3pk.js.gz +0 -0
  28. package/web/chunk-2qt5fy5n.js +1 -0
  29. package/web/chunk-2qt5fy5n.js.br +0 -0
  30. package/web/chunk-2qt5fy5n.js.gz +0 -0
  31. package/web/chunk-2sxtb709.js +1 -0
  32. package/web/chunk-2sxtb709.js.br +0 -0
  33. package/web/chunk-2sxtb709.js.gz +0 -0
  34. package/web/chunk-2wrwm0qe.js +1 -0
  35. package/web/chunk-2wrwm0qe.js.br +0 -0
  36. package/web/chunk-2wrwm0qe.js.gz +0 -0
  37. package/web/{chunk-5sss3r97.js → chunk-2wwj27b9.js} +3 -3
  38. package/web/chunk-2wwj27b9.js.br +0 -0
  39. package/web/chunk-2wwj27b9.js.gz +0 -0
  40. package/web/chunk-33mmrjdp.js +1 -0
  41. package/web/chunk-33mmrjdp.js.br +2 -0
  42. package/web/chunk-33mmrjdp.js.gz +0 -0
  43. package/web/chunk-33tb7q04.js +2 -0
  44. package/web/chunk-33tb7q04.js.br +0 -0
  45. package/web/chunk-33tb7q04.js.gz +0 -0
  46. package/web/chunk-3txb4sha.js +1 -0
  47. package/web/chunk-3txb4sha.js.br +0 -0
  48. package/web/chunk-3txb4sha.js.gz +0 -0
  49. package/web/{chunk-n3f5a91k.js → chunk-3xgfsx7y.js} +2 -2
  50. package/web/chunk-3xgfsx7y.js.br +0 -0
  51. package/web/chunk-3xgfsx7y.js.gz +0 -0
  52. package/web/chunk-40jka4r7.js +2 -0
  53. package/web/chunk-40jka4r7.js.br +0 -0
  54. package/web/chunk-40jka4r7.js.gz +0 -0
  55. package/web/{chunk-mcm3t5wr.js → chunk-41vh5n86.js} +1 -1
  56. package/web/chunk-41vh5n86.js.br +0 -0
  57. package/web/chunk-41vh5n86.js.gz +0 -0
  58. package/web/chunk-4wd9r73y.js.br +0 -0
  59. package/web/chunk-4wd9r73y.js.gz +0 -0
  60. package/web/chunk-5kz048x3.js +2 -0
  61. package/web/chunk-5kz048x3.js.br +0 -0
  62. package/web/chunk-5kz048x3.js.gz +0 -0
  63. package/web/chunk-5mbz8yj9.js +3 -0
  64. package/web/chunk-5mbz8yj9.js.br +0 -0
  65. package/web/chunk-5mbz8yj9.js.gz +0 -0
  66. package/web/chunk-6024wfxb.js +30 -0
  67. package/web/chunk-6024wfxb.js.br +0 -0
  68. package/web/chunk-6024wfxb.js.gz +0 -0
  69. package/web/chunk-6ey4c6gw.js +2 -0
  70. package/web/chunk-6ey4c6gw.js.br +0 -0
  71. package/web/chunk-6ey4c6gw.js.gz +0 -0
  72. package/web/chunk-6q3p851n.js +1 -0
  73. package/web/chunk-6q3p851n.js.br +2 -0
  74. package/web/chunk-6q3p851n.js.gz +0 -0
  75. package/web/{chunk-qbhv18t0.js → chunk-74g3wh08.js} +2 -2
  76. package/web/chunk-74g3wh08.js.br +0 -0
  77. package/web/chunk-74g3wh08.js.gz +0 -0
  78. package/web/{chunk-vcnsvj49.js → chunk-78akzkgs.js} +14 -14
  79. package/web/chunk-78akzkgs.js.br +0 -0
  80. package/web/chunk-78akzkgs.js.gz +0 -0
  81. package/web/chunk-7ck99bsp.js +62 -0
  82. package/web/chunk-7ck99bsp.js.br +0 -0
  83. package/web/chunk-7ck99bsp.js.gz +0 -0
  84. package/web/chunk-7fjbyns9.js +1 -0
  85. package/web/chunk-7fjbyns9.js.br +0 -0
  86. package/web/chunk-7fjbyns9.js.gz +0 -0
  87. package/web/chunk-7n6b2xra.js +21 -0
  88. package/web/chunk-7n6b2xra.js.br +0 -0
  89. package/web/chunk-7n6b2xra.js.gz +0 -0
  90. package/web/chunk-7p4mcqkd.js +78 -0
  91. package/web/chunk-7p4mcqkd.js.br +0 -0
  92. package/web/chunk-7p4mcqkd.js.gz +0 -0
  93. package/web/chunk-7ztwkhg5.js +1 -0
  94. package/web/chunk-7ztwkhg5.js.br +0 -0
  95. package/web/chunk-7ztwkhg5.js.gz +0 -0
  96. package/web/{chunk-t89tfrpj.js → chunk-823etvc3.js} +19 -19
  97. package/web/chunk-823etvc3.js.br +0 -0
  98. package/web/chunk-823etvc3.js.gz +0 -0
  99. package/web/{chunk-ps489yjy.js → chunk-8ec53vjd.js} +1 -1
  100. package/web/chunk-8ec53vjd.js.br +0 -0
  101. package/web/chunk-8ec53vjd.js.gz +0 -0
  102. package/web/chunk-8g239029.js.br +0 -0
  103. package/web/chunk-8g239029.js.gz +0 -0
  104. package/web/{chunk-p0jghn6b.js → chunk-8g55ytgz.js} +1 -1
  105. package/web/chunk-8g55ytgz.js.br +0 -0
  106. package/web/chunk-8g55ytgz.js.gz +0 -0
  107. package/web/chunk-8nxjthxc.js +1 -0
  108. package/web/chunk-8nxjthxc.js.br +0 -0
  109. package/web/chunk-8nxjthxc.js.gz +0 -0
  110. package/web/chunk-8q76yd76.js +291 -0
  111. package/web/chunk-8q76yd76.js.br +0 -0
  112. package/web/chunk-8q76yd76.js.gz +0 -0
  113. package/web/chunk-9kbrjmtz.js +1 -0
  114. package/web/chunk-9kbrjmtz.js.br +0 -0
  115. package/web/chunk-9kbrjmtz.js.gz +0 -0
  116. package/web/chunk-9s4bh6qm.js +40 -0
  117. package/web/chunk-9s4bh6qm.js.br +0 -0
  118. package/web/chunk-9s4bh6qm.js.gz +0 -0
  119. package/web/chunk-9v1f6yc8.js.br +0 -0
  120. package/web/chunk-9v1f6yc8.js.gz +0 -0
  121. package/web/{chunk-a205cj09.js → chunk-9vf3zy3d.js} +2 -2
  122. package/web/chunk-9vf3zy3d.js.br +0 -0
  123. package/web/chunk-9vf3zy3d.js.gz +0 -0
  124. package/web/{chunk-ef03t1mb.js → chunk-a449xjq6.js} +6 -6
  125. package/web/chunk-a449xjq6.js.br +0 -0
  126. package/web/chunk-a449xjq6.js.gz +0 -0
  127. package/web/chunk-ad6x47yy.js.br +0 -0
  128. package/web/chunk-ad6x47yy.js.gz +0 -0
  129. package/web/chunk-b05eay33.js +1 -0
  130. package/web/chunk-b05eay33.js.br +0 -0
  131. package/web/chunk-b05eay33.js.gz +0 -0
  132. package/web/{chunk-tfsrk2rc.js → chunk-bdypt5mj.js} +55 -55
  133. package/web/chunk-bdypt5mj.js.br +0 -0
  134. package/web/chunk-bdypt5mj.js.gz +0 -0
  135. package/web/chunk-bvyjy17t.js +14 -0
  136. package/web/chunk-bvyjy17t.js.br +0 -0
  137. package/web/chunk-bvyjy17t.js.gz +0 -0
  138. package/web/{chunk-ctmxm4qd.js → chunk-ccy2q2z0.js} +2 -2
  139. package/web/chunk-ccy2q2z0.js.br +0 -0
  140. package/web/chunk-ccy2q2z0.js.gz +0 -0
  141. package/web/{chunk-wvt76598.js → chunk-ceg13tma.js} +2 -2
  142. package/web/chunk-ceg13tma.js.br +0 -0
  143. package/web/chunk-ceg13tma.js.gz +0 -0
  144. package/web/{chunk-z2hvvkf5.js → chunk-ch60a61d.js} +2 -2
  145. package/web/chunk-ch60a61d.js.br +0 -0
  146. package/web/chunk-ch60a61d.js.gz +0 -0
  147. package/web/chunk-czvdg0c5.js +1 -0
  148. package/web/chunk-czvdg0c5.js.br +0 -0
  149. package/web/chunk-czvdg0c5.js.gz +0 -0
  150. package/web/chunk-d18r4m14.js.br +0 -0
  151. package/web/chunk-d18r4m14.js.gz +0 -0
  152. package/web/chunk-dmqtdeb4.js.br +0 -0
  153. package/web/chunk-dmqtdeb4.js.gz +0 -0
  154. package/web/chunk-drr7mqg2.js +1 -0
  155. package/web/chunk-drr7mqg2.js.br +0 -0
  156. package/web/chunk-drr7mqg2.js.gz +0 -0
  157. package/web/{chunk-chh8bg2h.js → chunk-dsa5m3h6.js} +34 -34
  158. package/web/chunk-dsa5m3h6.js.br +0 -0
  159. package/web/chunk-dsa5m3h6.js.gz +0 -0
  160. package/web/chunk-dww3grm3.js +24 -0
  161. package/web/chunk-dww3grm3.js.br +0 -0
  162. package/web/chunk-dww3grm3.js.gz +0 -0
  163. package/web/chunk-e187gt5x.js +1 -0
  164. package/web/chunk-e187gt5x.js.br +0 -0
  165. package/web/chunk-e187gt5x.js.gz +0 -0
  166. package/web/{chunk-pf65cank.js → chunk-emxa4wv3.js} +2 -2
  167. package/web/chunk-emxa4wv3.js.br +0 -0
  168. package/web/chunk-emxa4wv3.js.gz +0 -0
  169. package/web/{chunk-gjchc4kg.js → chunk-ey0zwvbx.js} +1 -1
  170. package/web/chunk-ey0zwvbx.js.br +0 -0
  171. package/web/chunk-ey0zwvbx.js.gz +0 -0
  172. package/web/chunk-ey14knbn.js +2 -0
  173. package/web/chunk-ey14knbn.js.br +0 -0
  174. package/web/chunk-ey14knbn.js.gz +0 -0
  175. package/web/chunk-fba06jm8.js +1132 -0
  176. package/web/chunk-fba06jm8.js.br +0 -0
  177. package/web/chunk-fba06jm8.js.gz +0 -0
  178. package/web/chunk-fh56vgfx.js +39 -0
  179. package/web/chunk-fh56vgfx.js.br +0 -0
  180. package/web/chunk-fh56vgfx.js.gz +0 -0
  181. package/web/chunk-ft05x3my.js +169 -0
  182. package/web/chunk-ft05x3my.js.br +0 -0
  183. package/web/chunk-ft05x3my.js.gz +0 -0
  184. package/web/chunk-fzmrnh17.js +303 -0
  185. package/web/chunk-fzmrnh17.js.br +0 -0
  186. package/web/chunk-fzmrnh17.js.gz +0 -0
  187. package/web/{chunk-ybqt106a.js → chunk-gbt7asd7.js} +2 -2
  188. package/web/chunk-gbt7asd7.js.br +0 -0
  189. package/web/chunk-gbt7asd7.js.gz +0 -0
  190. package/web/chunk-gh9fkn3t.js +1 -0
  191. package/web/chunk-gh9fkn3t.js.br +2 -0
  192. package/web/chunk-gh9fkn3t.js.gz +0 -0
  193. package/web/{chunk-sd3cdqcm.js → chunk-h1syyjqq.js} +2 -2
  194. package/web/chunk-h1syyjqq.js.br +0 -0
  195. package/web/chunk-h1syyjqq.js.gz +0 -0
  196. package/web/{chunk-mv5axm2y.js → chunk-h7byk4z3.js} +12 -12
  197. package/web/chunk-h7byk4z3.js.br +0 -0
  198. package/web/chunk-h7byk4z3.js.gz +0 -0
  199. package/web/chunk-hby0hkv4.js +1 -0
  200. package/web/chunk-hby0hkv4.js.br +0 -0
  201. package/web/chunk-hby0hkv4.js.gz +0 -0
  202. package/web/chunk-hjvsp2yx.js +1 -0
  203. package/web/chunk-hjvsp2yx.js.br +0 -0
  204. package/web/chunk-hjvsp2yx.js.gz +0 -0
  205. package/web/chunk-hp167dbv.js.br +0 -0
  206. package/web/chunk-hp167dbv.js.gz +0 -0
  207. package/web/{chunk-qwwqdmhv.js → chunk-hpjzy5ww.js} +1 -1
  208. package/web/chunk-hpjzy5ww.js.br +0 -0
  209. package/web/chunk-hpjzy5ww.js.gz +0 -0
  210. package/web/{chunk-1np2aamb.js → chunk-hzfp8kqx.js} +11 -11
  211. package/web/chunk-hzfp8kqx.js.br +0 -0
  212. package/web/chunk-hzfp8kqx.js.gz +0 -0
  213. package/web/{chunk-5d9veaef.js → chunk-j6jjk46a.js} +2 -2
  214. package/web/chunk-j6jjk46a.js.br +0 -0
  215. package/web/chunk-j6jjk46a.js.gz +0 -0
  216. package/web/chunk-j8f0m1dq.js +1 -0
  217. package/web/chunk-j8f0m1dq.js.br +0 -0
  218. package/web/chunk-j8f0m1dq.js.gz +0 -0
  219. package/web/{chunk-t9pg7qf8.js → chunk-jc178ad5.js} +2 -2
  220. package/web/chunk-jc178ad5.js.br +0 -0
  221. package/web/chunk-jc178ad5.js.gz +0 -0
  222. package/web/chunk-jcsf0ke5.js +41 -0
  223. package/web/chunk-jcsf0ke5.js.br +0 -0
  224. package/web/chunk-jcsf0ke5.js.gz +0 -0
  225. package/web/chunk-jg43a2xk.js +139 -0
  226. package/web/chunk-jg43a2xk.js.br +0 -0
  227. package/web/chunk-jg43a2xk.js.gz +0 -0
  228. package/web/chunk-jrgdxqtq.js +7 -0
  229. package/web/chunk-jrgdxqtq.js.br +0 -0
  230. package/web/chunk-jrgdxqtq.js.gz +0 -0
  231. package/web/chunk-js8dvtfg.js +2 -0
  232. package/web/chunk-js8dvtfg.js.br +0 -0
  233. package/web/chunk-js8dvtfg.js.gz +0 -0
  234. package/web/chunk-jt0s9qs7.js +1 -0
  235. package/web/chunk-jt0s9qs7.js.br +0 -0
  236. package/web/chunk-jt0s9qs7.js.gz +0 -0
  237. package/web/chunk-jv5faf88.js +34 -0
  238. package/web/chunk-jv5faf88.js.br +0 -0
  239. package/web/chunk-jv5faf88.js.gz +0 -0
  240. package/web/{chunk-vb2z2azk.js → chunk-k295x81w.js} +79 -79
  241. package/web/chunk-k295x81w.js.br +0 -0
  242. package/web/chunk-k295x81w.js.gz +0 -0
  243. package/web/{chunk-wcj3bxdf.js → chunk-k3aa37pw.js} +2 -2
  244. package/web/chunk-k3aa37pw.js.br +0 -0
  245. package/web/chunk-k3aa37pw.js.gz +0 -0
  246. package/web/{chunk-wgmwgaw4.js → chunk-k6wxwgp1.js} +26 -26
  247. package/web/chunk-k6wxwgp1.js.br +0 -0
  248. package/web/chunk-k6wxwgp1.js.gz +0 -0
  249. package/web/chunk-k9vc7kp2.js +292 -0
  250. package/web/chunk-k9vc7kp2.js.br +0 -0
  251. package/web/chunk-k9vc7kp2.js.gz +0 -0
  252. package/web/chunk-kxyws7q7.js +1 -0
  253. package/web/chunk-kxyws7q7.js.br +0 -0
  254. package/web/chunk-kxyws7q7.js.gz +0 -0
  255. package/web/{chunk-c0hdp2zj.js → chunk-mcgf645h.js} +1 -1
  256. package/web/chunk-mcgf645h.js.br +4 -0
  257. package/web/chunk-mcgf645h.js.gz +0 -0
  258. package/web/{chunk-3gj2t10x.js → chunk-mj3tshy8.js} +31 -31
  259. package/web/chunk-mj3tshy8.js.br +0 -0
  260. package/web/chunk-mj3tshy8.js.gz +0 -0
  261. package/web/chunk-mnb2wdvy.js +24 -0
  262. package/web/chunk-mnb2wdvy.js.br +0 -0
  263. package/web/chunk-mnb2wdvy.js.gz +0 -0
  264. package/web/chunk-ndf58dgc.js +1 -0
  265. package/web/chunk-ndf58dgc.js.br +0 -0
  266. package/web/chunk-ndf58dgc.js.gz +0 -0
  267. package/web/chunk-nhpm5nd5.js +2 -0
  268. package/web/chunk-nhpm5nd5.js.br +0 -0
  269. package/web/chunk-nhpm5nd5.js.gz +0 -0
  270. package/web/chunk-nj0cv1cq.js.br +0 -0
  271. package/web/chunk-nj0cv1cq.js.gz +0 -0
  272. package/web/{chunk-0zyekjym.js → chunk-nwxjdetb.js} +1 -1
  273. package/web/chunk-nwxjdetb.js.br +0 -0
  274. package/web/chunk-nwxjdetb.js.gz +0 -0
  275. package/web/chunk-nyjfcard.js +106 -0
  276. package/web/chunk-nyjfcard.js.br +0 -0
  277. package/web/chunk-nyjfcard.js.gz +0 -0
  278. package/web/chunk-nzey7cpv.js.br +0 -0
  279. package/web/chunk-nzey7cpv.js.gz +0 -0
  280. package/web/{chunk-g8wy9sa6.js → chunk-pcfjcy3a.js} +23 -23
  281. package/web/chunk-pcfjcy3a.js.br +0 -0
  282. package/web/chunk-pcfjcy3a.js.gz +0 -0
  283. package/web/chunk-pry6wdbe.js +1 -0
  284. package/web/chunk-pry6wdbe.js.br +0 -0
  285. package/web/chunk-pry6wdbe.js.gz +0 -0
  286. package/web/chunk-pvahdcgy.js +2 -0
  287. package/web/chunk-pvahdcgy.js.br +0 -0
  288. package/web/chunk-pvahdcgy.js.gz +0 -0
  289. package/web/{chunk-ffn1a0zw.js → chunk-q3njnnef.js} +2 -2
  290. package/web/chunk-q3njnnef.js.br +0 -0
  291. package/web/chunk-q3njnnef.js.gz +0 -0
  292. package/web/chunk-qxvqkkmw.js +1 -0
  293. package/web/chunk-qxvqkkmw.js.br +0 -0
  294. package/web/chunk-qxvqkkmw.js.gz +0 -0
  295. package/web/chunk-qych3sbs.js +1 -0
  296. package/web/chunk-qych3sbs.js.br +0 -0
  297. package/web/chunk-qych3sbs.js.gz +0 -0
  298. package/web/chunk-r1dnh0s8.js.br +0 -0
  299. package/web/chunk-r1dnh0s8.js.gz +0 -0
  300. package/web/chunk-r5eakmw6.js.br +0 -0
  301. package/web/chunk-r5eakmw6.js.gz +0 -0
  302. package/web/chunk-rbmp2e4b.js +1 -0
  303. package/web/chunk-rbmp2e4b.js.br +0 -0
  304. package/web/chunk-rbmp2e4b.js.gz +0 -0
  305. package/web/chunk-rcre1stj.js +1 -0
  306. package/web/chunk-rcre1stj.js.br +0 -0
  307. package/web/chunk-rcre1stj.js.gz +0 -0
  308. package/web/chunk-rdb6091n.js +89 -0
  309. package/web/chunk-rdb6091n.js.br +0 -0
  310. package/web/chunk-rdb6091n.js.gz +0 -0
  311. package/web/chunk-ryw7xnab.js +1 -0
  312. package/web/chunk-ryw7xnab.js.br +0 -0
  313. package/web/chunk-ryw7xnab.js.gz +0 -0
  314. package/web/{chunk-1hx4xtdk.js → chunk-sbbmy02e.js} +2 -2
  315. package/web/chunk-sbbmy02e.js.br +0 -0
  316. package/web/chunk-sbbmy02e.js.gz +0 -0
  317. package/web/{chunk-s0xy00v5.js → chunk-sgbc835w.js} +2 -2
  318. package/web/chunk-sgbc835w.js.br +0 -0
  319. package/web/chunk-sgbc835w.js.gz +0 -0
  320. package/web/chunk-sydy10mb.js +1 -0
  321. package/web/chunk-sydy10mb.js.br +0 -0
  322. package/web/chunk-sydy10mb.js.gz +0 -0
  323. package/web/chunk-t0ywnp5e.js +1 -0
  324. package/web/chunk-t0ywnp5e.js.br +0 -0
  325. package/web/chunk-t0ywnp5e.js.gz +0 -0
  326. package/web/chunk-t6agpn2z.js.br +0 -0
  327. package/web/chunk-t6agpn2z.js.gz +0 -0
  328. package/web/{chunk-hhnhgthx.js → chunk-t72jq97z.js} +2 -2
  329. package/web/chunk-t72jq97z.js.br +0 -0
  330. package/web/chunk-t72jq97z.js.gz +0 -0
  331. package/web/{chunk-6ty9vw27.js → chunk-tfcc9bcz.js} +3 -3
  332. package/web/chunk-tfcc9bcz.js.br +0 -0
  333. package/web/chunk-tfcc9bcz.js.gz +0 -0
  334. package/web/{chunk-27tchdxd.js → chunk-v2bvbgfc.js} +2 -2
  335. package/web/chunk-v2bvbgfc.js.br +0 -0
  336. package/web/chunk-v2bvbgfc.js.gz +0 -0
  337. package/web/{chunk-madrcnm1.js → chunk-v7zq4vc9.js} +5 -5
  338. package/web/chunk-v7zq4vc9.js.br +0 -0
  339. package/web/chunk-v7zq4vc9.js.gz +0 -0
  340. package/web/chunk-vh8pkcem.css.br +0 -0
  341. package/web/chunk-vh8pkcem.css.gz +0 -0
  342. package/web/chunk-vq3sby7x.js +1 -0
  343. package/web/chunk-vq3sby7x.js.br +0 -0
  344. package/web/chunk-vq3sby7x.js.gz +0 -0
  345. package/web/{chunk-vvvd3grf.js → chunk-vszya05r.js} +2 -2
  346. package/web/chunk-vszya05r.js.br +0 -0
  347. package/web/chunk-vszya05r.js.gz +0 -0
  348. package/web/chunk-was9xf03.js +8 -0
  349. package/web/chunk-was9xf03.js.br +0 -0
  350. package/web/chunk-was9xf03.js.gz +0 -0
  351. package/web/chunk-we1v1829.js +2 -0
  352. package/web/chunk-we1v1829.js.br +0 -0
  353. package/web/chunk-we1v1829.js.gz +0 -0
  354. package/web/chunk-wfa1c8dn.js +1 -0
  355. package/web/chunk-wfa1c8dn.js.br +0 -0
  356. package/web/chunk-wfa1c8dn.js.gz +0 -0
  357. package/web/chunk-wg2exnxe.js +1 -0
  358. package/web/chunk-wg2exnxe.js.br +2 -0
  359. package/web/chunk-wg2exnxe.js.gz +0 -0
  360. package/web/chunk-wvd3zj1m.js +70 -0
  361. package/web/chunk-wvd3zj1m.js.br +0 -0
  362. package/web/chunk-wvd3zj1m.js.gz +0 -0
  363. package/web/chunk-wzmxtr30.js +1 -0
  364. package/web/chunk-wzmxtr30.js.br +0 -0
  365. package/web/chunk-wzmxtr30.js.gz +0 -0
  366. package/web/chunk-x815g7yp.js +1 -0
  367. package/web/chunk-x815g7yp.js.br +0 -0
  368. package/web/chunk-x815g7yp.js.gz +0 -0
  369. package/web/{chunk-0qnetvsc.js → chunk-x8ps0p82.js} +14 -14
  370. package/web/chunk-x8ps0p82.js.br +0 -0
  371. package/web/chunk-x8ps0p82.js.gz +0 -0
  372. package/web/{chunk-y2ykn1gm.js → chunk-xea3snym.js} +1 -1
  373. package/web/chunk-xea3snym.js.br +0 -0
  374. package/web/chunk-xea3snym.js.gz +0 -0
  375. package/web/chunk-xet1jjy9.js.br +0 -0
  376. package/web/chunk-xet1jjy9.js.gz +0 -0
  377. package/web/{chunk-vjnvfb8z.js → chunk-xg4v60m7.js} +1 -1
  378. package/web/chunk-xg4v60m7.js.br +0 -0
  379. package/web/chunk-xg4v60m7.js.gz +0 -0
  380. package/web/chunk-xhr9jrjt.js +89 -0
  381. package/web/chunk-xhr9jrjt.js.br +0 -0
  382. package/web/chunk-xhr9jrjt.js.gz +0 -0
  383. package/web/chunk-xp90g2e7.js +36 -0
  384. package/web/chunk-xp90g2e7.js.br +0 -0
  385. package/web/chunk-xp90g2e7.js.gz +0 -0
  386. package/web/{chunk-e229cr90.js → chunk-xs1g97qa.js} +2 -2
  387. package/web/chunk-xs1g97qa.js.br +0 -0
  388. package/web/chunk-xs1g97qa.js.gz +0 -0
  389. package/web/chunk-xyk1wpr4.js +1 -0
  390. package/web/chunk-xyk1wpr4.js.br +3 -0
  391. package/web/chunk-xyk1wpr4.js.gz +0 -0
  392. package/web/chunk-yavbdwyt.js +1 -0
  393. package/web/chunk-yavbdwyt.js.br +0 -0
  394. package/web/chunk-yavbdwyt.js.gz +0 -0
  395. package/web/chunk-yfnhnsxe.js +4 -0
  396. package/web/chunk-yfnhnsxe.js.br +0 -0
  397. package/web/chunk-yfnhnsxe.js.gz +0 -0
  398. package/web/chunk-yk965yth.js +1 -0
  399. package/web/chunk-yk965yth.js.br +0 -0
  400. package/web/chunk-yk965yth.js.gz +0 -0
  401. package/web/{chunk-c1z290wm.js → chunk-ynhcjhsx.js} +2 -2
  402. package/web/chunk-ynhcjhsx.js.br +0 -0
  403. package/web/chunk-ynhcjhsx.js.gz +0 -0
  404. package/web/chunk-ypmm1gts.js +1 -0
  405. package/web/chunk-ypmm1gts.js.br +0 -0
  406. package/web/chunk-ypmm1gts.js.gz +0 -0
  407. package/web/chunk-yssx5a5q.js +1 -0
  408. package/web/chunk-yssx5a5q.js.br +0 -0
  409. package/web/chunk-yssx5a5q.js.gz +0 -0
  410. package/web/chunk-z09emmrb.js.br +0 -0
  411. package/web/chunk-z09emmrb.js.gz +0 -0
  412. package/web/chunk-z0a8cnq8.js +1 -0
  413. package/web/chunk-z0a8cnq8.js.br +0 -0
  414. package/web/chunk-z0a8cnq8.js.gz +0 -0
  415. package/web/{chunk-gaf9brzv.js → chunk-z1afsvbv.js} +2 -2
  416. package/web/chunk-z1afsvbv.js.br +0 -0
  417. package/web/chunk-z1afsvbv.js.gz +0 -0
  418. package/web/{chunk-w60dxtyz.js → chunk-z1ka8jtd.js} +2 -2
  419. package/web/chunk-z1ka8jtd.js.br +0 -0
  420. package/web/chunk-z1ka8jtd.js.gz +0 -0
  421. package/web/chunk-z7tdzen9.js +1 -0
  422. package/web/chunk-z7tdzen9.js.br +0 -0
  423. package/web/chunk-z7tdzen9.js.gz +0 -0
  424. package/web/{chunk-444xfger.js → chunk-zbwjj06m.js} +7 -7
  425. package/web/chunk-zbwjj06m.js.br +0 -0
  426. package/web/chunk-zbwjj06m.js.gz +0 -0
  427. package/web/chunk-zd2j189j.js +1 -0
  428. package/web/chunk-zd2j189j.js.br +0 -0
  429. package/web/chunk-zd2j189j.js.gz +0 -0
  430. package/web/chunk-zfgpq4n4.js +120 -0
  431. package/web/chunk-zfgpq4n4.js.br +0 -0
  432. package/web/chunk-zfgpq4n4.js.gz +0 -0
  433. package/web/chunk-zgas56xw.js +1 -0
  434. package/web/chunk-zgas56xw.js.br +0 -0
  435. package/web/chunk-zgas56xw.js.gz +0 -0
  436. package/web/chunk-zkfepf91.js +1 -0
  437. package/web/chunk-zkfepf91.js.br +0 -0
  438. package/web/chunk-zkfepf91.js.gz +0 -0
  439. package/web/icon-1wgy7kzy.svg.br +0 -0
  440. package/web/icon-1wgy7kzy.svg.gz +0 -0
  441. package/web/icon.svg.br +0 -0
  442. package/web/icon.svg.gz +0 -0
  443. package/web/index.html +11 -1
  444. package/web/index.html.br +0 -0
  445. package/web/index.html.gz +0 -0
  446. package/web/manifest-txf6vfbq.webmanifest.br +0 -0
  447. package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
  448. package/web/manifest.webmanifest.br +0 -0
  449. package/web/manifest.webmanifest.gz +0 -0
  450. package/web/sw.js +146 -27
  451. package/web/sw.js.br +0 -0
  452. package/web/sw.js.gz +0 -0
  453. package/web/chunk-0zb330w3.js +0 -89
  454. package/web/chunk-11byy7vm.js +0 -1
  455. package/web/chunk-160x5pv7.js +0 -1
  456. package/web/chunk-19g09ekr.js +0 -40
  457. package/web/chunk-1gzprnyd.js +0 -1
  458. package/web/chunk-1je4p601.js +0 -139
  459. package/web/chunk-1rjtqf8h.js +0 -2
  460. package/web/chunk-1y387f45.js +0 -1
  461. package/web/chunk-23258z1r.js +0 -1
  462. package/web/chunk-27592nd8.js +0 -36
  463. package/web/chunk-2hqmdqn3.js +0 -41
  464. package/web/chunk-2q79n966.js +0 -2
  465. package/web/chunk-2ws74tfa.js +0 -21
  466. package/web/chunk-2z8epr8f.js +0 -34
  467. package/web/chunk-4k62e61g.js +0 -291
  468. package/web/chunk-4z6wma3s.js +0 -78
  469. package/web/chunk-5wkqqa59.js +0 -1
  470. package/web/chunk-5yczs6sb.js +0 -1
  471. package/web/chunk-5yn7mwvt.js +0 -1
  472. package/web/chunk-705tkt2r.js +0 -1
  473. package/web/chunk-753qp8sa.js +0 -4
  474. package/web/chunk-76e3npmd.js +0 -2
  475. package/web/chunk-7p04dn0k.js +0 -1
  476. package/web/chunk-7qq1ypvj.js +0 -1
  477. package/web/chunk-7rb3v8gy.js +0 -1
  478. package/web/chunk-7yz88k97.js +0 -39
  479. package/web/chunk-85d7jkp0.js +0 -2
  480. package/web/chunk-90kgn35s.js +0 -1
  481. package/web/chunk-931y1g0h.js +0 -1
  482. package/web/chunk-at0xtfhy.js +0 -1
  483. package/web/chunk-bcp6na49.js +0 -1145
  484. package/web/chunk-bz1q7qdd.js +0 -8
  485. package/web/chunk-c0evk1xy.js +0 -1
  486. package/web/chunk-cge0cjfm.js +0 -2
  487. package/web/chunk-e9mmkrc3.js +0 -7
  488. package/web/chunk-f8nnrk6y.js +0 -292
  489. package/web/chunk-fcrswzgm.js +0 -106
  490. package/web/chunk-fw4fa7j6.js +0 -1
  491. package/web/chunk-fx8hheqz.js +0 -1
  492. package/web/chunk-gj16e7z0.js +0 -1
  493. package/web/chunk-h0c42zy3.js +0 -1
  494. package/web/chunk-h1y8y203.js +0 -1
  495. package/web/chunk-h6vy008x.js +0 -24
  496. package/web/chunk-h8mhnze5.js +0 -303
  497. package/web/chunk-j27mtdr2.js +0 -1
  498. package/web/chunk-jys02310.js +0 -1
  499. package/web/chunk-kew13yzg.js +0 -1
  500. package/web/chunk-kx5r8nf2.js +0 -1
  501. package/web/chunk-m7c0xk69.js +0 -1
  502. package/web/chunk-mrnx4f74.js +0 -70
  503. package/web/chunk-mtdsrtc5.js +0 -1
  504. package/web/chunk-n3spc397.js +0 -24
  505. package/web/chunk-nbcpbqq4.js +0 -1
  506. package/web/chunk-nhc280n0.js +0 -1
  507. package/web/chunk-nx1bcekh.js +0 -2
  508. package/web/chunk-p8t7s4z4.js +0 -1
  509. package/web/chunk-pgh1cx6w.js +0 -1
  510. package/web/chunk-qgzn0ha5.js +0 -89
  511. package/web/chunk-qtwxq6hj.js +0 -3
  512. package/web/chunk-qwp3dhmf.js +0 -1
  513. package/web/chunk-rjh54ygb.js +0 -120
  514. package/web/chunk-ryh8jdzy.js +0 -1
  515. package/web/chunk-s3t8dkkz.js +0 -1
  516. package/web/chunk-sk1w7f7h.js +0 -1
  517. package/web/chunk-smkrxjm5.js +0 -1
  518. package/web/chunk-sv5ph7fa.js +0 -1
  519. package/web/chunk-t9twxmsg.js +0 -1
  520. package/web/chunk-tfdchqn4.js +0 -62
  521. package/web/chunk-tvvggvjt.js +0 -169
  522. package/web/chunk-ty87gdvr.js +0 -1
  523. package/web/chunk-v16s0x7c.js +0 -1
  524. package/web/chunk-vgyp8wa2.js +0 -2
  525. package/web/chunk-vphzndz8.js +0 -2
  526. package/web/chunk-xtss82z2.js +0 -1
  527. package/web/chunk-y0mef85j.js +0 -1
  528. package/web/chunk-ym9qfsjs.js +0 -30
  529. package/web/chunk-ypdptddq.js +0 -1
  530. package/web/chunk-z08c63ph.js +0 -2
  531. package/web/chunk-z6x74qfh.js +0 -1
  532. package/web/chunk-z86pjpqp.js +0 -1
  533. package/web/chunk-zh0vjc6g.js +0 -1
  534. package/web/chunk-zns9wmab.js +0 -1
@@ -0,0 +1 @@
1
+ import{o,i,r,Vt,h,e,n,x,Ja,s,ie,tr,bt,ge,ua,oe}from"./chunk-fba06jm8.js";var ke=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=s("at-sign",ke);var Ce=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=s("file-code-2",Ce);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],pe=s("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=s("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ue=s("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let p=V(t.status);return{busy:p,text:p&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let p=t.members.filter((b)=>b.verdict==="approve").length,f=t.members.filter((b)=>b.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(p===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>p)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let p=Math.max(1,Math.round(t/1000));if(p<60)return`${p}s`;return`${Math.floor(p/60)}m ${String(p%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:p}=x(),{room:f}=t,b=te(f),g=f.state==="running",v=f.research?["research","opening","discussion"]:["opening","discussion"],a=g?v.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,N=[...v.map((m,d)=>({key:m,label:De[m],done:!g||d<a,active:d===a})),{key:"closed",label:g?"结论":b.label,done:!g,active:!1}];return e("ol",{className:p("flex min-w-0 gap-1",t.className),children:N.map((m,d)=>{let c=d===N.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:p("block h-[3px] rounded-full transition-colors duration-300",c?ee[b.tone]:m.active?"bg-accent animate-pulse":m.done?"bg-line-strong":"bg-line/60")}),e("span",{className:p("mt-1.5 block truncate text-[11px]",c?p("font-medium",F[b.tone]):m.active?"font-medium text-ink":m.done?"text-dim":"text-faint"),children:m.label})]},m.key)})})}function fe(t){let{Collapsible:p,CollapsibleContent:f,Composer:b,Markdown:g,ModelIcon:v,ScrollArea:a,SessionView:N,cn:m,confirm:d}=x(),{room:c,onClose:C}=t,[M,u]=r(!1),[J,D]=r(""),[R,H]=r(!1),[_,E]=r(),[S,B]=r(!1),[y,I]=r(!0),[T,z]=r(),ne=i(!1);ne.current=T!==void 0;let[U,X]=r(),[se,A]=r(!1),ae=i(!1);ae.current=U!==void 0;let re=(l)=>{A(!1),X(l)},le=i(null),Y=i(null),P=c.state==="running",j=te(c),be=new Map(c.members.map((l)=>[l.id,l]));o(()=>{let l=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(ae.current)A(!0);else u(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l),document.body.style.overflow=k}},[]);let ce=c.messages.length;o(()=>{let l=Y.current;if(!l||!y||ce===0)return;l.scrollTo({top:l.scrollHeight,behavior:"smooth"})},[ce,y]);let ve=async(l)=>{await t.onPost(l),I(!0)},he=async()=>{if(R)return;if(!await d({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(l)=>{X(void 0),D((k)=>k.includes(`@${l}`)?k:`${k?`${k.trimEnd()} `:""}@${l} `),requestAnimationFrame(()=>le.current?.focus())},Ne=c.members.filter((l)=>l.verdict==="approve").length,ye=c.members.filter((l)=>l.verdict==="reject").length,q=c.members.find((l)=>l.id===T),O=c.members.find((l)=>l.id===U);return Vt(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(l)=>{if(M&&l.target===l.currentTarget)C()},className:m("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(p,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-[11px] text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((l)=>!l),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-[15px] leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(ge,{className:m("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:m("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:m("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>u(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(oe,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-[13px] leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((l)=>e(Se,{member:l,onSelect:()=>z(l.id)},l.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-[11px] text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:Ne})," / ",e("span",{className:"text-danger",children:ye})," /"," ",c.members.length]})]}),c.members.map((l)=>e(Re,{member:l,viewing:l.id===U,onMention:()=>Q(l.name),onOpen:()=>l.id===U?A(!0):re(l.id)},l.id))]}),O&&n("main",{onAnimationEnd:(l)=>{if(!se||l.target!==l.currentTarget)return;A(!1),X(void 0)},className:m("flex min-h-0 min-w-0 flex-1 flex-col",se?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-[13px] text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(tr,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[13px] font-medium",children:[e(v,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(bt,{className:"size-4"})})]}),e(N,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:m("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(a,{viewportRef:Y,onScrollCapture:(l)=>{let k=Y.current;if(!k||l.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(ie,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((l)=>e(Te,{message:l,membersByID:be,onMention:()=>Q(l.senderName)},l.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:m("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-[13px] leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-[13px] text-danger",children:_}),e(b,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:le,onSend:ve,onAbort:()=>void he()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),re(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:p,cn:f}=x(),{member:b}=t,g=w[b.verdict]??w.pending,{busy:v}=K(b);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${b.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(p,{modelID:b.model,className:"size-4",size:16}),v&&e(ie,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-[13px] font-medium",children:b.name}),e("span",{className:f("block text-[11px]",g.text),children:g.label})]})]})}function Oe(t){let{Button:p,Dialog:f,Markdown:b,ModelIcon:g,cn:v}=x(),{member:a}=t,N=w[a.verdict]??w.pending,m=K(a);return e(f,{open:!0,onOpenChange:(d)=>!d&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:v("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",N.ring),children:e(g,{modelID:a.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:a.name}),e("span",{className:v("shrink-0 rounded px-1.5 py-px text-[11px] font-medium",N.soft),children:N.label})]}),description:a.model,footer:n(h,{children:[n(p,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(p,{variant:"secondary",onClick:t.onOpen,children:[e(bt,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-[13px]",children:[n("span",{className:v("flex min-w-0 flex-1 items-center gap-1.5",m.busy?"text-accent":"text-dim"),children:[m.busy&&e(ie,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:m.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",a.turns??0," 次"]})]}),a.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-[13px] leading-relaxed text-dim",children:e(b,{text:a.notes})})]}):e("p",{className:"text-[13px] text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:p,CollapsibleContent:f,Markdown:b,ModelIcon:g,cn:v}=x(),{member:a}=t,[N,m]=r(!1),d=w[a.verdict]??w.pending,{busy:c,text:C}=K(a);return n(p,{open:N,onOpenChange:m,className:v("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${a.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:v("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",d.ring),children:e(g,{modelID:a.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-[13px] font-medium",title:a.model,children:a.name}),e("span",{className:v("shrink-0 rounded px-1 text-[10.5px] font-medium",d.soft),children:d.label})]}),n("div",{className:v("flex min-w-0 items-center gap-1 text-[11px]",c?"text-accent":"text-faint"),children:[c&&e(ie,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-[11px] text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",a.turns??0," 次"]}),e("span",{className:"ml-auto"}),a.notes&&n("button",{type:"button","aria-expanded":N,onClick:()=>m((M)=>!M),className:v("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",N&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${a.name}`,title:`@ ${a.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),a.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(b,{text:a.notes})})})]})}function Te(t){let{Code:p,Collapsible:f,CollapsibleContent:b,Markdown:g,cn:v}=x(),{message:a}=t,[N,m]=r(!1),d=a.senderID==="user"||a.senderID==="host",c=a.verdict&&a.verdict!=="pending"?w[a.verdict]:void 0,C=a.evidences??[],M=(a.mentions??[]).map((u)=>t.membersByID.get(u)).filter((u)=>u!==void 0);return n("li",{id:`council-floor-${a.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:a,isHuman:d,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:a,isHuman:d,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:a.senderModel,children:a.senderName}),n("a",{href:`#council-floor-${a.floor}`,className:"font-mono text-[11px] text-faint hover:text-dim",onClick:(u)=>u.preventDefault(),children:["#",a.floor]}),c&&e("span",{className:v("rounded px-1.5 py-px text-[10.5px] font-medium",c.soft),children:c.label}),!d&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-[11px] text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(a.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-[11px] text-faint",children:[a.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${a.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(ua,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",a.replyToFloor," ",a.replyToName]}),a.replyToPreview&&e("span",{className:"truncate",children:a.replyToPreview})]}),M.map((u)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),u.name]},u.id))]}),e("div",{className:"mt-1.5 break-words text-[14px] leading-relaxed text-ink/90 md:text-[13.5px] [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:a.text})}),C.length>0&&n(f,{open:N,onOpenChange:m,className:"mt-2",children:[n("button",{type:"button","aria-expanded":N,onClick:()=>m((u)=>!u),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-[11px] text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!N&&e("span",{className:"truncate font-mono",children:C.map((u)=>u.label).join(",")}),e(ge,{className:v("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!N&&"-rotate-90")})]}),e(b,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((u)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-[11px] text-dim",children:u.label}),u.snippet&&e(p,{code:u.snippet,lang:u.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-[11.5px]"})]},`${u.tool}:${u.label}:${u.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:p,cn:f}=x();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(p,{modelID:t.message.senderModel,className:"size-4",size:16}):e(ue,{className:"size-4"})})}function ot(t){let{ModelIcon:p,cn:f,useTheme:b}=x();b();let{connection:g,sessionID:v,payload:a,onOpen:N}=t,m=a,[d,c]=r(m),[C,M]=r(()=>{try{return sessionStorage.getItem(Ja)===m.roomID}catch{return!1}}),[u,J]=r(Date.now);o(()=>{c(m)},[m]),o(()=>{if(!C)return;try{if(sessionStorage.getItem(Ja)===m.roomID)sessionStorage.removeItem(Ja)}catch{}},[C,m.roomID]);let D=d.state==="running",R=`/api/sessions/${encodeURIComponent(v)}/council/${encodeURIComponent(d.roomID)}`;o(()=>{if(!D)return;let y=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!y&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!y)J(Date.now())},1200);return()=>{y=!0,clearInterval(T)}},[g,R,D]);let H=async(y)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:y})});c(I)},_=async()=>{let y=await g.request(`${R}/kill`,{method:"POST"});c(y)},E=(D?u:d.updatedAt)-d.createdAt,S=d.messages.at(-1),B=d.members.filter((y)=>V(y.status)).length;return n(h,{children:[n("button",{type:"button","aria-label":`进入理事会:${d.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-[11px] text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[d.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:d.topic,children:d.topic})]}),e(G,{room:d,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:d.members.map((y)=>{let I=w[y.verdict]??w.pending,T=V(y.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:y.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(p,{modelID:y.model,className:"size-3.5",size:14}),T&&e(ie,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:y.name}),e("span",{className:f("shrink-0 text-[11px]",I.text),children:I.label})]},y.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(h,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${d.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[d.messages.length>0&&n("span",{className:"tabular-nums",children:[d.messages.length," 条"]}),e(pe,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:d,elapsedMs:E,onClose:()=>M(!1),onOpenMember:N,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
Binary file
Binary file
@@ -1,21 +1,21 @@
1
- import{t,Kt,a,de,b,C,S,E,T,A,I,R,l,p,M,ze,ra,pe,le,ce,vt,ge,ye}from"./chunk-h8mhnze5.js";import{Bt}from"./chunk-2q79n966.js";import{he}from"./chunk-76e3npmd.js";import{ue}from"./chunk-wvt76598.js";var Ue=function(){var s=t(function(q,o,h,k){for(h=h||{},k=q.length;k--;h[q[k]]=o);return h},"o"),c=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],f=[2,2],n=[1,7],u=[1,9],y=[1,10],x=[1,11],_=[1,12],v=[1,30],g=[1,23],m=[1,24],B=[1,25],W=[1,26],X=[1,27],D=[1,19],Y=[1,28],te=[1,29],G=[1,20],P=[1,18],z=[1,21],U=[1,22],Ke=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Re=[1,36],ve=[1,37],De=[1,38],Le=[1,39],we=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],j=[1,65],oe=[1,69],be=[1,71],_e=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],me=[1,78],Ee=[1,77],Se=[1,76],Ze=[69,70,71,72,73],je=[1,91],qe=[6,9,45,50],J=[6,9,12,44,45,50,51,52],Te=[1,101],Ce=[1,100],Oe=[1,99],fe=[18,61],We=[1,110],He=[1,109],Qe=[20,43,51,53,54,55],Ve=[18,61,64,66],Me={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",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",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(o,h,k,r,O,e,ke){var i=e.length-1;switch(O){case 1:break;case 2:this.$=[];break;case 3:this.$=e[i-1].concat(e[i]);break;case 4:this.$=e[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(e[i-4]),r.addEntity(e[i-2]),r.addRelationship(e[i-4],e[i],e[i-2],e[i-3]),this.$=[e[i-4],e[i-2]];break;case 8:r.addEntity(e[i-8]),r.addEntity(e[i-4]),r.addRelationship(e[i-8],e[i],e[i-4],e[i-5]),r.setClass([e[i-8]],e[i-6]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-8],e[i-4]];break;case 9:r.addEntity(e[i-6]),r.addEntity(e[i-2]),r.addRelationship(e[i-6],e[i],e[i-2],e[i-3]),r.setClass([e[i-6]],e[i-4]),this.$=[e[i-6],e[i-2]];break;case 10:r.addEntity(e[i-6]),r.addEntity(e[i-4]),r.addRelationship(e[i-6],e[i],e[i-4],e[i-5]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-6],e[i-4]];break;case 11:r.addEntity(e[i-3]),r.addAttributes(e[i-3],e[i-1]),this.$=[e[i-3]];break;case 12:r.addEntity(e[i-5]),r.addAttributes(e[i-5],e[i-1]),r.setClass([e[i-5]],e[i-3]),this.$=[e[i-5]];break;case 13:r.addEntity(e[i-2]),this.$=[e[i-2]];break;case 14:r.addEntity(e[i-4]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-4]];break;case 15:r.addEntity(e[i]),this.$=[e[i]];break;case 16:r.addEntity(e[i-2]),r.setClass([e[i-2]],e[i]),this.$=[e[i-2]];break;case 17:r.addEntity(e[i-6],e[i-4]),r.addAttributes(e[i-6],e[i-1]),this.$=[e[i-6]];break;case 18:r.addEntity(e[i-8],e[i-6]),r.addAttributes(e[i-8],e[i-1]),r.setClass([e[i-8]],e[i-3]),this.$=[e[i-8]];break;case 19:r.addEntity(e[i-5],e[i-3]),this.$=[e[i-5]];break;case 20:r.addEntity(e[i-7],e[i-5]),r.setClass([e[i-7]],e[i-2]),this.$=[e[i-7]];break;case 21:r.addEntity(e[i-3],e[i-1]);break;case 22:r.addEntity(e[i-5],e[i-3]),r.setClass([e[i-5]],e[i]);break;case 23:case 24:this.$=e[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=e[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(e[i].value),this.$=[];else this.$=e[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:e[i-2].id},e[i-1],{text:e[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-1],text:e[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-4],text:e[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[i];break;case 35:this.$=e[i-1]+" "+e[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[i-3],r.addClass(e[i-2],e[i-1]);break;case 41:case 42:case 63:case 72:this.$=[e[i]];break;case 43:case 44:this.$=e[i-2].concat([e[i]]);break;case 45:this.$=e[i-2],r.setClass(e[i-1],e[i]);break;case 46:this.$=e[i-3],r.addCssStyles(e[i-2],e[i-1]);break;case 47:this.$=[e[i]];break;case 48:e[i-2].push(e[i]),this.$=e[i-2];break;case 50:this.$=e[i-1]+e[i];break;case 58:case 84:case 85:this.$=e[i].replace(/"/g,"");break;case 64:e[i].push(e[i-1]),this.$=e[i];break;case 65:this.$={type:e[i-1],name:e[i]};break;case 66:this.$={type:e[i-2],name:e[i-1],keys:e[i]};break;case 67:this.$={type:e[i-2],name:e[i-1],comment:e[i]};break;case 68:this.$={type:e[i-3],name:e[i-2],keys:e[i-1],comment:e[i]};break;case 69:case 71:case 74:this.$=e[i];break;case 70:this.$=e[i-1]+e[i];break;case 73:e[i-2].push(e[i]),this.$=e[i-2];break;case 75:this.$=e[i].replace(/"/g,"");break;case 76:this.$={cardA:e[i],relType:e[i-1],cardB:e[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(c,f,{5:3}),{6:[1,4],7:5,8:6,9:n,10:8,21:u,23:y,25:x,27:_,28:13,29:14,30:15,31:16,32:17,34:v,37:g,38:m,39:B,40:W,41:X,43:D,46:Y,47:te,51:G,53:P,54:z,55:U},s(c,Ke,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Re,70:ve,71:De,72:Le,73:we}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,f,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:D,51:G,53:P,54:z,55:U},{10:51,43:D,51:G,53:P,54:z,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:D,51:G,53:P,54:z,55:U},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:n,10:8,21:u,23:y,25:x,27:_,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:v,37:g,38:m,39:B,40:W,41:X,43:D,46:Y,47:te,51:G,53:P,54:z,55:U},{12:ae,42:64,44:ne,45:j,48:66,49:67,51:oe,52:be},s(_e,[2,41]),s(_e,[2,42]),{15:72,43:K,44:Z,45:j},{12:ae,42:73,44:ne,45:j,48:66,49:67,51:oe,52:be},{6:me,9:Ee,19:[1,75],35:74,50:Se},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Re,70:ve,71:De,72:Le,73:we}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Re,70:ve,71:De,72:Le,73:we},s(Ze,[2,82]),s(Ze,[2,83]),s(d,[2,31]),s(d,Ke),{6:me,9:Ee,35:90,45:je,50:Se},{43:[1,92],44:[1,93]},s(qe,[2,47],{49:94,12:ae,44:ne,51:oe,52:be}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:j}),{6:me,9:Ee,35:95,45:je,50:Se},s(d,[2,32]),{10:97,36:96,43:D,51:G,53:P,54:z,55:U},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:Te,53:Ce,76:Oe},{15:102,43:K,44:Z},{10:103,43:D,51:G,53:P,54:z,55:U},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(fe,[2,65],{59:106,60:107,63:108,65:We,66:He}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:be},s(_e,[2,43]),s(_e,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:D,51:G,53:P,54:z,55:U},s(Qe,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(fe,[2,66],{60:120,64:[1,121],66:He}),s(fe,[2,67]),s(Ve,[2,72]),s(fe,[2,75]),s(Ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:K,44:Z},s(qe,[2,48],{49:94,12:ae,44:ne,51:oe,52:be}),{6:me,9:Ee,35:125,50:Se},s(Qe,[2,35]),{13:126,43:Te,53:Ce,76:Oe},{15:127,43:K,44:Z},{13:128,43:Te,53:Ce,76:Oe},s(d,[2,12]),s(fe,[2,68]),{63:129,65:We},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:j}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:j},s(d,[2,9]),s(Ve,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:Te,53:Ce,76:Oe},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(o,h){if(h.recoverable)this.trace(o);else{var k=Error(o);throw k.hash=h,k}},"parseError"),parse:t(function(o){var h=this,k=[0],r=[],O=[null],e=[],ke=this.table,i="",xe=0,Xe=0,Je=0,at=2,$e=1,nt=e.slice.call(arguments,1),N=Object.create(this.lexer),H={yy:{}};for(var Be in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Be))H.yy[Be]=this.yy[Be];if(N.setInput(o,H.yy),H.yy.lexer=N,H.yy.parser=this,typeof N.yylloc>"u")N.yylloc={};var Ge=N.yylloc;e.push(Ge);var ot=N.options&&N.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function lt(V){k.length=k.length-2*V,O.length=O.length-V,e.length=e.length-V}t(lt,"popStack");function et(){var V=r.pop()||N.lex()||$e;if(typeof V!=="number"){if(V instanceof Array)r=V,V=r.pop();V=h.symbols_[V]||V}return V}t(et,"lex");var L,Fe,Q,w,ft,Ye,ee={},Ae,F,tt,Ie;while(!0){if(Q=k[k.length-1],this.defaultActions[Q])w=this.defaultActions[Q];else{if(L===null||typeof L>"u")L=et();w=ke[Q]&&ke[Q][L]}if(typeof w>"u"||!w.length||!w[0]){var Pe="";Ie=[];for(Ae in ke[Q])if(this.terminals_[Ae]&&Ae>at)Ie.push("'"+this.terminals_[Ae]+"'");if(N.showPosition)Pe="Parse error on line "+(xe+1)+`:
2
- `+N.showPosition()+`
3
- Expecting `+Ie.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Pe="Parse error on line "+(xe+1)+": Unexpected "+(L==$e?"end of input":"'"+(this.terminals_[L]||L)+"'");this.parseError(Pe,{text:N.match,token:this.terminals_[L]||L,line:N.yylineno,loc:Ge,expected:Ie})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+L);switch(w[0]){case 1:if(k.push(L),O.push(N.yytext),e.push(N.yylloc),k.push(w[1]),L=null,!Fe){if(Xe=N.yyleng,i=N.yytext,xe=N.yylineno,Ge=N.yylloc,Je>0)Je--}else L=Fe,Fe=null;break;case 2:if(F=this.productions_[w[1]][1],ee.$=O[O.length-F],ee._$={first_line:e[e.length-(F||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(F||1)].first_column,last_column:e[e.length-1].last_column},ot)ee._$.range=[e[e.length-(F||1)].range[0],e[e.length-1].range[1]];if(Ye=this.performAction.apply(ee,[i,Xe,xe,H.yy,w[1],O,e].concat(nt)),typeof Ye<"u")return Ye;if(F)k=k.slice(0,-1*F*2),O=O.slice(0,-1*F),e=e.slice(0,-1*F);k.push(this.productions_[w[1]][0]),O.push(ee.$),e.push(ee._$),tt=ke[k[k.length-2]][k[k.length-1]],k.push(tt);break;case 3:return!0}}return!0},"parse")},rt=function(){var q={EOF:1,parseError:t(function(h,k){if(this.yy.parser)this.yy.parser.parseError(h,k);else throw Error(h)},"parseError"),setInput:t(function(o,h){if(this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);if(h)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var h=o.length,k=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1)this.yylineno-=k.length-1;var O=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===r.length?this.yylloc.first_column:0)+r[r.length-k.length].length-k[0].length:this.yylloc.first_column-h},this.options.ranges)this.yylloc.range=[O[0],O[0]+this.yyleng-h];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),h=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
- `+h+"^"},"showPosition"),test_match:t(function(o,h){var k,r,O;if(this.options.backtrack_lexer){if(O={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)O.yylloc.range=this.yylloc.range.slice(0)}if(r=o[0].match(/(?:\r\n?|\n).*/g),r)this.yylineno+=r.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],k=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(k)return k;else if(this._backtrack){for(var e in O)this[e]=O[e];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,h,k,r;if(!this._more)this.yytext="",this.match="";var O=this._currentRules();for(var e=0;e<O.length;e++)if(k=this._input.match(this.rules[O[e]]),k&&(!h||k[0].length>h[0].length)){if(h=k,r=e,this.options.backtrack_lexer)if(o=this.test_match(k,O[e]),o!==!1)return o;else if(this._backtrack){h=!1;continue}else return!1;else if(!this.options.flex)break}if(h){if(o=this.test_match(h,O[r]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var h=this.next();if(h)return h;else return this.lex()},"lex"),begin:t(function(h){this.conditionStack.push(h)},"begin"),popState:t(function(){var h=this.conditionStack.length-1;if(h>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(h){if(h=this.conditionStack.length-1-Math.abs(h||0),h>=0)return this.conditionStack[h];else return"INITIAL"},"topState"),pushState:t(function(h){this.begin(h)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(h,k,r,O){var e=O;switch(r){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return k.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return k.yytext[0];case 82:return 6}},"anonymous"),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,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/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,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/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,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,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,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return q}();Me.lexer=rt;function Ne(){this.yy={}}return t(Ne,"Parser"),Ne.prototype=Me,Me.Parser=Ne,new Ne}();Ue.parser=Ue;var ct=Ue,ht=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=S,this.getAccTitle=E,this.setAccDescription=T,this.getAccDescription=A,this.setDiagramTitle=I,this.getDiagramTitle=R,this.getConfig=t(()=>l().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),this.addSubGraph=this.addSubGraph.bind(this)}static{t(this,"ErDB")}addEntity(s,c=""){if(!this.entities.has(s))this.entities.set(s,{id:`entity-${s}-${this.entities.size}`,label:s,attributes:[],alias:c,shape:"erBox",look:l().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),a.info("Added new entity :",s);else if(!this.entities.get(s)?.alias&&c)this.entities.get(s).alias=c,a.info(`Add alias '${c}' to entity '${s}'`);return this.entities.get(s)}getEntity(s){return this.entities.get(s)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(s,c){let f=this.addEntity(s),n;for(n=c.length-1;n>=0;n--){if(!c[n].keys)c[n].keys=[];if(!c[n].comment)c[n].comment="";f.attributes.push(c[n]),a.debug("Added attribute ",c[n].name)}}addRelationship(s,c,f,n){let u;if(this.subGraphLookup.has(s))u=s;else{let _=this.addEntity(s);if(!_)return;u=_.id}let y;if(this.subGraphLookup.has(f))y=f;else{let _=this.addEntity(f);if(!_)return;y=_.id}let x={entityA:u,roleA:c,entityB:y,relSpec:n};this.relationships.push(x),a.debug("Added new relationship :",x)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(s){this.direction=s}getCompiledStyles(s){let c=[];for(let f of s){let n=this.classes.get(f);if(n?.styles)c=[...c,...n.styles??[]].map((u)=>u.trim());if(n?.textStyles)c=[...c,...n.textStyles??[]].map((u)=>u.trim())}return c}addCssStyles(s,c){for(let f of s){let n=this.entities.get(f),u=this.subGraphLookup.get(f);if(!c)continue;if(n)for(let y of c)n.cssStyles.push(y);if(u){if(!u.cssStyles)u.cssStyles=[];for(let y of c)u.cssStyles.push(y)}}}addClass(s,c){s.forEach((f)=>{let n=this.classes.get(f);if(n===void 0)n={id:f,styles:[],textStyles:[]},this.classes.set(f,n);if(c)c.forEach(function(u){if(/color/.exec(u)){let y=u.replace("fill","bgFill");n.textStyles.push(y)}n.styles.push(u)})})}addSubGraph(s,c,f){let n=s.text.trim(),u=f.text,x=t((m)=>{let B=new Set,W;return{nodeList:m.filter((D)=>{if(D?.stmt){if(D.stmt==="dir")W=D.value;return!1}if(typeof D!=="string")return!1;let Y=D.trim();if(!Y)return!1;if(B.has(Y))return!1;return B.add(Y),!0}),dir:W}},"uniq")(c.flat()),{nodeList:_,dir:v}=x;n=n??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;let g={id:n,nodes:_,title:u.trim(),classes:[],cssStyles:[],dir:v,labelType:this.sanitizeNodeLabelType(f?.type)};return a.info("Adding",g.id,g.nodes,g.dir),g.nodes=this.makeUniq(g,this.subGraphs).nodes,this.subGraphs.push(g),this.subGraphLookup.set(n,g),n}getSubGraphs(){return this.subGraphs}setClass(s,c){for(let f of s){let n=this.entities.get(f);if(n)for(let y of c)n.cssClasses+=" "+y;let u=this.subGraphLookup.get(f);if(u)for(let y of c)u.classes.push(y)}}subgraphNodeCache(s){let c=new Set;for(let f of s)for(let n of f.nodes)c.add(n);return c}makeUniq(s,c){let f=this.subgraphNodeCache(c),n=[];return s.nodes.forEach((u,y)=>{if(f.has(u))a.warn(`Entity '${u}' already belongs to another subgraph and will be ignored`);else n.push(s.nodes[y])}),{nodes:n}}sanitizeText(s){return b.sanitizeText(s,l())}sanitizeNodeLabelType(s){switch(s){case"markdown":case"string":case"text":return s;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,C()}getData(){let s=[],c=[],f=l(),n=this.getSubGraphs(),u=new Map,y=new Map;for(let g=n.length-1;g>=0;g--){let m=n[g];if(m.nodes.length>0)y.set(m.id,!0);for(let B of m.nodes)u.set(B,m.id)}for(let g=n.length-1;g>=0;g--){let m=n[g];s.push({id:m.id,label:m.title,labelStyle:"",labelType:m.labelType,parentId:u.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssStyles:m.cssStyles,cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:f.look})}let x=new Set(n.map((g)=>g.id)),_=0;for(let g of this.entities.keys()){if(x.has(g))continue;let m=this.entities.get(g);if(m)m.cssCompiledStyles=this.getCompiledStyles(m.cssClasses.split(" ")),m.colorIndex=_++,s.push({...m,parentId:u.get(g),isGroup:!1})}let v=0;for(let g of this.relationships){let m={id:ze(g.entityA,g.entityB,{prefix:"id",counter:v++}),type:"normal",curve:"basis",start:g.entityA,end:g.entityB,label:g.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:g.relSpec.cardB.toLowerCase(),arrowTypeEnd:g.relSpec.cardA.toLowerCase(),pattern:g.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:f.look,labelType:"markdown"};c.push(m)}return{nodes:s,edges:c,other:{},config:f,direction:this.direction}}},it={};Kt(it,{draw:()=>ut});var ut=t(async function(s,c,f,n){a.info("REF0:"),a.info("Drawing er diagram (unified)",c);let{securityLevel:u,er:y,layout:x}=l(),_=n.db.getData(),v=he(c,u);_.type=n.type,_.layoutAlgorithm=ye(x),_.config.flowchart.nodeSpacing=y?.nodeSpacing||140,_.config.flowchart.rankSpacing=y?.rankSpacing||80,_.direction=n.db.getDirection();let{config:g}=_,{look:m}=g;if(m==="neo")_.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else _.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];_.diagramId=c,await ge(_,v);let B=v.selectAll('[id*="-background"]');if(Array.from(B).length>0)B.each(function(){let X=p(this),Y=X.attr("id").replace("-background",""),te=v.select(`#${CSS.escape(Y)}`);if(!te.empty()){let G=te.attr("transform");X.attr("transform",G)}});let W=8;M.insertTitle(v,"erDiagramTitleText",y?.titleTopMargin??25,n.db.getDiagramTitle()),ue(v,W,"erDiagram",y?.useMaxWidth??!0)},"draw"),st=t((s,c)=>{let f=Bt,n=f(s,"r"),u=f(s,"g"),y=f(s,"b");return de(n,u,y,c)},"fade"),dt=t((s)=>{let{theme:c,bkgColorArray:f,borderColorArray:n}=s;if(!le(c,n))return"";let u=ce(s.look),y=pe(f),x="";for(let _=0;_<vt(n);_++){let v=n[_],g=y?`fill: ${f[_%f.length]};`:"";x+=`
1
+ import{t,Hn,a,Le,k,A,R,I,L,D,P,N,u,f,F,vt,Si,Ie,Te,Ee,cn,Fe,ze}from"./chunk-fzmrnh17.js";import{In}from"./chunk-we1v1829.js";import{Be}from"./chunk-pvahdcgy.js";import{Re}from"./chunk-ceg13tma.js";var Pe=function(){var s=t(function(q,o,c,p){for(c=c||{},p=q.length;p--;c[q[p]]=o);return c},"o"),l=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],n=[1,7],h=[1,9],y=[1,10],T=[1,11],_=[1,12],C=[1,30],g=[1,23],m=[1,24],V=[1,25],W=[1,26],X=[1,27],O=[1,19],G=[1,28],te=[1,29],M=[1,20],Y=[1,18],z=[1,21],U=[1,22],Ue=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Ce=[1,36],Oe=[1,37],Ne=[1,38],xe=[1,39],Ae=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],Z=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],j=[1,65],oe=[1,69],le=[1,71],ue=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],de=[1,78],be=[1,77],pe=[1,76],Ke=[69,70,71,72,73],Ze=[1,91],je=[6,9,45,50],J=[6,9,12,44,45,50,51,52],fe=[1,101],ke=[1,100],ge=[1,99],ce=[18,61],qe=[1,110],We=[1,109],He=[20,43,51,53,54,55],ve=[18,61,64,66],De={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",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",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(o,c,p,r,E,e,he){var i=e.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:this.$=e[i-1].concat(e[i]);break;case 4:this.$=e[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(e[i-4]),r.addEntity(e[i-2]),r.addRelationship(e[i-4],e[i],e[i-2],e[i-3]),this.$=[e[i-4],e[i-2]];break;case 8:r.addEntity(e[i-8]),r.addEntity(e[i-4]),r.addRelationship(e[i-8],e[i],e[i-4],e[i-5]),r.setClass([e[i-8]],e[i-6]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-8],e[i-4]];break;case 9:r.addEntity(e[i-6]),r.addEntity(e[i-2]),r.addRelationship(e[i-6],e[i],e[i-2],e[i-3]),r.setClass([e[i-6]],e[i-4]),this.$=[e[i-6],e[i-2]];break;case 10:r.addEntity(e[i-6]),r.addEntity(e[i-4]),r.addRelationship(e[i-6],e[i],e[i-4],e[i-5]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-6],e[i-4]];break;case 11:r.addEntity(e[i-3]),r.addAttributes(e[i-3],e[i-1]),this.$=[e[i-3]];break;case 12:r.addEntity(e[i-5]),r.addAttributes(e[i-5],e[i-1]),r.setClass([e[i-5]],e[i-3]),this.$=[e[i-5]];break;case 13:r.addEntity(e[i-2]),this.$=[e[i-2]];break;case 14:r.addEntity(e[i-4]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-4]];break;case 15:r.addEntity(e[i]),this.$=[e[i]];break;case 16:r.addEntity(e[i-2]),r.setClass([e[i-2]],e[i]),this.$=[e[i-2]];break;case 17:r.addEntity(e[i-6],e[i-4]),r.addAttributes(e[i-6],e[i-1]),this.$=[e[i-6]];break;case 18:r.addEntity(e[i-8],e[i-6]),r.addAttributes(e[i-8],e[i-1]),r.setClass([e[i-8]],e[i-3]),this.$=[e[i-8]];break;case 19:r.addEntity(e[i-5],e[i-3]),this.$=[e[i-5]];break;case 20:r.addEntity(e[i-7],e[i-5]),r.setClass([e[i-7]],e[i-2]),this.$=[e[i-7]];break;case 21:r.addEntity(e[i-3],e[i-1]);break;case 22:r.addEntity(e[i-5],e[i-3]),r.setClass([e[i-5]],e[i]);break;case 23:case 24:this.$=e[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=e[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(e[i].value),this.$=[];else this.$=e[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:e[i-2].id},e[i-1],{text:e[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-1],text:e[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-4],text:e[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[i];break;case 35:this.$=e[i-1]+" "+e[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[i-3],r.addClass(e[i-2],e[i-1]);break;case 41:case 42:case 63:case 72:this.$=[e[i]];break;case 43:case 44:this.$=e[i-2].concat([e[i]]);break;case 45:this.$=e[i-2],r.setClass(e[i-1],e[i]);break;case 46:this.$=e[i-3],r.addCssStyles(e[i-2],e[i-1]);break;case 47:this.$=[e[i]];break;case 48:e[i-2].push(e[i]),this.$=e[i-2];break;case 50:this.$=e[i-1]+e[i];break;case 58:case 84:case 85:this.$=e[i].replace(/"/g,"");break;case 64:e[i].push(e[i-1]),this.$=e[i];break;case 65:this.$={type:e[i-1],name:e[i]};break;case 66:this.$={type:e[i-2],name:e[i-1],keys:e[i]};break;case 67:this.$={type:e[i-2],name:e[i-1],comment:e[i]};break;case 68:this.$={type:e[i-3],name:e[i-2],keys:e[i-1],comment:e[i]};break;case 69:case 71:case 74:this.$=e[i];break;case 70:this.$=e[i-1]+e[i];break;case 73:e[i-2].push(e[i]),this.$=e[i-2];break;case 75:this.$=e[i].replace(/"/g,"");break;case 76:this.$={cardA:e[i],relType:e[i-1],cardB:e[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(l,b,{5:3}),{6:[1,4],7:5,8:6,9:n,10:8,21:h,23:y,25:T,27:_,28:13,29:14,30:15,31:16,32:17,34:C,37:g,38:m,39:V,40:W,41:X,43:O,46:G,47:te,51:M,53:Y,54:z,55:U},s(l,Ue,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Ce,70:Oe,71:Ne,72:xe,73:Ae}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:K,44:Z},{15:48,43:K,44:Z},{15:49,43:K,44:Z},{10:50,43:O,51:M,53:Y,54:z,55:U},{10:51,43:O,51:M,53:Y,54:z,55:U},{15:52,43:K,44:Z},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:O,51:M,53:Y,54:z,55:U},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:n,10:8,21:h,23:y,25:T,27:_,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:C,37:g,38:m,39:V,40:W,41:X,43:O,46:G,47:te,51:M,53:Y,54:z,55:U},{12:ae,42:64,44:ne,45:j,48:66,49:67,51:oe,52:le},s(ue,[2,41]),s(ue,[2,42]),{15:72,43:K,44:Z,45:j},{12:ae,42:73,44:ne,45:j,48:66,49:67,51:oe,52:le},{6:de,9:be,19:[1,75],35:74,50:pe},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:j,69:Ce,70:Oe,71:Ne,72:xe,73:Ae}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Ce,70:Oe,71:Ne,72:xe,73:Ae},s(Ke,[2,82]),s(Ke,[2,83]),s(d,[2,31]),s(d,Ue),{6:de,9:be,35:90,45:Ze,50:pe},{43:[1,92],44:[1,93]},s(je,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:j}),{6:de,9:be,35:95,45:Ze,50:pe},s(d,[2,32]),{10:97,36:96,43:O,51:M,53:Y,54:z,55:U},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:fe,53:ke,76:ge},{15:102,43:K,44:Z},{10:103,43:O,51:M,53:Y,54:z,55:U},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:qe,66:We}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(ue,[2,43]),s(ue,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:O,51:M,53:Y,54:z,55:U},s(He,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:j},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:We}),s(ce,[2,67]),s(ve,[2,72]),s(ce,[2,75]),s(ve,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:K,44:Z},s(je,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:de,9:be,35:125,50:pe},s(He,[2,35]),{13:126,43:fe,53:ke,76:ge},{15:127,43:K,44:Z},{13:128,43:fe,53:ke,76:ge},s(d,[2,12]),s(ce,[2,68]),{63:129,65:qe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:j}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:j},s(d,[2,9]),s(ve,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:fe,53:ke,76:ge},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(o,c){if(c.recoverable)this.trace(o);else{var p=Error(o);throw p.hash=c,p}},"parseError"),parse:t(function(o){var c=this,p=[0],r=[],E=[null],e=[],he=this.table,i="",_e=0,Qe=0,Xe=0,rt=2,Je=1,at=e.slice.call(arguments,1),S=Object.create(this.lexer),H={yy:{}};for(var we in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,we))H.yy[we]=this.yy[we];if(S.setInput(o,H.yy),H.yy.lexer=S,H.yy.parser=this,typeof S.yylloc>"u")S.yylloc={};var Ve=S.yylloc;e.push(Ve);var nt=S.options&&S.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ot(w){p.length=p.length-2*w,E.length=E.length-w,e.length=e.length-w}t(ot,"popStack");function $e(){var w=r.pop()||S.lex()||Je;if(typeof w!=="number"){if(w instanceof Array)r=w,w=r.pop();w=c.symbols_[w]||w}return w}t($e,"lex");var x,Me,Q,v,pt,Ge,ee={},me,B,et,Se;while(!0){if(Q=p[p.length-1],this.defaultActions[Q])v=this.defaultActions[Q];else{if(x===null||typeof x>"u")x=$e();v=he[Q]&&he[Q][x]}if(typeof v>"u"||!v.length||!v[0]){var Ye="";Se=[];for(me in he[Q])if(this.terminals_[me]&&me>rt)Se.push("'"+this.terminals_[me]+"'");if(S.showPosition)Ye="Parse error on line "+(_e+1)+`:
2
+ `+S.showPosition()+`
3
+ Expecting `+Se.join(", ")+", got '"+(this.terminals_[x]||x)+"'";else Ye="Parse error on line "+(_e+1)+": Unexpected "+(x==Je?"end of input":"'"+(this.terminals_[x]||x)+"'");this.parseError(Ye,{text:S.match,token:this.terminals_[x]||x,line:S.yylineno,loc:Ve,expected:Se})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+x);switch(v[0]){case 1:if(p.push(x),E.push(S.yytext),e.push(S.yylloc),p.push(v[1]),x=null,!Me){if(Qe=S.yyleng,i=S.yytext,_e=S.yylineno,Ve=S.yylloc,Xe>0)Xe--}else x=Me,Me=null;break;case 2:if(B=this.productions_[v[1]][1],ee.$=E[E.length-B],ee._$={first_line:e[e.length-(B||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(B||1)].first_column,last_column:e[e.length-1].last_column},nt)ee._$.range=[e[e.length-(B||1)].range[0],e[e.length-1].range[1]];if(Ge=this.performAction.apply(ee,[i,Qe,_e,H.yy,v[1],E,e].concat(at)),typeof Ge<"u")return Ge;if(B)p=p.slice(0,-1*B*2),E=E.slice(0,-1*B),e=e.slice(0,-1*B);p.push(this.productions_[v[1]][0]),E.push(ee.$),e.push(ee._$),et=he[p[p.length-2]][p[p.length-1]],p.push(et);break;case 3:return!0}}return!0},"parse")},it=function(){var q={EOF:1,parseError:t(function(c,p){if(this.yy.parser)this.yy.parser.parseError(c,p);else throw Error(c)},"parseError"),setInput:t(function(o,c){if(this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);if(c)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var c=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1)this.yylineno-=p.length-1;var E=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===r.length?this.yylloc.first_column:0)+r[r.length-p.length].length-p[0].length:this.yylloc.first_column-c},this.options.ranges)this.yylloc.range=[E[0],E[0]+this.yyleng-c];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),c=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
+ `+c+"^"},"showPosition"),test_match:t(function(o,c){var p,r,E;if(this.options.backtrack_lexer){if(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)E.yylloc.range=this.yylloc.range.slice(0)}if(r=o[0].match(/(?:\r\n?|\n).*/g),r)this.yylineno+=r.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],p=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(p)return p;else if(this._backtrack){for(var e in E)this[e]=E[e];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,c,p,r;if(!this._more)this.yytext="",this.match="";var E=this._currentRules();for(var e=0;e<E.length;e++)if(p=this._input.match(this.rules[E[e]]),p&&(!c||p[0].length>c[0].length)){if(c=p,r=e,this.options.backtrack_lexer)if(o=this.test_match(p,E[e]),o!==!1)return o;else if(this._backtrack){c=!1;continue}else return!1;else if(!this.options.flex)break}if(c){if(o=this.test_match(c,E[r]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var c=this.next();if(c)return c;else return this.lex()},"lex"),begin:t(function(c){this.conditionStack.push(c)},"begin"),popState:t(function(){var c=this.conditionStack.length-1;if(c>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(c){if(c=this.conditionStack.length-1-Math.abs(c||0),c>=0)return this.conditionStack[c];else return"INITIAL"},"topState"),pushState:t(function(c){this.begin(c)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(c,p,r,E){var e=E;switch(r){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return p.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return p.yytext[0];case 82:return 6}},"anonymous"),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,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/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,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/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,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,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,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return q}();De.lexer=it;function ye(){this.yy={}}return t(ye,"Parser"),ye.prototype=De,De.Parser=ye,new ye}();Pe.parser=Pe;var lt=Pe,ct=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=R,this.getAccTitle=I,this.setAccDescription=L,this.getAccDescription=D,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getConfig=t(()=>u().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),this.addSubGraph=this.addSubGraph.bind(this)}static{t(this,"ErDB")}addEntity(s,l=""){if(!this.entities.has(s))this.entities.set(s,{id:`entity-${s}-${this.entities.size}`,label:s,attributes:[],alias:l,shape:"erBox",look:u().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),a.info("Added new entity :",s);else if(!this.entities.get(s)?.alias&&l)this.entities.get(s).alias=l,a.info(`Add alias '${l}' to entity '${s}'`);return this.entities.get(s)}getEntity(s){return this.entities.get(s)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(s,l){let b=this.addEntity(s),n;for(n=l.length-1;n>=0;n--){if(!l[n].keys)l[n].keys=[];if(!l[n].comment)l[n].comment="";b.attributes.push(l[n]),a.debug("Added attribute ",l[n].name)}}addRelationship(s,l,b,n){let h;if(this.subGraphLookup.has(s))h=s;else{let _=this.addEntity(s);if(!_)return;h=_.id}let y;if(this.subGraphLookup.has(b))y=b;else{let _=this.addEntity(b);if(!_)return;y=_.id}let T={entityA:h,roleA:l,entityB:y,relSpec:n};this.relationships.push(T),a.debug("Added new relationship :",T)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(s){this.direction=s}getCompiledStyles(s){let l=[];for(let b of s){let n=this.classes.get(b);if(n?.styles)l=[...l,...n.styles??[]].map((h)=>h.trim());if(n?.textStyles)l=[...l,...n.textStyles??[]].map((h)=>h.trim())}return l}addCssStyles(s,l){for(let b of s){let n=this.entities.get(b),h=this.subGraphLookup.get(b);if(!l)continue;if(n)for(let y of l)n.cssStyles.push(y);if(h){if(!h.cssStyles)h.cssStyles=[];for(let y of l)h.cssStyles.push(y)}}}addClass(s,l){s.forEach((b)=>{let n=this.classes.get(b);if(n===void 0)n={id:b,styles:[],textStyles:[]},this.classes.set(b,n);if(l)l.forEach(function(h){if(/color/.exec(h)){let y=h.replace("fill","bgFill");n.textStyles.push(y)}n.styles.push(h)})})}addSubGraph(s,l,b){let n=s.text.trim(),h=b.text,T=t((m)=>{let V=new Set,W;return{nodeList:m.filter((O)=>{if(O?.stmt){if(O.stmt==="dir")W=O.value;return!1}if(typeof O!=="string")return!1;let G=O.trim();if(!G)return!1;if(V.has(G))return!1;return V.add(G),!0}),dir:W}},"uniq")(l.flat()),{nodeList:_,dir:C}=T;n=n??"subGraph"+this.subCount,h=h||"",h=this.sanitizeText(h),this.subCount=this.subCount+1;let g={id:n,nodes:_,title:h.trim(),classes:[],cssStyles:[],dir:C,labelType:this.sanitizeNodeLabelType(b?.type)};return a.info("Adding",g.id,g.nodes,g.dir),g.nodes=this.makeUniq(g,this.subGraphs).nodes,this.subGraphs.push(g),this.subGraphLookup.set(n,g),n}getSubGraphs(){return this.subGraphs}setClass(s,l){for(let b of s){let n=this.entities.get(b);if(n)for(let y of l)n.cssClasses+=" "+y;let h=this.subGraphLookup.get(b);if(h)for(let y of l)h.classes.push(y)}}subgraphNodeCache(s){let l=new Set;for(let b of s)for(let n of b.nodes)l.add(n);return l}makeUniq(s,l){let b=this.subgraphNodeCache(l),n=[];return s.nodes.forEach((h,y)=>{if(b.has(h))a.warn(`Entity '${h}' already belongs to another subgraph and will be ignored`);else n.push(s.nodes[y])}),{nodes:n}}sanitizeText(s){return k.sanitizeText(s,u())}sanitizeNodeLabelType(s){switch(s){case"markdown":case"string":case"text":return s;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,A()}getData(){let s=[],l=[],b=u(),n=this.getSubGraphs(),h=new Map,y=new Map;for(let g=n.length-1;g>=0;g--){let m=n[g];if(m.nodes.length>0)y.set(m.id,!0);for(let V of m.nodes)h.set(V,m.id)}for(let g=n.length-1;g>=0;g--){let m=n[g];s.push({id:m.id,label:m.title,labelStyle:"",labelType:m.labelType,parentId:h.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssStyles:m.cssStyles,cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:b.look})}let T=new Set(n.map((g)=>g.id)),_=0;for(let g of this.entities.keys()){if(T.has(g))continue;let m=this.entities.get(g);if(m)m.cssCompiledStyles=this.getCompiledStyles(m.cssClasses.split(" ")),m.colorIndex=_++,s.push({...m,parentId:h.get(g),isGroup:!1})}let C=0;for(let g of this.relationships){let m={id:vt(g.entityA,g.entityB,{prefix:"id",counter:C++}),type:"normal",curve:"basis",start:g.entityA,end:g.entityB,label:g.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:g.relSpec.cardB.toLowerCase(),arrowTypeEnd:g.relSpec.cardA.toLowerCase(),pattern:g.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:b.look,labelType:"markdown"};l.push(m)}return{nodes:s,edges:l,other:{},config:b,direction:this.direction}}},st={};Hn(st,{draw:()=>ht});var ht=t(async function(s,l,b,n){a.info("REF0:"),a.info("Drawing er diagram (unified)",l);let{securityLevel:h,er:y,layout:T}=u(),_=n.db.getData(),C=Be(l,h);_.type=n.type,_.layoutAlgorithm=ze(T),_.config.flowchart.nodeSpacing=y?.nodeSpacing||140,_.config.flowchart.rankSpacing=y?.rankSpacing||80,_.direction=n.db.getDirection();let{config:g}=_,{look:m}=g;if(m==="neo")_.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else _.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];_.diagramId=l,await Fe(_,C);let V=C.selectAll('[id*="-background"]');if(Array.from(V).length>0)V.each(function(){let X=f(this),G=X.attr("id").replace("-background",""),te=C.select(`#${CSS.escape(G)}`);if(!te.empty()){let M=te.attr("transform");X.attr("transform",M)}});let W=8;F.insertTitle(C,"erDiagramTitleText",y?.titleTopMargin??25,n.db.getDiagramTitle()),Re(C,W,"erDiagram",y?.useMaxWidth??!0)},"draw"),tt=t((s,l)=>{let b=In,n=b(s,"r"),h=b(s,"g"),y=b(s,"b");return Le(n,h,y,l)},"fade"),ut=t((s)=>{let{theme:l,bkgColorArray:b,borderColorArray:n}=s;if(!Te(l,n))return"";let h=Ee(s.look),y=Ie(b),T="";for(let _=0;_<cn(n);_++){let C=n[_],g=y?`fill: ${b[_%b.length]};`:"";T+=`
7
7
 
8
- [data-look="${u}"][data-color-id="color-${_}"].node path {
9
- stroke: ${v};
8
+ [data-look="${h}"][data-color-id="color-${_}"].node path {
9
+ stroke: ${C};
10
10
  ${g}
11
11
  }
12
12
 
13
- [data-look="${u}"][data-color-id="color-${_}"].node rect {
14
- stroke: ${v};
13
+ [data-look="${h}"][data-color-id="color-${_}"].node rect {
14
+ stroke: ${C};
15
15
  ${g}
16
16
  }
17
- `}return x},"genColor"),bt=t((s)=>{let{look:c,theme:f,erEdgeLabelBackground:n,strokeWidth:u}=s;return`
18
- ${dt(s)}
17
+ `}return T},"genColor"),dt=t((s)=>{let{look:l,theme:b,erEdgeLabelBackground:n,strokeWidth:h}=s;return`
18
+ ${ut(s)}
19
19
  .entityBox {
20
20
  fill: ${s.mainBkg};
21
21
  stroke: ${s.nodeBorder};
@@ -31,14 +31,14 @@ Expecting `+Ie.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Pe="Parse e
31
31
  }
32
32
 
33
33
  .labelBkg {
34
- background-color: ${ra.has(f)&&n?n:st(s.tertiaryColor,0.5)};
34
+ background-color: ${Si.has(b)&&n?n:tt(s.tertiaryColor,0.5)};
35
35
  }
36
36
 
37
37
  .edgeLabel {
38
- background-color: ${ra.has(f)&&n?n:s.edgeLabelBackground};
38
+ background-color: ${Si.has(b)&&n?n:s.edgeLabelBackground};
39
39
  }
40
40
  .edgeLabel .label rect {
41
- fill: ${ra.has(f)&&n?n:s.edgeLabelBackground};
41
+ fill: ${Si.has(b)&&n?n:s.edgeLabelBackground};
42
42
  }
43
43
  .edgeLabel .label text {
44
44
  fill: ${s.textColor};
@@ -65,12 +65,12 @@ Expecting `+Ie.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Pe="Parse e
65
65
  {
66
66
  fill: ${s.mainBkg};
67
67
  stroke: ${s.nodeBorder};
68
- stroke-width: ${c==="neo"?u:"1px"};
68
+ stroke-width: ${l==="neo"?h:"1px"};
69
69
  }
70
70
 
71
71
  .relationshipLine {
72
72
  stroke: ${s.lineColor};
73
- stroke-width: ${c==="neo"?u:"1px"};
73
+ stroke-width: ${l==="neo"?h:"1px"};
74
74
  fill: none;
75
75
  }
76
76
 
@@ -80,7 +80,7 @@ Expecting `+Ie.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Pe="Parse e
80
80
  stroke-width: 1;
81
81
  }
82
82
  [data-look=neo].labelBkg {
83
- background-color: ${st(s.tertiaryColor,0.5)};
83
+ background-color: ${tt(s.tertiaryColor,0.5)};
84
84
  }
85
85
 
86
86
  .cluster rect {
@@ -96,4 +96,4 @@ Expecting `+Ie.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Pe="Parse e
96
96
  .cluster-label text {
97
97
  fill: ${s.titleColor??s.textColor};
98
98
  }
99
- `},"getStyles"),pt=bt,Vt={parser:ct,get db(){return new ht},renderer:it,styles:pt};export{Vt as diagram};
99
+ `},"getStyles"),bt=dt,wt={parser:lt,get db(){return new ct},renderer:st,styles:bt};export{wt as diagram};
Binary file
Binary file
@@ -1 +1 @@
1
- import{L,r,e,n,Ae,st,U,ne,co}from"./chunk-bcp6na49.js";function Q(s){let a=L(Ae);a?.useTheme?.();let t=s.payload,[i,m]=r(!1);if(!t||t.state==="pending")return null;let h=t.questions.map((o)=>o.header).join(" · "),l=t.state==="answered",u=l?U:st,d=l?"text-success":"text-faint",f=l?"已回答":t.state==="dismissed"?"已忽略提问":"提问已取消",p=l?g(t):h;if(a){let{Collapsible:o,CollapsibleTrigger:y,CollapsibleContent:N,Chevron:v,cn:b}=a;return n(o,{open:i,onOpenChange:m,className:"w-full text-xs text-ink/90 animate-fade",children:[n(y,{className:a.style("chat.timelineRow","cursor-pointer select-none"),children:[e("span",{className:"flex size-4 shrink-0 items-center justify-center",children:e(u,{className:b("size-3.5",d)})}),e("span",{className:"shrink-0",children:f}),e("span",{className:"min-w-0 flex-1 truncate opacity-80",title:p,children:p}),e(v,{className:"size-3.5 shrink-0 text-faint opacity-0 transition-opacity group-hover/collapsible:opacity-100 group-data-[state=open]/collapsible:opacity-100"})]}),e(N,{children:e("div",{className:"mt-0.5 mb-1.5 ml-2 border-l border-line py-1 pl-[15px]",children:e(x,{question:t})})})]})}return n("div",{role:"status",className:"w-full animate-fade",children:[n("button",{type:"button","aria-expanded":i,className:"group -mx-2 flex w-[calc(100%+1rem)] cursor-pointer items-center gap-2 rounded-lg px-2 py-1 text-left text-[12.5px] text-faint transition-colors select-none hover:bg-raised/60 hover:text-dim",onClick:()=>m((o)=>!o),children:[e("span",{className:"flex size-4 shrink-0 items-center justify-center",children:e(u,{className:`size-3.5 shrink-0 ${d}`})}),e("span",{className:"shrink-0",children:f}),e("span",{className:"min-w-0 flex-1 truncate opacity-80",title:p,children:p}),e(ne,{className:`size-3.5 shrink-0 text-faint opacity-0 transition-[opacity,transform] group-hover:opacity-100 ${i?"rotate-180 opacity-100":""}`})]}),i&&e("div",{className:"mt-0.5 mb-1.5 ml-2 border-l border-line py-1 pl-[15px]",children:e(x,{question:t})})]})}function c(s){if(!s)return"未作答";let a=s.selected.map((t)=>co(t).title);if(s.other)a.push(`其他:${s.other}`);return a.length?a.join("、"):"未作答"}function g(s){if(s.questions.length===1)return`${s.questions[0]?.header??""} · ${c(s.answers?.[0])}`;return s.questions.map((a,t)=>`${a.header} → ${c(s.answers?.[t])}`).join(";")}function x(s){let a=s.question;return e("div",{className:"space-y-2 text-xs",children:a.questions.map((t,i)=>n("div",{className:"space-y-0.5",children:[n("div",{className:"text-dim",children:[e("span",{className:"font-medium text-ink/90",children:t.header})," · ",t.question]}),e("div",{className:"text-ink",children:c(a.answers?.[i])})]},t.header))})}export{Q as QuestionCard};
1
+ import{M,r,e,n,Je,Ht,Z,ge,Hs}from"./chunk-fba06jm8.js";function Q(s){let a=M(Je);a?.useTheme?.();let t=s.payload,[i,m]=r(!1);if(!t||t.state==="pending")return null;let h=t.questions.map((o)=>o.header).join(" · "),l=t.state==="answered",u=l?Z:Ht,d=l?"text-success":"text-faint",f=l?"已回答":t.state==="dismissed"?"已忽略提问":"提问已取消",p=l?g(t):h;if(a){let{Collapsible:o,CollapsibleTrigger:y,CollapsibleContent:N,Chevron:v,cn:b}=a;return n(o,{open:i,onOpenChange:m,className:"w-full text-xs text-ink/90 animate-fade",children:[n(y,{className:a.style("chat.timelineRow","cursor-pointer select-none"),children:[e("span",{className:"flex size-4 shrink-0 items-center justify-center",children:e(u,{className:b("size-3.5",d)})}),e("span",{className:"shrink-0",children:f}),e("span",{className:"min-w-0 flex-1 truncate opacity-80",title:p,children:p}),e(v,{className:"size-3.5 shrink-0 text-faint opacity-0 transition-opacity group-hover/collapsible:opacity-100 group-data-[state=open]/collapsible:opacity-100"})]}),e(N,{children:e("div",{className:"mt-0.5 mb-1.5 ml-2 border-l border-line py-1 pl-[15px]",children:e(x,{question:t})})})]})}return n("div",{role:"status",className:"w-full animate-fade",children:[n("button",{type:"button","aria-expanded":i,className:"group -mx-2 flex w-[calc(100%+1rem)] cursor-pointer items-center gap-2 rounded-lg px-2 py-1 text-left text-[12.5px] text-faint transition-colors select-none hover:bg-raised/60 hover:text-dim",onClick:()=>m((o)=>!o),children:[e("span",{className:"flex size-4 shrink-0 items-center justify-center",children:e(u,{className:`size-3.5 shrink-0 ${d}`})}),e("span",{className:"shrink-0",children:f}),e("span",{className:"min-w-0 flex-1 truncate opacity-80",title:p,children:p}),e(ge,{className:`size-3.5 shrink-0 text-faint opacity-0 transition-[opacity,transform] group-hover:opacity-100 ${i?"rotate-180 opacity-100":""}`})]}),i&&e("div",{className:"mt-0.5 mb-1.5 ml-2 border-l border-line py-1 pl-[15px]",children:e(x,{question:t})})]})}function c(s){if(!s)return"未作答";let a=s.selected.map((t)=>Hs(t).title);if(s.other)a.push(`其他:${s.other}`);return a.length?a.join("、"):"未作答"}function g(s){if(s.questions.length===1)return`${s.questions[0]?.header??""} · ${c(s.answers?.[0])}`;return s.questions.map((a,t)=>`${a.header} → ${c(s.answers?.[t])}`).join(";")}function x(s){let a=s.question;return e("div",{className:"space-y-2 text-xs",children:a.questions.map((t,i)=>n("div",{className:"space-y-0.5",children:[n("div",{className:"text-dim",children:[e("span",{className:"font-medium text-ink/90",children:t.header})," · ",t.question]}),e("div",{className:"text-ink",children:c(a.answers?.[i])})]},t.header))})}export{Q as QuestionCard};
Binary file
Binary file
Binary file
Binary file