@bkm016/basalt 0.1.16 → 0.1.18
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.
- package/{chunk-p78wde92.js → chunk-02q61grt.js} +2 -2
- package/chunk-03r6s8pm.js +2 -0
- package/{chunk-38g4jd6v.js → chunk-09fsdkd3.js} +3 -3
- package/{chunk-8r4baw9e.js → chunk-0bg4w7ht.js} +2 -2
- package/chunk-0s4r7k7j.js +2 -0
- package/chunk-27kw4nth.js +2 -0
- package/chunk-2ag9mvms.js +10 -0
- package/{chunk-9ew8cap5.js → chunk-2shwjp8q.js} +1 -1
- package/chunk-3114vstw.js +2 -0
- package/chunk-31meb34a.js +2 -0
- package/chunk-34w345mt.js +2 -0
- package/{chunk-30dxcr91.js → chunk-3amfr8zp.js} +3 -3
- package/chunk-40nk2jjt.js +2 -0
- package/{chunk-44a7f5ta.js → chunk-49bz6hg5.js} +5 -5
- package/{chunk-e8x8zwkg.js → chunk-4hgkwa4k.js} +2 -2
- package/chunk-4wfd77kc.js +2 -0
- package/{chunk-9vam83py.js → chunk-55kpabb3.js} +1 -1
- package/chunk-5p2asrj6.js +2 -0
- package/chunk-65hg0v7e.js +2 -0
- package/chunk-67qw30cj.js +3770 -0
- package/{chunk-b350b01x.js → chunk-6rehcf49.js} +5 -5
- package/chunk-6vkz3wqz.js +25 -0
- package/chunk-81yk0kj2.js +3 -0
- package/chunk-885vf5kb.js +2 -0
- package/{chunk-46vy2m29.js → chunk-8wy08x0d.js} +1 -1
- package/chunk-9cqa9trx.js +4 -0
- package/chunk-ae45qq4z.js +2 -0
- package/chunk-ag3em5yv.js +4 -0
- package/chunk-b5k5p49x.js +2 -0
- package/chunk-b84vbfjc.js +2 -0
- package/{chunk-cs91rmbf.js → chunk-dkpgstr2.js} +7 -7
- package/{chunk-4f6p4n7k.js → chunk-dzn4c87v.js} +2 -2
- package/{chunk-8np9b2y8.js → chunk-e2m8ap8f.js} +2 -2
- package/{chunk-37ndxehw.js → chunk-e5xsyr0n.js} +2 -2
- package/chunk-f97ma522.js +3 -0
- package/chunk-f9yneea6.js +3 -0
- package/{chunk-vqm94hz2.js → chunk-fj56fznw.js} +2 -2
- package/{chunk-xf7zw32f.js → chunk-fk43jgwe.js} +5 -5
- package/{chunk-mh4bjtfs.js → chunk-frjqjdkx.js} +4 -4
- package/{chunk-rqn67tm8.js → chunk-fycz7ap5.js} +1 -1
- package/chunk-fzefs6kn.js +3 -0
- package/chunk-g1n8k4dg.js +5 -0
- package/{chunk-qd2enpr2.js → chunk-g5mdw639.js} +2 -2
- package/chunk-gnvx44kj.js +10 -0
- package/chunk-gpympx0t.js +467 -0
- package/{chunk-b2wpj81x.js → chunk-gyp2jn7d.js} +1 -1
- package/{chunk-y0274xr2.js → chunk-hambwbfz.js} +4 -4
- package/{chunk-1c9nr9rs.js → chunk-j02kqpvq.js} +2 -2
- package/{chunk-ehnc8g6v.js → chunk-j1h7pabk.js} +5 -5
- package/{chunk-w55cnj0f.js → chunk-j6hn9qz6.js} +2 -2
- package/{chunk-m5km74eq.js → chunk-jfx4c32t.js} +2 -2
- package/{chunk-7mgkpn94.js → chunk-jjj8a18b.js} +6 -6
- package/{chunk-pdt65s31.js → chunk-k3c32v59.js} +2 -2
- package/{chunk-rghqprav.js → chunk-k8j3fvx5.js} +1 -1
- package/chunk-kcn3af9r.js +12 -0
- package/{chunk-pyj6avd5.js → chunk-keq5kv9b.js} +2 -2
- package/{chunk-evnqkyt7.js → chunk-m45dpnd1.js} +12 -12
- package/chunk-m4wf04dz.js +15 -0
- package/chunk-m8k6t63k.js +2 -0
- package/{chunk-0crbhhna.js → chunk-nrggp4x6.js} +1 -1
- package/chunk-nt549hv5.js +2 -0
- package/{chunk-06s9pr82.js → chunk-pg4mtrdy.js} +2 -2
- package/chunk-psr4rxnn.js +20 -0
- package/chunk-qhhv81gd.js +2 -0
- package/chunk-qprms4rt.js +2 -0
- package/chunk-r0pm6dap.js +3 -0
- package/{chunk-44b9yx79.js → chunk-rck0kx09.js} +1 -1
- package/chunk-rsn8ad6s.js +2 -0
- package/{chunk-zhyzhekt.js → chunk-skzh3q1s.js} +1 -1
- package/{chunk-g2etemv5.js → chunk-sm4b3q49.js} +2 -2
- package/{chunk-g5p9mj1r.js → chunk-ste3ek53.js} +2 -2
- package/chunk-t3mq64c8.js +3 -0
- package/chunk-trw86cmb.js +11 -0
- package/{chunk-tfhp09nj.js → chunk-tv7met41.js} +2 -2
- package/{chunk-pna1wh02.js → chunk-w33aapmk.js} +12 -12
- package/chunk-wkqrsfrb.js +389 -0
- package/chunk-wxngqzqs.js +3 -0
- package/chunk-xgfqmm46.js +2 -0
- package/{chunk-2eaehpp6.js → chunk-xr77j4f8.js} +3 -3
- package/{chunk-c8g9jjqs.js → chunk-ykstnss8.js} +2 -2
- package/{chunk-1w4nh5t6.js → chunk-yqv7ej5r.js} +3 -3
- package/chunk-z97bcdg2.js +3 -0
- package/chunk-z9s7pwv5.js +7 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +41 -41
- package/web/{chunk-75meb0dh.js → chunk-013et20n.js} +2 -2
- package/web/chunk-013et20n.js.br +0 -0
- package/web/chunk-013et20n.js.gz +0 -0
- package/web/chunk-0ernj3c0.js +1 -0
- package/web/chunk-0ernj3c0.js.br +0 -0
- package/web/chunk-0ernj3c0.js.gz +0 -0
- package/web/chunk-0j65yg1p.js +1 -0
- package/web/chunk-0j65yg1p.js.br +0 -0
- package/web/chunk-0j65yg1p.js.gz +0 -0
- package/web/chunk-0khcpaa8.js +1 -0
- package/web/chunk-0khcpaa8.js.br +0 -0
- package/web/chunk-0khcpaa8.js.gz +0 -0
- package/web/chunk-0wbdd74r.js +1 -0
- package/web/chunk-0wbdd74r.js.br +2 -0
- package/web/chunk-0wbdd74r.js.gz +0 -0
- package/web/chunk-1f2wvhq9.js +1 -0
- package/web/chunk-1f2wvhq9.js.br +0 -0
- package/web/chunk-1f2wvhq9.js.gz +0 -0
- package/web/{chunk-75kzvpf3.js → chunk-1q2kmv35.js} +18 -18
- package/web/chunk-1q2kmv35.js.br +0 -0
- package/web/chunk-1q2kmv35.js.gz +0 -0
- package/web/{chunk-36e78034.js → chunk-1tfrm3pk.js} +2 -2
- package/web/chunk-1tfrm3pk.js.br +0 -0
- package/web/chunk-1tfrm3pk.js.gz +0 -0
- package/web/chunk-2qt5fy5n.js +1 -0
- package/web/chunk-2qt5fy5n.js.br +0 -0
- package/web/chunk-2qt5fy5n.js.gz +0 -0
- package/web/chunk-2sxtb709.js +1 -0
- package/web/chunk-2sxtb709.js.br +0 -0
- package/web/chunk-2sxtb709.js.gz +0 -0
- package/web/chunk-2wrwm0qe.js +1 -0
- package/web/chunk-2wrwm0qe.js.br +0 -0
- package/web/chunk-2wrwm0qe.js.gz +0 -0
- package/web/{chunk-5sss3r97.js → chunk-2wwj27b9.js} +3 -3
- package/web/chunk-2wwj27b9.js.br +0 -0
- package/web/chunk-2wwj27b9.js.gz +0 -0
- package/web/chunk-33mmrjdp.js +1 -0
- package/web/chunk-33mmrjdp.js.br +2 -0
- package/web/chunk-33mmrjdp.js.gz +0 -0
- package/web/chunk-33tb7q04.js +2 -0
- package/web/chunk-33tb7q04.js.br +0 -0
- package/web/chunk-33tb7q04.js.gz +0 -0
- package/web/chunk-3txb4sha.js +1 -0
- package/web/chunk-3txb4sha.js.br +0 -0
- package/web/chunk-3txb4sha.js.gz +0 -0
- package/web/{chunk-n3f5a91k.js → chunk-3xgfsx7y.js} +2 -2
- package/web/chunk-3xgfsx7y.js.br +0 -0
- package/web/chunk-3xgfsx7y.js.gz +0 -0
- package/web/chunk-40jka4r7.js +2 -0
- package/web/chunk-40jka4r7.js.br +0 -0
- package/web/chunk-40jka4r7.js.gz +0 -0
- package/web/{chunk-mcm3t5wr.js → chunk-41vh5n86.js} +1 -1
- package/web/chunk-41vh5n86.js.br +0 -0
- package/web/chunk-41vh5n86.js.gz +0 -0
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-5kz048x3.js +2 -0
- package/web/chunk-5kz048x3.js.br +0 -0
- package/web/chunk-5kz048x3.js.gz +0 -0
- package/web/chunk-5mbz8yj9.js +3 -0
- package/web/chunk-5mbz8yj9.js.br +0 -0
- package/web/chunk-5mbz8yj9.js.gz +0 -0
- package/web/chunk-6024wfxb.js +30 -0
- package/web/chunk-6024wfxb.js.br +0 -0
- package/web/chunk-6024wfxb.js.gz +0 -0
- package/web/chunk-6ey4c6gw.js +2 -0
- package/web/chunk-6ey4c6gw.js.br +0 -0
- package/web/chunk-6ey4c6gw.js.gz +0 -0
- package/web/chunk-6q3p851n.js +1 -0
- package/web/chunk-6q3p851n.js.br +2 -0
- package/web/chunk-6q3p851n.js.gz +0 -0
- package/web/{chunk-qbhv18t0.js → chunk-74g3wh08.js} +2 -2
- package/web/chunk-74g3wh08.js.br +0 -0
- package/web/chunk-74g3wh08.js.gz +0 -0
- package/web/{chunk-vcnsvj49.js → chunk-78akzkgs.js} +14 -14
- package/web/chunk-78akzkgs.js.br +0 -0
- package/web/chunk-78akzkgs.js.gz +0 -0
- package/web/chunk-7ck99bsp.js +62 -0
- package/web/chunk-7ck99bsp.js.br +0 -0
- package/web/chunk-7ck99bsp.js.gz +0 -0
- package/web/chunk-7fjbyns9.js +1 -0
- package/web/chunk-7fjbyns9.js.br +0 -0
- package/web/chunk-7fjbyns9.js.gz +0 -0
- package/web/chunk-7n6b2xra.js +21 -0
- package/web/chunk-7n6b2xra.js.br +0 -0
- package/web/chunk-7n6b2xra.js.gz +0 -0
- package/web/chunk-7p4mcqkd.js +78 -0
- package/web/chunk-7p4mcqkd.js.br +0 -0
- package/web/chunk-7p4mcqkd.js.gz +0 -0
- package/web/chunk-7ztwkhg5.js +1 -0
- package/web/chunk-7ztwkhg5.js.br +0 -0
- package/web/chunk-7ztwkhg5.js.gz +0 -0
- package/web/{chunk-t89tfrpj.js → chunk-823etvc3.js} +19 -19
- package/web/chunk-823etvc3.js.br +0 -0
- package/web/chunk-823etvc3.js.gz +0 -0
- package/web/{chunk-ps489yjy.js → chunk-8ec53vjd.js} +1 -1
- package/web/chunk-8ec53vjd.js.br +0 -0
- package/web/chunk-8ec53vjd.js.gz +0 -0
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/{chunk-p0jghn6b.js → chunk-8g55ytgz.js} +1 -1
- package/web/chunk-8g55ytgz.js.br +0 -0
- package/web/chunk-8g55ytgz.js.gz +0 -0
- package/web/chunk-8nxjthxc.js +1 -0
- package/web/chunk-8nxjthxc.js.br +0 -0
- package/web/chunk-8nxjthxc.js.gz +0 -0
- package/web/chunk-8q76yd76.js +291 -0
- package/web/chunk-8q76yd76.js.br +0 -0
- package/web/chunk-8q76yd76.js.gz +0 -0
- package/web/chunk-9kbrjmtz.js +1 -0
- package/web/chunk-9kbrjmtz.js.br +0 -0
- package/web/chunk-9kbrjmtz.js.gz +0 -0
- package/web/chunk-9s4bh6qm.js +40 -0
- package/web/chunk-9s4bh6qm.js.br +0 -0
- package/web/chunk-9s4bh6qm.js.gz +0 -0
- package/web/chunk-9v1f6yc8.js.br +0 -0
- package/web/chunk-9v1f6yc8.js.gz +0 -0
- package/web/{chunk-a205cj09.js → chunk-9vf3zy3d.js} +2 -2
- package/web/chunk-9vf3zy3d.js.br +0 -0
- package/web/chunk-9vf3zy3d.js.gz +0 -0
- package/web/{chunk-ef03t1mb.js → chunk-a449xjq6.js} +6 -6
- package/web/chunk-a449xjq6.js.br +0 -0
- package/web/chunk-a449xjq6.js.gz +0 -0
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-b05eay33.js +1 -0
- package/web/chunk-b05eay33.js.br +0 -0
- package/web/chunk-b05eay33.js.gz +0 -0
- package/web/{chunk-tfsrk2rc.js → chunk-bdypt5mj.js} +55 -55
- package/web/chunk-bdypt5mj.js.br +0 -0
- package/web/chunk-bdypt5mj.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +14 -0
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/{chunk-ctmxm4qd.js → chunk-ccy2q2z0.js} +2 -2
- package/web/chunk-ccy2q2z0.js.br +0 -0
- package/web/chunk-ccy2q2z0.js.gz +0 -0
- package/web/{chunk-wvt76598.js → chunk-ceg13tma.js} +2 -2
- package/web/chunk-ceg13tma.js.br +0 -0
- package/web/chunk-ceg13tma.js.gz +0 -0
- package/web/{chunk-z2hvvkf5.js → chunk-ch60a61d.js} +2 -2
- package/web/chunk-ch60a61d.js.br +0 -0
- package/web/chunk-ch60a61d.js.gz +0 -0
- package/web/chunk-czvdg0c5.js +1 -0
- package/web/chunk-czvdg0c5.js.br +0 -0
- package/web/chunk-czvdg0c5.js.gz +0 -0
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +1 -0
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/{chunk-chh8bg2h.js → chunk-dsa5m3h6.js} +34 -34
- package/web/chunk-dsa5m3h6.js.br +0 -0
- package/web/chunk-dsa5m3h6.js.gz +0 -0
- package/web/chunk-dww3grm3.js +24 -0
- package/web/chunk-dww3grm3.js.br +0 -0
- package/web/chunk-dww3grm3.js.gz +0 -0
- package/web/chunk-e187gt5x.js +1 -0
- package/web/chunk-e187gt5x.js.br +0 -0
- package/web/chunk-e187gt5x.js.gz +0 -0
- package/web/{chunk-pf65cank.js → chunk-emxa4wv3.js} +2 -2
- package/web/chunk-emxa4wv3.js.br +0 -0
- package/web/chunk-emxa4wv3.js.gz +0 -0
- package/web/{chunk-gjchc4kg.js → chunk-ey0zwvbx.js} +1 -1
- package/web/chunk-ey0zwvbx.js.br +0 -0
- package/web/chunk-ey0zwvbx.js.gz +0 -0
- package/web/chunk-ey14knbn.js +2 -0
- package/web/chunk-ey14knbn.js.br +0 -0
- package/web/chunk-ey14knbn.js.gz +0 -0
- package/web/chunk-fba06jm8.js +1132 -0
- package/web/chunk-fba06jm8.js.br +0 -0
- package/web/chunk-fba06jm8.js.gz +0 -0
- package/web/chunk-fh56vgfx.js +39 -0
- package/web/chunk-fh56vgfx.js.br +0 -0
- package/web/chunk-fh56vgfx.js.gz +0 -0
- package/web/chunk-ft05x3my.js +169 -0
- package/web/chunk-ft05x3my.js.br +0 -0
- package/web/chunk-ft05x3my.js.gz +0 -0
- package/web/chunk-fzmrnh17.js +303 -0
- package/web/chunk-fzmrnh17.js.br +0 -0
- package/web/chunk-fzmrnh17.js.gz +0 -0
- package/web/{chunk-ybqt106a.js → chunk-gbt7asd7.js} +2 -2
- package/web/chunk-gbt7asd7.js.br +0 -0
- package/web/chunk-gbt7asd7.js.gz +0 -0
- package/web/chunk-gh9fkn3t.js +1 -0
- package/web/chunk-gh9fkn3t.js.br +2 -0
- package/web/chunk-gh9fkn3t.js.gz +0 -0
- package/web/{chunk-sd3cdqcm.js → chunk-h1syyjqq.js} +2 -2
- package/web/chunk-h1syyjqq.js.br +0 -0
- package/web/chunk-h1syyjqq.js.gz +0 -0
- package/web/{chunk-mv5axm2y.js → chunk-h7byk4z3.js} +12 -12
- package/web/chunk-h7byk4z3.js.br +0 -0
- package/web/chunk-h7byk4z3.js.gz +0 -0
- package/web/chunk-hby0hkv4.js +1 -0
- package/web/chunk-hby0hkv4.js.br +0 -0
- package/web/chunk-hby0hkv4.js.gz +0 -0
- package/web/chunk-hjvsp2yx.js +1 -0
- package/web/chunk-hjvsp2yx.js.br +0 -0
- package/web/chunk-hjvsp2yx.js.gz +0 -0
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/{chunk-qwwqdmhv.js → chunk-hpjzy5ww.js} +1 -1
- package/web/chunk-hpjzy5ww.js.br +0 -0
- package/web/chunk-hpjzy5ww.js.gz +0 -0
- package/web/{chunk-1np2aamb.js → chunk-hzfp8kqx.js} +11 -11
- package/web/chunk-hzfp8kqx.js.br +0 -0
- package/web/chunk-hzfp8kqx.js.gz +0 -0
- package/web/{chunk-5d9veaef.js → chunk-j6jjk46a.js} +2 -2
- package/web/chunk-j6jjk46a.js.br +0 -0
- package/web/chunk-j6jjk46a.js.gz +0 -0
- package/web/chunk-j8f0m1dq.js +1 -0
- package/web/chunk-j8f0m1dq.js.br +0 -0
- package/web/chunk-j8f0m1dq.js.gz +0 -0
- package/web/{chunk-t9pg7qf8.js → chunk-jc178ad5.js} +2 -2
- package/web/chunk-jc178ad5.js.br +0 -0
- package/web/chunk-jc178ad5.js.gz +0 -0
- package/web/chunk-jcsf0ke5.js +41 -0
- package/web/chunk-jcsf0ke5.js.br +0 -0
- package/web/chunk-jcsf0ke5.js.gz +0 -0
- package/web/chunk-jg43a2xk.js +139 -0
- package/web/chunk-jg43a2xk.js.br +0 -0
- package/web/chunk-jg43a2xk.js.gz +0 -0
- package/web/chunk-jrgdxqtq.js +7 -0
- package/web/chunk-jrgdxqtq.js.br +0 -0
- package/web/chunk-jrgdxqtq.js.gz +0 -0
- package/web/chunk-js8dvtfg.js +2 -0
- package/web/chunk-js8dvtfg.js.br +0 -0
- package/web/chunk-js8dvtfg.js.gz +0 -0
- package/web/chunk-jt0s9qs7.js +1 -0
- package/web/chunk-jt0s9qs7.js.br +0 -0
- package/web/chunk-jt0s9qs7.js.gz +0 -0
- package/web/chunk-jv5faf88.js +34 -0
- package/web/chunk-jv5faf88.js.br +0 -0
- package/web/chunk-jv5faf88.js.gz +0 -0
- package/web/{chunk-vb2z2azk.js → chunk-k295x81w.js} +79 -79
- package/web/chunk-k295x81w.js.br +0 -0
- package/web/chunk-k295x81w.js.gz +0 -0
- package/web/{chunk-wcj3bxdf.js → chunk-k3aa37pw.js} +2 -2
- package/web/chunk-k3aa37pw.js.br +0 -0
- package/web/chunk-k3aa37pw.js.gz +0 -0
- package/web/{chunk-wgmwgaw4.js → chunk-k6wxwgp1.js} +26 -26
- package/web/chunk-k6wxwgp1.js.br +0 -0
- package/web/chunk-k6wxwgp1.js.gz +0 -0
- package/web/chunk-k9vc7kp2.js +292 -0
- package/web/chunk-k9vc7kp2.js.br +0 -0
- package/web/chunk-k9vc7kp2.js.gz +0 -0
- package/web/chunk-kxyws7q7.js +1 -0
- package/web/chunk-kxyws7q7.js.br +0 -0
- package/web/chunk-kxyws7q7.js.gz +0 -0
- package/web/{chunk-c0hdp2zj.js → chunk-mcgf645h.js} +1 -1
- package/web/chunk-mcgf645h.js.br +4 -0
- package/web/chunk-mcgf645h.js.gz +0 -0
- package/web/{chunk-3gj2t10x.js → chunk-mj3tshy8.js} +31 -31
- package/web/chunk-mj3tshy8.js.br +0 -0
- package/web/chunk-mj3tshy8.js.gz +0 -0
- package/web/chunk-mnb2wdvy.js +24 -0
- package/web/chunk-mnb2wdvy.js.br +0 -0
- package/web/chunk-mnb2wdvy.js.gz +0 -0
- package/web/chunk-ndf58dgc.js +1 -0
- package/web/chunk-ndf58dgc.js.br +0 -0
- package/web/chunk-ndf58dgc.js.gz +0 -0
- package/web/chunk-nhpm5nd5.js +2 -0
- package/web/chunk-nhpm5nd5.js.br +0 -0
- package/web/chunk-nhpm5nd5.js.gz +0 -0
- package/web/chunk-nj0cv1cq.js.br +0 -0
- package/web/chunk-nj0cv1cq.js.gz +0 -0
- package/web/{chunk-0zyekjym.js → chunk-nwxjdetb.js} +1 -1
- package/web/chunk-nwxjdetb.js.br +0 -0
- package/web/chunk-nwxjdetb.js.gz +0 -0
- package/web/chunk-nyjfcard.js +106 -0
- package/web/chunk-nyjfcard.js.br +0 -0
- package/web/chunk-nyjfcard.js.gz +0 -0
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/{chunk-g8wy9sa6.js → chunk-pcfjcy3a.js} +23 -23
- package/web/chunk-pcfjcy3a.js.br +0 -0
- package/web/chunk-pcfjcy3a.js.gz +0 -0
- package/web/chunk-pry6wdbe.js +1 -0
- package/web/chunk-pry6wdbe.js.br +0 -0
- package/web/chunk-pry6wdbe.js.gz +0 -0
- package/web/chunk-pvahdcgy.js +2 -0
- package/web/chunk-pvahdcgy.js.br +0 -0
- package/web/chunk-pvahdcgy.js.gz +0 -0
- package/web/{chunk-ffn1a0zw.js → chunk-q3njnnef.js} +2 -2
- package/web/chunk-q3njnnef.js.br +0 -0
- package/web/chunk-q3njnnef.js.gz +0 -0
- package/web/chunk-qxvqkkmw.js +1 -0
- package/web/chunk-qxvqkkmw.js.br +0 -0
- package/web/chunk-qxvqkkmw.js.gz +0 -0
- package/web/chunk-qych3sbs.js +1 -0
- package/web/chunk-qych3sbs.js.br +0 -0
- package/web/chunk-qych3sbs.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-rbmp2e4b.js +1 -0
- package/web/chunk-rbmp2e4b.js.br +0 -0
- package/web/chunk-rbmp2e4b.js.gz +0 -0
- package/web/chunk-rcre1stj.js +1 -0
- package/web/chunk-rcre1stj.js.br +0 -0
- package/web/chunk-rcre1stj.js.gz +0 -0
- package/web/chunk-rdb6091n.js +89 -0
- package/web/chunk-rdb6091n.js.br +0 -0
- package/web/chunk-rdb6091n.js.gz +0 -0
- package/web/chunk-ryw7xnab.js +1 -0
- package/web/chunk-ryw7xnab.js.br +0 -0
- package/web/chunk-ryw7xnab.js.gz +0 -0
- package/web/{chunk-1hx4xtdk.js → chunk-sbbmy02e.js} +2 -2
- package/web/chunk-sbbmy02e.js.br +0 -0
- package/web/chunk-sbbmy02e.js.gz +0 -0
- package/web/{chunk-s0xy00v5.js → chunk-sgbc835w.js} +2 -2
- package/web/chunk-sgbc835w.js.br +0 -0
- package/web/chunk-sgbc835w.js.gz +0 -0
- package/web/chunk-sydy10mb.js +1 -0
- package/web/chunk-sydy10mb.js.br +0 -0
- package/web/chunk-sydy10mb.js.gz +0 -0
- package/web/chunk-t0ywnp5e.js +1 -0
- package/web/chunk-t0ywnp5e.js.br +0 -0
- package/web/chunk-t0ywnp5e.js.gz +0 -0
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/{chunk-hhnhgthx.js → chunk-t72jq97z.js} +2 -2
- package/web/chunk-t72jq97z.js.br +0 -0
- package/web/chunk-t72jq97z.js.gz +0 -0
- package/web/{chunk-6ty9vw27.js → chunk-tfcc9bcz.js} +3 -3
- package/web/chunk-tfcc9bcz.js.br +0 -0
- package/web/chunk-tfcc9bcz.js.gz +0 -0
- package/web/{chunk-27tchdxd.js → chunk-v2bvbgfc.js} +2 -2
- package/web/chunk-v2bvbgfc.js.br +0 -0
- package/web/chunk-v2bvbgfc.js.gz +0 -0
- package/web/{chunk-madrcnm1.js → chunk-v7zq4vc9.js} +5 -5
- package/web/chunk-v7zq4vc9.js.br +0 -0
- package/web/chunk-v7zq4vc9.js.gz +0 -0
- package/web/chunk-vh8pkcem.css.br +0 -0
- package/web/chunk-vh8pkcem.css.gz +0 -0
- package/web/chunk-vq3sby7x.js +1 -0
- package/web/chunk-vq3sby7x.js.br +0 -0
- package/web/chunk-vq3sby7x.js.gz +0 -0
- package/web/{chunk-vvvd3grf.js → chunk-vszya05r.js} +2 -2
- package/web/chunk-vszya05r.js.br +0 -0
- package/web/chunk-vszya05r.js.gz +0 -0
- package/web/chunk-was9xf03.js +8 -0
- package/web/chunk-was9xf03.js.br +0 -0
- package/web/chunk-was9xf03.js.gz +0 -0
- package/web/chunk-we1v1829.js +2 -0
- package/web/chunk-we1v1829.js.br +0 -0
- package/web/chunk-we1v1829.js.gz +0 -0
- package/web/chunk-wfa1c8dn.js +1 -0
- package/web/chunk-wfa1c8dn.js.br +0 -0
- package/web/chunk-wfa1c8dn.js.gz +0 -0
- package/web/chunk-wg2exnxe.js +1 -0
- package/web/chunk-wg2exnxe.js.br +2 -0
- package/web/chunk-wg2exnxe.js.gz +0 -0
- package/web/chunk-wvd3zj1m.js +70 -0
- package/web/chunk-wvd3zj1m.js.br +0 -0
- package/web/chunk-wvd3zj1m.js.gz +0 -0
- package/web/chunk-wzmxtr30.js +1 -0
- package/web/chunk-wzmxtr30.js.br +0 -0
- package/web/chunk-wzmxtr30.js.gz +0 -0
- package/web/chunk-x815g7yp.js +1 -0
- package/web/chunk-x815g7yp.js.br +0 -0
- package/web/chunk-x815g7yp.js.gz +0 -0
- package/web/{chunk-0qnetvsc.js → chunk-x8ps0p82.js} +14 -14
- package/web/chunk-x8ps0p82.js.br +0 -0
- package/web/chunk-x8ps0p82.js.gz +0 -0
- package/web/{chunk-y2ykn1gm.js → chunk-xea3snym.js} +1 -1
- package/web/chunk-xea3snym.js.br +0 -0
- package/web/chunk-xea3snym.js.gz +0 -0
- package/web/chunk-xet1jjy9.js.br +0 -0
- package/web/chunk-xet1jjy9.js.gz +0 -0
- package/web/{chunk-vjnvfb8z.js → chunk-xg4v60m7.js} +1 -1
- package/web/chunk-xg4v60m7.js.br +0 -0
- package/web/chunk-xg4v60m7.js.gz +0 -0
- package/web/chunk-xhr9jrjt.js +89 -0
- package/web/chunk-xhr9jrjt.js.br +0 -0
- package/web/chunk-xhr9jrjt.js.gz +0 -0
- package/web/chunk-xp90g2e7.js +36 -0
- package/web/chunk-xp90g2e7.js.br +0 -0
- package/web/chunk-xp90g2e7.js.gz +0 -0
- package/web/{chunk-e229cr90.js → chunk-xs1g97qa.js} +2 -2
- package/web/chunk-xs1g97qa.js.br +0 -0
- package/web/chunk-xs1g97qa.js.gz +0 -0
- package/web/chunk-xyk1wpr4.js +1 -0
- package/web/chunk-xyk1wpr4.js.br +3 -0
- package/web/chunk-xyk1wpr4.js.gz +0 -0
- package/web/chunk-yavbdwyt.js +1 -0
- package/web/chunk-yavbdwyt.js.br +0 -0
- package/web/chunk-yavbdwyt.js.gz +0 -0
- package/web/chunk-yfnhnsxe.js +4 -0
- package/web/chunk-yfnhnsxe.js.br +0 -0
- package/web/chunk-yfnhnsxe.js.gz +0 -0
- package/web/chunk-yk965yth.js +1 -0
- package/web/chunk-yk965yth.js.br +0 -0
- package/web/chunk-yk965yth.js.gz +0 -0
- package/web/{chunk-c1z290wm.js → chunk-ynhcjhsx.js} +2 -2
- package/web/chunk-ynhcjhsx.js.br +0 -0
- package/web/chunk-ynhcjhsx.js.gz +0 -0
- package/web/chunk-ypmm1gts.js +1 -0
- package/web/chunk-ypmm1gts.js.br +0 -0
- package/web/chunk-ypmm1gts.js.gz +0 -0
- package/web/chunk-yssx5a5q.js +1 -0
- package/web/chunk-yssx5a5q.js.br +0 -0
- package/web/chunk-yssx5a5q.js.gz +0 -0
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-z0a8cnq8.js +1 -0
- package/web/chunk-z0a8cnq8.js.br +0 -0
- package/web/chunk-z0a8cnq8.js.gz +0 -0
- package/web/{chunk-gaf9brzv.js → chunk-z1afsvbv.js} +2 -2
- package/web/chunk-z1afsvbv.js.br +0 -0
- package/web/chunk-z1afsvbv.js.gz +0 -0
- package/web/{chunk-w60dxtyz.js → chunk-z1ka8jtd.js} +2 -2
- package/web/chunk-z1ka8jtd.js.br +0 -0
- package/web/chunk-z1ka8jtd.js.gz +0 -0
- package/web/chunk-z7tdzen9.js +1 -0
- package/web/chunk-z7tdzen9.js.br +0 -0
- package/web/chunk-z7tdzen9.js.gz +0 -0
- package/web/{chunk-444xfger.js → chunk-zbwjj06m.js} +7 -7
- package/web/chunk-zbwjj06m.js.br +0 -0
- package/web/chunk-zbwjj06m.js.gz +0 -0
- package/web/chunk-zd2j189j.js +1 -0
- package/web/chunk-zd2j189j.js.br +0 -0
- package/web/chunk-zd2j189j.js.gz +0 -0
- package/web/chunk-zfgpq4n4.js +120 -0
- package/web/chunk-zfgpq4n4.js.br +0 -0
- package/web/chunk-zfgpq4n4.js.gz +0 -0
- package/web/chunk-zgas56xw.js +1 -0
- package/web/chunk-zgas56xw.js.br +0 -0
- package/web/chunk-zgas56xw.js.gz +0 -0
- package/web/chunk-zkfepf91.js +1 -0
- package/web/chunk-zkfepf91.js.br +0 -0
- package/web/chunk-zkfepf91.js.gz +0 -0
- package/web/icon-1wgy7kzy.svg.br +0 -0
- package/web/icon-1wgy7kzy.svg.gz +0 -0
- package/web/icon.svg.br +0 -0
- package/web/icon.svg.gz +0 -0
- package/web/index.html +11 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/manifest-txf6vfbq.webmanifest.br +0 -0
- package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
- package/web/manifest.webmanifest.br +0 -0
- package/web/manifest.webmanifest.gz +0 -0
- package/web/sw.js +146 -27
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/worker.js +1 -1
- package/chunk-4hf0r9hv.js +0 -12
- package/chunk-4w8j6n7z.js +0 -2
- package/chunk-4yxd2kg1.js +0 -3
- package/chunk-62ebm0bn.js +0 -2
- package/chunk-6ae9810t.js +0 -25
- package/chunk-6ef085c1.js +0 -20
- package/chunk-6exa9fp7.js +0 -3
- package/chunk-73t051r6.js +0 -2
- package/chunk-86yr2c0r.js +0 -3
- package/chunk-8jn0yax5.js +0 -482
- package/chunk-9xjecw6c.js +0 -2
- package/chunk-9ymm1gge.js +0 -4172
- package/chunk-bjvv3403.js +0 -2
- package/chunk-bv96b8q7.js +0 -2
- package/chunk-drett6hb.js +0 -2
- package/chunk-fzftb4n2.js +0 -10
- package/chunk-ge38dhv9.js +0 -3
- package/chunk-hggam3je.js +0 -2
- package/chunk-nrdszs0g.js +0 -5
- package/chunk-pjgt1bdx.js +0 -3
- package/chunk-q6tgpaf3.js +0 -2
- package/chunk-t33bm5aa.js +0 -2
- package/chunk-v9ttcf6r.js +0 -3
- package/chunk-vd5332ps.js +0 -2
- package/chunk-vv9csar7.js +0 -2
- package/chunk-wnd3y4c0.js +0 -10
- package/chunk-xba6fr5v.js +0 -2
- package/chunk-ypxs8djn.js +0 -2
- package/chunk-zcwz44db.js +0 -2
- package/web/chunk-0zb330w3.js +0 -89
- package/web/chunk-11byy7vm.js +0 -1
- package/web/chunk-160x5pv7.js +0 -1
- package/web/chunk-19g09ekr.js +0 -40
- package/web/chunk-1gzprnyd.js +0 -1
- package/web/chunk-1je4p601.js +0 -139
- package/web/chunk-1rjtqf8h.js +0 -2
- package/web/chunk-1y387f45.js +0 -1
- package/web/chunk-23258z1r.js +0 -1
- package/web/chunk-27592nd8.js +0 -36
- package/web/chunk-2hqmdqn3.js +0 -41
- package/web/chunk-2q79n966.js +0 -2
- package/web/chunk-2ws74tfa.js +0 -21
- package/web/chunk-2z8epr8f.js +0 -34
- package/web/chunk-4k62e61g.js +0 -291
- package/web/chunk-4z6wma3s.js +0 -78
- package/web/chunk-5wkqqa59.js +0 -1
- package/web/chunk-5yczs6sb.js +0 -1
- package/web/chunk-5yn7mwvt.js +0 -1
- package/web/chunk-705tkt2r.js +0 -1
- package/web/chunk-753qp8sa.js +0 -4
- package/web/chunk-76e3npmd.js +0 -2
- package/web/chunk-7p04dn0k.js +0 -1
- package/web/chunk-7qq1ypvj.js +0 -1
- package/web/chunk-7rb3v8gy.js +0 -1
- package/web/chunk-7yz88k97.js +0 -39
- package/web/chunk-85d7jkp0.js +0 -2
- package/web/chunk-90kgn35s.js +0 -1
- package/web/chunk-931y1g0h.js +0 -1
- package/web/chunk-at0xtfhy.js +0 -1
- package/web/chunk-bcp6na49.js +0 -1145
- package/web/chunk-bz1q7qdd.js +0 -8
- package/web/chunk-c0evk1xy.js +0 -1
- package/web/chunk-cge0cjfm.js +0 -2
- package/web/chunk-e9mmkrc3.js +0 -7
- package/web/chunk-f8nnrk6y.js +0 -292
- package/web/chunk-fcrswzgm.js +0 -106
- package/web/chunk-fw4fa7j6.js +0 -1
- package/web/chunk-fx8hheqz.js +0 -1
- package/web/chunk-gj16e7z0.js +0 -1
- package/web/chunk-h0c42zy3.js +0 -1
- package/web/chunk-h1y8y203.js +0 -1
- package/web/chunk-h6vy008x.js +0 -24
- package/web/chunk-h8mhnze5.js +0 -303
- package/web/chunk-j27mtdr2.js +0 -1
- package/web/chunk-jys02310.js +0 -1
- package/web/chunk-kew13yzg.js +0 -1
- package/web/chunk-kx5r8nf2.js +0 -1
- package/web/chunk-m7c0xk69.js +0 -1
- package/web/chunk-mrnx4f74.js +0 -70
- package/web/chunk-mtdsrtc5.js +0 -1
- package/web/chunk-n3spc397.js +0 -24
- package/web/chunk-nbcpbqq4.js +0 -1
- package/web/chunk-nhc280n0.js +0 -1
- package/web/chunk-nx1bcekh.js +0 -2
- package/web/chunk-p8t7s4z4.js +0 -1
- package/web/chunk-pgh1cx6w.js +0 -1
- package/web/chunk-qgzn0ha5.js +0 -89
- package/web/chunk-qtwxq6hj.js +0 -3
- package/web/chunk-qwp3dhmf.js +0 -1
- package/web/chunk-rjh54ygb.js +0 -120
- package/web/chunk-ryh8jdzy.js +0 -1
- package/web/chunk-s3t8dkkz.js +0 -1
- package/web/chunk-sk1w7f7h.js +0 -1
- package/web/chunk-smkrxjm5.js +0 -1
- package/web/chunk-sv5ph7fa.js +0 -1
- package/web/chunk-t9twxmsg.js +0 -1
- package/web/chunk-tfdchqn4.js +0 -62
- package/web/chunk-tvvggvjt.js +0 -169
- package/web/chunk-ty87gdvr.js +0 -1
- package/web/chunk-v16s0x7c.js +0 -1
- package/web/chunk-vgyp8wa2.js +0 -2
- package/web/chunk-vphzndz8.js +0 -2
- package/web/chunk-xtss82z2.js +0 -1
- package/web/chunk-y0mef85j.js +0 -1
- package/web/chunk-ym9qfsjs.js +0 -30
- package/web/chunk-ypdptddq.js +0 -1
- package/web/chunk-z08c63ph.js +0 -2
- package/web/chunk-z6x74qfh.js +0 -1
- package/web/chunk-z86pjpqp.js +0 -1
- package/web/chunk-zh0vjc6g.js +0 -1
- package/web/chunk-zns9wmab.js +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ms}from"./chunk-bdypt5mj.js";export{ms as createRadarServices};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gs}from"./chunk-bdypt5mj.js";export{gs as createCynefinServices};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{wa}from"./chunk-bdypt5mj.js";export{wa as createRailroadEbnfServices};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{h,o,v,i,r,m,e,n,y,lt}from"./chunk-bcp6na49.js";var V="__chat__";function M(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function L(t){let u=Number.isFinite(t)?Math.max(0,t):0;return Math.round(u).toLocaleString("en-US")}function P(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let c=Math.floor(t/1000),a=Math.floor(c/60),f=c%60;return f>0?`${a}m ${f}s`:`${a}m`}if(t<259200000){let c=Math.floor(t/60000),a=Math.floor(c/60),f=c%60;return f>0?`${a}h ${f}m`:`${a}h`}let u=Math.floor(t/3600000),g=Math.floor(u/24),p=u%24;return p>0?`${g}d ${p}h`:`${g}d`}function ae(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let p=t/3600000;return`${p>=10?Math.round(p).toString():p.toFixed(1).replace(/\.0$/,"")}h`}let u=t/86400000;return`${u>=10?Math.round(u).toString():u.toFixed(1).replace(/\.0$/,"")}d`}function B(t,u=1){if(!Number.isFinite(t)||t<=0)return"0%";let g=10**-u/100;if(t<g)return`<${(g*100).toFixed(u)}%`;return`${(t*100).toFixed(u)}%`}function Q(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function W(t){let u=t.split("-"),g=u[1],p=u[2];if(g!==void 0&&p!==void 0)return`${g}/${p}`;return t}function Z(t){let u=t.split("-"),g=u[0],p=u[1],c=u[2];if(g===void 0||p===void 0||c===void 0)return t;let a=Number(g),f=Number(p)-1,b=Number(c),w=new Date(Date.UTC(a,f,b)),C=["周日","周一","周二","周三","周四","周五","周六"],D=w.getUTCDay(),F=C[D]??"";return`${t} ${F}`}function se(t,u=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let g=Math.max(0,u-t);if(g<60000)return"刚刚";if(g<3600000)return`${Math.max(1,Math.floor(g/60000))} 分钟前`;if(g<86400000)return`${Math.max(1,Math.floor(g/3600000))} 小时前`;if(g<2592000000)return`${Math.max(1,Math.floor(g/86400000))} 天前`;let p=new Date(t),c=p.getFullYear(),a=String(p.getMonth()+1).padStart(2,"0"),f=String(p.getDate()).padStart(2,"0");return`${c}-${a}-${f}`}function K(t){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${t.percent}%`}})})}function Y(t){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:t.children})}function G(t){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:t.children})}function J(t){return n(G,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:M(t.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:M(t.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:M(t.stat.cacheReadTokens)}),t.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",B(t.cacheHitRate),")"]})]})]})}function oe(t){let{projects:u,selectedProjectID:g,onSelectProject:p}=t,{style:c}=y();if(u.length===0)return e("div",{className:c("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=a.projectID??V,b=g===f,w=Math.max(a.tokenShare>0?1:0,a.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate",children:a.name}),e("span",{className:c("control.badge","font-mono truncate max-w-[240px]"),title:a.directory||"未绑定项目目录",children:a.directory||"独立会话"}),e("button",{type:"button",onClick:()=>p(b?null:f),className:"rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:b?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:M(a.totalTokens)}),n("span",{className:"text-[11px] text-faint",children:["(",B(a.tokenShare),")"]})]})]}),e(K,{percent:w}),n(Y,{children:[e(J,{stat:a,cacheHitRate:a.cacheHitRate}),n(G,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:P(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:a.toolCalls.toLocaleString()})," 次"]})]})]})]},f)})})}function re(t){let{models:u}=t,{ModelIcon:g,style:p}=y();if(u.length===0)return e("div",{className:p("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(g,{modelID:c.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.shortName}),e("span",{className:p("control.badge","font-mono shrink-0"),children:c.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[c.avgTps!==null&&n("span",{className:"text-[11px] text-dim",children:[c.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:L(c.totalTokens),children:[M(c.totalTokens)," ",n("span",{className:"text-[11px] font-normal text-faint",children:["(",B(c.share),")"]})]})]})]}),e(K,{percent:a}),n(Y,{children:[e(J,{stat:c,cacheHitRate:c.cacheHitRate}),n(G,{children:[n("span",{children:[e("span",{className:"text-ink",children:c.turns.toLocaleString()})," 轮",c.errors>0?n("span",{className:"text-danger",children:[" (",c.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:c.toolCalls.toLocaleString()})," 次"]}),c.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:ae(c.generationMs)})]})]})]})]},c.model)})})}function ie(t){let{tools:u}=t,{StatusChip:g,style:p}=y();if(u.length===0)return e("div",{className:p("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100),f=c.successRate>=0.95?"success":c.successRate>=0.8?"warning":"danger",b=Math.max(0,c.calls-c.errors),w=c.calls>0?Math.round(c.outputBytes/c.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.name}),n(g,{tone:f,children:["成功率 ",B(c.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[c.calls.toLocaleString()," 次"]}),n("span",{className:"text-[11px] text-faint",children:["(",B(c.share),")"]})]})]}),e(K,{percent:a}),n(Y,{children:[n(G,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:b.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:c.errors>0?"text-danger":"text-ink",children:c.errors.toLocaleString()})," 次"]})]}),n(G,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:Q(c.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:Q(w)})]})]})]})]},c.name)})})}function le(t){let{sessions:u,onOpenSession:g}=t,{style:p}=y();if(u.length===0)return e("div",{className:p("surface.empty"),children:"暂无高消耗会话记录"});let c=Math.max(1,...u.map((a)=>a.totalTokens));return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=c>0?Math.max(1,a.totalTokens/c*100):0,b=a.model.split("/").pop()??a.model;return n("button",{type:"button",onClick:()=>g(a.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:a.title.trim()||"新会话"}),e("span",{className:p("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:a.projectName,children:a.projectName}),a.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-[10.5px] text-accent shrink-0",children:"子代理"}),a.archivedAt!==null&&e("span",{className:p("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:M(a.totalTokens)}),e(lt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(K,{percent:f}),n(Y,{children:[e(J,{stat:a}),n(G,{children:[e("span",{className:"text-ink",children:b}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:P(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:se(a.updated)})]})]})]},a.id)})})}var ce=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function ue(t){let{cn:u,Segmented:g,SettingGroup:p,style:c}=y(),{daily:a}=t,[f,b]=r("tokens"),[w,C]=r(null),D=v(()=>a.some((s)=>s.totalTokens>0||s.activeDurationMs>0||s.runs>0),[a]),F=v(()=>{if(a.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(f==="tokens"){let S=a.reduce((_,A)=>_+A.totalTokens,0),R=a.filter((_)=>_.totalTokens>0).length,N=a[0];for(let _ of a)if(!N||_.totalTokens>N.totalTokens)N=_;return{totalText:M(S),totalFullText:L(S),avgText:R>0?M(Math.round(S/R)):"0",peakDate:N&&N.totalTokens>0?W(N.date):"—",peakValueText:N&&N.totalTokens>0?M(N.totalTokens):"0"}}if(f==="duration"){let S=a.reduce((_,A)=>_+A.activeDurationMs,0),R=a.filter((_)=>_.activeDurationMs>0).length,N=a[0];for(let _ of a)if(!N||_.activeDurationMs>N.activeDurationMs)N=_;return{totalText:P(S),totalFullText:P(S),avgText:R>0?P(Math.round(S/R)):"0s",peakDate:N&&N.activeDurationMs>0?W(N.date):"—",peakValueText:N&&N.activeDurationMs>0?P(N.activeDurationMs):"0s"}}let s=a.reduce((S,R)=>S+R.assistantTurns,0),l=a.reduce((S,R)=>S+R.userMessages,0),x=s+l,T=a.filter((S)=>S.assistantTurns>0||S.userMessages>0).length,k=a[0];for(let S of a){let R=k?k.assistantTurns+k.userMessages:0;if(!k||S.assistantTurns+S.userMessages>R)k=S}let H=k?k.assistantTurns+k.userMessages:0;return{totalText:`${x.toLocaleString()} 轮`,totalFullText:`助手 ${s.toLocaleString()} 轮 · 用户 ${l.toLocaleString()} 问`,avgText:T>0?`${(x/T).toFixed(1)} 轮/天`:"0 轮/天",peakDate:k&&H>0?W(k.date):"—",peakValueText:k&&H>0?`${H.toLocaleString()} 轮`:"0 轮"}},[a,f]),j=v(()=>{if(w){let s=a.find((l)=>l.date===w);if(s)return s}for(let s=a.length-1;s>=0;s--){let l=a[s];if(l&&(l.totalTokens>0||l.activeDurationMs>0||l.runs>0))return l}return a[a.length-1]},[a,w]),z=v(()=>{if(f==="tokens")return Math.max(1,...a.map((s)=>s.totalTokens));if(f==="duration")return Math.max(1000,...a.map((s)=>s.activeDurationMs));return Math.max(1,...a.map((s)=>s.assistantTurns+s.userMessages))},[a,f]),d=v(()=>{if(a.length<=7)return a.map((x)=>x.date);let s=6,l=[];for(let x=0;x<s;x++){let T=Math.round(x*(a.length-1)/(s-1)),k=a[T];if(k)l.push(k.date)}return l},[a]);if(!D)return e(p,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:e("div",{className:c("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(p,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",e("span",{className:"text-ink",children:F.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:F.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:F.peakValueText}),F.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",F.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-[11px] text-dim",children:[f==="tokens"&&n(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"}),"输出"]})]}),f==="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"}),"模型推理"]})]}),f==="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-[10px] text-faint/60",children:[e("div",{className:"border-b border-line/40 w-full"}),e("div",{className:"border-b border-line/30 w-full"}),e("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>C(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:a.map((s)=>{let l=s.totalTokens;if(f==="duration")l=s.activeDurationMs;else if(f==="activity")l=s.assistantTurns+s.userMessages;let x=l<=0,T=x?0:Math.max(3,Math.min(100,l/z*100)),k=j?.date===s.date;return n("button",{type:"button","aria-label":`${s.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>C(s.date),onFocus:()=>C(s.date),onClick:()=>C(s.date),children:[e("div",{className:u("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",k?"bg-accent/10":"group-hover:bg-raised/60")}),x?e("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${T}%`},children:[f==="tokens"&&n(m,{children:[s.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.outputTokens/s.totalTokens*100}%`}}),s.inputTokens+s.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(s.inputTokens+s.cacheWriteTokens)/s.totalTokens*100}%`}}),s.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${s.cacheReadTokens/s.totalTokens*100}%`}})]}),f==="duration"&&n(m,{children:[s.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,s.generationMs/Math.max(1,s.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),f==="activity"&&n(m,{children:[s.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.userMessages/Math.max(1,s.assistantTurns+s.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),k&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},s.date)})}),e("div",{className:u("flex items-center pt-1.5 text-[10px] text-faint font-mono tabular-nums",a.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:d.map((s)=>e("div",{className:u("whitespace-nowrap",a.length<=7&&"flex-1 text-center"),children:W(s)},s))})]})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:j?n(m,{children:[e("span",{className:"text-ink",children:Z(j.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:M(j.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:P(j.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[j.assistantTurns+j.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[j.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function pe(t){let{cn:u,SettingGroup:g}=y(),{daily:p,hourly:c}=t,[a,f]=r(null),b=v(()=>{let l=new Map;for(let T of c)l.set(T.hour,T);let x=[];for(let T=0;T<24;T++){let k=l.get(T);if(k)x.push(k);else x.push({hour:T,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return x},[c]),w=v(()=>{let l=b[0];for(let x of b)if(!l||x.totalTokens>l.totalTokens)l=x;return l&&l.totalTokens>0?l:null},[b]),C=v(()=>b.reduce((l,x)=>l+x.totalTokens,0),[b]),D=v(()=>Math.max(1,...b.map((l)=>l.totalTokens)),[b]),F=v(()=>{if(C<=0)return 0;return b.filter((x)=>x.hour>=8&&x.hour<20).reduce((x,T)=>x+T.totalTokens,0)/C},[b,C]),j=v(()=>Math.max(1,...p.map((l)=>l.totalTokens)),[p]),z=v(()=>{let l=0,x=0;for(let T of p)if(T.totalTokens>0||T.activeDurationMs>0||T.runs>0){if(x++,x>l)l=x}else x=0;return l},[p]),d=v(()=>p.filter((l)=>l.totalTokens>0||l.activeDurationMs>0||l.runs>0).length,[p]),s=a!==null?b[a]:w;return n(g,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",B(F)]}),n("span",{children:["连续活跃 ",z," 天"]}),n("span",{children:["活跃 ",d,"/",p.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"text-dim",children:"24 小时分布"}),s?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[a!==null?"时段 ":"高峰 ",String(s.hour).padStart(2,"0"),":00 -"," ",String((s.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:M(s.totalTokens)}),s.activeDurationMs>0&&e("span",{children:P(s.activeDurationMs)})]}):e("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>f(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:b.map((l)=>{let x=w?.hour===l.hour,T=a===l.hour,k=l.totalTokens>0?Math.max(6,l.totalTokens/D*100):0,H=`${String(l.hour).padStart(2,"0")}:00 - ${String((l.hour+1)%24).padStart(2,"0")}:00
|
|
1
|
+
import{y,o,w,i,r,h,e,n,x,Nt}from"./chunk-fba06jm8.js";var V="__chat__";function S(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function L(t){let u=Number.isFinite(t)?Math.max(0,t):0;return Math.round(u).toLocaleString("en-US")}function P(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let c=Math.floor(t/1000),a=Math.floor(c/60),d=c%60;return d>0?`${a}m ${d}s`:`${a}m`}if(t<259200000){let c=Math.floor(t/60000),a=Math.floor(c/60),d=c%60;return d>0?`${a}h ${d}m`:`${a}h`}let u=Math.floor(t/3600000),v=Math.floor(u/24),p=u%24;return p>0?`${v}d ${p}h`:`${v}d`}function ae(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let p=t/3600000;return`${p>=10?Math.round(p).toString():p.toFixed(1).replace(/\.0$/,"")}h`}let u=t/86400000;return`${u>=10?Math.round(u).toString():u.toFixed(1).replace(/\.0$/,"")}d`}function B(t,u=1){if(!Number.isFinite(t)||t<=0)return"0%";let v=10**-u/100;if(t<v)return`<${(v*100).toFixed(u)}%`;return`${(t*100).toFixed(u)}%`}function Q(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function W(t){let u=t.split("-"),v=u[1],p=u[2];if(v!==void 0&&p!==void 0)return`${v}/${p}`;return t}function Z(t){let u=t.split("-"),v=u[0],p=u[1],c=u[2];if(v===void 0||p===void 0||c===void 0)return t;let a=Number(v),d=Number(p)-1,g=Number(c),M=new Date(Date.UTC(a,d,g)),C=["周日","周一","周二","周三","周四","周五","周六"],D=M.getUTCDay(),F=C[D]??"";return`${t} ${F}`}function se(t,u=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let v=Math.max(0,u-t);if(v<60000)return"刚刚";if(v<3600000)return`${Math.max(1,Math.floor(v/60000))} 分钟前`;if(v<86400000)return`${Math.max(1,Math.floor(v/3600000))} 小时前`;if(v<2592000000)return`${Math.max(1,Math.floor(v/86400000))} 天前`;let p=new Date(t),c=p.getFullYear(),a=String(p.getMonth()+1).padStart(2,"0"),d=String(p.getDate()).padStart(2,"0");return`${c}-${a}-${d}`}function K(t){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${t.percent}%`}})})}function Y(t){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:t.children})}function G(t){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:t.children})}function J(t){return n(G,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:S(t.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:S(t.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:S(t.stat.cacheReadTokens)}),t.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",B(t.cacheHitRate),")"]})]})]})}function oe(t){let{projects:u,selectedProjectID:v,onSelectProject:p}=t,{style:c}=x();if(u.length===0)return e("div",{className:c("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let d=a.projectID??V,g=v===d,M=Math.max(a.tokenShare>0?1:0,a.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate",children:a.name}),e("span",{className:c("control.badge","font-mono truncate max-w-[240px]"),title:a.directory||"未绑定项目目录",children:a.directory||"独立会话"}),e("button",{type:"button",onClick:()=>p(g?null:d),className:"rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:g?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),n("span",{className:"text-[11px] text-faint",children:["(",B(a.tokenShare),")"]})]})]}),e(K,{percent:M}),n(Y,{children:[e(J,{stat:a,cacheHitRate:a.cacheHitRate}),n(G,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:P(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:a.toolCalls.toLocaleString()})," 次"]})]})]})]},d)})})}function re(t){let{models:u}=t,{ModelIcon:v,style:p}=x();if(u.length===0)return e("div",{className:p("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(v,{modelID:c.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.shortName}),e("span",{className:p("control.badge","font-mono shrink-0"),children:c.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[c.avgTps!==null&&n("span",{className:"text-[11px] text-dim",children:[c.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:L(c.totalTokens),children:[S(c.totalTokens)," ",n("span",{className:"text-[11px] font-normal text-faint",children:["(",B(c.share),")"]})]})]})]}),e(K,{percent:a}),n(Y,{children:[e(J,{stat:c,cacheHitRate:c.cacheHitRate}),n(G,{children:[n("span",{children:[e("span",{className:"text-ink",children:c.turns.toLocaleString()})," 轮",c.errors>0?n("span",{className:"text-danger",children:[" (",c.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:c.toolCalls.toLocaleString()})," 次"]}),c.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:ae(c.generationMs)})]})]})]})]},c.model)})})}function ie(t){let{tools:u}=t,{StatusChip:v,style:p}=x();if(u.length===0)return e("div",{className:p("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100),d=c.successRate>=0.95?"success":c.successRate>=0.8?"warning":"danger",g=Math.max(0,c.calls-c.errors),M=c.calls>0?Math.round(c.outputBytes/c.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.name}),n(v,{tone:d,children:["成功率 ",B(c.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[c.calls.toLocaleString()," 次"]}),n("span",{className:"text-[11px] text-faint",children:["(",B(c.share),")"]})]})]}),e(K,{percent:a}),n(Y,{children:[n(G,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:g.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:c.errors>0?"text-danger":"text-ink",children:c.errors.toLocaleString()})," 次"]})]}),n(G,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:Q(c.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:Q(M)})]})]})]})]},c.name)})})}function le(t){let{sessions:u,onOpenSession:v}=t,{style:p}=x();if(u.length===0)return e("div",{className:p("surface.empty"),children:"暂无高消耗会话记录"});let c=Math.max(1,...u.map((a)=>a.totalTokens));return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let d=c>0?Math.max(1,a.totalTokens/c*100):0,g=a.model.split("/").pop()??a.model;return n("button",{type:"button",onClick:()=>v(a.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:a.title.trim()||"新会话"}),e("span",{className:p("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:a.projectName,children:a.projectName}),a.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-[10.5px] text-accent shrink-0",children:"子代理"}),a.archivedAt!==null&&e("span",{className:p("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),e(Nt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(K,{percent:d}),n(Y,{children:[e(J,{stat:a}),n(G,{children:[e("span",{className:"text-ink",children:g}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:P(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:se(a.updated)})]})]})]},a.id)})})}var ce=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function ue(t){let{cn:u,Segmented:v,SettingGroup:p,style:c}=x(),{daily:a}=t,[d,g]=r("tokens"),[M,C]=r(null),D=w(()=>a.some((s)=>s.totalTokens>0||s.activeDurationMs>0||s.runs>0),[a]),F=w(()=>{if(a.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(d==="tokens"){let N=a.reduce((_,A)=>_+A.totalTokens,0),R=a.filter((_)=>_.totalTokens>0).length,T=a[0];for(let _ of a)if(!T||_.totalTokens>T.totalTokens)T=_;return{totalText:S(N),totalFullText:L(N),avgText:R>0?S(Math.round(N/R)):"0",peakDate:T&&T.totalTokens>0?W(T.date):"—",peakValueText:T&&T.totalTokens>0?S(T.totalTokens):"0"}}if(d==="duration"){let N=a.reduce((_,A)=>_+A.activeDurationMs,0),R=a.filter((_)=>_.activeDurationMs>0).length,T=a[0];for(let _ of a)if(!T||_.activeDurationMs>T.activeDurationMs)T=_;return{totalText:P(N),totalFullText:P(N),avgText:R>0?P(Math.round(N/R)):"0s",peakDate:T&&T.activeDurationMs>0?W(T.date):"—",peakValueText:T&&T.activeDurationMs>0?P(T.activeDurationMs):"0s"}}let s=a.reduce((N,R)=>N+R.assistantTurns,0),l=a.reduce((N,R)=>N+R.userMessages,0),f=s+l,k=a.filter((N)=>N.assistantTurns>0||N.userMessages>0).length,b=a[0];for(let N of a){let R=b?b.assistantTurns+b.userMessages:0;if(!b||N.assistantTurns+N.userMessages>R)b=N}let H=b?b.assistantTurns+b.userMessages:0;return{totalText:`${f.toLocaleString()} 轮`,totalFullText:`助手 ${s.toLocaleString()} 轮 · 用户 ${l.toLocaleString()} 问`,avgText:k>0?`${(f/k).toFixed(1)} 轮/天`:"0 轮/天",peakDate:b&&H>0?W(b.date):"—",peakValueText:b&&H>0?`${H.toLocaleString()} 轮`:"0 轮"}},[a,d]),j=w(()=>{if(M){let s=a.find((l)=>l.date===M);if(s)return s}for(let s=a.length-1;s>=0;s--){let l=a[s];if(l&&(l.totalTokens>0||l.activeDurationMs>0||l.runs>0))return l}return a[a.length-1]},[a,M]),z=w(()=>{if(d==="tokens")return Math.max(1,...a.map((s)=>s.totalTokens));if(d==="duration")return Math.max(1000,...a.map((s)=>s.activeDurationMs));return Math.max(1,...a.map((s)=>s.assistantTurns+s.userMessages))},[a,d]),m=w(()=>{if(a.length<=7)return a.map((f)=>f.date);let s=6,l=[];for(let f=0;f<s;f++){let k=Math.round(f*(a.length-1)/(s-1)),b=a[k];if(b)l.push(b.date)}return l},[a]);if(!D)return e(p,{title:"每日趋势",action:e(v,{value:d,onChange:(s)=>g(s),options:ce}),children:e("div",{className:c("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(p,{title:"每日趋势",action:e(v,{value:d,onChange:(s)=>g(s),options:ce}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",e("span",{className:"text-ink",children:F.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:F.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:F.peakValueText}),F.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",F.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-[11px] text-dim",children:[d==="tokens"&&n(h,{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"}),"输出"]})]}),d==="duration"&&n(h,{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"}),"模型推理"]})]}),d==="activity"&&n(h,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"助手回复"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"用户提问"]})]})]})]}),n("div",{className:"relative h-44 w-full pt-1",children:[n("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-5 text-[10px] text-faint/60",children:[e("div",{className:"border-b border-line/40 w-full"}),e("div",{className:"border-b border-line/30 w-full"}),e("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>C(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:a.map((s)=>{let l=s.totalTokens;if(d==="duration")l=s.activeDurationMs;else if(d==="activity")l=s.assistantTurns+s.userMessages;let f=l<=0,k=f?0:Math.max(3,Math.min(100,l/z*100)),b=j?.date===s.date;return n("button",{type:"button","aria-label":`${s.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>C(s.date),onFocus:()=>C(s.date),onClick:()=>C(s.date),children:[e("div",{className:u("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",b?"bg-accent/10":"group-hover:bg-raised/60")}),f?e("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${k}%`},children:[d==="tokens"&&n(h,{children:[s.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.outputTokens/s.totalTokens*100}%`}}),s.inputTokens+s.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(s.inputTokens+s.cacheWriteTokens)/s.totalTokens*100}%`}}),s.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${s.cacheReadTokens/s.totalTokens*100}%`}})]}),d==="duration"&&n(h,{children:[s.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,s.generationMs/Math.max(1,s.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),d==="activity"&&n(h,{children:[s.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.userMessages/Math.max(1,s.assistantTurns+s.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),b&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},s.date)})}),e("div",{className:u("flex items-center pt-1.5 text-[10px] text-faint font-mono tabular-nums",a.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:m.map((s)=>e("div",{className:u("whitespace-nowrap",a.length<=7&&"flex-1 text-center"),children:W(s)},s))})]})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:j?n(h,{children:[e("span",{className:"text-ink",children:Z(j.date)}),n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 text-dim",children:[n("span",{children:["Token ",e("span",{className:"text-ink",children:S(j.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:P(j.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[j.assistantTurns+j.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[j.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function pe(t){let{cn:u,SettingGroup:v}=x(),{daily:p,hourly:c}=t,[a,d]=r(null),g=w(()=>{let l=new Map;for(let k of c)l.set(k.hour,k);let f=[];for(let k=0;k<24;k++){let b=l.get(k);if(b)f.push(b);else f.push({hour:k,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return f},[c]),M=w(()=>{let l=g[0];for(let f of g)if(!l||f.totalTokens>l.totalTokens)l=f;return l&&l.totalTokens>0?l:null},[g]),C=w(()=>g.reduce((l,f)=>l+f.totalTokens,0),[g]),D=w(()=>Math.max(1,...g.map((l)=>l.totalTokens)),[g]),F=w(()=>{if(C<=0)return 0;return g.filter((f)=>f.hour>=8&&f.hour<20).reduce((f,k)=>f+k.totalTokens,0)/C},[g,C]),j=w(()=>Math.max(1,...p.map((l)=>l.totalTokens)),[p]),z=w(()=>{let l=0,f=0;for(let k of p)if(k.totalTokens>0||k.activeDurationMs>0||k.runs>0){if(f++,f>l)l=f}else f=0;return l},[p]),m=w(()=>p.filter((l)=>l.totalTokens>0||l.activeDurationMs>0||l.runs>0).length,[p]),s=a!==null?g[a]:M;return n(v,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",B(F)]}),n("span",{children:["连续活跃 ",z," 天"]}),n("span",{children:["活跃 ",m,"/",p.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"text-dim",children:"24 小时分布"}),s?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[a!==null?"时段 ":"高峰 ",String(s.hour).padStart(2,"0"),":00 -"," ",String((s.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:S(s.totalTokens)}),s.activeDurationMs>0&&e("span",{children:P(s.activeDurationMs)})]}):e("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>d(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:g.map((l)=>{let f=M?.hour===l.hour,k=a===l.hour,b=l.totalTokens>0?Math.max(6,l.totalTokens/D*100):0,H=`${String(l.hour).padStart(2,"0")}:00 - ${String((l.hour+1)%24).padStart(2,"0")}:00
|
|
2
2
|
消耗: ${L(l.totalTokens)} Token
|
|
3
3
|
耗时: ${P(l.activeDurationMs)}
|
|
4
|
-
助手轮次: ${l.assistantTurns} 轮`;return e("button",{type:"button","aria-label":`${String(l.hour).padStart(2,"0")}:00 时段统计`,className:"flex-1 h-full flex flex-col justify-end items-center group relative cursor-pointer bg-transparent p-0 border-0 focus:outline-hidden",title:H,onMouseEnter:()=>
|
|
4
|
+
助手轮次: ${l.assistantTurns} 轮`;return e("button",{type:"button","aria-label":`${String(l.hour).padStart(2,"0")}:00 时段统计`,className:"flex-1 h-full flex flex-col justify-end items-center group relative cursor-pointer bg-transparent p-0 border-0 focus:outline-hidden",title:H,onMouseEnter:()=>d(l.hour),onFocus:()=>d(l.hour),onClick:()=>d(l.hour),children:b>0?e("div",{className:u("w-full max-w-[20px] rounded-t-xs transition-all duration-200",f||k?"bg-accent":"bg-accent/55 group-hover:bg-accent"),style:{height:`${b}%`}}):e("div",{className:"h-1 w-full max-w-[20px] rounded-full bg-raised group-hover:bg-dim/30"})},l.hour)})}),n("div",{className:"flex justify-between items-center text-[10px] text-faint font-mono pt-1.5 border-t border-line/40",children:[e("span",{children:"00:00"}),e("span",{children:"04:00"}),e("span",{children:"08:00"}),e("span",{children:"12:00"}),e("span",{children:"16:00"}),e("span",{children:"20:00"}),e("span",{children:"23:00"})]})]})]}),n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"text-xs text-dim",children:["自然日热力 (",p.length," 天)"]}),e("div",{className:"flex flex-wrap items-center gap-1.5",children:p.map((l)=>{let f="bg-raised";if(l.totalTokens>0){let b=l.totalTokens/j;if(b<=0.33)f="bg-accent/30";else if(b<=0.66)f="bg-accent/60";else f="bg-accent"}let k=`${Z(l.date)}
|
|
5
5
|
消耗: ${L(l.totalTokens)} Token
|
|
6
6
|
耗时: ${P(l.activeDurationMs)}
|
|
7
|
-
助手轮次: ${l.assistantTurns} 轮`;return e("div",{className:u("size-3.5 rounded-xs transition-transform hover:scale-125 cursor-pointer",
|
|
7
|
+
助手轮次: ${l.assistantTurns} 轮`;return e("div",{className:u("size-3.5 rounded-xs transition-transform hover:scale-125 cursor-pointer",f),title:k},l.date)})})]})]})}var xe=[{value:"7d",label:"近 7 天"},{value:"30d",label:"近 30 天"},{value:"90d",label:"近 90 天"},{value:"all",label:"全部"}],q=new Map,me=[];function X(t,u){return`${t}:${u??"all"}`}function Le(t){let{connection:u,onOpen:v}=t,{Button:p,PageLayout:c,Segmented:a,SettingGroup:d,style:g}=x(),[M,C]=r("30d"),[D,F]=r(null),[j,z]=r("projects"),[m,s]=r(()=>q.get(X("30d",null))??null),[l,f]=r(()=>!q.has(X("30d",null))),[k,b]=r(null),[H,N]=r(()=>me),R=i(0),T=y(async()=>{let A=++R.current,O=X(M,D),ee=q.get(O);if(ee)s(ee);f(!0);try{let E=new URLSearchParams({range:M,tzOffset:String(new Date().getTimezoneOffset())});if(D)E.set("projectID",D);let U=await u.request(`/api/stats?${E.toString()}`);if(A!==R.current)return;if(q.set(O,U),s(U),b(null),U.projects)N((de)=>{let te=new Map(de.map((I)=>[I.id,I.name]));for(let I of U.projects)if(I.projectID)te.set(I.projectID,I.name);let ne=Array.from(te.entries()).map(([I,fe])=>({id:I,name:fe}));return me=ne,ne})}catch(E){if(A===R.current)b(E instanceof Error?E.message:"加载统计数据失败")}finally{if(A===R.current)f(!1)}},[u,M,D]);o(()=>(T(),()=>{R.current++}),[T]);let _=w(()=>{if(!D)return null;if(D===V)return"独立聊天";return(H.find((O)=>O.id===D)??m?.projects.find((O)=>O.projectID===D))?.name??"指定项目"},[D,H,m]);return n(c,{title:_?n(h,{children:["统计 ",n("span",{className:"text-dim",children:["· ",_]})]}):"统计",description:"按项目、模型与工具统计活跃耗时与 Token 消耗。",actions:n(h,{children:[D&&e(p,{size:"sm",variant:"ghost",onClick:()=>F(null),children:"返回全部"}),e(a,{value:M,onChange:C,options:xe})]}),children:[k&&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:k}),e(p,{size:"sm",variant:"ghost",onClick:()=>{T()},className:"text-danger hover:text-danger",children:"重试"})]}),l&&!m?e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在加载统计…"}):!m?e("div",{className:g("surface.card","p-12 text-center text-sm text-dim"),children:"暂无统计数据"}):n("div",{className:"space-y-8",children:[e(d,{title:"核心总览",unboxed:!0,children:n("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[n("div",{className:g("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:["缓存命中 ",B(m.overview.cacheHitRate)]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",title:`${L(m.overview.totalTokens)} Token`,children:S(m.overview.totalTokens)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:["输入 ",S(m.overview.inputTokens)]}),n("span",{children:["输出 ",S(m.overview.outputTokens)]}),n("span",{children:["缓存读 ",S(m.overview.cacheReadTokens)]})]})]}),n("div",{className:g("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:["日均"," ",m.overview.activeDays>0?P(m.overview.activeDurationMs/m.overview.activeDays):"0s"]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:P(m.overview.activeDurationMs)}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:["模型推理 ",P(m.overview.generationMs)]}),n("span",{children:["并发累计 ",P(m.overview.cumulativeRunDurationMs)]})]})]}),n("div",{className:g("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:[m.overview.activeProjects,"/",m.overview.totalProjects," 活跃项目"]})]}),n("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:[m.overview.sessionCount.toLocaleString()," 个会话"]}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:[m.overview.mainSessionCount," 主会话 / ",m.overview.subSessionCount," 子代理"]}),n("span",{children:[m.overview.userMessages," 提问 / ",m.overview.assistantTurns," 回复"]})]})]}),n("div",{className:g("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:[m.overview.compactions," 次折叠"]})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tracking-tight text-ink tabular-nums",children:m.overview.avgTps!==null?`${m.overview.avgTps.toFixed(1)} tok/s`:`${m.overview.toolCalls.toLocaleString()} 次调用`}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:[n("span",{children:[m.overview.toolCalls.toLocaleString()," 次工具调用"]}),n("span",{children:[m.overview.runCount.toLocaleString()," 次运行"]})]})]})]})}),e(ue,{daily:m.daily}),e(pe,{daily:m.daily,hourly:m.hourly}),e(d,{title:"分类明细",action:e(a,{value:j,onChange:z,options:[{value:"projects",label:`项目消耗 (${m.projects.length})`},{value:"models",label:`模型分析 (${m.models.length})`},{value:"tools",label:`工具调用 (${m.tools.length})`},{value:"sessions",label:`高消耗会话 (${m.topSessions.length})`}]}),children:n("div",{className:"animate-fade",children:[j==="projects"&&e(oe,{projects:m.projects,selectedProjectID:D,onSelectProject:F,onOpenSession:v}),j==="models"&&e(re,{models:m.models}),j==="tools"&&e(ie,{tools:m.tools}),j==="sessions"&&e(le,{sessions:m.topSessions,onOpenSession:v})]},j)})]})]})}export{Le as StatsPage};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Sl}from"./chunk-fba06jm8.js";export{Sl as QuestionDock};
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h,e,n,x,s,be,Qn,ie}from"./chunk-fba06jm8.js";var u=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]],d=s("chart-spline",u);function Ai(t){let i=x();i.useTheme();let[m,c]=r("preview"),o=t.streaming&&!t.rendered,l=!t.streaming&&!t.rendered&&Boolean(t.error),a=m==="code"||o;return n(i.Panel,{"aria-label":t.title,"data-render-pending":t.pending&&!l?"true":void 0,className:"group/graph relative my-4 font-sans not-italic first:mt-0 last:mb-0",children:[e("div",{role:"toolbar","aria-label":`${t.title}操作`,className:o?"absolute top-2 right-2 z-10 flex items-center":i.style("surface.toolbarFloating","absolute top-2 right-2 z-10 opacity-0 transition-opacity duration-150 group-hover/graph:opacity-100 focus-within:opacity-100 [@media(hover:none)]:opacity-70"),children:o?n("span",{className:i.style("control.badge","gap-1.5 rounded-full px-2 py-0.5 text-[11px]"),children:[e(ie,{className:"size-3 animate-spin"}),"生成",t.title]}):n(h,{children:[e("button",{type:"button","aria-label":a?"查看图表":"查看代码",title:a?"查看图表":"查看代码",onClick:()=>c(a?"preview":"code"),className:"flex size-6 items-center justify-center rounded-md text-dim hover:bg-raised hover:text-ink [&_svg]:size-3.5",children:a?e(d,{}):e(Qn,{})}),e(i.CopyButton,{text:t.code,size:"icon-sm",label:"复制代码"})]})}),a&&e(i.Code,{code:t.code,lang:t.codeLang,className:"px-4 py-3"}),l&&!a&&n("div",{role:"alert",className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:[e(be,{className:"size-5 text-warning"}),e("p",{className:"max-w-full text-xs break-words text-dim",children:t.error}),e("button",{type:"button",onClick:()=>c("code"),className:"text-xs text-accent-strong underline underline-offset-2",children:"查看代码"})]}),e("div",{hidden:a||l,children:t.children})]})}
|
|
2
|
+
export{Ai};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{hs}from"./chunk-bdypt5mj.js";export{hs as createWardleyServices};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./chunk-fzmrnh17.js";var vr=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};
|
|
2
|
+
export{vr};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_e,Ns,St,Nr,ll,fo,Mn,Kr,yt,Wa,bi,Qr,cl,Ms,Jr}from"./chunk-fzmrnh17.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<yt)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)/Kr(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)*Kr(ll(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 mn(){var l=Z,d=k,q=_e(0),P=null,x=b,h=_,S=nn,r=null,D=Jr(a);function a(){var n,y,u=+l.apply(this,arguments),s=+d.apply(this,arguments),t=x.apply(this,arguments)-bi,f=h.apply(this,arguments)-bi,j=Ns(f-t),o=f>t;if(!r)r=n=D();if(s<u)y=s,s=u,u=y;if(!(s>yt))r.moveTo(0,0);else if(j>Qr-yt){if(r.moveTo(s*Nr(t),s*Mn(t)),r.arc(0,0,s,t,f,!o),u>yt)r.moveTo(u*Nr(f),u*Mn(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>yt&&(P?+P.apply(this,arguments):Kr(u*u+s*s)),T=fo(Ns(s-u)/2,+q.apply(this,arguments)),m=T,p=T,e,i;if(O>yt){var z=Ms(O/u*Mn(I)),F=Ms(O/s*Mn(I));if((R-=z*2)>yt)z*=o?1:-1,v+=z,A-=z;else R=0,v=A=(t+f)/2;if((E-=F*2)>yt)F*=o?1:-1,g+=F,c-=F;else E=0,g=c=(t+f)/2}var B=s*Nr(g),C=s*Mn(g),G=u*Nr(A),H=u*Mn(A);if(T>yt){var J=s*Nr(c),K=s*Mn(c),M=u*Nr(v),N=u*Mn(v),w;if(j<Wa)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/Mn(cl((Q*V+U*W)/(Kr(Q*Q+U*U)*Kr(V*V+W*W)))/2),Y=Kr(w[0]*w[0]+w[1]*w[1]);m=fo(T,(u-Y)/(X-1)),p=fo(T,(s-Y)/(X+1))}else m=p=0}if(!(E>yt))r.moveTo(B,C);else if(p>yt)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,St(e.y01,e.x01),St(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,p,St(e.y01,e.x01),St(e.y11,e.x11),!o),r.arc(0,0,s,St(e.cy+e.y11,e.cx+e.x11),St(i.cy+i.y11,i.cx+i.x11),!o),r.arc(i.cx,i.cy,p,St(i.y11,i.x11),St(i.y01,i.x01),!o);else r.moveTo(B,C),r.arc(0,0,s,g,c,!o);if(!(u>yt)||!(R>yt))r.lineTo(G,H);else if(m>yt)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,St(e.y01,e.x01),St(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,m,St(e.y01,e.x01),St(e.y11,e.x11),!o),r.arc(0,0,u,St(e.cy+e.y11,e.cx+e.x11),St(i.cy+i.y11,i.cx+i.x11),o),r.arc(i.cx,i.cy,m,St(i.y11,i.x11),St(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-Wa/2;return[Nr(y)*n,Mn(y)*n]},a.innerRadius=function(n){return arguments.length?(l=typeof n==="function"?n:_e(+n),a):l},a.outerRadius=function(n){return arguments.length?(d=typeof n==="function"?n:_e(+n),a):d},a.cornerRadius=function(n){return arguments.length?(q=typeof n==="function"?n:_e(+n),a):q},a.padRadius=function(n){return arguments.length?(P=n==null?null:typeof n==="function"?n:_e(+n),a):P},a.startAngle=function(n){return arguments.length?(x=typeof n==="function"?n:_e(+n),a):x},a.endAngle=function(n){return arguments.length?(h=typeof n==="function"?n:_e(+n),a):h},a.padAngle=function(n){return arguments.length?(S=typeof n==="function"?n:_e(+n),a):S},a.context=function(n){return arguments.length?(r=n==null?null:n,a):r},a}
|
|
2
|
+
export{mn};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function C(t){return Math.abs(t=Math.round(t))>=1000000000000000000000?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function g(t,r){if(!isFinite(t)||t===0)return null;var i=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"),e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function
|
|
1
|
+
function C(t){return Math.abs(t=Math.round(t))>=1000000000000000000000?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function g(t,r){if(!isFinite(t)||t===0)return null;var i=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"),e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function En(t){return t=g(Math.abs(t)),t?t[1]:NaN}function G(t,r){return function(i,e){var o=i.length,a=[],c=0,u=t[0],M=0;while(o>0&&u>0){if(M+u+1>e)u=Math.max(1,e-M);if(a.push(i.substring(o-=u,o+u)),(M+=u+1)>e)break;u=t[c=(c+1)%t.length]}return a.reverse().join(r)}}function I(t){return function(r){return r.replace(/[0-9]/g,function(i){return t[+i]})}}var tt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xr(t){if(!(r=tt.exec(t)))throw Error("invalid format: "+t);var r;return new E({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}xr.prototype=E.prototype;function E(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}E.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function R(t){t:for(var r=t.length,i=1,e=-1,o;i<r;++i)switch(t[i]){case".":e=o=i;break;case"0":if(e===0)e=i;o=i;break;default:if(!+t[i])break t;if(e>0)e=0;break}return e>0?t.slice(0,e)+t.slice(o+1):t}var P;function X(t,r){var i=g(t,r);if(!i)return P=void 0,t.toPrecision(r);var e=i[0],o=i[1],a=o-(P=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=e.length;return a===c?e:a>c?e+Array(a-c+1).join("0"):a>0?e.slice(0,a)+"."+e.slice(a):"0."+Array(1-a).join("0")+g(t,Math.max(0,r+a-1))[0]}function F(t,r){var i=g(t,r);if(!i)return t+"";var e=i[0],o=i[1];return o<0?"0."+Array(-o).join("0")+e:e.length>o+1?e.slice(0,o+1)+"."+e.slice(o+1):e+Array(o-e.length+2).join("0")}var O={"%":(t,r)=>(t*100).toFixed(r),b:(t)=>Math.round(t).toString(2),c:(t)=>t+"",d:C,e:(t,r)=>t.toExponential(r),f:(t,r)=>t.toFixed(r),g:(t,r)=>t.toPrecision(r),o:(t)=>Math.round(t).toString(8),p:(t,r)=>F(t*100,r),r:F,s:X,X:(t)=>Math.round(t).toString(16).toUpperCase(),x:(t)=>Math.round(t).toString(16)};function N(t){return t}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function U(t){var r=t.grouping===void 0||t.thousands===void 0?N:G(K.call(t.grouping,Number),t.thousands+""),i=t.currency===void 0?"":t.currency[0]+"",e=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?N:I(K.call(t.numerals,String)),c=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"−":t.minus+"",M=t.nan===void 0?"NaN":t.nan+"";function Z(f,p){f=xr(f);var y=f.fill,w=f.align,s=f.sign,S=f.symbol,k=f.zero,L=f.width,T=f.comma,x=f.precision,q=f.trim,m=f.type;if(m==="n")T=!0,m="g";else if(!O[m])x===void 0&&(x=12),q=!0,m="g";if(k||y==="0"&&w==="=")k=!0,y="0",w="=";var W=(p&&p.prefix!==void 0?p.prefix:"")+(S==="$"?i:S==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():""),_=(S==="$"?e:/[%p]/.test(m)?c:"")+(p&&p.suffix!==void 0?p.suffix:""),B=O[m],v=/[defgprs%]/.test(m);x=x===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function H(n){var l=W,d=_,b,J,z;if(m==="c")d=B(n)+d,n="";else{n=+n;var A=n<0||1/n<0;if(n=isNaN(n)?M:B(Math.abs(n),x),q)n=R(n);if(A&&+n===0&&s!=="+")A=!1;if(l=(A?s==="("?s:u:s==="-"||s==="("?"":s)+l,d=(m==="s"&&!isNaN(n)&&P!==void 0?Q[8+P/3]:"")+d+(A&&s==="("?")":""),v){b=-1,J=n.length;while(++b<J)if(z=n.charCodeAt(b),48>z||z>57){d=(z===46?o+n.slice(b+1):n.slice(b))+d,n=n.slice(0,b);break}}}if(T&&!k)n=r(n,1/0);var j=l.length+n.length+d.length,h=j<L?Array(L-j+1).join(y):"";if(T&&k)n=r(h+n,h.length?L-d.length:1/0),h="";switch(w){case"<":n=l+n+d+h;break;case"=":n=l+h+n+d;break;case"^":n=h.slice(0,j=h.length>>1)+l+n+d+h.slice(j);break;default:n=h+l+n+d;break}return a(n)}return H.toString=function(){return f+""},H}function V(f,p){var y=Math.max(-8,Math.min(8,Math.floor(En(p)/3)))*3,w=Math.pow(10,-y),s=Z((f=xr(f),f.type="f",f),{suffix:Q[8+y/3]});return function(S){return s(w*S)}}return{format:Z,formatPrefix:V}}var D,An,Ui;Y({thousands:",",grouping:[3],currency:["$",""]});function Y(t){return D=U(t),An=D.format,Ui=D.formatPrefix,D}export{En,xr,An,Ui};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{re}from"./chunk-js8dvtfg.js";import{t,a,B,S,U,A,R,I,L,D,P,N,u,Ua,f,Or,Ci,X}from"./chunk-fzmrnh17.js";import{ui,me}from"./chunk-bdypt5mj.js";var H="position frame",_="frame positioned",F="position relation",G="relation positioned",pe=t(function(e){a.debug("options str",e)},"setOptions"),ve=t(function(){return{}},"getOptions"),be=t(function(){V(),A()},"clear");function V(){M={}}t(V,"reset");var we=B.eventmodeling,ye=t(()=>X({...we,...S().eventmodeling}),"getConfig"),M={};function j(){let e=Pe,{ast:i}=M,n=C();if(!i)throw Error("No data for EventModel");return i.frames.forEach((r,o)=>{let s=Z(r,i.dataEntities,n);e=y(e,{$kind:H,index:o,frame:r,textProps:s});let l=void 0;if(oe(r))a.debug("source frame",r.sourceFrames),l=i.frames.filter((c)=>r.sourceFrames.some((m)=>m.$refText===c.name)),l.forEach((c)=>{e=y(e,{$kind:F,index:o,frame:r,sourceFrame:c})});else e=y(e,{$kind:F,index:o,frame:r})}),e={...e,sortedSwimlanesArray:O(e.swimlanes)},e}t(j,"getState");function Y(e){M.ast=void 0;let i=new Set;for(let n of e.frames){if(i.has(n.name)){let r=n.$cstNode?.range.start.line,o=r===void 0?"":` on line ${r+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${o}`)}i.add(n.name)}M.ast=e}t(Y,"setAst");var d={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function C(){return d}t(C,"getDiagramProps");var Pe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function z(e){let i=e.split(".");if(i.length===2)return i[0];return}t(z,"extractNamespace");function K(e){let i=e.split(".");if(i.length===2)return i[1];return e}t(K,"extractName");function q(e,i){if(!i||i.length===0)return;return Object.values(e).find((n)=>n.namespace===i)}t(q,"findSwimlaneByNamespace");function w(e,i,n){return Math.max(i,...Object.keys(e).filter((r)=>{let o=Number.parseInt(r);return o>i&&o<n}).map((r)=>Number.parseInt(r)))+1}t(w,"findNextAvailableIndex");function J(e,i){let n=z(e.entityIdentifier),r=q(i,n);switch(e.modelEntityType){case"ui":case"pcr":case"processor":if(r)return{index:r.index,label:r.namespace||d.labelUiAutomation};else if(n)return{index:w(i,0,100),label:d.labelUiAutomationPrefix+n};return{index:0,label:d.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(r)return{index:r.index,label:r.namespace||d.labelCommandReadModel};else if(n)return{index:w(i,100,200),label:d.labelCommandReadModelPrefix+n};return{index:100,label:d.labelCommandReadModel};case"evt":case"event":default:if(r)return{index:r.index,label:r.namespace||d.labelEvents};else if(n)return{index:w(i,200,300),label:d.labelEventsPrefix+n};return{index:200,label:d.labelEvents}}}t(J,"calculateSwimlaneProps");function Q(e){let{themeVariables:i}=S();switch(e.modelEntityType){case"ui":return{fill:i.emUiFill??"white",stroke:i.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:i.emProcessorFill??"#edb3f6",stroke:i.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:i.emReadModelFill??"#d3f1a2",stroke:i.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:i.emCommandFill??"#bcd6fe",stroke:i.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:i.emEventFill??"#ffb778",stroke:i.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}t(Q,"calculateEntityVisualProps");function Z(e,i,n){let r=S(),o=U(K(e.entityIdentifier)??"",r),s,l={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},m=`<b>${Or(o,n.textMaxWidth,l)}</b>`;if(e.dataInlineValue)s=e.dataInlineValue,s=s.substring(s.indexOf("{")+1),s=s.substring(0,s.lastIndexOf("}")-1),s=U(s,r),s=Or(s,n.textMaxWidth,l),s=s.replaceAll(" "," ");if(e.dataReference){let b=i.find((k)=>k.name===e.dataReference?.$refText);if(b)s=b.dataBlockValue,s=s.substring(s.indexOf(`{
|
|
2
|
+
`)+2),s=s.substring(0,s.lastIndexOf("}")-1),s=U(s,r),s=Or(s,n.textMaxWidth,l),s=s.replaceAll(" "," "),s+="<br/>"}let x=s!==void 0;if(x)m+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${s}</code>`;let h={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},g=Ci(m,h),v=x?g.width/3:g.width,p={content:m,width:v,height:g.height};return a.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}t(Z,"calculateTextProps");function ee(e,i){let n=i,r=Q(n.frame),o={width:n.textProps.width+2*d.boxTextPadding,height:n.textProps.height+2*d.boxTextPadding};return[{$kind:_,frame:n.frame,index:n.index,visual:r,dimension:o,textProps:n.textProps}]}t(ee,"decidePositionFrame");function te(e,i,n){if(i===void 0)return d.contentStartX;if(i.index===e.index&&e.r)return e.r+d.boxPadding;if(n===void 0)return d.contentStartX;return n.r-d.boxOverlap+d.boxPadding}t(te,"calculateX");function ne(e,i){let n=[...e.map((r)=>r.r),i];return Math.max(...n)}t(ne,"calculateMaxRight");function O(e){return Object.values(e).sort((i,n)=>i.index-n.index)}t(O,"sortedSwimlanesArray");function ie(e,i){let n=i,r=J(n.frame,e.swimlanes),o;if(r.index in e.swimlanes)o=e.swimlanes[r.index];else o={index:r.index,label:r.label,r:0,y:r.index*d.swimlaneMinHeight+d.swimlaneGap,height:d.swimlaneMinHeight,maxHeight:d.swimlaneMinHeight};let s=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,l=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,c={width:Math.max(d.boxMinWidth,Math.min(d.boxMaxWidth,n.dimension.width))+2*d.boxPadding,height:Math.max(d.boxMinHeight,Math.min(d.boxMaxHeight,n.dimension.height))+2*d.boxPadding},m=te(o,l,s),x=m+c.width+d.boxPadding,h=ne(Object.values(e.swimlanes),x);o.r=m+c.width,o.maxHeight=Math.max(o.maxHeight,c.height),o.height=Math.max(d.swimlaneMinHeight,o.maxHeight)+2*d.swimlanePadding;let g={x:m,y:d.swimlanePadding+o.y,r:x,dimension:c,leftSibling:!1,swimlane:o,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},v={...e,boxes:[...e.boxes,g],swimlanes:{...e.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:h},p=O(v.swimlanes);if(p.length>0)p[0].y=0;for(let b=1;b<p.length;b++){let k=p[b],W=p[b-1];k.y=W.y+W.height+d.swimlaneGap}return v}t(ie,"evolveFramePositioned");function ae(e,i){if(e===0&&i.sourceFrames.length===0)return!0;return!1}t(ae,"isFirstFrame");function oe(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}t(oe,"hasSourceFrame");function E(e,i){if(i===void 0||i===null)return;return e.find((n)=>n.frame.name===i.name)}t(E,"findBoxByFrame");function se(e,i,n){if(n<0)return;for(let r=n;r>=0;r--){let o=e[r];if(o.swimlane.index!==i)return o}return}t(se,"findBoxByLineIndex");function de(e,i){let n=i;if(ae(n.index,n.frame))return[];let r=E(e.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let o;if(n.sourceFrame)o=E(e.boxes,n.sourceFrame);else{if(ui(n.frame))return[];o=se(e.boxes,r.swimlane.index,n.index-1)}if(o===void 0)return[];return[{$kind:G,frame:n.frame,index:n.index,sourceBox:o,targetBox:r}]}t(de,"decidePositionRelation");function le(e,i){let n=i,r={visual:{fill:"none",stroke:"#000"},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}t(le,"evolveRelationPositioned");var Se={[H]:ee,[F]:de},Me={[_]:ie,[G]:le};function ce(e,i){let n=Se[i.$kind];if(n===void 0||n===null)return[];let r=n(e,i);return a.debug("decided events",r),r}t(ce,"decide");function ue(e,i){let n=i.reduce((r,o)=>{let s=Me[o.$kind];if(s===void 0||s===null)return r;return s(r,o)},e);return a.debug("evolve events",{state:e,newState:n,events:i}),n}t(ue,"evolve");function y(e,i){let n=ce(e,i);return ue(e,n)}t(y,"dispatch");var T={getConfig:ye,preserveCommentsWhenParsing:!0,setOptions:pe,getOptions:ve,clear:be,setAccTitle:R,getAccTitle:I,getAccDescription:D,setAccDescription:L,setDiagramTitle:P,getDiagramTitle:N,setAst:Y,getDiagramProps:C,getState:j},ke={parse:t(async(e)=>{let i=await me("eventmodeling",e);a.debug(i),T.setAst(i),re(i,T)},"parse")},Fe=u(),Be=Fe?.eventmodeling;function xe(e,i){return(n)=>{let r=n.swimlane.y+i.swimlanePadding,o=e.append("g").attr("class","em-box");o.append("rect").attr("x",n.x).attr("y",r).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill),o.append("foreignObject").attr("x",n.x+i.boxPadding).attr("y",r+10).attr("width",n.dimension.width-2*i.boxPadding).attr("height",n.dimension.height-2*i.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}t(xe,"renderD3Box");function fe(e,i){return e>i}t(fe,"dirUpwards");function ge(e,i,n,r){return(o)=>{let s=o.sourceBox.swimlane.y+i.swimlanePadding,l=o.targetBox.swimlane.y+i.swimlanePadding,c=fe(s,l),m=o.sourceBox.x+o.sourceBox.dimension.width*2/3,x=o.targetBox.x+o.targetBox.dimension.width/3,h,g;if(a.debug(`rendering relation up=${c} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),c)h=s,g=l+o.targetBox.dimension.height;else h=s+o.sourceBox.dimension.height,g=l;let v=r.emRelationStroke??o.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",v).attr("stroke-width","1").attr("marker-end",`url(#${n})`).attr("d",`M${m} ${h} L${x} ${g}`)}}t(ge,"renderD3Relation");function he(e,i,n,r){return(o)=>{let s=e.append("g").attr("class","em-swimlane"),l=r.emSwimlaneBackgroundOdd??"rgb(250,250,250)",c=r.emSwimlaneBackgroundStroke??"rgb(240,240,240)";s.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",i+n.swimlanePadding).attr("height",o.height).attr("fill",l).attr("stroke",c),s.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}t(he,"renderD3Swimlane");var Ee=t(function(e,i,n,r){if(a.debug("in eventmodeling renderer",e+`
|
|
3
|
+
`,"id:",i,n),!Be)throw Error("EventModeling config not found");let o=r.db,{themeVariables:s,eventmodeling:l}=u(),c=f(`[id="${i}"]`),m=o.getDiagramProps(),x=o.getState(),h=`em-arrowhead-${i}`,g=s.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(he(c,x.maxR,m,s)),x.boxes.forEach(xe(c,m)),x.relations.forEach(ge(c,m,h,s)),c.append("defs").append("marker").attr("id",h).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",g),Ua(void 0,c,l?.padding??30,l?.useMaxWidth)},"draw"),Ae={draw:Ee},$e=t((e)=>"","getStyles"),Re=$e,Ue={parser:ke,db:T,renderer:Ae,styles:Re};export{Ue as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{vr}from"./chunk-3xgfsx7y.js";import{re}from"./chunk-js8dvtfg.js";import{t,a,B,S,U,G,A,R,I,L,D,P,N,Q,Mr,qt,X}from"./chunk-fzmrnh17.js";import{me}from"./chunk-bdypt5mj.js";var W=/[─━│┃└┗├┣]/,z=/[└┗├┣]/,J=/[─━]/,E=/^[\s│┃]+$/,_=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,M=/^\s*%%/,K=" ";function O(n){return n.some((r)=>W.test(r))}t(O,"isBoxDrawingFormat");function Y(n){for(let r of n){let e=z.exec(r);if(e?.index&&e.index>0)return e.index}return 4}t(Y,"inferSegmentWidth");function F(n,r){return n.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let c=parseInt(i,10),o=r.get(c);return o?`line ${o}`:e})}t(F,"remapErrorLines");function Z(n){let r=n.split(`
|
|
2
|
+
`),e=new Map,i=-1;for(let[g,d]of r.entries())if(d.trim()==="treeView-beta"){i=g;break}if(i===-1)return{text:n,lineMap:e};let c=[];for(let g=i+1;g<r.length;g++){let d=r[g];if(d.trim()===""||M.test(d)||_.test(d))continue;if(E.test(d))continue;c.push(d.replace(/\t/g," "))}if(!O(c))return{text:n,lineMap:e};let o=Y(c),s=[],l=0;for(let g=0;g<=i;g++)s.push(r[g]),l++,e.set(l,g+1);for(let g=i+1;g<r.length;g++){let d=r[g],p=d.trim(),f=g+1;if(p===""){s.push(d),l++,e.set(l,f);continue}if(M.test(d)){s.push(d),l++,e.set(l,f);continue}if(_.test(d)){s.push(d),l++,e.set(l,f);continue}if(E.test(d))continue;let h=d.replace(/\t/g," "),w=z.exec(h);if(w?.index!==void 0){let u=w.index,x=Math.round(u/o)+1,m=u+1;while(m<h.length&&J.test(h[m]))m++;while(m<h.length&&h[m]===" ")m++;let b=h.slice(m).trimEnd();if(!b)throw Error(`Line ${f}: Empty node — expected a filename or directory name after the box-drawing prefix`);let j=K.repeat(x);s.push(j+b),l++,e.set(l,f)}else if(/^[\s─━│┃└┗├┣]+$/.test(h))continue;else if(W.test(h))s.push(d),l++,e.set(l,f);else if(/^\s+/.test(h))throw Error(`Line ${f}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);else s.push(d),l++,e.set(l,f)}return{text:s.join(`
|
|
3
|
+
`),lineMap:e}}t(Z,"preprocessBoxDrawing");var v=new vr(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ee=t(()=>{v.reset(),A()},"clear"),te=t(()=>v.records.stack[0],"getRoot"),ne=t(()=>v.records.cnt,"getCount"),ie=B.treeView,oe=t(()=>X(ie,S().treeView),"getConfig"),se=t((n,r,e,i,c,o)=>{while(n<=v.records.stack[v.records.stack.length-1].level)v.records.stack.pop();let s={id:v.records.cnt++,level:n,name:r,nodeType:e,icon:c,cssClass:i,description:o,children:[]};v.records.stack[v.records.stack.length-1].children.push(s),v.records.stack.push(s)},"addNode"),ae={clear:ee,addNode:se,getRoot:te,getCount:ne,getConfig:oe,getAccTitle:I,getAccDescription:D,getDiagramTitle:N,setAccDescription:L,setAccTitle:R,setDiagramTitle:P},y=ae,ce=t((n)=>{re(n,y);for(let r of n.nodes){let e=typeof r.indent==="number"?r.indent:0,i=r.name,c=i.endsWith("/");if(c)i=i.slice(0,-1);let o=c?"directory":"file",s=r.classAnnotation||void 0,l=r.iconAnnotation,g=l!==void 0?l||"none":void 0,d=r.descAnnotation||void 0,p=d?U(d,S()):void 0;y.addNode(e,i,o,s,g,p)}},"populate"),le={parse:t(async(n)=>{let{text:r,lineMap:e}=Z(n);try{let i=await me("treeView",r);a.debug(i),ce(i)}catch(i){if(e.size>0&&i instanceof Error)i.message=F(i.message,e);throw i}},"parse")},C={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function q(n,r){let e=r?.filenameIcons?.[n];if(e)return e;let i=n.lastIndexOf(".");if(i>0){let c=n.substring(i).toLowerCase(),o=r?.extensionIcons;return o?.[c]??o?.[c.slice(1)]}return}t(q,"detectIcon");function T(n,r){if(n.includes(":"))return n;if(n in C.icons||!r)return`${C.prefix}:${n}`;return`${r}:${n}`}t(T,"qualifyIcon");function k(n,r){if(n.icon==="none")return;if(n.icon)return T(n.icon,r.defaultIconPack);if(!r.showIcons)return;if(n.nodeType==="file"){let e=q(n.name,r);if(e==="none")return;if(e)return T(e,r.defaultIconPack)}return`${C.prefix}:${n.nodeType==="directory"?"folder":"file"}`}t(k,"getNodeIcon");Mr([{name:C.prefix,icons:C}]);var V=14,de=4,he=16,pe=t(async(n,r)=>{let e=[],i=t((o)=>{let s=k(o,r);if(s)e.push({icon:s,node:o});o.children.forEach(i)},"collect");i(n);let c=await Promise.all(e.map(async({icon:o,node:s})=>({id:s.id,svg:await qt(o,{height:V,width:V})})));return new Map(c.map(({id:o,svg:s})=>[o,s]))},"resolveNodeIcons"),fe=t((n,r,e,i,c,o)=>{let s=i.append("g"),l="treeView-node-label";if(e.nodeType==="directory")l+=" treeView-node-dir";if(e.cssClass)l+=` ${e.cssClass}`;let g=V+de,d=k(e,c),p=d!==void 0;if(d)s.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+c.paddingX}, ${r+c.paddingY})`).html(o.get(e.id)??"");let f=s.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",l),{height:h,width:w}=f.node().getBBox(),u=h+c.paddingY*2,x=n+c.paddingX+(p?g:0);f.attr("x",x),f.attr("y",r+u/2);let m=x+w,b=w+c.paddingX*2+(p?g:0);if(e.BBox={x:n,y:r,width:b,height:u},e.cssClass?.split(/\s+/).includes("highlight"))s.insert("rect",":first-child").attr("x",n).attr("y",r+1).attr("width",0).attr("height",u-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:e,nodeGroup:s,labelRightEdge:m,centerY:r+u/2}},"positionLabel"),H=t((n,r,e,i,c,o)=>n.append("line").attr("x1",r).attr("y1",e).attr("x2",i).attr("y2",c).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),ge=t((n,r,e,i)=>{let c=0,o=0,s=[],l=t((p,f,h,w)=>{let u=w*(h.rowIndent+h.paddingX),x=fe(u,c,f,p,h,i);s.push(x);let{height:m,width:b}=f.BBox;H(p,u-h.rowIndent,c+m/2,u,c+m/2,h.lineThickness),o=Math.max(o,u+b),c+=m},"drawNode"),g=t((p,f=0)=>{l(n,p,e,f),p.children.forEach((x)=>{g(x,f+1)});let{x:h,y:w,height:u}=p.BBox;if(p.children.length){let{y:x,height:m}=p.children[p.children.length-1].BBox;H(n,h+e.paddingX,w+u,h+e.paddingX,x+m/2+e.lineThickness/2,e.lineThickness)}},"processNode");g(r);let d=s.filter((p)=>p.node.description);if(d.length>0){let f=Math.max(...s.map((h)=>h.labelRightEdge))+he;for(let h of d){let u=h.nodeGroup.append("text").text(h.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",h.centerY).node().getBBox();o=Math.max(o,f+u.width+e.paddingX)}}for(let p of s)if(p.node.cssClass?.split(/\s+/).includes("highlight")){let f=p.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let h=o-p.node.BBox.x+8;f.attr("width",h),o=Math.max(o,p.node.BBox.x+h+2)}}return{totalHeight:c,totalWidth:o}},"drawTree"),ue=t(async(n,r,e,i)=>{a.debug(`Rendering treeView diagram
|
|
4
|
+
`+n);let c=i.db,o=c.getRoot(),s=c.getConfig(),l=Q(r),g=l.append("g");g.attr("class","tree-view");let d=await pe(o,s),{totalHeight:p,totalWidth:f}=ge(g,o,s,d);l.attr("viewBox",`-${s.lineThickness/2} 0 ${f} ${p}`),G(l,p,f,s.useMaxWidth)},"draw"),we={draw:ue},xe=we,ve={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},be=t(({treeView:n})=>{let{labelFontSize:r,labelColor:e,lineColor:i,iconColor:c,descriptionColor:o,highlightBg:s,highlightStroke:l}=X(ve,n);return`
|
|
5
|
+
.treeView-node-label {
|
|
6
|
+
font-size: ${r};
|
|
7
|
+
fill: ${e};
|
|
8
|
+
white-space: pre;
|
|
9
|
+
}
|
|
10
|
+
.treeView-node-dir {
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
}
|
|
13
|
+
.treeView-node-line {
|
|
14
|
+
stroke: ${i};
|
|
15
|
+
}
|
|
16
|
+
.treeView-node-icon {
|
|
17
|
+
color: ${c};
|
|
18
|
+
}
|
|
19
|
+
.treeView-node-description {
|
|
20
|
+
font-size: ${r};
|
|
21
|
+
fill: ${o};
|
|
22
|
+
font-style: italic;
|
|
23
|
+
white-space: pre;
|
|
24
|
+
}
|
|
25
|
+
.treeView-highlight-bg {
|
|
26
|
+
fill: ${s};
|
|
27
|
+
stroke: ${l};
|
|
28
|
+
stroke-width: 1;
|
|
29
|
+
}
|
|
30
|
+
`},"styles"),Ce=be,Ee={db:y,renderer:xe,parser:le,styles:Ce};export{Ee as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wn}from"./chunk-fba06jm8.js";var X={};wn(X,{default:()=>yn});var J={};wn(J,{default:()=>qn});var vr=typeof global=="object"&&global&&global.Object===Object&&global,H=vr;var Or=typeof self=="object"&&self&&self.Object===Object&&self,Pr=H||Or||Function("return this")(),qe=Pr;var Ir=qe.Symbol,ft=Ir;var bt=Object.prototype,{hasOwnProperty:Lr,toString:jr}=bt,G=ft?ft.toStringTag:void 0;function Mr(t){var e=Lr.call(t,G),r=t[G];try{t[G]=void 0;var o=!0}catch(f){}var a=jr.call(t);if(o)if(e)t[G]=r;else delete t[G];return a}var vt=Mr;var Nr=Object.prototype,Dr=Nr.toString;function Rr(t){return Dr.call(t)}var Ot=Rr;var Fr="[object Null]",Br="[object Undefined]",Tt=ft?ft.toStringTag:void 0;function Gr(t){if(t==null)return t===void 0?Br:Fr;return Tt&&Tt in Object(t)?vt(t):Ot(t)}var Bt=Gr;function Ur(t){return t!=null&&typeof t=="object"}var Qe=Ur;var zr="[object Symbol]";function Wr(t){return typeof t=="symbol"||Qe(t)&&Bt(t)==zr}var nn=Wr;function Kr(t,e){var r=-1,o=t==null?0:t.length,a=Array(o);while(++r<o)a[r]=e(t[r],r,t);return a}var Un=Kr;var Hr=Array.isArray,ae=Hr;var qr=1/0,wt=ft?ft.prototype:void 0,St=wt?wt.toString:void 0;function Pt(t){if(typeof t=="string")return t;if(ae(t))return Un(t,Pt)+"";if(nn(t))return St?St.call(t):"";var e=t+"";return e=="0"&&1/t==-qr?"-0":e}var Ct=Pt;function $r(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ne=$r;function Yr(t){return t}var Kt=Yr;var Xr="[object AsyncFunction]",Zr="[object Function]",Jr="[object GeneratorFunction]",Qr="[object Proxy]";function Vr(t){if(!Ne(t))return!1;var e=Bt(t);return e==Zr||e==Jr||e==Xr||e==Qr}var jn=Vr;var oo=qe["__core-js_shared__"],q=oo;var Et=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ao(t){return!!Et&&Et in t}var It=ao;var fo=Function.prototype,io=fo.toString;function so(t){if(t!=null){try{return io.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var y=so;var po=/[\\^$.*+?()[\]{}|]/g,uo=/^\[object .+?Constructor\]$/,mo=Function.prototype,lo=Object.prototype,xo=mo.toString,ho=lo.hasOwnProperty,co=RegExp("^"+xo.call(ho).replace(po,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function go(t){if(!Ne(t)||It(t))return!1;var e=jn(t)?co:uo;return e.test(y(t))}var Lt=go;function yo(t,e){return t==null?void 0:t[e]}var jt=yo;function _o(t,e){var r=jt(t,e);return Lt(r)?r:void 0}var x=_o;var bo=x(qe,"WeakMap"),k=bo;function vo(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Mt=vo;function Oo(){}var Nt=Oo;var Ao=800,To=16,wo=Date.now;function So(t){var e=0,r=0;return function(){var o=wo(),a=To-(o-r);if(r=o,a>0){if(++e>=Ao)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Dt=So;function Po(t){return function(){return t}}var Qt=Po;var Co=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ea=Co;var Eo=!Ea?Kt:function(t,e){return Ea(t,"toString",{configurable:!0,enumerable:!1,value:Qt(e),writable:!0})},Rt=Eo;var Io=Dt(Rt),Wi=Io;function Lo(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t)===!1)break;return t}var Gi=Lo;function jo(t,e,r,o){var a=t.length,f=r+(o?1:-1);while(o?f--:++f<a)if(e(t[f],f,t))return f;return-1}var Hi=jo;function Mo(t){return t!==t}var Gt=Mo;function No(t,e,r){var o=r-1,a=t.length;while(++o<a)if(t[o]===e)return o;return-1}var Ut=No;function Do(t,e,r){return e===e?Ut(t,e,r):Hi(t,Gt,r)}var zt=Do;function Ro(t,e){var r=t==null?0:t.length;return!!r&&zt(t,e,0)>-1}var Wt=Ro;var Fo=9007199254740991,Bo=/^(?:0|[1-9]\d*)$/;function Go(t,e){var r=typeof t;return e=e==null?Fo:e,!!e&&(r=="number"||r!="symbol"&&Bo.test(t))&&(t>-1&&t%1==0&&t<e)}var _r=Go;function Uo(t,e){return t===e||t!==t&&e!==e}var gn=Uo;var Ht=Math.max;function zo(t,e,r){return e=Ht(e===void 0?t.length-1:e,0),function(){var o=arguments,a=-1,f=Ht(o.length-e,0),i=Array(f);while(++a<f)i[a]=o[e+a];a=-1;var n=Array(e+1);while(++a<e)n[a]=o[a];return n[e]=r(i),Mt(t,this,n)}}var Yi=zo;function Wo(t,e){return Wi(Yi(t,e,Kt),t+"")}var wr=Wo;var Ko=9007199254740991;function Ho(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ko}var j=Ho;function qo(t){return t!=null&&j(t.length)&&!jn(t)}var ht=qo;var $o=Object.prototype;function ko(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||$o;return t===r}var kr=ko;function Yo(t,e){var r=-1,o=Array(t);while(++r<t)o[r]=e(r);return o}var qt=Yo;var Xo="[object Arguments]";function Zo(t){return Qe(t)&&Bt(t)==Xo}var mt=Zo;var $t=Object.prototype,{hasOwnProperty:Jo,propertyIsEnumerable:Qo}=$t,Vo=mt(function(){return arguments}())?mt:function(t){return Qe(t)&&Jo.call(t,"callee")&&!Qo.call(t,"callee")},Ln=Vo;function ta(){return!1}var kt=ta;var Zt=typeof X=="object"&&X&&!X.nodeType&&X,Yt=Zt&&typeof Y=="object"&&Y&&!Y.nodeType&&Y,ea=Yt&&Yt.exports===Zt,Xt=ea?qe.Buffer:void 0,ra=Xt?Xt.isBuffer:void 0,oa=ra||kt,yn=oa;var aa="[object Arguments]",fa="[object Array]",ia="[object Boolean]",na="[object Date]",sa="[object Error]",pa="[object Function]",ua="[object Map]",ma="[object Number]",la="[object Object]",da="[object RegExp]",xa="[object Set]",ha="[object String]",ca="[object WeakMap]",ga="[object ArrayBuffer]",ya="[object DataView]",_a="[object Float32Array]",ba="[object Float64Array]",va="[object Int8Array]",Oa="[object Int16Array]",Ta="[object Int32Array]",wa="[object Uint8Array]",Sa="[object Uint8ClampedArray]",Ca="[object Uint16Array]",ja="[object Uint32Array]",u={};u[_a]=u[ba]=u[va]=u[Oa]=u[Ta]=u[wa]=u[Sa]=u[Ca]=u[ja]=!0;u[aa]=u[fa]=u[ga]=u[ia]=u[ya]=u[na]=u[sa]=u[pa]=u[ua]=u[ma]=u[la]=u[da]=u[xa]=u[ha]=u[ca]=!1;function Fa(t){return Qe(t)&&j(t.length)&&!!u[Bt(t)]}var Jt=Fa;function Ba(t){return function(e){return t(e)}}var Cr=Ba;var Vt=typeof J=="object"&&J&&!J.nodeType&&J,U=Vt&&typeof Z=="object"&&Z&&!Z.nodeType&&Z,Ga=U&&U.exports===Vt,lt=Ga&&H.process,Ua=function(){try{var t=U&&U.require&&U.require("util").types;if(t)return t;return lt&<.binding&<.binding("util")}catch(e){}}(),qn=Ua;var te=qn&&qn.isTypedArray,za=te?Cr(te):Jt,Sr=za;var Wa=Object.prototype,Ka=Wa.hasOwnProperty;function Ha(t,e){var r=ae(t),o=!r&&Ln(t),a=!r&&!o&&yn(t),f=!r&&!o&&!a&&Sr(t),i=r||o||a||f,n=i?qt(t.length,String):[],s=n.length;for(var p in t)if((e||Ka.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||_r(p,s))))n.push(p);return n}var Zi=Ha;function qa(t,e){return function(r){return t(e(r))}}var Xi=qa;var $a=Xi(Object.keys,Object),ee=$a;var ka=Object.prototype,Ya=ka.hasOwnProperty;function Xa(t){if(!kr(t))return ee(t);var e=[];for(var r in Object(t))if(Ya.call(t,r)&&r!="constructor")e.push(r);return e}var Aa=Xa;function Za(t){return ht(t)?Zi(t):Aa(t)}var Ve=Za;var Ja=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qa=/^\w*$/;function Va(t,e){if(ae(t))return!1;var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||nn(t))return!0;return Qa.test(t)||!Ja.test(t)||e!=null&&t in Object(e)}var M=Va;var tf=x(Object,"create"),_=tf;function ef(){this.__data__=_?_(null):{},this.size=0}var re=ef;function rf(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var oe=rf;var of="__lodash_hash_undefined__",af=Object.prototype,ff=af.hasOwnProperty;function nf(t){var e=this.__data__;if(_){var r=e[t];return r===of?void 0:r}return ff.call(e,t)?e[t]:void 0}var fe=nf;var sf=Object.prototype,pf=sf.hasOwnProperty;function uf(t){var e=this.__data__;return _?e[t]!==void 0:pf.call(e,t)}var ie=uf;var mf="__lodash_hash_undefined__";function lf(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_&&e===void 0?mf:e,this}var ne=lf;function N(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}N.prototype.clear=re;N.prototype.delete=oe;N.prototype.get=fe;N.prototype.has=ie;N.prototype.set=ne;var dt=N;function df(){this.__data__=[],this.size=0}var se=df;function xf(t,e){var r=t.length;while(r--)if(gn(t[r][0],e))return r;return-1}var O=xf;var hf=Array.prototype,cf=hf.splice;function gf(t){var e=this.__data__,r=O(e,t);if(r<0)return!1;var o=e.length-1;if(r==o)e.pop();else cf.call(e,r,1);return--this.size,!0}var pe=gf;function yf(t){var e=this.__data__,r=O(e,t);return r<0?void 0:e[r][1]}var ue=yf;function _f(t){return O(this.__data__,t)>-1}var me=_f;function bf(t,e){var r=this.__data__,o=O(r,t);if(o<0)++this.size,r.push([t,e]);else r[o][1]=e;return this}var le=bf;function D(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}D.prototype.clear=se;D.prototype.delete=pe;D.prototype.get=ue;D.prototype.has=me;D.prototype.set=le;var A=D;var vf=x(qe,"Map"),T=vf;function Of(){this.size=0,this.__data__={hash:new dt,map:new(T||A),string:new dt}}var de=Of;function Af(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var he=Af;function Tf(t,e){var r=t.__data__;return he(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w=Tf;function wf(t){var e=w(this,t).delete(t);return this.size-=e?1:0,e}var ce=wf;function Sf(t){return w(this,t).get(t)}var ge=Sf;function Pf(t){return w(this,t).has(t)}var ye=Pf;function Cf(t,e){var r=w(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}var _e=Cf;function R(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}R.prototype.clear=de;R.prototype.delete=ce;R.prototype.get=ge;R.prototype.has=ye;R.prototype.set=_e;var E=R;var Ef="Expected a function";function xt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw TypeError(Ef);var r=function(){var o=arguments,a=e?e.apply(this,o):o[0],f=r.cache;if(f.has(a))return f.get(a);var i=t.apply(this,o);return r.cache=f.set(a,i)||f,i};return r.cache=new(xt.Cache||E),r}xt.Cache=E;var be=xt;var If=500;function Lf(t){var e=be(t,function(o){if(r.size===If)r.clear();return o}),r=e.cache;return e}var ve=Lf;var jf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mf=/\\(\\)?/g,Nf=ve(function(t){var e=[];if(t.charCodeAt(0)===46)e.push("");return t.replace(jf,function(r,o,a,f){e.push(a?f.replace(Mf,"$1"):o||r)}),e}),Oe=Nf;function Df(t){return t==null?"":Ct(t)}var Ki=Df;function Rf(t,e){if(ae(t))return t;return M(t,e)?[t]:Oe(Ki(t))}var Tr=Rf;var Ff=1/0;function Bf(t){if(typeof t=="string"||nn(t))return t;var e=t+"";return e=="0"&&1/t==-Ff?"-0":e}var Vn=Bf;function Gf(t,e){e=Tr(e,t);var r=0,o=e.length;while(t!=null&&r<o)t=t[Vn(e[r++])];return r&&r==o?t:void 0}var Er=Gf;function Uf(t,e,r){var o=t==null?void 0:Er(t,e);return o===void 0?r:o}var Ae=Uf;function zf(t,e){var r=-1,o=e.length,a=t.length;while(++r<o)t[a+r]=e[r];return t}var Ra=zf;var Te=ft?ft.isConcatSpreadable:void 0;function Wf(t){return ae(t)||Ln(t)||!!(Te&&t&&t[Te])}var we=Wf;function Se(t,e,r,o,a){var f=-1,i=t.length;r||(r=we),a||(a=[]);while(++f<i){var n=t[f];if(e>0&&r(n))if(e>1)Se(n,e-1,r,o,a);else Ra(a,n);else if(!o)a[a.length]=n}return a}var La=Se;function Kf(t,e,r,o){var a=-1,f=t==null?0:t.length;if(o&&f)r=t[++a];while(++a<f)r=e(r,t[a],a,t);return r}var Pe=Kf;function Hf(){this.__data__=new A,this.size=0}var Ce=Hf;function qf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Ee=qf;function $f(t){return this.__data__.get(t)}var Ie=$f;function kf(t){return this.__data__.has(t)}var Le=kf;var Yf=200;function Xf(t,e){var r=this.__data__;if(r instanceof A){var o=r.__data__;if(!T||o.length<Yf-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new E(o)}return r.set(t,e),this.size=r.size,this}var je=Xf;function F(t){var e=this.__data__=new A(t);this.size=e.size}F.prototype.clear=Ce;F.prototype.delete=Ee;F.prototype.get=Ie;F.prototype.has=Le;F.prototype.set=je;var Wn=F;function Zf(t,e){var r=-1,o=t==null?0:t.length,a=0,f=[];while(++r<o){var i=t[r];if(e(i,r,t))f[a++]=i}return f}var Q=Zf;function Jf(){return[]}var Qi=Jf;var Qf=Object.prototype,Vf=Qf.propertyIsEnumerable,Me=Object.getOwnPropertySymbols,ti=!Me?Qi:function(t){if(t==null)return[];return t=Object(t),Q(Me(t),function(e){return Vf.call(t,e)})},Ia=ti;function ei(t,e,r){var o=e(t);return ae(t)?o:Ra(o,r(t))}var Ji=ei;function ri(t){return Ji(t,Ve,Ia)}var mi=ri;var oi=x(qe,"DataView"),V=oi;var ai=x(qe,"Promise"),tt=ai;var fi=x(qe,"Set"),S=fi;var De="[object Map]",ii="[object Object]",Re="[object Promise]",Fe="[object Set]",Be="[object WeakMap]",Ge="[object DataView]",ni=y(V),si=y(T),pi=y(tt),ui=y(S),li=y(k),I=Bt;if(V&&I(new V(new ArrayBuffer(1)))!=Ge||T&&I(new T)!=De||tt&&I(tt.resolve())!=Re||S&&I(new S)!=Fe||k&&I(new k)!=Be)I=function(t){var e=Bt(t),r=e==ii?t.constructor:void 0,o=r?y(r):"";if(o)switch(o){case ni:return Ge;case si:return De;case pi:return Re;case ui:return Fe;case li:return Be}return e};var rn=I;var di=qe.Uint8Array,Da=di;var xi="__lodash_hash_undefined__";function hi(t){return this.__data__.set(t,xi),this}var Ue=hi;function ci(t){return this.__data__.has(t)}var ze=ci;function et(t){var e=-1,r=t==null?0:t.length;this.__data__=new E;while(++e<r)this.add(t[e])}et.prototype.add=et.prototype.push=Ue;et.prototype.has=ze;var rt=et;function gi(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t))return!0;return!1}var Ke=gi;function yi(t,e){return t.has(e)}var ot=yi;var _i=1,bi=2;function vi(t,e,r,o,a,f){var i=r&_i,n=t.length,s=e.length;if(n!=s&&!(i&&s>n))return!1;var p=f.get(t),d=f.get(e);if(p&&d)return p==e&&d==t;var l=-1,m=!0,g=r&bi?new rt:void 0;f.set(t,e),f.set(e,t);while(++l<n){var h=t[l],c=e[l];if(o)var b=i?o(c,h,l,e,t,f):o(h,c,l,t,e,f);if(b!==void 0){if(b)continue;m=!1;break}if(g){if(!Ke(e,function(P,C){if(!ot(g,C)&&(h===P||a(h,P,r,o,f)))return g.push(C)})){m=!1;break}}else if(!(h===c||a(h,c,r,o,f))){m=!1;break}}return f.delete(t),f.delete(e),m}var at=vi;function Oi(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}var He=Oi;function Ai(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var B=Ai;var Ti=1,wi=2,Si="[object Boolean]",Pi="[object Date]",Ci="[object Error]",Ei="[object Map]",Ii="[object Number]",Li="[object RegExp]",ji="[object Set]",Mi="[object String]",Ni="[object Symbol]",Di="[object ArrayBuffer]",Ri="[object DataView]",$e=ft?ft.prototype:void 0,ct=$e?$e.valueOf:void 0;function Fi(t,e,r,o,a,f,i){switch(r){case Ri:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Di:if(t.byteLength!=e.byteLength||!f(new Da(t),new Da(e)))return!1;return!0;case Si:case Pi:case Ii:return gn(+t,+e);case Ci:return t.name==e.name&&t.message==e.message;case Li:case Mi:return t==e+"";case Ei:var n=He;case ji:var s=o&Ti;if(n||(n=B),t.size!=e.size&&!s)return!1;var p=i.get(t);if(p)return p==e;o|=wi,i.set(t,e);var d=at(n(t),n(e),o,a,f,i);return i.delete(t),d;case Ni:if(ct)return ct.call(t)==ct.call(e)}return!1}var ke=Fi;var Bi=1,Ui=Object.prototype,zi=Ui.hasOwnProperty;function qi(t,e,r,o,a,f){var i=r&Bi,n=mi(t),s=n.length,p=mi(e),d=p.length;if(s!=d&&!i)return!1;var l=s;while(l--){var m=n[l];if(!(i?m in e:zi.call(e,m)))return!1}var g=f.get(t),h=f.get(e);if(g&&h)return g==e&&h==t;var c=!0;f.set(t,e),f.set(e,t);var b=i;while(++l<s){m=n[l];var P=t[m],C=e[m];if(o)var _t=i?o(C,P,m,e,t,f):o(P,C,m,t,e,f);if(!(_t===void 0?P===C||a(P,C,r,o,f):_t)){c=!1;break}b||(b=m=="constructor")}if(c&&!b){var W=t.constructor,K=e.constructor;if(W!=K&&(("constructor"in t)&&("constructor"in e))&&!(typeof W=="function"&&W instanceof W&&typeof K=="function"&&K instanceof K))c=!1}return f.delete(t),f.delete(e),c}var Ye=qi;var $i=1,Xe="[object Arguments]",Ze="[object Array]",it="[object Object]",ki=Object.prototype,Je=ki.hasOwnProperty;function Vi(t,e,r,o,a,f){var i=ae(t),n=ae(e),s=i?Ze:rn(t),p=n?Ze:rn(e);s=s==Xe?it:s,p=p==Xe?it:p;var d=s==it,l=p==it,m=s==p;if(m&&yn(t)){if(!yn(e))return!1;i=!0,d=!1}if(m&&!d)return f||(f=new Wn),i||Sr(t)?at(t,e,r,o,a,f):ke(t,e,s,r,o,a,f);if(!(r&$i)){var g=d&&Je.call(t,"__wrapped__"),h=l&&Je.call(e,"__wrapped__");if(g||h){var c=g?t.value():t,b=h?e.value():e;return f||(f=new Wn),a(c,b,r,o,f)}}if(!m)return!1;return f||(f=new Wn),Ye(t,e,r,o,a,f)}var tr=Vi;function er(t,e,r,o,a){if(t===e)return!0;if(t==null||e==null||!Qe(t)&&!Qe(e))return t!==t&&e!==e;return tr(t,e,r,o,er,a)}var nt=er;var tn=1,en=2;function on(t,e,r,o){var a=r.length,f=a,i=!o;if(t==null)return!f;t=Object(t);while(a--){var n=r[a];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}while(++a<f){n=r[a];var s=n[0],p=t[s],d=n[1];if(i&&n[2]){if(p===void 0&&!(s in t))return!1}else{var l=new Wn;if(o)var m=o(p,d,s,t,e,l);if(!(m===void 0?nt(d,p,tn|en,o,l):m))return!1}}return!0}var rr=on;function fn(t){return t===t&&!Ne(t)}var st=fn;function sn(t){var e=Ve(t),r=e.length;while(r--){var o=e[r],a=t[o];e[r]=[o,a,st(a)]}return e}var or=sn;function pn(t,e){return function(r){if(r==null)return!1;return r[t]===e&&(e!==void 0||(t in Object(r)))}}var pt=pn;function un(t){var e=or(t);if(e.length==1&&e[0][2])return pt(e[0][0],e[0][1]);return function(r){return r===t||rr(r,t,e)}}var ar=un;function mn(t,e){return t!=null&&e in Object(t)}var fr=mn;function ln(t,e,r){e=Tr(e,t);var o=-1,a=e.length,f=!1;while(++o<a){var i=Vn(e[o]);if(!(f=t!=null&&r(t,i)))break;t=t[i]}if(f||++o!=a)return f;return a=t==null?0:t.length,!!a&&j(a)&&_r(i,a)&&(ae(t)||Ln(t))}var eo=ln;function dn(t,e){return t!=null&&eo(t,e,fr)}var to=dn;var xn=1,hn=2;function cn(t,e){if(M(t)&&st(e))return pt(Vn(t),e);return function(r){var o=Ae(r,t);return o===void 0&&o===e?to(r,t):nt(e,o,xn|hn)}}var ir=cn;function _n(t){return function(e){return e==null?void 0:e[t]}}var no=_n;function bn(t){return function(e){return Er(e,t)}}var nr=bn;function vn(t){return M(t)?no(Vn(t)):nr(t)}var sr=vn;function On(t){if(typeof t=="function")return t;if(t==null)return Kt;if(typeof t=="object")return ae(t)?ir(t[0],t[1]):ar(t);return sr(t)}var At=On;function An(t){return function(e,r,o){var a=-1,f=Object(e),i=o(e),n=i.length;while(n--){var s=i[t?n:++a];if(r(f[s],s,f)===!1)break}return e}}var pr=An;var Tn=pr(),Na=Tn;function Sn(t,e){return t&&Na(t,e,Ve)}var Ma=Sn;function Pn(t,e){return function(r,o){if(r==null)return r;if(!ht(r))return t(r,o);var a=r.length,f=e?a:-1,i=Object(r);while(e?f--:++f<a)if(o(i[f],f,i)===!1)break;return r}}var ur=Pn;var Cn=ur(Ma),Ar=Cn;function En(t){return Qe(t)&&ht(t)}var ro=En;function In(t,e,r){var o=-1,a=t==null?0:t.length;while(++o<a)if(r(e,t[o]))return!0;return!1}var mr=In;function Mn(t){return typeof t=="function"?t:Kt}var Pa=Mn;function Nn(t,e){var r=ae(t)?Gi:Ar;return r(t,Pa(e))}var v=Nn;function Dn(t,e){var r=[];return Ar(t,function(o,a,f){if(e(o,a,f))r.push(o)}),r}var lr=Dn;function Rn(t,e){var r=ae(t)?Q:lr;return r(t,At(e,3))}var Ft=Rn;function Fn(t,e){return Un(e,function(r){return t[r]})}var dr=Fn;function Bn(t){return t==null?[]:dr(t,Ve(t))}var an=Bn;var zn="[object Map]",Kn="[object Set]",Hn=Object.prototype,$n=Hn.hasOwnProperty;function kn(t){if(t==null)return!0;if(ht(t)&&(ae(t)||typeof t=="string"||typeof t.splice=="function"||yn(t)||Sr(t)||Ln(t)))return!t.length;var e=rn(t);if(e==zn||e==Kn)return!t.size;if(kr(t))return!Aa(t).length;for(var r in t)if($n.call(t,r))return!1;return!0}var ut=kn;function Yn(t){return t===void 0}var We=Yn;function Xn(t,e,r,o,a){return a(t,function(f,i,n){r=o?(o=!1,f):e(r,f,i,n)}),r}var xr=Xn;function Zn(t,e,r){var o=ae(t)?Pe:xr,a=arguments.length<3;return o(t,At(e,4),r,a,Ar)}var Gn=Zn;var Jn=1/0,Qn=!(S&&1/B(new S([,-0]))[1]==Jn)?Nt:function(t){return new S(t)},hr=Qn;var ts=200;function es(t,e,r){var o=-1,a=Wt,f=t.length,i=!0,n=[],s=n;if(r)i=!1,a=mr;else if(f>=ts){var p=e?null:hr(t);if(p)return B(p);i=!1,a=ot,s=new rt}else s=e?[]:n;t:while(++o<f){var d=t[o],l=e?e(d):d;if(d=r||d!==0?d:0,i&&l===l){var m=s.length;while(m--)if(s[m]===l)continue t;if(e)s.push(l);n.push(d)}else if(!a(s,l,r)){if(s!==n)s.push(l);n.push(d)}}return n}var cr=es;var rs=wr(function(t){return cr(La(t,1,ro,!0))}),gt=rs;var as="\x00",L="\x00",gr="\x01";class xe{constructor(t={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Qt(void 0),this._defaultEdgeLabelFn=Qt(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[L]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){if(!jn(t))t=Qt(t);return this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Ve(this._nodes)}sources(){var t=this;return Ft(this.nodes(),function(e){return ut(t._in[e])})}sinks(){var t=this;return Ft(this.nodes(),function(e){return ut(t._out[e])})}setNodes(t,e){var r=arguments,o=this;return v(t,function(a){if(r.length>1)o.setNode(a,e);else o.setNode(a)}),this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1)this._nodes[t]=e;return this}if(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound)this._parent[t]=L,this._children[t]={},this._children[L][t]=!0;return this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=(r)=>this.removeEdge(this._edgeObjs[r]);if(delete this._nodes[t],this._isCompound)this._removeFromParentsChildList(t),delete this._parent[t],v(this.children(t),(r)=>{this.setParent(r)}),delete this._children[t];v(Ve(this._in[t]),e),delete this._in[t],delete this._preds[t],v(Ve(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(We(e))e=L;else{e+="";for(var r=e;!We(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(We(t))t=L;if(this._isCompound){var e=this._children[t];if(e)return Ve(e)}else if(t===L)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return Ve(e)}successors(t){var e=this._sucs[t];if(e)return Ve(e)}neighbors(t){var e=this.predecessors(t);if(e)return gt(e,this.successors(t))}isLeaf(t){var e;if(this.isDirected())e=this.successors(t);else e=this.neighbors(t);return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;v(this._nodes,function(f,i){if(t(i))e.setNode(i,f)}),v(this._edgeObjs,function(f){if(e.hasNode(f.v)&&e.hasNode(f.w))e.setEdge(f,r.edge(f))});var o={};function a(f){var i=r.parent(f);if(i===void 0||e.hasNode(i))return o[f]=i,i;else if(i in o)return o[i];else return a(i)}if(this._isCompound)v(e.nodes(),function(f){e.setParent(f,a(f))});return e}setDefaultEdgeLabel(t){if(!jn(t))t=Qt(t);return this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return an(this._edgeObjs)}setPath(t,e){var r=this,o=arguments;return Gn(t,function(a,f){if(o.length>1)r.setEdge(a,f,e);else r.setEdge(a,f);return f}),this}setEdge(){var t,e,r,o,a=!1,f=arguments[0];if(typeof f==="object"&&f!==null&&"v"in f){if(t=f.v,e=f.w,r=f.name,arguments.length===2)o=arguments[1],a=!0}else if(t=f,e=arguments[1],r=arguments[3],arguments.length>2)o=arguments[2],a=!0;if(t=""+t,e=""+e,!We(r))r=""+r;var i=z(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i)){if(a)this._edgeLabels[i]=o;return this}if(!We(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=a?o:this._defaultEdgeLabelFn(t,e,r);var n=fs(this._isDirected,t,e,r);return t=n.v,e=n.w,Object.freeze(n),this._edgeObjs[i]=n,yr(this._preds[e],t),yr(this._sucs[t],e),this._in[e][i]=n,this._out[t][i]=n,this._edgeCount++,this}edge(t,e,r){var o=arguments.length===1?yt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return this._edgeLabels[o]}hasEdge(t,e,r){var o=arguments.length===1?yt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,e,r){var o=arguments.length===1?yt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r),a=this._edgeObjs[o];if(a)t=a.v,e=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],br(this._preds[e],t),br(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--;return this}inEdges(t,e){var r=this._in[t];if(r){var o=an(r);if(!e)return o;return Ft(o,function(a){return a.v===e})}}outEdges(t,e){var r=this._out[t];if(r){var o=an(r);if(!e)return o;return Ft(o,function(a){return a.w===e})}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}xe.prototype._nodeCount=0;xe.prototype._edgeCount=0;function yr(t,e){if(t[e])t[e]++;else t[e]=1}function br(t,e){if(!--t[e])delete t[e]}function z(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}return a+gr+f+gr+(We(o)?as:o)}function fs(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}var n={v:a,w:f};if(o)n.name=o;return n}function yt(t,e){return z(t,e.v,e.w,e.name)}
|
|
2
|
+
export{qe,ft,Bt,Qe,nn,Un,ae,Ne,Kt,jn,Qt,Ea,Wi,Gi,Hi,_r,gn,Yi,wr,ht,kr,Ln,yn,Cr,qn,Sr,Zi,Xi,Aa,Ve,Ki,Tr,Vn,Er,Ra,La,Wn,Qi,Ia,Ji,mi,rn,Da,eo,to,no,At,Na,Ma,Ar,ro,Pa,v,Ft,an,We,Gn,xe};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Uo}from"./chunk-ccy2q2z0.js";export{Uo as default};
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e,n,
|
|
2
|
-
export{
|
|
1
|
+
import{e,n,x,Pe}from"./chunk-fba06jm8.js";function si(a){let t=a.filter((l)=>l.closedAt===null);if(!t.length)return[];return[{label:"项目",options:t.map((l)=>({value:l.id,label:l.name,description:l.directory}))}]}function li(a){let{Input:t}=x();return n("div",{className:"relative mb-3 min-w-0",children:[e(Pe,{"aria-hidden":!0,className:"pointer-events-none absolute top-3 left-3 size-4 text-faint"}),e(t,{type:"search","aria-label":a.label,placeholder:a.placeholder,value:a.value,onChange:(l)=>a.onChange(l.target.value),className:"h-10 min-w-0 pl-9"})]})}function ci(){return e("div",{role:"status","aria-label":"正在加载",className:"divide-y divide-line",children:[0,1,2].map((a)=>n("div",{className:"h-16 space-y-2 px-4 py-3",children:[e("div",{className:"h-3 w-24 animate-pulse rounded bg-raised"}),e("div",{className:"h-3 w-2/3 animate-pulse rounded bg-raised"})]},a))})}
|
|
2
|
+
export{si,li,ci};
|
|
Binary file
|
|
Binary file
|