@bkm016/basalt 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-01g872ez.js +3 -0
- package/chunk-078td1r4.js +7 -0
- package/chunk-1mhv12a5.js +3 -0
- package/chunk-1zrht78t.js +2 -0
- package/chunk-2e4xds74.js +18 -0
- package/chunk-2hkpqjqj.js +3 -0
- package/chunk-2mhpgb4t.js +2 -0
- package/chunk-3nwqng5t.js +59 -0
- package/chunk-3zm1ejmh.js +3 -0
- package/chunk-4d9p68s9.js +3 -0
- package/chunk-5h96jz3p.js +3 -0
- package/chunk-5znfck4s.js +5 -0
- package/chunk-6048rq29.js +8 -0
- package/chunk-61zk13qr.js +3 -0
- package/chunk-62ty404c.js +2 -0
- package/chunk-6vp2nqbj.js +2 -0
- package/chunk-7a5derff.js +25 -0
- package/chunk-7qhbff72.js +5 -0
- package/chunk-7xw6fpx3.js +3 -0
- package/chunk-84rk4tew.js +2 -0
- package/chunk-8np9b2y8.js +3 -0
- package/chunk-8wb8yr7d.js +12 -0
- package/chunk-93b76hhg.js +11 -0
- package/chunk-9h05aqdd.js +25 -0
- package/chunk-a2jsx2ew.js +3 -0
- package/chunk-a2qwx6cr.js +2 -0
- package/chunk-a7h459z1.js +2 -0
- package/chunk-atjwde1c.js +2 -0
- package/chunk-bk20awc9.js +10 -0
- package/chunk-bm2jhkqt.js +3 -0
- package/chunk-bp4zk5ch.js +3 -0
- package/chunk-c5ess8kd.js +3 -0
- package/chunk-cj7yhgnd.js +2 -0
- package/chunk-cjq2bzkf.js +3 -0
- package/chunk-csrpxzn7.js +3 -0
- package/chunk-cwesdh51.js +39 -0
- package/chunk-drbd6485.js +3 -0
- package/chunk-dt594v3d.js +9 -0
- package/chunk-dwxp0gtf.js +4 -0
- package/chunk-ejdewe04.js +3 -0
- package/chunk-fkzk83xs.js +2 -0
- package/chunk-fsnc2sja.js +3 -0
- package/chunk-g18hxgdr.js +12 -0
- package/chunk-hfwy0rzt.js +10 -0
- package/chunk-hg5wmrfb.js +3 -0
- package/chunk-hvex6qjc.js +5 -0
- package/chunk-hw8xknv5.js +2 -0
- package/chunk-j91wgfzj.js +2 -0
- package/chunk-jyx4ynyp.js +3 -0
- package/chunk-jz1pavma.js +20 -0
- package/chunk-kjjrmfmt.js +2 -0
- package/chunk-kz1ja7t7.js +31 -0
- package/chunk-mh4s6m7e.js +2 -0
- package/chunk-n0g6w24y.js +3 -0
- package/chunk-nnp82zvz.js +5 -0
- package/chunk-p34keb5j.js +3 -0
- package/chunk-pcxaycc3.js +3560 -0
- package/chunk-pdwexj34.js +16 -0
- package/chunk-phpse938.js +3 -0
- package/chunk-pt14ba7d.js +15 -0
- package/chunk-q0hvv6bh.js +390 -0
- package/chunk-qd4xtknk.js +2 -0
- package/chunk-qfg0dr8f.js +2 -0
- package/chunk-qnrkh3ca.js +7 -0
- package/chunk-r1t5yhee.js +7 -0
- package/chunk-r5na5qx5.js +2 -0
- package/chunk-r7a6q57s.js +2 -0
- package/chunk-smsn4ebc.js +4 -0
- package/chunk-sqr8tx1m.js +471 -0
- package/chunk-t4twa09y.js +2 -0
- package/chunk-tjs6h6zk.js +4 -0
- package/chunk-tvbh69tm.js +3 -0
- package/chunk-tvv9yfqv.js +11 -0
- package/chunk-vbdf5psp.js +2 -0
- package/chunk-vr60qwyg.js +2 -0
- package/chunk-w509y6w6.js +2 -0
- package/chunk-w7n83ye7.js +7 -0
- package/chunk-wacjm9ww.js +3 -0
- package/chunk-xex050bc.js +3 -0
- package/chunk-y0fgbrkc.js +2 -0
- package/chunk-ysfpdxjy.js +3 -0
- package/chunk-ytsnns2n.js +2 -0
- package/chunk-zwgdbrbg.js +2 -0
- package/chunk-zz7qjanc.js +2 -0
- package/compiled.js +8 -8
- package/package.json +1 -1
- package/ui-test-worker.js +57 -57
- package/web/chunk-07q4pdkf.js +1 -0
- package/web/chunk-07q4pdkf.js.br +0 -0
- package/web/chunk-07q4pdkf.js.gz +0 -0
- package/web/chunk-0s237vb2.js +2 -0
- package/web/chunk-0s237vb2.js.br +0 -0
- package/web/chunk-0s237vb2.js.gz +0 -0
- package/web/chunk-0zbmaspt.js +24 -0
- package/web/chunk-0zbmaspt.js.br +0 -0
- package/web/chunk-0zbmaspt.js.gz +0 -0
- package/web/chunk-11p8z5sv.js +8 -0
- package/web/chunk-11p8z5sv.js.br +0 -0
- package/web/chunk-11p8z5sv.js.gz +0 -0
- package/web/chunk-1axadk7j.js +2 -0
- package/web/chunk-1axadk7j.js.br +0 -0
- package/web/chunk-1axadk7j.js.gz +0 -0
- package/web/chunk-1ebz6hbk.js +1 -0
- package/web/chunk-1ebz6hbk.js.br +0 -0
- package/web/chunk-1ebz6hbk.js.gz +0 -0
- package/web/chunk-1pg22vjr.js +38 -0
- package/web/chunk-1pg22vjr.js.br +0 -0
- package/web/chunk-1pg22vjr.js.gz +0 -0
- package/web/chunk-1ys90q5s.js +1 -0
- package/web/chunk-1ys90q5s.js.br +0 -0
- package/web/chunk-1ys90q5s.js.gz +0 -0
- package/web/chunk-1zd8azrg.js +34 -0
- package/web/chunk-1zd8azrg.js.br +0 -0
- package/web/chunk-1zd8azrg.js.gz +0 -0
- package/web/chunk-22rjbwxp.js +303 -0
- package/web/chunk-22rjbwxp.js.br +0 -0
- package/web/chunk-22rjbwxp.js.gz +0 -0
- package/web/chunk-2eg9t1mz.js +2 -0
- package/web/chunk-2eg9t1mz.js.br +0 -0
- package/web/chunk-2eg9t1mz.js.gz +0 -0
- package/web/chunk-2emc5sd7.js +12 -0
- package/web/chunk-2emc5sd7.js.br +0 -0
- package/web/chunk-2emc5sd7.js.gz +0 -0
- package/web/chunk-2gj9yydt.js +2 -0
- package/web/chunk-2gj9yydt.js.br +0 -0
- package/web/chunk-2gj9yydt.js.gz +0 -0
- package/web/chunk-2jvy4y1e.js +1 -0
- package/web/chunk-2jvy4y1e.js.br +0 -0
- package/web/chunk-2jvy4y1e.js.gz +0 -0
- package/web/chunk-2kwn5gsx.js +1 -0
- package/web/chunk-2kwn5gsx.js.br +0 -0
- package/web/chunk-2kwn5gsx.js.gz +0 -0
- package/web/chunk-2r84nrwk.js +99 -0
- package/web/chunk-2r84nrwk.js.br +0 -0
- package/web/chunk-2r84nrwk.js.gz +0 -0
- package/web/chunk-3abhxhtv.js +2 -0
- package/web/chunk-3abhxhtv.js.br +0 -0
- package/web/chunk-3abhxhtv.js.gz +0 -0
- package/web/chunk-3cgxntbk.js +2 -0
- package/web/chunk-3cgxntbk.js.br +0 -0
- package/web/chunk-3cgxntbk.js.gz +0 -0
- package/web/chunk-3g3n9pc5.js +332 -0
- package/web/chunk-3g3n9pc5.js.br +0 -0
- package/web/chunk-3g3n9pc5.js.gz +0 -0
- package/web/chunk-3qmpdzq2.js +1 -0
- package/web/chunk-3qmpdzq2.js.br +0 -0
- package/web/chunk-3qmpdzq2.js.gz +0 -0
- package/web/chunk-3rxjewe5.js +2 -0
- package/web/chunk-3rxjewe5.js.br +0 -0
- package/web/chunk-3rxjewe5.js.gz +0 -0
- package/web/chunk-3vh17h7n.js +62 -0
- package/web/chunk-3vh17h7n.js.br +0 -0
- package/web/chunk-3vh17h7n.js.gz +0 -0
- package/web/chunk-49ywdzda.js +36 -0
- package/web/chunk-49ywdzda.js.br +0 -0
- package/web/chunk-49ywdzda.js.gz +0 -0
- package/web/chunk-5ch8rwjz.js +2 -0
- package/web/chunk-5ch8rwjz.js.br +0 -0
- package/web/chunk-5ch8rwjz.js.gz +0 -0
- package/web/chunk-5k1xca5m.js +324 -0
- package/web/chunk-5k1xca5m.js.br +0 -0
- package/web/chunk-5k1xca5m.js.gz +0 -0
- package/web/chunk-5kcmtrrk.js +2 -0
- package/web/chunk-5kcmtrrk.js.br +0 -0
- package/web/chunk-5kcmtrrk.js.gz +0 -0
- package/web/chunk-5t1yv276.js +1 -0
- package/web/chunk-5t1yv276.js.br +0 -0
- package/web/chunk-5t1yv276.js.gz +0 -0
- package/web/chunk-612xftnp.js +1 -0
- package/web/chunk-612xftnp.js.br +0 -0
- package/web/chunk-612xftnp.js.gz +0 -0
- package/web/chunk-6183jmyq.js +2 -0
- package/web/chunk-6183jmyq.js.br +0 -0
- package/web/chunk-6183jmyq.js.gz +0 -0
- package/web/chunk-66zp24sf.js +2 -0
- package/web/chunk-66zp24sf.js.br +0 -0
- package/web/chunk-66zp24sf.js.gz +0 -0
- package/web/chunk-67wywbgr.js +2 -0
- package/web/chunk-67wywbgr.js.br +0 -0
- package/web/chunk-67wywbgr.js.gz +0 -0
- package/web/chunk-6j0d6131.js +1 -0
- package/web/chunk-6j0d6131.js.br +0 -0
- package/web/chunk-6j0d6131.js.gz +0 -0
- package/web/chunk-6ycpdpfj.js +107 -0
- package/web/chunk-6ycpdpfj.js.br +0 -0
- package/web/chunk-6ycpdpfj.js.gz +0 -0
- package/web/chunk-79tbvvqj.js +1 -0
- package/web/chunk-79tbvvqj.js.br +0 -0
- package/web/chunk-79tbvvqj.js.gz +0 -0
- package/web/chunk-7bcksmqx.js +2 -0
- package/web/chunk-7bcksmqx.js.br +0 -0
- package/web/chunk-7bcksmqx.js.gz +0 -0
- package/web/chunk-7c2zkqgd.js +89 -0
- package/web/chunk-7c2zkqgd.js.br +0 -0
- package/web/chunk-7c2zkqgd.js.gz +0 -0
- package/web/chunk-7ed42dqv.js +1 -0
- package/web/chunk-7ed42dqv.js.br +0 -0
- package/web/chunk-7ed42dqv.js.gz +0 -0
- package/web/chunk-7mzdjjha.js +1 -0
- package/web/chunk-7mzdjjha.js.br +0 -0
- package/web/chunk-7mzdjjha.js.gz +0 -0
- package/web/chunk-7t1sb86g.js +2 -0
- package/web/chunk-7t1sb86g.js.br +0 -0
- package/web/chunk-7t1sb86g.js.gz +0 -0
- package/web/chunk-7t5kzbp1.js +1 -0
- package/web/chunk-7t5kzbp1.js.br +0 -0
- package/web/chunk-7t5kzbp1.js.gz +0 -0
- package/web/chunk-7tmzvm05.js +2 -0
- package/web/chunk-7tmzvm05.js.br +0 -0
- package/web/chunk-7tmzvm05.js.gz +0 -0
- package/web/chunk-80k4k6aw.js +7 -0
- package/web/chunk-80k4k6aw.js.br +0 -0
- package/web/chunk-80k4k6aw.js.gz +0 -0
- package/web/chunk-8tvy5xbr.js +217 -0
- package/web/chunk-8tvy5xbr.js.br +0 -0
- package/web/chunk-8tvy5xbr.js.gz +0 -0
- package/web/chunk-95jr0f0q.js +139 -0
- package/web/chunk-95jr0f0q.js.br +0 -0
- package/web/chunk-95jr0f0q.js.gz +0 -0
- package/web/chunk-9h6ayn54.js +16 -0
- package/web/chunk-9h6ayn54.js.br +0 -0
- package/web/chunk-9h6ayn54.js.gz +0 -0
- package/web/chunk-9jzpxvwa.js +106 -0
- package/web/chunk-9jzpxvwa.js.br +0 -0
- package/web/chunk-9jzpxvwa.js.gz +0 -0
- package/web/chunk-9kx2s040.js +1 -0
- package/web/chunk-9kx2s040.js.br +0 -0
- package/web/chunk-9kx2s040.js.gz +0 -0
- package/web/chunk-9mdbahpr.js +2 -0
- package/web/chunk-9mdbahpr.js.br +0 -0
- package/web/chunk-9mdbahpr.js.gz +0 -0
- package/web/chunk-9w6mjqgp.js +1 -0
- package/web/chunk-9w6mjqgp.js.br +0 -0
- package/web/chunk-9w6mjqgp.js.gz +0 -0
- package/web/chunk-9xb3j03w.js +142 -0
- package/web/chunk-9xb3j03w.js.br +0 -0
- package/web/chunk-9xb3j03w.js.gz +0 -0
- package/web/chunk-abzt3tzj.js +1 -0
- package/web/chunk-abzt3tzj.js.br +0 -0
- package/web/chunk-abzt3tzj.js.gz +0 -0
- package/web/chunk-ahebswgf.js +1 -0
- package/web/chunk-ahebswgf.js.br +0 -0
- package/web/chunk-ahebswgf.js.gz +0 -0
- package/web/chunk-ahsw5yz2.js +2 -0
- package/web/chunk-ahsw5yz2.js.br +0 -0
- package/web/chunk-ahsw5yz2.js.gz +0 -0
- package/web/chunk-b21jhnc3.js +1 -0
- package/web/chunk-b21jhnc3.js.br +2 -0
- package/web/chunk-b21jhnc3.js.gz +0 -0
- package/web/chunk-b3cn4qmw.js +1 -0
- package/web/chunk-b3cn4qmw.js.br +0 -0
- package/web/chunk-b3cn4qmw.js.gz +0 -0
- package/web/chunk-b4qxx7jx.js +2 -0
- package/web/chunk-b4qxx7jx.js.br +0 -0
- package/web/chunk-b4qxx7jx.js.gz +0 -0
- package/web/chunk-b79d9r5v.js +98 -0
- package/web/chunk-b79d9r5v.js.br +0 -0
- package/web/chunk-b79d9r5v.js.gz +0 -0
- package/web/chunk-b9x115jw.css +1 -0
- package/web/chunk-b9x115jw.css.br +0 -0
- package/web/chunk-b9x115jw.css.gz +0 -0
- package/web/chunk-bbnamv1j.js +1 -0
- package/web/chunk-bbnamv1j.js.br +2 -0
- package/web/chunk-bbnamv1j.js.gz +0 -0
- package/web/chunk-bgqfryh2.js +1 -0
- package/web/chunk-bgqfryh2.js.br +0 -0
- package/web/chunk-bgqfryh2.js.gz +0 -0
- package/web/chunk-bjrnqvf4.js +1 -0
- package/web/chunk-bjrnqvf4.js.br +0 -0
- package/web/chunk-bjrnqvf4.js.gz +0 -0
- package/web/chunk-cbh6w44y.js +1 -0
- package/web/chunk-cbh6w44y.js.br +0 -0
- package/web/chunk-cbh6w44y.js.gz +0 -0
- package/web/chunk-d0bt1ypq.js +140 -0
- package/web/chunk-d0bt1ypq.js.br +0 -0
- package/web/chunk-d0bt1ypq.js.gz +0 -0
- package/web/chunk-ddfd1c5x.js +1 -0
- package/web/chunk-ddfd1c5x.js.br +0 -0
- package/web/chunk-ddfd1c5x.js.gz +0 -0
- package/web/chunk-deqy1rfx.js +1 -0
- package/web/chunk-deqy1rfx.js.br +0 -0
- package/web/chunk-deqy1rfx.js.gz +0 -0
- package/web/chunk-dk3dpdnc.js +4 -0
- package/web/chunk-dk3dpdnc.js.br +0 -0
- package/web/chunk-dk3dpdnc.js.gz +0 -0
- package/web/chunk-dr35dsw5.js +1 -0
- package/web/chunk-dr35dsw5.js.br +0 -0
- package/web/chunk-dr35dsw5.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +1 -0
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/chunk-dy9amqbz.js +1 -0
- package/web/chunk-dy9amqbz.js.br +0 -0
- package/web/chunk-dy9amqbz.js.gz +0 -0
- package/web/chunk-e039ekp7.js +89 -0
- package/web/chunk-e039ekp7.js.br +0 -0
- package/web/chunk-e039ekp7.js.gz +0 -0
- package/web/chunk-e2e2fdwq.js +30 -0
- package/web/chunk-e2e2fdwq.js.br +0 -0
- package/web/chunk-e2e2fdwq.js.gz +0 -0
- package/web/chunk-e5j1v42p.js +7 -0
- package/web/chunk-e5j1v42p.js.br +0 -0
- package/web/chunk-e5j1v42p.js.gz +0 -0
- package/web/chunk-ef0wf92p.js +2 -0
- package/web/chunk-ef0wf92p.js.br +0 -0
- package/web/chunk-ef0wf92p.js.gz +0 -0
- package/web/chunk-emsyqa1e.js +1 -0
- package/web/chunk-emsyqa1e.js.br +0 -0
- package/web/chunk-emsyqa1e.js.gz +0 -0
- package/web/chunk-en7n9d1p.js +41 -0
- package/web/chunk-en7n9d1p.js.br +0 -0
- package/web/chunk-en7n9d1p.js.gz +0 -0
- package/web/chunk-ez4yt1s1.js +1 -0
- package/web/chunk-ez4yt1s1.js.br +0 -0
- package/web/chunk-ez4yt1s1.js.gz +0 -0
- package/web/chunk-f620k3hk.js +1 -0
- package/web/chunk-f620k3hk.js.br +0 -0
- package/web/chunk-f620k3hk.js.gz +0 -0
- package/web/chunk-fe2hpamc.js +200 -0
- package/web/chunk-fe2hpamc.js.br +0 -0
- package/web/chunk-fe2hpamc.js.gz +0 -0
- package/web/chunk-fm7saxzr.js +1 -0
- package/web/chunk-fm7saxzr.js.br +0 -0
- package/web/chunk-fm7saxzr.js.gz +0 -0
- package/web/chunk-fz5d3ayq.js +2 -0
- package/web/chunk-fz5d3ayq.js.br +0 -0
- package/web/chunk-fz5d3ayq.js.gz +0 -0
- package/web/chunk-gb2tkfv0.js +1 -0
- package/web/chunk-gb2tkfv0.js.br +0 -0
- package/web/chunk-gb2tkfv0.js.gz +0 -0
- package/web/chunk-gc1ypgy4.js +1 -0
- package/web/chunk-gc1ypgy4.js.br +0 -0
- package/web/chunk-gc1ypgy4.js.gz +0 -0
- package/web/chunk-h23pczjh.js +40 -0
- package/web/chunk-h23pczjh.js.br +0 -0
- package/web/chunk-h23pczjh.js.gz +0 -0
- package/web/chunk-h2sttxfn.js +1 -0
- package/web/chunk-h2sttxfn.js.br +2 -0
- package/web/chunk-h2sttxfn.js.gz +0 -0
- package/web/chunk-h5m9ggsm.js +2 -0
- package/web/chunk-h5m9ggsm.js.br +0 -0
- package/web/chunk-h5m9ggsm.js.gz +0 -0
- package/web/chunk-h5zc1hw5.js +1 -0
- package/web/chunk-h5zc1hw5.js.br +0 -0
- package/web/chunk-h5zc1hw5.js.gz +0 -0
- package/web/chunk-hkg6bts9.js +1 -0
- package/web/chunk-hkg6bts9.js.br +0 -0
- package/web/chunk-hkg6bts9.js.gz +0 -0
- package/web/chunk-hncdpeer.js +120 -0
- package/web/chunk-hncdpeer.js.br +0 -0
- package/web/chunk-hncdpeer.js.gz +0 -0
- package/web/chunk-j40wechd.js +2 -0
- package/web/chunk-j40wechd.js.br +0 -0
- package/web/chunk-j40wechd.js.gz +0 -0
- package/web/chunk-jddmse74.js +169 -0
- package/web/chunk-jddmse74.js.br +0 -0
- package/web/chunk-jddmse74.js.gz +0 -0
- package/web/chunk-jdvdg38q.js +3 -0
- package/web/chunk-jdvdg38q.js.br +0 -0
- package/web/chunk-jdvdg38q.js.gz +0 -0
- package/web/chunk-jf6q93m9.js +1 -0
- package/web/chunk-jf6q93m9.js.br +0 -0
- package/web/chunk-jf6q93m9.js.gz +0 -0
- package/web/chunk-jfd1gybx.js +39 -0
- package/web/chunk-jfd1gybx.js.br +0 -0
- package/web/chunk-jfd1gybx.js.gz +0 -0
- package/web/chunk-jkgkt722.js +1 -0
- package/web/chunk-jkgkt722.js.br +0 -0
- package/web/chunk-jkgkt722.js.gz +0 -0
- package/web/chunk-k427fwgp.js +1 -0
- package/web/chunk-k427fwgp.js.br +0 -0
- package/web/chunk-k427fwgp.js.gz +0 -0
- package/web/chunk-k8pezbya.js +2 -0
- package/web/chunk-k8pezbya.js.br +3 -0
- package/web/chunk-k8pezbya.js.gz +0 -0
- package/web/chunk-k9t941fj.js +1 -0
- package/web/chunk-k9t941fj.js.br +0 -0
- package/web/chunk-k9t941fj.js.gz +0 -0
- package/web/chunk-kkzwvnft.js +1 -0
- package/web/chunk-kkzwvnft.js.br +0 -0
- package/web/chunk-kkzwvnft.js.gz +0 -0
- package/web/chunk-kpm8gp4z.js +292 -0
- package/web/chunk-kpm8gp4z.js.br +0 -0
- package/web/chunk-kpm8gp4z.js.gz +0 -0
- package/web/chunk-kqyk2an3.js +214 -0
- package/web/chunk-kqyk2an3.js.br +0 -0
- package/web/chunk-kqyk2an3.js.gz +0 -0
- package/web/chunk-m3gryxba.js +2 -0
- package/web/chunk-m3gryxba.js.br +0 -0
- package/web/chunk-m3gryxba.js.gz +0 -0
- package/web/chunk-m8h3c5x3.js +1 -0
- package/web/chunk-m8h3c5x3.js.br +0 -0
- package/web/chunk-m8h3c5x3.js.gz +0 -0
- package/web/chunk-mb7sr4tf.js +55 -0
- package/web/chunk-mb7sr4tf.js.br +0 -0
- package/web/chunk-mb7sr4tf.js.gz +0 -0
- package/web/chunk-meqcd10n.js +1 -0
- package/web/chunk-meqcd10n.js.br +0 -0
- package/web/chunk-meqcd10n.js.gz +0 -0
- package/web/chunk-msrq7vsz.js +7 -0
- package/web/chunk-msrq7vsz.js.br +0 -0
- package/web/chunk-msrq7vsz.js.gz +0 -0
- package/web/chunk-myhtb5ps.js +2 -0
- package/web/chunk-myhtb5ps.js.br +0 -0
- package/web/chunk-myhtb5ps.js.gz +0 -0
- package/web/chunk-n1n55yt8.js +84 -0
- package/web/chunk-n1n55yt8.js.br +0 -0
- package/web/chunk-n1n55yt8.js.gz +0 -0
- package/web/chunk-nmgy1mrz.js +1 -0
- package/web/chunk-nmgy1mrz.js.br +0 -0
- package/web/chunk-nmgy1mrz.js.gz +0 -0
- package/web/chunk-nmnyaawa.js +24 -0
- package/web/chunk-nmnyaawa.js.br +0 -0
- package/web/chunk-nmnyaawa.js.gz +0 -0
- package/web/chunk-nwepnbvn.js +70 -0
- package/web/chunk-nwepnbvn.js.br +0 -0
- package/web/chunk-nwepnbvn.js.gz +0 -0
- package/web/chunk-p2cmfhpz.js +2 -0
- package/web/chunk-p2cmfhpz.js.br +0 -0
- package/web/chunk-p2cmfhpz.js.gz +0 -0
- package/web/chunk-pac9nyhp.js +2 -0
- package/web/chunk-pac9nyhp.js.br +0 -0
- package/web/chunk-pac9nyhp.js.gz +0 -0
- package/web/chunk-pdt40dj7.js +1 -0
- package/web/chunk-pdt40dj7.js.br +2 -0
- package/web/chunk-pdt40dj7.js.gz +0 -0
- package/web/chunk-phs38wt7.js +2 -0
- package/web/chunk-phs38wt7.js.br +0 -0
- package/web/chunk-phs38wt7.js.gz +0 -0
- package/web/chunk-prc7b9xh.js +1 -0
- package/web/chunk-prc7b9xh.js.br +0 -0
- package/web/chunk-prc7b9xh.js.gz +0 -0
- package/web/chunk-q1e80chw.js +1 -0
- package/web/chunk-q1e80chw.js.br +2 -0
- package/web/chunk-q1e80chw.js.gz +0 -0
- package/web/chunk-q6aqg79d.js +2 -0
- package/web/chunk-q6aqg79d.js.br +0 -0
- package/web/chunk-q6aqg79d.js.gz +0 -0
- package/web/chunk-q6sv3fhe.js +2 -0
- package/web/chunk-q6sv3fhe.js.br +0 -0
- package/web/chunk-q6sv3fhe.js.gz +0 -0
- package/web/chunk-rbd2n2mr.js +1 -0
- package/web/chunk-rbd2n2mr.js.br +0 -0
- package/web/chunk-rbd2n2mr.js.gz +0 -0
- package/web/chunk-rbh0yrp6.js +1 -0
- package/web/chunk-rbh0yrp6.js.br +0 -0
- package/web/chunk-rbh0yrp6.js.gz +0 -0
- package/web/chunk-rdarpbhd.js +2 -0
- package/web/chunk-rdarpbhd.js.br +0 -0
- package/web/chunk-rdarpbhd.js.gz +0 -0
- package/web/chunk-rf93p28v.js +1 -0
- package/web/chunk-rf93p28v.js.br +0 -0
- package/web/chunk-rf93p28v.js.gz +0 -0
- package/web/chunk-rjvdk0s6.js +1 -0
- package/web/chunk-rjvdk0s6.js.br +0 -0
- package/web/chunk-rjvdk0s6.js.gz +0 -0
- package/web/chunk-rvmk483c.js +1 -0
- package/web/chunk-rvmk483c.js.br +0 -0
- package/web/chunk-rvmk483c.js.gz +0 -0
- package/web/chunk-s99vfrrz.js +1 -0
- package/web/chunk-s99vfrrz.js.br +0 -0
- package/web/chunk-s99vfrrz.js.gz +0 -0
- package/web/chunk-saem11tv.js +2 -0
- package/web/chunk-saem11tv.js.br +0 -0
- package/web/chunk-saem11tv.js.gz +0 -0
- package/web/chunk-scv8t4m6.js +1 -0
- package/web/chunk-scv8t4m6.js.br +0 -0
- package/web/chunk-scv8t4m6.js.gz +0 -0
- package/web/chunk-stsmcqxe.js +1 -0
- package/web/chunk-stsmcqxe.js.br +0 -0
- package/web/chunk-stsmcqxe.js.gz +0 -0
- package/web/chunk-svaq7f3c.js +1134 -0
- package/web/chunk-svaq7f3c.js.br +0 -0
- package/web/chunk-svaq7f3c.js.gz +0 -0
- package/web/chunk-sy099zt8.js +1 -0
- package/web/chunk-sy099zt8.js.br +0 -0
- package/web/chunk-sy099zt8.js.gz +0 -0
- package/web/chunk-thqrbjwn.js +1 -0
- package/web/chunk-thqrbjwn.js.br +2 -0
- package/web/chunk-thqrbjwn.js.gz +0 -0
- package/web/chunk-ty1m1k6b.js +1 -0
- package/web/chunk-ty1m1k6b.js.br +0 -0
- package/web/chunk-ty1m1k6b.js.gz +0 -0
- package/web/chunk-w54qcqk3.js +1 -0
- package/web/chunk-w54qcqk3.js.br +0 -0
- package/web/chunk-w54qcqk3.js.gz +0 -0
- package/web/chunk-wgf4paqc.js +1 -0
- package/web/chunk-wgf4paqc.js.br +0 -0
- package/web/chunk-wgf4paqc.js.gz +0 -0
- package/web/chunk-ww5c1dmz.js +1 -0
- package/web/chunk-ww5c1dmz.js.br +0 -0
- package/web/chunk-ww5c1dmz.js.gz +0 -0
- package/web/chunk-x5m7phbb.js +1 -0
- package/web/chunk-x5m7phbb.js.br +0 -0
- package/web/chunk-x5m7phbb.js.gz +0 -0
- package/web/chunk-x9wzj52f.js +2 -0
- package/web/chunk-x9wzj52f.js.br +0 -0
- package/web/chunk-x9wzj52f.js.gz +0 -0
- package/web/chunk-xgfam7bx.js +1 -0
- package/web/chunk-xgfam7bx.js.br +0 -0
- package/web/chunk-xgfam7bx.js.gz +0 -0
- package/web/chunk-xnn07hr4.js +21 -0
- package/web/chunk-xnn07hr4.js.br +0 -0
- package/web/chunk-xnn07hr4.js.gz +0 -0
- package/web/chunk-xreg1e03.js +78 -0
- package/web/chunk-xreg1e03.js.br +0 -0
- package/web/chunk-xreg1e03.js.gz +0 -0
- package/web/chunk-xsxd3wsv.js +4 -0
- package/web/chunk-xsxd3wsv.js.br +0 -0
- package/web/chunk-xsxd3wsv.js.gz +0 -0
- package/web/chunk-y7jebh1j.js +1 -0
- package/web/chunk-y7jebh1j.js.br +0 -0
- package/web/chunk-y7jebh1j.js.gz +0 -0
- package/web/chunk-yhn2mwnb.js +291 -0
- package/web/chunk-yhn2mwnb.js.br +0 -0
- package/web/chunk-yhn2mwnb.js.gz +0 -0
- package/web/chunk-yj85fg74.js +1 -0
- package/web/chunk-yj85fg74.js.br +0 -0
- package/web/chunk-yj85fg74.js.gz +0 -0
- package/web/chunk-yjvjzayn.js +1 -0
- package/web/chunk-yjvjzayn.js.br +0 -0
- package/web/chunk-yjvjzayn.js.gz +0 -0
- package/web/chunk-yqwvedf5.js +370 -0
- package/web/chunk-yqwvedf5.js.br +0 -0
- package/web/chunk-yqwvedf5.js.gz +0 -0
- package/web/chunk-z3tr221x.js +1 -0
- package/web/chunk-z3tr221x.js.br +0 -0
- package/web/chunk-z3tr221x.js.gz +0 -0
- package/web/chunk-z4n3tx0q.js +1 -0
- package/web/chunk-z4n3tx0q.js.br +0 -0
- package/web/chunk-z4n3tx0q.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-09tdbx7b.js +0 -3
- package/chunk-0b2brwjc.js +0 -3
- package/chunk-0rsyawz5.js +0 -8
- package/chunk-16yz5ebn.js +0 -2
- package/chunk-1kdd7xry.js +0 -2
- package/chunk-1td9hjn9.js +0 -25
- package/chunk-1xjkzzyh.js +0 -3
- package/chunk-38932kzp.js +0 -3
- package/chunk-3qxq264t.js +0 -2
- package/chunk-3s8rpc1w.js +0 -3
- package/chunk-4fbj3k59.js +0 -3
- package/chunk-5415fcz7.js +0 -10
- package/chunk-5kezbmgw.js +0 -3
- package/chunk-5m51j40e.js +0 -7
- package/chunk-5mt8xxex.js +0 -3
- package/chunk-5ph58x6w.js +0 -39
- package/chunk-6jdqe7sz.js +0 -4
- package/chunk-6ztgzx9s.js +0 -2
- package/chunk-7dzcdpdt.js +0 -2
- package/chunk-82djd5fk.js +0 -3
- package/chunk-86vhsd3y.js +0 -31
- package/chunk-8rfv9mm1.js +0 -15
- package/chunk-8tvz5ht1.js +0 -16
- package/chunk-9pjmwz01.js +0 -2
- package/chunk-9qzyn98b.js +0 -3
- package/chunk-9w1m9av8.js +0 -11
- package/chunk-9wjd9bxm.js +0 -2
- package/chunk-a3fpx924.js +0 -3
- package/chunk-b49005n2.js +0 -471
- package/chunk-bdz2561d.js +0 -2
- package/chunk-bkvhwgeb.js +0 -3
- package/chunk-bp9tfav3.js +0 -2
- package/chunk-cc9htxzx.js +0 -3557
- package/chunk-cr0tqn6j.js +0 -3
- package/chunk-cv5kdnsw.js +0 -3
- package/chunk-d79s1s4t.js +0 -25
- package/chunk-e0ytnnwt.js +0 -3
- package/chunk-e2m8ap8f.js +0 -3
- package/chunk-ec6bzt7w.js +0 -20
- package/chunk-enmrpjpt.js +0 -3
- package/chunk-eq54cmsa.js +0 -4
- package/chunk-fj56fznw.js +0 -3
- package/chunk-g54nd4fd.js +0 -5
- package/chunk-g8p5c4vx.js +0 -7
- package/chunk-g9bemxpt.js +0 -3
- package/chunk-gs5aebwh.js +0 -2
- package/chunk-hk5p2eee.js +0 -12
- package/chunk-jerp4pj5.js +0 -2
- package/chunk-jsvqp20s.js +0 -2
- package/chunk-k9x1r69s.js +0 -18
- package/chunk-kb526065.js +0 -2
- package/chunk-kpw1qa2n.js +0 -11
- package/chunk-mbvy2t23.js +0 -2
- package/chunk-mmnsdje8.js +0 -390
- package/chunk-nffwakxq.js +0 -2
- package/chunk-nfj8sj53.js +0 -2
- package/chunk-pzwaz2ew.js +0 -5
- package/chunk-qtgc74er.js +0 -5
- package/chunk-qtrd33pp.js +0 -7
- package/chunk-rbk6jxcr.js +0 -2
- package/chunk-rpbxbb92.js +0 -10
- package/chunk-rx812nrp.js +0 -3
- package/chunk-scy1p7x2.js +0 -9
- package/chunk-sfgw0vmt.js +0 -2
- package/chunk-t3mq64c8.js +0 -3
- package/chunk-tmefdwxy.js +0 -2
- package/chunk-tvg54x0x.js +0 -2
- package/chunk-v878x8zr.js +0 -7
- package/chunk-v89f2k9b.js +0 -2
- package/chunk-vhe16b65.js +0 -3
- package/chunk-vzrmdaba.js +0 -2
- package/chunk-w3skxmvx.js +0 -3
- package/chunk-w4kasz4j.js +0 -12
- package/chunk-w4zkgn1c.js +0 -4
- package/chunk-we5emq6f.js +0 -2
- package/chunk-x0dcabw6.js +0 -3
- package/chunk-xtj7b70y.js +0 -5
- package/chunk-xwew53k7.js +0 -59
- package/chunk-xyhr89y5.js +0 -3
- package/chunk-yce46csn.js +0 -2
- package/chunk-yetcb1z9.js +0 -3
- package/chunk-ypmpf75h.js +0 -2
- package/chunk-zkjnt298.js +0 -3
- package/chunk-zz48zvk5.js +0 -2
- package/web/chunk-04c54f1s.js +0 -1
- package/web/chunk-04c54f1s.js.br +0 -2
- package/web/chunk-04c54f1s.js.gz +0 -0
- package/web/chunk-04m1cb8w.js +0 -1
- package/web/chunk-04m1cb8w.js.br +0 -0
- package/web/chunk-04m1cb8w.js.gz +0 -0
- package/web/chunk-08z6mkgz.js +0 -40
- package/web/chunk-08z6mkgz.js.br +0 -0
- package/web/chunk-08z6mkgz.js.gz +0 -0
- package/web/chunk-0g9m3rpw.js +0 -55
- package/web/chunk-0g9m3rpw.js.br +0 -0
- package/web/chunk-0g9m3rpw.js.gz +0 -0
- package/web/chunk-0jccrdw3.js +0 -2
- package/web/chunk-0jccrdw3.js.br +0 -0
- package/web/chunk-0jccrdw3.js.gz +0 -0
- package/web/chunk-0rvx1z2b.js +0 -1
- package/web/chunk-0rvx1z2b.js.br +0 -0
- package/web/chunk-0rvx1z2b.js.gz +0 -0
- package/web/chunk-0vweazdh.js +0 -12
- package/web/chunk-0vweazdh.js.br +0 -0
- package/web/chunk-0vweazdh.js.gz +0 -0
- package/web/chunk-0wqmwnd8.js +0 -2
- package/web/chunk-0wqmwnd8.js.br +0 -0
- package/web/chunk-0wqmwnd8.js.gz +0 -0
- package/web/chunk-0z10aqp1.js +0 -2
- package/web/chunk-0z10aqp1.js.br +0 -0
- package/web/chunk-0z10aqp1.js.gz +0 -0
- package/web/chunk-12vcrj7y.js +0 -1
- package/web/chunk-12vcrj7y.js.br +0 -0
- package/web/chunk-12vcrj7y.js.gz +0 -0
- package/web/chunk-1vtf555r.js +0 -1
- package/web/chunk-1vtf555r.js.br +0 -0
- package/web/chunk-1vtf555r.js.gz +0 -0
- package/web/chunk-29z0ft67.js +0 -370
- package/web/chunk-29z0ft67.js.br +0 -0
- package/web/chunk-29z0ft67.js.gz +0 -0
- package/web/chunk-2q3m4btb.js +0 -1
- package/web/chunk-2q3m4btb.js.br +0 -0
- package/web/chunk-2q3m4btb.js.gz +0 -0
- package/web/chunk-2s6fhjjc.js +0 -1134
- package/web/chunk-2s6fhjjc.js.br +0 -0
- package/web/chunk-2s6fhjjc.js.gz +0 -0
- package/web/chunk-2vdx4ykn.js +0 -139
- package/web/chunk-2vdx4ykn.js.br +0 -0
- package/web/chunk-2vdx4ykn.js.gz +0 -0
- package/web/chunk-2zgqe8r7.js +0 -1
- package/web/chunk-2zgqe8r7.js.br +0 -0
- package/web/chunk-2zgqe8r7.js.gz +0 -0
- package/web/chunk-366a11ec.js +0 -1
- package/web/chunk-366a11ec.js.br +0 -0
- package/web/chunk-366a11ec.js.gz +0 -0
- package/web/chunk-3kqpmg83.js +0 -78
- package/web/chunk-3kqpmg83.js.br +0 -0
- package/web/chunk-3kqpmg83.js.gz +0 -0
- package/web/chunk-3rmqxna0.js +0 -1
- package/web/chunk-3rmqxna0.js.br +0 -0
- package/web/chunk-3rmqxna0.js.gz +0 -0
- package/web/chunk-3xmv2349.js +0 -21
- package/web/chunk-3xmv2349.js.br +0 -0
- package/web/chunk-3xmv2349.js.gz +0 -0
- package/web/chunk-46cdys11.js +0 -34
- package/web/chunk-46cdys11.js.br +0 -0
- package/web/chunk-46cdys11.js.gz +0 -0
- package/web/chunk-46mw23f0.js +0 -8
- package/web/chunk-46mw23f0.js.br +0 -0
- package/web/chunk-46mw23f0.js.gz +0 -0
- package/web/chunk-4mypk63p.js +0 -2
- package/web/chunk-4mypk63p.js.br +0 -0
- package/web/chunk-4mypk63p.js.gz +0 -0
- package/web/chunk-4r0dvjrr.js +0 -2
- package/web/chunk-4r0dvjrr.js.br +0 -0
- package/web/chunk-4r0dvjrr.js.gz +0 -0
- package/web/chunk-4v6m84pg.js +0 -3
- package/web/chunk-4v6m84pg.js.br +0 -0
- package/web/chunk-4v6m84pg.js.gz +0 -0
- package/web/chunk-4wd9r73y.js +0 -1
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-4ye31s2w.js +0 -1
- package/web/chunk-4ye31s2w.js.br +0 -4
- package/web/chunk-4ye31s2w.js.gz +0 -0
- package/web/chunk-52tt9qt4.js +0 -2
- package/web/chunk-52tt9qt4.js.br +0 -0
- package/web/chunk-52tt9qt4.js.gz +0 -0
- package/web/chunk-5cp4n5ck.js +0 -2
- package/web/chunk-5cp4n5ck.js.br +0 -0
- package/web/chunk-5cp4n5ck.js.gz +0 -0
- package/web/chunk-5kavsn22.js +0 -4
- package/web/chunk-5kavsn22.js.br +0 -0
- package/web/chunk-5kavsn22.js.gz +0 -0
- package/web/chunk-5q2h4tg8.js +0 -2
- package/web/chunk-5q2h4tg8.js.br +0 -4
- package/web/chunk-5q2h4tg8.js.gz +0 -0
- package/web/chunk-5tbk6dx6.js +0 -292
- package/web/chunk-5tbk6dx6.js.br +0 -0
- package/web/chunk-5tbk6dx6.js.gz +0 -0
- package/web/chunk-5yb0sm1r.js +0 -1
- package/web/chunk-5yb0sm1r.js.br +0 -0
- package/web/chunk-5yb0sm1r.js.gz +0 -0
- package/web/chunk-5yz46tjw.js +0 -2
- package/web/chunk-5yz46tjw.js.br +0 -0
- package/web/chunk-5yz46tjw.js.gz +0 -0
- package/web/chunk-619a8t38.js +0 -1
- package/web/chunk-619a8t38.js.br +0 -0
- package/web/chunk-619a8t38.js.gz +0 -0
- package/web/chunk-6areryyn.js +0 -2
- package/web/chunk-6areryyn.js.br +0 -0
- package/web/chunk-6areryyn.js.gz +0 -0
- package/web/chunk-6ms78sx5.js +0 -1
- package/web/chunk-6ms78sx5.js.br +0 -0
- package/web/chunk-6ms78sx5.js.gz +0 -0
- package/web/chunk-6ts9mtye.js +0 -2
- package/web/chunk-6ts9mtye.js.br +0 -0
- package/web/chunk-6ts9mtye.js.gz +0 -0
- package/web/chunk-79whhay2.js +0 -2
- package/web/chunk-79whhay2.js.br +0 -0
- package/web/chunk-79whhay2.js.gz +0 -0
- package/web/chunk-7cf1kk45.js +0 -1
- package/web/chunk-7cf1kk45.js.br +0 -2
- package/web/chunk-7cf1kk45.js.gz +0 -0
- package/web/chunk-7n1abr86.js +0 -1
- package/web/chunk-7n1abr86.js.br +0 -0
- package/web/chunk-7n1abr86.js.gz +0 -0
- package/web/chunk-7qxfx983.js +0 -1
- package/web/chunk-7qxfx983.js.br +0 -0
- package/web/chunk-7qxfx983.js.gz +0 -0
- package/web/chunk-89crtpnw.js +0 -1
- package/web/chunk-89crtpnw.js.br +0 -0
- package/web/chunk-89crtpnw.js.gz +0 -0
- package/web/chunk-8g239029.js +0 -1
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/chunk-91k30q92.js +0 -1
- package/web/chunk-91k30q92.js.br +0 -0
- package/web/chunk-91k30q92.js.gz +0 -0
- package/web/chunk-91nyvkrb.js +0 -324
- package/web/chunk-91nyvkrb.js.br +0 -0
- package/web/chunk-91nyvkrb.js.gz +0 -0
- package/web/chunk-9mbr6znb.js +0 -1
- package/web/chunk-9mbr6znb.js.br +0 -0
- package/web/chunk-9mbr6znb.js.gz +0 -0
- package/web/chunk-9mvw6a5v.js +0 -7
- package/web/chunk-9mvw6a5v.js.br +0 -0
- package/web/chunk-9mvw6a5v.js.gz +0 -0
- package/web/chunk-9r7nbre7.js +0 -2
- package/web/chunk-9r7nbre7.js.br +0 -0
- package/web/chunk-9r7nbre7.js.gz +0 -0
- package/web/chunk-9y9nwaqj.js +0 -1
- package/web/chunk-9y9nwaqj.js.br +0 -0
- package/web/chunk-9y9nwaqj.js.gz +0 -0
- package/web/chunk-a6hdn8tb.js +0 -169
- package/web/chunk-a6hdn8tb.js.br +0 -0
- package/web/chunk-a6hdn8tb.js.gz +0 -0
- package/web/chunk-ad6x47yy.js +0 -1
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-ar6m9fza.js +0 -7
- package/web/chunk-ar6m9fza.js.br +0 -0
- package/web/chunk-ar6m9fza.js.gz +0 -0
- package/web/chunk-ayqakyyq.js +0 -1
- package/web/chunk-ayqakyyq.js.br +0 -0
- package/web/chunk-ayqakyyq.js.gz +0 -0
- package/web/chunk-cc6hn5xv.js +0 -2
- package/web/chunk-cc6hn5xv.js.br +0 -0
- package/web/chunk-cc6hn5xv.js.gz +0 -0
- package/web/chunk-ccymg1hp.js +0 -1
- package/web/chunk-ccymg1hp.js.br +0 -0
- package/web/chunk-ccymg1hp.js.gz +0 -0
- package/web/chunk-cg9fe42b.js +0 -89
- package/web/chunk-cg9fe42b.js.br +0 -0
- package/web/chunk-cg9fe42b.js.gz +0 -0
- package/web/chunk-cmcgmf94.js +0 -1
- package/web/chunk-cmcgmf94.js.br +0 -0
- package/web/chunk-cmcgmf94.js.gz +0 -0
- package/web/chunk-cnbbvd6n.js +0 -1
- package/web/chunk-cnbbvd6n.js.br +0 -0
- package/web/chunk-cnbbvd6n.js.gz +0 -0
- package/web/chunk-cxp2nbtc.js +0 -106
- package/web/chunk-cxp2nbtc.js.br +0 -0
- package/web/chunk-cxp2nbtc.js.gz +0 -0
- package/web/chunk-d18r4m14.js +0 -141
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-dj2b64aj.js +0 -1
- package/web/chunk-dj2b64aj.js.br +0 -0
- package/web/chunk-dj2b64aj.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js +0 -1
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.js.gz +0 -0
- package/web/chunk-dsga6rp3.js +0 -1
- package/web/chunk-dsga6rp3.js.br +0 -0
- package/web/chunk-dsga6rp3.js.gz +0 -0
- package/web/chunk-e65y60v1.js +0 -2
- package/web/chunk-e65y60v1.js.br +0 -0
- package/web/chunk-e65y60v1.js.gz +0 -0
- package/web/chunk-ed8qqn45.js +0 -2
- package/web/chunk-ed8qqn45.js.br +0 -0
- package/web/chunk-ed8qqn45.js.gz +0 -0
- package/web/chunk-ef1h0tt7.js +0 -2
- package/web/chunk-ef1h0tt7.js.br +0 -0
- package/web/chunk-ef1h0tt7.js.gz +0 -0
- package/web/chunk-ek6q6a08.js +0 -1
- package/web/chunk-ek6q6a08.js.br +0 -2
- package/web/chunk-ek6q6a08.js.gz +0 -0
- package/web/chunk-et1nm6h1.js +0 -142
- package/web/chunk-et1nm6h1.js.br +0 -0
- package/web/chunk-et1nm6h1.js.gz +0 -0
- package/web/chunk-f1016wh6.js +0 -1
- package/web/chunk-f1016wh6.js.br +0 -0
- package/web/chunk-f1016wh6.js.gz +0 -0
- package/web/chunk-f42mwg61.js +0 -1
- package/web/chunk-f42mwg61.js.br +0 -0
- package/web/chunk-f42mwg61.js.gz +0 -0
- package/web/chunk-fk35d3bz.js +0 -332
- package/web/chunk-fk35d3bz.js.br +0 -0
- package/web/chunk-fk35d3bz.js.gz +0 -0
- package/web/chunk-fpwztdhn.js +0 -39
- package/web/chunk-fpwztdhn.js.br +0 -0
- package/web/chunk-fpwztdhn.js.gz +0 -0
- package/web/chunk-g30nqfka.js +0 -2
- package/web/chunk-g30nqfka.js.br +0 -0
- package/web/chunk-g30nqfka.js.gz +0 -0
- package/web/chunk-g3vbtxgy.js +0 -2
- package/web/chunk-g3vbtxgy.js.br +0 -0
- package/web/chunk-g3vbtxgy.js.gz +0 -0
- package/web/chunk-gbwy4pfg.css +0 -1
- package/web/chunk-gbwy4pfg.css.br +0 -0
- package/web/chunk-gbwy4pfg.css.gz +0 -0
- package/web/chunk-gepgx19m.js +0 -200
- package/web/chunk-gepgx19m.js.br +0 -0
- package/web/chunk-gepgx19m.js.gz +0 -0
- package/web/chunk-grz69q28.js +0 -36
- package/web/chunk-grz69q28.js.br +0 -0
- package/web/chunk-grz69q28.js.gz +0 -0
- package/web/chunk-gt62acsh.js +0 -2
- package/web/chunk-gt62acsh.js.br +0 -0
- package/web/chunk-gt62acsh.js.gz +0 -0
- package/web/chunk-h28xrvmg.js +0 -41
- package/web/chunk-h28xrvmg.js.br +0 -0
- package/web/chunk-h28xrvmg.js.gz +0 -0
- package/web/chunk-h80ypke7.js +0 -2
- package/web/chunk-h80ypke7.js.br +0 -0
- package/web/chunk-h80ypke7.js.gz +0 -0
- package/web/chunk-hj067dfg.js +0 -1
- package/web/chunk-hj067dfg.js.br +0 -2
- package/web/chunk-hj067dfg.js.gz +0 -0
- package/web/chunk-hp167dbv.js +0 -1
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/chunk-j4942vkb.js +0 -1
- package/web/chunk-j4942vkb.js.br +0 -0
- package/web/chunk-j4942vkb.js.gz +0 -0
- package/web/chunk-k1cd6e24.js +0 -1
- package/web/chunk-k1cd6e24.js.br +0 -0
- package/web/chunk-k1cd6e24.js.gz +0 -0
- package/web/chunk-k1d0y72z.js +0 -2
- package/web/chunk-k1d0y72z.js.br +0 -0
- package/web/chunk-k1d0y72z.js.gz +0 -0
- package/web/chunk-k9248573.js +0 -1
- package/web/chunk-k9248573.js.br +0 -0
- package/web/chunk-k9248573.js.gz +0 -0
- package/web/chunk-kh0xyffx.js +0 -1
- package/web/chunk-kh0xyffx.js.br +0 -0
- package/web/chunk-kh0xyffx.js.gz +0 -0
- package/web/chunk-kqgn9dsa.js +0 -7
- package/web/chunk-kqgn9dsa.js.br +0 -0
- package/web/chunk-kqgn9dsa.js.gz +0 -0
- package/web/chunk-kqngpw5m.js +0 -1
- package/web/chunk-kqngpw5m.js.br +0 -0
- package/web/chunk-kqngpw5m.js.gz +0 -0
- package/web/chunk-ktvxgxsd.js +0 -2
- package/web/chunk-ktvxgxsd.js.br +0 -0
- package/web/chunk-ktvxgxsd.js.gz +0 -0
- package/web/chunk-kzj105r1.js +0 -217
- package/web/chunk-kzj105r1.js.br +0 -0
- package/web/chunk-kzj105r1.js.gz +0 -0
- package/web/chunk-m14v2en1.js +0 -1
- package/web/chunk-m14v2en1.js.br +0 -0
- package/web/chunk-m14v2en1.js.gz +0 -0
- package/web/chunk-m34et8g4.js +0 -2
- package/web/chunk-m34et8g4.js.br +0 -0
- package/web/chunk-m34et8g4.js.gz +0 -0
- package/web/chunk-md1f6gmk.js +0 -1
- package/web/chunk-md1f6gmk.js.br +0 -0
- package/web/chunk-md1f6gmk.js.gz +0 -0
- package/web/chunk-n05xf20n.js +0 -98
- package/web/chunk-n05xf20n.js.br +0 -0
- package/web/chunk-n05xf20n.js.gz +0 -0
- package/web/chunk-n2k1gd6n.js +0 -84
- package/web/chunk-n2k1gd6n.js.br +0 -0
- package/web/chunk-n2k1gd6n.js.gz +0 -0
- package/web/chunk-n419cees.js +0 -1
- package/web/chunk-n419cees.js.br +0 -0
- package/web/chunk-n419cees.js.gz +0 -0
- package/web/chunk-n45fgfyt.js +0 -1
- package/web/chunk-n45fgfyt.js.br +0 -2
- package/web/chunk-n45fgfyt.js.gz +0 -0
- package/web/chunk-n5v71fas.js +0 -2
- package/web/chunk-n5v71fas.js.br +0 -0
- package/web/chunk-n5v71fas.js.gz +0 -0
- package/web/chunk-nm8yza3v.js +0 -140
- package/web/chunk-nm8yza3v.js.br +0 -0
- package/web/chunk-nm8yza3v.js.gz +0 -0
- package/web/chunk-nzey7cpv.js +0 -1
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/chunk-p76f6cf4.js +0 -2
- package/web/chunk-p76f6cf4.js.br +0 -0
- package/web/chunk-p76f6cf4.js.gz +0 -0
- package/web/chunk-pbg9rdwv.js +0 -1
- package/web/chunk-pbg9rdwv.js.br +0 -2
- package/web/chunk-pbg9rdwv.js.gz +0 -0
- package/web/chunk-qgtqwmkb.js +0 -1
- package/web/chunk-qgtqwmkb.js.br +0 -2
- package/web/chunk-qgtqwmkb.js.gz +0 -0
- package/web/chunk-qj9nd038.js +0 -1
- package/web/chunk-qj9nd038.js.br +0 -0
- package/web/chunk-qj9nd038.js.gz +0 -0
- package/web/chunk-qjaex9c0.js +0 -1
- package/web/chunk-qjaex9c0.js.br +0 -2
- package/web/chunk-qjaex9c0.js.gz +0 -0
- package/web/chunk-qq79vsm8.js +0 -70
- package/web/chunk-qq79vsm8.js.br +0 -0
- package/web/chunk-qq79vsm8.js.gz +0 -0
- package/web/chunk-qs5wnwd6.js +0 -30
- package/web/chunk-qs5wnwd6.js.br +0 -0
- package/web/chunk-qs5wnwd6.js.gz +0 -0
- package/web/chunk-qygjhm63.js +0 -1
- package/web/chunk-qygjhm63.js.br +0 -0
- package/web/chunk-qygjhm63.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js +0 -1
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r381n550.js +0 -1
- package/web/chunk-r381n550.js.br +0 -0
- package/web/chunk-r381n550.js.gz +0 -0
- package/web/chunk-r48vazdm.js +0 -291
- package/web/chunk-r48vazdm.js.br +0 -0
- package/web/chunk-r48vazdm.js.gz +0 -0
- package/web/chunk-r55seq42.js +0 -24
- package/web/chunk-r55seq42.js.br +0 -0
- package/web/chunk-r55seq42.js.gz +0 -0
- package/web/chunk-r5eakmw6.js +0 -1
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-r79zekav.js +0 -1
- package/web/chunk-r79zekav.js.br +0 -0
- package/web/chunk-r79zekav.js.gz +0 -0
- package/web/chunk-r8qyvcks.js +0 -89
- package/web/chunk-r8qyvcks.js.br +0 -0
- package/web/chunk-r8qyvcks.js.gz +0 -0
- package/web/chunk-r9dt0730.js +0 -1
- package/web/chunk-r9dt0730.js.br +0 -0
- package/web/chunk-r9dt0730.js.gz +0 -0
- package/web/chunk-rfsg5rke.js +0 -1
- package/web/chunk-rfsg5rke.js.br +0 -2
- package/web/chunk-rfsg5rke.js.gz +0 -0
- package/web/chunk-rpjzwknn.js +0 -1
- package/web/chunk-rpjzwknn.js.br +0 -0
- package/web/chunk-rpjzwknn.js.gz +0 -0
- package/web/chunk-s7h50avx.js +0 -2
- package/web/chunk-s7h50avx.js.br +0 -0
- package/web/chunk-s7h50avx.js.gz +0 -0
- package/web/chunk-sk3065js.js +0 -62
- package/web/chunk-sk3065js.js.br +0 -0
- package/web/chunk-sk3065js.js.gz +0 -0
- package/web/chunk-sk47kk5j.js +0 -1
- package/web/chunk-sk47kk5j.js.br +0 -0
- package/web/chunk-sk47kk5j.js.gz +0 -0
- package/web/chunk-smywa1zw.js +0 -2
- package/web/chunk-smywa1zw.js.br +0 -0
- package/web/chunk-smywa1zw.js.gz +0 -0
- package/web/chunk-t6agpn2z.js +0 -1
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/chunk-t9heac9a.js +0 -2
- package/web/chunk-t9heac9a.js.br +0 -0
- package/web/chunk-t9heac9a.js.gz +0 -0
- package/web/chunk-trssyq9a.js +0 -1
- package/web/chunk-trssyq9a.js.br +0 -0
- package/web/chunk-trssyq9a.js.gz +0 -0
- package/web/chunk-v329f8df.js +0 -24
- package/web/chunk-v329f8df.js.br +0 -0
- package/web/chunk-v329f8df.js.gz +0 -0
- package/web/chunk-vb2feptd.js +0 -2
- package/web/chunk-vb2feptd.js.br +0 -0
- package/web/chunk-vb2feptd.js.gz +0 -0
- package/web/chunk-vff33vj3.js +0 -1
- package/web/chunk-vff33vj3.js.br +0 -2
- package/web/chunk-vff33vj3.js.gz +0 -0
- package/web/chunk-w9adyaze.js +0 -16
- package/web/chunk-w9adyaze.js.br +0 -0
- package/web/chunk-w9adyaze.js.gz +0 -0
- package/web/chunk-wgc8z5jv.js +0 -1
- package/web/chunk-wgc8z5jv.js.br +0 -0
- package/web/chunk-wgc8z5jv.js.gz +0 -0
- package/web/chunk-wvdk3w03.js +0 -2
- package/web/chunk-wvdk3w03.js.br +0 -0
- package/web/chunk-wvdk3w03.js.gz +0 -0
- package/web/chunk-wvvrdqgb.js +0 -1
- package/web/chunk-wvvrdqgb.js.br +0 -2
- package/web/chunk-wvvrdqgb.js.gz +0 -0
- package/web/chunk-wxmaw4ht.js +0 -1
- package/web/chunk-wxmaw4ht.js.br +0 -0
- package/web/chunk-wxmaw4ht.js.gz +0 -0
- package/web/chunk-x19jdqnt.js +0 -38
- package/web/chunk-x19jdqnt.js.br +0 -0
- package/web/chunk-x19jdqnt.js.gz +0 -0
- package/web/chunk-x4153gx3.js +0 -214
- package/web/chunk-x4153gx3.js.br +0 -0
- package/web/chunk-x4153gx3.js.gz +0 -0
- package/web/chunk-x7wmb5d3.js +0 -4
- package/web/chunk-x7wmb5d3.js.br +0 -0
- package/web/chunk-x7wmb5d3.js.gz +0 -0
- package/web/chunk-xp2zpmpp.js +0 -303
- package/web/chunk-xp2zpmpp.js.br +0 -0
- package/web/chunk-xp2zpmpp.js.gz +0 -0
- package/web/chunk-xp9tdb5t.js +0 -1
- package/web/chunk-xp9tdb5t.js.br +0 -2
- package/web/chunk-xp9tdb5t.js.gz +0 -0
- package/web/chunk-y09v3sz7.js +0 -1
- package/web/chunk-y09v3sz7.js.br +0 -0
- package/web/chunk-y09v3sz7.js.gz +0 -0
- package/web/chunk-y10hsdq4.js +0 -1
- package/web/chunk-y10hsdq4.js.br +0 -0
- package/web/chunk-y10hsdq4.js.gz +0 -0
- package/web/chunk-ywmsxe5z.js +0 -99
- package/web/chunk-ywmsxe5z.js.br +0 -0
- package/web/chunk-ywmsxe5z.js.gz +0 -0
- package/web/chunk-yzyxa823.js +0 -2
- package/web/chunk-yzyxa823.js.br +0 -0
- package/web/chunk-yzyxa823.js.gz +0 -0
- package/web/chunk-z09emmrb.js +0 -1
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-zwx48gb8.js +0 -120
- package/web/chunk-zwx48gb8.js.br +0 -0
- package/web/chunk-zwx48gb8.js.gz +0 -0
package/web/chunk-rpjzwknn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ke,v,o,ee,_,i,r,er,ie,et,$n,ua,Qa,wl,kl,p,e,n,de,H,d,Cl,Sl,Ja,Wt,Zs,Tl,El,s,Gt,nr,le,Bn,ar,xt,Z,ge,Nt,Sn,fr,hr,ma,Fn,_t,pt,$e,fa,gr,ha,ga,nt,we,Mt,ye,Be,zn,mt,Un,ya,pe,oe,rt,va,ve,Ae,pn,Se,jr,is,w,os,l,je,x,V,te,xr,Yt,ue,wt,st,Ne,Me,Re,qe,se,z,Ot,Vr,Js,Zt,Qe,en,ke,or,lt,ii,ft,xa,Bi,ne,W,us,kt,Fi,ds,ps,Wr,ms,oi,si,Xt,zi,hs,gs,Ml,tn,li,Pl,ys,Gr,Ui}from"./chunk-2s6fhjjc.js";var yn=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],gt=s("bell",yn);var Nn=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vt=s("chevron-left",Nn);var wn=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],bt=s("cloud",wn);var kn=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],ht=s("hard-drive",kn);var Cn=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Ge=s("network",Cn);var Tn=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Fe=s("save",Tn);var Pn=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],yt=s("shield-off",Pn);var Mn=[{value:"system",label:"跟随系统",icon:e(gr,{})},{value:"light",label:"浅色",icon:e(ya,{})},{value:"dark",label:"深色",icon:e(ha,{})}];function St(){let t=w(),a=os(),m=kl();return n(ne,{title:"外观",description:"仅保存在当前浏览器本地",children:[e(W,{title:"主题模式",description:"切换浅色、深色或跟随系统外观",children:e(zi,{value:t.preference,onChange:jr,options:Mn})}),e(W,{title:"主题风格",description:"选择宿主默认或由已启用插件提供的视觉主题",children:e(Xt,{value:t.themeID,onValueChange:is,groups:[{options:a.map((c)=>({value:c.id,label:c.label,description:c.description}))}],className:"w-48"})}),m.canInstall&&e(W,{title:"桌面应用",description:"将 Basalt 安装为独立窗口应用,可从桌面或任务栏直接启动",children:n(x,{size:"sm",onClick:()=>m.install().catch((c)=>z(c,"安装应用失败")),children:[e(ma,{className:"size-3.5"}),"安装应用"]})})]})}function Ct(){let t=ie(ua),[a,m]=r(Qa),[c,y]=r(!1),C=i(!1);o(()=>{C.current=!0;let k=()=>m(Qa());return window.addEventListener("focus",k),document.addEventListener("visibilitychange",k),()=>{C.current=!1,window.removeEventListener("focus",k),document.removeEventListener("visibilitychange",k)}},[]);let B=async(k)=>{y(!0);try{let T=await wl(k);if(C.current)m(T)}catch(T){if(C.current)z(T,"无法更新系统通知")}finally{if(C.current)y(!1)}};return e(ne,{title:"系统通知",description:"页面保持打开时生效;开关仅保存在当前浏览器",children:e(W,{title:"完成与错误提醒",description:a==="unsupported"?"当前浏览器或访问方式不支持系统通知,请使用支持通知的浏览器,并通过 HTTPS 或 localhost 访问":a==="denied"?"浏览器已阻止通知,请在网站设置中允许通知,回到此页后再开启":t&&a==="granted"?"模型工作完成或运行出错时发送;点击通知可回到对应会话":"开启后在模型工作完成或运行出错时发送;首次开启需要浏览器授权",children:e(kt,{label:"模型工作完成或出错时发送系统通知",checked:t&&a==="granted",disabled:c||a==="unsupported",onCheckedChange:(k)=>void B(k)})})})}function Tt(t){let a=ie(t.conn.state),m=Ui[a.status];return e(ne,{title:"已保存的服务器连接",description:"保存在当前浏览器中的服务器地址与设备凭证",action:n(x,{size:"sm",onClick:t.onAddServer,children:[e(we,{className:"size-3.5"}),"添加服务器"]}),children:t.servers.map((c)=>{let y=c.id===t.server.id;return e(W,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:"truncate",children:$n(c)}),y&&n("span",{className:"inline-flex items-center gap-1.5 font-normal text-xs text-dim",children:[e("span",{className:d("size-1.5 rounded-full",m.dot)}),m.label]})]}),description:e("span",{className:"font-mono",children:c.url}),children:y?n(x,{size:"sm",variant:"danger-ghost",onClick:t.onRemoveServer,children:[e(pe,{className:"size-3.5"}),"移除"]}):e(x,{size:"sm",onClick:()=>t.onServer(c.id),children:"切换"})},c.id)})})}function Pt(){return n(p,{children:[n(ne,{title:"全局",description:"当前浏览器前端快捷键",children:[e(W,{title:"搜索与命令面板",description:"快速跳转会话、项目或执行常用操作",children:e(je,{children:"mod+k"})}),e(W,{title:"收起 / 展开侧栏",description:"在完整侧栏与窄图标栏之间切换",children:e(je,{children:"alt+1"})}),e(W,{title:"新建聊天",description:"立即回到新会话输入页",children:e(je,{children:"mod+shift+o"})})]}),n(ne,{title:"对话输入",children:[e(W,{title:"发送消息",children:e(je,{children:"Enter"})}),e(W,{title:"换行",children:e(je,{children:"Shift+Enter"})})]})]})}var Rt=["B","KB","MB","GB","TB"];function j(t){let a=t,m=0;while(a>=1024&&m<Rt.length-1)a/=1024,m++;let c=m===0?0:a>=100?0:a>=10?1:2;return`${a.toFixed(c)} ${Rt[m]}`}function zt({conn:t,server:a}){w();let m=a?.id??t.server.id,c=ie(tn(m)),[y,C]=r(!1),[B,D]=r();o(()=>{let T=new AbortController;return t.request("/api/search/settings",{signal:T.signal}).then((g)=>{if(!T.signal.aborted)tn(m).set(g.status)}).catch(()=>{if(!T.signal.aborted)D("无法读取历史搜索设置,请重新打开设置重试")}),()=>T.abort()},[t,m]);async function k(){if(y)return;C(!0),D(void 0);try{let T=await t.request("/api/search/rebuild",{method:"POST"});tn(m).set(T)}catch(T){D(T instanceof Error?T.message:"无法重建历史搜索索引,请重试")}finally{C(!1)}}return n(ne,{title:"历史搜索",children:[e(W,{title:"搜索索引",description:n("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5",children:[e(li,{status:c,showEnable:!1,className:"py-0 shrink-0"}),c&&n("span",{children:["体积 ",j(c.bytes)," / 预算 ",j(c.budget)]})]}),children:e(x,{disabled:y||!c||c.state==="rebuilding",loading:y,onClick:()=>{k().catch(()=>{return})},children:"重建索引"})}),c?.state==="rebuilding"&&e("div",{className:l("surface.subtle","space-y-3 border-line bg-raised/30 p-3.5"),children:n("div",{className:"flex items-center justify-between text-xs text-dim",children:[e("span",{children:"正在重建索引…"}),e("code",{className:l("markdown.inlineCode"),children:c.total>0?`${Math.round(c.indexed/c.total*100)}%`:"0%"})]})}),B&&e("p",{role:"alert",className:"p-4 text-sm text-danger",children:B})]})}var Je=new WeakMap,Rn={assistant:"bg-accent",tool:"bg-warning",user:"bg-success",run:"bg-ink/50",compaction:"bg-danger",notice:"bg-dim",notice_pending:"bg-faint"};function Te(t){return e("span",{className:d("font-mono text-xs tabular-nums text-dim",t.className),children:t.children})}function Bt(t){return e(W,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{children:t.title}),t.subtitle&&e("span",{className:"font-mono text-[11px] font-normal text-faint",children:t.subtitle})]}),description:e("span",{className:"font-mono break-all text-dim",children:t.path}),children:e(Ot,{text:t.path,label:"复制路径",size:"icon-sm"})})}function Ye(t){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:d("h-full rounded-full transition-all duration-300",t.colorClass??"bg-accent"),style:{width:`${Math.max(t.percent>0?1:0,t.percent)}%`}})})}function Xe(t,a){if(a<=0||t<=0)return"0%";let m=t/a*100;if(m<0.1)return"<0.1%";let c=m>=10?1:2;return`${m.toFixed(c)}%`}function Dt(t){if(!t)return"—";return new Date(t).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function It(t){return t.database.size+t.database.walSize+t.database.shmSize}function Dn(t){let{table:a,totalDbBytes:m}=t,c=a.bytes??0,y=m>0?Math.min(100,c/m*100):0;return n("div",{className:"space-y-1",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2",children:[e("code",{className:l("markdown.inlineCode"),children:a.name}),a.withoutRowid&&e("span",{className:l("control.badge","border border-line bg-raised/40 px-2 py-0.5 text-xs"),children:"WITHOUT ROWID"}),a.indexes!==void 0&&a.indexes>0&&n("span",{className:"rounded-md bg-raised/50 px-1.5 py-0.5 font-mono text-[10.5px] text-faint",children:[a.indexes," 索引"]}),a.pages!==void 0&&n("span",{className:"font-mono text-[11px] text-faint tabular-nums",children:[a.pages.toLocaleString()," 页"]})]}),n("div",{className:"flex shrink-0 items-center gap-3 font-mono tabular-nums",children:[n("span",{className:"text-ink",children:[a.rows.toLocaleString()," 行"]}),a.bytes!==void 0&&n("span",{className:"text-dim",children:[j(c)," ",n("span",{className:"text-[11px] text-faint",children:["(",Xe(c,m),")"]})]})]})]}),a.bytes!==void 0&&m>0&&e(Ye,{percent:y})]})}function Et(t){w();let[a,m]=r(()=>Je.get(t.conn)),[c,y]=r(),[C,B]=r(!1),[D,k]=r(!0),[T,g]=r(!0),[M,P]=r(!1),I=v(async()=>{B(!0);try{let f=await t.conn.storage();if(Je.set(t.conn,f),m(f),f.search)tn(t.server?.id??t.conn.server.id).set(f.search);y(void 0)}catch(f){y(rt(f))}finally{B(!1)}},[t.conn,t.server?.id]);o(()=>{I()},[I]);async function O(){if(!a)return;let f=T?a.database.reclaimableBytes:0,K=D||T?a.database.walSize:0,q=f+K,J=[];if(T)J.push("VACUUM 数据库");if(D)J.push("截断 WAL");if(!await Qe({title:"确认清理数据库?",description:`将${J.join("并")},预计回收 ${j(q)}。不会删除会话、消息或设备。大库上 VACUUM 可能要几秒,期间写入会等待。`,action:"开始清理"}))return;P(!0);try{let Q=await t.conn.compactStorage({checkpoint:D,vacuum:T}),ae=It(Q.before),Ce=It(Q.after),ze=Math.max(0,ae-Ce);Je.set(t.conn,Q.after),m(Q.after);let Le=ze>0?"清理完成":"清理完成,没有可回收的空间";se.success(Le,{description:`数据库 ${j(ae)} → ${j(Ce)}`})}catch(Q){z(Q,"清理失败")}finally{P(!1)}}let A=n(x,{size:"sm",variant:"ghost",onClick:()=>void I(),loading:C,children:[e(ye,{className:"size-3.5"}),"刷新"]});if(!a)return e(ne,{title:"数据库",action:A,children:e(W,{title:c?"无法读取数据库信息":"正在读取数据库信息…",description:c})});let{database:u,analytics:h}=a,G=u.size+u.walSize+u.shmSize,S=Math.max(0,u.size-u.reclaimableBytes),R=u.reclaimableBytes+u.walSize,L=u.pageCount>0?(u.pageCount-u.freelistCount)/u.pageCount*100:100,N=!u.integrity||u.integrity.toLowerCase()==="ok",E=!D&&!T,U=[...a.tables].sort((f,K)=>(K.bytes??0)-(f.bytes??0)||K.rows-f.rows),b=(h?.totalBodyBytes??0)+(h?.totalRawBytes??0),F=(h?.mainSessionCount??0)+(h?.subSessionCount??0);return n(p,{children:[n(ne,{title:"存储总览",action:A,unboxed:!0,children:[n("div",{className:"auto-grid gap-3",children:[n("div",{className:"rounded-2xl border border-line bg-panel p-4",children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{className:"truncate",children:"数据库占用"}),e(hr,{className:"size-3.5 shrink-0"})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tabular-nums text-ink",children:j(G)}),n("div",{className:"mt-1 font-mono text-[11px] text-dim",children:["主库 ",j(u.size)," · WAL ",j(u.walSize)]})]}),n("div",{className:"rounded-2xl border border-line bg-panel p-4",children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{className:"truncate",children:"数据目录"}),e(ht,{className:"size-3.5 shrink-0"})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tabular-nums text-ink",children:j(a.dataBytes)}),n("div",{className:"mt-1 text-[11px] text-dim",children:["共 ",a.entries.length," 项"]})]}),n("div",{className:"rounded-2xl border border-line bg-panel p-4",children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{className:"truncate",children:"可回收空间"}),e(Bn,{className:"size-3.5 shrink-0"})]}),e("div",{className:"mt-1.5 font-mono text-xl font-semibold tabular-nums text-ink",children:j(R)}),n("div",{className:"mt-1 font-mono text-[11px] text-dim",children:["利用率 ",L.toFixed(1),"% · ",u.freelistCount," 空页"]})]}),n("div",{className:"rounded-2xl border border-line bg-panel p-4",children:[n("div",{className:"flex items-center justify-between gap-2 text-xs text-faint",children:[e("span",{className:"truncate",children:"完整性"}),e(Un,{className:"size-3.5 shrink-0"})]}),e("div",{className:"mt-1.5 flex items-center gap-2",children:e(st,{tone:N?"success":"danger",children:N?"正常 (OK)":"异常"})}),n("div",{className:"mt-1.5 font-mono text-[11px] text-dim",children:["SQLite ",u.sqliteVersion??"3.x"," · v",u.schemaVersion]})]})]}),G>0&&n("div",{className:"rounded-2xl border border-line bg-panel p-4",children:[n("div",{className:"mb-2 flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"font-medium text-ink",children:"物理构成"}),n("span",{className:"font-mono text-faint tabular-nums",children:[u.pageCount.toLocaleString()," 页 × ",j(u.pageSize)]})]}),n("div",{className:"flex h-2.5 w-full overflow-hidden rounded-full bg-raised gap-0.5",children:[S>0&&e("div",{className:"h-full bg-accent transition-all duration-300",style:{width:`${S/G*100}%`},title:`数据页: ${j(S)}`}),u.reclaimableBytes>0&&e("div",{className:"h-full bg-warning transition-all duration-300",style:{width:`${u.reclaimableBytes/G*100}%`},title:`空闲页: ${j(u.reclaimableBytes)}`}),u.walSize>0&&e("div",{className:"h-full bg-ink/40 transition-all duration-300",style:{width:`${u.walSize/G*100}%`},title:`WAL: ${j(u.walSize)}`}),u.shmSize>0&&e("div",{className:"h-full bg-faint transition-all duration-300",style:{width:`${u.shmSize/G*100}%`},title:`SHM: ${j(u.shmSize)}`})]}),n("div",{className:"mt-2.5 flex flex-wrap items-center gap-x-5 gap-y-1.5 text-xs text-dim",children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"数据页 ",e(Te,{children:j(S)})]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-warning"}),"空闲页 ",e(Te,{children:j(u.reclaimableBytes)})]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-ink/40"}),"WAL ",e(Te,{children:j(u.walSize)})]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-faint"}),"SHM ",e(Te,{children:j(u.shmSize)})]})]})]})]}),n(ne,{title:"存储路径",children:[e(Bt,{title:"主数据库",subtitle:u.lastModified?ft(u.lastModified):void 0,path:a.databasePath}),e(Bt,{title:"数据目录",path:a.dataDir})]}),e(zt,{conn:t.conn,server:t.server}),h&&n(ne,{title:"会话与日志",children:[e(W,{title:"会话统计",description:`${h.projectCount} 个项目 · ${F.toLocaleString()} 个会话`,children:n("div",{className:"flex flex-wrap items-center gap-1.5 font-mono text-xs",children:[n("span",{className:"rounded-md bg-raised px-2 py-0.5 text-ink",children:["主会话 ",h.mainSessionCount.toLocaleString()]}),n("span",{className:"rounded-md bg-raised px-2 py-0.5 text-dim",children:["子代理 ",h.subSessionCount.toLocaleString()]}),h.forkedSessionCount>0&&n("span",{className:"rounded-md bg-raised px-2 py-0.5 text-dim",children:["分叉 ",h.forkedSessionCount.toLocaleString()]}),h.automationSessionCount>0&&n("span",{className:"rounded-md bg-raised px-2 py-0.5 text-dim",children:["自动化 ",h.automationSessionCount.toLocaleString()]})]})}),e(W,{title:"日志载荷",children:e(Te,{children:`body ${j(h.totalBodyBytes)} · raw ${j(h.totalRawBytes)}`})}),e(W,{title:"日志记录",description:h.oldestEntryTime?`${Dt(h.oldestEntryTime)} — ${Dt(h.newestEntryTime)}`:void 0,children:e(Te,{children:`${h.totalEntries.toLocaleString()} 条${h.compactionCount>0?` · ${h.compactionCount} 次压缩`:""}`})}),h.entryTypes.length>0&&n("div",{className:"p-4",children:[n("div",{className:"mb-3 flex items-center justify-between text-xs",children:[e("span",{className:"font-medium text-ink",children:"日志类型分布"}),e("span",{className:"font-mono text-faint",children:j(b)})]}),e("div",{className:"space-y-2.5",children:h.entryTypes.map((f)=>{let K=f.bodyBytes+f.rawBytes,q=Rn[f.type]??"bg-dim",J=b>0?Math.min(100,K/b*100):0,X=f.count>0?Math.round(K/f.count):0;return n("div",{className:"space-y-1",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex items-center gap-2",children:[e("span",{className:d("size-2 rounded-full",q)}),e("span",{className:"font-mono font-medium text-ink",children:f.type}),n("span",{className:"font-mono text-[11px] text-faint",children:[j(X),"/条"]})]}),n("div",{className:"flex items-center gap-3 font-mono tabular-nums",children:[n("span",{className:"text-ink",children:[f.count.toLocaleString()," 条"]}),n("span",{className:"text-dim",children:[j(K)," ",n("span",{className:"text-[11px] text-faint",children:["(",Xe(K,b),")"]})]})]})]}),e(Ye,{percent:J,colorClass:q})]},f.type)})})]})]}),e(ne,{title:"数据表",children:e("div",{className:"p-4 space-y-2.5",children:U.map((f)=>e(Dn,{table:f,totalDbBytes:u.size},f.name))})}),h&&h.pluginNamespaces.length>0&&e(ne,{title:"插件存储",children:e("div",{className:"grid grid-cols-1 gap-x-10 gap-y-2.5 p-4 md:grid-cols-2",children:h.pluginNamespaces.map((f)=>n("div",{className:"flex items-center justify-between gap-3 text-xs",children:[n("span",{className:"flex min-w-0 items-center gap-2",children:[e(nr,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono font-medium text-ink",children:f.namespace}),f.migrationVersion!==void 0&&n("span",{className:"rounded bg-raised px-1.5 py-0.5 font-mono text-[10.5px] font-normal text-faint",children:["v",f.migrationVersion]})]}),n("div",{className:"flex shrink-0 items-center gap-3 font-mono tabular-nums text-xs",children:[n("span",{className:f.keys>0?"text-dim":"text-faint/50",children:[f.keys," 键"]}),e("span",{className:f.bytes>0?"font-medium text-ink":"text-faint/50",children:j(f.bytes)})]})]},f.namespace))})}),e(ne,{title:"引擎参数 (PRAGMA)",children:e("div",{className:"grid grid-cols-1 gap-x-10 gap-y-2.5 p-4 text-xs md:grid-cols-2",children:[{label:"内核版本",value:`SQLite ${u.sqliteVersion??"3.x"}`},{label:"忙锁超时",value:`${u.busyTimeout??5000}ms`},{label:"字符编码",value:u.encoding??"UTF-8"},{label:"单页大小",value:j(u.pageSize)},{label:"Schema 版本",value:`v${u.schemaVersion}`},{label:"总页数",value:`${u.pageCount.toLocaleString()} 页`},{label:"日志模式",value:u.journalMode.toUpperCase()},{label:"页缓存",value:u.cacheSizeBytes?j(u.cacheSizeBytes):"默认"},{label:"同步级别",value:u.synchronous??"FULL"},{label:"空闲页",value:`${u.freelistCount.toLocaleString()} 页 (${j(u.reclaimableBytes)})`},{label:"外键约束",value:u.foreignKeys!==!1?"ON":"OFF"},{label:"自动清理",value:u.autoVacuum??"NONE"}].map((f)=>n("div",{className:"flex items-center justify-between gap-3",children:[e("span",{className:"text-dim",children:f.label}),e(Te,{className:"text-ink",children:f.value})]},f.label))})}),e(ne,{title:"数据目录明细",children:n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"mb-3 flex items-center justify-between text-xs",children:[e("span",{className:"font-mono text-dim break-all",children:a.dataDir}),n("div",{className:"flex shrink-0 items-center gap-3 font-mono text-xs",children:[n("span",{className:"text-dim",children:["共 ",a.entries.length," 项"]}),e("span",{className:"font-medium text-ink",children:j(a.dataBytes)})]})]}),a.entries.map((f)=>{let K=a.dataBytes>0?f.bytes/a.dataBytes*100:0;return n("div",{className:"space-y-1",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2",children:[f.kind==="directory"?e(pt,{className:"size-3.5 shrink-0 text-accent"}):e(_t,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"font-mono font-medium text-ink",children:f.name}),n("span",{className:"font-mono text-[11px] text-faint",children:[f.kind==="directory"?`目录${f.files!==void 0?` · ${f.files.toLocaleString()} 个文件`:""}`:"文件",f.modified?` · ${ft(f.modified)}`:""]})]}),e("div",{className:"flex shrink-0 items-center gap-3 font-mono tabular-nums text-xs",children:n("span",{className:"text-dim",children:[j(f.bytes)," ",n("span",{className:"text-[11px] text-faint",children:["(",Xe(f.bytes,a.dataBytes),")"]})]})})]}),a.dataBytes>0&&e(Ye,{percent:K})]},f.name)})]})}),n(ne,{title:"空间维护",children:[e(W,{title:"VACUUM 整理",description:`可回收 ${j(u.reclaimableBytes)}`,children:e(kt,{checked:T,onCheckedChange:g,label:"VACUUM 数据库",disabled:M})}),e(W,{title:"截断 WAL",description:`当前 ${j(u.walSize)}`,children:e(kt,{checked:D,onCheckedChange:k,label:"截断 WAL",disabled:M})}),e(W,{title:"执行清理",description:E?"请至少开启一项":`预计释放 ${j((T?u.reclaimableBytes:0)+(D||T?u.walSize:0))}`,children:e(x,{variant:"primary",size:"sm",onClick:()=>void O(),loading:M,disabled:E,children:"清理…"})})]})]})}var In=2000;function At(t){let a=ie(t.state),[m,c]=r(void 0),[y,C]=r(!1),[B,D]=r("idle"),[k,T]=r(void 0),[g,M]=r(""),P=i(!1),I=i(void 0),O=i(void 0),A=i(0),u=i(!1),h=v((N)=>{let E=P.current&&!N.pending;if(!P.current&&N.pending)M("");if(P.current=N.pending,c(N),N.error)T(N.error),D("error");else if(N.pending)D(N.awaitingInput?"awaiting_input":"authorizing");else if(E&&N.connected)D("success");else if(!N.connected)D("idle")},[]);o(()=>{if(a.status!=="open")return;let N=new AbortController,E=!1;return t.providerAuthStatus(N.signal).then((U)=>{if(!E)h(U)},()=>{}),()=>{E=!0,N.abort()}},[t,a.status,h]);let G=v(async()=>{C(!0),T(void 0),D("authorizing"),u.current=!1;try{let N=await t.startProviderAuth();if(h(N),N.authorizeURL)window.open(N.authorizeURL,"_blank","noopener,noreferrer")}catch(N){T(N instanceof Error?N.message:String(N)),D("error")}finally{C(!1)}},[t,h]);o(()=>{if(!m?.pending)return;let N=!1,E=()=>{if(u.current)return;I.current?.abort();let U=new AbortController;I.current=U,t.providerAuthStatus(U.signal).then((b)=>{if(N||U.signal.aborted)return;let F=P.current&&!b.pending;if(h(b),F&&b.connected)Vr(t).catch((f)=>z(f,"刷新模型列表失败"))},()=>{})};return O.current=setInterval(E,In),()=>{if(N=!0,O.current)clearInterval(O.current);I.current?.abort()}},[t,m?.pending,h]);let S=v(async()=>{if(!g.trim())return;C(!0),T(void 0),u.current=!0;let N=++A.current;I.current?.abort();try{let E=await t.completeProviderAuth({url:g.trim()});if(N!==A.current)return;h(E),M("")}catch(E){if(N!==A.current)return;T(E instanceof Error?E.message:String(E)),D("error")}finally{if(u.current=!1,N===A.current)C(!1)}},[t,g,h]),R=v(async()=>{C(!0),T(void 0);try{await t.logoutProvider(),h({providerID:"openai",connected:!1,pending:!1}),D("idle"),await Vr(t)}catch(N){T(N instanceof Error?N.message:String(N)),D("error")}finally{C(!1)}},[t,h]),L=v(()=>{D("idle"),T(void 0),M("")},[]);return{status:m,busy:y,phase:B,error:k,manualURL:g,setManualURL:M,start:G,submitManual:S,logout:R,reset:L}}function Lt(t){let{phase:a,busy:m}=t;if(t.connected)return n("div",{className:"flex items-center justify-between gap-3",children:[n("span",{className:"inline-flex items-center gap-1.5 text-xs text-green-400",children:[e("span",{className:"size-1.5 rounded-full bg-green-400"}),"已连接"]}),e(x,{variant:"ghost",className:"text-faint hover:text-red-400",disabled:m,onClick:t.onLogout,children:m?"正在断开…":"断开连接"})]});return n(H.div,{layout:!0,className:"flex flex-col gap-3",children:[(a==="idle"||a==="success"||a==="error")&&n("div",{className:"flex flex-wrap items-center gap-2",children:[e(x,{disabled:m,onClick:t.onStart,children:m?"正在启动…":"登录 ChatGPT"}),a==="error"&&e(x,{variant:"ghost",className:"text-faint",onClick:t.onRetry,children:"重试"})]}),a==="authorizing"&&n("p",{className:"text-xs text-faint",children:["请在浏览器中完成授权。",t.authorizeURL&&n(p,{children:["未自动打开?",e("a",{href:t.authorizeURL,target:"_blank",rel:"noopener noreferrer",className:"ml-1 text-accent hover:underline",children:"手动打开"})]})]}),a==="awaiting_input"&&n("form",{className:"flex flex-col gap-2",onSubmit:(c)=>{c.preventDefault(),t.onSubmitManual()},children:[e("label",{htmlFor:"provider-auth-callback",className:"text-xs text-faint",children:t.instructions??"粘贴浏览器完成授权后跳转的完整 URL"}),e("input",{id:"provider-auth-callback",type:"url",className:"h-9 rounded-lg border border-line bg-raised px-3 text-xs text-ink outline-none placeholder:text-faint focus:border-accent",placeholder:"http://localhost:1455/auth/callback?code=…",value:t.manualURL,onChange:(c)=>t.onManualURLChange(c.target.value)}),e(x,{type:"submit",disabled:m||!t.manualURL.trim(),children:m?"正在提交…":"完成登录"})]}),a==="error"&&t.error&&e(wt,{children:t.error})]})}function $t(t){let a=At(t.conn),m=a.status?.connected??!1;return e(ne,{title:"ChatGPT 订阅",description:"使用 ChatGPT 账号登录,访问你的订阅所包含的模型。登录由服务端完成,凭据不会离开服务器。",children:e(H.div,{layout:!0,className:"flex flex-col gap-3",children:e(W,{title:m?"ChatGPT 账号":"连接 ChatGPT",description:m?`你好,${a.status?.displayName??"ChatGPT 用户"}`:"支持 ChatGPT Plus / Pro 订阅账号",children:e(Lt,{connected:m,phase:a.phase,busy:a.busy,error:a.error,authorizeURL:a.status?.authorizeURL,instructions:a.status?.instructions,manualURL:a.manualURL,onManualURLChange:a.setManualURL,onStart:()=>void a.start(),onSubmitManual:()=>void a.submitManual(),onLogout:()=>void a.logout(),onRetry:a.reset})})})})}function Ft(t){w();let a=ee(),[m,c]=r(""),[y,C]=r(0),[B,D]=r(null),[k,T]=r({name:"",contextWindow:"",maxTokens:""}),[g,M]=r(!1),[P,I]=r(),O=(N)=>{D(N),T({name:N.name,contextWindow:N.contextWindow?Wt(N.contextWindow):"",maxTokens:N.maxTokens?Wt(N.maxTokens):""}),I(void 0)},A=async(N)=>{if(N?.preventDefault(),!B||g)return;I(void 0);let E=k.contextWindow.trim(),U=E?Ja(E):void 0;if(E&&U===void 0){I("上下文窗口格式无效(支持 128k、200k、1m 或正整数)");return}let b=k.maxTokens.trim(),F=b?Ja(b):void 0;if(b&&F===void 0){I("最大输出格式无效(支持 8k、16k、8192 或正整数)");return}M(!0);try{let f={...B,name:k.name.trim()||B.id,contextWindow:U,maxTokens:F};await t.onUpdateModel?.(B.id,f),D(null)}catch(f){I(f instanceof Error?f.message:String(f))}finally{M(!1)}},u=m.trim().toLowerCase(),h=Js(t.provider.models).filter((N)=>`${N.id} ${N.name}`.toLowerCase().includes(u)),G=6,S=Math.max(1,Math.ceil(h.length/G)),R=Math.min(y,S-1),L=h.slice(R*G,(R+1)*G);return n(Ne,{children:[n("div",{className:l("surface.card","flex min-w-0 items-center gap-1 pr-2 transition-colors hover:bg-raised/60"),children:[n(Me,{className:"group/collapsible flex min-h-14 min-w-0 flex-1 items-center gap-3 py-2.5 pl-4 text-left focus-visible:-outline-offset-2",children:[e(qe,{className:"shrink-0 text-faint"}),n("span",{className:"min-w-0 flex-1",children:[n("span",{className:"flex items-center gap-2",children:[e("span",{className:"truncate text-sm font-medium text-ink",title:t.provider.name,children:t.provider.name}),!t.provider.apiKeyConfigured&&n("span",{className:"inline-flex shrink-0 items-center gap-1.5 text-xs text-warning",children:[e("span",{"aria-hidden":!0,className:"size-1.5 rounded-full bg-warning"}),"未设置 Key"]})]}),n("span",{className:"mt-0.5 block truncate text-xs text-dim",children:[t.provider.id!==t.provider.name&&n(p,{children:[t.provider.id," · "]}),t.provider.protocol," · ",t.provider.models.length," 个模型",t.provider.defaultContextWindow?` · 默认 ${Wt(t.provider.defaultContextWindow)}`:""]})]})]}),e("div",{className:"@md/panel:hidden",children:n(en,{className:"min-w-44 [&_[role=menuitem]]:min-h-11",trigger:e(x,{size:"icon",variant:"ghost",className:"size-11","aria-label":`${t.provider.name} 提供方操作`,children:e(Gt,{className:"size-5"})}),children:[e(ke,{icon:e(nt,{}),onSelect:t.onEdit,children:"编辑配置"}),e(ke,{icon:e(ye,{className:t.refreshing?"animate-spin":void 0}),disabled:t.refreshing,onSelect:t.onDiscover,children:t.refreshing?"正在刷新模型":"刷新模型"}),e(or,{}),e(ke,{icon:e(pe,{}),danger:!0,onSelect:t.onRemove,children:"移除提供方"})]})}),n("div",{className:"hidden shrink-0 items-center @md/panel:flex",children:[e(V,{label:"编辑",className:"size-10",onClick:t.onEdit,children:e(nt,{className:"size-4"})}),e(V,{label:"刷新模型",className:"size-10",disabled:t.refreshing,onClick:t.onDiscover,children:e(ye,{className:d("size-4",t.refreshing&&"animate-spin")})}),e(V,{label:"移除",className:"size-10 text-danger",onClick:t.onRemove,children:e(pe,{className:"size-4"})})]})]}),e("div",{children:e(Re,{children:n("div",{children:[n("div",{className:"relative my-3 min-w-0",children:[e(Be,{"aria-hidden":!0,className:"pointer-events-none absolute top-3 left-3 size-4 text-faint"}),e(te,{type:"search","aria-label":`搜索 ${t.provider.name} 的模型`,placeholder:"搜索模型",value:m,onChange:(N)=>{c(N.target.value),C(0)},className:"h-10 min-w-0 pl-9"})]}),n("div",{className:"overflow-hidden rounded-2xl border border-line bg-panel",children:[e("div",{className:"auto-grid animate-fade gap-x-2 p-2",children:L.map((N)=>{let E="";if(N.contextWindow){let U=N.contextWindow.toLocaleString(),b=N.maxTokens?` (最大输出: ${N.maxTokens.toLocaleString()})`:"";E=`上下文窗口: ${U} tokens${b}`}return n("button",{type:"button",onClick:()=>O(N),className:"group/model flex min-w-0 items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-left transition-colors hover:bg-raised/80 focus-visible:outline-accent",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(lt,{modelID:`${t.provider.id}/${N.id}`}),n("div",{className:"min-w-0",children:[e("div",{title:N.name,className:"truncate text-sm font-medium text-ink transition-colors group-hover/model:text-accent",children:N.name}),e("div",{title:N.id,className:"truncate font-mono text-[11px] text-faint",children:N.id})]})]}),n("div",{className:"flex shrink-0 items-center gap-1.5",children:[N.contextWindow?e("span",{className:"rounded bg-raised px-1.5 py-0.5 font-mono text-[10px] text-dim transition-colors group-hover/model:bg-panel",title:E,children:Wt(N.contextWindow)}):null,e(nt,{className:"size-3 text-faint opacity-0 transition-opacity group-hover/model:opacity-100"})]})]},N.id)})},`${u}:${R}`),h.length===0&&e("p",{className:"py-4 text-center text-sm text-faint",children:"没有匹配的模型"}),n("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line px-4 py-1",children:[n("span",{"aria-live":"polite",className:"text-xs text-faint",children:[h.length," 个模型 · ",R+1," / ",S," 页"]}),n("div",{className:"flex gap-1",children:[e(x,{size:"sm",variant:"ghost",disabled:R===0,onClick:()=>C(R-1),children:"上一页"}),e(x,{size:"sm",variant:"ghost",disabled:R+1>=S,onClick:()=>C(R+1),children:"下一页"})]})]})]})]})})}),e(Zt,{open:Boolean(B),onOpenChange:(N)=>{if(!g&&!N)D(null)},title:"配置模型参数",description:B?n("span",{className:"flex items-center gap-1.5 font-mono text-xs",children:[e("span",{children:t.provider.name}),e("span",{children:"/"}),e("span",{className:"font-semibold text-ink",children:B.id})]}):void 0,size:"md",footer:n(p,{children:[e("div",{className:"flex-1 max-sm:hidden"}),e(x,{disabled:g,onClick:()=>D(null),children:"取消"}),e(x,{type:"submit",form:a,loading:g,variant:"primary",children:"保存参数"})]}),children:n(Yt,{id:a,onSubmit:A,children:[e(ue,{label:"显示名称",hint:"在模型选择器与对话界面中显示的名称",children:(N)=>e(te,{id:N,value:k.name,onChange:(E)=>T({...k,name:E.target.value}),placeholder:B?.id})}),e(ue,{label:"上下文窗口 (Context Window)",hint:"单次会话最大可用上下文;留空继承提供方默认",children:(N)=>{let E=t.provider.defaultContextWindow?`继承提供方默认 (${Wt(t.provider.defaultContextWindow)})`:"继承系统默认 (300k)";return n("div",{className:"space-y-1.5",children:[e(te,{id:N,value:k.contextWindow,onChange:(U)=>T({...k,contextWindow:U.target.value}),placeholder:E}),n("div",{className:"flex flex-wrap items-center gap-1.5 pt-0.5",children:[e("span",{className:"text-[11px] text-faint",children:"常用:"}),["128k","200k","500k","1m","2m"].map((U)=>e("button",{type:"button",onClick:()=>T((b)=>({...b,contextWindow:U})),className:d("rounded px-1.5 py-0.5 font-mono text-[11px] transition-colors",k.contextWindow.toLowerCase()===U?"bg-accent/20 font-medium text-accent":"bg-raised text-dim hover:bg-raised/80 hover:text-ink"),children:U},U)),k.contextWindow&&e("button",{type:"button",onClick:()=>T((U)=>({...U,contextWindow:""})),className:"ml-1 text-[11px] text-faint transition-colors hover:text-ink",children:"清空(继承)"})]})]})}}),e(ue,{label:"最大输出 (Max Tokens)",hint:"单次响应最大生成的 Token 数量;留空继承提供方默认",children:(N)=>{let E=t.provider.defaultMaxTokens?`继承提供方默认 (${Wt(t.provider.defaultMaxTokens)})`:"继承系统默认 (64k)";return n("div",{className:"space-y-1.5",children:[e(te,{id:N,value:k.maxTokens,onChange:(U)=>T({...k,maxTokens:U.target.value}),placeholder:E}),n("div",{className:"flex flex-wrap items-center gap-1.5 pt-0.5",children:[e("span",{className:"text-[11px] text-faint",children:"常用:"}),["16k","32k","64k","128k"].map((U)=>e("button",{type:"button",onClick:()=>T((b)=>({...b,maxTokens:U})),className:d("rounded px-1.5 py-0.5 font-mono text-[11px] transition-colors",k.maxTokens.toLowerCase()===U?"bg-accent/20 font-medium text-accent":"bg-raised text-dim hover:bg-raised/80 hover:text-ink"),children:U},U)),k.maxTokens&&e("button",{type:"button",onClick:()=>T((U)=>({...U,maxTokens:""})),className:"ml-1 text-[11px] text-faint transition-colors hover:text-ink",children:"清空(继承)"})]})]})}}),e(wt,{children:P})]})})]})}function Ht(t){return w(),n(p,{children:[e($t,{conn:t.conn}),e(En,{...t})]})}var De=new WeakMap;function Ut(){return{id:"",name:"",protocol:"openai-completions",baseUrl:"https://api.openai.com/v1",apiKey:"",models:"",defaultContextWindow:"",defaultMaxTokens:""}}function En(t){w();let a=ie(t.conn.state),m=ee(),[c,y]=r(!1),[C,B]=r(()=>De.get(t.conn)??null),[D,k]=r(),[T,g]=r(!1),[M,P]=r(),[I,O]=r(),[A,u]=r(Ut),h=ys(t.conn).kind==="form",G=()=>{y(!1),Gr(t.conn,"form",{kind:"provider"})};o(()=>()=>Gr(t.conn,"form",{kind:"provider"}),[t.conn]),o(()=>{let b=De.get(t.conn);if(b)B(b);if(a.status!=="open")return;let F=!1;return t.conn.modelProviders().then((f)=>{if(De.set(t.conn,f),!F)B(f)}).catch((f)=>{if(!F)k(f instanceof Error?f.message:String(f))}),()=>{F=!0}},[t.conn,a.status]);let S=async()=>{if(T)return;k(void 0);let b=A.defaultContextWindow.trim(),F=b?Ja(b):void 0;if(b&&F===void 0){k("默认上下文窗口格式无效(支持 128k、200k、1m 或正整数)");return}let f=A.defaultMaxTokens.trim(),K=f?Ja(f):void 0;if(f&&K===void 0){k("默认最大输出格式无效(支持 8k、16k、8192 或正整数)");return}g(!0);try{let q={name:A.name.trim()||A.id.trim(),protocol:A.protocol,baseUrl:A.baseUrl,apiKey:A.apiKey,models:A.models,defaultContextWindow:F,defaultMaxTokens:K},J=await t.conn.saveModelProvider(A.id.trim(),q);B((X)=>{let Q=[...(X??[]).filter((ae)=>ae.id!==J.id),J];return De.set(t.conn,Q),Q}),await Vr(t.conn),y(!1),Gr(t.conn,"form",{kind:"saved",providerID:J.id,models:J.models.length})}catch(q){k(q instanceof Error?q.message:String(q))}finally{g(!1)}},R=(b)=>{O(b.id),u({id:b.id,name:b.name,protocol:b.protocol,baseUrl:b.baseUrl,apiKey:"",defaultContextWindow:b.defaultContextWindow?Wt(b.defaultContextWindow):"",defaultMaxTokens:b.defaultMaxTokens?Wt(b.defaultMaxTokens):"",models:Zs(b.models)}),k(void 0),y(!0)},L=()=>{O(void 0),u(Ut())},N=async(b)=>{k(void 0),P(b.id);try{let F=await t.conn.discoverModelProvider(b.id);B((f)=>f?.map((K)=>K.id===F.id?F:K)??[F]),await Vr(t.conn)}catch(F){k(F instanceof Error?F.message:String(F))}finally{P(void 0)}},E=async(b)=>{if(!await Qe({title:`移除提供方「${b.name}」?`,description:"服务端会删除保存的 API key,并恢复同名内置提供方(如果存在)。",action:"移除",danger:!0}))return;try{await t.conn.removeModelProvider(b.id),B((f)=>f?.filter((K)=>K.id!==b.id)??null),await Vr(t.conn)}catch(f){k(f instanceof Error?f.message:String(f))}},U=async(b,F,f)=>{let K=b.models.map((X)=>X.id===F?f:X),q={name:b.name,protocol:b.protocol,baseUrl:b.baseUrl,apiKey:"",defaultContextWindow:b.defaultContextWindow,defaultMaxTokens:b.defaultMaxTokens,models:Zs(K)},J=await t.conn.saveModelProvider(b.id,q);B((X)=>{let Q=X?.map((ae)=>ae.id===J.id?J:ae)??[J];return De.set(t.conn,Q),Q}),await Vr(t.conn)};return n(ne,{title:"模型提供方",description:"配置提供方与模型目录",unboxed:!0,action:e(V,{className:"size-10",label:"添加提供方","data-tour":"add-provider",disabled:a.status!=="open",onClick:()=>{L(),k(void 0),y(!0),Gr(t.conn,"provider",{kind:"form"})},children:e(we,{className:"size-4"})}),children:[e(de,{initial:!1,children:(C??[]).map((b)=>e(H.div,{...va,className:"overflow-hidden","data-tour-provider":b.id,children:e(Ft,{provider:b,refreshing:M===b.id,onEdit:()=>R(b),onDiscover:()=>void N(b),onRemove:()=>void E(b),onUpdateModel:(F,f)=>U(b,F,f)})},b.id))}),C?.length===0&&e("div",{className:l("surface.emptyDashed","py-12"),children:e("p",{className:"text-sm text-dim",children:"暂无模型提供方,点击右上方按钮添加。"})}),!c&&D&&e("div",{className:"p-4",children:e(wt,{children:D})}),e(Zt,{open:c,onOpenChange:(b)=>{if(!T)if(b)y(!0);else G()},title:I?`编辑提供方:${I}`:"添加模型提供方",size:"lg",footer:n(p,{children:[e("div",{className:"flex-1 max-sm:hidden"}),e(x,{disabled:T,onClick:G,children:"取消"}),n(x,{type:"submit",form:m,loading:T,disabled:a.status!=="open","aria-label":T?"保存中":"保存提供方",children:[e(Fe,{className:"size-3.5"}),"保存提供方"]})]}),children:n(Yt,{id:m,onSubmit:(b)=>{b.preventDefault(),S()},children:[h&&n("div",{className:"rounded-lg bg-accent/8 px-3 py-2.5 text-xs leading-5 text-dim ring-1 ring-accent/25",children:[e("span",{className:"mr-1.5 font-medium text-ink tabular-nums",children:"3 / 4"}),"Provider ID 起个好记的名字(如 deepseek),协议和 Base URL 按服务商文档填,再填上 API key。模型列表留空会自动获取,最后点「保存提供方」。"]}),n("div",{className:"grid gap-4 sm:grid-cols-2",children:[e(ue,{label:"Provider ID",hint:"例如 openai、deepseek 或公司内部网关",children:(b)=>e(te,{id:b,value:A.id,disabled:Boolean(I),onChange:(F)=>u({...A,id:F.target.value}),placeholder:"openai"})}),e(ue,{label:"显示名称",hint:"不填就用 Provider ID",children:(b)=>e(te,{id:b,value:A.name,onChange:(F)=>u({...A,name:F.target.value}),placeholder:"OpenAI"})})]}),e(ue,{label:"协议",children:(b)=>e(Xt,{id:b,value:A.protocol,onValueChange:(F)=>u({...A,protocol:F}),groups:[{options:Cl.map((F)=>({value:F,label:Sl[F]}))}]})}),e(ue,{label:"Base URL",hint:"只填写协议端点,不要把 API key 放进 URL",children:(b)=>e(te,{id:b,type:"url",value:A.baseUrl,onChange:(F)=>u({...A,baseUrl:F.target.value}),placeholder:"https://api.example.com/v1"})}),e(ue,{label:"API key",hint:"留空表示保留已保存的 key;本地兼容服务可以留空",children:(b)=>e(te,{id:b,type:"password",value:A.apiKey,onChange:(F)=>u({...A,apiKey:F.target.value}),placeholder:"sk-…",autoComplete:"new-password"})}),n("div",{className:"grid gap-4 sm:grid-cols-2",children:[e(ue,{label:"默认上下文窗口",hint:"模型未单独指定时生效,例如 128k、200k、1m 或正整数",children:(b)=>e(te,{id:b,value:A.defaultContextWindow,onChange:(F)=>u({...A,defaultContextWindow:F.target.value}),placeholder:"300k"})}),e(ue,{label:"默认最大输出",hint:"单次回复生成上限,例如 16k、32k、64k 或正整数",children:(b)=>e(te,{id:b,value:A.defaultMaxTokens,onChange:(F)=>u({...A,defaultMaxTokens:F.target.value}),placeholder:"64k"})})]}),e(ue,{label:"模型列表",hint:"留空将从 Base URL 自动获取;也支持手动填写 model-id 或 model-id=显示名称 [上下文, 最大输出](如 claude-3-7-sonnet=Sonnet [200k]、deepseek-chat [64k, 8k])",children:(b)=>e(xr,{id:b,value:A.models,onChange:(F)=>u({...A,models:F.target.value}),rows:3,placeholder:"留空自动获取模型列表"})}),e(wt,{children:D})]})})]})}function An(t){return!(t.web?.some((m)=>m.kind==="tab")??!1)&&hs(t.id,"settings")}function Vt(t){let a={tools:[],commands:[],pages:[],routes:[],hooks:[],others:[]},m=new Map((t.web??[]).map((c)=>[c.id,c]));for(let c of t.registrations)switch(c.kind){case"tool":{a.tools.push(c.name);break}case"command":{let y=m.get(c.id)?.commandTitle??m.get(c.id)?.title??c.id;a.commands.push(y);break}case"web":{let y=m.get(c.id);if(y?.kind==="sidebar")a.pages.push(`侧栏: ${y.title}`);else if(y?.kind!=="command")a.pages.push(y?.title??c.id);break}case"route":{a.routes.push({method:c.method,path:c.path});break}case"websocket":{a.routes.push({method:"WS",path:c.path});break}case"hook":{a.hooks.push(c.name);break}case"policy":{a.others.push(`策略 ${c.id}`);break}case"history-resolver":{a.others.push("历史解析");break}}return a}function Ze(t){let a=new Map(t.map((g)=>[g.id,g])),m=new Map,c=new Map;for(let g of t){let M=(g.deps??[]).filter((P)=>P!==g.id);m.set(g.id,M);for(let P of M){let I=c.get(P)??[];if(!I.includes(g.id))I.push(g.id),c.set(P,I)}}let y=new Set;for(let[g,M]of m.entries())if(M.length>0)y.add(g);for(let[g,M]of c.entries())if(M.length>0)y.add(g);let C=[];for(let g of t)if(!y.has(g.id))C.push(g);let B=[],D=new Set;for(let g of y){let M=m.get(g)??[],P=c.get(g)??[],I=a.get(g);if(!I)continue;if(M.length===0&&P.length>0)B.push(I)}for(let g of y){let M=a.get(g);if(!M)continue;if(!(m.get(g)??[]).some((O)=>a.has(O))&&!B.some((O)=>O.id===g))B.push(M)}function k(g,M,P){D.add(g.id);let I=[...P,g.id],O=c.get(g.id)??[],A=[];for(let u of O){if(I.includes(u))continue;let h=a.get(u);if(h)A.push(k(h,M+1,I))}return{plugin:g,depth:M,depPath:I,children:A}}let T=B.map((g)=>k(g,0,[]));for(let g of y)if(!D.has(g)){let M=a.get(g);if(M)T.push(k(M,0,[]))}return{trees:T,standalones:C,depsMap:m,dependentsMap:c}}var Ln=2400;function Gn(t){let{plugin:a,busy:m,pending:c,reloaded:y,deps:C,offDeps:B,pluginMetadata:D,onSelect:k,onToggle:T,onConfigure:g}=t,M=D.get(a.id),P=M?.icon??Mt,I=a.status==="error",O=a.status==="disabled",A=!O&&An(a),u=M?.description??a.description??"",h=u;if(c)h=e("span",{className:"animate-pulse text-dim",children:O?"卸载中…":"装载中…"});else if(I)h=e("span",{className:"text-danger/85",children:a.error??"加载失败"});else if(y)h=e("span",{className:"text-success",children:"刚刚已重载"});else if(O&&B.length>0)h=`随 ${B.join("、")} 停用`;return e(Fi,{name:e("span",{className:d(I&&"text-danger"),children:a.id}),selectLabel:`查看插件 ${a.id}`,onSelect:()=>k(a),title:I?a.error:u,meta:`v${a.version}`,description:h,icon:e(P,{}),inactive:O,highlight:y,aside:C.length>0&&n("span",{className:"font-mono text-[10.5px] text-faint",title:"依赖的插件",children:["← ",C.join(" ")]}),actions:A&&e(V,{label:`${a.id} 设置`,size:"icon-sm",onClick:()=>g(a),children:e(mt,{className:"size-3.5"})}),toggle:{checked:!O,label:`启用 ${a.id}`,disabled:m,onCheckedChange:()=>T(a)}})}function jt(t){return n("li",{className:"flex h-8 items-center gap-2 bg-raised/30 px-4 font-mono text-[10.5px] text-faint uppercase tracking-wider",children:[t.label,e("span",{className:"text-faint/60",children:t.count})]})}function Kt(t){let{plugins:a,busy:m,pending:c,query:y,pluginMetadata:C,onSelect:B,onToggle:D,onConfigure:k}=t,T=_(()=>Ze(a),[a]),g=y.trim().toLowerCase(),M=i(new Map),P=i(new Set),[I,O]=r(new Set);o(()=>{let L=[];for(let E of a){if(M.current.has(E.id)&&E.webRevision&&M.current.get(E.id)!==E.webRevision)L.push(E.id);M.current.set(E.id,E.webRevision)}if(L.length===0)return;O((E)=>new Set([...E,...L]));let N=setTimeout(()=>{P.current.delete(N),O((E)=>new Set([...E].filter((U)=>!L.includes(U))))},Ln);P.current.add(N)},[a]),o(()=>{let L=P.current;return()=>{for(let N of L)clearTimeout(N)}},[]);let A=_(()=>[...!g?a:a.filter((N)=>N.id.toLowerCase().includes(g)||(N.description??"").toLowerCase().includes(g)||(C.get(N.id)?.description??"").toLowerCase().includes(g))].sort((N,E)=>N.id.localeCompare(E.id,"en")),[a,g,C]);if(A.length===0)return n("p",{className:"p-6 text-center text-dim text-sm",children:["没有匹配「",y.trim(),"」的插件"]});let u=new Map(a.map((L)=>[L.id,L.status])),h=A.filter((L)=>!L.builtin),G=A.filter((L)=>L.builtin),S=h.length>0&&G.length>0;function R(L){let N=T.depsMap.get(L.id)??[];return e("li",{children:e(Gn,{plugin:L,busy:m,pending:c===L.id,reloaded:I.has(L.id),deps:N,offDeps:N.filter((E)=>u.get(E)==="disabled"),pluginMetadata:C,onSelect:B,onToggle:D,onConfigure:k})},L.id)}return n("ul",{className:"divide-y divide-line",children:[S&&e(jt,{label:"用户",count:h.length}),h.map(R),S&&e(jt,{label:"内置",count:G.length}),G.map(R)]})}function qt(){return new Map(Ae().map((t)=>[t.id,t.metadata]))}var Ue=qt();pn(()=>{Ue=qt()});var On={enabled:{label:"已启用",dot:"bg-success"},disabled:{label:"已禁用",dot:"bg-faint"},error:{label:"出错",dot:"bg-danger"}};function Wn(t){return!(t.web?.some((m)=>m.kind==="tab")??!1)&&hs(t.id,"settings")}function _n(t){Se();let{plugin:a,depsMap:m,dependentsMap:c}=t,y=_(()=>Vt(a),[a]),C=a.status==="disabled",B=y.hooks.length>0||y.routes.length>0||y.others.length>0,D=y.pages.length>0||y.tools.length>0||y.commands.length>0,k=(m?.get(a.id)??a.deps??[]).filter((g)=>g!==a.id),T=c?.get(a.id)??[];return n("div",{className:"space-y-3 text-xs leading-5",children:[ve.errors.get(a.id)&&n("p",{role:"alert",className:"text-danger",children:["Web: ",ve.errors.get(a.id)]}),a.error&&n("div",{role:"alert",className:"rounded-xl bg-danger/8 p-3 text-xs leading-5 text-danger",children:[e("p",{className:"mb-1 font-medium font-sans",children:a.status==="enabled"?"重载失败,仍在运行上一版本":"插件加载异常"}),e("pre",{className:"whitespace-pre-wrap font-mono [overflow-wrap:anywhere]",children:a.error})]}),n(ps,{children:[k.length>0&&e(Wr,{label:"依赖",children:k.map((g)=>{let P=(t.plugins??[]).find((I)=>I.id===g)?.status==="disabled";return e("button",{type:"button",onClick:()=>t.onSelectPlugin?.(g),className:d(oi,"cursor-pointer transition-colors hover:text-ink",P&&"text-warning"),title:P?"依赖插件已停用,可能影响功能":"点击查看该插件",children:P?`${g}(未启用)`:g},g)})}),T.length>0&&e(Wr,{label:"被依赖",children:T.map((g)=>e("button",{type:"button",onClick:()=>t.onSelectPlugin?.(g),className:d(oi,"cursor-pointer transition-colors hover:text-ink"),title:"点击查看依赖此插件的下游插件",children:g},g))}),C?e("p",{className:"py-2.5 text-faint",children:"该插件当前处于停用状态,启用后接管对应功能与服务。"}):n(p,{children:[y.pages.length>0&&e(Wr,{label:"界面",children:y.pages.map((g)=>e(si,{children:g},g))}),y.tools.length>0&&e(Wr,{label:"工具",children:y.tools.map((g)=>e(si,{mono:!0,children:g},g))}),y.commands.length>0&&e(Wr,{label:"命令",children:y.commands.map((g)=>e(si,{children:g},g))}),B&&n(ms,{label:"接口",summary:[y.hooks.length>0&&`${y.hooks.length} 个钩子`,y.routes.length>0&&`${y.routes.length} 条路由`,y.others.length>0&&`${y.others.length} 项其他注册`].filter(Boolean).join(","),children:[y.hooks.length>0&&n("div",{className:"space-y-1.5",children:[e("span",{className:"text-[11px] text-faint",children:"生命周期事件钩子"}),e("div",{className:"flex flex-wrap gap-1.5",children:y.hooks.map((g)=>e("span",{className:d(oi,"font-mono text-[11px]"),children:g},g))})]}),y.routes.length>0&&n("div",{className:"space-y-1.5",children:[e("span",{className:"text-[11px] text-faint",children:"HTTP / WebSocket 路由"}),e("div",{className:"space-y-0.5 font-mono text-[11px] text-dim",children:y.routes.map((g)=>n("div",{className:"grid grid-cols-[3rem_minmax(0,1fr)] gap-2",children:[e("span",{className:"text-faint",children:g.method}),e("span",{className:"[overflow-wrap:anywhere]",children:g.path})]},`${g.method} ${g.path}`))})]}),y.others.length>0&&n("div",{className:"space-y-1.5",children:[e("span",{className:"text-[11px] text-faint",children:"其他注册"}),e("div",{className:"flex flex-wrap gap-1.5",children:y.others.map((g)=>e("span",{className:d(oi,"text-[11px]"),children:g},g))})]})]}),!D&&!B&&!a.error&&e("p",{className:"py-2.5 text-faint",children:"该插件没有向外部暴露界面或工具能力"})]})]}),t.failed&&e("p",{role:"alert",className:"text-xs text-danger",children:t.failed})]})}function Hn(){return e("div",{role:"status","aria-label":"正在加载",className:"divide-y divide-line",children:[0,1,2,3,4].map((t)=>n("div",{className:"flex h-13 items-center gap-3 px-4",children:[e("div",{className:"size-7 shrink-0 animate-pulse rounded-md bg-raised"}),e("div",{className:"h-3 w-20 animate-pulse rounded bg-raised"}),e("div",{className:"h-3 w-1/3 animate-pulse rounded bg-raised"})]},t))})}function Jt({conn:t}){w(),Se();let[a,m]=r(()=>{let f=t.state.get();return f.pluginsLoaded?f.plugins:void 0}),[c,y]=r(""),[C,B]=r(),[D,k]=r(),[T,g]=r(""),[M,P]=r(),[I,O]=r("details"),[A,u]=r(null),h=i(0),G=i(!1),S=i({}),R=v(()=>{if(G.current)return;let f=++h.current;y(""),t.plugins().then(()=>{if(f===h.current)m(t.state.get().plugins)},(K)=>{if(f===h.current)y(rt(K))})},[t]);o(()=>{B(void 0);let f=t.state.get().plugins,K=t.state.subscribe((q)=>{if(q.plugins===f)return;f=q.plugins,m(q.plugins)});return R(),()=>{K(),h.current++,G.current=!1}},[R,t]);async function L(f,K){if(G.current)return;if(K){let Q=Date.now(),ae=S.current[f.id]??0;if(Q-ae<500)return;S.current[f.id]=Q}let q=++h.current;G.current=!0,B(f.id),k(void 0);let J=f.status==="disabled",X=f.id;try{if(K){if(await t.reloadPlugin(f.id),q===h.current)m(t.state.get().plugins);return}let Q=await t.plugins();if(q!==h.current)return;m(t.state.get().plugins);let ae=new Map(Q.map((Y)=>[Y.id,Y])),Ce=[],ze=new Set,Le=new Set,He=(Y)=>{if(Le.has(Y))return;if(ze.has(Y))throw Error(`插件依赖存在循环:${Y}`);let fe=ae.get(Y);if(!fe)throw Error(`找不到插件依赖:${Y}`);if(ze.add(Y),J){if(fe.status==="error")throw Error(`请先修复依赖插件 ${Y} 的加载错误`);for(let ce of fe.deps??[])He(ce)}else for(let ce of Q)if(ce.status!=="disabled"&&ce.deps?.includes(Y))He(ce.id);if(ze.delete(Y),Le.add(Y),J?fe.status!=="enabled":fe.status!=="disabled")Ce.push(fe)};He(f.id);let ut=Ce.filter((Y)=>Y.id!==f.id);if(ut.length>0){let Y=ut.map((ce)=>ce.id).join("、");if(!await Qe({title:J?"同时启用依赖插件?":"同时禁用依赖此插件的插件?",description:J?`启用 ${f.id} 需要先启用:${Y}。是否继续?`:`${Y} 依赖 ${f.id},将先禁用这些插件,再禁用 ${f.id}。是否继续?`,action:J?"级联启用":"级联禁用",danger:!J}))return}for(let Y of Ce){if(q!==h.current)return;X=Y.id,m((ce)=>ce?.map((Ve)=>Ve.id===Y.id?{...Ve,status:J?"enabled":"disabled",error:void 0}:Ve));let fe=await t.enablePlugin(Y.id,J);if(q!==h.current)return;if(m(t.state.get().plugins),fe.find((ce)=>ce.id===Y.id)?.status!==(J?"enabled":"disabled"))throw Error(`插件 ${Y.id} 未进入预期状态,请刷新后重试`)}}catch(Q){if(q!==h.current)return;let ae=K?"重载失败":`更新 ${X} 失败,后续操作已停止`;k({id:f.id,message:ae}),z(Q,ae);try{if(await t.plugins(),q===h.current)m(t.state.get().plugins)}catch(Ce){if(q===h.current)y(`刷新插件状态失败:${rt(Ce)}`)}}finally{if(q===h.current)G.current=!1,B(void 0)}}let N=_(()=>Ze(a??[]),[a]),E=M?a?.find((f)=>f.id===M):void 0,U=i(void 0);if(E)U.current=E;let b=E??U.current,F=a?`内置 ${a.filter((f)=>f.builtin).length},用户 ${a.filter((f)=>!f.builtin).length}`:"";return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[e("h2",{className:"font-medium text-[13px] text-dim",children:"插件"}),e("p",{className:"mt-0.5 text-faint text-xs",children:F})]}),e(V,{label:"刷新",className:"size-10",disabled:C!==void 0,onClick:R,children:e(ye,{className:"size-4"})})]}),c&&n("div",{role:"alert",className:"mb-3 flex flex-wrap items-center gap-2 rounded-xl border border-line p-3",children:[n("p",{className:"min-w-0 flex-1 break-words text-danger text-sm",children:["无法读取插件:",c]}),e(x,{className:"h-10",onClick:R,children:"重试"})]}),n("div",{className:"relative mb-3 min-w-0",children:[e(Be,{"aria-hidden":!0,className:"pointer-events-none absolute top-3 left-3 size-4 text-faint"}),e(te,{type:"search","aria-label":"搜索插件",placeholder:"搜索插件",value:T,onChange:(f)=>g(f.target.value),className:"h-10 min-w-0 pl-9"})]}),e("div",{className:l("settings.groupBox"),children:!a?!c&&e(Hn,{}):e(Kt,{plugins:a,busy:C!==void 0,pending:C,query:T,pluginMetadata:Ue,onSelect:(f)=>{P(f.id),O("details")},onToggle:(f)=>void L(f,!1),onConfigure:(f)=>{P(f.id),O("settings")}})})]}),e(Zt,{open:Boolean(M),onOpenChange:(f)=>{if(!f)P(void 0),O("details")},size:"lg",title:b&&(I==="settings"?n("div",{className:"flex items-center gap-2",children:[n(x,{variant:"ghost",size:"sm",className:"h-7 px-1.5 text-xs text-dim hover:text-ink",onClick:()=>O("details"),children:[e(ar,{className:"mr-1 size-3.5"}),"返回详情"]}),n("span",{className:"font-semibold text-ink text-base",children:[b.id," 设置"]})]}):e(ds,{icon:(()=>{let f=Ue.get(b.id)?.icon??Mt;return e(f,{})})(),name:b.id,meta:[b.builtin?"内置":"用户插件",`v${b.version}`,b.webBundle&&"Web"]})),description:b&&(I==="settings"?void 0:e("span",{className:"mt-2 block leading-5.5",children:Ue.get(b.id)?.description??b.description})),footer:b&&(I==="settings"?e("div",{ref:u,className:"flex w-full flex-wrap items-center justify-end gap-2"}):n("div",{className:"flex w-full items-center justify-between gap-2 max-sm:[&>*]:flex-none",children:[n("div",{className:"inline-flex items-center gap-2.5 text-[13px] text-dim",children:[e(kt,{label:`启用 ${b.id}`,checked:b.status!=="disabled",disabled:C!==void 0,onCheckedChange:()=>void L(b,!1)}),e("span",{className:d(b.status==="error"&&"text-danger"),children:On[b.status].label})]}),n("div",{className:"flex items-center gap-1.5",children:[e(V,{label:"重载插件",disabled:C!==void 0||b.status==="disabled",onClick:()=>void L(b,!0),children:e(ye,{className:d("size-4",C===b.id&&"animate-spin")})}),Wn(b)&&b.status!=="disabled"&&n(x,{size:"sm",onClick:()=>O("settings"),children:[e(mt,{className:"size-3.5"}),e("span",{children:"设置"})]})]})]})),children:b&&(I==="settings"?e(Bi,{value:{footer:A},children:e("div",{className:"py-1",children:e(gs,{pluginID:b.id,viewID:"settings",connection:t,onClose:()=>{P(void 0),O("details")}})})}):e(_n,{plugin:b,busy:C===b.id,failed:D?.id===b.id?D.message:void 0,plugins:a??[],depsMap:N.depsMap,dependentsMap:N.dependentsMap,onSelectPlugin:(f)=>{P(f),O("details")}}))})]})}var Ie="__direct",tt="__inherit";function Qt({conn:t}){w();let a=ie(t.state).status,[m,c]=r(),[y,C]=r(),[B,D]=r([]),[k,T]=r(),[g,M]=r(),P=i(void 0),I=v(async(S)=>{T("loading"),M(void 0);try{let R=await t.proxyConfiguration(S);if(S?.aborted)return;c(Oe(R)),C(Oe(R)),D(R.targets)}catch(R){if(!S?.aborted)M(R instanceof Error?R.message:String(R))}finally{if(!S?.aborted)T(void 0)}},[t]);o(()=>{let S=new AbortController;if(P.current=S,c(void 0),C(void 0),M(void 0),a==="open")I(S.signal);return()=>S.abort()},[a,I]);let O=(S)=>{c((R)=>R?S(R):R)},A=(S,R)=>{O((L)=>({...L,profiles:L.profiles.map((N)=>N.id===S?{...N,...R}:N)}))},u=async()=>{if(!m)return;let S=P.current;if(!S||S.signal.aborted)return;T("saving"),M(void 0);try{let R=await t.saveProxyConfiguration(m,S.signal);if(S.signal.aborted)return;c(Oe(R)),C(Oe(R)),D(R.targets)}catch(R){if(!S.signal.aborted)M(R instanceof Error?R.message:String(R))}finally{if(!S.signal.aborted)T(void 0)}},h=m&&y?JSON.stringify(m)!==JSON.stringify(y):!1,G=[{value:Ie,label:"直接连接"},...m?.profiles.map((S)=>({value:S.id,label:S.name}))??[]];if(a!=="open")return e(ne,{title:"代理",description:"控制当前服务器发起的外发 HTTP 请求。",children:e(W,{title:"连接服务器后可配置代理",description:"代理设置保存在服务器上,连接后即可读取和保存。"})});if(!m)return e(ne,{title:"代理",description:"控制当前服务器发起的外发 HTTP 请求。",children:e(W,{title:g?"无法读取代理设置":"正在读取代理设置…",description:g?e("span",{className:"text-danger",children:g}):void 0,children:g&&e(x,{loading:k==="loading",onClick:()=>void I(P.current?.signal),children:"重新加载"})})});return n(Yt,{className:"gap-6",noValidate:!0,onSubmit:(S)=>{S.preventDefault(),u()},children:[e(ne,{title:"代理",description:"控制当前服务器发起的外发 HTTP 请求;本机回环地址始终直连。",children:e(W,{title:"默认线路",description:"没有单独分流的模型、订阅登录和程序更新使用这条线路。",children:e(Xt,{ariaLabel:"默认代理线路",className:"w-56",value:m.defaultProfileID??Ie,disabled:k!==void 0,onValueChange:(S)=>O((R)=>({...R,defaultProfileID:S===Ie?void 0:S})),groups:[{options:G}]})})}),e(ne,{title:"代理服务器",description:"支持 HTTP / HTTPS 代理;地址中的账号密码请拆到独立字段。",unboxed:!0,action:n(x,{size:"sm",disabled:k!==void 0,onClick:()=>O((S)=>({...S,profiles:[...S.profiles,{id:er(),name:`代理 ${S.profiles.length+1}`,address:"http://127.0.0.1:8080",tls:"verify",noProxy:[]}]})),children:[e(we,{className:"size-3.5"}),"添加代理"]}),children:m.profiles.length===0?e("div",{className:l("surface.emptyDashed","py-10 text-sm text-dim"),children:"尚未添加代理,所有请求直接连接。"}):m.profiles.map((S)=>n("section",{className:l("surface.card","flex flex-col gap-4 p-4"),children:[n("div",{className:"flex items-center justify-between gap-3",children:[n("div",{className:"flex min-w-0 items-center gap-2 text-sm font-medium text-ink",children:[e(Ge,{className:"size-4 shrink-0 text-dim"}),e("span",{className:"truncate",children:S.name||"未命名代理"})]}),e(V,{label:`删除${S.name||"代理"}`,className:"text-danger",disabled:k!==void 0,onClick:()=>O((R)=>({...R,defaultProfileID:R.defaultProfileID===S.id?void 0:R.defaultProfileID,profiles:R.profiles.filter((L)=>L.id!==S.id),routes:Object.fromEntries(Object.entries(R.routes).filter(([,L])=>L!==S.id))})),children:e(pe,{className:"size-4"})})]}),n("div",{className:"grid gap-3 md:grid-cols-2",children:[e(ue,{label:"名称",children:(R)=>e(te,{id:R,value:S.name,onChange:(L)=>A(S.id,{name:L.target.value})})}),e(ue,{label:"代理地址",children:(R)=>e(te,{id:R,type:"url",value:S.address,placeholder:"http://proxy.example.com:8080",autoComplete:"off",spellCheck:!1,onChange:(L)=>A(S.id,{address:L.target.value})})}),e(ue,{label:"用户名(可选)",children:(R)=>e(te,{id:R,value:S.username??"",autoComplete:"off",onChange:(L)=>A(S.id,{username:L.target.value||void 0})})}),e(ue,{label:"密码(可选)",hint:"留空表示沿用已保存密码。",children:(R)=>e(te,{id:R,type:"password",value:S.password??"",autoComplete:"new-password",onChange:(L)=>A(S.id,{password:L.target.value||void 0})})}),e(ue,{label:"HTTPS 证书校验",children:(R)=>e(Xt,{id:R,value:S.tls,onValueChange:(L)=>A(S.id,{tls:L==="insecure"?"insecure":"verify"}),groups:[{options:[{value:"verify",label:"校验证书(推荐)"},{value:"insecure",label:"跳过校验(仅调试)"}]}]})}),e(ue,{label:"额外直连主机",hint:"多个主机用逗号分隔;localhost 与回环地址无需填写。",children:(R)=>e(te,{id:R,value:S.noProxy?.join(", ")??"",placeholder:"internal.example.com",onChange:(L)=>A(S.id,{noProxy:L.target.value.split(",").map((N)=>N.trim()).filter(Boolean)})})})]})]},S.id))}),e(ne,{title:"分流规则",description:"可按模型提供方、ChatGPT 订阅登录或程序更新覆盖默认线路。",children:B.map((S)=>{let L=Object.hasOwn(m.routes,S.id)?m.routes[S.id]??Ie:tt;return e(W,{title:S.name,description:e("span",{className:"font-mono",children:S.id}),children:e(Xt,{ariaLabel:`${S.name}使用的代理线路`,className:"w-56",value:L,disabled:k!==void 0,onValueChange:(N)=>O((E)=>{let U={...E.routes};if(N===tt)delete U[S.id];else U[S.id]=N===Ie?null:N;return{...E,routes:U}}),groups:[{options:[{value:tt,label:"跟随默认线路"},...G]}]})},S.id)})}),e(wt,{children:g}),n(us,{children:[e(x,{disabled:k!==void 0||!h,onClick:()=>y&&c(structuredClone(y)),children:"撤销更改"}),n(x,{type:"submit",variant:"primary",disabled:k!==void 0||!h,loading:k==="saving",children:[e(Fe,{className:"size-3.5"}),"保存代理设置"]})]})]})}function Oe(t){return{version:1,defaultProfileID:t.defaultProfileID,routes:{...t.routes},profiles:t.profiles.map((a)=>({id:a.id,name:a.name,address:a.address,username:a.username,password:"",tls:a.tls,noProxy:[...a.noProxy??[]]}))}}var me="ring-2 ring-amber-400",ot="flex items-center gap-2 rounded-lg border border-white/10 bg-[#1a1a1a] px-2.5 py-1.5 text-xs";function Pe(t){return e("div",{role:"img","aria-label":t.label,className:"mt-2 w-full max-w-md overflow-hidden rounded-lg border border-white/10 bg-[#0f0f0f] text-left text-[11px] leading-4 text-white",children:n("div",{"aria-hidden":!0,children:[n("div",{className:"flex items-center gap-1.5 border-b border-white/10 px-3 py-1.5 text-[10px]",children:[t.path.map((a,m)=>n("span",{className:"flex items-center gap-1.5",children:[m>0&&e("span",{className:"text-white/30",children:"›"}),e("span",{className:m===t.path.length-1?"font-medium":"text-white/60",children:a})]},a)),e("span",{className:"ml-auto rounded bg-white/10 px-1 py-0.5 text-[9px] text-white/50",children:"示意图"})]}),e("div",{className:"px-3 py-2.5",children:t.children})]})})}function re(t){return e("span",{className:"absolute -top-1.5 -right-1.5 z-10 flex size-3.5 items-center justify-center rounded-full bg-amber-400 text-[9px] font-bold text-black",children:t.n})}function at(t){return e("span",{className:d("flex h-4 w-7 shrink-0 items-center rounded px-0.5",t.on?"justify-end bg-blue-500":"justify-start border border-white/15 bg-[#2a2a2a]"),children:e("span",{className:d("h-3 w-3 rounded-[3px]",t.on?"bg-blue-200":"bg-white/45")})})}function xe(t){return n("div",{className:d(ot,"justify-between",t.className),children:[e("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:t.children}),t.clearable&&e(oe,{className:"size-3 shrink-0 text-white/50"}),e(ge,{className:"size-3 shrink-0 text-white/50"})]})}function We(t){return n("span",{className:"shrink-0 rounded bg-[#2a2a2a] px-1.5 py-0.5 text-[11px]",children:[t.children,e("span",{className:"ml-1.5 text-white/60",children:"×"})]})}function nn(t){return n(p,{children:[n("div",{className:"inline-flex rounded-md border border-white/10 bg-white/5 p-0.5 text-[10px]",children:[e("span",{className:"px-2 py-1 text-white/50",children:"应用程序详细信息"}),e("span",{className:"rounded border border-white/15 bg-black px-2 py-1",children:"其他设置"})]}),e("div",{className:"mt-2 text-sm font-bold",children:"其他设置"}),e("div",{className:"mt-2 flex flex-wrap gap-1.5 text-[10px]",children:["全部","App Launcher 设置","标记","自定义封锁页面","CORS 标头","Cookie 设置","服务身份验证失败","AUD 标签","OAuth"].map((m)=>n("span",{className:d("relative rounded-md border px-2 py-1",m===t.active?`border-blue-400/60 bg-[#0b2a5b] ${me}`:"border-white/15 text-white/90"),children:[m,m===t.active&&e(re,{n:1})]},m))})]})}function it(t){return n("div",{children:[n("div",{className:"flex items-center gap-2",children:[e("span",{className:d("shrink-0 rounded-full px-2 py-px text-[11px]",t.badgeClass),children:t.badge}),n("div",{children:[e("div",{className:"text-xs font-semibold",children:t.title}),e("div",{className:"text-[10px] text-white/55",children:t.hint})]})]}),e("div",{className:"mt-1.5 ml-3.5 border-l border-white/25 pl-3",children:t.children})]})}function an(){return n(Pe,{label:"策略示例:操作选允许;包含电子邮件为你的邮箱;要求登录方法为 GitHub",path:["Access 策略","创建新策略"],children:[e("div",{className:"text-xs font-semibold",children:"操作"}),n("div",{className:"relative mt-1",children:[e(xe,{className:me,children:"允许"}),e(re,{n:1})]}),e("div",{className:"mt-3 text-sm font-bold",children:"策略规则"}),n("div",{className:"mt-2 flex flex-col gap-3",children:[e(it,{badge:"或",badgeClass:"bg-violet-600",title:"包含",hint:"用户只需满足一条「包含」规则",children:n("div",{className:"relative flex flex-col gap-1.5 rounded-lg bg-[#2a2a2a] p-2",children:[e(re,{n:2}),e(xe,{children:"电子邮件"}),n("div",{className:ot,children:[e(We,{children:"you@example.com"}),e("span",{className:"min-w-0 truncate text-white/40",children:"email@example.com"})]})]})}),e(it,{badge:"且",badgeClass:"bg-amber-500 text-black",title:"要求",hint:"流量必须匹配所有这些规则才能被包含。",children:n("div",{className:"relative flex items-start gap-2 rounded-lg bg-[#2a2a2a] p-2",children:[e(re,{n:3}),n("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[e(xe,{children:"登录方法"}),e(xe,{clearable:!0,children:e(We,{children:"GitHub"})})]}),e(pe,{className:"mt-2 size-3 shrink-0 text-white/60"})]})})]}),n("div",{className:"mt-2.5 flex flex-wrap gap-x-4 gap-y-0.5 text-[10px] font-medium",children:[e("span",{children:"+ 添加包含 (或)"}),e("span",{children:"+ 添加要求 (且)"}),e("span",{children:"+ 添加排除 (非)"})]})]})}function sn(){return n(Pe,{label:"身份验证示例:关闭接受所有标识提供程序,只选择 GitHub;即时身份验证开启时会直接跳转 GitHub",path:["应用程序","你的应用名"],children:[n("div",{className:"flex items-start justify-between gap-2",children:[n("div",{children:[n("div",{className:"flex items-center gap-1.5 text-sm font-bold",children:["身份验证",e("span",{className:"rounded-full bg-blue-600 px-1.5 py-px text-[10px] font-normal",children:"新"})]}),e("div",{className:"text-[10px] text-white/75",children:"为此应用程序配置身份提供程序和多重身份验证。"})]}),n("span",{className:"flex shrink-0 rounded-md border border-white/10 bg-white/5 p-0.5 text-[10px]",children:[e("span",{className:"rounded bg-blue-600/35 px-2 py-0.5 text-blue-300",children:"身份"}),e("span",{className:"px-2 py-0.5 text-white/75",children:"MFA"})]})]}),n("div",{className:"mt-2.5 flex flex-col gap-3 border-t border-white/10 pt-2.5",children:[n("div",{className:"flex items-center justify-between gap-2",children:[e("span",{className:"text-xs font-bold",children:"接受所有可用的标识提供程序"}),n("span",{className:"relative",children:[e("span",{className:d("block rounded",me),children:e(at,{on:!1})}),e(re,{n:1})]})]}),n("div",{children:[e("div",{className:"text-xs font-bold",children:"选择此应用程序可用的身份提供程序"}),n("div",{className:"relative mt-1",children:[e(xe,{className:me,clearable:!0,children:e(We,{children:"GitHub - github"})}),e(re,{n:2})]})]}),n("div",{className:"flex items-start justify-between gap-2",children:[n("div",{children:[e("div",{className:"text-xs font-bold",children:"应用即时身份验证"}),e("div",{className:"text-[10px] text-white/75",children:"允许用户在只有一种登录方法可用时跳过标识提供程序选择。"})]}),n("span",{className:"relative",children:[e("span",{className:d("block rounded",me),children:e(at,{on:!1})}),e(re,{n:3})]})]})]})]})}function on(){return n(Pe,{label:"AUD 位置示例:应用的「其他设置」页点「AUD 标签」,复制「令牌」下面的一长串字符",path:["应用程序","你的应用名"],children:[e(nn,{active:"AUD 标签"}),e("div",{className:"mt-3 text-xs font-bold",children:"应用程序受众 (AUD) 标签"}),n("div",{className:"relative mt-1.5 rounded-lg border border-white/15 bg-white/[0.03] px-2.5 py-2",children:[e(re,{n:2}),e("div",{className:"text-xs font-bold",children:"令牌"}),n("div",{className:"mt-1 flex items-center gap-1.5",children:[e("span",{className:d("min-w-0 break-all rounded font-mono text-[10px] ring-offset-2 ring-offset-black",me),children:"0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f9"}),e(Sn,{className:"size-3 shrink-0 text-white/60"})]})]})]})}function rn(){return n(Pe,{label:"服务令牌示例:在服务凭据的服务令牌页点创建服务令牌,填名称、选时长后点生成令牌",path:["服务凭据","服务令牌"],children:[n("div",{className:"inline-flex rounded-md border border-white/10 bg-white/5 p-0.5 text-[10px]",children:[e("span",{className:"rounded border border-white/15 bg-black px-2 py-1",children:"服务令牌"}),e("span",{className:"px-2 py-1 text-white/50",children:"Mutual TLS"}),e("span",{className:"px-2 py-1 text-white/50",children:"SSH"})]}),n("div",{className:"mt-2 flex items-center justify-between gap-2",children:[e("span",{className:"text-sm font-bold",children:"服务令牌"}),n("span",{className:d("relative rounded-md bg-blue-600 px-2 py-1 text-[10px] font-medium",me),children:["+ 创建服务令牌",e(re,{n:1})]})]}),n("div",{className:"mt-2.5 rounded-lg border border-white/15 bg-[#1a1a1a] p-2.5",children:[e("div",{className:"text-xs font-bold",children:"创建服务令牌"}),e("div",{className:"mt-2 text-[11px] font-medium",children:"服务令牌名称"}),e("div",{className:d(ot,"mt-1"),children:"basalt"}),e("div",{className:"mt-2 text-[11px] font-medium",children:"服务令牌时长"}),e(xe,{className:"mt-1",children:"1年"}),n("div",{className:"mt-2.5 flex justify-end gap-3 text-[10px] font-medium",children:[e("span",{className:"py-1",children:"取消"}),n("span",{className:d("relative rounded-md bg-blue-600 px-2 py-1",me),children:["生成令牌",e(re,{n:2})]})]})]})]})}function ln(){return n(Pe,{label:"服务令牌策略示例:操作选服务身份验证;包含选 Service Token 并选中刚创建的令牌",path:["Access 策略","创建新策略"],children:[e("div",{className:"text-xs font-semibold",children:"操作"}),n("div",{className:"relative mt-1",children:[e(xe,{className:me,children:"服务身份验证"}),e(re,{n:1})]}),e("div",{className:"mt-3 text-sm font-bold",children:"策略规则"}),e("div",{className:"mt-2",children:e(it,{badge:"或",badgeClass:"bg-violet-600",title:"包含",hint:"用户只需满足一条「包含」规则",children:n("div",{className:"relative flex flex-col gap-1.5 rounded-lg bg-[#2a2a2a] p-2",children:[e(re,{n:2}),e(xe,{children:"Service Token"}),e(xe,{clearable:!0,children:e(We,{children:"basalt"})})]})})})]})}function cn(){return n(Pe,{label:"CORS 设置示例:应用的其他设置页点 CORS 标头,打开绕过向源服务器发出的选项请求",path:["应用程序","你的应用名"],children:[e(nn,{active:"CORS 标头"}),e("div",{className:"mt-3 text-xs font-bold",children:"跨源服务器资源共享 (CORS) 设置"}),n("div",{className:"mt-1.5 rounded-lg border border-white/15 bg-white/[0.03] px-2.5 py-2",children:[n("div",{className:"flex items-center gap-2",children:[e("span",{className:"text-xs font-bold",children:"绕过向源服务器发出的选项请求"}),n("span",{className:"relative",children:[e("span",{className:d("block rounded",me),children:e(at,{on:!0})}),e(re,{n:2})]})]}),e("div",{className:"mt-0.5 text-[10px] text-white/75",children:"将所有选项请求直接发送到源服务器。这将删除此应用程序的所有现有 CORS 设置。"})]})]})}function mn({conn:t}){let[a,m]=r(0);return e(jn,{conn:t,onRetry:()=>m((c)=>c+1)},a)}function jn({conn:t,onRetry:a}){let m=ie(t.state).status==="open",[c,y]=r(),[C,B]=r(),[D,k]=r(),T=i(void 0);o(()=>{let M=new AbortController;if(T.current=M,y(void 0),B(void 0),m)k("load"),t.networkSettings(M.signal).then((P)=>{if(M.signal.aborted)return;y(P),k(void 0)},(P)=>{if(M.signal.aborted)return;let I=P instanceof Error&&"status"in P&&P.status===404;B(I?"当前服务版本不支持局域网设置,请更新服务端。":dn(P)),k(void 0)});return()=>M.abort()},[t,m]);async function g(M){let P=T.current;if(!P||P.signal.aborted||D)return;k("update"),B(void 0);try{let I=await t.saveNetworkSettings({lanEnabled:M},P.signal);if(P.signal.aborted)return;y(I)}catch(I){if(!P.signal.aborted)B(dn(I))}finally{if(!P.signal.aborted)k(void 0)}}if(!m)return e(W,{title:"开放局域网",description:"连接服务器后可查看网络设置。"});if(!c)return e(W,{title:"开放局域网",description:C??"正在读取网络设置…",children:C&&e(x,{size:"sm",onClick:a,children:"重试"})});return n(p,{children:[e(W,{title:"开放局域网",description:n("div",{className:"space-y-2",children:[e("p",{children:"设备需配对。HTTP 不加密,仅限可信网络。"}),c.disabledReason&&e("p",{children:c.disabledReason}),C&&e("p",{role:"alert",className:"text-danger",children:C})]}),children:e(kt,{label:"开放局域网",checked:c.settings.lanEnabled,onCheckedChange:g,disabled:!c.editable||D!==void 0})}),c.current.remote&&e(W,{title:"局域网连接地址",description:n("div",{className:"space-y-2",children:[e("p",{children:"其他设备使用配对码连接。"}),c.addresses.length===0&&e("p",{children:"未发现局域网 IPv4 地址,请检查网卡。"}),c.addresses.map((M)=>e(te,{"aria-label":`局域网地址 ${M.address}`,value:M.url,readOnly:!0,className:"font-mono",onFocus:(P)=>P.currentTarget.select()},M.address))]})})]})}function dn(t){return t instanceof Error?t.message:"网络设置请求失败,请重试。"}var Vn=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/,Kn="https://dash.cloudflare.com/",qn=2000,fn=15000,Jn={off:{label:"未连接",tone:"neutral"},starting:{label:"连接中",tone:"warning",pulse:!0},connected:{label:"已连接",tone:"success"},error:{label:"连接失败,重试中",tone:"danger",pulse:!0},"missing-binary":{label:"未安装 cloudflared",tone:"warning"}};function Qn(t){let a=et(t.state,(C)=>C.status==="open"),[m,c]=r(),y=m?.state==="connected";return o(()=>{if(!a)return;let C=!1,B=()=>void t.tunnelStatus().then((k)=>!C&&c(k)).catch(()=>!C&&c((k)=>k??null));B();let D=setInterval(B,y?fn:qn);return()=>{C=!0,clearInterval(D)}},[t,a,y]),[m,c]}function Yn(t){let[a,m]=r(),c=a?.expires;return o(()=>{let y=!1,C=()=>void t.pairingCode().then((k)=>!y&&m(k)).catch(()=>!y&&m(null));C();let B=setInterval(C,fn),D=c?setTimeout(C,Math.max(0,c-Date.now())+500):void 0;return()=>{y=!0,clearInterval(B),clearTimeout(D)}},[t,c]),[a,m]}function gn(t){w();let[a,m]=Qn(t.conn),c=et(t.conn.state,(X)=>X.server?.auth===!1),[y,C]=r(),[B,D]=r(""),[k,T]=r(),[g,M]=r(!1),[P,I]=r(!1),[O,A]=r(),u=e(ne,{title:"局域网访问",description:"通过可信局域网访问这台 Basalt。",children:e(mn,{conn:t.conn})}),h=e(ea,{conn:t.conn});if(!a)return n(p,{children:[h,u]});let G=y??a.mode==="token",S=Tl(B),R=S?El(S):void 0,L=(k??a.hostname??"").trim().toLowerCase(),N=Vn.test(L),{login:E,binary:U}=a,b=G?S!==void 0||a.hasToken:E.state==="done",F=!U?0:!b?1:2;async function f(X,Q){I(!0),A(void 0);try{m(await X()),Q?.()}catch(ae){A(ae instanceof Error?ae.message:String(ae))}finally{I(!1)}}let K=()=>f(()=>G?t.conn.saveTunnel({hostname:L,...S?{token:S}:{}}):t.conn.provisionTunnel({hostname:L}),()=>{D(""),T(void 0),C(void 0),M(!1)});async function q(){if(!await Qe({title:"删除远程访问配置?",description:"会断开隧道并删除 Basalt 保存的配置。Cloudflare 里的隧道和域名解析不会被删除。",action:"删除",danger:!0}))return;I(!0);try{m(await t.conn.removeTunnel()),C(void 0),M(!1)}catch(Q){z(Q,"删除失败")}finally{I(!1)}}let J="用你自己域名下的 Cloudflare 隧道,从外网访问这台 Basalt。";if(a.configured&&!g)return n(p,{children:[h,u,e(ne,{title:"Cloudflare 隧道",description:J,children:e(Zn,{status:a,busy:P,conn:t.conn,onChanged:m,onEdit:()=>M(!0),onRemove:()=>void q()})})]});return n(p,{children:[h,u,n(ne,{title:"Cloudflare 隧道",description:J,children:[c&&e("div",{className:"px-4 py-3",children:e(xa,{tone:"danger",children:"服务端用 --no-auth 关闭了认证,不能开启远程访问。"})}),e(W,{title:"安装 cloudflared",description:U?"已找到":a.install.command?n("span",{className:"mt-1.5 flex flex-col gap-1.5",children:[e("span",{children:"在运行 Basalt 的这台机器上执行,装好后自动检测:"}),e(un,{text:a.install.command,shell:!0})]}):"在运行 Basalt 的这台机器上安装,装好后自动检测",children:U?e(ct,{}):a.install.command?e(le,{className:"size-4 animate-spin text-faint"}):e(x,{asChild:!0,variant:"primary",size:"sm",children:n("a",{href:a.install.url,target:"_blank",rel:"noreferrer noopener",children:["安装文档",e(xt,{className:"size-3.5"})]})})}),G?n(W,{title:"隧道令牌",description:B&&!S?e("span",{className:"text-danger",children:"没找到令牌(以 eyJ 开头),请完整复制"}):S?`已识别隧道${R?` ${R.slice(0,8)}…`:""}`:a.hasToken?"已保存,留空沿用":n(p,{children:["把 Cloudflare 上创建隧道后给出的安装命令整段粘贴进来。",e(dt,{href:Kn,children:"打开 Cloudflare"})]}),children:[e(te,{type:"password",autoComplete:"off",spellCheck:!1,"aria-label":"隧道令牌或安装命令",placeholder:"cloudflared service install eyJ…",className:"w-64 max-w-full",value:B,disabled:c||!U,onChange:(X)=>D(X.target.value)}),b&&e(ct,{})]}):e(W,{title:"连接 Cloudflare 账号",description:E.state==="done"?"已授权":E.state==="waiting"?E.url?"在授权页面登录并选择你的域名,完成后这里自动继续":"正在准备授权链接…":E.state==="error"?e("span",{className:"text-danger",children:E.error}):"登录并选择你的域名,其余的 Basalt 自动完成",children:E.state==="done"?e(ct,{}):E.state==="waiting"?n(p,{children:[E.url?e(x,{asChild:!0,variant:"primary",size:"sm",children:n("a",{href:E.url,target:"_blank",rel:"noreferrer noopener",children:["打开授权页面",e(xt,{className:"size-3.5"})]})}):e(le,{className:"size-4 animate-spin text-faint"}),e(x,{variant:"ghost",size:"sm",onClick:()=>void f(()=>t.conn.cancelTunnelLogin()),children:"取消"})]}):e(x,{variant:F===1?"primary":"secondary",size:"sm",loading:P,disabled:c||!U,onClick:()=>void f(()=>t.conn.tunnelLogin()),children:E.state==="error"?"重试":"连接"})}),n(W,{title:"访问地址",description:O?e("span",{className:"text-danger",children:O}):L&&!N?e("span",{className:"text-danger",children:"格式不对,应形如 basalt.example.com"}):P&&F===2?"正在创建,通常需要几秒钟…":G?n("span",{className:"flex flex-col gap-1.5",children:[e("span",{children:"你在 Cloudflare 里给这条隧道配的主机名;隧道的服务地址要填:"}),e(un,{text:`http://localhost:${a.localPort}`})]}):"填你刚才授权的域名下的任意子域名",children:[e(te,{placeholder:"basalt.example.com","aria-label":"主机名",spellCheck:!1,autoCapitalize:"off",className:"w-56 max-w-full",value:k??a.hostname??"",disabled:c||!U||!b,onChange:(X)=>T(X.target.value)}),e(x,{variant:"primary",size:"sm",loading:P&&F===2,disabled:c||!U||!b||!N,onClick:()=>void K(),children:G?"保存并连接":"创建并连接"})]}),n("div",{className:"flex items-center justify-between gap-2 px-4 py-2.5",children:[e("button",{type:"button",className:"text-xs text-faint transition-colors hover:text-ink",onClick:()=>{C(!G),A(void 0)},children:G?"改用登录授权":"我已有隧道令牌"}),g&&e("button",{type:"button",className:"text-xs text-faint transition-colors hover:text-ink",onClick:()=>M(!1),children:"取消修改"})]})]})]})}var Xn={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"};function Zn(t){let{status:a}=t,m=Jn[a.state],c=a.publicURL??"",[y,C]=r(!1),[B,D]=r(!1);return n(p,{children:[e(W,{title:"隧道状态",description:a.error?e("span",{className:"text-danger",children:a.error}):a.state==="connected"?"用手机或另一台电脑打开下面的地址,输入配对码即可":"正在连接 Cloudflare…",children:n("span",{className:d("flex items-center gap-2 text-xs font-medium",Xn[m.tone]),children:[n("span",{className:"relative flex size-2",children:[m.pulse&&e("span",{className:"absolute inset-0 animate-ping rounded-full bg-current opacity-60"}),e("span",{className:"relative size-2 rounded-full bg-current"})]}),m.label]})}),n(W,{title:"公共地址",description:e("span",{className:"font-mono break-all",children:c}),children:[e(Ot,{text:c,label:"复制地址",size:"icon-sm"}),e(V,{asChild:!0,size:"icon-sm",label:"在新标签页打开",className:"text-faint",children:e("a",{href:c,target:"_blank",rel:"noreferrer noopener",children:e(Fn,{className:"size-3.5"})})})]}),n(W,{title:"Access 校验",description:a.access?a.access.teamDomain:"可选:在 Basalt 之前再加一道只认你的登录",children:[n("span",{className:d("flex items-center gap-1.5 text-xs",a.access?"text-dim":"text-faint"),children:[a.access?e(Un,{className:"size-3.5"}):e(yt,{className:"size-3.5"}),a.access?"已启用":"未启用"]}),e(x,{variant:"ghost",size:"sm",onClick:()=>D(!0),children:"配置引导"}),e(x,{variant:"secondary",size:"sm",onClick:()=>C(!y),children:a.access?"修改":"设置"})]}),e(ta,{status:a,open:B,onOpenChange:D}),y&&e(na,{status:a,conn:t.conn,onSaved:(k)=>{t.onChanged(k),C(!1)},onCancel:()=>C(!1)}),n(W,{title:"管理",description:"删除不会动 Cloudflare 里的隧道和域名解析",children:[n(x,{variant:"secondary",size:"sm",onClick:t.onEdit,children:[e(nt,{className:"size-3.5"}),"修改"]}),n(x,{variant:"danger-ghost",size:"sm",disabled:t.busy,onClick:t.onRemove,children:[e(pe,{className:"size-3.5"}),"删除"]})]})]})}function ea(t){let[a,m]=Yn(t.conn),[c,y]=r(!1);if(!a)return null;let C=`${a.code.slice(0,4)}-${a.code.slice(4)}`,B=new Date(a.expires).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});async function D(){y(!0);try{m(await t.conn.renewPairingCode())}catch(k){z(k,"更换配对码失败")}finally{y(!1)}}return e(ne,{title:"设备配对",description:"局域网与 Cloudflare 隧道连接共用此码。",children:n(W,{title:"配对码",description:`${B} 前有效,用一次即失效`,children:[e("code",{className:"font-mono text-sm font-medium tracking-wider text-ink",children:C}),e(Ot,{text:C,label:"复制配对码",size:"icon-sm"}),e(V,{size:"icon-sm",label:"换一个配对码",className:"text-faint",disabled:c,onClick:()=>void D(),children:e(ye,{className:d("size-3.5",c&&"animate-spin")})})]})})}function be(t){return n("li",{className:"flex items-start gap-2.5",children:[e("span",{"aria-hidden":!0,className:"flex size-5 shrink-0 items-center justify-center rounded-full bg-raised text-[11px] text-faint",children:t.index}),n("div",{className:"min-w-0 flex-1 text-[13px] leading-5 text-dim",children:[t.children,t.detail&&e("div",{className:"mt-0.5 text-xs text-faint",children:t.detail})]})]})}function ta(t){let a=(t.status.hostname??"").split("."),m=a.slice(-2).join("."),c=a.slice(0,-2).join("."),y=t.status.accessAppsURL?t.status.accessAppsURL.replace(/\/apps$/,"/service-credentials/service-tokens"):"https://one.dash.cloudflare.com/";return n(Zt,{open:t.open,onOpenChange:t.onOpenChange,title:"Cloudflare Access 配置引导",description:"按顺序在 Cloudflare 后台配置,最后把 AUD 标签填回 Basalt。",size:"lg",footer:n(p,{children:[e("div",{className:"flex-1 max-sm:hidden"}),e(x,{variant:"primary",onClick:()=>t.onOpenChange(!1),children:"知道了"})]}),children:[n("ol",{className:"flex list-none flex-col gap-4",children:[n(be,{index:1,detail:e(p,{children:"选「自托管和私有」,保持「公共 DNS」,点「继续使用」"}),children:["打开"," ",e(dt,{href:t.status.accessAppsURL??"https://one.dash.cloudflare.com/",children:"Cloudflare 应用程序"}),",点右上角「新建应用程序」"]}),e(be,{index:2,detail:t.status.hostname?n(p,{children:["你在上面设置的访问域名是 ",e("code",{className:"font-mono text-ink",children:t.status.hostname}),",拆成两栏填;路径留空"]}):e(p,{children:"先在上面设置访问域名,再按它拆成「子域」和「域」两栏;路径留空"}),children:t.status.hostname?n(p,{children:["表单里「子域」填 ",e("code",{className:"font-mono text-xs text-ink",children:c||"(留空)"}),",「域」下拉选"," ",e("code",{className:"font-mono text-xs text-ink",children:m})]}):e(p,{children:"表单里分别填「子域」和「域」"})}),e(be,{index:3,detail:n(p,{children:[e("div",{children:"对照下图:① 操作选「允许」;② 「包含」选「电子邮件」填你的邮箱;③ 「要求」选「登录方法」= GitHub。"}),e(an,{}),e("div",{className:"mt-1.5",children:"不使用 GitHub 时只保留「包含」;两条都放进「包含」会变成满足其一即可。"})]}),children:"在「Access 策略」里点「创建新策略」"}),e(be,{index:4,detail:n(p,{children:[e("div",{children:"对照下图:① 关闭「接受所有可用的标识提供程序」;② 只选 GitHub;③ 「应用即时身份验证」开启会直接跳 GitHub,关闭则停在只有 GitHub 按钮的登录页(图中为关闭)。设置完成后点「创建」。"}),e(sn,{})]}),children:"只允许 GitHub 登录时,配置「身份验证」"}),e(be,{index:5,detail:n(p,{children:[e("div",{children:"对照下图:先点 ①「AUD 标签」,再复制 ② 令牌下面的整串字符(不要点删除)。"}),e(on,{}),e("div",{className:"mt-1.5",children:"回到 Basalt 点「设置」粘贴;团队域名保存时自动识别。"})]}),children:"创建后进入应用的「其他设置」,点「AUD 标签」,复制「令牌」下的那串字符"})]}),n("div",{className:"mt-5 border-t border-line pt-4",children:[e("div",{className:"text-[13px] font-medium text-ink",children:"可选:让其他 Basalt 客户端也能连上"}),e("div",{className:"mt-0.5 text-xs text-faint",children:"只用浏览器打开访问域名时可以跳过。"}),n("ol",{className:"mt-3 flex list-none flex-col gap-4",children:[n(be,{index:6,detail:n(p,{children:[e("div",{children:"对照下图:① 点「创建服务令牌」;② 填名称、选时长后点「生成令牌」。"}),e(rn,{}),e("div",{className:"mt-1.5",children:"生成后复制 Client ID 和 Client Secret,Secret 只显示这一次。"})]}),children:["打开 ",e(dt,{href:y,children:"Cloudflare 服务令牌"})]}),e(be,{index:7,detail:n(p,{children:[e("div",{children:"对照下图:① 操作选「服务身份验证」;② 「包含」选「Service Token」,再选刚建的令牌。"}),e(ln,{}),e("div",{className:"mt-1.5",children:"原来的邮箱策略保留,两条并存。"})]}),children:"回到前面建的应用,在「Access 策略」里再点一次「创建新策略」"}),e(be,{index:8,detail:n(p,{children:[e("div",{children:"对照下图:① 点「CORS 标头」;② 打开「绕过向源服务器发出的选项请求」,点「保存」。"}),e(cn,{})]}),children:"在应用的「其他设置」里放行预检请求"}),e(be,{index:9,detail:e(p,{children:"展开「请求头」点「Cloudflare Access」,两个值分别粘贴 Client ID 和 Client Secret"}),children:"在另一个 Basalt 里「添加服务器」"})]})]})]})}function na(t){let[a,m]=r(t.status.access?.audience??""),[c,y]=r(t.status.access?.teamDomain??""),[C,B]=r(!1),[D,k]=r(!1),[T,g]=r();async function M(P){k(!0),g(void 0);try{t.onSaved(await t.conn.setTunnelAccess(P))}catch(I){g(I instanceof Error?I.message:String(I))}finally{k(!1)}}return n("div",{className:"border-t border-line",children:[n(W,{title:"AUD 标签",description:n(p,{children:[e("span",{className:"block",children:"在 Cloudflare 应用的「其他设置」→「AUD 标签」里复制「令牌」"}),e("button",{type:"button",className:"mt-1 text-left text-xs text-faint transition-colors hover:text-ink",onClick:()=>B(!C),children:C?"改用自动识别团队域名":"团队域名自动识别 · 识别不到?手动填写"})]}),children:[e(te,{className:"w-72 max-w-full",placeholder:"粘贴 AUD 标签","aria-label":"AUD 标签",spellCheck:!1,autoCapitalize:"off",value:a,onChange:(P)=>m(P.target.value)}),e(x,{variant:"primary",size:"sm",loading:D,disabled:!a.trim()||C&&!c.trim(),onClick:()=>void M({...C&&c.trim()?{teamDomain:c}:{},audience:a}),children:"保存"}),e(x,{variant:"ghost",size:"sm",onClick:t.onCancel,children:"取消"})]}),C&&e(W,{title:"团队域名",description:"仅在自动识别失败时填写",children:e(te,{className:"w-72 max-w-full",placeholder:"myteam.cloudflareaccess.com","aria-label":"团队域名",spellCheck:!1,autoCapitalize:"off",value:c,onChange:(P)=>y(P.target.value)})}),T&&e("div",{className:"px-4 pb-4",children:e(wt,{children:T})}),t.status.access&&e("div",{className:"flex justify-end px-4 pb-3",children:e(x,{variant:"danger-ghost",size:"sm",disabled:D,onClick:()=>void M(null),children:"关闭校验"})})]})}function ct(){return e("span",{className:"flex size-5 items-center justify-center rounded-full bg-success/15 text-success",role:"img","aria-label":"已完成",children:e(Z,{className:"size-3",strokeWidth:3})})}function un(t){return n("span",{className:"flex w-fit max-w-full items-center gap-2 rounded-lg bg-raised/50 py-0.5 pr-1 pl-3 transition-colors hover:bg-raised",children:[t.shell&&e("span",{"aria-hidden":!0,className:"font-mono text-[12.5px] text-faint select-none",children:"$"}),e("code",{className:"min-w-0 flex-1 font-mono text-[12.5px] leading-6 break-all text-ink",children:t.text}),e(Ot,{text:t.text,size:"icon-sm"})]})}function dt(t){return n("a",{href:t.href,target:"_blank",rel:"noreferrer noopener",className:"ml-1 inline-flex w-fit items-center gap-0.5 font-medium text-accent underline decoration-accent/30 underline-offset-4 transition-colors hover:text-accent-strong hover:decoration-accent",children:[t.children,e(xt,{className:"size-3.5"})]})}var aa=[{value:"auto",label:"自动检测 (Auto)",description:"Windows 优先探测 bash,未找到则回退 powershell;Unix 走 bash"},{value:"bash",label:"Bash",description:"使用 bash -c 执行(Git Bash / WSL / MSYS2 / Linux / macOS)"},{value:"powershell",label:"PowerShell",description:"使用 powershell -NoProfile -Command 执行"},{value:"cmd",label:"CMD",description:"使用 cmd.exe /c 执行"}];function sa(t){if(!t)return"—";return`v${t.version}(协议 v${t.protocol})`}function ia(t){if(!t)return"—";return t.auth?"需设备配对令牌":"免认证(--no-auth)"}function xn(t){let a=ie(t.conn.state),m=Ui[a.status],c=a.server,[y,C]=r(!1),[B,D]=r(!1),[k,T]=r(),[g,M]=r(!1),P=c?.shell??"auto";o(()=>{if(T(void 0),a.status!=="open")return;let u=!1;return t.conn.serverAutostart().then((h)=>{if(!u)T(h)},(h)=>{if(!u)z(h)}),()=>{u=!0}},[t.conn,a.status]);async function I(u){let h=u;C(!0);try{await t.conn.setServerShell(h)}catch(G){z(G)}finally{C(!1)}}async function O(u){M(!0);try{T(await t.conn.setServerAutostart(u))}catch(h){z(h)}finally{M(!1)}}async function A(){D(!0);try{await t.conn.restartServer(),se("已请求重启",{description:"所有对话空闲后服务会按原参数重启,稍后自动重新连接"})}catch(u){z(u)}finally{D(!1)}}return n(p,{children:[n(ne,{title:"当前远程服务器",description:`正在管理 ${$n(t.server)}(${t.server.url})`,children:[e(W,{title:"连接状态",description:a.error??t.server.url,children:n("span",{className:"inline-flex items-center gap-2 text-xs font-medium text-ink",children:[e("span",{className:d("size-2 rounded-full",m.dot)}),a.status==="open"&&c?e("span",{className:"font-mono",children:sa(c)}):m.label]})}),e(W,{title:"认证策略",description:"服务端是否要求配对设备令牌",children:n("span",{className:"inline-flex items-center gap-2 text-xs font-medium text-ink",children:[c&&e("span",{className:d("size-2 rounded-full",c.auth?"bg-success":"bg-warning")}),ia(c)]})})]}),n(ne,{title:"更新与启动",description:"服务端版本更新、重启与开机自启",children:[e(Pl,{conn:t.conn}),e(W,{title:"服务重启",description:"按原参数重启,等所有对话空闲后执行,不会中断进行中的对话",children:e(x,{size:"sm",loading:B,disabled:a.status!=="open",onClick:A,children:"重启服务"})}),e(W,{title:"开机自启",description:"当前用户登录系统后自动启动 Basalt;不影响正在运行的服务",children:e(kt,{label:"开机自启",checked:k?.enabled??!1,disabled:!k||g||a.status!=="open",onCheckedChange:(u)=>void O(u)})})]}),n(ne,{title:"运行环境",description:"服务端执行命令与解释定时任务时使用的环境",children:[e(W,{title:"执行 Shell",description:"服务端运行 bash 工具与后台长任务时调用的默认命令行解释器",children:e("div",{className:"w-56",children:e(Xt,{value:P,disabled:y,onValueChange:I,groups:[{options:aa.map((u)=>({value:u.value,label:u.label,description:u.description}))}]})})}),e(W,{title:"服务器时区",description:"远程自动化定时任务(Cron)按此时区解释",children:e("span",{className:"font-mono text-xs text-dim",children:c?.timezone??"—"})})]})]})}function vn(t){let a=ie(t.conn.state),m=t.devices;if(a.server?.auth===!1)return e(ne,{title:"已配对设备",description:"已获授权访问此远程服务器的客户端设备,可随时远程吊销",children:e(W,{title:"当前服务器未启用设备认证",description:"服务端以 --no-auth 启动,无需配对设备令牌"})});if(!m){let c=a.status==="open"?"正在读取已配对设备…":"连接服务器后可查看";return e(ne,{title:"已配对设备",description:"已获授权访问此远程服务器的客户端设备,可随时远程吊销",children:e(W,{title:"设备列表",description:c})})}if(m.length===0)return e(ne,{title:"已配对设备",description:"已获授权访问此远程服务器的客户端设备,可随时远程吊销",children:e(W,{title:"暂无已配对设备"})});return e(ne,{title:"已配对设备",description:"已获授权访问此远程服务器的客户端设备,可随时远程吊销",children:m.map((c)=>e(W,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:"truncate",children:c.name}),(c.current||c.id===t.server.id)&&e("span",{className:"rounded-md bg-raised px-1.5 py-0.5 font-normal text-[11px] text-dim",children:"当前设备"})]}),description:`最近活跃:${ft(c.lastSeen)} · 配对于 ${ft(c.created)}`,children:n(x,{size:"sm",variant:"danger-ghost",onClick:()=>t.onRevokeDevice(c),children:[e(pe,{className:"size-3.5"}),"吊销"]})},c.id))})}var Ee="浏览器设置(本地)",he="服务器设置(远程)",bn=[{value:"appearance",group:Ee,label:"外观",icon:e(ga,{}),render:()=>e(St,{})},{value:"notifications",group:Ee,label:"通知",icon:e(gt,{}),render:()=>e(Ct,{})},{value:"connections",group:Ee,label:"连接列表",icon:e($e,{}),render:(t)=>e(Tt,{...t})},{value:"shortcuts",group:Ee,label:"快捷键",icon:e(fa,{}),render:()=>e(Pt,{})},{value:"models",group:he,label:"模型",icon:e(fr,{}),render:(t)=>e(Ht,{...t})},{value:"plugins",group:he,label:"插件",icon:e(Mt,{}),render:(t)=>e(Jt,{conn:t.conn},t.server.id)},{value:"proxy",group:he,label:"代理",icon:e(Ge,{}),render:(t)=>e(Qt,{conn:t.conn},t.server.id)},{value:"database",group:he,label:"数据库",icon:e(hr,{}),render:(t)=>e(Et,{conn:t.conn,server:t.server})},{value:"server",group:he,label:"服务器",icon:e(zn,{}),render:(t)=>e(xn,{...t},t.server.id)},{value:"remote",group:he,label:"远程访问",icon:e(bt,{}),render:(t)=>e(gn,{conn:t.conn},t.server.id)},{value:"devices",group:he,label:"已配对设备",icon:e(Un,{}),render:(t)=>e(vn,{...t})}],_e=new WeakMap;function hn(t){return t==="search"?"database":t??"appearance"}function Lr(t){w();let[a,m]=r(()=>hn(t.initialTab)),[c,y]=r(t.initialTab===void 0),C=i(null),B=i(!1);o(()=>{if(y(t.initialTab===void 0),t.initialTab===void 0)B.current=!1;if(C.current?.scrollTo({top:0}),t.initialTab)m(hn(t.initialTab))},[t.initialTab]);let D=(u)=>{m(u),t.onTabChange?.(u)},k=ie(t.conn.state),[T,g]=r(()=>_e.get(t.conn)??null),M=[];for(let u of k.plugins){if(u.status!=="enabled")continue;for(let h of u.web??[]){let G=h.view;if(h.kind!=="tab"||!G)continue;let S=h.id==="settings"?u.id:h.id;M.push({value:S,group:he,label:h.title,icon:Ml(h.icon),render:(R)=>e(gs,{pluginID:u.id,viewID:G,connection:R.conn},`${u.id}-${h.id}`)})}}let P=[...bn.slice(0,5),...M,...bn.slice(5)];o(()=>{let u=_e.get(t.conn)??null;if(g(u),k.status!=="open"||k.server?.auth===!1)return;let h=!1;return t.conn.devices().then((G)=>{if(_e.set(t.conn,G),!h)g(G)}).catch(()=>{}),()=>{h=!0}},[t.conn,k.status,k.server?.auth]);let I=async(u)=>{if(!await Qe({title:`吊销设备「${u.name}」?`,description:"吊销后该设备的令牌立即失效,需重新配对才能连接此服务器。",action:"吊销",danger:!0}))return;try{await t.conn.revokeDevice(u.id),g((G)=>{let S=G?.filter((R)=>R.id!==u.id)??null;if(S)_e.set(t.conn,S);return S})}catch(G){z(G)}},O=P.find((u)=>u.value===a)??P[0],A={...t,devices:T,onRevokeDevice:(u)=>void I(u)};return e(ii,{className:"@container/settings",viewportClassName:"[scrollbar-gutter:stable]",viewportRef:C,children:n("div",{className:"mx-auto max-w-4xl animate-fade px-4 pt-3 pb-10 sm:px-6 md:pt-10 md:pb-16",children:[n("div",{className:"mb-6 flex min-h-10 items-center gap-1 md:mb-8",children:[!c&&e(V,{label:"返回设置分类",className:"-ml-2 size-10 rounded-full @min-[640px]/settings:hidden",onClick:()=>{if(B.current){B.current=!1,window.history.back();return}y(!0),t.onTabChange?.(void 0)},children:e(vt,{className:"size-5"})}),n("h1",{className:"min-w-0 truncate text-xl font-semibold tracking-tight md:font-serif md:text-[1.75rem] md:font-normal",children:[e("span",{className:d(!c&&"@max-[640px]/settings:hidden"),children:"设置"}),!c&&e("span",{className:"@min-[640px]/settings:hidden",children:O?.label})]})]}),c&&e("nav",{"aria-label":"设置分类",className:"space-y-6 @min-[640px]/settings:hidden",children:[Ee,he].map((u)=>n("section",{children:[e("h2",{className:l("settings.groupTitle","mb-2.5 px-0.5"),children:u}),e("div",{className:l("settings.groupBox"),children:P.filter((h)=>h.group===u).map((h)=>n("button",{type:"button",onClick:()=>{m(h.value),y(!1),B.current=t.onTabChange!==void 0,t.onTabChange?.(h.value,!0)},className:"flex min-h-13 w-full items-center gap-3 px-4 text-left text-[15px] text-ink transition-colors active:bg-raised [&_svg]:size-[18px] [&_svg]:shrink-0",children:[e("span",{className:"flex items-center text-dim",children:h.icon}),e("span",{className:"min-w-0 flex-1 truncate",children:h.label}),e(Nt,{className:"text-faint"})]},h.value))})]},u))}),n("div",{className:d("flex items-start",c&&"@max-[640px]/settings:hidden"),children:[e("aside",{className:"settings-rail shrink-0",children:e("nav",{"aria-label":"设置分类",className:"flex w-48 flex-col gap-1",children:P.map((u,h)=>{let G=u.value===a,S=u.group&&(h===0||P[h-1]?.group!==u.group);return n(Ke,{children:[S&&e("div",{className:d("px-2.5 pb-1 text-[11px] font-medium tracking-wide text-faint",h>0&&"mt-3.5"),children:u.group}),n("button",{type:"button",onClick:()=>D(u.value),className:l("sidebar.navItem","px-2.5 text-[13.5px]",G?"bg-raised font-medium text-ink shadow-[inset_0_1px_0_oklch(1_0_0/0.06)]":"text-dim hover:bg-raised/60 hover:text-ink"),children:[u.icon&&e("span",{className:d("relative flex items-center [&_svg]:size-4",G?"text-ink":"text-faint"),children:u.icon}),e("span",{className:"truncate",children:u.label})]})]},u.value)})})}),e("div",{className:"min-w-0 flex-1 animate-fade space-y-6 @container/panel",children:O?.render(A)},a)]})]})})}export{Lr as Settings};
|
package/web/chunk-rpjzwknn.js.br
DELETED
|
Binary file
|
package/web/chunk-rpjzwknn.js.gz
DELETED
|
Binary file
|
package/web/chunk-s7h50avx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.freeze(JSON.parse('{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\'(?!\')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"\'\'","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}')),Wi=[e];
|
|
2
|
-
export{Wi};
|
package/web/chunk-s7h50avx.js.br
DELETED
|
Binary file
|
package/web/chunk-s7h50avx.js.gz
DELETED
|
Binary file
|
package/web/chunk-sk3065js.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{re}from"./chunk-4r0dvjrr.js";import{t,a,He,B,S,G,A,R,I,L,D,P,N,Q,X}from"./chunk-xp2zpmpp.js";import{fe}from"./chunk-et1nm6h1.js";var ut=t(()=>({domains:new Map,transitions:[]}),"createDefaultData"),et=ut(),At=t(()=>et.domains,"getDomains"),Bt=t(()=>et.transitions,"getTransitions"),St=t((e)=>{if(!e)return;for(let n of e){let o=n.domain,r=(n.items??[]).map((l)=>({label:l.label}));et.domains.set(o,{name:o,items:r})}},"setDomains"),Mt=t((e)=>{if(!e)return;et.transitions=e.filter((n)=>{if(n.from===n.to)return a.warn(`Cynefin: self-loop transition on domain "${n.from}" is not meaningful and will be skipped.`),!1;return!0}).map((n)=>({from:n.from,to:n.to,label:n.label||void 0}))},"setTransitions"),zt=t(()=>X({...B.cynefin,...S().cynefin}),"getConfig"),Lt=t(()=>{A(),et=ut()},"clear"),at={getDomains:At,getTransitions:Bt,setDomains:St,setTransitions:Mt,getConfig:zt,clear:Lt,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},Nt=t((e)=>{re(e,at),at.setDomains(e.domains),at.setTransitions(e.transitions)},"populate"),Pt={parse:t(async(e)=>{let n=await fe("cynefin",e);a.debug(n),Nt(n)},"parse")};function tt(e){let n=e+1831565813|0;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}t(tt,"seededRandom");function gt(e){let n=0;for(let o=0;o<e.length;o++){let r=e.charCodeAt(o);n=(n<<5)-n+r,n|=0}return n}t(gt,"hashString");function ht(e,n){if(typeof e==="number"&&Number.isFinite(e)&&e!==0)return e;return gt(n)}t(ht,"resolveSeed");function xt(e,n,o,r){let l=e/2,p=r??e*0.015,nt=7,q=n/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*17)*p*2-p;f.push({x:l+y,y:i*q})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.y+c.y)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*31+7),U=y.x+h,Z=m,J=c.x-h;T+=` C${U},${Z} ${J},${m} ${c.x},${c.y}`}return T}t(xt,"generateFoldPath");function $t(e,n,o,r){let l=n/2,p=r??n*0.015,nt=7,q=e/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*23)*p*2-p;f.push({x:i*q,y:l+y})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.x+c.x)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*37+11),U=m,Z=y.y+h,J=m,E=c.y-h;T+=` C${U},${Z} ${J},${E} ${c.x},${c.y}`}return T}t($t,"generateHorizontalBoundary");function bt(e,n){let o=e/2,r=n*0.5,l=n,p=e*0.03;return[`M${o},${r}`,`C${o+p},${r+(l-r)*0.2}`,`${o-p*1.5},${r+(l-r)*0.55}`,`${o+p*0.5},${r+(l-r)*0.75}`,`C${o-p},${r+(l-r)*0.85}`,`${o+p*0.3},${r+(l-r)*0.95}`,`${o},${l}`].join(" ")}t(bt,"generateCliffPath");function wt(e,n,o,r){return[`M${e-o},${n}`,`A${o},${r} 0 1,1 ${e+o},${n}`,`A${o},${r} 0 1,1 ${e-o},${n}`,"Z"].join(" ")}t(wt,"generateConfusionPath");var yt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},It=t((e,n)=>{let o=e/2,r=n/2;return{complex:{cx:o/2,cy:r/2,x:0,y:0,w:o,h:r},complicated:{cx:o+o/2,cy:r/2,x:o,y:0,w:o,h:r},chaotic:{cx:o/2,cy:r+r/2,x:0,y:r,w:o,h:r},clear:{cx:o+o/2,cy:r+r/2,x:o,y:r,w:o,h:r},confusion:{cx:o,cy:r,x:o*0.7,y:r*0.7,w:o*0.6,h:r*0.6}}},"getDomainLayouts"),Wt=t(()=>{let e=He(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinDomainColors"),st=3,Rt=t((e,n,o,r)=>{let l=r.db,p=l.getDomains(),nt=l.getTransitions(),q=l.getDiagramTitle(),f=l.getAccTitle(),T=l.getAccDescription(),i=l.getConfig(),y=Wt();a.debug("Rendering Cynefin diagram");let{width:c,height:m,padding:C,showDomainDescriptions:h,boundaryAmplitude:U}=i,Z=c+C*2,J=m+C*2,E={complex:y.complexBg,complicated:y.complicatedBg,clear:y.clearBg,chaotic:y.chaoticBg,confusion:y.confusionBg},M=Q(n);if(G(M,J,Z,i.useMaxWidth??!0),M.attr("viewBox",`0 0 ${Z} ${J}`),f)M.append("title").text(f);if(T)M.append("desc").text(T);let z=M.append("g").attr("transform",`translate(${C}, ${C})`),K=It(c,m),ct=ht(i.seed,n),Ct=z.append("g").attr("class","cynefin-backgrounds"),rt=["complex","complicated","chaotic","clear"];for(let d of rt){let s=K[d];Ct.append("rect").attr("class","cynefinDomain").attr("x",s.x).attr("y",s.y).attr("width",s.w).attr("height",s.h).attr("fill",E[d]).attr("fill-opacity",0.4).attr("stroke","none")}let it=z.append("g").attr("class","cynefin-boundaries");it.append("path").attr("class","cynefinBoundary").attr("d",xt(c,m,ct,U)).attr("fill","none"),it.append("path").attr("class","cynefinBoundary").attr("d",$t(c,m,ct+100,U)).attr("fill","none"),it.append("path").attr("class","cynefinCliff").attr("d",bt(c,m)).attr("fill","none");let vt=c*0.15,Dt=m*0.15;z.append("path").attr("class","cynefinConfusion").attr("d",wt(c/2,m/2,vt,Dt)).attr("fill",E.confusion).attr("fill-opacity",0.5);let lt=z.append("g").attr("class","cynefin-labels");for(let d of rt){let s=K[d];lt.append("text").attr("class","cynefinDomainLabel").attr("x",s.cx).attr("y",h?s.cy-30:s.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d.charAt(0).toUpperCase()+d.slice(1))}if(lt.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?m/2-10:m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let d=z.append("g").attr("class","cynefin-subtitles");for(let s of rt){let g=K[s],u=yt[s];d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}d.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",m/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(yt.confusion.practice)}let dt=z.append("g").attr("class","cynefin-items"),W=26,ft=10,kt=["complex","complicated","chaotic","clear","confusion"];for(let d of kt){let s=p.get(d);if(!s||s.items.length===0)continue;let g=K[d],u=d==="confusion",H=s.items,Y=0;if(u&&s.items.length>st)Y=s.items.length-st,H=s.items.slice(0,st);let F;if(u){let b=h?22:14;F=g.cy+b}else F=g.cy+(h?25:15);if([...H].forEach((b,V)=>{let v=F+V*(W+4),_=dt.append("g"),O=_.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(b.label),w=b.label.length*7,x=O.node();if(x&&typeof x.getBBox==="function"){let ot=x.getBBox();if(ot.width>0)w=ot.width}let k=w+ft*2,j=g.cx-k/2;_.attr("transform",`translate(${j}, ${v})`),_.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",k).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.95),O.attr("x",k/2).attr("y",W/2)}),Y>0){let b=F+H.length*(W+4),V=`+${Y} more`,v=dt.append("g"),_=v.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(V),O=V.length*7,w=_.node();if(w&&typeof w.getBBox==="function"){let j=w.getBBox();if(j.width>0)O=j.width}let x=O+ft*2,k=g.cx-x/2;v.attr("transform",`translate(${k}, ${b})`),v.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.6),_.attr("x",x/2).attr("y",W/2)}}if(nt.length>0){let d=M.select("defs").empty()?M.append("defs"):M.select("defs"),s=`cynefin-arrow-${n}`;d.append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let g=z.append("g").attr("class","cynefin-arrows");nt.forEach((u)=>{let H=K[u.from],Y=K[u.to];if(!H||!Y)return;if(u.from===u.to){a.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}let{cx:F,cy:b}=H,{cx:V,cy:v}=Y,_=(F+V)/2,O=(b+v)/2,w=V-F,x=v-b,k=Math.sqrt(w*w+x*x),j=k*0.15,ot=-x/k,Tt=w/k,mt=_+ot*j,pt=O+Tt*j;if(g.append("path").attr("class","cynefinArrowLine").attr("d",`M${F},${b} Q${mt},${pt} ${V},${v}`).attr("fill","none").attr("marker-end",`url(#${s})`),u.label)g.append("text").attr("class","cynefinArrowLabel").attr("x",mt).attr("y",pt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}if(q)z.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-C/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(q)},"draw"),Ft={draw:Rt},Vt=t(()=>{let e=He(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinTheme"),_t=t(()=>{let e=Vt();return`
|
|
2
|
-
.cynefinDomain {
|
|
3
|
-
stroke: none;
|
|
4
|
-
}
|
|
5
|
-
.cynefinDomainLabel {
|
|
6
|
-
font-size: ${e.domainFontSize}px;
|
|
7
|
-
font-weight: bold;
|
|
8
|
-
fill: ${e.labelColor};
|
|
9
|
-
}
|
|
10
|
-
.cynefinSubtitle {
|
|
11
|
-
font-size: ${e.itemFontSize-1}px;
|
|
12
|
-
fill: ${e.textColor};
|
|
13
|
-
font-style: italic;
|
|
14
|
-
}
|
|
15
|
-
.cynefinItem {
|
|
16
|
-
fill-opacity: 0.95;
|
|
17
|
-
stroke: ${e.boundaryColor};
|
|
18
|
-
stroke-width: 1;
|
|
19
|
-
}
|
|
20
|
-
.cynefinItemText {
|
|
21
|
-
font-size: ${e.itemFontSize}px;
|
|
22
|
-
fill: ${e.textColor};
|
|
23
|
-
}
|
|
24
|
-
.cynefinItemOverflow {
|
|
25
|
-
fill-opacity: 0.6;
|
|
26
|
-
stroke: ${e.boundaryColor};
|
|
27
|
-
stroke-width: 1;
|
|
28
|
-
stroke-dasharray: 3 2;
|
|
29
|
-
}
|
|
30
|
-
.cynefinBoundary {
|
|
31
|
-
stroke: ${e.boundaryColor};
|
|
32
|
-
stroke-width: ${e.boundaryWidth};
|
|
33
|
-
stroke-dasharray: 6 3;
|
|
34
|
-
}
|
|
35
|
-
.cynefinCliff {
|
|
36
|
-
stroke: ${e.cliffColor};
|
|
37
|
-
stroke-width: ${e.cliffWidth};
|
|
38
|
-
}
|
|
39
|
-
.cynefinConfusion {
|
|
40
|
-
stroke: ${e.boundaryColor};
|
|
41
|
-
stroke-width: 1.5;
|
|
42
|
-
stroke-dasharray: 4 2;
|
|
43
|
-
}
|
|
44
|
-
.cynefinArrowLine {
|
|
45
|
-
stroke: ${e.arrowColor};
|
|
46
|
-
stroke-width: ${e.arrowWidth};
|
|
47
|
-
fill: none;
|
|
48
|
-
}
|
|
49
|
-
.cynefinArrowHead {
|
|
50
|
-
fill: ${e.arrowColor};
|
|
51
|
-
stroke: none;
|
|
52
|
-
}
|
|
53
|
-
.cynefinArrowLabel {
|
|
54
|
-
font-size: ${e.itemFontSize-1}px;
|
|
55
|
-
fill: ${e.textColor};
|
|
56
|
-
}
|
|
57
|
-
.cynefinTitle {
|
|
58
|
-
font-size: ${e.domainFontSize+2}px;
|
|
59
|
-
font-weight: bold;
|
|
60
|
-
fill: ${e.labelColor};
|
|
61
|
-
}
|
|
62
|
-
`},"styles"),Et=_t,Ut={parser:Pt,db:at,renderer:Ft,styles:Et};export{Ut as diagram};
|
package/web/chunk-sk3065js.js.br
DELETED
|
Binary file
|
package/web/chunk-sk3065js.js.gz
DELETED
|
Binary file
|
package/web/chunk-sk47kk5j.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ci}from"./chunk-p76f6cf4.js";export{ci as default};
|
package/web/chunk-sk47kk5j.js.br
DELETED
|
Binary file
|
package/web/chunk-sk47kk5j.js.gz
DELETED
|
Binary file
|
package/web/chunk-smywa1zw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{An,Cr,Rn,Ki}from"./chunk-89crtpnw.js";import{Ln}from"./chunk-9y9nwaqj.js";import{Mn,ja,ea,yt,qa}from"./chunk-xp2zpmpp.js";function s(r,n){return r==null||n==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function x(r,n){return r==null||n==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function _a(r){let n,e,t;if(r.length!==2)n=s,e=(f,c)=>s(r(f),c),t=(f,c)=>r(f)-c;else n=r===s||r===x?r:O,e=r,t=r;function o(f,c,i=0,p=f.length){if(i<p){if(n(c,c)!==0)return p;do{let l=i+p>>>1;if(e(f[l],c)<0)i=l+1;else p=l}while(i<p)}return i}function a(f,c,i=0,p=f.length){if(i<p){if(n(c,c)!==0)return p;do{let l=i+p>>>1;if(e(f[l],c)<=0)i=l+1;else p=l}while(i<p)}return i}function u(f,c,i=0,p=f.length){let l=o(f,c,i,p-1);return l>i&&t(f[l-1],c)>-t(f[l],c)?l-1:l}return{left:o,center:u,right:a}}function O(){return 0}function y(r){return r===null?NaN:+r}var V=_a(s),{right:T,left:ir}=V,or=_a(y).center,z=T;var E=Math.sqrt(50),G=Math.sqrt(10),H=Math.sqrt(2);function g(r,n,e){let t=(n-r)/Math.max(0,e),o=Math.floor(Math.log10(t)),a=t/Math.pow(10,o),u=a>=E?10:a>=G?5:a>=H?2:1,f,c,i;if(o<0){if(i=Math.pow(10,-o)/u,f=Math.round(r*i),c=Math.round(n*i),f/i<r)++f;if(c/i>n)--c;i=-i}else{if(i=Math.pow(10,o)*u,f=Math.round(r/i),c=Math.round(n/i),f*i<r)++f;if(c*i>n)--c}if(c<f&&0.5<=e&&e<2)return g(r,n,e*2);return[f,c,i]}function v(r,n,e){if(n=+n,r=+r,e=+e,!(e>0))return[];if(r===n)return[r];let t=n<r,[o,a,u]=t?g(n,r,e):g(r,n,e);if(!(a>=o))return[];let f=a-o+1,c=Array(f);if(t)if(u<0)for(let i=0;i<f;++i)c[i]=(a-i)/-u;else for(let i=0;i<f;++i)c[i]=(a-i)*u;else if(u<0)for(let i=0;i<f;++i)c[i]=(o+i)/-u;else for(let i=0;i<f;++i)c[i]=(o+i)*u;return c}function M(r,n,e){return n=+n,r=+r,e=+e,g(r,n,e)[2]}function mi(r,n,e){n=+n,r=+r,e=+e;let t=n<r,o=t?M(n,r,e):M(r,n,e);return(t?-1:1)*(o<0?1/-o:o)}function N(r,n){if(!n)n=[];var e=r?Math.min(n.length,r.length):0,t=n.slice(),o;return function(a){for(o=0;o<e;++o)t[o]=r[o]*(1-a)+n[o]*a;return t}}function B(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function P(r,n){var e=n?n.length:0,t=r?Math.min(e,r.length):0,o=Array(t),a=Array(e),u;for(u=0;u<t;++u)o[u]=h(r[u],n[u]);for(;u<e;++u)a[u]=n[u];return function(f){for(u=0;u<t;++u)a[u]=o[u](f);return a}}function w(r,n){var e=new Date;return r=+r,n=+n,function(t){return e.setTime(r*(1-t)+n*t),e}}function k(r,n){var e={},t={},o;if(r===null||typeof r!=="object")r={};if(n===null||typeof n!=="object")n={};for(o in n)if(o in r)e[o]=h(r[o],n[o]);else t[o]=n[o];return function(a){for(o in e)t[o]=e[o](a);return t}}function h(r,n){var e=typeof n,t;return n==null||e==="boolean"?ja(n):(e==="number"?yt:e==="string"?(t=Mn(n))?(n=t,ea):qa:n instanceof Mn?ea:n instanceof Date?w:B(n)?N:Array.isArray(n)?P:typeof n.valueOf!=="function"&&typeof n.toString!=="function"||isNaN(n)?k:yt)(r,n)}function A(r,n){return r=+r,n=+n,function(e){return Math.round(r*(1-e)+n*e)}}function R(r){return Math.max(0,-An(Math.abs(r)))}function S(r,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(An(n)/3)))*3-An(Math.abs(r)))}function j(r,n){return r=Math.abs(r),n=Math.abs(n)-r,Math.max(0,An(n)-An(r))+1}function F(r){return function(){return r}}function q(r){return+r}var C=[0,1];function d(r){return r}function D(r,n){return(n-=r=+r)?function(e){return(e-r)/n}:F(isNaN(n)?NaN:0.5)}function J(r,n){var e;if(r>n)e=r,r=n,n=e;return function(t){return Math.max(r,Math.min(n,t))}}function K(r,n,e){var t=r[0],o=r[1],a=n[0],u=n[1];if(o<t)t=D(o,t),a=e(u,a);else t=D(t,o),a=e(a,u);return function(f){return a(t(f))}}function Q(r,n,e){var t=Math.min(r.length,n.length)-1,o=Array(t),a=Array(t),u=-1;if(r[t]<r[0])r=r.slice().reverse(),n=n.slice().reverse();while(++u<t)o[u]=D(r[u],r[u+1]),a[u]=e(n[u],n[u+1]);return function(f){var c=z(r,f,1,t)-1;return a[c](o[c](f))}}function Xi(r,n){return n.domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown())}function U(){var r=C,n=C,e=h,t,o,a,u=d,f,c,i;function p(){var m=Math.min(r.length,n.length);if(u!==d)u=J(r[0],r[m-1]);return f=m>2?Q:K,c=i=null,l}function l(m){return m==null||isNaN(m=+m)?a:(c||(c=f(r.map(t),n,e)))(t(u(m)))}return l.invert=function(m){return u(o((i||(i=f(n,r.map(t),yt)))(m)))},l.domain=function(m){return arguments.length?(r=Array.from(m,q),p()):r.slice()},l.range=function(m){return arguments.length?(n=Array.from(m),p()):n.slice()},l.rangeRound=function(m){return n=Array.from(m),e=A,p()},l.clamp=function(m){return arguments.length?(u=m?!0:d,p()):u!==d},l.interpolate=function(m){return arguments.length?(e=m,p()):e},l.unknown=function(m){return arguments.length?(a=m,l):a},function(m,L){return t=m,o=L,p()}}function fi(){return U()(d,d)}function I(r,n,e,t){var o=mi(r,n,e),a;switch(t=Cr(t==null?",f":t),t.type){case"s":{var u=Math.max(Math.abs(r),Math.abs(n));if(t.precision==null&&!isNaN(a=S(o,u)))t.precision=a;return Ki(t,u)}case"":case"e":case"g":case"p":case"r":{if(t.precision==null&&!isNaN(a=j(o,Math.max(Math.abs(r),Math.abs(n)))))t.precision=a-(t.type==="e");break}case"f":case"%":{if(t.precision==null&&!isNaN(a=R(o)))t.precision=a-(t.type==="%")*2;break}}return Rn(t)}function W(r){var n=r.domain;return r.ticks=function(e){var t=n();return v(t[0],t[t.length-1],e==null?10:e)},r.tickFormat=function(e,t){var o=n();return I(o[0],o[o.length-1],e==null?10:e,t)},r.nice=function(e){if(e==null)e=10;var t=n(),o=0,a=t.length-1,u=t[o],f=t[a],c,i,p=10;if(f<u)i=u,u=f,f=i,i=o,o=a,a=i;while(p-- >0){if(i=M(u,f,e),i===c)return t[o]=u,t[a]=f,n(t);else if(i>0)u=Math.floor(u/i)*i,f=Math.ceil(f/i)*i;else if(i<0)u=Math.ceil(u*i)/i,f=Math.floor(f*i)/i;else break;c=i}return r},r}function fn(){var r=fi();return r.copy=function(){return Xi(r,fn())},Ln.apply(r,arguments),W(r)}
|
|
2
|
-
export{_a,mi,Xi,fi,fn};
|
package/web/chunk-smywa1zw.js.br
DELETED
|
Binary file
|
package/web/chunk-smywa1zw.js.gz
DELETED
|
Binary file
|
package/web/chunk-t6agpn2z.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.freeze(JSON.parse(`{"displayName":"Dockerfile","name":"docker","patterns":[{"captures":{"1":{"name":"keyword.other.special-method.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*\\\\b(?i:(FROM))\\\\b.*?\\\\b(?i:(AS))\\\\b"},{"captures":{"1":{"name":"keyword.control.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\\\s"},{"captures":{"1":{"name":"keyword.operator.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(CMD|ENTRYPOINT))\\\\s"},{"include":"#string-character-escape"},{"begin":"\\"","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"\\"","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.double.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"begin":"'","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.single.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.dockerfile"},"2":{"name":"comment.line.number-sign.dockerfile"},"3":{"name":"punctuation.definition.comment.dockerfile"}},"match":"^(\\\\s*)((#).*$\\\\n?)"}],"repository":{"string-character-escape":{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}},"scopeName":"source.dockerfile","aliases":["dockerfile"]}`)),e=[n];export{e as default};
|
package/web/chunk-t6agpn2z.js.br
DELETED
|
Binary file
|
package/web/chunk-t6agpn2z.js.gz
DELETED
|
Binary file
|