@bkm016/basalt 0.1.21 → 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-chfzk1fx.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-03b5jh31.js +0 -5
- package/chunk-0b2brwjc.js +0 -3
- package/chunk-0x0459qp.js +0 -2
- package/chunk-16yz5ebn.js +0 -2
- package/chunk-1kdd7xry.js +0 -2
- package/chunk-225dyk1y.js +0 -8
- package/chunk-2fymxwe7.js +0 -7
- package/chunk-2m2sa0bp.js +0 -2
- package/chunk-35y6nf6k.js +0 -12
- package/chunk-3phf8eg6.js +0 -3
- package/chunk-3qxq264t.js +0 -2
- package/chunk-3r38vbt5.js +0 -2
- package/chunk-3s8rpc1w.js +0 -3
- package/chunk-3t8wz9w8.js +0 -3
- package/chunk-43qf44t8.js +0 -3
- package/chunk-49hsqsht.js +0 -2
- package/chunk-4fbj3k59.js +0 -3
- package/chunk-4fj91gt1.js +0 -4
- package/chunk-51a0843g.js +0 -3
- package/chunk-5h59tby8.js +0 -470
- package/chunk-5m51j40e.js +0 -7
- package/chunk-5mt8xxex.js +0 -3
- package/chunk-85sjfyjd.js +0 -2
- package/chunk-97ntcrm7.js +0 -2
- package/chunk-9qzyn98b.js +0 -3
- package/chunk-9t3v8c3m.js +0 -2
- package/chunk-9w1m9av8.js +0 -11
- package/chunk-9x28stv0.js +0 -2
- package/chunk-a3fpx924.js +0 -3
- package/chunk-ak95r8mq.js +0 -3556
- package/chunk-ak9rkrf3.js +0 -5
- package/chunk-b516bp7n.js +0 -3
- package/chunk-bn1aaewd.js +0 -59
- package/chunk-c5ydt3vq.js +0 -3
- package/chunk-cjh5h31t.js +0 -11
- package/chunk-cr0tqn6j.js +0 -3
- package/chunk-e0ytnnwt.js +0 -3
- package/chunk-e2m8ap8f.js +0 -3
- package/chunk-e8xywvv4.js +0 -3
- package/chunk-enmrpjpt.js +0 -3
- package/chunk-ewaskman.js +0 -2
- package/chunk-feyt85gg.js +0 -2
- package/chunk-fj56fznw.js +0 -3
- package/chunk-ftg4b5pa.js +0 -3
- package/chunk-g6cc7ac1.js +0 -3
- package/chunk-gdx1j9c5.js +0 -10
- package/chunk-gs5aebwh.js +0 -2
- package/chunk-h00wjps7.js +0 -4
- package/chunk-h1fwdz4h.js +0 -2
- package/chunk-hhxtc9jn.js +0 -2
- package/chunk-hrn2ss1a.js +0 -2
- package/chunk-jhwb962k.js +0 -15
- package/chunk-jpwr1sd2.js +0 -3
- package/chunk-jy07y4pv.js +0 -7
- package/chunk-k9x1r69s.js +0 -18
- package/chunk-kb5h9rmb.js +0 -2
- package/chunk-kgnd32hn.js +0 -4
- package/chunk-kka12j10.js +0 -3
- package/chunk-kypdthjg.js +0 -2
- package/chunk-m9386732.js +0 -16
- package/chunk-np123myw.js +0 -12
- package/chunk-ntntwtxn.js +0 -5
- package/chunk-qn70tm91.js +0 -20
- package/chunk-qtgc74er.js +0 -5
- package/chunk-qz6ybxjg.js +0 -39
- package/chunk-r36b12zb.js +0 -2
- package/chunk-re8n2te5.js +0 -2
- package/chunk-rpbxbb92.js +0 -10
- package/chunk-rqrjzz73.js +0 -2
- package/chunk-scy1p7x2.js +0 -9
- package/chunk-sq5ppnr3.js +0 -25
- package/chunk-syhhzr1j.js +0 -3
- package/chunk-t3mq64c8.js +0 -3
- package/chunk-tmq8ktys.js +0 -3
- package/chunk-ttv805sb.js +0 -390
- package/chunk-v878x8zr.js +0 -7
- package/chunk-ve1b6vg6.js +0 -2
- package/chunk-vzrmdaba.js +0 -2
- package/chunk-w3n8wm44.js +0 -2
- package/chunk-w3skxmvx.js +0 -3
- package/chunk-wxzk086k.js +0 -2
- package/chunk-x1y4s01x.js +0 -31
- package/chunk-y8mf9tcj.js +0 -25
- package/chunk-z4g2q36h.js +0 -3
- package/chunk-zkjnt298.js +0 -3
- package/web/chunk-07dd0jed.js +0 -78
- package/web/chunk-07dd0jed.js.br +0 -0
- package/web/chunk-07dd0jed.js.gz +0 -0
- package/web/chunk-0hvyq55w.js +0 -1
- package/web/chunk-0hvyq55w.js.br +0 -0
- package/web/chunk-0hvyq55w.js.gz +0 -0
- package/web/chunk-0q5drhbk.js +0 -1
- package/web/chunk-0q5drhbk.js.br +0 -0
- package/web/chunk-0q5drhbk.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-0w6ta3ps.js +0 -1
- package/web/chunk-0w6ta3ps.js.br +0 -0
- package/web/chunk-0w6ta3ps.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-16b5anw4.js +0 -3
- package/web/chunk-16b5anw4.js.br +0 -0
- package/web/chunk-16b5anw4.js.gz +0 -0
- package/web/chunk-21d8pzcm.js +0 -142
- package/web/chunk-21d8pzcm.js.br +0 -0
- package/web/chunk-21d8pzcm.js.gz +0 -0
- package/web/chunk-2c4affp1.js +0 -70
- package/web/chunk-2c4affp1.js.br +0 -0
- package/web/chunk-2c4affp1.js.gz +0 -0
- package/web/chunk-2dykyq1n.js +0 -2
- package/web/chunk-2dykyq1n.js.br +0 -0
- package/web/chunk-2dykyq1n.js.gz +0 -0
- package/web/chunk-2h2w244w.js +0 -370
- package/web/chunk-2h2w244w.js.br +0 -0
- package/web/chunk-2h2w244w.js.gz +0 -0
- package/web/chunk-2hd51wb6.js +0 -169
- package/web/chunk-2hd51wb6.js.br +0 -0
- package/web/chunk-2hd51wb6.js.gz +0 -0
- package/web/chunk-2tc6krye.js +0 -291
- package/web/chunk-2tc6krye.js.br +0 -0
- package/web/chunk-2tc6krye.js.gz +0 -0
- package/web/chunk-2w27acew.js +0 -38
- package/web/chunk-2w27acew.js.br +0 -0
- package/web/chunk-2w27acew.js.gz +0 -0
- package/web/chunk-2w4rdnhj.js +0 -1
- package/web/chunk-2w4rdnhj.js.br +0 -0
- package/web/chunk-2w4rdnhj.js.gz +0 -0
- package/web/chunk-31vxes2p.js +0 -200
- package/web/chunk-31vxes2p.js.br +0 -0
- package/web/chunk-31vxes2p.js.gz +0 -0
- package/web/chunk-32qd2y5h.js +0 -1
- package/web/chunk-32qd2y5h.js.br +0 -0
- package/web/chunk-32qd2y5h.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-39kaz6fa.js +0 -4
- package/web/chunk-39kaz6fa.js.br +0 -0
- package/web/chunk-39kaz6fa.js.gz +0 -0
- package/web/chunk-3d3y4tep.js +0 -214
- package/web/chunk-3d3y4tep.js.br +0 -0
- package/web/chunk-3d3y4tep.js.gz +0 -0
- package/web/chunk-4makcmpw.js +0 -1
- package/web/chunk-4makcmpw.js.br +0 -0
- package/web/chunk-4makcmpw.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-4wd9r73y.js +0 -1
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-4zftsyq2.js +0 -2
- package/web/chunk-4zftsyq2.js.br +0 -0
- package/web/chunk-4zftsyq2.js.gz +0 -0
- package/web/chunk-50wrjr22.js +0 -2
- package/web/chunk-50wrjr22.js.br +0 -0
- package/web/chunk-50wrjr22.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-55kw8p9r.js +0 -89
- package/web/chunk-55kw8p9r.js.br +0 -0
- package/web/chunk-55kw8p9r.js.gz +0 -0
- package/web/chunk-56tqa12m.js +0 -2
- package/web/chunk-56tqa12m.js.br +0 -0
- package/web/chunk-56tqa12m.js.gz +0 -0
- package/web/chunk-595tqsv5.js +0 -1
- package/web/chunk-595tqsv5.js.br +0 -0
- package/web/chunk-595tqsv5.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-5h193k2c.js +0 -1
- package/web/chunk-5h193k2c.js.br +0 -0
- package/web/chunk-5h193k2c.js.gz +0 -0
- package/web/chunk-5nbmnchg.js +0 -16
- package/web/chunk-5nbmnchg.js.br +0 -0
- package/web/chunk-5nbmnchg.js.gz +0 -0
- package/web/chunk-5vc1wkwb.js +0 -2
- package/web/chunk-5vc1wkwb.js.br +0 -0
- package/web/chunk-5vc1wkwb.js.gz +0 -0
- package/web/chunk-5wgdprjp.js +0 -1
- package/web/chunk-5wgdprjp.js.br +0 -0
- package/web/chunk-5wgdprjp.js.gz +0 -0
- package/web/chunk-60fbfw70.js +0 -1
- package/web/chunk-60fbfw70.js.br +0 -0
- package/web/chunk-60fbfw70.js.gz +0 -0
- package/web/chunk-62z94rt2.js +0 -36
- package/web/chunk-62z94rt2.js.br +0 -0
- package/web/chunk-62z94rt2.js.gz +0 -0
- package/web/chunk-67khfy00.css +0 -1
- package/web/chunk-67khfy00.css.br +0 -0
- package/web/chunk-67khfy00.css.gz +0 -0
- package/web/chunk-6bt2t0xt.js +0 -8
- package/web/chunk-6bt2t0xt.js.br +0 -0
- package/web/chunk-6bt2t0xt.js.gz +0 -0
- package/web/chunk-780qvh05.js +0 -99
- package/web/chunk-780qvh05.js.br +0 -0
- package/web/chunk-780qvh05.js.gz +0 -0
- package/web/chunk-78t5dqea.js +0 -324
- package/web/chunk-78t5dqea.js.br +0 -0
- package/web/chunk-78t5dqea.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-7edmyret.js +0 -1
- package/web/chunk-7edmyret.js.br +0 -0
- package/web/chunk-7edmyret.js.gz +0 -0
- package/web/chunk-7remkcff.js +0 -2
- package/web/chunk-7remkcff.js.br +0 -0
- package/web/chunk-7remkcff.js.gz +0 -0
- package/web/chunk-7s062q01.js +0 -1
- package/web/chunk-7s062q01.js.br +0 -0
- package/web/chunk-7s062q01.js.gz +0 -0
- package/web/chunk-82zwwy0b.js +0 -1
- package/web/chunk-82zwwy0b.js.br +0 -0
- package/web/chunk-82zwwy0b.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-8c6h952g.js +0 -106
- package/web/chunk-8c6h952g.js.br +0 -0
- package/web/chunk-8c6h952g.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-8wgev3hd.js +0 -1
- package/web/chunk-8wgev3hd.js.br +0 -0
- package/web/chunk-8wgev3hd.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-9vcbnf1m.js +0 -1
- package/web/chunk-9vcbnf1m.js.br +0 -0
- package/web/chunk-9vcbnf1m.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-abahqsws.js +0 -2
- package/web/chunk-abahqsws.js.br +0 -0
- package/web/chunk-abahqsws.js.gz +0 -0
- package/web/chunk-acv6gk2b.js +0 -2
- package/web/chunk-acv6gk2b.js.br +0 -0
- package/web/chunk-acv6gk2b.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-ajpzsx51.js +0 -1
- package/web/chunk-ajpzsx51.js.br +0 -0
- package/web/chunk-ajpzsx51.js.gz +0 -0
- package/web/chunk-b1b9txvk.js +0 -1
- package/web/chunk-b1b9txvk.js.br +0 -0
- package/web/chunk-b1b9txvk.js.gz +0 -0
- package/web/chunk-b83bzjcx.js +0 -1134
- package/web/chunk-b83bzjcx.js.br +0 -0
- package/web/chunk-b83bzjcx.js.gz +0 -0
- package/web/chunk-c1zhat04.js +0 -1
- package/web/chunk-c1zhat04.js.br +0 -0
- package/web/chunk-c1zhat04.js.gz +0 -0
- package/web/chunk-c37hhmtd.js +0 -62
- package/web/chunk-c37hhmtd.js.br +0 -0
- package/web/chunk-c37hhmtd.js.gz +0 -0
- package/web/chunk-c69t0ysj.js +0 -1
- package/web/chunk-c69t0ysj.js.br +0 -0
- package/web/chunk-c69t0ysj.js.gz +0 -0
- package/web/chunk-caz85hz4.js +0 -1
- package/web/chunk-caz85hz4.js.br +0 -0
- package/web/chunk-caz85hz4.js.gz +0 -0
- package/web/chunk-cbtpaf3e.js +0 -7
- package/web/chunk-cbtpaf3e.js.br +0 -0
- package/web/chunk-cbtpaf3e.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-d1gga18f.js +0 -217
- package/web/chunk-d1gga18f.js.br +0 -0
- package/web/chunk-d1gga18f.js.gz +0 -0
- package/web/chunk-d4kjy2qn.js +0 -1
- package/web/chunk-d4kjy2qn.js.br +0 -0
- package/web/chunk-d4kjy2qn.js.gz +0 -0
- package/web/chunk-dbv8qpen.js +0 -303
- package/web/chunk-dbv8qpen.js.br +0 -0
- package/web/chunk-dbv8qpen.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-e65y60v1.js +0 -2
- package/web/chunk-e65y60v1.js.br +0 -0
- package/web/chunk-e65y60v1.js.gz +0 -0
- package/web/chunk-e6r1sb5r.js +0 -7
- package/web/chunk-e6r1sb5r.js.br +0 -0
- package/web/chunk-e6r1sb5r.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-ep5qff8m.js +0 -1
- package/web/chunk-ep5qff8m.js.br +0 -0
- package/web/chunk-ep5qff8m.js.gz +0 -0
- package/web/chunk-ex66t805.js +0 -120
- package/web/chunk-ex66t805.js.br +0 -0
- package/web/chunk-ex66t805.js.gz +0 -0
- package/web/chunk-fb8qtyqg.js +0 -1
- package/web/chunk-fb8qtyqg.js.br +0 -0
- package/web/chunk-fb8qtyqg.js.gz +0 -0
- package/web/chunk-fbzhgaak.js +0 -98
- package/web/chunk-fbzhgaak.js.br +0 -0
- package/web/chunk-fbzhgaak.js.gz +0 -0
- package/web/chunk-ffwyfdg4.js +0 -1
- package/web/chunk-ffwyfdg4.js.br +0 -0
- package/web/chunk-ffwyfdg4.js.gz +0 -0
- package/web/chunk-fsz1msjr.js +0 -2
- package/web/chunk-fsz1msjr.js.br +0 -0
- package/web/chunk-fsz1msjr.js.gz +0 -0
- package/web/chunk-fztzcy7c.js +0 -89
- package/web/chunk-fztzcy7c.js.br +0 -0
- package/web/chunk-fztzcy7c.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-g4st8a4e.js +0 -1
- package/web/chunk-g4st8a4e.js.br +0 -0
- package/web/chunk-g4st8a4e.js.gz +0 -0
- package/web/chunk-gs41j1vb.js +0 -1
- package/web/chunk-gs41j1vb.js.br +0 -0
- package/web/chunk-gs41j1vb.js.gz +0 -0
- package/web/chunk-gt4dzb4b.js +0 -292
- package/web/chunk-gt4dzb4b.js.br +0 -0
- package/web/chunk-gt4dzb4b.js.gz +0 -0
- package/web/chunk-h4g8j133.js +0 -7
- package/web/chunk-h4g8j133.js.br +0 -0
- package/web/chunk-h4g8j133.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-ht3cek8b.js +0 -1
- package/web/chunk-ht3cek8b.js.br +0 -2
- package/web/chunk-ht3cek8b.js.gz +0 -0
- package/web/chunk-hw4f79k8.js +0 -1
- package/web/chunk-hw4f79k8.js.br +0 -0
- package/web/chunk-hw4f79k8.js.gz +0 -0
- package/web/chunk-j2y3wkxc.js +0 -40
- package/web/chunk-j2y3wkxc.js.br +0 -0
- package/web/chunk-j2y3wkxc.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-j7sfcfxr.js +0 -1
- package/web/chunk-j7sfcfxr.js.br +0 -0
- package/web/chunk-j7sfcfxr.js.gz +0 -0
- package/web/chunk-jge5e8c4.js +0 -1
- package/web/chunk-jge5e8c4.js.br +0 -0
- package/web/chunk-jge5e8c4.js.gz +0 -0
- package/web/chunk-jyjgvcac.js +0 -2
- package/web/chunk-jyjgvcac.js.br +0 -0
- package/web/chunk-jyjgvcac.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-k9bzz441.js +0 -1
- package/web/chunk-k9bzz441.js.br +0 -0
- package/web/chunk-k9bzz441.js.gz +0 -0
- package/web/chunk-keway722.js +0 -39
- package/web/chunk-keway722.js.br +0 -0
- package/web/chunk-keway722.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-kr7shpnb.js +0 -4
- package/web/chunk-kr7shpnb.js.br +0 -0
- package/web/chunk-kr7shpnb.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-kv5swske.js +0 -1
- package/web/chunk-kv5swske.js.br +0 -0
- package/web/chunk-kv5swske.js.gz +0 -0
- package/web/chunk-kx2k462h.js +0 -1
- package/web/chunk-kx2k462h.js.br +0 -0
- package/web/chunk-kx2k462h.js.gz +0 -0
- package/web/chunk-m5b7hny2.js +0 -2
- package/web/chunk-m5b7hny2.js.br +0 -0
- package/web/chunk-m5b7hny2.js.gz +0 -0
- package/web/chunk-m7kypzvp.js +0 -2
- package/web/chunk-m7kypzvp.js.br +0 -0
- package/web/chunk-m7kypzvp.js.gz +0 -0
- package/web/chunk-n00se8nk.js +0 -2
- package/web/chunk-n00se8nk.js.br +0 -0
- package/web/chunk-n00se8nk.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-ngdj0r7w.js +0 -24
- package/web/chunk-ngdj0r7w.js.br +0 -0
- package/web/chunk-ngdj0r7w.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-p6ma361e.js +0 -2
- package/web/chunk-p6ma361e.js.br +0 -0
- package/web/chunk-p6ma361e.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-pvhz0gqy.js +0 -332
- package/web/chunk-pvhz0gqy.js.br +0 -0
- package/web/chunk-pvhz0gqy.js.gz +0 -0
- package/web/chunk-q96eky9v.js +0 -1
- package/web/chunk-q96eky9v.js.br +0 -0
- package/web/chunk-q96eky9v.js.gz +0 -0
- package/web/chunk-qcgs1mft.js +0 -2
- package/web/chunk-qcgs1mft.js.br +0 -0
- package/web/chunk-qcgs1mft.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-qh24q7c0.js +0 -2
- package/web/chunk-qh24q7c0.js.br +0 -0
- package/web/chunk-qh24q7c0.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-r1xksxab.js +0 -1
- package/web/chunk-r1xksxab.js.br +0 -0
- package/web/chunk-r1xksxab.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-rfsg5rke.js +0 -1
- package/web/chunk-rfsg5rke.js.br +0 -2
- package/web/chunk-rfsg5rke.js.gz +0 -0
- package/web/chunk-rsc5k5he.js +0 -139
- package/web/chunk-rsc5k5he.js.br +0 -0
- package/web/chunk-rsc5k5he.js.gz +0 -0
- package/web/chunk-s7a2f62f.js +0 -140
- package/web/chunk-s7a2f62f.js.br +0 -0
- package/web/chunk-s7a2f62f.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-sac6fn9n.js +0 -24
- package/web/chunk-sac6fn9n.js.br +0 -0
- package/web/chunk-sac6fn9n.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-t0xjx21h.js +0 -30
- package/web/chunk-t0xjx21h.js.br +0 -0
- package/web/chunk-t0xjx21h.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-v7ck87jf.js +0 -1
- package/web/chunk-v7ck87jf.js.br +0 -0
- package/web/chunk-v7ck87jf.js.gz +0 -0
- package/web/chunk-vvk9nche.js +0 -21
- package/web/chunk-vvk9nche.js.br +0 -0
- package/web/chunk-vvk9nche.js.gz +0 -0
- package/web/chunk-vxtfen72.js +0 -1
- package/web/chunk-vxtfen72.js.br +0 -0
- package/web/chunk-vxtfen72.js.gz +0 -0
- package/web/chunk-w5c2r59n.js +0 -41
- package/web/chunk-w5c2r59n.js.br +0 -0
- package/web/chunk-w5c2r59n.js.gz +0 -0
- package/web/chunk-wh0vt2vd.js +0 -34
- package/web/chunk-wh0vt2vd.js.br +0 -0
- package/web/chunk-wh0vt2vd.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-xe7fj72r.js +0 -1
- package/web/chunk-xe7fj72r.js.br +0 -0
- package/web/chunk-xe7fj72r.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-y10hsdq4.js +0 -1
- package/web/chunk-y10hsdq4.js.br +0 -0
- package/web/chunk-y10hsdq4.js.gz +0 -0
- package/web/chunk-yarsp7h7.js +0 -12
- package/web/chunk-yarsp7h7.js.br +0 -0
- package/web/chunk-yarsp7h7.js.gz +0 -0
- package/web/chunk-yw5wyz1q.js +0 -55
- package/web/chunk-yw5wyz1q.js.br +0 -0
- package/web/chunk-yw5wyz1q.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-z3ea4vhk.js +0 -1
- package/web/chunk-z3ea4vhk.js.br +0 -0
- package/web/chunk-z3ea4vhk.js.gz +0 -0
- package/web/chunk-z7adzvfz.js +0 -1
- package/web/chunk-z7adzvfz.js.br +0 -0
- package/web/chunk-z7adzvfz.js.gz +0 -0
- package/web/chunk-zb01zmms.js +0 -84
- package/web/chunk-zb01zmms.js.br +0 -0
- package/web/chunk-zb01zmms.js.gz +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{me,qe,Kr,Qr}from"./chunk-2hkpqjqj.js";import{V,J}from"./chunk-8np9b2y8.js";var o="OpenAI Decisions",a=128;function f(r){let t=[r.criteria.true?`True means: ${r.criteria.true}`:"",r.criteria.false?`False means: ${r.criteria.false}`:""].filter(Boolean);return t.length>0?`${r.instructions}
|
|
3
|
+
|
|
4
|
+
${t.join(`
|
|
5
|
+
`)}`:r.instructions}function u(r,t){if(t.type==="choice")return{type:"choice",name:r,instructions:t.instructions,choices:Object.entries(t.criteria).map(([e,i])=>i?{value:e,description:i}:{value:e})};if(t.type==="score")return{type:"score",name:r,instructions:t.instructions,levels:t.criteria.map((e)=>({label:e}))};return{type:"predicate",name:r,instructions:f(t)}}function y(r){let t=JSON.stringify(r.state),e=r.images??[];if(e.length===0)return t;if(e.length>a)throw Error(`${o} accepts at most ${a} images, got ${e.length}`);return[{role:"user",content:[{type:"input_text",text:t},...e.map((i)=>({type:"input_image",image_url:`data:${i.mimeType};base64,${i.data}`}))]}]}function b(r,t){if(!Array.isArray(r))throw Error(`${o} returned invalid probabilities for ${t}`);return Object.fromEntries(r.map((e)=>{if(!me(e)||typeof e.value!=="string")throw Error(`${o} returned invalid probabilities for ${t}`);return[e.value,qe(o,e.probability,`probability for ${t}.${e.value}`)]}))}function l(r,t,e){if(e.type==="refusal")throw Error(`${o} refused to answer ${r}`);if(t.type==="choice"){if(e.type!=="choice"||typeof e.choice!=="string")throw Error(`${o} did not return a choice answer for ${r}`);return{type:"choice",choice:e.choice,probabilities:b(e.probabilities,r),confidence:qe(o,e.confidence,`confidence for ${r}`)}}if(t.type==="score"){if(e.type!=="score")throw Error(`${o} did not return a score answer for ${r}`);return{type:"score",score:qe(o,e.score,`score for ${r}`),confidence:qe(o,e.confidence,`confidence for ${r}`)}}if(e.type!=="predicate")throw Error(`${o} did not return a predicate answer for ${r}`);return{type:"bool",probability:qe(o,e.probability,`probability for ${r}`)}}function w(r,t){if(!Array.isArray(r))throw Error(`${o} returned an unexpected response`);let e=new Map;for(let i of r)if(me(i)&&typeof i.name==="string")e.set(i.name,i);return Object.fromEntries(Object.entries(t.questions).map(([i,n])=>{let s=e.get(i);if(!s)throw Error(`${o} did not return an answer for ${i}`);return[i,l(i,n,s)]}))}var h=[504];function d(r){if(r.status===504)return`${o} error (504): the request timed out at the gateway. Very large inputs (above roughly 600K tokens) currently exceed its time limit.`;return J(V(r),`${o} error`)}var E=async(r,t,e)=>{let i={api:r.api,provider:r.provider,model:r.id,answers:{},stopReason:"stop",timestamp:Date.now()};try{if(r.api!=="openai-decisions")throw Error(`Unsupported classifier API: ${r.api}`);let n=await Kr(o,new URL("decisions",`${r.baseUrl.replace(/\/+$/u,"")}/`),r,{model:r.id,input:y(t),questions:Object.entries(t.questions).map(([c,p])=>u(c,p))},e,h);if(!me(n))throw Error(`${o} returned an unexpected response`);let s=Qr(n.usage,r);if(s)i.usage=s;return i.answers=w(n.answers,t),i}catch(n){return i.answers={},i.stopReason=e?.signal?.aborted?"aborted":"error",i.errorMessage=d(n),i}};export{E as classify};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var A=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],I=["content-type","cache-control","allow"];function p(e){let r=e.path;if(!r?.startsWith("/api/")||/[\\\r\n#]/.test(r))throw Error("request path must start with /api/");let n=new URL(r,"http://basalt.internal");if(n.origin!=="http://basalt.internal"||!n.pathname.startsWith("/api/"))throw Error("request path must stay within /api/");let o=e.method??"GET";if(!A.includes(o))throw Error("Unsupported request method");if(e.body!==void 0&&(!e.body||typeof e.body!=="object"||Array.isArray(e.body)))throw Error("request body must be a JSON object");if(e.body!==void 0&&(o==="GET"||o==="HEAD"))throw Error("GET and HEAD requests cannot have a body");let s=e.timeoutMs??1e4;if(!Number.isSafeInteger(s)||s<1||s>60000)throw Error("timeoutMs must be an integer between 1 and 60000");return{url:n,method:o,timeoutMs:s}}function g(e){let r={};for(let n of I){let o=e.headers.get(n);if(o)r[n]=o.slice(0,500)}return r}async function M(e,r){let n=e.getReader();r(()=>n.cancel());let o=[],s=0,i=!1;while(!0){let t=await n.read();if(t.done)break;let d=20480-s;if(o.push(t.value.subarray(0,d)),s+=Math.min(t.value.length,d),t.value.length>d){i=!0,await n.cancel();break}}let u=new Uint8Array(s),c=0;for(let t of o)u.set(t,c),c+=t.length;return{text:new TextDecoder().decode(u,{stream:i}),truncated:i}}async function hr(e,r,n){let{url:o,method:s,timeoutMs:i}=p(r),u=e.http;if(!u)throw Error("HTTP API is not attached; start the Basalt server first");let c=new AbortController,t=n?AbortSignal.any([n,c.signal]):c.signal;t.throwIfAborted();let d,b=()=>{d?.().catch(()=>{})},E=async()=>{let h=r.body!==void 0,a=await u.request(new Request(o.toString(),{method:s,headers:h?{"content-type":"application/json"}:void 0,body:h?JSON.stringify(r.body):void 0,signal:t}));if(t.aborted)throw await a.body?.cancel(),Error("API request cancelled");let m=a.body?await M(a.body,(T)=>{d=T}):{text:"",truncated:!1};return{status:a.status,headers:g(a),body:m.text,truncated:m.truncated}},f,l,y=new Promise((h,a)=>{if(l=()=>{a(Error("API request cancelled")),b()},t.addEventListener("abort",l,{once:!0}),t.aborted)l()}),w=new Promise((h,a)=>{f=setTimeout(()=>{a(Error(`API request timed out after ${i}ms`)),c.abort(),b()},i)});try{return await Promise.race([E(),y,w])}finally{if(clearTimeout(f),l)t.removeEventListener("abort",l)}}
|
|
3
|
+
export{hr};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Jo}from"./chunk-sqr8tx1m.js";import"./chunk-5znfck4s.js";import"./chunk-9h05aqdd.js";import{Ko}from"./chunk-dwxp0gtf.js";Bun.plugin({name:"basalt-plugin-sdk",setup(o){o.module("@basalt/plugin",()=>({exports:Ko,loader:"object"})),o.module("@earendil-works/pi-ai",()=>({exports:Jo,loader:"object"}))}});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function V(t){if(!(t instanceof Error))return{message:u(t),messageCarriesBody:!1};let e=t,n=d(e),s=o(e),r=s===void 0||t.message.includes(s);return{status:n,body:s,message:t.message,messageCarriesBody:r}}function d(t){if(typeof t.statusCode==="number")return t.statusCode;if(typeof t.status==="number")return t.status;if(typeof t.$metadata?.httpStatusCode==="number")return t.$metadata.httpStatusCode;if(typeof t.$response?.statusCode==="number")return t.$response.statusCode;return}function o(t){let e=f(t);if(e===void 0)return;let n=e.trim();if(n.length===0)return;return c(n,4000)}function f(t){if(typeof t.body==="string")return t.body;if(i(t.error))return u(t.error);let e=t.$response?.body;if(typeof e==="string")return e;if(a(e))return;if(i(e))return u(e);return}function a(t){return typeof t==="object"&&t!==null&&"pipe"in t&&typeof t.pipe==="function"}function i(t){if(typeof t!=="object"||t===null)return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;return Object.keys(t).length>0}function J(t,e){if(t.messageCarriesBody||t.status===void 0||t.body===void 0)return e!==void 0&&t.status!==void 0?`${e} (${t.status}): ${t.message}`:t.message;return e!==void 0?`${e} (${t.status}): ${t.body}`:`${t.status}: ${t.body}`}function c(t,e){if(t.length<=e)return t;return`${t.slice(0,e)}... [truncated ${t.length-e} chars]`}function u(t){try{let e=JSON.stringify(t);return e===void 0?String(t):e}catch{return String(t)}}
|
|
3
|
+
export{V,J};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z}from"./chunk-5znfck4s.js";import{ct}from"./chunk-drbd6485.js";import{we,sn,an,he,gr,xe}from"./chunk-csrpxzn7.js";import{x}from"./chunk-chfzk1fx.js";import{G,Fe,ae,Ee,ee}from"./chunk-g18hxgdr.js";function E(a,o){let l={v:1,id:a};if(o)l.phase=o;return JSON.stringify(l)}function N(a){if(!a)return;if(a.startsWith("{"))try{let o=JSON.parse(a);if(o.v===1&&typeof o.id==="string"){if(o.phase==="commentary"||o.phase==="final_answer")return{id:o.id,phase:o.phase};return{id:o.id}}}catch{}return{id:a}}function W(a,o){let l=o.filter((c)=>c.type==="text").map((c)=>c.text).join(`
|
|
3
|
+
`),d=o.filter((c)=>c.type==="image"),u=l.length>0;if(d.length===0||!a.input.includes("image"))return x(u?l:d.length>0?"(see attached image)":"(no tool output)");let p=[];if(u)p.push({type:"input_text",text:x(l)});for(let c of d)p.push({type:"input_image",detail:"auto",image_url:`data:${c.mimeType};base64,${c.data}`});return p}function yt(a,o,l,d){let u=ae(o,d?.supportsMidConvoSystemMessages),p=[],c=(n)=>{let s=n.replace(/[^a-zA-Z0-9_-]/g,"_");return(s.length>64?s.slice(0,64):s).replace(/_+$/,"")},b=(n)=>{let s=`fc_${ct(n)}`;return s.length>64?s.slice(0,64):s},k=(n,s,i)=>{if(!l.has(a.provider))return c(n);if(!n.includes("|"))return c(n);let[r,g]=n.split("|"),h=c(r),y=i.provider!==a.provider||i.api!==a.api?b(g):c(g);if(!y.startsWith("fc_"))y=c(`fc_${y}`);return`${h}|${y}`},m=xe(u.messages,a,k),I=Ee(u.messages,(d?.supportsAdditionalTools??!1)||(d?.supportsToolSearch??!1)),v=(n,s)=>{let i=I.anchorsAdditions?n.toolsAdded??[]:[];if(i.length===0)return;if(d?.supportsAdditionalTools){p.push({type:"additional_tools",role:"developer",tools:lt(i,d.toolOptions)});return}if(!d?.supportsToolSearch)return;let r=i.map((h)=>h.name),g=`pi_tool_load_${ct(`${s}:${r.join(",")}`)}`;p.push({type:"tool_search_call",call_id:g,execution:"client",status:"completed",arguments:{query:r.join(" "),limit:r.length}}),p.push({type:"tool_search_output",call_id:g,execution:"client",status:"completed",tools:lt(i,{...d.toolOptions,toolSearchResult:!0})})},C=d?.includeSystemPrompt??!0,w=a.compat,M=a.reasoning&&w?.supportsDeveloperRole!==!1?"developer":"system",t=0,e=0;for(let n of m){let s=e++===0&&n.role==="system";if(n.role==="system"){if(!s)v(n,`system:${t}`);if(!s||C){let i=s?G(n):Fe(n);if(i.length>0)p.push({role:M,content:x(i)})}}else if(n.role==="user")if(typeof n.content==="string")p.push({role:"user",content:[{type:"input_text",text:x(n.content)}]});else{let i=n.content.map((r)=>{if(r.type==="text")return{type:"input_text",text:x(r.text)};return{type:"input_image",detail:"auto",image_url:`data:${r.mimeType};base64,${r.data}`}});if(i.length===0)continue;p.push({role:"user",content:i})}else if(n.role==="assistant"){let i=[],r=n,g=r.provider===a.provider&&r.api===a.api,h=g&&r.model===a.id,P=g&&r.model!==a.id,y=0;for(let S of n.content)if(S.type==="thinking"){if(S.thinkingSignature){let f=JSON.parse(S.thinkingSignature);i.push(f)}}else if(S.type==="text"){let f=S,T=N(f.textSignature),J=y===0?`msg_pi_${t}`:`msg_pi_${t}_${y}`;y++;let _=T?.id;if(!_)_=J;else if(_.length>64)_=`msg_${ct(_)}`;i.push({type:"message",role:"assistant",content:[{type:"output_text",text:x(f.text),annotations:[]}],status:"completed",id:_,phase:T?.phase})}else if(S.type==="toolCall"){let f=S,[T,J]=f.id.split("|"),_=d?.grammarToolInputProperties?.get(f.name),R=J,j=_===void 0?"fc_":"ctc_";if(P||!R?.startsWith(j))R=void 0;if(_!==void 0)i.push({type:"custom_tool_call",id:R,call_id:T,name:f.name,input:x(sn(f.name,f.arguments,_)),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}});else i.push({type:"function_call",id:R,call_id:T,name:f.name,arguments:JSON.stringify(f.arguments),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}})}if(i.length===0)continue;p.push(...i)}else if(n.role==="toolResult"){let[i]=n.toolCallId.split("|"),r=W(a,n.content);if(d?.grammarToolInputProperties?.has(n.toolName))p.push({type:"custom_tool_call_output",call_id:i,output:r});else p.push({type:"function_call_output",call_id:i,output:r})}if(!s)t++}return p}function lt(a,o){let l=o?.strict===void 0?!1:o.strict,d=o?.supportsStrictMode??!0,u=o?.supportsOpenAIGrammarTools??!1;return a.map((p)=>{let c=gr(p,u);if(c)return{type:"custom",name:p.name,description:p.description,format:{type:"grammar",syntax:c.format,definition:c.definition},...o?.toolSearchResult?{defer_loading:!0}:{}};let k=he(p,d)??l,m={type:"function",name:p.name,description:p.description,parameters:we(p,k===!0),...o?.toolSearchResult?{defer_loading:!0}:{}};if(d)m.strict=k;return m})}function A(a){let o=a.customInput?.property;if(o===void 0)return"";let l=a.arguments[o];return typeof l==="string"?l:""}function O(a,o,l){let d=a.customInput;if(!d)return;let u=an(d.jsonBuffer,d.property,o,l);return a.arguments={[d.property]:o},u}async function bt(a,o,l,d,u){let p=!1,c=new Map,b=new Map,k=(t)=>{if(t.type==="message"&&t.phase==="final_answer")o.stopReason="stop"},m=(t,e)=>{let n=c.get(t);return n?.type===e?n:void 0},I=(t,e)=>{if(e===void 0)return;l.push({type:"toolcall_delta",contentIndex:t.contentIndex,delta:e,partial:o})},v=(t,e)=>{if(e.type==="reasoning"){let n={type:"thinking",thinking:""};o.content.push(n);let s={type:"thinking",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"thinking_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="message"){k(e);let n={type:"text",text:""};o.content.push(n);let s={type:"text",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"text_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="function_call"){let n={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{},...e.namespace!==void 0?{namespace:e.namespace}:{},partialJson:e.arguments||""};o.content.push(n);let s={type:"toolCall",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"toolcall_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="custom_tool_call"){let n=u?.grammarToolInputProperties?.get(e.name)??"input",s=e.input||"",i={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{[n]:s},...e.namespace!==void 0?{namespace:e.namespace}:{},customInput:{property:n,jsonBuffer:{input:"",started:!1,closed:!1}}};o.content.push(i);let r={type:"toolCall",block:i,contentIndex:o.content.length-1};return c.set(t,r),l.push({type:"toolcall_start",contentIndex:r.contentIndex,partial:o}),r}return},C=(t,e)=>c.get(t)??v(t,e),w=(t)=>{for(let e of t){if(e.type!=="reasoning"||!e.encrypted_content)continue;let n=b.get(e.id);if(!n?.thinkingSignature)continue;let s=JSON.parse(n.thinkingSignature);if(s.encrypted_content)continue;n.thinkingSignature=JSON.stringify({...s,encrypted_content:e.encrypted_content})}},M=(t)=>{if(p=!0,w(t.output??[]),t?.id)o.responseId=t.id;if(t?.usage){let r=t.usage.input_tokens_details,g=r?.cached_tokens||0,h=r?.cache_write_tokens||0;o.usage={input:Math.max(0,(t.usage.input_tokens||0)-g-h),output:t.usage.output_tokens||0,cacheRead:g,cacheWrite:h,reasoning:t.usage.output_tokens_details?.reasoning_tokens||0,totalTokens:t.usage.total_tokens||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}if(ee(d,o.usage),u?.applyServiceTierPricing){let r=u.resolveServiceTier?u.resolveServiceTier(t?.service_tier,u.serviceTier):t?.service_tier??u.serviceTier;u.applyServiceTierPricing(o.usage,r)}let e=t?.status,n=t?.incomplete_details,s=typeof n?.reason==="string"?n.reason:void 0;o.rawStopReason=s?`${e}.${s}`:e;let i=B(e,s);if(o.stopReason=i.stopReason,i.errorMessage===void 0)delete o.errorMessage;else o.errorMessage=i.errorMessage;if(o.content.some((r)=>r.type==="toolCall")&&o.stopReason==="stop")o.stopReason="toolUse"};for await(let t of a)if(await u?.onProviderStreamEvent?.(t,d),t.type==="response.created")o.responseId=t.response.id;else if(t.type==="response.output_item.added")v(t.output_index,t.item);else if(t.type==="response.reasoning_summary_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.reasoning_summary_part.done"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=`
|
|
4
|
+
|
|
5
|
+
`,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:`
|
|
6
|
+
|
|
7
|
+
`,partial:o})}else if(t.type==="response.reasoning_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.output_text.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.refusal.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.function_call_arguments.delta"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=z(e.block.partialJson),I(e,t.delta)}else if(t.type==="response.function_call_arguments.done"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;let n=e.block.partialJson;if(e.block.partialJson=t.arguments,e.block.arguments=z(e.block.partialJson),t.arguments.startsWith(n)){let s=t.arguments.slice(n.length);if(s.length>0)I(e,s)}}else if(t.type==="response.custom_tool_call_input.delta"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;I(e,O(e.block,A(e.block)+t.delta,!1))}else if(t.type==="response.custom_tool_call_input.done"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;I(e,O(e.block,t.input,!0))}else if(t.type==="response.output_item.done"){let e=t.item;k(e);let n=C(t.output_index,e);if(e.type==="reasoning"&&n?.type==="thinking"){let s=e.summary?.map((r)=>r.text).join(`
|
|
8
|
+
|
|
9
|
+
`)||"",i=e.content?.map((r)=>r.text).join(`
|
|
10
|
+
|
|
11
|
+
`)||"";n.block.thinking=s||i||n.block.thinking,n.block.thinkingSignature=JSON.stringify(e),b.set(e.id,n.block),l.push({type:"thinking_end",contentIndex:n.contentIndex,content:n.block.thinking,partial:o}),c.delete(t.output_index)}else if(e.type==="message"&&n?.type==="text")n.block.text=e.content?.map((s)=>s.type==="output_text"?s.text:s.refusal).join("")||"",n.block.textSignature=E(e.id,e.phase??void 0),l.push({type:"text_end",contentIndex:n.contentIndex,content:n.block.text,partial:o}),c.delete(t.output_index);else if(e.type==="function_call"&&n?.type==="toolCall"&&n.block.partialJson!==void 0){if(n.block.arguments=z(e.arguments||n.block.partialJson||"{}"),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.partialJson,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}else if(e.type==="custom_tool_call"&&n?.type==="toolCall"&&n.block.customInput){if(I(n,O(n.block,e.input??A(n.block),!0)),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.customInput,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}}else if(t.type==="response.completed"||t.type==="response.incomplete")M(t.response);else if(t.type==="error")throw Error(`Error Code ${t.code}: ${t.message}`||"Unknown error");else if(t.type==="response.failed"){p=!0,o.rawStopReason=t.response?.status;let e=t.response?.error,n=t.response?.incomplete_details,s=e?`${e.code||"unknown"}: ${e.message||"no message"}`:n?.reason?`incomplete: ${n.reason}`:"Unknown error (no error details in response)";throw Error(s)}if(!p)throw Error("OpenAI Responses stream ended before a terminal response event");if(o.stopReason==="toolUse")for(let t of o.content){if(t.type!=="toolCall")continue;let e=t;if(e.partialJson!==void 0||e.customInput!==void 0)throw Error(`OpenAI Responses stream completed with an unfinished tool call: ${e.name} (${e.id})`)}}function B(a,o){if(!a)return{stopReason:"stop"};switch(a){case"completed":return{stopReason:"stop"};case"incomplete":if(o==="max_output_tokens")return{stopReason:"length"};return{stopReason:"error",errorMessage:o?`Response incomplete: ${o}`:"Response incomplete without a provider reason"};case"failed":case"cancelled":return{stopReason:"error"};case"in_progress":case"queued":return{stopReason:"stop"};default:throw Error(`Unhandled stop reason: ${a}`)}}
|
|
12
|
+
export{yt,lt,bt};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Pt,He,te,_,Pe,re,j}from"./chunk-2e4xds74.js";import{r,u}from"./chunk-1mhv12a5.js";var Ze=r(function(yr){var{Readable:Kt}=u("stream"),{NoOpLogger:Xt,normalizeProvider:Se}=te(),{HttpResponse:_e,HttpRequest:N}=j(),{parseRfc7231DateTime:Qt,v4:Me}=re(),{hasOwn:Jt}=He(),we=(e)=>e?.body instanceof Kt||typeof ReadableStream<"u"&&e?.body instanceof ReadableStream,Zt=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],er=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],tr=["TimeoutError","RequestTimeout","RequestTimeoutException"],rr=[500,502,503,504],nr=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],ir=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"],Y=(e)=>e?.$retryable!==void 0,ve=(e)=>Zt.includes(e.name),Ee=(e)=>e.$metadata?.clockSkewCorrected,Te=(e)=>{let s=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(e&&e instanceof TypeError))return!1;return s.has(e.message)},P=(e)=>e.$metadata?.httpStatusCode===429||er.includes(e.name)||e.$retryable?.throttling==!0,x=(e,s=0)=>e?.name!=="AbortError"&&(Y(e)||Ee(e)||e.name==="InvalidSignatureException"&&e.message?.includes("Signature expired")||tr.includes(e.name)||nr.includes(e?.code||"")||ir.includes(e?.code||"")||rr.includes(e.$metadata?.httpStatusCode||0)||Te(e)||xe(e)||e.cause!==void 0&&s<=10&&x(e.cause,s+1)),Re=(e)=>{if(e.$metadata?.httpStatusCode!==void 0){let s=e.$metadata.httpStatusCode;if(500<=s&&s<=599&&!x(e))return!0;return!1}return!1};function xe(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}var Oe=100,C=20000,ke=500,D=500,Fe=5,Ie=10,K=1,L="amz-sdk-invocation-id",U="amz-sdk-request";function Ne(e,s){if(!_e.isInstance(e))return;for(let c in e.headers){if(!Jt(e.headers,c))continue;let d=c.toLowerCase();if(d==="retry-after"){let o=e.headers[c],a=NaN;if(o.endsWith("GMT"))try{a=(Qt(o).getTime()-Date.now())/1000}catch(l){s?.trace?.("Failed to parse retry-after header"),s?.trace?.(l)}else if(o.match(/ GMT, ((\d+)|(\d+\.\d+))$/))a=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]);else if(o.match(/^((\d+)|(\d+\.\d+))$/))a=Number(o);else if(Date.parse(o)>=Date.now())a=(Date.parse(o)-Date.now())/1000;if(isNaN(a))return;return new Date(Date.now()+a*1000)}else if(d==="x-amz-retry-after"){let o=e.headers[c],a=Number(o);if(isNaN(a)){s?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+a)}}}function sr(e,s){return Ne(e,s)}var De=(e)=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(Error(),e);if(typeof e==="string")return Error(e);return Error(`AWS SDK error wrapper for ${e}`)};function Be(e){return(s)=>(c,d)=>async(o)=>{let a=await s.retryStrategy(),l=await s.maxAttempts();if(ar(a)){a=a;let t=await a.acquireInitialRetryToken((d.partition_id??"")+(d.__retryLongPoll?":longpoll":"")),n=Error(),i=0,g=0,{request:f}=o,p=N.isInstance(f);if(p)f.headers[L]=Me();while(!0)try{if(p)f.headers[U]=`attempt=${i+1}; max=${l}`;let{response:h,output:m}=await c(o);return a.recordSuccess(t),m.$metadata.attempts=i+1,m.$metadata.totalRetryDelay=g,{response:h,output:m}}catch(h){let m=cr(h,s.logger);if(n=De(h),p&&e(f))throw(d.logger instanceof Xt?console:d.logger)?.warn("An error was encountered in a non-retryable streaming request."),n;try{t=await a.refreshRetryTokenForRetry(t,m)}catch(y){if(!n.$metadata)n.$metadata={};throw n.$metadata.attempts=i+1,n.$metadata.totalRetryDelay=g,n}i=t.getRetryCount();let A=t.getRetryDelay();if(g+=(t?.$retryLog?.acquisitionDelay??0)+A,A>0)await or(A)}}else{if(a=a,a?.mode)d.userAgent=[...d.userAgent||[],["cfg/retry-mode",a.mode]];return a.retry(c,o)}}}var or=(e)=>new Promise((s)=>setTimeout(s,e)),ar=(e)=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",cr=(e,s)=>{let c={error:e,errorType:ur(e)},d=Ne(e.$response,s);if(d)c.retryAfterHint=d;return c},ur=(e)=>{if(P(e))return"THROTTLING";if(x(e))return"TRANSIENT";if(Re(e))return"SERVER_ERROR";return"CLIENT_ERROR"},Le={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function dr(e){let s=Be(e);return(c)=>({applyToStack:(d)=>{d.add(s(c),Le)}})}class O{static setTimeoutFn=(e,s)=>setTimeout(e,s);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??0.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??0.5,this.scaleConstant=e?.scaleConstant??0.4,this.smooth=e?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let s;this.updateMeasuredRate();let c=e;if(c?.errorType==="THROTTLING"||P(c?.error??e)){let a=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(e){if(!this.enabled)return;this.refillTokenBucket();while(e>this.availableTokens){let s=(e-this.availableTokens)/this.fillRate*1000;await new Promise((c)=>O.setTimeoutFn(c,s)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let s=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+s),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),s=Math.floor(e*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){let c=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(c*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(e){return parseFloat(e.toFixed(8))}}class b{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return b.v2026?50:100}static throttlingDelay(){return b.v2026?1000:500}static cost(){return b.v2026?14:5}static throttlingCost(){return b.v2026?5:10}static modifiedCostType(){return b.v2026?"THROTTLING":"TRANSIENT"}}class Ue{x=b.delay();computeNextBackoffDelay(e){let s=Math.random(),c=2,d=s*Math.min(this.x*2**e,C);return Math.floor(d)}setDelayBase(e){this.x=e}}class W{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,s,c,d){this.delay=e,this.count=s,this.cost=c,this.longPoll=d}getRetryCount(){return this.count}getRetryDelay(){return Math.min(C,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var w;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(w||(w={}));var E=3,qe=w.STANDARD,I={incompatible:1,attempts:2,capacity:3},R=class{mode=w.STANDARD;retryBackoffStrategy;capacity=D;maxAttemptsProvider;baseDelay;constructor(s){if(typeof s==="number")this.maxAttemptsProvider=async()=>s;else if(typeof s==="function")this.maxAttemptsProvider=s;else if(s&&typeof s==="object")this.maxAttemptsProvider=async()=>s.maxAttempts,this.baseDelay=s.baseDelay,this.retryBackoffStrategy=s.backoff;this.maxAttemptsProvider??=async()=>E,this.baseDelay??=b.delay(),this.retryBackoffStrategy??=new Ue}async acquireInitialRetryToken(s){return new W(b.delay(),0,void 0,b.v2026&&s.includes(":longpoll"))}async refreshRetryTokenForRetry(s,c){let d=await this.getMaxAttempts(),o=this.retryCode(s,c,d),a=o===0,l=s.isLongPoll?.();if(a||l){let t=c.errorType;this.retryBackoffStrategy.setDelayBase(t==="THROTTLING"?b.throttlingDelay():this.baseDelay);let n=this.retryBackoffStrategy.computeNextBackoffDelay(s.getRetryCount()),i=n;if(c.retryAfterHint instanceof Date)i=Math.max(n,Math.min(c.retryAfterHint.getTime()-Date.now(),n+5000));if(!a){let g=b.v2026&&o===I.capacity&&l?i:0;if(g>0)await new Promise((f)=>setTimeout(f,g))}else{let g=this.getCapacityCost(t);this.capacity-=g;let f=new W(0,s.getRetryCount()+1,g,s.isLongPoll?.()??!1);return await new Promise((p)=>setTimeout(p,i)),f.$retryLog.acquisitionDelay=i,f}}throw Error("No retry token available")}recordSuccess(s){this.capacity=Math.min(D,this.capacity+(s.getRetryCost()??K))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(s){return console.warn(`Max attempts provider could not resolve. Using default of ${E}`),E}}retryCode(s,c,d){let o=s.getRetryCount()+1,a=this.isRetryableError(c.errorType)?0:I.incompatible,l=o<d?0:I.attempts,t=this.capacity>=this.getCapacityCost(c.errorType)?0:I.capacity;return a||l||t}getCapacityCost(s){return s===b.modifiedCostType()?b.throttlingCost():b.cost()}isRetryableError(s){return s==="THROTTLING"||s==="TRANSIENT"}},Ge=class{mode=w.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(s,c){let{rateLimiter:d}=c??{};this.rateLimiter=d??new O,this.standardRetryStrategy=c?new R({maxAttempts:typeof s==="number"?s:3,...c}):new R(s)}async acquireInitialRetryToken(s){let c=await this.standardRetryStrategy.acquireInitialRetryToken(s);return await this.rateLimiter.getSendToken(),c}async refreshRetryTokenForRetry(s,c){this.rateLimiter.updateClientSendingRate(c);let d=await this.standardRetryStrategy.refreshRetryTokenForRetry(s,c);return await this.rateLimiter.getSendToken(),d}recordSuccess(s){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(s)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class We extends R{computeNextBackoffDelay;constructor(e,s=b.delay()){super(typeof e==="function"?e:async()=>e);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s;this.retryBackoffStrategy.computeNextBackoffDelay=(c)=>{let d=c+1;return this.computeNextBackoffDelay(d)}}}var lr=(e,s)=>{let c=e,d=K,o=Fe,a=Ie,l=e,t=(f)=>f.name==="TimeoutError"?a:o,n=(f)=>t(f)<=l;return Object.freeze({hasRetryTokens:n,retrieveRetryTokens:(f)=>{if(!n(f))throw Error("No retry token available");let p=t(f);return l-=p,p},releaseRetryTokens:(f)=>{l+=f??d,l=Math.min(l,c)}})},$e=(e,s)=>Math.floor(Math.min(C,Math.random()*2**s*e)),Ve=(e)=>{if(!e)return!1;return Y(e)||ve(e)||P(e)||x(e)};class X{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=w.STANDARD;constructor(e,s){this.maxAttemptsProvider=e,this.retryDecider=s?.retryDecider??Ve,this.delayDecider=s?.delayDecider??$e,this.retryQuota=s?.retryQuota??lr(D)}shouldRetry(e,s,c){return s<c&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(s){e=E}return e}async retry(e,s,c){let d,o=0,a=0,l=await this.getMaxAttempts(),{request:t}=s;if(N.isInstance(t))t.headers[L]=Me();while(!0)try{if(N.isInstance(t))t.headers[U]=`attempt=${o+1}; max=${l}`;if(c?.beforeRequest)await c.beforeRequest();let{response:n,output:i}=await e(s);if(c?.afterRequest)c.afterRequest(n);return this.retryQuota.releaseRetryTokens(d),i.$metadata.attempts=o+1,i.$metadata.totalRetryDelay=a,{response:n,output:i}}catch(n){let i=De(n);if(o++,this.shouldRetry(i,o,l)){d=this.retryQuota.retrieveRetryTokens(i);let g=this.delayDecider(P(i)?ke:Oe,o),f=fr(i.$response),p=Math.max(f||0,g);a+=p,await new Promise((h)=>setTimeout(h,p));continue}if(!i.$metadata)i.$metadata={};throw i.$metadata.attempts=o,i.$metadata.totalRetryDelay=a,i}}}var fr=(e)=>{if(!_e.isInstance(e))return;let s=Object.keys(e.headers).find((a)=>a.toLowerCase()==="retry-after");if(!s)return;let c=e.headers[s],d=Number(c);if(!Number.isNaN(d))return Math.min(d*1000,20000);let o=new Date(c);return Math.min(o.getTime()-Date.now(),20000)};class ze extends X{rateLimiter;constructor(e,s){let{rateLimiter:c,...d}=s??{};super(e,d);this.rateLimiter=c??new O,this.mode=w.ADAPTIVE}async retry(e,s){return super.retry(e,s,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:(c)=>{this.rateLimiter.updateClientSendingRate(c)}})}}var V="AWS_MAX_ATTEMPTS",z="max_attempts",pr={environmentVariableSelector:(e)=>{let s=e[V];if(!s)return;let c=parseInt(s);if(Number.isNaN(c))throw Error(`Environment variable ${V} mast be a number, got "${s}"`);return c},configFileSelector:(e)=>{let s=e[z];if(!s)return;let c=parseInt(s);if(Number.isNaN(c))throw Error(`Shared config file entry ${z} mast be a number, got "${s}"`);return c},default:E},hr=(e,s)=>{let{retryStrategy:c,retryMode:d}=e,{defaultMaxAttempts:o=E,defaultBaseDelay:a=b.delay()}=s??{},l=Se(e.maxAttempts??o),t=c?Promise.resolve(c):void 0,n=async()=>{let i=await l();if(await Se(d)()===w.ADAPTIVE)return new Ge(l,{maxAttempts:i,baseDelay:a});return new R({maxAttempts:i,baseDelay:a})};return Object.assign(e,{maxAttempts:l,retryStrategy:()=>t??=n()})},Ye="AWS_RETRY_MODE",je="retry_mode",gr={environmentVariableSelector:(e)=>e[Ye],configFileSelector:(e)=>e[je],default:qe},Ke=()=>(e)=>async(s)=>{let{request:c}=s;if(N.isInstance(c))delete c.headers[L],delete c.headers[U];return e(s)},Xe={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},mr=(e)=>({applyToStack:(s)=>{s.addRelativeTo(Ke(),Xe)}}),Ar=Be(we),br=dr(we);yr.AdaptiveRetryStrategy=Ge;yr.CONFIG_MAX_ATTEMPTS=z;yr.CONFIG_RETRY_MODE=je;yr.ConfiguredRetryStrategy=We;yr.DEFAULT_MAX_ATTEMPTS=E;yr.DEFAULT_RETRY_DELAY_BASE=Oe;yr.DEFAULT_RETRY_MODE=qe;yr.DefaultRateLimiter=O;yr.DeprecatedAdaptiveRetryStrategy=ze;yr.DeprecatedStandardRetryStrategy=X;yr.ENV_MAX_ATTEMPTS=V;yr.ENV_RETRY_MODE=Ye;yr.INITIAL_RETRY_TOKENS=D;yr.INVOCATION_ID_HEADER=L;yr.MAXIMUM_RETRY_DELAY=C;yr.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=pr;yr.NODE_RETRY_MODE_CONFIG_OPTIONS=gr;yr.NO_RETRY_INCREMENT=K;yr.REQUEST_HEADER=U;yr.RETRY_COST=Fe;yr.RETRY_MODES=w;yr.Retry=b;yr.StandardRetryStrategy=R;yr.THROTTLING_RETRY_DELAY_BASE=ke;yr.TIMEOUT_RETRY_COST=Ie;yr.defaultDelayDecider=$e;yr.defaultRetryDecider=Ve;yr.getOmitRetryHeadersPlugin=mr;yr.getRetryAfterHint=sr;yr.getRetryPlugin=br;yr.isBrowserNetworkError=Te;yr.isClockSkewCorrectedError=Ee;yr.isClockSkewError=ve;yr.isNodeJsHttp2TransientError=xe;yr.isRetryableByTrait=Y;yr.isServerError=Re;yr.isThrottlingError=P;yr.isTransientError=x;yr.omitRetryHeadersMiddleware=Ke;yr.omitRetryHeadersMiddlewareOptions=Xe;yr.resolveRetryConfig=hr;yr.retryMiddleware=Ar;yr.retryMiddlewareOptions=Le});var Je=r(function(dn){var v={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},Q=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!Q)globalThis.awslambda=globalThis.awslambda||{};class H{static PROTECTED_KEYS=v;isProtectedKey(e){return Object.values(v).includes(e)}getRequestId(){return this.get(v.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(v.X_RAY_TRACE_ID)}getTenantId(){return this.get(v.TENANT_ID)}getTraceparent(){return this.get(v.TRACEPARENT)}getTracestate(){return this.get(v.TRACESTATE)}getBaggage(){return this.get(v.BAGGAGE)}}class Qe extends H{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,s){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=s}run(e,s){return this.currentContext=e,s()}}class Z extends H{als;static async create(){let e=new Z,s=await import("async_hooks");return e.als=new s.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,s){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);let c=this.als.getStore();if(!c)throw Error("No context available");c[e]=s}run(e,s){return this.als.run(e,s)}}dn.InvokeStore=void 0;(function(e){let s=null;async function c(d){if(!s)s=(async()=>{let a=d===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await Z.create():new Qe;if(!Q&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!Q&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=a,a;else return a})();return s}e.getInstanceAsync=c,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(s=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={InvokeStore:void 0}}}:void 0})(dn.InvokeStore||(dn.InvokeStore={}));dn.InvokeStoreBase=H});var Ce=r(function(Pn){var{getSmithyContext:ee,hasOwn:fn}=He();Pn.getSmithyContext=ee;var{HttpRequest:ne}=j(),{requestBuilder:pn}=j();Pn.requestBuilder=pn;var{HttpApiKeyAuthLocation:et}=Pt(),hn=(e,s)=>{if(!s||s.length===0)return e;let c=[];for(let d of s)for(let o of e)if(o.schemeId.split("#")[1]===d)c.push(o);for(let d of e)if(!c.find(({schemeId:o})=>o===d.schemeId))c.push(d);return c};function gn(e){let s=new Map;for(let c of e)s.set(c.schemeId,c);return s}var ie=(e,s)=>(c,d)=>async(o)=>{let a=e.httpAuthSchemeProvider(await s.httpAuthSchemeParametersProvider(e,d,o.input)),l=e.authSchemePreference?await e.authSchemePreference():[],t=hn(a,l),n=gn(e.httpAuthSchemes),i=ee(d),g=[];for(let f of t){let p=n.get(f.schemeId);if(!p){g.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}let h=p.identityProvider(await s.identityProviderConfigProvider(e));if(!h){g.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:m={},signingProperties:A={}}=f.propertiesExtractor?.(e,d)||{};f.identityProperties=Object.assign(f.identityProperties||{},m),f.signingProperties=Object.assign(f.signingProperties||{},A),i.selectedHttpAuthScheme={httpAuthOption:f,identity:await h(f.identityProperties),signer:p.signer};break}if(!i.selectedHttpAuthScheme)throw Error(g.join(`
|
|
3
|
+
`));return c(o)},tt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},mn=(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c})=>({applyToStack:(d)=>{d.addRelativeTo(ie(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c}),tt)}}),rt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},An=(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c})=>({applyToStack:(d)=>{d.addRelativeTo(ie(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c}),rt)}}),bn=(e)=>(s)=>{throw s},yn=(e,s)=>{},nt=(e)=>(s,c)=>async(d)=>{if(!ne.isInstance(d.request))return s(d);let a=ee(c).selectedHttpAuthScheme;if(!a)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:l={}},identity:t,signer:n}=a,i=await s({...d,request:await n.sign(d.request,t,l)}).catch((n.errorHandler||bn)(l));return(n.successHandler||yn)(i.response,l),i},it={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Sn=(e)=>({applyToStack:(s)=>{s.addRelativeTo(nt(),it)}}),_n=(e)=>{if(typeof e==="function")return e;let s=Promise.resolve(e);return()=>s},Mn=async(e,s,c,d=(a)=>a,...o)=>{let a=new e(c);return a=d(a)??a,await s.send(a,...o)};function wn(e,s,c,d,o){return async function*(l,t,...n){let i=t,g=l.startingToken??i[c],f=!0,p;while(f){if(i[c]=g,o)i[o]=i[o]??l.pageSize;if(l.client instanceof e)p=await Mn(s,l.client,t,l.withCommand,...n);else throw Error(`Invalid client, expected instance of ${e.name}`);yield p;let h=g;g=vn(p,d),f=!!(g&&(!l.stopOnSameToken||g!==h))}return}}var vn=(e,s)=>{let c=e,d=s.split(".");for(let o of d){if(!c||typeof c!=="object")return;c=c[o]}return c};function En(e,s,c){if(!e.__smithy_context)e.__smithy_context={features:{}};else if(!e.__smithy_context.features)e.__smithy_context.features={};e.__smithy_context.features[s]=c}class st{authSchemes=new Map;constructor(e){for(let s in e){if(!fn(e,s))continue;let c=e[s];if(c!==void 0)this.authSchemes.set(s,c)}}getIdentityProvider(e){return this.authSchemes.get(e)}}class ot{async sign(e,s,c){if(!c)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!c.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!c.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!s.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let d=ne.clone(e);if(c.in===et.QUERY)d.query[c.name]=s.apiKey;else if(c.in===et.HEADER)d.headers[c.name]=c.scheme?`${c.scheme} ${s.apiKey}`:s.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+c.in+"`");return d}}class at{async sign(e,s,c){let d=ne.clone(e);if(!s.token)throw Error("request could not be signed with `token` since the `token` is not defined");return d.headers.Authorization=`Bearer ${s.token}`,d}}class ct{async sign(e,s,c){return e}}var ut=(e)=>function(c){return lt(c)&&c.expiration.getTime()-Date.now()<e},dt=300000,Tn=ut(dt),lt=(e)=>e.expiration!==void 0,Rn=(e,s,c)=>{if(e===void 0)return;let d=typeof e!=="function"?async()=>Promise.resolve(e):e,o,a,l,t=!1,n=async(i)=>{if(!a)a=d(i);try{o=await a,l=!0,t=!1}finally{a=void 0}return o};if(s===void 0)return async(i)=>{if(!l||i?.forceRefresh)o=await n(i);return o};return async(i)=>{if(!l||i?.forceRefresh)o=await n(i);if(t)return o;if(!c(o))return t=!0,o;if(s(o))return await n(i),o;return o}};Pn.DefaultIdentityProviderConfig=st;Pn.EXPIRATION_MS=dt;Pn.HttpApiKeyAuthSigner=ot;Pn.HttpBearerAuthSigner=at;Pn.NoAuthSigner=ct;Pn.createIsIdentityExpiredFunction=ut;Pn.createPaginator=wn;Pn.doesIdentityRequireRefresh=lt;Pn.getHttpAuthSchemeEndpointRuleSetPlugin=mn;Pn.getHttpAuthSchemePlugin=An;Pn.getHttpSigningPlugin=Sn;Pn.httpAuthSchemeEndpointRuleSetMiddlewareOptions=tt;Pn.httpAuthSchemeMiddleware=ie;Pn.httpAuthSchemeMiddlewareOptions=rt;Pn.httpSigningMiddleware=nt;Pn.httpSigningMiddlewareOptions=it;Pn.isIdentityExpired=Tn;Pn.memoizeIdentityProvider=Rn;Pn.normalizeProvider=_n;Pn.setFeature=En});var ft=r(function(k,se){(function(e,s){typeof k=="object"&&typeof se=="object"?se.exports=s():typeof define=="function"&&define.amd?define([],s):typeof k=="object"?k.bowser=s():e.bowser=s()})(k,function(){return function(e){var s={};function c(d){if(s[d])return s[d].exports;var o=s[d]={i:d,l:!1,exports:{}};return e[d].call(o.exports,o,o.exports,c),o.l=!0,o.exports}return c.m=e,c.c=s,c.d=function(d,o,a){c.o(d,o)||Object.defineProperty(d,o,{enumerable:!0,get:a})},c.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},c.t=function(d,o){if(1&o&&(d=c(d)),8&o)return d;if(4&o&&typeof d=="object"&&d&&d.__esModule)return d;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:d}),2&o&&typeof d!="string")for(var l in d)c.d(a,l,function(t){return d[t]}.bind(null,l));return a},c.n=function(d){var o=d&&d.__esModule?function(){return d.default}:function(){return d};return c.d(o,"a",o),o},c.o=function(d,o){return Object.prototype.hasOwnProperty.call(d,o)},c.p="",c(c.s=90)}({17:function(e,s,c){s.__esModule=!0,s.default=void 0;var d=c(18),o=function(){function a(){}return a.getFirstMatch=function(l,t){var n=t.match(l);return n&&n.length>0&&n[1]||""},a.getSecondMatch=function(l,t){var n=t.match(l);return n&&n.length>1&&n[2]||""},a.matchAndReturnConst=function(l,t,n){if(l.test(t))return n},a.getWindowsVersionName=function(l){switch(l){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},a.getMacOSVersionName=function(l){var t=l.split(".").splice(0,2).map(function(g){return parseInt(g,10)||0});t.push(0);var n=t[0],i=t[1];if(n===10)switch(i){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(n){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},a.getAndroidVersionName=function(l){var t=l.split(".").splice(0,2).map(function(n){return parseInt(n,10)||0});if(t.push(0),!(t[0]===1&&t[1]<5))return t[0]===1&&t[1]<6?"Cupcake":t[0]===1&&t[1]>=6?"Donut":t[0]===2&&t[1]<2?"Eclair":t[0]===2&&t[1]===2?"Froyo":t[0]===2&&t[1]>2?"Gingerbread":t[0]===3?"Honeycomb":t[0]===4&&t[1]<1?"Ice Cream Sandwich":t[0]===4&&t[1]<4?"Jelly Bean":t[0]===4&&t[1]>=4?"KitKat":t[0]===5?"Lollipop":t[0]===6?"Marshmallow":t[0]===7?"Nougat":t[0]===8?"Oreo":t[0]===9?"Pie":void 0},a.getVersionPrecision=function(l){return l.split(".").length},a.compareVersions=function(l,t,n){n===void 0&&(n=!1);var i=a.getVersionPrecision(l),g=a.getVersionPrecision(t),f=Math.max(i,g),p=0,h=a.map([l,t],function(m){var A=f-a.getVersionPrecision(m),y=m+Array(A+1).join(".0");return a.map(y.split("."),function(T){return Array(20-T.length).join("0")+T}).reverse()});for(n&&(p=f-Math.min(i,g)),f-=1;f>=p;){if(h[0][f]>h[1][f])return 1;if(h[0][f]===h[1][f]){if(f===p)return 0;f-=1}else if(h[0][f]<h[1][f])return-1}},a.map=function(l,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(l,t);for(n=0;n<l.length;n+=1)i.push(t(l[n]));return i},a.find=function(l,t){var n,i;if(Array.prototype.find)return Array.prototype.find.call(l,t);for(n=0,i=l.length;n<i;n+=1){var g=l[n];if(t(g,n))return g}},a.assign=function(l){for(var t,n,i=l,g=arguments.length,f=Array(g>1?g-1:0),p=1;p<g;p++)f[p-1]=arguments[p];if(Object.assign)return Object.assign.apply(Object,[l].concat(f));var h=function(){var m=f[t];typeof m=="object"&&m!==null&&Object.keys(m).forEach(function(A){i[A]=m[A]})};for(t=0,n=f.length;t<n;t+=1)h();return l},a.getBrowserAlias=function(l){return d.BROWSER_ALIASES_MAP[l]},a.getBrowserTypeByAlias=function(l){return d.BROWSER_MAP[l]||""},a}();s.default=o,e.exports=s.default},18:function(e,s,c){s.__esModule=!0,s.ENGINE_MAP=s.OS_MAP=s.PLATFORMS_MAP=s.BROWSER_MAP=s.BROWSER_ALIASES_MAP=void 0,s.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},s.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},s.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},s.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},s.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,s,c){s.__esModule=!0,s.default=void 0;var d,o=(d=c(91))&&d.__esModule?d:{default:d},a=c(18);function l(n,i){for(var g=0;g<i.length;g++){var f=i[g];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}var t=function(){function n(){}var i,g,f;return n.getParser=function(p,h,m){if(h===void 0&&(h=!1),m===void 0&&(m=null),typeof p!="string")throw Error("UserAgent should be a string");return new o.default(p,h,m)},n.parse=function(p,h){return h===void 0&&(h=null),new o.default(p,h).getResult()},i=n,f=[{key:"BROWSER_MAP",get:function(){return a.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return a.ENGINE_MAP}},{key:"OS_MAP",get:function(){return a.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return a.PLATFORMS_MAP}}],(g=null)&&l(i.prototype,g),f&&l(i,f),n}();s.default=t,e.exports=s.default},91:function(e,s,c){s.__esModule=!0,s.default=void 0;var d=n(c(92)),o=n(c(93)),a=n(c(94)),l=n(c(95)),t=n(c(17));function n(g){return g&&g.__esModule?g:{default:g}}var i=function(){function g(p,h,m){if(h===void 0&&(h=!1),m===void 0&&(m=null),p==null||p==="")throw Error("UserAgent parameter can't be empty");this._ua=p;var A=!1;typeof h=="boolean"?(A=h,this._hints=m):this._hints=h!=null&&typeof h=="object"?h:null,this.parsedResult={},A!==!0&&this.parse()}var f=g.prototype;return f.getHints=function(){return this._hints},f.hasBrand=function(p){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var h=p.toLowerCase();return this._hints.brands.some(function(m){return m.brand&&m.brand.toLowerCase()===h})},f.getBrandVersion=function(p){if(this._hints&&Array.isArray(this._hints.brands)){var h=p.toLowerCase(),m=this._hints.brands.find(function(A){return A.brand&&A.brand.toLowerCase()===h});return m?m.version:void 0}},f.getUA=function(){return this._ua},f.test=function(p){return p.test(this._ua)},f.parseBrowser=function(){var p=this;this.parsedResult.browser={};var h=t.default.find(d.default,function(m){if(typeof m.test=="function")return m.test(p);if(Array.isArray(m.test))return m.test.some(function(A){return p.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.browser=h.describe(this.getUA(),this)),this.parsedResult.browser},f.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},f.getBrowserName=function(p){return p?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},f.getBrowserVersion=function(){return this.getBrowser().version},f.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},f.parseOS=function(){var p=this;this.parsedResult.os={};var h=t.default.find(o.default,function(m){if(typeof m.test=="function")return m.test(p);if(Array.isArray(m.test))return m.test.some(function(A){return p.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.os=h.describe(this.getUA())),this.parsedResult.os},f.getOSName=function(p){var h=this.getOS().name;return p?String(h).toLowerCase()||"":h||""},f.getOSVersion=function(){return this.getOS().version},f.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},f.getPlatformType=function(p){p===void 0&&(p=!1);var h=this.getPlatform().type;return p?String(h).toLowerCase()||"":h||""},f.parsePlatform=function(){var p=this;this.parsedResult.platform={};var h=t.default.find(a.default,function(m){if(typeof m.test=="function")return m.test(p);if(Array.isArray(m.test))return m.test.some(function(A){return p.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.platform=h.describe(this.getUA())),this.parsedResult.platform},f.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},f.getEngineName=function(p){return p?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},f.parseEngine=function(){var p=this;this.parsedResult.engine={};var h=t.default.find(l.default,function(m){if(typeof m.test=="function")return m.test(p);if(Array.isArray(m.test))return m.test.some(function(A){return p.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.engine=h.describe(this.getUA())),this.parsedResult.engine},f.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},f.getResult=function(){return t.default.assign({},this.parsedResult)},f.satisfies=function(p){var h=this,m={},A=0,y={},T=0;if(Object.keys(p).forEach(function(M){var F=p[M];typeof F=="string"?(y[M]=F,T+=1):typeof F=="object"&&(m[M]=F,A+=1)}),A>0){var he=Object.keys(m),ge=t.default.find(he,function(M){return h.isOS(M)});if(ge){var me=this.satisfies(m[ge]);if(me!==void 0)return me}var Ae=t.default.find(he,function(M){return h.isPlatform(M)});if(Ae){var be=this.satisfies(m[Ae]);if(be!==void 0)return be}}if(T>0){var jt=Object.keys(y),ye=t.default.find(jt,function(M){return h.isBrowser(M,!0)});if(ye!==void 0)return this.compareVersion(y[ye])}},f.isBrowser=function(p,h){h===void 0&&(h=!1);var m=this.getBrowserName().toLowerCase(),A=p.toLowerCase(),y=t.default.getBrowserTypeByAlias(A);return h&&y&&(A=y.toLowerCase()),A===m},f.compareVersion=function(p){var h=[0],m=p,A=!1,y=this.getBrowserVersion();if(typeof y=="string")return p[0]===">"||p[0]==="<"?(m=p.substr(1),p[1]==="="?(A=!0,m=p.substr(2)):h=[],p[0]===">"?h.push(1):h.push(-1)):p[0]==="="?m=p.substr(1):p[0]==="~"&&(A=!0,m=p.substr(1)),h.indexOf(t.default.compareVersions(y,m,A))>-1},f.isOS=function(p){return this.getOSName(!0)===String(p).toLowerCase()},f.isPlatform=function(p){return this.getPlatformType(!0)===String(p).toLowerCase()},f.isEngine=function(p){return this.getEngineName(!0)===String(p).toLowerCase()},f.is=function(p,h){return h===void 0&&(h=!1),this.isBrowser(p,h)||this.isOS(p)||this.isPlatform(p)},f.some=function(p){var h=this;return p===void 0&&(p=[]),p.some(function(m){return h.is(m)})},g}();s.default=i,e.exports=s.default},92:function(e,s,c){s.__esModule=!0,s.default=void 0;var d,o=(d=c(17))&&d.__esModule?d:{default:d},a=/version\/(\d+(\.?_?\d+)+)/i,l=[{test:[/gptbot/i],describe:function(t){var n={name:"GPTBot"},i=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/chatgpt-user/i],describe:function(t){var n={name:"ChatGPT-User"},i=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/oai-searchbot/i],describe:function(t){var n={name:"OAI-SearchBot"},i=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var n={name:"ClaudeBot"},i=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var n={name:"Omgilibot"},i=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/diffbot/i],describe:function(t){var n={name:"Diffbot"},i=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/perplexitybot/i],describe:function(t){var n={name:"PerplexityBot"},i=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/perplexity-user/i],describe:function(t){var n={name:"Perplexity-User"},i=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/youbot/i],describe:function(t){var n={name:"YouBot"},i=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-webindexer/i],describe:function(t){var n={name:"Meta-WebIndexer"},i=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalads/i],describe:function(t){var n={name:"Meta-ExternalAds"},i=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalagent/i],describe:function(t){var n={name:"Meta-ExternalAgent"},i=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalfetcher/i],describe:function(t){var n={name:"Meta-ExternalFetcher"},i=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},i=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/linespider/i],describe:function(t){var n={name:"Linespider"},i=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/amazonbot/i],describe:function(t){var n={name:"AmazonBot"},i=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/bingbot/i],describe:function(t){var n={name:"BingCrawler"},i=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/baiduspider/i],describe:function(t){var n={name:"BaiduSpider"},i=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/duckduckbot/i],describe:function(t){var n={name:"DuckDuckBot"},i=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/ia_archiver/i],describe:function(t){var n={name:"InternetArchiveCrawler"},i=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(t){var n={name:"SlackBot"},i=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},i=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/PaleMoon/i],describe:function(t){var n={name:"Pale Moon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},i=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},i=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},i=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},i=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},i=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},i=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},i=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},i=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},i=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/edg([ea]|ios)/i],describe:function(t){var n={name:"Microsoft Edge"},i=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/vivaldi/i],describe:function(t){var n={name:"Vivaldi"},i=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},i=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},i=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return i&&(n.version=i),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},i=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},i=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},i=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},i=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},i=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},i=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/librewolf/i],describe:function(t){var n={name:"LibreWolf"},i=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},i=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},i=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var n={name:"Sogou Browser"},i=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),g=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),f=o.default.getFirstMatch(/se ([\d.]+)x/i,t),p=i||g||f;return p&&(n.version=p),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},i=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return!!t.hasBrand("DuckDuckGo")||t.test(/\sDdg\/[\d.]+$/i)},describe:function(t,n){var i={name:"DuckDuckGo"};if(n){var g=n.getBrandVersion("DuckDuckGo");if(g)return i.version=g,i}var f=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,t);return f&&(i.version=f),i}},{test:function(t){return t.hasBrand("Brave")},describe:function(t,n){var i={name:"Brave"};if(n){var g=n.getBrandVersion("Brave");if(g)return i.version=g,i}return i}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},i=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},i=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},i=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n={name:"Android Browser"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/.*/i],describe:function(t){var n=t.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(n,t),version:o.default.getSecondMatch(n,t)}}}];s.default=l,e.exports=s.default},93:function(e,s,c){s.__esModule=!0,s.default=void 0;var d,o=(d=c(17))&&d.__esModule?d:{default:d},a=c(18),l=[{test:[/Roku\/DVP/],describe:function(t){var n=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:a.OS_MAP.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),i=o.default.getWindowsVersionName(n);return{name:a.OS_MAP.Windows,version:n,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var n={name:a.OS_MAP.iOS},i=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return i&&(n.version=i),n}},{test:[/macintosh/i],describe:function(t){var n=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),i=o.default.getMacOSVersionName(n),g={name:a.OS_MAP.MacOS,version:n};return i&&(g.versionName=i),g}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:a.OS_MAP.iOS,version:n}}},{test:[/OpenHarmony/i],describe:function(t){var n=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.HarmonyOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),i=o.default.getAndroidVersionName(n),g={name:a.OS_MAP.Android,version:n};return i&&(g.versionName=i),g}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),i={name:a.OS_MAP.WebOS};return n&&n.length&&(i.version=n),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||o.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:a.OS_MAP.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.PlayStation4,version:n}}}];s.default=l,e.exports=s.default},94:function(e,s,c){s.__esModule=!0,s.default=void 0;var d,o=(d=c(17))&&d.__esModule?d:{default:d},a=c(18),l=[{test:[/googlebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var n=o.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",i={type:a.PLATFORMS_MAP.mobile,vendor:"Huawei"};return n&&(i.model=n),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),i=t.test(/like (ipod|iphone)/i);return n&&!i},describe:function(t){var n=o.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:a.PLATFORMS_MAP.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var n=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),i={type:a.PLATFORMS_MAP.mobile,vendor:"Nokia"};return n&&(i.model=n),i}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName(!0)==="blackberry"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return t.getBrowserName(!0)==="bada"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName()==="windows phone"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&n>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(t){return t.getOSName(!0)==="android"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="macos"},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return t.getOSName(!0)==="windows"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="linux"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="playstation 4"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="roku"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];s.default=l,e.exports=s.default},95:function(e,s,c){s.__esModule=!0,s.default=void 0;var d,o=(d=c(17))&&d.__esModule?d:{default:d},a=c(18),l=[{test:function(t){return t.getBrowserName(!0)==="microsoft edge"},describe:function(t){if(/\sedg\//i.test(t))return{name:a.ENGINE_MAP.Blink};var n=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:a.ENGINE_MAP.EdgeHTML,version:n}}},{test:[/trident/i],describe:function(t){var n={name:a.ENGINE_MAP.Trident},i=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:a.ENGINE_MAP.Presto},i=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=t.test(/gecko/i),i=t.test(/like gecko/i);return n&&!i},describe:function(t){var n={name:a.ENGINE_MAP.Gecko},i=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:a.ENGINE_MAP.WebKit},i=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}}];s.default=l,e.exports=s.default}})})});var B=r(function(Vi){var{Retry:Qn,RETRY_MODES:pt}=Ze(),{HttpRequest:le,parseUrl:Jn}=j(),{InvokeStore:ht}=Je(),{normalizeProvider:Zn}=Ce(),{platform:ei,release:ti}=u("os"),{versions:oe,env:gt}=u("process"),{isValidHostLabel:ri,isIpAddress:St,customEndpointFunctions:ni}=Pe(),{EndpointError:ii,resolveEndpoint:si}=Pe();Vi.EndpointError=ii;Vi.isIpAddress=St;Vi.resolveEndpoint=si;var{loadConfig:oi,NODE_REGION_CONFIG_OPTIONS:_t,NODE_REGION_CONFIG_FILE_OPTIONS:Mt}=_(),{REGION_ENV_NAME:ai,REGION_INI_NAME:ci,resolveRegionConfig:ui}=_();Vi.NODE_REGION_CONFIG_FILE_OPTIONS=Mt;Vi.NODE_REGION_CONFIG_OPTIONS=_t;Vi.REGION_ENV_NAME=ai;Vi.REGION_INI_NAME=ci;Vi.resolveRegionConfig=ui;var G={warningEmitted:!1},di=(e)=>{if(e&&!G.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){G.warningEmitted=!0;return}let s=parseInt(e.substring(1,e.indexOf("."))),c=22;if(s<c)G.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
4
|
+
versions published after the first week of January 2027
|
|
5
|
+
will require node >=${c}. You are running node ${e}.
|
|
6
|
+
|
|
7
|
+
To continue receiving updates to AWS services, bug fixes,
|
|
8
|
+
and security updates please upgrade to node >=${c}.
|
|
9
|
+
|
|
10
|
+
More information can be found at: https://a.co/c895JFp`)}},li=()=>(e,s)=>async(c)=>(s.__retryLongPoll=!0,e(c)),fi={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},pi=(e)=>({applyToStack:(s)=>{s.add(li(),fi)}});function hi(e,s,c){if(!e.$source)e.$source={};return e.$source[s]=c,e}Qn.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function S(e,s,c){if(!e.__aws_sdk_context)e.__aws_sdk_context={features:{}};else if(!e.__aws_sdk_context.features)e.__aws_sdk_context.features={};e.__aws_sdk_context.features[s]=c}function gi(e,s,c){if(!e.$source)e.$source={};return e.$source[s]=c,e}function mi(e){return e}var wt=(e)=>(s)=>async(c)=>{if(!le.isInstance(c.request))return s(c);let{request:d}=c,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!d.headers[":authority"])delete d.headers.host,d.headers[":authority"]=d.hostname+(d.port?":"+d.port:"");else if(!d.headers.host){let a=d.hostname;if(d.port!=null)a+=`:${d.port}`;d.headers.host=a}return s(c)},vt={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ai=(e)=>({applyToStack:(s)=>{s.add(wt(e),vt)}}),Et=()=>(e,s)=>async(c)=>{try{let d=await e(c),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:t={}}=s,{overrideInputFilterSensitiveLog:n,overrideOutputFilterSensitiveLog:i}=t,g=n??s.inputFilterSensitiveLog,f=i??s.outputFilterSensitiveLog,{$metadata:p,...h}=d.output;return l?.info?.({clientName:o,commandName:a,input:g(c.input),output:f(h),metadata:p}),d}catch(d){let{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:t={}}=s,{overrideInputFilterSensitiveLog:n}=t,i=n??s.inputFilterSensitiveLog;throw l?.error?.({clientName:o,commandName:a,input:i(c.input),error:d,metadata:d.$metadata}),d}},Tt={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},bi=(e)=>({applyToStack:(s)=>{s.add(Et(),Tt)}}),Rt={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},yi="AWS_LAMBDA_FUNCTION_NAME",Si="_X_AMZN_TRACE_ID",ae="X-Amzn-Trace-Id",de="traceparent",xt="tracestate",Ot="baggage",kt=()=>(e)=>async(s)=>{let{request:c}=s;if(!le.isInstance(c))return e(s);let d;{let o=Object.keys(c.headers??{}).find((a)=>a.toLowerCase()===ae.toLowerCase())??ae;if(!c.headers.hasOwnProperty(o)){let a=process.env[yi],l=process.env[Si];d??=await ht.getInstanceAsync();let n=d?.getXRayTraceId()??l,i=(g)=>typeof g==="string"&&g.length>0;if(i(a)&&i(n))c.headers[ae]=n}}if(_i(c.headers),!c.headers[de]){let a=(d??=await ht.getInstanceAsync())?.getTraceparent?.();if(a){c.headers[de]=a;let l=d?.getTracestate?.();if(l)c.headers[xt]=l;let t=d?.getBaggage?.();if(t)c.headers[Ot]=t}}return e(s)};function _i(e){for(let s of Object.keys(e)){let c=s.toLowerCase();if(s!==c&&(c===de||c===xt||c===Ot))e[c]=e[s],delete e[s]}}var Mi=(e)=>({applyToStack:(s)=>{s.add(kt(),Rt)}}),fe=void 0;function wi(e){if(e===void 0)return!0;return typeof e==="string"&&e.length<=50}function vi(e){let s=Zn(e.userAgentAppId??fe),{customUserAgent:c}=e;return Object.assign(e,{customUserAgent:typeof c==="string"?[[c]]:c,userAgentAppId:async()=>{let d=await s();if(!wi(d)){let o=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof d!=="string")o?.warn("userAgentAppId must be a string or undefined.");else if(d.length>50)o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return d}})}var Ft={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"},It=Ft,Nt="",Dt=(e)=>{let{partitions:s}=It;for(let d of s){let{regions:o,outputs:a}=d;for(let[l,t]of Object.entries(o))if(l===e)return{...a,...t}}for(let d of s){let{regionRegex:o,outputs:a}=d;if(new RegExp(o).test(e))return{...a}}let c=s.find((d)=>d.id==="aws");if(!c)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...c.outputs}},Ct=(e,s="")=>{It=e,Nt=s},Ei=()=>{Ct(Ft,"")},Bt=()=>Nt,Ti=/\d{12}\.ddb/;async function Ri(e,s,c){if(c.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")S(e,"PROTOCOL_RPC_V2_CBOR","M");if(typeof s.retryStrategy==="function"){let a=await s.retryStrategy();if(typeof a.mode==="string")switch(a.mode){case pt.ADAPTIVE:S(e,"RETRY_MODE_ADAPTIVE","F");break;case pt.STANDARD:S(e,"RETRY_MODE_STANDARD","E");break}}if(typeof s.accountIdEndpointMode==="function"){let a=e.endpointV2;if(String(a?.url?.hostname).match(Ti))S(e,"ACCOUNT_ID_ENDPOINT","O");switch(await s.accountIdEndpointMode?.()){case"disabled":S(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":S(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":S(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let a=o;if(a.accountId)S(e,"RESOLVED_ACCOUNT_ID","T");for(let[l,t]of Object.entries(a.$source??{}))S(e,l,t)}}var mt="user-agent",ce="x-amz-user-agent",At=" ",ue="/",Pi=/[^!$%&'*+\-.^_`|~\w]/g,xi=/[^!$%&'*+\-.^_`|~\w#]/g,bt="-",Oi=1024;function ki(e){let s="";for(let c in e){let d=e[c];if(s.length+d.length+1<=Oi){if(s.length)s+=","+d;else s+=d;continue}break}return s}var Lt=(e)=>(s,c)=>async(d)=>{let{request:o}=d;if(!le.isInstance(o))return s(d);let{headers:a}=o,l=c?.userAgent?.map(q)||[],t=(await e.defaultUserAgentProvider()).map(q);await Ri(c,e,d);let n=c;t.push(`m/${ki(Object.assign({},c.__smithy_context?.features,n.__aws_sdk_context?.features))}`);let i=e?.customUserAgent?.map(q)||[],g=await e.userAgentAppId();if(g)t.push(q(["app",`${g}`]));let f=Bt(),p=(f?[f]:[]).concat([...t,...l,...i]).join(At),h=[...t.filter((m)=>m.startsWith("aws-sdk-")),...i].join(At);if(e.runtime!=="browser"){if(h)a[ce]=a[ce]?`${a[mt]} ${h}`:h;a[mt]=p}else a[ce]=p;return s({...d,request:o})},q=(e)=>{let s=e[0].split(ue).map((l)=>l.replace(Pi,bt)).join(ue),c=e[1]?.replace(xi,bt),d=s.indexOf(ue),o=s.substring(0,d),a=s.substring(d+1);if(o==="api")a=a.toLowerCase();return[o,a,c].filter((l)=>l&&l.length>0).reduce((l,t,n)=>{switch(n){case 0:return t;case 1:return`${l}/${t}`;default:return`${l}#${t}`}},"")},Ut={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Fi=(e)=>({applyToStack:(s)=>{s.add(Lt(e),Ut)}}),Ii=()=>{let e=["deno","bun","llrt"];for(let s of e)if(oe[s])return[`md/${s}`,oe[s]];return["md/nodejs",oe.node]},Ht={isCrtAvailable:!1},Ni=()=>{if(Ht.isCrtAvailable)return["md/crt-avail"];return null},qt=({serviceId:e,clientVersion:s})=>{let c=Ii();return async(d)=>{let o=[["aws-sdk-js",s],["ua","2.1"],[`os/${ei()}`,ti()],["lang/js"],c],a=Ni();if(a)o.push(a);if(e)o.push([`api/${e}`,s]);if(gt.AWS_EXECUTION_ENV)o.push([`exec-env/${gt.AWS_EXECUTION_ENV}`]);let l=await d?.userAgentAppId?.();return l?[...o,[`app/${l}`]]:[...o]}},Di=qt,Gt="AWS_SDK_UA_APP_ID",Wt="sdk_ua_app_id",Ci="sdk-ua-app-id",Bi={environmentVariableSelector:(e)=>e[Gt],configFileSelector:(e)=>e[Wt]??e[Ci],default:fe},Li=({serviceId:e,clientVersion:s})=>async(c)=>{let d=ft(),o=d.parse??d.default.parse??(()=>""),a=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,l=[["aws-sdk-js",s],["ua","2.1"],[`os/${a?.os?.name||"other"}`,a?.os?.version],["lang/js"],["md/browser",`${a?.browser?.name??"unknown"}_${a?.browser?.version??"unknown"}`]];if(e)l.push([`api/${e}`,s]);let t=await c?.userAgentAppId?.();if(t)l.push([`app/${t}`]);return l},Ui={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux";return},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari";return}},pe=(e,s=!1)=>{if(s){for(let c of e.split("."))if(!pe(c))return!1;return!0}if(!ri(e))return!1;if(e.length<3||e.length>63)return!1;if(e!==e.toLowerCase())return!1;if(St(e))return!1;return!0},yt=":",Hi="/",$t=(e)=>{let s=e.split(yt);if(s.length<6)return null;let[c,d,o,a,l,...t]=s;if(c!=="arn"||d===""||o===""||t.join(yt)==="")return null;let n=t.map((i)=>i.split(Hi)).flat();return{partition:d,service:o,region:a,accountId:l,resourceId:n}},Vt={isVirtualHostableS3Bucket:pe,parseArn:$t,partition:Dt};ni.aws=Vt;var qi=(e)=>{if(typeof e.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:s}=e;if(s===void 0)e.endpoint=async()=>zt(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:void 0},{logger:e.logger}));return e},zt=(e)=>Jn(e.url);function Gi(e={}){return oi({..._t,async default(){if(!Yt.silence)console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");return"us-east-1"}},{...Mt,...e})}var Yt={silence:!1},Wi=(e)=>({setRegion(s){e.region=s},region(){return e.region}}),$i=(e)=>({region:e.region()});Vi.DEFAULT_UA_APP_ID=fe;Vi.NODE_APP_ID_CONFIG_OPTIONS=Bi;Vi.UA_APP_ID_ENV_NAME=Gt;Vi.UA_APP_ID_INI_NAME=Wt;Vi.awsEndpointFunctions=Vt;Vi.createDefaultUserAgentProvider=qt;Vi.createUserAgentStringParsingProvider=Li;Vi.crtAvailability=Ht;Vi.defaultUserAgent=Di;Vi.emitWarningIfUnsupportedVersion=di;Vi.fallback=Ui;Vi.getAwsRegionExtensionConfiguration=Wi;Vi.getHostHeaderPlugin=Ai;Vi.getLoggerPlugin=bi;Vi.getLongPollPlugin=pi;Vi.getRecursionDetectionPlugin=Mi;Vi.getUserAgentMiddlewareOptions=Ut;Vi.getUserAgentPlugin=Fi;Vi.getUserAgentPrefix=Bt;Vi.hostHeaderMiddleware=wt;Vi.hostHeaderMiddlewareOptions=vt;Vi.isVirtualHostableS3Bucket=pe;Vi.loggerMiddleware=Et;Vi.loggerMiddlewareOptions=Tt;Vi.parseArn=$t;Vi.partition=Dt;Vi.recursionDetectionMiddleware=kt;Vi.recursionDetectionMiddlewareOptions=Rt;Vi.resolveAwsRegionExtensionConfiguration=$i;Vi.resolveDefaultAwsRegionalEndpointsConfig=qi;Vi.resolveHostHeaderConfig=mi;Vi.resolveUserAgentConfig=vi;Vi.setCredentialFeature=hi;Vi.setFeature=S;Vi.setPartitionInfo=Ct;Vi.setTokenFeature=gi;Vi.state=G;Vi.stsRegionDefaultResolver=Gi;Vi.stsRegionWarning=Yt;Vi.toEndpointV1=zt;Vi.useDefaultPartitionInfo=Ei;Vi.userAgentMiddleware=Lt});
|
|
11
|
+
export{Ze,Ce,B};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Database as E}from"bun:sqlite";import{chmodSync as R,closeSync as I,existsSync as T,openSync as m,rmSync as N}from"fs";var S=2,g=2,us="basalt-search.db",Xe=0,Tt=1;function c(t){let e=new E(":memory:");try{for(let r of t)e.run(r);return!0}catch{return!1}finally{e.close()}}var u;function ps(){if(u)return u;let t=c(["CREATE VIRTUAL TABLE f USING fts5(text)"]),e=t&&c(["CREATE VIRTUAL TABLE f USING fts5(text, tokenize='trigram')"]);return u={fts5:t,trigram:e,trigramDiacritics:e&&c(["CREATE VIRTUAL TABLE f USING fts5(text, tokenize='trigram remove_diacritics 1')"]),contentlessDelete:t&&c(["CREATE VIRTUAL TABLE f USING fts5(text, content='', contentless_delete=1)","INSERT INTO f (rowid, text) VALUES (1, 'probe')","DELETE FROM f WHERE rowid = 1"]),secureDelete:t&&c(["CREATE VIRTUAL TABLE f USING fts5(text)","INSERT INTO f (f, rank) VALUES ('secure-delete', 1)"])},u}function L(t){return{msg:t.trigram?"trigram":"unicode61",contentless:t.contentlessDelete}}function A(t){return JSON.stringify({schema:S,extractor:g,...t})}function p(t,e){return`text, ${t.contentless?"content='', contentless_delete=1, ":""}detail=full, tokenize="${e}"`}function d(t,e,r){let n=r.msg==="trigram"?e.trigramDiacritics?"trigram remove_diacritics 1":"trigram":"unicode61 remove_diacritics 2";t.transaction(()=>{if(t.run("CREATE TABLE IF NOT EXISTS meta (k TEXT PRIMARY KEY, v) WITHOUT ROWID"),t.run(`CREATE TABLE IF NOT EXISTS doc (
|
|
3
|
+
id INTEGER PRIMARY KEY,
|
|
4
|
+
hash INTEGER NOT NULL UNIQUE,
|
|
5
|
+
refs INTEGER NOT NULL,
|
|
6
|
+
len INTEGER NOT NULL,
|
|
7
|
+
bulk INTEGER NOT NULL
|
|
8
|
+
)`),t.run(`CREATE TABLE IF NOT EXISTS ref (
|
|
9
|
+
session_id TEXT NOT NULL,
|
|
10
|
+
seq INTEGER NOT NULL,
|
|
11
|
+
part INTEGER NOT NULL,
|
|
12
|
+
doc INTEGER NOT NULL,
|
|
13
|
+
kind INTEGER NOT NULL,
|
|
14
|
+
tool TEXT,
|
|
15
|
+
err INTEGER NOT NULL DEFAULT 0,
|
|
16
|
+
model TEXT,
|
|
17
|
+
time INTEGER NOT NULL,
|
|
18
|
+
PRIMARY KEY (session_id, seq, part)
|
|
19
|
+
) WITHOUT ROWID`),t.run("CREATE INDEX IF NOT EXISTS ref_doc ON ref(doc,time,kind,tool,err,model)"),t.run("CREATE INDEX IF NOT EXISTS ref_time ON ref(time,session_id,seq,part,doc,kind,tool,err,model)"),t.run("CREATE TABLE IF NOT EXISTS term (t TEXT PRIMARY KEY, n INTEGER NOT NULL) WITHOUT ROWID"),t.run("CREATE TABLE IF NOT EXISTS evicted (session_id TEXT PRIMARY KEY) WITHOUT ROWID"),t.run("CREATE TABLE IF NOT EXISTS backfill_todo (ord INTEGER PRIMARY KEY, session_id TEXT NOT NULL)"),t.run(`CREATE VIRTUAL TABLE IF NOT EXISTS fts USING fts5(${p(r,n)})`),t.run(`CREATE VIRTUAL TABLE IF NOT EXISTS fts_out USING fts5(${p(r,"unicode61 remove_diacritics 2")})`),t.run("CREATE VIRTUAL TABLE IF NOT EXISTS fts_vocab USING fts5vocab(fts, 'row')"),t.run("CREATE VIRTUAL TABLE IF NOT EXISTS fts_out_vocab USING fts5vocab(fts_out, 'row')"),e.secureDelete)t.run("INSERT INTO fts (fts, rank) VALUES ('secure-delete', 1)"),t.run("INSERT INTO fts_out (fts_out, rank) VALUES ('secure-delete', 1)");t.query("INSERT OR REPLACE INTO meta (k, v) VALUES ('fingerprint', ?)").run(A(r)),t.query("INSERT OR REPLACE INTO meta (k, v) VALUES ('layout', ?)").run(JSON.stringify(r))})()}function bo(t){for(let e of["","-wal","-shm","-journal"])N(t+e,{force:!0})}function x(t){for(let e of["","-wal","-shm"])if(T(t+e))R(t+e,384)}function Pn(t,e){return t.query("SELECT v FROM main.meta WHERE k = ?").get(e)?.v??void 0}function or(t,e,r){t.query("INSERT OR REPLACE INTO main.meta (k, v) VALUES (?, ?)").run(e,r)}function ds(t,e,r){let n=L(r),s=!1;if(T(t)){let i=!1;try{let a=new E(t);try{i=a.query("SELECT v FROM meta WHERE k = 'fingerprint'").get()?.v===A(n)}finally{a.close()}}catch{i=!1}if(!i)bo(t),s=!0}if(!T(t))I(m(t,"a",384));let o=new E(t,{create:!0,strict:!0});return o.run("PRAGMA journal_mode = WAL"),o.run("PRAGMA synchronous = NORMAL"),o.run("PRAGMA busy_timeout = 5000"),d(o,r,n),x(t),o.query("ATTACH ? AS store").run(e),{db:o,layout:n,reset:s}}function ms(t,e){if(!T(t))return;let r;try{return r=new E(t,{readonly:!0,strict:!0}),r.run("PRAGMA busy_timeout = 5000"),r.query("ATTACH ? AS store").run(e),r.query("SELECT v FROM meta WHERE k = 'layout'").get(),r}catch{r?.close();return}}var hs=49152,gs=16384,ys=64;function f(t){if(t.length<=65536)return t;return`${t.slice(0,49152)}
|
|
20
|
+
\u2026
|
|
21
|
+
${t.slice(-16384)}`}var O=/[\u3040-\u30FF\u3400-\u9FFF\uF900-\uFAFF\uAC00-\uD7AF]+/g,_=/[A-Za-z][a-z0-9]*(?:[A-Z][a-z0-9]+)+|[A-Z]{2,}[a-z0-9]+[A-Za-z0-9]*/g,U=/([a-z0-9])([A-Z])|([A-Z])([A-Z][a-z])/g;function So(t){return t.replace(O,(e)=>{if(e.length===1)return` ${e} `;let r=[];for(let n=0;n<e.length-1;n++)r.push(e.slice(n,n+2));return` ${r.join(" ")} `}).replace(_,(e)=>`${e} ${e.replace(U,"$1$3 $2$4")}`)}function bs(t){return`${t} `}function Ut(t){return t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]+/g,"").normalize("NFC")}var y=/[\p{L}\p{N}\p{Co}]+/gu;function Ss(t){return Ut(So(t)).match(y)??[]}var We={user:1,assistant:2,thinking:3,tool_input:4,tool_output:5,error:6,extension:7,notice:8,attachment:9,title:10},wo=Object.fromEntries(Object.entries(We).map(([t,e])=>[e,t])),h=1e4,k=-1,C=2048;function ws(t){return t==="tool_output"||t==="attachment"||t==="thinking"||t==="tool_input"}function l(t,e=[],r=0){if(r>6)return e;if(typeof t==="string")e.push(t);else if(typeof t==="number"||typeof t==="boolean")e.push(String(t));else if(Array.isArray(t))for(let n of t)l(n,e,r+1);else if(t&&typeof t==="object")for(let n of Object.values(t))l(n,e,r+1);return e}function st(t,e=!1){let r=[];switch(t.type){case"user":{if(typeof t.text==="string")r.push({part:0,kind:t.notices?"notice":"user",text:t.text});(Array.isArray(t.attachments)?t.attachments:[]).forEach((s,o)=>{let i=String(s?.name??""),a=s?.kind==="image"?i:`${i}
|
|
22
|
+
${String(s?.data??"")}`;r.push({part:1+o,kind:"attachment",text:a})});break}case"notice_pending":if(typeof t.notice?.text==="string")r.push({part:0,kind:"notice",text:t.notice.text});break;case"assistant":{let n=typeof t.model==="string"?t.model:void 0;if((Array.isArray(t.parts)?t.parts:[]).forEach((o,i)=>{if(o?.type==="text"||o?.type==="thinking"){if(typeof o.text==="string")r.push({part:i,kind:o.type==="text"?"assistant":"thinking",text:o.text,model:n})}else if(o?.type==="tool_call"){let a=typeof o.name==="string"?o.name:void 0;if(r.push({part:i,kind:"tool_input",tool:a,model:n,text:[a??"",...l(o.input)].join(`
|
|
23
|
+
`)}),typeof o.output==="string")r.push({part:h+i,kind:"tool_output",tool:a,model:n,text:o.output})}}),typeof t.error==="string")r.push({part:k,kind:"error",err:!0,model:n,text:t.error});break}case"tool_result":{let n=typeof t.name==="string"?t.name:void 0,s=typeof t.output==="string"?t.output:"",o=t.isError===!0;if(r.push({part:0,kind:"tool_output",tool:n,err:o,text:s}),o)r.push({part:1,kind:"error",tool:n,err:o,text:s.slice(0,C)});break}case"run":if("error"in t&&typeof t.error==="string")r.push({part:0,kind:"error",err:!0,text:t.error});break;case"extension":{let n=t.display;if(n&&typeof n.text==="string")r.push({part:0,kind:"extension",text:`${n.title??""}
|
|
24
|
+
${n.text}`});break}}if(!e)for(let n of r)n.text=f(n.text);return r.filter((n)=>n.text.trim())}function xs(t){return t.trim()?[{part:0,kind:"title",text:f(t)}]:[]}
|
|
25
|
+
export{us,Xe,Tt,ps,bo,Pn,or,ds,ms,hs,gs,ys,So,bs,Ut,Ss,We,wo,ws,st,xs};
|