@bkm016/basalt 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-01fz0kzx.js +2 -0
- package/chunk-06k5mcmy.js +4018 -0
- package/chunk-14pg1g7b.js +2 -0
- package/chunk-1cvzbvsq.js +2 -0
- package/chunk-1pgj58dw.js +20 -0
- package/chunk-200cn72d.js +16 -0
- package/chunk-2nd8hvf3.js +31 -0
- package/chunk-39wsmkd7.js +4 -0
- package/chunk-54qc1d5t.js +2 -0
- package/chunk-59enxka6.js +50 -0
- package/chunk-5fs3331q.js +3 -0
- package/chunk-674kjaqz.js +2 -0
- package/chunk-6pqsx156.js +12 -0
- package/chunk-6rw1ex78.js +2 -0
- package/chunk-6vz0znf6.js +8 -0
- package/chunk-73z1fv3d.js +9 -0
- package/chunk-7dnq7g8f.js +3 -0
- package/chunk-7emc0sy7.js +11 -0
- package/chunk-7nsrfrmx.js +2 -0
- package/chunk-8hxsap9d.js +5 -0
- package/chunk-8kmtns4v.js +5 -0
- package/chunk-9dy56agy.js +51 -0
- package/chunk-9mt2k1a7.js +5 -0
- package/chunk-9sq7yxh7.js +12 -0
- package/chunk-9x1yprjh.js +2 -0
- package/chunk-a5k24aj6.js +3 -0
- package/chunk-ades3qy7.js +10 -0
- package/chunk-ag642nqs.js +8 -0
- package/chunk-av3zmcd8.js +3 -0
- package/chunk-b1hdfsj4.js +25 -0
- package/chunk-b5448t3j.js +2 -0
- package/chunk-b6rvzkxg.js +3 -0
- package/chunk-b8acka7e.js +2 -0
- package/chunk-bh680te4.js +2 -0
- package/chunk-cb4rvanv.js +2 -0
- package/chunk-d6hcvbkh.js +3 -0
- package/chunk-dqxks09b.js +3 -0
- package/chunk-eg161ep9.js +3 -0
- package/chunk-exjytvzn.js +2 -0
- package/chunk-f6kg68bj.js +3 -0
- package/chunk-fcxdq1dy.js +7 -0
- package/chunk-fkjjadt4.js +3 -0
- package/chunk-fr1zvytp.js +7 -0
- package/chunk-fx3cc8nr.js +3 -0
- package/chunk-hvxc1wyv.js +3 -0
- package/chunk-j24fq8ss.js +2 -0
- package/chunk-j55tyjct.js +2 -0
- package/chunk-jn0dhvkp.js +2 -0
- package/chunk-k9dw37w2.js +3 -0
- package/chunk-m6bm0739.js +2 -0
- package/chunk-mkfdzt82.js +2 -0
- package/chunk-nbm1tqvg.js +3 -0
- package/chunk-p5ga5as0.js +25 -0
- package/chunk-pmefr1ak.js +490 -0
- package/chunk-r49sxmnc.js +3 -0
- package/chunk-rf6t7zeb.js +286 -0
- package/chunk-s0ne3yb9.js +2 -0
- package/chunk-s8ybq82n.js +5 -0
- package/chunk-spv39wem.js +7 -0
- package/chunk-stgqqm7m.js +59 -0
- package/chunk-sykaz5bf.js +18 -0
- package/chunk-sz0jywpb.js +39 -0
- package/chunk-vcngwaee.js +3 -0
- package/chunk-vpvznxf4.js +3 -0
- package/chunk-vzh6e5f2.js +2 -0
- package/chunk-wkvrtjtc.js +2 -0
- package/chunk-wzd9b2qk.js +2 -0
- package/chunk-x1cva1gc.js +2 -0
- package/chunk-x83jcg3x.js +3 -0
- package/chunk-xdyee71m.js +10 -0
- package/chunk-xdygdssk.js +3 -0
- package/chunk-xjcg6cxc.js +3 -0
- package/chunk-xran6f0c.js +2 -0
- package/chunk-ymn1s2xs.js +3 -0
- package/chunk-ysqx0ye8.js +2 -0
- package/chunk-z58jafcm.js +3 -0
- package/chunk-zf1c6rj7.js +63 -0
- package/chunk-zgtahh10.js +44 -0
- package/compiled.js +11 -11
- package/package.json +1 -1
- package/ui-test-worker.js +79 -77
- package/web/chunk-0nt1mz09.js +1 -0
- package/web/chunk-0nt1mz09.js.br +0 -0
- package/web/chunk-0nt1mz09.js.gz +0 -0
- package/web/chunk-0yye7ex1.js +1 -0
- package/web/chunk-0yye7ex1.js.br +0 -0
- package/web/chunk-0yye7ex1.js.gz +0 -0
- package/web/chunk-1pffd2va.js +2 -0
- package/web/chunk-1pffd2va.js.br +0 -0
- package/web/chunk-1pffd2va.js.gz +0 -0
- package/web/chunk-368znnfs.js +1 -0
- package/web/chunk-368znnfs.js.br +0 -0
- package/web/chunk-368znnfs.js.gz +0 -0
- package/web/chunk-3tx9tqfb.js +291 -0
- package/web/chunk-3tx9tqfb.js.br +0 -0
- package/web/chunk-3tx9tqfb.js.gz +0 -0
- package/web/chunk-46ht4dh6.js +24 -0
- package/web/chunk-46ht4dh6.js.br +0 -0
- package/web/chunk-46ht4dh6.js.gz +0 -0
- package/web/chunk-4c418rk9.js +1 -0
- package/web/chunk-4c418rk9.js.br +2 -0
- package/web/chunk-4c418rk9.js.gz +0 -0
- package/web/chunk-4p0sm8e7.js +7 -0
- package/web/chunk-4p0sm8e7.js.br +0 -0
- package/web/chunk-4p0sm8e7.js.gz +0 -0
- package/web/chunk-4zam960g.js +1 -0
- package/web/chunk-4zam960g.js.br +0 -0
- package/web/chunk-4zam960g.js.gz +0 -0
- package/web/chunk-5h63t21g.js +1 -0
- package/web/chunk-5h63t21g.js.br +0 -0
- package/web/chunk-5h63t21g.js.gz +0 -0
- package/web/chunk-5h7xm5mn.js +1 -0
- package/web/chunk-5h7xm5mn.js.br +0 -0
- package/web/chunk-5h7xm5mn.js.gz +0 -0
- package/web/chunk-6crex674.js +89 -0
- package/web/chunk-6crex674.js.br +0 -0
- package/web/chunk-6crex674.js.gz +0 -0
- package/web/chunk-6v031vc6.js +21 -0
- package/web/chunk-6v031vc6.js.br +0 -0
- package/web/chunk-6v031vc6.js.gz +0 -0
- package/web/chunk-782gfmtk.js +38 -0
- package/web/chunk-782gfmtk.js.br +0 -0
- package/web/chunk-782gfmtk.js.gz +0 -0
- package/web/chunk-7a6szg06.js +2 -0
- package/web/chunk-7a6szg06.js.br +0 -0
- package/web/chunk-7a6szg06.js.gz +0 -0
- package/web/chunk-7dvbxn34.js +4 -0
- package/web/chunk-7dvbxn34.js.br +0 -0
- package/web/chunk-7dvbxn34.js.gz +0 -0
- package/web/chunk-7g795nba.js +1 -0
- package/web/chunk-7g795nba.js.br +2 -0
- package/web/chunk-7g795nba.js.gz +0 -0
- package/web/chunk-8fymhvne.js +1 -0
- package/web/chunk-8fymhvne.js.br +0 -0
- package/web/chunk-8fymhvne.js.gz +0 -0
- package/web/chunk-8kcp1h63.js +1 -0
- package/web/chunk-8kcp1h63.js.br +0 -0
- package/web/chunk-8kcp1h63.js.gz +0 -0
- package/web/chunk-8vtr60yn.js +2 -0
- package/web/chunk-8vtr60yn.js.br +0 -0
- package/web/chunk-8vtr60yn.js.gz +0 -0
- package/web/chunk-8y14zggg.js +2 -0
- package/web/chunk-8y14zggg.js.br +0 -0
- package/web/chunk-8y14zggg.js.gz +0 -0
- package/web/chunk-8zg840m3.js +1 -0
- package/web/chunk-8zg840m3.js.br +0 -0
- package/web/chunk-8zg840m3.js.gz +0 -0
- package/web/chunk-940sc4ny.js +7 -0
- package/web/chunk-940sc4ny.js.br +0 -0
- package/web/chunk-940sc4ny.js.gz +0 -0
- package/web/chunk-94f4sz0m.js +1 -0
- package/web/chunk-94f4sz0m.js.br +0 -0
- package/web/chunk-94f4sz0m.js.gz +0 -0
- package/web/chunk-94jy9s3n.js +55 -0
- package/web/chunk-94jy9s3n.js.br +0 -0
- package/web/chunk-94jy9s3n.js.gz +0 -0
- package/web/chunk-97qfkg6n.js +30 -0
- package/web/chunk-97qfkg6n.js.br +0 -0
- package/web/chunk-97qfkg6n.js.gz +0 -0
- package/web/chunk-99mgkmjb.js +62 -0
- package/web/chunk-99mgkmjb.js.br +0 -0
- package/web/chunk-99mgkmjb.js.gz +0 -0
- package/web/chunk-9afn27bs.js +1 -0
- package/web/chunk-9afn27bs.js.br +2 -0
- package/web/chunk-9afn27bs.js.gz +0 -0
- package/web/chunk-aw4h94zp.js +1 -0
- package/web/chunk-aw4h94zp.js.br +0 -0
- package/web/chunk-aw4h94zp.js.gz +0 -0
- package/web/chunk-azdhgj11.js +40 -0
- package/web/chunk-azdhgj11.js.br +0 -0
- package/web/chunk-azdhgj11.js.gz +0 -0
- package/web/chunk-batey85v.js +2 -0
- package/web/chunk-batey85v.js.br +0 -0
- package/web/chunk-batey85v.js.gz +0 -0
- package/web/chunk-brbxfap5.js +99 -0
- package/web/chunk-brbxfap5.js.br +0 -0
- package/web/chunk-brbxfap5.js.gz +0 -0
- package/web/chunk-bxc8a663.js +2 -0
- package/web/chunk-bxc8a663.js.br +0 -0
- package/web/chunk-bxc8a663.js.gz +0 -0
- package/web/chunk-c2t7zyge.js +169 -0
- package/web/chunk-c2t7zyge.js.br +0 -0
- package/web/chunk-c2t7zyge.js.gz +0 -0
- package/web/chunk-c5bfa3rp.js +1 -0
- package/web/chunk-c5bfa3rp.js.br +0 -0
- package/web/chunk-c5bfa3rp.js.gz +0 -0
- package/web/chunk-c86a6am5.js +2 -0
- package/web/chunk-c86a6am5.js.br +3 -0
- package/web/chunk-c86a6am5.js.gz +0 -0
- package/web/chunk-dgtp38mj.js +1 -0
- package/web/chunk-dgtp38mj.js.br +0 -0
- package/web/chunk-dgtp38mj.js.gz +0 -0
- package/web/chunk-e4h4dg4y.js +303 -0
- package/web/chunk-e4h4dg4y.js.br +0 -0
- package/web/chunk-e4h4dg4y.js.gz +0 -0
- package/web/chunk-e5f8e2ta.js +1 -0
- package/web/chunk-e5f8e2ta.js.br +0 -0
- package/web/chunk-e5f8e2ta.js.gz +0 -0
- package/web/chunk-e7rwnv7e.js +1 -0
- package/web/chunk-e7rwnv7e.js.br +0 -0
- package/web/chunk-e7rwnv7e.js.gz +0 -0
- package/web/chunk-ef9tqrz4.js +324 -0
- package/web/chunk-ef9tqrz4.js.br +0 -0
- package/web/chunk-ef9tqrz4.js.gz +0 -0
- package/web/chunk-ekcnhcm0.js +1 -0
- package/web/chunk-ekcnhcm0.js.br +0 -0
- package/web/chunk-ekcnhcm0.js.gz +0 -0
- package/web/chunk-ekkdhece.js +41 -0
- package/web/chunk-ekkdhece.js.br +0 -0
- package/web/chunk-ekkdhece.js.gz +0 -0
- package/web/chunk-enbqe508.js +36 -0
- package/web/chunk-enbqe508.js.br +0 -0
- package/web/chunk-enbqe508.js.gz +0 -0
- package/web/chunk-ev517x0c.js +1 -0
- package/web/chunk-ev517x0c.js.br +0 -0
- package/web/chunk-ev517x0c.js.gz +0 -0
- package/web/chunk-ex47jeev.js +1 -0
- package/web/chunk-ex47jeev.js.br +0 -0
- package/web/chunk-ex47jeev.js.gz +0 -0
- package/web/chunk-ft9p7cr8.js +8 -0
- package/web/chunk-ft9p7cr8.js.br +0 -0
- package/web/chunk-ft9p7cr8.js.gz +0 -0
- package/web/chunk-fybmc8p1.js +1 -0
- package/web/chunk-fybmc8p1.js.br +0 -0
- package/web/chunk-fybmc8p1.js.gz +0 -0
- package/web/chunk-g6e50kx0.js +3 -0
- package/web/chunk-g6e50kx0.js.br +0 -0
- package/web/chunk-g6e50kx0.js.gz +0 -0
- package/web/chunk-g6grehr5.css +1 -0
- package/web/chunk-g6grehr5.css.br +0 -0
- package/web/chunk-g6grehr5.css.gz +0 -0
- package/web/chunk-gbzfq3rg.js +332 -0
- package/web/chunk-gbzfq3rg.js.br +0 -0
- package/web/chunk-gbzfq3rg.js.gz +0 -0
- package/web/chunk-gsg8yq3m.js +1 -0
- package/web/chunk-gsg8yq3m.js.br +0 -0
- package/web/chunk-gsg8yq3m.js.gz +0 -0
- package/web/chunk-hgcgbxns.js +1 -0
- package/web/chunk-hgcgbxns.js.br +0 -0
- package/web/chunk-hgcgbxns.js.gz +0 -0
- package/web/chunk-hh8ck7sy.js +2 -0
- package/web/chunk-hh8ck7sy.js.br +0 -0
- package/web/chunk-hh8ck7sy.js.gz +0 -0
- package/web/chunk-hj18pw9f.js +2 -0
- package/web/chunk-hj18pw9f.js.br +0 -0
- package/web/chunk-hj18pw9f.js.gz +0 -0
- package/web/chunk-hk4jd2qq.js +24 -0
- package/web/chunk-hk4jd2qq.js.br +0 -0
- package/web/chunk-hk4jd2qq.js.gz +0 -0
- package/web/chunk-hrnx1576.js +4 -0
- package/web/chunk-hrnx1576.js.br +0 -0
- package/web/chunk-hrnx1576.js.gz +0 -0
- package/web/chunk-j0ns5dyq.js +120 -0
- package/web/chunk-j0ns5dyq.js.br +0 -0
- package/web/chunk-j0ns5dyq.js.gz +0 -0
- package/web/chunk-j21a7pd1.js +1 -0
- package/web/chunk-j21a7pd1.js.br +0 -0
- package/web/chunk-j21a7pd1.js.gz +0 -0
- package/web/chunk-jbejy8k3.js +1139 -0
- package/web/chunk-jbejy8k3.js.br +0 -0
- package/web/chunk-jbejy8k3.js.gz +0 -0
- package/web/chunk-jeq99z4t.js +70 -0
- package/web/chunk-jeq99z4t.js.br +0 -0
- package/web/chunk-jeq99z4t.js.gz +0 -0
- package/web/chunk-jqq07zta.js +1 -0
- package/web/chunk-jqq07zta.js.br +0 -0
- package/web/chunk-jqq07zta.js.gz +0 -0
- package/web/chunk-k6m37v6k.js +1 -0
- package/web/chunk-k6m37v6k.js.br +0 -0
- package/web/chunk-k6m37v6k.js.gz +0 -0
- package/web/chunk-kajk2w5j.js +217 -0
- package/web/chunk-kajk2w5j.js.br +0 -0
- package/web/chunk-kajk2w5j.js.gz +0 -0
- package/web/chunk-kcrypnnf.js +1 -0
- package/web/chunk-kcrypnnf.js.br +0 -0
- package/web/chunk-kcrypnnf.js.gz +0 -0
- package/web/chunk-kyksv8an.js +1 -0
- package/web/chunk-kyksv8an.js.br +2 -0
- package/web/chunk-kyksv8an.js.gz +0 -0
- package/web/chunk-mkhcq6z6.js +1 -0
- package/web/chunk-mkhcq6z6.js.br +0 -0
- package/web/chunk-mkhcq6z6.js.gz +0 -0
- package/web/chunk-mytypet0.js +2 -0
- package/web/chunk-mytypet0.js.br +0 -0
- package/web/chunk-mytypet0.js.gz +0 -0
- package/web/chunk-mzb086jr.js +1 -0
- package/web/chunk-mzb086jr.js.br +0 -0
- package/web/chunk-mzb086jr.js.gz +0 -0
- package/web/chunk-mzevfdmp.js +1 -0
- package/web/chunk-mzevfdmp.js.br +0 -0
- package/web/chunk-mzevfdmp.js.gz +0 -0
- package/web/chunk-n7c5sndg.js +1 -0
- package/web/chunk-n7c5sndg.js.br +0 -0
- package/web/chunk-n7c5sndg.js.gz +0 -0
- package/web/chunk-ned200k0.js +84 -0
- package/web/chunk-ned200k0.js.br +0 -0
- package/web/chunk-ned200k0.js.gz +0 -0
- package/web/chunk-ngcd5a3c.js +1 -0
- package/web/chunk-ngcd5a3c.js.br +0 -0
- package/web/chunk-ngcd5a3c.js.gz +0 -0
- package/web/chunk-nx14h1a6.js +1 -0
- package/web/chunk-nx14h1a6.js.br +0 -0
- package/web/chunk-nx14h1a6.js.gz +0 -0
- package/web/chunk-p3fv7nbz.js +1 -0
- package/web/chunk-p3fv7nbz.js.br +0 -0
- package/web/chunk-p3fv7nbz.js.gz +0 -0
- package/web/chunk-pktgtyf6.js +1 -0
- package/web/chunk-pktgtyf6.js.br +0 -0
- package/web/chunk-pktgtyf6.js.gz +0 -0
- package/web/chunk-pm504vps.js +89 -0
- package/web/chunk-pm504vps.js.br +0 -0
- package/web/chunk-pm504vps.js.gz +0 -0
- package/web/chunk-pnvkphs0.js +12 -0
- package/web/chunk-pnvkphs0.js.br +0 -0
- package/web/chunk-pnvkphs0.js.gz +0 -0
- package/web/chunk-ptvshaa0.js +2 -0
- package/web/chunk-ptvshaa0.js.br +0 -0
- package/web/chunk-ptvshaa0.js.gz +0 -0
- package/web/chunk-py4737sc.js +39 -0
- package/web/chunk-py4737sc.js.br +0 -0
- package/web/chunk-py4737sc.js.gz +0 -0
- package/web/chunk-pz5wcbdv.js +139 -0
- package/web/chunk-pz5wcbdv.js.br +0 -0
- package/web/chunk-pz5wcbdv.js.gz +0 -0
- package/web/chunk-q467b529.js +1 -0
- package/web/chunk-q467b529.js.br +0 -0
- package/web/chunk-q467b529.js.gz +0 -0
- package/web/chunk-qbvbfpx8.js +1 -0
- package/web/chunk-qbvbfpx8.js.br +0 -0
- package/web/chunk-qbvbfpx8.js.gz +0 -0
- package/web/chunk-qgfc4ptt.js +7 -0
- package/web/chunk-qgfc4ptt.js.br +0 -0
- package/web/chunk-qgfc4ptt.js.gz +0 -0
- package/web/chunk-qmmss130.js +2 -0
- package/web/chunk-qmmss130.js.br +0 -0
- package/web/chunk-qmmss130.js.gz +0 -0
- package/web/chunk-qqrzr444.js +2 -0
- package/web/chunk-qqrzr444.js.br +0 -0
- package/web/chunk-qqrzr444.js.gz +0 -0
- package/web/chunk-r2fjprkk.js +1 -0
- package/web/chunk-r2fjprkk.js.br +0 -0
- package/web/chunk-r2fjprkk.js.gz +0 -0
- package/web/chunk-rcn21n5e.js +214 -0
- package/web/chunk-rcn21n5e.js.br +0 -0
- package/web/chunk-rcn21n5e.js.gz +0 -0
- package/web/chunk-rpnw9xwe.js +1 -0
- package/web/chunk-rpnw9xwe.js.br +0 -0
- package/web/chunk-rpnw9xwe.js.gz +0 -0
- package/web/chunk-rv5h4d8w.js +1 -0
- package/web/chunk-rv5h4d8w.js.br +0 -0
- package/web/chunk-rv5h4d8w.js.gz +0 -0
- package/web/chunk-s8e8gzvn.js +16 -0
- package/web/chunk-s8e8gzvn.js.br +0 -0
- package/web/chunk-s8e8gzvn.js.gz +0 -0
- package/web/chunk-sa57mndb.js +1 -0
- package/web/chunk-sa57mndb.js.br +0 -0
- package/web/chunk-sa57mndb.js.gz +0 -0
- package/web/chunk-sc90h9bd.js +2 -0
- package/web/chunk-sc90h9bd.js.br +0 -0
- package/web/chunk-sc90h9bd.js.gz +0 -0
- package/web/chunk-t44qa4yt.js +200 -0
- package/web/chunk-t44qa4yt.js.br +0 -0
- package/web/chunk-t44qa4yt.js.gz +0 -0
- package/web/chunk-t8b8cdak.js +2 -0
- package/web/chunk-t8b8cdak.js.br +0 -0
- package/web/chunk-t8b8cdak.js.gz +0 -0
- package/web/chunk-t9cgbcf2.js +1 -0
- package/web/chunk-t9cgbcf2.js.br +0 -0
- package/web/chunk-t9cgbcf2.js.gz +0 -0
- package/web/chunk-tk8kf0bf.js +2 -0
- package/web/chunk-tk8kf0bf.js.br +0 -0
- package/web/chunk-tk8kf0bf.js.gz +0 -0
- package/web/chunk-tt3v857c.js +106 -0
- package/web/chunk-tt3v857c.js.br +0 -0
- package/web/chunk-tt3v857c.js.gz +0 -0
- package/web/chunk-vjnmqaam.js +2 -0
- package/web/chunk-vjnmqaam.js.br +0 -0
- package/web/chunk-vjnmqaam.js.gz +0 -0
- package/web/chunk-vp5qf59s.js +1 -0
- package/web/chunk-vp5qf59s.js.br +0 -0
- package/web/chunk-vp5qf59s.js.gz +0 -0
- package/web/chunk-wrax5wt5.js +292 -0
- package/web/chunk-wrax5wt5.js.br +0 -0
- package/web/chunk-wrax5wt5.js.gz +0 -0
- package/web/chunk-xk8637wb.js +1 -0
- package/web/chunk-xk8637wb.js.br +0 -0
- package/web/chunk-xk8637wb.js.gz +0 -0
- package/web/chunk-yarejzzs.js +142 -0
- package/web/chunk-yarejzzs.js.br +0 -0
- package/web/chunk-yarejzzs.js.gz +0 -0
- package/web/chunk-yg6ys554.js +1 -0
- package/web/chunk-yg6ys554.js.br +0 -0
- package/web/chunk-yg6ys554.js.gz +0 -0
- package/web/chunk-yq6xkb5w.js +370 -0
- package/web/chunk-yq6xkb5w.js.br +0 -0
- package/web/chunk-yq6xkb5w.js.gz +0 -0
- package/web/chunk-yw98mr7e.js +2 -0
- package/web/chunk-yw98mr7e.js.br +0 -0
- package/web/chunk-yw98mr7e.js.gz +0 -0
- package/web/chunk-z07kf12w.js +78 -0
- package/web/chunk-z07kf12w.js.br +0 -0
- package/web/chunk-z07kf12w.js.gz +0 -0
- package/web/chunk-z5sk390b.js +2 -0
- package/web/chunk-z5sk390b.js.br +0 -0
- package/web/chunk-z5sk390b.js.gz +0 -0
- package/web/chunk-zh2szkjy.js +140 -0
- package/web/chunk-zh2szkjy.js.br +0 -0
- package/web/chunk-zh2szkjy.js.gz +0 -0
- package/web/chunk-zrmm67mx.js +34 -0
- package/web/chunk-zrmm67mx.js.br +0 -0
- package/web/chunk-zrmm67mx.js.gz +0 -0
- package/web/chunk-zyfr25n1.js +98 -0
- package/web/chunk-zyfr25n1.js.br +0 -0
- package/web/chunk-zyfr25n1.js.gz +0 -0
- package/web/chunk-zykkmwba.js +2 -0
- package/web/chunk-zykkmwba.js.br +0 -0
- package/web/chunk-zykkmwba.js.gz +0 -0
- package/web/chunk-zzs4h31m.js +2 -0
- package/web/chunk-zzs4h31m.js.br +0 -0
- package/web/chunk-zzs4h31m.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-00jhevnt.js +0 -3
- package/chunk-04tx0etc.js +0 -2
- package/chunk-0r86p29p.js +0 -7
- package/chunk-10x1zefx.js +0 -25
- package/chunk-1amcz1cz.js +0 -10
- package/chunk-1pfdps04.js +0 -2
- package/chunk-206g40v9.js +0 -59
- package/chunk-2364s958.js +0 -7
- package/chunk-3fv2qcpg.js +0 -12
- package/chunk-3zz4a5tn.js +0 -31
- package/chunk-45wfmdts.js +0 -44
- package/chunk-4hkwjw05.js +0 -2
- package/chunk-4pq7ycp2.js +0 -5
- package/chunk-5e0qfdgx.js +0 -5
- package/chunk-7hpf9qq2.js +0 -3
- package/chunk-82dkdvs9.js +0 -2
- package/chunk-8913dkey.js +0 -3
- package/chunk-8g1sbmwf.js +0 -3
- package/chunk-8hfch7d0.js +0 -2
- package/chunk-90arpvgz.js +0 -2
- package/chunk-912knnfg.js +0 -11
- package/chunk-97bazdk3.js +0 -20
- package/chunk-9akexjfn.js +0 -2
- package/chunk-9dgmbwcc.js +0 -2
- package/chunk-acd2cwza.js +0 -3
- package/chunk-ach16jbw.js +0 -2
- package/chunk-ax823t5v.js +0 -3
- package/chunk-b03hg30w.js +0 -2
- package/chunk-bh29df86.js +0 -5
- package/chunk-bhpg72c4.js +0 -2
- package/chunk-bwww6j2q.js +0 -2
- package/chunk-c126k8wc.js +0 -2
- package/chunk-cb3jgak9.js +0 -3
- package/chunk-cjeyy6da.js +0 -3
- package/chunk-cs4gb2hb.js +0 -2
- package/chunk-en5t6hwd.js +0 -3
- package/chunk-f4n1csz0.js +0 -3
- package/chunk-j16smb6d.js +0 -2
- package/chunk-j7eqp97m.js +0 -2
- package/chunk-jdrqn8m1.js +0 -2
- package/chunk-jp1gqkbp.js +0 -4
- package/chunk-jrcvxscb.js +0 -9
- package/chunk-jxcghx26.js +0 -50
- package/chunk-k8zq95wr.js +0 -2
- package/chunk-ken7ras9.js +0 -8
- package/chunk-kqgpjmcf.js +0 -2
- package/chunk-krbdx24j.js +0 -3
- package/chunk-ky2ym708.js +0 -8
- package/chunk-kzfy666j.js +0 -16
- package/chunk-n0stnnxv.js +0 -2
- package/chunk-n9m2pagh.js +0 -2
- package/chunk-nedvy6yk.js +0 -10
- package/chunk-ng5g0fy3.js +0 -3
- package/chunk-nqeqasyt.js +0 -7
- package/chunk-nt30x5a7.js +0 -3
- package/chunk-q1s5r204.js +0 -3
- package/chunk-qj0vfk01.js +0 -2
- package/chunk-qqfdg01g.js +0 -3
- package/chunk-rj6qknjx.js +0 -12
- package/chunk-rvrj0nrs.js +0 -3
- package/chunk-sbhj5h2q.js +0 -2
- package/chunk-t71zzafh.js +0 -3
- package/chunk-t7fwvzmh.js +0 -3
- package/chunk-tpv5hz99.js +0 -5
- package/chunk-tx2rrrtq.js +0 -2
- package/chunk-tyzzbhr5.js +0 -3
- package/chunk-tzbefwf0.js +0 -286
- package/chunk-v4p8807b.js +0 -18
- package/chunk-vnxjcym9.js +0 -17
- package/chunk-w35r8v6x.js +0 -39
- package/chunk-wbygknv2.js +0 -3
- package/chunk-wk63htqy.js +0 -2
- package/chunk-wwazj6mz.js +0 -3
- package/chunk-x3g1bzq6.js +0 -51
- package/chunk-xpc75mkw.js +0 -25
- package/chunk-ydhdewcv.js +0 -4014
- package/chunk-ypxn8bec.js +0 -3
- package/chunk-yztc2q9q.js +0 -490
- package/web/chunk-00a6amwf.js +0 -1
- package/web/chunk-00a6amwf.js.br +0 -0
- package/web/chunk-00a6amwf.js.gz +0 -0
- package/web/chunk-023b3kdx.js +0 -214
- package/web/chunk-023b3kdx.js.br +0 -0
- package/web/chunk-023b3kdx.js.gz +0 -0
- package/web/chunk-1bzdt1n8.js +0 -1
- package/web/chunk-1bzdt1n8.js.br +0 -2
- package/web/chunk-1bzdt1n8.js.gz +0 -0
- package/web/chunk-1fnxbfkf.js +0 -139
- package/web/chunk-1fnxbfkf.js.br +0 -0
- package/web/chunk-1fnxbfkf.js.gz +0 -0
- package/web/chunk-1qd75yjn.js +0 -2
- package/web/chunk-1qd75yjn.js.br +0 -0
- package/web/chunk-1qd75yjn.js.gz +0 -0
- package/web/chunk-20v068s6.js +0 -1
- package/web/chunk-20v068s6.js.br +0 -0
- package/web/chunk-20v068s6.js.gz +0 -0
- package/web/chunk-22jfhjk3.js +0 -2
- package/web/chunk-22jfhjk3.js.br +0 -0
- package/web/chunk-22jfhjk3.js.gz +0 -0
- package/web/chunk-37hn49td.js +0 -2
- package/web/chunk-37hn49td.js.br +0 -0
- package/web/chunk-37hn49td.js.gz +0 -0
- package/web/chunk-3crfxxst.js +0 -21
- package/web/chunk-3crfxxst.js.br +0 -0
- package/web/chunk-3crfxxst.js.gz +0 -0
- package/web/chunk-3hg9a6xa.js +0 -1
- package/web/chunk-3hg9a6xa.js.br +0 -0
- package/web/chunk-3hg9a6xa.js.gz +0 -0
- package/web/chunk-3m2nnnk5.js +0 -1
- package/web/chunk-3m2nnnk5.js.br +0 -0
- package/web/chunk-3m2nnnk5.js.gz +0 -0
- package/web/chunk-3ry5cjnp.js +0 -169
- package/web/chunk-3ry5cjnp.js.br +0 -0
- package/web/chunk-3ry5cjnp.js.gz +0 -0
- package/web/chunk-407zrkgx.js +0 -40
- package/web/chunk-407zrkgx.js.br +0 -0
- package/web/chunk-407zrkgx.js.gz +0 -0
- package/web/chunk-43e1ste5.js +0 -1
- package/web/chunk-43e1ste5.js.br +0 -0
- package/web/chunk-43e1ste5.js.gz +0 -0
- package/web/chunk-45ex0e3e.js +0 -2
- package/web/chunk-45ex0e3e.js.br +0 -0
- package/web/chunk-45ex0e3e.js.gz +0 -0
- package/web/chunk-508cpafz.js +0 -142
- package/web/chunk-508cpafz.js.br +0 -0
- package/web/chunk-508cpafz.js.gz +0 -0
- package/web/chunk-538r4sey.js +0 -1
- package/web/chunk-538r4sey.js.br +0 -0
- package/web/chunk-538r4sey.js.gz +0 -0
- package/web/chunk-55zs0yq1.js +0 -1
- package/web/chunk-55zs0yq1.js.br +0 -0
- package/web/chunk-55zs0yq1.js.gz +0 -0
- package/web/chunk-58gh3tbh.js +0 -34
- package/web/chunk-58gh3tbh.js.br +0 -0
- package/web/chunk-58gh3tbh.js.gz +0 -0
- package/web/chunk-5h3r1hpg.js +0 -89
- package/web/chunk-5h3r1hpg.js.br +0 -0
- package/web/chunk-5h3r1hpg.js.gz +0 -0
- package/web/chunk-68q4nnmc.js +0 -2
- package/web/chunk-68q4nnmc.js.br +0 -3
- package/web/chunk-68q4nnmc.js.gz +0 -0
- package/web/chunk-6ktmzq32.js +0 -16
- package/web/chunk-6ktmzq32.js.br +0 -0
- package/web/chunk-6ktmzq32.js.gz +0 -0
- package/web/chunk-6ry6x1ez.js +0 -1
- package/web/chunk-6ry6x1ez.js.br +0 -0
- package/web/chunk-6ry6x1ez.js.gz +0 -0
- package/web/chunk-6wxxypbv.js +0 -7
- package/web/chunk-6wxxypbv.js.br +0 -0
- package/web/chunk-6wxxypbv.js.gz +0 -0
- package/web/chunk-6x9r1z9z.js +0 -291
- package/web/chunk-6x9r1z9z.js.br +0 -0
- package/web/chunk-6x9r1z9z.js.gz +0 -0
- package/web/chunk-719tz8xw.js +0 -1
- package/web/chunk-719tz8xw.js.br +0 -0
- package/web/chunk-719tz8xw.js.gz +0 -0
- package/web/chunk-7devrtv4.js +0 -2
- package/web/chunk-7devrtv4.js.br +0 -3
- package/web/chunk-7devrtv4.js.gz +0 -0
- package/web/chunk-7rs26q98.js +0 -2
- package/web/chunk-7rs26q98.js.br +0 -0
- package/web/chunk-7rs26q98.js.gz +0 -0
- package/web/chunk-82aqq58f.js +0 -24
- package/web/chunk-82aqq58f.js.br +0 -0
- package/web/chunk-82aqq58f.js.gz +0 -0
- package/web/chunk-96n00vam.js +0 -1
- package/web/chunk-96n00vam.js.br +0 -0
- package/web/chunk-96n00vam.js.gz +0 -0
- package/web/chunk-a11ev6ff.js +0 -1
- package/web/chunk-a11ev6ff.js.br +0 -0
- package/web/chunk-a11ev6ff.js.gz +0 -0
- package/web/chunk-a1cpkzwh.js +0 -2
- package/web/chunk-a1cpkzwh.js.br +0 -0
- package/web/chunk-a1cpkzwh.js.gz +0 -0
- package/web/chunk-a31z4c14.js +0 -4
- package/web/chunk-a31z4c14.js.br +0 -0
- package/web/chunk-a31z4c14.js.gz +0 -0
- package/web/chunk-b07y0tzq.js +0 -1
- package/web/chunk-b07y0tzq.js.br +0 -0
- package/web/chunk-b07y0tzq.js.gz +0 -0
- package/web/chunk-b4d1948q.js +0 -62
- package/web/chunk-b4d1948q.js.br +0 -0
- package/web/chunk-b4d1948q.js.gz +0 -0
- package/web/chunk-btk2h3vh.js +0 -36
- package/web/chunk-btk2h3vh.js.br +0 -0
- package/web/chunk-btk2h3vh.js.gz +0 -0
- package/web/chunk-bw9crrb4.js +0 -1
- package/web/chunk-bw9crrb4.js.br +0 -0
- package/web/chunk-bw9crrb4.js.gz +0 -0
- package/web/chunk-c1s7faqj.js +0 -2
- package/web/chunk-c1s7faqj.js.br +0 -0
- package/web/chunk-c1s7faqj.js.gz +0 -0
- package/web/chunk-c3d08dw1.js +0 -1
- package/web/chunk-c3d08dw1.js.br +0 -0
- package/web/chunk-c3d08dw1.js.gz +0 -0
- package/web/chunk-cgt871p9.js +0 -1
- package/web/chunk-cgt871p9.js.br +0 -0
- package/web/chunk-cgt871p9.js.gz +0 -0
- package/web/chunk-crfbqd4d.js +0 -2
- package/web/chunk-crfbqd4d.js.br +0 -0
- package/web/chunk-crfbqd4d.js.gz +0 -0
- package/web/chunk-ctr4kt7p.js +0 -332
- package/web/chunk-ctr4kt7p.js.br +0 -0
- package/web/chunk-ctr4kt7p.js.gz +0 -0
- package/web/chunk-cys4n4sv.js +0 -1
- package/web/chunk-cys4n4sv.js.br +0 -0
- package/web/chunk-cys4n4sv.js.gz +0 -0
- package/web/chunk-d6wcabaa.css +0 -1
- package/web/chunk-d6wcabaa.css.br +0 -0
- package/web/chunk-d6wcabaa.css.gz +0 -0
- package/web/chunk-d7nrrcwp.js +0 -38
- package/web/chunk-d7nrrcwp.js.br +0 -0
- package/web/chunk-d7nrrcwp.js.gz +0 -0
- package/web/chunk-df9ja645.js +0 -1
- package/web/chunk-df9ja645.js.br +0 -0
- package/web/chunk-df9ja645.js.gz +0 -0
- package/web/chunk-dhxc6xe9.js +0 -1
- package/web/chunk-dhxc6xe9.js.br +0 -2
- package/web/chunk-dhxc6xe9.js.gz +0 -0
- package/web/chunk-dy2egpw5.js +0 -12
- package/web/chunk-dy2egpw5.js.br +0 -0
- package/web/chunk-dy2egpw5.js.gz +0 -0
- package/web/chunk-eq59kad4.js +0 -303
- package/web/chunk-eq59kad4.js.br +0 -0
- package/web/chunk-eq59kad4.js.gz +0 -0
- package/web/chunk-f05s9gsw.js +0 -7
- package/web/chunk-f05s9gsw.js.br +0 -0
- package/web/chunk-f05s9gsw.js.gz +0 -0
- package/web/chunk-f2bb976c.js +0 -1
- package/web/chunk-f2bb976c.js.br +0 -0
- package/web/chunk-f2bb976c.js.gz +0 -0
- package/web/chunk-f4aabnnv.js +0 -1
- package/web/chunk-f4aabnnv.js.br +0 -0
- package/web/chunk-f4aabnnv.js.gz +0 -0
- package/web/chunk-fmbc7t17.js +0 -7
- package/web/chunk-fmbc7t17.js.br +0 -0
- package/web/chunk-fmbc7t17.js.gz +0 -0
- package/web/chunk-g0s2xxfd.js +0 -324
- package/web/chunk-g0s2xxfd.js.br +0 -0
- package/web/chunk-g0s2xxfd.js.gz +0 -0
- package/web/chunk-g1k9nggh.js +0 -39
- package/web/chunk-g1k9nggh.js.br +0 -0
- package/web/chunk-g1k9nggh.js.gz +0 -0
- package/web/chunk-g26mzwzc.js +0 -1
- package/web/chunk-g26mzwzc.js.br +0 -0
- package/web/chunk-g26mzwzc.js.gz +0 -0
- package/web/chunk-g7b4p9k9.js +0 -1
- package/web/chunk-g7b4p9k9.js.br +0 -0
- package/web/chunk-g7b4p9k9.js.gz +0 -0
- package/web/chunk-ghr3jf15.js +0 -140
- package/web/chunk-ghr3jf15.js.br +0 -0
- package/web/chunk-ghr3jf15.js.gz +0 -0
- package/web/chunk-gv4zh4er.js +0 -1
- package/web/chunk-gv4zh4er.js.br +0 -0
- package/web/chunk-gv4zh4er.js.gz +0 -0
- package/web/chunk-gw0e69yj.js +0 -1
- package/web/chunk-gw0e69yj.js.br +0 -0
- package/web/chunk-gw0e69yj.js.gz +0 -0
- package/web/chunk-gxwsf4t1.js +0 -2
- package/web/chunk-gxwsf4t1.js.br +0 -0
- package/web/chunk-gxwsf4t1.js.gz +0 -0
- package/web/chunk-hh6vpvar.js +0 -84
- package/web/chunk-hh6vpvar.js.br +0 -0
- package/web/chunk-hh6vpvar.js.gz +0 -0
- package/web/chunk-hxqqy585.js +0 -1
- package/web/chunk-hxqqy585.js.br +0 -0
- package/web/chunk-hxqqy585.js.gz +0 -0
- package/web/chunk-hxsrph02.js +0 -1139
- package/web/chunk-hxsrph02.js.br +0 -0
- package/web/chunk-hxsrph02.js.gz +0 -0
- package/web/chunk-hxx6ad4x.js +0 -1
- package/web/chunk-hxx6ad4x.js.br +0 -0
- package/web/chunk-hxx6ad4x.js.gz +0 -0
- package/web/chunk-j2gkg76r.js +0 -2
- package/web/chunk-j2gkg76r.js.br +0 -0
- package/web/chunk-j2gkg76r.js.gz +0 -0
- package/web/chunk-jcbheqv1.js +0 -1
- package/web/chunk-jcbheqv1.js.br +0 -0
- package/web/chunk-jcbheqv1.js.gz +0 -0
- package/web/chunk-jhx6v9es.js +0 -1
- package/web/chunk-jhx6v9es.js.br +0 -0
- package/web/chunk-jhx6v9es.js.gz +0 -0
- package/web/chunk-jnhem746.js +0 -292
- package/web/chunk-jnhem746.js.br +0 -0
- package/web/chunk-jnhem746.js.gz +0 -0
- package/web/chunk-jr796qsk.js +0 -1
- package/web/chunk-jr796qsk.js.br +0 -0
- package/web/chunk-jr796qsk.js.gz +0 -0
- package/web/chunk-jw92texh.js +0 -1
- package/web/chunk-jw92texh.js.br +0 -0
- package/web/chunk-jw92texh.js.gz +0 -0
- package/web/chunk-k89686qj.js +0 -2
- package/web/chunk-k89686qj.js.br +0 -0
- package/web/chunk-k89686qj.js.gz +0 -0
- package/web/chunk-mvm0gvwj.js +0 -24
- package/web/chunk-mvm0gvwj.js.br +0 -0
- package/web/chunk-mvm0gvwj.js.gz +0 -0
- package/web/chunk-n033azqs.js +0 -30
- package/web/chunk-n033azqs.js.br +0 -0
- package/web/chunk-n033azqs.js.gz +0 -0
- package/web/chunk-n0fqhrqv.js +0 -89
- package/web/chunk-n0fqhrqv.js.br +0 -0
- package/web/chunk-n0fqhrqv.js.gz +0 -0
- package/web/chunk-n1p03ng0.js +0 -1
- package/web/chunk-n1p03ng0.js.br +0 -0
- package/web/chunk-n1p03ng0.js.gz +0 -0
- package/web/chunk-nb73fq72.js +0 -1
- package/web/chunk-nb73fq72.js.br +0 -0
- package/web/chunk-nb73fq72.js.gz +0 -0
- package/web/chunk-nxnkb0w4.js +0 -55
- package/web/chunk-nxnkb0w4.js.br +0 -0
- package/web/chunk-nxnkb0w4.js.gz +0 -0
- package/web/chunk-nymsmy8d.js +0 -78
- package/web/chunk-nymsmy8d.js.br +0 -0
- package/web/chunk-nymsmy8d.js.gz +0 -0
- package/web/chunk-nzqxb0ea.js +0 -1
- package/web/chunk-nzqxb0ea.js.br +0 -0
- package/web/chunk-nzqxb0ea.js.gz +0 -0
- package/web/chunk-p26b4zdm.js +0 -1
- package/web/chunk-p26b4zdm.js.br +0 -0
- package/web/chunk-p26b4zdm.js.gz +0 -0
- package/web/chunk-qa0wwff0.js +0 -1
- package/web/chunk-qa0wwff0.js.br +0 -0
- package/web/chunk-qa0wwff0.js.gz +0 -0
- package/web/chunk-qgv81n98.js +0 -1
- package/web/chunk-qgv81n98.js.br +0 -0
- package/web/chunk-qgv81n98.js.gz +0 -0
- package/web/chunk-qtwjt5mm.js +0 -3
- package/web/chunk-qtwjt5mm.js.br +0 -0
- package/web/chunk-qtwjt5mm.js.gz +0 -0
- package/web/chunk-r49dy5vx.js +0 -1
- package/web/chunk-r49dy5vx.js.br +0 -0
- package/web/chunk-r49dy5vx.js.gz +0 -0
- package/web/chunk-r97hd8wk.js +0 -98
- package/web/chunk-r97hd8wk.js.br +0 -0
- package/web/chunk-r97hd8wk.js.gz +0 -0
- package/web/chunk-s6a13wxe.js +0 -2
- package/web/chunk-s6a13wxe.js.br +0 -0
- package/web/chunk-s6a13wxe.js.gz +0 -0
- package/web/chunk-sb61aqg8.js +0 -4
- package/web/chunk-sb61aqg8.js.br +0 -0
- package/web/chunk-sb61aqg8.js.gz +0 -0
- package/web/chunk-scwrkcdw.js +0 -1
- package/web/chunk-scwrkcdw.js.br +0 -0
- package/web/chunk-scwrkcdw.js.gz +0 -0
- package/web/chunk-shtvhd61.js +0 -200
- package/web/chunk-shtvhd61.js.br +0 -0
- package/web/chunk-shtvhd61.js.gz +0 -0
- package/web/chunk-t5e9vh89.js +0 -1
- package/web/chunk-t5e9vh89.js.br +0 -0
- package/web/chunk-t5e9vh89.js.gz +0 -0
- package/web/chunk-tbgavq0t.js +0 -2
- package/web/chunk-tbgavq0t.js.br +0 -0
- package/web/chunk-tbgavq0t.js.gz +0 -0
- package/web/chunk-tefm9md2.js +0 -2
- package/web/chunk-tefm9md2.js.br +0 -0
- package/web/chunk-tefm9md2.js.gz +0 -0
- package/web/chunk-tp3fpa0t.js +0 -1
- package/web/chunk-tp3fpa0t.js.br +0 -0
- package/web/chunk-tp3fpa0t.js.gz +0 -0
- package/web/chunk-tr7fg3tv.js +0 -8
- package/web/chunk-tr7fg3tv.js.br +0 -0
- package/web/chunk-tr7fg3tv.js.gz +0 -0
- package/web/chunk-v5xf47q0.js +0 -1
- package/web/chunk-v5xf47q0.js.br +0 -0
- package/web/chunk-v5xf47q0.js.gz +0 -0
- package/web/chunk-vwms8c7b.js +0 -1
- package/web/chunk-vwms8c7b.js.br +0 -0
- package/web/chunk-vwms8c7b.js.gz +0 -0
- package/web/chunk-w2gy2tmp.js +0 -99
- package/web/chunk-w2gy2tmp.js.br +0 -0
- package/web/chunk-w2gy2tmp.js.gz +0 -0
- package/web/chunk-whfh2wev.js +0 -41
- package/web/chunk-whfh2wev.js.br +0 -0
- package/web/chunk-whfh2wev.js.gz +0 -0
- package/web/chunk-wjecy48x.js +0 -1
- package/web/chunk-wjecy48x.js.br +0 -0
- package/web/chunk-wjecy48x.js.gz +0 -0
- package/web/chunk-wqmyjj6w.js +0 -370
- package/web/chunk-wqmyjj6w.js.br +0 -0
- package/web/chunk-wqmyjj6w.js.gz +0 -0
- package/web/chunk-wv83gygp.js +0 -1
- package/web/chunk-wv83gygp.js.br +0 -0
- package/web/chunk-wv83gygp.js.gz +0 -0
- package/web/chunk-x1gr0017.js +0 -70
- package/web/chunk-x1gr0017.js.br +0 -0
- package/web/chunk-x1gr0017.js.gz +0 -0
- package/web/chunk-xa9m0mh2.js +0 -106
- package/web/chunk-xa9m0mh2.js.br +0 -0
- package/web/chunk-xa9m0mh2.js.gz +0 -0
- package/web/chunk-xjbxndxz.js +0 -2
- package/web/chunk-xjbxndxz.js.br +0 -0
- package/web/chunk-xjbxndxz.js.gz +0 -0
- package/web/chunk-xsfmh8rr.js +0 -217
- package/web/chunk-xsfmh8rr.js.br +0 -0
- package/web/chunk-xsfmh8rr.js.gz +0 -0
- package/web/chunk-xvsb3w1f.js +0 -1
- package/web/chunk-xvsb3w1f.js.br +0 -0
- package/web/chunk-xvsb3w1f.js.gz +0 -0
- package/web/chunk-y2jkaf1e.js +0 -2
- package/web/chunk-y2jkaf1e.js.br +0 -0
- package/web/chunk-y2jkaf1e.js.gz +0 -0
- package/web/chunk-ynpx7j96.js +0 -1
- package/web/chunk-ynpx7j96.js.br +0 -0
- package/web/chunk-ynpx7j96.js.gz +0 -0
- package/web/chunk-z04ncfs3.js +0 -2
- package/web/chunk-z04ncfs3.js.br +0 -0
- package/web/chunk-z04ncfs3.js.gz +0 -0
- package/web/chunk-zapwrc5k.js +0 -2
- package/web/chunk-zapwrc5k.js.br +0 -0
- package/web/chunk-zapwrc5k.js.gz +0 -0
- package/web/chunk-zq1qbaxb.js +0 -2
- package/web/chunk-zq1qbaxb.js.br +0 -0
- package/web/chunk-zq1qbaxb.js.gz +0 -0
- package/web/chunk-zs7physk.js +0 -120
- package/web/chunk-zs7physk.js.br +0 -0
- package/web/chunk-zs7physk.js.gz +0 -0
- /package/{chunk-h4bvkm6p.js → chunk-2h2mvrw2.js} +0 -0
- /package/{chunk-51f8zbj5.js → chunk-54zpktrq.js} +0 -0
- /package/{chunk-fqfjjhkj.js → chunk-aq6xkc1w.js} +0 -0
- /package/{chunk-chfzk1fx.js → chunk-et2s8y6a.js} +0 -0
- /package/{chunk-pa7yh2q3.js → chunk-fgpzy3fe.js} +0 -0
package/chunk-1amcz1cz.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-qqfdg01g.js";import"./chunk-bh29df86.js";import{ln}from"./chunk-8913dkey.js";import{Rt,wt,It}from"./chunk-3fv2qcpg.js";import{pt}from"./chunk-fqfjjhkj.js";import{ce}from"./chunk-51f8zbj5.js";import{Tn}from"./chunk-t71zzafh.js";import{Q,ee}from"./chunk-pa7yh2q3.js";import{Ue,te}from"./chunk-7hpf9qq2.js";import{J}from"./chunk-cjeyy6da.js";import{ai,jn}from"./chunk-f4n1csz0.js";import{j,Nt,xe,pe,Pe,ke,Y}from"./chunk-rj6qknjx.js";import{W,gt,xr,We}from"./chunk-q1s5r204.js";var Se="https://chatgpt.com/backend-api",Ee="https://api.openai.com/auth",_e=0,X=1000,Te=60000,ve=15000,Re=3,ae=new Set(["openai","openai-codex","opencode"]),Ce=1009,Oe="websocket_connection_limit_reached",Ae="previous_response_not_found",Me=new Set(["completed","incomplete","failed","cancelled","queued","in_progress"]);function Z(e){if(e.stopReason==="pending")throw Error("Codex stream ended without a stop reason");if(e.stopReason==="error"||e.stopReason==="aborted")throw Error(e.errorMessage||"An unknown error occurred")}function Le(e){return/GoUsageLimitError|FreeUsageLimitError|Monthly usage limit reached|available balance|insufficient_quota|out of budget|quota exceeded|billing/i.test(e)}function De(e,r){if(e===429&&Le(r))return!1;if(e===429||e===500||e===502||e===503||e===504)return!0;return/rate.?limit|overloaded|service.?unavailable|upstream.?connect|connection.?refused/i.test(r)}function Ne(e){let r=e.get("retry-after-ms");if(r!==null){let s=Number(r);if(Number.isFinite(s))return Math.max(0,s)}let t=e.get("retry-after");if(!t)return;let n=Number(t);if(Number.isFinite(n))return Math.max(0,n*1000);let o=Date.parse(t);if(!Number.isNaN(o))return Math.max(0,o-Date.now());return}class K extends Error{}function qe(e,r){let t=r?.maxRetryDelayMs??Te;if(t>0&&e>t)throw new K(`Server requested ${Math.ceil(e/1000)}s retry delay (max: ${Math.ceil(t/1000)}s)`);return e}function re(e,r){return new Promise((t,n)=>{if(r?.aborted){n(Error("Request was aborted"));return}let o=setTimeout(t,e);r?.addEventListener("abort",()=>{clearTimeout(o),n(Error("Request was aborted"))})})}function ne(e){if(e===void 0)return;if(!Number.isFinite(e)||e<0)throw Error(`Invalid timeoutMs: ${String(e)}`);return Math.floor(e)}function Be(){if(typeof process>"u"||!(process.versions?.node||process.versions?.bun))return null;return process.getBuiltinModule?.("node:zlib")??null}function Ie(e){let r=Be();if(!r||typeof r.zstdCompressSync!=="function")return null;try{let t=r.zstdCompressSync(e,{params:{[r.constants.ZSTD_c_compressionLevel]:Re}});return new Uint8Array(t)}catch{return null}}var Fe=(e,r,t)=>{let n=new W,o=pe(r,e.compat?.supportsMidConvoSystemMessages);return(async()=>{let s={role:"assistant",content:[],api:"openai-codex-responses",provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{let i=t?.apiKey;if(!i)throw Error(`No API key for provider: ${e.provider}`);let u=ht(i),a=Ue(Pe(o.messages),e.compat?.supportsOpenAIGrammarTools??!1),d=t?.cacheRetention==="none"?void 0:t?.sessionId,p=pt(d),c=$e(e,o,t,p,a),l=await t?.onPayload?.(c,e);if(l!==void 0)c=l;let f=p||jn(),m=St(e.headers,t?.headers,u,i,p),b=Et(e.headers,t?.headers,u,i,f),h=JSON.stringify(c),E=ne(t?.timeoutMs),w=ne(t?.websocketConnectTimeoutMs),v=t?.transport||"auto",T=!1,y=v!=="sse"&&me(d);if(y)se(d);if(v!=="sse"&&!y){let S=!1,k=!1,O=!1;while(!0){S=!1;try{if(await yt(Je(e.baseUrl),c,b,s,n,e,()=>{if(S=!0,!T)T=!0,n.push({type:"start",partial:s})},E,w,d,u,a,t),t?.signal?.aborted)throw Error("Request was aborted");Z(s),n.push({type:"done",reason:s.stopReason,message:s}),n.end();return}catch(R){let N=t?.signal?.aborted,q=!S&&Ge(R),M=je(R);if(!N&&M&&!O){O=!0;continue}if(!N&&q&&!k){k=!0;continue}if(N||Ke(R)&&!q)throw R;if(We(s,xr("provider_transport_failure",R,{configuredTransport:v,...S?{}:{fallbackTransport:"sse"},eventsEmitted:S,phase:S?"after_message_stream_start":"before_message_stream_start",requestBytes:new TextEncoder().encode(h).byteLength})),rt(d,R),S)throw R;se(d);break}}}let x=Ie(h);if(x)m.set("content-encoding","zstd");let A=x??h,_,D,U=t?.maxRetries??_e;for(let S=0;S<=U;S++){if(t?.signal?.aborted)throw Error("Request was aborted");try{let k=E!==void 0&&E>0?AbortSignal.timeout(E):void 0,O=ln([t?.signal,k]);try{_=await(t?.fetch??globalThis.fetch)(le(e.baseUrl),{method:"POST",headers:m,body:A,signal:O.signal})}catch(M){if(k?.aborted&&!t?.signal?.aborted)throw Error(`Codex SSE response headers timed out after ${E}ms`);throw M}finally{O.cleanup()}if(await t?.onResponse?.({status:_.status,headers:J(_.headers)},e),_.ok)break;let R=await _.text();if(S<U&&De(_.status,R)){let M=Ne(_.headers),ge=M===void 0?X*2**S:qe(M,t);await re(ge,t?.signal);continue}let N=new Response(R,{status:_.status,statusText:_.statusText}),q=await bt(N);throw Error(q.friendlyMessage||q.message)}catch(k){if(k instanceof Error){if(k.name==="AbortError"||k.message==="Request was aborted")throw Error("Request was aborted")}if(D=k instanceof Error?k:Error(String(k)),S<U&&!(D instanceof K)&&!D.message.includes("usage limit")){let O=X*2**S;await re(O,t?.signal);continue}throw D}}if(!_?.ok)throw D??Error("Failed after retries");if(!_.body)throw Error("No response body");if(!T)T=!0,n.push({type:"start",partial:s});if(await He(_,s,n,e,a,t),t?.signal?.aborted)throw Error("Request was aborted");Z(s),n.push({type:"done",reason:s.stopReason,message:s}),n.end()}catch(i){for(let u of s.content)delete u.partialJson,delete u.customInput;s.stopReason=t?.signal?.aborted?"aborted":"error",s.errorMessage=ee(Q(i)),n.push({type:"error",reason:s.stopReason,error:s}),n.end()}})(),n},Ut=(e,r,t)=>{let n=t?.apiKey;if(!n)throw Error(`No API key for provider: ${e.provider}`);let o={...te(e,r,t,n),toolChoice:t?.toolChoice},s=t?.reasoning?Y(e,t.reasoning):void 0;return Fe(e,r,{...o,reasoningEffort:s==="off"?void 0:s})};function $e(e,r,t,n,o=Ue(Pe(r.messages),e.compat?.supportsOpenAIGrammarTools??!1)){let s=e.compat?.supportsStrictMode??!0,i=e.compat?.supportsOpenAIGrammarTools??!1,u=e.compat?.supportsAdditionalTools??!1,a=e.compat?.supportsToolSearch??!1,d=ke(r.messages,u||a),p=Rt(e,r,ae,{includeSystemPrompt:!1,grammarToolInputProperties:o,supportsMidConvoSystemMessages:e.compat?.supportsMidConvoSystemMessages??!1,supportsAdditionalTools:u,supportsToolSearch:a,toolOptions:{strict:null,supportsStrictMode:s,supportsOpenAIGrammarTools:i}}),c=xe(r.messages),l=c?j(c):"",f={model:e.id,store:!1,stream:!0,instructions:l||"You are a helpful assistant.",input:p,text:{verbosity:t?.textVerbosity||"low"},include:["reasoning.encrypted_content"],prompt_cache_key:n,tool_choice:t?.toolChoice??"auto",parallel_tool_calls:!0};if(t?.temperature!==void 0)f.temperature=t.temperature;if(t?.serviceTier!==void 0)f.service_tier=t.serviceTier;if(d.requestTools.length>0)f.tools=wt(d.requestTools,{strict:null,supportsStrictMode:s,supportsOpenAIGrammarTools:i});if(t?.reasoningEffort!==void 0){let m=t.reasoningEffort==="none"?e.thinkingLevelMap?.off===void 0?"none":e.thinkingLevelMap.off:e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort;if(m!==null)f.reasoning={effort:m,summary:t.reasoningSummary??"auto"}}else if(e.reasoning&&e.thinkingLevelMap?.off!==null)f.reasoning={effort:e.thinkingLevelMap?.off??"none"};return f}function ze(e,r){switch(r){case"flex":return 0.5;case"priority":return e.id==="gpt-5.5"?2.5:2;default:return 1}}function ue(e,r,t){let n=ze(t,r);if(n===1)return;e.cost.input*=n,e.cost.output*=n,e.cost.cacheRead*=n,e.cost.cacheWrite*=n,e.cost.total=e.cost.input+e.cost.output+e.cost.cacheRead+e.cost.cacheWrite}function fe(e,r){if(e==="default"&&(r==="flex"||r==="priority"))return r;return e??r}function le(e){let t=(e&&e.trim().length>0?e:Se).replace(/\/+$/,"");if(t.endsWith("/codex/responses"))return t;if(t.endsWith("/codex"))return`${t}/responses`;return`${t}/codex/responses`}function Je(e){let r=new URL(le(e));if(r.protocol==="https:")r.protocol="wss:";if(r.protocol==="http:")r.protocol="ws:";return r.toString()}async function He(e,r,t,n,o,s){await It(de(Ye(e,s?.signal),r,n,s?.onProviderStreamEvent),r,t,n,{serviceTier:s?.serviceTier,grammarToolInputProperties:o,resolveServiceTier:fe,applyServiceTierPricing:(i,u)=>ue(i,u,n)})}class L extends Error{code;payload;constructor(e,r){super(e);this.name="CodexApiError",this.code=r?.code,this.payload=r?.payload,this.cause=r?.cause}}class F extends Error{payload;constructor(e,r){super(e);this.name="CodexProtocolError",this.payload=r?.payload,this.cause=r?.cause}}class G extends Error{constructor(e){super(gt(e));this.name="ProviderStreamEventCallbackError",this.cause=e}}function Ke(e){return e instanceof L||e instanceof F||e instanceof G}function Ge(e){return e instanceof L&&e.code===Oe}function je(e){return e instanceof L&&e.code===Ae}function Ve(e){let r=e.error&&typeof e.error==="object"?e.error:void 0;return{code:typeof e.code==="string"?e.code:typeof r?.code==="string"?r.code:void 0,message:typeof e.message==="string"?e.message:typeof r?.message==="string"?r.message:void 0}}async function*de(e,r,t,n){for await(let o of e){try{await n?.(o,t)}catch(i){throw new G(i)}let s=typeof o.type==="string"?o.type:void 0;if(!s)continue;if(s==="error"){let{code:i,message:u}=Ve(o);throw new L(`Codex error: ${u||i||JSON.stringify(o)}`,{code:i,payload:o})}if(s==="response.failed"){let i=o.response,u=i?.error?.code,a=i?.error?.message;throw new L(a||"Codex response failed",{code:u,payload:o})}if(s==="response.done"||s==="response.completed"||s==="response.incomplete"){let i=o.response;if(typeof i?.end_turn==="boolean")r.endTurn=i.end_turn;let u=i?{...i,status:Xe(i.status)}:i;yield{...o,type:"response.completed",response:u};return}yield o}}function Xe(e){if(typeof e!=="string")return;return Me.has(e)?e:void 0}async function*Ye(e,r){if(!e.body)return;let t=e.body.getReader(),n=new TextDecoder,o="",s=()=>{t.cancel().catch(()=>{})};r?.addEventListener("abort",s,{once:!0});try{while(!0){if(r?.aborted)throw Error("Request was aborted");let{done:i,value:u}=await t.read();if(r?.aborted)throw Error("Request was aborted");if(o+=i?n.decode():n.decode(u,{stream:!0}),i&&o.trim())o+=`
|
|
3
|
-
|
|
4
|
-
`;let a=o.indexOf(`
|
|
5
|
-
|
|
6
|
-
`);while(a!==-1){let d=o.slice(0,a);o=o.slice(a+2);let p=d.split(`
|
|
7
|
-
`).filter((c)=>c.startsWith("data:")).map((c)=>c.slice(5).trim());if(p.length>0){let c=p.join(`
|
|
8
|
-
`).trim();if(c&&c!=="[DONE]")try{yield JSON.parse(c)}catch(l){throw new F(`Invalid Codex SSE JSON: ${gt(l)}`,{cause:l,payload:c})}}a=o.indexOf(`
|
|
9
|
-
|
|
10
|
-
`)}if(i)break}}finally{r?.removeEventListener("abort",s);try{await t.cancel()}catch{}try{t.releaseLock()}catch{}}}var Ze="responses_websockets=2026-02-06",Qe=300000,et=3300000,g=new Map,B=new Map,I=new Set;function V(e){let r=B.get(e);if(!r)r={requests:0,connectionsCreated:0,connectionsReused:0,cachedContextRequests:0,storeTrueRequests:0,fullContextRequests:0,deltaRequests:0,lastInputItems:0,websocketFailures:0,sseFallbacks:0},B.set(e,r);return r}function $t(e){let r=B.get(e);return r?{...r}:void 0}function zt(e){if(e){B.delete(e),I.delete(e);return}B.clear(),I.clear()}function tt(e){let r=(t)=>{if(t.idleTimer)clearTimeout(t.idleTimer);C(t.socket,1000,"debug_close")};if(e){for(let t of g.get(e)?.values()??[])r(t);g.delete(e);return}for(let t of g.values())for(let n of t.values())r(n);g.clear()}ai(tt);function me(e){return e?I.has(e):!1}function se(e){if(!e)return;let r=V(e);r.sseFallbacks++,r.websocketFallbackActive=me(e)}function rt(e,r){if(!e)return;I.add(e);let t=V(e);t.websocketFailures++,t.lastWebSocketError=gt(r),t.websocketFallbackActive=!0}var z=null;async function nt(e){if(!e&&z)return z;if(typeof process<"u"&&process.versions?.bun){let t=class extends WebSocket{constructor(n,o){let s={};if(Array.isArray(o)||typeof o==="string")s={protocols:o};else s={...o};let i=Tn(n.toString().replace(/^wss:/,"https:").replace(/^ws:/,"http:"),e);super(n,{...s,...i?{proxy:i.toString()}:{}})}};if(!e)z=t;return t}let r=globalThis.WebSocket;if(typeof r!=="function")return null;return r}class ye extends Error{code;reason;wasClean;constructor(e,r){super(e);this.name="WebSocketCloseError",this.code=r?.code,this.reason=r?.reason,this.wasClean=r?.wasClean}}function st(e){let r=e.readyState;return typeof r==="number"?r:void 0}function P(e){let r=st(e);return r===void 0||r===1}function ot(e){return Date.now()-e.createdAt>=et}function C(e,r=1000,t="done"){try{e.close(r,t)}catch{}}function oe(e,r,t){if(t.idleTimer)clearTimeout(t.idleTimer);t.idleTimer=setTimeout(()=>{if(t.busy)return;C(t.socket,1000,"idle_timeout");let n=g.get(e);if(n?.get(r)===t)n.delete(r);if(n?.size===0)g.delete(e)},Qe)}async function H(e,r,t,n=ve,o){let s=await nt(o);if(!s)throw Error("WebSocket transport is not available in this runtime");let i=J(r);return delete i["OpenAI-Beta"],new Promise((u,a)=>{let d=!1,p,c;try{c=new s(e,{headers:i})}catch(w){a(w instanceof Error?w:Error(String(w)));return}let l=()=>{if(p)clearTimeout(p),p=void 0;c.removeEventListener("open",m),c.removeEventListener("error",b),c.removeEventListener("close",h),t?.removeEventListener("abort",E)},f=(w,v)=>{if(d)return;if(d=!0,l(),v)C(c,1000,v);a(w)},m=()=>{if(d)return;d=!0,l(),u(c)},b=(w)=>{f(be(w))},h=(w)=>{f(he(w))},E=()=>{f(Error("Request was aborted"),"aborted")};if(c.addEventListener("open",m),c.addEventListener("error",b),c.addEventListener("close",h),t?.addEventListener("abort",E),n>0)p=setTimeout(()=>{f(Error(`WebSocket connect timeout after ${n}ms`),"connect_timeout")},n);if(t?.aborted)E()})}async function it(e,r,t,n,o,s,i){if(!t){let c=await H(e,r,o,s,i);return{socket:c,reused:!1,release:()=>C(c)}}let u=g.get(t),a=u?.get(n);if(a){if(a.idleTimer)clearTimeout(a.idleTimer),a.idleTimer=void 0;if(!a.busy&&ot(a)){if(C(a.socket,1000,"connection_age_limit"),u?.delete(n),u?.size===0)g.delete(t)}else if(!a.busy&&P(a.socket))return a.busy=!0,{socket:a.socket,entry:a,reused:!0,release:({keep:c}={})=>{if(!c||!P(a.socket)){C(a.socket);let l=g.get(t);if(l?.get(n)===a)l.delete(n);if(l?.size===0)g.delete(t);return}a.busy=!1,oe(t,n,a)}};if(a.busy){let c=await H(e,r,o,s,i);return{socket:c,reused:!1,release:()=>{C(c)}}}if(!P(a.socket)){if(C(a.socket),u?.delete(n),u?.size===0)g.delete(t)}}let d=await H(e,r,o,s,i),p={socket:d,busy:!0,createdAt:Date.now()};if(u=g.get(t),!u)u=new Map,g.set(t,u);return u.set(n,p),{socket:d,entry:p,reused:!1,release:({keep:c}={})=>{if(!c||!P(p.socket)){if(C(p.socket),p.idleTimer)clearTimeout(p.idleTimer);let l=g.get(t);if(l?.get(n)===p)l.delete(n);if(l?.size===0)g.delete(t);return}p.busy=!1,oe(t,n,p)}}}function be(e){if(e&&typeof e==="object"){let r="message"in e?e.message:void 0;if(typeof r==="string"&&r.length>0)return Error(r);let t="error"in e?e.error:void 0;if(t instanceof Error&&t.message.length>0)return t;if(t&&typeof t==="object"&&"message"in t){let n=t.message;if(typeof n==="string"&&n.length>0)return Error(n)}}return Error("WebSocket error")}function he(e){if(e&&typeof e==="object"){let r="code"in e?e.code:void 0,t="reason"in e?e.reason:void 0,n="wasClean"in e?e.wasClean:void 0,o=typeof r==="number"?` ${r}`:"",s=typeof t==="string"&&t.length>0?` ${t}`:"";if(!s&&r===Ce)s=" message too big";return new ye(`WebSocket closed${o}${s}`.trim(),{code:typeof r==="number"?r:void 0,reason:typeof t==="string"&&t.length>0?t:void 0,wasClean:typeof n==="boolean"?n:void 0})}return Error("WebSocket closed")}async function at(e){if(typeof e==="string")return e;if(e instanceof ArrayBuffer)return new TextDecoder().decode(new Uint8Array(e));if(ArrayBuffer.isView(e)){let r=e;return new TextDecoder().decode(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}if(e&&typeof e==="object"&&"arrayBuffer"in e){let t=await e.arrayBuffer();return new TextDecoder().decode(new Uint8Array(t))}return null}async function*ct(e,r,t){let n=[],o=null,s=!1,i=null,u=!1,a=()=>{if(!o)return;let f=o;o=null,f()},d=(f)=>{(async()=>{let m=null;try{if(!f||typeof f!=="object"||!("data"in f))return;if(m=await at(f.data),!m)return;let b=JSON.parse(m),h=typeof b.type==="string"?b.type:"";if(h==="response.completed"||h==="response.done"||h==="response.incomplete")u=!0,s=!0;n.push(b),a()}catch(b){i=new F(`Invalid Codex WebSocket JSON: ${gt(b)}`,{cause:b,payload:m}),s=!0,a()}})()},p=(f)=>{i=be(f),s=!0,a()},c=(f)=>{if(u){s=!0,a();return}if(!i)i=he(f);s=!0,a()},l=()=>{i=Error("Request was aborted"),s=!0,a()};e.addEventListener("message",d),e.addEventListener("error",p),e.addEventListener("close",c),r?.addEventListener("abort",l);try{while(!0){if(r?.aborted)throw Error("Request was aborted");if(n.length>0){yield n.shift();continue}if(s)break;let f;await new Promise((m,b)=>{if(o=m,t!==void 0&&t>0)f=setTimeout(()=>{let h=Error(`WebSocket idle timeout after ${t}ms`);i=h,s=!0,o=null,C(e,1000,"idle_timeout"),b(h)},t)}).finally(()=>{if(f)clearTimeout(f)})}if(i)throw i;if(!u)throw Error("WebSocket stream closed before response.completed")}finally{e.removeEventListener("message",d),e.removeEventListener("error",p),e.removeEventListener("close",c),r?.removeEventListener("abort",l)}}function ie(e){let{input:r,previous_response_id:t,...n}=e;return n}function ut(e,r){return JSON.stringify(e??[])===JSON.stringify(r??[])}function ft(e,r){return JSON.stringify(ie(e))===JSON.stringify(ie(r))}function lt(e,r){if(!ft(e,r.lastRequestBody))return;let t=e.input??[],n=[...r.lastRequestBody.input??[],...r.lastResponseItems];if(t.length<n.length)return;let o=t.slice(0,n.length);if(!ut(o,n))return;return t.slice(n.length)}function dt(e,r){let t=e.continuation;if(!t)return r;let n=lt(r,t);if(!n||!t.lastResponseId)return e.continuation=void 0,r;return{...r,previous_response_id:t.lastResponseId,input:n}}async function*mt(e,r){let t=!1;for await(let n of e){if(!t)t=!0,r();yield n}}async function yt(e,r,t,n,o,s,i,u,a,d,p,c,l){let{socket:f,entry:m,reused:b,release:h}=await it(e,t,d,p,l?.signal,a,l?.env),E=!0,w=l?.transport==="websocket-cached"||l?.transport==="auto",v=r,T=w&&m?dt(m,v):v,y=d?V(d):void 0;if(y){if(y.requests++,b)y.connectionsReused++;else y.connectionsCreated++;if(w)y.cachedContextRequests++;if(T.store===!0)y.storeTrueRequests++;if(y.lastInputItems=T.input?.length??0,T.previous_response_id)y.deltaRequests++,y.lastDeltaInputItems=T.input?.length??0,y.lastPreviousResponseId=T.previous_response_id;else y.fullContextRequests++,y.lastDeltaInputItems=void 0,y.lastPreviousResponseId=void 0}try{if(f.send(JSON.stringify({type:"response.create",...T})),await It(mt(de(ct(f,l?.signal,u),n,s,l?.onProviderStreamEvent),i),n,o,s,{serviceTier:l?.serviceTier,grammarToolInputProperties:c,resolveServiceTier:fe,applyServiceTierPricing:(x,A)=>ue(x,A,s)}),l?.signal?.aborted)E=!1;else if(w&&m&&n.responseId){let x=Rt(s,Nt({messages:[n]}),ae,{includeSystemPrompt:!1,grammarToolInputProperties:c}).filter((A)=>A.type!=="function_call_output"&&A.type!=="custom_tool_call_output");m.continuation={lastRequestBody:v,lastResponseId:n.responseId,lastResponseItems:x}}}catch(x){if(m)m.continuation=void 0;throw E=!1,x}finally{h({keep:E})}}async function bt(e){let r=await e.text(),t=r||e.statusText||"Request failed",n;try{let s=JSON.parse(r)?.error;if(s){let i=s.code||s.type||"";if(/usage_limit_reached|usage_not_included|rate_limit_exceeded/i.test(i)||e.status===429){let u=s.plan_type?` (${s.plan_type.toLowerCase()} plan)`:"",a=s.resets_at?Math.max(0,Math.round((s.resets_at*1000-Date.now())/60000)):void 0,d=a!==void 0?` Try again in ~${a} min.`:"";n=`You have hit your ChatGPT usage limit${u}.${d}`.trim()}t=s.message||n||t}}catch{}return{message:t,friendlyMessage:n}}function ht(e){try{let r=e.split(".");if(r.length!==3)throw Error("Invalid token");let n=JSON.parse(atob(r[1]))?.[Ee]?.chatgpt_account_id;if(!n)throw Error("No account ID in token");return n}catch{throw Error("Failed to extract accountId from token")}}function we(e,r,t,n){let o=new Headers({originator:"pi","User-Agent":ce()});for(let[s,i]of Object.entries(e||{}))o.set(s,i);for(let[s,i]of Object.entries(r||{}))if(i===null)o.delete(s);else o.set(s,i);return o.set("Authorization",`Bearer ${n}`),o.set("chatgpt-account-id",t),o}function St(e,r,t,n,o){let s=we(e,r,t,n);if(s.set("OpenAI-Beta","responses=experimental"),s.set("accept","text/event-stream"),s.set("content-type","application/json"),o)s.set("session-id",o),s.set("x-client-request-id",o);return s}function Et(e,r,t,n,o){let s=we(e,r,t,n);return s.delete("accept"),s.delete("content-type"),s.delete("OpenAI-Beta"),s.delete("openai-beta"),s.set("OpenAI-Beta",Ze),s.set("x-client-request-id",o),s.set("session-id",o),s}export{tt as closeOpenAICodexWebSocketSessions,$t as getOpenAICodexWebSocketDebugStats,zt as resetOpenAICodexWebSocketDebugStats,Fe as stream,Ut as streamSimple};
|
package/chunk-1pfdps04.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{H}from"./chunk-912knnfg.js";import{_}from"./chunk-v4p8807b.js";import{a}from"./chunk-wwazj6mz.js";var m=a(H()),t=a(_());import{readFileSync as S}from"fs";var c=(e)=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:i,providerId:n,policyArns:f,policy:g,durationSeconds:E}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:p}=await import("./chunk-4hkwjw05.js");l=p({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...s?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:i,ProviderId:n,PolicyArns:f,Policy:g,DurationSeconds:E})};var d="AWS_WEB_IDENTITY_TOKEN_FILE",T="AWS_ROLE_ARN",N="AWS_ROLE_SESSION_NAME",I=(e={})=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[d],r=e?.roleArn??process.env[T],i=e?.roleSessionName??process.env[N];if(!o||!r)throw new t.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await c({...e,webIdentityToken:t.externalDataInterceptor?.getTokenRecord?.()[o]??S(o,{encoding:"ascii"}),roleArn:r,roleSessionName:i})(s);if(o===process.env[d])m.setCredentialFeature(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return n};export{I as fromTokenFile};
|
package/chunk-206g40v9.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function Ue(e){let t=Object.values(e).filter((o)=>typeof o==="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function pr(e,t="|"){return e.map((r)=>mr(r)).join(t)}function Me(e,t){if(typeof t==="bigint")return t.toString();return t}class Ko{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;if(e!==void 0)this._value=e(),this._getter=void 0;return this._value}}function Fe(e){return new Ko(e)}function Wo(e){return e===null||e===void 0}function ct(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Go(e,t){let r=e/t,o=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);if(Math.abs(r-o)<n)return 0;return r-o}function oe(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Be(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function me(e){return Be(e._zod.def)??e._zod.def.shape}function Ho(e,t,r){Object.defineProperty(e,t,{get(){let o=r();return oe(this,t,o),o},enumerable:!0,configurable:!0})}function Xo(e,t,r){if(t in e)oe(e,t,r);else e[t]=r}function $e(e,t,r,o){let n=me(t);for(let i of r){let s=Object.getOwnPropertyDescriptor(n,i);if(!s.enumerable)continue;if(s.get)Ho(e,i,()=>{let c=t._zod.def.shape[i];return o?o(c,i):c});else Xo(e,i,o?o(s.value,i):s.value)}}function Nu(e,t){for(let r of Reflect.ownKeys(t)){let o=Object.getOwnPropertyDescriptor(t,r);if(!o.enumerable)continue;if(o.get)Ho(e,r,()=>t[r]);else Xo(e,r,o.value)}}function ee(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function Yo(e){return JSON.stringify(e)}function Qo(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var fr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var en=Fe(()=>{if(X.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function Se(e){if(Pe(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;if(typeof t!=="function")return!0;let r=t.prototype;if(Pe(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function dr(e){if(Se(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}var tn=new Set(["string","number","symbol"]);function ze(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ue(e,t,r){let o=new e._zod.constr(t??e._zod.def);if(!t||r?.parent)o._zod.parent=e;return o}function x(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function mr(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function rn(e){return Object.keys(e).filter((t)=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var at=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))(),hr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ju(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i={};return $e(i,e,ut(e,t)),ue(e,ee(r,{shape:i,checks:[]}))}function ut(e,t){let r=me(e),o=[];for(let n of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw Error(`Unrecognized key: "${String(n)}"`);if(t[n])o.push(n)}return o}function Lu(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(ut(e,t)),s={};return $e(s,e,Reflect.ownKeys(me(e)).filter((c)=>!i.has(c))),ue(e,ee(r,{shape:s,checks:[]}))}function Du(e,t){if(!Se(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let n=me(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,i)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ue(e,ee(e._zod.def,{shape:on(e,t)}))}function on(e,t){let r={};return $e(r,e,Reflect.ownKeys(me(e))),Nu(r,t),r}function Uu(e,t){if(!Se(t))throw Error("Invalid input to safeExtend: expected a plain object");return ue(e,ee(e._zod.def,{shape:on(e,t)}))}function Mu(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};$e(r,e,Reflect.ownKeys(me(e))),$e(r,t,Reflect.ownKeys(me(t)));let o=ee(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ue(e,o)}function nn(e,t,r,o="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${o}() cannot be used on object schemas containing refinements`);let c=r?new Set(ut(t,r)):void 0,a={};return $e(a,t,Reflect.ownKeys(me(t)),e&&((l,p)=>c&&!c.has(p)?l:new e({type:"optional",innerType:l}))),ue(t,ee(t._zod.def,{shape:a,checks:[]}))}function Fu(e,t,r){let o=r?new Set(ut(t,r)):void 0,n={};return $e(n,t,Reflect.ownKeys(me(t)),(i,s)=>o&&!o.has(s)?i:new e({type:"nonoptional",innerType:i})),ue(t,ee(t._zod.def,{shape:n}))}function pe(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function sn(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function xe(e,t){return t.map((r)=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function De(e){return typeof e==="string"?e:e?.message}function gr(e){let t=[];for(let r of e??[]){let o=r._zod.def;if(!/_(length|size)$|_equals$/.test(o.check))break;let n=o.maximum??o.length??o.size;if(n>=0)t.push([n,r])}return t}function lt(e,t,r){var o;for(let n=t;n<e.length;n++)(o=e[n]).schema??(o.schema=r)}function fe(e,t,r){var o;let n=e.inst?._zod?.traits;if(n?.has("$ZodType"))if(n.has("$ZodCheck"))(o=e).schema??(o.schema=e.inst);else e.schema=e.inst;let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:De(e.inst?._zod.def?.error?.(e))??De(i?.(e))??De(t?.error?.(e))??De(r.customError?.(e))??De(r.localeError?.(e))??"Invalid input",c={};for(let a of Object.keys(e)){if(a==="inst"||a==="schema"||a==="continue"||a==="input"||a==="__proto__")continue;c[a]=e[a]}if(c.path??(c.path=[]),c.message=s,t?.reportInput)c.input=e.input;return c}var Bu=/[\uD800-\uDBFF]/;function pt(e){let t=e.length;if(!Bu.test(e))return t;let r=t;for(let o=0;o<t-1;o++)if((e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320)r--,o++;return r}function ft(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function cn(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function ke(...e){let[t,r,o]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:o};return{...t}}function an(e,t){for(let r in t){let o=Object.getOwnPropertyDescriptor(t,r);if(o.get)Object.defineProperty(e,r,{...o,enumerable:!1});else Ju(e,r,o.value)}}function he(e,t,r,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:r}),r}function dt(e,t,r){return he(e,t,r,!1)}function un(e,t){for(let r in e){let o=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return he(this,r,o(this))},set(n){he(this,r,n)}})}return t}function Ju(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:he(this,t,r.bind(this))},set(o){he(this,t,o)}})}function qu(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var lr,_e=!1,Vu={configurable:!0,get(){_e=!0;return}};function S(e,t,r){let o=Object.getPrototypeOf(e._zod);if(t in o&&lr!==e._zod){lr=void 0;return}lr=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,Vu);let n=_e;_e=!1;try{let i=r(this);if(_e)delete this[t];else Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i});return _e=_e||n,i}catch(i){throw delete this[t],_e=_e||n,i}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function Ku(e,t,r,o){let n=qu(e,t);if(!n)return;Object.defineProperty(n,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,i),i.value=r(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:i})}})}var Wu="~constantCatch";function ln(e){let t=()=>e;return t[Wu]=!0,t}var pn,zr=Object.freeze({status:"aborted"}),_r={value:void 0,enumerable:!1},dn="captureStackTrace"in Error?Error:null;function Gu(e){let t=dn;if(t){let r=t.stackTraceLimit;if(typeof r==="number"){try{t.stackTraceLimit=0}catch{return dn=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function f(e,t,r,o){let n={};function i(h){this.def=h,this.constr=d,this.traits=new Set}i.prototype=n;let s=r,c=s&&new WeakSet;function a(h,m){if(!h._zod){_r.value=new i(m);try{Object.defineProperty(h,"_zod",_r)}finally{_r.value=void 0}}else if(h._zod.traits.has(e))return;if(h._zod.traits.add(e),t(h,m),c){let b=Object.getPrototypeOf(h),v=h._zod.constr.prototype,k=b;while(k&&k!==v)k=Object.getPrototypeOf(k);let H=k??b;if(!c.has(H))c.add(H),an(H,s)}let g=d.prototype;for(let b in g){if(!Object.prototype.hasOwnProperty.call(g,b))continue;if(!(b in h))h[b]=g[b].bind(h)}}let l=o?.Parent??Object;class p extends l{}Object.defineProperty(p,"name",{value:e});function d(h){let m=o?.Parent?Gu(p):this;a(m,h);let g=m._zod.deferred;if(g){for(let v of g)v();m._zod.deferred=void 0}let b=globalThis.__zod_globalConfig?.postProcessor;if(b)b(m);return m}return Object.defineProperty(d,"init",{value:a}),Object.defineProperty(d,Symbol.hasInstance,{value:(h)=>{if(o?.Parent&&h instanceof o.Parent)return!0;return h?._zod?.traits?.has(e)}}),Object.defineProperty(d,"name",{value:e}),d}class de extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Je extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(pn=globalThis).__zod_globalConfig??(pn.__zod_globalConfig={});var X=globalThis.__zod_globalConfig;function Y(e){if(e)Object.assign(X,e);return X}function Hu(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Me,2)),e.message}function Xu(e){this._zod.message=e}var Yu={get:Hu,set:Xu,enumerable:!0,configurable:!0},yr={value:void 0,enumerable:!1},mn=new WeakSet([Object.prototype,Error.prototype]),_n=(e,t)=>{e.name="$ZodError",yr.value=t,Object.defineProperty(e,"issues",yr),yr.value=void 0,Object.defineProperty(e,"message",Yu);let r=Object.getPrototypeOf(e);if(!mn.has(r))mn.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}})},zn=f("$ZodError",_n),xn=f("$ZodError",_n,void 0,{Parent:Error});function Qu(e,t,r){if(!Object.prototype.hasOwnProperty.call(e,t))if(t==="__proto__")Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0});else e[t]=r();return e[t]}function br(e,t=(r)=>r.message){let r={},o=[];for(let n of e.issues)if(n.path.length>0)Qu(r,n.path[0],()=>[]).push(t(n));else o.push(t(n));return{formErrors:o,fieldErrors:r}}function vr(e,t=(r)=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map((c)=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0)r._errors.push(t(s));else{let a=r,l=0;while(l<c.length){let p=c[l],d=l===c.length-1;if(p==="_errors"){if(d)a._errors.push(t(s));l++;continue}if(!Object.prototype.hasOwnProperty.call(a,p))Object.defineProperty(a,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let h=a[p];if(d)h._errors.push(t(s));a=h,l++}}}};return o(e),r}function mt(e,t){return{callee:t?.callee??e,Err:t?.Err}}var ht=(e)=>{let t=(r,o,n,i)=>{let s=n?{...n,async:!1}:{async:!1},c=r._zod.run({value:o,issues:[]},s);if(c instanceof Promise)throw new de;if(c.issues.length){let a=new(i?.Err??e)(c.issues.map((l)=>fe(l,s,Y())));throw fr(a,i?.callee??t),a}return c.value};return t};var gt=(e)=>{let t=async(r,o,n,i)=>{let s=n?{...n,async:!0}:{async:!0},c=r._zod.run({value:o,issues:[]},s);if(c instanceof Promise)c=await c;if(c.issues.length){let a=new(i?.Err??e)(c.issues.map((l)=>fe(l,s,Y())));throw fr(a,i?.callee??t),a}return c.value};return t};var qe=(e)=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new de;return i.issues.length?yn(e,i.issues,n):{success:!0,data:i.value}},bi=qe(xn);function yn(e,t,r){let o;return{success:!1,get error(){if(!o)o=new e(t.map((n)=>fe(n,r,Y()))),t=void 0,r=void 0;return o},set error(n){o=n,t=void 0,r=void 0}}}var _t=(e)=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)i=await i;return i.issues.length?yn(e,i.issues,n):{success:!0,data:i.value}};var tl=Symbol.for("zod.compile.invalid"),rl=Symbol.for("zod.compile.fallback"),wr=(e,t,r)=>{let o=e._zod.bag.validator;if(o!==void 0){if(o(t)!==tl)return!0;if(o.definite===!0&&r===void 0)return!1}return ol(e,t,r)};function ol(e,t,r){let o=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,i;if(n)o[rl]=!0,i=n({value:t,issues:[]},o);else i=e._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new de;return i.issues.length===0}var $r=async(e,t,r)=>{let o=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=e._zod.run({value:t,issues:[]},o);if(n instanceof Promise)n=await n;return n.issues.length===0},bn=(e)=>{let t=ht(e),r=(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return t(o,n,c,mt(r,s))};return r};var vn=(e)=>{let t=ht(e),r=(o,n,i,s)=>t(o,n,i,mt(r,s));return r};var wn=(e)=>{let t=gt(e),r=async(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return await t(o,n,c,mt(r,s))};return r};var $n=(e)=>{let t=gt(e),r=async(o,n,i,s)=>await t(o,n,i,mt(r,s));return r};var Sn=(e)=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return qe(e)(t,r,n)};var kn=(e)=>(t,r,o)=>qe(e)(t,r,o);var Pn=(e)=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return _t(e)(t,r,n)};var Zn=(e)=>async(t,r,o)=>_t(e)(t,r,o);var On=/^[cC][0-9a-z]{6,}$/,Rn=/^[0-9a-z]+$/,Cn=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,In=/^[0-9a-vA-V]{20}$/,Tn=/^[A-Za-z0-9]{27}$/,An=/^[a-zA-Z0-9_-]{21}$/;function En(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Nn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var jn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Pr=(e)=>{if(!e)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var Ln=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var nl="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Dn(){return new RegExp(nl,"u")}var Un=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var Fn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Bn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Jn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qn=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;var Vn=/^https?$/,Kn=/^\+[1-9]\d{6,14}$/;var Wn="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function il(e){return new RegExp(`^${e}$`)}var Gn=il(Wn);function Sr(e){return typeof e.precision==="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Hn(e){return new RegExp(`^${Sr(e)}$`)}function Xn(e){let t=["Z"];if(e.offset)t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${Sr({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${r}|${Sr({precision:e.precision})}`:r;return new RegExp(`^${Wn}T(?:${o})$`)}var Yn=/^[\s\S]{0,}$/;var Zr=/^-?\d+$/,Ve=/^-?\d+(?:\.\d+)?$/,Qn=/^(?:true|false)$/i,ei=/^null$/i;var ti=/^[^A-Z]*$/,ri=/^[^a-z]*$/;var q=f("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var Or=(e)=>{let t=e.value;return!Wo(t)&&t.length!==void 0},zt={number:"number",bigint:"bigint",object:"date"},Rr=f("$ZodCheckLessThan",(e,t)=>{q.init(e,t);let r=zt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value<=t.value:o.value<t.value)return;o.issues.push({origin:zt[typeof o.value]??r,code:"too_big",maximum:typeof t.value==="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Cr=f("$ZodCheckGreaterThan",(e,t)=>{q.init(e,t);let r=zt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value>=t.value:o.value>t.value)return;o.issues.push({origin:zt[typeof o.value]??r,code:"too_small",minimum:typeof t.value==="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oi=f("$ZodCheckMultipleOf",(e,t)=>{q.init(e,t),e._zod.check=(r)=>{if(typeof r.value!==typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof r.value==="bigint"?t.value!==BigInt(0)&&r.value%t.value===BigInt(0):Go(r.value,t.value)===0)return;r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ni=f("$ZodCheckNumberFormat",(e,t)=>{q.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=at[t.format];e._zod.check=(s)=>{let c=s.value;if(r){if(!Number.isInteger(c)){s.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){if(c>0)s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});else s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}if(c<n)s.issues.push({origin:"number",input:c,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort});if(c>i)s.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}});var ii=f("$ZodCheckMaxLength",(e,t)=>{var r;q.init(e,t),(r=e._zod.def).when??(r.when=Or),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>t.maximum?pt(n):i)<=t.maximum)return;let c=ft(n);o.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),si=f("$ZodCheckMinLength",(e,t)=>{var r;q.init(e,t),(r=e._zod.def).when??(r.when=Or),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>=t.minimum&&i<t.minimum*2?pt(n):i)>=t.minimum)return;let c=ft(n);o.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ci=f("$ZodCheckLengthEquals",(e,t)=>{var r;q.init(e,t),(r=e._zod.def).when??(r.when=Or),e._zod.check=(o)=>{let n=o.value,i=n.length,s=typeof n==="string"&&i>=t.length&&i<=t.length*2?pt(n):i;if(s===t.length)return;let c=ft(n),a=s>t.length;o.issues.push({origin:c,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ke=f("$ZodCheckStringFormat",(e,t)=>{var r,o;if(q.init(e,t),t.pattern)(r=e._zod).check??(r.check=(n)=>{if(t.pattern.lastIndex=0,t.pattern.test(n.value))return;n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(o=e._zod).check??(o.check=()=>{})}),ai=f("$ZodCheckRegex",(e,t)=>{Ke.init(e,t),e._zod.check=(r)=>{if(t.pattern.lastIndex=0,t.pattern.test(r.value))return;r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ui=f("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ti),Ke.init(e,t)}),li=f("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ri),Ke.init(e,t)}),pi=f("$ZodCheckIncludes",(e,t)=>{q.init(e,t);let r=ze(t.includes),o=new RegExp(typeof t.position==="number"?`^.{${t.position},}${r}`:r);t.pattern=o,e._zod.check=(n)=>{if(n.value.includes(t.includes,t.position))return;n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),fi=f("$ZodCheckStartsWith",(e,t)=>{q.init(e,t);let r=new RegExp(`^${ze(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.check=(o)=>{if(o.value.startsWith(t.prefix))return;o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),di=f("$ZodCheckEndsWith",(e,t)=>{q.init(e,t);let r=new RegExp(`.*${ze(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.check=(o)=>{if(o.value.endsWith(t.suffix))return;o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});var mi=f("$ZodCheckOverwrite",(e,t)=>{q.init(e,t),e._zod.check=(r)=>{r.value=t.tx(r.value)}});class Ir{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e==="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let r=e.split(`
|
|
3
|
-
`).filter((i)=>i),o=Math.min(...r.map((i)=>i.length-i.trimStart().length)),n=r.map((i)=>i.slice(o)).map((i)=>" ".repeat(this.indent*2)+i);for(let i of n)this.content.push(i)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
4
|
-
${t.join(`
|
|
5
|
-
`)}
|
|
6
|
-
};`)(...Object.values(this.closed))}}var gi={major:4,minor:6,patch:7};var C=f("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=gi;let o=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let i of n)for(let s of i._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(c,a,l)=>{if(c.memo)return c;let p=pe(c),d;for(let h of a){if(h._zod.def.when){if(sn(c))continue;if(!h._zod.def.when(c))continue}else if(p)continue;let m=c.issues.length,g=h._zod.check(c);if(g instanceof Promise&&l?.async===!1)throw new de;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{if(await g,c.issues.length===m)return;if(lt(c.issues,m,e),!p)p=pe(c,m)});else{if(c.issues.length===m)continue;if(lt(c.issues,m,e),!p)p=pe(c,m)}}if(d)return d.then(()=>c);return c},s=(c,a,l)=>{if(pe(c))return c.aborted=!0,c;let p=i(a,n,l);if(p instanceof Promise){if(l.async===!1)throw new de;return p.then((d)=>e._zod.parse(d,l))}return e._zod.parse(p,l)};e._zod.run=(c,a)=>{if(a.skipChecks)return e._zod.parse(c,a);if(a.direction==="backward"){let p=e._zod.parse({value:c.value,issues:[]},{...a,skipChecks:!0});if(p instanceof Promise)return p.then((d)=>s(d,c,a));return s(p,c,a)}let l=e._zod.parse(c,a);if(l instanceof Promise){if(a.async===!1)throw new de;return l.then((p)=>i(p,n,a))}return i(l,n,a)}}},{get "~standard"(){return dt(this,"~standard",Ar(this))},set "~standard"(e){he(this,"~standard",e)}}),Bi=(e,t)=>e.issues.length?{issues:e.issues.map((r)=>fe(r,t,Y()))}:{value:e.value};async function sl(e,t){let r={async:!0};return Bi(await e._zod.run({value:t,issues:[]},r),r)}function Ar(e){return{validate:(t)=>{let r={async:!1};try{let o=e._zod.run({value:t,issues:[]},r);if(!(o instanceof Promise))return Bi(o,r)}catch(o){}return sl(e,t)},vendor:"zod",version:1}}var vt=f("$ZodString",(e,t)=>{C.init(e,t),e._zod.pattern=t.pattern??Yn,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch(n){}if(typeof r.value==="string")return r;return r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),T=f("$ZodStringFormat",(e,t)=>{Ke.init(e,t),vt.init(e,t)}),Ji=f("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=jn),T.init(e,t)}),qi=f("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Pr(o))}else t.pattern??(t.pattern=Pr());T.init(e,t)}),Vi=f("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ln),T.init(e,t)}),Ki=1,yt=2;function Wi(e){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(e);return new URL(e),!0}catch{return!1}}function cl(e,t){if(!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t))return Wi(e)||yt;return al(e,t)}function al(e,t){if(!t.normalize&&t.protocol?.source===Vn.source&&!/^https?:\/\//i.test(e))return Ki;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse==="function")return r.parse(e)??yt}return new URL(e)}catch{return yt}}var ul=/[\t\n\r]/g;function zi(e){return e.replace(ul,"")}function ll(e,t){return t.lastIndex=0,t.test(e.hostname)}function pl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Gi=f("$ZodURL",(e,t)=>{T.init(e,t),e._zod.check=(r)=>{try{let o=r.value.trim(),n=cl(o,t);if(n===Ki){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===yt){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=zi(o);return}if(t.hostname&&!ll(n,t.hostname))r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort});if(t.protocol&&!pl(n,t.protocol))r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort});r.value=t.normalize?n.href:zi(o);return}catch(o){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Hi=f("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Dn()),T.init(e,t)}),Xi=f("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?An:En(t.length)),T.init(e,t)}),Yi=f("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=On),T.init(e,t)}),Qi=f("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Rn),T.init(e,t)}),es=f("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Cn),T.init(e,t)}),ts=f("$ZodXID",(e,t)=>{t.pattern??(t.pattern=In),T.init(e,t)}),rs=f("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Tn),T.init(e,t)}),os=f("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xn(t)),T.init(e,t)}),ns=f("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Gn),T.init(e,t)}),is=f("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Hn(t)),T.init(e,t)}),ss=f("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Nn),T.init(e,t)}),cs=f("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Un),T.init(e,t)}),fl=/^[0-9a-fA-F:.]+$/;function as(e){if(!fl.test(e))return!1;return Wi(`http://[${e}]`)}var us=f("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Mn),T.init(e,t),e._zod.check=(r)=>{if(!as(r.value))r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}});var ls=f("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Fn),T.init(e,t)});function dl(e){let t=e.split("/");if(t.length!==2)return!1;let[r,o]=t;if(!o)return!1;let n=Number(o);if(`${n}`!==o)return!1;if(n<0||n>128)return!1;return as(r)}var ps=f("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Bn),T.init(e,t),e._zod.check=(r)=>{if(!dl(r.value))r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function fs(e){if(e==="")return!0;if(/\s/.test(e))return!1;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Er=/^[0-9a-zA-Z+/]*={0,2}$/,ds=f("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Er),T.init(e,t),e._zod.check=(r)=>{if(fs(r.value))return;r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),wt=/^[A-Za-z0-9_-]*$/;function ml(e){if(!wt.test(e))return!1;let t=e.replace(/[-_]/g,(o)=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return fs(r)}var ms=f("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=wt),T.init(e,t),e._zod.check=(r)=>{if(ml(r.value))return;r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),hs=f("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Kn),T.init(e,t)});function hl(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));if("typ"in n&&n?.typ!=="JWT")return!1;if(!n.alg)return!1;if(t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}var gs=f("$ZodJWT",(e,t)=>{T.init(e,t),e._zod.check=(r)=>{if(hl(r.value,t.alg))return;r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}});var Nr=f("$ZodNumber",(e,t)=>{C.init(e,t),e._zod.pattern=Ve,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch(s){}let n=r.value;if(typeof n==="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n==="number"?Number.isNaN(n)?"NaN":!Number.isFinite(n)?String(n):void 0:void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),_s=f("$ZodNumberFormat",(e,t)=>{ni.init(e,t),Nr.init(e,t)}),zs=f("$ZodBoolean",(e,t)=>{C.init(e,t),e._zod.pattern=Qn,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Boolean(r.value)}catch(i){}let n=r.value;if(typeof n==="boolean")return r;return r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}});var xs=f("$ZodNull",(e,t)=>{C.init(e,t),e._zod.pattern=ei,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;if(n===null)return r;return r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),ys=f("$ZodAny",(e,t)=>{C.init(e,t),e._zod.parse=(r)=>r}),bs=f("$ZodUnknown",(e,t)=>{C.init(e,t),e._zod.parse=(r)=>r}),vs=f("$ZodNever",(e,t)=>{C.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function gl(e,t){let r=gr(e._zod.def.checks);if(!r.length)return;let o=Math.min(...r.map((i)=>i[0])),n=e._zod.parse;e._zod.parse=(i,s)=>{let c=t(i.value);if(c>o&&!s?.skipChecks&&s?.direction!=="backward"){for(let[a,l]of gr(e._zod.def.checks))if(c>a&&l._zod.def.when(i)){let p=i.issues.length;return l._zod.check(i),i.issues[p].continue=!1,lt(i.issues,p,e),i}}return n(i,s)}}var _l=(e)=>Array.isArray(e)?e.length:-1;function yi(e,t,r){if(e.issues.length)t.issues.push(...xe(r,e.issues));t.value[r]=e.value}var ws=f("$ZodArray",(e,t)=>{C.init(e,t);let r=X.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),o;o.value=r?r.alloc(e,o,Array(i.length),n):Array(i.length);let s=[],c=n?.abortEarly;for(let a=0;a<i.length;a++){let l=i[a],p=t.element._zod.run({value:l,issues:[]},n);if(p instanceof Promise)s.push(p.then((d)=>yi(d,o,a)));else if(yi(p,o,a),c&&p.issues.length!==0&&pe(p))break}if(s.length)return Promise.all(s).then(()=>o);return o},gl(e,_l)});function bt(e,t,r,o,n,i){let s=r in o,c=i==="optional";if(!s&&c&&n==="optional")return;if(e.issues.length){if(n!==void 0&&c&&!s)return;t.issues.push(...xe(r,e.issues))}if(!s&&n===void 0){if(!e.issues.length)t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}if(e.value===void 0){if(s||n==="defaulted"&&!c)t.value[r]=void 0}else t.value[r]=e.value}var zl=[];function $s(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),o=r.length?r:zl,n=o.length?[...t,...o]:t;for(let s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=rn(e.shape);return{...e,allKeys:n,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function Ss(e,t,r,o,n,i,s){let c=[],a=n.keySet,l=n.catchall._zod,p=l.def.type,{optin:d,optout:h}=l,m=0;for(let g in t){if(s&&r.issues.length!==m){if(pe(r,m))break;m=r.issues.length}if(a.has(g))continue;if(g==="__proto__"){if(p==="never")c.push(g);continue}if(p==="never"){c.push(g);continue}let b=l.run({value:t[g],issues:[]},o);if(b instanceof Promise)e.push(b.then((v)=>bt(v,r,g,t,d,h)));else bt(b,r,g,t,d,h)}if(c.length)r.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:i,continue:!0});if(!e.length)return r;return Promise.all(e).then(()=>r)}var xl=f("$ZodObject",(e,t)=>{C.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),o=r?.get?r.get.raw:t.shape??{};if(o){let l=()=>{let p={...o};return Object.defineProperty(t,"shape",{value:p}),l.raw=p,p};l.raw=o,Object.defineProperty(t,"shape",{get:l})}let n=Fe(()=>$s(t));S(e,"propValues",(l)=>{let p=l.def.shape,d={};for(let h in p){let m=p[h]._zod;if(m.values){if(!Object.prototype.hasOwnProperty.call(d,h))oe(d,h,new Set);for(let g of m.values)d[h].add(g);if(m.optin!==void 0)d[h].add(void 0)}}return d});let i=Pe,s=t.catchall,c,a=X.memoizer;a?.attach(e),e._zod.parse=(l,p)=>{c??(c=n.value);let d=l.value;if(!i(d))return l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l;l.value=a?a.alloc(e,l,{},p):{};let h=[],m=c.shape,g=p?.abortEarly,b=l.issues.length;for(let v of c.allKeys){if(g&&l.issues.length!==b){if(pe(l,b))break;b=l.issues.length}if(v==="__proto__")continue;let k=m[v],H=k._zod.optin,F=k._zod.optout,ae=k._zod.run({value:d[v],issues:[]},p);if(ae instanceof Promise)h.push(ae.then((U)=>bt(U,l,v,d,H,F)));else bt(ae,l,v,d,H,F)}if(!s)return h.length?Promise.all(h).then(()=>l):l;return Ss(h,d,l,p,n.value,e,g===!0)}}),ks=f("$ZodObjectJIT",(e,t)=>{xl.init(e,t);let r=e._zod.parse,o=Fe(()=>$s(t)),n=X.memoizer,i=(m)=>{let g=o.value,b=g.symbolKeys,v=new Ir(["payload","ctx"],{shape:m,inst:e,memo:n,syms:b}),k=(U)=>`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`,H=(U,Z)=>`
|
|
7
|
-
let ${U}_ab = false;
|
|
8
|
-
for (let i = 0; i < ${U}.issues.length; i++) {
|
|
9
|
-
const iss = ${U}.issues[i];
|
|
10
|
-
iss.path = iss.path ? [${Z}, ...iss.path] : [${Z}];
|
|
11
|
-
payload.issues.push(iss);
|
|
12
|
-
if (iss.continue !== true) ${U}_ab = true;
|
|
13
|
-
}
|
|
14
|
-
if (${U}_ab && ctx && ctx.abortEarly) {
|
|
15
|
-
payload.value = newResult;
|
|
16
|
-
return payload;
|
|
17
|
-
}`;v.write("const input = payload.value;");let F=Object.create(null),ae=0;for(let U of g.allKeys)F[U]=`key_${ae++}`;v.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let U of g.allKeys){if(U==="__proto__")continue;let Z=F[U],le=typeof U==="symbol"?`syms[${b.indexOf(U)}]`:Yo(U),ar=`${le} in input`,qo=m[U],ur=qo?._zod?.optin,Vo=ur!==void 0,Au=qo?._zod?.optout==="optional";if(v.write(`const ${Z} = ${k(le)};`),Vo&&Au){let Eu=ur==="optional"?`${Z}_present`:`${Z}.value !== undefined || ${Z}_present`;v.write(`
|
|
18
|
-
const ${Z}_present = ${ar};
|
|
19
|
-
if (!${Z}.issues.length || ${Z}_present) {
|
|
20
|
-
if (${Z}.issues.length) {${H(Z,le)}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (${Eu}) {
|
|
24
|
-
newResult[${le}] = ${Z}.value;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
`)}else if(!Vo)v.write(`
|
|
29
|
-
const ${Z}_present = ${ar};
|
|
30
|
-
if (${Z}.issues.length) {${H(Z,le)}
|
|
31
|
-
}
|
|
32
|
-
if (!${Z}_present && !${Z}.issues.length) {
|
|
33
|
-
payload.issues.push({
|
|
34
|
-
code: "invalid_type",
|
|
35
|
-
expected: "nonoptional",
|
|
36
|
-
input: undefined,
|
|
37
|
-
path: [${le}]
|
|
38
|
-
});
|
|
39
|
-
if (ctx && ctx.abortEarly) {
|
|
40
|
-
payload.value = newResult;
|
|
41
|
-
return payload;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (${Z}_present) {
|
|
46
|
-
newResult[${le}] = ${Z}.value;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
`);else if(v.write(`
|
|
50
|
-
if (${Z}.issues.length) {${H(Z,le)}
|
|
51
|
-
}
|
|
52
|
-
`),ur==="defaulted")v.write(`newResult[${le}] = ${Z}.value;`);else v.write(`
|
|
53
|
-
if (${Z}.value !== undefined || ${ar}) {
|
|
54
|
-
newResult[${le}] = ${Z}.value;
|
|
55
|
-
}
|
|
56
|
-
`)}return v.write("payload.value = newResult;"),v.write("return payload;"),v.compile()},s,c=Pe,a=!X.jitless,p=a&&en.value,d=t.catchall,h;e._zod.parse=(m,g)=>{h??(h=o.value);let b=m.value;if(!c(b))return m.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),m;if(a&&p&&g?.async===!1&&g.jitless!==!0){if(!s)s=i(t.shape);if(m=s(m,g),!d)return m;return Ss([],b,m,g,h,e,g?.abortEarly===!0)}return r(m,g)}});function $i(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter((i)=>!pe(i));if(n.length===1)return t.value=n[0].value,n[0];return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map((i)=>i.issues.map((s)=>fe(s,o,Y())))}),t}var jr=f("$ZodUnion",(e,t)=>{C.init(e,t),S(e,"optin",(o)=>o.def.options.some((n)=>n._zod.optin==="defaulted")?"defaulted":o.def.options.some((n)=>n._zod.optin!==void 0)?"optional":void 0),S(e,"optout",(o)=>o.def.options.some((n)=>n._zod.optout==="optional")?"optional":void 0),S(e,"values",(o)=>{if(o.def.options.every((n)=>n._zod.values))return new Set(o.def.options.flatMap((n)=>Array.from(n._zod.values)));return}),S(e,"pattern",(o)=>{if(o.def.options.every((n)=>n._zod.pattern)){let n=o.def.options.map((i)=>i._zod.pattern);return new RegExp(`^(${n.map((i)=>ct(i.source)).join("|")})$`)}return});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,s=[];for(let c of t.options){let a=c._zod.run({value:o.value,issues:[]},n);if(a instanceof Promise)s.push(a),i=!0;else{if(a.issues.length===0)return a;s.push(a)}}if(!i)return $i(s,o,e,n);return Promise.all(s).then((c)=>$i(c,o,e,n))}});function yl(e){let t=new Map;for(let r of e.options){let o=r._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let n of o)if(t.has(n)){if(n!==void 0)throw Error(`Duplicate discriminator value "${String(n)}"`);t.set(n,null)}else t.set(n,r)}return t}var Ps=f("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,jr.init(e,t);let r=e._zod.parse;S(e,"propValues",(n)=>{let i={},s=0;for(let c of n.def.options){let a=c._zod.propValues;if(!a||Object.keys(a).length===0)throw Error(`Invalid discriminated union option at index "${n.def.options.indexOf(c)}"`);if(a[n.def.discriminator]?.has(void 0))s++;for(let[l,p]of Object.entries(a)){if(!Object.prototype.hasOwnProperty.call(i,l))oe(i,l,new Set);for(let d of p)i[l].add(d)}}if(!n.def.unionFallback&&s>1)i[n.def.discriminator]?.delete(void 0);return i}),t.options.forEach((n,i)=>{let s=Be(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw Error(`Invalid discriminated union option at index "${i}"`)});let o=Fe(()=>yl(t));e._zod.parse=(n,i)=>{let s=n.value;if(!Pe(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let c=s?.[t.discriminator],a=o.value.get(c);if(a&&(c!==void 0||i.direction!=="backward"))return a._zod.run(n,i);if(t.unionFallback||i.direction==="backward")return r(n,i);return n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()).filter((l)=>o.value.get(l)!==null),input:s,path:[t.discriminator],inst:e}),n}}),Zs=f("$ZodIntersection",(e,t)=>{C.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),s=t.right._zod.run({value:n,issues:[]},o);if(i instanceof Promise||s instanceof Promise)return Promise.all([i,s]).then(([a,l])=>Zi(r,a,l));return Zi(r,i,s)}});function Tr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(Se(e)&&Se(t)){let r=Object.keys(t),o=Object.keys(e).filter((i)=>r.indexOf(i)!==-1),n={...e,...t};if(Object.prototype.hasOwnProperty.call(n,"__proto__"))delete n.__proto__;for(let i of o){if(i==="__proto__")continue;let s=Tr(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],s=Tr(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Zi(e,t,r){let o=new Map,n,i=new Map,s=(l,p)=>{let d;if(l.code==="unrecognized_keys"&&!l.path?.length)n??(n=l),d=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){let h=String(l.path[0]);if(!i.has(h))i.set(h,l);d=[h]}else return!1;for(let h of d){if(!o.has(h))o.set(h,{});o.get(h)[p]=!0}return!0};for(let l of t.issues)if(!s(l,"l"))e.issues.push(l);for(let l of r.issues)if(!s(l,"r"))e.issues.push(l);let c=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(c.length){let l=n?c.filter((p)=>n.keys.includes(p)):[];if(l.length)e.issues.push({...n,keys:l});for(let p of c)if(!l.includes(p)&&i.has(p))e.issues.push(i.get(p))}let a=Tr(t.value,r.value);if(!a.valid){if(pe(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`)}return e.value=a.data,e}var Ts=f("$ZodRecord",(e,t)=>{C.init(e,t);let r=X.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!Se(i))return o.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),o;let s=[],c=t.keyType._zod.values;if(c&&!t.partial){o.value=r?r.alloc(e,o,{},n):{};let a=new Set;for(let p of c)if(typeof p==="string"||typeof p==="number"||typeof p==="symbol"){if(a.add(typeof p==="number"?p.toString():p),p==="__proto__")continue;let d=t.keyType._zod.run({value:p,issues:[]},n);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(d.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map((g)=>fe(g,n,Y())),input:p,path:[p],inst:e});continue}let h=d.value;if(h==="__proto__")continue;let m=t.valueType._zod.run({value:i[p],issues:[]},n);if(m instanceof Promise)s.push(m.then((g)=>{if(g.issues.length)o.issues.push(...xe(p,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...xe(p,m.issues));o.value[h]=m.value}}let l;for(let p in i)if(!a.has(p))if(t.mode==="loose"){if(p==="__proto__")continue;o.value[p]=i[p]}else l=l??[],l.push(p);if(l&&l.length>0)o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}else{o.value=r?r.alloc(e,o,{},n):{};let a;for(let l of Reflect.ownKeys(i)){if(l==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(i,l))continue;let p=t.keyType._zod.run({value:l,issues:[]},n);if(p instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof l==="string"&&Ve.test(l)&&p.issues.length){let g=t.keyType._zod.run({value:Number(l),issues:[]},n);if(g instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(g.issues.length===0)p=g}if(p.issues.length){if(t.mode==="loose")o.value[l]=i[l];else if(c)a=a??[],a.push(l);else o.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map((g)=>fe(g,n,Y())),input:l,path:[l],inst:e});continue}let h=p.value;if(h==="__proto__")continue;let m=t.valueType._zod.run({value:i[l],issues:[]},n);if(m instanceof Promise)s.push(m.then((g)=>{if(g.issues.length)o.issues.push(...xe(l,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...xe(l,m.issues));o.value[h]=m.value}}if(a&&a.length>0)o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a,continue:!0})}if(s.length)return Promise.all(s).then(()=>o);return o}});var As=f("$ZodEnum",(e,t)=>{C.init(e,t);let r=Ue(t.entries),o=new Set(r);e._zod.values=o,S(e,"pattern",(n)=>{let i=Ue(n.def.entries).filter((s)=>tn.has(typeof s));return new RegExp(i.length?`^(${i.map((s)=>ze(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(n,i)=>{let s=n.value;if(o.has(s))return n;return n.issues.push({code:"invalid_value",values:r,input:s,inst:e}),n}}),Es=f("$ZodLiteral",(e,t)=>{C.init(e,t);let r=new Set(t.values);e._zod.values=r,S(e,"pattern",(o)=>{let n=o.def.values;return new RegExp(n.length?`^(${n.map((i)=>typeof i==="string"?ze(i):i?ze(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,n)=>{let i=o.value;if(r.has(i))return o;return o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}});var Ns=f("$ZodTransform",(e,t)=>{C.init(e,t),e._zod.optin="optional",X.memoizer?.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Je(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then((s)=>(r.value=s,r));if(n instanceof Promise)throw new de;return r.value=n,r}});function Ni(e,t){return e.value=t.issues.length?void 0:t.value,e}var Lr=f("$ZodOptional",(e,t)=>{C.init(e,t),S(e,"optin",(r)=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",S(e,"values",(r)=>{let o=r.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),S(e,"pattern",(r)=>{let o=r.def.innerType._zod.pattern;return o?new RegExp(`^(${ct(o.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;let n=t.innerType._zod.run({value:r.value,issues:[]},o);if(n instanceof Promise)return n.then((i)=>Ni(r,i));return Ni(r,n)}return t.innerType._zod.run(r,o)}}),js=f("$ZodExactOptional",(e,t)=>{Lr.init(e,t),S(e,"values",(r)=>r.def.innerType._zod.values),S(e,"pattern",(r)=>r.def.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Us=f("$ZodNullable",(e,t)=>{C.init(e,t),S(e,"optin",(r)=>r.def.innerType._zod.optin),S(e,"optout",(r)=>r.def.innerType._zod.optout),S(e,"pattern",(r)=>{let o=r.def.innerType._zod.pattern;return o?new RegExp(`^(${ct(o.source)}|null)$`):void 0}),S(e,"values",(r)=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>{if(r.value===null)return r;return t.innerType._zod.run(r,o)}}),Fs=f("$ZodDefault",(e,t)=>{C.init(e,t),e._zod.optin="defaulted",S(e,"values",(r)=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>ji(i,t));return ji(n,t)}});function ji(e,t){if(e.value===void 0)e.value=t.defaultValue;return e}var Bs=f("$ZodPrefault",(e,t)=>{C.init(e,t),e._zod.optin="defaulted",S(e,"values",(r)=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)r.value=t.defaultValue;return t.innerType._zod.run(r,o)}}),Js=f("$ZodNonOptional",(e,t)=>{C.init(e,t),S(e,"values",(r)=>{let o=r.def.innerType._zod.values;return o?new Set([...o].filter((n)=>n!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>Li(i,e));return Li(n,e)}});function Li(e,t){if(!e.issues.length&&e.value===void 0)e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t});return e}function Di(e,t,r,o){if(!t.issues.length){if(e.value=t.value,t.memo)e.memo=!0;return e}return e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map((n)=>fe(n,o,Y()))},input:e.value}),e}var qs=f("$ZodCatch",(e,t)=>{C.init(e,t),S(e,"optin",(r)=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),S(e,"optout",(r)=>r.def.innerType._zod.optout),S(e,"values",(r)=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run({value:r.value,issues:[]},o);if(n instanceof Promise)return n.then((i)=>Di(r,i,t,o));return Di(r,n,t,o)}});var Dr=f("$ZodPipe",(e,t)=>{C.init(e,t),S(e,"values",(r)=>r.def.in._zod.values),S(e,"optin",(r)=>r.def.in._zod.optin),S(e,"optout",(r)=>r.def.out._zod.optout),S(e,"propValues",(r)=>r.def.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);if(i instanceof Promise)return i.then((s)=>xt(s,t.in,o));return xt(i,t.in,o)}let n=t.in._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>xt(i,t.out,o));return xt(n,t.out,o)}});function xt(e,t,r){if(e.issues.some((o)=>o.code!=="unrecognized_keys"))return e.aborted=!0,e;return t._zod.run({value:e.value,issues:e.issues},r)}var Vs=f("$ZodPreprocess",(e,t)=>{Dr.init(e,t)}),Ks=f("$ZodReadonly",(e,t)=>{C.init(e,t),S(e,"propValues",(r)=>r.def.innerType._zod.propValues),S(e,"values",(r)=>r.def.innerType._zod.values),S(e,"optin",(r)=>r.def.innerType?._zod?.optin),S(e,"optout",(r)=>r.def.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);if(n instanceof Promise)return n.then(Ui);return Ui(n)}});function Ui(e){if(!e.memo)e.value=Object.freeze(e.value);return e}var Ws=f("$ZodCustom",(e,t)=>{q.init(e,t),C.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=(r)=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then((i)=>Fi(i,r,o,e));Fi(n,r,o,e);return}});function Fi(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};if(o._zod.def.params)n.params=o._zod.def.params;t.issues.push(ke(n))}}class Hs extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var Mr="~memo",Gs=[];function Xs(e){return e!==null&&typeof e==="object"}function Ur(e){return e.map((t)=>t.path?{...t,path:t.path.slice()}:{...t})}var Ys=new WeakMap,We=0,Pt=1,Ge=2;function Zt(e,t,r){let o=Ys.get(e);if(o!==void 0)return o?Ge:We;if(t.has(e))return Ge;t.add(e);let n=We,i=(p)=>{if(n!==Ge&&p?._zod){let d=Zt(p,t,r);if(d>n)n=d}},s=(p,d)=>{let h=We;for(let m of Reflect.ownKeys(p)){let g=Object.getOwnPropertyDescriptor(p,m);if(d&&!g.enumerable)continue;let b=g.get?Pt:g.value?._zod?Zt(g.value,t,r):We;if(b>h)h=b}return h},c=(p)=>{if(p>n)n=p},a=e._zod.def,l=a.type;switch(l){case"object":{let p=Be(a);c(p?s(p,!0):Pt),i(a.catchall);break}case"array":i(a.element);break;case"tuple":for(let p of a.items)i(p);i(a.rest);break;case"record":case"map":i(a.keyType),i(a.valueType);break;case"set":i(a.valueType);break;case"union":for(let p of a.options)i(p);break;case"intersection":i(a.left),i(a.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(a.innerType);break;case"pipe":i(a.in),i(a.out);break;case"function":i(a.input),i(a.output);break;case"lazy":{let p=a._cachedInner??(r?e._zod.innerType:void 0);c(p?Zt(p,t,!1):Pt);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let p in a){let d=Object.getOwnPropertyDescriptor(a,p);if(!d||d.get)continue;let h=d.value;if(!h||typeof h!=="object")continue;if(h._zod)i(h);else if(Array.isArray(h))for(let m of h)i(m)}}return t.delete(e),bl(e,n)}function bl(e,t){if(t!==Pt)Ys.set(e,t===Ge);return t}function vl(e,t){let r=e.buckets.get(t);if(!r)r=new WeakMap,e.buckets.set(t,r);return r}var $t,St=[],wl={alloc(e,t,r){let o=$t;if(!o)return r;$t=void 0;let n={value:r,issues:null};return o.set(t.value,n),St.push(n),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,o=(n,i)=>{if(i.direction!=="backward"&&$l(i,n.value))throw new Hs;return r(n,i)};if(e._zod.parse=o,e._zod.run===r)e._zod.run=o})},attach(e){var t;let r,o=!1,n,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,c=(a,l)=>{if(r===void 0){let k=Zt(e,new Set,!1);if(k===We){if(e._zod.parse=s,e._zod.run===c)e._zod.run=s;return s(a,l)}if(k===Ge||o)r=!0;else o=!0}let p=a.value;if(!Xs(p))return s(a,l);let d=l[Mr];if(!d)d={buckets:new WeakMap,backEdges:void 0},l[Mr]=d;let h;if(n===l)h=i;else h=vl(d,e),n=l,i=h;let m=h.get(p);if(m){if(a.value=m.value,m.issues){if(m.issues.length)a.issues.push(...Ur(m.issues))}else a.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(m.value);return a}$t=h;let g=St.length,b=s(a,l);$t=void 0;let v=St.length>g?St.pop():void 0;if(b instanceof Promise)return b.then((k)=>{if(v)v.issues=k.issues.length?Ur(k.issues):Gs;return k});if(v)v.issues=b.issues.length?Ur(b.issues):Gs;return b};if(e._zod.parse=c,e._zod.run===s)e._zod.run=c})}};function Fr(){return wl}function $l(e,t){let r=e[Mr]?.backEdges;return r!==void 0&&Xs(t)&&r.has(t)}var Sl=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};function n(i,s){if(i==="number"&&typeof s==="number"&&!Number.isFinite(s))return String(s);return o[i]??i}return(i)=>{switch(i.code){case"invalid_type":{let s=n(i.expected),c=cn(i.input),a=n(c,i.input);return`Invalid input: expected ${s}, received ${a}`}case"invalid_value":if(i.values.length===1)return`Invalid input: expected ${mr(i.values[0])}`;return`Invalid option: expected one of ${pr(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",c=t(i.origin);if(c)return`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${c.unit??"elements"}`;return`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",c=t(i.origin);if(c)return`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${c.unit}`;return`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;if(s.format==="starts_with")return`Invalid string: must start with "${s.prefix}"`;if(s.format==="ends_with")return`Invalid string: must end with "${s.suffix}"`;if(s.format==="includes")return`Invalid string: must include "${s.includes}"`;if(s.format==="regex")return`Invalid string: must match pattern ${s.pattern}`;return`Invalid ${r[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${pr(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":if(i.options&&Array.isArray(i.options)&&i.options.length>0)return`Invalid discriminator value. Expected ${i.options.map((c)=>`'${c}'`).join(" | ")}`;if(i.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Br(){return{localeError:Sl()}}var Qs;class ec{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&typeof r==="object"&&"id"in r)this._idmap.set(r.id,e);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);if(t&&typeof t==="object"&&"id"in t)this._idmap.delete(t.id);return this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let o={...r,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function tc(){return new ec}(Qs=globalThis).__zod_globalRegistry??(Qs.__zod_globalRegistry=tc());var ye=globalThis.__zod_globalRegistry;function Jr(e){if(e.checks)e.checks=[...e.checks];return e}function rc(e,t){return new e(Jr({type:"string",...x(t)}))}function oc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function nc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function ic(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function sc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function cc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function ac(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(t)})}function qr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(t)})}function uc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function lc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function pc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function fc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function dc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function mc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function hc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function gc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function _c(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function zc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function xc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function yc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function bc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function vc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function wc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}function Ot(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function Vr(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function Kr(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function Wr(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function $c(e,t){return new e(Jr({type:"number",checks:[],...x(t)}))}function Sc(e,t){return new e(Jr({type:"number",coerce:!0,checks:[],...x(t)}))}function kc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function Pc(e,t){return new e({type:"boolean",...x(t)})}function Zc(e,t){return new e({type:"null",...x(t)})}function Oc(e){return new e({type:"any"})}function Rc(e){return new e({type:"unknown"})}function Cc(e,t){return new e({type:"never",...x(t)})}function Rt(e,t){return new Rr({check:"less_than",...x(t),value:e,inclusive:!1})}function He(e,t){return new Rr({check:"less_than",...x(t),value:e,inclusive:!0})}function Ct(e,t){return new Cr({check:"greater_than",...x(t),value:e,inclusive:!1})}function Xe(e,t){return new Cr({check:"greater_than",...x(t),value:e,inclusive:!0})}function It(e,t){return new oi({check:"multiple_of",...x(t),value:e})}function Tt(e,t){return new ii({check:"max_length",...x(t),maximum:e})}function Oe(e,t){return new si({check:"min_length",...x(t),minimum:e})}function At(e,t){return new ci({check:"length_equals",...x(t),length:e})}function Gr(e,t){return new ai({check:"string_format",format:"regex",...x(t),pattern:e})}function Hr(e){return new ui({check:"string_format",format:"lowercase",...x(e)})}function Xr(e){return new li({check:"string_format",format:"uppercase",...x(e)})}function Yr(e,t){return new pi({check:"string_format",format:"includes",...x(t),includes:e})}function Qr(e,t){return new fi({check:"string_format",format:"starts_with",...x(t),prefix:e})}function eo(e,t){return new di({check:"string_format",format:"ends_with",...x(t),suffix:e})}function be(e){return new mi({check:"overwrite",tx:e})}function uo(e){return be((t)=>t.normalize(e))}function po(){return be((e)=>e.trim())}function fo(){return be((e)=>e.toLowerCase())}function mo(){return be((e)=>e.toUpperCase())}function ho(){return be((e)=>Qo(e))}function Ic(e,t,r){return new e({type:"array",element:t,...x(r)})}function Tc(e,t,r){let o=x(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Ac(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Ec(e,t){let r=kl((o)=>(o.addIssue=(n)=>{if(typeof n==="string")o.issues.push(ke(n,o.value,r._zod.def));else{let i=n;if(i.fatal)i.continue=!1;if(i.code??(i.code="custom"),!("input"in i))i.input=o.value;i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(ke(i))}},e(o.value,o)),t);return r}function kl(e,t){let r=new q({check:"custom",...x(t)});return r._zod.check=e,r}function Ye(e,...t){for(let r of t)for(let o of Reflect.ownKeys(r))if(Object.prototype.propertyIsEnumerable.call(r,o))oe(e,o,r[o]);return e}function _o(e){let t=e?.target??"draft-2020-12";if(t==="draft-4")t="draft-04";if(t==="draft-7")t="draft-07";return{processors:e.processors??{},metadataRegistry:e?.metadata??ye,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function ge(e,t,r,o,n){let i=typeof t.unrepresentable==="function"?t.unrepresentable({zodSchema:e,path:o.path,message:n}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw Error(n);return Object.assign(r,i),!0}function D(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i){if(i.count++,r.schemaPath.includes(e))i.cycle=r.path;return i.schema}let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let c=e._zod.toJSONSchema?.();if(c)s.schema=c;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{let h=s.schema,m=t.processors[n.type];if(!m)throw Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,h,p)}let d=e._zod.parent;if(d){if(!s.ref)s.ref=d;D(d,t,p),t.seen.get(d).isParent=!0}}let a=t.metadataRegistry.get(e);if(a)Ye(s.schema,a);if(t.io==="input"&&G(e))delete s.schema.examples,delete s.schema.default;if(t.io==="input"&&"_prefault"in s.schema)(o=s.schema).default??(o.default=s.schema._prefault);return delete s.schema._prefault,t.seen.get(e).schema}function Nc(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function zo(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let o=new Map;for(let s of e.seen.entries()){let c=e.metadataRegistry.get(s[0])?.id;if(c){let a=o.get(c);if(a&&a!==s[0])throw Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(c,s[0])}}let n=(s)=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,h=e.external.uri??((g)=>g);if(d)return{ref:h(d)};let m=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=m,{defId:m,ref:`${h("__shared")}#/${c}/${Nc(m)}`}}let a="#",l=`${a}/${c}/`;if(s[1]===r&&!s[1].schema.id)return{ref:a};let p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:l+Nc(p)}},i=(s)=>{if(s[1].schema.$ref)return;let c=s[1],{ref:a,defId:l}=n(s);if(c.def={...c.schema},l)c.defId=l;let p=c.schema;for(let d in p)delete p[d];p.$ref=a};if(e.cycles==="throw")for(let s of e.seen.entries()){let c=s[1];if(c.cycle)throw Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
|
|
57
|
-
|
|
58
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let c=s[1];if(t===s[0]){i(s);continue}if(e.external){let l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(c.cycle){i(s);continue}if(c.count>1){if(e.reused==="ref")i(s)}}if(e.external)e.sharedDefsExtractedFor=e.external}function Dc(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let r=[];for(let o of t){if(!o||typeof o!=="object")return;Dc(o);let n=Object.keys(o);if(n.length!==1||n[0]!=="type")return;let i=o.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!=="string")return;if(!r.includes(s))r.push(s)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var Uc=new Set(["type","properties","required","additionalProperties"]),jc=["oneOf","anyOf"];function Lc(e){let t=e.additionalProperties;if(t===void 0||t===!1||typeof t!=="object"||t===null)return null;return Object.keys(t).length?t:null}function go(e){let t=[];for(let i of e){if(typeof i!=="object"||i.type!=="object")return null;for(let s in i)if(!Uc.has(s))return null;t.push(i)}let r={},o=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(r,s))continue;let c=[];for(let l of t){let p=l.properties?.[s]??Lc(l);if(p===null||p===void 0)continue;if(!c.some((d)=>JSON.stringify(d)===JSON.stringify(p)))c.push(p)}let a=c.length===1?c[0]:go(c)??{allOf:c};oe(r,s,a)}for(let s of i.required??[])o.add(s)}let n={type:"object",properties:r};if(o.size)n.required=[...o];if(t.every((i)=>i.additionalProperties===!1))n.additionalProperties=!1;else{let i=[];for(let s of t){let c=Lc(s);if(c&&!i.some((a)=>JSON.stringify(a)===JSON.stringify(c)))i.push(c)}if(i.length===1)n.additionalProperties=i[0];else if(i.length>1)n.additionalProperties={allOf:i}}return n}function Pl(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of Uc)if(n in e)return;let r=t.filter((n)=>jc.some((i)=>Array.isArray(n[i]))),o=null;if(!r.length)o=go(t);else{let n=r[0],i=jc.find((a)=>Array.isArray(n[a]));if(Object.keys(n).length!==1)return;let s=t.filter((a)=>a!==n),c=n[i].map((a)=>go([...s,a]));if(c.some((a)=>!a))return;o={[i]:c}}if(!o)return;delete e.allOf,Ye(e,o)}function xo(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let o=(c)=>{let a=e.seen.get(c);if(a.ref===null)return;let l=a.def??a.schema,p={...l},d=a.ref;if(a.ref=null,d){o(d);let m=e.seen.get(d),g=m.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"))l.allOf=l.allOf??[],l.allOf.push(g);else Ye(l,g);if(Ye(l,p),c._zod.parent===d)for(let v in l){if(v==="$ref"||v==="allOf")continue;if(!(v in p))delete l[v]}if(g.$ref&&m.def)for(let v in l){if(v==="$ref"||v==="allOf")continue;if(v in m.def&&JSON.stringify(l[v])===JSON.stringify(m.def[v]))delete l[v]}}let h=c._zod.parent;if(h&&h!==d){o(h);let m=e.seen.get(h);if(m?.schema.$ref){if(l.$ref=m.schema.$ref,m.def)for(let g in l){if(g==="$ref"||g==="allOf")continue;if(g in m.def&&JSON.stringify(l[g])===JSON.stringify(m.def[g]))delete l[g]}}}e.override({zodSchema:c,jsonSchema:l,path:a.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let c of[...e.seen.entries()].reverse())o(c[0]);if(e.target!=="openapi-3.0")for(let c of e.seen.entries())Dc(c[1].def??c[1].schema);for(let c of e.deferred)c();if(e.intersections.length){let c=new Map;for(let a of e.seen.values())for(let l of[a.schema,a.def]){let p=l?.allOf;if(!Array.isArray(p))continue;let d=c.get(p);if(d)d.push(l);else c.set(p,[l])}for(let a of e.intersections)for(let l of c.get(a)??[])Pl(l)}}let n={};if(e.target==="draft-2020-12")n.$schema="https://json-schema.org/draft/2020-12/schema";else if(e.target==="draft-07")n.$schema="http://json-schema.org/draft-07/schema#";else if(e.target==="draft-04")n.$schema="http://json-schema.org/draft-04/schema#";else if(e.target==="openapi-3.0");if(e.external?.uri){let c=e.external.registry.get(t)?.id;if(!c)throw Error("Schema is missing an `id` property");n.$id=e.external.uri(c)}Ye(n,r.defId?r.schema:r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;if(i!==void 0&&n.id===i)delete n.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let c of e.seen.entries()){let a=c[1];if(a.def&&a.defId){if(a.def.id===a.defId)delete a.def.id;oe(s,a.defId,a.def)}}if(e.external)e.sharedEmitDoneFor=e.external;if(e.external);else if(Object.keys(s).length>0)if(e.target==="draft-2020-12")n.$defs=s;else n.definitions=s;try{let c=JSON.parse(JSON.stringify(n));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:Qe(t,"input",e.processors),output:Qe(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch(c){throw Error("Error converting schema to JSON.")}}function G(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return G(o.element,r);if(o.type==="set")return G(o.valueType,r);if(o.type==="lazy")return G(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault"||o.type==="catch")return G(o.innerType,r);if(o.type==="intersection")return G(o.left,r)||G(o.right,r);if(o.type==="record"||o.type==="map")return G(o.keyType,r)||G(o.valueType,r);if(o.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return G(o.in,r)||G(o.out,r)}if(o.type==="object"){for(let n in o.shape)if(G(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(G(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(G(n,r))return!0;if(o.rest&&G(o.rest,r))return!0;return!1}return!1}var Mc=(e,t={})=>(r)=>{let o=_o({...r,processors:t});return D(e,o),zo(o,e),xo(o,e)},Qe=(e,t,r={})=>(o)=>{let{libraryOptions:n,target:i}=o??{},s=_o({...n??{},target:i,io:t,processors:r});return D(e,s),zo(s,e),xo(s,e)};var Re=(e,t,r)=>{if(e[t]===void 0||r>e[t])e[t]=r},Ce=(e,t,r)=>{if(e[t]===void 0||r<e[t])e[t]=r},Fc=(e,t)=>{Re(e,"minimum",t),Ce(e,"maximum",t)},Vc=(e,t)=>{if(e.multipleOf??(e.multipleOf=[]),!e.multipleOf.includes(t))e.multipleOf.push(t)},Kc=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Wc=(e,t)=>{e.mime=e.mime?e.mime.filter((r)=>t.includes(r)):[...t]},Gc=(e,t)=>{if(e.format=t,t.includes("int"))e.isInt=!0},Bc=(e,t)=>Re(e,"minimum",t.minimum),Jc=(e,t)=>Ce(e,"maximum",t.maximum),qc=(e)=>(t,r)=>{Gc(t,r.format);let[o,n]=e[r.format];Re(t,"minimum",o),Ce(t,"maximum",n)},Zl={greater_than:(e,t)=>Re(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Ce(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Vc(e,t.value),number_format:qc(at),bigint_format:qc(hr),min_length:Bc,max_length:Jc,length_equals:(e,t)=>Fc(e,t.length),min_size:Bc,max_size:Jc,size_equals:(e,t)=>Fc(e,t.size),string_format:(e,t)=>{if(Gc(e,t.format),t.pattern)Kc(e,t.pattern);if(t.format==="base64"||t.format==="base64url")e.contentEncoding=t.format;if(t.local||t.precision===-1)e.laxFormat=!0},mime_type:(e,t)=>Wc(e,t.mime)};function ie(e){let t={},r=e._zod.def,o=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let i of o)Zl[i._zod.def.check]?.(t,i._zod.def);let n=e._zod.bag;if(n.minimum!==void 0)Re(t,"minimum",n.minimum);if(n.exclusiveMinimum!==void 0)Re(t,"exclusiveMinimum",n.exclusiveMinimum);if(n.maximum!==void 0)Ce(t,"maximum",n.maximum);if(n.exclusiveMaximum!==void 0)Ce(t,"exclusiveMaximum",n.exclusiveMaximum);if(n.multipleOf!==void 0)Vc(t,n.multipleOf);if(n.format!==void 0){if(t.format??(t.format=n.format),n.format.includes("int"))t.isInt=!0}if(n.mime)Wc(t,n.mime);for(let i of n.patterns??[])Kc(t,i);return t}var Ol={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Rl=new Map([[Er,Jn],[wt,qn]]),Hc=(e)=>Rl.get(e)??e,Xc=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:c,patterns:a,contentEncoding:l,laxFormat:p}=ie(e);if(typeof i==="number")n.minLength=i;if(typeof s==="number")n.maxLength=s;if(c){if(n.format=Ol[c]??c,n.format==="")delete n.format;if(c==="time"||p)delete n.format}if(l)n.contentEncoding=l;if(a&&a.size>0){let d=[...a].map(Hc);if(d.length===1)n.pattern=d[0].source;else if(d.length>1)n.allOf=[...d.map((h)=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))]}},Yc=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,multipleOf:c,exclusiveMaximum:a,exclusiveMinimum:l,isInt:p}=ie(e);n.type=p?"integer":"number";let d=typeof l==="number"&&l>=(i??Number.NEGATIVE_INFINITY),h=typeof a==="number"&&a<=(s??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";if(d)if(m)n.minimum=l,n.exclusiveMinimum=!0;else n.exclusiveMinimum=l;else if(typeof i==="number")n.minimum=i;if(h)if(m)n.maximum=a,n.exclusiveMaximum=!0;else n.exclusiveMaximum=a;else if(typeof s==="number")n.maximum=s;if(c){let g=new Set;for(let k of c)if(Number.isFinite(k)&&k!==0)g.add(Math.abs(k));else ge(e,t,n,o,`A multipleOf divisor of ${k} cannot be represented in JSON Schema`);let[b,...v]=g;if(b!==void 0)n.multipleOf=b;if(v.length)n.allOf=[...n.allOf??[],...v.map((k)=>({multipleOf:k}))]}},Qc=(e,t,r,o)=>{r.type="boolean"};var ea=(e,t,r,o)=>{if(t.target==="openapi-3.0")r.type="string",r.nullable=!0,r.enum=[null];else r.type="null"};var ta=(e,t,r,o)=>{r.not={}},ra=(e,t,r,o)=>{},oa=(e,t,r,o)=>{};var na=(e,t,r,o)=>{let n=e._zod.def,i=Ue(n.entries);if(i.length===0){r.not={};return}if(i.every((s)=>typeof s==="number"))r.type="number";if(i.every((s)=>typeof s==="string"))r.type="string";r.enum=i},ia=(e,t,r,o)=>{let n=e._zod.def;if(n.values.length===0){r.not={};return}let i=[];for(let s of n.values)if(s===void 0){if(ge(e,t,r,o,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s==="bigint"){if(ge(e,t,r,o,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length===0);else if(i.length===1){let s=i[0];if(r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0")r.enum=[s];else r.const=s}else{if(i.every((s)=>typeof s==="number"))r.type="number";if(i.every((s)=>typeof s==="string"))r.type="string";if(i.every((s)=>typeof s==="boolean"))r.type="boolean";if(i.every((s)=>s===null))r.type="null";r.enum=i}};var sa=(e,t,r,o)=>{ge(e,t,r,o,"Custom types cannot be represented in JSON Schema")};var ca=(e,t,r,o)=>{ge(e,t,r,o,"Transforms cannot be represented in JSON Schema")};var aa=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:s,maximum:c}=ie(e);if(typeof s==="number")n.minItems=s;if(typeof c==="number")n.maxItems=c;n.type="array",n.items=D(i.element,t,{...o,path:[...o.path,"items"]})};function Et(e){let t=e._zod.def;if(t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform"))return Et(t.out);if(t.type==="catch")return Et(t.innerType);return e._zod.optin}var ua=(e,t,r,o)=>{let n=r,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&ge(e,t,n,o,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let l in s)oe(n.properties,l,D(s[l],t,{...o,path:[...o.path,"properties",l]}));let a=[];for(let l of Object.keys(s)){let p=i.shape[l];if(t.io==="input"?Et(p)===void 0:p._zod.optout===void 0)a.push(l)}if(a.length>0)n.required=a;if(i.catchall?._zod.def.type==="never")n.additionalProperties=!1;else if(!i.catchall){if(t.io==="output")n.additionalProperties=!1}else if(i.catchall)n.additionalProperties=D(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})},la=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,s=n.options.map((c,a)=>D(c,t,{...o,path:[...o.path,i?"oneOf":"anyOf",a]}));if(i)r.oneOf=s;else r.anyOf=s},pa=(e,t,r,o)=>{let n=e._zod.def,i=D(n.left,t,{...o,path:[...o.path,"allOf",0]}),s=D(n.right,t,{...o,path:[...o.path,"allOf",1]}),c=(l)=>("allOf"in l)&&Object.keys(l).length===1,a=[...c(i)?i.allOf:[i],...c(s)?s.allOf:[s]];r.allOf=a,t.intersections.push(a)};function yo(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let g=e.get(t)?.def;if(!g)return t;let b=yo(e,g,r);return b===g?t:b}for(let g of["anyOf","oneOf"]){let b=t[g];if(!Array.isArray(b))continue;let v=b.map((k)=>yo(e,k,r));if(v.some((k,H)=>k!==b[H]))t={...t,[g]:v}}let o=Array.isArray(t.type)?t.type:[t.type],n=!o.includes("string")&&o.some((g)=>g==="number"||g==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!n&&!i?.some((g)=>typeof g==="number"))return t;let{minimum:s,maximum:c,exclusiveMinimum:a,exclusiveMaximum:l,multipleOf:p,format:d,id:h,...m}=t;if(m.enum)m.enum=m.enum.map((g)=>typeof g==="number"?String(g):g);else if(typeof m.const==="number")m.const=String(m.const);if(!n)return m;if(m.type="string",!i)m.pattern=(o.includes("number")?Ve:Zr).source;return m}var bo=new WeakMap;function Cl(e){let t=new Map;for(let o of e.seen.values())if(o.def&&!t.has(o.schema))t.set(o.schema,o);let r=new Map;for(let o of bo.get(e)??[]){let n=e.seen.get(o),i=(n?.def??n?.schema)?.propertyNames;if(!i||i===!0||r.has(i))continue;let s=yo(t,i,new Set);if(s!==i)r.set(i,s)}if(!r.size)return;for(let o of e.seen.values())for(let n of[o.schema,o.def]){let i=n&&r.get(n.propertyNames);if(i)n.propertyNames=i}}var fa=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,c=ie(s).patterns;if(i.mode==="loose"&&c&&c.size>0){let p=D(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)oe(n.patternProperties,Hc(d).source,p)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){n.propertyNames=D(i.keyType,t,{...o,path:[...o.path,"propertyNames"]});let p=bo.get(t);if(!p)p=[],bo.set(t,p),t.deferred.push(()=>Cl(t));p.push(e)}n.additionalProperties=D(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let a=s._zod.values,l=t.io==="input"&&Et(i.valueType)!==void 0;if(a&&!i.partial&&!l){let p=[...a].filter((d)=>typeof d==="string"||typeof d==="number");if(p.length>0)n.required=p.map(String)}},da=(e,t,r,o)=>{let n=e._zod.def,i=D(n.innerType,t,o),s=t.seen.get(e);if(t.target==="openapi-3.0")s.ref=n.innerType,r.nullable=!0;else r.anyOf=[i,{type:"null"}]},ma=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},vo=Symbol();function ha(e,t,r,o,n){let i=!1,s=JSON.stringify(e,(c,a)=>{if(typeof a!=="bigint")return a;return i=!0,null});if(!i)return JSON.parse(s);return ge(t,r,o,n,"BigInt defaults cannot be represented in JSON Schema"),vo}var ga=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s=ha(n.defaultValue,e,t,r,o);if(s!==vo)r.default=s},_a=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);if(i.ref=n.innerType,t.io!=="input")return;let s=ha(n.defaultValue,e,t,r,o);if(s!==vo)r._prefault=s},za=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{ge(e,t,r,o,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},xa=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?n.out:n.in:n.out;D(s,t,o);let c=t.seen.get(e);c.ref=s},ya=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0};var wo=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType};var ba=new WeakSet([Object.prototype,Error.prototype]);function Nt(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let o=r(this);return Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0})}})}var Ul=(e,t)=>{zn.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);if(ba.has(r))return;ba.add(r),Nt(r,"format",(o)=>(n)=>vr(o,n)),Nt(r,"flatten",(o)=>(n)=>br(o,n)),Nt(r,"addIssue",(o)=>(n)=>{o.issues.push(n),o.message=JSON.stringify(o.issues,Me,2)}),Nt(r,"addIssues",(o)=>(n)=>{o.issues.push(...n),o.message=JSON.stringify(o.issues,Me,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})};var te=f("ZodError",Ul,void 0,{Parent:Error});var va=ht(te),wa=gt(te),$a=qe(te),Sa=_t(te),ka=bn(te),Pa=vn(te),Za=wn(te),Oa=$n(te),Ra=Sn(te),Ca=kn(te),Ia=Pn(te),Ta=Zn(te);function Fl(){if(!X.localeError)Y(Br())}function Lt(){if(!X.memoizer)Y({memoizer:Fr()})}var A=f("ZodType",(e,t)=>(Fl(),C.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(ee(t,{checks:[...t.checks??[],...e.map((r)=>typeof r==="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ue(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Op(e,t))},superRefine(e,t){return this.check(Rp(e,t))},overwrite(e){return this.check(be(e))},optional(){return j(this)},exactOptional(){return _p(this)},nullable(){return Na(this)},nullish(){return j(Na(this))},nonoptional(e){return wp(this,e)},array(){return _(this)},or(e){return E([this,e])},and(e){return Ut(this,e)},transform(e){return ja(this,Ha(e))},default(e){return yp(this,e)},prefault(e){return vp(this,e)},catch(e){return Sp(this,e)},pipe(e){return ja(this,e)},readonly(){return Zp(this)},describe(e){let t=this.clone();return ye.add(t,{description:e}),t},meta(...e){if(e.length===0)return ye.get(this);let t=this.clone();return ye.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get "~standard"(){return dt(this,"~standard",{...Ar(this),jsonSchema:{input:Qe(this,"input"),output:Qe(this,"output")}})},set "~standard"(e){he(this,"~standard",e)},parse:function e(t,r){return va(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await wa(this,t,r,{callee:e})},safeParse(e,t){return $a(this,e,t)},async safeParseAsync(e,t){return Sa(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){he(this,"spa",e)},validate(e,t){return wr(this,e,t)},validateAsync(e,t){return $r(this,e,t)},encode:function e(t,r){return ka(this,t,r,{callee:e})},decode:function e(t,r){return Pa(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await Za(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await Oa(this,t,r,{callee:e})},safeEncode(e,t){return Ra(this,e,t)},safeDecode(e,t){return Ca(this,e,t)},async safeEncodeAsync(e,t){return Ia(this,e,t)},async safeDecodeAsync(e,t){return Ta(this,e,t)},toJSONSchema(e){return Mc(this,{})(e)},get description(){return ye.get(this)?.description},get _def(){return this._zod.def}}),La=f("_ZodString",(e,t)=>{vt.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xc(e,r,o,n)},un({format:(e)=>ie(e).format??null,minLength:(e)=>ie(e).minimum??null,maxLength:(e)=>ie(e).maximum??null},{regex(...e){return this.check(Gr(...e))},includes(...e){return this.check(Yr(...e))},startsWith(...e){return this.check(Qr(...e))},endsWith(...e){return this.check(eo(...e))},min(...e){return this.check(Oe(...e))},max(...e){return this.check(Tt(...e))},length(...e){return this.check(At(...e))},nonempty(...e){return this.check(Oe(1,...e))},lowercase(e){return this.check(Hr(e))},uppercase(e){return this.check(Xr(e))},trim(){return this.check(po())},normalize(...e){return this.check(uo(...e))},toLowerCase(){return this.check(fo())},toUpperCase(){return this.check(mo())},slugify(){return this.check(ho())}})),Da=f("ZodString",(e,t)=>{vt.init(e,t),La.init(e,t)},{email(e){return this.check(oc(Bl,e))},url(e){return this.check(qr(Ba,e))},jwt(e){return this.check(wc(ip,e))},emoji(e){return this.check(uc(ql,e))},guid(e){return this.check(nc(Jl,e))},uuid(e){return this.check(ic(jt,e))},uuidv4(e){return this.check(sc(jt,e))},uuidv6(e){return this.check(cc(jt,e))},uuidv7(e){return this.check(ac(jt,e))},nanoid(e){return this.check(lc(Vl,e))},cuid(e){return this.check(pc(Kl,e))},cuid2(e){return this.check(fc(Wl,e))},ulid(e){return this.check(dc(Gl,e))},base64(e){return this.check(yc(rp,e))},base64url(e){return this.check(bc(op,e))},xid(e){return this.check(mc(Hl,e))},ksuid(e){return this.check(hc(Xl,e))},ipv4(e){return this.check(gc(Yl,e))},ipv6(e){return this.check(_c(Ql,e))},cidrv4(e){return this.check(zc(ep,e))},cidrv6(e){return this.check(xc(tp,e))},e164(e){return this.check(vc(np,e))},datetime(e){return this.check(Ot(So,e))},date(e){return this.check(Vr(Ua,e))},time(e){return this.check(Kr(Ma,e))},duration(e){return this.check(Wr(Fa,e))}});function u(e){return rc(Da,e)}var L=f("ZodStringFormat",(e,t)=>{T.init(e,t),La.init(e,t)}),So=f("ZodISODateTime",(e,t)=>{os.init(e,t),L.init(e,t)}),Ua=f("ZodISODate",(e,t)=>{ns.init(e,t),L.init(e,t)}),Ma=f("ZodISOTime",(e,t)=>{is.init(e,t),L.init(e,t)}),Fa=f("ZodISODuration",(e,t)=>{ss.init(e,t),L.init(e,t)}),Bl=f("ZodEmail",(e,t)=>{Vi.init(e,t),L.init(e,t)});var Jl=f("ZodGUID",(e,t)=>{Ji.init(e,t),L.init(e,t)});var jt=f("ZodUUID",(e,t)=>{qi.init(e,t),L.init(e,t)});var Ba=f("ZodURL",(e,t)=>{Gi.init(e,t),L.init(e,t)});function Ja(e){return qr(Ba,e)}var ql=f("ZodEmoji",(e,t)=>{Hi.init(e,t),L.init(e,t)});var Vl=f("ZodNanoID",(e,t)=>{Xi.init(e,t),L.init(e,t)});var Kl=f("ZodCUID",(e,t)=>{Yi.init(e,t),L.init(e,t)});var Wl=f("ZodCUID2",(e,t)=>{Qi.init(e,t),L.init(e,t)});var Gl=f("ZodULID",(e,t)=>{es.init(e,t),L.init(e,t)});var Hl=f("ZodXID",(e,t)=>{ts.init(e,t),L.init(e,t)});var Xl=f("ZodKSUID",(e,t)=>{rs.init(e,t),L.init(e,t)});var Yl=f("ZodIPv4",(e,t)=>{cs.init(e,t),L.init(e,t)});var Ql=f("ZodIPv6",(e,t)=>{us.init(e,t),L.init(e,t)});var ep=f("ZodCIDRv4",(e,t)=>{ls.init(e,t),L.init(e,t)});var tp=f("ZodCIDRv6",(e,t)=>{ps.init(e,t),L.init(e,t)});var rp=f("ZodBase64",(e,t)=>{ds.init(e,t),L.init(e,t)});var op=f("ZodBase64URL",(e,t)=>{ms.init(e,t),L.init(e,t)});var np=f("ZodE164",(e,t)=>{hs.init(e,t),L.init(e,t)});var ip=f("ZodJWT",(e,t)=>{gs.init(e,t),L.init(e,t)});var Dt=f("ZodNumber",(e,t)=>{Nr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yc(e,r,o,n),e.isFinite=!0},un({minValue:(e)=>{let{minimum:t,exclusiveMinimum:r}=ie(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:(e)=>{let{maximum:t,exclusiveMaximum:r}=ie(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:(e)=>{let{isInt:t,multipleOf:r}=ie(e);return!!t||!!r?.some(Number.isSafeInteger)},format:(e)=>ie(e).format??null},{gt(e,t){return this.check(Ct(e,t))},gte(e,t){return this.check(Xe(e,t))},min(e,t){return this.check(Xe(e,t))},lt(e,t){return this.check(Rt(e,t))},lte(e,t){return this.check(He(e,t))},max(e,t){return this.check(He(e,t))},int(e){return this.check(Aa(e))},safe(e){return this.check(Aa(e))},positive(e){return this.check(Ct(0,e))},nonnegative(e){return this.check(Xe(0,e))},negative(e){return this.check(Rt(0,e))},nonpositive(e){return this.check(He(0,e))},multipleOf(e,t){return this.check(It(e,t))},step(e,t){return this.check(It(e,t))},finite(){return this}}));function w(e){return $c(Dt,e)}var sp=f("ZodNumberFormat",(e,t)=>{_s.init(e,t),Dt.init(e,t)});function Aa(e){return kc(sp,e)}var qa=f("ZodBoolean",(e,t)=>{zs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qc(e,r,o,n)});function O(e){return Pc(qa,e)}var cp=f("ZodNull",(e,t)=>{xs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ea(e,r,o,n)});function Va(e){return Zc(cp,e)}var ap=f("ZodAny",(e,t)=>{ys.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ra(e,r,o,n)});function Ka(){return Oc(ap)}var up=f("ZodUnknown",(e,t)=>{bs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>oa(e,r,o,n)});function N(){return Rc(up)}var lp=f("ZodNever",(e,t)=>{vs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ta(e,r,o,n)});function pp(e){return Cc(lp,e)}var fp=f("ZodArray",(e,t)=>{Lt(),ws.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>aa(e,r,o,n),e.element=t.element},{min(e,t){return this.check(Oe(e,t))},nonempty(e){return this.check(Oe(1,e))},max(e,t){return this.check(Tt(e,t))},length(e,t){return this.check(At(e,t))},unwrap(){return this.element}});function _(e,t){return Ic(fp,e,t)}var Wa=f("ZodObject",(e,t)=>{Lt(),ks.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ua(e,r,o,n),Ku(e,"shape",(r)=>r._zod.def.shape,!1)},{keyof(){return Q(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ee(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ee(this._zod.def,{catchall:N()}))},loose(){return this.clone(ee(this._zod.def,{catchall:N()}))},strict(){return this.clone(ee(this._zod.def,{catchall:pp()}))},strip(){return this.clone(ee(this._zod.def,{catchall:void 0}))},extend(e){return Du(this,e)},safeExtend(e){return Uu(this,e)},merge(e){return Mu(this,e)},pick(e){return ju(this,e)},omit(e){return Lu(this,e)},partial(...e){return nn(Xa,this,e[0])},exactPartial(...e){return nn(Ya,this,e[0],"exactPartial")},required(...e){return Fu(Qa,this,e[0])}});function z(e,t){let r={type:"object",shape:e??{},...x(t)};return new Wa(r)}function B(e,t){return new Wa({type:"object",shape:e,catchall:N(),...x(t)})}var Ga=f("ZodUnion",(e,t)=>{jr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>la(e,r,o,n),e.options=t.options});function E(e,t){return new Ga({type:"union",options:e,...x(t)})}var dp=f("ZodDiscriminatedUnion",(e,t)=>{Ga.init(e,t),Ps.init(e,t)});function ko(e,t,r){return new dp({type:"union",options:t,discriminator:e,...x(r)})}var mp=f("ZodIntersection",(e,t)=>{Zs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pa(e,r,o,n)});function Ut(e,t){return new mp({type:"intersection",left:e,right:t})}var Ea=f("ZodRecord",(e,t)=>{Lt(),Ts.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fa(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function I(e,t,r){if(!t||!t._zod)return new Ea({type:"record",keyType:u(),valueType:e,...x(t)});return new Ea({type:"record",keyType:e,valueType:t,...x(r)})}var $o=f("ZodEnum",(e,t)=>{As.init(e,t),A.init(e,t),e._zod.processJSONSchema=(o,n,i)=>na(e,o,n,i),e.enum=t.entries,e.options=[...e._zod.values];let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=t.entries[s];else throw Error(`Key ${s} not found in enum`);return new $o({...t,checks:[],...x(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let s of o)if(r.has(s))delete i[s];else throw Error(`Key ${s} not found in enum`);return new $o({...t,checks:[],...x(n),entries:i})}});function Q(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map((o)=>[o,o])):e;return new $o({type:"enum",entries:r,...x(t)})}var hp=f("ZodLiteral",(e,t)=>{Es.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ia(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function y(e,t){return new hp({type:"literal",values:Array.isArray(e)?e:[e],...x(t)})}var gp=f("ZodTransform",(e,t)=>{Lt(),Ns.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ca(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Je(e.constructor.name);r.addIssue=(i)=>{if(typeof i==="string")r.issues.push(ke(i,r.value,t));else{let s=i;if(s.fatal)s.continue=!1;if(s.code??(s.code="custom"),!("input"in s))s.input=r.value;s.inst??(s.inst=e),r.issues.push(ke(s))}};let n=t.transform(r.value,r);if(n instanceof Promise)return n.then((i)=>(r.value=i,r));return r.value=n,r}});function Ha(e){return new gp({type:"transform",transform:e})}var Xa=f("ZodOptional",(e,t)=>{Lr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wo(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function j(e){return new Xa({type:"optional",innerType:e})}var Ya=f("ZodExactOptional",(e,t)=>{js.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wo(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function _p(e){return new Ya({type:"optional",innerType:e})}var zp=f("ZodNullable",(e,t)=>{Us.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>da(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Na(e){return new zp({type:"nullable",innerType:e})}var xp=f("ZodDefault",(e,t)=>{Fs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ga(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function yp(e,t){return new xp({type:"default",innerType:e,get defaultValue(){return typeof t==="function"?t():dr(t)}})}var bp=f("ZodPrefault",(e,t)=>{Bs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_a(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function vp(e,t){return new bp({type:"prefault",innerType:e,get defaultValue(){return typeof t==="function"?t():dr(t)}})}var Qa=f("ZodNonOptional",(e,t)=>{Js.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ma(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function wp(e,t){return new Qa({type:"nonoptional",innerType:e,...x(t)})}var $p=f("ZodCatch",(e,t)=>{qs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>za(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Sp(e,t){return new $p({type:"catch",innerType:e,catchValue:typeof t==="function"?t:ln(t)})}var eu=f("ZodPipe",(e,t)=>{Dr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xa(e,r,o,n),e.in=t.in,e.out=t.out});function ja(e,t){return new eu({type:"pipe",in:e,out:t})}var kp=f("ZodPreprocess",(e,t)=>{eu.init(e,t),Vs.init(e,t)}),Pp=f("ZodReadonly",(e,t)=>{Ks.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ya(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Zp(e){return new Pp({type:"readonly",innerType:e})}var tu=f("ZodCustom",(e,t)=>{Ws.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sa(e,r,o,n)});function ru(e,t){return Tc(tu,e??(()=>!0),t)}function Op(e,t={}){return Ac(tu,e,t)}function Rp(e,t){return Ec(e,t)}function Po(e,t){return new kp({type:"pipe",in:Ha(e),out:t})}var nu={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"};var ou;(function(e){})(ou||(ou={}));function Ip(e){return Ot(So,e)}function Tp(e){return Sc(Dt,e)}var kr="2025-11-25";var Cs=[kr,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Ft="io.modelcontextprotocol/related-task",Jt="2.0",J=ru((e)=>e!==null&&(typeof e==="object"||typeof e==="function")),cu=E([u(),w().int()]),au=u(),gg=B({ttl:w().optional(),pollInterval:w().optional()}),Ep=z({ttl:w().optional()}),Np=z({taskId:u()}),Zo=B({progressToken:cu.optional(),[Ft]:Np.optional()}),re=z({_meta:Zo.optional()}),et=re.extend({task:Ep.optional()}),Rs=(e)=>et.safeParse(e).success,V=z({method:u(),params:re.loose().optional()}),se=z({_meta:Zo.optional()}),ce=z({method:u(),params:se.loose().optional()}),K=B({_meta:Zo.optional()}),qt=E([u(),w().int()]),uu=z({jsonrpc:y(Jt),id:qt,...V.shape}).strict(),hn=(e)=>uu.safeParse(e).success,lu=z({jsonrpc:y(Jt),...ce.shape}).strict(),Is=(e)=>lu.safeParse(e).success,Oo=z({jsonrpc:y(Jt),id:qt,result:K}).strict(),tr=(e)=>Oo.safeParse(e).success;var R;(function(e){e[e.ConnectionClosed=-32000]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(R||(R={}));var Ro=z({jsonrpc:y(Jt),id:qt.optional(),error:z({code:w().int(),message:u(),data:N().optional()})}).strict();var Ms=(e)=>Ro.safeParse(e).success;var Bt=E([uu,lu,Oo,Ro]),_g=E([Oo,Ro]),rr=K.strict(),jp=se.extend({requestId:qt.optional(),reason:u().optional()}),to=ce.extend({method:y("notifications/cancelled"),params:jp}),Lp=z({src:u(),mimeType:u().optional(),sizes:_(u()).optional(),theme:Q(["light","dark"]).optional()}),tt=z({icons:_(Lp).optional()}),Te=z({name:u(),title:u().optional()}),pu=Te.extend({...Te.shape,...tt.shape,version:u(),websiteUrl:u().optional(),description:u().optional()}),Dp=Ut(z({applyDefaults:O().optional()}),I(u(),N())),Up=Po((e)=>{if(e&&typeof e==="object"&&!Array.isArray(e)){if(Object.keys(e).length===0)return{form:{}}}return e},Ut(z({form:Dp.optional(),url:J.optional()}),I(u(),N()).optional())),Mp=B({list:J.optional(),cancel:J.optional(),requests:B({sampling:B({createMessage:J.optional()}).optional(),elicitation:B({create:J.optional()}).optional()}).optional()}),Fp=B({list:J.optional(),cancel:J.optional(),requests:B({tools:B({call:J.optional()}).optional()}).optional()}),Bp=z({experimental:I(u(),J).optional(),sampling:z({context:J.optional(),tools:J.optional()}).optional(),elicitation:Up.optional(),roots:z({listChanged:O().optional()}).optional(),tasks:Mp.optional(),extensions:I(u(),J).optional()}),Jp=re.extend({protocolVersion:u(),capabilities:Bp,clientInfo:pu}),qp=V.extend({method:y("initialize"),params:Jp});var Vp=z({experimental:I(u(),J).optional(),logging:J.optional(),completions:J.optional(),prompts:z({listChanged:O().optional()}).optional(),resources:z({subscribe:O().optional(),listChanged:O().optional()}).optional(),tools:z({listChanged:O().optional()}).optional(),tasks:Fp.optional(),extensions:I(u(),J).optional()}),Si=K.extend({protocolVersion:u(),capabilities:Vp,serverInfo:pu,instructions:u().optional()}),fu=ce.extend({method:y("notifications/initialized"),params:se.optional()}),Os=(e)=>fu.safeParse(e).success,ro=V.extend({method:y("ping"),params:re.optional()}),Kp=z({progress:w(),total:j(w()),message:j(u())}),Wp=z({...se.shape,...Kp.shape,progressToken:cu}),no=ce.extend({method:y("notifications/progress"),params:Wp}),Gp=re.extend({cursor:au.optional()}),rt=V.extend({params:Gp.optional()}),ot=K.extend({nextCursor:au.optional()}),Hp=Q(["working","input_required","completed","failed","cancelled"]),it=z({taskId:u(),status:Hp,ttl:E([w(),Va()]),createdAt:u(),lastUpdatedAt:u(),pollInterval:j(w()),statusMessage:j(u())}),nr=K.extend({task:it}),Xp=se.merge(it),fn=ce.extend({method:y("notifications/tasks/status"),params:Xp}),oo=V.extend({method:y("tasks/get"),params:re.extend({taskId:u()})}),io=K.merge(it),so=V.extend({method:y("tasks/result"),params:re.extend({taskId:u()})}),zg=K.loose(),ao=rt.extend({method:y("tasks/list")}),lo=ot.extend({tasks:_(it)}),co=V.extend({method:y("tasks/cancel"),params:re.extend({taskId:u()})}),Ls=K.merge(it),du=z({uri:u(),mimeType:j(u()),_meta:I(u(),N()).optional()}),mu=du.extend({text:u()}),Co=u().refine((e)=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),hu=du.extend({blob:Co}),st=Q(["user","assistant"]),Ae=z({audience:_(st).optional(),priority:w().min(0).max(1).optional(),lastModified:Ip({offset:!0}).optional()}),gu=z({...Te.shape,...tt.shape,uri:u(),description:j(u()),mimeType:j(u()),size:j(w()),annotations:Ae.optional(),_meta:j(B({}))}),Yp=z({...Te.shape,...tt.shape,uriTemplate:u(),description:j(u()),mimeType:j(u()),annotations:Ae.optional(),_meta:j(B({}))}),Qp=rt.extend({method:y("resources/list")}),wi=ot.extend({resources:_(gu)}),ef=rt.extend({method:y("resources/templates/list")}),xi=ot.extend({resourceTemplates:_(Yp)}),Io=re.extend({uri:u()}),tf=Io,rf=V.extend({method:y("resources/read"),params:tf}),vi=K.extend({contents:_(E([mu,hu]))}),_i=ce.extend({method:y("notifications/resources/list_changed"),params:se.optional()}),of=Io,nf=V.extend({method:y("resources/subscribe"),params:of}),sf=Io,cf=V.extend({method:y("resources/unsubscribe"),params:sf}),af=se.extend({uri:u()}),uf=ce.extend({method:y("notifications/resources/updated"),params:af}),lf=z({name:u(),description:j(u()),required:j(O())}),pf=z({...Te.shape,...tt.shape,description:j(u()),arguments:j(_(lf)),_meta:j(B({}))}),ff=rt.extend({method:y("prompts/list")}),Ei=ot.extend({prompts:_(pf)}),df=re.extend({name:u(),arguments:I(u(),u()).optional()}),mf=V.extend({method:y("prompts/get"),params:df}),To=z({type:y("text"),text:u(),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),Ao=z({type:y("image"),data:Co,mimeType:u(),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),Eo=z({type:y("audio"),data:Co,mimeType:u(),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),hf=z({type:y("tool_use"),name:u(),id:u(),input:I(u(),N()),_meta:I(u(),N()).optional()}),gf=z({type:y("resource"),resource:E([mu,hu]),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),_f=gu.extend({type:y("resource_link")}),No=E([To,Ao,Eo,_f,gf]),zf=z({role:st,content:No}),Ai=K.extend({description:u().optional(),messages:_(zf)}),Ti=ce.extend({method:y("notifications/prompts/list_changed"),params:se.optional()}),xf=z({title:u().optional(),readOnlyHint:O().optional(),destructiveHint:O().optional(),idempotentHint:O().optional(),openWorldHint:O().optional()}),yf=z({taskSupport:Q(["required","optional","forbidden"]).optional()}),_u=z({...Te.shape,...tt.shape,description:u().optional(),inputSchema:z({type:y("object"),properties:I(u(),J).optional(),required:_(u()).optional()}).catchall(N()),outputSchema:z({type:y("object"),properties:I(u(),J).optional(),required:_(u()).optional()}).catchall(N()).optional(),annotations:xf.optional(),execution:yf.optional(),_meta:I(u(),N()).optional()}),bf=rt.extend({method:y("tools/list")}),Pi=ot.extend({tools:_(_u)}),kt=K.extend({content:_(No).default([]),structuredContent:I(u(),N()).optional(),isError:O().optional()}),xg=kt.or(K.extend({toolResult:N()})),vf=et.extend({name:u(),arguments:I(u(),N()).optional()}),wf=V.extend({method:y("tools/call"),params:vf}),gn=ce.extend({method:y("notifications/tools/list_changed"),params:se.optional()}),Ds=z({autoRefresh:O().default(!0),debounceMs:w().int().nonnegative().default(300)}),zu=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),$f=re.extend({level:zu}),Sf=V.extend({method:y("logging/setLevel"),params:$f}),kf=se.extend({level:zu,logger:u().optional(),data:N()}),Pf=ce.extend({method:y("notifications/message"),params:kf}),Zf=z({name:u().optional()}),Of=z({hints:_(Zf).optional(),costPriority:w().min(0).max(1).optional(),speedPriority:w().min(0).max(1).optional(),intelligencePriority:w().min(0).max(1).optional()}),Rf=z({mode:Q(["auto","required","none"]).optional()}),Cf=z({type:y("tool_result"),toolUseId:u().describe("The unique identifier for the corresponding tool call."),content:_(No).default([]),structuredContent:z({}).loose().optional(),isError:O().optional(),_meta:I(u(),N()).optional()}),If=ko("type",[To,Ao,Eo]),Mt=ko("type",[To,Ao,Eo,hf,Cf]),Tf=z({role:st,content:E([Mt,_(Mt)]),_meta:I(u(),N()).optional()}),Af=et.extend({messages:_(Tf),modelPreferences:Of.optional(),systemPrompt:u().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:w().optional(),maxTokens:w().int(),stopSequences:_(u()).optional(),metadata:J.optional(),tools:_(_u).optional(),toolChoice:Rf.optional()}),ki=V.extend({method:y("sampling/createMessage"),params:Af}),Ci=K.extend({model:u(),stopReason:j(Q(["endTurn","stopSequence","maxTokens"]).or(u())),role:st,content:If}),Ri=K.extend({model:u(),stopReason:j(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(u())),role:st,content:E([Mt,_(Mt)])}),Ef=z({type:y("boolean"),title:u().optional(),description:u().optional(),default:O().optional()}),Nf=z({type:y("string"),title:u().optional(),description:u().optional(),minLength:w().optional(),maxLength:w().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:u().optional()}),jf=z({type:Q(["number","integer"]),title:u().optional(),description:u().optional(),minimum:w().optional(),maximum:w().optional(),default:w().optional()}),Lf=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),default:u().optional()}),Df=z({type:y("string"),title:u().optional(),description:u().optional(),oneOf:_(z({const:u(),title:u()})),default:u().optional()}),Uf=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),enumNames:_(u()).optional(),default:u().optional()}),Mf=E([Lf,Df]),Ff=z({type:y("array"),title:u().optional(),description:u().optional(),minItems:w().optional(),maxItems:w().optional(),items:z({type:y("string"),enum:_(u())}),default:_(u()).optional()}),Bf=z({type:y("array"),title:u().optional(),description:u().optional(),minItems:w().optional(),maxItems:w().optional(),items:z({anyOf:_(z({const:u(),title:u()}))}),default:_(u()).optional()}),Jf=E([Ff,Bf]),qf=E([Uf,Mf,Jf]),Vf=E([qf,Ef,Nf,jf]),Kf=et.extend({mode:y("form").optional(),message:u(),requestedSchema:z({type:y("object"),properties:I(u(),Vf),required:_(u()).optional()})}),Wf=et.extend({mode:y("url"),message:u(),elicitationId:u(),url:u().url()}),Gf=E([Kf,Wf]),Ii=V.extend({method:y("elicitation/create"),params:Gf}),Hf=se.extend({elicitationId:u()}),Xf=ce.extend({method:y("notifications/elicitation/complete"),params:Hf}),Mi=K.extend({action:Q(["accept","decline","cancel"]),content:Po((e)=>e===null?void 0:e,I(u(),E([u(),w(),O(),_(u())])).optional())}),Yf=z({type:y("ref/resource"),uri:u()});var Qf=z({type:y("ref/prompt"),name:u()}),ed=re.extend({ref:E([Qf,Yf]),argument:z({name:u(),value:u()}),context:z({arguments:I(u(),u()).optional()}).optional()}),td=V.extend({method:y("completion/complete"),params:ed});var Oi=K.extend({completion:B({values:_(u()).max(100),total:j(w().int()),hasMore:j(O())})}),rd=z({uri:u().startsWith("file://"),name:u().optional(),_meta:I(u(),N()).optional()}),od=V.extend({method:y("roots/list"),params:re.optional()}),nd=K.extend({roots:_(rd)}),id=ce.extend({method:y("notifications/roots/list_changed"),params:se.optional()}),yg=E([ro,qp,td,Sf,mf,ff,Qp,ef,rf,nf,cf,wf,bf,oo,so,ao,co]),bg=E([to,no,fu,id,fn]),vg=E([rr,Ci,Ri,Mi,nd,io,lo,nr]),wg=E([ro,ki,Ii,od,oo,so,ao,co]),$g=E([to,no,Pf,uf,_i,gn,Ti,fn,Xf]),Sg=E([rr,Si,Oi,Ai,Ei,wi,xi,vi,kt,Pi,io,lo,nr]);class P extends Error{constructor(e,t,r){super(`MCP error ${e}: ${t}`);this.code=e,this.data=r,this.name="McpError"}static fromError(e,t,r){if(e===R.UrlElicitationRequired&&r){let o=r;if(o.elicitations)return new xu(o.elicitations,t)}return new P(e,t,r)}}class xu extends P{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(R.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}var jo;jo=globalThis.crypto?.webcrypto??globalThis.crypto??import("crypto").then((e)=>e.webcrypto);async function sd(e){return(await jo).getRandomValues(new Uint8Array(e))}async function cd(e){let r=Math.pow(2,8)-Math.pow(2,8)%66,o="";while(o.length<e){let n=await sd(e-o.length);for(let i of n)if(i<r)o+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"[i%66]}return o}async function ad(e){return await cd(e)}async function ud(e){let t=await(await jo).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Lo(e){if(!e)e=43;if(e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await ad(e),r=await ud(t);return{code_verifier:t,code_challenge:r}}var W=Ja().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:nu.custom,message:"URL must be parseable",fatal:!0}),zr}).refine((e)=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),bu=B({resource:u().url(),authorization_servers:_(W).optional(),jwks_uri:u().url().optional(),scopes_supported:_(u()).optional(),bearer_methods_supported:_(u()).optional(),resource_signing_alg_values_supported:_(u()).optional(),resource_name:u().optional(),resource_documentation:u().optional(),resource_policy_uri:u().url().optional(),resource_tos_uri:u().url().optional(),tls_client_certificate_bound_access_tokens:O().optional(),authorization_details_types_supported:_(u()).optional(),dpop_signing_alg_values_supported:_(u()).optional(),dpop_bound_access_tokens_required:O().optional()}),Do=B({issuer:u(),authorization_endpoint:W,token_endpoint:W,registration_endpoint:W.optional(),scopes_supported:_(u()).optional(),response_types_supported:_(u()),response_modes_supported:_(u()).optional(),grant_types_supported:_(u()).optional(),token_endpoint_auth_methods_supported:_(u()).optional(),token_endpoint_auth_signing_alg_values_supported:_(u()).optional(),service_documentation:W.optional(),revocation_endpoint:W.optional(),revocation_endpoint_auth_methods_supported:_(u()).optional(),revocation_endpoint_auth_signing_alg_values_supported:_(u()).optional(),introspection_endpoint:u().optional(),introspection_endpoint_auth_methods_supported:_(u()).optional(),introspection_endpoint_auth_signing_alg_values_supported:_(u()).optional(),code_challenge_methods_supported:_(u()).optional(),client_id_metadata_document_supported:O().optional()}),ld=B({issuer:u(),authorization_endpoint:W,token_endpoint:W,userinfo_endpoint:W.optional(),jwks_uri:W,registration_endpoint:W.optional(),scopes_supported:_(u()).optional(),response_types_supported:_(u()),response_modes_supported:_(u()).optional(),grant_types_supported:_(u()).optional(),acr_values_supported:_(u()).optional(),subject_types_supported:_(u()),id_token_signing_alg_values_supported:_(u()),id_token_encryption_alg_values_supported:_(u()).optional(),id_token_encryption_enc_values_supported:_(u()).optional(),userinfo_signing_alg_values_supported:_(u()).optional(),userinfo_encryption_alg_values_supported:_(u()).optional(),userinfo_encryption_enc_values_supported:_(u()).optional(),request_object_signing_alg_values_supported:_(u()).optional(),request_object_encryption_alg_values_supported:_(u()).optional(),request_object_encryption_enc_values_supported:_(u()).optional(),token_endpoint_auth_methods_supported:_(u()).optional(),token_endpoint_auth_signing_alg_values_supported:_(u()).optional(),display_values_supported:_(u()).optional(),claim_types_supported:_(u()).optional(),claims_supported:_(u()).optional(),service_documentation:u().optional(),claims_locales_supported:_(u()).optional(),ui_locales_supported:_(u()).optional(),claims_parameter_supported:O().optional(),request_parameter_supported:O().optional(),request_uri_parameter_supported:O().optional(),require_request_uri_registration:O().optional(),op_policy_uri:W.optional(),op_tos_uri:W.optional(),client_id_metadata_document_supported:O().optional()}),vu=z({...ld.shape,...Do.pick({code_challenge_methods_supported:!0}).shape}),wu=z({access_token:u(),id_token:u().optional(),token_type:u(),expires_in:Tp().optional(),scope:u().optional(),refresh_token:u().optional()}).strip(),$u=z({error:u(),error_description:u().optional(),error_uri:u().optional()}),yu=W.optional().or(y("").transform(()=>{return})),pd=z({redirect_uris:_(W),token_endpoint_auth_method:u().optional(),grant_types:_(u()).optional(),response_types:_(u()).optional(),client_name:u().optional(),client_uri:W.optional(),logo_uri:yu,scope:u().optional(),contacts:_(u()).optional(),tos_uri:yu,policy_uri:u().optional(),jwks_uri:W.optional(),jwks:Ka().optional(),software_id:u().optional(),software_version:u().optional(),software_statement:u().optional()}).strip(),fd=z({client_id:u(),client_secret:u().optional(),client_id_issued_at:w().optional(),client_secret_expires_at:w().optional()}).strip(),Su=pd.merge(fd),Zg=z({error:u(),error_description:u().optional()}).strip(),Og=z({token:u(),token_type_hint:u().optional()}).strip();function ku(e){let t=typeof e==="string"?new URL(e):new URL(e.href);return t.hash="",t}function Pu({requestedResource:e,configuredResource:t}){let r=typeof e==="string"?new URL(e):new URL(e.href),o=typeof t==="string"?new URL(t):new URL(t.href);if(r.origin!==o.origin)return!1;if(r.pathname.length<o.pathname.length)return!1;let n=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",i=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return n.startsWith(i)}class M extends Error{constructor(e,t){super(e);this.errorUri=t,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};if(this.errorUri)e.error_uri=this.errorUri;return e}get errorCode(){return this.constructor.errorCode}}class Vt extends M{}Vt.errorCode="invalid_request";class Ee extends M{}Ee.errorCode="invalid_client";class Ne extends M{}Ne.errorCode="invalid_grant";class je extends M{}je.errorCode="unauthorized_client";class Kt extends M{}Kt.errorCode="unsupported_grant_type";class Wt extends M{}Wt.errorCode="invalid_scope";class Gt extends M{}Gt.errorCode="access_denied";class we extends M{}we.errorCode="server_error";class Ht extends M{}Ht.errorCode="temporarily_unavailable";class Xt extends M{}Xt.errorCode="unsupported_response_type";class Yt extends M{}Yt.errorCode="unsupported_token_type";class Qt extends M{}Qt.errorCode="invalid_token";class er extends M{}er.errorCode="method_not_allowed";class ir extends M{}ir.errorCode="too_many_requests";class Le extends M{}Le.errorCode="invalid_client_metadata";class sr extends M{}sr.errorCode="insufficient_scope";class cr extends M{}cr.errorCode="invalid_target";var Zu={[Vt.errorCode]:Vt,[Ee.errorCode]:Ee,[Ne.errorCode]:Ne,[je.errorCode]:je,[Kt.errorCode]:Kt,[Wt.errorCode]:Wt,[Gt.errorCode]:Gt,[we.errorCode]:we,[Ht.errorCode]:Ht,[Xt.errorCode]:Xt,[Yt.errorCode]:Yt,[Qt.errorCode]:Qt,[er.errorCode]:er,[ir.errorCode]:ir,[Le.errorCode]:Le,[sr.errorCode]:sr,[cr.errorCode]:cr};class ve extends Error{constructor(e){super(e??"Unauthorized")}}function dd(e){return["client_secret_basic","client_secret_post","none"].includes(e)}var Uo="code",Mo="S256";function md(e,t){let r=e.client_secret!==void 0;if("token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&dd(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method)))return e.token_endpoint_auth_method;if(t.length===0)return r?"client_secret_basic":"none";if(r&&t.includes("client_secret_basic"))return"client_secret_basic";if(r&&t.includes("client_secret_post"))return"client_secret_post";if(t.includes("none"))return"none";return r?"client_secret_post":"none"}function hd(e,t,r,o){let{client_id:n,client_secret:i}=t;switch(e){case"client_secret_basic":gd(n,i,r);return;case"client_secret_post":_d(n,i,o);return;case"none":zd(n,o);return;default:throw Error(`Unsupported client authentication method: ${e}`)}}function gd(e,t,r){if(!t)throw Error("client_secret_basic authentication requires a client_secret");let o=btoa(`${e}:${t}`);r.set("Authorization",`Basic ${o}`)}function _d(e,t,r){if(r.set("client_id",e),t)r.set("client_secret",t)}function zd(e,t){t.set("client_id",e)}async function Ru(e){let t=e instanceof Response?e.status:void 0,r=e instanceof Response?await e.text():e;try{let o=$u.parse(JSON.parse(r)),{error:n,error_description:i,error_uri:s}=o;return new(Zu[n]||we)(i||"",s)}catch(o){let n=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${o}. Raw body: ${r}`;return new we(n)}}async function nt(e,t){try{return await Fo(e,t)}catch(r){if(r instanceof Ee||r instanceof je)return await e.invalidateCredentials?.("all"),await Fo(e,t);else if(r instanceof Ne)return await e.invalidateCredentials?.("tokens"),await Fo(e,t);throw r}}async function Fo(e,{serverUrl:t,authorizationCode:r,scope:o,resourceMetadataUrl:n,fetchFn:i}){let s=await e.discoveryState?.(),c,a,l,p=n;if(!p&&s?.resourceMetadataUrl)p=new URL(s.resourceMetadataUrl);if(s?.authorizationServerUrl){if(a=s.authorizationServerUrl,c=s.resourceMetadata,l=s.authorizationServerMetadata??await Iu(a,{fetchFn:i}),!c)try{c=await Cu(t,{resourceMetadataUrl:p},i)}catch{}if(l!==s.authorizationServerMetadata||c!==s.resourceMetadata)await e.saveDiscoveryState?.({authorizationServerUrl:String(a),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:l})}else{let F=await Sd(t,{resourceMetadataUrl:p,fetchFn:i});a=F.authorizationServerUrl,l=F.authorizationServerMetadata,c=F.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(a),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:l})}let d=await yd(t,e,c),h=o||c?.scopes_supported?.join(" ")||e.clientMetadata.scope,m=await Promise.resolve(e.clientInformation());if(!m){if(r!==void 0)throw Error("Existing OAuth client information is required when exchanging an authorization code");let F=l?.client_id_metadata_document_supported===!0,ae=e.clientMetadataUrl;if(ae&&!xd(ae))throw new Le(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${ae}`);if(F&&ae)m={client_id:ae},await e.saveClientInformation?.(m);else{if(!e.saveClientInformation)throw Error("OAuth client information must be saveable for dynamic registration");let Z=await Rd(a,{metadata:l,clientMetadata:e.clientMetadata,scope:h,fetchFn:i});await e.saveClientInformation(Z),m=Z}}let g=!e.redirectUrl;if(r!==void 0||g){let F=await Od(e,a,{metadata:l,resource:d,authorizationCode:r,fetchFn:i});return await e.saveTokens(F),"AUTHORIZED"}let b=await e.tokens();if(b?.refresh_token)try{let F=await Zd(a,{metadata:l,clientInformation:m,refreshToken:b.refresh_token,resource:d,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(F),"AUTHORIZED"}catch(F){if(!(F instanceof M)||F instanceof we);else throw F}let v=e.state?await e.state():void 0,{authorizationUrl:k,codeVerifier:H}=await kd(a,{metadata:l,clientInformation:m,state:v,redirectUrl:e.redirectUrl,scope:h,resource:d});return await e.saveCodeVerifier(H),await e.redirectToAuthorization(k),"REDIRECT"}function xd(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function yd(e,t,r){let o=ku(e);if(t.validateResourceURL)return await t.validateResourceURL(o,r?.resource);if(!r)return;if(!Pu({requestedResource:o,configuredResource:r.resource}))throw Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}function or(e){let t=e.headers.get("WWW-Authenticate");if(!t)return{};let[r,o]=t.split(" ");if(r.toLowerCase()!=="bearer"||!o)return{};let n=Bo(e,"resource_metadata")||void 0,i;if(n)try{i=new URL(n)}catch{}let s=Bo(e,"scope")||void 0,c=Bo(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:c}}function Bo(e,t){let r=e.headers.get("WWW-Authenticate");if(!r)return null;let o=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),n=r.match(o);if(n)return n[1]||n[2];return null}async function Cu(e,t,r=fetch){let o=await wd(e,"oauth-protected-resource",r,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!o||o.status===404)throw await o?.body?.cancel(),Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw await o.body?.cancel(),Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return bu.parse(await o.json())}async function Jo(e,t,r=fetch){try{return await r(e,{headers:t})}catch(o){if(o instanceof TypeError)if(t)return Jo(e,void 0,r);else return;throw o}}function bd(e,t="",r={}){if(t.endsWith("/"))t=t.slice(0,-1);return r.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function Ou(e,t,r=fetch){return await Jo(e,{"MCP-Protocol-Version":t},r)}function vd(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function wd(e,t,r,o){let n=new URL(e),i=o?.protocolVersion??kr,s;if(o?.metadataUrl)s=new URL(o.metadataUrl);else{let a=bd(t,n.pathname);s=new URL(a,o?.metadataServerUrl??n),s.search=n.search}let c=await Ou(s,i,r);if(!o?.metadataUrl&&vd(c,n.pathname)){let a=new URL(`/.well-known/${t}`,n);c=await Ou(a,i,r)}return c}function $d(e){let t=typeof e==="string"?new URL(e):e,r=t.pathname!=="/",o=[];if(!r)return o.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),o;let n=t.pathname;if(n.endsWith("/"))n=n.slice(0,-1);return o.push({url:new URL(`/.well-known/oauth-authorization-server${n}`,t.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${n}`,t.origin),type:"oidc"}),o.push({url:new URL(`${n}/.well-known/openid-configuration`,t.origin),type:"oidc"}),o}async function Iu(e,{fetchFn:t=fetch,protocolVersion:r=kr}={}){let o={"MCP-Protocol-Version":r,Accept:"application/json"},n=$d(e);for(let{url:i,type:s}of n){let c=await Jo(i,o,t);if(!c)continue;if(!c.ok){if(await c.body?.cancel(),c.status>=400&&c.status<500)continue;throw Error(`HTTP ${c.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(s==="oauth")return Do.parse(await c.json());else return vu.parse(await c.json())}return}async function Sd(e,t){let r,o;try{if(r=await Cu(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),r.authorization_servers&&r.authorization_servers.length>0)o=r.authorization_servers[0]}catch{}if(!o)o=String(new URL("/",e));let n=await Iu(o,{fetchFn:t?.fetchFn});return{authorizationServerUrl:o,authorizationServerMetadata:n,resourceMetadata:r}}async function kd(e,{metadata:t,clientInformation:r,redirectUrl:o,scope:n,state:i,resource:s}){let c;if(t){if(c=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Uo))throw Error(`Incompatible auth server: does not support response type ${Uo}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Mo))throw Error(`Incompatible auth server: does not support code challenge method ${Mo}`)}else c=new URL("/authorize",e);let a=await Lo(),{code_verifier:l,code_challenge:p}=a;if(c.searchParams.set("response_type",Uo),c.searchParams.set("client_id",r.client_id),c.searchParams.set("code_challenge",p),c.searchParams.set("code_challenge_method",Mo),c.searchParams.set("redirect_uri",String(o)),i)c.searchParams.set("state",i);if(n)c.searchParams.set("scope",n);if(n?.includes("offline_access"))c.searchParams.append("prompt","consent");if(s)c.searchParams.set("resource",s.href);return{authorizationUrl:c,codeVerifier:l}}function Pd(e,t,r){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(r)})}async function Tu(e,{metadata:t,tokenRequestParams:r,clientInformation:o,addClientAuthentication:n,resource:i,fetchFn:s}){let c=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),a=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i)r.set("resource",i.href);if(n)await n(a,r,c,t);else if(o){let p=t?.token_endpoint_auth_methods_supported??[],d=md(o,p);hd(d,o,a,r)}let l=await(s??fetch)(c,{method:"POST",headers:a,body:r});if(!l.ok)throw await Ru(l);return wu.parse(await l.json())}async function Zd(e,{metadata:t,clientInformation:r,refreshToken:o,resource:n,addClientAuthentication:i,fetchFn:s}){let c=new URLSearchParams({grant_type:"refresh_token",refresh_token:o}),a=await Tu(e,{metadata:t,tokenRequestParams:c,clientInformation:r,addClientAuthentication:i,resource:n,fetchFn:s});return{refresh_token:o,...a}}async function Od(e,t,{metadata:r,resource:o,authorizationCode:n,fetchFn:i}={}){let s=e.clientMetadata.scope,c;if(e.prepareTokenRequest)c=await e.prepareTokenRequest(s);if(!c){if(!n)throw Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw Error("redirectUrl is required for authorization_code flow");let l=await e.codeVerifier();c=Pd(n,l,e.redirectUrl)}let a=await e.clientInformation();return Tu(t,{metadata:r,tokenRequestParams:c,clientInformation:a??void 0,addClientAuthentication:e.addClientAuthentication,resource:o,fetchFn:i})}async function Rd(e,{metadata:t,clientMetadata:r,scope:o,fetchFn:n}){let i;if(t){if(!t.registration_endpoint)throw Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);let s=await(n??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...o!==void 0?{scope:o}:{}})});if(!s.ok)throw await Ru(s);return Su.parse(await s.json())}
|
|
59
|
-
export{bi,kr,Cs,Ft,Rs,hn,Is,tr,R,Ms,Bt,rr,to,Si,Os,ro,no,nr,fn,oo,io,so,ao,lo,co,Ls,wi,xi,vi,_i,Ei,Ai,Ti,Pi,kt,gn,Ds,ki,Ci,Ri,Ii,Mi,Oi,P,ve,nt,or};
|
package/chunk-2364s958.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{rt}from"./chunk-tpv5hz99.js";import{H}from"./chunk-912knnfg.js";import{_,ie,K}from"./chunk-v4p8807b.js";import{a}from"./chunk-wwazj6mz.js";var R=a(H()),d=a(_()),g=a(rt());import k from"fs/promises";var A=a(_());var v="169.254.170.2",L="169.254.170.23",U="[fd00:ec2::23]",C=(e,o)=>{if(e.protocol==="https:")return;if(e.hostname===v||e.hostname===L||e.hostname===U)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let n=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(n[0]==="127"&&r(n[1])&&r(n[2])&&r(n[3])&&n.length===4)return}throw new A.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
3
|
-
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
4
|
-
- ECS container host 169.254.170.2
|
|
5
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:o})};var c=a(_()),p=a(K()),f=a(ie()),I=a(ie());function u(e){return new p.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((o,[n,r])=>(o[n]=r,o),{}),fragment:e.hash})}async function E(e,o){let r=await I.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new c.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:o});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:f.parseRfc3339DateTime(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new c.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:o}),{Code:t.Code,Message:t.Message})}throw new c.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:o})}var N=(e,o,n)=>async()=>{for(let r=0;r<o;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,n))}return await e()};var P="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",F="http://169.254.170.2",x="AWS_CONTAINER_CREDENTIALS_FULL_URI",D="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",W="AWS_CONTAINER_AUTHORIZATION_TOKEN",b=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let o,n=e.awsContainerCredentialsRelativeUri??process.env[P],r=e.awsContainerCredentialsFullUri??process.env[x],t=e.awsContainerAuthorizationToken??process.env[W],s=e.awsContainerAuthorizationTokenFile??process.env[D],i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(n&&r)i("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),i("awsContainerCredentialsRelativeUri will take precedence.");if(t&&s)i("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),i("awsContainerAuthorizationTokenFile will take precedence.");if(n)o=`${F}${n}`;else if(r)o=r;else throw new d.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
6
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let h=new URL(o);C(h,e.logger);let l=g.NodeHttpHandler.create({connectionTimeout:e.timeout??1000}),S=e.timeout??1000,O=N(async()=>{let m=u(h);if(s)m.headers.Authorization=w((await k.readFile(s)).toString());else if(t)m.headers.Authorization=w(t);try{let T=await l.handle(m,{requestTimeout:S});return E(T.response).then((y)=>R.setCredentialFeature(y,"CREDENTIALS_HTTP","z"))}catch(T){throw new d.CredentialsProviderError(String(T),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000);return async()=>{try{return await O()}finally{l.destroy?.()}}},w=(e)=>{if(e.includes(`\r
|
|
7
|
-
`))throw new d.CredentialsProviderError("Authorization token contains invalid \\r\\n sequence.");return e};export{b as fromHttp};
|
package/chunk-3fv2qcpg.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{V}from"./chunk-bh29df86.js";import{xt}from"./chunk-00jhevnt.js";import{_e,kn,Cn,we,Ir,Ee}from"./chunk-7hpf9qq2.js";import{x}from"./chunk-chfzk1fx.js";import{j,Ve,pe,ke,ne}from"./chunk-rj6qknjx.js";function E(a,o){let l={v:1,id:a};if(o)l.phase=o;return JSON.stringify(l)}function N(a){if(!a)return;if(a.startsWith("{"))try{let o=JSON.parse(a);if(o.v===1&&typeof o.id==="string"){if(o.phase==="commentary"||o.phase==="final_answer")return{id:o.id,phase:o.phase};return{id:o.id}}}catch{}return{id:a}}function W(a,o){let l=o.filter((c)=>c.type==="text").map((c)=>c.text).join(`
|
|
3
|
-
`),d=o.filter((c)=>c.type==="image"),u=l.length>0;if(d.length===0||!a.input.includes("image"))return x(u?l:d.length>0?"(see attached image)":"(no tool output)");let p=[];if(u)p.push({type:"input_text",text:x(l)});for(let c of d)p.push({type:"input_image",detail:"auto",image_url:`data:${c.mimeType};base64,${c.data}`});return p}function Rt(a,o,l,d){let u=pe(o,d?.supportsMidConvoSystemMessages),p=[],c=(n)=>{let s=n.replace(/[^a-zA-Z0-9_-]/g,"_");return(s.length>64?s.slice(0,64):s).replace(/_+$/,"")},b=(n)=>{let s=`fc_${xt(n)}`;return s.length>64?s.slice(0,64):s},k=(n,s,i)=>{if(!l.has(a.provider))return c(n);if(!n.includes("|"))return c(n);let[r,g]=n.split("|"),h=c(r),y=i.provider!==a.provider||i.api!==a.api?b(g):c(g);if(!y.startsWith("fc_"))y=c(`fc_${y}`);return`${h}|${y}`},m=Ee(u.messages,a,k),I=ke(u.messages,(d?.supportsAdditionalTools??!1)||(d?.supportsToolSearch??!1)),v=(n,s)=>{let i=I.anchorsAdditions?n.toolsAdded??[]:[];if(i.length===0)return;if(d?.supportsAdditionalTools){p.push({type:"additional_tools",role:"developer",tools:wt(i,d.toolOptions)});return}if(!d?.supportsToolSearch)return;let r=i.map((h)=>h.name),g=`pi_tool_load_${xt(`${s}:${r.join(",")}`)}`;p.push({type:"tool_search_call",call_id:g,execution:"client",status:"completed",arguments:{query:r.join(" "),limit:r.length}}),p.push({type:"tool_search_output",call_id:g,execution:"client",status:"completed",tools:wt(i,{...d.toolOptions,toolSearchResult:!0})})},C=d?.includeSystemPrompt??!0,w=a.compat,M=a.reasoning&&w?.supportsDeveloperRole!==!1?"developer":"system",t=0,e=0;for(let n of m){let s=e++===0&&n.role==="system";if(n.role==="system"){if(!s)v(n,`system:${t}`);if(!s||C){let i=s?j(n):Ve(n);if(i.length>0)p.push({role:M,content:x(i)})}}else if(n.role==="user")if(typeof n.content==="string")p.push({role:"user",content:[{type:"input_text",text:x(n.content)}]});else{let i=n.content.map((r)=>{if(r.type==="text")return{type:"input_text",text:x(r.text)};return{type:"input_image",detail:"auto",image_url:`data:${r.mimeType};base64,${r.data}`}});if(i.length===0)continue;p.push({role:"user",content:i})}else if(n.role==="assistant"){let i=[],r=n,g=r.provider===a.provider&&r.api===a.api,h=g&&r.model===a.id,P=g&&r.model!==a.id,y=0;for(let S of n.content)if(S.type==="thinking"){if(S.thinkingSignature){let f=JSON.parse(S.thinkingSignature);i.push(f)}}else if(S.type==="text"){let f=S,T=N(f.textSignature),J=y===0?`msg_pi_${t}`:`msg_pi_${t}_${y}`;y++;let _=T?.id;if(!_)_=J;else if(_.length>64)_=`msg_${xt(_)}`;i.push({type:"message",role:"assistant",content:[{type:"output_text",text:x(f.text),annotations:[]}],status:"completed",id:_,phase:T?.phase})}else if(S.type==="toolCall"){let f=S,[T,J]=f.id.split("|"),_=d?.grammarToolInputProperties?.get(f.name),R=J,A=_===void 0?"fc_":"ctc_";if(P||!R?.startsWith(A))R=void 0;if(_!==void 0)i.push({type:"custom_tool_call",id:R,call_id:T,name:f.name,input:x(kn(f.name,f.arguments,_)),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}});else i.push({type:"function_call",id:R,call_id:T,name:f.name,arguments:JSON.stringify(f.arguments),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}})}if(i.length===0)continue;p.push(...i)}else if(n.role==="toolResult"){let[i]=n.toolCallId.split("|"),r=W(a,n.content);if(d?.grammarToolInputProperties?.has(n.toolName))p.push({type:"custom_tool_call_output",call_id:i,output:r});else p.push({type:"function_call_output",call_id:i,output:r})}if(!s)t++}return p}function wt(a,o){let l=o?.strict===void 0?!1:o.strict,d=o?.supportsStrictMode??!0,u=o?.supportsOpenAIGrammarTools??!1;return a.map((p)=>{let c=Ir(p,u);if(c)return{type:"custom",name:p.name,description:p.description,format:{type:"grammar",syntax:c.format,definition:c.definition},...o?.toolSearchResult?{defer_loading:!0}:{}};let k=we(p,d)??l,m={type:"function",name:p.name,description:p.description,parameters:_e(p,k===!0),...o?.toolSearchResult?{defer_loading:!0}:{}};if(d)m.strict=k;return m})}function z(a){let o=a.customInput?.property;if(o===void 0)return"";let l=a.arguments[o];return typeof l==="string"?l:""}function O(a,o,l){let d=a.customInput;if(!d)return;let u=Cn(d.jsonBuffer,d.property,o,l);return a.arguments={[d.property]:o},u}async function It(a,o,l,d,u){let p=!1,c=new Map,b=new Map,k=(t)=>{if(t.type==="message"&&t.phase==="final_answer")o.stopReason="stop"},m=(t,e)=>{let n=c.get(t);return n?.type===e?n:void 0},I=(t,e)=>{if(e===void 0)return;l.push({type:"toolcall_delta",contentIndex:t.contentIndex,delta:e,partial:o})},v=(t,e)=>{if(e.type==="reasoning"){let n={type:"thinking",thinking:""};o.content.push(n);let s={type:"thinking",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"thinking_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="message"){k(e);let n={type:"text",text:""};o.content.push(n);let s={type:"text",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"text_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="function_call"){let n={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{},...e.namespace!==void 0?{namespace:e.namespace}:{},partialJson:e.arguments||""};o.content.push(n);let s={type:"toolCall",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"toolcall_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="custom_tool_call"){let n=u?.grammarToolInputProperties?.get(e.name)??"input",s=e.input||"",i={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{[n]:s},...e.namespace!==void 0?{namespace:e.namespace}:{},customInput:{property:n,jsonBuffer:{input:"",started:!1,closed:!1}}};o.content.push(i);let r={type:"toolCall",block:i,contentIndex:o.content.length-1};return c.set(t,r),l.push({type:"toolcall_start",contentIndex:r.contentIndex,partial:o}),r}return},C=(t,e)=>c.get(t)??v(t,e),w=(t)=>{for(let e of t){if(e.type!=="reasoning"||!e.encrypted_content)continue;let n=b.get(e.id);if(!n?.thinkingSignature)continue;let s=JSON.parse(n.thinkingSignature);if(s.encrypted_content)continue;n.thinkingSignature=JSON.stringify({...s,encrypted_content:e.encrypted_content})}},M=(t)=>{if(p=!0,w(t.output??[]),t?.id)o.responseId=t.id;if(t?.usage){let r=t.usage.input_tokens_details,g=r?.cached_tokens||0,h=r?.cache_write_tokens||0;o.usage={input:Math.max(0,(t.usage.input_tokens||0)-g-h),output:t.usage.output_tokens||0,cacheRead:g,cacheWrite:h,reasoning:t.usage.output_tokens_details?.reasoning_tokens||0,totalTokens:t.usage.total_tokens||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}if(ne(d,o.usage),u?.applyServiceTierPricing){let r=u.resolveServiceTier?u.resolveServiceTier(t?.service_tier,u.serviceTier):t?.service_tier??u.serviceTier;u.applyServiceTierPricing(o.usage,r)}let e=t?.status,n=t?.incomplete_details,s=typeof n?.reason==="string"?n.reason:void 0;o.rawStopReason=s?`${e}.${s}`:e;let i=B(e,s);if(o.stopReason=i.stopReason,i.errorMessage===void 0)delete o.errorMessage;else o.errorMessage=i.errorMessage;if(o.content.some((r)=>r.type==="toolCall")&&o.stopReason==="stop")o.stopReason="toolUse"};for await(let t of a)if(await u?.onProviderStreamEvent?.(t,d),t.type==="response.created")o.responseId=t.response.id;else if(t.type==="response.output_item.added")v(t.output_index,t.item);else if(t.type==="response.reasoning_summary_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.reasoning_summary_part.done"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=`
|
|
4
|
-
|
|
5
|
-
`,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:`
|
|
6
|
-
|
|
7
|
-
`,partial:o})}else if(t.type==="response.reasoning_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.output_text.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.refusal.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.function_call_arguments.delta"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=V(e.block.partialJson),I(e,t.delta)}else if(t.type==="response.function_call_arguments.done"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;let n=e.block.partialJson;if(e.block.partialJson=t.arguments,e.block.arguments=V(e.block.partialJson),t.arguments.startsWith(n)){let s=t.arguments.slice(n.length);if(s.length>0)I(e,s)}}else if(t.type==="response.custom_tool_call_input.delta"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;I(e,O(e.block,z(e.block)+t.delta,!1))}else if(t.type==="response.custom_tool_call_input.done"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;I(e,O(e.block,t.input,!0))}else if(t.type==="response.output_item.done"){let e=t.item;k(e);let n=C(t.output_index,e);if(e.type==="reasoning"&&n?.type==="thinking"){let s=e.summary?.map((r)=>r.text).join(`
|
|
8
|
-
|
|
9
|
-
`)||"",i=e.content?.map((r)=>r.text).join(`
|
|
10
|
-
|
|
11
|
-
`)||"";n.block.thinking=s||i||n.block.thinking,n.block.thinkingSignature=JSON.stringify(e),b.set(e.id,n.block),l.push({type:"thinking_end",contentIndex:n.contentIndex,content:n.block.thinking,partial:o}),c.delete(t.output_index)}else if(e.type==="message"&&n?.type==="text")n.block.text=e.content?.map((s)=>s.type==="output_text"?s.text:s.refusal).join("")||"",n.block.textSignature=E(e.id,e.phase??void 0),l.push({type:"text_end",contentIndex:n.contentIndex,content:n.block.text,partial:o}),c.delete(t.output_index);else if(e.type==="function_call"&&n?.type==="toolCall"&&n.block.partialJson!==void 0){if(n.block.arguments=V(e.arguments||n.block.partialJson||"{}"),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.partialJson,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}else if(e.type==="custom_tool_call"&&n?.type==="toolCall"&&n.block.customInput){if(I(n,O(n.block,e.input??z(n.block),!0)),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.customInput,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}}else if(t.type==="response.completed"||t.type==="response.incomplete")M(t.response);else if(t.type==="error")throw Error(`Error Code ${t.code}: ${t.message}`||"Unknown error");else if(t.type==="response.failed"){p=!0,o.rawStopReason=t.response?.status;let e=t.response?.error,n=t.response?.incomplete_details,s=e?`${e.code||"unknown"}: ${e.message||"no message"}`:n?.reason?`incomplete: ${n.reason}`:"Unknown error (no error details in response)";throw Error(s)}if(!p)throw Error("OpenAI Responses stream ended before a terminal response event");if(o.stopReason==="toolUse")for(let t of o.content){if(t.type!=="toolCall")continue;let e=t;if(e.partialJson!==void 0||e.customInput!==void 0)throw Error(`OpenAI Responses stream completed with an unfinished tool call: ${e.name} (${e.id})`)}}function B(a,o){if(!a)return{stopReason:"stop"};switch(a){case"completed":return{stopReason:"stop"};case"incomplete":if(o==="max_output_tokens")return{stopReason:"length"};return{stopReason:"error",errorMessage:o?`Response incomplete: ${o}`:"Response incomplete without a provider reason"};case"failed":case"cancelled":return{stopReason:"error"};case"in_progress":case"queued":return{stopReason:"stop"};default:throw Error(`Unhandled stop reason: ${a}`)}}
|
|
12
|
-
export{Rt,wt,It};
|