@bkm016/basalt 0.1.33 → 0.1.35

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 (1001) hide show
  1. package/README.md +24 -0
  2. package/chunk-10y5hvt2.js +2 -0
  3. package/chunk-22k2be3e.js +13 -0
  4. package/chunk-28hye007.js +2 -0
  5. package/chunk-2fmsw1c6.js +5 -0
  6. package/chunk-2xj51v3m.js +3 -0
  7. package/chunk-3x0wm92n.js +3 -0
  8. package/chunk-4fgsqb1e.js +2 -0
  9. package/chunk-519eek65.js +39 -0
  10. package/chunk-5qa4dean.js +2 -0
  11. package/chunk-5x256mz8.js +2 -0
  12. package/chunk-6n01sefp.js +8 -0
  13. package/chunk-74xtmwpw.js +2 -0
  14. package/chunk-7mafj833.js +3 -0
  15. package/chunk-7v1sqn9k.js +59 -0
  16. package/chunk-8my52htr.js +3 -0
  17. package/chunk-8vh98e46.js +2 -0
  18. package/chunk-92mpgche.js +2 -0
  19. package/chunk-9vacevyf.js +3 -0
  20. package/chunk-9y44m27k.js +5 -0
  21. package/chunk-a5wv2shs.js +3 -0
  22. package/chunk-a78qhb4t.js +5 -0
  23. package/chunk-axsxx67j.js +3 -0
  24. package/chunk-b49fzzzn.js +2 -0
  25. package/chunk-bc8awbnt.js +2 -0
  26. package/chunk-crxs0n0r.js +3 -0
  27. package/chunk-csed8fsv.js +3 -0
  28. package/chunk-cspx3bz9.js +2 -0
  29. package/chunk-ctdtmwmd.js +63 -0
  30. package/chunk-d3xsmwbh.js +25 -0
  31. package/chunk-dvwgpsfz.js +3 -0
  32. package/chunk-dzd8k6bw.js +3 -0
  33. package/chunk-e2xqa46t.js +2 -0
  34. package/chunk-e41mpwx9.js +9 -0
  35. package/chunk-e5ccfgsk.js +3 -0
  36. package/chunk-e67wqhzh.js +12 -0
  37. package/chunk-emeb13nd.js +25 -0
  38. package/chunk-ers9s2c4.js +31 -0
  39. package/chunk-ezq0fnz6.js +3 -0
  40. package/chunk-ezqvx0hm.js +2 -0
  41. package/chunk-f10ca9ma.js +12 -0
  42. package/chunk-f72jhcp8.js +2 -0
  43. package/chunk-fjv41a8r.js +4155 -0
  44. package/chunk-gj0dhgbg.js +3 -0
  45. package/chunk-h0ggc6pv.js +60 -0
  46. package/chunk-hrt42rkh.js +4 -0
  47. package/chunk-j7m36g5w.js +3 -0
  48. package/chunk-jhn30hjp.js +2 -0
  49. package/chunk-ka41gq1g.js +16 -0
  50. package/chunk-kcp9byws.js +2 -0
  51. package/chunk-me72k64f.js +7 -0
  52. package/chunk-n4jemqf1.js +2 -0
  53. package/chunk-ndt4jvh1.js +3 -0
  54. package/chunk-pyxn4wqj.js +3 -0
  55. package/chunk-rajb3566.js +2 -0
  56. package/chunk-rbq2gsar.js +3 -0
  57. package/chunk-rd98e7kg.js +10 -0
  58. package/chunk-rm5dbbsg.js +3 -0
  59. package/chunk-rztw3tgx.js +3 -0
  60. package/chunk-s4mn41eh.js +8 -0
  61. package/chunk-s9p624fq.js +44 -0
  62. package/chunk-sawrte7v.js +3 -0
  63. package/chunk-sd8d792h.js +51 -0
  64. package/chunk-sgvmxx0d.js +2 -0
  65. package/chunk-sqbnt2t1.js +3 -0
  66. package/chunk-t2bvj735.js +2 -0
  67. package/chunk-t8tkamx6.js +2 -0
  68. package/chunk-tbehe5ky.js +18 -0
  69. package/chunk-tnay319j.js +3 -0
  70. package/chunk-tsha69rv.js +7 -0
  71. package/chunk-twqwer9t.js +5 -0
  72. package/chunk-vr2rtqeh.js +2 -0
  73. package/chunk-vr6eej6b.js +3 -0
  74. package/chunk-w41gswj8.js +3 -0
  75. package/chunk-x7tras0x.js +498 -0
  76. package/chunk-xakmebnm.js +10 -0
  77. package/chunk-xj453mny.js +286 -0
  78. package/chunk-xmrw19xj.js +2 -0
  79. package/chunk-xpj8fcjp.js +20 -0
  80. package/chunk-y218jsvc.js +3 -0
  81. package/chunk-y33fkh8m.js +2 -0
  82. package/chunk-z3h9ydyr.js +11 -0
  83. package/chunk-zc51vfhr.js +2 -0
  84. package/chunk-zm88mnds.js +7 -0
  85. package/chunk-zz9rj82y.js +3 -0
  86. package/compiled.js +10 -10
  87. package/package.json +1 -1
  88. package/ui-test-worker.js +42 -42
  89. package/web/chunk-0b5vh2pt.js +2 -0
  90. package/web/chunk-0b5vh2pt.js.br +0 -0
  91. package/web/chunk-0b5vh2pt.js.gz +0 -0
  92. package/web/chunk-0hkdqhkv.js +1 -0
  93. package/web/chunk-0hkdqhkv.js.br +0 -0
  94. package/web/chunk-0hkdqhkv.js.gz +0 -0
  95. package/web/chunk-0v7wrb32.js +2 -0
  96. package/web/chunk-0v7wrb32.js.br +0 -0
  97. package/web/chunk-0v7wrb32.js.gz +0 -0
  98. package/web/chunk-0x2fgw1m.js +1 -0
  99. package/web/chunk-0x2fgw1m.js.br +0 -0
  100. package/web/chunk-0x2fgw1m.js.gz +0 -0
  101. package/web/chunk-0xctxqvv.js +2 -0
  102. package/web/chunk-0xctxqvv.js.br +0 -0
  103. package/web/chunk-0xctxqvv.js.gz +0 -0
  104. package/web/chunk-0y9tf0rt.js +89 -0
  105. package/web/chunk-0y9tf0rt.js.br +0 -0
  106. package/web/chunk-0y9tf0rt.js.gz +0 -0
  107. package/web/chunk-0yrp0f6x.js +1 -0
  108. package/web/chunk-0yrp0f6x.js.br +0 -0
  109. package/web/chunk-0yrp0f6x.js.gz +0 -0
  110. package/web/chunk-10jk2pn9.js +1 -0
  111. package/web/chunk-10jk2pn9.js.br +0 -0
  112. package/web/chunk-10jk2pn9.js.gz +0 -0
  113. package/web/chunk-15ka35m9.js +2 -0
  114. package/web/chunk-15ka35m9.js.br +0 -0
  115. package/web/chunk-15ka35m9.js.gz +0 -0
  116. package/web/chunk-1700cges.js +1 -0
  117. package/web/chunk-1700cges.js.br +0 -0
  118. package/web/chunk-1700cges.js.gz +0 -0
  119. package/web/chunk-1apw6pnk.css +1 -0
  120. package/web/chunk-1apw6pnk.css.br +0 -0
  121. package/web/chunk-1apw6pnk.css.gz +0 -0
  122. package/web/chunk-1b005nqw.js +139 -0
  123. package/web/chunk-1b005nqw.js.br +0 -0
  124. package/web/chunk-1b005nqw.js.gz +0 -0
  125. package/web/chunk-1c9khgyt.js +1 -0
  126. package/web/chunk-1c9khgyt.js.br +2 -0
  127. package/web/chunk-1c9khgyt.js.gz +0 -0
  128. package/web/chunk-1pr20x9x.js +1 -0
  129. package/web/chunk-1pr20x9x.js.br +0 -0
  130. package/web/chunk-1pr20x9x.js.gz +0 -0
  131. package/web/chunk-1sjgdggk.js +7 -0
  132. package/web/chunk-1sjgdggk.js.br +0 -0
  133. package/web/chunk-1sjgdggk.js.gz +0 -0
  134. package/web/chunk-1tt5ympp.js +1 -0
  135. package/web/chunk-1tt5ympp.js.br +0 -0
  136. package/web/chunk-1tt5ympp.js.gz +0 -0
  137. package/web/chunk-29fpfs5q.js +1142 -0
  138. package/web/chunk-29fpfs5q.js.br +0 -0
  139. package/web/chunk-29fpfs5q.js.gz +0 -0
  140. package/web/chunk-2gr7vwnp.js +24 -0
  141. package/web/chunk-2gr7vwnp.js.br +0 -0
  142. package/web/chunk-2gr7vwnp.js.gz +0 -0
  143. package/web/chunk-2p84jch3.js +1 -0
  144. package/web/chunk-2p84jch3.js.br +0 -0
  145. package/web/chunk-2p84jch3.js.gz +0 -0
  146. package/web/chunk-2qs283mh.js +2 -0
  147. package/web/chunk-2qs283mh.js.br +0 -0
  148. package/web/chunk-2qs283mh.js.gz +0 -0
  149. package/web/chunk-3gf2d852.js +1 -0
  150. package/web/chunk-3gf2d852.js.br +0 -0
  151. package/web/chunk-3gf2d852.js.gz +0 -0
  152. package/web/chunk-3hswqkb0.js +1 -0
  153. package/web/chunk-3hswqkb0.js.br +0 -0
  154. package/web/chunk-3hswqkb0.js.gz +0 -0
  155. package/web/chunk-46yjp1x4.js +2 -0
  156. package/web/chunk-46yjp1x4.js.br +0 -0
  157. package/web/chunk-46yjp1x4.js.gz +0 -0
  158. package/web/chunk-4ezd1rkc.js +84 -0
  159. package/web/chunk-4ezd1rkc.js.br +0 -0
  160. package/web/chunk-4ezd1rkc.js.gz +0 -0
  161. package/web/chunk-4v9ar0sf.js +142 -0
  162. package/web/chunk-4v9ar0sf.js.br +0 -0
  163. package/web/chunk-4v9ar0sf.js.gz +0 -0
  164. package/web/chunk-51z88j1t.js +21 -0
  165. package/web/chunk-51z88j1t.js.br +0 -0
  166. package/web/chunk-51z88j1t.js.gz +0 -0
  167. package/web/chunk-5f5zcfga.js +1 -0
  168. package/web/chunk-5f5zcfga.js.br +2 -0
  169. package/web/chunk-5f5zcfga.js.gz +0 -0
  170. package/web/chunk-5n61r0rr.js +36 -0
  171. package/web/chunk-5n61r0rr.js.br +0 -0
  172. package/web/chunk-5n61r0rr.js.gz +0 -0
  173. package/web/chunk-5vcdeenv.js +2 -0
  174. package/web/chunk-5vcdeenv.js.br +0 -0
  175. package/web/chunk-5vcdeenv.js.gz +0 -0
  176. package/web/chunk-5y7ks8c3.js +30 -0
  177. package/web/chunk-5y7ks8c3.js.br +0 -0
  178. package/web/chunk-5y7ks8c3.js.gz +0 -0
  179. package/web/chunk-60v8qwec.js +2 -0
  180. package/web/chunk-60v8qwec.js.br +0 -0
  181. package/web/chunk-60v8qwec.js.gz +0 -0
  182. package/web/chunk-61m5t9wg.js +200 -0
  183. package/web/chunk-61m5t9wg.js.br +0 -0
  184. package/web/chunk-61m5t9wg.js.gz +0 -0
  185. package/web/chunk-669n37qf.js +70 -0
  186. package/web/chunk-669n37qf.js.br +0 -0
  187. package/web/chunk-669n37qf.js.gz +0 -0
  188. package/web/chunk-6kf1xwz9.js +2 -0
  189. package/web/chunk-6kf1xwz9.js.br +0 -0
  190. package/web/chunk-6kf1xwz9.js.gz +0 -0
  191. package/web/chunk-6rw72jmj.js +2 -0
  192. package/web/chunk-6rw72jmj.js.br +0 -0
  193. package/web/chunk-6rw72jmj.js.gz +0 -0
  194. package/web/chunk-6wyxxd9h.js +2 -0
  195. package/web/chunk-6wyxxd9h.js.br +0 -0
  196. package/web/chunk-6wyxxd9h.js.gz +0 -0
  197. package/web/chunk-77vj65dc.js +1 -0
  198. package/web/chunk-77vj65dc.js.br +0 -0
  199. package/web/chunk-77vj65dc.js.gz +0 -0
  200. package/web/chunk-8ktz0w1x.js +120 -0
  201. package/web/chunk-8ktz0w1x.js.br +0 -0
  202. package/web/chunk-8ktz0w1x.js.gz +0 -0
  203. package/web/chunk-8rcfpj02.js +2 -0
  204. package/web/chunk-8rcfpj02.js.br +0 -0
  205. package/web/chunk-8rcfpj02.js.gz +0 -0
  206. package/web/chunk-8x4s1c9g.js +1 -0
  207. package/web/chunk-8x4s1c9g.js.br +2 -0
  208. package/web/chunk-8x4s1c9g.js.gz +0 -0
  209. package/web/chunk-8zf4cywy.js +1 -0
  210. package/web/chunk-8zf4cywy.js.br +0 -0
  211. package/web/chunk-8zf4cywy.js.gz +0 -0
  212. package/web/chunk-a18y5dmf.js +2 -0
  213. package/web/chunk-a18y5dmf.js.br +0 -0
  214. package/web/chunk-a18y5dmf.js.gz +0 -0
  215. package/web/chunk-a36sfjyk.js +1 -0
  216. package/web/chunk-a36sfjyk.js.br +0 -0
  217. package/web/chunk-a36sfjyk.js.gz +0 -0
  218. package/web/chunk-aahzqxq7.js +34 -0
  219. package/web/chunk-aahzqxq7.js.br +0 -0
  220. package/web/chunk-aahzqxq7.js.gz +0 -0
  221. package/web/chunk-b2gtwatf.js +370 -0
  222. package/web/chunk-b2gtwatf.js.br +0 -0
  223. package/web/chunk-b2gtwatf.js.gz +0 -0
  224. package/web/chunk-bdp4y1zg.js +1 -0
  225. package/web/chunk-bdp4y1zg.js.br +0 -0
  226. package/web/chunk-bdp4y1zg.js.gz +0 -0
  227. package/web/chunk-be67vfx1.js +1 -0
  228. package/web/chunk-be67vfx1.js.br +0 -0
  229. package/web/chunk-be67vfx1.js.gz +0 -0
  230. package/web/chunk-bt6r78y9.js +106 -0
  231. package/web/chunk-bt6r78y9.js.br +0 -0
  232. package/web/chunk-bt6r78y9.js.gz +0 -0
  233. package/web/chunk-c97th1x0.js +1 -0
  234. package/web/chunk-c97th1x0.js.br +0 -0
  235. package/web/chunk-c97th1x0.js.gz +0 -0
  236. package/web/chunk-cfkp7taw.js +1 -0
  237. package/web/chunk-cfkp7taw.js.br +0 -0
  238. package/web/chunk-cfkp7taw.js.gz +0 -0
  239. package/web/chunk-cvf9k1fy.js +140 -0
  240. package/web/chunk-cvf9k1fy.js.br +0 -0
  241. package/web/chunk-cvf9k1fy.js.gz +0 -0
  242. package/web/chunk-d33n9fsr.js +1 -0
  243. package/web/chunk-d33n9fsr.js.br +1 -0
  244. package/web/chunk-d33n9fsr.js.gz +0 -0
  245. package/web/chunk-e667nxc9.js +1 -0
  246. package/web/chunk-e667nxc9.js.br +0 -0
  247. package/web/chunk-e667nxc9.js.gz +0 -0
  248. package/web/chunk-eejjsqm1.js +303 -0
  249. package/web/chunk-eejjsqm1.js.br +0 -0
  250. package/web/chunk-eejjsqm1.js.gz +0 -0
  251. package/web/chunk-eg3qjy7a.js +2 -0
  252. package/web/chunk-eg3qjy7a.js.br +0 -0
  253. package/web/chunk-eg3qjy7a.js.gz +0 -0
  254. package/web/chunk-embvjvdj.js +12 -0
  255. package/web/chunk-embvjvdj.js.br +0 -0
  256. package/web/chunk-embvjvdj.js.gz +0 -0
  257. package/web/chunk-etjfr79m.js +2 -0
  258. package/web/chunk-etjfr79m.js.br +0 -0
  259. package/web/chunk-etjfr79m.js.gz +0 -0
  260. package/web/chunk-ez36gbz3.js +7 -0
  261. package/web/chunk-ez36gbz3.js.br +0 -0
  262. package/web/chunk-ez36gbz3.js.gz +0 -0
  263. package/web/chunk-f0vcm8mk.js +214 -0
  264. package/web/chunk-f0vcm8mk.js.br +0 -0
  265. package/web/chunk-f0vcm8mk.js.gz +0 -0
  266. package/web/chunk-f3t3ey83.js +1 -0
  267. package/web/chunk-f3t3ey83.js.br +0 -0
  268. package/web/chunk-f3t3ey83.js.gz +0 -0
  269. package/web/chunk-f84sngcq.js +2 -0
  270. package/web/chunk-f84sngcq.js.br +0 -0
  271. package/web/chunk-f84sngcq.js.gz +0 -0
  272. package/web/chunk-f97hz4v5.js +99 -0
  273. package/web/chunk-f97hz4v5.js.br +0 -0
  274. package/web/chunk-f97hz4v5.js.gz +0 -0
  275. package/web/chunk-fnkp6s0g.js +1 -0
  276. package/web/chunk-fnkp6s0g.js.br +0 -0
  277. package/web/chunk-fnkp6s0g.js.gz +0 -0
  278. package/web/chunk-fpdyzyn8.js +16 -0
  279. package/web/chunk-fpdyzyn8.js.br +0 -0
  280. package/web/chunk-fpdyzyn8.js.gz +0 -0
  281. package/web/chunk-g43z223a.js +2 -0
  282. package/web/chunk-g43z223a.js.br +0 -0
  283. package/web/chunk-g43z223a.js.gz +0 -0
  284. package/web/chunk-gcm82aj8.js +1 -0
  285. package/web/chunk-gcm82aj8.js.br +0 -0
  286. package/web/chunk-gcm82aj8.js.gz +0 -0
  287. package/web/chunk-gffb3p4z.js +2 -0
  288. package/web/chunk-gffb3p4z.js.br +0 -0
  289. package/web/chunk-gffb3p4z.js.gz +0 -0
  290. package/web/chunk-gnzg3krt.js +1 -0
  291. package/web/chunk-gnzg3krt.js.br +0 -0
  292. package/web/chunk-gnzg3krt.js.gz +0 -0
  293. package/web/chunk-grqtpfdp.js +2 -0
  294. package/web/chunk-grqtpfdp.js.br +0 -0
  295. package/web/chunk-grqtpfdp.js.gz +0 -0
  296. package/web/chunk-gsm8spf8.js +1 -0
  297. package/web/chunk-gsm8spf8.js.br +0 -0
  298. package/web/chunk-gsm8spf8.js.gz +0 -0
  299. package/web/chunk-h6ygrnd0.js +38 -0
  300. package/web/chunk-h6ygrnd0.js.br +0 -0
  301. package/web/chunk-h6ygrnd0.js.gz +0 -0
  302. package/web/chunk-h8n9w5th.js +169 -0
  303. package/web/chunk-h8n9w5th.js.br +0 -0
  304. package/web/chunk-h8n9w5th.js.gz +0 -0
  305. package/web/chunk-hmdvm5pp.js +2 -0
  306. package/web/chunk-hmdvm5pp.js.br +0 -0
  307. package/web/chunk-hmdvm5pp.js.gz +0 -0
  308. package/web/chunk-hrntwvx8.js +1 -0
  309. package/web/chunk-hrntwvx8.js.br +0 -0
  310. package/web/chunk-hrntwvx8.js.gz +0 -0
  311. package/web/chunk-hrys15jh.js +324 -0
  312. package/web/chunk-hrys15jh.js.br +0 -0
  313. package/web/chunk-hrys15jh.js.gz +0 -0
  314. package/web/chunk-j0ng7zdq.js +41 -0
  315. package/web/chunk-j0ng7zdq.js.br +0 -0
  316. package/web/chunk-j0ng7zdq.js.gz +0 -0
  317. package/web/chunk-j2t5ycte.js +78 -0
  318. package/web/chunk-j2t5ycte.js.br +0 -0
  319. package/web/chunk-j2t5ycte.js.gz +0 -0
  320. package/web/chunk-jkjd1y3p.js +3 -0
  321. package/web/chunk-jkjd1y3p.js.br +0 -0
  322. package/web/chunk-jkjd1y3p.js.gz +0 -0
  323. package/web/chunk-jweahmyy.js +1 -0
  324. package/web/chunk-jweahmyy.js.br +0 -0
  325. package/web/chunk-jweahmyy.js.gz +0 -0
  326. package/web/chunk-k56v8k7n.js +4 -0
  327. package/web/chunk-k56v8k7n.js.br +0 -0
  328. package/web/chunk-k56v8k7n.js.gz +0 -0
  329. package/web/chunk-k59sk88z.js +7 -0
  330. package/web/chunk-k59sk88z.js.br +0 -0
  331. package/web/chunk-k59sk88z.js.gz +0 -0
  332. package/web/chunk-k75a0fpt.js +62 -0
  333. package/web/chunk-k75a0fpt.js.br +0 -0
  334. package/web/chunk-k75a0fpt.js.gz +0 -0
  335. package/web/chunk-kfx9q7xv.js +2 -0
  336. package/web/chunk-kfx9q7xv.js.br +0 -0
  337. package/web/chunk-kfx9q7xv.js.gz +0 -0
  338. package/web/chunk-ksp1gg3v.js +1 -0
  339. package/web/chunk-ksp1gg3v.js.br +0 -0
  340. package/web/chunk-ksp1gg3v.js.gz +0 -0
  341. package/web/chunk-kxxp1mn4.js +2 -0
  342. package/web/chunk-kxxp1mn4.js.br +0 -0
  343. package/web/chunk-kxxp1mn4.js.gz +0 -0
  344. package/web/chunk-mapbxzsz.js +1 -0
  345. package/web/chunk-mapbxzsz.js.br +0 -0
  346. package/web/chunk-mapbxzsz.js.gz +0 -0
  347. package/web/chunk-msw43fnq.js +2 -0
  348. package/web/chunk-msw43fnq.js.br +0 -0
  349. package/web/chunk-msw43fnq.js.gz +0 -0
  350. package/web/chunk-mzzjg4sn.js +2 -0
  351. package/web/chunk-mzzjg4sn.js.br +0 -0
  352. package/web/chunk-mzzjg4sn.js.gz +0 -0
  353. package/web/chunk-n1bmcj13.js +2 -0
  354. package/web/chunk-n1bmcj13.js.br +0 -0
  355. package/web/chunk-n1bmcj13.js.gz +0 -0
  356. package/web/chunk-n5y4ar3e.js +1 -0
  357. package/web/chunk-n5y4ar3e.js.br +0 -0
  358. package/web/chunk-n5y4ar3e.js.gz +0 -0
  359. package/web/chunk-n9vszqw9.js +1 -0
  360. package/web/chunk-n9vszqw9.js.br +0 -0
  361. package/web/chunk-n9vszqw9.js.gz +0 -0
  362. package/web/chunk-nzzcmxq8.js +1 -0
  363. package/web/chunk-nzzcmxq8.js.br +0 -0
  364. package/web/chunk-nzzcmxq8.js.gz +0 -0
  365. package/web/chunk-p25eppk1.js +1 -0
  366. package/web/chunk-p25eppk1.js.br +0 -0
  367. package/web/chunk-p25eppk1.js.gz +0 -0
  368. package/web/chunk-p9352vpw.js +1 -0
  369. package/web/chunk-p9352vpw.js.br +0 -0
  370. package/web/chunk-p9352vpw.js.gz +0 -0
  371. package/web/chunk-pdvm4n6f.js +1 -0
  372. package/web/chunk-pdvm4n6f.js.br +2 -0
  373. package/web/chunk-pdvm4n6f.js.gz +0 -0
  374. package/web/chunk-pjm2t9da.js +1 -0
  375. package/web/chunk-pjm2t9da.js.br +0 -0
  376. package/web/chunk-pjm2t9da.js.gz +0 -0
  377. package/web/chunk-pka3qm06.js +98 -0
  378. package/web/chunk-pka3qm06.js.br +0 -0
  379. package/web/chunk-pka3qm06.js.gz +0 -0
  380. package/web/chunk-pkbcbta6.js +1 -0
  381. package/web/chunk-pkbcbta6.js.br +0 -0
  382. package/web/chunk-pkbcbta6.js.gz +0 -0
  383. package/web/chunk-pq4vn3zh.js +1 -0
  384. package/web/chunk-pq4vn3zh.js.br +0 -0
  385. package/web/chunk-pq4vn3zh.js.gz +0 -0
  386. package/web/chunk-prk9ks5j.js +1 -0
  387. package/web/chunk-prk9ks5j.js.br +0 -0
  388. package/web/chunk-prk9ks5j.js.gz +0 -0
  389. package/web/chunk-px68tdjm.js +1 -0
  390. package/web/chunk-px68tdjm.js.br +2 -0
  391. package/web/chunk-px68tdjm.js.gz +0 -0
  392. package/web/chunk-px8k5edz.js +24 -0
  393. package/web/chunk-px8k5edz.js.br +0 -0
  394. package/web/chunk-px8k5edz.js.gz +0 -0
  395. package/web/chunk-pz4g2bem.js +292 -0
  396. package/web/chunk-pz4g2bem.js.br +0 -0
  397. package/web/chunk-pz4g2bem.js.gz +0 -0
  398. package/web/chunk-q0gx75nf.js +55 -0
  399. package/web/chunk-q0gx75nf.js.br +0 -0
  400. package/web/chunk-q0gx75nf.js.gz +0 -0
  401. package/web/chunk-q9rpxfmm.js +1 -0
  402. package/web/chunk-q9rpxfmm.js.br +0 -0
  403. package/web/chunk-q9rpxfmm.js.gz +0 -0
  404. package/web/chunk-qpfhs1x0.js +1 -0
  405. package/web/chunk-qpfhs1x0.js.br +0 -0
  406. package/web/chunk-qpfhs1x0.js.gz +0 -0
  407. package/web/chunk-qredmg6m.js +1 -0
  408. package/web/chunk-qredmg6m.js.br +0 -0
  409. package/web/chunk-qredmg6m.js.gz +0 -0
  410. package/web/chunk-qtc9ar2m.js +2 -0
  411. package/web/chunk-qtc9ar2m.js.br +0 -0
  412. package/web/chunk-qtc9ar2m.js.gz +0 -0
  413. package/web/chunk-r5dsw56r.js +1 -0
  414. package/web/chunk-r5dsw56r.js.br +0 -0
  415. package/web/chunk-r5dsw56r.js.gz +0 -0
  416. package/web/chunk-rkaps675.js +1 -0
  417. package/web/chunk-rkaps675.js.br +0 -0
  418. package/web/chunk-rkaps675.js.gz +0 -0
  419. package/web/chunk-rp87pgcp.js +40 -0
  420. package/web/chunk-rp87pgcp.js.br +0 -0
  421. package/web/chunk-rp87pgcp.js.gz +0 -0
  422. package/web/chunk-rs1mtd35.js +2 -0
  423. package/web/chunk-rs1mtd35.js.br +0 -0
  424. package/web/chunk-rs1mtd35.js.gz +0 -0
  425. package/web/chunk-s31n33g5.js +2 -0
  426. package/web/chunk-s31n33g5.js.br +0 -0
  427. package/web/chunk-s31n33g5.js.gz +0 -0
  428. package/web/chunk-sbcyvn42.js +1 -0
  429. package/web/chunk-sbcyvn42.js.br +0 -0
  430. package/web/chunk-sbcyvn42.js.gz +0 -0
  431. package/web/chunk-sew9vfwy.js +1 -0
  432. package/web/chunk-sew9vfwy.js.br +0 -0
  433. package/web/chunk-sew9vfwy.js.gz +0 -0
  434. package/web/chunk-sgaw26nc.js +2 -0
  435. package/web/chunk-sgaw26nc.js.br +0 -0
  436. package/web/chunk-sgaw26nc.js.gz +0 -0
  437. package/web/chunk-t2ak4a9d.js +1 -0
  438. package/web/chunk-t2ak4a9d.js.br +0 -0
  439. package/web/chunk-t2ak4a9d.js.gz +0 -0
  440. package/web/chunk-ta0e3dk6.js +2 -0
  441. package/web/chunk-ta0e3dk6.js.br +0 -0
  442. package/web/chunk-ta0e3dk6.js.gz +0 -0
  443. package/web/chunk-tqax5mb6.js +217 -0
  444. package/web/chunk-tqax5mb6.js.br +0 -0
  445. package/web/chunk-tqax5mb6.js.gz +0 -0
  446. package/web/chunk-v1wxeq38.js +2 -0
  447. package/web/chunk-v1wxeq38.js.br +0 -0
  448. package/web/chunk-v1wxeq38.js.gz +0 -0
  449. package/web/chunk-v3kwg4zn.js +2 -0
  450. package/web/chunk-v3kwg4zn.js.br +0 -0
  451. package/web/chunk-v3kwg4zn.js.gz +0 -0
  452. package/web/chunk-vcpvhkxh.js +39 -0
  453. package/web/chunk-vcpvhkxh.js.br +0 -0
  454. package/web/chunk-vcpvhkxh.js.gz +0 -0
  455. package/web/chunk-vg9qv3aa.js +1 -0
  456. package/web/chunk-vg9qv3aa.js.br +0 -0
  457. package/web/chunk-vg9qv3aa.js.gz +0 -0
  458. package/web/chunk-vwxnt3nh.js +1 -0
  459. package/web/chunk-vwxnt3nh.js.br +0 -0
  460. package/web/chunk-vwxnt3nh.js.gz +0 -0
  461. package/web/chunk-w1xjqhwy.js +1 -0
  462. package/web/chunk-w1xjqhwy.js.br +2 -0
  463. package/web/chunk-w1xjqhwy.js.gz +0 -0
  464. package/web/chunk-w3nfxvzd.js +1 -0
  465. package/web/chunk-w3nfxvzd.js.br +0 -0
  466. package/web/chunk-w3nfxvzd.js.gz +0 -0
  467. package/web/chunk-w7h3x3ys.js +1 -0
  468. package/web/chunk-w7h3x3ys.js.br +0 -0
  469. package/web/chunk-w7h3x3ys.js.gz +0 -0
  470. package/web/chunk-wb0yn3r4.js +8 -0
  471. package/web/chunk-wb0yn3r4.js.br +0 -0
  472. package/web/chunk-wb0yn3r4.js.gz +0 -0
  473. package/web/chunk-wff6hqjf.js +1 -0
  474. package/web/chunk-wff6hqjf.js.br +0 -0
  475. package/web/chunk-wff6hqjf.js.gz +0 -0
  476. package/web/chunk-whj4e4sb.js +89 -0
  477. package/web/chunk-whj4e4sb.js.br +0 -0
  478. package/web/chunk-whj4e4sb.js.gz +0 -0
  479. package/web/chunk-wn3kdpj0.js +1 -0
  480. package/web/chunk-wn3kdpj0.js.br +0 -0
  481. package/web/chunk-wn3kdpj0.js.gz +0 -0
  482. package/web/chunk-wzq3qxpb.js +1 -0
  483. package/web/chunk-wzq3qxpb.js.br +0 -0
  484. package/web/chunk-wzq3qxpb.js.gz +0 -0
  485. package/web/chunk-x2tezwv1.js +4 -0
  486. package/web/chunk-x2tezwv1.js.br +0 -0
  487. package/web/chunk-x2tezwv1.js.gz +0 -0
  488. package/web/chunk-xmajh4qe.js +2 -0
  489. package/web/chunk-xmajh4qe.js.br +0 -0
  490. package/web/chunk-xmajh4qe.js.gz +0 -0
  491. package/web/chunk-xz7py7yx.js +1 -0
  492. package/web/chunk-xz7py7yx.js.br +0 -0
  493. package/web/chunk-xz7py7yx.js.gz +0 -0
  494. package/web/chunk-y4af9gsm.js +291 -0
  495. package/web/chunk-y4af9gsm.js.br +0 -0
  496. package/web/chunk-y4af9gsm.js.gz +0 -0
  497. package/web/chunk-y512gr5a.js +332 -0
  498. package/web/chunk-y512gr5a.js.br +0 -0
  499. package/web/chunk-y512gr5a.js.gz +0 -0
  500. package/web/chunk-ywg44m2b.js +2 -0
  501. package/web/chunk-ywg44m2b.js.br +0 -0
  502. package/web/chunk-ywg44m2b.js.gz +0 -0
  503. package/web/chunk-zhzp4fm1.js +2 -0
  504. package/web/chunk-zhzp4fm1.js.br +0 -0
  505. package/web/chunk-zhzp4fm1.js.gz +0 -0
  506. package/web/index.html +1 -1
  507. package/web/index.html.br +0 -0
  508. package/web/index.html.gz +0 -0
  509. package/worker.js +1 -1
  510. package/chunk-04326385.js +0 -39
  511. package/chunk-11zc1b2w.js +0 -3
  512. package/chunk-12203fgm.js +0 -2
  513. package/chunk-194d4z7x.js +0 -7
  514. package/chunk-1apm7p2e.js +0 -2
  515. package/chunk-2csz31nh.js +0 -2
  516. package/chunk-2rqpfv4h.js +0 -3
  517. package/chunk-39cfcar4.js +0 -3
  518. package/chunk-3j26jsy0.js +0 -51
  519. package/chunk-4a5xttdp.js +0 -3
  520. package/chunk-4st5xeee.js +0 -2
  521. package/chunk-54zpktrq.js +0 -3
  522. package/chunk-5ggyf53b.js +0 -50
  523. package/chunk-5h17n6g1.js +0 -3
  524. package/chunk-5rn18vrq.js +0 -5
  525. package/chunk-5tdnvdmz.js +0 -2
  526. package/chunk-6qavr39k.js +0 -2
  527. package/chunk-6xn0r0dd.js +0 -3
  528. package/chunk-7h76jrss.js +0 -7
  529. package/chunk-7hss4hs3.js +0 -7
  530. package/chunk-7vdq0wye.js +0 -2
  531. package/chunk-7w187ycz.js +0 -10
  532. package/chunk-81s7mvf2.js +0 -16
  533. package/chunk-8j8acxde.js +0 -2
  534. package/chunk-9nfz04yr.js +0 -2
  535. package/chunk-9vth0w8q.js +0 -2
  536. package/chunk-9zcfam20.js +0 -2
  537. package/chunk-a6zvmsbh.js +0 -12
  538. package/chunk-anr8aghq.js +0 -59
  539. package/chunk-av8zh9yp.js +0 -2
  540. package/chunk-bwv97dtf.js +0 -2
  541. package/chunk-cjy4rssa.js +0 -10
  542. package/chunk-dmdyqq1k.js +0 -2
  543. package/chunk-dzvq7vt6.js +0 -2
  544. package/chunk-ejrksf6g.js +0 -3
  545. package/chunk-erxka5vh.js +0 -18
  546. package/chunk-fb2ydc2s.js +0 -8
  547. package/chunk-fc41dvhp.js +0 -12
  548. package/chunk-fdgrayj5.js +0 -3
  549. package/chunk-fgpzy3fe.js +0 -3
  550. package/chunk-fwcqcecb.js +0 -8
  551. package/chunk-hhwnmhbb.js +0 -2
  552. package/chunk-hvxc1wyv.js +0 -3
  553. package/chunk-jm2bn5mq.js +0 -3
  554. package/chunk-jm5j5jfy.js +0 -3
  555. package/chunk-jqtdf0ym.js +0 -63
  556. package/chunk-jsvr3s4q.js +0 -5
  557. package/chunk-jwk5a5tk.js +0 -25
  558. package/chunk-mwc59w50.js +0 -31
  559. package/chunk-mypbpphn.js +0 -3
  560. package/chunk-n3hfhbe4.js +0 -498
  561. package/chunk-ng5ncy65.js +0 -2
  562. package/chunk-nkmvqcge.js +0 -4073
  563. package/chunk-nmvayfq3.js +0 -3
  564. package/chunk-nw4h0wm9.js +0 -2
  565. package/chunk-p23eqet9.js +0 -2
  566. package/chunk-pxsgm6ff.js +0 -2
  567. package/chunk-qqs9fqsy.js +0 -4
  568. package/chunk-r0gsb1qs.js +0 -3
  569. package/chunk-r49sxmnc.js +0 -3
  570. package/chunk-rbfpa63e.js +0 -3
  571. package/chunk-rsrh5dgx.js +0 -2
  572. package/chunk-s2pm97nk.js +0 -286
  573. package/chunk-s6tnmg6x.js +0 -3
  574. package/chunk-se548edt.js +0 -20
  575. package/chunk-tsdeeqb8.js +0 -3
  576. package/chunk-vnv3a6t2.js +0 -3
  577. package/chunk-vrsh8cx1.js +0 -3
  578. package/chunk-w3v8zahw.js +0 -2
  579. package/chunk-w6m8c4vf.js +0 -11
  580. package/chunk-wd7sj5cv.js +0 -2
  581. package/chunk-we8v9wkw.js +0 -9
  582. package/chunk-x055cas0.js +0 -5
  583. package/chunk-x5vrtxkj.js +0 -3
  584. package/chunk-x83syrhw.js +0 -44
  585. package/chunk-xedzsj31.js +0 -5
  586. package/chunk-xp83v3zm.js +0 -2
  587. package/chunk-ykzm5g1b.js +0 -25
  588. package/chunk-yq2bwebb.js +0 -3
  589. package/chunk-yygcpnwc.js +0 -3
  590. package/chunk-zjf34acb.js +0 -2
  591. package/web/chunk-07kt1zpn.js +0 -1
  592. package/web/chunk-07kt1zpn.js.br +0 -0
  593. package/web/chunk-07kt1zpn.js.gz +0 -0
  594. package/web/chunk-0d068bmj.js +0 -1
  595. package/web/chunk-0d068bmj.js.br +0 -0
  596. package/web/chunk-0d068bmj.js.gz +0 -0
  597. package/web/chunk-0m15ghn0.js +0 -2
  598. package/web/chunk-0m15ghn0.js.br +0 -0
  599. package/web/chunk-0m15ghn0.js.gz +0 -0
  600. package/web/chunk-0swykhgr.js +0 -2
  601. package/web/chunk-0swykhgr.js.br +0 -0
  602. package/web/chunk-0swykhgr.js.gz +0 -0
  603. package/web/chunk-100a4th6.js +0 -4
  604. package/web/chunk-100a4th6.js.br +0 -0
  605. package/web/chunk-100a4th6.js.gz +0 -0
  606. package/web/chunk-1mdvm20t.js +0 -140
  607. package/web/chunk-1mdvm20t.js.br +0 -0
  608. package/web/chunk-1mdvm20t.js.gz +0 -0
  609. package/web/chunk-1mkzfr1m.js +0 -2
  610. package/web/chunk-1mkzfr1m.js.br +0 -0
  611. package/web/chunk-1mkzfr1m.js.gz +0 -0
  612. package/web/chunk-1p7wa1rq.js +0 -1
  613. package/web/chunk-1p7wa1rq.js.br +0 -0
  614. package/web/chunk-1p7wa1rq.js.gz +0 -0
  615. package/web/chunk-20gcnbgn.js +0 -2
  616. package/web/chunk-20gcnbgn.js.br +0 -0
  617. package/web/chunk-20gcnbgn.js.gz +0 -0
  618. package/web/chunk-2grspw9t.js +0 -1
  619. package/web/chunk-2grspw9t.js.br +0 -0
  620. package/web/chunk-2grspw9t.js.gz +0 -0
  621. package/web/chunk-2nwvdqxm.js +0 -1
  622. package/web/chunk-2nwvdqxm.js.br +0 -0
  623. package/web/chunk-2nwvdqxm.js.gz +0 -0
  624. package/web/chunk-2zz8t49r.js +0 -1
  625. package/web/chunk-2zz8t49r.js.br +0 -0
  626. package/web/chunk-2zz8t49r.js.gz +0 -0
  627. package/web/chunk-34g2xrgq.js +0 -120
  628. package/web/chunk-34g2xrgq.js.br +0 -0
  629. package/web/chunk-34g2xrgq.js.gz +0 -0
  630. package/web/chunk-34q3az4b.js +0 -1
  631. package/web/chunk-34q3az4b.js.br +0 -0
  632. package/web/chunk-34q3az4b.js.gz +0 -0
  633. package/web/chunk-39jqdq4r.js +0 -1
  634. package/web/chunk-39jqdq4r.js.br +0 -0
  635. package/web/chunk-39jqdq4r.js.gz +0 -0
  636. package/web/chunk-3d2fm4qc.js +0 -1
  637. package/web/chunk-3d2fm4qc.js.br +0 -0
  638. package/web/chunk-3d2fm4qc.js.gz +0 -0
  639. package/web/chunk-3s16fbrf.js +0 -40
  640. package/web/chunk-3s16fbrf.js.br +0 -0
  641. package/web/chunk-3s16fbrf.js.gz +0 -0
  642. package/web/chunk-3vsey6mw.js +0 -1
  643. package/web/chunk-3vsey6mw.js.br +0 -0
  644. package/web/chunk-3vsey6mw.js.gz +0 -0
  645. package/web/chunk-3y29sc9c.js +0 -7
  646. package/web/chunk-3y29sc9c.js.br +0 -0
  647. package/web/chunk-3y29sc9c.js.gz +0 -0
  648. package/web/chunk-40f59ze9.js +0 -39
  649. package/web/chunk-40f59ze9.js.br +0 -0
  650. package/web/chunk-40f59ze9.js.gz +0 -0
  651. package/web/chunk-414npx47.js +0 -1
  652. package/web/chunk-414npx47.js.br +0 -0
  653. package/web/chunk-414npx47.js.gz +0 -0
  654. package/web/chunk-495sjpc6.js +0 -2
  655. package/web/chunk-495sjpc6.js.br +0 -0
  656. package/web/chunk-495sjpc6.js.gz +0 -0
  657. package/web/chunk-4ab1dv3g.js +0 -142
  658. package/web/chunk-4ab1dv3g.js.br +0 -0
  659. package/web/chunk-4ab1dv3g.js.gz +0 -0
  660. package/web/chunk-545zx869.js +0 -2
  661. package/web/chunk-545zx869.js.br +0 -0
  662. package/web/chunk-545zx869.js.gz +0 -0
  663. package/web/chunk-55mx05jg.js +0 -2
  664. package/web/chunk-55mx05jg.js.br +0 -0
  665. package/web/chunk-55mx05jg.js.gz +0 -0
  666. package/web/chunk-58xhn7ry.js +0 -2
  667. package/web/chunk-58xhn7ry.js.br +0 -0
  668. package/web/chunk-58xhn7ry.js.gz +0 -0
  669. package/web/chunk-67pa4950.js +0 -1
  670. package/web/chunk-67pa4950.js.br +0 -0
  671. package/web/chunk-67pa4950.js.gz +0 -0
  672. package/web/chunk-690qxds4.js +0 -1
  673. package/web/chunk-690qxds4.js.br +0 -0
  674. package/web/chunk-690qxds4.js.gz +0 -0
  675. package/web/chunk-6ana63fs.js +0 -21
  676. package/web/chunk-6ana63fs.js.br +0 -0
  677. package/web/chunk-6ana63fs.js.gz +0 -0
  678. package/web/chunk-6ew54553.js +0 -2
  679. package/web/chunk-6ew54553.js.br +0 -0
  680. package/web/chunk-6ew54553.js.gz +0 -0
  681. package/web/chunk-6f1q0tjv.js +0 -1142
  682. package/web/chunk-6f1q0tjv.js.br +0 -0
  683. package/web/chunk-6f1q0tjv.js.gz +0 -0
  684. package/web/chunk-6gpzz5wm.js +0 -1
  685. package/web/chunk-6gpzz5wm.js.br +0 -0
  686. package/web/chunk-6gpzz5wm.js.gz +0 -0
  687. package/web/chunk-71g6vrx9.js +0 -62
  688. package/web/chunk-71g6vrx9.js.br +0 -0
  689. package/web/chunk-71g6vrx9.js.gz +0 -0
  690. package/web/chunk-77dnqrb6.js +0 -2
  691. package/web/chunk-77dnqrb6.js.br +0 -0
  692. package/web/chunk-77dnqrb6.js.gz +0 -0
  693. package/web/chunk-7fdrwy21.js +0 -1
  694. package/web/chunk-7fdrwy21.js.br +0 -0
  695. package/web/chunk-7fdrwy21.js.gz +0 -0
  696. package/web/chunk-84s7821x.js +0 -2
  697. package/web/chunk-84s7821x.js.br +0 -0
  698. package/web/chunk-84s7821x.js.gz +0 -0
  699. package/web/chunk-8e5qd73v.js +0 -7
  700. package/web/chunk-8e5qd73v.js.br +0 -0
  701. package/web/chunk-8e5qd73v.js.gz +0 -0
  702. package/web/chunk-8kyj945c.js +0 -2
  703. package/web/chunk-8kyj945c.js.br +0 -0
  704. package/web/chunk-8kyj945c.js.gz +0 -0
  705. package/web/chunk-9b0evht1.js +0 -292
  706. package/web/chunk-9b0evht1.js.br +0 -0
  707. package/web/chunk-9b0evht1.js.gz +0 -0
  708. package/web/chunk-9j7v0e4v.js +0 -2
  709. package/web/chunk-9j7v0e4v.js.br +0 -0
  710. package/web/chunk-9j7v0e4v.js.gz +0 -0
  711. package/web/chunk-9jb5xwya.js +0 -36
  712. package/web/chunk-9jb5xwya.js.br +0 -0
  713. package/web/chunk-9jb5xwya.js.gz +0 -0
  714. package/web/chunk-9kf8arqg.js +0 -1
  715. package/web/chunk-9kf8arqg.js.br +0 -0
  716. package/web/chunk-9kf8arqg.js.gz +0 -0
  717. package/web/chunk-9msmea44.js +0 -70
  718. package/web/chunk-9msmea44.js.br +0 -0
  719. package/web/chunk-9msmea44.js.gz +0 -0
  720. package/web/chunk-a7q85665.js +0 -3
  721. package/web/chunk-a7q85665.js.br +0 -0
  722. package/web/chunk-a7q85665.js.gz +0 -0
  723. package/web/chunk-aan5qk6x.js +0 -1
  724. package/web/chunk-aan5qk6x.js.br +0 -0
  725. package/web/chunk-aan5qk6x.js.gz +0 -0
  726. package/web/chunk-b9cjgxr1.js +0 -98
  727. package/web/chunk-b9cjgxr1.js.br +0 -0
  728. package/web/chunk-b9cjgxr1.js.gz +0 -0
  729. package/web/chunk-baaattjv.js +0 -2
  730. package/web/chunk-baaattjv.js.br +0 -0
  731. package/web/chunk-baaattjv.js.gz +0 -0
  732. package/web/chunk-bj9m08f9.js +0 -1
  733. package/web/chunk-bj9m08f9.js.br +0 -0
  734. package/web/chunk-bj9m08f9.js.gz +0 -0
  735. package/web/chunk-bm4fvq6q.js +0 -89
  736. package/web/chunk-bm4fvq6q.js.br +0 -0
  737. package/web/chunk-bm4fvq6q.js.gz +0 -0
  738. package/web/chunk-c4g2k9wp.js +0 -1
  739. package/web/chunk-c4g2k9wp.js.br +0 -0
  740. package/web/chunk-c4g2k9wp.js.gz +0 -0
  741. package/web/chunk-cnptxet3.js +0 -2
  742. package/web/chunk-cnptxet3.js.br +0 -0
  743. package/web/chunk-cnptxet3.js.gz +0 -0
  744. package/web/chunk-d5n2yz4e.js +0 -2
  745. package/web/chunk-d5n2yz4e.js.br +0 -0
  746. package/web/chunk-d5n2yz4e.js.gz +0 -0
  747. package/web/chunk-db2jge7w.js +0 -291
  748. package/web/chunk-db2jge7w.js.br +0 -0
  749. package/web/chunk-db2jge7w.js.gz +0 -0
  750. package/web/chunk-dfv95z6w.js +0 -1
  751. package/web/chunk-dfv95z6w.js.br +0 -0
  752. package/web/chunk-dfv95z6w.js.gz +0 -0
  753. package/web/chunk-dsxjv5an.js +0 -1
  754. package/web/chunk-dsxjv5an.js.br +0 -0
  755. package/web/chunk-dsxjv5an.js.gz +0 -0
  756. package/web/chunk-e362x35y.js +0 -1
  757. package/web/chunk-e362x35y.js.br +0 -0
  758. package/web/chunk-e362x35y.js.gz +0 -0
  759. package/web/chunk-e6jfnajp.js +0 -55
  760. package/web/chunk-e6jfnajp.js.br +0 -0
  761. package/web/chunk-e6jfnajp.js.gz +0 -0
  762. package/web/chunk-en5n60qw.js +0 -2
  763. package/web/chunk-en5n60qw.js.br +0 -0
  764. package/web/chunk-en5n60qw.js.gz +0 -0
  765. package/web/chunk-ex34kdxk.js +0 -217
  766. package/web/chunk-ex34kdxk.js.br +0 -0
  767. package/web/chunk-ex34kdxk.js.gz +0 -0
  768. package/web/chunk-exa2z1b4.js +0 -1
  769. package/web/chunk-exa2z1b4.js.br +0 -0
  770. package/web/chunk-exa2z1b4.js.gz +0 -0
  771. package/web/chunk-f5wyg9zh.js +0 -2
  772. package/web/chunk-f5wyg9zh.js.br +0 -0
  773. package/web/chunk-f5wyg9zh.js.gz +0 -0
  774. package/web/chunk-fjvd2dx2.js +0 -2
  775. package/web/chunk-fjvd2dx2.js.br +0 -0
  776. package/web/chunk-fjvd2dx2.js.gz +0 -0
  777. package/web/chunk-fs39pqet.js +0 -2
  778. package/web/chunk-fs39pqet.js.br +0 -0
  779. package/web/chunk-fs39pqet.js.gz +0 -0
  780. package/web/chunk-gvndjaan.js +0 -2
  781. package/web/chunk-gvndjaan.js.br +0 -0
  782. package/web/chunk-gvndjaan.js.gz +0 -0
  783. package/web/chunk-h3618s7t.js +0 -4
  784. package/web/chunk-h3618s7t.js.br +0 -0
  785. package/web/chunk-h3618s7t.js.gz +0 -0
  786. package/web/chunk-hks91ztk.js +0 -8
  787. package/web/chunk-hks91ztk.js.br +0 -0
  788. package/web/chunk-hks91ztk.js.gz +0 -0
  789. package/web/chunk-hqd97ez8.js +0 -200
  790. package/web/chunk-hqd97ez8.js.br +0 -0
  791. package/web/chunk-hqd97ez8.js.gz +0 -0
  792. package/web/chunk-hta68vm8.js +0 -2
  793. package/web/chunk-hta68vm8.js.br +0 -0
  794. package/web/chunk-hta68vm8.js.gz +0 -0
  795. package/web/chunk-jcbvhp3h.js +0 -1
  796. package/web/chunk-jcbvhp3h.js.br +0 -0
  797. package/web/chunk-jcbvhp3h.js.gz +0 -0
  798. package/web/chunk-jw6e38cy.js +0 -1
  799. package/web/chunk-jw6e38cy.js.br +0 -0
  800. package/web/chunk-jw6e38cy.js.gz +0 -0
  801. package/web/chunk-jzp1qd92.js +0 -1
  802. package/web/chunk-jzp1qd92.js.br +0 -0
  803. package/web/chunk-jzp1qd92.js.gz +0 -0
  804. package/web/chunk-kg39a24q.js +0 -16
  805. package/web/chunk-kg39a24q.js.br +0 -0
  806. package/web/chunk-kg39a24q.js.gz +0 -0
  807. package/web/chunk-kj75rme3.js +0 -1
  808. package/web/chunk-kj75rme3.js.br +0 -0
  809. package/web/chunk-kj75rme3.js.gz +0 -0
  810. package/web/chunk-kvxmwmen.js +0 -1
  811. package/web/chunk-kvxmwmen.js.br +0 -0
  812. package/web/chunk-kvxmwmen.js.gz +0 -0
  813. package/web/chunk-kzdmsaet.js +0 -1
  814. package/web/chunk-kzdmsaet.js.br +0 -0
  815. package/web/chunk-kzdmsaet.js.gz +0 -0
  816. package/web/chunk-m203pzza.js +0 -89
  817. package/web/chunk-m203pzza.js.br +0 -0
  818. package/web/chunk-m203pzza.js.gz +0 -0
  819. package/web/chunk-m3xw41vq.js +0 -1
  820. package/web/chunk-m3xw41vq.js.br +0 -0
  821. package/web/chunk-m3xw41vq.js.gz +0 -0
  822. package/web/chunk-m8jcx13t.js +0 -30
  823. package/web/chunk-m8jcx13t.js.br +0 -0
  824. package/web/chunk-m8jcx13t.js.gz +0 -0
  825. package/web/chunk-mpgz1bj6.js +0 -1
  826. package/web/chunk-mpgz1bj6.js.br +0 -0
  827. package/web/chunk-mpgz1bj6.js.gz +0 -0
  828. package/web/chunk-mzagmpq5.js +0 -1
  829. package/web/chunk-mzagmpq5.js.br +0 -0
  830. package/web/chunk-mzagmpq5.js.gz +0 -0
  831. package/web/chunk-n51q6d6e.js +0 -1
  832. package/web/chunk-n51q6d6e.js.br +0 -0
  833. package/web/chunk-n51q6d6e.js.gz +0 -0
  834. package/web/chunk-nbf2zaaj.js +0 -1
  835. package/web/chunk-nbf2zaaj.js.br +0 -0
  836. package/web/chunk-nbf2zaaj.js.gz +0 -0
  837. package/web/chunk-ngsv0xfb.js +0 -1
  838. package/web/chunk-ngsv0xfb.js.br +0 -0
  839. package/web/chunk-ngsv0xfb.js.gz +0 -0
  840. package/web/chunk-nxd7dn08.js +0 -1
  841. package/web/chunk-nxd7dn08.js.br +0 -0
  842. package/web/chunk-nxd7dn08.js.gz +0 -0
  843. package/web/chunk-p44ezwgh.js +0 -1
  844. package/web/chunk-p44ezwgh.js.br +0 -0
  845. package/web/chunk-p44ezwgh.js.gz +0 -0
  846. package/web/chunk-pdg3bxc0.js +0 -2
  847. package/web/chunk-pdg3bxc0.js.br +0 -0
  848. package/web/chunk-pdg3bxc0.js.gz +0 -0
  849. package/web/chunk-pjbp0xwn.css +0 -1
  850. package/web/chunk-pjbp0xwn.css.br +0 -0
  851. package/web/chunk-pjbp0xwn.css.gz +0 -0
  852. package/web/chunk-pkbyh261.js +0 -1
  853. package/web/chunk-pkbyh261.js.br +0 -0
  854. package/web/chunk-pkbyh261.js.gz +0 -0
  855. package/web/chunk-q3q25jr9.js +0 -324
  856. package/web/chunk-q3q25jr9.js.br +0 -0
  857. package/web/chunk-q3q25jr9.js.gz +0 -0
  858. package/web/chunk-q5nr5wjn.js +0 -169
  859. package/web/chunk-q5nr5wjn.js.br +0 -0
  860. package/web/chunk-q5nr5wjn.js.gz +0 -0
  861. package/web/chunk-qd9y8r3g.js +0 -84
  862. package/web/chunk-qd9y8r3g.js.br +0 -0
  863. package/web/chunk-qd9y8r3g.js.gz +0 -0
  864. package/web/chunk-qm039dan.js +0 -24
  865. package/web/chunk-qm039dan.js.br +0 -0
  866. package/web/chunk-qm039dan.js.gz +0 -0
  867. package/web/chunk-qqp31fyy.js +0 -1
  868. package/web/chunk-qqp31fyy.js.br +0 -0
  869. package/web/chunk-qqp31fyy.js.gz +0 -0
  870. package/web/chunk-r76we294.js +0 -1
  871. package/web/chunk-r76we294.js.br +0 -0
  872. package/web/chunk-r76we294.js.gz +0 -0
  873. package/web/chunk-r7st369j.js +0 -1
  874. package/web/chunk-r7st369j.js.br +0 -0
  875. package/web/chunk-r7st369j.js.gz +0 -0
  876. package/web/chunk-rc3sv7v4.js +0 -1
  877. package/web/chunk-rc3sv7v4.js.br +0 -0
  878. package/web/chunk-rc3sv7v4.js.gz +0 -0
  879. package/web/chunk-rj1rp0tc.js +0 -1
  880. package/web/chunk-rj1rp0tc.js.br +0 -0
  881. package/web/chunk-rj1rp0tc.js.gz +0 -0
  882. package/web/chunk-rtk95qme.js +0 -1
  883. package/web/chunk-rtk95qme.js.br +0 -0
  884. package/web/chunk-rtk95qme.js.gz +0 -0
  885. package/web/chunk-s4rfkyqn.js +0 -12
  886. package/web/chunk-s4rfkyqn.js.br +0 -0
  887. package/web/chunk-s4rfkyqn.js.gz +0 -0
  888. package/web/chunk-s6a0gfv3.js +0 -34
  889. package/web/chunk-s6a0gfv3.js.br +0 -0
  890. package/web/chunk-s6a0gfv3.js.gz +0 -0
  891. package/web/chunk-s7rwbxr5.js +0 -2
  892. package/web/chunk-s7rwbxr5.js.br +0 -0
  893. package/web/chunk-s7rwbxr5.js.gz +0 -0
  894. package/web/chunk-s8f6v2nn.js +0 -1
  895. package/web/chunk-s8f6v2nn.js.br +0 -0
  896. package/web/chunk-s8f6v2nn.js.gz +0 -0
  897. package/web/chunk-sawc81kc.js +0 -303
  898. package/web/chunk-sawc81kc.js.br +0 -0
  899. package/web/chunk-sawc81kc.js.gz +0 -0
  900. package/web/chunk-sex2gevj.js +0 -2
  901. package/web/chunk-sex2gevj.js.br +0 -0
  902. package/web/chunk-sex2gevj.js.gz +0 -0
  903. package/web/chunk-smmdqmcy.js +0 -1
  904. package/web/chunk-smmdqmcy.js.br +0 -0
  905. package/web/chunk-smmdqmcy.js.gz +0 -0
  906. package/web/chunk-tn39vbcz.js +0 -2
  907. package/web/chunk-tn39vbcz.js.br +0 -0
  908. package/web/chunk-tn39vbcz.js.gz +0 -0
  909. package/web/chunk-tntwwpyh.js +0 -2
  910. package/web/chunk-tntwwpyh.js.br +0 -0
  911. package/web/chunk-tntwwpyh.js.gz +0 -0
  912. package/web/chunk-tpzyyc2z.js +0 -2
  913. package/web/chunk-tpzyyc2z.js.br +0 -0
  914. package/web/chunk-tpzyyc2z.js.gz +0 -0
  915. package/web/chunk-txhvq81f.js +0 -106
  916. package/web/chunk-txhvq81f.js.br +0 -0
  917. package/web/chunk-txhvq81f.js.gz +0 -0
  918. package/web/chunk-txtm71rz.js +0 -41
  919. package/web/chunk-txtm71rz.js.br +0 -0
  920. package/web/chunk-txtm71rz.js.gz +0 -0
  921. package/web/chunk-tykcqm6v.js +0 -2
  922. package/web/chunk-tykcqm6v.js.br +0 -0
  923. package/web/chunk-tykcqm6v.js.gz +0 -0
  924. package/web/chunk-tyrmd7j6.js +0 -1
  925. package/web/chunk-tyrmd7j6.js.br +0 -0
  926. package/web/chunk-tyrmd7j6.js.gz +0 -0
  927. package/web/chunk-v6ebn3sf.js +0 -38
  928. package/web/chunk-v6ebn3sf.js.br +0 -0
  929. package/web/chunk-v6ebn3sf.js.gz +0 -0
  930. package/web/chunk-vbx7t0h5.js +0 -214
  931. package/web/chunk-vbx7t0h5.js.br +0 -0
  932. package/web/chunk-vbx7t0h5.js.gz +0 -0
  933. package/web/chunk-vj3wz0a2.js +0 -1
  934. package/web/chunk-vj3wz0a2.js.br +0 -0
  935. package/web/chunk-vj3wz0a2.js.gz +0 -0
  936. package/web/chunk-vndrjeyr.js +0 -2
  937. package/web/chunk-vndrjeyr.js.br +0 -0
  938. package/web/chunk-vndrjeyr.js.gz +0 -0
  939. package/web/chunk-vqgkd7q8.js +0 -1
  940. package/web/chunk-vqgkd7q8.js.br +0 -0
  941. package/web/chunk-vqgkd7q8.js.gz +0 -0
  942. package/web/chunk-vvsfwjrg.js +0 -1
  943. package/web/chunk-vvsfwjrg.js.br +0 -0
  944. package/web/chunk-vvsfwjrg.js.gz +0 -0
  945. package/web/chunk-w0k63gap.js +0 -2
  946. package/web/chunk-w0k63gap.js.br +0 -0
  947. package/web/chunk-w0k63gap.js.gz +0 -0
  948. package/web/chunk-wafwgky9.js +0 -1
  949. package/web/chunk-wafwgky9.js.br +0 -0
  950. package/web/chunk-wafwgky9.js.gz +0 -0
  951. package/web/chunk-wdd9pasx.js +0 -1
  952. package/web/chunk-wdd9pasx.js.br +0 -0
  953. package/web/chunk-wdd9pasx.js.gz +0 -0
  954. package/web/chunk-wk89vrvf.js +0 -78
  955. package/web/chunk-wk89vrvf.js.br +0 -0
  956. package/web/chunk-wk89vrvf.js.gz +0 -0
  957. package/web/chunk-wqjn3yz1.js +0 -370
  958. package/web/chunk-wqjn3yz1.js.br +0 -0
  959. package/web/chunk-wqjn3yz1.js.gz +0 -0
  960. package/web/chunk-wrej9qt0.js +0 -2
  961. package/web/chunk-wrej9qt0.js.br +0 -0
  962. package/web/chunk-wrej9qt0.js.gz +0 -0
  963. package/web/chunk-xbjv549c.js +0 -2
  964. package/web/chunk-xbjv549c.js.br +0 -0
  965. package/web/chunk-xbjv549c.js.gz +0 -0
  966. package/web/chunk-xmp1ag6z.js +0 -2
  967. package/web/chunk-xmp1ag6z.js.br +0 -0
  968. package/web/chunk-xmp1ag6z.js.gz +0 -0
  969. package/web/chunk-xsqd38a2.js +0 -332
  970. package/web/chunk-xsqd38a2.js.br +0 -0
  971. package/web/chunk-xsqd38a2.js.gz +0 -0
  972. package/web/chunk-y2fbz356.js +0 -1
  973. package/web/chunk-y2fbz356.js.br +0 -0
  974. package/web/chunk-y2fbz356.js.gz +0 -0
  975. package/web/chunk-y48mj5d7.js +0 -1
  976. package/web/chunk-y48mj5d7.js.br +0 -0
  977. package/web/chunk-y48mj5d7.js.gz +0 -0
  978. package/web/chunk-yebmbyrj.js +0 -1
  979. package/web/chunk-yebmbyrj.js.br +0 -2
  980. package/web/chunk-yebmbyrj.js.gz +0 -0
  981. package/web/chunk-ypytxmn6.js +0 -24
  982. package/web/chunk-ypytxmn6.js.br +0 -0
  983. package/web/chunk-ypytxmn6.js.gz +0 -0
  984. package/web/chunk-z6jy8edk.js +0 -99
  985. package/web/chunk-z6jy8edk.js.br +0 -0
  986. package/web/chunk-z6jy8edk.js.gz +0 -0
  987. package/web/chunk-zg5n1hx4.js +0 -1
  988. package/web/chunk-zg5n1hx4.js.br +0 -0
  989. package/web/chunk-zg5n1hx4.js.gz +0 -0
  990. package/web/chunk-zmrd0bnc.js +0 -139
  991. package/web/chunk-zmrd0bnc.js.br +0 -0
  992. package/web/chunk-zmrd0bnc.js.gz +0 -0
  993. package/web/chunk-zqm6n89p.js +0 -7
  994. package/web/chunk-zqm6n89p.js.br +0 -0
  995. package/web/chunk-zqm6n89p.js.gz +0 -0
  996. package/web/chunk-zvat895r.js +0 -1
  997. package/web/chunk-zvat895r.js.br +0 -0
  998. package/web/chunk-zvat895r.js.gz +0 -0
  999. package/web/chunk-zxt17pcp.js +0 -1
  1000. package/web/chunk-zxt17pcp.js.br +0 -0
  1001. package/web/chunk-zxt17pcp.js.gz +0 -0
@@ -1,120 +0,0 @@
1
- import{t,or,i,de,f,h,A,mn,Ao,N,d,g,J,Mt,Ne,Ot}from"./chunk-sawc81kc.js";import{_n}from"./chunk-495sjpc6.js";var ct=function(){var r=t(function(S,o,y,u){for(y=y||{},u=S.length;u--;y[S[u]]=o);return y},"o"),e=[6,11,13,14,15,17,19,20,23,24],a=[1,12],s=[1,13],n=[1,14],p=[1,15],c=[1,16],l=[1,19],v=[1,20],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(o,y,u,k,_,m,I){var E=m.length-1;switch(_){case 1:return m[E-1];case 3:k.setDirection("LR");break;case 4:k.setDirection("TD");break;case 5:this.$=[];break;case 6:m[E-1].push(m[E]),this.$=m[E-1];break;case 7:case 8:this.$=m[E];break;case 9:case 10:this.$=[];break;case 11:k.getCommonDb().setDiagramTitle(m[E].substr(6)),this.$=m[E].substr(6);break;case 12:this.$=m[E].trim(),k.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=m[E].trim(),k.getCommonDb().setAccDescription(this.$);break;case 15:k.addSection(m[E].substr(8)),this.$=m[E].substr(8);break;case 18:k.addTask(m[E],0,""),this.$=m[E];break;case 19:k.addEvent(m[E].substr(2)),this.$=m[E];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},r(e,[2,5],{5:6}),r(e,[2,2]),r(e,[2,3]),r(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:a,15:s,17:n,19:p,20:c,21:17,22:18,23:l,24:v},r(e,[2,10],{1:[2,1]}),r(e,[2,6]),{12:21,14:a,15:s,17:n,19:p,20:c,21:17,22:18,23:l,24:v},r(e,[2,8]),r(e,[2,9]),r(e,[2,11]),{16:[1,22]},{18:[1,23]},r(e,[2,14]),r(e,[2,15]),r(e,[2,16]),r(e,[2,17]),r(e,[2,18]),r(e,[2,19]),r(e,[2,7]),r(e,[2,12]),r(e,[2,13])],defaultActions:{},parseError:t(function(o,y){if(y.recoverable)this.trace(o);else{var u=Error(o);throw u.hash=y,u}},"parseError"),parse:t(function(o){var y=this,u=[0],k=[],_=[null],m=[],I=this.table,E="",W=0,G=0,D=0,q=2,B=1,O=m.slice.call(arguments,1),L=Object.create(this.lexer),F={yy:{}};for(var U in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,U))F.yy[U]=this.yy[U];if(L.setInput(o,F.yy),F.yy.lexer=L,F.yy.parser=this,typeof L.yylloc>"u")L.yylloc={};var Q=L.yylloc;m.push(Q);var C=L.options&&L.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function T(K){u.length=u.length-2*K,_.length=_.length-K,m.length=m.length-K}t(T,"popStack");function M(){var K=k.pop()||L.lex()||B;if(typeof K!=="number"){if(K instanceof Array)k=K,K=k.pop();K=y.symbols_[K]||K}return K}t(M,"lex");var H,P,V,R,ot,et,j={},rt,X,yt,nt;while(!0){if(V=u[u.length-1],this.defaultActions[V])R=this.defaultActions[V];else{if(H===null||typeof H>"u")H=M();R=I[V]&&I[V][H]}if(typeof R>"u"||!R.length||!R[0]){var lt="";nt=[];for(rt in I[V])if(this.terminals_[rt]&&rt>q)nt.push("'"+this.terminals_[rt]+"'");if(L.showPosition)lt="Parse error on line "+(W+1)+`:
2
- `+L.showPosition()+`
3
- Expecting `+nt.join(", ")+", got '"+(this.terminals_[H]||H)+"'";else lt="Parse error on line "+(W+1)+": Unexpected "+(H==B?"end of input":"'"+(this.terminals_[H]||H)+"'");this.parseError(lt,{text:L.match,token:this.terminals_[H]||H,line:L.yylineno,loc:Q,expected:nt})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+V+", token: "+H);switch(R[0]){case 1:if(u.push(H),_.push(L.yytext),m.push(L.yylloc),u.push(R[1]),H=null,!P){if(G=L.yyleng,E=L.yytext,W=L.yylineno,Q=L.yylloc,D>0)D--}else H=P,P=null;break;case 2:if(X=this.productions_[R[1]][1],j.$=_[_.length-X],j._$={first_line:m[m.length-(X||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(X||1)].first_column,last_column:m[m.length-1].last_column},C)j._$.range=[m[m.length-(X||1)].range[0],m[m.length-1].range[1]];if(et=this.performAction.apply(j,[E,G,W,F.yy,R[1],_,m].concat(O)),typeof et<"u")return et;if(X)u=u.slice(0,-1*X*2),_=_.slice(0,-1*X),m=m.slice(0,-1*X);u.push(this.productions_[R[1]][0]),_.push(j.$),m.push(j._$),yt=I[u[u.length-2]][u[u.length-1]],u.push(yt);break;case 3:return!0}}return!0},"parse")},w=function(){var S={EOF:1,parseError:t(function(y,u){if(this.yy.parser)this.yy.parser.parseError(y,u);else throw Error(y)},"parseError"),setInput:t(function(o,y){if(this.yy=y||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var y=o.match(/(?:\r\n?|\n).*/g);if(y)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var y=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var k=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),u.length-1)this.yylineno-=u.length-1;var _=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:u?(u.length===k.length?this.yylloc.first_column:0)+k[k.length-u.length].length-u[0].length:this.yylloc.first_column-y},this.options.ranges)this.yylloc.range=[_[0],_[0]+this.yyleng-y];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),y=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
- `+y+"^"},"showPosition"),test_match:t(function(o,y){var u,k,_;if(this.options.backtrack_lexer){if(_={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)_.yylloc.range=this.yylloc.range.slice(0)}if(k=o[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],u=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(u)return u;else if(this._backtrack){for(var m in _)this[m]=_[m];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,y,u,k;if(!this._more)this.yytext="",this.match="";var _=this._currentRules();for(var m=0;m<_.length;m++)if(u=this._input.match(this.rules[_[m]]),u&&(!y||u[0].length>y[0].length)){if(y=u,k=m,this.options.backtrack_lexer)if(o=this.test_match(u,_[m]),o!==!1)return o;else if(this._backtrack){y=!1;continue}else return!1;else if(!this.options.flex)break}if(y){if(o=this.test_match(y,_[k]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var y=this.next();if(y)return y;else return this.lex()},"lex"),begin:t(function(y){this.conditionStack.push(y)},"begin"),popState:t(function(){var y=this.conditionStack.length-1;if(y>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(y){if(y=this.conditionStack.length-1-Math.abs(y||0),y>=0)return this.conditionStack[y];else return"INITIAL"},"topState"),pushState:t(function(y){this.begin(y)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(y,u,k,_){var m=_;switch(k){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return S}();x.lexer=w;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();ct.parser=ct;var zt=ct,_t={};or(_t,{addEvent:()=>At,addSection:()=>Nt,addTask:()=>Lt,addTaskOrg:()=>Ct,clear:()=>Et,default:()=>Gt,getCommonDb:()=>St,getDirection:()=>$t,getSections:()=>It,getTasks:()=>Ht,setDirection:()=>Tt});var Y="",wt=0,dt="LR",ut=[],it=[],tt=[],St=t(()=>Ao,"getCommonDb"),Et=t(function(){ut.length=0,it.length=0,Y="",tt.length=0,dt="LR",N()},"clear"),Tt=t(function(r){dt=r},"setDirection"),$t=t(function(){return dt},"getDirection"),Nt=t(function(r){Y=r,ut.push(r)},"addSection"),It=t(function(){return ut},"getSections"),Ht=t(function(){let r=mt(),e=100,a=0;while(!r&&a<e)r=mt(),a++;return it.push(...tt),it},"getTasks"),Lt=t(function(r,e,a){let s={id:wt++,section:Y,type:Y,task:r,score:e?e:0,events:a?[a]:[]};tt.push(s)},"addTask"),At=t(function(r){tt.find((a)=>a.id===wt-1).events.push(r)},"addEvent"),Ct=t(function(r){let e={section:Y,type:Y,description:r,task:r,classes:[]};it.push(e)},"addTaskOrg"),mt=t(function(){let r=t(function(a){return tt[a].processed},"compileTask"),e=!0;for(let[a,s]of tt.entries())r(a),e=e&&s.processed;return e},"compileTasks"),Gt={clear:Et,getCommonDb:St,getDirection:$t,setDirection:Tt,addSection:Nt,getSections:It,getTasks:Ht,addTask:Lt,addTaskOrg:Ct,addEvent:At},Rt=0,st=t(function(r,e){let a=r.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),a.attr("rx",e.rx),a.attr("ry",e.ry),e.class!==void 0)a.attr("class",e.class);return a},"drawRect"),Dt=t(function(r,e){let s=r.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=r.append("g");n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function p(v){let x=_n().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);v.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}t(p,"smile");function c(v){let x=_n().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);v.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}t(c,"sad");function l(v){v.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(l,"ambivalent"),e.score>3)p(n);else if(e.score<3)c(n);else l(n);return s},"drawFace"),Kt=t(function(r,e){let a=r.append("circle");if(a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0)a.attr("class",a.class);if(e.title!==void 0)a.append("title").text(e.title);return a},"drawCircle"),Wt=t(function(r,e){let a=e.text.replace(/<br\s*\/?>/gi," "),s=r.append("text");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class!==void 0)s.attr("class",e.class);let n=s.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.text(a),s},"drawText"),Ut=t(function(r,e){function a(n,p,c,l,v){return n+","+p+" "+(n+c)+","+p+" "+(n+c)+","+(p+l-v)+" "+(n+c-v*1.2)+","+(p+l)+" "+n+","+(p+l)}t(a,"genPoints");let s=r.append("polygon");s.attr("points",a(e.x,e.y,50,20,7)),s.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+0.5*e.labelMargin,Wt(r,e)},"drawLabel"),Xt=t(function(r,e,a){let s=r.append("g"),n=pt();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=a.width,n.height=a.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,st(s,n),Pt(a)(e.text,s,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),ht=-1,Zt=t(function(r,e,a,s){let n=e.x+a.width/2,p=r.append("g");ht++;let c=450;p.append("line").attr("id",s+"-task"+ht).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",c).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Dt(p,{cx:n,cy:300+(5-e.score)*30,score:e.score});let l=pt();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=a.width,l.height=a.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,st(p,l),Pt(a)(e.task,p,l.x,l.y,l.width,l.height,{class:"task"},a,e.colour)},"drawTask"),jt=t(function(r,e){st(r,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),qt=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),pt=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Pt=function(){function r(n,p,c,l,v,x,w,b){let S=p.append("text").attr("x",c+v/2).attr("y",l+x/2+5).style("font-color",b).style("text-anchor","middle").text(n);s(S,w)}t(r,"byText");function e(n,p,c,l,v,x,w,b,S){let{taskFontSize:o,taskFontFamily:y}=b,u=n.split(/<br\s*\/?>/gi);for(let k=0;k<u.length;k++){let _=k*o-o*(u.length-1)/2,m=p.append("text").attr("x",c+v/2).attr("y",l).attr("fill",S).style("text-anchor","middle").style("font-size",o).style("font-family",y);m.append("tspan").attr("x",c+v/2).attr("dy",_).text(u[k]),m.attr("y",l+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(m,w)}}t(e,"byTspan");function a(n,p,c,l,v,x,w,b){let S=p.append("switch"),y=S.append("foreignObject").attr("x",c).attr("y",l).attr("width",v).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");y.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,S,c,l,v,x,w,b),s(y,w)}t(a,"byFo");function s(n,p){for(let c in p)if(c in p)n.attr(c,p[c])}return t(s,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?a:n.textPlacement==="old"?r:e}}(),Jt=t(function(r,e){Rt=0,ht=-1,r.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function gt(r,e){r.each(function(){var a=g(this),s=a.text().split(/(\s+|<br>)/).reverse(),n,p=[],c=1.1,l=a.attr("y"),v=parseFloat(a.attr("dy")),x=a.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",v+"em");for(let w=0;w<s.length;w++)if(n=s[s.length-1-w],p.push(n),x.text(p.join(" ").trim()),x.node().getComputedTextLength()>e||n==="<br>"){if(p.pop(),x.text(p.join(" ").trim()),n==="<br>")p=[""];else p=[n];x=a.append("tspan").attr("x",0).attr("y",l).attr("dy",c+"em").text(n)}})}t(gt,"wrap");var Qt=t(function(r,e,a,s,n,p=!1){let{theme:c,look:l}=s,v=c?.includes("redux"),x=s?.themeVariables?.THEME_COLOR_LIMIT??12,w=a%x-1,b=r.append("g");e.section=w,b.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+w));let S=b.append("g"),o=b.append("g"),u=o.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(gt,e.width).node().getBBox(),k=s.fontSize?.replace?s.fontSize.replace("px",""):s.fontSize;if(e.height=u.height+k*1.1*0.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,o.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),v)o.attr("transform",`translate(${e.width/2}, ${p?e.padding/2+3:e.padding})`);if(te(S,e,w,n,s),l==="neo"){if(b.attr("data-look","neo"),v){let _=c.includes("dark"),m=r.node()?.ownerSVGElement??r.node(),I=g(m),E=I.attr("id")??"",W=E?`${E}-drop-shadow`:"drop-shadow";if(I.select(`#${W}`).empty()){let G=I.select("defs");(G.empty()?I.append("defs"):G).append("filter").attr("id",W).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",_?"0.2":"0.06").attr("flood-color",_?"#FFFFFF":"#000000")}}}return e},"drawNode"),Yt=t(function(r,e,a){let s=r.append("g"),p=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(gt,e.width).node().getBBox(),c=a.fontSize?.replace?a.fontSize.replace("px",""):a.fontSize;return s.remove(),p.height+c*1.1*0.5+e.padding},"getVirtualNodeHeight"),te=t(function(r,e,a,s,n){let{theme:p}=n,c=p?.includes("redux")?0:5,l=5,v=c>0?`M0 ${e.height-5} v${-e.height+10} q0,-${c},${c},-${c} h${e.width-10} q${c},0,${c},${c} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;if(r.append("path").attr("id",s+"-node-"+Rt++).attr("class","node-bkg node-"+e.type).attr("d",v),!p?.includes("redux"))r.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),z={drawRect:st,drawCircle:Kt,drawSection:Xt,drawText:Wt,drawLabel:Ut,drawTask:Zt,drawBackgroundRect:jt,getTextObj:qt,getNoteRect:pt,initGraphics:Jt,drawNode:Qt,getVirtualNodeHeight:Yt},ee=t(function(r,e,a,s){let n=d(),{look:p,theme:c,themeVariables:l}=n,{useGradient:v,gradientStart:x,gradientStop:w}=l,b=n.timeline?.leftMargin??50;i.debug("timeline",s.db);let S=n.securityLevel,o;if(S==="sandbox")o=g("#i"+e);let u=(S==="sandbox"?g(o.nodes()[0].contentDocument.body):g("body")).select("#"+e);u.append("g");let k=s.db.getTasks(),_=s.db.getCommonDb().getDiagramTitle();i.debug("task",k),z.initGraphics(u,e);let m=s.db.getSections();i.debug("sections",m);let I=0,E=0,W=0,G=0,D=50+b,q=50;G=50;let B=0,O=!0;m.forEach(function(C){let T={number:B,descr:C,section:B,width:150,padding:20,maxHeight:I},M=z.getVirtualNodeHeight(u,T,n);i.debug("sectionHeight before draw",M),I=Math.max(I,M+20)});let L=0,F=0;i.debug("tasks.length",k.length);for(let[C,T]of k.entries()){let M={number:C,descr:T,section:T.section,width:150,padding:20,maxHeight:E},H=z.getVirtualNodeHeight(u,M,n);i.debug("taskHeight before draw",H),E=Math.max(E,H+20),L=Math.max(L,T.events.length);let P=0;for(let V of T.events){let R={descr:V,section:T.section,number:T.section,width:150,padding:20,maxHeight:50};P+=z.getVirtualNodeHeight(u,R,n)}if(T.events.length>0)P+=(T.events.length-1)*10;F=Math.max(F,P)}if(i.debug("maxSectionHeight before draw",I),i.debug("maxTaskHeight before draw",E),m&&m.length>0)m.forEach((C)=>{let T=k.filter((V)=>V.section===C),M={number:B,descr:C,section:B,width:200*Math.max(T.length,1)-50,padding:20,maxHeight:I};i.debug("sectionNode",M);let H=u.append("g"),P=z.drawNode(H,M,B,n,e);if(i.debug("sectionNode output",P),H.attr("transform",`translate(${D}, ${G})`),q+=I+50,T.length>0)kt(u,T,B,D,q,E,n,L,F,I,!1,e);D+=200*Math.max(T.length,1),q=G,B++});else O=!1,kt(u,k,B,D,q,E,n,L,F,I,!0,e);let U=u.node().getBBox();if(i.debug("bounds",U),_)u.append("text").text(_).attr("x",p==="neo"?U.x*2+b:U.width/2-b).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(W=O?I+E+150:E+100,u.append("g").attr("class","lineWrapper").append("line").attr("x1",b).attr("y1",W).attr("x2",U.width+3*b).attr("y2",W).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),p==="neo"&&v&&c!=="neutral"){let C=u.select("defs"),M=(C.empty()?u.append("defs"):C).append("linearGradient").attr("id",u.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");M.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),M.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}mn(void 0,u,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),kt=t(function(r,e,a,s,n,p,c,l,v,x,w,b){for(let S of e){let o={descr:S.task,section:a,number:a,width:150,padding:20,maxHeight:p};i.debug("taskNode",o);let y=r.append("g").attr("class","taskWrapper"),k=z.drawNode(y,o,a,c,b).height;if(i.debug("taskHeight after draw",k),y.attr("transform",`translate(${s}, ${n})`),p=Math.max(p,k),S.events){let _=r.append("g").attr("class","lineWrapper"),m=p;n+=100,m=m+re(r,S.events,a,s,n,c,b),n-=100,_.append("line").attr("x1",s+95).attr("y1",n+p).attr("x2",s+95).attr("y2",n+p+100+v+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${b}-arrowhead)`).attr("stroke-dasharray","5,5")}if(s=s+200,w&&!c.timeline?.disableMulticolor)a++}n=n-10},"drawTasks"),re=t(function(r,e,a,s,n,p,c){let l=0,v=n;n=n+100;for(let x of e){let w={descr:x,section:a,number:a,width:150,padding:20,maxHeight:50};i.debug("eventNode",w);let b=r.append("g").attr("class","eventWrapper"),o=z.drawNode(b,w,a,p,c,!0).height;l=l+o,b.attr("transform",`translate(${s}, ${n})`),n=n+10+o}return n=v,l},"drawEvents"),ne={setConf:t(()=>{},"setConf"),draw:ee},at=200,Z=5,ie=at+Z*2,ft=at+100,se=ft+Z*2,Bt=10,ae=0,xt=20,Vt=20,bt=30,Ft=50,oe=t(function(r,e,a,s){let n=d(),p=n.timeline?.leftMargin??50;i.debug("timeline",s.db);let c=J(e);c.append("g");let l=s.db.getTasks(),v=s.db.getCommonDb().getDiagramTitle();i.debug("task",l),z.initGraphics(c);let x=s.db.getSections();i.debug("sections",x);let w=0,b=0,S=50+p,o=50,y=o,u=S,k=ie+Vt,_=se+Ft,m=u+k,I=0,E=x&&x.length>0,W=E?m:S+k,G=Math.max(50,k+_-Z*2);x.forEach(function(C){let T={number:I,descr:C,section:I,width:G,padding:Z,maxHeight:w},M=z.getVirtualNodeHeight(c,T,n);i.debug("sectionHeight before draw",M),w=Math.max(w,M)});let D=0;i.debug("tasks.length",l.length);for(let[C,T]of l.entries()){let M={number:C,descr:T,section:T.section,width:at,padding:Z,maxHeight:b},H=z.getVirtualNodeHeight(c,M,n);i.debug("taskHeight before draw",H),b=Math.max(b,H);let P=0;for(let V of T.events){let R={descr:V,section:T.section,number:T.section,width:ft,padding:Z,maxHeight:50};P+=z.getVirtualNodeHeight(c,R,n)}if(T.events.length>0)P+=(T.events.length-1)*Bt;D=Math.max(D,P)+ae}i.debug("maxSectionHeight before draw",w),i.debug("maxTaskHeight before draw",b);let B=Math.max(b,D)+bt;if(E)x.forEach((C)=>{let T=l.filter((j)=>j.section===C),M={number:I,descr:C,section:I,width:G,padding:Z,maxHeight:w};i.debug("sectionNode",M);let H=c.append("g"),P=z.drawNode(H,M,I,n);i.debug("sectionNode output",P);let V=W-k;H.attr("transform",`translate(${V}, ${o})`);let R=o+P.height+xt;if(T.length>0)vt(c,T,I,W,R,b,n,B,!1);let ot=T.length,et=P.height+xt+B*Math.max(ot,1)-(ot>0?bt*2:0);o+=et,I++});else vt(c,l,I,W,o,b,n,B,!0);let O=c.node()?.getBBox();if(!O)throw Error("bbox not found");if(i.debug("bounds",O),v){if(c.append("text").text(v).attr("x",O.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=c.node()?.getBBox(),!O)throw Error("bbox not found");i.debug("bounds after title",O)}let[L]=Mt(n.fontSize),F=(L??16)*2,U=(L??16)*0.5+20,Q=c.append("g").attr("class","lineWrapper");Q.append("line").attr("x1",W).attr("y1",y-F).attr("x2",W).attr("y2",O.y+O.height+U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Q.lower(),mn(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),vt=t(function(r,e,a,s,n,p,c,l,v){for(let x of e){let w={descr:x.task,section:a,number:a,width:at,padding:Z,maxHeight:p};i.debug("taskNode",w);let b=r.append("g").attr("class","taskWrapper"),S=z.drawNode(b,w,a,c),o=S.height;i.debug("taskHeight after draw",o);let y=s-Vt-S.width;if(b.attr("transform",`translate(${y}, ${n})`),p=Math.max(p,o),x.events&&x.events.length>0){let u=n,k=s+Ft;le(r,x.events,a,s,k,u,c)}if(n=n+l,v&&!c.timeline?.disableMulticolor)a++}},"drawTasks"),le=t(function(r,e,a,s,n,p,c){let l=p;for(let v of e){let x={descr:v,section:a,number:a,width:ft,padding:Z,maxHeight:0};i.debug("eventNode",x);let w=r.append("g").attr("class","eventWrapper"),S=z.drawNode(w,x,a,c).height;w.attr("transform",`translate(${n}, ${l})`);let o=r.append("g").attr("class","lineWrapper"),y=l+S/2;o.append("line").attr("x1",s).attr("y1",y).attr("x2",n).attr("y2",y).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+S+Bt}return l-p},"drawEvents"),ce={setConf:t(()=>{},"setConf"),draw:oe},he=t((r)=>{let{theme:e}=A(),a=e?.includes("dark"),s=Ne(e,r.borderColorArray),n=r.svgId?.replace(/^#/,"")??"",p=n?`url(#${n}-drop-shadow)`:r.dropShadow??"none",c="";for(let l=0;l<Ot(r.THEME_COLOR_LIMIT);l++){let v=`${17-3*l}`,x=s?r.borderColorArray[l%r.borderColorArray.length]:void 0,w=x??r.mainBkg,b=x??r.nodeBorder;c+=`
7
- .section-${l-1} rect,
8
- .section-${l-1} path,
9
- .section-${l-1} circle {
10
- fill: ${a&&s?r.mainBkg:w};
11
- stroke: ${b};
12
- stroke-width: ${r.strokeWidth};
13
- filter: ${p};
14
- }
15
-
16
- .section-${l-1} text {
17
- fill: ${r.nodeBorder};
18
- font-weight: ${r.fontWeight}
19
- }
20
-
21
- .node-icon-${l-1} {
22
- font-size: 40px;
23
- color: ${r["cScaleLabel"+l]};
24
- }
25
-
26
- .section-edge-${l-1} {
27
- stroke: ${r["cScale"+l]};
28
- }
29
-
30
- .edge-depth-${l-1} {
31
- stroke-width: ${v};
32
- }
33
-
34
- .section-${l-1} line {
35
- stroke: ${r["cScaleInv"+l]};
36
- stroke-width: 3;
37
- }
38
-
39
- .lineWrapper line {
40
- stroke: ${r.nodeBorder};
41
- stroke-width:${r.strokeWidth}
42
- }
43
-
44
- .disabled,
45
- .disabled circle,
46
- .disabled text {
47
- fill: ${r.tertiaryColor??"lightgray"};
48
- }
49
-
50
- .disabled text {
51
- fill: ${r.clusterBorder??"#efefef"};
52
- }
53
- `}return c},"genReduxSections"),ue=t((r)=>{let e="",a=Ot(r.THEME_COLOR_LIMIT);for(let s=0;s<a;s++)if(r["lineColor"+s]=r["lineColor"+s]??r["cScaleInv"+s],de(r["lineColor"+s]))r["lineColor"+s]=f(r["lineColor"+s],20);else r["lineColor"+s]=h(r["lineColor"+s],20);for(let s=0;s<a;s++){let n=""+(17-3*s);e+=`
54
- .section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} path {
55
- fill: ${r["cScale"+s]};
56
- }
57
- .section-${s-1} text {
58
- fill: ${r["cScaleLabel"+s]};
59
- }
60
- .node-icon-${s-1} {
61
- font-size: 40px;
62
- color: ${r["cScaleLabel"+s]};
63
- }
64
- .section-edge-${s-1}{
65
- stroke: ${r["cScale"+s]};
66
- }
67
- .edge-depth-${s-1}{
68
- stroke-width: ${n};
69
- }
70
- .section-${s-1} line {
71
- stroke: ${r["cScaleInv"+s]} ;
72
- stroke-width: 3;
73
- }
74
-
75
- .lineWrapper line{
76
- stroke: ${r["cScaleLabel"+s]} ;
77
- }
78
-
79
- .disabled, .disabled circle, .disabled text {
80
- fill: ${r.tertiaryColor??"lightgray"};
81
- }
82
- .disabled text {
83
- fill: ${r.clusterBorder??"#efefef"};
84
- }
85
- `}return e},"genSections"),pe=t((r)=>{let{theme:e}=A(),a=e?.includes("redux"),s=e==="neutral",n=r.svgId?.replace(/^#/,"")??"",p="";if(r.useGradient&&n&&r.THEME_COLOR_LIMIT&&!s){let c=Ot(r.THEME_COLOR_LIMIT);for(let l=0;l<c;l++)p+=`
86
- .section-${l-1}[data-look="neo"] rect,
87
- .section-${l-1}[data-look="neo"] path,
88
- .section-${l-1}[data-look="neo"] circle {
89
- fill: ${r.mainBkg};
90
- stroke: url(#${n}-gradient);
91
- stroke-width: 2;
92
- }
93
- .section-${l-1}[data-look="neo"] line {
94
- stroke: url(#${n}-gradient);
95
- stroke-width: 2;
96
- }`}return`
97
- .edge {
98
- stroke-width: 3;
99
- }
100
- ${a?he(r):ue(r)}
101
- ${p}
102
- .section-root rect, .section-root path, .section-root circle {
103
- fill: ${r.git0};
104
- }
105
- .section-root text {
106
- fill: ${r.gitBranchLabel0};
107
- }
108
- .icon-container {
109
- height:100%;
110
- display: flex;
111
- justify-content: center;
112
- align-items: center;
113
- }
114
- .edge {
115
- fill: none;
116
- }
117
- .eventWrapper {
118
- filter: brightness(120%);
119
- }
120
- `},"getStyles"),ge=pe,fe={setConf:t(()=>{},"setConf"),draw:t((r,e,a,s)=>{if((s?.db?.getDirection?.()??"LR")==="TD")return ce.draw(r,e,a,s);return ne.draw(r,e,a,s)},"draw")},Ee={db:_t,renderer:fe,parser:zt,styles:ge};export{Ee as diagram};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{t,i}from"./chunk-sawc81kc.js";import{he,Pn,In}from"./chunk-bm4fvq6q.js";import{ie}from"./chunk-tykcqm6v.js";import{Oa,wn}from"./chunk-4ab1dv3g.js";var s=Oa().RailroadPeg.parser.LangiumParser,o=t((e)=>{let r=e.alternatives.map(l);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformOrderedChoice"),l=t((e)=>{let r=e.elements.map(m);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),m=t((e)=>{let r=p(e.suffix);if(!e.operator)return r;return{type:"special",text:e.operator==="&"?`&${n(r)}`:`!${n(r)}`}},"transformPrefix"),n=t((e)=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),p=t((e)=>{let r=u(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),u=t((e)=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return o(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),c=t((e)=>({name:e.name,definition:o(e.definition)}),"transformRule"),f=t((e)=>{if(ie(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(c(r)))},"populateDb"),d={parse:t((e)=>{he.clear(),i.debug("[PEG Parser] Starting Langium parse");let r=s.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new wn(r);let a=r.value;i.debug("[PEG Parser] Parsed rules:",a.rules.length),f(a),i.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:he}},w={parser:d,db:he,renderer:In,styles:Pn};export{w as diagram};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{t,i,g}from"./chunk-sawc81kc.js";import{gn,ci}from"./chunk-xsqd38a2.js";import{et,tt}from"./chunk-6f1q0tjv.js";var k=tt(function(F,Y){(function(f,r){if(typeof F==="object"&&typeof Y==="object")Y.exports=r(ci());else if(typeof define==="function"&&define.amd)define(["cose-base"],r);else if(typeof F==="object")F.cytoscapeCoseBilkent=r(ci());else f.cytoscapeCoseBilkent=r(f.coseBase)})(F,function(u){return function(f){var r={};function n(o){if(r[o])return r[o].exports;var d=r[o]={i:o,l:!1,exports:{}};return f[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=f,n.c=r,n.i=function(o){return o},n.d=function(o,d,l){if(!n.o(o,d))Object.defineProperty(o,d,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(d,"a",d),d},n.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},n.p="",n(n.s=1)}([function(f,r){f.exports=u},function(f,r,n){var o=n(0).layoutBase.LayoutConstants,d=n(0).layoutBase.FDLayoutConstants,l=n(0).CoSEConstants,L=n(0).CoSELayout,b=n(0).CoSENode,H=n(0).layoutBase.PointD,v=n(0).layoutBase.DimensionD,_={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:0.45,nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.5};function D(p,e){var y={};for(var s in p)y[s]=p[s];for(var s in e)y[s]=e[s];return y}function I(p){this.options=D(_,p),U(this.options)}var U=function(e){if(e.nodeRepulsion!=null)l.DEFAULT_REPULSION_STRENGTH=d.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion;if(e.idealEdgeLength!=null)l.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=e.idealEdgeLength;if(e.edgeElasticity!=null)l.DEFAULT_SPRING_STRENGTH=d.DEFAULT_SPRING_STRENGTH=e.edgeElasticity;if(e.nestingFactor!=null)l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor;if(e.gravity!=null)l.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=e.gravity;if(e.numIter!=null)l.MAX_ITERATIONS=d.MAX_ITERATIONS=e.numIter;if(e.gravityRange!=null)l.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange;if(e.gravityCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound;if(e.gravityRangeCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound;if(e.initialEnergyOnIncremental!=null)l.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental;if(e.quality=="draft")o.QUALITY=0;else if(e.quality=="proof")o.QUALITY=2;else o.QUALITY=1;l.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!e.randomize,l.ANIMATE=d.ANIMATE=o.ANIMATE=e.animate,l.TILE=e.tile,l.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==="function"?e.tilingPaddingVertical.call():e.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==="function"?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};I.prototype.run=function(){var p,e,y=this.options,s=this.idToLNode={},c=this.layout=new L,a=this;a.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var E=c.newGraphManager();this.gm=E;var T=this.options.eles.nodes(),m=this.options.eles.edges();this.root=E.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(T),c);for(var h=0;h<m.length;h++){var P=m[h],x=this.idToLNode[P.data("source")],O=this.idToLNode[P.data("target")];if(x!==O&&x.getEdgesBetween(O).length==0){var it=E.add(c.newEdge(),x,O);it.id=P.id()}}var V=function(R,B){if(typeof R==="number")R=B;var C=R.data("id"),G=a.idToLNode[C];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},at=function X(){var R=function(){if(y.fit)y.cy.fit(y.eles,y.padding);if(!p)p=!0,a.cy.one("layoutready",y.ready),a.cy.trigger({type:"layoutready",layout:a})},B=a.options.refresh,C;for(var G=0;G<B&&!C;G++)C=a.stopped||a.layout.tick();if(C){if(c.checkLayoutSuccess()&&!c.isSubLayout)c.doPostLayout();if(c.tilingPostLayout)c.tilingPostLayout();if(c.isLayoutFinished=!0,a.options.eles.nodes().positions(V),R(),a.cy.one("layoutstop",a.options.stop),a.cy.trigger({type:"layoutstop",layout:a}),e)cancelAnimationFrame(e);p=!1;return}var M=a.layout.getPositionsData();y.eles.nodes().positions(function(A,rt){if(typeof A==="number")A=rt;if(!A.isParent()){var j=A.id(),N=M[j],w=A;while(N==null)if(N=M[w.data("parent")]||M["DummyCompound_"+w.data("parent")],M[j]=N,w=w.parent()[0],w==null)break;if(N!=null)return{x:N.x,y:N.y};else return{x:A.position("x"),y:A.position("y")}}}),R(),e=requestAnimationFrame(X)};if(c.addListener("layoutstarted",function(){if(a.options.animate==="during")e=requestAnimationFrame(at)}),c.runLayout(),this.options.animate!=="during")a.options.eles.nodes().not(":parent").layoutPositions(a,a.options,V),p=!1;return this},I.prototype.getTopMostNodes=function(p){var e={};for(var y=0;y<p.length;y++)e[p[y].id()]=!0;var s=p.filter(function(c,a){if(typeof c==="number")c=a;var E=c.parent()[0];while(E!=null){if(e[E.id()])return!1;E=E.parent()[0]}return!0});return s},I.prototype.processChildrenList=function(p,e,y){var s=e.length;for(var c=0;c<s;c++){var a=e[c],E=a.children(),T,m=a.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(a.outerWidth()!=null&&a.outerHeight()!=null)T=p.add(new b(y.graphManager,new H(a.position("x")-m.w/2,a.position("y")-m.h/2),new v(parseFloat(m.w),parseFloat(m.h))));else T=p.add(new b(this.graphManager));if(T.id=a.data("id"),T.paddingLeft=parseInt(a.css("padding")),T.paddingTop=parseInt(a.css("padding")),T.paddingRight=parseInt(a.css("padding")),T.paddingBottom=parseInt(a.css("padding")),this.options.nodeDimensionsIncludeLabels){if(a.isParent()){var h=a.boundingBox({includeLabels:!0,includeNodes:!1}).w,P=a.boundingBox({includeLabels:!0,includeNodes:!1}).h,x=a.css("text-halign");T.labelWidth=h,T.labelHeight=P,T.labelPos=x}}if(this.idToLNode[a.data("id")]=T,isNaN(T.rect.x))T.rect.x=0;if(isNaN(T.rect.y))T.rect.y=0;if(E!=null&&E.length>0){var O=y.getGraphManager().add(y.newGraph(),T);this.processChildrenList(O,E,y)}}},I.prototype.stop=function(){return this.stopped=!0,this};var S=function(e){e("layout","cose-bilkent",I)};if(typeof cytoscape<"u")S(cytoscape);f.exports=S}])})});var z=et(k(),1);gn.use(z.default);function q(u,f){u.forEach((r)=>{let n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))n[o]=r[o]}),f.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}t(q,"addNodes");function W(u,f){u.forEach((r)=>{let n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach((o)=>{if(!["id","start","end"].includes(o))n[o]=r[o]}),f.add({group:"edges",data:n})})}t(W,"addEdges");function Q(u){return new Promise((f)=>{let r=g("body").append("div").attr("id","cy").attr("style","display:none"),n=gn({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),q(u.nodes,n),W(u.edges,n),n.nodes().forEach(function(d){d.layoutDimensions=()=>{let l=d.data();return{w:l.width,h:l.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(o).run(),n.ready((d)=>{i.info("Cytoscape ready",d),f(n)})})}t(Q,"createCytoscapeInstance");function Z(u){return u.nodes().map((f)=>{let r=f.data(),n=f.position(),o={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach((d)=>{if(d!=="id")o[d]=r[d]}),o})}t(Z,"extractPositionedNodes");function J(u){return u.edges().map((f)=>{let r=f.data(),n=f._private.rscratch,o={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach((d)=>{if(!["id","source","target"].includes(d))o[d]=r[d]}),o})}t(J,"extractPositionedEdges");async function K(u,f){i.debug("Starting cose-bilkent layout algorithm");try{nt(u);let r=await Q(u),n=Z(r),o=J(r);return i.debug(`Layout completed: ${n.length} nodes, ${o.length} edges`),{nodes:n,edges:o}}catch(r){throw i.error("Error in cose-bilkent layout algorithm:",r),r}}t(K,"executeCoseBilkentLayout");function nt(u){if(!u)throw Error("Layout data is required");if(!u.config)throw Error("Configuration is required in layout data");if(!u.rootNode)throw Error("Root node is required");if(!u.nodes||!Array.isArray(u.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(u.edges))throw Error("Edges array is required in layout data");return!0}t(nt,"validateLayoutData");var st=t(async(u,f,{insertCluster:r,insertEdge:n,insertEdgeLabel:o,insertMarkers:d,insertNode:l,log:L,positionEdgeLabel:b},{algorithm:H})=>{let v={},_={},D=f.select("g");d(D,u.markers,u.type,u.diagramId);let I=D.insert("g").attr("class","subgraphs"),U=D.insert("g").attr("class","edgePaths"),S=D.insert("g").attr("class","edgeLabels"),p=D.insert("g").attr("class","nodes");L.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(u.nodes.map(async(s)=>{if(s.isGroup){let c={...s};_[s.id]=c,v[s.id]=c,await r(I,s)}else{let c={...s};v[s.id]=c;let a=await l(p,s,{config:u.config,dir:u.direction||"TB"}),E=a.node().getBBox();c.width=E.width,c.height=E.height,c.domId=a,L.debug(`Node ${s.id} dimensions: ${E.width}x${E.height}`)}})),L.debug("Running cose-bilkent layout algorithm");let e={...u,nodes:u.nodes.map((s)=>{let c=v[s.id];return{...s,width:c.width,height:c.height}})},y=await K(e,u.config);L.debug("Positioning nodes based on layout results"),y.nodes.forEach((s)=>{let c=v[s.id];if(c?.domId)c.domId.attr("transform",`translate(${s.x}, ${s.y})`),c.x=s.x,c.y=s.y,L.debug(`Positioned node ${c.id} at center (${s.x}, ${s.y})`)}),y.edges.forEach((s)=>{let c=u.edges.find((a)=>a.id===s.id);if(c)c.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}]}),L.debug("Inserting and positioning edges"),await Promise.all(u.edges.map(async(s)=>{let c=await o(S,s),a=v[s.start??""],E=v[s.end??""];if(a&&E){let T=y.edges.find((m)=>m.id===s.id);if(T){L.debug("APA01 positionedEdge",T);let m={...s},h=n(U,m,_,u.type,a,E,u.diagramId);b(m,h)}else{let m={...s,points:[{x:a.x||0,y:a.y||0},{x:E.x||0,y:E.y||0}]},h=n(U,m,_,u.type,a,E,u.diagramId);b(m,h)}}})),L.debug("Cose-bilkent rendering completed")},"render"),lt=st;export{lt as render};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{ee,a,e,n,b,ge,ce}from"./chunk-6f1q0tjv.js";import{Zn,ra}from"./chunk-hta68vm8.js";import"./chunk-77dnqrb6.js";function B({connection:p}){let{Button:r,ModelIcon:u,ModelSelector:f,SettingGroup:d,SettingRow:h,Switch:v,cn:x}=b(),c=ee(),[y,S]=a(""),i=ra({connection:p,endpoint:"/api/plugins/agents/settings",loadError:"读取理事会设置失败",toBody:(t)=>({schemaVersion:1,models:t.models,research:t.research}),differs:(t,s)=>JSON.stringify(t.models)!==JSON.stringify(s.models)||t.research!==s.research}),N=(t)=>{if(!t)return;i.edit((s)=>{if(s.models.includes(t)||s.models.length>=8)return s;return{...s,models:[...s.models,t]}}),S("")},k=(t)=>{i.edit((s)=>({...s,models:s.models.filter((o)=>o!==t)}))},l=i.settings?.models??[];return n("form",{id:c,onSubmit:i.save,className:"min-w-0 space-y-5",children:[e(d,{title:"参会模型",description:`已选 ${l.length}/8,至少 2 个模型参与群聊交叉审查`,children:n("ul",{className:"divide-y divide-line/60",children:[l.map((t)=>{let s=i.modelList.models.find((C)=>C.id===t),o=t.indexOf("/"),m=o<0?"":t.slice(0,o),g=s?.name??(o<0?t:t.slice(o+1));return n("li",{title:t,className:"group flex min-h-11 items-center gap-3",children:[e("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-raised",children:e(u,{modelID:t,className:"size-4",size:16})}),e("span",{className:"min-w-0 flex-1 truncate text-ui text-ink",children:g}),m&&e("span",{className:"max-w-32 shrink-0 truncate text-xs text-faint",children:m}),e(r,{type:"button",size:"icon-xs",variant:"ghost",disabled:i.loading||i.saving,"aria-label":`移除 ${g}`,onClick:()=>k(t),className:"text-faint opacity-40 group-hover:opacity-100 hover:text-danger focus-visible:opacity-100",children:e(ce,{className:"size-3.5"})})]},t)}),l.length<8&&n("li",{className:"flex items-center gap-2",children:[e("div",{className:"min-w-0 flex-1",children:e(f,{variant:"add",models:{models:i.modelList.models.filter((t)=>!l.includes(t.id))},value:y,onChange:N})}),e(r,{type:"button",size:"icon-xs",variant:"ghost",disabled:i.loading||i.refreshing||i.saving,"aria-label":"刷新模型列表",title:"刷新模型列表",onClick:()=>void i.load(!0),className:"text-faint hover:text-ink",children:e(ge,{className:x("size-3.5",i.refreshing&&"animate-spin")})})]})]})}),e(d,{title:"流程",children:e(h,{title:"调研阶段",description:"表态前各自先查证,关闭后直接发表意见",children:e(v,{label:"调研阶段",checked:i.settings?.research??!0,disabled:i.loading||i.saving,onCheckedChange:(t)=>{i.edit((s)=>({...s,research:t}))}})})}),e(Zn,{formID:c,notice:i.notice,dirty:i.dirty,busy:i.loading||i.saving,saving:i.saving,onReset:i.reset})]})}export{B as CouncilSettingsSection};
Binary file
Binary file
@@ -1,40 +0,0 @@
1
- import{t,C,mn,N,M,P,R,I,O,D,d,jr,g,we,pa,Mc,Lo,No,da}from"./chunk-sawc81kc.js";import{aa,Rr}from"./chunk-en5n60qw.js";import{Vt}from"./chunk-58xhn7ry.js";function nt(n,l){let p=0;if(l===void 0){for(let m of n)if(m=+m)p+=m}else{let m=-1;for(let v of n)if(v=+l(v,++m,n))p+=v}return p}function ht(n){var l=n.length/6|0,p=Array(l),m=0;while(m<l)p[m]="#"+n.slice(m*6,++m*6);return p}var dt=ht("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Lt(n){return n.source}function Et(n){return n.target}function Pt(n){let l=Lt,p=Et,m=Lo,v=No,S=null,y=null,A=pa(i);function i(){let o,u=Mc.call(arguments),b=l.apply(this,u),x=p.apply(this,u);if(S==null)y=n(o=A());if(y.lineStart(),u[0]=b,y.point(+m.apply(this,u),+v.apply(this,u)),u[0]=x,y.point(+m.apply(this,u),+v.apply(this,u)),y.lineEnd(),o)return y=null,o+""||null}return i.source=function(o){return arguments.length?(l=o,i):l},i.target=function(o){return arguments.length?(p=o,i):p},i.x=function(o){return arguments.length?(m=typeof o==="function"?o:we(+o),i):m},i.y=function(o){return arguments.length?(v=typeof o==="function"?o:we(+o),i):v},i.context=function(o){return arguments.length?(o==null?S=y=null:y=n(S=o),i):S},i}function kt(){return Pt(da)}function At(n){return n.target.depth}function pt(n){return n.depth}function yt(n,l){return l-1-n.height}function rt(n,l){return n.sourceLinks.length?n.depth:l-1}function mt(n){return n.targetLinks.length?n.depth:n.sourceLinks.length?Rr(n.sourceLinks,At)-1:0}function tt(n){return function(){return n}}function bt(n,l){return st(n.source,l.source)||n.index-l.index}function vt(n,l){return st(n.target,l.target)||n.index-l.index}function st(n,l){return n.y0-l.y0}function gt(n){return n.value}function Tt(n){return n.index}function Ct(n){return n.nodes}function Bt(n){return n.links}function _t(n,l){let p=n.get(l);if(!p)throw Error("missing: "+l);return p}function St({nodes:n}){for(let l of n){let p=l.y0,m=p;for(let v of l.sourceLinks)v.y0=p+v.width/2,p+=v.width;for(let v of l.targetLinks)v.y1=m+v.width/2,m+=v.width}}function ot(){let n=0,l=0,p=1,m=1,v=24,S=8,y,A=Tt,i=rt,o,u,b=Ct,x=Bt,f=6;function _(){let e={nodes:b.apply(null,arguments),links:x.apply(null,arguments)};return T(e),B(e),W(e),U(e),z(e),St(e),e}_.update=function(e){return St(e),e},_.nodeId=function(e){return arguments.length?(A=typeof e==="function"?e:tt(e),_):A},_.nodeAlign=function(e){return arguments.length?(i=typeof e==="function"?e:tt(e),_):i},_.nodeSort=function(e){return arguments.length?(o=e,_):o},_.nodeWidth=function(e){return arguments.length?(v=+e,_):v},_.nodePadding=function(e){return arguments.length?(S=y=+e,_):S},_.nodes=function(e){return arguments.length?(b=typeof e==="function"?e:tt(e),_):b},_.links=function(e){return arguments.length?(x=typeof e==="function"?e:tt(e),_):x},_.linkSort=function(e){return arguments.length?(u=e,_):u},_.size=function(e){return arguments.length?(n=l=0,p=+e[0],m=+e[1],_):[p-n,m-l]},_.extent=function(e){return arguments.length?(n=+e[0][0],p=+e[1][0],l=+e[0][1],m=+e[1][1],_):[[n,l],[p,m]]},_.iterations=function(e){return arguments.length?(f=+e,_):f};function T({nodes:e,links:a}){for(let[r,s]of e.entries())s.index=r,s.sourceLinks=[],s.targetLinks=[];let c=new Map(e.map((r,s)=>[A(r,s,e),r]));for(let[r,s]of a.entries()){s.index=r;let{source:h,target:k}=s;if(typeof h!=="object")h=s.source=_t(c,h);if(typeof k!=="object")k=s.target=_t(c,k);h.sourceLinks.push(s),k.targetLinks.push(s)}if(u!=null)for(let{sourceLinks:r,targetLinks:s}of e)r.sort(u),s.sort(u)}function B({nodes:e}){for(let a of e)a.value=a.fixedValue===void 0?Math.max(nt(a.sourceLinks,gt),nt(a.targetLinks,gt)):a.fixedValue}function W({nodes:e}){let a=e.length,c=new Set(e),r=new Set,s=0;while(c.size){for(let h of c){h.depth=s;for(let{target:k}of h.sourceLinks)r.add(k)}if(++s>a)throw Error("circular link");c=r,r=new Set}}function U({nodes:e}){let a=e.length,c=new Set(e),r=new Set,s=0;while(c.size){for(let h of c){h.height=s;for(let{source:k}of h.targetLinks)r.add(k)}if(++s>a)throw Error("circular link");c=r,r=new Set}}function Q({nodes:e}){let a=aa(e,(s)=>s.depth)+1,c=(p-n-v)/(a-1),r=Array(a);for(let s of e){let h=Math.max(0,Math.min(a-1,Math.floor(i.call(null,s,a))));if(s.layer=h,s.x0=n+h*c,s.x1=s.x0+v,r[h])r[h].push(s);else r[h]=[s]}if(o)for(let s of r)s.sort(o);return r}function q(e){let a=Rr(e,(c)=>(m-l-(c.length-1)*y)/nt(c,gt));for(let c of e){let r=l;for(let s of c){s.y0=r,s.y1=r+s.value*a,r=s.y1+y;for(let h of s.sourceLinks)h.width=h.value*a}r=(m-r+y)/(c.length+1);for(let s=0;s<c.length;++s){let h=c[s];h.y0+=r*(s+1),h.y1+=r*(s+1)}K(c)}}function z(e){let a=Q(e);y=Math.min(S,(m-l)/(aa(a,(c)=>c.length)-1)),q(a);for(let c=0;c<f;++c){let r=Math.pow(0.99,c),s=Math.max(1-r,(c+1)/f);Y(a,r,s),w(a,r,s)}}function w(e,a,c){for(let r=1,s=e.length;r<s;++r){let h=e[r];for(let k of h){let J=0,G=0;for(let{source:E,value:ft}of k.targetLinks){let et=ft*(k.layer-E.layer);J+=L(E,k)*et,G+=et}if(!(G>0))continue;let F=(J/G-k.y0)*a;k.y0+=F,k.y1+=F,Z(k)}if(o===void 0)h.sort(st);H(h,c)}}function Y(e,a,c){for(let r=e.length,s=r-2;s>=0;--s){let h=e[s];for(let k of h){let J=0,G=0;for(let{target:E,value:ft}of k.sourceLinks){let et=ft*(E.layer-k.layer);J+=V(k,E)*et,G+=et}if(!(G>0))continue;let F=(J/G-k.y0)*a;k.y0+=F,k.y1+=F,Z(k)}if(o===void 0)h.sort(st);H(h,c)}}function H(e,a){let c=e.length>>1,r=e[c];j(e,r.y0-y,c-1,a),X(e,r.y1+y,c+1,a),j(e,m,e.length-1,a),X(e,l,0,a)}function X(e,a,c,r){for(;c<e.length;++c){let s=e[c],h=(a-s.y0)*r;if(h>0.000001)s.y0+=h,s.y1+=h;a=s.y1+y}}function j(e,a,c,r){for(;c>=0;--c){let s=e[c],h=(s.y1-a)*r;if(h>0.000001)s.y0-=h,s.y1-=h;a=s.y0-y}}function Z({sourceLinks:e,targetLinks:a}){if(u===void 0){for(let{source:{sourceLinks:c}}of a)c.sort(vt);for(let{target:{targetLinks:c}}of e)c.sort(bt)}}function K(e){if(u===void 0)for(let{sourceLinks:a,targetLinks:c}of e)a.sort(vt),c.sort(bt)}function L(e,a){let c=e.y0-(e.sourceLinks.length-1)*y/2;for(let{target:r,width:s}of e.sourceLinks){if(r===a)break;c+=s+y}for(let{source:r,width:s}of a.targetLinks){if(r===e)break;c-=s}return c}function V(e,a){let c=a.y0-(a.targetLinks.length-1)*y/2;for(let{source:r,width:s}of a.targetLinks){if(r===e)break;c+=s+y}for(let{target:r,width:s}of e.sourceLinks){if(r===a)break;c-=s}return c}return _}function Ot(n){return[n.source.x1,n.y0]}function Rt(n){return[n.target.x0,n.y1]}function it(){return kt().source(Ot).target(Rt)}var xt=function(){var n=t(function(A,i,o,u){for(o=o||{},u=A.length;u--;o[A[u]]=i);return o},"o"),l=[1,9],p=[1,10],m=[1,5,10,12],v={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t(function(i,o,u,b,x,f,_){var T=f.length-1;switch(x){case 7:let B=b.findOrCreateNode(f[T-4].trim().replaceAll('""','"')),W=b.findOrCreateNode(f[T-2].trim().replaceAll('""','"')),U=parseFloat(f[T].trim());b.addLink(B,W,U);break;case 8:case 9:case 11:this.$=f[T];break;case 10:this.$=f[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:l,20:p},{1:[2,6],7:11,10:[1,12]},n(p,[2,4],{9:13,5:[1,14]}),{12:[1,15]},n(m,[2,8]),n(m,[2,9]),{19:[1,16]},n(m,[2,11]),{1:[2,1]},{1:[2,5]},n(p,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:l,20:p},{15:18,16:7,17:8,18:l,20:p},{18:[1,19]},n(p,[2,3]),{12:[1,20]},n(m,[2,10]),{15:21,16:7,17:8,18:l,20:p},n([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t(function(i,o){if(o.recoverable)this.trace(i);else{var u=Error(i);throw u.hash=o,u}},"parseError"),parse:t(function(i){var o=this,u=[0],b=[],x=[null],f=[],_=this.table,T="",B=0,W=0,U=0,Q=2,q=1,z=f.slice.call(arguments,1),w=Object.create(this.lexer),Y={yy:{}};for(var H in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,H))Y.yy[H]=this.yy[H];if(w.setInput(i,Y.yy),Y.yy.lexer=w,Y.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var X=w.yylloc;f.push(X);var j=w.options&&w.options.ranges;if(typeof Y.yy.parseError==="function")this.parseError=Y.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Z(E){u.length=u.length-2*E,x.length=x.length-E,f.length=f.length-E}t(Z,"popStack");function K(){var E=b.pop()||w.lex()||q;if(typeof E!=="number"){if(E instanceof Array)b=E,E=b.pop();E=o.symbols_[E]||E}return E}t(K,"lex");var L,V,e,a,c,r,s={},h,k,J,G;while(!0){if(e=u[u.length-1],this.defaultActions[e])a=this.defaultActions[e];else{if(L===null||typeof L>"u")L=K();a=_[e]&&_[e][L]}if(typeof a>"u"||!a.length||!a[0]){var F="";G=[];for(h in _[e])if(this.terminals_[h]&&h>Q)G.push("'"+this.terminals_[h]+"'");if(w.showPosition)F="Parse error on line "+(B+1)+`:
2
- `+w.showPosition()+`
3
- Expecting `+G.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else F="Parse error on line "+(B+1)+": Unexpected "+(L==q?"end of input":"'"+(this.terminals_[L]||L)+"'");this.parseError(F,{text:w.match,token:this.terminals_[L]||L,line:w.yylineno,loc:X,expected:G})}if(a[0]instanceof Array&&a.length>1)throw Error("Parse Error: multiple actions possible at state: "+e+", token: "+L);switch(a[0]){case 1:if(u.push(L),x.push(w.yytext),f.push(w.yylloc),u.push(a[1]),L=null,!V){if(W=w.yyleng,T=w.yytext,B=w.yylineno,X=w.yylloc,U>0)U--}else L=V,V=null;break;case 2:if(k=this.productions_[a[1]][1],s.$=x[x.length-k],s._$={first_line:f[f.length-(k||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(k||1)].first_column,last_column:f[f.length-1].last_column},j)s._$.range=[f[f.length-(k||1)].range[0],f[f.length-1].range[1]];if(r=this.performAction.apply(s,[T,W,B,Y.yy,a[1],x,f].concat(z)),typeof r<"u")return r;if(k)u=u.slice(0,-1*k*2),x=x.slice(0,-1*k),f=f.slice(0,-1*k);u.push(this.productions_[a[1]][0]),x.push(s.$),f.push(s._$),J=_[u[u.length-2]][u[u.length-1]],u.push(J);break;case 3:return!0}}return!0},"parse")},S=function(){var A={EOF:1,parseError:t(function(o,u){if(this.yy.parser)this.yy.parser.parseError(o,u);else throw Error(o)},"parseError"),setInput:t(function(i,o){if(this.yy=o||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);if(o)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),i},"input"),unput:t(function(i){var o=i.length,u=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var b=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),u.length-1)this.yylineno-=u.length-1;var x=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:u?(u.length===b.length?this.yylloc.first_column:0)+b[b.length-u.length].length-u[0].length:this.yylloc.first_column-o},this.options.ranges)this.yylloc.range=[x[0],x[0]+this.yyleng-o];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(i){this.unput(this.match.slice(i))},"less"),pastInput:t(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var i=this.pastInput(),o=Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
- `+o+"^"},"showPosition"),test_match:t(function(i,o){var u,b,x;if(this.options.backtrack_lexer){if(x={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)x.yylloc.range=this.yylloc.range.slice(0)}if(b=i[0].match(/(?:\r\n?|\n).*/g),b)this.yylineno+=b.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],u=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(u)return u;else if(this._backtrack){for(var f in x)this[f]=x[f];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,o,u,b;if(!this._more)this.yytext="",this.match="";var x=this._currentRules();for(var f=0;f<x.length;f++)if(u=this._input.match(this.rules[x[f]]),u&&(!o||u[0].length>o[0].length)){if(o=u,b=f,this.options.backtrack_lexer)if(i=this.test_match(u,x[f]),i!==!1)return i;else if(this._backtrack){o=!1;continue}else return!1;else if(!this.options.flex)break}if(o){if(i=this.test_match(o,x[b]),i!==!1)return i;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 o=this.next();if(o)return o;else return this.lex()},"lex"),begin:t(function(o){this.conditionStack.push(o)},"begin"),popState:t(function(){var o=this.conditionStack.length-1;if(o>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(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:t(function(o){this.begin(o)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(o,u,b,x){var f=x;switch(b){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return A}();v.lexer=S;function y(){this.yy={}}return t(y,"Parser"),y.prototype=v,v.Parser=y,new y}();xt.parser=xt;var at=xt,ct=[],ut=[],lt=new Map,Nt=t(()=>{ct=[],ut=[],lt=new Map,N()},"clear"),Gt=class{constructor(n,l,p=0){this.source=n,this.target=l,this.value=p}static{t(this,"SankeyLink")}},It=t((n,l,p)=>{ct.push(new Gt(n,l,p))},"addLink"),Mt=class{constructor(n){this.ID=n}static{t(this,"SankeyNode")}},Yt=t((n)=>{n=C.sanitizeText(n,d());let l=lt.get(n);if(l===void 0)l=new Mt(n),lt.set(n,l),ut.push(l);return l},"findOrCreateNode"),Dt=t(()=>ut,"getNodes"),jt=t(()=>ct,"getLinks"),$t=t(()=>({nodes:ut.map((n)=>({id:n.ID})),links:ct.map((n)=>({source:n.source.ID,target:n.target.ID,value:n.value}))}),"getGraph"),zt={nodesMap:lt,getConfig:t(()=>d().sankey,"getConfig"),getNodes:Dt,getLinks:jt,getGraph:$t,addLink:It,findOrCreateNode:Yt,getAccTitle:P,setAccTitle:M,getAccDescription:I,setAccDescription:R,getDiagramTitle:D,setDiagramTitle:O,clear:Nt},wt=class n{static{t(this,"Uid")}static{this.count=0}static next(l){return new n(l+ ++n.count)}constructor(l){this.id=l,this.href=`#${l}`}toString(){return"url("+this.href+")"}},Ft={left:pt,right:yt,center:mt,justify:rt},Wt=t((n)=>{let l=0,p=0;for(let m of n){let v=m.value??0;if(v>l)l=v,p=m.layer??0}return p},"findCentralNodeLayer"),Ut=t(function(n,l,p,m){let{securityLevel:v,sankey:S}=d(),y=jr.sankey,A;if(v==="sandbox")A=g("#i"+l);let i=v==="sandbox"?g(A.nodes()[0].contentDocument.body):g("body"),o=v==="sandbox"?i.select(`[id="${l}"]`):g(`[id="${l}"]`),u=S?.width??y.width,b=S?.height??y.width,x=S?.useMaxWidth??y.useMaxWidth,f=S?.nodeAlignment??y.nodeAlignment,_=S?.prefix??y.prefix,T=S?.suffix??y.suffix,B=S?.showValues??y.showValues,W=S?.nodeWidth??y.nodeWidth??10,U=S?.nodePadding??y.nodePadding??12,Q=S?.labelStyle??y.labelStyle??"legacy",q=S?.nodeColors??{},z=m.db.getGraph(),w=Ft[f];ot().nodeId((r)=>r.id).nodeWidth(W).nodePadding(U+(B?15:0)).nodeAlign(w).extent([[0,0],[u,b]])(z);let H=Wt(z.nodes),X=Vt(dt),j=t((r)=>q[r]??X(r),"getNodeColor");o.append("g").attr("class","nodes").selectAll(".node").data(z.nodes).join("g").attr("class","node").attr("id",(r)=>(r.uid=wt.next("node-")).id).attr("transform",function(r){return"translate("+r.x0+","+r.y0+")"}).attr("x",(r)=>r.x0).attr("y",(r)=>r.y0).append("rect").attr("height",(r)=>r.y1-r.y0).attr("width",(r)=>r.x1-r.x0).attr("fill",(r)=>j(r.id));let Z=t(({id:r,value:s})=>{if(!B)return r;return`${r}
7
- ${_}${Math.round(s*100)/100}${T}`},"getText"),K=t((r)=>{if(Q==="outlined"){if((r.layer??0)<H)return{x:r.x0-6,anchor:"end"};return{x:r.x1+6,anchor:"start"}}if(r.x0<u/2)return{x:r.x1+6,anchor:"start"};return{x:r.x0-6,anchor:"end"}},"getLabelPosition"),L=o.append("g").attr("class","node-labels").attr("font-size",14),V=t((r)=>L.selectAll(r?`.${r}`:"text").data(z.nodes).join("text").attr("class",r??null).attr("x",(s)=>K(s).x).attr("y",(s)=>(s.y1+s.y0)/2).attr("dy",`${B?"0":"0.35"}em`).attr("text-anchor",(s)=>K(s).anchor).text(Z),"appendLabel");if(Q==="outlined")V("sankey-label-bg"),V("sankey-label-fg");else V();let e=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",0.5).selectAll(".link").data(z.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),a=S?.linkColor??"gradient";if(a==="gradient"){let r=e.append("linearGradient").attr("id",(s)=>(s.uid=wt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",(s)=>s.source.x1).attr("x2",(s)=>s.target.x0);r.append("stop").attr("offset","0%").attr("stop-color",(s)=>j(s.source.id)),r.append("stop").attr("offset","100%").attr("stop-color",(s)=>j(s.target.id))}let c;switch(a){case"gradient":c=t((r)=>r.uid,"coloring");break;case"source":c=t((r)=>j(r.source.id),"coloring");break;case"target":c=t((r)=>j(r.target.id),"coloring");break;default:c=a}e.append("path").attr("d",it()).attr("stroke",c).attr("stroke-width",(r)=>Math.max(1,r.width)),mn(void 0,o,0,x)},"draw"),Ht={draw:Ut},Xt=t((n)=>n.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
- `).trim(),"prepareTextForParsing"),Jt=t((n)=>`.label {
9
- font-family: ${n.fontFamily};
10
- }
11
-
12
- .node-labels {
13
- font-family: ${n.fontFamily};
14
- }
15
-
16
- /* Outlined label style - background stroke for better readability */
17
- .sankey-label-bg {
18
- stroke: ${n.mainBkg||n.background||"#fff"};
19
- stroke-width: 4px;
20
- stroke-linejoin: round;
21
- paint-order: stroke;
22
- }
23
-
24
- /* Foreground label text */
25
- .sankey-label-fg {
26
- fill: ${n.textColor};
27
- }
28
-
29
- /* Node styling */
30
- .node rect {
31
- shape-rendering: crispEdges;
32
- }
33
-
34
- /* Link styling */
35
- .link {
36
- fill: none;
37
- stroke-opacity: 0.5;
38
- mix-blend-mode: multiply;
39
- }
40
- `,"getStyles"),Kt=Jt,Qt=at.parse.bind(at);at.parse=(n)=>Qt(Xt(n));var Be={styles:Kt,parser:at,db:zt,renderer:Ht};export{Be as diagram};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{s,o,a,le,m,e,n,u,Ft,Q,me,Wi,k,p,_,te,oe,We,xs}from"./chunk-6f1q0tjv.js";var M=30;function W(t){let l=new Date(t),y=new Date,c=new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),x=new Date(y.getFullYear(),y.getMonth(),y.getDate()).getTime(),d=86400000,h=Math.round((x-c)/86400000),g=`${l.getMonth()+1}月${l.getDate()}日`;if(h===0)return`今天 · ${g}`;if(h===1)return`昨天 · ${g}`;if(h>1&&h<7)return`${h} 天前 · ${g}`;if(l.getFullYear()===y.getFullYear())return g;return`${l.getFullYear()}年${g}`}function q(t){if(!t)return"";let l=new Date(t),y=(d)=>String(d).padStart(2,"0"),c=y(l.getHours()),x=y(l.getMinutes());return`${c}:${x}`}function V(t){if(!t)return"";return new Date(t).toLocaleString()}function Z(t,l=t.length){let y=[],c=new Map;for(let x=0;x<t.length;x++){let d=t[x];if(!d)continue;let h=d.archivedAt??0,g=new Date(h),D=`${g.getFullYear()}-${g.getMonth()+1}-${g.getDate()}`,b=c.get(D);if(!b){if(x>=l)continue;b={key:D,title:W(h),total:0,sessions:[]},c.set(D,b),y.push(b)}if(b.total+=1,x<l)b.sessions.push(d)}return y}function de(t){k();let[l,y]=a(""),[c,x]=a(!1),[d,h]=a(new Set),[g,D]=a(!1),b=o(null),w=le(t.conn.state),P=t.projectID??"chat",L=t.projectID?t.projects.find((i)=>i.id===t.projectID)?.name??"项目":"聊天",S=Wi(t.sessions,P),f=Wi(S,P,l),I=`${P}\x00${l.trim().toLocaleLowerCase()}`,[T,A]=a({key:I,count:M}),G=T.key===I?T.count:M,z=Math.min(G,f.length),R=z<f.length;s(()=>{let i=b.current;if(!i||!R||typeof IntersectionObserver>"u")return;let v=i.closest(".minimal-scroll-area"),r=new IntersectionObserver((C)=>{if(C.some((j)=>j.isIntersecting))A({key:I,count:Math.min(f.length,z+M)})},{root:v,rootMargin:"320px 0px"});return r.observe(i),()=>r.disconnect()},[I,R,z,f.length]);let F=f.filter((i)=>d.has(i.id)),B=f.length>0&&d.size===f.length;function O(){if(B)h(new Set);else h(new Set(f.map((i)=>i.id)))}function E(i){h((v)=>{let r=new Set(v);if(r.has(i))r.delete(i);else r.add(i);return r})}async function Y(i){if(i.length===0||g)return;D(!0);try{if(t.onBatchDelete)await t.onBatchDelete(i);else for(let v of i)t.onDelete(v);if(h(new Set),c&&i.length===f.length)x(!1)}finally{D(!1)}}async function H(i){if(i.length===0||g)return;D(!0);try{if(t.onBatchRestore)await t.onBatchRestore(i);else for(let v of i)t.onRestore(v);if(h(new Set),c&&i.length===f.length)x(!1)}finally{D(!1)}}function K(){if(w.indexError)return n("div",{role:"alert",className:"animate-fade space-y-2 rounded-2xl border border-danger/20 bg-danger/5 p-6 text-sm text-danger",children:[n("p",{children:["加载失败:",w.indexError]}),e(_,{loading:w.indexLoading,disabled:w.indexLoading,onClick:()=>{if(!t.conn.state.get().indexLoading)t.conn.refreshIndex()},children:"重试"})]});if(w.status!=="open"||w.indexLoading)return e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在连接…"});if(f.length===0)return n("div",{className:p("surface.emptyDashed","animate-fade"),children:[e("div",{className:"grid size-11 place-items-center rounded-xl bg-raised text-dim",children:e(Ft,{className:"size-5"})}),n("div",{children:[e("p",{className:"text-md font-medium",children:S.length===0?`${L}里暂无归档会话`:"没有匹配结果"}),e("p",{className:"mt-1 text-sm text-dim",children:S.length===0?"归档的会话会安全存放在这里,不干扰日常列表。":"尝试更换关键词重新搜索。"})]})]});let i=Z(f,z);return n("div",{className:"space-y-6 animate-fade",children:[i.map((v)=>n("section",{className:"space-y-2",children:[n("div",{className:"flex items-center justify-between px-1 text-xs text-dim",children:[e("h2",{className:"font-medium text-ink",children:v.title}),n("span",{className:"tabular-nums text-faint",children:[v.total," 个会话"]})]}),e("div",{className:p("settings.groupBox"),children:e("ul",{className:"divide-y divide-line/60",children:v.sessions.map((r)=>{let C=d.has(r.id),j=t.projects.find((N)=>N.id===r.projectID)?.name;return n("li",{tabIndex:c?0:void 0,className:u("group flex flex-wrap items-center justify-between gap-x-3 gap-y-1 px-4 py-2.5 transition-colors sm:flex-nowrap",c?"cursor-pointer hover:bg-raised/70 focus:outline-hidden focus:bg-raised/70":"hover:bg-raised/50",c&&C&&"bg-accent/5"),onClick:c?()=>E(r.id):void 0,onKeyDown:c?(N)=>{if(N.key==="Enter"||N.key===" ")N.preventDefault(),E(r.id)}:void 0,children:[n("div",{className:"flex min-w-0 flex-1 basis-48 items-center gap-2.5",children:[c&&e("span",{className:u("flex size-4 shrink-0 items-center justify-center rounded-md border transition-colors",C?"border-accent bg-accent text-accent-ink":"border-line-strong bg-panel"),children:C&&e(Q,{className:"size-3",strokeWidth:3})}),e(We,{modelID:r.model,className:"size-4 shrink-0 text-dim"}),e("button",{type:"button",disabled:c,className:u("block max-w-full truncate text-left text-sm font-medium text-ink transition-colors focus:outline-hidden",!c&&"hover:text-accent"),onClick:()=>!c&&t.onOpen(r.id),children:me(r)}),j&&e("span",{className:p("control.badge","shrink-0 text-2xs text-dim"),children:j})]}),n("div",{className:"flex shrink-0 items-center justify-end gap-1.5 sm:grid sm:justify-items-end",children:[e("time",{dateTime:r.archivedAt?new Date(r.archivedAt).toISOString():void 0,title:r.archivedAt?`归档于 ${V(r.archivedAt)}`:void 0,className:u("text-xs tabular-nums text-faint cursor-default sm:col-start-1 sm:row-start-1",!c&&"transition-opacity sm:group-hover:opacity-0 sm:group-focus-within:opacity-0"),children:q(r.archivedAt)}),!c&&n("div",{className:"flex items-center gap-1.5 opacity-90 transition-opacity sm:pointer-events-none sm:col-start-1 sm:row-start-1 sm:opacity-0 sm:group-hover:pointer-events-auto sm:group-hover:opacity-100 sm:group-focus-within:pointer-events-auto sm:group-focus-within:opacity-100",children:[e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",disabled:t.pending.has(r.id),onClick:(N)=>{N.stopPropagation(),t.onRestore(r)},children:"恢复"}),e(_,{size:"sm",variant:"danger-ghost",className:"h-7 px-2 text-xs",disabled:t.pending.has(r.id),onClick:(N)=>{N.stopPropagation(),t.onDelete(r)},children:"永久删除"})]})]})]},r.id)})})})]},v.key)),R&&n("div",{ref:b,className:"flex items-center justify-between rounded-xl border border-line/60 bg-panel/40 px-4 py-2.5 text-xs text-faint",children:[n("span",{className:"tabular-nums",children:["已显示 ",z," / ",f.length," 个会话"]}),n("div",{className:"flex items-center gap-1.5",children:[e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>A({key:I,count:Math.min(f.length,z+M)}),children:"加载更多"}),e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>A({key:I,count:f.length}),children:"显示全部"})]})]})]})}return n(xs,{"aria-label":"已归档会话",title:n(m,{children:["已归档 ",n("span",{className:"text-dim",children:["· ",L]})]}),description:"浏览和管理已归档的会话,可随时恢复到聊天列表或彻底删除。",children:[n("div",{className:"mb-6 space-y-2",children:[e(oe,{label:"搜索标题",children:(i)=>e(te,{id:i,value:l,onChange:(v)=>y(v.target.value),placeholder:"搜索归档会话…"})}),S.length>0&&(c?n("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-xl border border-line bg-panel p-2.5 shadow-xs",children:[n("button",{type:"button",className:"flex items-center gap-2 text-xs font-medium text-ink hover:text-accent focus:outline-hidden",onClick:O,children:[n("span",{className:u("flex size-4 shrink-0 items-center justify-center rounded-md border transition-colors",B?"border-accent bg-accent text-accent-ink":d.size>0?"border-accent bg-accent/20 text-accent":"border-line-strong bg-panel"),children:[B&&e(Q,{className:"size-3",strokeWidth:3}),!B&&d.size>0&&e("span",{className:"size-1.5 rounded-xs bg-accent"})]}),n("span",{children:[B?"取消全选":"全选",n("span",{className:"ml-1 text-dim",children:["(",d.size,"/",f.length,")"]})]})]}),n("div",{className:"flex items-center gap-2",children:[n(_,{size:"sm",variant:"secondary",className:"h-7 px-2.5 text-xs",loading:g,disabled:d.size===0||g,onClick:()=>void H(F),children:["批量恢复",d.size>0?` (${d.size})`:""]}),n(_,{size:"sm",variant:"danger",className:"h-7 px-2.5 text-xs",loading:g,disabled:d.size===0||g,onClick:()=>void Y(F),children:["彻底删除",d.size>0?` (${d.size})`:""]}),e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",disabled:g,onClick:()=>{x(!1),h(new Set)},children:"退出管理"})]})]}):n("div",{className:"flex items-center justify-between px-0.5 text-xs text-dim",children:[e("span",{children:l.trim()?`匹配 ${f.length} 个会话(共 ${S.length} 个)`:`共 ${S.length} 个归档会话`}),f.length>0&&n("div",{className:"flex items-center gap-2",children:[e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>x(!0),children:"批量管理"}),e(_,{size:"sm",variant:"danger-ghost",className:"h-7 px-2 text-xs",onClick:()=>void Y(f),children:l.trim()?"清空匹配结果":"清空全部"})]})]}))]}),K()]})}export{de as ArchivePage};
Binary file
Binary file
@@ -1,7 +0,0 @@
1
- import{v,s,w,o,a,m,e,n,b,zt}from"./chunk-6f1q0tjv.js";import{xt,Qn,Et,hc,Jn,zn,Li,qs,gc}from"./chunk-w0k63gap.js";var z="__chat__";function E(f){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:`${f.percent}%`}})})}function _(f){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:f.children})}function B(f){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:f.children})}function V(f){return n(B,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:xt(f.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:xt(f.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:xt(f.stat.cacheReadTokens)}),f.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",Jn(f.cacheHitRate),")"]})]})]})}function Q(f){let{projects:h,selectedProjectID:D,onSelectProject:k}=f,{style:l}=b();if(h.length===0)return e("div",{className:l("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:h.map((t)=>{let p=t.projectID??z,x=D===p,j=Math.max(t.tokenShare>0?1:0,t.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:t.name}),e("span",{className:l("control.badge","font-mono truncate max-w-[240px]"),title:t.directory||"未绑定项目目录",children:t.directory||"独立会话"}),e("button",{type:"button",onClick:()=>k(x?null:p),className:"rounded px-1.5 py-0.5 text-2xs text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:x?"取消筛选":"筛选"})]}),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:Qn(t.totalTokens),children:xt(t.totalTokens)}),n("span",{className:"text-2xs text-faint",children:["(",Jn(t.tokenShare),")"]})]})]}),e(E,{percent:j}),n(_,{children:[e(V,{stat:t,cacheHitRate:t.cacheHitRate}),n(B,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:Et(t.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:t.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:t.toolCalls.toLocaleString()})," 次"]})]})]})]},p)})})}function Z(f){let{models:h}=f,{ModelIcon:D,style:k}=b();if(h.length===0)return e("div",{className:k("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:h.map((l)=>{let t=Math.max(l.share>0?1:0,l.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(D,{modelID:l.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:l.shortName}),e("span",{className:k("control.badge","font-mono shrink-0"),children:l.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[l.avgTps!==null&&n("span",{className:"text-2xs text-dim",children:[l.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:Qn(l.totalTokens),children:[xt(l.totalTokens)," ",n("span",{className:"text-2xs font-normal text-faint",children:["(",Jn(l.share),")"]})]})]})]}),e(E,{percent:t}),n(_,{children:[e(V,{stat:l,cacheHitRate:l.cacheHitRate}),n(B,{children:[n("span",{children:[e("span",{className:"text-ink",children:l.turns.toLocaleString()})," 轮",l.errors>0?n("span",{className:"text-danger",children:[" (",l.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:l.toolCalls.toLocaleString()})," 次"]}),l.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:hc(l.generationMs)})]})]})]})]},l.model)})})}function J(f){let{tools:h}=f,{StatusChip:D,style:k}=b();if(h.length===0)return e("div",{className:k("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:h.map((l)=>{let t=Math.max(l.share>0?1:0,l.share*100),p=l.successRate>=0.95?"success":l.successRate>=0.8?"warning":"danger",x=Math.max(0,l.calls-l.errors),j=l.calls>0?Math.round(l.outputBytes/l.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:l.name}),n(D,{tone:p,children:["成功率 ",Jn(l.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:[l.calls.toLocaleString()," 次"]}),n("span",{className:"text-2xs text-faint",children:["(",Jn(l.share),")"]})]})]}),e(E,{percent:t}),n(_,{children:[n(B,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:x.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:l.errors>0?"text-danger":"text-ink",children:l.errors.toLocaleString()})," 次"]})]}),n(B,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:zn(l.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:zn(j)})]})]})]})]},l.name)})})}function X(f){let{sessions:h,onOpenSession:D}=f,{style:k}=b();if(h.length===0)return e("div",{className:k("surface.empty"),children:"暂无高消耗会话记录"});let l=Math.max(1,...h.map((t)=>t.totalTokens));return e("div",{className:"divide-y divide-line",children:h.map((t)=>{let p=l>0?Math.max(1,t.totalTokens/l*100):0,x=t.model.split("/").pop()??t.model;return n("button",{type:"button",onClick:()=>D(t.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:t.title.trim()||"新会话"}),e("span",{className:k("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:t.projectName,children:t.projectName}),t.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-2xs text-accent shrink-0",children:"子代理"}),t.archivedAt!==null&&e("span",{className:k("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:Qn(t.totalTokens),children:xt(t.totalTokens)}),e(zt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(E,{percent:p}),n(_,{children:[e(V,{stat:t}),n(B,{children:[e("span",{className:"text-ink",children:x}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:Et(t.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:t.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:gc(t.updated)})]})]})]},t.id)})})}var ee=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function te(f){let{cn:h,Segmented:D,SettingGroup:k,style:l}=b(),{daily:t}=f,[p,x]=a("tokens"),[j,P]=a(null),R=w(()=>t.some((r)=>r.totalTokens>0||r.activeDurationMs>0||r.runs>0),[t]),C=w(()=>{if(t.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(p==="tokens"){let N=t.reduce((M,H)=>M+H.totalTokens,0),S=t.filter((M)=>M.totalTokens>0).length,T=t[0];for(let M of t)if(!T||M.totalTokens>T.totalTokens)T=M;return{totalText:xt(N),totalFullText:Qn(N),avgText:S>0?xt(Math.round(N/S)):"0",peakDate:T&&T.totalTokens>0?Li(T.date):"—",peakValueText:T&&T.totalTokens>0?xt(T.totalTokens):"0"}}if(p==="duration"){let N=t.reduce((M,H)=>M+H.activeDurationMs,0),S=t.filter((M)=>M.activeDurationMs>0).length,T=t[0];for(let M of t)if(!T||M.activeDurationMs>T.activeDurationMs)T=M;return{totalText:Et(N),totalFullText:Et(N),avgText:S>0?Et(Math.round(N/S)):"0s",peakDate:T&&T.activeDurationMs>0?Li(T.date):"—",peakValueText:T&&T.activeDurationMs>0?Et(T.activeDurationMs):"0s"}}let r=t.reduce((N,S)=>N+S.assistantTurns,0),i=t.reduce((N,S)=>N+S.userMessages,0),u=r+i,g=t.filter((N)=>N.assistantTurns>0||N.userMessages>0).length,d=t[0];for(let N of t){let S=d?d.assistantTurns+d.userMessages:0;if(!d||N.assistantTurns+N.userMessages>S)d=N}let L=d?d.assistantTurns+d.userMessages:0;return{totalText:`${u.toLocaleString()} 轮`,totalFullText:`助手 ${r.toLocaleString()} 轮 · 用户 ${i.toLocaleString()} 问`,avgText:g>0?`${(u/g).toFixed(1)} 轮/天`:"0 轮/天",peakDate:d&&L>0?Li(d.date):"—",peakValueText:d&&L>0?`${L.toLocaleString()} 轮`:"0 轮"}},[t,p]),y=w(()=>{if(j){let r=t.find((i)=>i.date===j);if(r)return r}for(let r=t.length-1;r>=0;r--){let i=t[r];if(i&&(i.totalTokens>0||i.activeDurationMs>0||i.runs>0))return i}return t[t.length-1]},[t,j]),O=w(()=>{if(p==="tokens")return Math.max(1,...t.map((r)=>r.totalTokens));if(p==="duration")return Math.max(1000,...t.map((r)=>r.activeDurationMs));return Math.max(1,...t.map((r)=>r.assistantTurns+r.userMessages))},[t,p]),c=w(()=>{if(t.length<=7)return t.map((u)=>u.date);let r=6,i=[];for(let u=0;u<r;u++){let g=Math.round(u*(t.length-1)/(r-1)),d=t[g];if(d)i.push(d.date)}return i},[t]);if(!R)return e(k,{title:"每日趋势",action:e(D,{value:p,onChange:(r)=>x(r),options:ee}),children:e("div",{className:l("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(k,{title:"每日趋势",action:e(D,{value:p,onChange:(r)=>x(r),options:ee}),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:C.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:C.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:C.peakValueText}),C.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",C.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-2xs text-dim",children:[p==="tokens"&&n(m,{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"}),"输出"]})]}),p==="duration"&&n(m,{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"}),"模型推理"]})]}),p==="activity"&&n(m,{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-3xs 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:()=>P(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:t.map((r)=>{let i=r.totalTokens;if(p==="duration")i=r.activeDurationMs;else if(p==="activity")i=r.assistantTurns+r.userMessages;let u=i<=0,g=u?0:Math.max(3,Math.min(100,i/O*100)),d=y?.date===r.date;return n("button",{type:"button","aria-label":`${r.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:()=>P(r.date),onFocus:()=>P(r.date),onClick:()=>P(r.date),children:[e("div",{className:h("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",d?"bg-accent/10":"group-hover:bg-raised/60")}),u?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:`${g}%`},children:[p==="tokens"&&n(m,{children:[r.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${r.outputTokens/r.totalTokens*100}%`}}),r.inputTokens+r.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(r.inputTokens+r.cacheWriteTokens)/r.totalTokens*100}%`}}),r.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${r.cacheReadTokens/r.totalTokens*100}%`}})]}),p==="duration"&&n(m,{children:[r.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,r.generationMs/Math.max(1,r.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),p==="activity"&&n(m,{children:[r.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${r.userMessages/Math.max(1,r.assistantTurns+r.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),d&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},r.date)})}),e("div",{className:h("flex items-center pt-1.5 text-3xs text-faint font-mono tabular-nums",t.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:c.map((r)=>e("div",{className:h("whitespace-nowrap",t.length<=7&&"flex-1 text-center"),children:Li(r)},r))})]})]}),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:y?n(m,{children:[e("span",{className:"text-ink",children:qs(y.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:xt(y.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:Et(y.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[y.assistantTurns+y.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[y.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function se(f){let{cn:h,SettingGroup:D}=b(),{daily:k,hourly:l}=f,[t,p]=a(null),x=w(()=>{let i=new Map;for(let g of l)i.set(g.hour,g);let u=[];for(let g=0;g<24;g++){let d=i.get(g);if(d)u.push(d);else u.push({hour:g,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return u},[l]),j=w(()=>{let i=x[0];for(let u of x)if(!i||u.totalTokens>i.totalTokens)i=u;return i&&i.totalTokens>0?i:null},[x]),P=w(()=>x.reduce((i,u)=>i+u.totalTokens,0),[x]),R=w(()=>Math.max(1,...x.map((i)=>i.totalTokens)),[x]),C=w(()=>{if(P<=0)return 0;return x.filter((u)=>u.hour>=8&&u.hour<20).reduce((u,g)=>u+g.totalTokens,0)/P},[x,P]),y=w(()=>Math.max(1,...k.map((i)=>i.totalTokens)),[k]),O=w(()=>{let i=0,u=0;for(let g of k)if(g.totalTokens>0||g.activeDurationMs>0||g.runs>0){if(u++,u>i)i=u}else u=0;return i},[k]),c=w(()=>k.filter((i)=>i.totalTokens>0||i.activeDurationMs>0||i.runs>0).length,[k]),r=t!==null?x[t]:j;return n(D,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",Jn(C)]}),n("span",{children:["连续活跃 ",O," 天"]}),n("span",{children:["活跃 ",c,"/",k.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 小时分布"}),r?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[t!==null?"时段 ":"高峰 ",String(r.hour).padStart(2,"0"),":00 -"," ",String((r.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:xt(r.totalTokens)}),r.activeDurationMs>0&&e("span",{children:Et(r.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:()=>p(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:x.map((i)=>{let u=j?.hour===i.hour,g=t===i.hour,d=i.totalTokens>0?Math.max(6,i.totalTokens/R*100):0,L=`${String(i.hour).padStart(2,"0")}:00 - ${String((i.hour+1)%24).padStart(2,"0")}:00
2
- 消耗: ${Qn(i.totalTokens)} Token
3
- 耗时: ${Et(i.activeDurationMs)}
4
- 助手轮次: ${i.assistantTurns} 轮`;return e("button",{type:"button","aria-label":`${String(i.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:L,onMouseEnter:()=>p(i.hour),onFocus:()=>p(i.hour),onClick:()=>p(i.hour),children:d>0?e("div",{className:h("w-full max-w-[20px] rounded-t-xs transition-all duration-200",u||g?"bg-accent":"bg-accent/55 group-hover:bg-accent"),style:{height:`${d}%`}}):e("div",{className:"h-1 w-full max-w-[20px] rounded-full bg-raised group-hover:bg-dim/30"})},i.hour)})}),n("div",{className:"flex justify-between items-center text-3xs 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:["自然日热力 (",k.length," 天)"]}),e("div",{className:"flex flex-wrap items-center gap-1.5",children:k.map((i)=>{let u="bg-raised";if(i.totalTokens>0){let d=i.totalTokens/y;if(d<=0.33)u="bg-accent/30";else if(d<=0.66)u="bg-accent/60";else u="bg-accent"}let g=`${qs(i.date)}
5
- 消耗: ${Qn(i.totalTokens)} Token
6
- 耗时: ${Et(i.activeDurationMs)}
7
- 助手轮次: ${i.assistantTurns} 轮`;return e("div",{className:h("size-3.5 rounded-xs transition-transform hover:scale-125 cursor-pointer",u),title:g},i.date)})})]})]})}var re=[{value:"7d",label:"近 7 天"},{value:"30d",label:"近 30 天"},{value:"90d",label:"近 90 天"},{value:"all",label:"全部"}],W=new Map,ae=[];function K(f,h){return`${f}:${h??"all"}`}function we(f){let{connection:h,onOpen:D}=f,{Button:k,PageLayout:l,Segmented:t,SettingGroup:p,style:x}=b(),[j,P]=a("30d"),[R,C]=a(null),[y,O]=a("projects"),[c,r]=a(()=>W.get(K("30d",null))??null),[i,u]=a(()=>!W.has(K("30d",null))),[g,d]=a(null),[L,N]=a(()=>ae),S=o(0),T=v(async()=>{let H=++S.current,I=K(j,R),U=W.get(I);if(U)r(U);u(!0);try{let F=new URLSearchParams({range:j,tzOffset:String(new Date().getTimezoneOffset())});if(R)F.set("projectID",R);let G=await h.request(`/api/stats?${F.toString()}`);if(H!==S.current)return;if(W.set(I,G),r(G),d(null),G.projects)N((ne)=>{let Y=new Map(ne.map((A)=>[A.id,A.name]));for(let A of G.projects)if(A.projectID)Y.set(A.projectID,A.name);let q=Array.from(Y.entries()).map(([A,oe])=>({id:A,name:oe}));return ae=q,q})}catch(F){if(H===S.current)d(F instanceof Error?F.message:"加载统计数据失败")}finally{if(H===S.current)u(!1)}},[h,j,R]);s(()=>(T(),()=>{S.current++}),[T]);let M=w(()=>{if(!R)return null;if(R===z)return"独立聊天";return(L.find((I)=>I.id===R)??c?.projects.find((I)=>I.projectID===R))?.name??"指定项目"},[R,L,c]);return n(l,{title:M?n(m,{children:["统计 ",n("span",{className:"text-dim",children:["· ",M]})]}):"统计",description:"按项目、模型与工具统计活跃耗时与 Token 消耗。",actions:n(m,{children:[R&&e(k,{size:"sm",variant:"ghost",onClick:()=>C(null),children:"返回全部"}),e(t,{value:j,onChange:P,options:re})]}),children:[g&&n("div",{className:"mb-4 flex items-center justify-between rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger",children:[e("span",{children:g}),e(k,{size:"sm",variant:"ghost",onClick:()=>{T()},className:"text-danger hover:text-danger",children:"重试"})]}),i&&!c?e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在加载统计…"}):!c?e("div",{className:x("surface.card","p-12 text-center text-sm text-dim"),children:"暂无统计数据"}):n("div",{className:"space-y-8",children:[e(p,{title:"核心总览",unboxed:!0,children:n("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"总 Token 消耗"}),n("span",{className:"font-mono tabular-nums",children:["缓存命中 ",Jn(c.overview.cacheHitRate)]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",title:`${Qn(c.overview.totalTokens)} Token`,children:xt(c.overview.totalTokens)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:["输入 ",xt(c.overview.inputTokens)]}),n("span",{children:["输出 ",xt(c.overview.outputTokens)]}),n("span",{children:["缓存读 ",xt(c.overview.cacheReadTokens)]})]})]}),n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"活跃工作耗时"}),n("span",{className:"font-mono tabular-nums",children:["日均"," ",c.overview.activeDays>0?Et(c.overview.activeDurationMs/c.overview.activeDays):"0s"]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:Et(c.overview.activeDurationMs)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:["模型推理 ",Et(c.overview.generationMs)]}),n("span",{children:["并发累计 ",Et(c.overview.cumulativeRunDurationMs)]})]})]}),n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"会话与工作流"}),n("span",{className:"font-mono tabular-nums",children:[c.overview.activeProjects,"/",c.overview.totalProjects," 活跃项目"]})]}),n("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:[c.overview.sessionCount.toLocaleString()," 个会话"]}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:[c.overview.mainSessionCount," 主会话 / ",c.overview.subSessionCount," 子代理"]}),n("span",{children:[c.overview.userMessages," 提问 / ",c.overview.assistantTurns," 回复"]})]})]}),n("div",{className:x("surface.card","p-4"),children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{children:"吞吐效率与调用"}),n("span",{className:"font-mono tabular-nums",children:[c.overview.compactions," 次折叠"]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:c.overview.avgTps!==null?`${c.overview.avgTps.toFixed(1)} tok/s`:`${c.overview.toolCalls.toLocaleString()} 次调用`}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-2xs text-dim tabular-nums",children:[n("span",{children:[c.overview.toolCalls.toLocaleString()," 次工具调用"]}),n("span",{children:[c.overview.runCount.toLocaleString()," 次运行"]})]})]})]})}),e(te,{daily:c.daily}),e(se,{daily:c.daily,hourly:c.hourly}),e(p,{title:"分类明细",action:e(t,{value:y,onChange:O,options:[{value:"projects",label:`项目消耗 (${c.projects.length})`},{value:"models",label:`模型分析 (${c.models.length})`},{value:"tools",label:`工具调用 (${c.tools.length})`},{value:"sessions",label:`高消耗会话 (${c.topSessions.length})`}]}),children:n("div",{className:"animate-fade",children:[y==="projects"&&e(Q,{projects:c.projects,selectedProjectID:R,onSelectProject:C,onOpenSession:D}),y==="models"&&e(Z,{models:c.models}),y==="tools"&&e(J,{tools:c.tools}),y==="sessions"&&e(X,{sessions:c.topSessions,onOpenSession:D})]},y)})]})]})}export{we as StatsPage};
Binary file
Binary file
@@ -1,39 +0,0 @@
1
- import{ie}from"./chunk-tykcqm6v.js";import{t,i,F,W,N,M,P,R,I,O,D,d,we,la,Oi,J,Mt,Z}from"./chunk-sawc81kc.js";import{fe}from"./chunk-4ab1dv3g.js";import{Vt}from"./chunk-58xhn7ry.js";import{_n}from"./chunk-495sjpc6.js";function tt(e,o){return o<e?-1:o>e?1:o>=e?0:NaN}function et(e){return e}function rt(){var e=et,o=tt,A=null,E=we(0),u=we(la),h=we(0);function l(r){var n,c=(r=Oi(r)).length,m,C,k=0,v=Array(c),s=Array(c),z=+E.apply(this,arguments),_=Math.min(la,Math.max(-la,u.apply(this,arguments)-z)),L,V=Math.min(Math.abs(_)/c,h.apply(this,arguments)),p=V*(_<0?-1:1),T;for(n=0;n<c;++n)if((T=s[v[n]=n]=+e(r[n],n,r))>0)k+=T;if(o!=null)v.sort(function(G,x){return o(s[G],s[x])});else if(A!=null)v.sort(function(G,x){return A(r[G],r[x])});for(n=0,C=k?(_-c*p)/k:0;n<c;++n,z=L)m=v[n],T=s[m],L=z+(T>0?T*C:0)+p,s[m]={data:r[m],index:n,value:T,startAngle:z,endAngle:L,padAngle:V};return s}return l.value=function(r){return arguments.length?(e=typeof r==="function"?r:we(+r),l):e},l.sortValues=function(r){return arguments.length?(o=r,A=null,l):o},l.sort=function(r){return arguments.length?(A=r,o=null,l):A},l.startAngle=function(r){return arguments.length?(E=typeof r==="function"?r:we(+r),l):E},l.endAngle=function(r){return arguments.length?(u=typeof r==="function"?r:we(+r),l):u},l.padAngle=function(r){return arguments.length?(h=typeof r==="function"?r:we(+r),l):h},l}var ct=F.pie,at={sections:new Map,showData:!1,config:ct},{sections:X,showData:nt}=at,mt=structuredClone(ct),vt=t(()=>structuredClone(mt),"getConfig"),xt=t(()=>{X=new Map,nt=at.showData,N()},"clear"),St=t(({label:e,value:o})=>{if(o<0)throw Error(`"${e}" has invalid value: ${o}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);if(!X.has(e))X.set(e,o),i.debug(`added new section: ${e}, with value: ${o}`)},"addSection"),yt=t(()=>X,"getSections"),wt=t((e)=>{nt=e},"setShowData"),At=t(()=>nt,"getShowData"),ut={getConfig:vt,clear:xt,setDiagramTitle:O,getDiagramTitle:D,setAccTitle:M,getAccTitle:P,setAccDescription:R,getAccDescription:I,addSection:St,getSections:yt,setShowData:wt,getShowData:At},Ct=t((e,o)=>{ie(e,o),o.setShowData(e.showData),e.sections.map(o.addSection)},"populateDb"),$t={parse:t(async(e)=>{let o=await fe("pie",e);i.debug(o),Ct(o,ut)},"parse")},Dt=t((e)=>`
2
- .pieCircle{
3
- stroke: ${e.pieStrokeColor};
4
- stroke-width : ${e.pieStrokeWidth};
5
- opacity : ${e.pieOpacity};
6
- }
7
- .pieCircle.highlighted{
8
- scale: 1.05;
9
- opacity: 1;
10
- }
11
- .pieCircle.highlightedOnHover:hover{
12
- transition-duration: 250ms;
13
- scale: 1.05;
14
- opacity: 1;
15
- }
16
- .pieOuterCircle{
17
- stroke: ${e.pieOuterStrokeColor};
18
- stroke-width: ${e.pieOuterStrokeWidth};
19
- fill: none;
20
- }
21
- .pieTitleText {
22
- text-anchor: middle;
23
- font-size: ${e.pieTitleTextSize};
24
- fill: ${e.pieTitleTextColor};
25
- font-family: ${e.fontFamily};
26
- }
27
- .slice {
28
- font-family: ${e.fontFamily};
29
- fill: ${e.pieSectionTextColor};
30
- font-size:${e.pieSectionTextSize};
31
- // fill: white;
32
- }
33
- .legend text {
34
- fill: ${e.pieLegendTextColor};
35
- font-family: ${e.fontFamily};
36
- font-size: ${e.pieLegendTextSize};
37
- }
38
- `,"getStyles"),Tt=Dt,bt=t((e)=>{let o=[...e.values()].reduce((u,h)=>u+h,0),A=[...e.entries()].map(([u,h])=>({label:u,value:h})).filter((u)=>u.value/o*100>=1);return rt().value((u)=>u.value).sort(null)(A)},"createPieArcs"),kt=t((e,o,A,E)=>{i.debug(`rendering pie chart
39
- `+e);let u=E.db,h=d(),l=Z(u.getConfig(),h.pie),r=40,n=18,c=4,m=450,C=m,k=J(o),v=k.append("g");v.attr("transform","translate("+C/2+","+m/2+")");let{themeVariables:s}=h,[z]=Mt(s.pieOuterStrokeWidth);z??=2;let{legendPosition:_,textPosition:L}=l,V=l.donutHole>0&&l.donutHole<=0.9?l.donutHole:0,p=Math.min(C,m)/2-r,T=_n().innerRadius(V*p).outerRadius(p),G=_n().innerRadius(p*L).outerRadius(p*L),x=v.append("g");x.append("circle").attr("cx",0).attr("cy",0).attr("r",p+z/2).attr("class","pieOuterCircle");let U=u.getSections(),gt=bt(U),dt=[s.pie1,s.pie2,s.pie3,s.pie4,s.pie5,s.pie6,s.pie7,s.pie8,s.pie9,s.pie10,s.pie11,s.pie12],q=0;U.forEach((a)=>{q+=a});let it=gt.filter((a)=>(a.data.value/q*100).toFixed(0)!=="0"),K=Vt(dt).domain([...U.keys()]);x.selectAll("mySlices").data(it).enter().append("path").attr("d",T).attr("fill",(a)=>K(a.data.label)).attr("class",(a)=>{let g="pieCircle";if(l.highlightSlice==="hover")g+=" highlightedOnHover";else if(l.highlightSlice===a.data.label)g+=" highlighted";return g}),x.selectAll("mySlices").data(it).enter().append("text").text((a)=>(a.data.value/q*100).toFixed(0)+"%").attr("transform",(a)=>"translate("+G.centroid(a)+")").style("text-anchor","middle").attr("class","slice");let pt=v.append("text").text(u.getDiagramTitle()).attr("x",0).attr("y",-(m-50)/2).attr("class","pieTitleText"),B=[...U.entries()].map(([a,g])=>({label:a,value:g})),b=v.selectAll(".legend").data(B).enter().append("g").attr("class","legend");b.append("rect").attr("width",n).attr("height",n).style("fill",(a)=>K(a.label)).style("stroke",(a)=>K(a.label)),b.append("text").attr("x",n+c).attr("y",n-c).text((a)=>{if(u.getShowData())return`${a.label} [${a.value}]`;return a.label});let H=Math.max(...b.selectAll("text").nodes().map((a)=>a?.getBoundingClientRect().width??0)),j=m,Q=C+r,f=n+c,Y=B.length*f;switch(_){case"center":b.attr("transform",(a,g)=>{let S=f*B.length/2,y=-H/2-(n+c),w=g*f-S;return"translate("+y+","+w+")"});break;case"top":j+=Y,b.attr("transform",(a,g)=>{let S=p,y=-H/2-(n+c),w=g*f-S;return`translate(${y}, ${w})`}),x.attr("transform",()=>`translate(0, ${Y+f})`);break;case"bottom":j+=Y,b.attr("transform",(a,g)=>{let S=-p-f,y=-H/2-(n+c),w=g*f-S;return"translate("+y+","+w+")"});break;case"left":Q+=n+c+H,b.attr("transform",(a,g)=>{let S=f*B.length/2,y=-p-(n+c),w=g*f-S;return"translate("+y+","+w+")"}),x.attr("transform",()=>`translate(${H+n+c}, 0)`);break;case"right":default:Q+=n+c+H,b.attr("transform",(a,g)=>{let S=f*B.length/2,y=12*n,w=g*f-S;return"translate("+y+","+w+")"});break}let ot=pt.node()?.getBoundingClientRect().width??0,ft=C/2-ot/2,ht=C/2+ot/2,lt=Math.min(0,ft),st=Math.max(Q,ht)-lt;k.attr("viewBox",`${lt} 0 ${st} ${j}`),W(k,j,st,l.useMaxWidth)},"draw"),zt={draw:kt},qt={parser:$t,db:ut,renderer:zt,styles:Tt};export{qt as diagram};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{Ls}from"./chunk-20gcnbgn.js";import"./chunk-6ycpdpfj.js";export{Ls as default};
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- import{we,Qs,Nt,Gr,Lc,Eo,jn,ca,Ct,ti,Di,la,Nc,Js,pa}from"./chunk-sawc81kc.js";function Z(l){return l.innerRadius}function k(l){return l.outerRadius}function b(l){return l.startAngle}function _(l){return l.endAngle}function nn(l){return l&&l.padAngle}function en(l,d,q,P,x,h,S,r){var D=q-l,a=P-d,n=S-x,y=r-h,u=y*D-n*a;if(u*u<Ct)return;return u=(n*(d-h)-y*(l-x))/u,[l+u*D,d+u*a]}function L(l,d,q,P,x,h,S){var r=l-q,D=d-P,a=(S?h:-h)/ca(r*r+D*D),n=a*D,y=-a*r,u=l+n,s=d+y,t=q+n,f=P+y,j=(u+t)/2,o=(s+f)/2,g=t-u,c=f-s,v=g*g+c*c,A=x-h,R=u*f-t*s,E=(c<0?-1:1)*ca(Lc(0,A*A*v-R*R)),I=(R*c-g*E)/v,O=(-R*g-c*E)/v,T=(R*c+g*E)/v,m=(-R*g+c*E)/v,p=I-j,e=O-o,i=T-j,z=m-o;if(p*p+e*e>i*i+z*z)I=T,O=m;return{cx:I,cy:O,x01:-n,y01:-y,x11:I*(x/A-1),y11:O*(x/A-1)}}function _n(){var l=Z,d=k,q=we(0),P=null,x=b,h=_,S=nn,r=null,D=pa(a);function a(){var n,y,u=+l.apply(this,arguments),s=+d.apply(this,arguments),t=x.apply(this,arguments)-Di,f=h.apply(this,arguments)-Di,j=Qs(f-t),o=f>t;if(!r)r=n=D();if(s<u)y=s,s=u,u=y;if(!(s>Ct))r.moveTo(0,0);else if(j>la-Ct){if(r.moveTo(s*Gr(t),s*jn(t)),r.arc(0,0,s,t,f,!o),u>Ct)r.moveTo(u*Gr(f),u*jn(f)),r.arc(0,0,u,f,t,o)}else{var g=t,c=f,v=t,A=f,R=j,E=j,I=S.apply(this,arguments)/2,O=I>Ct&&(P?+P.apply(this,arguments):ca(u*u+s*s)),T=Eo(Qs(s-u)/2,+q.apply(this,arguments)),m=T,p=T,e,i;if(O>Ct){var z=Js(O/u*jn(I)),F=Js(O/s*jn(I));if((R-=z*2)>Ct)z*=o?1:-1,v+=z,A-=z;else R=0,v=A=(t+f)/2;if((E-=F*2)>Ct)F*=o?1:-1,g+=F,c-=F;else E=0,g=c=(t+f)/2}var B=s*Gr(g),C=s*jn(g),G=u*Gr(A),H=u*jn(A);if(T>Ct){var J=s*Gr(c),K=s*jn(c),M=u*Gr(v),N=u*jn(v),w;if(j<ti)if(w=en(B,C,M,N,J,K,G,H)){var Q=B-w[0],U=C-w[1],V=J-w[0],W=K-w[1],X=1/jn(Nc((Q*V+U*W)/(ca(Q*Q+U*U)*ca(V*V+W*W)))/2),Y=ca(w[0]*w[0]+w[1]*w[1]);m=Eo(T,(u-Y)/(X-1)),p=Eo(T,(s-Y)/(X+1))}else m=p=0}if(!(E>Ct))r.moveTo(B,C);else if(p>Ct)if(e=L(M,N,B,C,s,p,o),i=L(J,K,G,H,s,p,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),p<T)r.arc(e.cx,e.cy,p,Nt(e.y01,e.x01),Nt(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,p,Nt(e.y01,e.x01),Nt(e.y11,e.x11),!o),r.arc(0,0,s,Nt(e.cy+e.y11,e.cx+e.x11),Nt(i.cy+i.y11,i.cx+i.x11),!o),r.arc(i.cx,i.cy,p,Nt(i.y11,i.x11),Nt(i.y01,i.x01),!o);else r.moveTo(B,C),r.arc(0,0,s,g,c,!o);if(!(u>Ct)||!(R>Ct))r.lineTo(G,H);else if(m>Ct)if(e=L(G,H,J,K,u,-m,o),i=L(B,C,M,N,u,-m,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),m<T)r.arc(e.cx,e.cy,m,Nt(e.y01,e.x01),Nt(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,m,Nt(e.y01,e.x01),Nt(e.y11,e.x11),!o),r.arc(0,0,u,Nt(e.cy+e.y11,e.cx+e.x11),Nt(i.cy+i.y11,i.cx+i.x11),o),r.arc(i.cx,i.cy,m,Nt(i.y11,i.x11),Nt(i.y01,i.x01),!o);else r.arc(0,0,u,A,v,o)}if(r.closePath(),n)return r=null,n+""||null}return a.centroid=function(){var n=(+l.apply(this,arguments)+ +d.apply(this,arguments))/2,y=(+x.apply(this,arguments)+ +h.apply(this,arguments))/2-ti/2;return[Gr(y)*n,jn(y)*n]},a.innerRadius=function(n){return arguments.length?(l=typeof n==="function"?n:we(+n),a):l},a.outerRadius=function(n){return arguments.length?(d=typeof n==="function"?n:we(+n),a):d},a.cornerRadius=function(n){return arguments.length?(q=typeof n==="function"?n:we(+n),a):q},a.padRadius=function(n){return arguments.length?(P=n==null?null:typeof n==="function"?n:we(+n),a):P},a.startAngle=function(n){return arguments.length?(x=typeof n==="function"?n:we(+n),a):x},a.endAngle=function(n){return arguments.length?(h=typeof n==="function"?n:we(+n),a):h},a.padAngle=function(n){return arguments.length?(S=typeof n==="function"?n:we(+n),a):S},a.context=function(n){return arguments.length?(r=n==null?null:n,a):r},a}
2
- export{_n};
Binary file
Binary file