@bkm016/basalt 0.1.20 → 0.1.21

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 (619) hide show
  1. package/{chunk-1tbv5t08.js → chunk-03b5jh31.js} +1 -1
  2. package/{chunk-3sg32v3n.js → chunk-0x0459qp.js} +1 -1
  3. package/{chunk-nszq2z0w.js → chunk-16yz5ebn.js} +1 -1
  4. package/chunk-1kdd7xry.js +2 -0
  5. package/{chunk-cks36jdh.js → chunk-225dyk1y.js} +2 -2
  6. package/{chunk-v7da0aqn.js → chunk-2fymxwe7.js} +2 -2
  7. package/{chunk-mde2dd79.js → chunk-2m2sa0bp.js} +1 -1
  8. package/{chunk-fgjw0r6g.js → chunk-35y6nf6k.js} +4 -4
  9. package/chunk-3qxq264t.js +2 -0
  10. package/{chunk-cwrf78vs.js → chunk-3s8rpc1w.js} +2 -2
  11. package/{chunk-wj09qkyw.js → chunk-3t8wz9w8.js} +2 -2
  12. package/{chunk-gg3kfa12.js → chunk-43qf44t8.js} +2 -2
  13. package/chunk-49hsqsht.js +2 -0
  14. package/chunk-4fj91gt1.js +4 -0
  15. package/{chunk-tb3zsqe8.js → chunk-51a0843g.js} +1 -1
  16. package/{chunk-51pfvmhh.js → chunk-5h59tby8.js} +69 -69
  17. package/{chunk-bkhsva5n.js → chunk-5m51j40e.js} +3 -3
  18. package/{chunk-2fts9k52.js → chunk-5mt8xxex.js} +2 -2
  19. package/{chunk-5e7yegea.js → chunk-85sjfyjd.js} +1 -1
  20. package/chunk-97ntcrm7.js +2 -0
  21. package/{chunk-0bgg0hdd.js → chunk-9t3v8c3m.js} +1 -1
  22. package/{chunk-7kz9435k.js → chunk-9w1m9av8.js} +3 -3
  23. package/{chunk-d2f0hq8z.js → chunk-9x28stv0.js} +1 -1
  24. package/{chunk-c5pg2875.js → chunk-ak95r8mq.js} +254 -250
  25. package/{chunk-a1vdrgsh.js → chunk-bn1aaewd.js} +4 -4
  26. package/{chunk-agb771ak.js → chunk-c5ydt3vq.js} +2 -2
  27. package/{chunk-y83tnkr3.js → chunk-cjh5h31t.js} +2 -2
  28. package/{chunk-p0e82mee.js → chunk-cr0tqn6j.js} +2 -2
  29. package/{chunk-np2xnt1g.js → chunk-e8xywvv4.js} +2 -2
  30. package/{chunk-w6nc3jn7.js → chunk-ewaskman.js} +1 -1
  31. package/{chunk-w045zk55.js → chunk-feyt85gg.js} +1 -1
  32. package/{chunk-s8m4svhf.js → chunk-ftg4b5pa.js} +1 -1
  33. package/{chunk-s819vmwh.js → chunk-g6cc7ac1.js} +2 -2
  34. package/{chunk-5ja0vsam.js → chunk-gdx1j9c5.js} +3 -3
  35. package/{chunk-h2pp8mnh.js → chunk-h00wjps7.js} +1 -1
  36. package/{chunk-4dgqcp6q.js → chunk-h1fwdz4h.js} +1 -1
  37. package/{chunk-6en06hkk.js → chunk-hhxtc9jn.js} +1 -1
  38. package/chunk-hrn2ss1a.js +2 -0
  39. package/chunk-jhwb962k.js +15 -0
  40. package/{chunk-11xxfc0x.js → chunk-jpwr1sd2.js} +1 -1
  41. package/chunk-jy07y4pv.js +7 -0
  42. package/{chunk-0g8rtf05.js → chunk-k9x1r69s.js} +8 -8
  43. package/chunk-kb5h9rmb.js +2 -0
  44. package/{chunk-eps1epfr.js → chunk-kgnd32hn.js} +2 -2
  45. package/{chunk-w9fdcchk.js → chunk-kka12j10.js} +1 -1
  46. package/{chunk-1gaj43fx.js → chunk-kypdthjg.js} +1 -1
  47. package/{chunk-30bbdzma.js → chunk-m9386732.js} +12 -12
  48. package/{chunk-qxpx8dn6.js → chunk-np123myw.js} +3 -3
  49. package/chunk-ntntwtxn.js +5 -0
  50. package/{chunk-29g01nrz.js → chunk-qn70tm91.js} +5 -5
  51. package/{chunk-yk29stq0.js → chunk-qtgc74er.js} +2 -2
  52. package/{chunk-tp885r8h.js → chunk-qz6ybxjg.js} +9 -9
  53. package/chunk-r36b12zb.js +2 -0
  54. package/{chunk-as2mwf79.js → chunk-re8n2te5.js} +1 -1
  55. package/{chunk-y3vap4a1.js → chunk-rpbxbb92.js} +1 -1
  56. package/chunk-rqrjzz73.js +2 -0
  57. package/{chunk-tpetsqzt.js → chunk-scy1p7x2.js} +3 -3
  58. package/{chunk-svx7mz0w.js → chunk-sq5ppnr3.js} +3 -3
  59. package/{chunk-e3bgzeb3.js → chunk-syhhzr1j.js} +2 -2
  60. package/chunk-tmq8ktys.js +3 -0
  61. package/{chunk-sm9fpy18.js → chunk-ttv805sb.js} +8 -8
  62. package/{chunk-eyyxqb6y.js → chunk-v878x8zr.js} +2 -2
  63. package/{chunk-a2z1cy84.js → chunk-ve1b6vg6.js} +1 -1
  64. package/chunk-w3n8wm44.js +2 -0
  65. package/{chunk-z9p2ry9w.js → chunk-w3skxmvx.js} +2 -2
  66. package/chunk-wxzk086k.js +2 -0
  67. package/chunk-y8mf9tcj.js +25 -0
  68. package/{chunk-ewr51fwc.js → chunk-z4g2q36h.js} +1 -1
  69. package/compiled.js +8 -8
  70. package/package.json +1 -1
  71. package/ui-test-worker.js +16 -16
  72. package/web/{chunk-mbpv2w5h.js → chunk-07dd0jed.js} +2 -2
  73. package/web/chunk-07dd0jed.js.br +0 -0
  74. package/web/chunk-07dd0jed.js.gz +0 -0
  75. package/web/{chunk-d7f85w1y.js → chunk-0hvyq55w.js} +1 -1
  76. package/web/chunk-0hvyq55w.js.br +0 -0
  77. package/web/chunk-0hvyq55w.js.gz +0 -0
  78. package/web/{chunk-ahdca62g.js → chunk-0q5drhbk.js} +1 -1
  79. package/web/chunk-0q5drhbk.js.br +0 -0
  80. package/web/chunk-0q5drhbk.js.gz +0 -0
  81. package/web/{chunk-zthww0ws.js → chunk-0w6ta3ps.js} +1 -1
  82. package/web/chunk-0w6ta3ps.js.br +0 -0
  83. package/web/chunk-0w6ta3ps.js.gz +0 -0
  84. package/web/{chunk-aw9bwd4w.js → chunk-16b5anw4.js} +2 -2
  85. package/web/chunk-16b5anw4.js.br +0 -0
  86. package/web/chunk-16b5anw4.js.gz +0 -0
  87. package/web/{chunk-53cg6pxm.js → chunk-21d8pzcm.js} +2 -2
  88. package/web/chunk-21d8pzcm.js.br +0 -0
  89. package/web/{chunk-53cg6pxm.js.gz → chunk-21d8pzcm.js.gz} +0 -0
  90. package/web/{chunk-72st75n7.js → chunk-2c4affp1.js} +3 -3
  91. package/web/chunk-2c4affp1.js.br +0 -0
  92. package/web/chunk-2c4affp1.js.gz +0 -0
  93. package/web/{chunk-1ghnag5v.js → chunk-2dykyq1n.js} +1 -1
  94. package/web/chunk-2dykyq1n.js.br +0 -0
  95. package/web/chunk-2dykyq1n.js.gz +0 -0
  96. package/web/{chunk-znrsm604.js → chunk-2h2w244w.js} +17 -17
  97. package/web/chunk-2h2w244w.js.br +0 -0
  98. package/web/chunk-2h2w244w.js.gz +0 -0
  99. package/web/{chunk-kdegb6pd.js → chunk-2hd51wb6.js} +5 -5
  100. package/web/chunk-2hd51wb6.js.br +0 -0
  101. package/web/chunk-2hd51wb6.js.gz +0 -0
  102. package/web/{chunk-2rnnvxa5.js → chunk-2tc6krye.js} +3 -3
  103. package/web/chunk-2tc6krye.js.br +0 -0
  104. package/web/chunk-2tc6krye.js.gz +0 -0
  105. package/web/{chunk-7h59ac2b.js → chunk-2w27acew.js} +1 -1
  106. package/web/chunk-2w27acew.js.br +0 -0
  107. package/web/chunk-2w27acew.js.gz +0 -0
  108. package/web/{chunk-gbcf0rdk.js → chunk-2w4rdnhj.js} +1 -1
  109. package/web/chunk-2w4rdnhj.js.br +0 -0
  110. package/web/chunk-2w4rdnhj.js.gz +0 -0
  111. package/web/{chunk-gj6bdv1y.js → chunk-31vxes2p.js} +9 -9
  112. package/web/chunk-31vxes2p.js.br +0 -0
  113. package/web/chunk-31vxes2p.js.gz +0 -0
  114. package/web/chunk-32qd2y5h.js +1 -0
  115. package/web/chunk-32qd2y5h.js.br +0 -0
  116. package/web/chunk-32qd2y5h.js.gz +0 -0
  117. package/web/{chunk-qx5ab39c.js → chunk-39kaz6fa.js} +2 -2
  118. package/web/chunk-39kaz6fa.js.br +0 -0
  119. package/web/chunk-39kaz6fa.js.gz +0 -0
  120. package/web/{chunk-mj8dzc8q.js → chunk-3d3y4tep.js} +5 -5
  121. package/web/chunk-3d3y4tep.js.br +0 -0
  122. package/web/chunk-3d3y4tep.js.gz +0 -0
  123. package/web/chunk-4makcmpw.js +1 -0
  124. package/web/chunk-4makcmpw.js.br +0 -0
  125. package/web/chunk-4makcmpw.js.gz +0 -0
  126. package/web/{chunk-1ps9fj5n.js → chunk-4zftsyq2.js} +2 -2
  127. package/web/chunk-4zftsyq2.js.br +0 -0
  128. package/web/chunk-4zftsyq2.js.gz +0 -0
  129. package/web/{chunk-bks2k04k.js → chunk-50wrjr22.js} +1 -1
  130. package/web/chunk-50wrjr22.js.br +0 -0
  131. package/web/chunk-50wrjr22.js.gz +0 -0
  132. package/web/{chunk-mhzqgzh0.js → chunk-55kw8p9r.js} +1 -1
  133. package/web/chunk-55kw8p9r.js.br +0 -0
  134. package/web/chunk-55kw8p9r.js.gz +0 -0
  135. package/web/{chunk-gpjytpyw.js → chunk-56tqa12m.js} +2 -2
  136. package/web/chunk-56tqa12m.js.br +0 -0
  137. package/web/chunk-56tqa12m.js.gz +0 -0
  138. package/web/{chunk-wbxz2bjb.js → chunk-595tqsv5.js} +1 -1
  139. package/web/chunk-595tqsv5.js.br +0 -0
  140. package/web/chunk-595tqsv5.js.gz +0 -0
  141. package/web/chunk-5h193k2c.js +1 -0
  142. package/web/chunk-5h193k2c.js.br +0 -0
  143. package/web/chunk-5h193k2c.js.gz +0 -0
  144. package/web/{chunk-k4pknkvp.js → chunk-5nbmnchg.js} +1 -1
  145. package/web/chunk-5nbmnchg.js.br +0 -0
  146. package/web/chunk-5nbmnchg.js.gz +0 -0
  147. package/web/{chunk-gk1bc3c3.js → chunk-5vc1wkwb.js} +1 -1
  148. package/web/chunk-5vc1wkwb.js.br +0 -0
  149. package/web/chunk-5vc1wkwb.js.gz +0 -0
  150. package/web/{chunk-tgeeggkh.js → chunk-5wgdprjp.js} +1 -1
  151. package/web/chunk-5wgdprjp.js.br +0 -0
  152. package/web/chunk-5wgdprjp.js.gz +0 -0
  153. package/web/{chunk-esckazz2.js → chunk-60fbfw70.js} +1 -1
  154. package/web/chunk-60fbfw70.js.br +0 -0
  155. package/web/chunk-60fbfw70.js.gz +0 -0
  156. package/web/{chunk-v5p2fds9.js → chunk-62z94rt2.js} +4 -4
  157. package/web/chunk-62z94rt2.js.br +0 -0
  158. package/web/chunk-62z94rt2.js.gz +0 -0
  159. package/web/chunk-67khfy00.css +1 -0
  160. package/web/chunk-67khfy00.css.br +0 -0
  161. package/web/chunk-67khfy00.css.gz +0 -0
  162. package/web/chunk-6bt2t0xt.js +8 -0
  163. package/web/chunk-6bt2t0xt.js.br +0 -0
  164. package/web/chunk-6bt2t0xt.js.gz +0 -0
  165. package/web/{chunk-h1c0m3g4.js → chunk-780qvh05.js} +3 -3
  166. package/web/chunk-780qvh05.js.br +0 -0
  167. package/web/chunk-780qvh05.js.gz +0 -0
  168. package/web/{chunk-k6fwzn0z.js → chunk-78t5dqea.js} +1 -1
  169. package/web/chunk-78t5dqea.js.br +0 -0
  170. package/web/chunk-78t5dqea.js.gz +0 -0
  171. package/web/chunk-7edmyret.js +1 -0
  172. package/web/chunk-7edmyret.js.br +0 -0
  173. package/web/chunk-7edmyret.js.gz +0 -0
  174. package/web/{chunk-cmhxtckb.js → chunk-7remkcff.js} +1 -1
  175. package/web/chunk-7remkcff.js.br +0 -0
  176. package/web/chunk-7remkcff.js.gz +0 -0
  177. package/web/chunk-7s062q01.js +1 -0
  178. package/web/chunk-7s062q01.js.br +0 -0
  179. package/web/chunk-7s062q01.js.gz +0 -0
  180. package/web/chunk-82zwwy0b.js +1 -0
  181. package/web/chunk-82zwwy0b.js.br +0 -0
  182. package/web/chunk-82zwwy0b.js.gz +0 -0
  183. package/web/{chunk-wa8wr2y9.js → chunk-8c6h952g.js} +9 -9
  184. package/web/chunk-8c6h952g.js.br +0 -0
  185. package/web/chunk-8c6h952g.js.gz +0 -0
  186. package/web/chunk-8wgev3hd.js +1 -0
  187. package/web/chunk-8wgev3hd.js.br +0 -0
  188. package/web/chunk-8wgev3hd.js.gz +0 -0
  189. package/web/chunk-9vcbnf1m.js +1 -0
  190. package/web/chunk-9vcbnf1m.js.br +0 -0
  191. package/web/chunk-9vcbnf1m.js.gz +0 -0
  192. package/web/{chunk-kedjfh66.js → chunk-abahqsws.js} +1 -1
  193. package/web/chunk-abahqsws.js.br +0 -0
  194. package/web/chunk-abahqsws.js.gz +0 -0
  195. package/web/{chunk-vhpzp7zd.js → chunk-acv6gk2b.js} +1 -1
  196. package/web/chunk-acv6gk2b.js.br +0 -0
  197. package/web/chunk-acv6gk2b.js.gz +0 -0
  198. package/web/{chunk-bg0qgabv.js → chunk-ajpzsx51.js} +1 -1
  199. package/web/chunk-ajpzsx51.js.br +0 -0
  200. package/web/chunk-ajpzsx51.js.gz +0 -0
  201. package/web/chunk-b1b9txvk.js +1 -0
  202. package/web/chunk-b1b9txvk.js.br +0 -0
  203. package/web/chunk-b1b9txvk.js.gz +0 -0
  204. package/web/{chunk-qjg6dw46.js → chunk-b83bzjcx.js} +73 -73
  205. package/web/chunk-b83bzjcx.js.br +0 -0
  206. package/web/chunk-b83bzjcx.js.gz +0 -0
  207. package/web/{chunk-v6snw1sw.js → chunk-c1zhat04.js} +1 -1
  208. package/web/chunk-c1zhat04.js.br +0 -0
  209. package/web/chunk-c1zhat04.js.gz +0 -0
  210. package/web/{chunk-186rp10x.js → chunk-c37hhmtd.js} +1 -1
  211. package/web/chunk-c37hhmtd.js.br +0 -0
  212. package/web/chunk-c37hhmtd.js.gz +0 -0
  213. package/web/{chunk-wvqcbp4a.js → chunk-c69t0ysj.js} +1 -1
  214. package/web/chunk-c69t0ysj.js.br +0 -0
  215. package/web/chunk-c69t0ysj.js.gz +0 -0
  216. package/web/chunk-caz85hz4.js +1 -0
  217. package/web/chunk-caz85hz4.js.br +0 -0
  218. package/web/chunk-caz85hz4.js.gz +0 -0
  219. package/web/{chunk-6n1ha6ta.js → chunk-cbtpaf3e.js} +1 -1
  220. package/web/chunk-cbtpaf3e.js.br +0 -0
  221. package/web/chunk-cbtpaf3e.js.gz +0 -0
  222. package/web/{chunk-dmhezjv3.js → chunk-d1gga18f.js} +4 -4
  223. package/web/chunk-d1gga18f.js.br +0 -0
  224. package/web/chunk-d1gga18f.js.gz +0 -0
  225. package/web/{chunk-q0srq8g5.js → chunk-d4kjy2qn.js} +1 -1
  226. package/web/chunk-d4kjy2qn.js.br +0 -0
  227. package/web/chunk-d4kjy2qn.js.gz +0 -0
  228. package/web/{chunk-v2bkkhb8.js → chunk-dbv8qpen.js} +41 -41
  229. package/web/chunk-dbv8qpen.js.br +0 -0
  230. package/web/chunk-dbv8qpen.js.gz +0 -0
  231. package/web/{chunk-37hmswdk.js → chunk-e6r1sb5r.js} +5 -5
  232. package/web/chunk-e6r1sb5r.js.br +0 -0
  233. package/web/chunk-e6r1sb5r.js.gz +0 -0
  234. package/web/chunk-ep5qff8m.js +1 -0
  235. package/web/chunk-ep5qff8m.js.br +0 -0
  236. package/web/chunk-ep5qff8m.js.gz +0 -0
  237. package/web/{chunk-c28crzwk.js → chunk-ex66t805.js} +1 -1
  238. package/web/chunk-ex66t805.js.br +0 -0
  239. package/web/chunk-ex66t805.js.gz +0 -0
  240. package/web/chunk-fb8qtyqg.js +1 -0
  241. package/web/chunk-fb8qtyqg.js.br +0 -0
  242. package/web/chunk-fb8qtyqg.js.gz +0 -0
  243. package/web/{chunk-vpbnyz43.js → chunk-fbzhgaak.js} +1 -1
  244. package/web/chunk-fbzhgaak.js.br +0 -0
  245. package/web/chunk-fbzhgaak.js.gz +0 -0
  246. package/web/{chunk-9n1nsdqs.js → chunk-ffwyfdg4.js} +1 -1
  247. package/web/chunk-ffwyfdg4.js.br +0 -0
  248. package/web/chunk-ffwyfdg4.js.gz +0 -0
  249. package/web/{chunk-0tcmnvab.js → chunk-fsz1msjr.js} +1 -1
  250. package/web/chunk-fsz1msjr.js.br +0 -0
  251. package/web/chunk-fsz1msjr.js.gz +0 -0
  252. package/web/{chunk-nb58m79v.js → chunk-fztzcy7c.js} +1 -1
  253. package/web/chunk-fztzcy7c.js.br +0 -0
  254. package/web/chunk-fztzcy7c.js.gz +0 -0
  255. package/web/chunk-g4st8a4e.js +1 -0
  256. package/web/chunk-g4st8a4e.js.br +0 -0
  257. package/web/chunk-g4st8a4e.js.gz +0 -0
  258. package/web/{chunk-82q4e8ff.js → chunk-gs41j1vb.js} +1 -1
  259. package/web/chunk-gs41j1vb.js.br +0 -0
  260. package/web/chunk-gs41j1vb.js.gz +0 -0
  261. package/web/{chunk-dmzvhbpn.js → chunk-gt4dzb4b.js} +3 -3
  262. package/web/chunk-gt4dzb4b.js.br +0 -0
  263. package/web/chunk-gt4dzb4b.js.gz +0 -0
  264. package/web/{chunk-1yvcxpp2.js → chunk-h4g8j133.js} +4 -4
  265. package/web/chunk-h4g8j133.js.br +0 -0
  266. package/web/chunk-h4g8j133.js.gz +0 -0
  267. package/web/chunk-ht3cek8b.js +1 -0
  268. package/web/chunk-ht3cek8b.js.br +2 -0
  269. package/web/chunk-ht3cek8b.js.gz +0 -0
  270. package/web/{chunk-3fd6mgf0.js → chunk-hw4f79k8.js} +1 -1
  271. package/web/chunk-hw4f79k8.js.br +0 -0
  272. package/web/chunk-hw4f79k8.js.gz +0 -0
  273. package/web/{chunk-js940jjj.js → chunk-j2y3wkxc.js} +4 -4
  274. package/web/chunk-j2y3wkxc.js.br +0 -0
  275. package/web/chunk-j2y3wkxc.js.gz +0 -0
  276. package/web/{chunk-vh2prc6k.js → chunk-j7sfcfxr.js} +1 -1
  277. package/web/chunk-j7sfcfxr.js.br +0 -0
  278. package/web/chunk-j7sfcfxr.js.gz +0 -0
  279. package/web/{chunk-ye7vge7s.js → chunk-jge5e8c4.js} +1 -1
  280. package/web/chunk-jge5e8c4.js.br +0 -0
  281. package/web/chunk-jge5e8c4.js.gz +0 -0
  282. package/web/chunk-jyjgvcac.js +2 -0
  283. package/web/chunk-jyjgvcac.js.br +0 -0
  284. package/web/chunk-jyjgvcac.js.gz +0 -0
  285. package/web/chunk-k9bzz441.js +1 -0
  286. package/web/chunk-k9bzz441.js.br +0 -0
  287. package/web/chunk-k9bzz441.js.gz +0 -0
  288. package/web/{chunk-e2z3kdhw.js → chunk-keway722.js} +3 -3
  289. package/web/chunk-keway722.js.br +0 -0
  290. package/web/chunk-keway722.js.gz +0 -0
  291. package/web/{chunk-ezj5rjqr.js → chunk-kr7shpnb.js} +1 -1
  292. package/web/chunk-kr7shpnb.js.br +0 -0
  293. package/web/chunk-kr7shpnb.js.gz +0 -0
  294. package/web/chunk-kv5swske.js +1 -0
  295. package/web/chunk-kv5swske.js.br +0 -0
  296. package/web/chunk-kv5swske.js.gz +0 -0
  297. package/web/{chunk-a8qe7kvz.js → chunk-kx2k462h.js} +1 -1
  298. package/web/chunk-kx2k462h.js.br +0 -0
  299. package/web/chunk-kx2k462h.js.gz +0 -0
  300. package/web/{chunk-recfg8af.js → chunk-m5b7hny2.js} +1 -1
  301. package/web/chunk-m5b7hny2.js.br +0 -0
  302. package/web/chunk-m5b7hny2.js.gz +0 -0
  303. package/web/{chunk-vxadngbp.js → chunk-m7kypzvp.js} +1 -1
  304. package/web/chunk-m7kypzvp.js.br +0 -0
  305. package/web/chunk-m7kypzvp.js.gz +0 -0
  306. package/web/{chunk-mwfrxgbs.js → chunk-n00se8nk.js} +1 -1
  307. package/web/chunk-n00se8nk.js.br +0 -0
  308. package/web/chunk-n00se8nk.js.gz +0 -0
  309. package/web/{chunk-hqt1f3fm.js → chunk-ngdj0r7w.js} +1 -1
  310. package/web/chunk-ngdj0r7w.js.br +0 -0
  311. package/web/chunk-ngdj0r7w.js.gz +0 -0
  312. package/web/{chunk-zbzgd8kn.js → chunk-p6ma361e.js} +1 -1
  313. package/web/chunk-p6ma361e.js.br +0 -0
  314. package/web/chunk-p6ma361e.js.gz +0 -0
  315. package/web/{chunk-1ratg1jd.js → chunk-pvhz0gqy.js} +1 -1
  316. package/web/chunk-pvhz0gqy.js.br +0 -0
  317. package/web/chunk-pvhz0gqy.js.gz +0 -0
  318. package/web/chunk-q96eky9v.js +1 -0
  319. package/web/chunk-q96eky9v.js.br +0 -0
  320. package/web/chunk-q96eky9v.js.gz +0 -0
  321. package/web/{chunk-1cwyy3gh.js → chunk-qcgs1mft.js} +1 -1
  322. package/web/chunk-qcgs1mft.js.br +0 -0
  323. package/web/chunk-qcgs1mft.js.gz +0 -0
  324. package/web/{chunk-hwxj58j5.js → chunk-qh24q7c0.js} +1 -1
  325. package/web/chunk-qh24q7c0.js.br +0 -0
  326. package/web/chunk-qh24q7c0.js.gz +0 -0
  327. package/web/chunk-r1xksxab.js +1 -0
  328. package/web/chunk-r1xksxab.js.br +0 -0
  329. package/web/chunk-r1xksxab.js.gz +0 -0
  330. package/web/{chunk-fjrgg82c.js → chunk-rsc5k5he.js} +4 -4
  331. package/web/chunk-rsc5k5he.js.br +0 -0
  332. package/web/chunk-rsc5k5he.js.gz +0 -0
  333. package/web/{chunk-apr33amc.js → chunk-s7a2f62f.js} +1 -1
  334. package/web/chunk-s7a2f62f.js.br +0 -0
  335. package/web/chunk-s7a2f62f.js.gz +0 -0
  336. package/web/{chunk-0h0whn75.js → chunk-sac6fn9n.js} +1 -1
  337. package/web/chunk-sac6fn9n.js.br +0 -0
  338. package/web/chunk-sac6fn9n.js.gz +0 -0
  339. package/web/{chunk-6a3wt5c5.js → chunk-t0xjx21h.js} +3 -3
  340. package/web/chunk-t0xjx21h.js.br +0 -0
  341. package/web/chunk-t0xjx21h.js.gz +0 -0
  342. package/web/{chunk-tg3f9xmp.js → chunk-v7ck87jf.js} +1 -1
  343. package/web/chunk-v7ck87jf.js.br +0 -0
  344. package/web/chunk-v7ck87jf.js.gz +0 -0
  345. package/web/{chunk-jmnzcm1f.js → chunk-vvk9nche.js} +4 -4
  346. package/web/chunk-vvk9nche.js.br +0 -0
  347. package/web/chunk-vvk9nche.js.gz +0 -0
  348. package/web/chunk-vxtfen72.js +1 -0
  349. package/web/chunk-vxtfen72.js.br +0 -0
  350. package/web/chunk-vxtfen72.js.gz +0 -0
  351. package/web/{chunk-81xbfpbq.js → chunk-w5c2r59n.js} +1 -1
  352. package/web/chunk-w5c2r59n.js.br +0 -0
  353. package/web/chunk-w5c2r59n.js.gz +0 -0
  354. package/web/{chunk-08w40agf.js → chunk-wh0vt2vd.js} +7 -7
  355. package/web/chunk-wh0vt2vd.js.br +0 -0
  356. package/web/chunk-wh0vt2vd.js.gz +0 -0
  357. package/web/chunk-xe7fj72r.js +1 -0
  358. package/web/chunk-xe7fj72r.js.br +0 -0
  359. package/web/chunk-xe7fj72r.js.gz +0 -0
  360. package/web/{chunk-59h87pvn.js → chunk-yarsp7h7.js} +1 -1
  361. package/web/chunk-yarsp7h7.js.br +0 -0
  362. package/web/chunk-yarsp7h7.js.gz +0 -0
  363. package/web/{chunk-x2hxq5yr.js → chunk-yw5wyz1q.js} +1 -1
  364. package/web/chunk-yw5wyz1q.js.br +0 -0
  365. package/web/chunk-yw5wyz1q.js.gz +0 -0
  366. package/web/chunk-z3ea4vhk.js +1 -0
  367. package/web/chunk-z3ea4vhk.js.br +0 -0
  368. package/web/chunk-z3ea4vhk.js.gz +0 -0
  369. package/web/{chunk-6pbhqbv0.js → chunk-z7adzvfz.js} +1 -1
  370. package/web/chunk-z7adzvfz.js.br +0 -0
  371. package/web/chunk-z7adzvfz.js.gz +0 -0
  372. package/web/{chunk-mh3nkkpx.js → chunk-zb01zmms.js} +6 -6
  373. package/web/chunk-zb01zmms.js.br +0 -0
  374. package/web/chunk-zb01zmms.js.gz +0 -0
  375. package/web/index.html +1 -1
  376. package/web/index.html.br +0 -0
  377. package/web/index.html.gz +0 -0
  378. package/worker.js +1 -1
  379. package/chunk-0wwd4q6h.js +0 -5
  380. package/chunk-204c01mz.js +0 -25
  381. package/chunk-4wc2gbhe.js +0 -2
  382. package/chunk-5tsfqsmf.js +0 -2
  383. package/chunk-6hatfwsq.js +0 -2
  384. package/chunk-78ky455y.js +0 -4
  385. package/chunk-8mqaq042.js +0 -2
  386. package/chunk-g9hsrrj5.js +0 -2
  387. package/chunk-gpceyezp.js +0 -2
  388. package/chunk-h4n0gg11.js +0 -2
  389. package/chunk-jzya0e5n.js +0 -7
  390. package/chunk-ncb0tyaw.js +0 -2
  391. package/chunk-tpeg9fkd.js +0 -2
  392. package/chunk-v0mw006s.js +0 -15
  393. package/chunk-ys2fds2x.js +0 -3
  394. package/chunk-yshdvnsp.js +0 -2
  395. package/web/chunk-08w40agf.js.br +0 -0
  396. package/web/chunk-08w40agf.js.gz +0 -0
  397. package/web/chunk-0bfypmyv.js +0 -1
  398. package/web/chunk-0bfypmyv.js.br +0 -2
  399. package/web/chunk-0bfypmyv.js.gz +0 -0
  400. package/web/chunk-0h0whn75.js.br +0 -0
  401. package/web/chunk-0h0whn75.js.gz +0 -0
  402. package/web/chunk-0pzs9k06.js +0 -1
  403. package/web/chunk-0pzs9k06.js.br +0 -0
  404. package/web/chunk-0pzs9k06.js.gz +0 -0
  405. package/web/chunk-0tcmnvab.js.br +0 -0
  406. package/web/chunk-0tcmnvab.js.gz +0 -0
  407. package/web/chunk-186rp10x.js.br +0 -0
  408. package/web/chunk-186rp10x.js.gz +0 -0
  409. package/web/chunk-1cwyy3gh.js.br +0 -0
  410. package/web/chunk-1cwyy3gh.js.gz +0 -0
  411. package/web/chunk-1ecsxh85.js +0 -1
  412. package/web/chunk-1ecsxh85.js.br +0 -0
  413. package/web/chunk-1ecsxh85.js.gz +0 -0
  414. package/web/chunk-1ghnag5v.js.br +0 -0
  415. package/web/chunk-1ghnag5v.js.gz +0 -0
  416. package/web/chunk-1ps9fj5n.js.br +0 -0
  417. package/web/chunk-1ps9fj5n.js.gz +0 -0
  418. package/web/chunk-1ratg1jd.js.br +0 -0
  419. package/web/chunk-1ratg1jd.js.gz +0 -0
  420. package/web/chunk-1yvcxpp2.js.br +0 -0
  421. package/web/chunk-1yvcxpp2.js.gz +0 -0
  422. package/web/chunk-2r3w0pt0.js +0 -8
  423. package/web/chunk-2r3w0pt0.js.br +0 -0
  424. package/web/chunk-2r3w0pt0.js.gz +0 -0
  425. package/web/chunk-2rnnvxa5.js.br +0 -0
  426. package/web/chunk-2rnnvxa5.js.gz +0 -0
  427. package/web/chunk-2stffcvc.js +0 -1
  428. package/web/chunk-2stffcvc.js.br +0 -0
  429. package/web/chunk-2stffcvc.js.gz +0 -0
  430. package/web/chunk-2svqgkqw.js +0 -1
  431. package/web/chunk-2svqgkqw.js.br +0 -0
  432. package/web/chunk-2svqgkqw.js.gz +0 -0
  433. package/web/chunk-37hmswdk.js.br +0 -0
  434. package/web/chunk-37hmswdk.js.gz +0 -0
  435. package/web/chunk-3fd6mgf0.js.br +0 -0
  436. package/web/chunk-3fd6mgf0.js.gz +0 -0
  437. package/web/chunk-53cg6pxm.js.br +0 -0
  438. package/web/chunk-59h87pvn.js.br +0 -0
  439. package/web/chunk-59h87pvn.js.gz +0 -0
  440. package/web/chunk-6a3wt5c5.js.br +0 -0
  441. package/web/chunk-6a3wt5c5.js.gz +0 -0
  442. package/web/chunk-6n1ha6ta.js.br +0 -0
  443. package/web/chunk-6n1ha6ta.js.gz +0 -0
  444. package/web/chunk-6pbhqbv0.js.br +0 -0
  445. package/web/chunk-6pbhqbv0.js.gz +0 -0
  446. package/web/chunk-72st75n7.js.br +0 -0
  447. package/web/chunk-72st75n7.js.gz +0 -0
  448. package/web/chunk-7h59ac2b.js.br +0 -0
  449. package/web/chunk-7h59ac2b.js.gz +0 -0
  450. package/web/chunk-81xbfpbq.js.br +0 -0
  451. package/web/chunk-81xbfpbq.js.gz +0 -0
  452. package/web/chunk-82q4e8ff.js.br +0 -0
  453. package/web/chunk-82q4e8ff.js.gz +0 -0
  454. package/web/chunk-89e8629e.js +0 -1
  455. package/web/chunk-89e8629e.js.br +0 -0
  456. package/web/chunk-89e8629e.js.gz +0 -0
  457. package/web/chunk-9n1nsdqs.js.br +0 -0
  458. package/web/chunk-9n1nsdqs.js.gz +0 -0
  459. package/web/chunk-a8qe7kvz.js.br +0 -0
  460. package/web/chunk-a8qe7kvz.js.gz +0 -0
  461. package/web/chunk-ahdca62g.js.br +0 -0
  462. package/web/chunk-ahdca62g.js.gz +0 -0
  463. package/web/chunk-apr33amc.js.br +0 -0
  464. package/web/chunk-apr33amc.js.gz +0 -0
  465. package/web/chunk-aw9bwd4w.js.br +0 -0
  466. package/web/chunk-aw9bwd4w.js.gz +0 -0
  467. package/web/chunk-bg0qgabv.js.br +0 -0
  468. package/web/chunk-bg0qgabv.js.gz +0 -0
  469. package/web/chunk-bks2k04k.js.br +0 -0
  470. package/web/chunk-bks2k04k.js.gz +0 -0
  471. package/web/chunk-c28crzwk.js.br +0 -0
  472. package/web/chunk-c28crzwk.js.gz +0 -0
  473. package/web/chunk-cmhxtckb.js.br +0 -0
  474. package/web/chunk-cmhxtckb.js.gz +0 -0
  475. package/web/chunk-d7f85w1y.js.br +0 -0
  476. package/web/chunk-d7f85w1y.js.gz +0 -0
  477. package/web/chunk-dmhezjv3.js.br +0 -0
  478. package/web/chunk-dmhezjv3.js.gz +0 -0
  479. package/web/chunk-dmzvhbpn.js.br +0 -0
  480. package/web/chunk-dmzvhbpn.js.gz +0 -0
  481. package/web/chunk-e2z3kdhw.js.br +0 -0
  482. package/web/chunk-e2z3kdhw.js.gz +0 -0
  483. package/web/chunk-eqmghkwh.js +0 -1
  484. package/web/chunk-eqmghkwh.js.br +0 -0
  485. package/web/chunk-eqmghkwh.js.gz +0 -0
  486. package/web/chunk-esckazz2.js.br +0 -0
  487. package/web/chunk-esckazz2.js.gz +0 -0
  488. package/web/chunk-ezj5rjqr.js.br +0 -0
  489. package/web/chunk-ezj5rjqr.js.gz +0 -0
  490. package/web/chunk-fjrgg82c.js.br +0 -0
  491. package/web/chunk-fjrgg82c.js.gz +0 -0
  492. package/web/chunk-gbcf0rdk.js.br +0 -0
  493. package/web/chunk-gbcf0rdk.js.gz +0 -0
  494. package/web/chunk-gj6bdv1y.js.br +0 -0
  495. package/web/chunk-gj6bdv1y.js.gz +0 -0
  496. package/web/chunk-gk1bc3c3.js.br +0 -0
  497. package/web/chunk-gk1bc3c3.js.gz +0 -0
  498. package/web/chunk-gpjytpyw.js.br +0 -0
  499. package/web/chunk-gpjytpyw.js.gz +0 -0
  500. package/web/chunk-h1c0m3g4.js.br +0 -0
  501. package/web/chunk-h1c0m3g4.js.gz +0 -0
  502. package/web/chunk-h1qv0cpd.css +0 -1
  503. package/web/chunk-h1qv0cpd.css.br +0 -0
  504. package/web/chunk-h1qv0cpd.css.gz +0 -0
  505. package/web/chunk-hq7e5xgd.js +0 -1
  506. package/web/chunk-hq7e5xgd.js.br +0 -0
  507. package/web/chunk-hq7e5xgd.js.gz +0 -0
  508. package/web/chunk-hqt1f3fm.js.br +0 -0
  509. package/web/chunk-hqt1f3fm.js.gz +0 -0
  510. package/web/chunk-hwxj58j5.js.br +0 -0
  511. package/web/chunk-hwxj58j5.js.gz +0 -0
  512. package/web/chunk-hxzb25a8.js +0 -1
  513. package/web/chunk-hxzb25a8.js.br +0 -0
  514. package/web/chunk-hxzb25a8.js.gz +0 -0
  515. package/web/chunk-jmnzcm1f.js.br +0 -0
  516. package/web/chunk-jmnzcm1f.js.gz +0 -0
  517. package/web/chunk-js940jjj.js.br +0 -0
  518. package/web/chunk-js940jjj.js.gz +0 -0
  519. package/web/chunk-jy9vkfbf.js +0 -1
  520. package/web/chunk-jy9vkfbf.js.br +0 -0
  521. package/web/chunk-jy9vkfbf.js.gz +0 -0
  522. package/web/chunk-k4pknkvp.js.br +0 -0
  523. package/web/chunk-k4pknkvp.js.gz +0 -0
  524. package/web/chunk-k6fwzn0z.js.br +0 -0
  525. package/web/chunk-k6fwzn0z.js.gz +0 -0
  526. package/web/chunk-kdegb6pd.js.br +0 -0
  527. package/web/chunk-kdegb6pd.js.gz +0 -0
  528. package/web/chunk-kedjfh66.js.br +0 -0
  529. package/web/chunk-kedjfh66.js.gz +0 -0
  530. package/web/chunk-mbpv2w5h.js.br +0 -0
  531. package/web/chunk-mbpv2w5h.js.gz +0 -0
  532. package/web/chunk-mh3nkkpx.js.br +0 -0
  533. package/web/chunk-mh3nkkpx.js.gz +0 -0
  534. package/web/chunk-mhzqgzh0.js.br +0 -0
  535. package/web/chunk-mhzqgzh0.js.gz +0 -0
  536. package/web/chunk-mj8dzc8q.js.br +0 -0
  537. package/web/chunk-mj8dzc8q.js.gz +0 -0
  538. package/web/chunk-mwfrxgbs.js.br +0 -0
  539. package/web/chunk-mwfrxgbs.js.gz +0 -0
  540. package/web/chunk-nb58m79v.js.br +0 -0
  541. package/web/chunk-nb58m79v.js.gz +0 -0
  542. package/web/chunk-nsna2v2r.js +0 -1
  543. package/web/chunk-nsna2v2r.js.br +0 -0
  544. package/web/chunk-nsna2v2r.js.gz +0 -0
  545. package/web/chunk-nxdp58nf.js +0 -1
  546. package/web/chunk-nxdp58nf.js.br +0 -0
  547. package/web/chunk-nxdp58nf.js.gz +0 -0
  548. package/web/chunk-nytgs01h.js +0 -1
  549. package/web/chunk-nytgs01h.js.br +0 -0
  550. package/web/chunk-nytgs01h.js.gz +0 -0
  551. package/web/chunk-pkxn54jm.js +0 -1
  552. package/web/chunk-pkxn54jm.js.br +0 -0
  553. package/web/chunk-pkxn54jm.js.gz +0 -0
  554. package/web/chunk-q0srq8g5.js.br +0 -0
  555. package/web/chunk-q0srq8g5.js.gz +0 -0
  556. package/web/chunk-qjg6dw46.js.br +0 -0
  557. package/web/chunk-qjg6dw46.js.gz +0 -0
  558. package/web/chunk-qjjxevxe.js +0 -1
  559. package/web/chunk-qjjxevxe.js.br +0 -0
  560. package/web/chunk-qjjxevxe.js.gz +0 -0
  561. package/web/chunk-qx5ab39c.js.br +0 -0
  562. package/web/chunk-qx5ab39c.js.gz +0 -0
  563. package/web/chunk-recfg8af.js.br +0 -0
  564. package/web/chunk-recfg8af.js.gz +0 -0
  565. package/web/chunk-tg3f9xmp.js.br +0 -0
  566. package/web/chunk-tg3f9xmp.js.gz +0 -0
  567. package/web/chunk-tgeeggkh.js.br +0 -0
  568. package/web/chunk-tgeeggkh.js.gz +0 -0
  569. package/web/chunk-v2bkkhb8.js.br +0 -0
  570. package/web/chunk-v2bkkhb8.js.gz +0 -0
  571. package/web/chunk-v5p2fds9.js.br +0 -0
  572. package/web/chunk-v5p2fds9.js.gz +0 -0
  573. package/web/chunk-v6snw1sw.js.br +0 -0
  574. package/web/chunk-v6snw1sw.js.gz +0 -0
  575. package/web/chunk-veadbga2.js +0 -1
  576. package/web/chunk-veadbga2.js.br +0 -2
  577. package/web/chunk-veadbga2.js.gz +0 -0
  578. package/web/chunk-vh2prc6k.js.br +0 -0
  579. package/web/chunk-vh2prc6k.js.gz +0 -0
  580. package/web/chunk-vhpzp7zd.js.br +0 -0
  581. package/web/chunk-vhpzp7zd.js.gz +0 -0
  582. package/web/chunk-vpbnyz43.js.br +0 -0
  583. package/web/chunk-vpbnyz43.js.gz +0 -0
  584. package/web/chunk-vxadngbp.js.br +0 -3
  585. package/web/chunk-vxadngbp.js.gz +0 -0
  586. package/web/chunk-wa8wr2y9.js.br +0 -0
  587. package/web/chunk-wa8wr2y9.js.gz +0 -0
  588. package/web/chunk-wbxz2bjb.js.br +0 -0
  589. package/web/chunk-wbxz2bjb.js.gz +0 -0
  590. package/web/chunk-wgzatts8.js +0 -1
  591. package/web/chunk-wgzatts8.js.br +0 -0
  592. package/web/chunk-wgzatts8.js.gz +0 -0
  593. package/web/chunk-whczyxqw.js +0 -1
  594. package/web/chunk-whczyxqw.js.br +0 -0
  595. package/web/chunk-whczyxqw.js.gz +0 -0
  596. package/web/chunk-wmzz2crn.js +0 -1
  597. package/web/chunk-wmzz2crn.js.br +0 -0
  598. package/web/chunk-wmzz2crn.js.gz +0 -0
  599. package/web/chunk-wvqcbp4a.js.br +0 -0
  600. package/web/chunk-wvqcbp4a.js.gz +0 -0
  601. package/web/chunk-x2hxq5yr.js.br +0 -0
  602. package/web/chunk-x2hxq5yr.js.gz +0 -0
  603. package/web/chunk-x8bnp6vr.js +0 -1
  604. package/web/chunk-x8bnp6vr.js.br +0 -0
  605. package/web/chunk-x8bnp6vr.js.gz +0 -0
  606. package/web/chunk-xvmzsftt.js +0 -2
  607. package/web/chunk-xvmzsftt.js.br +0 -0
  608. package/web/chunk-xvmzsftt.js.gz +0 -0
  609. package/web/chunk-ye7vge7s.js.br +0 -0
  610. package/web/chunk-ye7vge7s.js.gz +0 -0
  611. package/web/chunk-zbzgd8kn.js.br +0 -0
  612. package/web/chunk-zbzgd8kn.js.gz +0 -0
  613. package/web/chunk-zhwqscat.js +0 -1
  614. package/web/chunk-zhwqscat.js.br +0 -0
  615. package/web/chunk-zhwqscat.js.gz +0 -0
  616. package/web/chunk-znrsm604.js.br +0 -0
  617. package/web/chunk-znrsm604.js.gz +0 -0
  618. package/web/chunk-zthww0ws.js.br +0 -0
  619. package/web/chunk-zthww0ws.js.gz +0 -0
Binary file
Binary file
@@ -1 +1 @@
1
- import{ee,e,n,y}from"./chunk-qjg6dw46.js";import{jn,Hr}from"./chunk-kedjfh66.js";import"./chunk-recfg8af.js";var s="session";function f({connection:d}){let{ModelSelector:a,SettingGroup:m,SettingRow:g}=y(),r=ee(),t=Hr({connection:d,endpoint:"/api/plugins/title-generator/settings",loadError:"读取标题生成设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,model:o.model}),differs:(o,i)=>o.model!==i.model}),l=t.settings?.model??null,c={models:[{id:s,name:"跟随会话模型"},...t.modelList.models.filter((o)=>o.available===!0||o.id===l)]};return n("form",{id:r,onSubmit:t.save,className:"min-w-0 space-y-5",children:[e(m,{title:"标题生成",children:e(g,{title:"标题模型",description:"首次输入直接命名;后续输入识别为独立需求时自动改名。请求始终使用 None 思考。",children:e("div",{className:"w-56",children:e(a,{variant:"field",models:c,value:l??s,onChange:(o)=>t.edit((i)=>({...i,model:o===s?null:o}))})})})}),e(jn,{formID:r,notice:t.notice,dirty:t.dirty,busy:t.loading||t.saving,saving:t.saving,onReset:t.reset})]})}export{f as TitleGeneratorSettingsSection};
1
+ import{ee,e,n,y}from"./chunk-b83bzjcx.js";import{jn,Hr}from"./chunk-abahqsws.js";import"./chunk-m5b7hny2.js";var s="session";function f({connection:d}){let{ModelSelector:a,SettingGroup:m,SettingRow:g}=y(),r=ee(),t=Hr({connection:d,endpoint:"/api/plugins/title-generator/settings",loadError:"读取标题生成设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,model:o.model}),differs:(o,i)=>o.model!==i.model}),l=t.settings?.model??null,c={models:[{id:s,name:"跟随会话模型"},...t.modelList.models.filter((o)=>o.available===!0||o.id===l)]};return n("form",{id:r,onSubmit:t.save,className:"min-w-0 space-y-5",children:[e(m,{title:"标题生成",children:e(g,{title:"标题模型",description:"首次输入直接命名;后续输入识别为独立需求时自动改名。请求始终使用 None 思考。",children:e("div",{className:"w-56",children:e(a,{variant:"field",models:c,value:l??s,onChange:(o)=>t.edit((i)=>({...i,model:o===s?null:o}))})})})}),e(jn,{formID:r,notice:t.notice,dirty:t.dirty,busy:t.loading||t.saving,saving:t.saving,onReset:t.reset})]})}export{f as TitleGeneratorSettingsSection};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{re}from"./chunk-mwfrxgbs.js";import{t,a,He,B,S,G,A,R,I,L,D,P,M,Q,X}from"./chunk-v2bkkhb8.js";import{fe}from"./chunk-53cg6pxm.js";var ut=t(()=>({domains:new Map,transitions:[]}),"createDefaultData"),et=ut(),At=t(()=>et.domains,"getDomains"),Bt=t(()=>et.transitions,"getTransitions"),St=t((e)=>{if(!e)return;for(let n of e){let o=n.domain,r=(n.items??[]).map((l)=>({label:l.label}));et.domains.set(o,{name:o,items:r})}},"setDomains"),Mt=t((e)=>{if(!e)return;et.transitions=e.filter((n)=>{if(n.from===n.to)return a.warn(`Cynefin: self-loop transition on domain "${n.from}" is not meaningful and will be skipped.`),!1;return!0}).map((n)=>({from:n.from,to:n.to,label:n.label||void 0}))},"setTransitions"),zt=t(()=>X({...B.cynefin,...S().cynefin}),"getConfig"),Lt=t(()=>{A(),et=ut()},"clear"),at={getDomains:At,getTransitions:Bt,setDomains:St,setTransitions:Mt,getConfig:zt,clear:Lt,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:M,getAccDescription:D,setAccDescription:L},Nt=t((e)=>{re(e,at),at.setDomains(e.domains),at.setTransitions(e.transitions)},"populate"),Pt={parse:t(async(e)=>{let n=await fe("cynefin",e);a.debug(n),Nt(n)},"parse")};function tt(e){let n=e+1831565813|0;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}t(tt,"seededRandom");function gt(e){let n=0;for(let o=0;o<e.length;o++){let r=e.charCodeAt(o);n=(n<<5)-n+r,n|=0}return n}t(gt,"hashString");function ht(e,n){if(typeof e==="number"&&Number.isFinite(e)&&e!==0)return e;return gt(n)}t(ht,"resolveSeed");function xt(e,n,o,r){let l=e/2,p=r??e*0.015,nt=7,q=n/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*17)*p*2-p;f.push({x:l+y,y:i*q})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.y+c.y)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*31+7),U=y.x+h,Z=m,J=c.x-h;T+=` C${U},${Z} ${J},${m} ${c.x},${c.y}`}return T}t(xt,"generateFoldPath");function $t(e,n,o,r){let l=n/2,p=r??n*0.015,nt=7,q=e/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*23)*p*2-p;f.push({x:i*q,y:l+y})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.x+c.x)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*37+11),U=m,Z=y.y+h,J=m,E=c.y-h;T+=` C${U},${Z} ${J},${E} ${c.x},${c.y}`}return T}t($t,"generateHorizontalBoundary");function bt(e,n){let o=e/2,r=n*0.5,l=n,p=e*0.03;return[`M${o},${r}`,`C${o+p},${r+(l-r)*0.2}`,`${o-p*1.5},${r+(l-r)*0.55}`,`${o+p*0.5},${r+(l-r)*0.75}`,`C${o-p},${r+(l-r)*0.85}`,`${o+p*0.3},${r+(l-r)*0.95}`,`${o},${l}`].join(" ")}t(bt,"generateCliffPath");function wt(e,n,o,r){return[`M${e-o},${n}`,`A${o},${r} 0 1,1 ${e+o},${n}`,`A${o},${r} 0 1,1 ${e-o},${n}`,"Z"].join(" ")}t(wt,"generateConfusionPath");var yt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},It=t((e,n)=>{let o=e/2,r=n/2;return{complex:{cx:o/2,cy:r/2,x:0,y:0,w:o,h:r},complicated:{cx:o+o/2,cy:r/2,x:o,y:0,w:o,h:r},chaotic:{cx:o/2,cy:r+r/2,x:0,y:r,w:o,h:r},clear:{cx:o+o/2,cy:r+r/2,x:o,y:r,w:o,h:r},confusion:{cx:o,cy:r,x:o*0.7,y:r*0.7,w:o*0.6,h:r*0.6}}},"getDomainLayouts"),Wt=t(()=>{let e=He(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinDomainColors"),st=3,Rt=t((e,n,o,r)=>{let l=r.db,p=l.getDomains(),nt=l.getTransitions(),q=l.getDiagramTitle(),f=l.getAccTitle(),T=l.getAccDescription(),i=l.getConfig(),y=Wt();a.debug("Rendering Cynefin diagram");let{width:c,height:m,padding:C,showDomainDescriptions:h,boundaryAmplitude:U}=i,Z=c+C*2,J=m+C*2,E={complex:y.complexBg,complicated:y.complicatedBg,clear:y.clearBg,chaotic:y.chaoticBg,confusion:y.confusionBg},z=Q(n);if(G(z,J,Z,i.useMaxWidth??!0),z.attr("viewBox",`0 0 ${Z} ${J}`),f)z.append("title").text(f);if(T)z.append("desc").text(T);let N=z.append("g").attr("transform",`translate(${C}, ${C})`),K=It(c,m),ct=ht(i.seed,n),Ct=N.append("g").attr("class","cynefin-backgrounds"),rt=["complex","complicated","chaotic","clear"];for(let d of rt){let s=K[d];Ct.append("rect").attr("class","cynefinDomain").attr("x",s.x).attr("y",s.y).attr("width",s.w).attr("height",s.h).attr("fill",E[d]).attr("fill-opacity",0.4).attr("stroke","none")}let it=N.append("g").attr("class","cynefin-boundaries");it.append("path").attr("class","cynefinBoundary").attr("d",xt(c,m,ct,U)).attr("fill","none"),it.append("path").attr("class","cynefinBoundary").attr("d",$t(c,m,ct+100,U)).attr("fill","none"),it.append("path").attr("class","cynefinCliff").attr("d",bt(c,m)).attr("fill","none");let vt=c*0.15,Dt=m*0.15;N.append("path").attr("class","cynefinConfusion").attr("d",wt(c/2,m/2,vt,Dt)).attr("fill",E.confusion).attr("fill-opacity",0.5);let lt=N.append("g").attr("class","cynefin-labels");for(let d of rt){let s=K[d];lt.append("text").attr("class","cynefinDomainLabel").attr("x",s.cx).attr("y",h?s.cy-30:s.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d.charAt(0).toUpperCase()+d.slice(1))}if(lt.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?m/2-10:m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let d=N.append("g").attr("class","cynefin-subtitles");for(let s of rt){let g=K[s],u=yt[s];d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}d.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",m/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(yt.confusion.practice)}let dt=N.append("g").attr("class","cynefin-items"),W=26,ft=10,kt=["complex","complicated","chaotic","clear","confusion"];for(let d of kt){let s=p.get(d);if(!s||s.items.length===0)continue;let g=K[d],u=d==="confusion",H=s.items,Y=0;if(u&&s.items.length>st)Y=s.items.length-st,H=s.items.slice(0,st);let F;if(u){let b=h?22:14;F=g.cy+b}else F=g.cy+(h?25:15);if([...H].forEach((b,V)=>{let v=F+V*(W+4),_=dt.append("g"),O=_.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(b.label),w=b.label.length*7,x=O.node();if(x&&typeof x.getBBox==="function"){let ot=x.getBBox();if(ot.width>0)w=ot.width}let k=w+ft*2,j=g.cx-k/2;_.attr("transform",`translate(${j}, ${v})`),_.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",k).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.95),O.attr("x",k/2).attr("y",W/2)}),Y>0){let b=F+H.length*(W+4),V=`+${Y} more`,v=dt.append("g"),_=v.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(V),O=V.length*7,w=_.node();if(w&&typeof w.getBBox==="function"){let j=w.getBBox();if(j.width>0)O=j.width}let x=O+ft*2,k=g.cx-x/2;v.attr("transform",`translate(${k}, ${b})`),v.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.6),_.attr("x",x/2).attr("y",W/2)}}if(nt.length>0){let d=z.select("defs").empty()?z.append("defs"):z.select("defs"),s=`cynefin-arrow-${n}`;d.append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let g=N.append("g").attr("class","cynefin-arrows");nt.forEach((u)=>{let H=K[u.from],Y=K[u.to];if(!H||!Y)return;if(u.from===u.to){a.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}let{cx:F,cy:b}=H,{cx:V,cy:v}=Y,_=(F+V)/2,O=(b+v)/2,w=V-F,x=v-b,k=Math.sqrt(w*w+x*x),j=k*0.15,ot=-x/k,Tt=w/k,mt=_+ot*j,pt=O+Tt*j;if(g.append("path").attr("class","cynefinArrowLine").attr("d",`M${F},${b} Q${mt},${pt} ${V},${v}`).attr("fill","none").attr("marker-end",`url(#${s})`),u.label)g.append("text").attr("class","cynefinArrowLabel").attr("x",mt).attr("y",pt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}if(q)N.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-C/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(q)},"draw"),Ft={draw:Rt},Vt=t(()=>{let e=He(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinTheme"),_t=t(()=>{let e=Vt();return`
1
+ import{re}from"./chunk-n00se8nk.js";import{t,a,He,B,S,G,A,R,I,L,D,P,N,Q,X}from"./chunk-dbv8qpen.js";import{fe}from"./chunk-21d8pzcm.js";var ut=t(()=>({domains:new Map,transitions:[]}),"createDefaultData"),et=ut(),At=t(()=>et.domains,"getDomains"),Bt=t(()=>et.transitions,"getTransitions"),St=t((e)=>{if(!e)return;for(let n of e){let o=n.domain,r=(n.items??[]).map((l)=>({label:l.label}));et.domains.set(o,{name:o,items:r})}},"setDomains"),Mt=t((e)=>{if(!e)return;et.transitions=e.filter((n)=>{if(n.from===n.to)return a.warn(`Cynefin: self-loop transition on domain "${n.from}" is not meaningful and will be skipped.`),!1;return!0}).map((n)=>({from:n.from,to:n.to,label:n.label||void 0}))},"setTransitions"),zt=t(()=>X({...B.cynefin,...S().cynefin}),"getConfig"),Lt=t(()=>{A(),et=ut()},"clear"),at={getDomains:At,getTransitions:Bt,setDomains:St,setTransitions:Mt,getConfig:zt,clear:Lt,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},Nt=t((e)=>{re(e,at),at.setDomains(e.domains),at.setTransitions(e.transitions)},"populate"),Pt={parse:t(async(e)=>{let n=await fe("cynefin",e);a.debug(n),Nt(n)},"parse")};function tt(e){let n=e+1831565813|0;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}t(tt,"seededRandom");function gt(e){let n=0;for(let o=0;o<e.length;o++){let r=e.charCodeAt(o);n=(n<<5)-n+r,n|=0}return n}t(gt,"hashString");function ht(e,n){if(typeof e==="number"&&Number.isFinite(e)&&e!==0)return e;return gt(n)}t(ht,"resolveSeed");function xt(e,n,o,r){let l=e/2,p=r??e*0.015,nt=7,q=n/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*17)*p*2-p;f.push({x:l+y,y:i*q})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.y+c.y)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*31+7),U=y.x+h,Z=m,J=c.x-h;T+=` C${U},${Z} ${J},${m} ${c.x},${c.y}`}return T}t(xt,"generateFoldPath");function $t(e,n,o,r){let l=n/2,p=r??n*0.015,nt=7,q=e/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*23)*p*2-p;f.push({x:i*q,y:l+y})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.x+c.x)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*37+11),U=m,Z=y.y+h,J=m,E=c.y-h;T+=` C${U},${Z} ${J},${E} ${c.x},${c.y}`}return T}t($t,"generateHorizontalBoundary");function bt(e,n){let o=e/2,r=n*0.5,l=n,p=e*0.03;return[`M${o},${r}`,`C${o+p},${r+(l-r)*0.2}`,`${o-p*1.5},${r+(l-r)*0.55}`,`${o+p*0.5},${r+(l-r)*0.75}`,`C${o-p},${r+(l-r)*0.85}`,`${o+p*0.3},${r+(l-r)*0.95}`,`${o},${l}`].join(" ")}t(bt,"generateCliffPath");function wt(e,n,o,r){return[`M${e-o},${n}`,`A${o},${r} 0 1,1 ${e+o},${n}`,`A${o},${r} 0 1,1 ${e-o},${n}`,"Z"].join(" ")}t(wt,"generateConfusionPath");var yt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},It=t((e,n)=>{let o=e/2,r=n/2;return{complex:{cx:o/2,cy:r/2,x:0,y:0,w:o,h:r},complicated:{cx:o+o/2,cy:r/2,x:o,y:0,w:o,h:r},chaotic:{cx:o/2,cy:r+r/2,x:0,y:r,w:o,h:r},clear:{cx:o+o/2,cy:r+r/2,x:o,y:r,w:o,h:r},confusion:{cx:o,cy:r,x:o*0.7,y:r*0.7,w:o*0.6,h:r*0.6}}},"getDomainLayouts"),Wt=t(()=>{let e=He(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinDomainColors"),st=3,Rt=t((e,n,o,r)=>{let l=r.db,p=l.getDomains(),nt=l.getTransitions(),q=l.getDiagramTitle(),f=l.getAccTitle(),T=l.getAccDescription(),i=l.getConfig(),y=Wt();a.debug("Rendering Cynefin diagram");let{width:c,height:m,padding:C,showDomainDescriptions:h,boundaryAmplitude:U}=i,Z=c+C*2,J=m+C*2,E={complex:y.complexBg,complicated:y.complicatedBg,clear:y.clearBg,chaotic:y.chaoticBg,confusion:y.confusionBg},M=Q(n);if(G(M,J,Z,i.useMaxWidth??!0),M.attr("viewBox",`0 0 ${Z} ${J}`),f)M.append("title").text(f);if(T)M.append("desc").text(T);let z=M.append("g").attr("transform",`translate(${C}, ${C})`),K=It(c,m),ct=ht(i.seed,n),Ct=z.append("g").attr("class","cynefin-backgrounds"),rt=["complex","complicated","chaotic","clear"];for(let d of rt){let s=K[d];Ct.append("rect").attr("class","cynefinDomain").attr("x",s.x).attr("y",s.y).attr("width",s.w).attr("height",s.h).attr("fill",E[d]).attr("fill-opacity",0.4).attr("stroke","none")}let it=z.append("g").attr("class","cynefin-boundaries");it.append("path").attr("class","cynefinBoundary").attr("d",xt(c,m,ct,U)).attr("fill","none"),it.append("path").attr("class","cynefinBoundary").attr("d",$t(c,m,ct+100,U)).attr("fill","none"),it.append("path").attr("class","cynefinCliff").attr("d",bt(c,m)).attr("fill","none");let vt=c*0.15,Dt=m*0.15;z.append("path").attr("class","cynefinConfusion").attr("d",wt(c/2,m/2,vt,Dt)).attr("fill",E.confusion).attr("fill-opacity",0.5);let lt=z.append("g").attr("class","cynefin-labels");for(let d of rt){let s=K[d];lt.append("text").attr("class","cynefinDomainLabel").attr("x",s.cx).attr("y",h?s.cy-30:s.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d.charAt(0).toUpperCase()+d.slice(1))}if(lt.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?m/2-10:m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let d=z.append("g").attr("class","cynefin-subtitles");for(let s of rt){let g=K[s],u=yt[s];d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}d.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",m/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(yt.confusion.practice)}let dt=z.append("g").attr("class","cynefin-items"),W=26,ft=10,kt=["complex","complicated","chaotic","clear","confusion"];for(let d of kt){let s=p.get(d);if(!s||s.items.length===0)continue;let g=K[d],u=d==="confusion",H=s.items,Y=0;if(u&&s.items.length>st)Y=s.items.length-st,H=s.items.slice(0,st);let F;if(u){let b=h?22:14;F=g.cy+b}else F=g.cy+(h?25:15);if([...H].forEach((b,V)=>{let v=F+V*(W+4),_=dt.append("g"),O=_.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(b.label),w=b.label.length*7,x=O.node();if(x&&typeof x.getBBox==="function"){let ot=x.getBBox();if(ot.width>0)w=ot.width}let k=w+ft*2,j=g.cx-k/2;_.attr("transform",`translate(${j}, ${v})`),_.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",k).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.95),O.attr("x",k/2).attr("y",W/2)}),Y>0){let b=F+H.length*(W+4),V=`+${Y} more`,v=dt.append("g"),_=v.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(V),O=V.length*7,w=_.node();if(w&&typeof w.getBBox==="function"){let j=w.getBBox();if(j.width>0)O=j.width}let x=O+ft*2,k=g.cx-x/2;v.attr("transform",`translate(${k}, ${b})`),v.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.6),_.attr("x",x/2).attr("y",W/2)}}if(nt.length>0){let d=M.select("defs").empty()?M.append("defs"):M.select("defs"),s=`cynefin-arrow-${n}`;d.append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let g=z.append("g").attr("class","cynefin-arrows");nt.forEach((u)=>{let H=K[u.from],Y=K[u.to];if(!H||!Y)return;if(u.from===u.to){a.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}let{cx:F,cy:b}=H,{cx:V,cy:v}=Y,_=(F+V)/2,O=(b+v)/2,w=V-F,x=v-b,k=Math.sqrt(w*w+x*x),j=k*0.15,ot=-x/k,Tt=w/k,mt=_+ot*j,pt=O+Tt*j;if(g.append("path").attr("class","cynefinArrowLine").attr("d",`M${F},${b} Q${mt},${pt} ${V},${v}`).attr("fill","none").attr("marker-end",`url(#${s})`),u.label)g.append("text").attr("class","cynefinArrowLabel").attr("x",mt).attr("y",pt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}if(q)z.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-C/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(q)},"draw"),Ft={draw:Rt},Vt=t(()=>{let e=He(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinTheme"),_t=t(()=>{let e=Vt();return`
2
2
  .cynefinDomain {
3
3
  stroke: none;
4
4
  }
Binary file
Binary file
@@ -1 +1 @@
1
- import{t}from"./chunk-v2bkkhb8.js";var c=1;function i(){if(typeof globalThis>"u")return;return globalThis}t(i,"getCaptureGlobal");function p(){return Boolean(i()?.mermaidCaptureSizes)}t(p,"shouldCaptureSizes");function u(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}t(u,"capturedFromLocation");function d(n,r){let o=i();if(!o)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";o.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};o.mermaidCapturedSizes.push(a),o.mermaidLastCapturedSizes=a}t(d,"emitCapturedSizes");function m(n,r){let o=[];for(let e of r.nodes){if(e.isGroup)continue;o.push({id:e.id,width:e.width??0,height:e.height??0})}if(o.length===0)return;d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:o},n)}t(m,"captureNodeSizes");export{m as captureNodeSizes};
1
+ import{t}from"./chunk-dbv8qpen.js";var c=1;function i(){if(typeof globalThis>"u")return;return globalThis}t(i,"getCaptureGlobal");function p(){return Boolean(i()?.mermaidCaptureSizes)}t(p,"shouldCaptureSizes");function u(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}t(u,"capturedFromLocation");function d(n,r){let o=i();if(!o)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";o.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};o.mermaidCapturedSizes.push(a),o.mermaidLastCapturedSizes=a}t(d,"emitCapturedSizes");function m(n,r){let o=[];for(let e of r.nodes){if(e.isGroup)continue;o.push({id:e.id,width:e.width??0,height:e.height??0})}if(o.length===0)return;d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:o},n)}t(m,"captureNodeSizes");export{m as captureNodeSizes};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Sa}from"./chunk-21d8pzcm.js";export{Sa as createRailroadPegServices};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{v,o,_,i,r,p,e,n,y,Mt}from"./chunk-qjg6dw46.js";var V="__chat__";function S(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function L(t){let u=Number.isFinite(t)?Math.max(0,t):0;return Math.round(u).toLocaleString("en-US")}function R(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let c=Math.floor(t/1000),a=Math.floor(c/60),f=c%60;return f>0?`${a}m ${f}s`:`${a}m`}if(t<259200000){let c=Math.floor(t/60000),a=Math.floor(c/60),f=c%60;return f>0?`${a}h ${f}m`:`${a}h`}let u=Math.floor(t/3600000),g=Math.floor(u/24),m=u%24;return m>0?`${g}d ${m}h`:`${g}d`}function ae(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let m=t/3600000;return`${m>=10?Math.round(m).toString():m.toFixed(1).replace(/\.0$/,"")}h`}let u=t/86400000;return`${u>=10?Math.round(u).toString():u.toFixed(1).replace(/\.0$/,"")}d`}function B(t,u=1){if(!Number.isFinite(t)||t<=0)return"0%";let g=10**-u/100;if(t<g)return`<${(g*100).toFixed(u)}%`;return`${(t*100).toFixed(u)}%`}function Q(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function W(t){let u=t.split("-"),g=u[1],m=u[2];if(g!==void 0&&m!==void 0)return`${g}/${m}`;return t}function Z(t){let u=t.split("-"),g=u[0],m=u[1],c=u[2];if(g===void 0||m===void 0||c===void 0)return t;let a=Number(g),f=Number(m)-1,b=Number(c),M=new Date(Date.UTC(a,f,b)),C=["周日","周一","周二","周三","周四","周五","周六"],w=M.getUTCDay(),F=C[w]??"";return`${t} ${F}`}function se(t,u=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let g=Math.max(0,u-t);if(g<60000)return"刚刚";if(g<3600000)return`${Math.max(1,Math.floor(g/60000))} 分钟前`;if(g<86400000)return`${Math.max(1,Math.floor(g/3600000))} 小时前`;if(g<2592000000)return`${Math.max(1,Math.floor(g/86400000))} 天前`;let m=new Date(t),c=m.getFullYear(),a=String(m.getMonth()+1).padStart(2,"0"),f=String(m.getDate()).padStart(2,"0");return`${c}-${a}-${f}`}function K(t){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${t.percent}%`}})})}function Y(t){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:t.children})}function G(t){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:t.children})}function J(t){return n(G,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:S(t.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:S(t.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:S(t.stat.cacheReadTokens)}),t.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",B(t.cacheHitRate),")"]})]})]})}function oe(t){let{projects:u,selectedProjectID:g,onSelectProject:m}=t,{style:c}=y();if(u.length===0)return e("div",{className:c("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=a.projectID??V,b=g===f,M=Math.max(a.tokenShare>0?1:0,a.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate",children:a.name}),e("span",{className:c("control.badge","font-mono truncate max-w-[240px]"),title:a.directory||"未绑定项目目录",children:a.directory||"独立会话"}),e("button",{type:"button",onClick:()=>m(b?null:f),className:"rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:b?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),n("span",{className:"text-[11px] text-faint",children:["(",B(a.tokenShare),")"]})]})]}),e(K,{percent:M}),n(Y,{children:[e(J,{stat:a,cacheHitRate:a.cacheHitRate}),n(G,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:a.toolCalls.toLocaleString()})," 次"]})]})]})]},f)})})}function re(t){let{models:u}=t,{ModelIcon:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(g,{modelID:c.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.shortName}),e("span",{className:m("control.badge","font-mono shrink-0"),children:c.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[c.avgTps!==null&&n("span",{className:"text-[11px] text-dim",children:[c.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:L(c.totalTokens),children:[S(c.totalTokens)," ",n("span",{className:"text-[11px] font-normal text-faint",children:["(",B(c.share),")"]})]})]})]}),e(K,{percent:a}),n(Y,{children:[e(J,{stat:c,cacheHitRate:c.cacheHitRate}),n(G,{children:[n("span",{children:[e("span",{className:"text-ink",children:c.turns.toLocaleString()})," 轮",c.errors>0?n("span",{className:"text-danger",children:[" (",c.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:c.toolCalls.toLocaleString()})," 次"]}),c.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:ae(c.generationMs)})]})]})]})]},c.model)})})}function ie(t){let{tools:u}=t,{StatusChip:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100),f=c.successRate>=0.95?"success":c.successRate>=0.8?"warning":"danger",b=Math.max(0,c.calls-c.errors),M=c.calls>0?Math.round(c.outputBytes/c.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.name}),n(g,{tone:f,children:["成功率 ",B(c.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[c.calls.toLocaleString()," 次"]}),n("span",{className:"text-[11px] text-faint",children:["(",B(c.share),")"]})]})]}),e(K,{percent:a}),n(Y,{children:[n(G,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:b.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:c.errors>0?"text-danger":"text-ink",children:c.errors.toLocaleString()})," 次"]})]}),n(G,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:Q(c.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:Q(M)})]})]})]})]},c.name)})})}function le(t){let{sessions:u,onOpenSession:g}=t,{style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无高消耗会话记录"});let c=Math.max(1,...u.map((a)=>a.totalTokens));return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=c>0?Math.max(1,a.totalTokens/c*100):0,b=a.model.split("/").pop()??a.model;return n("button",{type:"button",onClick:()=>g(a.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:a.title.trim()||"新会话"}),e("span",{className:m("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:a.projectName,children:a.projectName}),a.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-[10.5px] text-accent shrink-0",children:"子代理"}),a.archivedAt!==null&&e("span",{className:m("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),e(Mt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(K,{percent:f}),n(Y,{children:[e(J,{stat:a}),n(G,{children:[e("span",{className:"text-ink",children:b}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:se(a.updated)})]})]})]},a.id)})})}var ce=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function ue(t){let{cn:u,Segmented:g,SettingGroup:m,style:c}=y(),{daily:a}=t,[f,b]=r("tokens"),[M,C]=r(null),w=_(()=>a.some((s)=>s.totalTokens>0||s.activeDurationMs>0||s.runs>0),[a]),F=_(()=>{if(a.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(f==="tokens"){let N=a.reduce((P,A)=>P+A.totalTokens,0),j=a.filter((P)=>P.totalTokens>0).length,T=a[0];for(let P of a)if(!T||P.totalTokens>T.totalTokens)T=P;return{totalText:S(N),totalFullText:L(N),avgText:j>0?S(Math.round(N/j)):"0",peakDate:T&&T.totalTokens>0?W(T.date):"—",peakValueText:T&&T.totalTokens>0?S(T.totalTokens):"0"}}if(f==="duration"){let N=a.reduce((P,A)=>P+A.activeDurationMs,0),j=a.filter((P)=>P.activeDurationMs>0).length,T=a[0];for(let P of a)if(!T||P.activeDurationMs>T.activeDurationMs)T=P;return{totalText:R(N),totalFullText:R(N),avgText:j>0?R(Math.round(N/j)):"0s",peakDate:T&&T.activeDurationMs>0?W(T.date):"—",peakValueText:T&&T.activeDurationMs>0?R(T.activeDurationMs):"0s"}}let s=a.reduce((N,j)=>N+j.assistantTurns,0),l=a.reduce((N,j)=>N+j.userMessages,0),x=s+l,k=a.filter((N)=>N.assistantTurns>0||N.userMessages>0).length,h=a[0];for(let N of a){let j=h?h.assistantTurns+h.userMessages:0;if(!h||N.assistantTurns+N.userMessages>j)h=N}let H=h?h.assistantTurns+h.userMessages:0;return{totalText:`${x.toLocaleString()} 轮`,totalFullText:`助手 ${s.toLocaleString()} 轮 · 用户 ${l.toLocaleString()} 问`,avgText:k>0?`${(x/k).toFixed(1)} 轮/天`:"0 轮/天",peakDate:h&&H>0?W(h.date):"—",peakValueText:h&&H>0?`${H.toLocaleString()} 轮`:"0 轮"}},[a,f]),D=_(()=>{if(M){let s=a.find((l)=>l.date===M);if(s)return s}for(let s=a.length-1;s>=0;s--){let l=a[s];if(l&&(l.totalTokens>0||l.activeDurationMs>0||l.runs>0))return l}return a[a.length-1]},[a,M]),z=_(()=>{if(f==="tokens")return Math.max(1,...a.map((s)=>s.totalTokens));if(f==="duration")return Math.max(1000,...a.map((s)=>s.activeDurationMs));return Math.max(1,...a.map((s)=>s.assistantTurns+s.userMessages))},[a,f]),d=_(()=>{if(a.length<=7)return a.map((x)=>x.date);let s=6,l=[];for(let x=0;x<s;x++){let k=Math.round(x*(a.length-1)/(s-1)),h=a[k];if(h)l.push(h.date)}return l},[a]);if(!w)return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:e("div",{className:c("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",e("span",{className:"text-ink",children:F.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:F.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:F.peakValueText}),F.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",F.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-[11px] text-dim",children:[f==="tokens"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent/40"}),"缓存读"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"输入"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"输出"]})]}),f==="duration"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"工作调度"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"模型推理"]})]}),f==="activity"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"助手回复"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"用户提问"]})]})]})]}),n("div",{className:"relative h-44 w-full pt-1",children:[n("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-5 text-[10px] text-faint/60",children:[e("div",{className:"border-b border-line/40 w-full"}),e("div",{className:"border-b border-line/30 w-full"}),e("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>C(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:a.map((s)=>{let l=s.totalTokens;if(f==="duration")l=s.activeDurationMs;else if(f==="activity")l=s.assistantTurns+s.userMessages;let x=l<=0,k=x?0:Math.max(3,Math.min(100,l/z*100)),h=D?.date===s.date;return n("button",{type:"button","aria-label":`${s.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>C(s.date),onFocus:()=>C(s.date),onClick:()=>C(s.date),children:[e("div",{className:u("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",h?"bg-accent/10":"group-hover:bg-raised/60")}),x?e("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${k}%`},children:[f==="tokens"&&n(p,{children:[s.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.outputTokens/s.totalTokens*100}%`}}),s.inputTokens+s.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(s.inputTokens+s.cacheWriteTokens)/s.totalTokens*100}%`}}),s.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${s.cacheReadTokens/s.totalTokens*100}%`}})]}),f==="duration"&&n(p,{children:[s.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,s.generationMs/Math.max(1,s.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),f==="activity"&&n(p,{children:[s.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.userMessages/Math.max(1,s.assistantTurns+s.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),h&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},s.date)})}),e("div",{className:u("flex items-center pt-1.5 text-[10px] text-faint font-mono tabular-nums",a.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:d.map((s)=>e("div",{className:u("whitespace-nowrap",a.length<=7&&"flex-1 text-center"),children:W(s)},s))})]})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:D?n(p,{children:[e("span",{className:"text-ink",children:Z(D.date)}),n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 text-dim",children:[n("span",{children:["Token ",e("span",{className:"text-ink",children:S(D.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(D.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[D.assistantTurns+D.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[D.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function pe(t){let{cn:u,SettingGroup:g}=y(),{daily:m,hourly:c}=t,[a,f]=r(null),b=_(()=>{let l=new Map;for(let k of c)l.set(k.hour,k);let x=[];for(let k=0;k<24;k++){let h=l.get(k);if(h)x.push(h);else x.push({hour:k,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return x},[c]),M=_(()=>{let l=b[0];for(let x of b)if(!l||x.totalTokens>l.totalTokens)l=x;return l&&l.totalTokens>0?l:null},[b]),C=_(()=>b.reduce((l,x)=>l+x.totalTokens,0),[b]),w=_(()=>Math.max(1,...b.map((l)=>l.totalTokens)),[b]),F=_(()=>{if(C<=0)return 0;return b.filter((x)=>x.hour>=8&&x.hour<20).reduce((x,k)=>x+k.totalTokens,0)/C},[b,C]),D=_(()=>Math.max(1,...m.map((l)=>l.totalTokens)),[m]),z=_(()=>{let l=0,x=0;for(let k of m)if(k.totalTokens>0||k.activeDurationMs>0||k.runs>0){if(x++,x>l)l=x}else x=0;return l},[m]),d=_(()=>m.filter((l)=>l.totalTokens>0||l.activeDurationMs>0||l.runs>0).length,[m]),s=a!==null?b[a]:M;return n(g,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",B(F)]}),n("span",{children:["连续活跃 ",z," 天"]}),n("span",{children:["活跃 ",d,"/",m.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"text-dim",children:"24 小时分布"}),s?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[a!==null?"时段 ":"高峰 ",String(s.hour).padStart(2,"0"),":00 -"," ",String((s.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:S(s.totalTokens)}),s.activeDurationMs>0&&e("span",{children:R(s.activeDurationMs)})]}):e("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>f(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:b.map((l)=>{let x=M?.hour===l.hour,k=a===l.hour,h=l.totalTokens>0?Math.max(6,l.totalTokens/w*100):0,H=`${String(l.hour).padStart(2,"0")}:00 - ${String((l.hour+1)%24).padStart(2,"0")}:00
1
+ import{v,o,_,i,r,p,e,n,y,Nt}from"./chunk-b83bzjcx.js";var V="__chat__";function S(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function L(t){let u=Number.isFinite(t)?Math.max(0,t):0;return Math.round(u).toLocaleString("en-US")}function R(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let c=Math.floor(t/1000),a=Math.floor(c/60),f=c%60;return f>0?`${a}m ${f}s`:`${a}m`}if(t<259200000){let c=Math.floor(t/60000),a=Math.floor(c/60),f=c%60;return f>0?`${a}h ${f}m`:`${a}h`}let u=Math.floor(t/3600000),g=Math.floor(u/24),m=u%24;return m>0?`${g}d ${m}h`:`${g}d`}function ae(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let m=t/3600000;return`${m>=10?Math.round(m).toString():m.toFixed(1).replace(/\.0$/,"")}h`}let u=t/86400000;return`${u>=10?Math.round(u).toString():u.toFixed(1).replace(/\.0$/,"")}d`}function B(t,u=1){if(!Number.isFinite(t)||t<=0)return"0%";let g=10**-u/100;if(t<g)return`<${(g*100).toFixed(u)}%`;return`${(t*100).toFixed(u)}%`}function Q(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function W(t){let u=t.split("-"),g=u[1],m=u[2];if(g!==void 0&&m!==void 0)return`${g}/${m}`;return t}function Z(t){let u=t.split("-"),g=u[0],m=u[1],c=u[2];if(g===void 0||m===void 0||c===void 0)return t;let a=Number(g),f=Number(m)-1,b=Number(c),M=new Date(Date.UTC(a,f,b)),C=["周日","周一","周二","周三","周四","周五","周六"],w=M.getUTCDay(),F=C[w]??"";return`${t} ${F}`}function se(t,u=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let g=Math.max(0,u-t);if(g<60000)return"刚刚";if(g<3600000)return`${Math.max(1,Math.floor(g/60000))} 分钟前`;if(g<86400000)return`${Math.max(1,Math.floor(g/3600000))} 小时前`;if(g<2592000000)return`${Math.max(1,Math.floor(g/86400000))} 天前`;let m=new Date(t),c=m.getFullYear(),a=String(m.getMonth()+1).padStart(2,"0"),f=String(m.getDate()).padStart(2,"0");return`${c}-${a}-${f}`}function K(t){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${t.percent}%`}})})}function Y(t){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:t.children})}function G(t){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:t.children})}function J(t){return n(G,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:S(t.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:S(t.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:S(t.stat.cacheReadTokens)}),t.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",B(t.cacheHitRate),")"]})]})]})}function oe(t){let{projects:u,selectedProjectID:g,onSelectProject:m}=t,{style:c}=y();if(u.length===0)return e("div",{className:c("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=a.projectID??V,b=g===f,M=Math.max(a.tokenShare>0?1:0,a.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate",children:a.name}),e("span",{className:c("control.badge","font-mono truncate max-w-[240px]"),title:a.directory||"未绑定项目目录",children:a.directory||"独立会话"}),e("button",{type:"button",onClick:()=>m(b?null:f),className:"rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:b?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),n("span",{className:"text-[11px] text-faint",children:["(",B(a.tokenShare),")"]})]})]}),e(K,{percent:M}),n(Y,{children:[e(J,{stat:a,cacheHitRate:a.cacheHitRate}),n(G,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:a.toolCalls.toLocaleString()})," 次"]})]})]})]},f)})})}function re(t){let{models:u}=t,{ModelIcon:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(g,{modelID:c.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.shortName}),e("span",{className:m("control.badge","font-mono shrink-0"),children:c.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[c.avgTps!==null&&n("span",{className:"text-[11px] text-dim",children:[c.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:L(c.totalTokens),children:[S(c.totalTokens)," ",n("span",{className:"text-[11px] font-normal text-faint",children:["(",B(c.share),")"]})]})]})]}),e(K,{percent:a}),n(Y,{children:[e(J,{stat:c,cacheHitRate:c.cacheHitRate}),n(G,{children:[n("span",{children:[e("span",{className:"text-ink",children:c.turns.toLocaleString()})," 轮",c.errors>0?n("span",{className:"text-danger",children:[" (",c.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:c.toolCalls.toLocaleString()})," 次"]}),c.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:ae(c.generationMs)})]})]})]})]},c.model)})})}function ie(t){let{tools:u}=t,{StatusChip:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100),f=c.successRate>=0.95?"success":c.successRate>=0.8?"warning":"danger",b=Math.max(0,c.calls-c.errors),M=c.calls>0?Math.round(c.outputBytes/c.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.name}),n(g,{tone:f,children:["成功率 ",B(c.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[c.calls.toLocaleString()," 次"]}),n("span",{className:"text-[11px] text-faint",children:["(",B(c.share),")"]})]})]}),e(K,{percent:a}),n(Y,{children:[n(G,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:b.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:c.errors>0?"text-danger":"text-ink",children:c.errors.toLocaleString()})," 次"]})]}),n(G,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:Q(c.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:Q(M)})]})]})]})]},c.name)})})}function le(t){let{sessions:u,onOpenSession:g}=t,{style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无高消耗会话记录"});let c=Math.max(1,...u.map((a)=>a.totalTokens));return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=c>0?Math.max(1,a.totalTokens/c*100):0,b=a.model.split("/").pop()??a.model;return n("button",{type:"button",onClick:()=>g(a.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:a.title.trim()||"新会话"}),e("span",{className:m("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:a.projectName,children:a.projectName}),a.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-[10.5px] text-accent shrink-0",children:"子代理"}),a.archivedAt!==null&&e("span",{className:m("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),e(Nt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(K,{percent:f}),n(Y,{children:[e(J,{stat:a}),n(G,{children:[e("span",{className:"text-ink",children:b}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:se(a.updated)})]})]})]},a.id)})})}var ce=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function ue(t){let{cn:u,Segmented:g,SettingGroup:m,style:c}=y(),{daily:a}=t,[f,b]=r("tokens"),[M,C]=r(null),w=_(()=>a.some((s)=>s.totalTokens>0||s.activeDurationMs>0||s.runs>0),[a]),F=_(()=>{if(a.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(f==="tokens"){let N=a.reduce((P,A)=>P+A.totalTokens,0),j=a.filter((P)=>P.totalTokens>0).length,T=a[0];for(let P of a)if(!T||P.totalTokens>T.totalTokens)T=P;return{totalText:S(N),totalFullText:L(N),avgText:j>0?S(Math.round(N/j)):"0",peakDate:T&&T.totalTokens>0?W(T.date):"—",peakValueText:T&&T.totalTokens>0?S(T.totalTokens):"0"}}if(f==="duration"){let N=a.reduce((P,A)=>P+A.activeDurationMs,0),j=a.filter((P)=>P.activeDurationMs>0).length,T=a[0];for(let P of a)if(!T||P.activeDurationMs>T.activeDurationMs)T=P;return{totalText:R(N),totalFullText:R(N),avgText:j>0?R(Math.round(N/j)):"0s",peakDate:T&&T.activeDurationMs>0?W(T.date):"—",peakValueText:T&&T.activeDurationMs>0?R(T.activeDurationMs):"0s"}}let s=a.reduce((N,j)=>N+j.assistantTurns,0),l=a.reduce((N,j)=>N+j.userMessages,0),x=s+l,k=a.filter((N)=>N.assistantTurns>0||N.userMessages>0).length,h=a[0];for(let N of a){let j=h?h.assistantTurns+h.userMessages:0;if(!h||N.assistantTurns+N.userMessages>j)h=N}let H=h?h.assistantTurns+h.userMessages:0;return{totalText:`${x.toLocaleString()} 轮`,totalFullText:`助手 ${s.toLocaleString()} 轮 · 用户 ${l.toLocaleString()} 问`,avgText:k>0?`${(x/k).toFixed(1)} 轮/天`:"0 轮/天",peakDate:h&&H>0?W(h.date):"—",peakValueText:h&&H>0?`${H.toLocaleString()} 轮`:"0 轮"}},[a,f]),D=_(()=>{if(M){let s=a.find((l)=>l.date===M);if(s)return s}for(let s=a.length-1;s>=0;s--){let l=a[s];if(l&&(l.totalTokens>0||l.activeDurationMs>0||l.runs>0))return l}return a[a.length-1]},[a,M]),z=_(()=>{if(f==="tokens")return Math.max(1,...a.map((s)=>s.totalTokens));if(f==="duration")return Math.max(1000,...a.map((s)=>s.activeDurationMs));return Math.max(1,...a.map((s)=>s.assistantTurns+s.userMessages))},[a,f]),d=_(()=>{if(a.length<=7)return a.map((x)=>x.date);let s=6,l=[];for(let x=0;x<s;x++){let k=Math.round(x*(a.length-1)/(s-1)),h=a[k];if(h)l.push(h.date)}return l},[a]);if(!w)return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:e("div",{className:c("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",e("span",{className:"text-ink",children:F.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:F.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:F.peakValueText}),F.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",F.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-[11px] text-dim",children:[f==="tokens"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent/40"}),"缓存读"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"输入"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"输出"]})]}),f==="duration"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"工作调度"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"模型推理"]})]}),f==="activity"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"助手回复"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"用户提问"]})]})]})]}),n("div",{className:"relative h-44 w-full pt-1",children:[n("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-5 text-[10px] text-faint/60",children:[e("div",{className:"border-b border-line/40 w-full"}),e("div",{className:"border-b border-line/30 w-full"}),e("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>C(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:a.map((s)=>{let l=s.totalTokens;if(f==="duration")l=s.activeDurationMs;else if(f==="activity")l=s.assistantTurns+s.userMessages;let x=l<=0,k=x?0:Math.max(3,Math.min(100,l/z*100)),h=D?.date===s.date;return n("button",{type:"button","aria-label":`${s.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>C(s.date),onFocus:()=>C(s.date),onClick:()=>C(s.date),children:[e("div",{className:u("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",h?"bg-accent/10":"group-hover:bg-raised/60")}),x?e("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${k}%`},children:[f==="tokens"&&n(p,{children:[s.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.outputTokens/s.totalTokens*100}%`}}),s.inputTokens+s.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(s.inputTokens+s.cacheWriteTokens)/s.totalTokens*100}%`}}),s.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${s.cacheReadTokens/s.totalTokens*100}%`}})]}),f==="duration"&&n(p,{children:[s.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,s.generationMs/Math.max(1,s.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),f==="activity"&&n(p,{children:[s.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.userMessages/Math.max(1,s.assistantTurns+s.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),h&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},s.date)})}),e("div",{className:u("flex items-center pt-1.5 text-[10px] text-faint font-mono tabular-nums",a.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:d.map((s)=>e("div",{className:u("whitespace-nowrap",a.length<=7&&"flex-1 text-center"),children:W(s)},s))})]})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:D?n(p,{children:[e("span",{className:"text-ink",children:Z(D.date)}),n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 text-dim",children:[n("span",{children:["Token ",e("span",{className:"text-ink",children:S(D.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(D.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[D.assistantTurns+D.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[D.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function pe(t){let{cn:u,SettingGroup:g}=y(),{daily:m,hourly:c}=t,[a,f]=r(null),b=_(()=>{let l=new Map;for(let k of c)l.set(k.hour,k);let x=[];for(let k=0;k<24;k++){let h=l.get(k);if(h)x.push(h);else x.push({hour:k,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return x},[c]),M=_(()=>{let l=b[0];for(let x of b)if(!l||x.totalTokens>l.totalTokens)l=x;return l&&l.totalTokens>0?l:null},[b]),C=_(()=>b.reduce((l,x)=>l+x.totalTokens,0),[b]),w=_(()=>Math.max(1,...b.map((l)=>l.totalTokens)),[b]),F=_(()=>{if(C<=0)return 0;return b.filter((x)=>x.hour>=8&&x.hour<20).reduce((x,k)=>x+k.totalTokens,0)/C},[b,C]),D=_(()=>Math.max(1,...m.map((l)=>l.totalTokens)),[m]),z=_(()=>{let l=0,x=0;for(let k of m)if(k.totalTokens>0||k.activeDurationMs>0||k.runs>0){if(x++,x>l)l=x}else x=0;return l},[m]),d=_(()=>m.filter((l)=>l.totalTokens>0||l.activeDurationMs>0||l.runs>0).length,[m]),s=a!==null?b[a]:M;return n(g,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",B(F)]}),n("span",{children:["连续活跃 ",z," 天"]}),n("span",{children:["活跃 ",d,"/",m.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"text-dim",children:"24 小时分布"}),s?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[a!==null?"时段 ":"高峰 ",String(s.hour).padStart(2,"0"),":00 -"," ",String((s.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:S(s.totalTokens)}),s.activeDurationMs>0&&e("span",{children:R(s.activeDurationMs)})]}):e("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>f(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:b.map((l)=>{let x=M?.hour===l.hour,k=a===l.hour,h=l.totalTokens>0?Math.max(6,l.totalTokens/w*100):0,H=`${String(l.hour).padStart(2,"0")}:00 - ${String((l.hour+1)%24).padStart(2,"0")}:00
2
2
  消耗: ${L(l.totalTokens)} Token
3
3
  耗时: ${R(l.activeDurationMs)}
4
4
  助手轮次: ${l.assistantTurns} 轮`;return e("button",{type:"button","aria-label":`${String(l.hour).padStart(2,"0")}:00 时段统计`,className:"flex-1 h-full flex flex-col justify-end items-center group relative cursor-pointer bg-transparent p-0 border-0 focus:outline-hidden",title:H,onMouseEnter:()=>f(l.hour),onFocus:()=>f(l.hour),onClick:()=>f(l.hour),children:h>0?e("div",{className:u("w-full max-w-[20px] rounded-t-xs transition-all duration-200",x||k?"bg-accent":"bg-accent/55 group-hover:bg-accent"),style:{height:`${h}%`}}):e("div",{className:"h-1 w-full max-w-[20px] rounded-full bg-raised group-hover:bg-dim/30"})},l.hour)})}),n("div",{className:"flex justify-between items-center text-[10px] text-faint font-mono pt-1.5 border-t border-line/40",children:[e("span",{children:"00:00"}),e("span",{children:"04:00"}),e("span",{children:"08:00"}),e("span",{children:"12:00"}),e("span",{children:"16:00"}),e("span",{children:"20:00"}),e("span",{children:"23:00"})]})]})]}),n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"text-xs text-dim",children:["自然日热力 (",m.length," 天)"]}),e("div",{className:"flex flex-wrap items-center gap-1.5",children:m.map((l)=>{let x="bg-raised";if(l.totalTokens>0){let h=l.totalTokens/D;if(h<=0.33)x="bg-accent/30";else if(h<=0.66)x="bg-accent/60";else x="bg-accent"}let k=`${Z(l.date)}
Binary file
Binary file
@@ -1,9 +1,9 @@
1
- import{t,a,rt,j,Kn,k,A,R,I,L,D,P,M,u,h,F,bt,De,Te,Ee,Lt,ze,Ue}from"./chunk-v2bkkhb8.js";import{In}from"./chunk-zbzgd8kn.js";import{Ct}from"./chunk-k4pknkvp.js";import{Fe}from"./chunk-1ghnag5v.js";import{Le}from"./chunk-vhpzp7zd.js";var Je=function(){var s=t(function(K,b,m,g){for(m=m||{},g=K.length;g--;m[K[g]]=b);return m},"o"),r=[1,18],n=[1,19],l=[1,20],o=[1,41],p=[1,26],f=[1,42],d=[1,24],E=[1,25],T=[1,32],w=[1,33],J=[1,34],B=[1,45],Ne=[1,35],xe=[1,36],ve=[1,37],Ie=[1,38],Oe=[1,27],we=[1,28],Me=[1,29],Pe=[1,30],Ve=[1,31],_=[1,44],S=[1,46],N=[1,43],x=[1,47],Re=[1,9],C=[1,8,9],ce=[1,58],he=[1,59],de=[1,60],pe=[1,61],Ae=[1,62],Ge=[1,63],Ye=[1,64],V=[1,8,9,41],Ze=[1,77],H=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],be=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],fe=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],$e=[13,60,68,69,70,71,72,86,100,102,103],ke=[1,103],ee=[1,121],te=[1,117],se=[1,113],ie=[1,119],ae=[1,114],re=[1,115],ne=[1,116],le=[1,118],ue=[1,120],et=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],me=[12,39],Ke=[1,8,9,39,41,44,46],ge=[1,8,9,22],st=[1,153],it=[1,8,9,61],z=[1,8,9,22,50,60,61,82,86,87,88,89,90],We={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:t(function(b,m,g,c,y,e,oe){var i=e.length-1;switch(y){case 8:this.$=e[i-1];break;case 9:case 10:case 13:case 15:this.$=e[i];break;case 11:case 14:this.$=e[i-2]+"."+e[i];break;case 12:case 16:this.$=e[i-1]+e[i];break;case 17:case 18:this.$=e[i-1]+"~"+e[i]+"~";break;case 19:c.addRelation(e[i]);break;case 20:e[i-1].title=c.cleanupLabel(e[i]),c.addRelation(e[i-1]);break;case 31:this.$=e[i].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=e[i].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(e[i-3],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(e[i-4],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(e[i]);break;case 37:this.$=c.addNamespace(e[i-1],e[i]);break;case 38:this.$=[[e[i]],[]];break;case 39:this.$=[[e[i-1]],[]];break;case 40:e[i][0].unshift(e[i-2]),this.$=e[i];break;case 41:this.$=[[],[e[i]]];break;case 42:this.$=[[],[e[i-1]]];break;case 43:e[i][1].unshift(e[i-2]),this.$=e[i];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[i];break;case 48:c.setCssClass(e[i-2],e[i]);break;case 49:c.addMembers(e[i-3],e[i-1]);break;case 51:c.setCssClass(e[i-5],e[i-3]),c.addMembers(e[i-5],e[i-1]);break;case 52:c.addAnnotation(e[i-3],e[i-1]);break;case 53:c.addAnnotation(e[i-6],e[i-4]),c.addMembers(e[i-6],e[i-1]);break;case 54:c.addAnnotation(e[i-5],e[i-3]);break;case 55:this.$=e[i],c.addClass(e[i]);break;case 56:this.$=e[i-1],c.addClass(e[i-1]),c.setClassLabel(e[i-1],e[i]);break;case 60:c.addAnnotation(e[i],e[i-2]);break;case 61:case 74:this.$=[e[i]];break;case 62:e[i].push(e[i-1]),this.$=e[i];break;case 63:break;case 64:c.addMember(e[i-1],c.cleanupLabel(e[i]));break;case 65:break;case 66:break;case 67:this.$={id1:e[i-2],id2:e[i],relation:e[i-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[i-3],id2:e[i],relation:e[i-1],relationTitle1:e[i-2],relationTitle2:"none"};break;case 69:this.$={id1:e[i-3],id2:e[i],relation:e[i-2],relationTitle1:"none",relationTitle2:e[i-1]};break;case 70:this.$={id1:e[i-4],id2:e[i],relation:e[i-2],relationTitle1:e[i-3],relationTitle2:e[i-1]};break;case 71:this.$=c.addNote(e[i],e[i-1]);break;case 72:this.$=c.addNote(e[i]);break;case 73:this.$=e[i-2],c.defineClass(e[i-1],e[i]);break;case 75:this.$=e[i-2].concat([e[i]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:e[i-2],type2:e[i],lineType:e[i-1]};break;case 81:this.$={type1:"none",type2:e[i],lineType:e[i-1]};break;case 82:this.$={type1:e[i-1],type2:"none",lineType:e[i]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[i]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[i-2],c.setClickEvent(e[i-1],e[i]);break;case 92:case 98:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 93:this.$=e[i-2],c.setLink(e[i-1],e[i]);break;case 94:this.$=e[i-3],c.setLink(e[i-2],e[i-1],e[i]);break;case 95:this.$=e[i-3],c.setLink(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 96:this.$=e[i-4],c.setLink(e[i-3],e[i-2],e[i]),c.setTooltip(e[i-3],e[i-1]);break;case 99:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1],e[i]);break;case 100:this.$=e[i-4],c.setClickEvent(e[i-3],e[i-2],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 101:this.$=e[i-3],c.setLink(e[i-2],e[i]);break;case 102:this.$=e[i-4],c.setLink(e[i-3],e[i-1],e[i]);break;case 103:this.$=e[i-4],c.setLink(e[i-3],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 104:this.$=e[i-5],c.setLink(e[i-4],e[i-2],e[i]),c.setTooltip(e[i-4],e[i-1]);break;case 105:this.$=e[i-2],c.setCssStyle(e[i-1],e[i]);break;case 106:c.setCssClass(e[i-1],e[i]);break;case 107:this.$=[e[i]];break;case 108:e[i-2].push(e[i]),this.$=e[i-2];break;case 110:this.$=e[i-1]+e[i];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:w,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:N,103:x},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Re,[2,5],{8:[1,48]}),{8:[1,49]},s(C,[2,19],{22:[1,50]}),s(C,[2,21]),s(C,[2,22]),s(C,[2,23]),s(C,[2,24]),s(C,[2,25]),s(C,[2,26]),s(C,[2,27]),s(C,[2,28]),s(C,[2,29]),s(C,[2,30]),{34:[1,51]},{36:[1,52]},s(C,[2,33]),s(C,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye}),{39:[1,65]},s(V,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(C,[2,65]),s(C,[2,66]),{16:69,60:B,86:_,100:S,102:N},{16:39,17:40,19:70,60:B,86:_,100:S,102:N,103:x},{16:39,17:40,19:71,60:B,86:_,100:S,102:N,103:x},{16:39,17:40,19:72,60:B,86:_,100:S,102:N,103:x},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:B,86:_,100:S,102:N,103:x},{13:Ze,55:76},{58:78,60:[1,79]},s(C,[2,76]),s(C,[2,77]),s(C,[2,78]),s(C,[2,79]),s(H,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:B,86:_,100:S,102:N,103:x}),s(H,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:B,86:_,100:S,102:N,103:x},{16:39,17:40,19:87,60:B,86:_,100:S,102:N,103:x},s(be,[2,133]),s(be,[2,134]),s(be,[2,135]),s(be,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Re,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:l,42:o,46:p,48:f,51:d,52:E,54:T,56:w,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:N,103:x}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:w,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:N,103:x},s(C,[2,20]),s(C,[2,31]),s(C,[2,32]),{13:[1,91],16:39,17:40,19:90,60:B,86:_,100:S,102:N,103:x},{53:92,66:56,67:57,68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye},s(C,[2,64]),{67:93,73:Ge,74:Ye},s(fe,[2,83],{66:94,68:ce,69:he,70:de,71:pe,72:Ae}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s($e,[2,89]),s($e,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:f,54:T,56:w},{16:100,60:B,86:_,100:S,102:N},{41:[1,102],45:101,51:ke},{16:104,60:B,86:_,100:S,102:N},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:se,82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},{60:[1,122]},{13:Ze,55:123},s(V,[2,72]),s(V,[2,138]),{22:ee,50:te,59:124,60:se,61:[1,125],82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(et,[2,74]),{16:39,17:40,19:126,60:B,86:_,100:S,102:N,103:x},s(H,[2,16]),s(H,[2,17]),s(H,[2,18]),{11:127,12:tt,39:[2,36]},s(me,[2,9],{16:85,17:86,15:130,18:[1,129],60:B,86:_,100:S,102:N,103:x}),s(me,[2,10]),s(Ke,[2,55],{11:131,12:tt}),s(Re,[2,7]),{9:[1,132]},s(ge,[2,67]),{16:39,17:40,19:133,60:B,86:_,100:S,102:N,103:x},{13:[1,135],16:39,17:40,19:134,60:B,86:_,100:S,102:N,103:x},s(fe,[2,82],{66:136,68:ce,69:he,70:de,71:pe,72:Ae}),s(fe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:f,54:T,56:w},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(V,[2,48],{39:[1,142]}),{41:[1,143]},s(V,[2,50]),{41:[2,61],45:144,51:ke},{47:[1,145]},{16:39,17:40,19:146,60:B,86:_,100:S,102:N,103:x},s(C,[2,91],{13:[1,147]}),s(C,[2,93],{13:[1,149],77:[1,148]}),s(C,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(C,[2,105],{61:st}),s(it,[2,107],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(z,[2,109]),s(z,[2,111]),s(z,[2,112]),s(z,[2,113]),s(z,[2,114]),s(z,[2,115]),s(z,[2,116]),s(z,[2,117]),s(z,[2,118]),s(z,[2,119]),s(C,[2,106]),s(V,[2,71]),s(C,[2,73],{61:st}),{60:[1,155]},s(H,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:B,86:_,100:S,102:N,103:x},s(me,[2,12]),s(Ke,[2,56]),{1:[2,4]},s(ge,[2,69]),s(ge,[2,68]),{16:39,17:40,19:158,60:B,86:_,100:S,102:N,103:x},s(fe,[2,80]),s(V,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:f,54:T,56:w},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:f,54:T,56:w},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:f,54:T,56:w},{45:163,51:ke},s(V,[2,49]),{41:[2,62]},s(V,[2,52],{39:[1,164]}),s(C,[2,60]),s(C,[2,92]),s(C,[2,94]),s(C,[2,95],{77:[1,165]}),s(C,[2,98]),s(C,[2,99],{13:[1,166]}),s(C,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:se,82:ie,84:169,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(z,[2,110]),s(et,[2,75]),{14:[1,170]},s(me,[2,11]),s(ge,[2,70]),s(V,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ke},s(C,[2,96]),s(C,[2,100]),s(C,[2,102]),s(C,[2,103],{77:[1,174]}),s(it,[2,108],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(Ke,[2,8]),s(V,[2,51]),{41:[1,175]},s(V,[2,54]),s(C,[2,104]),s(V,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:t(function(b,m){if(m.recoverable)this.trace(b);else{var g=Error(b);throw g.hash=m,g}},"parseError"),parse:t(function(b){var m=this,g=[0],c=[],y=[null],e=[],oe=this.table,i="",ye=0,at=0,nt=0,At=2,lt=1,ft=e.slice.call(arguments,1),v=Object.create(this.lexer),W={yy:{}};for(var Qe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Qe))W.yy[Qe]=this.yy[Qe];if(v.setInput(b,W.yy),W.yy.lexer=v,W.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var je=v.yylloc;e.push(je);var kt=v.options&&v.options.ranges;if(typeof W.yy.parseError==="function")this.parseError=W.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(U){g.length=g.length-2*U,y.length=y.length-U,e.length=e.length-U}t(mt,"popStack");function ut(){var U=c.pop()||v.lex()||lt;if(typeof U!=="number"){if(U instanceof Array)c=U,U=c.pop();U=m.symbols_[U]||U}return U}t(ut,"lex");var O,Xe,Q,G,Nt,He,q={},Be,Y,ot,_e;while(!0){if(Q=g[g.length-1],this.defaultActions[Q])G=this.defaultActions[Q];else{if(O===null||typeof O>"u")O=ut();G=oe[Q]&&oe[Q][O]}if(typeof G>"u"||!G.length||!G[0]){var qe="";_e=[];for(Be in oe[Q])if(this.terminals_[Be]&&Be>At)_e.push("'"+this.terminals_[Be]+"'");if(v.showPosition)qe="Parse error on line "+(ye+1)+`:
2
- `+v.showPosition()+`
3
- Expecting `+_e.join(", ")+", got '"+(this.terminals_[O]||O)+"'";else qe="Parse error on line "+(ye+1)+": Unexpected "+(O==lt?"end of input":"'"+(this.terminals_[O]||O)+"'");this.parseError(qe,{text:v.match,token:this.terminals_[O]||O,line:v.yylineno,loc:je,expected:_e})}if(G[0]instanceof Array&&G.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+O);switch(G[0]){case 1:if(g.push(O),y.push(v.yytext),e.push(v.yylloc),g.push(G[1]),O=null,!Xe){if(at=v.yyleng,i=v.yytext,ye=v.yylineno,je=v.yylloc,nt>0)nt--}else O=Xe,Xe=null;break;case 2:if(Y=this.productions_[G[1]][1],q.$=y[y.length-Y],q._$={first_line:e[e.length-(Y||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Y||1)].first_column,last_column:e[e.length-1].last_column},kt)q._$.range=[e[e.length-(Y||1)].range[0],e[e.length-1].range[1]];if(He=this.performAction.apply(q,[i,at,ye,W.yy,G[1],y,e].concat(ft)),typeof He<"u")return He;if(Y)g=g.slice(0,-1*Y*2),y=y.slice(0,-1*Y),e=e.slice(0,-1*Y);g.push(this.productions_[G[1]][0]),y.push(q.$),e.push(q._$),ot=oe[g[g.length-2]][g[g.length-1]],g.push(ot);break;case 3:return!0}}return!0},"parse")},pt=function(){var K={EOF:1,parseError:t(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw Error(m)},"parseError"),setInput:t(function(b,m){if(this.yy=m||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.match(/(?:\r\n?|\n).*/g);if(m)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),b},"input"),unput:t(function(b){var m=b.length,g=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var c=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),g.length-1)this.yylineno-=g.length-1;var y=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:g?(g.length===c.length?this.yylloc.first_column:0)+c[c.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[y[0],y[0]+this.yyleng-m];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).
1
+ import{t,a,at,j,Kn,k,A,R,I,L,D,P,N,u,h,F,bt,De,Te,Ee,Lt,ze,Ue}from"./chunk-dbv8qpen.js";import{In}from"./chunk-p6ma361e.js";import{Ct}from"./chunk-5nbmnchg.js";import{Fe}from"./chunk-2dykyq1n.js";import{Le}from"./chunk-acv6gk2b.js";var Je=function(){var s=t(function(K,b,m,g){for(m=m||{},g=K.length;g--;m[K[g]]=b);return m},"o"),r=[1,18],n=[1,19],l=[1,20],o=[1,41],p=[1,26],f=[1,42],d=[1,24],E=[1,25],T=[1,32],M=[1,33],J=[1,34],B=[1,45],Ne=[1,35],xe=[1,36],ve=[1,37],Ie=[1,38],Oe=[1,27],we=[1,28],Me=[1,29],Pe=[1,30],Ve=[1,31],_=[1,44],S=[1,46],x=[1,43],v=[1,47],Re=[1,9],C=[1,8,9],ce=[1,58],he=[1,59],de=[1,60],pe=[1,61],Ae=[1,62],Ge=[1,63],Ye=[1,64],V=[1,8,9,41],Ze=[1,77],H=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],be=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],fe=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],$e=[13,60,68,69,70,71,72,86,100,102,103],ke=[1,103],ee=[1,121],te=[1,117],se=[1,113],ie=[1,119],ae=[1,114],re=[1,115],ne=[1,116],le=[1,118],ue=[1,120],et=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],me=[12,39],Ke=[1,8,9,39,41,44,46],ge=[1,8,9,22],st=[1,153],it=[1,8,9,61],z=[1,8,9,22,50,60,61,82,86,87,88,89,90],We={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:t(function(b,m,g,c,y,e,oe){var i=e.length-1;switch(y){case 8:this.$=e[i-1];break;case 9:case 10:case 13:case 15:this.$=e[i];break;case 11:case 14:this.$=e[i-2]+"."+e[i];break;case 12:case 16:this.$=e[i-1]+e[i];break;case 17:case 18:this.$=e[i-1]+"~"+e[i]+"~";break;case 19:c.addRelation(e[i]);break;case 20:e[i-1].title=c.cleanupLabel(e[i]),c.addRelation(e[i-1]);break;case 31:this.$=e[i].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=e[i].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(e[i-3],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(e[i-4],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(e[i]);break;case 37:this.$=c.addNamespace(e[i-1],e[i]);break;case 38:this.$=[[e[i]],[]];break;case 39:this.$=[[e[i-1]],[]];break;case 40:e[i][0].unshift(e[i-2]),this.$=e[i];break;case 41:this.$=[[],[e[i]]];break;case 42:this.$=[[],[e[i-1]]];break;case 43:e[i][1].unshift(e[i-2]),this.$=e[i];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[i];break;case 48:c.setCssClass(e[i-2],e[i]);break;case 49:c.addMembers(e[i-3],e[i-1]);break;case 51:c.setCssClass(e[i-5],e[i-3]),c.addMembers(e[i-5],e[i-1]);break;case 52:c.addAnnotation(e[i-3],e[i-1]);break;case 53:c.addAnnotation(e[i-6],e[i-4]),c.addMembers(e[i-6],e[i-1]);break;case 54:c.addAnnotation(e[i-5],e[i-3]);break;case 55:this.$=e[i],c.addClass(e[i]);break;case 56:this.$=e[i-1],c.addClass(e[i-1]),c.setClassLabel(e[i-1],e[i]);break;case 60:c.addAnnotation(e[i],e[i-2]);break;case 61:case 74:this.$=[e[i]];break;case 62:e[i].push(e[i-1]),this.$=e[i];break;case 63:break;case 64:c.addMember(e[i-1],c.cleanupLabel(e[i]));break;case 65:break;case 66:break;case 67:this.$={id1:e[i-2],id2:e[i],relation:e[i-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[i-3],id2:e[i],relation:e[i-1],relationTitle1:e[i-2],relationTitle2:"none"};break;case 69:this.$={id1:e[i-3],id2:e[i],relation:e[i-2],relationTitle1:"none",relationTitle2:e[i-1]};break;case 70:this.$={id1:e[i-4],id2:e[i],relation:e[i-2],relationTitle1:e[i-3],relationTitle2:e[i-1]};break;case 71:this.$=c.addNote(e[i],e[i-1]);break;case 72:this.$=c.addNote(e[i]);break;case 73:this.$=e[i-2],c.defineClass(e[i-1],e[i]);break;case 75:this.$=e[i-2].concat([e[i]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:e[i-2],type2:e[i],lineType:e[i-1]};break;case 81:this.$={type1:"none",type2:e[i],lineType:e[i-1]};break;case 82:this.$={type1:e[i-1],type2:"none",lineType:e[i]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[i]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[i-2],c.setClickEvent(e[i-1],e[i]);break;case 92:case 98:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 93:this.$=e[i-2],c.setLink(e[i-1],e[i]);break;case 94:this.$=e[i-3],c.setLink(e[i-2],e[i-1],e[i]);break;case 95:this.$=e[i-3],c.setLink(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 96:this.$=e[i-4],c.setLink(e[i-3],e[i-2],e[i]),c.setTooltip(e[i-3],e[i-1]);break;case 99:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1],e[i]);break;case 100:this.$=e[i-4],c.setClickEvent(e[i-3],e[i-2],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 101:this.$=e[i-3],c.setLink(e[i-2],e[i]);break;case 102:this.$=e[i-4],c.setLink(e[i-3],e[i-1],e[i]);break;case 103:this.$=e[i-4],c.setLink(e[i-3],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 104:this.$=e[i-5],c.setLink(e[i-4],e[i-2],e[i]),c.setTooltip(e[i-4],e[i-1]);break;case 105:this.$=e[i-2],c.setCssStyle(e[i-1],e[i]);break;case 106:c.setCssClass(e[i-1],e[i]);break;case 107:this.$=[e[i]];break;case 108:e[i-2].push(e[i]),this.$=e[i-2];break;case 110:this.$=e[i-1]+e[i];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Re,[2,5],{8:[1,48]}),{8:[1,49]},s(C,[2,19],{22:[1,50]}),s(C,[2,21]),s(C,[2,22]),s(C,[2,23]),s(C,[2,24]),s(C,[2,25]),s(C,[2,26]),s(C,[2,27]),s(C,[2,28]),s(C,[2,29]),s(C,[2,30]),{34:[1,51]},{36:[1,52]},s(C,[2,33]),s(C,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye}),{39:[1,65]},s(V,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(C,[2,65]),s(C,[2,66]),{16:69,60:B,86:_,100:S,102:x},{16:39,17:40,19:70,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:71,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:72,60:B,86:_,100:S,102:x,103:v},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:B,86:_,100:S,102:x,103:v},{13:Ze,55:76},{58:78,60:[1,79]},s(C,[2,76]),s(C,[2,77]),s(C,[2,78]),s(C,[2,79]),s(H,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:B,86:_,100:S,102:x,103:v}),s(H,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:87,60:B,86:_,100:S,102:x,103:v},s(be,[2,133]),s(be,[2,134]),s(be,[2,135]),s(be,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Re,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:l,42:o,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v},s(C,[2,20]),s(C,[2,31]),s(C,[2,32]),{13:[1,91],16:39,17:40,19:90,60:B,86:_,100:S,102:x,103:v},{53:92,66:56,67:57,68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye},s(C,[2,64]),{67:93,73:Ge,74:Ye},s(fe,[2,83],{66:94,68:ce,69:he,70:de,71:pe,72:Ae}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s($e,[2,89]),s($e,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:f,54:T,56:M},{16:100,60:B,86:_,100:S,102:x},{41:[1,102],45:101,51:ke},{16:104,60:B,86:_,100:S,102:x},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:se,82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},{60:[1,122]},{13:Ze,55:123},s(V,[2,72]),s(V,[2,138]),{22:ee,50:te,59:124,60:se,61:[1,125],82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(et,[2,74]),{16:39,17:40,19:126,60:B,86:_,100:S,102:x,103:v},s(H,[2,16]),s(H,[2,17]),s(H,[2,18]),{11:127,12:tt,39:[2,36]},s(me,[2,9],{16:85,17:86,15:130,18:[1,129],60:B,86:_,100:S,102:x,103:v}),s(me,[2,10]),s(Ke,[2,55],{11:131,12:tt}),s(Re,[2,7]),{9:[1,132]},s(ge,[2,67]),{16:39,17:40,19:133,60:B,86:_,100:S,102:x,103:v},{13:[1,135],16:39,17:40,19:134,60:B,86:_,100:S,102:x,103:v},s(fe,[2,82],{66:136,68:ce,69:he,70:de,71:pe,72:Ae}),s(fe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:f,54:T,56:M},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(V,[2,48],{39:[1,142]}),{41:[1,143]},s(V,[2,50]),{41:[2,61],45:144,51:ke},{47:[1,145]},{16:39,17:40,19:146,60:B,86:_,100:S,102:x,103:v},s(C,[2,91],{13:[1,147]}),s(C,[2,93],{13:[1,149],77:[1,148]}),s(C,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(C,[2,105],{61:st}),s(it,[2,107],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(z,[2,109]),s(z,[2,111]),s(z,[2,112]),s(z,[2,113]),s(z,[2,114]),s(z,[2,115]),s(z,[2,116]),s(z,[2,117]),s(z,[2,118]),s(z,[2,119]),s(C,[2,106]),s(V,[2,71]),s(C,[2,73],{61:st}),{60:[1,155]},s(H,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:B,86:_,100:S,102:x,103:v},s(me,[2,12]),s(Ke,[2,56]),{1:[2,4]},s(ge,[2,69]),s(ge,[2,68]),{16:39,17:40,19:158,60:B,86:_,100:S,102:x,103:v},s(fe,[2,80]),s(V,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:f,54:T,56:M},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:f,54:T,56:M},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:f,54:T,56:M},{45:163,51:ke},s(V,[2,49]),{41:[2,62]},s(V,[2,52],{39:[1,164]}),s(C,[2,60]),s(C,[2,92]),s(C,[2,94]),s(C,[2,95],{77:[1,165]}),s(C,[2,98]),s(C,[2,99],{13:[1,166]}),s(C,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:se,82:ie,84:169,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(z,[2,110]),s(et,[2,75]),{14:[1,170]},s(me,[2,11]),s(ge,[2,70]),s(V,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ke},s(C,[2,96]),s(C,[2,100]),s(C,[2,102]),s(C,[2,103],{77:[1,174]}),s(it,[2,108],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(Ke,[2,8]),s(V,[2,51]),{41:[1,175]},s(V,[2,54]),s(C,[2,104]),s(V,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:t(function(b,m){if(m.recoverable)this.trace(b);else{var g=Error(b);throw g.hash=m,g}},"parseError"),parse:t(function(b){var m=this,g=[0],c=[],y=[null],e=[],oe=this.table,i="",ye=0,rt=0,nt=0,At=2,lt=1,ft=e.slice.call(arguments,1),O=Object.create(this.lexer),W={yy:{}};for(var Qe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Qe))W.yy[Qe]=this.yy[Qe];if(O.setInput(b,W.yy),W.yy.lexer=O,W.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var je=O.yylloc;e.push(je);var kt=O.options&&O.options.ranges;if(typeof W.yy.parseError==="function")this.parseError=W.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(U){g.length=g.length-2*U,y.length=y.length-U,e.length=e.length-U}t(mt,"popStack");function ut(){var U=c.pop()||O.lex()||lt;if(typeof U!=="number"){if(U instanceof Array)c=U,U=c.pop();U=m.symbols_[U]||U}return U}t(ut,"lex");var w,Xe,Q,G,Nt,He,q={},Be,Y,ot,_e;while(!0){if(Q=g[g.length-1],this.defaultActions[Q])G=this.defaultActions[Q];else{if(w===null||typeof w>"u")w=ut();G=oe[Q]&&oe[Q][w]}if(typeof G>"u"||!G.length||!G[0]){var qe="";_e=[];for(Be in oe[Q])if(this.terminals_[Be]&&Be>At)_e.push("'"+this.terminals_[Be]+"'");if(O.showPosition)qe="Parse error on line "+(ye+1)+`:
2
+ `+O.showPosition()+`
3
+ Expecting `+_e.join(", ")+", got '"+(this.terminals_[w]||w)+"'";else qe="Parse error on line "+(ye+1)+": Unexpected "+(w==lt?"end of input":"'"+(this.terminals_[w]||w)+"'");this.parseError(qe,{text:O.match,token:this.terminals_[w]||w,line:O.yylineno,loc:je,expected:_e})}if(G[0]instanceof Array&&G.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+w);switch(G[0]){case 1:if(g.push(w),y.push(O.yytext),e.push(O.yylloc),g.push(G[1]),w=null,!Xe){if(rt=O.yyleng,i=O.yytext,ye=O.yylineno,je=O.yylloc,nt>0)nt--}else w=Xe,Xe=null;break;case 2:if(Y=this.productions_[G[1]][1],q.$=y[y.length-Y],q._$={first_line:e[e.length-(Y||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Y||1)].first_column,last_column:e[e.length-1].last_column},kt)q._$.range=[e[e.length-(Y||1)].range[0],e[e.length-1].range[1]];if(He=this.performAction.apply(q,[i,rt,ye,W.yy,G[1],y,e].concat(ft)),typeof He<"u")return He;if(Y)g=g.slice(0,-1*Y*2),y=y.slice(0,-1*Y),e=e.slice(0,-1*Y);g.push(this.productions_[G[1]][0]),y.push(q.$),e.push(q._$),ot=oe[g[g.length-2]][g[g.length-1]],g.push(ot);break;case 3:return!0}}return!0},"parse")},pt=function(){var K={EOF:1,parseError:t(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw Error(m)},"parseError"),setInput:t(function(b,m){if(this.yy=m||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.match(/(?:\r\n?|\n).*/g);if(m)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),b},"input"),unput:t(function(b){var m=b.length,g=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var c=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),g.length-1)this.yylineno-=g.length-1;var y=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:g?(g.length===c.length?this.yylloc.first_column:0)+c[c.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[y[0],y[0]+this.yyleng-m];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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(b){this.unput(this.match.slice(b))},"less"),pastInput:t(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var b=this.pastInput(),m=Array(b.length+1).join("-");return b+this.upcomingInput()+`
5
5
  `+m+"^"},"showPosition"),test_match:t(function(b,m){var g,c,y;if(this.options.backtrack_lexer){if(y={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)y.yylloc.range=this.yylloc.range.slice(0)}if(c=b[0].match(/(?:\r\n?|\n).*/g),c)this.yylineno+=c.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],g=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(g)return g;else if(this._backtrack){for(var e in y)this[e]=y[e];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var b,m,g,c;if(!this._more)this.yytext="",this.match="";var y=this._currentRules();for(var e=0;e<y.length;e++)if(g=this._input.match(this.rules[y[e]]),g&&(!m||g[0].length>m[0].length)){if(m=g,c=e,this.options.backtrack_lexer)if(b=this.test_match(g,y[e]),b!==!1)return b;else if(this._backtrack){m=!1;continue}else return!1;else if(!this.options.flex)break}if(m){if(b=this.test_match(m,y[c]),b!==!1)return b;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 m=this.next();if(m)return m;else return this.lex()},"lex"),begin:t(function(m){this.conditionStack.push(m)},"begin"),popState:t(function(){var m=this.conditionStack.length-1;if(m>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(m){if(m=this.conditionStack.length-1-Math.abs(m||0),m>=0)return this.conditionStack[m];else return"INITIAL"},"topState"),pushState:t(function(m){this.begin(m)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(m,g,c,y){var e=y;switch(c){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return K}();We.lexer=pt;function Ce(){this.yy={}}return t(Ce,"Parser"),Ce.prototype=We,We.Parser=Ce,new Ce}();Je.parser=Je;var gt=Je,ct=["#","+","~","-",""],ht=class{static{t(this,"ClassMember")}constructor(s,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";let n=j(s,u());this.parseMember(n)}getDisplayDetails(){let s=this.visibility+Kn(this.id);if(this.memberType==="method"){if(s+=`(${Kn(this.parameters.trim())})`,this.returnType)s+=" : "+Kn(this.returnType)}s=s.trim();let r=this.parseClassifier();return{displayText:s,cssStyle:r}}parseMember(s){let r="";if(this.memberType==="method"){let o=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(s);if(o){let p=o[1]?o[1].trim():"";if(ct.includes(p))this.visibility=p;if(this.id=o[2],this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){let f=this.returnType.substring(this.returnType.length-1);if(/[$*]/.exec(f))r=f,this.returnType=this.returnType.substring(0,this.returnType.length-1)}}}else{let l=s.length,o=s.substring(0,1),p=s.substring(l-1);if(ct.includes(o))this.visibility=o;if(/[$*]/.exec(p))r=p;this.id=s.substring(this.visibility===""?0:1,r===""?l:l-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let n=`${this.visibility?"\\"+this.visibility:""}${Kn(this.id)}${this.memberType==="method"?`(${Kn(this.parameters)})${this.returnType?" : "+Kn(this.returnType):""}`:""}`;if(this.text=n.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;"))this.text=this.text.replace("\\&lt;","~")}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},Se="classId-",dt=0,X=t((s)=>k.sanitizeText(s,u()),"sanitizeText"),Et=class s{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=t((r)=>{let n=In();h(r).select("svg").selectAll("g").filter(function(){return h(this).attr("title")!==null}).on("mouseover",(p)=>{let f=h(p.currentTarget),d=f.attr("title");if(!d)return;let E=p.currentTarget.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.html(rt.sanitize(d)).style("left",`${window.scrollX+E.left+E.width/2}px`).style("top",`${window.scrollY+E.bottom+4}px`),f.classed("hover",!0)}).on("mouseout",(p)=>{n.transition().duration(500).style("opacity",0),h(p.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=R,this.getAccTitle=I,this.setAccDescription=L,this.getAccDescription=D,this.setDiagramTitle=P,this.getDiagramTitle=M,this.getConfig=t(()=>u().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{t(this,"ClassDB")}splitClassNameAndType(r){let n=k.sanitizeText(r,u()),l="",o=n;if(n.indexOf("~")>0){let p=n.split("~");o=X(p[0]),l=X(p[1])}return{className:o,type:l}}setClassLabel(r,n){let l=k.sanitizeText(r,u());if(n)n=X(n);let{className:o}=this.splitClassNameAndType(l);this.classes.get(o).label=n,this.classes.get(o).text=`${n}${this.classes.get(o).type?`<${this.classes.get(o).type}>`:""}`}addClass(r){let n=k.sanitizeText(r,u()),{className:l,type:o}=this.splitClassNameAndType(n);if(this.classes.has(l))return;let p=k.sanitizeText(l,u());this.classes.set(p,{id:p,type:o,label:p,text:`${p}${o?`&lt;${o}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Se+p+"-"+dt}),dt++}addInterface(r,n){let l={id:`interface${this.interfaces.length}`,label:r,classId:n};this.interfaces.push(l)}setDiagramId(r){this.diagramId=r}lookUpDomId(r){let n=k.sanitizeText(r,u());if(this.classes.has(n)){let l=this.classes.get(n).domId;return this.diagramId?`${this.diagramId}-${l}`:l}throw Error("Class not found: "+n)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",A()}getClass(r){return this.classes.get(r)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(r){let n=typeof r==="number"?`note${r}`:r;return this.notes.get(n)}getNotes(){return this.notes}addRelation(r){a.debug("Adding relation: "+JSON.stringify(r));let n=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];if(r.relation.type1===this.relationType.LOLLIPOP&&!n.includes(r.relation.type2))this.addClass(r.id2),this.addInterface(r.id1,r.id2),r.id1=`interface${this.interfaces.length-1}`;else if(r.relation.type2===this.relationType.LOLLIPOP&&!n.includes(r.relation.type1))this.addClass(r.id1),this.addInterface(r.id2,r.id1),r.id2=`interface${this.interfaces.length-1}`;else this.addClass(r.id1),this.addClass(r.id2);r.id1=this.splitClassNameAndType(r.id1).className,r.id2=this.splitClassNameAndType(r.id2).className,r.relationTitle1=k.sanitizeText(r.relationTitle1.trim(),u()),r.relationTitle2=k.sanitizeText(r.relationTitle2.trim(),u()),this.relations.push(r)}addAnnotation(r,n){let l=this.splitClassNameAndType(r).className;this.classes.get(l).annotations.push(n)}addMember(r,n){this.addClass(r);let l=this.splitClassNameAndType(r).className,o=this.classes.get(l);if(typeof n==="string"){let p=n.trim();if(p.startsWith("<<")&&p.endsWith(">>"))o.annotations.push(X(p.substring(2,p.length-2)));else if(p.indexOf(")")>0)o.methods.push(new ht(p,"method"));else if(p)o.members.push(new ht(p,"attribute"))}}addMembers(r,n){if(Array.isArray(n))n.reverse(),n.forEach((l)=>this.addMember(r,l))}addNote(r,n){let l=this.notes.size,o={id:`note${l}`,class:n,text:r,index:l};return this.notes.set(o.id,o),o.id}cleanupLabel(r){if(r.startsWith(":"))r=r.substring(1);return X(r.trim())}setCssClass(r,n){r.split(",").forEach((l)=>{let o=l;if(/\d/.exec(l[0]))o=Se+o;o=this.splitClassNameAndType(o).className;let p=this.classes.get(o);if(p)p.cssClasses+=" "+n})}defineClass(r,n){for(let l of r){let o=this.styleClasses.get(l);if(o===void 0)o={id:l,styles:[],textStyles:[]},this.styleClasses.set(l,o);if(n)n.forEach((p)=>{if(/color/.exec(p)){let f=p.replace("fill","bgFill");o.textStyles.push(f)}o.styles.push(p)});this.classes.forEach((p)=>{if(p.cssClasses.includes(l))p.styles.push(...n.flatMap((f)=>f.split(",")))})}}setTooltip(r,n){r.split(",").forEach((l)=>{if(n!==void 0){let o=this.splitClassNameAndType(l).className,p=this.classes.get(o);if(p)p.tooltip=X(n)}})}getTooltip(r,n){if(n&&this.namespaces.has(n))return this.namespaces.get(n).classes.get(r).tooltip;return this.classes.get(r).tooltip}setLink(r,n,l){let o=u();r.split(",").forEach((p)=>{let f=p;if(/\d/.exec(p[0]))f=Se+f;f=this.splitClassNameAndType(f).className;let d=this.classes.get(f);if(d)if(d.link=F.formatUrl(n,o),o.securityLevel==="sandbox")d.linkTarget="_top";else if(typeof l==="string")d.linkTarget=X(l);else d.linkTarget="_blank"}),this.setCssClass(r,"clickable")}setClickEvent(r,n,l){r.split(",").forEach((o)=>{this.setClickFunc(o,n,l);let p=this.splitClassNameAndType(o).className,f=this.classes.get(p);if(f)f.haveCallback=!0}),this.setCssClass(r,"clickable")}setClickFunc(r,n,l){let o=k.sanitizeText(r,u());if(u().securityLevel!=="loose")return;if(n===void 0)return;let f=this.splitClassNameAndType(o).className;if(this.classes.has(f)){let d=[];if(typeof l==="string"){d=l.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let E=0;E<d.length;E++){let T=d[E].trim();if(T.startsWith('"')&&T.endsWith('"'))T=T.substr(1,T.length-2);d[E]=T}}if(d.length===0)d.push(f);this.functions.push(()=>{let E=this.lookUpDomId(f),T=document.querySelector(`[id="${E}"]`);if(T!==null)T.addEventListener("click",()=>{F.runFunc(n,...d)},!1)})}}bindFunctions(r){this.functions.forEach((n)=>{n(r)})}escapeHtml(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(r){this.direction=r}static resolveQualifiedId(r,n){let l=n.at(-1);return l?`${l}.${r}`:r}static getAncestorIds(r){let n=r.split("."),l=Array(n.length);l[0]=n[0];for(let o=1;o<n.length;o++)l[o]=`${l[o-1]}.${n[o]}`;return l}createNamespaceNode(r,n,l,o=!1){return{id:r,label:n,classes:new Map,notes:new Map,children:new Map,domId:Se+r+"-"+this.namespaceCounter++,parent:l,explicit:o}}linkParentChild(r,n){let l=this.namespaces.get(r),o=this.namespaces.get(n);if(!l||!o)return;if(!l.children.has(n))l.children.set(n,o);o.parent??=r}addNamespace(r,n){let l=s.resolveQualifiedId(r,this.namespaceStack);if(this.namespaceStack.push(l),this.namespaces.has(l)){let f=this.namespaces.get(l);if(f.explicit=!0,n)f.label=n;return l}let o=l.split("."),p=s.getAncestorIds(l);for(let f=0;f<p.length;f++){let d=p[f],E=f>0?p[f-1]:void 0,T=f===p.length-1,w=T&&n?n:o[f];if(!this.namespaces.has(d))this.namespaces.set(d,this.createNamespaceNode(d,w,E,T));else if(T)this.namespaces.get(d).explicit=!0;if(E)this.linkParentChild(E,d)}return l}popNamespace(){this.namespaceStack.pop()}getNamespace(r){return this.namespaces.get(r)}getNamespaces(){return this.namespaces}addClassesToNamespace(r,n,l){if(!this.namespaces.has(r))return;for(let o of n){let{className:p}=this.splitClassNameAndType(o),f=this.getClass(p);f.parent=r,this.namespaces.get(r).classes.set(p,f)}for(let o of l){let p=this.getNote(o);p.parent=r,this.namespaces.get(r).notes.set(o,p)}}setCssStyle(r,n){let l=this.classes.get(r);if(!n||!l)return;for(let o of n)if(o.includes(","))l.styles.push(...o.split(","));else l.styles.push(o)}getArrowMarker(r){let n;switch(r){case 0:n="aggregation";break;case 1:n="extension";break;case 2:n="composition";break;case 3:n="dependency";break;case 4:n="lollipop";break;default:n="none"}return n}resolveExplicitAncestor(r){let n=r;while(n){let l=this.namespaces.get(n);if(!l)return;if(l.explicit)return n;n=l.parent}return}getData(){let r=[],n=[],l=u(),o=l.class?.hierarchicalNamespaces??!0;for(let d of this.namespaces.values()){if(!o&&!d.explicit)continue;let E={id:d.id,label:o?d.label:d.id,isGroup:!0,padding:l.class.padding??16,shape:"rect",cssStyles:[],look:l.look,parentId:o?d.parent:void 0};r.push(E)}let p=0;for(let d of this.classes.values()){let E=o?d.parent:this.resolveExplicitAncestor(d.parent),T={...d,type:void 0,isGroup:!1,parentId:E,look:l.look,colorIndex:p++};r.push(T)}for(let d of this.notes.values()){let E=o?d.parent:this.resolveExplicitAncestor(d.parent),T={id:d.id,label:d.text,isGroup:!1,shape:"note",padding:l.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${l.themeVariables.noteBkgColor}`,`stroke: ${l.themeVariables.noteBorderColor}`],look:l.look,parentId:E,labelType:"markdown"};r.push(T);let w=this.classes.get(d.class)?.id;if(w){let J={id:`edgeNote${d.index}`,start:d.id,end:w,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:l.look};n.push(J)}}for(let d of this.interfaces){let E={id:d.id,label:d.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:l.look};r.push(E)}let f=0;for(let d of this.relations){f++;let E={id:bt(d.id1,d.id2,{prefix:"id",counter:f}),start:d.id1,end:d.id2,type:"normal",label:d.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(d.relation.type1),arrowTypeEnd:this.getArrowMarker(d.relation.type2),startLabelRight:d.relationTitle1==="none"?"":d.relationTitle1,endLabelLeft:d.relationTitle2==="none"?"":d.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:d.style||"",pattern:d.relation.lineType==1?"dashed":"solid",look:l.look,labelType:"markdown"};n.push(E)}return{nodes:r,edges:n,other:{},config:l,direction:this.getDirection()}}},Tt=t((s)=>{let{theme:r,bkgColorArray:n,borderColorArray:l}=s;if(!Te(r,l))return"";let o=Ee(s.look),p=De(n),f="";for(let d=0;d<Lt(s.THEME_COLOR_LIMIT,l);d++){let E=l[d%l.length];f+=`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var m=this.next();if(m)return m;else return this.lex()},"lex"),begin:t(function(m){this.conditionStack.push(m)},"begin"),popState:t(function(){var m=this.conditionStack.length-1;if(m>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(m){if(m=this.conditionStack.length-1-Math.abs(m||0),m>=0)return this.conditionStack[m];else return"INITIAL"},"topState"),pushState:t(function(m){this.begin(m)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(m,g,c,y){var e=y;switch(c){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return K}();We.lexer=pt;function Ce(){this.yy={}}return t(Ce,"Parser"),Ce.prototype=We,We.Parser=Ce,new Ce}();Je.parser=Je;var gt=Je,ct=["#","+","~","-",""],ht=class{static{t(this,"ClassMember")}constructor(s,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";let n=j(s,u());this.parseMember(n)}getDisplayDetails(){let s=this.visibility+Kn(this.id);if(this.memberType==="method"){if(s+=`(${Kn(this.parameters.trim())})`,this.returnType)s+=" : "+Kn(this.returnType)}s=s.trim();let r=this.parseClassifier();return{displayText:s,cssStyle:r}}parseMember(s){let r="";if(this.memberType==="method"){let o=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(s);if(o){let p=o[1]?o[1].trim():"";if(ct.includes(p))this.visibility=p;if(this.id=o[2],this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){let f=this.returnType.substring(this.returnType.length-1);if(/[$*]/.exec(f))r=f,this.returnType=this.returnType.substring(0,this.returnType.length-1)}}}else{let l=s.length,o=s.substring(0,1),p=s.substring(l-1);if(ct.includes(o))this.visibility=o;if(/[$*]/.exec(p))r=p;this.id=s.substring(this.visibility===""?0:1,r===""?l:l-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let n=`${this.visibility?"\\"+this.visibility:""}${Kn(this.id)}${this.memberType==="method"?`(${Kn(this.parameters)})${this.returnType?" : "+Kn(this.returnType):""}`:""}`;if(this.text=n.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;"))this.text=this.text.replace("\\&lt;","~")}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},Se="classId-",dt=0,X=t((s)=>k.sanitizeText(s,u()),"sanitizeText"),Et=class s{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=t((r)=>{let n=In();h(r).select("svg").selectAll("g").filter(function(){return h(this).attr("title")!==null}).on("mouseover",(p)=>{let f=h(p.currentTarget),d=f.attr("title");if(!d)return;let E=p.currentTarget.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.html(at.sanitize(d)).style("left",`${window.scrollX+E.left+E.width/2}px`).style("top",`${window.scrollY+E.bottom+4}px`),f.classed("hover",!0)}).on("mouseout",(p)=>{n.transition().duration(500).style("opacity",0),h(p.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=R,this.getAccTitle=I,this.setAccDescription=L,this.getAccDescription=D,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getConfig=t(()=>u().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{t(this,"ClassDB")}splitClassNameAndType(r){let n=k.sanitizeText(r,u()),l="",o=n;if(n.indexOf("~")>0){let p=n.split("~");o=X(p[0]),l=X(p[1])}return{className:o,type:l}}setClassLabel(r,n){let l=k.sanitizeText(r,u());if(n)n=X(n);let{className:o}=this.splitClassNameAndType(l);this.classes.get(o).label=n,this.classes.get(o).text=`${n}${this.classes.get(o).type?`<${this.classes.get(o).type}>`:""}`}addClass(r){let n=k.sanitizeText(r,u()),{className:l,type:o}=this.splitClassNameAndType(n);if(this.classes.has(l))return;let p=k.sanitizeText(l,u());this.classes.set(p,{id:p,type:o,label:p,text:`${p}${o?`&lt;${o}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Se+p+"-"+dt}),dt++}addInterface(r,n){let l={id:`interface${this.interfaces.length}`,label:r,classId:n};this.interfaces.push(l)}setDiagramId(r){this.diagramId=r}lookUpDomId(r){let n=k.sanitizeText(r,u());if(this.classes.has(n)){let l=this.classes.get(n).domId;return this.diagramId?`${this.diagramId}-${l}`:l}throw Error("Class not found: "+n)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",A()}getClass(r){return this.classes.get(r)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(r){let n=typeof r==="number"?`note${r}`:r;return this.notes.get(n)}getNotes(){return this.notes}addRelation(r){a.debug("Adding relation: "+JSON.stringify(r));let n=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];if(r.relation.type1===this.relationType.LOLLIPOP&&!n.includes(r.relation.type2))this.addClass(r.id2),this.addInterface(r.id1,r.id2),r.id1=`interface${this.interfaces.length-1}`;else if(r.relation.type2===this.relationType.LOLLIPOP&&!n.includes(r.relation.type1))this.addClass(r.id1),this.addInterface(r.id2,r.id1),r.id2=`interface${this.interfaces.length-1}`;else this.addClass(r.id1),this.addClass(r.id2);r.id1=this.splitClassNameAndType(r.id1).className,r.id2=this.splitClassNameAndType(r.id2).className,r.relationTitle1=k.sanitizeText(r.relationTitle1.trim(),u()),r.relationTitle2=k.sanitizeText(r.relationTitle2.trim(),u()),this.relations.push(r)}addAnnotation(r,n){let l=this.splitClassNameAndType(r).className;this.classes.get(l).annotations.push(n)}addMember(r,n){this.addClass(r);let l=this.splitClassNameAndType(r).className,o=this.classes.get(l);if(typeof n==="string"){let p=n.trim();if(p.startsWith("<<")&&p.endsWith(">>"))o.annotations.push(X(p.substring(2,p.length-2)));else if(p.indexOf(")")>0)o.methods.push(new ht(p,"method"));else if(p)o.members.push(new ht(p,"attribute"))}}addMembers(r,n){if(Array.isArray(n))n.reverse(),n.forEach((l)=>this.addMember(r,l))}addNote(r,n){let l=this.notes.size,o={id:`note${l}`,class:n,text:r,index:l};return this.notes.set(o.id,o),o.id}cleanupLabel(r){if(r.startsWith(":"))r=r.substring(1);return X(r.trim())}setCssClass(r,n){r.split(",").forEach((l)=>{let o=l;if(/\d/.exec(l[0]))o=Se+o;o=this.splitClassNameAndType(o).className;let p=this.classes.get(o);if(p)p.cssClasses+=" "+n})}defineClass(r,n){for(let l of r){let o=this.styleClasses.get(l);if(o===void 0)o={id:l,styles:[],textStyles:[]},this.styleClasses.set(l,o);if(n)n.forEach((p)=>{if(/color/.exec(p)){let f=p.replace("fill","bgFill");o.textStyles.push(f)}o.styles.push(p)});this.classes.forEach((p)=>{if(p.cssClasses.includes(l))p.styles.push(...n.flatMap((f)=>f.split(",")))})}}setTooltip(r,n){r.split(",").forEach((l)=>{if(n!==void 0){let o=this.splitClassNameAndType(l).className,p=this.classes.get(o);if(p)p.tooltip=X(n)}})}getTooltip(r,n){if(n&&this.namespaces.has(n))return this.namespaces.get(n).classes.get(r).tooltip;return this.classes.get(r).tooltip}setLink(r,n,l){let o=u();r.split(",").forEach((p)=>{let f=p;if(/\d/.exec(p[0]))f=Se+f;f=this.splitClassNameAndType(f).className;let d=this.classes.get(f);if(d)if(d.link=F.formatUrl(n,o),o.securityLevel==="sandbox")d.linkTarget="_top";else if(typeof l==="string")d.linkTarget=X(l);else d.linkTarget="_blank"}),this.setCssClass(r,"clickable")}setClickEvent(r,n,l){r.split(",").forEach((o)=>{this.setClickFunc(o,n,l);let p=this.splitClassNameAndType(o).className,f=this.classes.get(p);if(f)f.haveCallback=!0}),this.setCssClass(r,"clickable")}setClickFunc(r,n,l){let o=k.sanitizeText(r,u());if(u().securityLevel!=="loose")return;if(n===void 0)return;let f=this.splitClassNameAndType(o).className;if(this.classes.has(f)){let d=[];if(typeof l==="string"){d=l.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let E=0;E<d.length;E++){let T=d[E].trim();if(T.startsWith('"')&&T.endsWith('"'))T=T.substr(1,T.length-2);d[E]=T}}if(d.length===0)d.push(f);this.functions.push(()=>{let E=this.lookUpDomId(f),T=document.querySelector(`[id="${E}"]`);if(T!==null)T.addEventListener("click",()=>{F.runFunc(n,...d)},!1)})}}bindFunctions(r){this.functions.forEach((n)=>{n(r)})}escapeHtml(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(r){this.direction=r}static resolveQualifiedId(r,n){let l=n.at(-1);return l?`${l}.${r}`:r}static getAncestorIds(r){let n=r.split("."),l=Array(n.length);l[0]=n[0];for(let o=1;o<n.length;o++)l[o]=`${l[o-1]}.${n[o]}`;return l}createNamespaceNode(r,n,l,o=!1){return{id:r,label:n,classes:new Map,notes:new Map,children:new Map,domId:Se+r+"-"+this.namespaceCounter++,parent:l,explicit:o}}linkParentChild(r,n){let l=this.namespaces.get(r),o=this.namespaces.get(n);if(!l||!o)return;if(!l.children.has(n))l.children.set(n,o);o.parent??=r}addNamespace(r,n){let l=s.resolveQualifiedId(r,this.namespaceStack);if(this.namespaceStack.push(l),this.namespaces.has(l)){let f=this.namespaces.get(l);if(f.explicit=!0,n)f.label=n;return l}let o=l.split("."),p=s.getAncestorIds(l);for(let f=0;f<p.length;f++){let d=p[f],E=f>0?p[f-1]:void 0,T=f===p.length-1,M=T&&n?n:o[f];if(!this.namespaces.has(d))this.namespaces.set(d,this.createNamespaceNode(d,M,E,T));else if(T)this.namespaces.get(d).explicit=!0;if(E)this.linkParentChild(E,d)}return l}popNamespace(){this.namespaceStack.pop()}getNamespace(r){return this.namespaces.get(r)}getNamespaces(){return this.namespaces}addClassesToNamespace(r,n,l){if(!this.namespaces.has(r))return;for(let o of n){let{className:p}=this.splitClassNameAndType(o),f=this.getClass(p);f.parent=r,this.namespaces.get(r).classes.set(p,f)}for(let o of l){let p=this.getNote(o);p.parent=r,this.namespaces.get(r).notes.set(o,p)}}setCssStyle(r,n){let l=this.classes.get(r);if(!n||!l)return;for(let o of n)if(o.includes(","))l.styles.push(...o.split(","));else l.styles.push(o)}getArrowMarker(r){let n;switch(r){case 0:n="aggregation";break;case 1:n="extension";break;case 2:n="composition";break;case 3:n="dependency";break;case 4:n="lollipop";break;default:n="none"}return n}resolveExplicitAncestor(r){let n=r;while(n){let l=this.namespaces.get(n);if(!l)return;if(l.explicit)return n;n=l.parent}return}getData(){let r=[],n=[],l=u(),o=l.class?.hierarchicalNamespaces??!0;for(let d of this.namespaces.values()){if(!o&&!d.explicit)continue;let E={id:d.id,label:o?d.label:d.id,isGroup:!0,padding:l.class.padding??16,shape:"rect",cssStyles:[],look:l.look,parentId:o?d.parent:void 0};r.push(E)}let p=0;for(let d of this.classes.values()){let E=o?d.parent:this.resolveExplicitAncestor(d.parent),T={...d,type:void 0,isGroup:!1,parentId:E,look:l.look,colorIndex:p++};r.push(T)}for(let d of this.notes.values()){let E=o?d.parent:this.resolveExplicitAncestor(d.parent),T={id:d.id,label:d.text,isGroup:!1,shape:"note",padding:l.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${l.themeVariables.noteBkgColor}`,`stroke: ${l.themeVariables.noteBorderColor}`],look:l.look,parentId:E,labelType:"markdown"};r.push(T);let M=this.classes.get(d.class)?.id;if(M){let J={id:`edgeNote${d.index}`,start:d.id,end:M,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:l.look};n.push(J)}}for(let d of this.interfaces){let E={id:d.id,label:d.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:l.look};r.push(E)}let f=0;for(let d of this.relations){f++;let E={id:bt(d.id1,d.id2,{prefix:"id",counter:f}),start:d.id1,end:d.id2,type:"normal",label:d.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(d.relation.type1),arrowTypeEnd:this.getArrowMarker(d.relation.type2),startLabelRight:d.relationTitle1==="none"?"":d.relationTitle1,endLabelLeft:d.relationTitle2==="none"?"":d.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:d.style||"",pattern:d.relation.lineType==1?"dashed":"solid",look:l.look,labelType:"markdown"};n.push(E)}return{nodes:r,edges:n,other:{},config:l,direction:this.getDirection()}}},Tt=t((s)=>{let{theme:r,bkgColorArray:n,borderColorArray:l}=s;if(!Te(r,l))return"";let o=Ee(s.look),p=De(n),f="";for(let d=0;d<Lt(s.THEME_COLOR_LIMIT,l);d++){let E=l[d%l.length];f+=`
7
7
 
8
8
  [data-look="${o}"][data-color-id="color-${d}"].node .outer-path path {
9
9
  stroke: ${E};
Binary file
Binary file
@@ -1 +1 @@
1
- import{t,a}from"./chunk-v2bkkhb8.js";import{he,Tn,En}from"./chunk-mhzqgzh0.js";import{re}from"./chunk-mwfrxgbs.js";import{Ca,gn}from"./chunk-53cg6pxm.js";var l=Ca().RailroadAbnf.parser.LangiumParser,s=t((e)=>{let r=e.alternatives.map(p);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformAlternation"),p=t((e)=>{let r=e.elements.map(f);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformConcatenation"),u=t((e)=>{if(e.includes("*")){let[n,o]=e.split("*"),i=n?parseInt(n,10):0,m=o?parseInt(o,10):1/0;return{min:i,max:m}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),f=t((e)=>{let r=c(e.primary);if(!e.repeat)return r;let{min:n,max:o}=u(e.repeat);if(n===0&&o===1)return{type:"optional",element:r};return{type:"repetition",element:r,min:n,max:o}},"transformElement"),c=t((e)=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return s(e.element);case"AbnfOptionalGroup":return{type:"optional",element:s(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),d=t((e)=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t((e)=>{if(re(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(d(r)))},"populateDb"),g={parse:t((e)=>{he.clear(),a.debug("[ABNF Parser] Starting Langium parse");let r=l.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new gn(r);let n=r.value;a.debug("[ABNF Parser] Parsed rules:",n.rules.length),v(n),a.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:he}},E={parser:g,db:he,renderer:En,styles:Tn};export{E as diagram};
1
+ import{t,a}from"./chunk-dbv8qpen.js";import{he,Tn,En}from"./chunk-55kw8p9r.js";import{re}from"./chunk-n00se8nk.js";import{Ca,gn}from"./chunk-21d8pzcm.js";var l=Ca().RailroadAbnf.parser.LangiumParser,s=t((e)=>{let r=e.alternatives.map(p);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformAlternation"),p=t((e)=>{let r=e.elements.map(f);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformConcatenation"),u=t((e)=>{if(e.includes("*")){let[n,o]=e.split("*"),i=n?parseInt(n,10):0,m=o?parseInt(o,10):1/0;return{min:i,max:m}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),f=t((e)=>{let r=c(e.primary);if(!e.repeat)return r;let{min:n,max:o}=u(e.repeat);if(n===0&&o===1)return{type:"optional",element:r};return{type:"repetition",element:r,min:n,max:o}},"transformElement"),c=t((e)=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return s(e.element);case"AbnfOptionalGroup":return{type:"optional",element:s(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),d=t((e)=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t((e)=>{if(re(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(d(r)))},"populateDb"),g={parse:t((e)=>{he.clear(),a.debug("[ABNF Parser] Starting Langium parse");let r=l.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new gn(r);let n=r.value;a.debug("[ABNF Parser] Parsed rules:",n.rules.length),v(n),a.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:he}},E={parser:g,db:he,renderer:En,styles:Tn};export{E as diagram};
Binary file
Binary file