@qitqode/qitqode-android-arm64 0.2.11 → 0.2.14
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/bundle/{chunk-p5p4jh9s.js → chunk-00ft63qn.js} +1 -1
- package/bundle/chunk-00r3he5x.js +2 -0
- package/bundle/{chunk-bh1zbz62.js → chunk-02tmc2st.js} +1 -1
- package/bundle/{chunk-k8zbhj2p.js → chunk-05bkxat0.js} +2 -2
- package/bundle/{chunk-wspbjh74.js → chunk-06tgmvh6.js} +2 -2
- package/bundle/{chunk-s3hbwksw.js → chunk-07b4pkk6.js} +1 -1
- package/bundle/{chunk-fzxqn4j0.js → chunk-0ejx0yqx.js} +1 -1
- package/bundle/chunk-0ks20gz1.js +2 -0
- package/bundle/{chunk-wdy0fsp8.js → chunk-0m4gvjcv.js} +2 -2
- package/bundle/{chunk-jf4zyy7r.js → chunk-0mztgsxp.js} +1 -1
- package/bundle/{chunk-075gkea2.js → chunk-10kj86va.js} +1 -1
- package/bundle/{chunk-y8tx9x5b.js → chunk-10q04xh5.js} +1 -1
- package/bundle/{chunk-pdcj2rfz.js → chunk-175720ws.js} +2 -2
- package/bundle/{chunk-r1936yb5.js → chunk-19rs84t8.js} +1 -1
- package/bundle/{chunk-bwzbcwff.js → chunk-1a08ffyd.js} +1 -1
- package/bundle/{chunk-vbcekkw2.js → chunk-1bq15kf0.js} +2 -2
- package/bundle/{chunk-rvev3cy6.js → chunk-1e75j4m1.js} +2 -2
- package/bundle/{chunk-n4fwztya.js → chunk-1gdt9q05.js} +1 -1
- package/bundle/{chunk-wp0xd7at.js → chunk-1mfdmm2t.js} +1 -1
- package/bundle/{chunk-eya9c81t.js → chunk-1pft3sar.js} +1 -1
- package/bundle/chunk-1r7anzk5.js +2 -0
- package/bundle/{chunk-zr1cvkpb.js → chunk-1ypzf18e.js} +1 -1
- package/bundle/chunk-26e51217.js +2 -0
- package/bundle/{chunk-tyk97q7c.js → chunk-2ascwm7j.js} +1 -1
- package/bundle/{chunk-jfe9f2wv.js → chunk-2d61z24r.js} +1 -1
- package/bundle/chunk-2g4kxtz0.js +2 -0
- package/bundle/chunk-2jzay8a9.js +2 -0
- package/bundle/{chunk-fqvsxg00.js → chunk-2k2szpze.js} +1 -1
- package/bundle/chunk-2q78bdtj.js +2 -0
- package/bundle/{chunk-c53ev0da.js → chunk-2w3n0q9m.js} +2 -2
- package/bundle/{chunk-seda5sfd.js → chunk-2w79k0mh.js} +2 -2
- package/bundle/chunk-30rghawe.js +2 -0
- package/bundle/{chunk-j7d3v0x2.js → chunk-3152y1q9.js} +1 -1
- package/bundle/chunk-31a47ptm.js +10 -0
- package/bundle/chunk-33mzqyyb.js +3 -0
- package/bundle/chunk-34yk99ep.js +2 -0
- package/bundle/{chunk-xf1y0sc6.js → chunk-358wdvj7.js} +2 -2
- package/bundle/{chunk-zr89enb8.js → chunk-3c73rngn.js} +1 -1
- package/bundle/{chunk-h8yf5e2e.js → chunk-3cs1qf8x.js} +1 -1
- package/bundle/chunk-3dajnr1w.js +2 -0
- package/bundle/chunk-3ege6krg.js +2 -0
- package/bundle/chunk-43vpxggb.js +2 -0
- package/bundle/{chunk-5qydhr42.js → chunk-47jkx37s.js} +3 -3
- package/bundle/{chunk-wqkvsj5y.js → chunk-48rg4yhk.js} +2 -2
- package/bundle/chunk-49y7zg15.js +2 -0
- package/bundle/{chunk-e5cds19n.js → chunk-4hvenszg.js} +1 -1
- package/bundle/{chunk-9d2mtevw.js → chunk-4p9fny77.js} +1 -1
- package/bundle/{chunk-sbj816s8.js → chunk-4ppw719f.js} +1 -1
- package/bundle/{chunk-ghdegwnr.js → chunk-4r7fbkcm.js} +1 -1
- package/bundle/{chunk-r4qpsa4e.js → chunk-4s1n38ds.js} +2 -2
- package/bundle/{chunk-ya6r72ng.js → chunk-4v29ayke.js} +1 -1
- package/bundle/{chunk-yvtbt12y.js → chunk-4xqwt6dr.js} +2 -2
- package/bundle/{chunk-89b6ttzs.js → chunk-4ycg2c6f.js} +2 -2
- package/bundle/{chunk-b79bb2g3.js → chunk-5341jv20.js} +1 -1
- package/bundle/{chunk-1dnvdeat.js → chunk-583d91xq.js} +2 -2
- package/bundle/{chunk-t7s475b2.js → chunk-5cwy8y78.js} +2 -2
- package/bundle/{chunk-x28chfpz.js → chunk-5dvy83ms.js} +2 -2
- package/bundle/{chunk-fd6qxjtf.js → chunk-5h1s0akp.js} +1 -1
- package/bundle/{chunk-ztjrm8m0.js → chunk-5mf4qrye.js} +2 -2
- package/bundle/{chunk-hav9pgf3.js → chunk-5q98z8ck.js} +2 -2
- package/bundle/chunk-5qhsfjzq.js +3 -0
- package/bundle/{chunk-rpc0he6b.js → chunk-5rvvfgfy.js} +2 -2
- package/bundle/chunk-5xxn06g0.js +2 -0
- package/bundle/{chunk-tqnf1p88.js → chunk-61b81z2h.js} +1 -1
- package/bundle/{chunk-y24yxs9g.js → chunk-62gefpwn.js} +2 -2
- package/bundle/{chunk-2h8b0csf.js → chunk-674pexjx.js} +2 -2
- package/bundle/{chunk-4805mxf7.js → chunk-69htq8kq.js} +1 -1
- package/bundle/{chunk-2ts74cgq.js → chunk-69k7cdtv.js} +2 -2
- package/bundle/{chunk-vhh80d5j.js → chunk-6cztstry.js} +2 -2
- package/bundle/{chunk-78e76m4h.js → chunk-6d4xc6br.js} +1 -1
- package/bundle/{chunk-78yvbv9b.js → chunk-6dd2dx69.js} +2 -2
- package/bundle/{chunk-eftk07r3.js → chunk-6j53vtzd.js} +1 -1
- package/bundle/{chunk-yg0rs4g1.js → chunk-6kch0q2d.js} +2 -2
- package/bundle/{chunk-akrcbxfa.js → chunk-6pt6nqwk.js} +1 -1
- package/bundle/{chunk-rkmg0gbq.js → chunk-6wmtbebc.js} +1 -1
- package/bundle/{chunk-kr975sx0.js → chunk-6y0wgz2j.js} +1 -1
- package/bundle/{chunk-datctfgt.js → chunk-6yshpz0z.js} +2 -2
- package/bundle/{chunk-3hawwbw6.js → chunk-71jmhvef.js} +2 -2
- package/bundle/{chunk-1pd943m9.js → chunk-73a7ts8r.js} +1 -1
- package/bundle/{chunk-vf75j9wd.js → chunk-7a4sb6q7.js} +1 -1
- package/bundle/chunk-7cp30q0t.js +2 -0
- package/bundle/{chunk-611wfdn3.js → chunk-7s9msscb.js} +1 -1
- package/bundle/{chunk-r9ng8xx5.js → chunk-7w571q26.js} +1 -1
- package/bundle/chunk-7xc73qb1.js +2 -0
- package/bundle/{chunk-k5swnh8m.js → chunk-840mmmzz.js} +4 -4
- package/bundle/{chunk-jcn8bg31.js → chunk-86reb44c.js} +1 -1
- package/bundle/{chunk-48y4n9ne.js → chunk-86sfzgnf.js} +1 -1
- package/bundle/{chunk-bw0951fs.js → chunk-8a9sj8gp.js} +1 -1
- package/bundle/{chunk-wzfb19t6.js → chunk-8b9z8j3z.js} +1 -1
- package/bundle/{chunk-9d8meavf.js → chunk-8gkz5550.js} +1 -1
- package/bundle/chunk-8gz8fk6r.js +2 -0
- package/bundle/chunk-8ht7cq3h.js +2 -0
- package/bundle/{chunk-r6055kk0.js → chunk-8jkqyf9n.js} +2 -2
- package/bundle/{chunk-pfd8gzy4.js → chunk-8qpfphdz.js} +1 -1
- package/bundle/chunk-8qv0119d.js +2 -0
- package/bundle/{chunk-k558fr15.js → chunk-8zpsgfb6.js} +1 -1
- package/bundle/{chunk-tpw1ewqn.js → chunk-96sra8g8.js} +1 -1
- package/bundle/{chunk-wkepvmgt.js → chunk-99df6wvm.js} +1 -1
- package/bundle/{chunk-t3e19wdp.js → chunk-9amnqaeq.js} +1 -1
- package/bundle/{chunk-3tf7xfw5.js → chunk-9gxyt2ay.js} +2 -2
- package/bundle/{chunk-tz60e15h.js → chunk-9kc2th5c.js} +2 -2
- package/bundle/chunk-9m0eawt5.js +2 -0
- package/bundle/{chunk-ph46s66y.js → chunk-9mabvb06.js} +1 -1
- package/bundle/chunk-9thgxbze.js +2 -0
- package/bundle/{chunk-n230jbn9.js → chunk-9ttebtcf.js} +1 -1
- package/bundle/{chunk-ncvr75f6.js → chunk-9z7y4x7q.js} +1 -1
- package/bundle/{chunk-1p39y33b.js → chunk-9znfb8f2.js} +2 -2
- package/bundle/chunk-9zsp3qkh.js +2 -0
- package/bundle/{chunk-wpkr3vzf.js → chunk-a1mbach4.js} +1 -1
- package/bundle/chunk-a32y70fe.js +2 -0
- package/bundle/{chunk-32x2901e.js → chunk-a3g8de96.js} +1 -1
- package/bundle/{chunk-9gs4en9v.js → chunk-a8askx4y.js} +1 -1
- package/bundle/{chunk-y8bxvp3c.js → chunk-adws0hhk.js} +2 -2
- package/bundle/{chunk-22wa8zty.js → chunk-ae1g5y4r.js} +1 -1
- package/bundle/{chunk-ajgwyrcf.js → chunk-ahgb3r1c.js} +2 -2
- package/bundle/{chunk-6p848y99.js → chunk-art8gejd.js} +1 -1
- package/bundle/{chunk-q8qx38kz.js → chunk-avksqxan.js} +1 -1
- package/bundle/chunk-avzaqy6a.js +2 -0
- package/bundle/chunk-az12tp53.js +2 -0
- package/bundle/{chunk-yhr7s8qm.js → chunk-b350g18y.js} +2 -2
- package/bundle/chunk-b5dpzcc7.js +2 -0
- package/bundle/chunk-bcgtqx3g.js +2 -0
- package/bundle/{chunk-y565z8n2.js → chunk-bdcd2mcb.js} +2 -2
- package/bundle/chunk-bde5d507.js +2 -0
- package/bundle/{chunk-1rsabv4p.js → chunk-bemyyen3.js} +1 -1
- package/bundle/{chunk-xmt17jd4.js → chunk-bga4kqd1.js} +2 -2
- package/bundle/{chunk-46ewdxgh.js → chunk-bm8azfnt.js} +1 -1
- package/bundle/{chunk-92xxg12q.js → chunk-bmdqb48f.js} +1 -1
- package/bundle/{chunk-rxh160jr.js → chunk-bq6cvf16.js} +2 -2
- package/bundle/{chunk-cydpdkx7.js → chunk-bxnsrggq.js} +1 -1
- package/bundle/{chunk-n2ytaxyn.js → chunk-bzh71a92.js} +1 -1
- package/bundle/chunk-bzzggc3s.js +2 -0
- package/bundle/{chunk-hts68y73.js → chunk-c5cyt23k.js} +2 -2
- package/bundle/chunk-c8qx439t.js +2 -0
- package/bundle/{chunk-v5j3ypfv.js → chunk-ch7s512a.js} +1 -1
- package/bundle/{chunk-a2pd7nt5.js → chunk-chnr7pe5.js} +1 -1
- package/bundle/chunk-ckw51fn6.js +2 -0
- package/bundle/{chunk-7wshaze9.js → chunk-crqycrs4.js} +2 -2
- package/bundle/{chunk-qsgpbt4t.js → chunk-d10qre1b.js} +1 -1
- package/bundle/{chunk-8rc7cvex.js → chunk-d385e2qt.js} +1 -1
- package/bundle/{chunk-6xx66mr1.js → chunk-d4faz5xa.js} +1 -1
- package/bundle/{chunk-09n24ztn.js → chunk-d7h1dp0h.js} +1 -1
- package/bundle/chunk-denp0wrq.js +2 -0
- package/bundle/chunk-depxzjer.js +2 -0
- package/bundle/chunk-dhvqpcf3.js +2 -0
- package/bundle/chunk-dkqqswbv.js +2 -0
- package/bundle/{chunk-2vsqsxe1.js → chunk-dmb0ez0m.js} +3 -3
- package/bundle/chunk-dn0437c1.js +5 -0
- package/bundle/{chunk-xfsccqsm.js → chunk-dvp0r93q.js} +1 -1
- package/bundle/{chunk-43x9n8rp.js → chunk-e18hshcg.js} +1 -1
- package/bundle/chunk-e5t7jsxa.js +2 -0
- package/bundle/{chunk-vm8htc6d.js → chunk-e611m0p4.js} +1 -1
- package/bundle/{chunk-zj5snrsa.js → chunk-e8s4mp5n.js} +2 -2
- package/bundle/chunk-eb811dt2.js +2 -0
- package/bundle/{chunk-50knjq36.js → chunk-edvfqxfr.js} +1 -1
- package/bundle/{chunk-cg7zeppb.js → chunk-ej0yzstw.js} +2 -2
- package/bundle/{chunk-fsagyvkz.js → chunk-ep4drmt9.js} +1 -1
- package/bundle/{chunk-bzz2expb.js → chunk-eqsank84.js} +1 -1
- package/bundle/{chunk-czfjmrrq.js → chunk-et3tgx7t.js} +1 -1
- package/bundle/{chunk-vamwvx0x.js → chunk-f0dp1tf9.js} +1 -1
- package/bundle/chunk-fbz2xv2w.js +2 -0
- package/bundle/{chunk-88hmeyf5.js → chunk-fd04358e.js} +375 -305
- package/bundle/{chunk-c5n49vrd.js → chunk-fdmz0502.js} +2 -2
- package/bundle/{chunk-mnxcykeq.js → chunk-ffx0cr44.js} +2 -2
- package/bundle/{chunk-t076hwsv.js → chunk-ffyj5nsg.js} +2 -2
- package/bundle/{chunk-fqvrxy41.js → chunk-ffz334ab.js} +1 -1
- package/bundle/{chunk-dzw0j790.js → chunk-fkq0v5qv.js} +2 -2
- package/bundle/{chunk-mp5m0acf.js → chunk-fmcg649e.js} +1 -1
- package/bundle/{chunk-84qx54nf.js → chunk-fp2xgnjn.js} +2 -2
- package/bundle/{chunk-k4ajben7.js → chunk-fpzkyzny.js} +2 -2
- package/bundle/{chunk-bqqxvagz.js → chunk-g738e799.js} +2 -2
- package/bundle/{chunk-g83d3a0t.js → chunk-g77kddrs.js} +2 -2
- package/bundle/chunk-gbvcb4k1.js +2 -0
- package/bundle/{chunk-d39e4fa8.js → chunk-gd0j16gn.js} +1 -1
- package/bundle/chunk-gdtnqzbp.js +2 -0
- package/bundle/{chunk-j5dnzqjy.js → chunk-gfvq78gy.js} +1 -1
- package/bundle/{chunk-hntsg7q4.js → chunk-gkf7x1yj.js} +1 -1
- package/bundle/chunk-gkfvhh28.js +2 -0
- package/bundle/chunk-gnh8c49b.js +2 -0
- package/bundle/chunk-gvf6ek9f.js +2 -0
- package/bundle/chunk-gvx5hmhk.js +2 -0
- package/bundle/{chunk-s3zmxfz2.js → chunk-h036zy9e.js} +2 -2
- package/bundle/{chunk-0tya4pqb.js → chunk-hf39qx6t.js} +2 -2
- package/bundle/chunk-hham7r33.js +2 -0
- package/bundle/{chunk-wpx2vmf5.js → chunk-hrcqbadm.js} +1 -1
- package/bundle/chunk-hsjbe5zy.js +2 -0
- package/bundle/{chunk-jh2za7y4.js → chunk-hx13a8es.js} +3 -3
- package/bundle/{chunk-42gd2vx4.js → chunk-j15wejz0.js} +1 -1
- package/bundle/{chunk-vyf77kq1.js → chunk-j1bv93m4.js} +12 -10
- package/bundle/{chunk-y7cqyeve.js → chunk-j2snkw45.js} +2 -2
- package/bundle/{chunk-krk24aqm.js → chunk-j3agzs13.js} +2 -2
- package/bundle/{chunk-51vn4f06.js → chunk-j45p2v4a.js} +3 -3
- package/bundle/{chunk-7jvx29js.js → chunk-j46bxb1b.js} +1 -1
- package/bundle/{chunk-e9vh8d52.js → chunk-jvvctqjd.js} +2 -2
- package/bundle/chunk-jvx7jtm4.js +3 -0
- package/bundle/{chunk-ex47pb9n.js → chunk-jwv6fda1.js} +2 -2
- package/bundle/{chunk-5mgmq6yz.js → chunk-k0chq88p.js} +1 -1
- package/bundle/chunk-k6gdmqff.js +2 -0
- package/bundle/{chunk-8t17w67q.js → chunk-k769v1ds.js} +1 -1
- package/bundle/{chunk-zqzh5hp3.js → chunk-kdqhwa65.js} +1 -1
- package/bundle/{chunk-k56zj08h.js → chunk-ky3fhz9z.js} +1 -1
- package/bundle/chunk-kzkb4648.js +2 -0
- package/bundle/chunk-m2540waa.js +2 -0
- package/bundle/{chunk-49we3vy1.js → chunk-m6967jtv.js} +2 -2
- package/bundle/{chunk-71h3pmnn.js → chunk-m8kjtp60.js} +1 -1
- package/bundle/{chunk-q65qzc9w.js → chunk-mbmaeq0a.js} +1 -1
- package/bundle/{chunk-sjtq9bbb.js → chunk-meehnnv9.js} +2 -2
- package/bundle/{chunk-vnz9n9z0.js → chunk-mjkwd1sz.js} +1 -1
- package/bundle/chunk-mscvm1rm.js +2 -0
- package/bundle/chunk-mw3hh526.js +2 -0
- package/bundle/chunk-n3nsrk5n.js +2 -0
- package/bundle/{chunk-n9969djm.js → chunk-n6pn4f3r.js} +1 -1
- package/bundle/{chunk-w32xhz0x.js → chunk-n7zd97hy.js} +2 -2
- package/bundle/chunk-n9nmc4q4.js +2 -0
- package/bundle/{chunk-d1j8frtq.js → chunk-nb4xtk1n.js} +1 -1
- package/bundle/{chunk-pkm3w0ks.js → chunk-ngygp66y.js} +1 -1
- package/bundle/chunk-nj4as8vy.js +2 -0
- package/bundle/chunk-nrzca9yd.js +2 -0
- package/bundle/chunk-nxm6gpyv.js +2 -0
- package/bundle/{chunk-pcmsxhrb.js → chunk-nyxn7npc.js} +1 -1
- package/bundle/{chunk-k232ny9m.js → chunk-nzz7gzg2.js} +1 -1
- package/bundle/{chunk-csmdhh7r.js → chunk-p0852vfn.js} +2 -2
- package/bundle/{chunk-nwkp2f8e.js → chunk-p4xqfkbh.js} +1 -1
- package/bundle/{chunk-4ngvj758.js → chunk-pdcxmr6x.js} +1 -1
- package/bundle/{chunk-bxc3z38f.js → chunk-pp10epga.js} +2 -2
- package/bundle/{chunk-gz8k40ty.js → chunk-prz2fkn9.js} +1 -1
- package/bundle/{chunk-h6kmpgak.js → chunk-psmwrvqs.js} +2 -2
- package/bundle/{chunk-4d9s7cgr.js → chunk-pwq2f75j.js} +1 -1
- package/bundle/{chunk-hama2v6a.js → chunk-pwrwb7mn.js} +1 -1
- package/bundle/{chunk-1yh1f9yj.js → chunk-px69995t.js} +1 -1
- package/bundle/{chunk-1tdy73ha.js → chunk-q1dmxn63.js} +2 -2
- package/bundle/chunk-qbjqkezn.js +2 -0
- package/bundle/chunk-qhtp1xvx.js +2 -0
- package/bundle/chunk-qkztgpay.js +2 -0
- package/bundle/{chunk-aykvrqrp.js → chunk-qn1fhqyw.js} +2 -2
- package/bundle/{chunk-44685nzw.js → chunk-qpggztkq.js} +2 -2
- package/bundle/{chunk-sxtfssjv.js → chunk-qpk7jp6t.js} +1 -1
- package/bundle/{chunk-nvvja3ch.js → chunk-qqsj69m2.js} +1 -1
- package/bundle/{chunk-4c6d1wy1.js → chunk-qrztx1b4.js} +2 -2
- package/bundle/{chunk-e7a50j2w.js → chunk-qz20b42s.js} +1 -1
- package/bundle/{chunk-jt7g0r2j.js → chunk-rd08wx37.js} +2 -2
- package/bundle/{chunk-cm7yp259.js → chunk-rn3je2hv.js} +1 -1
- package/bundle/chunk-rnf3dy0y.js +2 -0
- package/bundle/{chunk-3amgvg81.js → chunk-rqap90xh.js} +2 -2
- package/bundle/chunk-rry4kq85.js +2 -0
- package/bundle/{chunk-rx29zmw2.js → chunk-rws2tsdv.js} +1 -1
- package/bundle/{chunk-bd66q24j.js → chunk-rx9eh3db.js} +3 -3
- package/bundle/{chunk-g7jwp73v.js → chunk-rxt6gktt.js} +1 -1
- package/bundle/chunk-ryfj80q6.js +2 -0
- package/bundle/{chunk-gfer8ch3.js → chunk-s0gmxpxm.js} +2 -2
- package/bundle/{chunk-vrt8wd3r.js → chunk-s9epttpy.js} +1 -1
- package/bundle/{chunk-95tec4gm.js → chunk-sb3cgb4v.js} +1 -1
- package/bundle/{chunk-7x4g7h04.js → chunk-set1f1wr.js} +1 -1
- package/bundle/{chunk-xphzr4wg.js → chunk-sg9enzsp.js} +2 -2
- package/bundle/{chunk-9svh74gt.js → chunk-sh03ka27.js} +1 -1
- package/bundle/chunk-snx49w8h.js +2 -0
- package/bundle/{chunk-zjfdptdj.js → chunk-spcdwmy4.js} +1 -1
- package/bundle/{chunk-a4cmpa56.js → chunk-sy76e7nr.js} +1 -1
- package/bundle/{chunk-bffm0wv9.js → chunk-szfqmkj6.js} +1 -1
- package/bundle/chunk-t21mdqbb.js +2 -0
- package/bundle/{chunk-n5dxwryh.js → chunk-tcyzj3rz.js} +1 -1
- package/bundle/chunk-tn2yyqeb.js +2 -0
- package/bundle/chunk-ttebf3nt.js +2 -0
- package/bundle/chunk-twpfh0mx.js +2 -0
- package/bundle/{chunk-fnmq42y5.js → chunk-tz1bzrnh.js} +1 -1
- package/bundle/chunk-tzf6d5qy.js +2 -0
- package/bundle/{chunk-8y03p2md.js → chunk-v1axkp21.js} +2 -2
- package/bundle/chunk-v2mq09wx.js +2 -0
- package/bundle/chunk-v59a02aj.js +2 -0
- package/bundle/{chunk-8rbbt1s8.js → chunk-v5me0cj9.js} +1 -1
- package/bundle/{chunk-49brdmgp.js → chunk-v7v0krrj.js} +1 -1
- package/bundle/{chunk-96nmxprr.js → chunk-veptx3fk.js} +1 -1
- package/bundle/chunk-vnstr4g1.js +2 -0
- package/bundle/{chunk-kxdw2vtq.js → chunk-vr13f6b5.js} +2 -2
- package/bundle/chunk-vxr4rzt0.js +2 -0
- package/bundle/{chunk-m8phqgxp.js → chunk-vzkdzhn0.js} +1 -1
- package/bundle/chunk-w0h9rczg.js +2 -0
- package/bundle/{chunk-qtdxy2q1.js → chunk-w136zswr.js} +3 -3
- package/bundle/chunk-w214dwws.js +2 -0
- package/bundle/{chunk-s6vhscvd.js → chunk-w4fr00s7.js} +2 -2
- package/bundle/chunk-w8344et5.js +2 -0
- package/bundle/{chunk-b274mb6v.js → chunk-w8nj5ph5.js} +1 -1
- package/bundle/chunk-weyg78et.js +2 -0
- package/bundle/{chunk-8z65v9c9.js → chunk-wf0n1cs9.js} +1 -1
- package/bundle/{chunk-cshsqavb.js → chunk-wfpnv00c.js} +2 -2
- package/bundle/{chunk-1h9sc0gy.js → chunk-wmj3xndt.js} +1 -1
- package/bundle/{chunk-e6ckxkj8.js → chunk-wrzn87w0.js} +1 -1
- package/bundle/{chunk-98z5pfvj.js → chunk-ws720v4j.js} +1 -1
- package/bundle/{chunk-63t0rhc9.js → chunk-x0de4z05.js} +2 -2
- package/bundle/{chunk-d6qs2pbx.js → chunk-x3dzzq0t.js} +1 -1
- package/bundle/{chunk-zskjqrmc.js → chunk-x4jnyj09.js} +1 -1
- package/bundle/chunk-xchj8gna.js +2 -0
- package/bundle/{chunk-s81ck6bw.js → chunk-xdcwx384.js} +1 -1
- package/bundle/{chunk-kt982884.js → chunk-xmf59618.js} +1 -1
- package/bundle/chunk-y18ptwk2.js +2 -0
- package/bundle/{chunk-ep92grvg.js → chunk-y1v7mf1a.js} +9 -9
- package/bundle/chunk-y3dpyz2d.js +2 -0
- package/bundle/{chunk-ccghr6pm.js → chunk-y5ydtbpd.js} +1 -1
- package/bundle/{chunk-tzwm08yc.js → chunk-yg9n2a2d.js} +1 -1
- package/bundle/chunk-ykvgmje9.js +35 -0
- package/bundle/chunk-yvjecrjy.js +2 -0
- package/bundle/chunk-yw2x6by6.js +2 -0
- package/bundle/{chunk-8qbhnwej.js → chunk-z0dj15g9.js} +1 -1
- package/bundle/chunk-z0r4syk8.js +2 -0
- package/bundle/{chunk-k4d8gwxe.js → chunk-z6qyx227.js} +1 -1
- package/bundle/chunk-z7c00g63.js +2 -0
- package/bundle/{chunk-pnmadk2h.js → chunk-zgwasq3p.js} +1 -1
- package/bundle/{chunk-mazakqr7.js → chunk-zh7e6kqs.js} +1 -1
- package/bundle/{chunk-4q14whpc.js → chunk-zjyaze0d.js} +1 -1
- package/bundle/chunk-znr0saas.js +2 -0
- package/bundle/{chunk-43eqr0ds.js → chunk-zpjtse0z.js} +184 -184
- package/bundle/chunk-zqqt7v17.js +2 -0
- package/bundle/chunk-zwrgh1hc.js +2 -0
- package/bundle/{chunk-8gn7r4kb.js → chunk-zx63mepv.js} +1 -1
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +3 -3
- package/bundle/chunk-06j0gaen.js +0 -2
- package/bundle/chunk-0bn86djg.js +0 -3
- package/bundle/chunk-0mm40z8g.js +0 -2
- package/bundle/chunk-1mqfhw0f.js +0 -2
- package/bundle/chunk-28kte9rt.js +0 -2
- package/bundle/chunk-2dhjehxe.js +0 -2
- package/bundle/chunk-2nnfxbd2.js +0 -2
- package/bundle/chunk-2w5zmgpb.js +0 -2
- package/bundle/chunk-34qt3fqj.js +0 -2
- package/bundle/chunk-3p0xvt47.js +0 -2
- package/bundle/chunk-3pzx5ret.js +0 -2
- package/bundle/chunk-3y4rmqmm.js +0 -2
- package/bundle/chunk-486874bd.js +0 -2
- package/bundle/chunk-4bcbvfsw.js +0 -2
- package/bundle/chunk-4t1ysdag.js +0 -2
- package/bundle/chunk-5q7a4h2w.js +0 -2
- package/bundle/chunk-63vamhf7.js +0 -2
- package/bundle/chunk-6hhv3n7c.js +0 -2
- package/bundle/chunk-7a9kfb2n.js +0 -2
- package/bundle/chunk-7b5vney6.js +0 -2
- package/bundle/chunk-7x9m1smk.js +0 -2
- package/bundle/chunk-82mnr6sf.js +0 -2
- package/bundle/chunk-8bea2r6p.js +0 -2
- package/bundle/chunk-8h6mhzhg.js +0 -2
- package/bundle/chunk-8n1cmvr7.js +0 -2
- package/bundle/chunk-955zj1y6.js +0 -2
- package/bundle/chunk-95vp9bvk.js +0 -2
- package/bundle/chunk-9wzxnwv7.js +0 -2
- package/bundle/chunk-9zve998d.js +0 -2
- package/bundle/chunk-a9bkr9x4.js +0 -2
- package/bundle/chunk-ac5vzpzt.js +0 -2
- package/bundle/chunk-c1exgasy.js +0 -2
- package/bundle/chunk-cgxzmkkf.js +0 -2
- package/bundle/chunk-cs3cbfm8.js +0 -2
- package/bundle/chunk-d29te4c1.js +0 -2
- package/bundle/chunk-d6q42p18.js +0 -2
- package/bundle/chunk-dfbexagg.js +0 -2
- package/bundle/chunk-dfkcp43a.js +0 -2
- package/bundle/chunk-dps1p1g1.js +0 -2
- package/bundle/chunk-e1fzgez5.js +0 -2
- package/bundle/chunk-egcvm4x2.js +0 -3
- package/bundle/chunk-ek3b08ed.js +0 -2
- package/bundle/chunk-f78yth0b.js +0 -2
- package/bundle/chunk-gamnnfna.js +0 -2
- package/bundle/chunk-gjxhz1a6.js +0 -2
- package/bundle/chunk-gpm39v12.js +0 -2
- package/bundle/chunk-gr8emzzx.js +0 -2
- package/bundle/chunk-gt6h68pk.js +0 -2
- package/bundle/chunk-hj588j4f.js +0 -2
- package/bundle/chunk-hqtex91e.js +0 -2
- package/bundle/chunk-jmgpr5th.js +0 -2
- package/bundle/chunk-jt79yt0t.js +0 -2
- package/bundle/chunk-jtz5re73.js +0 -2
- package/bundle/chunk-k4bj677f.js +0 -3
- package/bundle/chunk-kw5z5awx.js +0 -2
- package/bundle/chunk-mp42gb6q.js +0 -2
- package/bundle/chunk-mq0733qh.js +0 -2
- package/bundle/chunk-mrcsatmn.js +0 -2
- package/bundle/chunk-n24yx79r.js +0 -5
- package/bundle/chunk-ng2g9kkk.js +0 -2
- package/bundle/chunk-ngfhfyjs.js +0 -2
- package/bundle/chunk-nwygsfhk.js +0 -35
- package/bundle/chunk-p0dnmrqp.js +0 -2
- package/bundle/chunk-p6h2ydcp.js +0 -2
- package/bundle/chunk-qhakedgs.js +0 -2
- package/bundle/chunk-r18zetwf.js +0 -2
- package/bundle/chunk-r6rgrz25.js +0 -2
- package/bundle/chunk-rk4vp09j.js +0 -2
- package/bundle/chunk-s4jp4zce.js +0 -2
- package/bundle/chunk-sec9y622.js +0 -2
- package/bundle/chunk-sn7q178t.js +0 -2
- package/bundle/chunk-st0h54dm.js +0 -2
- package/bundle/chunk-sz75fx13.js +0 -2
- package/bundle/chunk-tefh2cgk.js +0 -2
- package/bundle/chunk-tfez99qv.js +0 -2
- package/bundle/chunk-tjk1hymv.js +0 -2
- package/bundle/chunk-v1098rqc.js +0 -2
- package/bundle/chunk-v30ezr68.js +0 -11
- package/bundle/chunk-v5wn741w.js +0 -2
- package/bundle/chunk-vp6ttkct.js +0 -2
- package/bundle/chunk-vpcsmwsb.js +0 -2
- package/bundle/chunk-x23s1s8k.js +0 -2
- package/bundle/chunk-xr6js4ek.js +0 -2
- package/bundle/chunk-y078gb3n.js +0 -2
- package/bundle/chunk-yewjnqee.js +0 -2
- package/bundle/chunk-ykk9e9as.js +0 -2
- package/bundle/chunk-yqn88gjf.js +0 -2
- package/bundle/chunk-yrxg3dex.js +0 -2
- package/bundle/chunk-z1xeqrgd.js +0 -2
- package/bundle/chunk-z5j46dem.js +0 -2
- package/bundle/chunk-zq0hpja9.js +0 -2
- package/bundle/chunk-zv89qwjc.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ue as E,af as O,bf as b,ef as k,hf as M,if as W,mf as F,nf as S,rf as T,sf as _,tf as H,vf as C}from"./chunk-89b6ttzs.js";import{os as I,ps as R,rs as P}from"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import{fw as j}from"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-9svh74gt.js";var u=j.object({thinking:j.object({type:j.enum(["enabled","disabled"]).optional(),tokenBudget:j.number().optional()}).optional()}),d=j.object({message:j.string()}),w=T({errorSchema:d,errorToMessage:(z)=>z.message});function c({tools:z,toolChoice:X}){z=(z==null?void 0:z.length)?z:void 0;let Y=[];if(z==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Y};let $=[];for(let J of z)if(J.type==="provider")Y.push({type:"unsupported",feature:`provider-defined tool ${J.id}`});else $.push({type:"function",function:{name:J.name,description:J.description,parameters:J.inputSchema}});if(X==null)return{tools:$,toolChoice:void 0,toolWarnings:Y};let D=X.type;switch(D){case"auto":return{tools:$,toolChoice:void 0,toolWarnings:Y};case"none":return{tools:$,toolChoice:"NONE",toolWarnings:Y};case"required":return{tools:$,toolChoice:"REQUIRED",toolWarnings:Y};case"tool":return{tools:$.filter((J)=>J.function.name===X.toolName),toolChoice:"REQUIRED",toolWarnings:Y};default:throw new P({functionality:`tool choice type: ${D}`})}}function y(z){if(z==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let{input_tokens:X,output_tokens:Y}=z;return{inputTokens:{total:X,noCache:X,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:Y,text:Y,reasoning:void 0},raw:z}}function p(z){let X=[],Y=[],$=[];for(let{role:D,content:J}of z)switch(D){case"system":{X.push({role:"system",content:J});break}case"user":{X.push({role:"user",content:J.map((Q)=>{var B;switch(Q.type){case"text":return Q.text;case"file":{let G;if(typeof Q.data==="string")G=Q.data;else if(Q.data instanceof Uint8Array){if(!(((B=Q.mediaType)==null?void 0:B.startsWith("text/"))||Q.mediaType==="application/json"))throw new P({functionality:`document media type: ${Q.mediaType}`,message:`Media type '${Q.mediaType}' is not supported. Supported media types are: text/* and application/json.`});G=new TextDecoder().decode(Q.data)}else throw new P({functionality:"File URL data",message:"URLs should be downloaded by the AI SDK and not reach this point. This indicates a configuration issue."});return Y.push({data:{text:G,title:Q.filename}}),""}}}).join("")});break}case"assistant":{let Q="",B=[];for(let G of J)switch(G.type){case"text":{Q+=G.text;break}case"tool-call":{B.push({id:G.toolCallId,type:"function",function:{name:G.toolName,arguments:JSON.stringify(G.input)}});break}}X.push({role:"assistant",content:B.length>0?void 0:Q,tool_calls:B.length>0?B:void 0,tool_plan:void 0});break}case"tool":{X.push(...J.filter((Q)=>Q.type!=="tool-approval-response").map((Q)=>{var B;let G=Q.output,K;switch(G.type){case"text":case"error-text":K=G.value;break;case"execution-denied":K=(B=G.reason)!=null?B:"Tool execution denied.";break;case"content":case"json":case"error-json":K=JSON.stringify(G.value);break}return{role:"tool",content:K,tool_call_id:Q.toolCallId}}));break}default:throw Error(`Unsupported role: ${D}`)}return{messages:X,documents:Y,warnings:$}}function f(z){switch(z){case"COMPLETE":case"STOP_SEQUENCE":return"stop";case"MAX_TOKENS":return"length";case"ERROR":return"error";case"TOOL_CALL":return"tool-calls";default:return"other"}}var i=class{constructor(z,X){this.specificationVersion="v3",this.supportedUrls={},this.modelId=z,this.config=X}get provider(){return this.config.provider}async getArgs({prompt:z,maxOutputTokens:X,temperature:Y,topP:$,topK:D,frequencyPenalty:J,presencePenalty:Q,stopSequences:B,responseFormat:G,seed:K,tools:U,toolChoice:N,providerOptions:q}){var Z,L;let A=(Z=await F({provider:"cohere",providerOptions:q,schema:u}))!=null?Z:{},{messages:V,documents:x,warnings:h}=p(z),{tools:v,toolChoice:m,toolWarnings:g}=c({tools:U,toolChoice:N});return{args:{model:this.modelId,frequency_penalty:J,presence_penalty:Q,max_tokens:X,temperature:Y,p:$,k:D,seed:K,stop_sequences:B,response_format:(G==null?void 0:G.type)==="json"?{type:"json_object",json_schema:G.schema}:void 0,messages:V,tools:v,tool_choice:m,...x.length>0&&{documents:x},...A.thinking&&{thinking:{type:(L=A.thinking.type)!=null?L:"enabled",token_budget:A.thinking.tokenBudget}}},warnings:[...g,...h]}}async doGenerate(z){var X,Y,$,D,J,Q,B;let{args:G,warnings:K}=await this.getArgs(z),{responseHeaders:U,value:N,rawValue:q}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:G,failedResponseHandler:w,successfulResponseHandler:H(a),abortSignal:z.abortSignal,fetch:this.config.fetch}),Z=[];for(let L of(X=N.message.content)!=null?X:[]){if(L.type==="text"&&L.text.length>0){Z.push({type:"text",text:L.text});continue}if(L.type==="thinking"&&L.thinking.length>0){Z.push({type:"reasoning",text:L.thinking});continue}}for(let L of(Y=N.message.citations)!=null?Y:[])Z.push({type:"source",sourceType:"document",id:this.config.generateId(),mediaType:"text/plain",title:((D=($=L.sources[0])==null?void 0:$.document)==null?void 0:D.title)||"Document",providerMetadata:{cohere:{start:L.start,end:L.end,text:L.text,sources:L.sources,...L.type&&{citationType:L.type}}}});for(let L of(J=N.message.tool_calls)!=null?J:[])Z.push({type:"tool-call",toolCallId:L.id,toolName:L.function.name,input:L.function.arguments.replace(/^null$/,"{}")});return{content:Z,finishReason:{unified:f(N.finish_reason),raw:(Q=N.finish_reason)!=null?Q:void 0},usage:y(N.usage.tokens),request:{body:G},response:{id:(B=N.generation_id)!=null?B:void 0,headers:U,body:q},warnings:K}}async doStream(z){let{args:X,warnings:Y}=await this.getArgs(z),{responseHeaders:$,value:D}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:{...X,stream:!0},failedResponseHandler:w,successfulResponseHandler:_(s),abortSignal:z.abortSignal,fetch:this.config.fetch}),J={unified:"other",raw:void 0},Q=void 0,B=null,G=!1;return{stream:D.pipeThrough(new TransformStream({start(K){K.enqueue({type:"stream-start",warnings:Y})},transform(K,U){var N,q;if(z.includeRawChunks)U.enqueue({type:"raw",rawValue:K.rawValue});if(!K.success){J={unified:"error",raw:void 0},U.enqueue({type:"error",error:K.error});return}let Z=K.value;switch(Z.type){case"content-start":{if(Z.delta.message.content.type==="thinking"){U.enqueue({type:"reasoning-start",id:String(Z.index)}),G=!0;return}U.enqueue({type:"text-start",id:String(Z.index)});return}case"content-delta":{if("thinking"in Z.delta.message.content){U.enqueue({type:"reasoning-delta",id:String(Z.index),delta:Z.delta.message.content.thinking});return}U.enqueue({type:"text-delta",id:String(Z.index),delta:Z.delta.message.content.text});return}case"content-end":{if(G){U.enqueue({type:"reasoning-end",id:String(Z.index)}),G=!1;return}U.enqueue({type:"text-end",id:String(Z.index)});return}case"tool-call-start":{let A=Z.delta.message.tool_calls.id,V=Z.delta.message.tool_calls.function.name,x=Z.delta.message.tool_calls.function.arguments;if(B={id:A,name:V,arguments:x,hasFinished:!1},U.enqueue({type:"tool-input-start",id:A,toolName:V}),x.length>0)U.enqueue({type:"tool-input-delta",id:A,delta:x});return}case"tool-call-delta":{if(B&&!B.hasFinished){let A=Z.delta.message.tool_calls.function.arguments;B.arguments+=A,U.enqueue({type:"tool-input-delta",id:B.id,delta:A})}return}case"tool-call-end":{if(B&&!B.hasFinished)U.enqueue({type:"tool-input-end",id:B.id}),U.enqueue({type:"tool-call",toolCallId:B.id,toolName:B.name,input:JSON.stringify(JSON.parse(((N=B.arguments)==null?void 0:N.trim())||"{}"))}),B.hasFinished=!0,B=null;return}case"message-start":{U.enqueue({type:"response-metadata",id:(q=Z.id)!=null?q:void 0});return}case"message-end":{J={unified:f(Z.delta.finish_reason),raw:Z.delta.finish_reason},Q=Z.delta.usage.tokens;return}default:return}},flush(K){K.enqueue({type:"finish",finishReason:J,usage:y(Q)})}})),request:{body:{...X,stream:!0}},response:{headers:$}}}},a=j.object({generation_id:j.string().nullish(),message:j.object({role:j.string(),content:j.array(j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])).nullish(),tool_plan:j.string().nullish(),tool_calls:j.array(j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})).nullish(),citations:j.array(j.object({start:j.number(),end:j.number(),text:j.string(),sources:j.array(j.object({type:j.string().optional(),id:j.string().optional(),document:j.object({id:j.string().optional(),text:j.string(),title:j.string()})})),type:j.string().optional()})).nullish()}),finish_reason:j.string(),usage:j.object({billed_units:j.object({input_tokens:j.number(),output_tokens:j.number()}),tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})}),s=j.discriminatedUnion("type",[j.object({type:j.literal("citation-start")}),j.object({type:j.literal("citation-end")}),j.object({type:j.literal("content-start"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])})})}),j.object({type:j.literal("content-delta"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({text:j.string()}),j.object({thinking:j.string()})])})})}),j.object({type:j.literal("content-end"),index:j.number()}),j.object({type:j.literal("message-start"),id:j.string().nullish()}),j.object({type:j.literal("message-end"),delta:j.object({finish_reason:j.string(),usage:j.object({tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})})}),j.object({type:j.literal("tool-plan-delta"),delta:j.object({message:j.object({tool_plan:j.string()})})}),j.object({type:j.literal("tool-call-start"),delta:j.object({message:j.object({tool_calls:j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-delta"),delta:j.object({message:j.object({tool_calls:j.object({function:j.object({arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-end")})]),r=j.object({inputType:j.enum(["search_document","search_query","classification","clustering"]).optional(),truncate:j.enum(["NONE","START","END"]).optional(),outputDimension:j.union([j.literal(256),j.literal(512),j.literal(1024),j.literal(1536)]).optional()}),l=class{constructor(z,X){this.specificationVersion="v3",this.maxEmbeddingsPerCall=96,this.supportsParallelCalls=!0,this.modelId=z,this.config=X}get provider(){return this.config.provider}async doEmbed({values:z,headers:X,abortSignal:Y,providerOptions:$}){var D;let J=await F({provider:"cohere",providerOptions:$,schema:r});if(z.length>this.maxEmbeddingsPerCall)throw new R({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:z});let{responseHeaders:Q,value:B,rawValue:G}=await S({url:`${this.config.baseURL}/embed`,headers:E(this.config.headers(),X),body:{model:this.modelId,embedding_types:["float"],texts:z,input_type:(D=J==null?void 0:J.inputType)!=null?D:"search_query",truncate:J==null?void 0:J.truncate,output_dimension:J==null?void 0:J.outputDimension},failedResponseHandler:w,successfulResponseHandler:H(n),abortSignal:Y,fetch:this.config.fetch});return{warnings:[],embeddings:B.embeddings.float,usage:{tokens:B.meta.billed_units.input_tokens},response:{headers:Q,body:G}}}},n=j.object({embeddings:j.object({float:j.array(j.array(j.number()))}),meta:j.object({billed_units:j.object({input_tokens:j.number()})})}),t=M(()=>W(j.object({id:j.string().nullish(),results:j.array(j.object({index:j.number(),relevance_score:j.number()})),meta:j.any()}))),e=M(()=>W(j.object({maxTokensPerDoc:j.number().optional(),priority:j.number().optional()}))),o=class{constructor(z,X){this.specificationVersion="v3",this.modelId=z,this.config=X}get provider(){return this.config.provider}async doRerank({documents:z,headers:X,query:Y,topN:$,abortSignal:D,providerOptions:J}){var Q;let B=await F({provider:"cohere",providerOptions:J,schema:e}),G=[];if(z.type==="object")G.push({type:"compatibility",feature:"object documents",details:"Object documents are converted to strings."});let{responseHeaders:K,value:U,rawValue:N}=await S({url:`${this.config.baseURL}/rerank`,headers:E(this.config.headers(),X),body:{model:this.modelId,query:Y,documents:z.type==="text"?z.values:z.values.map((q)=>JSON.stringify(q)),top_n:$,max_tokens_per_doc:B==null?void 0:B.maxTokensPerDoc,priority:B==null?void 0:B.priority},failedResponseHandler:w,successfulResponseHandler:H(t),abortSignal:D,fetch:this.config.fetch});return{ranking:U.results.map((q)=>({index:q.index,relevanceScore:q.relevance_score})),warnings:G,response:{id:(Q=U.id)!=null?Q:void 0,headers:K,body:N}}}},jj="3.0.27";function zj(z={}){var X;let Y=(X=C(z.baseURL))!=null?X:"https://api.cohere.com/v2",$=()=>b({Authorization:`Bearer ${k({apiKey:z.apiKey,environmentVariableName:"COHERE_API_KEY",description:"Cohere"})}`,...z.headers},`ai-sdk/cohere/${jj}`),D=(G)=>{var K;return new i(G,{provider:"cohere.chat",baseURL:Y,headers:$,fetch:z.fetch,generateId:(K=z.generateId)!=null?K:O})},J=(G)=>new l(G,{provider:"cohere.textEmbedding",baseURL:Y,headers:$,fetch:z.fetch}),Q=(G)=>new o(G,{provider:"cohere.reranking",baseURL:Y,headers:$,fetch:z.fetch}),B=function(G){if(new.target)throw Error("The Cohere model function cannot be called with the new keyword.");return D(G)};return B.specificationVersion="v3",B.languageModel=D,B.embedding=J,B.embeddingModel=J,B.textEmbedding=J,B.textEmbeddingModel=J,B.reranking=Q,B.rerankingModel=Q,B.imageModel=(G)=>{throw new I({modelId:G,modelType:"imageModel"})},B}var Fj=zj();export{zj as createCohere,Fj as cohere,jj as VERSION};
|
|
2
|
+
import{We as E,cf as O,df as b,gf as k,jf as M,kf as W,of as F,pf as S,tf as T,uf as _,vf as H,xf as C}from"./chunk-4ycg2c6f.js";import{Uq as I,Vq as R,Xq as P}from"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import{Lu as j}from"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-sh03ka27.js";var u=j.object({thinking:j.object({type:j.enum(["enabled","disabled"]).optional(),tokenBudget:j.number().optional()}).optional()}),d=j.object({message:j.string()}),w=T({errorSchema:d,errorToMessage:(z)=>z.message});function c({tools:z,toolChoice:X}){z=(z==null?void 0:z.length)?z:void 0;let Y=[];if(z==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Y};let $=[];for(let J of z)if(J.type==="provider")Y.push({type:"unsupported",feature:`provider-defined tool ${J.id}`});else $.push({type:"function",function:{name:J.name,description:J.description,parameters:J.inputSchema}});if(X==null)return{tools:$,toolChoice:void 0,toolWarnings:Y};let D=X.type;switch(D){case"auto":return{tools:$,toolChoice:void 0,toolWarnings:Y};case"none":return{tools:$,toolChoice:"NONE",toolWarnings:Y};case"required":return{tools:$,toolChoice:"REQUIRED",toolWarnings:Y};case"tool":return{tools:$.filter((J)=>J.function.name===X.toolName),toolChoice:"REQUIRED",toolWarnings:Y};default:throw new P({functionality:`tool choice type: ${D}`})}}function y(z){if(z==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let{input_tokens:X,output_tokens:Y}=z;return{inputTokens:{total:X,noCache:X,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:Y,text:Y,reasoning:void 0},raw:z}}function p(z){let X=[],Y=[],$=[];for(let{role:D,content:J}of z)switch(D){case"system":{X.push({role:"system",content:J});break}case"user":{X.push({role:"user",content:J.map((Q)=>{var B;switch(Q.type){case"text":return Q.text;case"file":{let G;if(typeof Q.data==="string")G=Q.data;else if(Q.data instanceof Uint8Array){if(!(((B=Q.mediaType)==null?void 0:B.startsWith("text/"))||Q.mediaType==="application/json"))throw new P({functionality:`document media type: ${Q.mediaType}`,message:`Media type '${Q.mediaType}' is not supported. Supported media types are: text/* and application/json.`});G=new TextDecoder().decode(Q.data)}else throw new P({functionality:"File URL data",message:"URLs should be downloaded by the AI SDK and not reach this point. This indicates a configuration issue."});return Y.push({data:{text:G,title:Q.filename}}),""}}}).join("")});break}case"assistant":{let Q="",B=[];for(let G of J)switch(G.type){case"text":{Q+=G.text;break}case"tool-call":{B.push({id:G.toolCallId,type:"function",function:{name:G.toolName,arguments:JSON.stringify(G.input)}});break}}X.push({role:"assistant",content:B.length>0?void 0:Q,tool_calls:B.length>0?B:void 0,tool_plan:void 0});break}case"tool":{X.push(...J.filter((Q)=>Q.type!=="tool-approval-response").map((Q)=>{var B;let G=Q.output,K;switch(G.type){case"text":case"error-text":K=G.value;break;case"execution-denied":K=(B=G.reason)!=null?B:"Tool execution denied.";break;case"content":case"json":case"error-json":K=JSON.stringify(G.value);break}return{role:"tool",content:K,tool_call_id:Q.toolCallId}}));break}default:throw Error(`Unsupported role: ${D}`)}return{messages:X,documents:Y,warnings:$}}function f(z){switch(z){case"COMPLETE":case"STOP_SEQUENCE":return"stop";case"MAX_TOKENS":return"length";case"ERROR":return"error";case"TOOL_CALL":return"tool-calls";default:return"other"}}var i=class{constructor(z,X){this.specificationVersion="v3",this.supportedUrls={},this.modelId=z,this.config=X}get provider(){return this.config.provider}async getArgs({prompt:z,maxOutputTokens:X,temperature:Y,topP:$,topK:D,frequencyPenalty:J,presencePenalty:Q,stopSequences:B,responseFormat:G,seed:K,tools:U,toolChoice:N,providerOptions:q}){var Z,L;let A=(Z=await F({provider:"cohere",providerOptions:q,schema:u}))!=null?Z:{},{messages:V,documents:x,warnings:h}=p(z),{tools:v,toolChoice:m,toolWarnings:g}=c({tools:U,toolChoice:N});return{args:{model:this.modelId,frequency_penalty:J,presence_penalty:Q,max_tokens:X,temperature:Y,p:$,k:D,seed:K,stop_sequences:B,response_format:(G==null?void 0:G.type)==="json"?{type:"json_object",json_schema:G.schema}:void 0,messages:V,tools:v,tool_choice:m,...x.length>0&&{documents:x},...A.thinking&&{thinking:{type:(L=A.thinking.type)!=null?L:"enabled",token_budget:A.thinking.tokenBudget}}},warnings:[...g,...h]}}async doGenerate(z){var X,Y,$,D,J,Q,B;let{args:G,warnings:K}=await this.getArgs(z),{responseHeaders:U,value:N,rawValue:q}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:G,failedResponseHandler:w,successfulResponseHandler:H(a),abortSignal:z.abortSignal,fetch:this.config.fetch}),Z=[];for(let L of(X=N.message.content)!=null?X:[]){if(L.type==="text"&&L.text.length>0){Z.push({type:"text",text:L.text});continue}if(L.type==="thinking"&&L.thinking.length>0){Z.push({type:"reasoning",text:L.thinking});continue}}for(let L of(Y=N.message.citations)!=null?Y:[])Z.push({type:"source",sourceType:"document",id:this.config.generateId(),mediaType:"text/plain",title:((D=($=L.sources[0])==null?void 0:$.document)==null?void 0:D.title)||"Document",providerMetadata:{cohere:{start:L.start,end:L.end,text:L.text,sources:L.sources,...L.type&&{citationType:L.type}}}});for(let L of(J=N.message.tool_calls)!=null?J:[])Z.push({type:"tool-call",toolCallId:L.id,toolName:L.function.name,input:L.function.arguments.replace(/^null$/,"{}")});return{content:Z,finishReason:{unified:f(N.finish_reason),raw:(Q=N.finish_reason)!=null?Q:void 0},usage:y(N.usage.tokens),request:{body:G},response:{id:(B=N.generation_id)!=null?B:void 0,headers:U,body:q},warnings:K}}async doStream(z){let{args:X,warnings:Y}=await this.getArgs(z),{responseHeaders:$,value:D}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:{...X,stream:!0},failedResponseHandler:w,successfulResponseHandler:_(s),abortSignal:z.abortSignal,fetch:this.config.fetch}),J={unified:"other",raw:void 0},Q=void 0,B=null,G=!1;return{stream:D.pipeThrough(new TransformStream({start(K){K.enqueue({type:"stream-start",warnings:Y})},transform(K,U){var N,q;if(z.includeRawChunks)U.enqueue({type:"raw",rawValue:K.rawValue});if(!K.success){J={unified:"error",raw:void 0},U.enqueue({type:"error",error:K.error});return}let Z=K.value;switch(Z.type){case"content-start":{if(Z.delta.message.content.type==="thinking"){U.enqueue({type:"reasoning-start",id:String(Z.index)}),G=!0;return}U.enqueue({type:"text-start",id:String(Z.index)});return}case"content-delta":{if("thinking"in Z.delta.message.content){U.enqueue({type:"reasoning-delta",id:String(Z.index),delta:Z.delta.message.content.thinking});return}U.enqueue({type:"text-delta",id:String(Z.index),delta:Z.delta.message.content.text});return}case"content-end":{if(G){U.enqueue({type:"reasoning-end",id:String(Z.index)}),G=!1;return}U.enqueue({type:"text-end",id:String(Z.index)});return}case"tool-call-start":{let A=Z.delta.message.tool_calls.id,V=Z.delta.message.tool_calls.function.name,x=Z.delta.message.tool_calls.function.arguments;if(B={id:A,name:V,arguments:x,hasFinished:!1},U.enqueue({type:"tool-input-start",id:A,toolName:V}),x.length>0)U.enqueue({type:"tool-input-delta",id:A,delta:x});return}case"tool-call-delta":{if(B&&!B.hasFinished){let A=Z.delta.message.tool_calls.function.arguments;B.arguments+=A,U.enqueue({type:"tool-input-delta",id:B.id,delta:A})}return}case"tool-call-end":{if(B&&!B.hasFinished)U.enqueue({type:"tool-input-end",id:B.id}),U.enqueue({type:"tool-call",toolCallId:B.id,toolName:B.name,input:JSON.stringify(JSON.parse(((N=B.arguments)==null?void 0:N.trim())||"{}"))}),B.hasFinished=!0,B=null;return}case"message-start":{U.enqueue({type:"response-metadata",id:(q=Z.id)!=null?q:void 0});return}case"message-end":{J={unified:f(Z.delta.finish_reason),raw:Z.delta.finish_reason},Q=Z.delta.usage.tokens;return}default:return}},flush(K){K.enqueue({type:"finish",finishReason:J,usage:y(Q)})}})),request:{body:{...X,stream:!0}},response:{headers:$}}}},a=j.object({generation_id:j.string().nullish(),message:j.object({role:j.string(),content:j.array(j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])).nullish(),tool_plan:j.string().nullish(),tool_calls:j.array(j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})).nullish(),citations:j.array(j.object({start:j.number(),end:j.number(),text:j.string(),sources:j.array(j.object({type:j.string().optional(),id:j.string().optional(),document:j.object({id:j.string().optional(),text:j.string(),title:j.string()})})),type:j.string().optional()})).nullish()}),finish_reason:j.string(),usage:j.object({billed_units:j.object({input_tokens:j.number(),output_tokens:j.number()}),tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})}),s=j.discriminatedUnion("type",[j.object({type:j.literal("citation-start")}),j.object({type:j.literal("citation-end")}),j.object({type:j.literal("content-start"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])})})}),j.object({type:j.literal("content-delta"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({text:j.string()}),j.object({thinking:j.string()})])})})}),j.object({type:j.literal("content-end"),index:j.number()}),j.object({type:j.literal("message-start"),id:j.string().nullish()}),j.object({type:j.literal("message-end"),delta:j.object({finish_reason:j.string(),usage:j.object({tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})})}),j.object({type:j.literal("tool-plan-delta"),delta:j.object({message:j.object({tool_plan:j.string()})})}),j.object({type:j.literal("tool-call-start"),delta:j.object({message:j.object({tool_calls:j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-delta"),delta:j.object({message:j.object({tool_calls:j.object({function:j.object({arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-end")})]),r=j.object({inputType:j.enum(["search_document","search_query","classification","clustering"]).optional(),truncate:j.enum(["NONE","START","END"]).optional(),outputDimension:j.union([j.literal(256),j.literal(512),j.literal(1024),j.literal(1536)]).optional()}),l=class{constructor(z,X){this.specificationVersion="v3",this.maxEmbeddingsPerCall=96,this.supportsParallelCalls=!0,this.modelId=z,this.config=X}get provider(){return this.config.provider}async doEmbed({values:z,headers:X,abortSignal:Y,providerOptions:$}){var D;let J=await F({provider:"cohere",providerOptions:$,schema:r});if(z.length>this.maxEmbeddingsPerCall)throw new R({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:z});let{responseHeaders:Q,value:B,rawValue:G}=await S({url:`${this.config.baseURL}/embed`,headers:E(this.config.headers(),X),body:{model:this.modelId,embedding_types:["float"],texts:z,input_type:(D=J==null?void 0:J.inputType)!=null?D:"search_query",truncate:J==null?void 0:J.truncate,output_dimension:J==null?void 0:J.outputDimension},failedResponseHandler:w,successfulResponseHandler:H(n),abortSignal:Y,fetch:this.config.fetch});return{warnings:[],embeddings:B.embeddings.float,usage:{tokens:B.meta.billed_units.input_tokens},response:{headers:Q,body:G}}}},n=j.object({embeddings:j.object({float:j.array(j.array(j.number()))}),meta:j.object({billed_units:j.object({input_tokens:j.number()})})}),t=M(()=>W(j.object({id:j.string().nullish(),results:j.array(j.object({index:j.number(),relevance_score:j.number()})),meta:j.any()}))),e=M(()=>W(j.object({maxTokensPerDoc:j.number().optional(),priority:j.number().optional()}))),o=class{constructor(z,X){this.specificationVersion="v3",this.modelId=z,this.config=X}get provider(){return this.config.provider}async doRerank({documents:z,headers:X,query:Y,topN:$,abortSignal:D,providerOptions:J}){var Q;let B=await F({provider:"cohere",providerOptions:J,schema:e}),G=[];if(z.type==="object")G.push({type:"compatibility",feature:"object documents",details:"Object documents are converted to strings."});let{responseHeaders:K,value:U,rawValue:N}=await S({url:`${this.config.baseURL}/rerank`,headers:E(this.config.headers(),X),body:{model:this.modelId,query:Y,documents:z.type==="text"?z.values:z.values.map((q)=>JSON.stringify(q)),top_n:$,max_tokens_per_doc:B==null?void 0:B.maxTokensPerDoc,priority:B==null?void 0:B.priority},failedResponseHandler:w,successfulResponseHandler:H(t),abortSignal:D,fetch:this.config.fetch});return{ranking:U.results.map((q)=>({index:q.index,relevanceScore:q.relevance_score})),warnings:G,response:{id:(Q=U.id)!=null?Q:void 0,headers:K,body:N}}}},jj="3.0.27";function zj(z={}){var X;let Y=(X=C(z.baseURL))!=null?X:"https://api.cohere.com/v2",$=()=>b({Authorization:`Bearer ${k({apiKey:z.apiKey,environmentVariableName:"COHERE_API_KEY",description:"Cohere"})}`,...z.headers},`ai-sdk/cohere/${jj}`),D=(G)=>{var K;return new i(G,{provider:"cohere.chat",baseURL:Y,headers:$,fetch:z.fetch,generateId:(K=z.generateId)!=null?K:O})},J=(G)=>new l(G,{provider:"cohere.textEmbedding",baseURL:Y,headers:$,fetch:z.fetch}),Q=(G)=>new o(G,{provider:"cohere.reranking",baseURL:Y,headers:$,fetch:z.fetch}),B=function(G){if(new.target)throw Error("The Cohere model function cannot be called with the new keyword.");return D(G)};return B.specificationVersion="v3",B.languageModel=D,B.embedding=J,B.embeddingModel=J,B.textEmbedding=J,B.textEmbeddingModel=J,B.reranking=Q,B.rerankingModel=Q,B.imageModel=(G)=>{throw new I({modelId:G,modelType:"imageModel"})},B}var Fj=zj();export{zj as createCohere,Fj as cohere,jj as VERSION};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-sh03ka27.js";var Jm=Object.defineProperty,Om=(e)=>{throw TypeError(e)},dh=(e,_,o)=>(_ in e)?Jm(e,_,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[_]=o,Lm=(e,_)=>{for(var o in _)Jm(e,o,{get:_[o],enumerable:!0})},zo=(e,_,o)=>dh(e,typeof _!="symbol"?_+"":_,o),mh=(e,_,o)=>_.has(e)||Om("Cannot "+o),fh=(e,_,o)=>_.has(e)?Om("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(e):_.set(e,o),ye=(e,_,o)=>(mh(e,_,"access private method"),o),Rm={};Lm(Rm,{parsers:()=>qm});var qm={};Lm(qm,{typescript:()=>T4});var hh=()=>()=>{},Fp=hh,yh=(e,_,o,c)=>{if(!(e&&_==null))return _.replaceAll?_.replaceAll(o,c):o.global?_.replace(o,c):_.split(o).join(c)},Na=yh,gh="5.8",At=[],bh=new Map;function Ho(e){return e!==void 0?e.length:0}function O_(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c)return c}}function vh(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c!==void 0)return c}}function xd(e,_,o){let c=[];q.assertEqual(e.length,_.length);for(let h=0;h<e.length;h++)c.push(o(e[h],_[h],h));return c}function jp(e,_){if(e!==void 0){for(let o=0;o<e.length;o++)if(!_(e[o],o))return!1}return!0}function Um(e,_,o){if(e!==void 0)for(let c=o??0;c<e.length;c++){let h=e[c];if(_(h,c))return h}}function Gu(e,_,o){if(e===void 0)return-1;for(let c=o??0;c<e.length;c++)if(_(e[c],c))return c;return-1}function xh(e,_,o=Op){if(e!==void 0){for(let c=0;c<e.length;c++)if(o(e[c],_))return!0}return!1}function Xn(e,_){if(e!==void 0){let o=e.length,c=0;for(;c<o&&_(e[c]);)c++;if(c<o){let h=e.slice(0,c);for(c++;c<o;){let v=e[c];_(v)&&h.push(v),c++}return h}}return e}function cp(e,_){let o;if(e!==void 0){o=[];for(let c=0;c<e.length;c++)o.push(_(e[c],c))}return o}function Bm(e){let _=[];for(let o=0;o<e.length;o++){let c=e[o];c&&($n(c)?D_(_,c):_.push(c))}return _}function zm(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h&&($n(h)?o=D_(o,h):o=C_(o,h))}return o??At}function wh(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=e[c],v=_(h,c);(o||h!==v||$n(v))&&(o||(o=e.slice(0,c)),$n(v)?D_(o,v):o.push(v))}return o??e}function Th(e,_){let o=[];if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h!==void 0&&o.push(h)}return o}function Zt(e,_){if(e!==void 0)if(_!==void 0){for(let o=0;o<e.length;o++)if(_(e[o]))return!0}else return e.length>0;return!1}function Mp(e,_){return _===void 0||_.length===0?e:e===void 0||e.length===0?_:[...e,..._]}function Sh(e,_,o=Op){if(e===void 0||_===void 0)return e===_;if(e.length!==_.length)return!1;for(let c=0;c<e.length;c++)if(!o(e[c],_[c],c))return!1;return!0}function C_(e,_){return _===void 0?e:e===void 0?[_]:(e.push(_),e)}function up(e,_){return _<0?e.length+_:_}function D_(e,_,o,c){if(_===void 0||_.length===0)return e;if(e===void 0)return _.slice(o,c);o=o===void 0?0:up(_,o),c=c===void 0?_.length:up(_,c);for(let h=o;h<c&&h<_.length;h++)_[h]!==void 0&&e.push(_[h]);return e}function kh(e,_,o){return xh(e,_,o)?!1:(e.push(_),!0)}function Ch(e,_,o){return e!==void 0?(kh(e,_,o),e):[_]}function Ah(e,_){return e.length===0?At:e.slice().sort(_)}var S4=Array.prototype.at?(e,_)=>e==null?void 0:e.at(_):(e,_)=>{if(e!==void 0&&(_=up(e,_),_<e.length))return e[_]};function Jp(e){return e===void 0||e.length===0?void 0:e[0]}function ja(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Dh(e){return q.assert(e.length!==0),e[e.length-1]}function Eh(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ph(e,_,o,c,h){return Nh(e,o(_),o,c,h)}function Nh(e,_,o,c,h){if(!Zt(e))return-1;let v=h??0,A=e.length-1;for(;v<=A;){let E=v+(A-v>>1),s=o(e[E],E);switch(c(s,_)){case-1:v=E+1;break;case 0:return E;case 1:A=E-1;break}}return~v}function Ih(e,_,o,c,h){if(e&&e.length>0){let v=e.length;if(v>0){let A=c===void 0||c<0?0:c,E=h===void 0||A+h>v-1?v-1:A+h,s;for(arguments.length<=2?(s=e[A],A++):s=o;A<=E;)s=_(s,e[A],A),A++;return s}}return o}var Km=Object.prototype.hasOwnProperty;function Dn(e,_){return Km.call(e,_)}function Fh(e){let _=[];for(let o in e)Km.call(e,o)&&_.push(o);return _}function jh(){let e=new Map;return e.add=Mh,e.remove=Jh,e}function Mh(e,_){let o=this.get(e);return o!==void 0?o.push(_):this.set(e,o=[_]),o}function Jh(e,_){let o=this.get(e);o!==void 0&&(Vh(o,_),o.length||this.delete(e))}function $n(e){return Array.isArray(e)}function $u(e){return $n(e)?e:[e]}function Oh(e,_){return e!==void 0&&_(e)?e:void 0}function Cn(e,_){return e!==void 0&&_(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(_)}'.`)}function qa(e){}function Lh(){return!0}function gt(e){return e}function wd(e){let _;return()=>(e&&(_=e(),e=void 0),_)}function H_(e){let _=new Map;return(o)=>{let c=`${typeof o}:${o}`,h=_.get(c);return h===void 0&&!_.has(c)&&(h=e(o),_.set(c,h)),h}}function Op(e,_){return e===_}function Lp(e,_){return e===_||e!==void 0&&_!==void 0&&e.toUpperCase()===_.toUpperCase()}function Rh(e,_){return Op(e,_)}function qh(e,_){return e===_?0:e===void 0?-1:_===void 0?1:e<_?-1:1}function Vm(e,_){return qh(e,_)}function Uh(e,_,o){for(let c=0;c<e.length;c++)_=Math.max(_,o(e[c]));return _}function Qo(e,_,o){let c=Math.max(2,Math.floor(e.length*0.34)),h=Math.floor(e.length*0.4)+1,v;for(let A of _){let E=o(A);if(E!==void 0&&Math.abs(E.length-e.length)<=c){if(E===e||E.length<3&&E.toLowerCase()!==e.toLowerCase())continue;let s=Bh(e,E,h-0.1);if(s===void 0)continue;q.assert(s<h),h=s,v=A}}return v}function Bh(e,_,o){let c=Array(_.length+1),h=Array(_.length+1),v=o+0.01;for(let E=0;E<=_.length;E++)c[E]=E;for(let E=1;E<=e.length;E++){let s=e.charCodeAt(E-1),V=Math.ceil(E>o?E-o:1),d=Math.floor(_.length>o+E?o+E:_.length);h[0]=E;let T=E;for(let S=1;S<V;S++)h[S]=v;for(let S=V;S<=d;S++){let F=e[E-1].toLowerCase()===_[S-1].toLowerCase()?c[S-1]+0.1:c[S-1]+2,te=s===_.charCodeAt(S-1)?c[S-1]:Math.min(c[S]+1,h[S-1]+1,F);h[S]=te,T=Math.min(T,te)}for(let S=d+1;S<=_.length;S++)h[S]=v;if(T>o)return;let b=c;c=h,h=b}let A=c[_.length];return A>o?void 0:A}function zh(e,_,o){let c=e.length-_.length;return c>=0&&(o?Lp(e.slice(c),_):e.indexOf(_,c)===c)}function Kh(e,_){e[_]=e[e.length-1],e.pop()}function Vh(e,_){return Wh(e,(o)=>o===_)}function Wh(e,_){for(let o=0;o<e.length;o++)if(_(e[o]))return Kh(e,o),!0;return!1}function _c(e,_,o){return o?Lp(e.slice(0,_.length),_):e.lastIndexOf(_,0)===0}function pp(e){return e===void 0?void 0:[e]}var q;((e)=>{let _=0;e.currentLogLevel=2,e.isDebugging=!1;function o(J){return e.currentLogLevel<=J}e.shouldLog=o;function c(J,oe){e.loggingHost&&o(J)&&e.loggingHost.log(J,oe)}function h(J){c(3,J)}e.log=h,((J)=>{function oe(Ye){c(1,Ye)}J.error=oe;function pe(Ye){c(2,Ye)}J.warn=pe;function ke(Ye){c(3,Ye)}J.log=ke;function Qe(Ye){c(4,Ye)}J.trace=Qe})(h=e.log||(e.log={}));let v={};function A(){return _}e.getAssertionLevel=A;function E(J){let oe=_;if(_=J,J>oe)for(let pe of Fh(v)){let ke=v[pe];ke!==void 0&&e[pe]!==ke.assertion&&J>=ke.level&&(e[pe]=ke,v[pe]=void 0)}}e.setAssertionLevel=E;function s(J){return _>=J}e.shouldAssert=s;function V(J,oe){return s(J)?!0:(v[oe]={level:J,assertion:e[oe]},e[oe]=qa,!1)}function d(J,oe){debugger;let pe=Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(pe,oe||d),pe}e.fail=d;function T(J,oe,pe){return d(`${oe||"Unexpected node."}\r
|
|
3
3
|
Node ${jt(J.kind)} was unexpected.`,pe||T)}e.failBadSyntaxKind=T;function b(J,oe,pe,ke){J||(oe=oe?`False expression: ${oe}`:"False expression.",pe&&(oe+=`\r
|
|
4
4
|
Verbose Debug Information: `+(typeof pe=="string"?pe:pe())),d(oe,ke||b))}e.assert=b;function S(J,oe,pe,ke,Qe){if(J!==oe){let Ye=pe?ke?`${pe} ${ke}`:pe:"";d(`Expected ${J} === ${oe}. ${Ye}`,Qe||S)}}e.assertEqual=S;function F(J,oe,pe,ke){J>=oe&&d(`Expected ${J} < ${oe}. ${pe||""}`,ke||F)}e.assertLessThan=F;function te(J,oe,pe){J>oe&&d(`Expected ${J} <= ${oe}`,pe||te)}e.assertLessThanOrEqual=te;function ve(J,oe,pe){J<oe&&d(`Expected ${J} >= ${oe}`,pe||ve)}e.assertGreaterThanOrEqual=ve;function fe(J,oe,pe){J==null&&d(oe,pe||fe)}e.assertIsDefined=fe;function me(J,oe,pe){return fe(J,oe,pe||me),J}e.checkDefined=me;function j(J,oe,pe){for(let ke of J)fe(ke,oe,pe||j)}e.assertEachIsDefined=j;function ne(J,oe,pe){return j(J,oe,pe||ne),J}e.checkEachDefined=ne;function je(J,oe="Illegal value:",pe){let ke=typeof J=="object"&&Dn(J,"kind")&&Dn(J,"pos")?"SyntaxKind: "+jt(J.kind):JSON.stringify(J);return d(`${oe} ${ke}`,pe||je)}e.assertNever=je;function K(J,oe,pe,ke){V(1,"assertEachNode")&&b(oe===void 0||jp(J,oe),pe||"Unexpected node.",()=>`Node array did not pass test '${y_(oe)}'.`,ke||K)}e.assertEachNode=K;function se(J,oe,pe,ke){V(1,"assertNode")&&b(J!==void 0&&(oe===void 0||oe(J)),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||se)}e.assertNode=se;function G(J,oe,pe,ke){V(1,"assertNotNode")&&b(J===void 0||oe===void 0||!oe(J),pe||"Unexpected node.",()=>`Node ${jt(J.kind)} should not have passed test '${y_(oe)}'.`,ke||G)}e.assertNotNode=G;function mt(J,oe,pe,ke){V(1,"assertOptionalNode")&&b(oe===void 0||J===void 0||oe(J),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||mt)}e.assertOptionalNode=mt;function en(J,oe,pe,ke){V(1,"assertOptionalToken")&&b(oe===void 0||J===void 0||J.kind===oe,pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} was not a '${jt(oe)}' token.`,ke||en)}e.assertOptionalToken=en;function h_(J,oe,pe){V(1,"assertMissingNode")&&b(J===void 0,oe||"Unexpected node.",()=>`Node ${jt(J.kind)} was unexpected'.`,pe||h_)}e.assertMissingNode=h_;function tn(J){}e.type=tn;function y_(J){if(typeof J!="function")return"";if(Dn(J,"name"))return J.name;{let oe=Function.prototype.toString.call(J),pe=/^function\s+([\w$]+)\s*\(/.exec(oe);return pe?pe[1]:""}}e.getFunctionName=y_;function P_(J){return`{ name: ${si(J.escapedName)}; flags: ${st(J.flags)}; declarations: ${cp(J.declarations,(oe)=>jt(oe.kind))} }`}e.formatSymbol=P_;function We(J=0,oe,pe){let ke=Pn(oe);if(J===0)return ke.length>0&&ke[0][0]===0?ke[0][1]:"0";if(pe){let Qe=[],Ye=J;for(let[at,Et]of ke){if(at>J)break;at!==0&&at&J&&(Qe.push(Et),Ye&=~at)}if(Ye===0)return Qe.join("|")}else for(let[Qe,Ye]of ke)if(Qe===J)return Ye;return J.toString()}e.formatEnum=We;let _n=new Map;function Pn(J){let oe=_n.get(J);if(oe)return oe;let pe=[];for(let Qe in J){let Ye=J[Qe];typeof Ye=="number"&&pe.push([Ye,Qe])}let ke=Ah(pe,(Qe,Ye)=>Vm(Qe[0],Ye[0]));return _n.set(J,ke),ke}function jt(J){return We(J,Fe,!1)}e.formatSyntaxKind=jt;function L_(J){return We(J,ef,!1)}e.formatSnippetKind=L_;function N_(J){return We(J,Wn,!1)}e.formatScriptKind=N_;function Mt(J){return We(J,Y_,!0)}e.formatNodeFlags=Mt;function bt(J){return We(J,$m,!0)}e.formatNodeCheckFlags=bt;function He(J){return We(J,Wm,!0)}e.formatModifierFlags=He;function R_(J){return We(J,Zm,!0)}e.formatTransformFlags=R_;function Xt(J){return We(J,tf,!0)}e.formatEmitFlags=Xt;function st(J){return We(J,Gm,!0)}e.formatSymbolFlags=st;function rt(J){return We(J,o_,!0)}e.formatTypeFlags=rt;function Rt(J){return We(J,Qm,!0)}e.formatSignatureFlags=Rt;function Jt(J){return We(J,Hm,!0)}e.formatObjectFlags=Jt;function lt(J){return We(J,dp,!0)}e.formatFlowFlags=lt;function nn(J){return We(J,Xm,!0)}e.formatRelationComparisonResult=nn;function ft(J){return We(J,CheckMode,!0)}e.formatCheckMode=ft;function g_(J){return We(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=g_;function yt(J){return We(J,TypeFacts,!0)}e.formatTypeFacts=yt;let i_=!1,_t;function qt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",pe=this.flags&-2048;return`${oe}${pe?` (${lt(pe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,dp,!0)}},__debugToString:{value(){return hn(this)}}})}function t_(J){return i_&&(typeof Object.setPrototypeOf=="function"?(_t||(_t=Object.create(Object.prototype),qt(_t)),Object.setPrototypeOf(J,_t)):qt(J)),J}e.attachFlowNodeDebugInfo=t_;let rn;function dn(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function mn(J){i_&&(typeof Object.setPrototypeOf=="function"?(rn||(rn=Object.create(Array.prototype),dn(rn)),Object.setPrototypeOf(J,rn)):dn(J))}e.attachNodeArrayDebugInfo=mn;function q_(){if(i_)return;let J=new WeakMap,oe=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&33554432?"TransientSymbol":"Symbol",Qe=this.flags&-33554433;return`${ke} '${hp(this)}'${Qe?` (${st(Qe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Qe=this.flags&524288?this.objectFlags&-1344:0;return`${ke}${this.symbol?` '${hp(this.symbol)}'`:""}${Qe?` (${Jt(Qe)})`:""}`}},__debugFlags:{get(){return rt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let ke=J.get(this);return ke===void 0&&(ke=this.checker.typeToString(this),J.set(this,ke)),ke}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Rt(this.flags)}},__debugSignatureToString:{value(){var ke;return(ke=this.checker)==null?void 0:ke.signatureToString(this)}}});let pe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let ke of pe)Dn(ke.prototype,"__debugKind")||Object.defineProperties(ke.prototype,{__tsDebuggerDisplay:{value(){return`${Fa(this)?"GeneratedIdentifier":tt(this)?`Identifier '${E_(this)}'`:Xr(this)?`PrivateIdentifier '${E_(this)}'`:Ra(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ba(this)?`NumericLiteral ${this.text}`:og(this)?`BigIntLiteral ${this.text}n`:Qf(this)?"TypeParameterDeclaration":sc(this)?"ParameterDeclaration":Yf(this)?"ConstructorDeclaration":Tp(this)?"GetAccessorDeclaration":cc(this)?"SetAccessorDeclaration":mg(this)?"CallSignatureDeclaration":fg(this)?"ConstructSignatureDeclaration":Zf(this)?"IndexSignatureDeclaration":hg(this)?"TypePredicateNode":e1(this)?"TypeReferenceNode":t1(this)?"FunctionTypeNode":_1(this)?"ConstructorTypeNode":yg(this)?"TypeQueryNode":gg(this)?"TypeLiteralNode":bg(this)?"ArrayTypeNode":vg(this)?"TupleTypeNode":wg(this)?"OptionalTypeNode":Tg(this)?"RestTypeNode":Sg(this)?"UnionTypeNode":kg(this)?"IntersectionTypeNode":Cg(this)?"ConditionalTypeNode":Ag(this)?"InferTypeNode":Dg(this)?"ParenthesizedTypeNode":Eg(this)?"ThisTypeNode":Pg(this)?"TypeOperatorNode":Ng(this)?"IndexedAccessTypeNode":Ig(this)?"MappedTypeNode":Fg(this)?"LiteralTypeNode":xg(this)?"NamedTupleMember":jg(this)?"ImportTypeNode":jt(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return jt(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return He(h2(this))}},__debugTransformFlags:{get(){return R_(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ac(this)}},__debugEmitFlags:{get(){return Xt(La(this))}},__debugGetText:{value(Qe){if(Aa(this))return"";let Ye=oe.get(this);if(Ye===void 0){let at=N0(this),Et=at&&fr(at);Ye=Et?Od(Et,at,Qe):"",oe.set(this,Ye)}return Ye}}});i_=!0}e.enableDebugInfo=q_;function U_(J){let oe=J&7,pe=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return J&8?pe+=" (unmeasurable)":J&16&&(pe+=" (unreliable)"),pe}e.formatVariance=U_;class fn{__debugToString(){var J;switch(this.kind){case 3:return((J=this.debugInfo)==null?void 0:J.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xd(this.sources,this.targets||cp(this.sources,()=>"any"),(oe,pe)=>`${oe.__debugTypeToString()} -> ${typeof pe=="string"?pe:pe.__debugTypeToString()}`).join(", ");case 2:return xd(this.sources,this.targets,(oe,pe)=>`${oe.__debugTypeToString()} -> ${pe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
5
5
|
`).join(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ir as DG}from"./chunk-bmdqb48f.js";import{Qs as lb}from"./chunk-1e75j4m1.js";import{uP as oI,vP as jb,yP as zb}from"./chunk-sh03ka27.js";var tI=jb((Q1,pI)=>{var{PassThrough:Db}=zb("stream");pI.exports=function(){var I=[],G=new Db({objectMode:!0});return G.setMaxListeners(0),G.add=b,G.isEmpty=S,G.on("unpipe",$),Array.prototype.slice.call(arguments).forEach(b),G;function b(V){if(Array.isArray(V))return V.forEach(b),this;return I.push(V),V.once("end",$.bind(null,V)),V.once("error",G.emit.bind(G,"error")),V.pipe(G,{end:!1}),this}function S(){return I.length==0}function $(V){if(I=I.filter(function(H){return H!==V}),!I.length&&G.readable)G.end()}}});import zG from"process";var qG=oI(lb(),1);import{Buffer as ab}from"buffer";import ib from"path";import JI from"child_process";import u from"process";function l(I){let G=typeof I==="string"?`
|
|
3
3
|
`:`
|
|
4
4
|
`.charCodeAt(),b=typeof I==="string"?"\r":"\r".charCodeAt();if(I[I.length-1]===G)I=I.slice(0,-1);if(I[I.length-1]===b)I=I.slice(0,-1);return I}import B from"process";import A from"path";import{fileURLToPath as yI}from"url";function O(I={}){let{env:G=process.env,platform:b=process.platform}=I;if(b!=="win32")return"PATH";return Object.keys(G).reverse().find((S)=>S.toUpperCase()==="PATH")||"Path"}var EG=({cwd:I=B.cwd(),path:G=B.env[O()],preferLocal:b=!0,execPath:S=B.execPath,addExecPath:$=!0}={})=>{let V=I instanceof URL?yI(I):I,H=A.resolve(V),U=[];if(b)OG(U,H);if($)BG(U,S,H);return[...U,G].join(A.delimiter)},OG=(I,G)=>{let b;while(b!==G)I.push(A.join(G,"node_modules/.bin")),b=G,G=A.resolve(G,"..")},BG=(I,G,b)=>{let S=G instanceof URL?yI(G):G;I.push(A.resolve(b,S,".."))},TI=({env:I=B.env,...G}={})=>{I={...I};let b=O({env:I});return G.path=I[b],I[b]=EG(G),I};var vG=(I,G,b,S)=>{if(b==="length"||b==="prototype")return;if(b==="arguments"||b==="caller")return;let $=Object.getOwnPropertyDescriptor(I,b),V=Object.getOwnPropertyDescriptor(G,b);if(!PG($,V)&&S)return;Object.defineProperty(I,b,V)},PG=function(I,G){return I===void 0||I.configurable||I.writable===G.writable&&I.enumerable===G.enumerable&&I.configurable===G.configurable&&(I.writable||I.value===G.value)},CG=(I,G)=>{let b=Object.getPrototypeOf(G);if(b===Object.getPrototypeOf(I))return;Object.setPrototypeOf(I,b)},wG=(I,G)=>`/* Wrapped ${I}*/
|
|
5
5
|
${G}`,xG=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),kG=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),cG=(I,G,b)=>{let S=b===""?"":`with ${b.trim()}() `,$=wG.bind(null,S,G.toString());Object.defineProperty($,"name",kG),Object.defineProperty(I,"toString",{...xG,value:$})};function a(I,G,{ignoreNonConfigurable:b=!1}={}){let{name:S}=I;for(let $ of Reflect.ownKeys(G))vG(I,G,$,b);return CG(I,G),cG(I,G,S),I}var v=new WeakMap,KI=(I,G={})=>{if(typeof I!=="function")throw TypeError("Expected a function");let b,S=0,$=I.displayName||I.name||"<anonymous>",V=function(...H){if(v.set(V,++S),S===1)b=I.apply(this,H),I=null;else if(G.throw===!0)throw Error(`Function \`${$}\` can only be called once`);return b};return a(V,I),v.set(V,S),V};KI.callCount=(I)=>{if(!v.has(I))throw Error(`The given function \`${I.name}\` is not wrapped by the \`onetime\` package`);return v.get(I)};var _I=KI;import iG from"process";import{constants as mG}from"os";var LI=()=>{let I=i-jI+1;return Array.from({length:I},fG)},fG=(I,G)=>({name:`SIGRT${G+1}`,number:jI+G,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),jI=34,i=64;import{constants as hG}from"os";var zI=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var p=()=>{let I=LI();return[...zI,...I].map(uG)},uG=({name:I,number:G,description:b,action:S,forced:$=!1,standard:V})=>{let{signals:{[I]:H}}=hG,U=H!==void 0;return{name:I,number:U?H:G,description:b,supported:U,action:S,forced:$,standard:V}};var gG=()=>{let I=p();return Object.fromEntries(I.map(dG))},dG=({name:I,number:G,description:b,supported:S,action:$,forced:V,standard:H})=>[I,{name:I,number:G,description:b,supported:S,action:$,forced:V,standard:H}],DI=gG(),nG=()=>{let I=p(),G=i+1,b=Array.from({length:G},(S,$)=>lG($,I));return Object.assign({},...b)},lG=(I,G)=>{let b=aG(I,G);if(b===void 0)return{};let{name:S,description:$,supported:V,action:H,forced:U,standard:W}=b;return{[I]:{name:S,number:I,description:$,supported:V,action:H,forced:U,standard:W}}},aG=(I,G)=>{let b=G.find(({name:S})=>mG.signals[S]===I);if(b!==void 0)return b;return G.find((S)=>S.number===I)},ES=nG();var pG=({timedOut:I,timeout:G,errorCode:b,signal:S,signalDescription:$,exitCode:V,isCanceled:H})=>{if(I)return`timed out after ${G} milliseconds`;if(H)return"was canceled";if(b!==void 0)return`failed with ${b}`;if(S!==void 0)return`was killed with ${S} (${$})`;if(V!==void 0)return`failed with exit code ${V}`;return"failed"},F=({stdout:I,stderr:G,all:b,error:S,signal:$,exitCode:V,command:H,escapedCommand:U,timedOut:W,isCanceled:Y,killed:q,parsed:{options:{timeout:L,cwd:N=iG.cwd()}}})=>{V=V===null?void 0:V,$=$===null?void 0:$;let Q=$===void 0?void 0:DI[$].description,J=S&&S.code,j=`Command ${pG({timedOut:W,timeout:L,errorCode:J,signal:$,signalDescription:Q,exitCode:V,isCanceled:Y})}: ${H}`,z=Object.prototype.toString.call(S)==="[object Error]",D=z?`${j}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-sh03ka27.js";var ln=Object.defineProperty,br=(t)=>{throw TypeError(t)},we=(t,e)=>{for(var r in e)ln(t,r,{get:e[r],enumerable:!0})},Ar=(t,e,r)=>e.has(t)||br("Cannot "+r),$=(t,e,r)=>(Ar(t,e,"read from private field"),r?r.call(t):e.get(t)),Kt=(t,e,r)=>e.has(t)?br("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Y=(t,e,r,n)=>(Ar(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Dr={};we(Dr,{languages:()=>ya,parsers:()=>zr,printers:()=>Du});var cn=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},vr=cn,Er="string",Cr="array",Sr="cursor",Be="indent",xe="align",kr="trim",Te="group",Ne="fill",Fe="if-break",wr="indent-if-break",Br="line-suffix",xr="line-suffix-boundary",wt="line",Tr="label",Pe="break-parent",Nr=new Set([Sr,Be,xe,kr,Te,Ne,Fe,wr,Br,xr,wt,Tr,Pe]),hn=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},ht=hn;function pn(t){if(typeof t=="string")return Er;if(Array.isArray(t))return Cr;if(!t)return;let{type:e}=t;if(Nr.has(e))return e}var Fr=pn,dn=(t)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function mn(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
3
3
|
Expected it to be 'string' or 'object'.`;if(Fr(t))throw Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=dn([...Nr].map((a)=>`'${a}'`));return`Unexpected doc.type '${t.type}'.
|
|
4
4
|
Expected it to be ${n}.`}var fn=class extends Error{name="InvalidDocError";constructor(t){super(mn(t)),this.doc=t}},gn=fn;function yn(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(u){if(r.has(u))return r.get(u);let i=a(u);return r.set(u,i),i}function a(u){switch(Fr(u)){case Cr:return e(u.map(n));case Ne:return e({...u,parts:u.parts.map(n)});case Fe:return e({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case Te:{let{expandedStates:i,contents:o}=u;return i?(i=i.map(n),o=i[0]):o=n(o),e({...u,contents:o,expandedStates:i})}case xe:case Be:case wr:case Tr:case Br:return e({...u,contents:n(u.contents)});case Er:case Sr:case kr:case xr:case wt:case Pe:return e(u);default:throw new gn(u)}}}function bn(t,e=Cn){return yn(t,(r)=>typeof r=="string"?It(e,r.split(`
|
|
5
5
|
`)):r)}var Le=()=>{},St=Le,Pr=Le,An=Le;function q(t){return St(t),{type:Be,contents:t}}function Dn(t,e){return St(e),{type:xe,contents:e,n:t}}function O(t,e={}){return St(t),Pr(e.expandedStates,!0),{type:Te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function ye(t){return Dn(-1,t)}function Ke(t){return An(t),{type:Ne,parts:t}}function Qe(t,e="",r={}){return St(t),e!==""&&St(e),{type:Fe,breakContents:t,flatContents:e,groupId:r.groupId}}var Lr={type:Pe},vn={type:wt,hard:!0},En={type:wt,hard:!0,literal:!0},N={type:wt},H={type:wt,soft:!0},mt=[vn,Lr],Cn=[En,Lr];function It(t,e){St(t),Pr(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var Ht="'",Je='"';function Sn(t,e){let r=e===!0||e===Ht?Ht:Je,n=r===Ht?Je:Ht,a=0,u=0;for(let i of t)i===r?a++:i===n&&u++;return a>u?n:r}var be=Sn;function kn(t){if(typeof t!="string")throw TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var R,wn=class{constructor(t){Kt(this,R),Y(this,R,new Set(t))}getLeadingWhitespaceCount(t){let e=$(this,R),r=0;for(let n=0;n<t.length&&e.has(t.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(t){let e=$(this,R),r=0;for(let n=t.length-1;n>=0&&e.has(t.charAt(n));n--)r++;return r}getLeadingWhitespace(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(0,e)}getTrailingWhitespace(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(t.length-e)}hasLeadingWhitespace(t){return $(this,R).has(t.charAt(0))}hasTrailingWhitespace(t){return $(this,R).has(ht(!1,t,-1))}trimStart(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(e)}trimEnd(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-e)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,e=!1){let r=`[${kn([...$(this,R)].join(""))}]+`,n=new RegExp(e?`(${r})`:r,"u");return t.split(n)}hasWhitespaceCharacter(t){let e=$(this,R);return Array.prototype.some.call(t,(r)=>e.has(r))}hasNonWhitespaceCharacter(t){let e=$(this,R);return Array.prototype.some.call(t,(r)=>!e.has(r))}isWhitespaceOnly(t){let e=$(this,R);return Array.prototype.every.call(t,(r)=>e.has(r))}};R=new WeakMap;var Bn=wn,xn=["\t",`
|