@bkm016/basalt 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/chunk-10y5hvt2.js +2 -0
- package/chunk-22k2be3e.js +13 -0
- package/chunk-28hye007.js +2 -0
- package/chunk-2fmsw1c6.js +5 -0
- package/chunk-2xj51v3m.js +3 -0
- package/chunk-3x0wm92n.js +3 -0
- package/chunk-4fgsqb1e.js +2 -0
- package/chunk-519eek65.js +39 -0
- package/chunk-5qa4dean.js +2 -0
- package/chunk-5x256mz8.js +2 -0
- package/chunk-6n01sefp.js +8 -0
- package/chunk-74xtmwpw.js +2 -0
- package/chunk-7mafj833.js +3 -0
- package/chunk-7v1sqn9k.js +59 -0
- package/chunk-8my52htr.js +3 -0
- package/chunk-8vh98e46.js +2 -0
- package/chunk-92mpgche.js +2 -0
- package/chunk-9vacevyf.js +3 -0
- package/chunk-9y44m27k.js +5 -0
- package/chunk-a5wv2shs.js +3 -0
- package/chunk-a78qhb4t.js +5 -0
- package/chunk-axsxx67j.js +3 -0
- package/chunk-b49fzzzn.js +2 -0
- package/chunk-bc8awbnt.js +2 -0
- package/chunk-crxs0n0r.js +3 -0
- package/chunk-csed8fsv.js +3 -0
- package/chunk-cspx3bz9.js +2 -0
- package/chunk-ctdtmwmd.js +63 -0
- package/chunk-d3xsmwbh.js +25 -0
- package/chunk-dvwgpsfz.js +3 -0
- package/chunk-dzd8k6bw.js +3 -0
- package/chunk-e2xqa46t.js +2 -0
- package/chunk-e41mpwx9.js +9 -0
- package/chunk-e5ccfgsk.js +3 -0
- package/chunk-e67wqhzh.js +12 -0
- package/chunk-emeb13nd.js +25 -0
- package/chunk-ers9s2c4.js +31 -0
- package/chunk-ezq0fnz6.js +3 -0
- package/chunk-ezqvx0hm.js +2 -0
- package/chunk-f10ca9ma.js +12 -0
- package/chunk-f72jhcp8.js +2 -0
- package/chunk-fjv41a8r.js +4155 -0
- package/chunk-gj0dhgbg.js +3 -0
- package/chunk-h0ggc6pv.js +60 -0
- package/chunk-hrt42rkh.js +4 -0
- package/chunk-j7m36g5w.js +3 -0
- package/chunk-jhn30hjp.js +2 -0
- package/chunk-ka41gq1g.js +16 -0
- package/chunk-kcp9byws.js +2 -0
- package/chunk-me72k64f.js +7 -0
- package/chunk-n4jemqf1.js +2 -0
- package/chunk-ndt4jvh1.js +3 -0
- package/chunk-pyxn4wqj.js +3 -0
- package/chunk-rajb3566.js +2 -0
- package/chunk-rbq2gsar.js +3 -0
- package/chunk-rd98e7kg.js +10 -0
- package/chunk-rm5dbbsg.js +3 -0
- package/chunk-rztw3tgx.js +3 -0
- package/chunk-s4mn41eh.js +8 -0
- package/chunk-s9p624fq.js +44 -0
- package/chunk-sawrte7v.js +3 -0
- package/chunk-sd8d792h.js +51 -0
- package/chunk-sgvmxx0d.js +2 -0
- package/chunk-sqbnt2t1.js +3 -0
- package/chunk-t2bvj735.js +2 -0
- package/chunk-t8tkamx6.js +2 -0
- package/chunk-tbehe5ky.js +18 -0
- package/chunk-tnay319j.js +3 -0
- package/chunk-tsha69rv.js +7 -0
- package/chunk-twqwer9t.js +5 -0
- package/chunk-vr2rtqeh.js +2 -0
- package/chunk-vr6eej6b.js +3 -0
- package/chunk-w41gswj8.js +3 -0
- package/chunk-x7tras0x.js +498 -0
- package/chunk-xakmebnm.js +10 -0
- package/chunk-xj453mny.js +286 -0
- package/chunk-xmrw19xj.js +2 -0
- package/chunk-xpj8fcjp.js +20 -0
- package/chunk-y218jsvc.js +3 -0
- package/chunk-y33fkh8m.js +2 -0
- package/chunk-z3h9ydyr.js +11 -0
- package/chunk-zc51vfhr.js +2 -0
- package/chunk-zm88mnds.js +7 -0
- package/chunk-zz9rj82y.js +3 -0
- package/compiled.js +10 -10
- package/package.json +1 -1
- package/ui-test-worker.js +41 -41
- package/web/chunk-0b5vh2pt.js +2 -0
- package/web/chunk-0b5vh2pt.js.br +0 -0
- package/web/chunk-0b5vh2pt.js.gz +0 -0
- package/web/chunk-0hkdqhkv.js +1 -0
- package/web/chunk-0hkdqhkv.js.br +0 -0
- package/web/chunk-0hkdqhkv.js.gz +0 -0
- package/web/chunk-0v7wrb32.js +2 -0
- package/web/chunk-0v7wrb32.js.br +0 -0
- package/web/chunk-0v7wrb32.js.gz +0 -0
- package/web/chunk-0x2fgw1m.js +1 -0
- package/web/chunk-0x2fgw1m.js.br +0 -0
- package/web/chunk-0x2fgw1m.js.gz +0 -0
- package/web/chunk-0xctxqvv.js +2 -0
- package/web/chunk-0xctxqvv.js.br +0 -0
- package/web/chunk-0xctxqvv.js.gz +0 -0
- package/web/chunk-0y9tf0rt.js +89 -0
- package/web/chunk-0y9tf0rt.js.br +0 -0
- package/web/chunk-0y9tf0rt.js.gz +0 -0
- package/web/chunk-0yrp0f6x.js +1 -0
- package/web/chunk-0yrp0f6x.js.br +0 -0
- package/web/chunk-0yrp0f6x.js.gz +0 -0
- package/web/chunk-10jk2pn9.js +1 -0
- package/web/chunk-10jk2pn9.js.br +0 -0
- package/web/chunk-10jk2pn9.js.gz +0 -0
- package/web/chunk-15ka35m9.js +2 -0
- package/web/chunk-15ka35m9.js.br +0 -0
- package/web/chunk-15ka35m9.js.gz +0 -0
- package/web/chunk-1700cges.js +1 -0
- package/web/chunk-1700cges.js.br +0 -0
- package/web/chunk-1700cges.js.gz +0 -0
- package/web/chunk-1apw6pnk.css +1 -0
- package/web/chunk-1apw6pnk.css.br +0 -0
- package/web/chunk-1apw6pnk.css.gz +0 -0
- package/web/chunk-1b005nqw.js +139 -0
- package/web/chunk-1b005nqw.js.br +0 -0
- package/web/chunk-1b005nqw.js.gz +0 -0
- package/web/chunk-1c9khgyt.js +1 -0
- package/web/chunk-1c9khgyt.js.br +2 -0
- package/web/chunk-1c9khgyt.js.gz +0 -0
- package/web/chunk-1pr20x9x.js +1 -0
- package/web/chunk-1pr20x9x.js.br +0 -0
- package/web/chunk-1pr20x9x.js.gz +0 -0
- package/web/chunk-1sjgdggk.js +7 -0
- package/web/chunk-1sjgdggk.js.br +0 -0
- package/web/chunk-1sjgdggk.js.gz +0 -0
- package/web/chunk-1tt5ympp.js +1 -0
- package/web/chunk-1tt5ympp.js.br +0 -0
- package/web/chunk-1tt5ympp.js.gz +0 -0
- package/web/chunk-29fpfs5q.js +1142 -0
- package/web/chunk-29fpfs5q.js.br +0 -0
- package/web/chunk-29fpfs5q.js.gz +0 -0
- package/web/chunk-2gr7vwnp.js +24 -0
- package/web/chunk-2gr7vwnp.js.br +0 -0
- package/web/chunk-2gr7vwnp.js.gz +0 -0
- package/web/chunk-2p84jch3.js +1 -0
- package/web/chunk-2p84jch3.js.br +0 -0
- package/web/chunk-2p84jch3.js.gz +0 -0
- package/web/chunk-2qs283mh.js +2 -0
- package/web/chunk-2qs283mh.js.br +0 -0
- package/web/chunk-2qs283mh.js.gz +0 -0
- package/web/chunk-3gf2d852.js +1 -0
- package/web/chunk-3gf2d852.js.br +0 -0
- package/web/chunk-3gf2d852.js.gz +0 -0
- package/web/chunk-3hswqkb0.js +1 -0
- package/web/chunk-3hswqkb0.js.br +0 -0
- package/web/chunk-3hswqkb0.js.gz +0 -0
- package/web/chunk-46yjp1x4.js +2 -0
- package/web/chunk-46yjp1x4.js.br +0 -0
- package/web/chunk-46yjp1x4.js.gz +0 -0
- package/web/chunk-4ezd1rkc.js +84 -0
- package/web/chunk-4ezd1rkc.js.br +0 -0
- package/web/chunk-4ezd1rkc.js.gz +0 -0
- package/web/chunk-4v9ar0sf.js +142 -0
- package/web/chunk-4v9ar0sf.js.br +0 -0
- package/web/chunk-4v9ar0sf.js.gz +0 -0
- package/web/chunk-51z88j1t.js +21 -0
- package/web/chunk-51z88j1t.js.br +0 -0
- package/web/chunk-51z88j1t.js.gz +0 -0
- package/web/chunk-5f5zcfga.js +1 -0
- package/web/chunk-5f5zcfga.js.br +2 -0
- package/web/chunk-5f5zcfga.js.gz +0 -0
- package/web/chunk-5n61r0rr.js +36 -0
- package/web/chunk-5n61r0rr.js.br +0 -0
- package/web/chunk-5n61r0rr.js.gz +0 -0
- package/web/chunk-5vcdeenv.js +2 -0
- package/web/chunk-5vcdeenv.js.br +0 -0
- package/web/chunk-5vcdeenv.js.gz +0 -0
- package/web/chunk-5y7ks8c3.js +30 -0
- package/web/chunk-5y7ks8c3.js.br +0 -0
- package/web/chunk-5y7ks8c3.js.gz +0 -0
- package/web/chunk-60v8qwec.js +2 -0
- package/web/chunk-60v8qwec.js.br +0 -0
- package/web/chunk-60v8qwec.js.gz +0 -0
- package/web/chunk-61m5t9wg.js +200 -0
- package/web/chunk-61m5t9wg.js.br +0 -0
- package/web/chunk-61m5t9wg.js.gz +0 -0
- package/web/chunk-669n37qf.js +70 -0
- package/web/chunk-669n37qf.js.br +0 -0
- package/web/chunk-669n37qf.js.gz +0 -0
- package/web/chunk-6kf1xwz9.js +2 -0
- package/web/chunk-6kf1xwz9.js.br +0 -0
- package/web/chunk-6kf1xwz9.js.gz +0 -0
- package/web/chunk-6rw72jmj.js +2 -0
- package/web/chunk-6rw72jmj.js.br +0 -0
- package/web/chunk-6rw72jmj.js.gz +0 -0
- package/web/chunk-6wyxxd9h.js +2 -0
- package/web/chunk-6wyxxd9h.js.br +0 -0
- package/web/chunk-6wyxxd9h.js.gz +0 -0
- package/web/chunk-77vj65dc.js +1 -0
- package/web/chunk-77vj65dc.js.br +0 -0
- package/web/chunk-77vj65dc.js.gz +0 -0
- package/web/chunk-8ktz0w1x.js +120 -0
- package/web/chunk-8ktz0w1x.js.br +0 -0
- package/web/chunk-8ktz0w1x.js.gz +0 -0
- package/web/chunk-8rcfpj02.js +2 -0
- package/web/chunk-8rcfpj02.js.br +0 -0
- package/web/chunk-8rcfpj02.js.gz +0 -0
- package/web/chunk-8x4s1c9g.js +1 -0
- package/web/chunk-8x4s1c9g.js.br +2 -0
- package/web/chunk-8x4s1c9g.js.gz +0 -0
- package/web/chunk-8zf4cywy.js +1 -0
- package/web/chunk-8zf4cywy.js.br +0 -0
- package/web/chunk-8zf4cywy.js.gz +0 -0
- package/web/chunk-a18y5dmf.js +2 -0
- package/web/chunk-a18y5dmf.js.br +0 -0
- package/web/chunk-a18y5dmf.js.gz +0 -0
- package/web/chunk-a36sfjyk.js +1 -0
- package/web/chunk-a36sfjyk.js.br +0 -0
- package/web/chunk-a36sfjyk.js.gz +0 -0
- package/web/chunk-aahzqxq7.js +34 -0
- package/web/chunk-aahzqxq7.js.br +0 -0
- package/web/chunk-aahzqxq7.js.gz +0 -0
- package/web/chunk-b2gtwatf.js +370 -0
- package/web/chunk-b2gtwatf.js.br +0 -0
- package/web/chunk-b2gtwatf.js.gz +0 -0
- package/web/chunk-bdp4y1zg.js +1 -0
- package/web/chunk-bdp4y1zg.js.br +0 -0
- package/web/chunk-bdp4y1zg.js.gz +0 -0
- package/web/chunk-be67vfx1.js +1 -0
- package/web/chunk-be67vfx1.js.br +0 -0
- package/web/chunk-be67vfx1.js.gz +0 -0
- package/web/chunk-bt6r78y9.js +106 -0
- package/web/chunk-bt6r78y9.js.br +0 -0
- package/web/chunk-bt6r78y9.js.gz +0 -0
- package/web/chunk-c97th1x0.js +1 -0
- package/web/chunk-c97th1x0.js.br +0 -0
- package/web/chunk-c97th1x0.js.gz +0 -0
- package/web/chunk-cfkp7taw.js +1 -0
- package/web/chunk-cfkp7taw.js.br +0 -0
- package/web/chunk-cfkp7taw.js.gz +0 -0
- package/web/chunk-cvf9k1fy.js +140 -0
- package/web/chunk-cvf9k1fy.js.br +0 -0
- package/web/chunk-cvf9k1fy.js.gz +0 -0
- package/web/chunk-d33n9fsr.js +1 -0
- package/web/chunk-d33n9fsr.js.br +1 -0
- package/web/chunk-d33n9fsr.js.gz +0 -0
- package/web/chunk-e667nxc9.js +1 -0
- package/web/chunk-e667nxc9.js.br +0 -0
- package/web/chunk-e667nxc9.js.gz +0 -0
- package/web/chunk-eejjsqm1.js +303 -0
- package/web/chunk-eejjsqm1.js.br +0 -0
- package/web/chunk-eejjsqm1.js.gz +0 -0
- package/web/chunk-eg3qjy7a.js +2 -0
- package/web/chunk-eg3qjy7a.js.br +0 -0
- package/web/chunk-eg3qjy7a.js.gz +0 -0
- package/web/chunk-embvjvdj.js +12 -0
- package/web/chunk-embvjvdj.js.br +0 -0
- package/web/chunk-embvjvdj.js.gz +0 -0
- package/web/chunk-etjfr79m.js +2 -0
- package/web/chunk-etjfr79m.js.br +0 -0
- package/web/chunk-etjfr79m.js.gz +0 -0
- package/web/chunk-ez36gbz3.js +7 -0
- package/web/chunk-ez36gbz3.js.br +0 -0
- package/web/chunk-ez36gbz3.js.gz +0 -0
- package/web/chunk-f0vcm8mk.js +214 -0
- package/web/chunk-f0vcm8mk.js.br +0 -0
- package/web/chunk-f0vcm8mk.js.gz +0 -0
- package/web/chunk-f3t3ey83.js +1 -0
- package/web/chunk-f3t3ey83.js.br +0 -0
- package/web/chunk-f3t3ey83.js.gz +0 -0
- package/web/chunk-f84sngcq.js +2 -0
- package/web/chunk-f84sngcq.js.br +0 -0
- package/web/chunk-f84sngcq.js.gz +0 -0
- package/web/chunk-f97hz4v5.js +99 -0
- package/web/chunk-f97hz4v5.js.br +0 -0
- package/web/chunk-f97hz4v5.js.gz +0 -0
- package/web/chunk-fnkp6s0g.js +1 -0
- package/web/chunk-fnkp6s0g.js.br +0 -0
- package/web/chunk-fnkp6s0g.js.gz +0 -0
- package/web/chunk-fpdyzyn8.js +16 -0
- package/web/chunk-fpdyzyn8.js.br +0 -0
- package/web/chunk-fpdyzyn8.js.gz +0 -0
- package/web/chunk-g43z223a.js +2 -0
- package/web/chunk-g43z223a.js.br +0 -0
- package/web/chunk-g43z223a.js.gz +0 -0
- package/web/chunk-gcm82aj8.js +1 -0
- package/web/chunk-gcm82aj8.js.br +0 -0
- package/web/chunk-gcm82aj8.js.gz +0 -0
- package/web/chunk-gffb3p4z.js +2 -0
- package/web/chunk-gffb3p4z.js.br +0 -0
- package/web/chunk-gffb3p4z.js.gz +0 -0
- package/web/chunk-gnzg3krt.js +1 -0
- package/web/chunk-gnzg3krt.js.br +0 -0
- package/web/chunk-gnzg3krt.js.gz +0 -0
- package/web/chunk-grqtpfdp.js +2 -0
- package/web/chunk-grqtpfdp.js.br +0 -0
- package/web/chunk-grqtpfdp.js.gz +0 -0
- package/web/chunk-gsm8spf8.js +1 -0
- package/web/chunk-gsm8spf8.js.br +0 -0
- package/web/chunk-gsm8spf8.js.gz +0 -0
- package/web/chunk-h6ygrnd0.js +38 -0
- package/web/chunk-h6ygrnd0.js.br +0 -0
- package/web/chunk-h6ygrnd0.js.gz +0 -0
- package/web/chunk-h8n9w5th.js +169 -0
- package/web/chunk-h8n9w5th.js.br +0 -0
- package/web/chunk-h8n9w5th.js.gz +0 -0
- package/web/chunk-hmdvm5pp.js +2 -0
- package/web/chunk-hmdvm5pp.js.br +0 -0
- package/web/chunk-hmdvm5pp.js.gz +0 -0
- package/web/chunk-hrntwvx8.js +1 -0
- package/web/chunk-hrntwvx8.js.br +0 -0
- package/web/chunk-hrntwvx8.js.gz +0 -0
- package/web/chunk-hrys15jh.js +324 -0
- package/web/chunk-hrys15jh.js.br +0 -0
- package/web/chunk-hrys15jh.js.gz +0 -0
- package/web/chunk-j0ng7zdq.js +41 -0
- package/web/chunk-j0ng7zdq.js.br +0 -0
- package/web/chunk-j0ng7zdq.js.gz +0 -0
- package/web/chunk-j2t5ycte.js +78 -0
- package/web/chunk-j2t5ycte.js.br +0 -0
- package/web/chunk-j2t5ycte.js.gz +0 -0
- package/web/chunk-jkjd1y3p.js +3 -0
- package/web/chunk-jkjd1y3p.js.br +0 -0
- package/web/chunk-jkjd1y3p.js.gz +0 -0
- package/web/chunk-jweahmyy.js +1 -0
- package/web/chunk-jweahmyy.js.br +0 -0
- package/web/chunk-jweahmyy.js.gz +0 -0
- package/web/chunk-k56v8k7n.js +4 -0
- package/web/chunk-k56v8k7n.js.br +0 -0
- package/web/chunk-k56v8k7n.js.gz +0 -0
- package/web/chunk-k59sk88z.js +7 -0
- package/web/chunk-k59sk88z.js.br +0 -0
- package/web/chunk-k59sk88z.js.gz +0 -0
- package/web/chunk-k75a0fpt.js +62 -0
- package/web/chunk-k75a0fpt.js.br +0 -0
- package/web/chunk-k75a0fpt.js.gz +0 -0
- package/web/chunk-kfx9q7xv.js +2 -0
- package/web/chunk-kfx9q7xv.js.br +0 -0
- package/web/chunk-kfx9q7xv.js.gz +0 -0
- package/web/chunk-ksp1gg3v.js +1 -0
- package/web/chunk-ksp1gg3v.js.br +0 -0
- package/web/chunk-ksp1gg3v.js.gz +0 -0
- package/web/chunk-kxxp1mn4.js +2 -0
- package/web/chunk-kxxp1mn4.js.br +0 -0
- package/web/chunk-kxxp1mn4.js.gz +0 -0
- package/web/chunk-mapbxzsz.js +1 -0
- package/web/chunk-mapbxzsz.js.br +0 -0
- package/web/chunk-mapbxzsz.js.gz +0 -0
- package/web/chunk-msw43fnq.js +2 -0
- package/web/chunk-msw43fnq.js.br +0 -0
- package/web/chunk-msw43fnq.js.gz +0 -0
- package/web/chunk-mzzjg4sn.js +2 -0
- package/web/chunk-mzzjg4sn.js.br +0 -0
- package/web/chunk-mzzjg4sn.js.gz +0 -0
- package/web/chunk-n1bmcj13.js +2 -0
- package/web/chunk-n1bmcj13.js.br +0 -0
- package/web/chunk-n1bmcj13.js.gz +0 -0
- package/web/chunk-n5y4ar3e.js +1 -0
- package/web/chunk-n5y4ar3e.js.br +0 -0
- package/web/chunk-n5y4ar3e.js.gz +0 -0
- package/web/chunk-n9vszqw9.js +1 -0
- package/web/chunk-n9vszqw9.js.br +0 -0
- package/web/chunk-n9vszqw9.js.gz +0 -0
- package/web/chunk-nzzcmxq8.js +1 -0
- package/web/chunk-nzzcmxq8.js.br +0 -0
- package/web/chunk-nzzcmxq8.js.gz +0 -0
- package/web/chunk-p25eppk1.js +1 -0
- package/web/chunk-p25eppk1.js.br +0 -0
- package/web/chunk-p25eppk1.js.gz +0 -0
- package/web/chunk-p9352vpw.js +1 -0
- package/web/chunk-p9352vpw.js.br +0 -0
- package/web/chunk-p9352vpw.js.gz +0 -0
- package/web/chunk-pdvm4n6f.js +1 -0
- package/web/chunk-pdvm4n6f.js.br +2 -0
- package/web/chunk-pdvm4n6f.js.gz +0 -0
- package/web/chunk-pjm2t9da.js +1 -0
- package/web/chunk-pjm2t9da.js.br +0 -0
- package/web/chunk-pjm2t9da.js.gz +0 -0
- package/web/chunk-pka3qm06.js +98 -0
- package/web/chunk-pka3qm06.js.br +0 -0
- package/web/chunk-pka3qm06.js.gz +0 -0
- package/web/chunk-pkbcbta6.js +1 -0
- package/web/chunk-pkbcbta6.js.br +0 -0
- package/web/chunk-pkbcbta6.js.gz +0 -0
- package/web/chunk-pq4vn3zh.js +1 -0
- package/web/chunk-pq4vn3zh.js.br +0 -0
- package/web/chunk-pq4vn3zh.js.gz +0 -0
- package/web/chunk-prk9ks5j.js +1 -0
- package/web/chunk-prk9ks5j.js.br +0 -0
- package/web/chunk-prk9ks5j.js.gz +0 -0
- package/web/chunk-px68tdjm.js +1 -0
- package/web/chunk-px68tdjm.js.br +2 -0
- package/web/chunk-px68tdjm.js.gz +0 -0
- package/web/chunk-px8k5edz.js +24 -0
- package/web/chunk-px8k5edz.js.br +0 -0
- package/web/chunk-px8k5edz.js.gz +0 -0
- package/web/chunk-pz4g2bem.js +292 -0
- package/web/chunk-pz4g2bem.js.br +0 -0
- package/web/chunk-pz4g2bem.js.gz +0 -0
- package/web/chunk-q0gx75nf.js +55 -0
- package/web/chunk-q0gx75nf.js.br +0 -0
- package/web/chunk-q0gx75nf.js.gz +0 -0
- package/web/chunk-q9rpxfmm.js +1 -0
- package/web/chunk-q9rpxfmm.js.br +0 -0
- package/web/chunk-q9rpxfmm.js.gz +0 -0
- package/web/chunk-qpfhs1x0.js +1 -0
- package/web/chunk-qpfhs1x0.js.br +0 -0
- package/web/chunk-qpfhs1x0.js.gz +0 -0
- package/web/chunk-qredmg6m.js +1 -0
- package/web/chunk-qredmg6m.js.br +0 -0
- package/web/chunk-qredmg6m.js.gz +0 -0
- package/web/chunk-qtc9ar2m.js +2 -0
- package/web/chunk-qtc9ar2m.js.br +0 -0
- package/web/chunk-qtc9ar2m.js.gz +0 -0
- package/web/chunk-r5dsw56r.js +1 -0
- package/web/chunk-r5dsw56r.js.br +0 -0
- package/web/chunk-r5dsw56r.js.gz +0 -0
- package/web/chunk-rkaps675.js +1 -0
- package/web/chunk-rkaps675.js.br +0 -0
- package/web/chunk-rkaps675.js.gz +0 -0
- package/web/chunk-rp87pgcp.js +40 -0
- package/web/chunk-rp87pgcp.js.br +0 -0
- package/web/chunk-rp87pgcp.js.gz +0 -0
- package/web/chunk-rs1mtd35.js +2 -0
- package/web/chunk-rs1mtd35.js.br +0 -0
- package/web/chunk-rs1mtd35.js.gz +0 -0
- package/web/chunk-s31n33g5.js +2 -0
- package/web/chunk-s31n33g5.js.br +0 -0
- package/web/chunk-s31n33g5.js.gz +0 -0
- package/web/chunk-sbcyvn42.js +1 -0
- package/web/chunk-sbcyvn42.js.br +0 -0
- package/web/chunk-sbcyvn42.js.gz +0 -0
- package/web/chunk-sew9vfwy.js +1 -0
- package/web/chunk-sew9vfwy.js.br +0 -0
- package/web/chunk-sew9vfwy.js.gz +0 -0
- package/web/chunk-sgaw26nc.js +2 -0
- package/web/chunk-sgaw26nc.js.br +0 -0
- package/web/chunk-sgaw26nc.js.gz +0 -0
- package/web/chunk-t2ak4a9d.js +1 -0
- package/web/chunk-t2ak4a9d.js.br +0 -0
- package/web/chunk-t2ak4a9d.js.gz +0 -0
- package/web/chunk-ta0e3dk6.js +2 -0
- package/web/chunk-ta0e3dk6.js.br +0 -0
- package/web/chunk-ta0e3dk6.js.gz +0 -0
- package/web/chunk-tqax5mb6.js +217 -0
- package/web/chunk-tqax5mb6.js.br +0 -0
- package/web/chunk-tqax5mb6.js.gz +0 -0
- package/web/chunk-v1wxeq38.js +2 -0
- package/web/chunk-v1wxeq38.js.br +0 -0
- package/web/chunk-v1wxeq38.js.gz +0 -0
- package/web/chunk-v3kwg4zn.js +2 -0
- package/web/chunk-v3kwg4zn.js.br +0 -0
- package/web/chunk-v3kwg4zn.js.gz +0 -0
- package/web/chunk-vcpvhkxh.js +39 -0
- package/web/chunk-vcpvhkxh.js.br +0 -0
- package/web/chunk-vcpvhkxh.js.gz +0 -0
- package/web/chunk-vg9qv3aa.js +1 -0
- package/web/chunk-vg9qv3aa.js.br +0 -0
- package/web/chunk-vg9qv3aa.js.gz +0 -0
- package/web/chunk-vwxnt3nh.js +1 -0
- package/web/chunk-vwxnt3nh.js.br +0 -0
- package/web/chunk-vwxnt3nh.js.gz +0 -0
- package/web/chunk-w1xjqhwy.js +1 -0
- package/web/chunk-w1xjqhwy.js.br +2 -0
- package/web/chunk-w1xjqhwy.js.gz +0 -0
- package/web/chunk-w3nfxvzd.js +1 -0
- package/web/chunk-w3nfxvzd.js.br +0 -0
- package/web/chunk-w3nfxvzd.js.gz +0 -0
- package/web/chunk-w7h3x3ys.js +1 -0
- package/web/chunk-w7h3x3ys.js.br +0 -0
- package/web/chunk-w7h3x3ys.js.gz +0 -0
- package/web/chunk-wb0yn3r4.js +8 -0
- package/web/chunk-wb0yn3r4.js.br +0 -0
- package/web/chunk-wb0yn3r4.js.gz +0 -0
- package/web/chunk-wff6hqjf.js +1 -0
- package/web/chunk-wff6hqjf.js.br +0 -0
- package/web/chunk-wff6hqjf.js.gz +0 -0
- package/web/chunk-whj4e4sb.js +89 -0
- package/web/chunk-whj4e4sb.js.br +0 -0
- package/web/chunk-whj4e4sb.js.gz +0 -0
- package/web/chunk-wn3kdpj0.js +1 -0
- package/web/chunk-wn3kdpj0.js.br +0 -0
- package/web/chunk-wn3kdpj0.js.gz +0 -0
- package/web/chunk-wzq3qxpb.js +1 -0
- package/web/chunk-wzq3qxpb.js.br +0 -0
- package/web/chunk-wzq3qxpb.js.gz +0 -0
- package/web/chunk-x2tezwv1.js +4 -0
- package/web/chunk-x2tezwv1.js.br +0 -0
- package/web/chunk-x2tezwv1.js.gz +0 -0
- package/web/chunk-xmajh4qe.js +2 -0
- package/web/chunk-xmajh4qe.js.br +0 -0
- package/web/chunk-xmajh4qe.js.gz +0 -0
- package/web/chunk-xz7py7yx.js +1 -0
- package/web/chunk-xz7py7yx.js.br +0 -0
- package/web/chunk-xz7py7yx.js.gz +0 -0
- package/web/chunk-y4af9gsm.js +291 -0
- package/web/chunk-y4af9gsm.js.br +0 -0
- package/web/chunk-y4af9gsm.js.gz +0 -0
- package/web/chunk-y512gr5a.js +332 -0
- package/web/chunk-y512gr5a.js.br +0 -0
- package/web/chunk-y512gr5a.js.gz +0 -0
- package/web/chunk-ywg44m2b.js +2 -0
- package/web/chunk-ywg44m2b.js.br +0 -0
- package/web/chunk-ywg44m2b.js.gz +0 -0
- package/web/chunk-zhzp4fm1.js +2 -0
- package/web/chunk-zhzp4fm1.js.br +0 -0
- package/web/chunk-zhzp4fm1.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-0tr0cc6f.js +0 -3
- package/chunk-1f0mnggp.js +0 -3
- package/chunk-1ntcq7ed.js +0 -2
- package/chunk-1xkxfddg.js +0 -286
- package/chunk-1zz6akcm.js +0 -3
- package/chunk-2cd3qzny.js +0 -3
- package/chunk-2sbmy31t.js +0 -2
- package/chunk-32s6agaj.js +0 -2
- package/chunk-37n62c4c.js +0 -3
- package/chunk-3w2902kg.js +0 -9
- package/chunk-43q7hq53.js +0 -2
- package/chunk-4ewh67qf.js +0 -25
- package/chunk-5277mfp2.js +0 -44
- package/chunk-54zpktrq.js +0 -3
- package/chunk-6f1zc4g6.js +0 -2
- package/chunk-6r4kw9x9.js +0 -60
- package/chunk-7qaavsga.js +0 -2
- package/chunk-88s6d1bz.js +0 -3
- package/chunk-9jw0km9r.js +0 -13
- package/chunk-a3h0mng1.js +0 -8
- package/chunk-acmtkg1q.js +0 -20
- package/chunk-adn9jbzj.js +0 -2
- package/chunk-anfhjdgv.js +0 -2
- package/chunk-apn5amfe.js +0 -498
- package/chunk-bsp6e8cv.js +0 -2
- package/chunk-bw2h35jd.js +0 -2
- package/chunk-bwx9m3ex.js +0 -51
- package/chunk-cezgvpja.js +0 -3
- package/chunk-cfhtmr6g.js +0 -31
- package/chunk-d5w3ntc3.js +0 -7
- package/chunk-dtks8c7v.js +0 -2
- package/chunk-e01g2yf9.js +0 -3
- package/chunk-e1rfd7jn.js +0 -3
- package/chunk-e8ehznx7.js +0 -2
- package/chunk-edp0svhf.js +0 -3
- package/chunk-evaew46c.js +0 -2
- package/chunk-ewhpfrgj.js +0 -3
- package/chunk-f7q6p7tp.js +0 -7
- package/chunk-fgpzy3fe.js +0 -3
- package/chunk-fm482h25.js +0 -3
- package/chunk-g3j6jdht.js +0 -39
- package/chunk-gejre6z5.js +0 -7
- package/chunk-gz5ssvjh.js +0 -3
- package/chunk-h32ca6cs.js +0 -11
- package/chunk-hab25nd9.js +0 -3
- package/chunk-jbfkv490.js +0 -8
- package/chunk-jem2kqdt.js +0 -3
- package/chunk-jrwezx0r.js +0 -16
- package/chunk-ka5dtn3w.js +0 -3
- package/chunk-kxmws6zx.js +0 -4068
- package/chunk-m0gk2b1f.js +0 -3
- package/chunk-mekgrca0.js +0 -25
- package/chunk-mkp20bwr.js +0 -2
- package/chunk-n4qxf40m.js +0 -2
- package/chunk-n9r9zzr4.js +0 -59
- package/chunk-ndca35jt.js +0 -5
- package/chunk-ng9vq9hy.js +0 -2
- package/chunk-nx1997s8.js +0 -2
- package/chunk-p99dt6kf.js +0 -12
- package/chunk-pnctvz58.js +0 -3
- package/chunk-ppgn9exm.js +0 -2
- package/chunk-pqq5znyp.js +0 -2
- package/chunk-q2429jd1.js +0 -3
- package/chunk-q3nmdtk4.js +0 -3
- package/chunk-q4r4nger.js +0 -3
- package/chunk-q6gq7g7m.js +0 -4
- package/chunk-qnejy3qp.js +0 -2
- package/chunk-sj0fqgjf.js +0 -10
- package/chunk-t5y3dqv3.js +0 -3
- package/chunk-t6vw73nv.js +0 -2
- package/chunk-t9zpdekw.js +0 -5
- package/chunk-v0xs5sy0.js +0 -2
- package/chunk-v8v2exqg.js +0 -2
- package/chunk-wgff8n0r.js +0 -2
- package/chunk-wpv679r1.js +0 -3
- package/chunk-wrw806wb.js +0 -3
- package/chunk-wsby70ce.js +0 -12
- package/chunk-xdbgpht7.js +0 -2
- package/chunk-y1b98tfk.js +0 -5
- package/chunk-y3m3w19s.js +0 -3
- package/chunk-y5p5jq48.js +0 -63
- package/chunk-ynf5sz68.js +0 -10
- package/chunk-zfk9az7y.js +0 -5
- package/chunk-zwse6b6t.js +0 -18
- package/web/chunk-016nkjwe.js +0 -2
- package/web/chunk-016nkjwe.js.br +0 -0
- package/web/chunk-016nkjwe.js.gz +0 -0
- package/web/chunk-0er8vdaw.js +0 -2
- package/web/chunk-0er8vdaw.js.br +0 -0
- package/web/chunk-0er8vdaw.js.gz +0 -0
- package/web/chunk-0sq0ed2h.js +0 -12
- package/web/chunk-0sq0ed2h.js.br +0 -0
- package/web/chunk-0sq0ed2h.js.gz +0 -0
- package/web/chunk-0w8swe64.js +0 -2
- package/web/chunk-0w8swe64.js.br +0 -0
- package/web/chunk-0w8swe64.js.gz +0 -0
- package/web/chunk-15pxdcz7.js +0 -1
- package/web/chunk-15pxdcz7.js.br +0 -0
- package/web/chunk-15pxdcz7.js.gz +0 -0
- package/web/chunk-1a1w9rth.js +0 -4
- package/web/chunk-1a1w9rth.js.br +0 -0
- package/web/chunk-1a1w9rth.js.gz +0 -0
- package/web/chunk-1e8tsn4c.js +0 -1
- package/web/chunk-1e8tsn4c.js.br +0 -0
- package/web/chunk-1e8tsn4c.js.gz +0 -0
- package/web/chunk-1jwp193e.js +0 -78
- package/web/chunk-1jwp193e.js.br +0 -0
- package/web/chunk-1jwp193e.js.gz +0 -0
- package/web/chunk-1wz0tepc.js +0 -106
- package/web/chunk-1wz0tepc.js.br +0 -0
- package/web/chunk-1wz0tepc.js.gz +0 -0
- package/web/chunk-20gcnbgn.js +0 -2
- package/web/chunk-20gcnbgn.js.br +0 -0
- package/web/chunk-20gcnbgn.js.gz +0 -0
- package/web/chunk-213m58wn.js +0 -1
- package/web/chunk-213m58wn.js.br +0 -0
- package/web/chunk-213m58wn.js.gz +0 -0
- package/web/chunk-2hat8cth.js +0 -1
- package/web/chunk-2hat8cth.js.br +0 -0
- package/web/chunk-2hat8cth.js.gz +0 -0
- package/web/chunk-2nwvdqxm.js +0 -1
- package/web/chunk-2nwvdqxm.js.br +0 -0
- package/web/chunk-2nwvdqxm.js.gz +0 -0
- package/web/chunk-3dj31vfh.js +0 -292
- package/web/chunk-3dj31vfh.js.br +0 -0
- package/web/chunk-3dj31vfh.js.gz +0 -0
- package/web/chunk-3g7waf75.js +0 -70
- package/web/chunk-3g7waf75.js.br +0 -0
- package/web/chunk-3g7waf75.js.gz +0 -0
- package/web/chunk-3x1zg1hk.js +0 -1
- package/web/chunk-3x1zg1hk.js.br +0 -0
- package/web/chunk-3x1zg1hk.js.gz +0 -0
- package/web/chunk-414npx47.js +0 -1
- package/web/chunk-414npx47.js.br +0 -0
- package/web/chunk-414npx47.js.gz +0 -0
- package/web/chunk-416ts17x.js +0 -2
- package/web/chunk-416ts17x.js.br +0 -0
- package/web/chunk-416ts17x.js.gz +0 -0
- package/web/chunk-47qwqp4f.js +0 -7
- package/web/chunk-47qwqp4f.js.br +0 -0
- package/web/chunk-47qwqp4f.js.gz +0 -0
- package/web/chunk-4k4c2se1.js +0 -2
- package/web/chunk-4k4c2se1.js.br +0 -0
- package/web/chunk-4k4c2se1.js.gz +0 -0
- package/web/chunk-4vsg8d4c.js +0 -4
- package/web/chunk-4vsg8d4c.js.br +0 -0
- package/web/chunk-4vsg8d4c.js.gz +0 -0
- package/web/chunk-53ag9hyw.js +0 -40
- package/web/chunk-53ag9hyw.js.br +0 -0
- package/web/chunk-53ag9hyw.js.gz +0 -0
- package/web/chunk-545zx869.js +0 -2
- package/web/chunk-545zx869.js.br +0 -0
- package/web/chunk-545zx869.js.gz +0 -0
- package/web/chunk-55mx05jg.js +0 -2
- package/web/chunk-55mx05jg.js.br +0 -0
- package/web/chunk-55mx05jg.js.gz +0 -0
- package/web/chunk-55phnzd7.js +0 -1
- package/web/chunk-55phnzd7.js.br +0 -0
- package/web/chunk-55phnzd7.js.gz +0 -0
- package/web/chunk-56a6njsk.js +0 -1
- package/web/chunk-56a6njsk.js.br +0 -0
- package/web/chunk-56a6njsk.js.gz +0 -0
- package/web/chunk-5hvs5kyx.js +0 -1
- package/web/chunk-5hvs5kyx.js.br +0 -0
- package/web/chunk-5hvs5kyx.js.gz +0 -0
- package/web/chunk-5nbyvd4t.js +0 -1
- package/web/chunk-5nbyvd4t.js.br +0 -0
- package/web/chunk-5nbyvd4t.js.gz +0 -0
- package/web/chunk-690qxds4.js +0 -1
- package/web/chunk-690qxds4.js.br +0 -0
- package/web/chunk-690qxds4.js.gz +0 -0
- package/web/chunk-6dr6eazd.js +0 -2
- package/web/chunk-6dr6eazd.js.br +0 -0
- package/web/chunk-6dr6eazd.js.gz +0 -0
- package/web/chunk-6nkegqxk.js +0 -139
- package/web/chunk-6nkegqxk.js.br +0 -0
- package/web/chunk-6nkegqxk.js.gz +0 -0
- package/web/chunk-6ypf5nq6.js +0 -140
- package/web/chunk-6ypf5nq6.js.br +0 -0
- package/web/chunk-6ypf5nq6.js.gz +0 -0
- package/web/chunk-70kws32b.js +0 -2
- package/web/chunk-70kws32b.js.br +0 -0
- package/web/chunk-70kws32b.js.gz +0 -0
- package/web/chunk-71tshjjr.js +0 -16
- package/web/chunk-71tshjjr.js.br +0 -0
- package/web/chunk-71tshjjr.js.gz +0 -0
- package/web/chunk-7fh9k75p.js +0 -1
- package/web/chunk-7fh9k75p.js.br +0 -0
- package/web/chunk-7fh9k75p.js.gz +0 -0
- package/web/chunk-7k8azd8z.js +0 -1
- package/web/chunk-7k8azd8z.js.br +0 -0
- package/web/chunk-7k8azd8z.js.gz +0 -0
- package/web/chunk-7mmebce4.js +0 -1
- package/web/chunk-7mmebce4.js.br +0 -0
- package/web/chunk-7mmebce4.js.gz +0 -0
- package/web/chunk-7mwghj09.js +0 -89
- package/web/chunk-7mwghj09.js.br +0 -0
- package/web/chunk-7mwghj09.js.gz +0 -0
- package/web/chunk-7y5kr56m.js +0 -1
- package/web/chunk-7y5kr56m.js.br +0 -0
- package/web/chunk-7y5kr56m.js.gz +0 -0
- package/web/chunk-8esqhp64.js +0 -1
- package/web/chunk-8esqhp64.js.br +0 -0
- package/web/chunk-8esqhp64.js.gz +0 -0
- package/web/chunk-8gxgpr3n.js +0 -214
- package/web/chunk-8gxgpr3n.js.br +0 -0
- package/web/chunk-8gxgpr3n.js.gz +0 -0
- package/web/chunk-8vnmk3y7.js +0 -1
- package/web/chunk-8vnmk3y7.js.br +0 -0
- package/web/chunk-8vnmk3y7.js.gz +0 -0
- package/web/chunk-99r862t8.js +0 -30
- package/web/chunk-99r862t8.js.br +0 -0
- package/web/chunk-99r862t8.js.gz +0 -0
- package/web/chunk-9cznsyf4.js +0 -7
- package/web/chunk-9cznsyf4.js.br +0 -0
- package/web/chunk-9cznsyf4.js.gz +0 -0
- package/web/chunk-9hmw91e9.js +0 -1
- package/web/chunk-9hmw91e9.js.br +0 -0
- package/web/chunk-9hmw91e9.js.gz +0 -0
- package/web/chunk-9j7v0e4v.js +0 -2
- package/web/chunk-9j7v0e4v.js.br +0 -0
- package/web/chunk-9j7v0e4v.js.gz +0 -0
- package/web/chunk-9pyad3tv.js +0 -1
- package/web/chunk-9pyad3tv.js.br +0 -0
- package/web/chunk-9pyad3tv.js.gz +0 -0
- package/web/chunk-9rf2smk2.js +0 -1142
- package/web/chunk-9rf2smk2.js.br +0 -0
- package/web/chunk-9rf2smk2.js.gz +0 -0
- package/web/chunk-aan5qk6x.js +0 -1
- package/web/chunk-aan5qk6x.js.br +0 -0
- package/web/chunk-aan5qk6x.js.gz +0 -0
- package/web/chunk-aaz4msca.js +0 -89
- package/web/chunk-aaz4msca.js.br +0 -0
- package/web/chunk-aaz4msca.js.gz +0 -0
- package/web/chunk-ag0ng2nt.js +0 -24
- package/web/chunk-ag0ng2nt.js.br +0 -0
- package/web/chunk-ag0ng2nt.js.gz +0 -0
- package/web/chunk-an9b0mhe.js +0 -55
- package/web/chunk-an9b0mhe.js.br +0 -0
- package/web/chunk-an9b0mhe.js.gz +0 -0
- package/web/chunk-apgvrfc2.js +0 -41
- package/web/chunk-apgvrfc2.js.br +0 -0
- package/web/chunk-apgvrfc2.js.gz +0 -0
- package/web/chunk-aq09zt1h.js +0 -332
- package/web/chunk-aq09zt1h.js.br +0 -0
- package/web/chunk-aq09zt1h.js.gz +0 -0
- package/web/chunk-ayy6rwm5.js +0 -1
- package/web/chunk-ayy6rwm5.js.br +0 -0
- package/web/chunk-ayy6rwm5.js.gz +0 -0
- package/web/chunk-azhw80d1.js +0 -1
- package/web/chunk-azhw80d1.js.br +0 -0
- package/web/chunk-azhw80d1.js.gz +0 -0
- package/web/chunk-b4bty1ns.js +0 -8
- package/web/chunk-b4bty1ns.js.br +0 -1
- package/web/chunk-b4bty1ns.js.gz +0 -0
- package/web/chunk-bs9934z7.js +0 -200
- package/web/chunk-bs9934z7.js.br +0 -0
- package/web/chunk-bs9934z7.js.gz +0 -0
- package/web/chunk-c9nwfxrp.js +0 -1
- package/web/chunk-c9nwfxrp.js.br +0 -0
- package/web/chunk-c9nwfxrp.js.gz +0 -0
- package/web/chunk-capfyqch.js +0 -1
- package/web/chunk-capfyqch.js.br +0 -0
- package/web/chunk-capfyqch.js.gz +0 -0
- package/web/chunk-ckev38zc.js +0 -36
- package/web/chunk-ckev38zc.js.br +0 -0
- package/web/chunk-ckev38zc.js.gz +0 -0
- package/web/chunk-cnkerjp4.js +0 -370
- package/web/chunk-cnkerjp4.js.br +0 -0
- package/web/chunk-cnkerjp4.js.gz +0 -0
- package/web/chunk-d3bgcz6q.js +0 -1
- package/web/chunk-d3bgcz6q.js.br +0 -0
- package/web/chunk-d3bgcz6q.js.gz +0 -0
- package/web/chunk-d5n2yz4e.js +0 -2
- package/web/chunk-d5n2yz4e.js.br +0 -0
- package/web/chunk-d5n2yz4e.js.gz +0 -0
- package/web/chunk-d5xqtvb1.js +0 -2
- package/web/chunk-d5xqtvb1.js.br +0 -0
- package/web/chunk-d5xqtvb1.js.gz +0 -0
- package/web/chunk-daqfnvaw.js +0 -1
- package/web/chunk-daqfnvaw.js.br +0 -0
- package/web/chunk-daqfnvaw.js.gz +0 -0
- package/web/chunk-dqz580pg.js +0 -1
- package/web/chunk-dqz580pg.js.br +0 -0
- package/web/chunk-dqz580pg.js.gz +0 -0
- package/web/chunk-e54b48p5.js +0 -2
- package/web/chunk-e54b48p5.js.br +0 -0
- package/web/chunk-e54b48p5.js.gz +0 -0
- package/web/chunk-e8bgrjps.js +0 -2
- package/web/chunk-e8bgrjps.js.br +0 -0
- package/web/chunk-e8bgrjps.js.gz +0 -0
- package/web/chunk-efdg5mjf.js +0 -217
- package/web/chunk-efdg5mjf.js.br +0 -0
- package/web/chunk-efdg5mjf.js.gz +0 -0
- package/web/chunk-efhyygba.js +0 -7
- package/web/chunk-efhyygba.js.br +0 -0
- package/web/chunk-efhyygba.js.gz +0 -0
- package/web/chunk-en5n60qw.js +0 -2
- package/web/chunk-en5n60qw.js.br +0 -0
- package/web/chunk-en5n60qw.js.gz +0 -0
- package/web/chunk-eq0vm9vw.js +0 -2
- package/web/chunk-eq0vm9vw.js.br +0 -0
- package/web/chunk-eq0vm9vw.js.gz +0 -0
- package/web/chunk-eznkbqms.js +0 -1
- package/web/chunk-eznkbqms.js.br +0 -0
- package/web/chunk-eznkbqms.js.gz +0 -0
- package/web/chunk-f5wyg9zh.js +0 -2
- package/web/chunk-f5wyg9zh.js.br +0 -0
- package/web/chunk-f5wyg9zh.js.gz +0 -0
- package/web/chunk-f9rv8b13.js +0 -1
- package/web/chunk-f9rv8b13.js.br +0 -0
- package/web/chunk-f9rv8b13.js.gz +0 -0
- package/web/chunk-fnzyprme.js +0 -142
- package/web/chunk-fnzyprme.js.br +0 -0
- package/web/chunk-fnzyprme.js.gz +0 -0
- package/web/chunk-g63m3g5y.js +0 -1
- package/web/chunk-g63m3g5y.js.br +0 -2
- package/web/chunk-g63m3g5y.js.gz +0 -0
- package/web/chunk-g6gb3wz7.js +0 -1
- package/web/chunk-g6gb3wz7.js.br +0 -2
- package/web/chunk-g6gb3wz7.js.gz +0 -0
- package/web/chunk-g7ec62te.js +0 -2
- package/web/chunk-g7ec62te.js.br +0 -0
- package/web/chunk-g7ec62te.js.gz +0 -0
- package/web/chunk-gkj2bbdx.js +0 -1
- package/web/chunk-gkj2bbdx.js.br +0 -0
- package/web/chunk-gkj2bbdx.js.gz +0 -0
- package/web/chunk-gnx30bed.css +0 -1
- package/web/chunk-gnx30bed.css.br +0 -0
- package/web/chunk-gnx30bed.css.gz +0 -0
- package/web/chunk-gvndjaan.js +0 -2
- package/web/chunk-gvndjaan.js.br +0 -0
- package/web/chunk-gvndjaan.js.gz +0 -0
- package/web/chunk-h391pq6j.js +0 -1
- package/web/chunk-h391pq6j.js.br +0 -0
- package/web/chunk-h391pq6j.js.gz +0 -0
- package/web/chunk-h3kdr5mz.js +0 -21
- package/web/chunk-h3kdr5mz.js.br +0 -0
- package/web/chunk-h3kdr5mz.js.gz +0 -0
- package/web/chunk-hjs5pyye.js +0 -1
- package/web/chunk-hjs5pyye.js.br +0 -0
- package/web/chunk-hjs5pyye.js.gz +0 -0
- package/web/chunk-hxgtek0e.js +0 -2
- package/web/chunk-hxgtek0e.js.br +0 -0
- package/web/chunk-hxgtek0e.js.gz +0 -0
- package/web/chunk-j5a3jhp0.js +0 -120
- package/web/chunk-j5a3jhp0.js.br +0 -0
- package/web/chunk-j5a3jhp0.js.gz +0 -0
- package/web/chunk-jgdways6.js +0 -39
- package/web/chunk-jgdways6.js.br +0 -0
- package/web/chunk-jgdways6.js.gz +0 -0
- package/web/chunk-jybmjakj.js +0 -1
- package/web/chunk-jybmjakj.js.br +0 -2
- package/web/chunk-jybmjakj.js.gz +0 -0
- package/web/chunk-kasv56qe.js +0 -303
- package/web/chunk-kasv56qe.js.br +0 -0
- package/web/chunk-kasv56qe.js.gz +0 -0
- package/web/chunk-kmhbkjqx.js +0 -2
- package/web/chunk-kmhbkjqx.js.br +0 -0
- package/web/chunk-kmhbkjqx.js.gz +0 -0
- package/web/chunk-m06zdhdz.js +0 -1
- package/web/chunk-m06zdhdz.js.br +0 -0
- package/web/chunk-m06zdhdz.js.gz +0 -0
- package/web/chunk-mrnnq8dv.js +0 -1
- package/web/chunk-mrnnq8dv.js.br +0 -0
- package/web/chunk-mrnnq8dv.js.gz +0 -0
- package/web/chunk-mx1e3jgh.js +0 -1
- package/web/chunk-mx1e3jgh.js.br +0 -0
- package/web/chunk-mx1e3jgh.js.gz +0 -0
- package/web/chunk-n0tehchs.js +0 -3
- package/web/chunk-n0tehchs.js.br +0 -0
- package/web/chunk-n0tehchs.js.gz +0 -0
- package/web/chunk-n449ebhn.js +0 -38
- package/web/chunk-n449ebhn.js.br +0 -0
- package/web/chunk-n449ebhn.js.gz +0 -0
- package/web/chunk-ngsv0xfb.js +0 -1
- package/web/chunk-ngsv0xfb.js.br +0 -0
- package/web/chunk-ngsv0xfb.js.gz +0 -0
- package/web/chunk-ngy730n0.js +0 -1
- package/web/chunk-ngy730n0.js.br +0 -0
- package/web/chunk-ngy730n0.js.gz +0 -0
- package/web/chunk-nj9dtqyd.js +0 -2
- package/web/chunk-nj9dtqyd.js.br +0 -0
- package/web/chunk-nj9dtqyd.js.gz +0 -0
- package/web/chunk-nzaq0yae.js +0 -2
- package/web/chunk-nzaq0yae.js.br +0 -0
- package/web/chunk-nzaq0yae.js.gz +0 -0
- package/web/chunk-pgnfj8ea.js +0 -2
- package/web/chunk-pgnfj8ea.js.br +0 -0
- package/web/chunk-pgnfj8ea.js.gz +0 -0
- package/web/chunk-qtgen5c5.js +0 -24
- package/web/chunk-qtgen5c5.js.br +0 -0
- package/web/chunk-qtgen5c5.js.gz +0 -0
- package/web/chunk-qzn05afn.js +0 -169
- package/web/chunk-qzn05afn.js.br +0 -0
- package/web/chunk-qzn05afn.js.gz +0 -0
- package/web/chunk-r76we294.js +0 -1
- package/web/chunk-r76we294.js.br +0 -0
- package/web/chunk-r76we294.js.gz +0 -0
- package/web/chunk-r7st369j.js +0 -1
- package/web/chunk-r7st369j.js.br +0 -0
- package/web/chunk-r7st369j.js.gz +0 -0
- package/web/chunk-rj1rp0tc.js +0 -1
- package/web/chunk-rj1rp0tc.js.br +0 -0
- package/web/chunk-rj1rp0tc.js.gz +0 -0
- package/web/chunk-sgy3c5m7.js +0 -62
- package/web/chunk-sgy3c5m7.js.br +0 -0
- package/web/chunk-sgy3c5m7.js.gz +0 -0
- package/web/chunk-t7s9xrxt.js +0 -34
- package/web/chunk-t7s9xrxt.js.br +0 -0
- package/web/chunk-t7s9xrxt.js.gz +0 -0
- package/web/chunk-tmf1jnqz.js +0 -2
- package/web/chunk-tmf1jnqz.js.br +0 -0
- package/web/chunk-tmf1jnqz.js.gz +0 -0
- package/web/chunk-tn39vbcz.js +0 -2
- package/web/chunk-tn39vbcz.js.br +0 -0
- package/web/chunk-tn39vbcz.js.gz +0 -0
- package/web/chunk-tntwwpyh.js +0 -2
- package/web/chunk-tntwwpyh.js.br +0 -0
- package/web/chunk-tntwwpyh.js.gz +0 -0
- package/web/chunk-tpzyyc2z.js +0 -2
- package/web/chunk-tpzyyc2z.js.br +0 -0
- package/web/chunk-tpzyyc2z.js.gz +0 -0
- package/web/chunk-v95eqx92.js +0 -84
- package/web/chunk-v95eqx92.js.br +0 -0
- package/web/chunk-v95eqx92.js.gz +0 -0
- package/web/chunk-vcj5m1xb.js +0 -1
- package/web/chunk-vcj5m1xb.js.br +0 -0
- package/web/chunk-vcj5m1xb.js.gz +0 -0
- package/web/chunk-vndrjeyr.js +0 -2
- package/web/chunk-vndrjeyr.js.br +0 -0
- package/web/chunk-vndrjeyr.js.gz +0 -0
- package/web/chunk-vq0zf16h.js +0 -1
- package/web/chunk-vq0zf16h.js.br +0 -0
- package/web/chunk-vq0zf16h.js.gz +0 -0
- package/web/chunk-vqhtph6r.js +0 -1
- package/web/chunk-vqhtph6r.js.br +0 -0
- package/web/chunk-vqhtph6r.js.gz +0 -0
- package/web/chunk-vvsfwjrg.js +0 -1
- package/web/chunk-vvsfwjrg.js.br +0 -0
- package/web/chunk-vvsfwjrg.js.gz +0 -0
- package/web/chunk-vz2mgxs7.js +0 -1
- package/web/chunk-vz2mgxs7.js.br +0 -0
- package/web/chunk-vz2mgxs7.js.gz +0 -0
- package/web/chunk-wdd9pasx.js +0 -1
- package/web/chunk-wdd9pasx.js.br +0 -0
- package/web/chunk-wdd9pasx.js.gz +0 -0
- package/web/chunk-wry3q68j.js +0 -1
- package/web/chunk-wry3q68j.js.br +0 -2
- package/web/chunk-wry3q68j.js.gz +0 -0
- package/web/chunk-wrz0gqnv.js +0 -1
- package/web/chunk-wrz0gqnv.js.br +0 -0
- package/web/chunk-wrz0gqnv.js.gz +0 -0
- package/web/chunk-wvapb3r6.js +0 -98
- package/web/chunk-wvapb3r6.js.br +0 -0
- package/web/chunk-wvapb3r6.js.gz +0 -0
- package/web/chunk-x6qva9zc.js +0 -324
- package/web/chunk-x6qva9zc.js.br +0 -0
- package/web/chunk-x6qva9zc.js.gz +0 -0
- package/web/chunk-xa2ngtyg.js +0 -2
- package/web/chunk-xa2ngtyg.js.br +0 -0
- package/web/chunk-xa2ngtyg.js.gz +0 -0
- package/web/chunk-xhjf5ye0.js +0 -1
- package/web/chunk-xhjf5ye0.js.br +0 -0
- package/web/chunk-xhjf5ye0.js.gz +0 -0
- package/web/chunk-xkqekh81.js +0 -2
- package/web/chunk-xkqekh81.js.br +0 -0
- package/web/chunk-xkqekh81.js.gz +0 -0
- package/web/chunk-xsjvamcy.js +0 -1
- package/web/chunk-xsjvamcy.js.br +0 -0
- package/web/chunk-xsjvamcy.js.gz +0 -0
- package/web/chunk-xyfnr395.js +0 -1
- package/web/chunk-xyfnr395.js.br +0 -0
- package/web/chunk-xyfnr395.js.gz +0 -0
- package/web/chunk-y48mj5d7.js +0 -1
- package/web/chunk-y48mj5d7.js.br +0 -0
- package/web/chunk-y48mj5d7.js.gz +0 -0
- package/web/chunk-y4x1g94q.js +0 -1
- package/web/chunk-y4x1g94q.js.br +0 -0
- package/web/chunk-y4x1g94q.js.gz +0 -0
- package/web/chunk-yzbp4vpe.js +0 -1
- package/web/chunk-yzbp4vpe.js.br +0 -0
- package/web/chunk-yzbp4vpe.js.gz +0 -0
- package/web/chunk-z601k790.js +0 -291
- package/web/chunk-z601k790.js.br +0 -0
- package/web/chunk-z601k790.js.gz +0 -0
- package/web/chunk-zc9mxd01.js +0 -99
- package/web/chunk-zc9mxd01.js.br +0 -0
- package/web/chunk-zc9mxd01.js.gz +0 -0
- package/web/chunk-zm1jfkcz.js +0 -2
- package/web/chunk-zm1jfkcz.js.br +0 -0
- package/web/chunk-zm1jfkcz.js.gz +0 -0
- package/web/chunk-zz0d7377.js +0 -2
- package/web/chunk-zz0d7377.js.br +0 -0
- package/web/chunk-zz0d7377.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bs}from"./chunk-kxxp1mn4.js";import"./chunk-6ycpdpfj.js";export{Bs as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Z,a,e,n,v,ge,le}from"./chunk-29fpfs5q.js";import{er,da}from"./chunk-v3kwg4zn.js";import"./chunk-mzzjg4sn.js";function B({connection:p}){let{Button:r,ModelIcon:u,ModelSelector:f,SettingGroup:d,SettingRow:h,Switch:x,cn:y}=v(),c=Z(),[S,b]=a(""),i=da({connection:p,endpoint:"/api/plugins/agents/settings",loadError:"读取理事会设置失败",toBody:(t)=>({schemaVersion:1,models:t.models,research:t.research}),differs:(t,s)=>JSON.stringify(t.models)!==JSON.stringify(s.models)||t.research!==s.research}),N=(t)=>{if(!t)return;i.edit((s)=>{if(s.models.includes(t)||s.models.length>=8)return s;return{...s,models:[...s.models,t]}}),b("")},k=(t)=>{i.edit((s)=>({...s,models:s.models.filter((o)=>o!==t)}))},l=i.settings?.models??[];return n("form",{id:c,onSubmit:i.save,className:"min-w-0 space-y-5",children:[e(d,{title:"参会模型",description:`已选 ${l.length}/8,至少 2 个模型参与群聊交叉审查`,children:n("ul",{className:"divide-y divide-line/60",children:[l.map((t)=>{let s=i.modelList.models.find((C)=>C.id===t),o=t.indexOf("/"),m=o<0?"":t.slice(0,o),g=s?.name??(o<0?t:t.slice(o+1));return n("li",{title:t,className:"group flex min-h-11 items-center gap-3",children:[e("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-raised",children:e(u,{modelID:t,className:"size-4",size:16})}),e("span",{className:"min-w-0 flex-1 truncate text-ui text-ink",children:g}),m&&e("span",{className:"max-w-32 shrink-0 truncate text-xs text-faint",children:m}),e(r,{type:"button",size:"icon-xs",variant:"ghost",disabled:i.loading||i.saving,"aria-label":`移除 ${g}`,onClick:()=>k(t),className:"text-faint opacity-40 group-hover:opacity-100 hover:text-danger focus-visible:opacity-100",children:e(le,{className:"size-3.5"})})]},t)}),l.length<8&&n("li",{className:"flex items-center gap-2",children:[e("div",{className:"min-w-0 flex-1",children:e(f,{variant:"add",models:{models:i.modelList.models.filter((t)=>!l.includes(t.id))},value:S,onChange:N})}),e(r,{type:"button",size:"icon-xs",variant:"ghost",disabled:i.loading||i.refreshing||i.saving,"aria-label":"刷新模型列表",title:"刷新模型列表",onClick:()=>void i.load(!0),className:"text-faint hover:text-ink",children:e(ge,{className:y("size-3.5",i.refreshing&&"animate-spin")})})]})]})}),e(d,{title:"流程",children:e(h,{title:"调研阶段",description:"表态前各自先查证,关闭后直接发表意见",children:e(x,{label:"调研阶段",checked:i.settings?.research??!0,disabled:i.loading||i.saving,onCheckedChange:(t)=>{i.edit((s)=>({...s,research:t}))}})})}),e(er,{formID:c,notice:i.notice,dirty:i.dirty,busy:i.loading||i.saving,saving:i.saving,onReset:i.reset})]})}export{B as CouncilSettingsSection};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import{zr}from"./chunk-60v8qwec.js";import{oe}from"./chunk-6wyxxd9h.js";import{t,i,F,A,C,N,M,P,R,I,O,D,d,ii,y,uc,Q,H}from"./chunk-eejjsqm1.js";import{ve}from"./chunk-4v9ar0sf.js";var B={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ke=F.gitGraph,V=t(()=>Q({...ke,...A().gitGraph}),"getConfig"),m=new zr(()=>{let e=V(),{mainBranchName:r,mainBranchOrder:a}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function se(){return uc({length:7})}t(se,"getID");function $e(e,r){let a=Object.create(null);return e.reduce((n,c)=>{let l=r(c);if(!a[l])a[l]=!0,n.push(c);return n},[])}t($e,"uniqBy");var Ce=t(function(e){m.records.direction=e},"setDirection"),Ee=t(function(e){i.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){i.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:a,type:n,tags:c}=e;i.info("commit",r,a,n,c),i.debug("Entering commit:",r,a,n,c);let l=V();a=C.sanitizeText(a,l),r=C.sanitizeText(r,l),c=c?.map((o)=>C.sanitizeText(o,l));let s={id:a?a:m.records.seq+"-"+se(),message:r,seq:m.records.seq++,type:n??B.NORMAL,tags:c??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=s,i.info("main branch",l.mainBranchName),m.records.commits.has(s.id))i.warn(`Commit ID ${s.id} already exists`);m.records.commits.set(s.id,s),m.records.branches.set(m.records.currBranch,s.id),i.debug("in pushCommit "+s.id)},"commit"),Me=t(function(e){let{name:r,order:a}=e;if(r=C.sanitizeText(r,V()),m.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:a}),pe(r),i.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:a,type:n,tags:c}=e,l=V();if(r=C.sanitizeText(r,l),a)a=C.sanitizeText(a,l);let s=m.records.branches.get(m.records.currBranch),o=m.records.branches.get(r),g=s?m.records.commits.get(s):void 0,p=o?m.records.commits.get(o):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let h=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},h}if(g===void 0||!g){let h=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},h}if(!m.records.branches.has(r)){let h=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},h}if(p===void 0||!p){let h=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},h}if(g===p){let h=Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},h}if(a&&m.records.commits.has(a)){let h=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw h.hash={text:`merge ${r} ${a} ${n} ${c?.join(" ")}`,token:`merge ${r} ${a} ${n} ${c?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${c?.join(" ")}`]},h}let x=o?o:"",f={id:a||`${m.records.seq}-${se()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,x],branch:m.records.currBranch,type:B.MERGE,customType:n,customId:a?!0:!1,tags:c??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),i.debug(m.records.branches),i.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:a,tags:n,parent:c}=e;i.debug("Entering cherryPick:",r,a,n);let l=V();if(r=C.sanitizeText(r,l),a=C.sanitizeText(a,l),n=n?.map((g)=>C.sanitizeText(g,l)),c=C.sanitizeText(c,l),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=m.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(s.parents)&&s.parents.includes(c)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===B.MERGE&&!c)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!m.records.commits.has(a)){if(o===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let p=m.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let x={id:m.records.seq+"-"+se(),message:`cherry-picked ${s?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,s.id],branch:m.records.currBranch,type:B.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===B.MERGE?`|parent:${c}`:""}`]};m.records.head=x,m.records.commits.set(x.id,x),m.records.branches.set(m.records.currBranch,x.id),i.debug(m.records.branches),i.debug("in cherryPick")}},"cherryPick"),pe=t(function(e){if(e=C.sanitizeText(e,V()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function de(e,r,a){let n=e.indexOf(r);if(n===-1)e.push(a);else e.splice(n,1,a)}t(de,"upsert");function le(e){let r=e.reduce((c,l)=>{if(c.seq>l.seq)return c;return l},e[0]),a="";e.forEach(function(c){if(c===r)a+="\t*";else a+="\t|"});let n=[a,r.id,r.seq];for(let c in m.records.branches)if(m.records.branches.get(c)===r.id)n.push(c);if(i.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let c=m.records.commits.get(r.parents[0]);if(de(e,r,c),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let c=m.records.commits.get(r.parents[0]);de(e,r,c)}e=$e(e,(c)=>c.id),le(e)}t(le,"prettyPrintCommitHistory");var Oe=t(function(){i.debug(m.records.commits);let e=ye()[0];le([e])},"prettyPrint"),Ie=t(function(){m.reset(),N()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),ye=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){i.debug(r.id)}),e.sort((r,a)=>r.seq-a.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),xe={commitType:B,getConfig:V,setDirection:Ce,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:pe,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:ye,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:M,getAccTitle:P,getAccDescription:I,setAccDescription:R,setDiagramTitle:O,getDiagramTitle:D},He=t((e,r)=>{if(oe(e,r),e.dir)r.setDirection(e.dir);for(let a of e.statements)Se(a,r)},"populate"),Se=t((e,r)=>{let n={Commit:t((c)=>r.commit(Ne(c)),"Commit"),Branch:t((c)=>r.branch(Fe(c)),"Branch"),Merge:t((c)=>r.merge(ze(c)),"Merge"),Checkout:t((c)=>r.checkout(Ye(c)),"Checkout"),CherryPicking:t((c)=>r.cherryPick(je(c)),"CherryPicking")}[e.$type];if(n)n(e);else i.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?B[e.type]:B.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?B[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await ve("gitGraph",e);i.debug(r),He(r,xe)},"parse")},Y=10,j=40,W=4,S=2,K=8,ne=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),he=12,me=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),U=t((e,r,a=!1)=>{if(a&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),L=new Map,_=new Map,re=30,J=new Map,ae=[],z=0,b="LR",Ve=t(()=>{L.clear(),_.clear(),J.clear(),z=0,ae=[],b="LR"},"clear"),ue=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((n)=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}),r},"drawText"),be=t((e)=>{let r,a,n;if(b==="BT")a=t((c,l)=>c<=l,"comparisonFunc"),n=1/0;else a=t((c,l)=>c>=l,"comparisonFunc"),n=0;return e.forEach((c)=>{let l=b==="TB"||b=="BT"?_.get(c)?.y:_.get(c)?.x;if(l!==void 0&&a(l,n))r=c,n=l}),r},"findClosestParent"),Ze=t((e)=>{let r="",a=1/0;return e.forEach((n)=>{let c=_.get(n).y;if(c<=a)r=n,a=c}),r||void 0},"findClosestParentBT"),Xe=t((e,r,a)=>{let n=a,c=a,l=[];e.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)n=Qe(o),c=Math.max(n,c);else l.push(o);et(o,n)}),n=c,l.forEach((s)=>{tt(s,n,a)}),e.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(n=_.get(g).y-j,n<=c)c=n;let p=L.get(o.branch).pos,x=n-Y;_.set(o.id,{x:p,y:x})}})},"setParallelBTPos"),Je=t((e)=>{let r=be(e.parents.filter((n)=>n!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let a=_.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return a},"findClosestParentPos"),Qe=t((e)=>Je(e)+j,"calculateCommitPosition"),et=t((e,r)=>{let a=L.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let n=a.pos,c=r+Y;return _.set(e.id,{x:n,y:c}),{x:n,y:c}},"setCommitPosition"),tt=t((e,r,a)=>{let n=L.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let c=r+a,l=n.pos;_.set(e.id,{x:l,y:c})},"setRootPosition"),rt=t((e,r,a,n,c,l)=>{let{theme:s}=d(),o=ne.has(s??""),g=me.has(s??""),p=Ue.has(s??"");if(l===B.HIGHLIGHT)e.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${U(c,K,g)} ${n}-outer`),e.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${U(c,K,g)} ${n}-inner`);else if(l===B.CHERRY_PICK)e.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`);else{let x=e.append("circle");if(x.attr("cx",a.x),x.attr("cy",a.y),x.attr("r",o?7:10),x.attr("class",`commit ${r.id} commit${U(c,K,g)}`),l===B.MERGE){let f=e.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${n} ${r.id} commit${U(c,K,g)}`)}if(l===B.REVERSE){let f=e.append("path"),h=o?4:5;f.attr("d",`M ${a.x-h},${a.y-h}L${a.x+h},${a.y+h}M${a.x-h},${a.y+h}L${a.x+h},${a.y-h}`).attr("class",`commit ${n} ${r.id} commit${U(c,K,g)}`)}}},"drawCommitBullet"),at=t((e,r,a,n,c)=>{if(r.type!==B.CHERRY_PICK&&(r.customId&&r.type===B.MERGE||r.type!==B.MERGE)&&c.showCommitLabel){let l=e.append("g"),s=l.insert("rect").attr("class","commit-label-bkg"),o=l.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-S).attr("y",a.y+13.5).attr("width",g.width+2*S).attr("height",g.height+2*S),b==="TB"||b==="BT")s.attr("x",a.x-(g.width+4*W+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*W)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(c.rotateCommitLabel)if(b==="TB"||b==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let p=-7.5-(g.width+10)/25*9.5,x=10+g.width/25*8.5;l.attr("transform","translate("+p+", "+x+") rotate(-45, "+n+", "+a.y+")")}}}},"drawCommitLabel"),ot=t((e,r,a,n)=>{if(r.tags.length>0){let c=0,l=0,s=0,o=[];for(let g of r.tags.reverse()){let p=e.insert("polygon"),x=e.append("circle"),f=e.append("text").attr("y",a.y-16-c).attr("class","tag-label").text(g),h=f.node()?.getBBox();if(!h)throw Error("Tag bbox not found");l=Math.max(l,h.width),s=Math.max(s,h.height),f.attr("x",a.posWithOffset-h.width/2),o.push({tag:f,hole:x,rect:p,yOffset:c}),c+=20}for(let{tag:g,hole:p,rect:x,yOffset:f}of o){let h=s/2,w=a.y-19.2-f;if(x.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${n-l/2-W/2},${w+S}
|
|
3
|
+
${n-l/2-W/2},${w-S}
|
|
4
|
+
${a.posWithOffset-l/2-W},${w-h-S}
|
|
5
|
+
${a.posWithOffset+l/2+W},${w-h-S}
|
|
6
|
+
${a.posWithOffset+l/2+W},${w+h+S}
|
|
7
|
+
${a.posWithOffset-l/2-W},${w+h+S}`),p.attr("cy",w).attr("cx",n-l/2+W/2).attr("r",1.5).attr("class","tag-hole"),b==="TB"||b==="BT"){let u=n+f;x.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${a.x},${u+2}
|
|
9
|
+
${a.x},${u-2}
|
|
10
|
+
${a.x+Y},${u-h-2}
|
|
11
|
+
${a.x+Y+l+4},${u-h-2}
|
|
12
|
+
${a.x+Y+l+4},${u+h+2}
|
|
13
|
+
${a.x+Y},${u+h+2}`).attr("transform","translate(12,12) rotate(45, "+a.x+","+n+")"),p.attr("cx",a.x+W/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+a.x+","+n+")"),g.attr("x",a.x+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+n+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case B.NORMAL:return"commit-normal";case B.REVERSE:return"commit-reverse";case B.HIGHLIGHT:return"commit-highlight";case B.MERGE:return"commit-merge";case B.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,a,n)=>{let c={x:0,y:0};if(e.parents.length>0){let l=be(e.parents);if(l){let s=n.get(l)??c;if(r==="TB")return s.y+j;else if(r==="BT")return(n.get(e.id)??c).y-j;else return s.x+j}}else if(r==="TB")return re;else if(r==="BT")return(n.get(e.id)??c).y-j;else return 0;return 0},"calculatePosition"),ct=t((e,r,a)=>{let n=b==="BT"&&a?r:r+Y,c=L.get(e.branch)?.pos,l=b==="TB"||b==="BT"?L.get(e.branch)?.pos:n;if(l===void 0||c===void 0)throw Error(`Position were undefined for commit ${e.id}`);let s=ne.has(d().theme??""),o=b==="TB"||b==="BT"?n:c+(s?he/2+1:-2);return{x:l,y:o,posWithOffset:n}},"getCommitPosition"),fe=t((e,r,a,n)=>{let c=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),s=b==="TB"||b==="BT"?re:0,o=[...r.keys()],g=n.parallelCommits??!1,p=t((f,h)=>{let w=r.get(f)?.seq,u=r.get(h)?.seq;return w!==void 0&&u!==void 0?w-u:0},"sortKeys"),x=o.sort(p);if(b==="BT"){if(g)Xe(x,r,s);x=x.reverse()}x.forEach((f)=>{let h=r.get(f);if(!h)throw Error(`Commit not found for key ${f}`);if(g)s=nt(h,b,s,_);let w=ct(h,s,g);if(a){let u=st(h),k=h.customType??h.type,v=L.get(h.branch)?.index??0;rt(c,h,w,u,v,k),at(l,h,w,s,n),ot(l,h,w,s)}if(b==="TB"||b==="BT")_.set(h.id,{x:w.x,y:w.posWithOffset});else _.set(h.id,{x:w.posWithOffset,y:w.y});if(s=b==="BT"&&g?s+j:s+j+Y,s>z)z=s})},"drawCommits"),it=t((e,r,a,n,c)=>{let s=(b==="TB"||b==="BT"?a.x<n.x:a.y<n.y)?r.branch:e.branch,o=t((p)=>p.branch===s,"isOnBranchToGetCurve"),g=t((p)=>p.seq>e.seq&&p.seq<r.seq,"isBetweenCommits");return[...c.values()].some((p)=>g(p)&&o(p))},"shouldRerouteArrow"),ee=t((e,r,a=0)=>{let n=e+Math.abs(e-r)/2;if(a>5)return n;if(ae.every((s)=>Math.abs(s-n)>=10))return ae.push(n),n;let l=Math.abs(e-r);return ee(e,r-l/5,a+1)},"findLane"),dt=t((e,r,a,n)=>{let{theme:c}=d(),l=me.has(c??""),s=_.get(r.id),o=_.get(a.id);if(s===void 0||o===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${a.id}`);let g=it(r,a,s,o,n),p="",x="",f=0,h=0,w=L.get(a.branch)?.index;if(a.type===B.MERGE&&r.id!==a.parents[0])w=L.get(r.branch)?.index;let u;if(g){p="A 10 10, 0, 0, 0,",x="A 10 10, 0, 0, 1,",f=10,h=10;let k=s.y<o.y?ee(s.y,o.y):ee(o.y,s.y),v=s.x<o.x?ee(s.x,o.x):ee(o.x,s.x);if(b==="TB")if(s.x<o.x)u=`M ${s.x} ${s.y} L ${v-f} ${s.y} ${x} ${v} ${s.y+h} L ${v} ${o.y-f} ${p} ${v+h} ${o.y} L ${o.x} ${o.y}`;else w=L.get(r.branch)?.index,u=`M ${s.x} ${s.y} L ${v+f} ${s.y} ${p} ${v} ${s.y+h} L ${v} ${o.y-f} ${x} ${v-h} ${o.y} L ${o.x} ${o.y}`;else if(b==="BT")if(s.x<o.x)u=`M ${s.x} ${s.y} L ${v-f} ${s.y} ${p} ${v} ${s.y-h} L ${v} ${o.y+f} ${x} ${v+h} ${o.y} L ${o.x} ${o.y}`;else w=L.get(r.branch)?.index,u=`M ${s.x} ${s.y} L ${v+f} ${s.y} ${x} ${v} ${s.y-h} L ${v} ${o.y+f} ${p} ${v-h} ${o.y} L ${o.x} ${o.y}`;else if(s.y<o.y)u=`M ${s.x} ${s.y} L ${s.x} ${k-f} ${p} ${s.x+h} ${k} L ${o.x-f} ${k} ${x} ${o.x} ${k+h} L ${o.x} ${o.y}`;else w=L.get(r.branch)?.index,u=`M ${s.x} ${s.y} L ${s.x} ${k+f} ${x} ${s.x+h} ${k} L ${o.x-f} ${k} ${p} ${o.x} ${k-h} L ${o.x} ${o.y}`}else if(p="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",f=20,h=20,b==="TB"){if(s.x<o.x)if(a.type===B.MERGE&&r.id!==a.parents[0])u=`M ${s.x} ${s.y} L ${s.x} ${o.y-f} ${p} ${s.x+h} ${o.y} L ${o.x} ${o.y}`;else u=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${x} ${o.x} ${s.y+h} L ${o.x} ${o.y}`;if(s.x>o.x)if(p="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",f=20,h=20,a.type===B.MERGE&&r.id!==a.parents[0])u=`M ${s.x} ${s.y} L ${s.x} ${o.y-f} ${x} ${s.x-h} ${o.y} L ${o.x} ${o.y}`;else u=`M ${s.x} ${s.y} L ${o.x+f} ${s.y} ${p} ${o.x} ${s.y+h} L ${o.x} ${o.y}`;if(s.x===o.x)u=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}else if(b==="BT"){if(s.x<o.x)if(a.type===B.MERGE&&r.id!==a.parents[0])u=`M ${s.x} ${s.y} L ${s.x} ${o.y+f} ${x} ${s.x+h} ${o.y} L ${o.x} ${o.y}`;else u=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${p} ${o.x} ${s.y-h} L ${o.x} ${o.y}`;if(s.x>o.x)if(p="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",f=20,h=20,a.type===B.MERGE&&r.id!==a.parents[0])u=`M ${s.x} ${s.y} L ${s.x} ${o.y+f} ${p} ${s.x-h} ${o.y} L ${o.x} ${o.y}`;else u=`M ${s.x} ${s.y} L ${o.x+f} ${s.y} ${x} ${o.x} ${s.y-h} L ${o.x} ${o.y}`;if(s.x===o.x)u=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}else{if(s.y<o.y)if(a.type===B.MERGE&&r.id!==a.parents[0])u=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${x} ${o.x} ${s.y+h} L ${o.x} ${o.y}`;else u=`M ${s.x} ${s.y} L ${s.x} ${o.y-f} ${p} ${s.x+h} ${o.y} L ${o.x} ${o.y}`;if(s.y>o.y)if(a.type===B.MERGE&&r.id!==a.parents[0])u=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${p} ${o.x} ${s.y-h} L ${o.x} ${o.y}`;else u=`M ${s.x} ${s.y} L ${s.x} ${o.y+f} ${x} ${s.x+h} ${o.y} L ${o.x} ${o.y}`;if(s.y===o.y)u=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}if(u===void 0)throw Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+U(w,K,l))},"drawArrow"),ht=t((e,r)=>{let a=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((n)=>{let c=r.get(n);if(c.parents&&c.parents.length>0)c.parents.forEach((l)=>{dt(a,r.get(l),c,r)})})},"drawArrows"),lt=t((e,r,a,n)=>{let{look:c,theme:l,themeVariables:s}=d(),{dropShadow:o,THEME_COLOR_LIMIT:g}=s,p=ne.has(l??""),x=me.has(l??""),f=e.append("g");r.forEach((h,w)=>{let u=U(w,p?g:K,x),k=L.get(h.name)?.pos;if(k===void 0)throw Error(`Position not found for branch ${h.name}`);let v=b==="TB"||b==="BT"?k:p?k+he/2+1:k-2,E=f.append("line");if(E.attr("x1",0),E.attr("y1",v),E.attr("x2",z),E.attr("y2",v),E.attr("class","branch branch"+u),b==="TB")E.attr("y1",re),E.attr("x1",k),E.attr("y2",z),E.attr("x2",k);else if(b==="BT")E.attr("y1",z),E.attr("x1",k),E.attr("y2",re),E.attr("x2",k);ae.push(v);let ce=h.name,X=ue(ce),G=f.insert("rect"),q=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);q.node().appendChild(X);let T=X.getBBox(),ge=p?0:4,te=p?16:0,Z=p?he:0;if(c==="neo")G.attr("data-look","neo");if(G.attr("class","branchLabelBkg label"+u).attr("style",c==="neo"?`filter:${p?`url(#${n}-drop-shadow)`:o}`:"").attr("rx",ge).attr("ry",ge).attr("x",-T.width-4-(a.rotateCommitLabel===!0?30:0)).attr("y",-T.height/2+10).attr("width",T.width+18+te).attr("height",T.height+4+Z),q.attr("transform","translate("+(-T.width-14-(a.rotateCommitLabel===!0?30:0)+te/2)+", "+(v-T.height/2-2)+")"),b==="TB"){if(G.attr("x",k-T.width/2-10).attr("y",0),q.attr("transform","translate("+(k-T.width/2-5)+", 0)"),p)G.attr("transform",`translate(${-te/2-3}, ${-Z-10})`),q.attr("transform","translate("+(k-T.width/2-5)+", "+(-Z*2+7)+")")}else if(b==="BT"){if(G.attr("x",k-T.width/2-10).attr("y",z),q.attr("transform","translate("+(k-T.width/2-5)+", "+z+")"),p)G.attr("transform",`translate(${-te/2-3}, ${Z+10})`),q.attr("transform","translate("+(k-T.width/2-5)+", "+(z+Z*2+4)+")")}else G.attr("transform","translate(-19, "+(v-12-Z/2)+")")})},"drawBranches"),mt=t(function(e,r,a,n,c){return L.set(e,{pos:r,index:a}),r+=50+(c?40:0)+(b==="TB"||b==="BT"?n.width/2:0),r},"setBranchPosition"),gt=t(function(e,r,a,n){Ve(),i.debug("in gitgraph renderer",e+`
|
|
14
|
+
`,"id:",r,a);let c=n.db;if(!c.getConfig){i.error("getConfig method is not available on db");return}let l=c.getConfig(),s=l.rotateCommitLabel??!1;J=c.getCommits();let o=c.getBranchesAsObjArray();b=c.getDirection();let g=y(`[id="${r}"]`),{look:p,theme:x,themeVariables:f}=d(),{useGradient:h,gradientStart:w,gradientStop:u,filterColor:k}=f;if(h){let E=g.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");E.append("stop").attr("offset","0%").attr("stop-color",w).attr("stop-opacity",1),E.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}if(p==="neo"&&ne.has(x??""))g.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",k);let v=0;if(o.forEach((E,ce)=>{let X=ue(E.name),G=g.append("g"),ie=G.insert("g").attr("class","branchLabel"),q=ie.insert("g").attr("class","label branch-label");q.node()?.appendChild(X);let T=X.getBBox();v=mt(E.name,v,ce,T,s),q.remove(),ie.remove(),G.remove()}),fe(g,J,!1,l),l.showBranches)lt(g,o,l,r);ht(g,J),fe(g,J,!0,l),H.insertTitle(g,"gitTitleText",l.titleTopMargin??0,c.getDiagramTitle()),ii(void 0,g,l.diagramPadding,l.useMaxWidth)},"draw"),ft={draw:gt},we=8,Be=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=t((e)=>{let{svgId:r}=e,a="";if(e.useGradient&&r)for(let n=0;n<e.THEME_COLOR_LIMIT;n++)a+=`
|
|
15
|
+
.label${n} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
+
`;return a},"genGitGraphGradient"),bt=t((e)=>{let r=A(),{theme:a,themeVariables:n}=r,{borderColorArray:c}=n,l=Be.has(a);if(pt.has(a)){let s="";for(let o=0;o<e.THEME_COLOR_LIMIT;o++)if(o===0)s+=`
|
|
17
|
+
.branch-label${o} { fill: ${e.nodeBorder};}
|
|
18
|
+
.commit${o} { stroke: ${e.nodeBorder}; }
|
|
19
|
+
.commit-highlight${o} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
+
.arrow${o} { stroke: ${e.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${o} { stroke: ${e.nodeBorder}; }
|
|
23
|
+
${ut(e)}`;else{let g=o%we;s+=`
|
|
24
|
+
.branch-label${o} { fill: ${e["gitBranchLabel"+g]}; }
|
|
25
|
+
.commit${o} { stroke: ${e["git"+g]}; fill: ${e["git"+g]}; }
|
|
26
|
+
.commit-highlight${o} { stroke: ${e["gitInv"+g]}; fill: ${e["gitInv"+g]}; }
|
|
27
|
+
.arrow${o} { stroke: ${e["git"+g]}; }
|
|
28
|
+
`}return s}else if(!$t.has(a)){let s="";for(let o=0;o<e.THEME_COLOR_LIMIT;o++)s+=`
|
|
29
|
+
.branch-label${o} { fill: ${e.nodeBorder}; ${l?`font-weight:${e.noteFontWeight}`:""} }
|
|
30
|
+
.commit${o} { stroke: ${e.nodeBorder}; }
|
|
31
|
+
.commit-highlight${o} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
32
|
+
.label${o} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${l?`font-weight:${e.noteFontWeight}`:""}}
|
|
33
|
+
.arrow${o} { stroke: ${e.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
+
.commit-cherry-pick${o} { stroke: ${e.nodeBorder}; }
|
|
36
|
+
`;return s}else{let s="";for(let o=0;o<e.THEME_COLOR_LIMIT;o++)if(o===0)s+=`
|
|
37
|
+
.branch-label${o} { fill: ${e.nodeBorder}; ${l?`font-weight:${e.noteFontWeight}`:""} }
|
|
38
|
+
.commit${o} { stroke: ${e.nodeBorder}; }
|
|
39
|
+
.commit-highlight${o} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
40
|
+
.label${o} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${l?`font-weight:${e.noteFontWeight}`:""} }
|
|
41
|
+
.arrow${o} { stroke: ${e.nodeBorder}; }
|
|
42
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
43
|
+
`;else{let g=o%c.length;s+=`
|
|
44
|
+
.branch-label${o} { fill: ${e.nodeBorder}; ${l?`font-weight:${e.noteFontWeight}`:""} }
|
|
45
|
+
.commit${o} { stroke: ${c[g]}; fill: ${c[g]}; }
|
|
46
|
+
.commit-highlight${o} { stroke: ${c[g]}; fill: ${c[g]}; }
|
|
47
|
+
.label${o} { fill: ${yt.has(a)?e.mainBkg:c[g]}; stroke: ${c[g]}; stroke-width: ${e.strokeWidth}; }
|
|
48
|
+
.arrow${o} { stroke: ${c[g]}; }
|
|
49
|
+
`}return s}},"genColor"),wt=t((e)=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,a)=>a).map((r)=>{let a=r%we;return`
|
|
50
|
+
.branch-label${r} { fill: ${e["gitBranchLabel"+a]}; }
|
|
51
|
+
.commit${r} { stroke: ${e["git"+a]}; fill: ${e["git"+a]}; }
|
|
52
|
+
.commit-highlight${r} { stroke: ${e["gitInv"+a]}; fill: ${e["gitInv"+a]}; }
|
|
53
|
+
.label${r} { fill: ${e["git"+a]}; }
|
|
54
|
+
.arrow${r} { stroke: ${e["git"+a]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,"normalTheme"),Bt=t((e)=>{let r=A(),{theme:a}=r,n=xt.has(a);return`
|
|
57
|
+
.commit-id,
|
|
58
|
+
.commit-msg,
|
|
59
|
+
.branch-label {
|
|
60
|
+
fill: lightgrey;
|
|
61
|
+
color: lightgrey;
|
|
62
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
+
font-family: var(--mermaid-font-family);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${n?bt(e):wt(e)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${e.strokeWidth};
|
|
70
|
+
stroke: ${e.commitLineColor??e.lineColor};
|
|
71
|
+
stroke-dasharray: ${n?"4 2":"2"};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:""}}
|
|
74
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?"transparent":e.commitLabelBackground}; opacity: ${n?"":0.5}; }
|
|
75
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:""} }
|
|
77
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
81
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
85
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
86
|
+
stroke-width: ${n?e.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
92
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arrow {
|
|
96
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
+
stroke-width: ${Be.has(a)?e.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${e.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},"getStyles"),kt=Bt,Ot={parser:Ke,db:xe,renderer:ft,styles:kt};export{Ot as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +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 Fn(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 Ur(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]})}Ur.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=Ur(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(Fn(p)/3)))*3,w=Math.pow(10,-y),s=Z((f=Ur(f),f.type="f",f),{suffix:Q[8+y/3]});return function(S){return s(w*S)}}return{format:Z,formatPrefix:V}}var D,zn,lo;Y({thousands:",",grouping:[3],currency:["$",""]});function Y(t){return D=U(t),zn=D.format,lo=D.formatPrefix,D}export{Fn,Ur,zn,lo};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,e,n,v,l,rn,J,Gt}from"./chunk-29fpfs5q.js";var x=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],s=l("check-check",x);var h={once:{label:"已允许本次控制电脑",tone:"text-success",icon:J},session:{label:"本会话始终允许控制",tone:"text-success",icon:s},deny:{label:"已拒绝控制电脑",tone:"text-danger",icon:rn},cancelled:{label:"控制电脑授权已取消",tone:"text-faint",icon:Gt}};function w(p){let{style:r,cn:i,Collapsible:c,CollapsibleTrigger:m,CollapsibleContent:u,Chevron:d}=v(),[f,C]=a(!1),t=p.payload;if(!t||typeof t.id!=="string"||t.state==="pending")return null;let o=h[t.state],b=o.icon;return n(c,{open:f,onOpenChange:C,className:"w-full text-xs text-ink/90 animate-fade",children:[n(m,{className:r("chat.timelineRow","cursor-pointer select-none"),children:[e("span",{className:"flex size-4 shrink-0 items-center justify-center",children:e(b,{className:i("size-3.5",o.tone)})}),e("span",{className:"shrink-0",children:o.label}),n("span",{className:"min-w-0 flex-1 truncate font-mono text-xs opacity-80",title:t.app,children:[t.action," ",t.app,t.requester&&` · 子代理「${t.requester.title}」`]}),e(d,{className:"size-3.5 shrink-0 text-faint opacity-0 transition-opacity group-hover/collapsible:opacity-100 group-data-[state=open]/collapsible:opacity-100"})]}),e(u,{children:e("pre",{className:"mt-0.5 mb-1.5 ml-2 border-l border-line py-1 pl-[15px] font-mono text-xs break-all whitespace-pre-wrap text-dim",children:t.detail})})]})}export{w as ApprovalCard};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import{t,i,De,A,C,Y,N,d,y,Fo,ra,Ar,zo,pi,ui,di,mi,Ho,Uo,jo,qo,Vo,Go,Wo,Yo,Xo,Ko,Zo,Qo,Jo,es,ts,ns,rs,Tr,is,Oe,Me,Re,zt,Ht,Nn,yn,Mn,Ca,mr,Sa}from"./chunk-eejjsqm1.js";import{_e}from"./chunk-0b5vh2pt.js";import{Lt}from"./chunk-fpdyzyn8.js";import{jn}from"./chunk-xmajh4qe.js";function ye(e){return Array.isArray(e)}function we(e){if(ra(e))return e;let o=Ar(e);if(!qe(e))return{};if(ye(e)){let a=Array.from(e);if(e.length>0&&typeof e[0]==="string"&&Object.hasOwn(e,"index"))a.index=e.index,a.input=e.input;return a}if(Tr(e)){let a=e;return new a.constructor(a.buffer,a.byteOffset,a.length)}if(o==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(o==="[object DataView]"){let a=e,{buffer:h,byteOffset:p,byteLength:r}=a,g=new ArrayBuffer(r),L=new Uint8Array(h,p,r);return new Uint8Array(g).set(L),new DataView(g)}if(o==="[object Boolean]"||o==="[object Number]"||o==="[object String]"){let h=new e.constructor(e.valueOf());if(o==="[object String]")Ze(h,e);else ce(h,e);return h}if(o==="[object Date]")return new Date(Number(e));if(o==="[object RegExp]"){let a=e,h=new RegExp(a.source,a.flags);return h.lastIndex=a.lastIndex,h}if(o==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(o==="[object Map]"){let a=e,h=new Map;return a.forEach((p,r)=>{h.set(r,p)}),h}if(o==="[object Set]"){let a=e,h=new Set;return a.forEach((p)=>{h.add(p)}),h}if(o==="[object Arguments]"){let a=e,h={};return ce(h,a),h.length=a.length,h[Symbol.iterator]=a[Symbol.iterator],h}let c={};return Qe(c,e),ce(c,e),Je(c,e),c}function qe(e){switch(Ar(e)){case mi:case Vo:case Go:case Yo:case di:case Uo:case ns:case rs:case Jo:case es:case ts:case jo:case ui:case Wo:case zo:case qo:case pi:case Ho:case Xo:case Ko:case Zo:case Qo:return!0;default:return!1}}function ce(e,o){for(let c in o)if(Object.hasOwn(o,c))e[c]=o[c]}function Je(e,o){let c=Object.getOwnPropertySymbols(o);for(let a=0;a<c.length;a++){let h=c[a];if(Object.prototype.propertyIsEnumerable.call(o,h))e[h]=o[h]}}function Ze(e,o){let c=o.valueOf().length;for(let a in o)if(Object.hasOwn(o,a)&&(Number.isNaN(Number(a))||Number(a)>=c))e[a]=o[a]}function Qe(e,o){let c=Object.getPrototypeOf(o);if(c!==null){if(typeof o.constructor==="function")Object.setPrototypeOf(e,c)}}var he=function(){var e=t(function(B,f,n,u){for(n=n||{},u=B.length;u--;n[B[u]]=f);return n},"o"),o=[1,15],c=[1,7],a=[1,13],h=[1,14],p=[1,19],r=[1,16],g=[1,17],L=[1,18],k=[8,30],x=[8,10,21,28,29,30,31,39,43,46],S=[1,23],w=[1,24],_=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],T=[1,49],D={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:t(function(f,n,u,b,E,s,H){var l=s.length-1;switch(E){case 4:b.getLogger().debug("Rule: separator (NL) ");break;case 5:b.getLogger().debug("Rule: separator (Space) ");break;case 6:b.getLogger().debug("Rule: separator (EOF) ");break;case 7:b.getLogger().debug("Rule: hierarchy: ",s[l-1]),b.setHierarchy(s[l-1]);break;case 8:b.getLogger().debug("Stop NL ");break;case 9:b.getLogger().debug("Stop EOF ");break;case 10:b.getLogger().debug("Stop NL2 ");break;case 11:b.getLogger().debug("Stop EOF2 ");break;case 12:b.getLogger().debug("Rule: statement: ",s[l]),typeof s[l].length==="number"?this.$=s[l]:this.$=[s[l]];break;case 13:b.getLogger().debug("Rule: statement #2: ",s[l-1]),this.$=[s[l-1]].concat(s[l]);break;case 14:b.getLogger().debug("Rule: link: ",s[l],f),this.$={edgeTypeStr:s[l],label:""};break;case 15:b.getLogger().debug("Rule: LABEL link: ",s[l-3],s[l-1],s[l]),this.$={edgeTypeStr:s[l],label:s[l-1]};break;case 18:let V=parseInt(s[l]),j=b.generateId();this.$={id:j,type:"space",label:"",width:V,children:[]};break;case 23:b.getLogger().debug("Rule: (nodeStatement link node) ",s[l-2],s[l-1],s[l]," typestr: ",s[l-1].edgeTypeStr);let G=b.edgeStrToEdgeData(s[l-1].edgeTypeStr),re=b.edgeStrToEdgeStartData(s[l-1].edgeTypeStr),q=b.edgeStrToThickness(s[l-1].edgeTypeStr),se=b.edgeStrToPattern(s[l-1].edgeTypeStr);this.$=[{id:s[l-2].id,label:s[l-2].label,type:s[l-2].type,directions:s[l-2].directions},{id:s[l-2].id+"-"+s[l].id,start:s[l-2].id,end:s[l].id,label:s[l-1].label,type:"edge",thickness:q,pattern:se,directions:s[l].directions,arrowTypeEnd:G,arrowTypeStart:re},{id:s[l].id,label:s[l].label,type:b.typeStr2Type(s[l].typeStr),directions:s[l].directions}];break;case 24:b.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[l-1],s[l]),this.$={id:s[l-1].id,label:s[l-1].label,type:b.typeStr2Type(s[l-1].typeStr),directions:s[l-1].directions,widthInColumns:parseInt(s[l],10)};break;case 25:b.getLogger().debug("Rule: nodeStatement (node) ",s[l]),this.$={id:s[l].id,label:s[l].label,type:b.typeStr2Type(s[l].typeStr),directions:s[l].directions,widthInColumns:1};break;case 26:b.getLogger().debug("APA123",this?this:"na"),b.getLogger().debug("COLUMNS: ",s[l]),this.$={type:"column-setting",columns:s[l]==="auto"?-1:parseInt(s[l])};break;case 27:b.getLogger().debug("Rule: id-block statement : ",s[l-2],s[l-1]);let I=b.generateId();this.$={...s[l-2],type:"composite",children:s[l-1]};break;case 28:b.getLogger().debug("Rule: blockStatement : ",s[l-2],s[l-1],s[l]);let M=b.generateId();this.$={id:M,type:"composite",label:"",children:s[l-1]};break;case 29:b.getLogger().debug("Rule: node (NODE_ID separator): ",s[l]),this.$={id:s[l]};break;case 30:b.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[l-1],s[l]),this.$={id:s[l-1],label:s[l].label,typeStr:s[l].typeStr,directions:s[l].directions};break;case 31:b.getLogger().debug("Rule: dirList: ",s[l]),this.$=[s[l]];break;case 32:b.getLogger().debug("Rule: dirList: ",s[l-1],s[l]),this.$=[s[l-1]].concat(s[l]);break;case 33:b.getLogger().debug("Rule: nodeShapeNLabel: ",s[l-2],s[l-1],s[l]),this.$={typeStr:s[l-2]+s[l],label:s[l-1]};break;case 34:b.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[l-3],s[l-2]," #3:",s[l-1],s[l]),this.$={typeStr:s[l-3]+s[l],label:s[l-2],directions:s[l-1]};break;case 35:case 36:this.$={type:"classDef",id:s[l-1].trim(),css:s[l].trim()};break;case 37:this.$={type:"applyClass",id:s[l-1].trim(),styleClass:s[l].trim()};break;case 38:this.$={type:"applyStyles",id:s[l-1].trim(),stylesStr:s[l].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:r,43:g,46:L},{8:[1,20]},e(k,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:c,28:a,29:h,31:p,39:r,43:g,46:L}),e(x,[2,16],{14:22,15:S,16:w}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(_,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:r,43:g,46:L},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(k,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(_,[2,24]),{10:o,11:37,13:4,14:22,15:S,16:w,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:r,43:g,46:L},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(_,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{36:[1,47]},{33:48,34:T},{15:[1,50]},e(x,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:T,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:t(function(f,n){if(n.recoverable)this.trace(f);else{var u=Error(f);throw u.hash=n,u}},"parseError"),parse:t(function(f){var n=this,u=[0],b=[],E=[null],s=[],H=this.table,l="",V=0,j=0,G=0,re=2,q=1,se=s.slice.call(arguments,1),I=Object.create(this.lexer),M={yy:{}};for(var ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ie))M.yy[ie]=this.yy[ie];if(I.setInput(f,M.yy),M.yy.lexer=I,M.yy.parser=this,typeof I.yylloc>"u")I.yylloc={};var ae=I.yylloc;s.push(ae);var je=I.options&&I.options.ranges;if(typeof M.yy.parseError==="function")this.parseError=M.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ge(P){u.length=u.length-2*P,E.length=E.length-P,s.length=s.length-P}t(Ge,"popStack");function Le(){var P=b.pop()||I.lex()||q;if(typeof P!=="number"){if(P instanceof Array)b=P,P=b.pop();P=n.symbols_[P]||P}return P}t(Le,"lex");var v,ne,W,R,Nt,oe,U={},J,K,ke,Z;while(!0){if(W=u[u.length-1],this.defaultActions[W])R=this.defaultActions[W];else{if(v===null||typeof v>"u")v=Le();R=H[W]&&H[W][v]}if(typeof R>"u"||!R.length||!R[0]){var le="";Z=[];for(J in H[W])if(this.terminals_[J]&&J>re)Z.push("'"+this.terminals_[J]+"'");if(I.showPosition)le="Parse error on line "+(V+1)+`:
|
|
2
|
+
`+I.showPosition()+`
|
|
3
|
+
Expecting `+Z.join(", ")+", got '"+(this.terminals_[v]||v)+"'";else le="Parse error on line "+(V+1)+": Unexpected "+(v==q?"end of input":"'"+(this.terminals_[v]||v)+"'");this.parseError(le,{text:I.match,token:this.terminals_[v]||v,line:I.yylineno,loc:ae,expected:Z})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+v);switch(R[0]){case 1:if(u.push(v),E.push(I.yytext),s.push(I.yylloc),u.push(R[1]),v=null,!ne){if(j=I.yyleng,l=I.yytext,V=I.yylineno,ae=I.yylloc,G>0)G--}else v=ne,ne=null;break;case 2:if(K=this.productions_[R[1]][1],U.$=E[E.length-K],U._$={first_line:s[s.length-(K||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(K||1)].first_column,last_column:s[s.length-1].last_column},je)U._$.range=[s[s.length-(K||1)].range[0],s[s.length-1].range[1]];if(oe=this.performAction.apply(U,[l,j,V,M.yy,R[1],E,s].concat(se)),typeof oe<"u")return oe;if(K)u=u.slice(0,-1*K*2),E=E.slice(0,-1*K),s=s.slice(0,-1*K);u.push(this.productions_[R[1]][0]),E.push(U.$),s.push(U._$),ke=H[u[u.length-2]][u[u.length-1]],u.push(ke);break;case 3:return!0}}return!0},"parse")},O=function(){var B={EOF:1,parseError:t(function(n,u){if(this.yy.parser)this.yy.parser.parseError(n,u);else throw Error(n)},"parseError"),setInput:t(function(f,n){if(this.yy=n||this.yy||{},this._input=f,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var n=f.match(/(?:\r\n?|\n).*/g);if(n)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),f},"input"),unput:t(function(f){var n=f.length,u=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var b=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1)this.yylineno-=u.length-1;var E=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===b.length?this.yylloc.first_column:0)+b[b.length-u.length].length-u[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[E[0],E[0]+this.yyleng-n];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(f){this.unput(this.match.slice(f))},"less"),pastInput:t(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var f=this.match;if(f.length<20)f+=this._input.substr(0,20-f.length);return(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var f=this.pastInput(),n=Array(f.length+1).join("-");return f+this.upcomingInput()+`
|
|
5
|
+
`+n+"^"},"showPosition"),test_match:t(function(f,n){var u,b,E;if(this.options.backtrack_lexer){if(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)E.yylloc.range=this.yylloc.range.slice(0)}if(b=f[0].match(/(?:\r\n?|\n).*/g),b)this.yylineno+=b.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],u=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(u)return u;else if(this._backtrack){for(var s in E)this[s]=E[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var f,n,u,b;if(!this._more)this.yytext="",this.match="";var E=this._currentRules();for(var s=0;s<E.length;s++)if(u=this._input.match(this.rules[E[s]]),u&&(!n||u[0].length>n[0].length)){if(n=u,b=s,this.options.backtrack_lexer)if(f=this.test_match(u,E[s]),f!==!1)return f;else if(this._backtrack){n=!1;continue}else return!1;else if(!this.options.flex)break}if(n){if(f=this.test_match(n,E[b]),f!==!1)return f;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var n=this.next();if(n)return n;else return this.lex()},"lex"),begin:t(function(n){this.conditionStack.push(n)},"begin"),popState:t(function(){var n=this.conditionStack.length-1;if(n>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(n){if(n=this.conditionStack.length-1-Math.abs(n||0),n>=0)return this.conditionStack[n];else return"INITIAL"},"topState"),pushState:t(function(n){this.begin(n)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(n,u,b,E){var s=E;switch(b){case 0:return n.getLogger().debug("Found block-beta"),10;break;case 1:return n.getLogger().debug("Found id-block"),29;break;case 2:return n.getLogger().debug("Found block"),10;break;case 3:n.getLogger().debug(".",u.yytext);break;case 4:n.getLogger().debug("_",u.yytext);break;case 5:return 5;case 6:return u.yytext=-1,28;break;case 7:return u.yytext=u.yytext.replace(/columns\s+/,""),n.getLogger().debug("COLUMNS (LEX)",u.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:n.getLogger().debug("LEX: POPPING STR:",u.yytext),this.popState();break;case 13:return n.getLogger().debug("LEX: STR end:",u.yytext),"STR";break;case 14:return u.yytext=u.yytext.replace(/space\:/,""),n.getLogger().debug("SPACE NUM (LEX)",u.yytext),21;break;case 15:return u.yytext="1",n.getLogger().debug("COLUMNS (LEX)",u.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),n.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),n.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),n.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),n.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),n.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),n.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),n.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),n.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),n.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),n.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),n.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),n.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),n.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),n.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),n.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),n.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),n.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return n.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return n.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return n.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return n.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return n.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return n.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return n.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return n.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return n.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return n.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return n.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return n.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),n.getLogger().debug("LEX ARR START"),37;break;case 74:return n.getLogger().debug("Lex: NODE_ID",u.yytext),31;break;case 75:return n.getLogger().debug("Lex: EOF",u.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:n.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:n.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return n.getLogger().debug("LEX: NODE_DESCR:",u.yytext),"NODE_DESCR";break;case 83:n.getLogger().debug("LEX POPPING"),this.popState();break;case 84:n.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return u.yytext=u.yytext.replace(/^,\s*/,""),n.getLogger().debug("Lex (right): dir:",u.yytext),"DIR";break;case 86:return u.yytext=u.yytext.replace(/^,\s*/,""),n.getLogger().debug("Lex (left):",u.yytext),"DIR";break;case 87:return u.yytext=u.yytext.replace(/^,\s*/,""),n.getLogger().debug("Lex (x):",u.yytext),"DIR";break;case 88:return u.yytext=u.yytext.replace(/^,\s*/,""),n.getLogger().debug("Lex (y):",u.yytext),"DIR";break;case 89:return u.yytext=u.yytext.replace(/^,\s*/,""),n.getLogger().debug("Lex (up):",u.yytext),"DIR";break;case 90:return u.yytext=u.yytext.replace(/^,\s*/,""),n.getLogger().debug("Lex (down):",u.yytext),"DIR";break;case 91:return u.yytext="]>",n.getLogger().debug("Lex (ARROW_DIR end):",u.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return n.getLogger().debug("Lex: LINK","#"+u.yytext+"#"),15;break;case 93:return n.getLogger().debug("Lex: LINK",u.yytext),15;break;case 94:return n.getLogger().debug("Lex: LINK",u.yytext),15;break;case 95:return n.getLogger().debug("Lex: LINK",u.yytext),15;break;case 96:return n.getLogger().debug("Lex: START_LINK",u.yytext),this.pushState("LLABEL"),16;break;case 97:return n.getLogger().debug("Lex: START_LINK",u.yytext),this.pushState("LLABEL"),16;break;case 98:return n.getLogger().debug("Lex: START_LINK",u.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return n.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),n.getLogger().debug("Lex: LINK","#"+u.yytext+"#"),15;break;case 102:return this.popState(),n.getLogger().debug("Lex: LINK",u.yytext),15;break;case 103:return this.popState(),n.getLogger().debug("Lex: LINK",u.yytext),15;break;case 104:return n.getLogger().debug("Lex: COLON",u.yytext),u.yytext=u.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return B}();D.lexer=O;function z(){this.yy={}}return t(z,"Parser"),z.prototype=D,D.Parser=z,new z}();he.parser=he;var $e=he,F=new Map,pe=[],ge=new Map,Ee="color",Te="fill",et="bgFill",Ie=",",Q=new Map,fe="",tt=t((e)=>C.sanitizeText(e,d()),"sanitizeText"),rt=t(function(e,o=""){let c=Q.get(e);if(!c)c={id:e,styles:[],textStyles:[]},Q.set(e,c);if(o!==void 0&&o!==null)o.split(Ie).forEach((a)=>{let h=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Ee).exec(a)){let r=h.replace(Te,et).replace(Ee,Te);c.textStyles.push(r)}c.styles.push(h)})},"addStyleClass"),st=t(function(e,o=""){let c=F.get(e);if(o!==void 0&&o!==null)c.styles=o.split(Ie)},"addStyle2Node"),it=t(function(e,o){e.split(",").forEach(function(c){let a=F.get(c);if(a===void 0){let h=c.trim();a={id:h,type:"na",children:[]},F.set(h,a)}if(!a.classes)a.classes=[];a.classes.push(o)})},"setCssClass"),Ce=0,ve=t((e,o)=>{let c=e.flat(),a=[],p=c.find((r)=>r?.type==="column-setting")?.columns??-1;for(let r of c){if(typeof p==="number"&&p>0&&r.type!=="column-setting"&&typeof r.widthInColumns==="number"&&r.widthInColumns>p)i.warn(`Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${p}`);if(r.label)r.label=tt(r.label);if(r.type==="classDef"){rt(r.id,r.css);continue}if(r.type==="applyClass"){it(r.id,r?.styleClass??"");continue}if(r.type==="applyStyles"){if(r?.stylesStr)st(r.id,r?.stylesStr);continue}if(r.type==="column-setting")o.columns=r.columns??-1;else if(r.type==="edge"){let g=(ge.get(r.id)??0)+1;ge.set(r.id,g),r.id=g+"-"+r.id,pe.push(r)}else{if(!r.label)if(r.type==="composite")r.label="";else r.label=r.id;let g=F.get(r.id);if(g===void 0){if(r.type==="composite")r.colorIndex=Ce++;F.set(r.id,r)}else{if(r.type!=="na")g.type=r.type;if(r.label!==r.id)g.label=r.label}if(r.children)ve(r.children,r);if(r.type==="space"){let L=r.width??1;for(let k=0;k<L;k++){let x=we(r);x.id=x.id+"-"+k,F.set(x.id,x),a.push(x)}}else if(g===void 0)a.push(r)}}o.children=a},"populateBlockDatabase"),be=[],X={id:"root",type:"composite",children:[],columns:-1},at=t(()=>{i.debug("Clear called"),N(),X={id:"root",type:"composite",children:[],columns:-1},F=new Map([["root",X]]),be=[],Q=new Map,pe=[],ge=new Map,fe="",Ce=0},"clear");function Ae(e){switch(i.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return i.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}t(Ae,"typeStr2Type");function ze(e){switch(i.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}t(ze,"edgeTypeStr2Type");function Be(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}t(Be,"edgeStrToEdgeData");function Pe(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}t(Pe,"edgeStrToEdgeStartData");function Fe(e){return e.includes("==")?"thick":"normal"}t(Fe,"edgeStrToThickness");function Ke(e){if(e.includes(".-"))return"dotted";return"solid"}t(Ke,"edgeStrToPattern");var Ne=0,nt=t(()=>(Ne++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ne),"generateId"),ot=t((e)=>{X.children=e,ve(e,X),be=X.children},"setHierarchy"),lt=t((e)=>{let o=F.get(e);if(!o)return-1;if(o.columns)return o.columns;if(!o.children)return-1;return o.children.length},"getColumns"),ct=t(()=>[...F.values()],"getBlocksFlat"),ut=t(()=>be||[],"getBlocks"),ht=t(()=>pe,"getEdges"),gt=t((e)=>F.get(e),"getBlock"),dt=t((e)=>{F.set(e.id,e)},"setBlock"),pt=t((e)=>{fe=e},"setDiagramId"),ft=t(()=>fe,"getDiagramId"),bt=t(()=>i,"getLogger"),St=t(function(){return Q},"getClasses"),xt={getConfig:t(()=>A().block,"getConfig"),typeStr2Type:Ae,edgeTypeStr2Type:ze,edgeStrToEdgeData:Be,edgeStrToEdgeStartData:Pe,edgeStrToThickness:Fe,edgeStrToPattern:Ke,getLogger:bt,getBlocksFlat:ct,getBlocks:ut,getEdges:ht,setHierarchy:ot,getBlock:gt,setBlock:dt,getColumns:lt,getClasses:St,clear:at,generateId:nt,setDiagramId:pt,getDiagramId:ft},mt=xt,kt=t((e)=>{let{theme:o,bkgColorArray:c,borderColorArray:a}=e;if(!Me(o,a))return"";let h=Re(e.look),p=Oe(c),r="";for(let g=0;g<zt(e.THEME_COLOR_LIMIT,a);g++){let L=a[g%a.length],k=p?`fill: ${c[g%c.length]};`:"",x=`[data-look="${h}"][data-color-id="color-${g}"]`;r+=`
|
|
7
|
+
|
|
8
|
+
${x}.node rect.composite {
|
|
9
|
+
stroke: ${L};
|
|
10
|
+
${k}
|
|
11
|
+
}
|
|
12
|
+
`}return r},"genColor"),ue=t((e,o)=>{let c=jn,a=c(e,"r"),h=c(e,"g"),p=c(e,"b");return De(a,h,p,o)},"fade"),yt=t((e)=>`${kt(e)}
|
|
13
|
+
.label {
|
|
14
|
+
font-family: ${e.fontFamily};
|
|
15
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
16
|
+
}
|
|
17
|
+
.cluster-label text {
|
|
18
|
+
fill: ${e.titleColor};
|
|
19
|
+
}
|
|
20
|
+
.cluster-label span {
|
|
21
|
+
color: ${e.titleColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.label text,span {
|
|
27
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
28
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.node rect,
|
|
32
|
+
.node circle,
|
|
33
|
+
.node ellipse,
|
|
34
|
+
.node polygon,
|
|
35
|
+
.node path {
|
|
36
|
+
fill: ${e.mainBkg};
|
|
37
|
+
stroke: ${e.nodeBorder};
|
|
38
|
+
/* From the theme, as every other diagram does. Pinned at 1px here, so block drew a
|
|
39
|
+
thinner border than an identical flowchart node under any theme asking for more --
|
|
40
|
+
the neo theme asks for 2. Nothing downstream corrected it: the neo rules set stroke
|
|
41
|
+
and filter, never stroke-width. */
|
|
42
|
+
stroke-width: ${e.strokeWidth??1}px;
|
|
43
|
+
}
|
|
44
|
+
.flowchart-label text {
|
|
45
|
+
text-anchor: middle;
|
|
46
|
+
}
|
|
47
|
+
// .flowchart-label .text-outer-tspan {
|
|
48
|
+
// text-anchor: middle;
|
|
49
|
+
// }
|
|
50
|
+
// .flowchart-label .text-inner-tspan {
|
|
51
|
+
// text-anchor: start;
|
|
52
|
+
// }
|
|
53
|
+
|
|
54
|
+
.node .label {
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
.node.clickable {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.arrowheadPath {
|
|
62
|
+
fill: ${e.arrowheadColor};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.edgePaths .path {
|
|
66
|
+
stroke: ${e.lineColor};
|
|
67
|
+
stroke-width: 2.0px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flowchart-link {
|
|
71
|
+
stroke: ${e.lineColor};
|
|
72
|
+
fill: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${e.edgeLabelBackground};
|
|
77
|
+
/*
|
|
78
|
+
* This is for backward compatibility with existing code that didn't
|
|
79
|
+
* add a \`<p>\` around edge labels.
|
|
80
|
+
*
|
|
81
|
+
* TODO: We should probably remove this in a future release.
|
|
82
|
+
*/
|
|
83
|
+
p {
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
display: inline;
|
|
87
|
+
}
|
|
88
|
+
rect {
|
|
89
|
+
opacity: 0.5;
|
|
90
|
+
background-color: ${e.edgeLabelBackground};
|
|
91
|
+
fill: ${e.edgeLabelBackground};
|
|
92
|
+
}
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* For html labels only */
|
|
97
|
+
.labelBkg {
|
|
98
|
+
background-color: ${e.edgeLabelBackground};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.node .cluster {
|
|
102
|
+
// fill: ${ue(e.mainBkg,0.5)};
|
|
103
|
+
fill: ${ue(e.clusterBkg,0.5)};
|
|
104
|
+
stroke: ${ue(e.clusterBorder,0.2)};
|
|
105
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
106
|
+
stroke-width: 1px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cluster text {
|
|
110
|
+
fill: ${e.titleColor};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cluster span {
|
|
114
|
+
color: ${e.titleColor};
|
|
115
|
+
}
|
|
116
|
+
/* .cluster div {
|
|
117
|
+
color: ${e.titleColor};
|
|
118
|
+
} */
|
|
119
|
+
|
|
120
|
+
div.mermaidTooltip {
|
|
121
|
+
position: absolute;
|
|
122
|
+
text-align: center;
|
|
123
|
+
max-width: 200px;
|
|
124
|
+
padding: 2px;
|
|
125
|
+
font-family: ${e.fontFamily};
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
background: ${e.tertiaryColor};
|
|
128
|
+
border: 1px solid ${e.border2};
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
z-index: 100;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.flowchartTitleText {
|
|
135
|
+
text-anchor: middle;
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
fill: ${e.textColor};
|
|
138
|
+
}
|
|
139
|
+
${Lt()}
|
|
140
|
+
`,"getStyles"),wt=yt;function de(e,o){if(e===0||!Number.isInteger(e))throw Error("Columns must be an integer !== 0.");if(o<0||!Number.isInteger(o))throw Error("Position must be a non-negative integer."+o);if(e<0)return{px:o,py:0};if(e===1)return{px:0,py:o};let c=o%e,a=Math.floor(o/e);return{px:c,py:a}}t(de,"calculateBlockPosition");var Et=t((e)=>{let o=0,c=0;for(let a of e.children){let{width:h,height:p,x:r,y:g}=a.size??{width:0,height:0,x:0,y:0};if(i.debug("getMaxChildSize abc95 child:",a.id,"width:",h,"height:",p,"x:",r,"y:",g,a.type),a.type==="space")continue;let L=h/(a.widthInColumns??1);if(L>o)o=L;if(p>c)c=p}return{width:o,height:c}},"getMaxChildSize");function ee(e,o,c=0,a=0,h=8){if(i.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",c),!e?.size?.width)e.size={width:c,height:a,x:0,y:0};let p=0,r=0;if(e.children?.length>0){for(let m of e.children)ee(m,o,0,0,h);let g=Et(e);p=g.width,r=g.height,i.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",p,r);for(let m of e.children)if(m.size)i.debug(`abc95 Setting size of children of ${e.id} id=${m.id} ${p} ${r} ${JSON.stringify(m.size)}`),m.size.width=p*(m.widthInColumns??1)+h*((m.widthInColumns??1)-1),m.size.height=r,m.size.x=0,m.size.y=0,i.debug(`abc95 updating size of ${e.id} children child:${m.id} maxWidth:${p} maxHeight:${r}`);for(let m of e.children)ee(m,o,p,r,h);let L=e.columns??-1,k=0;for(let m of e.children)k+=m.widthInColumns??1;let x=e.children.length;if(L>0&&L<k)x=L;let S=Math.ceil(k/x),w=x*(p+h)+h,_=S*(r+h)+h;if(w<c){i.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${c} siblingHeight ${a} width ${w}`),w=c,_=a;let m=(c-x*h-h)/x,T=(a-S*h-h)/S;i.debug("Size indata abc88",e.id,"childWidth",m,"maxWidth",p),i.debug("Size indata abc88",e.id,"childHeight",T,"maxHeight",r),i.debug("Size indata abc88 xSize",x,"padding",h);for(let D of e.children)if(D.size)D.size.width=m,D.size.height=T,D.size.x=0,D.size.y=0}if(i.debug(`abc95 (finale calc) ${e.id} xSize ${x} ySize ${S} columns ${L}${e.children.length} width=${Math.max(w,e.size?.width||0)}`),w<(e?.size?.width||0)){w=e?.size?.width||0;let m=L>0?Math.min(e.children.length,L):e.children.length;if(m>0){let T=(w-m*h-h)/m;i.debug("abc95 (growing to fit) width",e.id,w,e.size?.width,T);for(let D of e.children)if(D.size)D.size.width=T}}e.size={width:w,height:_,x:0,y:0}}i.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}t(ee,"setBlockSizes");function Se(e,o,c=8){i.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let a=e.columns??-1;if(i.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){let h=e?.children[0]?.size?.width??0,p=e.children.length*h+(e.children.length-1)*c;i.debug("widthOfChildren 88",p,"posX");let r=new Map;{let S=0;for(let w of e.children){if(!w.size)continue;let{py:_}=de(a,S),m=r.get(_)??0;if(w.size.height>m)r.set(_,w.size.height);let T=w?.widthInColumns??1;if(a>0)T=Math.min(T,a-S%a);S+=T}}let g=new Map;{let S=0,w=[...r.keys()].sort((_,m)=>_-m);for(let _ of w)g.set(_,S),S+=(r.get(_)??0)+c}let L=0;i.debug("abc91 block?.size?.x",e.id,e?.size?.x);let k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-c,x=0;for(let S of e.children){let w=e;if(!S.size)continue;let{width:_,height:m}=S.size,{px:T,py:D}=de(a,L);if(D!=x)x=D,k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-c,i.debug("New row in layout for block",e.id," and child ",S.id,x);if(i.debug(`abc89 layout blocks (child) id: ${S.id} Pos: ${L} (px, py) ${T},${D} (${w?.size?.x},${w?.size?.y}) parent: ${w.id} width: ${_}${c}`),w.size){let z=_/2;S.size.x=k+c+z,i.debug(`abc91 layout blocks (calc) px, pyid:${S.id} startingPos=X${k} new startingPosX${S.size.x} ${z} padding=${c} width=${_} halfWidth=${z} => x:${S.size.x} y:${S.size.y} ${S.widthInColumns} (width * (child?.w || 1)) / 2 ${_*(S?.widthInColumns??1)/2}`),k=S.size.x+z;let B=g.get(D)??0,f=r.get(D)??m;S.size.y=w.size.y-w.size.height/2+B+f/2+c,i.debug(`abc88 layout blocks (calc) px, pyid:${S.id}startingPosX${k}${c}${z}=>x:${S.size.x}y:${S.size.y}${S.widthInColumns}(width * (child?.w || 1)) / 2${_*(S?.widthInColumns??1)/2}`)}if(S.children)Se(S,o,c);let O=S?.widthInColumns??1;if(a>0)O=Math.min(O,a-L%a);L+=O,i.debug("abc88 columnsPos",S,L)}}i.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}t(Se,"layoutBlocks");function xe(e,{minX:o,minY:c,maxX:a,maxY:h}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:p,y:r,width:g,height:L}=e.size;if(p-g/2<o)o=p-g/2;if(r-L/2<c)c=r-L/2;if(p+g/2>a)a=p+g/2;if(r+L/2>h)h=r+L/2}if(e.children)for(let p of e.children)({minX:o,minY:c,maxX:a,maxY:h}=xe(p,{minX:o,minY:c,maxX:a,maxY:h}));return{minX:o,minY:c,maxX:a,maxY:h}}t(xe,"findBounds");function Ye(e){let o=e.getBlock("root");if(!o)return;let c=d()?.block?.padding??8;ee(o,e,0,0,c),Se(o,e,c),i.debug("getBlocks",JSON.stringify(o,null,2));let{minX:a,minY:h,maxX:p,maxY:r}=xe(o),g=r-h,L=p-a;return{x:a,y:h,width:L,height:g}}t(Ye,"layout");function me(e,o,c=!1){let a=e,h="default";if((a?.classes?.length||0)>0)h=(a?.classes??[]).join(" ");h=h+" flowchart-label";let p=(a?.classes??[]).flatMap((m)=>o.getClasses().get(m)?.styles??[]),r=0,g="rect",L;switch(a.type){case"round":r=5,g="rect";break;case"composite":r=0,g="composite",L=0;break;case"square":g="rect";break;case"diamond":g="question";break;case"hexagon":g="hexagon";break;case"block_arrow":g="block_arrow";break;case"odd":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"rect_left_inv_arrow":g="rect_left_inv_arrow";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"group":g="rect";break;case"doublecircle":g="doublecircle";break;default:g="rect"}let k=is(a?.styles??[]),x=a.label,S=a.size??{width:0,height:0,x:0,y:0},w=o.getDiagramId();return{labelStyle:k.labelStyle,shape:g,label:x,labelText:x,rx:r,ry:r,class:h,cssClasses:h,cssStyles:a?.styles??[],cssCompiledStyles:p,style:k.style,id:a.id,domId:w?`${w}-${a.id}`:a.id,isGroup:!1,directions:a.directions,width:S.width||void 0,height:S.height||void 0,wrappingWidth:S.width||Number.POSITIVE_INFINITY,x:S.x,y:S.y,positioned:c,intersect:void 0,padding:L??A()?.block?.padding??0,widthInColumns:a.widthInColumns??1,colorIndex:a.colorIndex,look:A().look}}t(me,"getNodeFromBlock");async function We(e,o,c){let a=me(o,c,!1);if(o.type==="group")return;let h=A(),p=await Nn(e,a,{config:h}),r=p.node()?.getBBox()??{width:0,height:0},g=c.getBlock(a.id);g.size={width:r.width,height:r.height,x:0,y:0,node:p},c.setBlock(g),p.remove()}t(We,"calculateBlockSize");async function Ve(e,o,c){let a=me(o,c,!0);if(c.getBlock(a.id).type!=="space"){let p=A(),r=await Nn(e,a,{config:p});if(a.colorIndex!==void 0)Ht(r,a.colorIndex,p.theme,p.themeVariables?.borderColorArray);o.intersect=a?.intersect,yn(a)}}t(Ve,"insertBlockPositioned");async function te(e,o,c,a){for(let h of o)if(await a(e,h,c),h.children)await te(e,h.children,c,a)}t(te,"performOperations");async function Ue(e,o,c){await te(e,o,c,We)}t(Ue,"calculateBlockSizes");async function He(e,o,c){await te(e,o,c,Ve)}t(He,"insertBlocks");async function Xe(e,o,c,a,h){let p=new _e({multigraph:!0,compound:!0});p.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let r of c)if(r.size)p.setNode(r.id,{width:r.size.width,height:r.size.height,intersect:r.intersect});for(let r of o)if(r.start&&r.end){let g=a.getBlock(r.start),L=a.getBlock(r.end);if(g?.size&&L?.size){let k=g.size,x=L.size,S=[{x:k.x,y:k.y},{x:k.x+(x.x-k.x)/2,y:k.y+(x.y-k.y)/2},{x:x.x,y:x.y}],w=h?`${h}-${r.id}`:r.id,_=r.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",m=r.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",T=`${_} ${m} flowchart-link LS-a1 LE-b1`;if(mr(e,{...r,id:w,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:S,classes:T},{},"block",p.node(r.start),p.node(r.end),h),r.label)await Mn(e,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:S,classes:T}),Ca({...r,x:S[1].x,y:S[1].y},{originalPath:S})}}}t(Xe,"insertEdges");var _t=t(function(e,o){return o.db.getClasses()},"getClasses"),Dt=t(async function(e,o,c,a){let{securityLevel:h,block:p}=A(),r=a.db;r.setDiagramId(o);let g;if(h==="sandbox")g=y("#i"+o);let L=h==="sandbox"?y(g.nodes()[0].contentDocument.body):y("body"),k=h==="sandbox"?L.select(`[id="${o}"]`):y(`[id="${o}"]`);Fo(k,A()),Sa(k,["point","circle","cross"],a.type,o);let S=r.getBlocks(),w=r.getBlocksFlat(),_=r.getEdges(),m=k.insert("g").attr("class","block");await Ue(m,S,r);let T=Ye(r);await He(m,S,r),await Xe(m,_,w,r,o);let D=m.node()?.getBBox(),O=D&&Number.isFinite(D.width)&&Number.isFinite(D.height)?D:T;if(O){let z=Math.max(1,Math.round(0.125*(O.width/O.height))),B=O.height+z+10,f=O.width+10,{useMaxWidth:n}=p;Y(k,B,f,!!n),i.debug("Here Bounds",T,O),k.attr("viewBox",`${O.x-5} ${O.y-5} ${O.width+10} ${O.height+10}`)}},"draw"),Tt={draw:Dt,getClasses:_t},tr={parser:$e,db:mt,renderer:Tt,styles:wt};export{tr as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Sc,ol,Ac,sl,cl,Tc}from"./chunk-k56v8k7n.js";import"./chunk-sgaw26nc.js";import"./chunk-0b5vh2pt.js";import"./chunk-eejjsqm1.js";export{ol as applyDagreLayoutResult,Sc as getEdgesToRender,sl as measureDagreLayout,Ac as prepareLayoutForDagre,Tc as render,cl as runDagreLayoutCore};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
��v��U��O���=����9���A� �ˎ�r�q���X
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s,o,a,tn,yi,m,e,n,v,l,ae,yr,_n,Ce,Ea,le}from"./chunk-29fpfs5q.js";var ye=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=l("at-sign",ye);var ke=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=l("file-code-2",ke);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ue=l("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=l("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pe=l("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let p=V(t.status);return{busy:p,text:p&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let p=t.members.filter((b)=>b.verdict==="approve").length,f=t.members.filter((b)=>b.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(p===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>p)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let p=Math.max(1,Math.round(t/1000));if(p<60)return`${p}s`;return`${Math.floor(p/60)}m ${String(p%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:p}=v(),{room:f}=t,b=te(f),g=f.state==="running",h=f.research?["research","opening","discussion"]:["opening","discussion"],i=g?h.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,N=[...h.map((d,u)=>({key:d,label:De[d],done:!g||u<i,active:u===i})),{key:"closed",label:g?"结论":b.label,done:!g,active:!1}];return e("ol",{className:p("flex min-w-0 gap-1",t.className),children:N.map((d,u)=>{let c=u===N.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:p("block h-[3px] rounded-full transition-colors duration-300",c?ee[b.tone]:d.active?"bg-accent animate-pulse":d.done?"bg-line-strong":"bg-line/60")}),e("span",{className:p("mt-1.5 block truncate text-2xs",c?p("font-medium",F[b.tone]):d.active?"font-medium text-ink":d.done?"text-dim":"text-faint"),children:d.label})]},d.key)})})}function fe(t){let{Collapsible:p,CollapsibleContent:f,Composer:b,Markdown:g,ModelIcon:h,ScrollArea:i,SessionView:N,cn:d,confirm:u}=v(),{room:c,onClose:C}=t,[M,x]=a(!1),[J,D]=a(""),[R,H]=a(!1),[_,E]=a(),[S,B]=a(!1),[y,I]=a(!0),[T,z]=a(),ne=o(!1);ne.current=T!==void 0;let[U,X]=a(),[se,A]=a(!1),oe=o(!1);oe.current=U!==void 0;let ie=(r)=>{A(!1),X(r)},re=o(null),Y=o(null),P=c.state==="running",j=te(c),ge=new Map(c.members.map((r)=>[r.id,r]));s(()=>{let r=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(oe.current)A(!0);else x(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),document.body.style.overflow=k}},[]);let ce=c.messages.length;s(()=>{let r=Y.current;if(!r||!y||ce===0)return;r.scrollTo({top:r.scrollHeight,behavior:"smooth"})},[ce,y]);let be=async(r)=>{await t.onPost(r),I(!0)},ve=async()=>{if(R)return;if(!await u({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(r)=>{X(void 0),D((k)=>k.includes(`@${r}`)?k:`${k?`${k.trimEnd()} `:""}@${r} `),requestAnimationFrame(()=>re.current?.focus())},he=c.members.filter((r)=>r.verdict==="approve").length,Ne=c.members.filter((r)=>r.verdict==="reject").length,q=c.members.find((r)=>r.id===T),O=c.members.find((r)=>r.id===U);return tn(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(r)=>{if(M&&r.target===r.currentTarget)C()},className:d("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(p,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-2xs text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((r)=>!r),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-md leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(Ce,{className:d("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:d("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:d("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>x(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(le,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-ui leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((r)=>e(Se,{member:r,onSelect:()=>z(r.id)},r.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-2xs text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:he})," / ",e("span",{className:"text-danger",children:Ne})," /"," ",c.members.length]})]}),c.members.map((r)=>e(Re,{member:r,viewing:r.id===U,onMention:()=>Q(r.name),onOpen:()=>r.id===U?A(!0):ie(r.id)},r.id))]}),O&&n("main",{onAnimationEnd:(r)=>{if(!se||r.target!==r.currentTarget)return;A(!1),X(void 0)},className:d("flex min-h-0 min-w-0 flex-1 flex-col",se?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-ui text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(yr,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-ui font-medium",children:[e(h,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(_n,{className:"size-4"})})]}),e(N,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:d("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(i,{viewportRef:Y,onScrollCapture:(r)=>{let k=Y.current;if(!k||r.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(ae,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((r)=>e(Te,{message:r,membersByID:ge,onMention:()=>Q(r.senderName)},r.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:d("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-ui leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-ui text-danger",children:_}),e(b,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:re,onSend:be,onAbort:()=>void ve()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),ie(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:p,cn:f}=v(),{member:b}=t,g=w[b.verdict]??w.pending,{busy:h}=K(b);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${b.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(p,{modelID:b.model,className:"size-4",size:16}),h&&e(ae,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-ui font-medium",children:b.name}),e("span",{className:f("block text-2xs",g.text),children:g.label})]})]})}function Oe(t){let{Button:p,Dialog:f,Markdown:b,ModelIcon:g,cn:h}=v(),{member:i}=t,N=w[i.verdict]??w.pending,d=K(i);return e(f,{open:!0,onOpenChange:(u)=>!u&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:h("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",N.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:i.name}),e("span",{className:h("shrink-0 rounded px-1.5 py-px text-2xs font-medium",N.soft),children:N.label})]}),description:i.model,footer:n(m,{children:[n(p,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(p,{variant:"secondary",onClick:t.onOpen,children:[e(_n,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-ui",children:[n("span",{className:h("flex min-w-0 flex-1 items-center gap-1.5",d.busy?"text-accent":"text-dim"),children:[d.busy&&e(ae,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:d.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",i.turns??0," 次"]})]}),i.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-ui leading-relaxed text-dim",children:e(b,{text:i.notes})})]}):e("p",{className:"text-ui text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:p,CollapsibleContent:f,Markdown:b,ModelIcon:g,cn:h}=v(),{member:i}=t,[N,d]=a(!1),u=w[i.verdict]??w.pending,{busy:c,text:C}=K(i);return n(p,{open:N,onOpenChange:d,className:h("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${i.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:h("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",u.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-ui font-medium",title:i.model,children:i.name}),e("span",{className:h("shrink-0 rounded px-1 text-2xs font-medium",u.soft),children:u.label})]}),n("div",{className:h("flex min-w-0 items-center gap-1 text-2xs",c?"text-accent":"text-faint"),children:[c&&e(ae,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-2xs text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",i.turns??0," 次"]}),e("span",{className:"ml-auto"}),i.notes&&n("button",{type:"button","aria-expanded":N,onClick:()=>d((M)=>!M),className:h("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",N&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${i.name}`,title:`@ ${i.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),i.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(b,{text:i.notes})})})]})}function Te(t){let{Code:p,Collapsible:f,CollapsibleContent:b,Markdown:g,cn:h}=v(),{message:i}=t,[N,d]=a(!1),u=i.senderID==="user"||i.senderID==="host",c=i.verdict&&i.verdict!=="pending"?w[i.verdict]:void 0,C=i.evidences??[],M=(i.mentions??[]).map((x)=>t.membersByID.get(x)).filter((x)=>x!==void 0);return n("li",{id:`council-floor-${i.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:i,isHuman:u,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:i,isHuman:u,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:i.senderModel,children:i.senderName}),n("a",{href:`#council-floor-${i.floor}`,className:"font-mono text-2xs text-faint hover:text-dim",onClick:(x)=>x.preventDefault(),children:["#",i.floor]}),c&&e("span",{className:h("rounded px-1.5 py-px text-2xs font-medium",c.soft),children:c.label}),!u&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-2xs text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(i.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-2xs text-faint",children:[i.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${i.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(Ea,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",i.replyToFloor," ",i.replyToName]}),i.replyToPreview&&e("span",{className:"truncate",children:i.replyToPreview})]}),M.map((x)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),x.name]},x.id))]}),e("div",{className:"mt-1.5 break-words text-sm leading-relaxed text-ink/90 md:text-ui [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:i.text})}),C.length>0&&n(f,{open:N,onOpenChange:d,className:"mt-2",children:[n("button",{type:"button","aria-expanded":N,onClick:()=>d((x)=>!x),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-2xs text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!N&&e("span",{className:"truncate font-mono",children:C.map((x)=>x.label).join(",")}),e(Ce,{className:h("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!N&&"-rotate-90")})]}),e(b,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((x)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-2xs text-dim",children:x.label}),x.snippet&&e(p,{code:x.snippet,lang:x.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-xs"})]},`${x.tool}:${x.label}:${x.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:p,cn:f}=v();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(p,{modelID:t.message.senderModel,className:"size-4",size:16}):e(pe,{className:"size-4"})})}function ot(t){let{ModelIcon:p,cn:f,useTheme:b}=v();b();let{connection:g,sessionID:h,payload:i,onOpen:N}=t,d=i,[u,c]=a(d),[C,M]=a(()=>{try{return sessionStorage.getItem(yi)===d.roomID}catch{return!1}}),[x,J]=a(Date.now);s(()=>{c(d)},[d]),s(()=>{if(!C)return;try{if(sessionStorage.getItem(yi)===d.roomID)sessionStorage.removeItem(yi)}catch{}},[C,d.roomID]);let D=u.state==="running",R=`/api/sessions/${encodeURIComponent(h)}/council/${encodeURIComponent(u.roomID)}`;s(()=>{if(!D)return;let y=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!y&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!y)J(Date.now())},1200);return()=>{y=!0,clearInterval(T)}},[g,R,D]);let H=async(y)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:y})});c(I)},_=async()=>{let y=await g.request(`${R}/kill`,{method:"POST"});c(y)},E=(D?x:u.updatedAt)-u.createdAt,S=u.messages.at(-1),B=u.members.filter((y)=>V(y.status)).length;return n(m,{children:[n("button",{type:"button","aria-label":`进入理事会:${u.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-2xs text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[u.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:u.topic,children:u.topic})]}),e(G,{room:u,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:u.members.map((y)=>{let I=w[y.verdict]??w.pending,T=V(y.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:y.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(p,{modelID:y.model,className:"size-3.5",size:14}),T&&e(ae,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:y.name}),e("span",{className:f("shrink-0 text-2xs",I.text),children:I.label})]},y.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(m,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${u.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[u.messages.length>0&&n("span",{className:"tabular-nums",children:[u.messages.length," 条"]}),e(ue,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:u,elapsedMs:E,onClose:()=>M(!1),onOpenMember:N,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
|
|
Binary file
|
|
Binary file
|