@qitqode/qitqode-android-arm64 0.1.29 → 0.1.31
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-g06rv5fq.js → chunk-01my2y0c.js} +1 -1
- package/bundle/chunk-04n2ycg5.js +800 -0
- package/bundle/{chunk-k7dcfqjs.js → chunk-05mce0j3.js} +1 -1
- package/bundle/{chunk-3q6650we.js → chunk-0bbs01f0.js} +1 -1
- package/bundle/{chunk-1rn0vmvv.js → chunk-0dt0bxz6.js} +2 -2
- package/bundle/{chunk-x6nbck7p.js → chunk-0mx2psfc.js} +1 -1
- package/bundle/chunk-0p27fvfr.js +2 -0
- package/bundle/chunk-0qs1vx97.js +2 -0
- package/bundle/{chunk-8kz3n8ye.js → chunk-0v0vqbn5.js} +1 -1
- package/bundle/chunk-0w0ctb90.js +2 -0
- package/bundle/chunk-0yt5njh7.js +8 -0
- package/bundle/{chunk-fsy279s5.js → chunk-10bjs581.js} +2 -2
- package/bundle/{chunk-z29fwg61.js → chunk-11x3t2tt.js} +1 -1
- package/bundle/{chunk-qzjpea91.js → chunk-12vef2pr.js} +1 -1
- package/bundle/{chunk-kkae8ead.js → chunk-15hw2z9t.js} +1 -1
- package/bundle/chunk-1f7ajq8s.js +2 -0
- package/bundle/chunk-1fswr17z.js +2 -0
- package/bundle/{chunk-yt2k9ga8.js → chunk-1gx18dm5.js} +1 -1
- package/bundle/chunk-1rhhhm88.js +2 -0
- package/bundle/{chunk-b4qd109w.js → chunk-1sgahe1s.js} +1 -1
- package/bundle/{chunk-74zgcxeg.js → chunk-1vb79bw1.js} +1 -1
- package/bundle/chunk-1wbjh23g.js +2 -0
- package/bundle/chunk-20f83ca0.js +2 -0
- package/bundle/{chunk-ed723mw1.js → chunk-24jg9d61.js} +1 -1
- package/bundle/{chunk-csdm3n24.js → chunk-2hc5z7b5.js} +1 -1
- package/bundle/{chunk-bzrsnv2k.js → chunk-2maqde7w.js} +2 -2
- package/bundle/{chunk-awav98j0.js → chunk-2vn41ecx.js} +1 -1
- package/bundle/{chunk-50w28xj1.js → chunk-2zq4k837.js} +1 -1
- package/bundle/chunk-31mnd3ph.js +3 -0
- package/bundle/{chunk-a2qerqgd.js → chunk-31qrzrwy.js} +1 -1
- package/bundle/{chunk-abtn6nec.js → chunk-326p5b10.js} +2 -2
- package/bundle/{chunk-2p2ch1k2.js → chunk-33e9y2aw.js} +1 -1
- package/bundle/{chunk-asmfntjm.js → chunk-35xk4g91.js} +1 -1
- package/bundle/{chunk-n86s4fw4.js → chunk-3632wgg1.js} +1 -1
- package/bundle/{chunk-tqsx2m1j.js → chunk-3bxg5bta.js} +1 -1
- package/bundle/{chunk-6bsgrr5h.js → chunk-3c6p8tm3.js} +1 -1
- package/bundle/chunk-3h9rq2wq.js +2 -0
- package/bundle/{chunk-7wthn44y.js → chunk-3ytjm3az.js} +1 -1
- package/bundle/{chunk-2mjc44ev.js → chunk-40efytmk.js} +1 -1
- package/bundle/chunk-42p59wm4.js +2 -0
- package/bundle/{chunk-09j71kp6.js → chunk-44a82dg0.js} +4 -4
- package/bundle/chunk-4512pvca.js +2 -0
- package/bundle/chunk-456bmaww.js +2 -0
- package/bundle/{chunk-s6me101a.js → chunk-48ge2ryx.js} +1 -1
- package/bundle/chunk-48pajrnt.js +2 -0
- package/bundle/{chunk-hn1f6rne.js → chunk-4cnwn1rh.js} +2 -2
- package/bundle/chunk-4d87mhwn.js +3 -0
- package/bundle/chunk-4fy9c54h.js +2 -0
- package/bundle/{chunk-43ae3chd.js → chunk-4gkk28xk.js} +2 -2
- package/bundle/{chunk-bsf6n350.js → chunk-4jtxtkj7.js} +2 -2
- package/bundle/{chunk-pq2prhb2.js → chunk-50sv6y2e.js} +1 -1
- package/bundle/chunk-50tb3g5x.js +2 -0
- package/bundle/chunk-52bam8g7.js +2 -0
- package/bundle/{chunk-zqxmr01r.js → chunk-53bqcctj.js} +1 -1
- package/bundle/chunk-53w4zqps.js +2 -0
- package/bundle/chunk-59y8q9m5.js +2 -0
- package/bundle/chunk-5eq1fft9.js +3 -0
- package/bundle/{chunk-8f0g7d7k.js → chunk-5hw6xa49.js} +2 -2
- package/bundle/{chunk-9epjgend.js → chunk-5q4harvc.js} +2 -2
- package/bundle/chunk-5tray1fw.js +3 -0
- package/bundle/{chunk-a2g69pv6.js → chunk-5v0xjs3x.js} +1 -1
- package/bundle/{chunk-ce5t444d.js → chunk-60v5jvgt.js} +1 -1
- package/bundle/chunk-64ezpbwt.js +2 -0
- package/bundle/{chunk-b9hstp7h.js → chunk-68yw2hk9.js} +1 -1
- package/bundle/{chunk-hhgjbag9.js → chunk-69nzndk7.js} +1 -1
- package/bundle/chunk-6bpe215q.js +2 -0
- package/bundle/chunk-6bphjajd.js +2 -0
- package/bundle/{chunk-qredfmch.js → chunk-6d5rrre9.js} +1 -1
- package/bundle/{chunk-mb4wvwfw.js → chunk-6hpgb8h4.js} +3 -3
- package/bundle/{chunk-88dhcv37.js → chunk-6kp07m7p.js} +1 -1
- package/bundle/{chunk-csyw14fj.js → chunk-6phh70sp.js} +1 -1
- package/bundle/chunk-6t1ehq36.js +2 -0
- package/bundle/{chunk-hgbkg85g.js → chunk-70ck4v3t.js} +1 -1
- package/bundle/{chunk-3n49y4kh.js → chunk-71sjjjr8.js} +1 -1
- package/bundle/{chunk-geccvf9d.js → chunk-71xz70r9.js} +1 -1
- package/bundle/{chunk-9kjj44cr.js → chunk-73e409hd.js} +1 -1
- package/bundle/{chunk-1xw68zak.js → chunk-78ymd20x.js} +1 -1
- package/bundle/{chunk-n4gjpgnk.js → chunk-7avcnwv8.js} +1 -1
- package/bundle/{chunk-z8v2tsz2.js → chunk-7hm0c2yg.js} +1 -1
- package/bundle/{chunk-kfgn4apg.js → chunk-7mke41x0.js} +1 -1
- package/bundle/chunk-7pfj4x1a.js +2 -0
- package/bundle/chunk-7ry9cvby.js +2 -0
- package/bundle/chunk-7wczs9mx.js +2 -0
- package/bundle/{chunk-yjj4cvqg.js → chunk-7xm75w1e.js} +1 -1
- package/bundle/{chunk-y212x7ws.js → chunk-7z5jh4ra.js} +1 -1
- package/bundle/{chunk-98vfbn0h.js → chunk-81qwdg5s.js} +1 -1
- package/bundle/{chunk-r4mnbhe1.js → chunk-83gqkmth.js} +1 -1
- package/bundle/chunk-873skv7w.js +2 -0
- package/bundle/{chunk-ndmrg80b.js → chunk-8hytwgwf.js} +1 -1
- package/bundle/{chunk-0wdtbn59.js → chunk-8n20thvd.js} +2 -2
- package/bundle/{chunk-xn61fgrh.js → chunk-8qswepp2.js} +1 -1
- package/bundle/chunk-8v96pmqn.js +2 -0
- package/bundle/chunk-8y2scz6z.js +2 -0
- package/bundle/{chunk-7mc8nxve.js → chunk-8ymffyep.js} +1 -1
- package/bundle/chunk-8zx7vnx6.js +2 -0
- package/bundle/{chunk-8k55xz7z.js → chunk-93p131d5.js} +1 -1
- package/bundle/chunk-94a76f8w.js +2 -0
- package/bundle/{chunk-3h4y7n1a.js → chunk-9emq67vc.js} +1 -1
- package/bundle/{chunk-ypthfv6d.js → chunk-9f1z9xce.js} +1 -1
- package/bundle/chunk-9mjz6e27.js +2 -0
- package/bundle/chunk-9ng7jjp7.js +2 -0
- package/bundle/chunk-9tpgnjy8.js +2 -0
- package/bundle/{chunk-f29n7826.js → chunk-9x5232dw.js} +1 -1
- package/bundle/{chunk-t3tkp1em.js → chunk-a1wdeapb.js} +1 -1
- package/bundle/{chunk-b20xjnpw.js → chunk-a7amey9s.js} +1 -1
- package/bundle/chunk-a7ym9f0v.js +2 -0
- package/bundle/chunk-a8f2xvy3.js +2 -0
- package/bundle/chunk-a99cvwta.js +2 -0
- package/bundle/chunk-abd1cfpg.js +2 -0
- package/bundle/{chunk-yn576pje.js → chunk-ag8kz1e7.js} +2 -2
- package/bundle/chunk-anwnwfjf.js +2 -0
- package/bundle/chunk-avys5mnz.js +2 -0
- package/bundle/chunk-axvjd10y.js +2 -0
- package/bundle/{chunk-4vze3djr.js → chunk-ay8emwym.js} +1 -1
- package/bundle/chunk-b4pphqab.js +2 -0
- package/bundle/chunk-b6087ak4.js +2 -0
- package/bundle/{chunk-qje3683x.js → chunk-b8gjz6bk.js} +1 -1
- package/bundle/chunk-bgw4fvg2.js +2 -0
- package/bundle/{chunk-q0xzbad1.js → chunk-bh53dz71.js} +1 -1
- package/bundle/chunk-brkqxbjy.js +2 -0
- package/bundle/{chunk-j2zay4da.js → chunk-c11d28qn.js} +2 -2
- package/bundle/{chunk-hd2kb05a.js → chunk-c14s0kxq.js} +1 -1
- package/bundle/{chunk-qsszerj7.js → chunk-c1bdzxbx.js} +2 -2
- package/bundle/{chunk-v9xnk9pz.js → chunk-c1vnp55z.js} +1 -1
- package/bundle/chunk-c26qxt5g.js +2 -0
- package/bundle/chunk-c6zscb38.js +2 -0
- package/bundle/{chunk-g0mbbysk.js → chunk-cfgvm15x.js} +1 -1
- package/bundle/{chunk-jntqzhxr.js → chunk-chpr8ekb.js} +1 -1
- package/bundle/chunk-cjww2jmv.js +3 -0
- package/bundle/{chunk-hbtd620x.js → chunk-ck2gfaba.js} +1 -1
- package/bundle/chunk-cmbh77cs.js +7 -0
- package/bundle/{chunk-eqcd9k9p.js → chunk-cnmq5xtq.js} +218 -218
- package/bundle/{chunk-azx0zxnx.js → chunk-cphrgyp6.js} +1 -1
- package/bundle/chunk-csz0dgyp.js +2 -0
- package/bundle/{chunk-fhdpp77n.js → chunk-ctaze2hn.js} +1 -1
- package/bundle/{chunk-n5sh2790.js → chunk-cxnfy6qk.js} +1 -1
- package/bundle/{chunk-yn05n0az.js → chunk-d07p6fpk.js} +2 -2
- package/bundle/{chunk-kw09hbrb.js → chunk-d65qs4d0.js} +1 -1
- package/bundle/{chunk-xk1nh1ay.js → chunk-d68fzyw7.js} +2 -2
- package/bundle/{chunk-6hdjkvr1.js → chunk-d6ry9418.js} +2 -2
- package/bundle/{chunk-zbq60sw6.js → chunk-dactgryw.js} +1 -1
- package/bundle/chunk-dafmkrhn.js +2 -0
- package/bundle/{chunk-qzcfjz9g.js → chunk-db405hjg.js} +1 -1
- package/bundle/chunk-dgprdym0.js +2 -0
- package/bundle/{chunk-v7deh7aj.js → chunk-dnwefyhv.js} +1 -1
- package/bundle/{chunk-scqxmv8k.js → chunk-drvkj3xg.js} +1 -1
- package/bundle/chunk-dryzt12j.js +2 -0
- package/bundle/chunk-dsamees2.js +2 -0
- package/bundle/{chunk-bv8pf0m1.js → chunk-dxpj0cxh.js} +2 -2
- package/bundle/{chunk-nv2r4cns.js → chunk-dynv30gm.js} +1 -1
- package/bundle/chunk-dyqpxx3b.js +2 -0
- package/bundle/{chunk-pg8dz1rq.js → chunk-e01wnqvc.js} +1 -1
- package/bundle/{chunk-z160s5p5.js → chunk-e10py6yr.js} +1 -1
- package/bundle/{chunk-xk7je9y8.js → chunk-e7ny0b3x.js} +1 -1
- package/bundle/{chunk-2w20mhch.js → chunk-eh7e49k4.js} +1 -1
- package/bundle/{chunk-6jewfaqa.js → chunk-ehhas0ew.js} +2 -2
- package/bundle/{chunk-6scqd8fh.js → chunk-ejrhvy38.js} +1 -1
- package/bundle/{chunk-sv48x9h8.js → chunk-enpzvmtc.js} +1 -1
- package/bundle/chunk-excnptfy.js +2 -0
- package/bundle/chunk-ez8vkgfz.js +2 -0
- package/bundle/chunk-f2btnww9.js +2 -0
- package/bundle/chunk-f8eter69.js +5 -0
- package/bundle/{chunk-7926bzm7.js → chunk-fgg9txzb.js} +1 -1
- package/bundle/chunk-fjq3a347.js +2 -0
- package/bundle/{chunk-6528bthc.js → chunk-fn9h4ync.js} +1 -1
- package/bundle/{chunk-m2ny1en7.js → chunk-fq0x3esz.js} +5 -5
- package/bundle/{chunk-h8chkene.js → chunk-fvzwbjh8.js} +1 -1
- package/bundle/chunk-fxdtq2ed.js +2 -0
- package/bundle/{chunk-sbx9z70j.js → chunk-fyqjm5fv.js} +1 -1
- package/bundle/{chunk-t35n89t9.js → chunk-g10d6x57.js} +1 -1
- package/bundle/{chunk-1d9f53sk.js → chunk-g5rabwre.js} +2 -2
- package/bundle/{chunk-4fk4se02.js → chunk-g7ccdh7r.js} +1 -1
- package/bundle/{chunk-0yqbyres.js → chunk-g9cjsfvg.js} +1 -1
- package/bundle/{chunk-yvqbewmc.js → chunk-gagtmjmp.js} +2 -2
- package/bundle/{chunk-4fspp5fg.js → chunk-gb00fh4z.js} +3 -3
- package/bundle/{chunk-44jpsp97.js → chunk-gbpvs0fx.js} +1 -1
- package/bundle/{chunk-v9bmpndq.js → chunk-gbrnn2dk.js} +1 -1
- package/bundle/chunk-gcw4rn10.js +2 -0
- package/bundle/{chunk-j8efst22.js → chunk-gj0wt0cy.js} +1 -1
- package/bundle/{chunk-rptvpa1v.js → chunk-gsar6xda.js} +1 -1
- package/bundle/{chunk-nxn4arcf.js → chunk-gt31468k.js} +1 -1
- package/bundle/{chunk-c19t7e8s.js → chunk-gwp17r03.js} +1 -1
- package/bundle/chunk-gwzw92jt.js +2 -0
- package/bundle/{chunk-z5yrvg40.js → chunk-h2afsbm1.js} +1 -1
- package/bundle/{chunk-d86ma6zk.js → chunk-h4j5xzc8.js} +1 -1
- package/bundle/{chunk-hevb7k95.js → chunk-hbbsbyyq.js} +1 -1
- package/bundle/chunk-hnctaq8s.js +3 -0
- package/bundle/{chunk-g3ch14a1.js → chunk-hnzegjgv.js} +1 -1
- package/bundle/chunk-hp7tssgv.js +2 -0
- package/bundle/chunk-ht0hbdmx.js +2 -0
- package/bundle/{chunk-ekndhwnn.js → chunk-ht5w06x7.js} +2 -2
- package/bundle/{chunk-a8p9aggx.js → chunk-htz93dsd.js} +1 -1
- package/bundle/{chunk-svrxk3vf.js → chunk-jbx3s7nw.js} +2 -2
- package/bundle/chunk-jcjbr3q7.js +2 -0
- package/bundle/{chunk-yyqrbv2f.js → chunk-jef04wyf.js} +1 -1
- package/bundle/{chunk-b1ntb3dh.js → chunk-jh0bw59r.js} +1 -1
- package/bundle/{chunk-b73s2h43.js → chunk-jrqb0jwy.js} +1 -1
- package/bundle/{chunk-3rt2k5sc.js → chunk-js1n8tgv.js} +1 -1
- package/bundle/chunk-jxswwvr3.js +2 -0
- package/bundle/{chunk-0626rvy2.js → chunk-kf167jw7.js} +1 -1
- package/bundle/{chunk-byc7ev8p.js → chunk-kfxv5rfg.js} +1 -1
- package/bundle/{chunk-d0qqgxs4.js → chunk-kj20f048.js} +1 -1
- package/bundle/{chunk-cd867geb.js → chunk-kq6b222y.js} +1 -1
- package/bundle/{chunk-6hmj972a.js → chunk-ktzq4ha1.js} +1 -1
- package/bundle/chunk-m5m448mg.js +3 -0
- package/bundle/{chunk-dfja6dj6.js → chunk-mcg24gkb.js} +1 -1
- package/bundle/chunk-mh0j6dzy.js +2 -0
- package/bundle/{chunk-p7h2qd7z.js → chunk-mk1bfzg5.js} +1 -1
- package/bundle/chunk-mxzceza9.js +2 -0
- package/bundle/{chunk-4vemws1t.js → chunk-mzs2pjyc.js} +2 -2
- package/bundle/chunk-n0dy98h2.js +2 -0
- package/bundle/{chunk-jwtev7b7.js → chunk-n9xns8by.js} +2 -2
- package/bundle/chunk-ngm6pqyt.js +2 -0
- package/bundle/chunk-ngtavamt.js +2 -0
- package/bundle/chunk-nkhc32s3.js +2 -0
- package/bundle/chunk-npse2xrd.js +2 -0
- package/bundle/{chunk-3vmh2ge6.js → chunk-nsk8dkwp.js} +1 -1
- package/bundle/{chunk-1fz0383p.js → chunk-nv3eyyaj.js} +1 -1
- package/bundle/{chunk-az9hsk6z.js → chunk-p18axz0m.js} +1 -1
- package/bundle/{chunk-2p9py4rw.js → chunk-p62gb4wj.js} +1 -1
- package/bundle/chunk-p6e4vqy7.js +2 -0
- package/bundle/{chunk-ktqrbbkh.js → chunk-p9qfbr02.js} +1 -1
- package/bundle/chunk-pctt1qv8.js +14 -0
- package/bundle/{chunk-gd45tjbd.js → chunk-pe29yy6s.js} +1 -1
- package/bundle/chunk-pf9g671w.js +2 -0
- package/bundle/chunk-phv9kdq6.js +3 -0
- package/bundle/{chunk-k095hd3c.js → chunk-pp2eqkse.js} +1 -1
- package/bundle/{chunk-gjvymdhp.js → chunk-pp6vhqrr.js} +1 -1
- package/bundle/chunk-ppjnqexm.js +2 -0
- package/bundle/chunk-pqkjhn8h.js +2 -0
- package/bundle/{chunk-yj73ehjd.js → chunk-pxvk3syj.js} +1 -1
- package/bundle/{chunk-tsb9g1nz.js → chunk-qbc36nbb.js} +2 -2
- package/bundle/{chunk-xhncwg5v.js → chunk-qc8rsn4v.js} +1 -1
- package/bundle/chunk-qd8w2gkd.js +2 -0
- package/bundle/{chunk-k16s2dnx.js → chunk-qrsveve6.js} +1 -1
- package/bundle/chunk-qvnb3j71.js +3 -0
- package/bundle/{chunk-q5363rr9.js → chunk-r4ndwym0.js} +1 -1
- package/bundle/chunk-r78czx4d.js +8 -0
- package/bundle/{chunk-cjfgs1x8.js → chunk-rbk8seme.js} +1 -1
- package/bundle/{chunk-n34y5gp6.js → chunk-redjxn13.js} +2 -2
- package/bundle/chunk-rf12t4n5.js +2 -0
- package/bundle/{chunk-fj7kd4gc.js → chunk-rg0mrprz.js} +1 -1
- package/bundle/{chunk-2xxefrps.js → chunk-rjd8gbs5.js} +1 -1
- package/bundle/chunk-rpgne7xh.js +2 -0
- package/bundle/chunk-rvgj1vky.js +2 -0
- package/bundle/{chunk-bx6kyvg7.js → chunk-rvkrgkeq.js} +1 -1
- package/bundle/{chunk-2hw0jzv4.js → chunk-rzhdkkpz.js} +1 -1
- package/bundle/{chunk-45jqjyk9.js → chunk-s9ntkjz3.js} +1 -1
- package/bundle/{chunk-81h5f8ev.js → chunk-skqbaadf.js} +1 -1
- package/bundle/chunk-ss2jvqrg.js +2 -0
- package/bundle/{chunk-61yatzp8.js → chunk-ss2ms1r3.js} +1 -1
- package/bundle/chunk-ssajqv72.js +2 -0
- package/bundle/{chunk-xn5v8wgh.js → chunk-t56r99hp.js} +1 -1
- package/bundle/{chunk-s1sepxdp.js → chunk-t8m74g39.js} +1 -1
- package/bundle/{chunk-s6bar2f9.js → chunk-t9mz17gb.js} +2 -2
- package/bundle/chunk-takew94z.js +9 -0
- package/bundle/{chunk-yp3dj4wh.js → chunk-tq0239xp.js} +1 -1
- package/bundle/{chunk-20d0cd1j.js → chunk-tqj69nh6.js} +2 -2
- package/bundle/{chunk-hpfqnjfz.js → chunk-tt30dybd.js} +1 -1
- package/bundle/{chunk-thk93j3e.js → chunk-tvdmnee6.js} +1 -1
- package/bundle/chunk-tvwwq4b3.js +2 -0
- package/bundle/{chunk-18vygvnc.js → chunk-v1xjc3s8.js} +1 -1
- package/bundle/chunk-v2n26eg4.js +2 -0
- package/bundle/chunk-vb286b31.js +2 -0
- package/bundle/chunk-vbeb74ny.js +11 -0
- package/bundle/chunk-vcw00k0n.js +3 -0
- package/bundle/{chunk-cfxjwfn4.js → chunk-vhe0tth1.js} +1 -1
- package/bundle/{chunk-z4nay2ef.js → chunk-vvxmwyrw.js} +1 -1
- package/bundle/{chunk-js9wdh67.js → chunk-vxyy2dp3.js} +2 -2
- package/bundle/{chunk-qk9vccja.js → chunk-vywnd5sf.js} +1 -1
- package/bundle/{chunk-gd5stg49.js → chunk-w18xs2h5.js} +1 -1
- package/bundle/{chunk-5n4hpc4f.js → chunk-wfb608qf.js} +3 -3
- package/bundle/chunk-x24y7qyd.js +2 -0
- package/bundle/{chunk-jkm54mha.js → chunk-x3y2xzhn.js} +1 -1
- package/bundle/{chunk-n3t52cz2.js → chunk-x4sp99g6.js} +1 -1
- package/bundle/{chunk-ef2b07fm.js → chunk-x562b0xk.js} +1 -1
- package/bundle/{chunk-zasd8cz8.js → chunk-x7k5yeey.js} +1 -1
- package/bundle/{chunk-v00cptj6.js → chunk-x9rbv6p6.js} +1 -1
- package/bundle/{chunk-m6wceqay.js → chunk-xcmgkc57.js} +1 -1
- package/bundle/{chunk-pycjksh4.js → chunk-xm7wascx.js} +1 -1
- package/bundle/{chunk-yaj9ywvz.js → chunk-xthkjax9.js} +1 -1
- package/bundle/{chunk-ps6jk326.js → chunk-xvwvd4kq.js} +2 -2
- package/bundle/{chunk-31wxbws4.js → chunk-xzrb857v.js} +1 -1
- package/bundle/chunk-y2d0w09y.js +2 -0
- package/bundle/{chunk-cev2qj7w.js → chunk-y3b4k38p.js} +1 -1
- package/bundle/{chunk-b9nwaaqs.js → chunk-y9q0hb7b.js} +2 -2
- package/bundle/chunk-yb79f79m.js +2 -0
- package/bundle/{chunk-8d2ddmf0.js → chunk-yek0sk2q.js} +1 -1
- package/bundle/{chunk-9atkgkaq.js → chunk-yhbcbjfk.js} +1 -1
- package/bundle/{chunk-k20nrwbg.js → chunk-yjf3kyej.js} +1 -1
- package/bundle/chunk-yjnyzpmt.js +2 -0
- package/bundle/{chunk-0a0vat1h.js → chunk-yp5bypsp.js} +2 -2
- package/bundle/{chunk-89f8v2y8.js → chunk-yp8wyzzm.js} +1 -1
- package/bundle/chunk-yqbcnsa1.js +2 -0
- package/bundle/{chunk-qtsmgjk7.js → chunk-yv0xrnn9.js} +1 -1
- package/bundle/chunk-z3mra3nm.js +2 -0
- package/bundle/{chunk-7m8fdp5p.js → chunk-z6pwkwdr.js} +1 -1
- package/bundle/{chunk-t299e2aw.js → chunk-zs8kqdsf.js} +2 -2
- package/bundle/{chunk-6saj1dhz.js → chunk-zscer8rc.js} +1 -1
- package/bundle/{chunk-4mrz9b6d.js → chunk-zw815d68.js} +2 -2
- package/bundle/chunk-zy9w1vkc.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-07c1mvy1.js +0 -2
- package/bundle/chunk-0p7qcm51.js +0 -2
- package/bundle/chunk-0pmb7zzh.js +0 -2
- package/bundle/chunk-0xm85ayc.js +0 -3
- package/bundle/chunk-11d987sj.js +0 -11
- package/bundle/chunk-19sa03c1.js +0 -3
- package/bundle/chunk-1s9ctg0d.js +0 -2
- package/bundle/chunk-2f9fn9xr.js +0 -2
- package/bundle/chunk-2fhcvfyg.js +0 -2
- package/bundle/chunk-2ztdqtnk.js +0 -3
- package/bundle/chunk-3mfj0x4p.js +0 -2
- package/bundle/chunk-3shnje9k.js +0 -2
- package/bundle/chunk-3tz1qhpt.js +0 -2
- package/bundle/chunk-4dtbdycg.js +0 -2
- package/bundle/chunk-4kpvceap.js +0 -2
- package/bundle/chunk-4pz8av2y.js +0 -2
- package/bundle/chunk-4r4xh8a6.js +0 -2
- package/bundle/chunk-5hpq59t1.js +0 -2
- package/bundle/chunk-5s90ehww.js +0 -2
- package/bundle/chunk-5z7mjwwa.js +0 -14
- package/bundle/chunk-63kcg127.js +0 -2
- package/bundle/chunk-6fejrpht.js +0 -2
- package/bundle/chunk-6zzdw7q1.js +0 -2
- package/bundle/chunk-71pmrpkc.js +0 -2
- package/bundle/chunk-78m8rayq.js +0 -2
- package/bundle/chunk-7j6p5j2g.js +0 -2
- package/bundle/chunk-7tjd6ba1.js +0 -2
- package/bundle/chunk-8d8efdry.js +0 -2
- package/bundle/chunk-8jzjvmaz.js +0 -2
- package/bundle/chunk-93jxndr8.js +0 -2
- package/bundle/chunk-94qmhz2p.js +0 -3
- package/bundle/chunk-95qs7wnz.js +0 -2
- package/bundle/chunk-97h0jx8y.js +0 -5
- package/bundle/chunk-99ve54r6.js +0 -2
- package/bundle/chunk-9ksaqyb2.js +0 -2
- package/bundle/chunk-9p7t748e.js +0 -2
- package/bundle/chunk-a69jgepp.js +0 -2
- package/bundle/chunk-a94s0jks.js +0 -2
- package/bundle/chunk-ar310tc3.js +0 -2
- package/bundle/chunk-at03h9eq.js +0 -2
- package/bundle/chunk-ay9p70xx.js +0 -2
- package/bundle/chunk-b6dsv601.js +0 -3
- package/bundle/chunk-bajtytm5.js +0 -2
- package/bundle/chunk-bh8v3mfg.js +0 -2
- package/bundle/chunk-bp8sxnrm.js +0 -2
- package/bundle/chunk-bw5e8thn.js +0 -2
- package/bundle/chunk-c8ajbhv3.js +0 -2
- package/bundle/chunk-c8n72r2k.js +0 -8
- package/bundle/chunk-ccddzk10.js +0 -2
- package/bundle/chunk-ch8cx9jn.js +0 -2
- package/bundle/chunk-cm4jtnkg.js +0 -2
- package/bundle/chunk-cq7j5tv5.js +0 -2
- package/bundle/chunk-cttqh20d.js +0 -2
- package/bundle/chunk-cvvfa1jf.js +0 -2
- package/bundle/chunk-d7t0bcvk.js +0 -800
- package/bundle/chunk-dd3m74rc.js +0 -3
- package/bundle/chunk-e3qtndrt.js +0 -2
- package/bundle/chunk-e8cac405.js +0 -2
- package/bundle/chunk-ez92ah9y.js +0 -2
- package/bundle/chunk-fazvedgy.js +0 -2
- package/bundle/chunk-gf5pwww1.js +0 -2
- package/bundle/chunk-gtzcm5sb.js +0 -2
- package/bundle/chunk-j0znryc6.js +0 -9
- package/bundle/chunk-kzrw6h8t.js +0 -2
- package/bundle/chunk-ma0m6kpj.js +0 -2
- package/bundle/chunk-mjrvj2cg.js +0 -2
- package/bundle/chunk-mpebdv59.js +0 -2
- package/bundle/chunk-n20v44zr.js +0 -2
- package/bundle/chunk-nfzmvy30.js +0 -2
- package/bundle/chunk-nksathh4.js +0 -2
- package/bundle/chunk-p5360c2q.js +0 -2
- package/bundle/chunk-q14890p6.js +0 -2
- package/bundle/chunk-q4n02cwv.js +0 -2
- package/bundle/chunk-q7s17j1b.js +0 -2
- package/bundle/chunk-qm07wesh.js +0 -2
- package/bundle/chunk-qrrg9v3d.js +0 -2
- package/bundle/chunk-rdqgss38.js +0 -2
- package/bundle/chunk-rf524gez.js +0 -3
- package/bundle/chunk-rqgcz2zr.js +0 -2
- package/bundle/chunk-rs1698xs.js +0 -3
- package/bundle/chunk-rzc528ym.js +0 -2
- package/bundle/chunk-s2za1n7h.js +0 -8
- package/bundle/chunk-sbv96mj0.js +0 -3
- package/bundle/chunk-t3q7qakr.js +0 -2
- package/bundle/chunk-th78zcds.js +0 -2
- package/bundle/chunk-tj00kzk4.js +0 -2
- package/bundle/chunk-tv26mwx5.js +0 -2
- package/bundle/chunk-v69n6mef.js +0 -2
- package/bundle/chunk-vegwb3t0.js +0 -2
- package/bundle/chunk-w9seyn69.js +0 -2
- package/bundle/chunk-wanf4se3.js +0 -2
- package/bundle/chunk-wdhzmk1b.js +0 -2
- package/bundle/chunk-wnwesaap.js +0 -2
- package/bundle/chunk-wxqtda70.js +0 -2
- package/bundle/chunk-wzb6s9rk.js +0 -2
- package/bundle/chunk-x0dg9rg6.js +0 -2
- package/bundle/chunk-xmnzrzbs.js +0 -2
- package/bundle/chunk-xzf62kc6.js +0 -2
- package/bundle/chunk-yk8kk25c.js +0 -3
- package/bundle/chunk-yned6vmd.js +0 -3
- package/bundle/chunk-yra49yga.js +0 -2
- package/bundle/chunk-ytye0p7f.js +0 -2
- package/bundle/chunk-yv2mxxbq.js +0 -2
- package/bundle/chunk-z2fqqer0.js +0 -2
- package/bundle/chunk-z3qanc8m.js +0 -2
- package/bundle/chunk-z44m19vm.js +0 -2
- package/bundle/chunk-zcagdtab.js +0 -2
- package/bundle/chunk-zervk6c5.js +0 -2
- package/bundle/chunk-zqjp7jdd.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$o as GV,Bp as qQ,Dp as VQ,Ep as WQ,Fp as xQ,Ip as EV,Jp as a,Lp as UV,Mp as BQ,Np as $Q,Op as AV,Rp as xV,So as l,To as zV,Xo as UQ,Zo as JQ,ep as wQ,gp as QQ,lp as JV,np as FQ,pp as KV,qp as SV,sp as PV,tp as D,wp as F,xp as t,zp as BV}from"./chunk-bzrsnv2k.js";import{Up as ZV,Yp as $V,Zp as AQ,cq as jV,eq as YQ}from"./chunk-d0qqgxs4.js";import"./chunk-cqtkxwd8.js";import"./chunk-v00cptj6.js";import{Tt as Q}from"./chunk-j2zay4da.js";import"./chunk-4vemws1t.js";import"./chunk-yjj4cvqg.js";var HQ=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),zQ=UV({errorSchema:HQ,errorToMessage:(V)=>V.error.message});function LV(V){let Y=V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),J=V.startsWith("gpt-4")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-nano")&&!V.startsWith("gpt-5-chat")&&!V.startsWith("gpt-5.4-nano")||V.startsWith("o3")||V.startsWith("o4-mini"),G=V.startsWith("o1")||V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),j=V.startsWith("gpt-5.1")||V.startsWith("gpt-5.2")||V.startsWith("gpt-5.3")||V.startsWith("gpt-5.4");return{supportsFlexProcessing:Y,supportsPriorityProcessing:J,isReasoningModel:G,systemMessageMode:G?"developer":"system",supportsNonReasoningParameters:j}}function cQ(V){var Y,J,G,j,E,P;if(V==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 $=(Y=V.prompt_tokens)!=null?Y:0,A=(J=V.completion_tokens)!=null?J:0,O=(j=(G=V.prompt_tokens_details)==null?void 0:G.cached_tokens)!=null?j:0,K=(P=(E=V.completion_tokens_details)==null?void 0:E.reasoning_tokens)!=null?P:0;return{inputTokens:{total:$,noCache:$-O,cacheRead:O,cacheWrite:void 0},outputTokens:{total:A,text:A-K,reasoning:K},raw:V}}function HV(V){return JSON.stringify(V===void 0?{}:V)}function MV({prompt:V,systemMessageMode:Y="system"}){var J;let G=[],j=[];for(let{role:E,content:P}of V)switch(E){case"system":{switch(Y){case"system":{G.push({role:"system",content:P});break}case"developer":{G.push({role:"developer",content:P});break}case"remove":{j.push({type:"other",message:"system messages are removed for this model"});break}default:throw Error(`Unsupported system message mode: ${Y}`)}break}case"user":{if(P.length===1&&P[0].type==="text"){G.push({role:"user",content:P[0].text});break}G.push({role:"user",content:P.map(($,A)=>{var O,K,Z;switch($.type){case"text":return{type:"text",text:$.text};case"file":if($.mediaType.startsWith("image/")){let q=$.mediaType==="image/*"?"image/jpeg":$.mediaType;return{type:"image_url",image_url:{url:$.data instanceof URL?$.data.toString():`data:${q};base64,${JQ($.data)}`,detail:(K=(O=$.providerOptions)==null?void 0:O.openai)==null?void 0:K.imageDetail}}}else if($.mediaType.startsWith("audio/")){if($.data instanceof URL)throw new YQ({functionality:"audio file parts with URLs"});switch($.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:JQ($.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:JQ($.data),format:"mp3"}};default:throw new YQ({functionality:`audio content parts with media type ${$.mediaType}`})}}else if($.mediaType==="application/pdf"){if($.data instanceof URL)throw new YQ({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof $.data==="string"&&$.data.startsWith("file-")?{file_id:$.data}:{filename:(Z=$.filename)!=null?Z:`part-${A}.pdf`,file_data:`data:application/pdf;base64,${JQ($.data)}`}}}else throw new YQ({functionality:`file part media type ${$.mediaType}`})}})});break}case"assistant":{let $="",A=[];for(let O of P)switch(O.type){case"text":{$+=O.text;break}case"tool-call":{A.push({id:O.toolCallId,type:"function",function:{name:O.toolName,arguments:HV(O.input)}});break}}G.push({role:"assistant",content:$,tool_calls:A.length>0?A:void 0});break}case"tool":{for(let $ of P){if($.type==="tool-approval-response")continue;let A=$.output,O;switch(A.type){case"text":case"error-text":O=A.value;break;case"execution-denied":O=(J=A.reason)!=null?J:"Tool execution denied.";break;case"content":case"json":case"error-json":O=JSON.stringify(A.value);break}G.push({role:"tool",tool_call_id:$.toolCallId,content:O})}break}default:throw Error(`Unsupported role: ${E}`)}return{messages:G,warnings:j}}function LQ({id:V,model:Y,created:J}){return{id:V!=null?V:void 0,modelId:Y!=null?Y:void 0,timestamp:J?new Date(J*1000):void 0}}function vQ(V){switch(V){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var bV=D(()=>F(Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),type:Q.literal("function"),function:Q.object({name:Q.string(),arguments:Q.string()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}),index:Q.number(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}))),yV=D(()=>F(Q.union([Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number(),id:Q.string().nullish(),type:Q.literal("function").nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}).nullish(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish(),index:Q.number()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}),HQ]))),RV=D(()=>F(Q.object({logitBias:Q.record(Q.coerce.number(),Q.number()).optional(),logprobs:Q.union([Q.boolean(),Q.number()]).optional(),parallelToolCalls:Q.boolean().optional(),user:Q.string().optional(),reasoningEffort:Q.enum(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Q.number().optional(),store:Q.boolean().optional(),metadata:Q.record(Q.string().max(64),Q.string().max(512)).optional(),prediction:Q.record(Q.string(),Q.any()).optional(),serviceTier:Q.enum(["auto","flex","priority","default"]).optional(),strictJsonSchema:Q.boolean().optional(),textVerbosity:Q.enum(["low","medium","high"]).optional(),promptCacheKey:Q.string().optional(),promptCacheRetention:Q.enum(["in_memory","24h"]).optional(),safetyIdentifier:Q.string().optional(),systemMessageMode:Q.enum(["system","developer","remove"]).optional(),forceReasoning:Q.boolean().optional()})));function kV({tools:V,toolChoice:Y}){V=(V==null?void 0:V.length)?V:void 0;let J=[];if(V==null)return{tools:void 0,toolChoice:void 0,toolWarnings:J};let G=[];for(let E of V)switch(E.type){case"function":G.push({type:"function",function:{name:E.name,description:E.description,parameters:E.inputSchema,...E.strict!=null?{strict:E.strict}:{}}});break;default:J.push({type:"unsupported",feature:`tool type: ${E.type}`});break}if(Y==null)return{tools:G,toolChoice:void 0,toolWarnings:J};let j=Y.type;switch(j){case"auto":case"none":case"required":return{tools:G,toolChoice:j,toolWarnings:J};case"tool":return{tools:G,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:J};default:throw new YQ({functionality:`tool choice type: ${j}`})}}var gV=class{constructor(V,Y){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=V,this.config=Y}get provider(){return this.config.provider}async getArgs({prompt:V,maxOutputTokens:Y,temperature:J,topP:G,topK:j,frequencyPenalty:E,presencePenalty:P,stopSequences:$,responseFormat:A,seed:O,tools:K,toolChoice:Z,providerOptions:q}){var x,f,y,w,M;let g=[],b=(x=await VQ({provider:"openai",providerOptions:q,schema:RV}))!=null?x:{},n=LV(this.modelId),i=(f=b.forceReasoning)!=null?f:n.isReasoningModel;if(j!=null)g.push({type:"unsupported",feature:"topK"});let{messages:p,warnings:m}=MV({prompt:V,systemMessageMode:(y=b.systemMessageMode)!=null?y:i?"developer":n.systemMessageMode});g.push(...m);let s=(w=b.strictJsonSchema)!=null?w:!0,X={model:this.modelId,logit_bias:b.logitBias,logprobs:b.logprobs===!0||typeof b.logprobs==="number"?!0:void 0,top_logprobs:typeof b.logprobs==="number"?b.logprobs:typeof b.logprobs==="boolean"?b.logprobs?0:void 0:void 0,user:b.user,parallel_tool_calls:b.parallelToolCalls,max_tokens:Y,temperature:J,top_p:G,frequency_penalty:E,presence_penalty:P,response_format:(A==null?void 0:A.type)==="json"?A.schema!=null?{type:"json_schema",json_schema:{schema:A.schema,strict:s,name:(M=A.name)!=null?M:"response",description:A.description}}:{type:"json_object"}:void 0,stop:$,seed:O,verbosity:b.textVerbosity,max_completion_tokens:b.maxCompletionTokens,store:b.store,metadata:b.metadata,prediction:b.prediction,reasoning_effort:b.reasoningEffort,service_tier:b.serviceTier,prompt_cache_key:b.promptCacheKey,prompt_cache_retention:b.promptCacheRetention,safety_identifier:b.safetyIdentifier,messages:p};if(i){if(b.reasoningEffort!=="none"||!n.supportsNonReasoningParameters){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"});if(X.top_p!=null)X.top_p=void 0,g.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"});if(X.logprobs!=null)X.logprobs=void 0,g.push({type:"other",message:"logprobs is not supported for reasoning models"})}if(X.frequency_penalty!=null)X.frequency_penalty=void 0,g.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"});if(X.presence_penalty!=null)X.presence_penalty=void 0,g.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"});if(X.logit_bias!=null)X.logit_bias=void 0,g.push({type:"other",message:"logitBias is not supported for reasoning models"});if(X.top_logprobs!=null)X.top_logprobs=void 0,g.push({type:"other",message:"topLogprobs is not supported for reasoning models"});if(X.max_tokens!=null){if(X.max_completion_tokens==null)X.max_completion_tokens=X.max_tokens;X.max_tokens=void 0}}else if(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview")){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})}if(b.serviceTier==="flex"&&!n.supportsFlexProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),X.service_tier=void 0;if(b.serviceTier==="priority"&&!n.supportsPriorityProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),X.service_tier=void 0;let{tools:u,toolChoice:I,toolWarnings:H}=kV({tools:K,toolChoice:Z});return{args:{...X,tools:u,tool_choice:I},warnings:[...g,...H]}}async doGenerate(V){var Y,J,G,j,E,P,$;let{args:A,warnings:O}=await this.getArgs(V),{responseHeaders:K,value:Z,rawValue:q}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:A,failedResponseHandler:zQ,successfulResponseHandler:$Q(bV),abortSignal:V.abortSignal,fetch:this.config.fetch}),x=Z.choices[0],f=[],y=x.message.content;if(y!=null&&y.length>0)f.push({type:"text",text:y});for(let b of(Y=x.message.tool_calls)!=null?Y:[])f.push({type:"tool-call",toolCallId:(J=b.id)!=null?J:QQ(),toolName:b.function.name,input:b.function.arguments});for(let b of(G=x.message.annotations)!=null?G:[])f.push({type:"source",sourceType:"url",id:QQ(),url:b.url_citation.url,title:b.url_citation.title});let w=(j=Z.usage)==null?void 0:j.completion_tokens_details,M=(E=Z.usage)==null?void 0:E.prompt_tokens_details,g={openai:{}};if((w==null?void 0:w.accepted_prediction_tokens)!=null)g.openai.acceptedPredictionTokens=w==null?void 0:w.accepted_prediction_tokens;if((w==null?void 0:w.rejected_prediction_tokens)!=null)g.openai.rejectedPredictionTokens=w==null?void 0:w.rejected_prediction_tokens;if(((P=x.logprobs)==null?void 0:P.content)!=null)g.openai.logprobs=x.logprobs.content;return{content:f,finishReason:{unified:vQ(x.finish_reason),raw:($=x.finish_reason)!=null?$:void 0},usage:cQ(Z.usage),request:{body:A},response:{...LQ(Z),headers:K,body:q},warnings:O,providerMetadata:g}}async doStream(V){let{args:Y,warnings:J}=await this.getArgs(V),G={...Y,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:j,value:E}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:G,failedResponseHandler:zQ,successfulResponseHandler:BQ(yV),abortSignal:V.abortSignal,fetch:this.config.fetch}),P=[],$={unified:"other",raw:void 0},A=void 0,O=!1,K=!1,Z={openai:{}};return{stream:E.pipeThrough(new TransformStream({start(q){q.enqueue({type:"stream-start",warnings:J})},transform(q,x){var f,y,w,M,g,b,n,i,p,m,s,X,u,I,H,d,e;if(V.includeRawChunks)x.enqueue({type:"raw",rawValue:q.rawValue});if(!q.success){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:q.error});return}let C=q.value;if("error"in C){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:C.error});return}if(!O){let z=LQ(C);if(Object.values(z).some(Boolean))O=!0,x.enqueue({type:"response-metadata",...LQ(C)})}if(C.usage!=null){if(A=C.usage,((f=C.usage.completion_tokens_details)==null?void 0:f.accepted_prediction_tokens)!=null)Z.openai.acceptedPredictionTokens=(y=C.usage.completion_tokens_details)==null?void 0:y.accepted_prediction_tokens;if(((w=C.usage.completion_tokens_details)==null?void 0:w.rejected_prediction_tokens)!=null)Z.openai.rejectedPredictionTokens=(M=C.usage.completion_tokens_details)==null?void 0:M.rejected_prediction_tokens}let k=C.choices[0];if((k==null?void 0:k.finish_reason)!=null)$={unified:vQ(k.finish_reason),raw:k.finish_reason};if(((g=k==null?void 0:k.logprobs)==null?void 0:g.content)!=null)Z.openai.logprobs=k.logprobs.content;if((k==null?void 0:k.delta)==null)return;let L=k.delta;if(L.content!=null){if(!K)x.enqueue({type:"text-start",id:"0"}),K=!0;x.enqueue({type:"text-delta",id:"0",delta:L.content})}if(L.tool_calls!=null)for(let z of L.tool_calls){let T=z.index;if(P[T]==null){if(z.type!=null&&z.type!=="function")throw new AQ({data:z,message:"Expected 'function' type."});if(z.id==null)throw new AQ({data:z,message:"Expected 'id' to be a string."});if(((b=z.function)==null?void 0:b.name)==null)throw new AQ({data:z,message:"Expected 'function.name' to be a string."});x.enqueue({type:"tool-input-start",id:z.id,toolName:z.function.name}),P[T]={id:z.id,type:"function",function:{name:z.function.name,arguments:(n=z.function.arguments)!=null?n:""},hasFinished:!1};let B=P[T];if(((i=B.function)==null?void 0:i.name)!=null&&((p=B.function)==null?void 0:p.arguments)!=null){if(B.function.arguments.length>0)x.enqueue({type:"tool-input-delta",id:B.id,delta:B.function.arguments});if(qQ(B.function.arguments))x.enqueue({type:"tool-input-end",id:B.id}),x.enqueue({type:"tool-call",toolCallId:(m=B.id)!=null?m:QQ(),toolName:B.function.name,input:B.function.arguments}),B.hasFinished=!0}continue}let N=P[T];if(N.hasFinished)continue;if(((s=z.function)==null?void 0:s.arguments)!=null)N.function.arguments+=(u=(X=z.function)==null?void 0:X.arguments)!=null?u:"";if(x.enqueue({type:"tool-input-delta",id:N.id,delta:(I=z.function.arguments)!=null?I:""}),((H=N.function)==null?void 0:H.name)!=null&&((d=N.function)==null?void 0:d.arguments)!=null&&qQ(N.function.arguments))x.enqueue({type:"tool-input-end",id:N.id}),x.enqueue({type:"tool-call",toolCallId:(e=N.id)!=null?e:QQ(),toolName:N.function.name,input:N.function.arguments}),N.hasFinished=!0}if(L.annotations!=null)for(let z of L.annotations)x.enqueue({type:"source",sourceType:"url",id:QQ(),url:z.url_citation.url,title:z.url_citation.title})},flush(q){if(K)q.enqueue({type:"text-end",id:"0"});q.enqueue({type:"finish",finishReason:$,usage:cQ(A),...Z!=null?{providerMetadata:Z}:{}})}})),request:{body:G},response:{headers:j}}}};function nQ(V){var Y,J,G,j;if(V==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 E=(Y=V.prompt_tokens)!=null?Y:0,P=(J=V.completion_tokens)!=null?J:0;return{inputTokens:{total:(G=V.prompt_tokens)!=null?G:void 0,noCache:E,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:(j=V.completion_tokens)!=null?j:void 0,text:P,reasoning:void 0},raw:V}}function CV({prompt:V,user:Y="user",assistant:J="assistant"}){let G="";if(V[0].role==="system")G+=`${V[0].content}
|
|
2
|
+
import{Ap as qQ,Cp as VQ,Dp as WQ,Ep as xQ,Hp as EV,Ip as a,Kp as UV,Lp as BQ,Mp as $Q,Np as AV,Qp as xV,Ro as l,So as zV,Wo as UQ,Yo as JQ,_o as GV,dp as wQ,fp as QQ,kp as JV,mp as FQ,op as KV,pp as SV,rp as PV,sp as D,vp as F,wp as t,yp as BV}from"./chunk-2maqde7w.js";import{Tp as ZV,Xp as $V,Yp as AQ,bq as jV,dq as YQ}from"./chunk-kj20f048.js";import"./chunk-cqtkxwd8.js";import"./chunk-x9rbv6p6.js";import{St as Q}from"./chunk-c11d28qn.js";import"./chunk-mzs2pjyc.js";import"./chunk-7xm75w1e.js";var HQ=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),zQ=UV({errorSchema:HQ,errorToMessage:(V)=>V.error.message});function LV(V){let Y=V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),J=V.startsWith("gpt-4")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-nano")&&!V.startsWith("gpt-5-chat")&&!V.startsWith("gpt-5.4-nano")||V.startsWith("o3")||V.startsWith("o4-mini"),G=V.startsWith("o1")||V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),j=V.startsWith("gpt-5.1")||V.startsWith("gpt-5.2")||V.startsWith("gpt-5.3")||V.startsWith("gpt-5.4");return{supportsFlexProcessing:Y,supportsPriorityProcessing:J,isReasoningModel:G,systemMessageMode:G?"developer":"system",supportsNonReasoningParameters:j}}function cQ(V){var Y,J,G,j,E,P;if(V==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 $=(Y=V.prompt_tokens)!=null?Y:0,A=(J=V.completion_tokens)!=null?J:0,O=(j=(G=V.prompt_tokens_details)==null?void 0:G.cached_tokens)!=null?j:0,K=(P=(E=V.completion_tokens_details)==null?void 0:E.reasoning_tokens)!=null?P:0;return{inputTokens:{total:$,noCache:$-O,cacheRead:O,cacheWrite:void 0},outputTokens:{total:A,text:A-K,reasoning:K},raw:V}}function HV(V){return JSON.stringify(V===void 0?{}:V)}function MV({prompt:V,systemMessageMode:Y="system"}){var J;let G=[],j=[];for(let{role:E,content:P}of V)switch(E){case"system":{switch(Y){case"system":{G.push({role:"system",content:P});break}case"developer":{G.push({role:"developer",content:P});break}case"remove":{j.push({type:"other",message:"system messages are removed for this model"});break}default:throw Error(`Unsupported system message mode: ${Y}`)}break}case"user":{if(P.length===1&&P[0].type==="text"){G.push({role:"user",content:P[0].text});break}G.push({role:"user",content:P.map(($,A)=>{var O,K,Z;switch($.type){case"text":return{type:"text",text:$.text};case"file":if($.mediaType.startsWith("image/")){let q=$.mediaType==="image/*"?"image/jpeg":$.mediaType;return{type:"image_url",image_url:{url:$.data instanceof URL?$.data.toString():`data:${q};base64,${JQ($.data)}`,detail:(K=(O=$.providerOptions)==null?void 0:O.openai)==null?void 0:K.imageDetail}}}else if($.mediaType.startsWith("audio/")){if($.data instanceof URL)throw new YQ({functionality:"audio file parts with URLs"});switch($.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:JQ($.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:JQ($.data),format:"mp3"}};default:throw new YQ({functionality:`audio content parts with media type ${$.mediaType}`})}}else if($.mediaType==="application/pdf"){if($.data instanceof URL)throw new YQ({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof $.data==="string"&&$.data.startsWith("file-")?{file_id:$.data}:{filename:(Z=$.filename)!=null?Z:`part-${A}.pdf`,file_data:`data:application/pdf;base64,${JQ($.data)}`}}}else throw new YQ({functionality:`file part media type ${$.mediaType}`})}})});break}case"assistant":{let $="",A=[];for(let O of P)switch(O.type){case"text":{$+=O.text;break}case"tool-call":{A.push({id:O.toolCallId,type:"function",function:{name:O.toolName,arguments:HV(O.input)}});break}}G.push({role:"assistant",content:$,tool_calls:A.length>0?A:void 0});break}case"tool":{for(let $ of P){if($.type==="tool-approval-response")continue;let A=$.output,O;switch(A.type){case"text":case"error-text":O=A.value;break;case"execution-denied":O=(J=A.reason)!=null?J:"Tool execution denied.";break;case"content":case"json":case"error-json":O=JSON.stringify(A.value);break}G.push({role:"tool",tool_call_id:$.toolCallId,content:O})}break}default:throw Error(`Unsupported role: ${E}`)}return{messages:G,warnings:j}}function LQ({id:V,model:Y,created:J}){return{id:V!=null?V:void 0,modelId:Y!=null?Y:void 0,timestamp:J?new Date(J*1000):void 0}}function vQ(V){switch(V){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var bV=D(()=>F(Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),type:Q.literal("function"),function:Q.object({name:Q.string(),arguments:Q.string()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}),index:Q.number(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}))),yV=D(()=>F(Q.union([Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number(),id:Q.string().nullish(),type:Q.literal("function").nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}).nullish(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish(),index:Q.number()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}),HQ]))),RV=D(()=>F(Q.object({logitBias:Q.record(Q.coerce.number(),Q.number()).optional(),logprobs:Q.union([Q.boolean(),Q.number()]).optional(),parallelToolCalls:Q.boolean().optional(),user:Q.string().optional(),reasoningEffort:Q.enum(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Q.number().optional(),store:Q.boolean().optional(),metadata:Q.record(Q.string().max(64),Q.string().max(512)).optional(),prediction:Q.record(Q.string(),Q.any()).optional(),serviceTier:Q.enum(["auto","flex","priority","default"]).optional(),strictJsonSchema:Q.boolean().optional(),textVerbosity:Q.enum(["low","medium","high"]).optional(),promptCacheKey:Q.string().optional(),promptCacheRetention:Q.enum(["in_memory","24h"]).optional(),safetyIdentifier:Q.string().optional(),systemMessageMode:Q.enum(["system","developer","remove"]).optional(),forceReasoning:Q.boolean().optional()})));function kV({tools:V,toolChoice:Y}){V=(V==null?void 0:V.length)?V:void 0;let J=[];if(V==null)return{tools:void 0,toolChoice:void 0,toolWarnings:J};let G=[];for(let E of V)switch(E.type){case"function":G.push({type:"function",function:{name:E.name,description:E.description,parameters:E.inputSchema,...E.strict!=null?{strict:E.strict}:{}}});break;default:J.push({type:"unsupported",feature:`tool type: ${E.type}`});break}if(Y==null)return{tools:G,toolChoice:void 0,toolWarnings:J};let j=Y.type;switch(j){case"auto":case"none":case"required":return{tools:G,toolChoice:j,toolWarnings:J};case"tool":return{tools:G,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:J};default:throw new YQ({functionality:`tool choice type: ${j}`})}}var gV=class{constructor(V,Y){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=V,this.config=Y}get provider(){return this.config.provider}async getArgs({prompt:V,maxOutputTokens:Y,temperature:J,topP:G,topK:j,frequencyPenalty:E,presencePenalty:P,stopSequences:$,responseFormat:A,seed:O,tools:K,toolChoice:Z,providerOptions:q}){var x,f,y,w,M;let g=[],b=(x=await VQ({provider:"openai",providerOptions:q,schema:RV}))!=null?x:{},n=LV(this.modelId),i=(f=b.forceReasoning)!=null?f:n.isReasoningModel;if(j!=null)g.push({type:"unsupported",feature:"topK"});let{messages:p,warnings:m}=MV({prompt:V,systemMessageMode:(y=b.systemMessageMode)!=null?y:i?"developer":n.systemMessageMode});g.push(...m);let s=(w=b.strictJsonSchema)!=null?w:!0,X={model:this.modelId,logit_bias:b.logitBias,logprobs:b.logprobs===!0||typeof b.logprobs==="number"?!0:void 0,top_logprobs:typeof b.logprobs==="number"?b.logprobs:typeof b.logprobs==="boolean"?b.logprobs?0:void 0:void 0,user:b.user,parallel_tool_calls:b.parallelToolCalls,max_tokens:Y,temperature:J,top_p:G,frequency_penalty:E,presence_penalty:P,response_format:(A==null?void 0:A.type)==="json"?A.schema!=null?{type:"json_schema",json_schema:{schema:A.schema,strict:s,name:(M=A.name)!=null?M:"response",description:A.description}}:{type:"json_object"}:void 0,stop:$,seed:O,verbosity:b.textVerbosity,max_completion_tokens:b.maxCompletionTokens,store:b.store,metadata:b.metadata,prediction:b.prediction,reasoning_effort:b.reasoningEffort,service_tier:b.serviceTier,prompt_cache_key:b.promptCacheKey,prompt_cache_retention:b.promptCacheRetention,safety_identifier:b.safetyIdentifier,messages:p};if(i){if(b.reasoningEffort!=="none"||!n.supportsNonReasoningParameters){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"});if(X.top_p!=null)X.top_p=void 0,g.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"});if(X.logprobs!=null)X.logprobs=void 0,g.push({type:"other",message:"logprobs is not supported for reasoning models"})}if(X.frequency_penalty!=null)X.frequency_penalty=void 0,g.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"});if(X.presence_penalty!=null)X.presence_penalty=void 0,g.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"});if(X.logit_bias!=null)X.logit_bias=void 0,g.push({type:"other",message:"logitBias is not supported for reasoning models"});if(X.top_logprobs!=null)X.top_logprobs=void 0,g.push({type:"other",message:"topLogprobs is not supported for reasoning models"});if(X.max_tokens!=null){if(X.max_completion_tokens==null)X.max_completion_tokens=X.max_tokens;X.max_tokens=void 0}}else if(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview")){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})}if(b.serviceTier==="flex"&&!n.supportsFlexProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),X.service_tier=void 0;if(b.serviceTier==="priority"&&!n.supportsPriorityProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),X.service_tier=void 0;let{tools:u,toolChoice:I,toolWarnings:H}=kV({tools:K,toolChoice:Z});return{args:{...X,tools:u,tool_choice:I},warnings:[...g,...H]}}async doGenerate(V){var Y,J,G,j,E,P,$;let{args:A,warnings:O}=await this.getArgs(V),{responseHeaders:K,value:Z,rawValue:q}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:A,failedResponseHandler:zQ,successfulResponseHandler:$Q(bV),abortSignal:V.abortSignal,fetch:this.config.fetch}),x=Z.choices[0],f=[],y=x.message.content;if(y!=null&&y.length>0)f.push({type:"text",text:y});for(let b of(Y=x.message.tool_calls)!=null?Y:[])f.push({type:"tool-call",toolCallId:(J=b.id)!=null?J:QQ(),toolName:b.function.name,input:b.function.arguments});for(let b of(G=x.message.annotations)!=null?G:[])f.push({type:"source",sourceType:"url",id:QQ(),url:b.url_citation.url,title:b.url_citation.title});let w=(j=Z.usage)==null?void 0:j.completion_tokens_details,M=(E=Z.usage)==null?void 0:E.prompt_tokens_details,g={openai:{}};if((w==null?void 0:w.accepted_prediction_tokens)!=null)g.openai.acceptedPredictionTokens=w==null?void 0:w.accepted_prediction_tokens;if((w==null?void 0:w.rejected_prediction_tokens)!=null)g.openai.rejectedPredictionTokens=w==null?void 0:w.rejected_prediction_tokens;if(((P=x.logprobs)==null?void 0:P.content)!=null)g.openai.logprobs=x.logprobs.content;return{content:f,finishReason:{unified:vQ(x.finish_reason),raw:($=x.finish_reason)!=null?$:void 0},usage:cQ(Z.usage),request:{body:A},response:{...LQ(Z),headers:K,body:q},warnings:O,providerMetadata:g}}async doStream(V){let{args:Y,warnings:J}=await this.getArgs(V),G={...Y,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:j,value:E}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:G,failedResponseHandler:zQ,successfulResponseHandler:BQ(yV),abortSignal:V.abortSignal,fetch:this.config.fetch}),P=[],$={unified:"other",raw:void 0},A=void 0,O=!1,K=!1,Z={openai:{}};return{stream:E.pipeThrough(new TransformStream({start(q){q.enqueue({type:"stream-start",warnings:J})},transform(q,x){var f,y,w,M,g,b,n,i,p,m,s,X,u,I,H,d,e;if(V.includeRawChunks)x.enqueue({type:"raw",rawValue:q.rawValue});if(!q.success){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:q.error});return}let C=q.value;if("error"in C){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:C.error});return}if(!O){let z=LQ(C);if(Object.values(z).some(Boolean))O=!0,x.enqueue({type:"response-metadata",...LQ(C)})}if(C.usage!=null){if(A=C.usage,((f=C.usage.completion_tokens_details)==null?void 0:f.accepted_prediction_tokens)!=null)Z.openai.acceptedPredictionTokens=(y=C.usage.completion_tokens_details)==null?void 0:y.accepted_prediction_tokens;if(((w=C.usage.completion_tokens_details)==null?void 0:w.rejected_prediction_tokens)!=null)Z.openai.rejectedPredictionTokens=(M=C.usage.completion_tokens_details)==null?void 0:M.rejected_prediction_tokens}let k=C.choices[0];if((k==null?void 0:k.finish_reason)!=null)$={unified:vQ(k.finish_reason),raw:k.finish_reason};if(((g=k==null?void 0:k.logprobs)==null?void 0:g.content)!=null)Z.openai.logprobs=k.logprobs.content;if((k==null?void 0:k.delta)==null)return;let L=k.delta;if(L.content!=null){if(!K)x.enqueue({type:"text-start",id:"0"}),K=!0;x.enqueue({type:"text-delta",id:"0",delta:L.content})}if(L.tool_calls!=null)for(let z of L.tool_calls){let T=z.index;if(P[T]==null){if(z.type!=null&&z.type!=="function")throw new AQ({data:z,message:"Expected 'function' type."});if(z.id==null)throw new AQ({data:z,message:"Expected 'id' to be a string."});if(((b=z.function)==null?void 0:b.name)==null)throw new AQ({data:z,message:"Expected 'function.name' to be a string."});x.enqueue({type:"tool-input-start",id:z.id,toolName:z.function.name}),P[T]={id:z.id,type:"function",function:{name:z.function.name,arguments:(n=z.function.arguments)!=null?n:""},hasFinished:!1};let B=P[T];if(((i=B.function)==null?void 0:i.name)!=null&&((p=B.function)==null?void 0:p.arguments)!=null){if(B.function.arguments.length>0)x.enqueue({type:"tool-input-delta",id:B.id,delta:B.function.arguments});if(qQ(B.function.arguments))x.enqueue({type:"tool-input-end",id:B.id}),x.enqueue({type:"tool-call",toolCallId:(m=B.id)!=null?m:QQ(),toolName:B.function.name,input:B.function.arguments}),B.hasFinished=!0}continue}let N=P[T];if(N.hasFinished)continue;if(((s=z.function)==null?void 0:s.arguments)!=null)N.function.arguments+=(u=(X=z.function)==null?void 0:X.arguments)!=null?u:"";if(x.enqueue({type:"tool-input-delta",id:N.id,delta:(I=z.function.arguments)!=null?I:""}),((H=N.function)==null?void 0:H.name)!=null&&((d=N.function)==null?void 0:d.arguments)!=null&&qQ(N.function.arguments))x.enqueue({type:"tool-input-end",id:N.id}),x.enqueue({type:"tool-call",toolCallId:(e=N.id)!=null?e:QQ(),toolName:N.function.name,input:N.function.arguments}),N.hasFinished=!0}if(L.annotations!=null)for(let z of L.annotations)x.enqueue({type:"source",sourceType:"url",id:QQ(),url:z.url_citation.url,title:z.url_citation.title})},flush(q){if(K)q.enqueue({type:"text-end",id:"0"});q.enqueue({type:"finish",finishReason:$,usage:cQ(A),...Z!=null?{providerMetadata:Z}:{}})}})),request:{body:G},response:{headers:j}}}};function nQ(V){var Y,J,G,j;if(V==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 E=(Y=V.prompt_tokens)!=null?Y:0,P=(J=V.completion_tokens)!=null?J:0;return{inputTokens:{total:(G=V.prompt_tokens)!=null?G:void 0,noCache:E,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:(j=V.completion_tokens)!=null?j:void 0,text:P,reasoning:void 0},raw:V}}function CV({prompt:V,user:Y="user",assistant:J="assistant"}){let G="";if(V[0].role==="system")G+=`${V[0].content}
|
|
3
3
|
|
|
4
4
|
`,V=V.slice(1);for(let{role:j,content:E}of V)switch(j){case"system":throw new $V({message:"Unexpected system message in prompt: ${content}",prompt:V});case"user":{let P=E.map(($)=>{switch($.type){case"text":return $.text}}).filter(Boolean).join("");G+=`${Y}:
|
|
5
5
|
${P}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Gl as a,Hl as b,Il as c,Jl as d,Kl as e,Ll as f,Ml as g,Nl as h,Ol as i}from"./chunk-8ymffyep.js";import"./chunk-redjxn13.js";import"./chunk-htz93dsd.js";import"./chunk-2hc5z7b5.js";import"./chunk-d6ry9418.js";import"./chunk-m5m448mg.js";import"./chunk-tqj69nh6.js";import"./chunk-ag8kz1e7.js";import"./chunk-5tray1fw.js";import"./chunk-c11d28qn.js";import"./chunk-mzs2pjyc.js";import"./chunk-gagtmjmp.js";import"./chunk-zs8kqdsf.js";import"./chunk-7xm75w1e.js";export{i as stopRefresh,h as startRefresh,g as refresh,d as readModelCatalogResponse,f as get,c as Provider,b as Model,a as MODEL_CATALOG_MAX_BYTES,e as Data};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rf as u}from"./chunk-
|
|
2
|
+
import{rf as u}from"./chunk-93p131d5.js";import{CO as Q,FO as Kq}from"./chunk-7xm75w1e.js";var D=Q((iq,j)=>{var{defineProperty:X,getOwnPropertyDescriptor:r,getOwnPropertyNames:o}=Object,a=Object.prototype.hasOwnProperty,t=(q,z)=>X(q,"name",{value:z,configurable:!0}),qq=(q,z)=>{for(var G in z)X(q,G,{get:z[G],enumerable:!0})},zq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of o(z))if(!a.call(q,I)&&I!==G)X(q,I,{get:()=>z[I],enumerable:!(K=r(z,I))||K.enumerable})}return q},Gq=(q)=>zq(X({},"__esModule",{value:!0}),q),J={};qq(J,{isArrayBuffer:()=>Iq});j.exports=Gq(J);var Iq=t((q)=>typeof ArrayBuffer==="function"&&q instanceof ArrayBuffer||Object.prototype.toString.call(q)==="[object ArrayBuffer]","isArrayBuffer")});var O=Q((dq,R)=>{var{defineProperty:Y,getOwnPropertyDescriptor:Qq,getOwnPropertyNames:Vq}=Object,Wq=Object.prototype.hasOwnProperty,E=(q,z)=>Y(q,"name",{value:z,configurable:!0}),Xq=(q,z)=>{for(var G in z)Y(q,G,{get:z[G],enumerable:!0})},Yq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of Vq(z))if(!Wq.call(q,I)&&I!==G)Y(q,I,{get:()=>z[I],enumerable:!(K=Qq(z,I))||K.enumerable})}return q},Zq=(q)=>Yq(Y({},"__esModule",{value:!0}),q),L={};Xq(L,{fromArrayBuffer:()=>Nq,fromString:()=>Fq});R.exports=Zq(L);var $q=D(),$=Kq("buffer"),Nq=E((q,z=0,G=q.byteLength-z)=>{if(!(0,$q.isArrayBuffer)(q))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof q} (${q})`);return $.Buffer.from(q,z,G)},"fromArrayBuffer"),Fq=E((q,z)=>{if(typeof q!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof q} (${q})`);return z?$.Buffer.from(q,z):$.Buffer.from(q)},"fromString")});var A=Q((mq,h)=>{var{defineProperty:Z,getOwnPropertyDescriptor:Hq,getOwnPropertyNames:Bq}=Object,Jq=Object.prototype.hasOwnProperty,N=(q,z)=>Z(q,"name",{value:z,configurable:!0}),jq=(q,z)=>{for(var G in z)Z(q,G,{get:z[G],enumerable:!0})},Dq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of Bq(z))if(!Jq.call(q,I)&&I!==G)Z(q,I,{get:()=>z[I],enumerable:!(K=Hq(z,I))||K.enumerable})}return q},Eq=(q)=>Dq(Z({},"__esModule",{value:!0}),q),v={};jq(v,{fromUtf8:()=>S,toUint8Array:()=>Lq,toUtf8:()=>Rq});h.exports=Eq(v);var M=O(),S=N((q)=>{let z=(0,M.fromString)(q,"utf8");return new Uint8Array(z.buffer,z.byteOffset,z.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Lq=N((q)=>{if(typeof q==="string")return S(q);if(ArrayBuffer.isView(q))return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(q)},"toUint8Array"),Rq=N((q)=>{if(typeof q==="string")return q;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,M.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("utf8")},"toUtf8")});var w=Q((C)=>{Object.defineProperty(C,"__esModule",{value:!0});C.convertToBuffer=void 0;var Oq=A(),vq=typeof Buffer<"u"&&Buffer.from?function(q){return Buffer.from(q,"utf8")}:Oq.fromUtf8;function Mq(q){if(q instanceof Uint8Array)return q;if(typeof q==="string")return vq(q);if(ArrayBuffer.isView(q))return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(q)}C.convertToBuffer=Mq});var U=Q((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.isEmptyData=void 0;function Sq(q){if(typeof q==="string")return q.length===0;return q.byteLength===0}P.isEmptyData=Sq});var y=Q((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.numToUint8=void 0;function hq(q){return new Uint8Array([(q&4278190080)>>24,(q&16711680)>>16,(q&65280)>>8,q&255])}b.numToUint8=hq});var l=Q((x)=>{Object.defineProperty(x,"__esModule",{value:!0});x.uint32ArrayFrom=void 0;function Aq(q){if(!Uint32Array.from){var z=new Uint32Array(q.length),G=0;while(G<q.length)z[G]=q[G],G+=1;return z}return Uint32Array.from(q)}x.uint32ArrayFrom=Aq});var F=Q((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.uint32ArrayFrom=V.numToUint8=V.isEmptyData=V.convertToBuffer=void 0;var Cq=w();Object.defineProperty(V,"convertToBuffer",{enumerable:!0,get:function(){return Cq.convertToBuffer}});var Tq=U();Object.defineProperty(V,"isEmptyData",{enumerable:!0,get:function(){return Tq.isEmptyData}});var wq=y();Object.defineProperty(V,"numToUint8",{enumerable:!0,get:function(){return wq.numToUint8}});var Pq=l();Object.defineProperty(V,"uint32ArrayFrom",{enumerable:!0,get:function(){return Pq.uint32ArrayFrom}})});var m=Q((i)=>{Object.defineProperty(i,"__esModule",{value:!0});i.AwsCrc32=void 0;var s=u(),H=F(),f=n(),Uq=function(){function q(){this.crc32=new f.Crc32}return q.prototype.update=function(z){if((0,H.isEmptyData)(z))return;this.crc32.update((0,H.convertToBuffer)(z))},q.prototype.digest=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(z){return[2,(0,H.numToUint8)(this.crc32.digest())]})})},q.prototype.reset=function(){this.crc32=new f.Crc32},q}();i.AwsCrc32=Uq});var n=Q((B)=>{Object.defineProperty(B,"__esModule",{value:!0});B.AwsCrc32=B.Crc32=B.crc32=void 0;var bq=u(),gq=F();function yq(q){return new p().update(q).digest()}B.crc32=yq;var p=function(){function q(){this.checksum=4294967295}return q.prototype.update=function(z){var G,K;try{for(var I=bq.__values(z),W=I.next();!W.done;W=I.next()){var _=W.value;this.checksum=this.checksum>>>8^cq[(this.checksum^_)&255]}}catch(e){G={error:e}}finally{try{if(W&&!W.done&&(K=I.return))K.call(I)}finally{if(G)throw G.error}}return this},q.prototype.digest=function(){return(this.checksum^4294967295)>>>0},q}();B.Crc32=p;var xq=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],cq=(0,gq.uint32ArrayFrom)(xq),lq=m();Object.defineProperty(B,"AwsCrc32",{enumerable:!0,get:function(){return lq.AwsCrc32}})});
|
|
3
3
|
export{n as qf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$t as MA,$v as e$,$w as xx,$x as a,Aw as lW,Ax as UW,Ay as Zc,Bu as fx,Bv as S$,Bx as vc,By as oc,Cw as fW,Cx as z,Cy as uc,Du as mx,Dv as C$,Dw as P,Dx as G,Ev as V$,Ew as Kc,Ex as K,Ey as lc,Fu as rx,Fw as bW,Fx as X,Fy as F,Gv as R$,Gw as vA,Gx as px,Hu as L,Hv as I$,Hw as cA,Hx as ex,Hy as rW,Iu as H$,Iv as k$,Iw as gA,Ix as dx,Jv as b$,Jw as yA,Jx as ax,Jy as w,Kv as F$,Kw as ZA,Kx as D,Lv as j$,Lw as oA,Lx as V,Mv as h$,Mw as QA,Mx as N,Nv as U$,Nw as uA,Nx as Z,Ov as T$,Ow as lA,Ox as R,Pv as v$,Pw as fA,Px as B,Qv as g$,Qw as mA,Qx as I,Rv as y$,Rw as rA,Rx as o,Sv as Z$,Sw as pA,Sx as u,Tv as o$,Tw as eA,Tx as l,Ut as TW,Uv as u$,Uw as dA,Ux as f,Vt as W,Vv as l$,Vw as aA,Vx as m,Wt as vW,Ww as nA,Wx as r,Xv as f$,Xw as iA,Xx as nx,Yt as q$,Yv as m$,Yw as tA,Yx as p,Zv as r$,Zw as sA,Zx as e,_t as E,_v as p$,_w as Ax,_x as d,au as b,aw as d$,ax as mW,ay as n,bu as q,bw as a$,bx as x$,by as i,cu as jx,cw as n$,cx as $$,cy as gc,dw as i$,dx as c$,eu as g,ev as UA,ew as t$,ex as W$,fu as y,fv as TA,fw as s$,fx as Bc,gu as gW,gv as Q$,gw as Ac,gx as FW,hv as Y$,hw as xc,hx as Pc,iu as yW,iv as O$,iw as $c,ix as Lc,ju as Ux,jv as J$,jw as cc,jx as Ec,kv as X$,kw as Wc,kx as Dc,lu as Tx,lv as G$,lw as _c,lx as Nc,mv as M$,mw as qc,mx as Sc,nu as vx,nv as w$,nw as Hc,nx as jW,ny as yc,ov as z$,ow as Qc,ox as Cc,pu as gx,pv as K$,pw as Yc,px as hW,qv as B$,qw as Oc,qx as Vc,ru as yx,rv as P$,rw as Jc,rx as Rc,sv as ix,sw as Xc,sx as Ic,tu as Zx,tv as tx,tw as Gc,tx as kc,uv as sx,uw as Mc,ux as bc,vu as ox,vv as A$,vw as wc,vx as Fc,wv as L$,ww as zc,wx as jc,xu as ux,xv as E$,xw as ZW,xx as hc,yv as D$,yw as oW,yx as Uc,zu as lx,zv as N$,zw as uW,zx as Tc}from"./chunk-4vemws1t.js";import{EO as RA}from"./chunk-yjj4cvqg.js";var hx=(A,x)=>{jx.init(A,x),A.name="ZodError",Object.defineProperties(A,{format:{value:($)=>y(A,$)},flatten:{value:($)=>g(A,$)},addIssue:{value:($)=>{A.issues.push($),A.message=JSON.stringify(A.issues,MA,2)}},addIssues:{value:($)=>{A.issues.push(...$),A.message=JSON.stringify(A.issues,MA,2)}},isEmpty:{get(){return A.issues.length===0}}})},pW=W("ZodError",hx),O=W("ZodError",hx,{Parent:Error});var wA=Ux(O),zA=Tx(O),KA=vx(O),BA=gx(O),PA=yx(O),LA=Zx(O),EA=ox(O),DA=ux(O),NA=lx(O),SA=fx(O),CA=mx(O),VA=rx(O);var Xq={};RA(Xq,{xid:()=>Q_,void:()=>j_,uuidv7:()=>A_,uuidv6:()=>sW,uuidv4:()=>tW,uuid:()=>iW,util:()=>q,url:()=>x_,uppercase:()=>l,unknown:()=>S,union:()=>Dx,undefined:()=>b_,ulid:()=>H_,uint64:()=>I_,uint32:()=>C_,tuple:()=>WW,trim:()=>a,treeifyError:()=>gW,transform:()=>Cx,toUpperCase:()=>i,toLowerCase:()=>n,toJSONSchema:()=>rW,templateLiteral:()=>a_,symbol:()=>k_,superRefine:()=>kW,success:()=>p_,stringbool:()=>xq,stringFormat:()=>B_,string:()=>jA,strictObject:()=>v_,startsWith:()=>m,size:()=>Z,setErrorMap:()=>_q,set:()=>u_,safeParseAsync:()=>BA,safeParse:()=>KA,safeEncodeAsync:()=>CA,safeEncode:()=>NA,safeDecodeAsync:()=>VA,safeDecode:()=>SA,registry:()=>fW,regexes:()=>L,regex:()=>o,refine:()=>IW,record:()=>_W,readonly:()=>DW,property:()=>nx,promise:()=>n_,prettifyError:()=>yW,preprocess:()=>cq,prefault:()=>wW,positive:()=>px,pipe:()=>HA,partialRecord:()=>Z_,parseAsync:()=>zA,parse:()=>wA,overwrite:()=>e,optional:()=>_A,object:()=>T_,number:()=>fc,nullish:()=>r_,nullable:()=>qA,null:()=>dc,normalize:()=>d,nonpositive:()=>dx,nonoptional:()=>zW,nonnegative:()=>ax,never:()=>Lx,negative:()=>ex,nativeEnum:()=>l_,nanoid:()=>W_,nan:()=>e_,multipleOf:()=>D,minSize:()=>N,minLength:()=>B,mime:()=>p,maxSize:()=>V,maxLength:()=>R,map:()=>o_,lte:()=>G,lt:()=>z,lowercase:()=>u,looseObject:()=>g_,locales:()=>oW,literal:()=>f_,length:()=>I,lazy:()=>CW,ksuid:()=>Y_,keyof:()=>U_,jwt:()=>K_,json:()=>$q,iso:()=>$A,ipv6:()=>J_,ipv4:()=>O_,intersection:()=>$W,int64:()=>R_,int32:()=>S_,int:()=>hA,instanceof:()=>Aq,includes:()=>f,httpUrl:()=>$_,hostname:()=>P_,hex:()=>L_,hash:()=>E_,guid:()=>nW,gte:()=>X,gt:()=>K,globalRegistry:()=>P,getErrorMap:()=>qq,function:()=>i_,formatError:()=>y,float64:()=>N_,float32:()=>D_,flattenError:()=>g,file:()=>m_,enum:()=>Sx,endsWith:()=>r,encodeAsync:()=>EA,encode:()=>PA,emoji:()=>c_,email:()=>aW,e164:()=>z_,discriminatedUnion:()=>y_,decodeAsync:()=>DA,decode:()=>LA,date:()=>h_,custom:()=>s_,cuid2:()=>q_,cuid:()=>__,core:()=>w,config:()=>E,coerce:()=>Fx,codec:()=>d_,clone:()=>b,cidrv6:()=>G_,cidrv4:()=>X_,check:()=>t_,catch:()=>PW,boolean:()=>mc,bigint:()=>V_,base64url:()=>w_,base64:()=>M_,array:()=>JA,any:()=>F_,_function:()=>i_,_default:()=>GW,_ZodString:()=>$x,ZodXID:()=>Yx,ZodVoid:()=>tc,ZodUnknown:()=>nc,ZodUnion:()=>Ex,ZodUndefined:()=>pc,ZodUUID:()=>M,ZodURL:()=>YA,ZodULID:()=>Qx,ZodType:()=>H,ZodTuple:()=>cW,ZodTransform:()=>OW,ZodTemplateLiteral:()=>NW,ZodSymbol:()=>rc,ZodSuccess:()=>KW,ZodStringFormat:()=>Q,ZodString:()=>j,ZodSet:()=>HW,ZodRecord:()=>Nx,ZodRealError:()=>O,ZodReadonly:()=>EW,ZodPromise:()=>VW,ZodPrefault:()=>MW,ZodPipe:()=>Ix,ZodOptional:()=>Vx,ZodObject:()=>XA,ZodNumberFormat:()=>C,ZodNumber:()=>U,ZodNullable:()=>JW,ZodNull:()=>ec,ZodNonOptional:()=>Rx,ZodNever:()=>ic,ZodNanoID:()=>_x,ZodNaN:()=>LW,ZodMap:()=>qW,ZodLiteral:()=>QW,ZodLazy:()=>SW,ZodKSUID:()=>Ox,ZodJWT:()=>Bx,ZodIssueCode:()=>Wq,ZodIntersection:()=>xW,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s,ZodIPv6:()=>Xx,ZodIPv4:()=>Jx,ZodGUID:()=>WA,ZodFunction:()=>RW,ZodFirstPartyTypeKind:()=>bx,ZodFile:()=>YW,ZodError:()=>pW,ZodEnum:()=>k,ZodEmoji:()=>Wx,ZodEmail:()=>cx,ZodE164:()=>Kx,ZodDiscriminatedUnion:()=>AW,ZodDefault:()=>XW,ZodDate:()=>OA,ZodCustomStringFormat:()=>h,ZodCustom:()=>GA,ZodCodec:()=>kx,ZodCatch:()=>BW,ZodCUID2:()=>Hx,ZodCUID:()=>qx,ZodCIDRv6:()=>Mx,ZodCIDRv4:()=>Gx,ZodBoolean:()=>T,ZodBigIntFormat:()=>Px,ZodBigInt:()=>v,ZodBase64URL:()=>zx,ZodBase64:()=>wx,ZodArray:()=>sc,ZodAny:()=>ac,TimePrecision:()=>mW,NEVER:()=>TW,$output:()=>uW,$input:()=>lW,$brand:()=>vW});var $A={};RA($A,{time:()=>bA,duration:()=>FA,datetime:()=>IA,date:()=>kA,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s});var t=W("ZodISODateTime",(A,x)=>{ix.init(A,x),Q.init(A,x)});function IA(A){return x$(t,A)}var s=W("ZodISODate",(A,x)=>{tx.init(A,x),Q.init(A,x)});function kA(A){return $$(s,A)}var AA=W("ZodISOTime",(A,x)=>{sx.init(A,x),Q.init(A,x)});function bA(A){return c$(AA,A)}var xA=W("ZodISODuration",(A,x)=>{A$.init(A,x),Q.init(A,x)});function FA(A){return W$(xA,A)}var H=W("ZodType",(A,x)=>{return UA.init(A,x),A.def=x,A.type=x.type,Object.defineProperty(A,"_def",{value:x}),A.check=(...$)=>{return A.clone({...x,checks:[...x.checks??[],...$.map((c)=>typeof c==="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]})},A.clone=($,c)=>b(A,$,c),A.brand=()=>A,A.register=($,c)=>{return $.add(A,c),A},A.parse=($,c)=>wA(A,$,c,{callee:A.parse}),A.safeParse=($,c)=>KA(A,$,c),A.parseAsync=async($,c)=>zA(A,$,c,{callee:A.parseAsync}),A.safeParseAsync=async($,c)=>BA(A,$,c),A.spa=A.safeParseAsync,A.encode=($,c)=>PA(A,$,c),A.decode=($,c)=>LA(A,$,c),A.encodeAsync=async($,c)=>EA(A,$,c),A.decodeAsync=async($,c)=>DA(A,$,c),A.safeEncode=($,c)=>NA(A,$,c),A.safeDecode=($,c)=>SA(A,$,c),A.safeEncodeAsync=async($,c)=>CA(A,$,c),A.safeDecodeAsync=async($,c)=>VA(A,$,c),A.refine=($,c)=>A.check(IW($,c)),A.superRefine=($)=>A.check(kW($)),A.overwrite=($)=>A.check(e($)),A.optional=()=>_A(A),A.nullable=()=>qA(A),A.nullish=()=>_A(qA(A)),A.nonoptional=($)=>zW(A,$),A.array=()=>JA(A),A.or=($)=>Dx([A,$]),A.and=($)=>$W(A,$),A.transform=($)=>HA(A,Cx($)),A.default=($)=>GW(A,$),A.prefault=($)=>wW(A,$),A.catch=($)=>PW(A,$),A.pipe=($)=>HA(A,$),A.readonly=()=>DW(A),A.describe=($)=>{let c=A.clone();return P.add(c,{description:$}),c},Object.defineProperty(A,"description",{get(){return P.get(A)?.description},configurable:!0}),A.meta=(...$)=>{if($.length===0)return P.get(A);let c=A.clone();return P.add(c,$[0]),c},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A}),$x=W("_ZodString",(A,x)=>{TA.init(A,x),H.init(A,x);let $=A._zod.bag;A.format=$.format??null,A.minLength=$.minimum??null,A.maxLength=$.maximum??null,A.regex=(...c)=>A.check(o(...c)),A.includes=(...c)=>A.check(f(...c)),A.startsWith=(...c)=>A.check(m(...c)),A.endsWith=(...c)=>A.check(r(...c)),A.min=(...c)=>A.check(B(...c)),A.max=(...c)=>A.check(R(...c)),A.length=(...c)=>A.check(I(...c)),A.nonempty=(...c)=>A.check(B(1,...c)),A.lowercase=(c)=>A.check(u(c)),A.uppercase=(c)=>A.check(l(c)),A.trim=()=>A.check(a()),A.normalize=(...c)=>A.check(d(...c)),A.toLowerCase=()=>A.check(n()),A.toUpperCase=()=>A.check(i())}),j=W("ZodString",(A,x)=>{TA.init(A,x),$x.init(A,x),A.email=($)=>A.check(vA(cx,$)),A.url=($)=>A.check(QA(YA,$)),A.jwt=($)=>A.check(xx(Bx,$)),A.emoji=($)=>A.check(uA(Wx,$)),A.guid=($)=>A.check(cA(WA,$)),A.uuid=($)=>A.check(gA(M,$)),A.uuidv4=($)=>A.check(yA(M,$)),A.uuidv6=($)=>A.check(ZA(M,$)),A.uuidv7=($)=>A.check(oA(M,$)),A.nanoid=($)=>A.check(lA(_x,$)),A.guid=($)=>A.check(cA(WA,$)),A.cuid=($)=>A.check(fA(qx,$)),A.cuid2=($)=>A.check(mA(Hx,$)),A.ulid=($)=>A.check(rA(Qx,$)),A.base64=($)=>A.check(tA(wx,$)),A.base64url=($)=>A.check(sA(zx,$)),A.xid=($)=>A.check(pA(Yx,$)),A.ksuid=($)=>A.check(eA(Ox,$)),A.ipv4=($)=>A.check(dA(Jx,$)),A.ipv6=($)=>A.check(aA(Xx,$)),A.cidrv4=($)=>A.check(nA(Gx,$)),A.cidrv6=($)=>A.check(iA(Mx,$)),A.e164=($)=>A.check(Ax(Kx,$)),A.datetime=($)=>A.check(IA($)),A.date=($)=>A.check(kA($)),A.time=($)=>A.check(bA($)),A.duration=($)=>A.check(FA($))});function jA(A){return Kc(j,A)}var Q=W("ZodStringFormat",(A,x)=>{Q$.init(A,x),$x.init(A,x)}),cx=W("ZodEmail",(A,x)=>{J$.init(A,x),Q.init(A,x)});function aW(A){return vA(cx,A)}var WA=W("ZodGUID",(A,x)=>{Y$.init(A,x),Q.init(A,x)});function nW(A){return cA(WA,A)}var M=W("ZodUUID",(A,x)=>{O$.init(A,x),Q.init(A,x)});function iW(A){return gA(M,A)}function tW(A){return yA(M,A)}function sW(A){return ZA(M,A)}function A_(A){return oA(M,A)}var YA=W("ZodURL",(A,x)=>{X$.init(A,x),Q.init(A,x)});function x_(A){return QA(YA,A)}function $_(A){return QA(YA,{protocol:/^https?$/,hostname:L.domain,...q.normalizeParams(A)})}var Wx=W("ZodEmoji",(A,x)=>{G$.init(A,x),Q.init(A,x)});function c_(A){return uA(Wx,A)}var _x=W("ZodNanoID",(A,x)=>{M$.init(A,x),Q.init(A,x)});function W_(A){return lA(_x,A)}var qx=W("ZodCUID",(A,x)=>{w$.init(A,x),Q.init(A,x)});function __(A){return fA(qx,A)}var Hx=W("ZodCUID2",(A,x)=>{z$.init(A,x),Q.init(A,x)});function q_(A){return mA(Hx,A)}var Qx=W("ZodULID",(A,x)=>{K$.init(A,x),Q.init(A,x)});function H_(A){return rA(Qx,A)}var Yx=W("ZodXID",(A,x)=>{B$.init(A,x),Q.init(A,x)});function Q_(A){return pA(Yx,A)}var Ox=W("ZodKSUID",(A,x)=>{P$.init(A,x),Q.init(A,x)});function Y_(A){return eA(Ox,A)}var Jx=W("ZodIPv4",(A,x)=>{L$.init(A,x),Q.init(A,x)});function O_(A){return dA(Jx,A)}var Xx=W("ZodIPv6",(A,x)=>{E$.init(A,x),Q.init(A,x)});function J_(A){return aA(Xx,A)}var Gx=W("ZodCIDRv4",(A,x)=>{D$.init(A,x),Q.init(A,x)});function X_(A){return nA(Gx,A)}var Mx=W("ZodCIDRv6",(A,x)=>{N$.init(A,x),Q.init(A,x)});function G_(A){return iA(Mx,A)}var wx=W("ZodBase64",(A,x)=>{S$.init(A,x),Q.init(A,x)});function M_(A){return tA(wx,A)}var zx=W("ZodBase64URL",(A,x)=>{C$.init(A,x),Q.init(A,x)});function w_(A){return sA(zx,A)}var Kx=W("ZodE164",(A,x)=>{V$.init(A,x),Q.init(A,x)});function z_(A){return Ax(Kx,A)}var Bx=W("ZodJWT",(A,x)=>{R$.init(A,x),Q.init(A,x)});function K_(A){return xx(Bx,A)}var h=W("ZodCustomStringFormat",(A,x)=>{I$.init(A,x),Q.init(A,x)});function B_(A,x,$={}){return F(h,A,x,$)}function P_(A){return F(h,"hostname",L.hostname,A)}function L_(A){return F(h,"hex",L.hex,A)}function E_(A,x){let $=x?.enc??"hex",c=`${A}_${$}`,_=L[c];if(!_)throw Error(`Unrecognized hash format: ${c}`);return F(h,c,_,x)}var U=W("ZodNumber",(A,x)=>{k$.init(A,x),H.init(A,x),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.int=(c)=>A.check(hA(c)),A.safe=(c)=>A.check(hA(c)),A.positive=(c)=>A.check(K(0,c)),A.nonnegative=(c)=>A.check(X(0,c)),A.negative=(c)=>A.check(z(0,c)),A.nonpositive=(c)=>A.check(G(0,c)),A.multipleOf=(c,_)=>A.check(D(c,_)),A.step=(c,_)=>A.check(D(c,_)),A.finite=()=>A;let $=A._zod.bag;A.minValue=Math.max($.minimum??Number.NEGATIVE_INFINITY,$.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,A.maxValue=Math.min($.maximum??Number.POSITIVE_INFINITY,$.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,A.isInt=($.format??"").includes("int")||Number.isSafeInteger($.multipleOf??0.5),A.isFinite=!0,A.format=$.format??null});function fc(A){return Bc(U,A)}var C=W("ZodNumberFormat",(A,x)=>{b$.init(A,x),U.init(A,x)});function hA(A){return Pc(C,A)}function D_(A){return Lc(C,A)}function N_(A){return Ec(C,A)}function S_(A){return Dc(C,A)}function C_(A){return Nc(C,A)}var T=W("ZodBoolean",(A,x)=>{F$.init(A,x),H.init(A,x)});function mc(A){return Sc(T,A)}var v=W("ZodBigInt",(A,x)=>{j$.init(A,x),H.init(A,x),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.positive=(c)=>A.check(K(BigInt(0),c)),A.negative=(c)=>A.check(z(BigInt(0),c)),A.nonpositive=(c)=>A.check(G(BigInt(0),c)),A.nonnegative=(c)=>A.check(X(BigInt(0),c)),A.multipleOf=(c,_)=>A.check(D(c,_));let $=A._zod.bag;A.minValue=$.minimum??null,A.maxValue=$.maximum??null,A.format=$.format??null});function V_(A){return Cc(v,A)}var Px=W("ZodBigIntFormat",(A,x)=>{h$.init(A,x),v.init(A,x)});function R_(A){return Vc(Px,A)}function I_(A){return Rc(Px,A)}var rc=W("ZodSymbol",(A,x)=>{U$.init(A,x),H.init(A,x)});function k_(A){return Ic(rc,A)}var pc=W("ZodUndefined",(A,x)=>{T$.init(A,x),H.init(A,x)});function b_(A){return kc(pc,A)}var ec=W("ZodNull",(A,x)=>{v$.init(A,x),H.init(A,x)});function dc(A){return bc(ec,A)}var ac=W("ZodAny",(A,x)=>{g$.init(A,x),H.init(A,x)});function F_(){return Fc(ac)}var nc=W("ZodUnknown",(A,x)=>{y$.init(A,x),H.init(A,x)});function S(){return jc(nc)}var ic=W("ZodNever",(A,x)=>{Z$.init(A,x),H.init(A,x)});function Lx(A){return hc(ic,A)}var tc=W("ZodVoid",(A,x)=>{o$.init(A,x),H.init(A,x)});function j_(A){return Uc(tc,A)}var OA=W("ZodDate",(A,x)=>{u$.init(A,x),H.init(A,x),A.min=(c,_)=>A.check(X(c,_)),A.max=(c,_)=>A.check(G(c,_));let $=A._zod.bag;A.minDate=$.minimum?new Date($.minimum):null,A.maxDate=$.maximum?new Date($.maximum):null});function h_(A){return Tc(OA,A)}var sc=W("ZodArray",(A,x)=>{l$.init(A,x),H.init(A,x),A.element=x.element,A.min=($,c)=>A.check(B($,c)),A.nonempty=($)=>A.check(B(1,$)),A.max=($,c)=>A.check(R($,c)),A.length=($,c)=>A.check(I($,c)),A.unwrap=()=>A.element});function JA(A,x){return gc(sc,A,x)}function U_(A){let x=A._zod.def.shape;return Sx(Object.keys(x))}var XA=W("ZodObject",(A,x)=>{f$.init(A,x),H.init(A,x),q.defineLazy(A,"shape",()=>x.shape),A.keyof=()=>Sx(Object.keys(A._zod.def.shape)),A.catchall=($)=>A.clone({...A._zod.def,catchall:$}),A.passthrough=()=>A.clone({...A._zod.def,catchall:S()}),A.loose=()=>A.clone({...A._zod.def,catchall:S()}),A.strict=()=>A.clone({...A._zod.def,catchall:Lx()}),A.strip=()=>A.clone({...A._zod.def,catchall:void 0}),A.extend=($)=>{return q.extend(A,$)},A.safeExtend=($)=>{return q.safeExtend(A,$)},A.merge=($)=>q.merge(A,$),A.pick=($)=>q.pick(A,$),A.omit=($)=>q.omit(A,$),A.partial=(...$)=>q.partial(Vx,A,$[0]),A.required=(...$)=>q.required(Rx,A,$[0])});function T_(A,x){let $={type:"object",get shape(){return q.assignProp(this,"shape",A?q.objectClone(A):{}),this.shape},...q.normalizeParams(x)};return new XA($)}function v_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:Lx(),...q.normalizeParams(x)})}function g_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:S(),...q.normalizeParams(x)})}var Ex=W("ZodUnion",(A,x)=>{m$.init(A,x),H.init(A,x),A.options=x.options});function Dx(A,x){return new Ex({type:"union",options:A,...q.normalizeParams(x)})}var AW=W("ZodDiscriminatedUnion",(A,x)=>{Ex.init(A,x),r$.init(A,x)});function y_(A,x,$){return new AW({type:"union",options:x,discriminator:A,...q.normalizeParams($)})}var xW=W("ZodIntersection",(A,x)=>{p$.init(A,x),H.init(A,x)});function $W(A,x){return new xW({type:"intersection",left:A,right:x})}var cW=W("ZodTuple",(A,x)=>{e$.init(A,x),H.init(A,x),A.rest=($)=>A.clone({...A._zod.def,rest:$})});function WW(A,x,$){let c=x instanceof UA,_=c?$:x;return new cW({type:"tuple",items:A,rest:c?x:null,...q.normalizeParams(_)})}var Nx=W("ZodRecord",(A,x)=>{d$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function _W(A,x,$){return new Nx({type:"record",keyType:A,valueType:x,...q.normalizeParams($)})}function Z_(A,x,$){let c=b(A);return c._zod.values=void 0,new Nx({type:"record",keyType:c,valueType:x,...q.normalizeParams($)})}var qW=W("ZodMap",(A,x)=>{a$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function o_(A,x,$){return new qW({type:"map",keyType:A,valueType:x,...q.normalizeParams($)})}var HW=W("ZodSet",(A,x)=>{n$.init(A,x),H.init(A,x),A.min=(...$)=>A.check(N(...$)),A.nonempty=($)=>A.check(N(1,$)),A.max=(...$)=>A.check(V(...$)),A.size=(...$)=>A.check(Z(...$))});function u_(A,x){return new HW({type:"set",valueType:A,...q.normalizeParams(x)})}var k=W("ZodEnum",(A,x)=>{i$.init(A,x),H.init(A,x),A.enum=x.entries,A.options=Object.values(x.entries);let $=new Set(Object.keys(x.entries));A.extract=(c,_)=>{let J={};for(let Y of c)if($.has(Y))J[Y]=x.entries[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})},A.exclude=(c,_)=>{let J={...x.entries};for(let Y of c)if($.has(Y))delete J[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})}});function Sx(A,x){let $=Array.isArray(A)?Object.fromEntries(A.map((c)=>[c,c])):A;return new k({type:"enum",entries:$,...q.normalizeParams(x)})}function l_(A,x){return new k({type:"enum",entries:A,...q.normalizeParams(x)})}var QW=W("ZodLiteral",(A,x)=>{t$.init(A,x),H.init(A,x),A.values=new Set(x.values),Object.defineProperty(A,"value",{get(){if(x.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return x.values[0]}})});function f_(A,x){return new QW({type:"literal",values:Array.isArray(A)?A:[A],...q.normalizeParams(x)})}var YW=W("ZodFile",(A,x)=>{s$.init(A,x),H.init(A,x),A.min=($,c)=>A.check(N($,c)),A.max=($,c)=>A.check(V($,c)),A.mime=($,c)=>A.check(p(Array.isArray($)?$:[$],c))});function m_(A){return yc(YW,A)}var OW=W("ZodTransform",(A,x)=>{Ac.init(A,x),H.init(A,x),A._zod.parse=($,c)=>{if(c.direction==="backward")throw new q$(A.constructor.name);$.addIssue=(J)=>{if(typeof J==="string")$.issues.push(q.issue(J,$.value,x));else{let Y=J;if(Y.fatal)Y.continue=!1;Y.code??(Y.code="custom"),Y.input??(Y.input=$.value),Y.inst??(Y.inst=A),$.issues.push(q.issue(Y))}};let _=x.transform($.value,$);if(_ instanceof Promise)return _.then((J)=>{return $.value=J,$});return $.value=_,$}});function Cx(A){return new OW({type:"transform",transform:A})}var Vx=W("ZodOptional",(A,x)=>{xc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function _A(A){return new Vx({type:"optional",innerType:A})}var JW=W("ZodNullable",(A,x)=>{$c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function qA(A){return new JW({type:"nullable",innerType:A})}function r_(A){return _A(qA(A))}var XW=W("ZodDefault",(A,x)=>{cc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function GW(A,x){return new XW({type:"default",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var MW=W("ZodPrefault",(A,x)=>{Wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function wW(A,x){return new MW({type:"prefault",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var Rx=W("ZodNonOptional",(A,x)=>{_c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function zW(A,x){return new Rx({type:"nonoptional",innerType:A,...q.normalizeParams(x)})}var KW=W("ZodSuccess",(A,x)=>{qc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function p_(A){return new KW({type:"success",innerType:A})}var BW=W("ZodCatch",(A,x)=>{Hc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function PW(A,x){return new BW({type:"catch",innerType:A,catchValue:typeof x==="function"?x:()=>x})}var LW=W("ZodNaN",(A,x)=>{Qc.init(A,x),H.init(A,x)});function e_(A){return vc(LW,A)}var Ix=W("ZodPipe",(A,x)=>{Yc.init(A,x),H.init(A,x),A.in=x.in,A.out=x.out});function HA(A,x){return new Ix({type:"pipe",in:A,out:x})}var kx=W("ZodCodec",(A,x)=>{Ix.init(A,x),Oc.init(A,x)});function d_(A,x,$){return new kx({type:"pipe",in:A,out:x,transform:$.decode,reverseTransform:$.encode})}var EW=W("ZodReadonly",(A,x)=>{Jc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function DW(A){return new EW({type:"readonly",innerType:A})}var NW=W("ZodTemplateLiteral",(A,x)=>{Xc.init(A,x),H.init(A,x)});function a_(A,x){return new NW({type:"template_literal",parts:A,...q.normalizeParams(x)})}var SW=W("ZodLazy",(A,x)=>{wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.getter()});function CW(A){return new SW({type:"lazy",getter:A})}var VW=W("ZodPromise",(A,x)=>{Mc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function n_(A){return new VW({type:"promise",innerType:A})}var RW=W("ZodFunction",(A,x)=>{Gc.init(A,x),H.init(A,x)});function i_(A){return new RW({type:"function",input:Array.isArray(A?.input)?WW(A?.input):A?.input??JA(S()),output:A?.output??S()})}var GA=W("ZodCustom",(A,x)=>{zc.init(A,x),H.init(A,x)});function t_(A){let x=new H$({check:"custom"});return x._zod.check=A,x}function s_(A,x){return Zc(GA,A??(()=>!0),x)}function IW(A,x={}){return oc(GA,A,x)}function kW(A){return uc(A)}function Aq(A,x={error:`Input not instance of ${A.name}`}){let $=new GA({type:"custom",check:"custom",fn:(c)=>c instanceof A,abort:!0,...q.normalizeParams(x)});return $._zod.bag.Class=A,$}var xq=(...A)=>lc({Codec:kx,Boolean:T,String:j},...A);function $q(A){let x=CW(()=>{return Dx([jA(A),fc(),mc(),dc(),JA(x),_W(jA(),x)])});return x}function cq(A,x){return HA(Cx(A),x)}var Wq={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _q(A){E({customError:A})}function qq(){return E().customError}var bx;(function(A){})(bx||(bx={}));var Fx={};RA(Fx,{string:()=>Hq,number:()=>Qq,date:()=>Jq,boolean:()=>Yq,bigint:()=>Oq});function Hq(A){return bW(j,A)}function Qq(A){return FW(U,A)}function Yq(A){return jW(T,A)}function Oq(A){return hW(v,A)}function Jq(A){return UW(OA,A)}E(ZW());
|
|
3
|
-
export{$A as
|
|
2
|
+
import{$t as b,$v as d$,$w as mW,$x as n,Au as fx,Av as S$,Ax as vc,Ay as oc,Bw as fW,Bx as z,By as uc,Cu as mx,Cv as C$,Cw as P,Cx as G,Dv as V$,Dw as Kc,Dx as K,Dy as lc,Eu as rx,Ew as bW,Ex as X,Ey as F,Fv as R$,Fw as vA,Fx as px,Gu as L,Gv as I$,Gw as cA,Gx as ex,Gy as rW,Hu as H$,Hv as k$,Hw as gA,Hx as dx,Iv as b$,Iw as yA,Ix as ax,Iy as w,Jv as F$,Jw as ZA,Jx as D,Kv as j$,Kw as oA,Kx as V,Lv as h$,Lw as QA,Lx as N,Mv as U$,Mw as uA,Mx as Z,Nv as T$,Nw as lA,Nx as R,Ov as v$,Ow as fA,Ox as B,Pv as g$,Pw as mA,Px as I,Qv as y$,Qw as rA,Qx as o,Rv as Z$,Rw as pA,Rx as u,Sv as o$,Sw as eA,Sx as l,Tt as TW,Tv as u$,Tw as dA,Tx as f,Ut as W,Uv as l$,Uw as aA,Ux as m,Vt as vW,Vw as nA,Vx as r,Wv as f$,Ww as iA,Wx as nx,Xt as q$,Xv as m$,Xw as tA,Xx as p,Yv as r$,Yw as sA,Yx as e,Zt as E,Zv as p$,Zw as Ax,Zx as d,_t as MA,_v as e$,_w as xx,_x as a,au as q,aw as a$,ax as x$,ay as i,bu as jx,bw as n$,bx as $$,by as gc,cw as i$,cx as c$,du as g,dv as UA,dw as t$,dx as W$,eu as y,ev as TA,ew as s$,ex as Bc,fu as gW,fv as Q$,fw as Ac,fx as FW,gv as Y$,gw as xc,gx as Pc,hu as yW,hv as O$,hw as $c,hx as Lc,iu as Ux,iv as J$,iw as cc,ix as Ec,jv as X$,jw as Wc,jx as Dc,ku as Tx,kv as G$,kw as _c,kx as Nc,lv as M$,lw as qc,lx as Sc,mu as vx,mv as w$,mw as Hc,mx as jW,my as yc,nv as z$,nw as Qc,nx as Cc,ou as gx,ov as K$,ow as Yc,ox as hW,pv as B$,pw as Oc,px as Vc,qu as yx,qv as P$,qw as Jc,qx as Rc,rv as ix,rw as Xc,rx as Ic,su as Zx,sv as tx,sw as Gc,sx as kc,tv as sx,tw as Mc,tx as bc,uu as ox,uv as A$,uw as wc,ux as Fc,vv as L$,vw as zc,vx as jc,wu as ux,wv as E$,ww as ZW,wx as hc,xv as D$,xw as oW,xx as Uc,yu as lx,yv as N$,yw as uW,yx as Tc,zw as lW,zx as UW,zy as Zc}from"./chunk-mzs2pjyc.js";import{DO as RA}from"./chunk-7xm75w1e.js";var hx=(A,x)=>{jx.init(A,x),A.name="ZodError",Object.defineProperties(A,{format:{value:($)=>y(A,$)},flatten:{value:($)=>g(A,$)},addIssue:{value:($)=>{A.issues.push($),A.message=JSON.stringify(A.issues,MA,2)}},addIssues:{value:($)=>{A.issues.push(...$),A.message=JSON.stringify(A.issues,MA,2)}},isEmpty:{get(){return A.issues.length===0}}})},pW=W("ZodError",hx),O=W("ZodError",hx,{Parent:Error});var wA=Ux(O),zA=Tx(O),KA=vx(O),BA=gx(O),PA=yx(O),LA=Zx(O),EA=ox(O),DA=ux(O),NA=lx(O),SA=fx(O),CA=mx(O),VA=rx(O);var Xq={};RA(Xq,{xid:()=>Q_,void:()=>j_,uuidv7:()=>A_,uuidv6:()=>sW,uuidv4:()=>tW,uuid:()=>iW,util:()=>q,url:()=>x_,uppercase:()=>l,unknown:()=>S,union:()=>Dx,undefined:()=>b_,ulid:()=>H_,uint64:()=>I_,uint32:()=>C_,tuple:()=>WW,trim:()=>a,treeifyError:()=>gW,transform:()=>Cx,toUpperCase:()=>i,toLowerCase:()=>n,toJSONSchema:()=>rW,templateLiteral:()=>a_,symbol:()=>k_,superRefine:()=>kW,success:()=>p_,stringbool:()=>xq,stringFormat:()=>B_,string:()=>jA,strictObject:()=>v_,startsWith:()=>m,size:()=>Z,setErrorMap:()=>_q,set:()=>u_,safeParseAsync:()=>BA,safeParse:()=>KA,safeEncodeAsync:()=>CA,safeEncode:()=>NA,safeDecodeAsync:()=>VA,safeDecode:()=>SA,registry:()=>fW,regexes:()=>L,regex:()=>o,refine:()=>IW,record:()=>_W,readonly:()=>DW,property:()=>nx,promise:()=>n_,prettifyError:()=>yW,preprocess:()=>cq,prefault:()=>wW,positive:()=>px,pipe:()=>HA,partialRecord:()=>Z_,parseAsync:()=>zA,parse:()=>wA,overwrite:()=>e,optional:()=>_A,object:()=>T_,number:()=>fc,nullish:()=>r_,nullable:()=>qA,null:()=>dc,normalize:()=>d,nonpositive:()=>dx,nonoptional:()=>zW,nonnegative:()=>ax,never:()=>Lx,negative:()=>ex,nativeEnum:()=>l_,nanoid:()=>W_,nan:()=>e_,multipleOf:()=>D,minSize:()=>N,minLength:()=>B,mime:()=>p,maxSize:()=>V,maxLength:()=>R,map:()=>o_,lte:()=>G,lt:()=>z,lowercase:()=>u,looseObject:()=>g_,locales:()=>oW,literal:()=>f_,length:()=>I,lazy:()=>CW,ksuid:()=>Y_,keyof:()=>U_,jwt:()=>K_,json:()=>$q,iso:()=>$A,ipv6:()=>J_,ipv4:()=>O_,intersection:()=>$W,int64:()=>R_,int32:()=>S_,int:()=>hA,instanceof:()=>Aq,includes:()=>f,httpUrl:()=>$_,hostname:()=>P_,hex:()=>L_,hash:()=>E_,guid:()=>nW,gte:()=>X,gt:()=>K,globalRegistry:()=>P,getErrorMap:()=>qq,function:()=>i_,formatError:()=>y,float64:()=>N_,float32:()=>D_,flattenError:()=>g,file:()=>m_,enum:()=>Sx,endsWith:()=>r,encodeAsync:()=>EA,encode:()=>PA,emoji:()=>c_,email:()=>aW,e164:()=>z_,discriminatedUnion:()=>y_,decodeAsync:()=>DA,decode:()=>LA,date:()=>h_,custom:()=>s_,cuid2:()=>q_,cuid:()=>__,core:()=>w,config:()=>E,coerce:()=>Fx,codec:()=>d_,clone:()=>b,cidrv6:()=>G_,cidrv4:()=>X_,check:()=>t_,catch:()=>PW,boolean:()=>mc,bigint:()=>V_,base64url:()=>w_,base64:()=>M_,array:()=>JA,any:()=>F_,_function:()=>i_,_default:()=>GW,_ZodString:()=>$x,ZodXID:()=>Yx,ZodVoid:()=>tc,ZodUnknown:()=>nc,ZodUnion:()=>Ex,ZodUndefined:()=>pc,ZodUUID:()=>M,ZodURL:()=>YA,ZodULID:()=>Qx,ZodType:()=>H,ZodTuple:()=>cW,ZodTransform:()=>OW,ZodTemplateLiteral:()=>NW,ZodSymbol:()=>rc,ZodSuccess:()=>KW,ZodStringFormat:()=>Q,ZodString:()=>j,ZodSet:()=>HW,ZodRecord:()=>Nx,ZodRealError:()=>O,ZodReadonly:()=>EW,ZodPromise:()=>VW,ZodPrefault:()=>MW,ZodPipe:()=>Ix,ZodOptional:()=>Vx,ZodObject:()=>XA,ZodNumberFormat:()=>C,ZodNumber:()=>U,ZodNullable:()=>JW,ZodNull:()=>ec,ZodNonOptional:()=>Rx,ZodNever:()=>ic,ZodNanoID:()=>_x,ZodNaN:()=>LW,ZodMap:()=>qW,ZodLiteral:()=>QW,ZodLazy:()=>SW,ZodKSUID:()=>Ox,ZodJWT:()=>Bx,ZodIssueCode:()=>Wq,ZodIntersection:()=>xW,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s,ZodIPv6:()=>Xx,ZodIPv4:()=>Jx,ZodGUID:()=>WA,ZodFunction:()=>RW,ZodFirstPartyTypeKind:()=>bx,ZodFile:()=>YW,ZodError:()=>pW,ZodEnum:()=>k,ZodEmoji:()=>Wx,ZodEmail:()=>cx,ZodE164:()=>Kx,ZodDiscriminatedUnion:()=>AW,ZodDefault:()=>XW,ZodDate:()=>OA,ZodCustomStringFormat:()=>h,ZodCustom:()=>GA,ZodCodec:()=>kx,ZodCatch:()=>BW,ZodCUID2:()=>Hx,ZodCUID:()=>qx,ZodCIDRv6:()=>Mx,ZodCIDRv4:()=>Gx,ZodBoolean:()=>T,ZodBigIntFormat:()=>Px,ZodBigInt:()=>v,ZodBase64URL:()=>zx,ZodBase64:()=>wx,ZodArray:()=>sc,ZodAny:()=>ac,TimePrecision:()=>mW,NEVER:()=>TW,$output:()=>uW,$input:()=>lW,$brand:()=>vW});var $A={};RA($A,{time:()=>bA,duration:()=>FA,datetime:()=>IA,date:()=>kA,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s});var t=W("ZodISODateTime",(A,x)=>{ix.init(A,x),Q.init(A,x)});function IA(A){return x$(t,A)}var s=W("ZodISODate",(A,x)=>{tx.init(A,x),Q.init(A,x)});function kA(A){return $$(s,A)}var AA=W("ZodISOTime",(A,x)=>{sx.init(A,x),Q.init(A,x)});function bA(A){return c$(AA,A)}var xA=W("ZodISODuration",(A,x)=>{A$.init(A,x),Q.init(A,x)});function FA(A){return W$(xA,A)}var H=W("ZodType",(A,x)=>{return UA.init(A,x),A.def=x,A.type=x.type,Object.defineProperty(A,"_def",{value:x}),A.check=(...$)=>{return A.clone({...x,checks:[...x.checks??[],...$.map((c)=>typeof c==="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]})},A.clone=($,c)=>b(A,$,c),A.brand=()=>A,A.register=($,c)=>{return $.add(A,c),A},A.parse=($,c)=>wA(A,$,c,{callee:A.parse}),A.safeParse=($,c)=>KA(A,$,c),A.parseAsync=async($,c)=>zA(A,$,c,{callee:A.parseAsync}),A.safeParseAsync=async($,c)=>BA(A,$,c),A.spa=A.safeParseAsync,A.encode=($,c)=>PA(A,$,c),A.decode=($,c)=>LA(A,$,c),A.encodeAsync=async($,c)=>EA(A,$,c),A.decodeAsync=async($,c)=>DA(A,$,c),A.safeEncode=($,c)=>NA(A,$,c),A.safeDecode=($,c)=>SA(A,$,c),A.safeEncodeAsync=async($,c)=>CA(A,$,c),A.safeDecodeAsync=async($,c)=>VA(A,$,c),A.refine=($,c)=>A.check(IW($,c)),A.superRefine=($)=>A.check(kW($)),A.overwrite=($)=>A.check(e($)),A.optional=()=>_A(A),A.nullable=()=>qA(A),A.nullish=()=>_A(qA(A)),A.nonoptional=($)=>zW(A,$),A.array=()=>JA(A),A.or=($)=>Dx([A,$]),A.and=($)=>$W(A,$),A.transform=($)=>HA(A,Cx($)),A.default=($)=>GW(A,$),A.prefault=($)=>wW(A,$),A.catch=($)=>PW(A,$),A.pipe=($)=>HA(A,$),A.readonly=()=>DW(A),A.describe=($)=>{let c=A.clone();return P.add(c,{description:$}),c},Object.defineProperty(A,"description",{get(){return P.get(A)?.description},configurable:!0}),A.meta=(...$)=>{if($.length===0)return P.get(A);let c=A.clone();return P.add(c,$[0]),c},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A}),$x=W("_ZodString",(A,x)=>{TA.init(A,x),H.init(A,x);let $=A._zod.bag;A.format=$.format??null,A.minLength=$.minimum??null,A.maxLength=$.maximum??null,A.regex=(...c)=>A.check(o(...c)),A.includes=(...c)=>A.check(f(...c)),A.startsWith=(...c)=>A.check(m(...c)),A.endsWith=(...c)=>A.check(r(...c)),A.min=(...c)=>A.check(B(...c)),A.max=(...c)=>A.check(R(...c)),A.length=(...c)=>A.check(I(...c)),A.nonempty=(...c)=>A.check(B(1,...c)),A.lowercase=(c)=>A.check(u(c)),A.uppercase=(c)=>A.check(l(c)),A.trim=()=>A.check(a()),A.normalize=(...c)=>A.check(d(...c)),A.toLowerCase=()=>A.check(n()),A.toUpperCase=()=>A.check(i())}),j=W("ZodString",(A,x)=>{TA.init(A,x),$x.init(A,x),A.email=($)=>A.check(vA(cx,$)),A.url=($)=>A.check(QA(YA,$)),A.jwt=($)=>A.check(xx(Bx,$)),A.emoji=($)=>A.check(uA(Wx,$)),A.guid=($)=>A.check(cA(WA,$)),A.uuid=($)=>A.check(gA(M,$)),A.uuidv4=($)=>A.check(yA(M,$)),A.uuidv6=($)=>A.check(ZA(M,$)),A.uuidv7=($)=>A.check(oA(M,$)),A.nanoid=($)=>A.check(lA(_x,$)),A.guid=($)=>A.check(cA(WA,$)),A.cuid=($)=>A.check(fA(qx,$)),A.cuid2=($)=>A.check(mA(Hx,$)),A.ulid=($)=>A.check(rA(Qx,$)),A.base64=($)=>A.check(tA(wx,$)),A.base64url=($)=>A.check(sA(zx,$)),A.xid=($)=>A.check(pA(Yx,$)),A.ksuid=($)=>A.check(eA(Ox,$)),A.ipv4=($)=>A.check(dA(Jx,$)),A.ipv6=($)=>A.check(aA(Xx,$)),A.cidrv4=($)=>A.check(nA(Gx,$)),A.cidrv6=($)=>A.check(iA(Mx,$)),A.e164=($)=>A.check(Ax(Kx,$)),A.datetime=($)=>A.check(IA($)),A.date=($)=>A.check(kA($)),A.time=($)=>A.check(bA($)),A.duration=($)=>A.check(FA($))});function jA(A){return Kc(j,A)}var Q=W("ZodStringFormat",(A,x)=>{Q$.init(A,x),$x.init(A,x)}),cx=W("ZodEmail",(A,x)=>{J$.init(A,x),Q.init(A,x)});function aW(A){return vA(cx,A)}var WA=W("ZodGUID",(A,x)=>{Y$.init(A,x),Q.init(A,x)});function nW(A){return cA(WA,A)}var M=W("ZodUUID",(A,x)=>{O$.init(A,x),Q.init(A,x)});function iW(A){return gA(M,A)}function tW(A){return yA(M,A)}function sW(A){return ZA(M,A)}function A_(A){return oA(M,A)}var YA=W("ZodURL",(A,x)=>{X$.init(A,x),Q.init(A,x)});function x_(A){return QA(YA,A)}function $_(A){return QA(YA,{protocol:/^https?$/,hostname:L.domain,...q.normalizeParams(A)})}var Wx=W("ZodEmoji",(A,x)=>{G$.init(A,x),Q.init(A,x)});function c_(A){return uA(Wx,A)}var _x=W("ZodNanoID",(A,x)=>{M$.init(A,x),Q.init(A,x)});function W_(A){return lA(_x,A)}var qx=W("ZodCUID",(A,x)=>{w$.init(A,x),Q.init(A,x)});function __(A){return fA(qx,A)}var Hx=W("ZodCUID2",(A,x)=>{z$.init(A,x),Q.init(A,x)});function q_(A){return mA(Hx,A)}var Qx=W("ZodULID",(A,x)=>{K$.init(A,x),Q.init(A,x)});function H_(A){return rA(Qx,A)}var Yx=W("ZodXID",(A,x)=>{B$.init(A,x),Q.init(A,x)});function Q_(A){return pA(Yx,A)}var Ox=W("ZodKSUID",(A,x)=>{P$.init(A,x),Q.init(A,x)});function Y_(A){return eA(Ox,A)}var Jx=W("ZodIPv4",(A,x)=>{L$.init(A,x),Q.init(A,x)});function O_(A){return dA(Jx,A)}var Xx=W("ZodIPv6",(A,x)=>{E$.init(A,x),Q.init(A,x)});function J_(A){return aA(Xx,A)}var Gx=W("ZodCIDRv4",(A,x)=>{D$.init(A,x),Q.init(A,x)});function X_(A){return nA(Gx,A)}var Mx=W("ZodCIDRv6",(A,x)=>{N$.init(A,x),Q.init(A,x)});function G_(A){return iA(Mx,A)}var wx=W("ZodBase64",(A,x)=>{S$.init(A,x),Q.init(A,x)});function M_(A){return tA(wx,A)}var zx=W("ZodBase64URL",(A,x)=>{C$.init(A,x),Q.init(A,x)});function w_(A){return sA(zx,A)}var Kx=W("ZodE164",(A,x)=>{V$.init(A,x),Q.init(A,x)});function z_(A){return Ax(Kx,A)}var Bx=W("ZodJWT",(A,x)=>{R$.init(A,x),Q.init(A,x)});function K_(A){return xx(Bx,A)}var h=W("ZodCustomStringFormat",(A,x)=>{I$.init(A,x),Q.init(A,x)});function B_(A,x,$={}){return F(h,A,x,$)}function P_(A){return F(h,"hostname",L.hostname,A)}function L_(A){return F(h,"hex",L.hex,A)}function E_(A,x){let $=x?.enc??"hex",c=`${A}_${$}`,_=L[c];if(!_)throw Error(`Unrecognized hash format: ${c}`);return F(h,c,_,x)}var U=W("ZodNumber",(A,x)=>{k$.init(A,x),H.init(A,x),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.int=(c)=>A.check(hA(c)),A.safe=(c)=>A.check(hA(c)),A.positive=(c)=>A.check(K(0,c)),A.nonnegative=(c)=>A.check(X(0,c)),A.negative=(c)=>A.check(z(0,c)),A.nonpositive=(c)=>A.check(G(0,c)),A.multipleOf=(c,_)=>A.check(D(c,_)),A.step=(c,_)=>A.check(D(c,_)),A.finite=()=>A;let $=A._zod.bag;A.minValue=Math.max($.minimum??Number.NEGATIVE_INFINITY,$.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,A.maxValue=Math.min($.maximum??Number.POSITIVE_INFINITY,$.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,A.isInt=($.format??"").includes("int")||Number.isSafeInteger($.multipleOf??0.5),A.isFinite=!0,A.format=$.format??null});function fc(A){return Bc(U,A)}var C=W("ZodNumberFormat",(A,x)=>{b$.init(A,x),U.init(A,x)});function hA(A){return Pc(C,A)}function D_(A){return Lc(C,A)}function N_(A){return Ec(C,A)}function S_(A){return Dc(C,A)}function C_(A){return Nc(C,A)}var T=W("ZodBoolean",(A,x)=>{F$.init(A,x),H.init(A,x)});function mc(A){return Sc(T,A)}var v=W("ZodBigInt",(A,x)=>{j$.init(A,x),H.init(A,x),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.positive=(c)=>A.check(K(BigInt(0),c)),A.negative=(c)=>A.check(z(BigInt(0),c)),A.nonpositive=(c)=>A.check(G(BigInt(0),c)),A.nonnegative=(c)=>A.check(X(BigInt(0),c)),A.multipleOf=(c,_)=>A.check(D(c,_));let $=A._zod.bag;A.minValue=$.minimum??null,A.maxValue=$.maximum??null,A.format=$.format??null});function V_(A){return Cc(v,A)}var Px=W("ZodBigIntFormat",(A,x)=>{h$.init(A,x),v.init(A,x)});function R_(A){return Vc(Px,A)}function I_(A){return Rc(Px,A)}var rc=W("ZodSymbol",(A,x)=>{U$.init(A,x),H.init(A,x)});function k_(A){return Ic(rc,A)}var pc=W("ZodUndefined",(A,x)=>{T$.init(A,x),H.init(A,x)});function b_(A){return kc(pc,A)}var ec=W("ZodNull",(A,x)=>{v$.init(A,x),H.init(A,x)});function dc(A){return bc(ec,A)}var ac=W("ZodAny",(A,x)=>{g$.init(A,x),H.init(A,x)});function F_(){return Fc(ac)}var nc=W("ZodUnknown",(A,x)=>{y$.init(A,x),H.init(A,x)});function S(){return jc(nc)}var ic=W("ZodNever",(A,x)=>{Z$.init(A,x),H.init(A,x)});function Lx(A){return hc(ic,A)}var tc=W("ZodVoid",(A,x)=>{o$.init(A,x),H.init(A,x)});function j_(A){return Uc(tc,A)}var OA=W("ZodDate",(A,x)=>{u$.init(A,x),H.init(A,x),A.min=(c,_)=>A.check(X(c,_)),A.max=(c,_)=>A.check(G(c,_));let $=A._zod.bag;A.minDate=$.minimum?new Date($.minimum):null,A.maxDate=$.maximum?new Date($.maximum):null});function h_(A){return Tc(OA,A)}var sc=W("ZodArray",(A,x)=>{l$.init(A,x),H.init(A,x),A.element=x.element,A.min=($,c)=>A.check(B($,c)),A.nonempty=($)=>A.check(B(1,$)),A.max=($,c)=>A.check(R($,c)),A.length=($,c)=>A.check(I($,c)),A.unwrap=()=>A.element});function JA(A,x){return gc(sc,A,x)}function U_(A){let x=A._zod.def.shape;return Sx(Object.keys(x))}var XA=W("ZodObject",(A,x)=>{f$.init(A,x),H.init(A,x),q.defineLazy(A,"shape",()=>x.shape),A.keyof=()=>Sx(Object.keys(A._zod.def.shape)),A.catchall=($)=>A.clone({...A._zod.def,catchall:$}),A.passthrough=()=>A.clone({...A._zod.def,catchall:S()}),A.loose=()=>A.clone({...A._zod.def,catchall:S()}),A.strict=()=>A.clone({...A._zod.def,catchall:Lx()}),A.strip=()=>A.clone({...A._zod.def,catchall:void 0}),A.extend=($)=>{return q.extend(A,$)},A.safeExtend=($)=>{return q.safeExtend(A,$)},A.merge=($)=>q.merge(A,$),A.pick=($)=>q.pick(A,$),A.omit=($)=>q.omit(A,$),A.partial=(...$)=>q.partial(Vx,A,$[0]),A.required=(...$)=>q.required(Rx,A,$[0])});function T_(A,x){let $={type:"object",get shape(){return q.assignProp(this,"shape",A?q.objectClone(A):{}),this.shape},...q.normalizeParams(x)};return new XA($)}function v_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:Lx(),...q.normalizeParams(x)})}function g_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:S(),...q.normalizeParams(x)})}var Ex=W("ZodUnion",(A,x)=>{m$.init(A,x),H.init(A,x),A.options=x.options});function Dx(A,x){return new Ex({type:"union",options:A,...q.normalizeParams(x)})}var AW=W("ZodDiscriminatedUnion",(A,x)=>{Ex.init(A,x),r$.init(A,x)});function y_(A,x,$){return new AW({type:"union",options:x,discriminator:A,...q.normalizeParams($)})}var xW=W("ZodIntersection",(A,x)=>{p$.init(A,x),H.init(A,x)});function $W(A,x){return new xW({type:"intersection",left:A,right:x})}var cW=W("ZodTuple",(A,x)=>{e$.init(A,x),H.init(A,x),A.rest=($)=>A.clone({...A._zod.def,rest:$})});function WW(A,x,$){let c=x instanceof UA,_=c?$:x;return new cW({type:"tuple",items:A,rest:c?x:null,...q.normalizeParams(_)})}var Nx=W("ZodRecord",(A,x)=>{d$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function _W(A,x,$){return new Nx({type:"record",keyType:A,valueType:x,...q.normalizeParams($)})}function Z_(A,x,$){let c=b(A);return c._zod.values=void 0,new Nx({type:"record",keyType:c,valueType:x,...q.normalizeParams($)})}var qW=W("ZodMap",(A,x)=>{a$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function o_(A,x,$){return new qW({type:"map",keyType:A,valueType:x,...q.normalizeParams($)})}var HW=W("ZodSet",(A,x)=>{n$.init(A,x),H.init(A,x),A.min=(...$)=>A.check(N(...$)),A.nonempty=($)=>A.check(N(1,$)),A.max=(...$)=>A.check(V(...$)),A.size=(...$)=>A.check(Z(...$))});function u_(A,x){return new HW({type:"set",valueType:A,...q.normalizeParams(x)})}var k=W("ZodEnum",(A,x)=>{i$.init(A,x),H.init(A,x),A.enum=x.entries,A.options=Object.values(x.entries);let $=new Set(Object.keys(x.entries));A.extract=(c,_)=>{let J={};for(let Y of c)if($.has(Y))J[Y]=x.entries[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})},A.exclude=(c,_)=>{let J={...x.entries};for(let Y of c)if($.has(Y))delete J[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})}});function Sx(A,x){let $=Array.isArray(A)?Object.fromEntries(A.map((c)=>[c,c])):A;return new k({type:"enum",entries:$,...q.normalizeParams(x)})}function l_(A,x){return new k({type:"enum",entries:A,...q.normalizeParams(x)})}var QW=W("ZodLiteral",(A,x)=>{t$.init(A,x),H.init(A,x),A.values=new Set(x.values),Object.defineProperty(A,"value",{get(){if(x.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return x.values[0]}})});function f_(A,x){return new QW({type:"literal",values:Array.isArray(A)?A:[A],...q.normalizeParams(x)})}var YW=W("ZodFile",(A,x)=>{s$.init(A,x),H.init(A,x),A.min=($,c)=>A.check(N($,c)),A.max=($,c)=>A.check(V($,c)),A.mime=($,c)=>A.check(p(Array.isArray($)?$:[$],c))});function m_(A){return yc(YW,A)}var OW=W("ZodTransform",(A,x)=>{Ac.init(A,x),H.init(A,x),A._zod.parse=($,c)=>{if(c.direction==="backward")throw new q$(A.constructor.name);$.addIssue=(J)=>{if(typeof J==="string")$.issues.push(q.issue(J,$.value,x));else{let Y=J;if(Y.fatal)Y.continue=!1;Y.code??(Y.code="custom"),Y.input??(Y.input=$.value),Y.inst??(Y.inst=A),$.issues.push(q.issue(Y))}};let _=x.transform($.value,$);if(_ instanceof Promise)return _.then((J)=>{return $.value=J,$});return $.value=_,$}});function Cx(A){return new OW({type:"transform",transform:A})}var Vx=W("ZodOptional",(A,x)=>{xc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function _A(A){return new Vx({type:"optional",innerType:A})}var JW=W("ZodNullable",(A,x)=>{$c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function qA(A){return new JW({type:"nullable",innerType:A})}function r_(A){return _A(qA(A))}var XW=W("ZodDefault",(A,x)=>{cc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function GW(A,x){return new XW({type:"default",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var MW=W("ZodPrefault",(A,x)=>{Wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function wW(A,x){return new MW({type:"prefault",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var Rx=W("ZodNonOptional",(A,x)=>{_c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function zW(A,x){return new Rx({type:"nonoptional",innerType:A,...q.normalizeParams(x)})}var KW=W("ZodSuccess",(A,x)=>{qc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function p_(A){return new KW({type:"success",innerType:A})}var BW=W("ZodCatch",(A,x)=>{Hc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function PW(A,x){return new BW({type:"catch",innerType:A,catchValue:typeof x==="function"?x:()=>x})}var LW=W("ZodNaN",(A,x)=>{Qc.init(A,x),H.init(A,x)});function e_(A){return vc(LW,A)}var Ix=W("ZodPipe",(A,x)=>{Yc.init(A,x),H.init(A,x),A.in=x.in,A.out=x.out});function HA(A,x){return new Ix({type:"pipe",in:A,out:x})}var kx=W("ZodCodec",(A,x)=>{Ix.init(A,x),Oc.init(A,x)});function d_(A,x,$){return new kx({type:"pipe",in:A,out:x,transform:$.decode,reverseTransform:$.encode})}var EW=W("ZodReadonly",(A,x)=>{Jc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function DW(A){return new EW({type:"readonly",innerType:A})}var NW=W("ZodTemplateLiteral",(A,x)=>{Xc.init(A,x),H.init(A,x)});function a_(A,x){return new NW({type:"template_literal",parts:A,...q.normalizeParams(x)})}var SW=W("ZodLazy",(A,x)=>{wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.getter()});function CW(A){return new SW({type:"lazy",getter:A})}var VW=W("ZodPromise",(A,x)=>{Mc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function n_(A){return new VW({type:"promise",innerType:A})}var RW=W("ZodFunction",(A,x)=>{Gc.init(A,x),H.init(A,x)});function i_(A){return new RW({type:"function",input:Array.isArray(A?.input)?WW(A?.input):A?.input??JA(S()),output:A?.output??S()})}var GA=W("ZodCustom",(A,x)=>{zc.init(A,x),H.init(A,x)});function t_(A){let x=new H$({check:"custom"});return x._zod.check=A,x}function s_(A,x){return Zc(GA,A??(()=>!0),x)}function IW(A,x={}){return oc(GA,A,x)}function kW(A){return uc(A)}function Aq(A,x={error:`Input not instance of ${A.name}`}){let $=new GA({type:"custom",check:"custom",fn:(c)=>c instanceof A,abort:!0,...q.normalizeParams(x)});return $._zod.bag.Class=A,$}var xq=(...A)=>lc({Codec:kx,Boolean:T,String:j},...A);function $q(A){let x=CW(()=>{return Dx([jA(A),fc(),mc(),dc(),JA(x),_W(jA(),x)])});return x}function cq(A,x){return HA(Cx(A),x)}var Wq={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _q(A){E({customError:A})}function qq(){return E().customError}var bx;(function(A){})(bx||(bx={}));var Fx={};RA(Fx,{string:()=>Hq,number:()=>Qq,date:()=>Jq,boolean:()=>Yq,bigint:()=>Oq});function Hq(A){return bW(j,A)}function Qq(A){return FW(U,A)}function Yq(A){return jW(T,A)}function Oq(A){return hW(v,A)}function Jq(A){return UW(OA,A)}E(ZW());
|
|
3
|
+
export{$A as vt,BA as wt,jA as xt,x_ as yt,fc as zt,mc as At,dc as Bt,F_ as Ct,S as Dt,JA as Et,T_ as Ft,g_ as Gt,Dx as Ht,y_ as It,$W as Jt,_W as Kt,Sx as Lt,f_ as Mt,_A as Nt,s_ as Ot,cq as Pt,Wq as Qt,Fx as Rt,Xq as St};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{h as S}from"./chunk-
|
|
2
|
+
import{h as S}from"./chunk-5eq1fft9.js";import"./chunk-t9mz17gb.js";import{Rd as $}from"./chunk-yajd975f.js";import{Vf as v}from"./chunk-rbk8seme.js";import"./chunk-takew94z.js";import{gh as L}from"./chunk-fq0x3esz.js";import"./chunk-44a82dg0.js";import"./chunk-vxyy2dp3.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-5hw6xa49.js";import"./chunk-326p5b10.js";import"./chunk-04n2ycg5.js";import"./chunk-8ymffyep.js";import"./chunk-mcg24gkb.js";import"./chunk-redjxn13.js";import"./chunk-bn0h9dny.js";import"./chunk-r4ndwym0.js";import"./chunk-3ytjm3az.js";import"./chunk-htz93dsd.js";import"./chunk-vcw00k0n.js";import{Bo as N,so as g,to as y,uo as B}from"./chunk-r78czx4d.js";import"./chunk-2hc5z7b5.js";import"./chunk-d68fzyw7.js";import"./chunk-4jtxtkj7.js";import"./chunk-ay8emwym.js";import"./chunk-2maqde7w.js";import"./chunk-kj20f048.js";import"./chunk-cqtkxwd8.js";import"./chunk-x9rbv6p6.js";import"./chunk-g5rabwre.js";import"./chunk-jbx3s7nw.js";import"./chunk-15hw2z9t.js";import"./chunk-48ge2ryx.js";import"./chunk-n9xns8by.js";import"./chunk-y9q0hb7b.js";import"./chunk-c1bdzxbx.js";import"./chunk-ehhas0ew.js";import"./chunk-d6ry9418.js";import"./chunk-0dt0bxz6.js";import"./chunk-10bjs581.js";import"./chunk-4cnwn1rh.js";import{Ur as q}from"./chunk-gcw4rn10.js";import"./chunk-m5m448mg.js";import"./chunk-tqj69nh6.js";import"./chunk-ag8kz1e7.js";import"./chunk-5tray1fw.js";import"./chunk-c11d28qn.js";import"./chunk-mzs2pjyc.js";import"./chunk-gagtmjmp.js";import{pH as z}from"./chunk-zs8kqdsf.js";import"./chunk-dxpj0cxh.js";import"./chunk-zw815d68.js";import"./chunk-7xm75w1e.js";import j from"fs/promises";import P from"path";function F(x){return z.promise(async()=>{try{return{ok:!0,value:await x()}}catch(D){return{ok:!1,err:D}}})}function A(x){if(x instanceof g)return"Not signed in. Run `qitqode auth login` first.";if(x instanceof y)return x.message+q.copy().insufficientBalanceCliSuffix;if(x instanceof B)return x.message;return"Request failed: "+(x instanceof Error?x.message:String(x))}var w=(x)=>z.gen(function*(){if((yield*S())==="revoked")return;let D=yield*z.promise(async()=>{try{return{ok:!0,content:await j.readFile(P.resolve(x),"utf8")}}catch(V){let K=V;return{ok:!1,message:`Cannot read '${x}': ${K.message??String(K)}`}}});if(!D.ok){yield*z.sync(()=>v.println(v.Style.TEXT_DANGER+D.message+v.Style.TEXT_NORMAL));return}let O=[],T=D.content.split(`
|
|
3
3
|
`);for(let V=0;V<T.length;V++){let K=T[V];if(!K||!K.trim())continue;let G=V+1,H;try{H=JSON.parse(K)}catch{yield*z.sync(()=>v.println(v.Style.TEXT_DANGER+`Error: line ${G} is not valid JSON.`+v.Style.TEXT_NORMAL));return}if(typeof H!=="object"||H===null||Array.isArray(H)){yield*z.sync(()=>v.println(v.Style.TEXT_DANGER+`Error: line ${G} must be a JSON object (got ${H===null?"null":Array.isArray(H)?"array":typeof H}).`+v.Style.TEXT_NORMAL));return}let J=H;if(typeof J.prompt!=="string"||!J.prompt.trim()){yield*z.sync(()=>v.println(v.Style.TEXT_DANGER+`Error: line ${G} must have a non-empty string 'prompt' field.`+v.Style.TEXT_NORMAL));return}let W={prompt:J.prompt};if(typeof J.options==="object"&&J.options!==null&&!Array.isArray(J.options))W.options=J.options;O.push(W)}if(O.length===0){yield*z.sync(()=>v.println(v.Style.TEXT_WARNING+"No prompts found in the file."+v.Style.TEXT_NORMAL));return}yield*z.sync(()=>v.println(v.Style.TEXT_DIM+`Submitting ${O.length} request${O.length===1?"":"s"}\u2026`+v.Style.TEXT_NORMAL));let Q=yield*F(()=>N.resolveSubmitBatch({requests:O}));if(!Q.ok){yield*z.sync(()=>v.println(v.Style.TEXT_DANGER+A(Q.err)+v.Style.TEXT_NORMAL));return}let{batchId:X,status:Y,createdAt:Z,totalCount:_}=Q.value;process.stdout.write(X+`
|
|
4
4
|
`),yield*z.sync(()=>{if(v.println(v.Style.TEXT_SUCCESS+"Batch submitted."+v.Style.TEXT_NORMAL),v.println(" ID: "+v.Style.TEXT_HIGHLIGHT_BOLD+X+v.Style.TEXT_NORMAL),Y)v.println(" Status: "+Y);if(_!==void 0)v.println(" Requests: "+_);if(Z)v.println(" Created: "+v.Style.TEXT_DIM+new Date(Z).toLocaleString()+v.Style.TEXT_NORMAL);v.println(`
|
|
5
5
|
`+v.Style.TEXT_DIM+`Run \`qitqode batch status ${X}\` to check progress.`+v.Style.TEXT_NORMAL)})}).pipe(z.withSpan("batch.submit")),k=(x,D)=>z.gen(function*(){if((yield*S())==="revoked")return;let O=yield*F(()=>N.resolveRetrieveBatch({batchId:x}));if(!O.ok){yield*z.sync(()=>v.println(v.Style.TEXT_DANGER+A(O.err)+v.Style.TEXT_NORMAL));return}let{status:T,results:Q,completedCount:X,totalCount:Y,createdAt:Z,completedAt:_}=O.value,V=T==="completed"?v.Style.TEXT_SUCCESS:T==="failed"?v.Style.TEXT_DANGER:v.Style.TEXT_WARNING;if(yield*z.sync(()=>{v.println(" ID: "+v.Style.TEXT_HIGHLIGHT_BOLD+x+v.Style.TEXT_NORMAL),v.println(" Status: "+V+T+v.Style.TEXT_NORMAL);let K=X??Q?.length;if(Y!==void 0)v.println(" Progress: "+(K??"?")+" / "+Y);if(Z)v.println(" Created: "+v.Style.TEXT_DIM+new Date(Z).toLocaleString()+v.Style.TEXT_NORMAL);if(_)v.println(" Finished: "+v.Style.TEXT_DIM+new Date(_).toLocaleString()+v.Style.TEXT_NORMAL);if(Q&&Q.length>0){v.println(""),v.println(v.Style.TEXT_DIM+" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"+v.Style.TEXT_NORMAL);for(let G of Q){let H=` [${G.index+1}] `;if(G.error)v.println(H+v.Style.TEXT_DANGER+G.error+v.Style.TEXT_NORMAL);else{let J=G.content??"",W=J.length>500?J.slice(0,500)+"\u2026":J;v.println(H+W)}}}else if(T!=="completed"&&T!=="failed")v.println(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{w as
|
|
2
|
+
import{Oq as z,Rq as B}from"./chunk-ehhas0ew.js";import{Gs as D}from"./chunk-m5m448mg.js";import{Yy as r}from"./chunk-gagtmjmp.js";import{OE as R,pH as W,zC as x}from"./chunk-zs8kqdsf.js";var w=x.Reference("~qitqode/InstanceRef",{defaultValue:()=>{return}}),C=x.Reference("~qitqode/WorkspaceRef",{defaultValue:()=>{return}});var V=D.create("instance"),y={async provide(p){return V.provide({workspaceID:p.workspaceID},()=>p.fn())},restore(p,o){return V.provide({workspaceID:p},o)},get workspaceID(){try{return V.use().workspaceID}catch{return}}};var j;function U(p){j=p}function P(){if(!j)throw new D.NotFound("instance");return j()}function H(p,o){if(!o.instance&&!o.workspace)return p;if(!o.instance)return p.pipe(W.provideService(C,o.workspace));if(!o.workspace)return p.pipe(W.provideService(w,o.instance));return p.pipe(W.provideService(w,o.instance),W.provideService(C,o.workspace))}function d(p){try{return H(p,{instance:P(),workspace:y.workspaceID})}catch(o){if(!(o instanceof D.NotFound))throw o}return p}function F(p,o){let G,I=()=>G??=r.make(R.provideMerge(o,z),{memoMap:B});return{runSync:(k)=>I().runSync(d(p.use(k))),runPromiseExit:(k,q)=>I().runPromiseExit(d(p.use(k)),q),runPromise:(k,q)=>I().runPromise(d(p.use(k)),q),runFork:(k)=>I().runFork(d(p.use(k))),runCallback:(k)=>I().runCallback(d(p.use(k)))}}
|
|
3
|
+
export{w as Fq,C as Gq,y as Hq,U as Iq,H as Jq,d as Kq,F as Lq};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Vr as X}from"./chunk-m5m448mg.js";function D(j){return j.parserConfiguration({"populate--":!0}).scriptName("qitqode").wrap(100).help("help","show help").alias("help","h").version("version","show version number",X).alias("version","v").option("print-logs",{describe:"print logs to stderr",type:"boolean"}).option("log-level",{describe:"log level",type:"string",choices:["DEBUG","INFO","WARN","ERROR"]}).option("pure",{describe:"run without external plugins",type:"boolean"})}var H={port:{type:"number",describe:"port to listen on",default:0},hostname:{type:"string",describe:"hostname to listen on",default:"127.0.0.1"},mdns:{type:"boolean",describe:"enable mDNS service discovery (defaults hostname to 0.0.0.0)",default:!1},"mdns-domain":{type:"string",describe:"custom domain name for mDNS service (default: qitqode.local)",default:"qitqode.local"},cors:{type:"string",array:!0,describe:"additional domains to allow for CORS",default:[]},"no-auth":{type:"boolean",describe:"allow starting without authentication on non-loopback addresses (DANGEROUS)",default:!1}};function u(j){return j.options(H)}function F(j,z=process.argv){return z.some((B)=>B===j||B.startsWith(`${j}=`))}function P(j,z=process.argv){return F("--port",z)||F("--hostname",z)||F("--mdns",z)||!!j.mdns||j.port!==0||j.hostname!=="127.0.0.1"}function _(j,z,B=process.argv){let J=F("--port",B),Z=F("--hostname",B),$=F("--mdns",B),q=F("--mdns-domain",B),K=$?j.mdns:z?.server?.mdns??j.mdns,M=q?j["mdns-domain"]:z?.server?.mdnsDomain??j["mdns-domain"],N=J?j.port:z?.server?.port??j.port,U=Z?j.hostname:K&&!z?.server?.hostname?"0.0.0.0":z?.server?.hostname??j.hostname,V=z?.server?.cors??[],Y=Array.isArray(j.cors)?j.cors:j.cors?[j.cors]:[],b=[...V,...Y],A=j["no-auth"];return{hostname:U,port:N,mdns:K,mdnsDomain:M,cors:b,noAuth:A}}var k={model:{type:"string",alias:["m"],describe:"model to use in the format of provider/model"},continue:{alias:["c"],describe:"continue the last session",type:"boolean"},session:{alias:["s"],type:"string",describe:"session id to continue"},fork:{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"},prompt:{type:"string",describe:"prompt to use"},agent:{type:"string",describe:"agent to use"},dark:{type:"boolean",describe:"start in dark theme (overrides saved theme preference for this launch)"},light:{type:"boolean",describe:"start in light theme (overrides saved theme preference for this launch)"},monochrome:{type:"boolean",describe:"start in monochrome accessible rendering \u2014 no color, plain terminal, screen-reader friendly"},headless:{type:"boolean",describe:"headless permissionless mode for AI subagent use \u2014 auto-approves all tool permissions, implies --never-ask"},fullauto:{type:"boolean",describe:"full-auto mode for the interactive TUI \u2014 never asks: starts in build mode, auto-decides questions and auto-approves every tool permission that is not explicitly denied by your config (dangerous!)"},"api-key":{type:"string",describe:"Qortex API key for non-interactive authentication in headless mode (can also be set via $QLEX_API_KEY)"},sso:{type:"boolean",describe:"sign in via SSO device-code flow before starting a headless session \u2014 prints a URL and code, waits for browser approval (requires --headless)"},free:{type:"boolean",describe:"start in Free tier (no cost) \u2014 shorthand for the Free model tier"},default:{type:"boolean",describe:"start in Default tier \u2014 shorthand for the Default model tier"},fast:{type:"boolean",describe:"start in Fast tier \u2014 shorthand for the Fast model tier"},economy:{type:"boolean",describe:"start in Economy tier \u2014 shorthand for the Economy model tier"},power:{type:"boolean",describe:"start in Power tier \u2014 shorthand for the Power model tier"},orchestrated:{type:"boolean",describe:"start in Orchestrated tier \u2014 shorthand for the Orchestrated model tier"}},L=36,W="\x1B[38;5;214m",I="\x1B[0;2m",Q="\x1B[0m";function G(j,z){let B=Math.round(j/100*L),J=`${"\u25A0".repeat(B)}${"\uFF65".repeat(L-B)}`;return`\r${W}${J} ${j.toString().padStart(3)}%${Q} ${I}${z}${Q}`}
|
|
3
3
|
export{D as Mf,H as Nf,u as Of,P as Pf,_ as Qf,k as Rf,G as Sf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{jf as a,kf as b,lf as c,mf as d,nf as e,of as f}from"./chunk-hnzegjgv.js";import"./chunk-2maqde7w.js";import"./chunk-kj20f048.js";import"./chunk-cqtkxwd8.js";import"./chunk-x9rbv6p6.js";import"./chunk-c11d28qn.js";import"./chunk-mzs2pjyc.js";import"./chunk-7xm75w1e.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
|