@bkm016/basalt 0.1.29 → 0.1.30
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/README.md +2 -2
- package/chunk-01xyv3ct.js +7 -0
- package/chunk-06gjy5s2.js +5 -0
- package/chunk-0pztrs5x.js +11 -0
- package/chunk-0v6seb9q.js +20 -0
- package/chunk-0z138vnr.js +12 -0
- package/chunk-1c8yqctx.js +3 -0
- package/chunk-1wt8pbns.js +2 -0
- package/chunk-1yvgmxew.js +2 -0
- package/chunk-229men2n.js +31 -0
- package/chunk-29x35nj4.js +5 -0
- package/chunk-3ee7dyh4.js +18 -0
- package/chunk-3gf3g0xt.js +3 -0
- package/chunk-3gts3ja0.js +8 -0
- package/chunk-4stj480w.js +3 -0
- package/chunk-4t2t0hcp.js +3 -0
- package/chunk-57b764s0.js +5 -0
- package/chunk-63mr2aa2.js +50 -0
- package/chunk-64h4gw8d.js +3 -0
- package/chunk-7gxx6829.js +2 -0
- package/chunk-898tss1j.js +51 -0
- package/chunk-9em1sne5.js +2 -0
- package/chunk-9p8n1xjn.js +4048 -0
- package/chunk-a0h0x1dn.js +3 -0
- package/chunk-a2r89pk2.js +12 -0
- package/chunk-a5mtw4y5.js +2 -0
- package/chunk-bbqhx91f.js +3 -0
- package/chunk-c9q0y8hp.js +4 -0
- package/chunk-cgzez9a5.js +2 -0
- package/chunk-drjajr57.js +3 -0
- package/chunk-dsnz6mzt.js +25 -0
- package/chunk-ee18zzzv.js +3 -0
- package/chunk-ej42zg82.js +2 -0
- package/chunk-ejw7k7nn.js +2 -0
- package/chunk-f95j1a8x.js +3 -0
- package/chunk-fdgrayj5.js +3 -0
- package/chunk-fnxstmm5.js +2 -0
- package/chunk-gtjtkfjk.js +3 -0
- package/chunk-h4rve6x4.js +63 -0
- package/chunk-hp9bcx4x.js +2 -0
- package/chunk-je4cjwhm.js +3 -0
- package/chunk-jn1zdamp.js +9 -0
- package/chunk-jpah46d1.js +2 -0
- package/chunk-jvsrda4n.js +16 -0
- package/chunk-jyhsae16.js +2 -0
- package/chunk-k7n6bhkz.js +3 -0
- package/chunk-kvv3mvk5.js +2 -0
- package/chunk-kzv5cgqz.js +286 -0
- package/chunk-mz3zt06w.js +7 -0
- package/chunk-n4crb1x3.js +2 -0
- package/chunk-nmmf0w14.js +5 -0
- package/chunk-nr5p4pvp.js +3 -0
- package/chunk-p39fex1r.js +2 -0
- package/chunk-pefgy360.js +7 -0
- package/chunk-psr71nf8.js +2 -0
- package/chunk-qsgc7b7x.js +3 -0
- package/chunk-qygv2jqa.js +2 -0
- package/chunk-r0gsb1qs.js +3 -0
- package/chunk-r449z8pj.js +2 -0
- package/chunk-rd52y45c.js +8 -0
- package/chunk-repjnwda.js +10 -0
- package/chunk-rh6yvdwz.js +3 -0
- package/chunk-s2d5zp37.js +44 -0
- package/chunk-s68eamf1.js +2 -0
- package/chunk-sacdpkwc.js +3 -0
- package/chunk-tey1hftz.js +490 -0
- package/chunk-vhvzyxx5.js +25 -0
- package/chunk-vytm86v0.js +2 -0
- package/chunk-x4bc1xkx.js +39 -0
- package/chunk-xa23zmzv.js +2 -0
- package/chunk-xq7zspqs.js +3 -0
- package/chunk-xqz8ac7j.js +2 -0
- package/chunk-ycce2a81.js +2 -0
- package/chunk-z99s31w5.js +2 -0
- package/chunk-zs6ytk7b.js +59 -0
- package/chunk-ztm5hqwh.js +2 -0
- package/chunk-zv29qg1q.js +10 -0
- package/compiled.js +10 -10
- package/package.json +4 -1
- package/ui-test-worker.js +23 -23
- package/web/chunk-02z3bqps.js +1 -0
- package/web/chunk-02z3bqps.js.br +0 -0
- package/web/chunk-02z3bqps.js.gz +0 -0
- package/web/chunk-0dg4qqe3.js +1 -0
- package/web/chunk-0dg4qqe3.js.br +2 -0
- package/web/chunk-0dg4qqe3.js.gz +0 -0
- package/web/chunk-0qar8vwc.js +2 -0
- package/web/chunk-0qar8vwc.js.br +0 -0
- package/web/chunk-0qar8vwc.js.gz +0 -0
- package/web/chunk-0qmgmqzd.js +2 -0
- package/web/chunk-0qmgmqzd.js.br +0 -0
- package/web/chunk-0qmgmqzd.js.gz +0 -0
- package/web/chunk-1q82849a.js +1 -0
- package/web/chunk-1q82849a.js.br +0 -0
- package/web/chunk-1q82849a.js.gz +0 -0
- package/web/chunk-2ajkzs3d.js +12 -0
- package/web/chunk-2ajkzs3d.js.br +0 -0
- package/web/chunk-2ajkzs3d.js.gz +0 -0
- package/web/chunk-2ttatv42.js +2 -0
- package/web/chunk-2ttatv42.js.br +0 -0
- package/web/chunk-2ttatv42.js.gz +0 -0
- package/web/chunk-2xrkfj8n.js +291 -0
- package/web/chunk-2xrkfj8n.js.br +0 -0
- package/web/chunk-2xrkfj8n.js.gz +0 -0
- package/web/chunk-45xqp3dn.js +1 -0
- package/web/chunk-45xqp3dn.js.br +0 -0
- package/web/chunk-45xqp3dn.js.gz +0 -0
- package/web/chunk-4fdgpye3.js +2 -0
- package/web/chunk-4fdgpye3.js.br +0 -0
- package/web/chunk-4fdgpye3.js.gz +0 -0
- package/web/chunk-4fzpmw3f.js +89 -0
- package/web/chunk-4fzpmw3f.js.br +0 -0
- package/web/chunk-4fzpmw3f.js.gz +0 -0
- package/web/chunk-51njd9f8.js +89 -0
- package/web/chunk-51njd9f8.js.br +0 -0
- package/web/chunk-51njd9f8.js.gz +0 -0
- package/web/chunk-66zw8mqe.js +2 -0
- package/web/chunk-66zw8mqe.js.br +0 -0
- package/web/chunk-66zw8mqe.js.gz +0 -0
- package/web/chunk-6f9btq4p.js +1 -0
- package/web/chunk-6f9btq4p.js.br +0 -0
- package/web/chunk-6f9btq4p.js.gz +0 -0
- package/web/chunk-6x73jtw7.js +7 -0
- package/web/chunk-6x73jtw7.js.br +0 -0
- package/web/chunk-6x73jtw7.js.gz +0 -0
- package/web/chunk-6y389kg6.js +1 -0
- package/web/chunk-6y389kg6.js.br +0 -0
- package/web/chunk-6y389kg6.js.gz +0 -0
- package/web/chunk-73peavw3.js +1 -0
- package/web/chunk-73peavw3.js.br +0 -0
- package/web/chunk-73peavw3.js.gz +0 -0
- package/web/chunk-7p7qtp6d.js +1 -0
- package/web/chunk-7p7qtp6d.js.br +0 -0
- package/web/chunk-7p7qtp6d.js.gz +0 -0
- package/web/chunk-81zj375g.js +1 -0
- package/web/chunk-81zj375g.js.br +0 -0
- package/web/chunk-81zj375g.js.gz +0 -0
- package/web/chunk-89dwrkrr.js +1 -0
- package/web/chunk-89dwrkrr.js.br +0 -0
- package/web/chunk-89dwrkrr.js.gz +0 -0
- package/web/chunk-8e829p0a.css +1 -0
- package/web/chunk-8e829p0a.css.br +0 -0
- package/web/chunk-8e829p0a.css.gz +0 -0
- package/web/chunk-9j7v0e4v.js +2 -0
- package/web/chunk-9j7v0e4v.js.br +0 -0
- package/web/chunk-9j7v0e4v.js.gz +0 -0
- package/web/chunk-9mgqrwwh.js +1 -0
- package/web/chunk-9mgqrwwh.js.br +0 -0
- package/web/chunk-9mgqrwwh.js.gz +0 -0
- package/web/chunk-a11ev6ff.js +1 -0
- package/web/chunk-a11ev6ff.js.br +0 -0
- package/web/chunk-a11ev6ff.js.gz +0 -0
- package/web/chunk-ag97fhx1.js +1 -0
- package/web/chunk-ag97fhx1.js.br +0 -0
- package/web/chunk-ag97fhx1.js.gz +0 -0
- package/web/chunk-anm2706b.js +139 -0
- package/web/chunk-anm2706b.js.br +0 -0
- package/web/chunk-anm2706b.js.gz +0 -0
- package/web/chunk-aqz2exas.js +142 -0
- package/web/chunk-aqz2exas.js.br +0 -0
- package/web/chunk-aqz2exas.js.gz +0 -0
- package/web/chunk-at6wp72y.js +1 -0
- package/web/chunk-at6wp72y.js.br +0 -0
- package/web/chunk-at6wp72y.js.gz +0 -0
- package/web/chunk-ayfqxte8.js +1 -0
- package/web/chunk-ayfqxte8.js.br +2 -0
- package/web/chunk-ayfqxte8.js.gz +0 -0
- package/web/chunk-b564qxgk.js +98 -0
- package/web/chunk-b564qxgk.js.br +0 -0
- package/web/chunk-b564qxgk.js.gz +0 -0
- package/web/chunk-b9atg5sw.js +1 -0
- package/web/chunk-b9atg5sw.js.br +0 -0
- package/web/chunk-b9atg5sw.js.gz +0 -0
- package/web/chunk-bg2k54a5.js +70 -0
- package/web/chunk-bg2k54a5.js.br +0 -0
- package/web/chunk-bg2k54a5.js.gz +0 -0
- package/web/chunk-bw9crrb4.js +1 -0
- package/web/chunk-bw9crrb4.js.br +0 -0
- package/web/chunk-bw9crrb4.js.gz +0 -0
- package/web/chunk-c2vtzhbs.js +1 -0
- package/web/chunk-c2vtzhbs.js.br +0 -0
- package/web/chunk-c2vtzhbs.js.gz +0 -0
- package/web/chunk-cb0g87b5.js +2 -0
- package/web/chunk-cb0g87b5.js.br +3 -0
- package/web/chunk-cb0g87b5.js.gz +0 -0
- package/web/chunk-cgm44rx8.js +2 -0
- package/web/chunk-cgm44rx8.js.br +0 -0
- package/web/chunk-cgm44rx8.js.gz +0 -0
- package/web/chunk-ctckn7gz.js +2 -0
- package/web/chunk-ctckn7gz.js.br +0 -0
- package/web/chunk-ctckn7gz.js.gz +0 -0
- package/web/chunk-def5mk0w.js +2 -0
- package/web/chunk-def5mk0w.js.br +0 -0
- package/web/chunk-def5mk0w.js.gz +0 -0
- package/web/chunk-e2nhv6bb.js +2 -0
- package/web/chunk-e2nhv6bb.js.br +0 -0
- package/web/chunk-e2nhv6bb.js.gz +0 -0
- package/web/chunk-e7djq8rb.js +2 -0
- package/web/chunk-e7djq8rb.js.br +0 -0
- package/web/chunk-e7djq8rb.js.gz +0 -0
- package/web/chunk-eagbq8k2.js +1 -0
- package/web/chunk-eagbq8k2.js.br +0 -0
- package/web/chunk-eagbq8k2.js.gz +0 -0
- package/web/chunk-fbxw7w0z.js +1 -0
- package/web/chunk-fbxw7w0z.js.br +0 -0
- package/web/chunk-fbxw7w0z.js.gz +0 -0
- package/web/chunk-fn95dxq2.js +1 -0
- package/web/chunk-fn95dxq2.js.br +0 -0
- package/web/chunk-fn95dxq2.js.gz +0 -0
- package/web/chunk-g3n4tbbv.js +1 -0
- package/web/chunk-g3n4tbbv.js.br +2 -0
- package/web/chunk-g3n4tbbv.js.gz +0 -0
- package/web/chunk-gp0xqyh2.js +62 -0
- package/web/chunk-gp0xqyh2.js.br +0 -0
- package/web/chunk-gp0xqyh2.js.gz +0 -0
- package/web/chunk-h2rv3exr.js +84 -0
- package/web/chunk-h2rv3exr.js.br +0 -0
- package/web/chunk-h2rv3exr.js.gz +0 -0
- package/web/chunk-h47k4j7f.js +1 -0
- package/web/chunk-h47k4j7f.js.br +0 -0
- package/web/chunk-h47k4j7f.js.gz +0 -0
- package/web/chunk-h888hb33.js +41 -0
- package/web/chunk-h888hb33.js.br +0 -0
- package/web/chunk-h888hb33.js.gz +0 -0
- package/web/chunk-hc9ep8b0.js +4 -0
- package/web/chunk-hc9ep8b0.js.br +0 -0
- package/web/chunk-hc9ep8b0.js.gz +0 -0
- package/web/chunk-hp0jfbty.js +1 -0
- package/web/chunk-hp0jfbty.js.br +0 -0
- package/web/chunk-hp0jfbty.js.gz +0 -0
- package/web/chunk-hx7rh5c1.js +2 -0
- package/web/chunk-hx7rh5c1.js.br +0 -0
- package/web/chunk-hx7rh5c1.js.gz +0 -0
- package/web/chunk-hzxz7smg.js +24 -0
- package/web/chunk-hzxz7smg.js.br +0 -0
- package/web/chunk-hzxz7smg.js.gz +0 -0
- package/web/chunk-j4w9gj2v.js +1 -0
- package/web/chunk-j4w9gj2v.js.br +0 -0
- package/web/chunk-j4w9gj2v.js.gz +0 -0
- package/web/chunk-j8m3c1s4.js +2 -0
- package/web/chunk-j8m3c1s4.js.br +0 -0
- package/web/chunk-j8m3c1s4.js.gz +0 -0
- package/web/chunk-jamb9e79.js +1 -0
- package/web/chunk-jamb9e79.js.br +0 -0
- package/web/chunk-jamb9e79.js.gz +0 -0
- package/web/chunk-jg19frxn.js +55 -0
- package/web/chunk-jg19frxn.js.br +0 -0
- package/web/chunk-jg19frxn.js.gz +0 -0
- package/web/chunk-jm2pevt8.js +1 -0
- package/web/chunk-jm2pevt8.js.br +0 -0
- package/web/chunk-jm2pevt8.js.gz +0 -0
- package/web/chunk-jmr00kdm.js +214 -0
- package/web/chunk-jmr00kdm.js.br +0 -0
- package/web/chunk-jmr00kdm.js.gz +0 -0
- package/web/chunk-jsff72z2.js +1 -0
- package/web/chunk-jsff72z2.js.br +0 -0
- package/web/chunk-jsff72z2.js.gz +0 -0
- package/web/chunk-jv83dscd.js +1 -0
- package/web/chunk-jv83dscd.js.br +0 -0
- package/web/chunk-jv83dscd.js.gz +0 -0
- package/web/chunk-k0da3cb3.js +1 -0
- package/web/chunk-k0da3cb3.js.br +0 -0
- package/web/chunk-k0da3cb3.js.gz +0 -0
- package/web/chunk-k6ks8zqg.js +1 -0
- package/web/chunk-k6ks8zqg.js.br +0 -0
- package/web/chunk-k6ks8zqg.js.gz +0 -0
- package/web/chunk-kdzew6g1.js +1 -0
- package/web/chunk-kdzew6g1.js.br +2 -0
- package/web/chunk-kdzew6g1.js.gz +0 -0
- package/web/chunk-ktmnzrpf.js +1 -0
- package/web/chunk-ktmnzrpf.js.br +2 -0
- package/web/chunk-ktmnzrpf.js.gz +0 -0
- package/web/chunk-kxezmcn5.js +30 -0
- package/web/chunk-kxezmcn5.js.br +0 -0
- package/web/chunk-kxezmcn5.js.gz +0 -0
- package/web/chunk-kyj99nqq.js +2 -0
- package/web/chunk-kyj99nqq.js.br +0 -0
- package/web/chunk-kyj99nqq.js.gz +0 -0
- package/web/chunk-m1009k4x.js +16 -0
- package/web/chunk-m1009k4x.js.br +0 -0
- package/web/chunk-m1009k4x.js.gz +0 -0
- package/web/chunk-mfsdyw6v.js +2 -0
- package/web/chunk-mfsdyw6v.js.br +0 -0
- package/web/chunk-mfsdyw6v.js.gz +0 -0
- package/web/chunk-mgr8wt71.js +370 -0
- package/web/chunk-mgr8wt71.js.br +0 -0
- package/web/chunk-mgr8wt71.js.gz +0 -0
- package/web/chunk-mya0w8tm.js +1 -0
- package/web/chunk-mya0w8tm.js.br +0 -0
- package/web/chunk-mya0w8tm.js.gz +0 -0
- package/web/chunk-n1wgda90.js +7 -0
- package/web/chunk-n1wgda90.js.br +0 -0
- package/web/chunk-n1wgda90.js.gz +0 -0
- package/web/chunk-n7hk5sxm.js +120 -0
- package/web/chunk-n7hk5sxm.js.br +0 -0
- package/web/chunk-n7hk5sxm.js.gz +0 -0
- package/web/chunk-n99yz498.js +36 -0
- package/web/chunk-n99yz498.js.br +0 -0
- package/web/chunk-n99yz498.js.gz +0 -0
- package/web/chunk-nnvqz2dh.js +1 -0
- package/web/chunk-nnvqz2dh.js.br +0 -0
- package/web/chunk-nnvqz2dh.js.gz +0 -0
- package/web/chunk-nx439rde.js +1 -0
- package/web/chunk-nx439rde.js.br +0 -0
- package/web/chunk-nx439rde.js.gz +0 -0
- package/web/chunk-pn50cj2y.js +1 -0
- package/web/chunk-pn50cj2y.js.br +0 -0
- package/web/chunk-pn50cj2y.js.gz +0 -0
- package/web/chunk-pph3x232.js +38 -0
- package/web/chunk-pph3x232.js.br +0 -0
- package/web/chunk-pph3x232.js.gz +0 -0
- package/web/chunk-pt2vfgkr.js +1 -0
- package/web/chunk-pt2vfgkr.js.br +0 -0
- package/web/chunk-pt2vfgkr.js.gz +0 -0
- package/web/chunk-pzvg5xnk.js +21 -0
- package/web/chunk-pzvg5xnk.js.br +0 -0
- package/web/chunk-pzvg5xnk.js.gz +0 -0
- package/web/chunk-q5hj3y5k.js +2 -0
- package/web/chunk-q5hj3y5k.js.br +0 -0
- package/web/chunk-q5hj3y5k.js.gz +0 -0
- package/web/chunk-qafnz668.js +1 -0
- package/web/chunk-qafnz668.js.br +0 -0
- package/web/chunk-qafnz668.js.gz +0 -0
- package/web/chunk-qkfqcr10.js +1 -0
- package/web/chunk-qkfqcr10.js.br +0 -0
- package/web/chunk-qkfqcr10.js.gz +0 -0
- package/web/chunk-qkgp0da2.js +1 -0
- package/web/chunk-qkgp0da2.js.br +0 -0
- package/web/chunk-qkgp0da2.js.gz +0 -0
- package/web/chunk-qpqdn0a8.js +1 -0
- package/web/chunk-qpqdn0a8.js.br +0 -0
- package/web/chunk-qpqdn0a8.js.gz +0 -0
- package/web/chunk-r0ch05x8.js +3 -0
- package/web/chunk-r0ch05x8.js.br +0 -0
- package/web/chunk-r0ch05x8.js.gz +0 -0
- package/web/chunk-r6s2vcby.js +8 -0
- package/web/chunk-r6s2vcby.js.br +6 -0
- package/web/chunk-r6s2vcby.js.gz +0 -0
- package/web/chunk-r71mdnq3.js +1 -0
- package/web/chunk-r71mdnq3.js.br +0 -0
- package/web/chunk-r71mdnq3.js.gz +0 -0
- package/web/chunk-r9m8jh7x.js +2 -0
- package/web/chunk-r9m8jh7x.js.br +0 -0
- package/web/chunk-r9m8jh7x.js.gz +0 -0
- package/web/chunk-rd60971b.js +2 -0
- package/web/chunk-rd60971b.js.br +0 -0
- package/web/chunk-rd60971b.js.gz +0 -0
- package/web/chunk-rdz21xd5.js +99 -0
- package/web/chunk-rdz21xd5.js.br +0 -0
- package/web/chunk-rdz21xd5.js.gz +0 -0
- package/web/chunk-rmzb9edh.js +303 -0
- package/web/chunk-rmzb9edh.js.br +0 -0
- package/web/chunk-rmzb9edh.js.gz +0 -0
- package/web/chunk-rqkd1h2n.js +2 -0
- package/web/chunk-rqkd1h2n.js.br +0 -0
- package/web/chunk-rqkd1h2n.js.gz +0 -0
- package/web/chunk-rz2cq4g2.js +2 -0
- package/web/chunk-rz2cq4g2.js.br +0 -0
- package/web/chunk-rz2cq4g2.js.gz +0 -0
- package/web/chunk-rzeh9b1q.js +2 -0
- package/web/chunk-rzeh9b1q.js.br +0 -0
- package/web/chunk-rzeh9b1q.js.gz +0 -0
- package/web/chunk-s6ax6yty.js +1 -0
- package/web/chunk-s6ax6yty.js.br +0 -0
- package/web/chunk-s6ax6yty.js.gz +0 -0
- package/web/chunk-s75zvbh9.js +1 -0
- package/web/chunk-s75zvbh9.js.br +0 -0
- package/web/chunk-s75zvbh9.js.gz +0 -0
- package/web/chunk-s7cz1q7g.js +324 -0
- package/web/chunk-s7cz1q7g.js.br +0 -0
- package/web/chunk-s7cz1q7g.js.gz +0 -0
- package/web/chunk-sh6xh1kh.js +1 -0
- package/web/chunk-sh6xh1kh.js.br +0 -0
- package/web/chunk-sh6xh1kh.js.gz +0 -0
- package/web/chunk-shc8bv2k.js +2 -0
- package/web/chunk-shc8bv2k.js.br +0 -0
- package/web/chunk-shc8bv2k.js.gz +0 -0
- package/web/chunk-sqa50cfh.js +2 -0
- package/web/chunk-sqa50cfh.js.br +0 -0
- package/web/chunk-sqa50cfh.js.gz +0 -0
- package/web/chunk-stp6j8y9.js +39 -0
- package/web/chunk-stp6j8y9.js.br +0 -0
- package/web/chunk-stp6j8y9.js.gz +0 -0
- package/web/chunk-t7wae2xz.js +332 -0
- package/web/chunk-t7wae2xz.js.br +0 -0
- package/web/chunk-t7wae2xz.js.gz +0 -0
- package/web/chunk-t8p7d5vk.js +2 -0
- package/web/chunk-t8p7d5vk.js.br +0 -0
- package/web/chunk-t8p7d5vk.js.gz +0 -0
- package/web/chunk-t9twwgfe.js +1 -0
- package/web/chunk-t9twwgfe.js.br +0 -0
- package/web/chunk-t9twwgfe.js.gz +0 -0
- package/web/chunk-tbgavq0t.js +2 -0
- package/web/chunk-tbgavq0t.js.br +0 -0
- package/web/chunk-tbgavq0t.js.gz +0 -0
- package/web/chunk-tbj4d6qe.js +292 -0
- package/web/chunk-tbj4d6qe.js.br +0 -0
- package/web/chunk-tbj4d6qe.js.gz +0 -0
- package/web/chunk-v0wb751t.js +2 -0
- package/web/chunk-v0wb751t.js.br +0 -0
- package/web/chunk-v0wb751t.js.gz +0 -0
- package/web/chunk-v1vghfec.js +1 -0
- package/web/chunk-v1vghfec.js.br +0 -0
- package/web/chunk-v1vghfec.js.gz +0 -0
- package/web/chunk-v890rh1e.js +2 -0
- package/web/chunk-v890rh1e.js.br +0 -0
- package/web/chunk-v890rh1e.js.gz +0 -0
- package/web/chunk-vd2kng8p.js +4 -0
- package/web/chunk-vd2kng8p.js.br +0 -0
- package/web/chunk-vd2kng8p.js.gz +0 -0
- package/web/chunk-vfqmec16.js +217 -0
- package/web/chunk-vfqmec16.js.br +0 -0
- package/web/chunk-vfqmec16.js.gz +0 -0
- package/web/chunk-vhmcx472.js +1 -0
- package/web/chunk-vhmcx472.js.br +0 -0
- package/web/chunk-vhmcx472.js.gz +0 -0
- package/web/chunk-vtvf1x6b.js +2 -0
- package/web/chunk-vtvf1x6b.js.br +0 -0
- package/web/chunk-vtvf1x6b.js.gz +0 -0
- package/web/chunk-w0ae9ggt.js +40 -0
- package/web/chunk-w0ae9ggt.js.br +0 -0
- package/web/chunk-w0ae9ggt.js.gz +0 -0
- package/web/chunk-ws8rv0tb.js +1141 -0
- package/web/chunk-ws8rv0tb.js.br +0 -0
- package/web/chunk-ws8rv0tb.js.gz +0 -0
- package/web/chunk-wvnvh4a5.js +78 -0
- package/web/chunk-wvnvh4a5.js.br +0 -0
- package/web/chunk-wvnvh4a5.js.gz +0 -0
- package/web/chunk-x11ewabg.js +1 -0
- package/web/chunk-x11ewabg.js.br +0 -0
- package/web/chunk-x11ewabg.js.gz +0 -0
- package/web/chunk-x2tcf0r1.js +1 -0
- package/web/chunk-x2tcf0r1.js.br +2 -0
- package/web/chunk-x2tcf0r1.js.gz +0 -0
- package/web/chunk-x9mexzav.js +2 -0
- package/web/chunk-x9mexzav.js.br +0 -0
- package/web/chunk-x9mexzav.js.gz +0 -0
- package/web/chunk-xbrj4mk1.js +140 -0
- package/web/chunk-xbrj4mk1.js.br +0 -0
- package/web/chunk-xbrj4mk1.js.gz +0 -0
- package/web/chunk-xh8q1bcj.js +34 -0
- package/web/chunk-xh8q1bcj.js.br +0 -0
- package/web/chunk-xh8q1bcj.js.gz +0 -0
- package/web/chunk-xha3t633.js +1 -0
- package/web/chunk-xha3t633.js.br +0 -0
- package/web/chunk-xha3t633.js.gz +0 -0
- package/web/chunk-xmr18f18.js +1 -0
- package/web/chunk-xmr18f18.js.br +0 -0
- package/web/chunk-xmr18f18.js.gz +0 -0
- package/web/chunk-y372dg1e.js +7 -0
- package/web/chunk-y372dg1e.js.br +0 -0
- package/web/chunk-y372dg1e.js.gz +0 -0
- package/web/chunk-y48mj5d7.js +1 -0
- package/web/chunk-y48mj5d7.js.br +0 -0
- package/web/chunk-y48mj5d7.js.gz +0 -0
- package/web/chunk-y778wckc.js +24 -0
- package/web/chunk-y778wckc.js.br +0 -0
- package/web/chunk-y778wckc.js.gz +0 -0
- package/web/chunk-yerpvhym.js +169 -0
- package/web/chunk-yerpvhym.js.br +0 -0
- package/web/chunk-yerpvhym.js.gz +0 -0
- package/web/chunk-yrhe7a7c.js +106 -0
- package/web/chunk-yrhe7a7c.js.br +0 -0
- package/web/chunk-yrhe7a7c.js.gz +0 -0
- package/web/chunk-z2aazpzj.js +2 -0
- package/web/chunk-z2aazpzj.js.br +0 -0
- package/web/chunk-z2aazpzj.js.gz +0 -0
- package/web/chunk-z43td5ad.js +1 -0
- package/web/chunk-z43td5ad.js.br +0 -0
- package/web/chunk-z43td5ad.js.gz +0 -0
- package/web/chunk-z8fgdsx5.js +1 -0
- package/web/chunk-z8fgdsx5.js.br +0 -0
- package/web/chunk-z8fgdsx5.js.gz +0 -0
- package/web/chunk-zf42y65m.js +1 -0
- package/web/chunk-zf42y65m.js.br +0 -0
- package/web/chunk-zf42y65m.js.gz +0 -0
- package/web/chunk-zj2rhf4b.js +200 -0
- package/web/chunk-zj2rhf4b.js.br +0 -0
- package/web/chunk-zj2rhf4b.js.gz +0 -0
- package/web/chunk-zkn84jhm.js +2 -0
- package/web/chunk-zkn84jhm.js.br +0 -0
- package/web/chunk-zkn84jhm.js.gz +0 -0
- package/web/index.html +27 -2
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/sw.js +39 -24
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/worker.js +1 -1
- package/chunk-01fz0kzx.js +0 -2
- package/chunk-06k5mcmy.js +0 -4018
- package/chunk-14pg1g7b.js +0 -2
- package/chunk-1cvzbvsq.js +0 -2
- package/chunk-1pgj58dw.js +0 -20
- package/chunk-200cn72d.js +0 -16
- package/chunk-2nd8hvf3.js +0 -31
- package/chunk-39wsmkd7.js +0 -4
- package/chunk-54qc1d5t.js +0 -2
- package/chunk-59enxka6.js +0 -50
- package/chunk-5fs3331q.js +0 -3
- package/chunk-674kjaqz.js +0 -2
- package/chunk-6pqsx156.js +0 -12
- package/chunk-6rw1ex78.js +0 -2
- package/chunk-6vz0znf6.js +0 -8
- package/chunk-73z1fv3d.js +0 -9
- package/chunk-7dnq7g8f.js +0 -3
- package/chunk-7emc0sy7.js +0 -11
- package/chunk-7nsrfrmx.js +0 -2
- package/chunk-8hxsap9d.js +0 -5
- package/chunk-8kmtns4v.js +0 -5
- package/chunk-9dy56agy.js +0 -51
- package/chunk-9mt2k1a7.js +0 -5
- package/chunk-9sq7yxh7.js +0 -12
- package/chunk-9x1yprjh.js +0 -2
- package/chunk-a5k24aj6.js +0 -3
- package/chunk-ades3qy7.js +0 -10
- package/chunk-ag642nqs.js +0 -8
- package/chunk-av3zmcd8.js +0 -3
- package/chunk-b1hdfsj4.js +0 -25
- package/chunk-b5448t3j.js +0 -2
- package/chunk-b6rvzkxg.js +0 -3
- package/chunk-b8acka7e.js +0 -2
- package/chunk-bh680te4.js +0 -2
- package/chunk-cb4rvanv.js +0 -2
- package/chunk-d6hcvbkh.js +0 -3
- package/chunk-dqxks09b.js +0 -3
- package/chunk-exjytvzn.js +0 -2
- package/chunk-f6kg68bj.js +0 -3
- package/chunk-fcxdq1dy.js +0 -7
- package/chunk-fkjjadt4.js +0 -3
- package/chunk-fr1zvytp.js +0 -7
- package/chunk-fx3cc8nr.js +0 -3
- package/chunk-j01t6mnq.js +0 -3
- package/chunk-j24fq8ss.js +0 -2
- package/chunk-j55tyjct.js +0 -2
- package/chunk-jn0dhvkp.js +0 -2
- package/chunk-k9dw37w2.js +0 -3
- package/chunk-m6bm0739.js +0 -2
- package/chunk-mkfdzt82.js +0 -2
- package/chunk-nbm1tqvg.js +0 -3
- package/chunk-p5ga5as0.js +0 -25
- package/chunk-pmefr1ak.js +0 -490
- package/chunk-rf6t7zeb.js +0 -286
- package/chunk-s0ne3yb9.js +0 -2
- package/chunk-s8ybq82n.js +0 -5
- package/chunk-spv39wem.js +0 -7
- package/chunk-stgqqm7m.js +0 -59
- package/chunk-sykaz5bf.js +0 -18
- package/chunk-sz0jywpb.js +0 -39
- package/chunk-vcngwaee.js +0 -3
- package/chunk-vpvznxf4.js +0 -3
- package/chunk-vzh6e5f2.js +0 -2
- package/chunk-wkvrtjtc.js +0 -2
- package/chunk-wzd9b2qk.js +0 -2
- package/chunk-x1cva1gc.js +0 -2
- package/chunk-x83jcg3x.js +0 -3
- package/chunk-xdyee71m.js +0 -10
- package/chunk-xdygdssk.js +0 -3
- package/chunk-xjcg6cxc.js +0 -3
- package/chunk-xran6f0c.js +0 -2
- package/chunk-ymn1s2xs.js +0 -3
- package/chunk-ysqx0ye8.js +0 -2
- package/chunk-z58jafcm.js +0 -3
- package/chunk-zf1c6rj7.js +0 -63
- package/chunk-zgtahh10.js +0 -44
- package/web/chunk-0nt1mz09.js +0 -1
- package/web/chunk-0nt1mz09.js.br +0 -0
- package/web/chunk-0nt1mz09.js.gz +0 -0
- package/web/chunk-0yye7ex1.js +0 -1
- package/web/chunk-0yye7ex1.js.br +0 -0
- package/web/chunk-0yye7ex1.js.gz +0 -0
- package/web/chunk-1hmw1eaw.js +0 -1
- package/web/chunk-1hmw1eaw.js.br +0 -0
- package/web/chunk-1hmw1eaw.js.gz +0 -0
- package/web/chunk-20gcnbgn.js +0 -2
- package/web/chunk-20gcnbgn.js.br +0 -0
- package/web/chunk-20gcnbgn.js.gz +0 -0
- package/web/chunk-2nwvdqxm.js +0 -1
- package/web/chunk-2nwvdqxm.js.br +0 -0
- package/web/chunk-2nwvdqxm.js.gz +0 -0
- package/web/chunk-2wvgy7f4.js +0 -1
- package/web/chunk-2wvgy7f4.js.br +0 -0
- package/web/chunk-2wvgy7f4.js.gz +0 -0
- package/web/chunk-368znnfs.js +0 -1
- package/web/chunk-368znnfs.js.br +0 -0
- package/web/chunk-368znnfs.js.gz +0 -0
- package/web/chunk-3tx9tqfb.js +0 -291
- package/web/chunk-3tx9tqfb.js.br +0 -0
- package/web/chunk-3tx9tqfb.js.gz +0 -0
- package/web/chunk-414npx47.js +0 -1
- package/web/chunk-414npx47.js.br +0 -0
- package/web/chunk-414npx47.js.gz +0 -0
- package/web/chunk-46ht4dh6.js +0 -24
- package/web/chunk-46ht4dh6.js.br +0 -0
- package/web/chunk-46ht4dh6.js.gz +0 -0
- package/web/chunk-4c418rk9.js +0 -1
- package/web/chunk-4c418rk9.js.br +0 -2
- package/web/chunk-4c418rk9.js.gz +0 -0
- package/web/chunk-4p0sm8e7.js +0 -7
- package/web/chunk-4p0sm8e7.js.br +0 -0
- package/web/chunk-4p0sm8e7.js.gz +0 -0
- package/web/chunk-4zam960g.js +0 -1
- package/web/chunk-4zam960g.js.br +0 -0
- package/web/chunk-4zam960g.js.gz +0 -0
- package/web/chunk-5h63t21g.js +0 -1
- package/web/chunk-5h63t21g.js.br +0 -0
- package/web/chunk-5h63t21g.js.gz +0 -0
- package/web/chunk-5h7xm5mn.js +0 -1
- package/web/chunk-5h7xm5mn.js.br +0 -0
- package/web/chunk-5h7xm5mn.js.gz +0 -0
- package/web/chunk-6crex674.js +0 -89
- package/web/chunk-6crex674.js.br +0 -0
- package/web/chunk-6crex674.js.gz +0 -0
- package/web/chunk-6v031vc6.js +0 -21
- package/web/chunk-6v031vc6.js.br +0 -0
- package/web/chunk-6v031vc6.js.gz +0 -0
- package/web/chunk-782gfmtk.js +0 -38
- package/web/chunk-782gfmtk.js.br +0 -0
- package/web/chunk-782gfmtk.js.gz +0 -0
- package/web/chunk-7a6szg06.js +0 -2
- package/web/chunk-7a6szg06.js.br +0 -0
- package/web/chunk-7a6szg06.js.gz +0 -0
- package/web/chunk-7dvbxn34.js +0 -4
- package/web/chunk-7dvbxn34.js.br +0 -0
- package/web/chunk-7dvbxn34.js.gz +0 -0
- package/web/chunk-7g795nba.js +0 -1
- package/web/chunk-7g795nba.js.br +0 -2
- package/web/chunk-7g795nba.js.gz +0 -0
- package/web/chunk-8fymhvne.js +0 -1
- package/web/chunk-8fymhvne.js.br +0 -0
- package/web/chunk-8fymhvne.js.gz +0 -0
- package/web/chunk-8kcp1h63.js +0 -1
- package/web/chunk-8kcp1h63.js.br +0 -0
- package/web/chunk-8kcp1h63.js.gz +0 -0
- package/web/chunk-8vtr60yn.js +0 -2
- package/web/chunk-8vtr60yn.js.br +0 -0
- package/web/chunk-8vtr60yn.js.gz +0 -0
- package/web/chunk-8y14zggg.js +0 -2
- package/web/chunk-8y14zggg.js.br +0 -0
- package/web/chunk-8y14zggg.js.gz +0 -0
- package/web/chunk-8zg840m3.js +0 -1
- package/web/chunk-8zg840m3.js.br +0 -0
- package/web/chunk-8zg840m3.js.gz +0 -0
- package/web/chunk-940sc4ny.js +0 -7
- package/web/chunk-940sc4ny.js.br +0 -0
- package/web/chunk-940sc4ny.js.gz +0 -0
- package/web/chunk-94f4sz0m.js +0 -1
- package/web/chunk-94f4sz0m.js.br +0 -0
- package/web/chunk-94f4sz0m.js.gz +0 -0
- package/web/chunk-94jy9s3n.js +0 -55
- package/web/chunk-94jy9s3n.js.br +0 -0
- package/web/chunk-94jy9s3n.js.gz +0 -0
- package/web/chunk-97qfkg6n.js +0 -30
- package/web/chunk-97qfkg6n.js.br +0 -0
- package/web/chunk-97qfkg6n.js.gz +0 -0
- package/web/chunk-99c0h3v7.js +0 -1
- package/web/chunk-99c0h3v7.js.br +0 -0
- package/web/chunk-99c0h3v7.js.gz +0 -0
- package/web/chunk-99mgkmjb.js +0 -62
- package/web/chunk-99mgkmjb.js.br +0 -0
- package/web/chunk-99mgkmjb.js.gz +0 -0
- package/web/chunk-9afn27bs.js +0 -1
- package/web/chunk-9afn27bs.js.br +0 -2
- package/web/chunk-9afn27bs.js.gz +0 -0
- package/web/chunk-aan5qk6x.js +0 -1
- package/web/chunk-aan5qk6x.js.br +0 -0
- package/web/chunk-aan5qk6x.js.gz +0 -0
- package/web/chunk-aw4h94zp.js +0 -1
- package/web/chunk-aw4h94zp.js.br +0 -0
- package/web/chunk-aw4h94zp.js.gz +0 -0
- package/web/chunk-azdhgj11.js +0 -40
- package/web/chunk-azdhgj11.js.br +0 -0
- package/web/chunk-azdhgj11.js.gz +0 -0
- package/web/chunk-batey85v.js +0 -2
- package/web/chunk-batey85v.js.br +0 -0
- package/web/chunk-batey85v.js.gz +0 -0
- package/web/chunk-brbxfap5.js +0 -99
- package/web/chunk-brbxfap5.js.br +0 -0
- package/web/chunk-brbxfap5.js.gz +0 -0
- package/web/chunk-bxc8a663.js +0 -2
- package/web/chunk-bxc8a663.js.br +0 -0
- package/web/chunk-bxc8a663.js.gz +0 -0
- package/web/chunk-c2t7zyge.js +0 -169
- package/web/chunk-c2t7zyge.js.br +0 -0
- package/web/chunk-c2t7zyge.js.gz +0 -0
- package/web/chunk-c5bfa3rp.js +0 -1
- package/web/chunk-c5bfa3rp.js.br +0 -0
- package/web/chunk-c5bfa3rp.js.gz +0 -0
- package/web/chunk-c86a6am5.js +0 -2
- package/web/chunk-c86a6am5.js.br +0 -3
- package/web/chunk-c86a6am5.js.gz +0 -0
- package/web/chunk-d5n2yz4e.js +0 -2
- package/web/chunk-d5n2yz4e.js.br +0 -0
- package/web/chunk-d5n2yz4e.js.gz +0 -0
- package/web/chunk-dgtp38mj.js +0 -1
- package/web/chunk-dgtp38mj.js.br +0 -0
- package/web/chunk-dgtp38mj.js.gz +0 -0
- package/web/chunk-e4cwyn1g.js +0 -2
- package/web/chunk-e4cwyn1g.js.br +0 -0
- package/web/chunk-e4cwyn1g.js.gz +0 -0
- package/web/chunk-e4h4dg4y.js +0 -303
- package/web/chunk-e4h4dg4y.js.br +0 -0
- package/web/chunk-e4h4dg4y.js.gz +0 -0
- package/web/chunk-e5f8e2ta.js +0 -1
- package/web/chunk-e5f8e2ta.js.br +0 -0
- package/web/chunk-e5f8e2ta.js.gz +0 -0
- package/web/chunk-e7rwnv7e.js +0 -1
- package/web/chunk-e7rwnv7e.js.br +0 -0
- package/web/chunk-e7rwnv7e.js.gz +0 -0
- package/web/chunk-ef9tqrz4.js +0 -324
- package/web/chunk-ef9tqrz4.js.br +0 -0
- package/web/chunk-ef9tqrz4.js.gz +0 -0
- package/web/chunk-efjc9mga.js +0 -2
- package/web/chunk-efjc9mga.js.br +0 -0
- package/web/chunk-efjc9mga.js.gz +0 -0
- package/web/chunk-ekcnhcm0.js +0 -1
- package/web/chunk-ekcnhcm0.js.br +0 -0
- package/web/chunk-ekcnhcm0.js.gz +0 -0
- package/web/chunk-ekkdhece.js +0 -41
- package/web/chunk-ekkdhece.js.br +0 -0
- package/web/chunk-ekkdhece.js.gz +0 -0
- package/web/chunk-enbqe508.js +0 -36
- package/web/chunk-enbqe508.js.br +0 -0
- package/web/chunk-enbqe508.js.gz +0 -0
- package/web/chunk-ev517x0c.js +0 -1
- package/web/chunk-ev517x0c.js.br +0 -0
- package/web/chunk-ev517x0c.js.gz +0 -0
- package/web/chunk-ex47jeev.js +0 -1
- package/web/chunk-ex47jeev.js.br +0 -0
- package/web/chunk-ex47jeev.js.gz +0 -0
- package/web/chunk-f5wyg9zh.js +0 -2
- package/web/chunk-f5wyg9zh.js.br +0 -0
- package/web/chunk-f5wyg9zh.js.gz +0 -0
- package/web/chunk-ft9p7cr8.js +0 -8
- package/web/chunk-ft9p7cr8.js.br +0 -0
- package/web/chunk-ft9p7cr8.js.gz +0 -0
- package/web/chunk-ftdzs90e.js +0 -1
- package/web/chunk-ftdzs90e.js.br +0 -0
- package/web/chunk-ftdzs90e.js.gz +0 -0
- package/web/chunk-fybmc8p1.js +0 -1
- package/web/chunk-fybmc8p1.js.br +0 -0
- package/web/chunk-fybmc8p1.js.gz +0 -0
- package/web/chunk-g6e50kx0.js +0 -3
- package/web/chunk-g6e50kx0.js.br +0 -0
- package/web/chunk-g6e50kx0.js.gz +0 -0
- package/web/chunk-g6grehr5.css +0 -1
- package/web/chunk-g6grehr5.css.br +0 -0
- package/web/chunk-g6grehr5.css.gz +0 -0
- package/web/chunk-gbzfq3rg.js +0 -332
- package/web/chunk-gbzfq3rg.js.br +0 -0
- package/web/chunk-gbzfq3rg.js.gz +0 -0
- package/web/chunk-gsg8yq3m.js +0 -1
- package/web/chunk-gsg8yq3m.js.br +0 -0
- package/web/chunk-gsg8yq3m.js.gz +0 -0
- package/web/chunk-gvndjaan.js +0 -2
- package/web/chunk-gvndjaan.js.br +0 -0
- package/web/chunk-gvndjaan.js.gz +0 -0
- package/web/chunk-hgcgbxns.js +0 -1
- package/web/chunk-hgcgbxns.js.br +0 -0
- package/web/chunk-hgcgbxns.js.gz +0 -0
- package/web/chunk-hh8ck7sy.js +0 -2
- package/web/chunk-hh8ck7sy.js.br +0 -0
- package/web/chunk-hh8ck7sy.js.gz +0 -0
- package/web/chunk-hj18pw9f.js +0 -2
- package/web/chunk-hj18pw9f.js.br +0 -0
- package/web/chunk-hj18pw9f.js.gz +0 -0
- package/web/chunk-hk4jd2qq.js +0 -24
- package/web/chunk-hk4jd2qq.js.br +0 -0
- package/web/chunk-hk4jd2qq.js.gz +0 -0
- package/web/chunk-hrnx1576.js +0 -4
- package/web/chunk-hrnx1576.js.br +0 -0
- package/web/chunk-hrnx1576.js.gz +0 -0
- package/web/chunk-hzvff525.js +0 -2
- package/web/chunk-hzvff525.js.br +0 -0
- package/web/chunk-hzvff525.js.gz +0 -0
- package/web/chunk-j0ns5dyq.js +0 -120
- package/web/chunk-j0ns5dyq.js.br +0 -0
- package/web/chunk-j0ns5dyq.js.gz +0 -0
- package/web/chunk-j21a7pd1.js +0 -1
- package/web/chunk-j21a7pd1.js.br +0 -0
- package/web/chunk-j21a7pd1.js.gz +0 -0
- package/web/chunk-jbejy8k3.js +0 -1139
- package/web/chunk-jbejy8k3.js.br +0 -0
- package/web/chunk-jbejy8k3.js.gz +0 -0
- package/web/chunk-jeq99z4t.js +0 -70
- package/web/chunk-jeq99z4t.js.br +0 -0
- package/web/chunk-jeq99z4t.js.gz +0 -0
- package/web/chunk-jqq07zta.js +0 -1
- package/web/chunk-jqq07zta.js.br +0 -0
- package/web/chunk-jqq07zta.js.gz +0 -0
- package/web/chunk-k6m37v6k.js +0 -1
- package/web/chunk-k6m37v6k.js.br +0 -0
- package/web/chunk-k6m37v6k.js.gz +0 -0
- package/web/chunk-kajk2w5j.js +0 -217
- package/web/chunk-kajk2w5j.js.br +0 -0
- package/web/chunk-kajk2w5j.js.gz +0 -0
- package/web/chunk-kcrypnnf.js +0 -1
- package/web/chunk-kcrypnnf.js.br +0 -0
- package/web/chunk-kcrypnnf.js.gz +0 -0
- package/web/chunk-kyksv8an.js +0 -1
- package/web/chunk-kyksv8an.js.br +0 -2
- package/web/chunk-kyksv8an.js.gz +0 -0
- package/web/chunk-mkhcq6z6.js +0 -1
- package/web/chunk-mkhcq6z6.js.br +0 -0
- package/web/chunk-mkhcq6z6.js.gz +0 -0
- package/web/chunk-mqdvg55y.js +0 -2
- package/web/chunk-mqdvg55y.js.br +0 -0
- package/web/chunk-mqdvg55y.js.gz +0 -0
- package/web/chunk-mytypet0.js +0 -2
- package/web/chunk-mytypet0.js.br +0 -0
- package/web/chunk-mytypet0.js.gz +0 -0
- package/web/chunk-mzb086jr.js +0 -1
- package/web/chunk-mzb086jr.js.br +0 -0
- package/web/chunk-mzb086jr.js.gz +0 -0
- package/web/chunk-mzevfdmp.js +0 -1
- package/web/chunk-mzevfdmp.js.br +0 -0
- package/web/chunk-mzevfdmp.js.gz +0 -0
- package/web/chunk-n7c5sndg.js +0 -1
- package/web/chunk-n7c5sndg.js.br +0 -0
- package/web/chunk-n7c5sndg.js.gz +0 -0
- package/web/chunk-ned200k0.js +0 -84
- package/web/chunk-ned200k0.js.br +0 -0
- package/web/chunk-ned200k0.js.gz +0 -0
- package/web/chunk-ngcd5a3c.js +0 -1
- package/web/chunk-ngcd5a3c.js.br +0 -0
- package/web/chunk-ngcd5a3c.js.gz +0 -0
- package/web/chunk-ngsv0xfb.js +0 -1
- package/web/chunk-ngsv0xfb.js.br +0 -0
- package/web/chunk-ngsv0xfb.js.gz +0 -0
- package/web/chunk-nx14h1a6.js +0 -1
- package/web/chunk-nx14h1a6.js.br +0 -0
- package/web/chunk-nx14h1a6.js.gz +0 -0
- package/web/chunk-p3fv7nbz.js +0 -1
- package/web/chunk-p3fv7nbz.js.br +0 -0
- package/web/chunk-p3fv7nbz.js.gz +0 -0
- package/web/chunk-pktgtyf6.js +0 -1
- package/web/chunk-pktgtyf6.js.br +0 -0
- package/web/chunk-pktgtyf6.js.gz +0 -0
- package/web/chunk-pm504vps.js +0 -89
- package/web/chunk-pm504vps.js.br +0 -0
- package/web/chunk-pm504vps.js.gz +0 -0
- package/web/chunk-pnvkphs0.js +0 -12
- package/web/chunk-pnvkphs0.js.br +0 -0
- package/web/chunk-pnvkphs0.js.gz +0 -0
- package/web/chunk-ptvshaa0.js +0 -2
- package/web/chunk-ptvshaa0.js.br +0 -0
- package/web/chunk-ptvshaa0.js.gz +0 -0
- package/web/chunk-py4737sc.js +0 -39
- package/web/chunk-py4737sc.js.br +0 -0
- package/web/chunk-py4737sc.js.gz +0 -0
- package/web/chunk-pz5wcbdv.js +0 -139
- package/web/chunk-pz5wcbdv.js.br +0 -0
- package/web/chunk-pz5wcbdv.js.gz +0 -0
- package/web/chunk-q467b529.js +0 -1
- package/web/chunk-q467b529.js.br +0 -0
- package/web/chunk-q467b529.js.gz +0 -0
- package/web/chunk-qbvbfpx8.js +0 -1
- package/web/chunk-qbvbfpx8.js.br +0 -0
- package/web/chunk-qbvbfpx8.js.gz +0 -0
- package/web/chunk-qgfc4ptt.js +0 -7
- package/web/chunk-qgfc4ptt.js.br +0 -0
- package/web/chunk-qgfc4ptt.js.gz +0 -0
- package/web/chunk-qmmss130.js +0 -2
- package/web/chunk-qmmss130.js.br +0 -0
- package/web/chunk-qmmss130.js.gz +0 -0
- package/web/chunk-qqrzr444.js +0 -2
- package/web/chunk-qqrzr444.js.br +0 -0
- package/web/chunk-qqrzr444.js.gz +0 -0
- package/web/chunk-r2fjprkk.js +0 -1
- package/web/chunk-r2fjprkk.js.br +0 -0
- package/web/chunk-r2fjprkk.js.gz +0 -0
- package/web/chunk-rcn21n5e.js +0 -214
- package/web/chunk-rcn21n5e.js.br +0 -0
- package/web/chunk-rcn21n5e.js.gz +0 -0
- package/web/chunk-rj1rp0tc.js +0 -1
- package/web/chunk-rj1rp0tc.js.br +0 -0
- package/web/chunk-rj1rp0tc.js.gz +0 -0
- package/web/chunk-rpnw9xwe.js +0 -1
- package/web/chunk-rpnw9xwe.js.br +0 -0
- package/web/chunk-rpnw9xwe.js.gz +0 -0
- package/web/chunk-rv5h4d8w.js +0 -1
- package/web/chunk-rv5h4d8w.js.br +0 -0
- package/web/chunk-rv5h4d8w.js.gz +0 -0
- package/web/chunk-s00gxcxn.js +0 -2
- package/web/chunk-s00gxcxn.js.br +0 -0
- package/web/chunk-s00gxcxn.js.gz +0 -0
- package/web/chunk-s8e8gzvn.js +0 -16
- package/web/chunk-s8e8gzvn.js.br +0 -0
- package/web/chunk-s8e8gzvn.js.gz +0 -0
- package/web/chunk-sa57mndb.js +0 -1
- package/web/chunk-sa57mndb.js.br +0 -0
- package/web/chunk-sa57mndb.js.gz +0 -0
- package/web/chunk-sc90h9bd.js +0 -2
- package/web/chunk-sc90h9bd.js.br +0 -0
- package/web/chunk-sc90h9bd.js.gz +0 -0
- package/web/chunk-szwh742y.js +0 -2
- package/web/chunk-szwh742y.js.br +0 -0
- package/web/chunk-szwh742y.js.gz +0 -0
- package/web/chunk-t44qa4yt.js +0 -200
- package/web/chunk-t44qa4yt.js.br +0 -0
- package/web/chunk-t44qa4yt.js.gz +0 -0
- package/web/chunk-t8b8cdak.js +0 -2
- package/web/chunk-t8b8cdak.js.br +0 -0
- package/web/chunk-t8b8cdak.js.gz +0 -0
- package/web/chunk-t9cgbcf2.js +0 -1
- package/web/chunk-t9cgbcf2.js.br +0 -0
- package/web/chunk-t9cgbcf2.js.gz +0 -0
- package/web/chunk-tk8kf0bf.js +0 -2
- package/web/chunk-tk8kf0bf.js.br +0 -0
- package/web/chunk-tk8kf0bf.js.gz +0 -0
- package/web/chunk-tntwwpyh.js +0 -2
- package/web/chunk-tntwwpyh.js.br +0 -0
- package/web/chunk-tntwwpyh.js.gz +0 -0
- package/web/chunk-tt3v857c.js +0 -106
- package/web/chunk-tt3v857c.js.br +0 -0
- package/web/chunk-tt3v857c.js.gz +0 -0
- package/web/chunk-vayamfxv.js +0 -1
- package/web/chunk-vayamfxv.js.br +0 -0
- package/web/chunk-vayamfxv.js.gz +0 -0
- package/web/chunk-vjnmqaam.js +0 -2
- package/web/chunk-vjnmqaam.js.br +0 -0
- package/web/chunk-vjnmqaam.js.gz +0 -0
- package/web/chunk-vndrjeyr.js +0 -2
- package/web/chunk-vndrjeyr.js.br +0 -0
- package/web/chunk-vndrjeyr.js.gz +0 -0
- package/web/chunk-vp5qf59s.js +0 -1
- package/web/chunk-vp5qf59s.js.br +0 -0
- package/web/chunk-vp5qf59s.js.gz +0 -0
- package/web/chunk-wdd9pasx.js +0 -1
- package/web/chunk-wdd9pasx.js.br +0 -0
- package/web/chunk-wdd9pasx.js.gz +0 -0
- package/web/chunk-wrax5wt5.js +0 -292
- package/web/chunk-wrax5wt5.js.br +0 -0
- package/web/chunk-wrax5wt5.js.gz +0 -0
- package/web/chunk-yarejzzs.js +0 -142
- package/web/chunk-yarejzzs.js.br +0 -0
- package/web/chunk-yarejzzs.js.gz +0 -0
- package/web/chunk-yg6ys554.js +0 -1
- package/web/chunk-yg6ys554.js.br +0 -0
- package/web/chunk-yg6ys554.js.gz +0 -0
- package/web/chunk-yq6xkb5w.js +0 -370
- package/web/chunk-yq6xkb5w.js.br +0 -0
- package/web/chunk-yq6xkb5w.js.gz +0 -0
- package/web/chunk-yw98mr7e.js +0 -2
- package/web/chunk-yw98mr7e.js.br +0 -0
- package/web/chunk-yw98mr7e.js.gz +0 -0
- package/web/chunk-z07kf12w.js +0 -78
- package/web/chunk-z07kf12w.js.br +0 -0
- package/web/chunk-z07kf12w.js.gz +0 -0
- package/web/chunk-z5sk390b.js +0 -2
- package/web/chunk-z5sk390b.js.br +0 -0
- package/web/chunk-z5sk390b.js.gz +0 -0
- package/web/chunk-zh2szkjy.js +0 -140
- package/web/chunk-zh2szkjy.js.br +0 -0
- package/web/chunk-zh2szkjy.js.gz +0 -0
- package/web/chunk-zrmm67mx.js +0 -34
- package/web/chunk-zrmm67mx.js.br +0 -0
- package/web/chunk-zrmm67mx.js.gz +0 -0
- package/web/chunk-zyfr25n1.js +0 -98
- package/web/chunk-zyfr25n1.js.br +0 -0
- package/web/chunk-zyfr25n1.js.gz +0 -0
- package/web/chunk-zykkmwba.js +0 -2
- package/web/chunk-zykkmwba.js.br +0 -0
- package/web/chunk-zykkmwba.js.gz +0 -0
- package/web/chunk-zzs4h31m.js +0 -2
- package/web/chunk-zzs4h31m.js.br +0 -0
- package/web/chunk-zzs4h31m.js.gz +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{W}from"./chunk-0pztrs5x.js";import{_}from"./chunk-3ee7dyh4.js";import{a}from"./chunk-drjajr57.js";var N=a(W()),S=a(_()),Nn="AWS_ACCESS_KEY_ID",Un="AWS_SECRET_ACCESS_KEY",C="AWS_SESSION_TOKEN",A="AWS_CREDENTIAL_EXPIRATION",p="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",Go=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[Nn],E=process.env[Un],r=process.env[C],n=process.env[A],s=process.env[p],t=process.env[I];if(o&&E){let c={accessKeyId:o,secretAccessKey:E,...r&&{sessionToken:r},...n&&{expiration:new Date(n)},...s&&{credentialScope:s},...t&&{accountId:t}};return N.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new S.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{Nn,Un,Go};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
class n{incoming=[];outgoing=[];get length(){return this.incoming.length+this.outgoing.length}enqueue(e){this.incoming.push(e)}dequeue(){if(this.outgoing.length===0)while(this.incoming.length>0)this.outgoing.push(this.incoming.pop());return this.outgoing.pop()}}class _i{queue=new n;waiting=new n;done=!1;finalResultPromise;resolveFinalResult;isComplete;extractResult;constructor(e,t){this.isComplete=e,this.extractResult=t,this.finalResultPromise=new Promise((i)=>{this.resolveFinalResult=i})}push(e){if(this.done)return;if(this.isComplete(e))this.done=!0,this.resolveFinalResult(this.extractResult(e));let t=this.waiting.dequeue();if(t)t({value:e,done:!1});else this.queue.enqueue(e)}end(e){if(this.done=!0,e!==void 0)this.resolveFinalResult(e);while(this.waiting.length>0)this.waiting.dequeue()({value:void 0,done:!0})}async*[Symbol.asyncIterator](){while(!0)if(this.queue.length>0)yield this.queue.dequeue();else if(this.done)return;else{let e=await new Promise((t)=>this.waiting.enqueue(t));if(e.done)return;yield e.value}}result(){return this.finalResultPromise}}class j extends _i{#t=Date.now();#i=performance.now();constructor(){super((e)=>e.type==="done"||e.type==="error",(e)=>{if(e.type==="done")return e.message;else if(e.type==="error")return e.error;throw Error("Unexpected event type for final result")})}push(e){if(e.type==="done")this.#e(e.message);else if(e.type==="error")this.#e(e.error);super.push(e)}end(e){if(e!==void 0)this.#e(e);super.end(e)}#e(e){if(this.done||e.durationMs!==void 0||e.timestamp<this.#t)return;e.durationMs=Math.max(0,Math.round(performance.now()-this.#i))}}function Ei(){return new j}function gt(e){if(e instanceof Error)return e.message||e.name;if(typeof e==="string")return e;return String(e)}function Fa(e){if(!(e instanceof Error))return{name:"ThrownValue",message:gt(e)};let t=e.code;return{name:e.name||void 0,message:e.message||e.name,stack:e.stack,code:typeof t==="string"||typeof t==="number"?t:void 0}}function Er(e,t,i){return{type:e,timestamp:Date.now(),error:Fa(t),details:i}}function We(e,t){e.diagnostics=[...e.diagnostics??[],t]}
|
|
3
|
+
export{_i,j,Ei,gt,Fa,Er,We};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{tr,Tr,kr,Pr,Cr,on,sn,rr,an,ln,cn,un,pn,dn}from"./chunk-x4bc1xkx.js";import{ce}from"./chunk-54zpktrq.js";import{Q,ee}from"./chunk-fgpzy3fe.js";import{te}from"./chunk-64h4gw8d.js";import{x}from"./chunk-et2s8y6a.js";import{Te}from"./chunk-eg161ep9.js";import{G,xe,me,Ke,ne,Y}from"./chunk-0z138vnr.js";import{j}from"./chunk-xq7zspqs.js";var w=0,y=(n,a,t)=>{let o=new j,g=Ke(a);return(async()=>{let e={role:"assistant",content:[],api:"google-generative-ai",provider:n.provider,model:n.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{if(t?.fetch&&t.fetch!==globalThis.fetch)throw Error("Custom fetch is not supported by the Google Generative AI adapter");let l=t?.apiKey;if(!l)throw Error(`No API key for provider: ${n.provider}`);let c=T(n,l,t?.headers),h=S(n,g,t),k=await t?.onPayload?.(h,n);if(k!==void 0)h=k;let p=await dn(()=>c.models.generateContentStream(h),t);o.push({type:"start",partial:e});let i=null,f=e.content,u=()=>f.length-1;for await(let s of p){await t?.onProviderStreamEvent?.(s,n),e.responseId||=s.responseId;let m=s.candidates?.[0];if(m?.content?.parts)for(let r of m.content.parts){if(r.text!==void 0){let d=sn(r);if(!i||d&&i.type!=="thinking"||!d&&i.type!=="text"){if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:f.length-1,content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(d)i={type:"thinking",thinking:"",thinkingSignature:void 0},e.content.push(i),o.push({type:"thinking_start",contentIndex:u(),partial:e});else i={type:"text",text:""},e.content.push(i),o.push({type:"text_start",contentIndex:u(),partial:e})}if(i.type==="thinking")i.thinking+=r.text,i.thinkingSignature=rr(i.thinkingSignature,r.thoughtSignature),o.push({type:"thinking_delta",contentIndex:u(),delta:r.text,partial:e});else i.text+=r.text,i.textSignature=rr(i.textSignature,r.thoughtSignature),o.push({type:"text_delta",contentIndex:u(),delta:r.text,partial:e})}if(r.functionCall){if(i){if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});i=null}let d=r.functionCall.id,C={type:"toolCall",id:!d||e.content.some((b)=>b.type==="toolCall"&&b.id===d)?`${r.functionCall.name}_${Date.now()}_${++w}`:d,name:r.functionCall.name||"",arguments:r.functionCall.args??{},...r.thoughtSignature&&{thoughtSignature:r.thoughtSignature}};e.content.push(C),o.push({type:"toolcall_start",contentIndex:u(),partial:e}),o.push({type:"toolcall_delta",contentIndex:u(),delta:JSON.stringify(C.arguments),partial:e}),o.push({type:"toolcall_end",contentIndex:u(),toolCall:C,partial:e})}}if(m?.finishReason){if(e.rawStopReason=m.finishReason,e.stopReason=pn(m.finishReason),e.content.some((r)=>r.type==="toolCall")&&e.stopReason==="stop")e.stopReason="toolUse"}if(s.usageMetadata)e.usage={input:(s.usageMetadata.promptTokenCount||0)-(s.usageMetadata.cachedContentTokenCount||0),output:(s.usageMetadata.candidatesTokenCount||0)+(s.usageMetadata.thoughtsTokenCount||0),cacheRead:s.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,reasoning:s.usageMetadata.thoughtsTokenCount||0,totalTokens:s.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},ne(n,e.usage)}if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(t?.signal?.aborted)throw Error("Request was aborted");if(e.stopReason==="pending")throw Error("Google stream ended without a finish reason");if(e.stopReason==="aborted"||e.stopReason==="error"){let s=e.rawStopReason?`Provider stopped with: ${e.rawStopReason}`:"An unknown error occurred";throw Error(s)}o.push({type:"done",reason:e.stopReason,message:e}),o.end()}catch(l){for(let c of e.content)if("index"in c)delete c.index;e.stopReason=t?.signal?.aborted?"aborted":"error",e.errorMessage=ee(Q(l)),o.push({type:"error",reason:e.stopReason,error:e}),o.end()}})(),o},W=(n,a,t)=>{let o=t?.apiKey;if(!o)throw Error(`No API key for provider: ${n.provider}`);let g={...te(n,a,t,o),toolChoice:t?.toolChoice};if(!t?.reasoning)return y(n,a,{...g,thinking:{enabled:!1}});let e=Y(n,t.reasoning);if(e==="off")return y(n,a,{...g,thinking:{enabled:!1}});let l=Tr(n,e);if(kr(n))return y(n,a,{...g,thinking:{enabled:!0,level:Pr(l)}});return y(n,a,{...g,thinking:{enabled:!0,budgetTokens:I(n,l,t.thinkingBudgets)}})};function T(n,a,t){let o={};if(n.baseUrl)o.baseUrl=n.baseUrl,o.apiVersion="";let g=Te({"User-Agent":ce(),...n.headers,...t});if(g)o.headers=g;return new tr({apiKey:a,httpOptions:Object.keys(o).length>0?o:void 0})}function S(n,a,t={}){let o=an(n,a),g=xe(a.messages),e=me(a.messages),l={};if(t.temperature!==void 0)l.temperature=t.temperature;if(t.maxTokens!==void 0)l.maxOutputTokens=t.maxTokens;let c=cn(n.id),h=e.length>0?un(e,t.toolChoice,c):void 0,k=g?G(g):"",p={...Object.keys(l).length>0&&l,...k&&{systemInstruction:x(k)},...e.length>0&&{tools:ln(e,!1,c)},...h!==void 0&&{toolConfig:{functionCallingConfig:{mode:h}}}};if(t.thinking?.enabled&&n.reasoning){let f={includeThoughts:!0};if(t.thinking.level!==void 0)f.thinkingLevel=Cr(t.thinking.level);else if(t.thinking.budgetTokens!==void 0)f.thinkingBudget=t.thinking.budgetTokens;p.thinkingConfig=f}else if(n.reasoning&&t.thinking&&!t.thinking.enabled)p.thinkingConfig=on(n);if(t.signal){if(t.signal.aborted)throw Error("Request aborted");p.abortSignal=t.signal}return{model:n.id,contents:o,config:p}}function I(n,a,t){if(t?.[a]!==void 0)return t[a];if(n.id.includes("2.5-pro"))return{minimal:128,low:2048,medium:8192,high:32768}[a];if(n.id.includes("2.5-flash-lite"))return{minimal:512,low:2048,medium:8192,high:24576}[a];if(n.id.includes("2.5-flash"))return{minimal:128,low:2048,medium:8192,high:24576}[a];return-1}export{y as stream,W as streamSimple};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{_n}from"./chunk-rh6yvdwz.js";import{be}from"./chunk-4t2t0hcp.js";var t={api:"typesafe-system-one",label:"System One API",url:(e)=>new URL("systemone",`${e.baseUrl.replace(/\/+$/u,"")}/`),payload:(e,r)=>({model:e.id,...r}),output:(e)=>{if(!be(e))throw Error("System One API returned an unexpected response");return e}},a=(e,r,s)=>_n(t,e,r,s);export{a as classify};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function Be(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 mr(e,t="|"){return e.map((r)=>_r(r)).join(t)}function Je(e,t){if(typeof t==="bigint")return t.toString();return t}class tn{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 qe(e){return new tn(e)}function rn(e){return e===null||e===void 0}function lt(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function on(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 ne(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ve(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function me(e){return Ve(e._zod.def)??e._zod.def.shape}function nn(e,t,r){Object.defineProperty(e,t,{get(){let o=r();return ne(this,t,o),o},enumerable:!0,configurable:!0})}function sn(e,t,r){if(t in e)ne(e,t,r);else e[t]=r}function ke(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)nn(e,i,()=>{let c=t._zod.def.shape[i];return o?o(c,i):c});else sn(e,i,o?o(s.value,i):s.value)}}function Wu(e,t){for(let r of Reflect.ownKeys(t)){let o=Object.getOwnPropertyDescriptor(t,r);if(!o.enumerable)continue;if(o.get)nn(e,r,()=>t[r]);else sn(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 cn(e){return JSON.stringify(e)}function an(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var hr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Oe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var un=qe(()=>{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 Pe(e){if(Oe(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(Oe(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function gr(e){if(Pe(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 ln=new Set(["string","number","symbol"]);function xe(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 _r(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function pn(e){return Object.keys(e).filter((t)=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var pt=(()=>({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]}))(),zr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ku(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 ke(i,e,dt(e,t)),ue(e,ee(r,{shape:i,checks:[]}))}function dt(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 Gu(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(dt(e,t)),s={};return ke(s,e,Reflect.ownKeys(me(e)).filter((c)=>!i.has(c))),ue(e,ee(r,{shape:s,checks:[]}))}function Hu(e,t){if(!Pe(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:dn(e,t)}))}function dn(e,t){let r={};return ke(r,e,Reflect.ownKeys(me(e))),Wu(r,t),r}function Xu(e,t){if(!Pe(t))throw Error("Invalid input to safeExtend: expected a plain object");return ue(e,ee(e._zod.def,{shape:dn(e,t)}))}function Yu(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={};ke(r,e,Reflect.ownKeys(me(e))),ke(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 fn(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(dt(t,r)):void 0,a={};return ke(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 Qu(e,t,r){let o=r?new Set(dt(t,r)):void 0,n={};return ke(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 le(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 mn(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 ye(e,t){return t.map((r)=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Fe(e){return typeof e==="string"?e:e?.message}function xr(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 ft(e,t,r){var o;for(let n=t;n<e.length;n++)(o=e[n]).schema??(o.schema=r)}function pe(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:Fe(e.inst?._zod.def?.error?.(e))??Fe(i?.(e))??Fe(t?.error?.(e))??Fe(r.customError?.(e))??Fe(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 el=/[\uD800-\uDBFF]/;function mt(e){let t=e.length;if(!el.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 ht(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function hn(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 Ze(...e){let[t,r,o]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:o};return{...t}}function gn(e,t){for(let r in t){let o=Object.getOwnPropertyDescriptor(t,r);if(o.get)Object.defineProperty(e,r,{...o,enumerable:!1});else tl(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 gt(e,t,r){return he(e,t,r,!1)}function _n(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 tl(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 rl(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var fr,ze=!1,ol={configurable:!0,get(){ze=!0;return}};function S(e,t,r){let o=Object.getPrototypeOf(e._zod);if(t in o&&fr!==e._zod){fr=void 0;return}fr=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,ol);let n=ze;ze=!1;try{let i=r(this);if(ze)delete this[t];else Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i});return ze=ze||n,i}catch(i){throw delete this[t],ze=ze||n,i}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function nl(e,t,r,o){let n=rl(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 il="~constantCatch";function zn(e){let t=()=>e;return t[il]=!0,t}var yn,br=Object.freeze({status:"aborted"}),yr={value:void 0,enumerable:!1},bn="captureStackTrace"in Error?Error:null;function sl(e){let t=bn;if(t){let r=t.stackTraceLimit;if(typeof r==="number"){try{t.stackTraceLimit=0}catch{return bn=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function d(e,t,r,o){let n={};function i(h){this.def=h,this.constr=f,this.traits=new Set}i.prototype=n;let s=r,c=s&&new WeakSet;function a(h,m){if(!h._zod){yr.value=new i(m);try{Object.defineProperty(h,"_zod",yr)}finally{yr.value=void 0}}else if(h._zod.traits.has(e))return;if(h._zod.traits.add(e),t(h,m),c){let v=Object.getPrototypeOf(h),b=h._zod.constr.prototype,k=v;while(k&&k!==b)k=Object.getPrototypeOf(k);let G=k??v;if(!c.has(G))c.add(G),gn(G,s)}let g=f.prototype;for(let v in g){if(!Object.prototype.hasOwnProperty.call(g,v))continue;if(!(v in h))h[v]=g[v].bind(h)}}let l=o?.Parent??Object;class p extends l{}Object.defineProperty(p,"name",{value:e});function f(h){let m=o?.Parent?sl(p):this;a(m,h);let g=m._zod.deferred;if(g){for(let b of g)b();m._zod.deferred=void 0}let v=globalThis.__zod_globalConfig?.postProcessor;if(v)v(m);return m}return Object.defineProperty(f,"init",{value:a}),Object.defineProperty(f,Symbol.hasInstance,{value:(h)=>{if(o?.Parent&&h instanceof o.Parent)return!0;return h?._zod?.traits?.has(e)}}),Object.defineProperty(f,"name",{value:e}),f}class de extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class We extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(yn=globalThis).__zod_globalConfig??(yn.__zod_globalConfig={});var X=globalThis.__zod_globalConfig;function Y(e){if(e)Object.assign(X,e);return X}function cl(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Je,2)),e.message}function al(e){this._zod.message=e}var ul={get:cl,set:al,enumerable:!0,configurable:!0},wr={value:void 0,enumerable:!1},vn=new WeakSet([Object.prototype,Error.prototype]),$n=(e,t)=>{e.name="$ZodError",wr.value=t,Object.defineProperty(e,"issues",wr),wr.value=void 0,Object.defineProperty(e,"message",ul);let r=Object.getPrototypeOf(e);if(!vn.has(r))vn.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})}})},kn=d("$ZodError",$n),Pn=d("$ZodError",$n,void 0,{Parent:Error});function ll(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 $r(e,t=(r)=>r.message){let r={},o=[];for(let n of e.issues)if(n.path.length>0)ll(r,n.path[0],()=>[]).push(t(n));else o.push(t(n));return{formErrors:o,fieldErrors:r}}function Sr(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],f=l===c.length-1;if(p==="_errors"){if(f)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(f)h._errors.push(t(s));a=h,l++}}}};return o(e),r}function _t(e,t){return{callee:t?.callee??e,Err:t?.Err}}var zt=(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)=>pe(l,s,Y())));throw hr(a,i?.callee??t),a}return c.value};return t};var xt=(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)=>pe(l,s,Y())));throw hr(a,i?.callee??t),a}return c.value};return t};var Ke=(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?Zn(e,i.issues,n):{success:!0,data:i.value}},Pi=Ke(Pn);function Zn(e,t,r){let o;return{success:!1,get error(){if(!o)o=new e(t.map((n)=>pe(n,r,Y()))),t=void 0,r=void 0;return o},set error(n){o=n,t=void 0,r=void 0}}}var yt=(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?Zn(e,i.issues,n):{success:!0,data:i.value}};var dl=Symbol.for("zod.compile.invalid"),fl=Symbol.for("zod.compile.fallback"),kr=(e,t,r)=>{let o=e._zod.bag.validator;if(o!==void 0){if(o(t)!==dl)return!0;if(o.definite===!0&&r===void 0)return!1}return ml(e,t,r)};function ml(e,t,r){let o=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,i;if(n)o[fl]=!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 Pr=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},On=(e)=>{let t=zt(e),r=(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return t(o,n,c,_t(r,s))};return r};var Rn=(e)=>{let t=zt(e),r=(o,n,i,s)=>t(o,n,i,_t(r,s));return r};var Cn=(e)=>{let t=xt(e),r=async(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return await t(o,n,c,_t(r,s))};return r};var In=(e)=>{let t=xt(e),r=async(o,n,i,s)=>await t(o,n,i,_t(r,s));return r};var Tn=(e)=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ke(e)(t,r,n)};var An=(e)=>(t,r,o)=>Ke(e)(t,r,o);var En=(e)=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return yt(e)(t,r,n)};var Nn=(e)=>async(t,r,o)=>yt(e)(t,r,o);var jn=/^[cC][0-9a-z]{6,}$/,Ln=/^[0-9a-z]+$/,Un=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Dn=/^[0-9a-vA-V]{20}$/,Mn=/^[A-Za-z0-9]{27}$/,Fn=/^[a-zA-Z0-9_-]{21}$/;function Bn(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Jn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var qn=/^([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})$/,Rr=(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 Vn=/^(?:[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 hl="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Wn(){return new RegExp(hl,"u")}var Kn=/^(?:(?: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])$/,Gn=/^(([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 Hn=/^((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])$/,Xn=/^(([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])$/,Yn=/^$|^(?:[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 ei=/^https?$/,ti=/^\+[1-9]\d{6,14}$/;var ri="(?:(?:\\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 gl(e){return new RegExp(`^${e}$`)}var oi=gl(ri);function Zr(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 ni(e){return new RegExp(`^${Zr(e)}$`)}function ii(e){let t=["Z"];if(e.offset)t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${Zr({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${r}|${Zr({precision:e.precision})}`:r;return new RegExp(`^${ri}T(?:${o})$`)}var si=/^[\s\S]{0,}$/;var Cr=/^-?\d+$/,Ge=/^-?\d+(?:\.\d+)?$/,ci=/^(?:true|false)$/i,ai=/^null$/i;var ui=/^[^A-Z]*$/,li=/^[^a-z]*$/;var J=d("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var Tr=(e)=>{let t=e.value;return!rn(t)&&t.length!==void 0},bt={number:"number",bigint:"bigint",object:"date"},Ar=d("$ZodCheckLessThan",(e,t)=>{J.init(e,t);let r=bt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value<=t.value:o.value<t.value)return;o.issues.push({origin:bt[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})}}),Er=d("$ZodCheckGreaterThan",(e,t)=>{J.init(e,t);let r=bt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value>=t.value:o.value>t.value)return;o.issues.push({origin:bt[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})}}),pi=d("$ZodCheckMultipleOf",(e,t)=>{J.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):on(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})}}),di=d("$ZodCheckNumberFormat",(e,t)=>{J.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=pt[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 fi=d("$ZodCheckMaxLength",(e,t)=>{var r;J.init(e,t),(r=e._zod.def).when??(r.when=Tr),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>t.maximum?mt(n):i)<=t.maximum)return;let c=ht(n);o.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),mi=d("$ZodCheckMinLength",(e,t)=>{var r;J.init(e,t),(r=e._zod.def).when??(r.when=Tr),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>=t.minimum&&i<t.minimum*2?mt(n):i)>=t.minimum)return;let c=ht(n);o.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),hi=d("$ZodCheckLengthEquals",(e,t)=>{var r;J.init(e,t),(r=e._zod.def).when??(r.when=Tr),e._zod.check=(o)=>{let n=o.value,i=n.length,s=typeof n==="string"&&i>=t.length&&i<=t.length*2?mt(n):i;if(s===t.length)return;let c=ht(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})}}),He=d("$ZodCheckStringFormat",(e,t)=>{var r,o;if(J.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=()=>{})}),gi=d("$ZodCheckRegex",(e,t)=>{He.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})}}),_i=d("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ui),He.init(e,t)}),zi=d("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=li),He.init(e,t)}),xi=d("$ZodCheckIncludes",(e,t)=>{J.init(e,t);let r=xe(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})}}),yi=d("$ZodCheckStartsWith",(e,t)=>{J.init(e,t);let r=new RegExp(`^${xe(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})}}),bi=d("$ZodCheckEndsWith",(e,t)=>{J.init(e,t);let r=new RegExp(`.*${xe(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 vi=d("$ZodCheckOverwrite",(e,t)=>{J.init(e,t),e._zod.check=(r)=>{r.value=t.tx(r.value)}});class Nr{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 Si={major:4,minor:6,patch:7};var O=d("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Si;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=le(c),f;for(let h of a){if(h._zod.def.when){if(mn(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(f||g instanceof Promise)f=(f??Promise.resolve()).then(async()=>{if(await g,c.issues.length===m)return;if(ft(c.issues,m,e),!p)p=le(c,m)});else{if(c.issues.length===m)continue;if(ft(c.issues,m,e),!p)p=le(c,m)}}if(f)return f.then(()=>c);return c},s=(c,a,l)=>{if(le(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((f)=>e._zod.parse(f,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((f)=>s(f,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 gt(this,"~standard",Ur(this))},set "~standard"(e){he(this,"~standard",e)}}),Xi=(e,t)=>e.issues.length?{issues:e.issues.map((r)=>pe(r,t,Y()))}:{value:e.value};async function _l(e,t){let r={async:!0};return Xi(await e._zod.run({value:t,issues:[]},r),r)}function Ur(e){return{validate:(t)=>{let r={async:!1};try{let o=e._zod.run({value:t,issues:[]},r);if(!(o instanceof Promise))return Xi(o,r)}catch(o){}return _l(e,t)},vendor:"zod",version:1}}var Pt=d("$ZodString",(e,t)=>{O.init(e,t),e._zod.pattern=t.pattern??si,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}}),I=d("$ZodStringFormat",(e,t)=>{He.init(e,t),Pt.init(e,t)}),Yi=d("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qn),I.init(e,t)}),Qi=d("$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=Rr(o))}else t.pattern??(t.pattern=Rr());I.init(e,t)}),es=d("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Vn),I.init(e,t)}),ts=1,wt=2;function rs(e){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(e);return new URL(e),!0}catch{return!1}}function zl(e,t){if(!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t))return rs(e)||wt;return xl(e,t)}function xl(e,t){if(!t.normalize&&t.protocol?.source===ei.source&&!/^https?:\/\//i.test(e))return ts;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse==="function")return r.parse(e)??wt}return new URL(e)}catch{return wt}}var yl=/[\t\n\r]/g;function ki(e){return e.replace(yl,"")}function bl(e,t){return t.lastIndex=0,t.test(e.hostname)}function vl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var os=d("$ZodURL",(e,t)=>{I.init(e,t),e._zod.check=(r)=>{try{let o=r.value.trim(),n=zl(o,t);if(n===ts){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===wt){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=ki(o);return}if(t.hostname&&!bl(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&&!vl(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:ki(o);return}catch(o){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ns=d("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Wn()),I.init(e,t)}),is=d("$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?Fn:Bn(t.length)),I.init(e,t)}),ss=d("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=jn),I.init(e,t)}),cs=d("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ln),I.init(e,t)}),as=d("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Un),I.init(e,t)}),us=d("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Dn),I.init(e,t)}),ls=d("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Mn),I.init(e,t)}),ps=d("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ii(t)),I.init(e,t)}),ds=d("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=oi),I.init(e,t)}),fs=d("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ni(t)),I.init(e,t)}),ms=d("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Jn),I.init(e,t)}),hs=d("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Kn),I.init(e,t)}),wl=/^[0-9a-fA-F:.]+$/;function gs(e){if(!wl.test(e))return!1;return rs(`http://[${e}]`)}var _s=d("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gn),I.init(e,t),e._zod.check=(r)=>{if(!gs(r.value))r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}});var xs=d("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Hn),I.init(e,t)});function $l(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 gs(r)}var ys=d("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Xn),I.init(e,t),e._zod.check=(r)=>{if(!$l(r.value))r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function bs(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 Dr=/^[0-9a-zA-Z+/]*={0,2}$/,vs=d("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Dr),I.init(e,t),e._zod.check=(r)=>{if(bs(r.value))return;r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),Zt=/^[A-Za-z0-9_-]*$/;function Sl(e){if(!Zt.test(e))return!1;let t=e.replace(/[-_]/g,(o)=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return bs(r)}var ws=d("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Zt),I.init(e,t),e._zod.check=(r)=>{if(Sl(r.value))return;r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Ss=d("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ti),I.init(e,t)});function kl(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 ks=d("$ZodJWT",(e,t)=>{I.init(e,t),e._zod.check=(r)=>{if(kl(r.value,t.alg))return;r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}});var Fr=d("$ZodNumber",(e,t)=>{O.init(e,t),e._zod.pattern=Ge,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}}),Ps=d("$ZodNumberFormat",(e,t)=>{di.init(e,t),Fr.init(e,t)}),Zs=d("$ZodBoolean",(e,t)=>{O.init(e,t),e._zod.pattern=ci,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 Os=d("$ZodNull",(e,t)=>{O.init(e,t),e._zod.pattern=ai,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}}),Rs=d("$ZodAny",(e,t)=>{O.init(e,t),e._zod.parse=(r)=>r}),Cs=d("$ZodUnknown",(e,t)=>{O.init(e,t),e._zod.parse=(r)=>r}),Is=d("$ZodNever",(e,t)=>{O.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function Pl(e,t){let r=xr(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 xr(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,ft(i.issues,p,e),i}}return n(i,s)}}var Zl=(e)=>Array.isArray(e)?e.length:-1;function Zi(e,t,r){if(e.issues.length)t.issues.push(...ye(r,e.issues));t.value[r]=e.value}var Ts=d("$ZodArray",(e,t)=>{O.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((f)=>Zi(f,o,a)));else if(Zi(p,o,a),c&&p.issues.length!==0&&le(p))break}if(s.length)return Promise.all(s).then(()=>o);return o},Pl(e,Zl)});function kt(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(...ye(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 Ol=[];function As(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),o=r.length?r:Ol,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=pn(e.shape);return{...e,allKeys:n,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function Es(e,t,r,o,n,i,s){let c=[],a=n.keySet,l=n.catchall._zod,p=l.def.type,{optin:f,optout:h}=l,m=0;for(let g in t){if(s&&r.issues.length!==m){if(le(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 v=l.run({value:t[g],issues:[]},o);if(v instanceof Promise)e.push(v.then((b)=>kt(b,r,g,t,f,h)));else kt(v,r,g,t,f,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 Rl=d("$ZodObject",(e,t)=>{O.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=qe(()=>As(t));S(e,"propValues",(l)=>{let p=l.def.shape,f={};for(let h in p){let m=p[h]._zod;if(m.values){if(!Object.prototype.hasOwnProperty.call(f,h))ne(f,h,new Set);for(let g of m.values)f[h].add(g);if(m.optin!==void 0)f[h].add(void 0)}}return f});let i=Oe,s=t.catchall,c,a=X.memoizer;a?.attach(e),e._zod.parse=(l,p)=>{c??(c=n.value);let f=l.value;if(!i(f))return l.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),l;l.value=a?a.alloc(e,l,{},p):{};let h=[],m=c.shape,g=p?.abortEarly,v=l.issues.length;for(let b of c.allKeys){if(g&&l.issues.length!==v){if(le(l,v))break;v=l.issues.length}if(b==="__proto__")continue;let k=m[b],G=k._zod.optin,_e=k._zod.optout,Se=k._zod.run({value:f[b],issues:[]},p);if(Se instanceof Promise)h.push(Se.then((N)=>kt(N,l,b,f,G,_e)));else kt(Se,l,b,f,G,_e)}if(!s)return h.length?Promise.all(h).then(()=>l):l;return Es(h,f,l,p,n.value,e,g===!0)}}),Ns=d("$ZodObjectJIT",(e,t)=>{Rl.init(e,t);let r=e._zod.parse,o=qe(()=>As(t)),n=X.memoizer,i=(m)=>{let g=o.value,v=g.symbolKeys,b=new Nr(["payload","ctx"],{shape:m,inst:e,memo:n,syms:v}),k=(N)=>`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`,G=(N,P)=>`
|
|
7
|
+
let ${N}_ab = false;
|
|
8
|
+
for (let i = 0; i < ${N}.issues.length; i++) {
|
|
9
|
+
const iss = ${N}.issues[i];
|
|
10
|
+
iss.path = iss.path ? [${P}, ...iss.path] : [${P}];
|
|
11
|
+
payload.issues.push(iss);
|
|
12
|
+
if (iss.continue !== true) ${N}_ab = true;
|
|
13
|
+
}
|
|
14
|
+
if (${N}_ab && ctx && ctx.abortEarly) {
|
|
15
|
+
payload.value = newResult;
|
|
16
|
+
return payload;
|
|
17
|
+
}`;b.write("const input = payload.value;");let _e=Object.create(null),Se=0;for(let N of g.allKeys)_e[N]=`key_${Se++}`;b.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let N of g.allKeys){if(N==="__proto__")continue;let P=_e[N],oe=typeof N==="symbol"?`syms[${v.indexOf(N)}]`:cn(N),Me=`${oe} in input`,K=m[N],fe=K?._zod?.optin,dr=fe!==void 0,en=K?._zod?.optout==="optional";if(b.write(`const ${P} = ${k(oe)};`),dr&&en){let Vu=fe==="optional"?`${P}_present`:`${P}.value !== undefined || ${P}_present`;b.write(`
|
|
18
|
+
const ${P}_present = ${Me};
|
|
19
|
+
if (!${P}.issues.length || ${P}_present) {
|
|
20
|
+
if (${P}.issues.length) {${G(P,oe)}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (${Vu}) {
|
|
24
|
+
newResult[${oe}] = ${P}.value;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
`)}else if(!dr)b.write(`
|
|
29
|
+
const ${P}_present = ${Me};
|
|
30
|
+
if (${P}.issues.length) {${G(P,oe)}
|
|
31
|
+
}
|
|
32
|
+
if (!${P}_present && !${P}.issues.length) {
|
|
33
|
+
payload.issues.push({
|
|
34
|
+
code: "invalid_type",
|
|
35
|
+
expected: "nonoptional",
|
|
36
|
+
input: undefined,
|
|
37
|
+
path: [${oe}]
|
|
38
|
+
});
|
|
39
|
+
if (ctx && ctx.abortEarly) {
|
|
40
|
+
payload.value = newResult;
|
|
41
|
+
return payload;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (${P}_present) {
|
|
46
|
+
newResult[${oe}] = ${P}.value;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
`);else if(b.write(`
|
|
50
|
+
if (${P}.issues.length) {${G(P,oe)}
|
|
51
|
+
}
|
|
52
|
+
`),fe==="defaulted")b.write(`newResult[${oe}] = ${P}.value;`);else b.write(`
|
|
53
|
+
if (${P}.value !== undefined || ${Me}) {
|
|
54
|
+
newResult[${oe}] = ${P}.value;
|
|
55
|
+
}
|
|
56
|
+
`)}return b.write("payload.value = newResult;"),b.write("return payload;"),b.compile()},s,c=Oe,a=!X.jitless,p=a&&un.value,f=t.catchall,h;e._zod.parse=(m,g)=>{h??(h=o.value);let v=m.value;if(!c(v))return m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m;if(a&&p&&g?.async===!1&&g.jitless!==!0){if(!s)s=i(t.shape);if(m=s(m,g),!f)return m;return Es([],v,m,g,h,e,g?.abortEarly===!0)}return r(m,g)}});function Ti(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)=>!le(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)=>pe(s,o,Y())))}),t}var Br=d("$ZodUnion",(e,t)=>{O.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)=>lt(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 Ti(s,o,e,n);return Promise.all(s).then((c)=>Ti(c,o,e,n))}});function Cl(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 Ls=d("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Br.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))ne(i,l,new Set);for(let f of p)i[l].add(f)}}if(!n.def.unionFallback&&s>1)i[n.def.discriminator]?.delete(void 0);return i}),t.options.forEach((n,i)=>{let s=Ve(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw Error(`Invalid discriminated union option at index "${i}"`)});let o=qe(()=>Cl(t));e._zod.parse=(n,i)=>{let s=n.value;if(!Oe(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}}),Us=d("$ZodIntersection",(e,t)=>{O.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])=>Ai(r,a,l));return Ai(r,i,s)}});function jr(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(Pe(e)&&Pe(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=jr(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=jr(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 Ai(e,t,r){let o=new Map,n,i=new Map,s=(l,p)=>{let f;if(l.code==="unrecognized_keys"&&!l.path?.length)n??(n=l),f=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);f=[h]}else return!1;for(let h of f){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=jr(t.value,r.value);if(!a.valid){if(le(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`)}return e.value=a.data,e}var Ds=d("$ZodRecord",(e,t)=>{O.init(e,t);let r=X.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!Pe(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 f=t.keyType._zod.run({value:p,issues:[]},n);if(f instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(f.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map((g)=>pe(g,n,Y())),input:p,path:[p],inst:e});continue}let h=f.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(...ye(p,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...ye(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"&&Ge.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)=>pe(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(...ye(l,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...ye(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 Ms=d("$ZodEnum",(e,t)=>{O.init(e,t);let r=Be(t.entries),o=new Set(r);e._zod.values=o,S(e,"pattern",(n)=>{let i=Be(n.def.entries).filter((s)=>ln.has(typeof s));return new RegExp(i.length?`^(${i.map((s)=>xe(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}}),Fs=d("$ZodLiteral",(e,t)=>{O.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"?xe(i):i?xe(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 Bs=d("$ZodTransform",(e,t)=>{O.init(e,t),e._zod.optin="optional",X.memoizer?.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new We(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 Ei(e,t){return e.value=t.issues.length?void 0:t.value,e}var Jr=d("$ZodOptional",(e,t)=>{O.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(`^(${lt(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)=>Ei(r,i));return Ei(r,n)}return t.innerType._zod.run(r,o)}}),Js=d("$ZodExactOptional",(e,t)=>{Jr.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)}),Vs=d("$ZodNullable",(e,t)=>{O.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(`^(${lt(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)}}),Ks=d("$ZodDefault",(e,t)=>{O.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 Xs=d("$ZodPrefault",(e,t)=>{O.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)}}),Ys=d("$ZodNonOptional",(e,t)=>{O.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)=>qi(i,e));return qi(n,e)}});function qi(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 Vi(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)=>pe(n,o,Y()))},input:e.value}),e}var Qs=d("$ZodCatch",(e,t)=>{O.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)=>Vi(r,i,t,o));return Vi(r,n,t,o)}});var qr=d("$ZodPipe",(e,t)=>{O.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)=>vt(s,t.in,o));return vt(i,t.in,o)}let n=t.in._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>vt(i,t.out,o));return vt(n,t.out,o)}});function vt(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 ec=d("$ZodPreprocess",(e,t)=>{qr.init(e,t)}),tc=d("$ZodReadonly",(e,t)=>{O.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(Ki);return Ki(n)}});function Ki(e){if(!e.memo)e.value=Object.freeze(e.value);return e}var rc=d("$ZodCustom",(e,t)=>{J.init(e,t),O.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)=>Gi(i,r,o,e));Gi(n,r,o,e);return}});function Gi(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(Ze(n))}}class nc extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var Wr="~memo",oc=[];function ic(e){return e!==null&&typeof e==="object"}function Vr(e){return e.map((t)=>t.path?{...t,path:t.path.slice()}:{...t})}var sc=new WeakMap,Xe=0,It=1,Ye=2;function Tt(e,t,r){let o=sc.get(e);if(o!==void 0)return o?Ye:Xe;if(t.has(e))return Ye;t.add(e);let n=Xe,i=(p)=>{if(n!==Ye&&p?._zod){let f=Tt(p,t,r);if(f>n)n=f}},s=(p,f)=>{let h=Xe;for(let m of Reflect.ownKeys(p)){let g=Object.getOwnPropertyDescriptor(p,m);if(f&&!g.enumerable)continue;let v=g.get?It:g.value?._zod?Tt(g.value,t,r):Xe;if(v>h)h=v}return h},c=(p)=>{if(p>n)n=p},a=e._zod.def,l=a.type;switch(l){case"object":{let p=Ve(a);c(p?s(p,!0):It),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?Tt(p,t,!1):It);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 f=Object.getOwnPropertyDescriptor(a,p);if(!f||f.get)continue;let h=f.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),Il(e,n)}function Il(e,t){if(t!==It)sc.set(e,t===Ye);return t}function Tl(e,t){let r=e.buckets.get(t);if(!r)r=new WeakMap,e.buckets.set(t,r);return r}var Ot,Rt=[],Al={alloc(e,t,r){let o=Ot;if(!o)return r;Ot=void 0;let n={value:r,issues:null};return o.set(t.value,n),Rt.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"&&El(i,n.value))throw new nc;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=Tt(e,new Set,!1);if(k===Xe){if(e._zod.parse=s,e._zod.run===c)e._zod.run=s;return s(a,l)}if(k===Ye||o)r=!0;else o=!0}let p=a.value;if(!ic(p))return s(a,l);let f=l[Wr];if(!f)f={buckets:new WeakMap,backEdges:void 0},l[Wr]=f;let h;if(n===l)h=i;else h=Tl(f,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(...Vr(m.issues))}else a.memo=!0,f.backEdges??(f.backEdges=new WeakSet),f.backEdges.add(m.value);return a}Ot=h;let g=Rt.length,v=s(a,l);Ot=void 0;let b=Rt.length>g?Rt.pop():void 0;if(v instanceof Promise)return v.then((k)=>{if(b)b.issues=k.issues.length?Vr(k.issues):oc;return k});if(b)b.issues=v.issues.length?Vr(v.issues):oc;return v};if(e._zod.parse=c,e._zod.run===s)e._zod.run=c})}};function Kr(){return Al}function El(e,t){let r=e[Wr]?.backEdges;return r!==void 0&&ic(t)&&r.has(t)}var Nl=()=>{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=hn(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 ${_r(i.values[0])}`;return`Invalid option: expected one of ${mr(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":""}: ${mr(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 Gr(){return{localeError:Nl()}}var cc;class ac{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 uc(){return new ac}(cc=globalThis).__zod_globalRegistry??(cc.__zod_globalRegistry=uc());var be=globalThis.__zod_globalRegistry;function Hr(e){if(e.checks)e.checks=[...e.checks];return e}function lc(e,t){return new e(Hr({type:"string",...x(t)}))}function pc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function dc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function mc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function hc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function gc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(t)})}function Xr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(t)})}function _c(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function zc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function xc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function yc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function bc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function vc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function wc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function $c(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function Sc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function kc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function Pc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function Zc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function Oc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function Rc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function Cc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}function At(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function Yr(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function Qr(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function eo(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function Ic(e,t){return new e(Hr({type:"number",checks:[],...x(t)}))}function Tc(e,t){return new e(Hr({type:"number",coerce:!0,checks:[],...x(t)}))}function Ac(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function Ec(e,t){return new e({type:"boolean",...x(t)})}function Nc(e,t){return new e({type:"null",...x(t)})}function jc(e){return new e({type:"any"})}function Lc(e){return new e({type:"unknown"})}function Uc(e,t){return new e({type:"never",...x(t)})}function Et(e,t){return new Ar({check:"less_than",...x(t),value:e,inclusive:!1})}function Qe(e,t){return new Ar({check:"less_than",...x(t),value:e,inclusive:!0})}function Nt(e,t){return new Er({check:"greater_than",...x(t),value:e,inclusive:!1})}function et(e,t){return new Er({check:"greater_than",...x(t),value:e,inclusive:!0})}function jt(e,t){return new pi({check:"multiple_of",...x(t),value:e})}function Lt(e,t){return new fi({check:"max_length",...x(t),maximum:e})}function Ce(e,t){return new mi({check:"min_length",...x(t),minimum:e})}function Ut(e,t){return new hi({check:"length_equals",...x(t),length:e})}function to(e,t){return new gi({check:"string_format",format:"regex",...x(t),pattern:e})}function ro(e){return new _i({check:"string_format",format:"lowercase",...x(e)})}function oo(e){return new zi({check:"string_format",format:"uppercase",...x(e)})}function no(e,t){return new xi({check:"string_format",format:"includes",...x(t),includes:e})}function io(e,t){return new yi({check:"string_format",format:"starts_with",...x(t),prefix:e})}function so(e,t){return new bi({check:"string_format",format:"ends_with",...x(t),suffix:e})}function we(e){return new vi({check:"overwrite",tx:e})}function _o(e){return we((t)=>t.normalize(e))}function zo(){return we((e)=>e.trim())}function xo(){return we((e)=>e.toLowerCase())}function vo(){return we((e)=>e.toUpperCase())}function wo(){return we((e)=>an(e))}function Dc(e,t,r){return new e({type:"array",element:t,...x(r)})}function Mc(e,t,r){let o=x(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Fc(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Bc(e,t){let r=jl((o)=>(o.addIssue=(n)=>{if(typeof n==="string")o.issues.push(Ze(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(Ze(i))}},e(o.value,o)),t);return r}function jl(e,t){let r=new J({check:"custom",...x(t)});return r._zod.check=e,r}function tt(e,...t){for(let r of t)for(let o of Reflect.ownKeys(r))if(Object.prototype.propertyIsEnumerable.call(r,o))ne(e,o,r[o]);return e}function So(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??be,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 f=e._zod.parent;if(f){if(!s.ref)s.ref=f;D(f,t,p),t.seen.get(f).isParent=!0}}let a=t.metadataRegistry.get(e);if(a)tt(s.schema,a);if(t.io==="input"&&H(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 Jc(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ko(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 f=e.external.registry.get(s[0])?.id,h=e.external.uri??((g)=>g);if(f)return{ref:h(f)};let m=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=m,{defId:m,ref:`${h("__shared")}#/${c}/${Jc(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+Jc(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 f in p)delete p[f];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 Wc(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;Wc(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 Kc=new Set(["type","properties","required","additionalProperties"]),qc=["oneOf","anyOf"];function Vc(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 $o(e){let t=[];for(let i of e){if(typeof i!=="object"||i.type!=="object")return null;for(let s in i)if(!Kc.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]??Vc(l);if(p===null||p===void 0)continue;if(!c.some((f)=>JSON.stringify(f)===JSON.stringify(p)))c.push(p)}let a=c.length===1?c[0]:$o(c)??{allOf:c};ne(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=Vc(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 Ll(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of Kc)if(n in e)return;let r=t.filter((n)=>qc.some((i)=>Array.isArray(n[i]))),o=null;if(!r.length)o=$o(t);else{let n=r[0],i=qc.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)=>$o([...s,a]));if(c.some((a)=>!a))return;o={[i]:c}}if(!o)return;delete e.allOf,tt(e,o)}function Po(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},f=a.ref;if(a.ref=null,f){o(f);let m=e.seen.get(f),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 tt(l,g);if(tt(l,p),c._zod.parent===f)for(let b in l){if(b==="$ref"||b==="allOf")continue;if(!(b in p))delete l[b]}if(g.$ref&&m.def)for(let b in l){if(b==="$ref"||b==="allOf")continue;if(b in m.def&&JSON.stringify(l[b])===JSON.stringify(m.def[b]))delete l[b]}}let h=c._zod.parent;if(h&&h!==f){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())Wc(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 f=c.get(p);if(f)f.push(l);else c.set(p,[l])}for(let a of e.intersections)for(let l of c.get(a)??[])Ll(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)}tt(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;ne(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:rt(t,"input",e.processors),output:rt(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch(c){throw Error("Error converting schema to JSON.")}}function H(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 H(o.element,r);if(o.type==="set")return H(o.valueType,r);if(o.type==="lazy")return H(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 H(o.innerType,r);if(o.type==="intersection")return H(o.left,r)||H(o.right,r);if(o.type==="record"||o.type==="map")return H(o.keyType,r)||H(o.valueType,r);if(o.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return H(o.in,r)||H(o.out,r)}if(o.type==="object"){for(let n in o.shape)if(H(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(H(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(H(n,r))return!0;if(o.rest&&H(o.rest,r))return!0;return!1}return!1}var Gc=(e,t={})=>(r)=>{let o=So({...r,processors:t});return D(e,o),ko(o,e),Po(o,e)},rt=(e,t,r={})=>(o)=>{let{libraryOptions:n,target:i}=o??{},s=So({...n??{},target:i,io:t,processors:r});return D(e,s),ko(s,e),Po(s,e)};var Ie=(e,t,r)=>{if(e[t]===void 0||r>e[t])e[t]=r},Te=(e,t,r)=>{if(e[t]===void 0||r<e[t])e[t]=r},Hc=(e,t)=>{Ie(e,"minimum",t),Te(e,"maximum",t)},ea=(e,t)=>{if(e.multipleOf??(e.multipleOf=[]),!e.multipleOf.includes(t))e.multipleOf.push(t)},ta=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},ra=(e,t)=>{e.mime=e.mime?e.mime.filter((r)=>t.includes(r)):[...t]},oa=(e,t)=>{if(e.format=t,t.includes("int"))e.isInt=!0},Xc=(e,t)=>Ie(e,"minimum",t.minimum),Yc=(e,t)=>Te(e,"maximum",t.maximum),Qc=(e)=>(t,r)=>{oa(t,r.format);let[o,n]=e[r.format];Ie(t,"minimum",o),Te(t,"maximum",n)},Ul={greater_than:(e,t)=>Ie(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Te(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>ea(e,t.value),number_format:Qc(pt),bigint_format:Qc(zr),min_length:Xc,max_length:Yc,length_equals:(e,t)=>Hc(e,t.length),min_size:Xc,max_size:Yc,size_equals:(e,t)=>Hc(e,t.size),string_format:(e,t)=>{if(oa(e,t.format),t.pattern)ta(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)=>ra(e,t.mime)};function se(e){let t={},r=e._zod.def,o=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let i of o)Ul[i._zod.def.check]?.(t,i._zod.def);let n=e._zod.bag;if(n.minimum!==void 0)Ie(t,"minimum",n.minimum);if(n.exclusiveMinimum!==void 0)Ie(t,"exclusiveMinimum",n.exclusiveMinimum);if(n.maximum!==void 0)Te(t,"maximum",n.maximum);if(n.exclusiveMaximum!==void 0)Te(t,"exclusiveMaximum",n.exclusiveMaximum);if(n.multipleOf!==void 0)ea(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)ra(t,n.mime);for(let i of n.patterns??[])ta(t,i);return t}var Dl={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ml=new Map([[Dr,Yn],[Zt,Qn]]),na=(e)=>Ml.get(e)??e,ia=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:c,patterns:a,contentEncoding:l,laxFormat:p}=se(e);if(typeof i==="number")n.minLength=i;if(typeof s==="number")n.maxLength=s;if(c){if(n.format=Dl[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 f=[...a].map(na);if(f.length===1)n.pattern=f[0].source;else if(f.length>1)n.allOf=[...f.map((h)=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))]}},sa=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,multipleOf:c,exclusiveMaximum:a,exclusiveMinimum:l,isInt:p}=se(e);n.type=p?"integer":"number";let f=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(f)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[v,...b]=g;if(v!==void 0)n.multipleOf=v;if(b.length)n.allOf=[...n.allOf??[],...b.map((k)=>({multipleOf:k}))]}},ca=(e,t,r,o)=>{r.type="boolean"};var aa=(e,t,r,o)=>{if(t.target==="openapi-3.0")r.type="string",r.nullable=!0,r.enum=[null];else r.type="null"};var ua=(e,t,r,o)=>{r.not={}},la=(e,t,r,o)=>{},pa=(e,t,r,o)=>{};var da=(e,t,r,o)=>{let n=e._zod.def,i=Be(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},fa=(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 ma=(e,t,r,o)=>{ge(e,t,r,o,"Custom types cannot be represented in JSON Schema")};var ha=(e,t,r,o)=>{ge(e,t,r,o,"Transforms cannot be represented in JSON Schema")};var ga=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:s,maximum:c}=se(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 Dt(e){let t=e._zod.def;if(t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform"))return Dt(t.out);if(t.type==="catch")return Dt(t.innerType);return e._zod.optin}var _a=(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)ne(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"?Dt(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"]})},za=(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},xa=(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 Zo(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 v=Zo(e,g,r);return v===g?t:v}for(let g of["anyOf","oneOf"]){let v=t[g];if(!Array.isArray(v))continue;let b=v.map((k)=>Zo(e,k,r));if(b.some((k,G)=>k!==v[G]))t={...t,[g]:b}}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:f,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")?Ge:Cr).source;return m}var Oo=new WeakMap;function Fl(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 Oo.get(e)??[]){let n=e.seen.get(o),i=(n?.def??n?.schema)?.propertyNames;if(!i||i===!0||r.has(i))continue;let s=Zo(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 ya=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,c=se(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 f of c)ne(n.patternProperties,na(f).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=Oo.get(t);if(!p)p=[],Oo.set(t,p),t.deferred.push(()=>Fl(t));p.push(e)}n.additionalProperties=D(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let a=s._zod.values,l=t.io==="input"&&Dt(i.valueType)!==void 0;if(a&&!i.partial&&!l){let p=[...a].filter((f)=>typeof f==="string"||typeof f==="number");if(p.length>0)n.required=p.map(String)}},ba=(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"}]},va=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Ro=Symbol();function wa(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"),Ro}var $a=(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=wa(n.defaultValue,e,t,r,o);if(s!==Ro)r.default=s},Sa=(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=wa(n.defaultValue,e,t,r,o);if(s!==Ro)r._prefault=s},ka=(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},Pa=(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},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,r.readOnly=!0};var Co=(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 Oa=new WeakSet([Object.prototype,Error.prototype]);function Mt(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 Xl=(e,t)=>{kn.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);if(Oa.has(r))return;Oa.add(r),Mt(r,"format",(o)=>(n)=>Sr(o,n)),Mt(r,"flatten",(o)=>(n)=>$r(o,n)),Mt(r,"addIssue",(o)=>(n)=>{o.issues.push(n),o.message=JSON.stringify(o.issues,Je,2)}),Mt(r,"addIssues",(o)=>(n)=>{o.issues.push(...n),o.message=JSON.stringify(o.issues,Je,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})};var te=d("ZodError",Xl,void 0,{Parent:Error});var Ra=zt(te),Ca=xt(te),Ia=Ke(te),Ta=yt(te),Aa=On(te),Ea=Rn(te),Na=Cn(te),ja=In(te),La=Tn(te),Ua=An(te),Da=En(te),Ma=Nn(te);function Ql(){if(!X.localeError)Y(Gr())}function Jt(){if(!X.memoizer)Y({memoizer:Kr()})}var T=d("ZodType",(e,t)=>(Ql(),O.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(Dp(e,t))},superRefine(e,t){return this.check(Mp(e,t))},overwrite(e){return this.check(we(e))},optional(){return L(this)},exactOptional(){return Zp(this)},nullable(){return Ja(this)},nullish(){return L(Ja(this))},nonoptional(e){return Ap(this,e)},array(){return _(this)},or(e){return E([this,e])},and(e){return Vt(this,e)},transform(e){return qa(this,nu(e))},default(e){return Cp(this,e)},prefault(e){return Tp(this,e)},catch(e){return Np(this,e)},pipe(e){return qa(this,e)},readonly(){return Up(this)},describe(e){let t=this.clone();return be.add(t,{description:e}),t},meta(...e){if(e.length===0)return be.get(this);let t=this.clone();return be.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 gt(this,"~standard",{...Ur(this),jsonSchema:{input:rt(this,"input"),output:rt(this,"output")}})},set "~standard"(e){he(this,"~standard",e)},parse:function e(t,r){return Ra(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await Ca(this,t,r,{callee:e})},safeParse(e,t){return Ia(this,e,t)},async safeParseAsync(e,t){return Ta(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){he(this,"spa",e)},validate(e,t){return kr(this,e,t)},validateAsync(e,t){return Pr(this,e,t)},encode:function e(t,r){return Aa(this,t,r,{callee:e})},decode:function e(t,r){return Ea(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await Na(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await ja(this,t,r,{callee:e})},safeEncode(e,t){return La(this,e,t)},safeDecode(e,t){return Ua(this,e,t)},async safeEncodeAsync(e,t){return Da(this,e,t)},async safeDecodeAsync(e,t){return Ma(this,e,t)},toJSONSchema(e){return Gc(this,{})(e)},get description(){return be.get(this)?.description},get _def(){return this._zod.def}}),Va=d("_ZodString",(e,t)=>{Pt.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ia(e,r,o,n)},_n({format:(e)=>se(e).format??null,minLength:(e)=>se(e).minimum??null,maxLength:(e)=>se(e).maximum??null},{regex(...e){return this.check(to(...e))},includes(...e){return this.check(no(...e))},startsWith(...e){return this.check(io(...e))},endsWith(...e){return this.check(so(...e))},min(...e){return this.check(Ce(...e))},max(...e){return this.check(Lt(...e))},length(...e){return this.check(Ut(...e))},nonempty(...e){return this.check(Ce(1,...e))},lowercase(e){return this.check(ro(e))},uppercase(e){return this.check(oo(e))},trim(){return this.check(zo())},normalize(...e){return this.check(_o(...e))},toLowerCase(){return this.check(xo())},toUpperCase(){return this.check(vo())},slugify(){return this.check(wo())}})),Wa=d("ZodString",(e,t)=>{Pt.init(e,t),Va.init(e,t)},{email(e){return this.check(pc(ep,e))},url(e){return this.check(Xr(Xa,e))},jwt(e){return this.check(Cc(gp,e))},emoji(e){return this.check(_c(rp,e))},guid(e){return this.check(dc(tp,e))},uuid(e){return this.check(fc(Ft,e))},uuidv4(e){return this.check(mc(Ft,e))},uuidv6(e){return this.check(hc(Ft,e))},uuidv7(e){return this.check(gc(Ft,e))},nanoid(e){return this.check(zc(op,e))},cuid(e){return this.check(xc(np,e))},cuid2(e){return this.check(yc(ip,e))},ulid(e){return this.check(bc(sp,e))},base64(e){return this.check(Zc(fp,e))},base64url(e){return this.check(Oc(mp,e))},xid(e){return this.check(vc(cp,e))},ksuid(e){return this.check(wc(ap,e))},ipv4(e){return this.check($c(up,e))},ipv6(e){return this.check(Sc(lp,e))},cidrv4(e){return this.check(kc(pp,e))},cidrv6(e){return this.check(Pc(dp,e))},e164(e){return this.check(Rc(hp,e))},datetime(e){return this.check(At(To,e))},date(e){return this.check(Yr(Ka,e))},time(e){return this.check(Qr(Ga,e))},duration(e){return this.check(eo(Ha,e))}});function u(e){return lc(Wa,e)}var U=d("ZodStringFormat",(e,t)=>{I.init(e,t),Va.init(e,t)}),To=d("ZodISODateTime",(e,t)=>{ps.init(e,t),U.init(e,t)}),Ka=d("ZodISODate",(e,t)=>{ds.init(e,t),U.init(e,t)}),Ga=d("ZodISOTime",(e,t)=>{fs.init(e,t),U.init(e,t)}),Ha=d("ZodISODuration",(e,t)=>{ms.init(e,t),U.init(e,t)}),ep=d("ZodEmail",(e,t)=>{es.init(e,t),U.init(e,t)});var tp=d("ZodGUID",(e,t)=>{Yi.init(e,t),U.init(e,t)});var Ft=d("ZodUUID",(e,t)=>{Qi.init(e,t),U.init(e,t)});var Xa=d("ZodURL",(e,t)=>{os.init(e,t),U.init(e,t)});function Ya(e){return Xr(Xa,e)}var rp=d("ZodEmoji",(e,t)=>{ns.init(e,t),U.init(e,t)});var op=d("ZodNanoID",(e,t)=>{is.init(e,t),U.init(e,t)});var np=d("ZodCUID",(e,t)=>{ss.init(e,t),U.init(e,t)});var ip=d("ZodCUID2",(e,t)=>{cs.init(e,t),U.init(e,t)});var sp=d("ZodULID",(e,t)=>{as.init(e,t),U.init(e,t)});var cp=d("ZodXID",(e,t)=>{us.init(e,t),U.init(e,t)});var ap=d("ZodKSUID",(e,t)=>{ls.init(e,t),U.init(e,t)});var up=d("ZodIPv4",(e,t)=>{hs.init(e,t),U.init(e,t)});var lp=d("ZodIPv6",(e,t)=>{_s.init(e,t),U.init(e,t)});var pp=d("ZodCIDRv4",(e,t)=>{xs.init(e,t),U.init(e,t)});var dp=d("ZodCIDRv6",(e,t)=>{ys.init(e,t),U.init(e,t)});var fp=d("ZodBase64",(e,t)=>{vs.init(e,t),U.init(e,t)});var mp=d("ZodBase64URL",(e,t)=>{ws.init(e,t),U.init(e,t)});var hp=d("ZodE164",(e,t)=>{Ss.init(e,t),U.init(e,t)});var gp=d("ZodJWT",(e,t)=>{ks.init(e,t),U.init(e,t)});var qt=d("ZodNumber",(e,t)=>{Fr.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sa(e,r,o,n),e.isFinite=!0},_n({minValue:(e)=>{let{minimum:t,exclusiveMinimum:r}=se(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:(e)=>{let{maximum:t,exclusiveMaximum:r}=se(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:(e)=>{let{isInt:t,multipleOf:r}=se(e);return!!t||!!r?.some(Number.isSafeInteger)},format:(e)=>se(e).format??null},{gt(e,t){return this.check(Nt(e,t))},gte(e,t){return this.check(et(e,t))},min(e,t){return this.check(et(e,t))},lt(e,t){return this.check(Et(e,t))},lte(e,t){return this.check(Qe(e,t))},max(e,t){return this.check(Qe(e,t))},int(e){return this.check(Fa(e))},safe(e){return this.check(Fa(e))},positive(e){return this.check(Nt(0,e))},nonnegative(e){return this.check(et(0,e))},negative(e){return this.check(Et(0,e))},nonpositive(e){return this.check(Qe(0,e))},multipleOf(e,t){return this.check(jt(e,t))},step(e,t){return this.check(jt(e,t))},finite(){return this}}));function w(e){return Ic(qt,e)}var _p=d("ZodNumberFormat",(e,t)=>{Ps.init(e,t),qt.init(e,t)});function Fa(e){return Ac(_p,e)}var Qa=d("ZodBoolean",(e,t)=>{Zs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ca(e,r,o,n)});function Z(e){return Ec(Qa,e)}var zp=d("ZodNull",(e,t)=>{Os.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>aa(e,r,o,n)});function eu(e){return Nc(zp,e)}var xp=d("ZodAny",(e,t)=>{Rs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>la(e,r,o,n)});function tu(){return jc(xp)}var yp=d("ZodUnknown",(e,t)=>{Cs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pa(e,r,o,n)});function j(){return Lc(yp)}var bp=d("ZodNever",(e,t)=>{Is.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ua(e,r,o,n)});function vp(e){return Uc(bp,e)}var wp=d("ZodArray",(e,t)=>{Jt(),Ts.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ga(e,r,o,n),e.element=t.element},{min(e,t){return this.check(Ce(e,t))},nonempty(e){return this.check(Ce(1,e))},max(e,t){return this.check(Lt(e,t))},length(e,t){return this.check(Ut(e,t))},unwrap(){return this.element}});function _(e,t){return Dc(wp,e,t)}var ru=d("ZodObject",(e,t)=>{Jt(),Ns.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_a(e,r,o,n),nl(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:j()}))},loose(){return this.clone(ee(this._zod.def,{catchall:j()}))},strict(){return this.clone(ee(this._zod.def,{catchall:vp()}))},strip(){return this.clone(ee(this._zod.def,{catchall:void 0}))},extend(e){return Hu(this,e)},safeExtend(e){return Xu(this,e)},merge(e){return Yu(this,e)},pick(e){return Ku(this,e)},omit(e){return Gu(this,e)},partial(...e){return fn(iu,this,e[0])},exactPartial(...e){return fn(su,this,e[0],"exactPartial")},required(...e){return Qu(cu,this,e[0])}});function z(e,t){let r={type:"object",shape:e??{},...x(t)};return new ru(r)}function F(e,t){return new ru({type:"object",shape:e,catchall:j(),...x(t)})}var ou=d("ZodUnion",(e,t)=>{Br.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>za(e,r,o,n),e.options=t.options});function E(e,t){return new ou({type:"union",options:e,...x(t)})}var $p=d("ZodDiscriminatedUnion",(e,t)=>{ou.init(e,t),Ls.init(e,t)});function Ao(e,t,r){return new $p({type:"union",options:t,discriminator:e,...x(r)})}var Sp=d("ZodIntersection",(e,t)=>{Us.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xa(e,r,o,n)});function Vt(e,t){return new Sp({type:"intersection",left:e,right:t})}var Ba=d("ZodRecord",(e,t)=>{Jt(),Ds.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ya(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function C(e,t,r){if(!t||!t._zod)return new Ba({type:"record",keyType:u(),valueType:e,...x(t)});return new Ba({type:"record",keyType:e,valueType:t,...x(r)})}var Io=d("ZodEnum",(e,t)=>{Ms.init(e,t),T.init(e,t),e._zod.processJSONSchema=(o,n,i)=>da(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 Io({...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 Io({...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 Io({type:"enum",entries:r,...x(t)})}var kp=d("ZodLiteral",(e,t)=>{Fs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fa(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 kp({type:"literal",values:Array.isArray(e)?e:[e],...x(t)})}var Pp=d("ZodTransform",(e,t)=>{Jt(),Bs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ha(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new We(e.constructor.name);r.addIssue=(i)=>{if(typeof i==="string")r.issues.push(Ze(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(Ze(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 nu(e){return new Pp({type:"transform",transform:e})}var iu=d("ZodOptional",(e,t)=>{Jr.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Co(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function L(e){return new iu({type:"optional",innerType:e})}var su=d("ZodExactOptional",(e,t)=>{Js.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Co(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Zp(e){return new su({type:"optional",innerType:e})}var Op=d("ZodNullable",(e,t)=>{Vs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ba(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ja(e){return new Op({type:"nullable",innerType:e})}var Rp=d("ZodDefault",(e,t)=>{Ks.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$a(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Cp(e,t){return new Rp({type:"default",innerType:e,get defaultValue(){return typeof t==="function"?t():gr(t)}})}var Ip=d("ZodPrefault",(e,t)=>{Xs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sa(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Tp(e,t){return new Ip({type:"prefault",innerType:e,get defaultValue(){return typeof t==="function"?t():gr(t)}})}var cu=d("ZodNonOptional",(e,t)=>{Ys.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>va(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ap(e,t){return new cu({type:"nonoptional",innerType:e,...x(t)})}var Ep=d("ZodCatch",(e,t)=>{Qs.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ka(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Np(e,t){return new Ep({type:"catch",innerType:e,catchValue:typeof t==="function"?t:zn(t)})}var au=d("ZodPipe",(e,t)=>{qr.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pa(e,r,o,n),e.in=t.in,e.out=t.out});function qa(e,t){return new au({type:"pipe",in:e,out:t})}var jp=d("ZodPreprocess",(e,t)=>{au.init(e,t),ec.init(e,t)}),Lp=d("ZodReadonly",(e,t)=>{tc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Za(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Up(e){return new Lp({type:"readonly",innerType:e})}var uu=d("ZodCustom",(e,t)=>{rc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ma(e,r,o,n)});function lu(e,t){return Mc(uu,e??(()=>!0),t)}function Dp(e,t={}){return Fc(uu,e,t)}function Mp(e,t){return Bc(e,t)}function Eo(e,t){return new jp({type:"pipe",in:nu(e),out:t})}var du={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 pu;(function(e){})(pu||(pu={}));function Bp(e){return At(To,e)}function Jp(e){return Tc(qt,e)}var Ir="2025-11-25";var $s=[Ir,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Bt="io.modelcontextprotocol/related-task",Kt="2.0",B=lu((e)=>e!==null&&(typeof e==="object"||typeof e==="function")),hu=E([u(),w().int()]),gu=u(),Tg=F({ttl:w().optional(),pollInterval:w().optional()}),Vp=z({ttl:w().optional()}),Wp=z({taskId:u()}),No=F({progressToken:hu.optional(),[Bt]:Wp.optional()}),re=z({_meta:No.optional()}),ot=re.extend({task:Vp.optional()}),js=(e)=>ot.safeParse(e).success,q=z({method:u(),params:re.loose().optional()}),ce=z({_meta:No.optional()}),ae=z({method:u(),params:ce.loose().optional()}),V=F({_meta:No.optional()}),Gt=E([u(),w().int()]),_u=z({jsonrpc:y(Kt),id:Gt,...q.shape}).strict(),wn=(e)=>_u.safeParse(e).success,zu=z({jsonrpc:y(Kt),...ae.shape}).strict(),Ws=(e)=>zu.safeParse(e).success,jo=z({jsonrpc:y(Kt),id:Gt,result:V}).strict(),nr=(e)=>jo.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 Lo=z({jsonrpc:y(Kt),id:Gt.optional(),error:z({code:w().int(),message:u(),data:j().optional()})}).strict();var Hs=(e)=>Lo.safeParse(e).success;var $t=E([_u,zu,jo,Lo]),Ag=E([jo,Lo]),or=V.strict(),Kp=ce.extend({requestId:Gt.optional(),reason:u().optional()}),ao=ae.extend({method:y("notifications/cancelled"),params:Kp}),Gp=z({src:u(),mimeType:u().optional(),sizes:_(u()).optional(),theme:Q(["light","dark"]).optional()}),it=z({icons:_(Gp).optional()}),Ee=z({name:u(),title:u().optional()}),xu=Ee.extend({...Ee.shape,...it.shape,version:u(),websiteUrl:u().optional(),description:u().optional()}),Hp=Vt(z({applyDefaults:Z().optional()}),C(u(),j())),Xp=Eo((e)=>{if(e&&typeof e==="object"&&!Array.isArray(e)){if(Object.keys(e).length===0)return{form:{}}}return e},Vt(z({form:Hp.optional(),url:B.optional()}),C(u(),j()).optional())),Yp=F({list:B.optional(),cancel:B.optional(),requests:F({sampling:F({createMessage:B.optional()}).optional(),elicitation:F({create:B.optional()}).optional()}).optional()}),Qp=F({list:B.optional(),cancel:B.optional(),requests:F({tools:F({call:B.optional()}).optional()}).optional()}),ed=z({experimental:C(u(),B).optional(),sampling:z({context:B.optional(),tools:B.optional()}).optional(),elicitation:Xp.optional(),roots:z({listChanged:Z().optional()}).optional(),tasks:Yp.optional(),extensions:C(u(),B).optional()}),td=re.extend({protocolVersion:u(),capabilities:ed,clientInfo:xu}),rd=q.extend({method:y("initialize"),params:td});var od=z({experimental:C(u(),B).optional(),logging:B.optional(),completions:B.optional(),prompts:z({listChanged:Z().optional()}).optional(),resources:z({subscribe:Z().optional(),listChanged:Z().optional()}).optional(),tools:z({listChanged:Z().optional()}).optional(),tasks:Qp.optional(),extensions:C(u(),B).optional()}),Ci=V.extend({protocolVersion:u(),capabilities:od,serverInfo:xu,instructions:u().optional()}),yu=ae.extend({method:y("notifications/initialized"),params:ce.optional()}),zs=(e)=>yu.safeParse(e).success,lo=q.extend({method:y("ping"),params:re.optional()}),nd=z({progress:w(),total:L(w()),message:L(u())}),id=z({...ce.shape,...nd.shape,progressToken:hu}),co=ae.extend({method:y("notifications/progress"),params:id}),sd=re.extend({cursor:gu.optional()}),st=q.extend({params:sd.optional()}),ct=V.extend({nextCursor:gu.optional()}),cd=Q(["working","input_required","completed","failed","cancelled"]),at=z({taskId:u(),status:cd,ttl:E([w(),eu()]),createdAt:u(),lastUpdatedAt:u(),pollInterval:L(w()),statusMessage:L(u())}),ir=V.extend({task:at}),ad=ce.merge(at),Sn=ae.extend({method:y("notifications/tasks/status"),params:ad}),uo=q.extend({method:y("tasks/get"),params:re.extend({taskId:u()})}),po=V.merge(at),mo=q.extend({method:y("tasks/result"),params:re.extend({taskId:u()})}),Eg=V.loose(),ho=st.extend({method:y("tasks/list")}),fo=ct.extend({tasks:_(at)}),go=q.extend({method:y("tasks/cancel"),params:re.extend({taskId:u()})}),qs=V.merge(at),bu=z({uri:u(),mimeType:L(u()),_meta:C(u(),j()).optional()}),vu=bu.extend({text:u()}),Uo=u().refine((e)=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),wu=bu.extend({blob:Uo}),ut=Q(["user","assistant"]),Ne=z({audience:_(ut).optional(),priority:w().min(0).max(1).optional(),lastModified:Bp({offset:!0}).optional()}),$u=z({...Ee.shape,...it.shape,uri:u(),description:L(u()),mimeType:L(u()),size:L(w()),annotations:Ne.optional(),_meta:L(F({}))}),ud=z({...Ee.shape,...it.shape,uriTemplate:u(),description:L(u()),mimeType:L(u()),annotations:Ne.optional(),_meta:L(F({}))}),ld=st.extend({method:y("resources/list")}),Ri=ct.extend({resources:_($u)}),pd=st.extend({method:y("resources/templates/list")}),Ii=ct.extend({resourceTemplates:_(ud)}),Do=re.extend({uri:u()}),dd=Do,fd=q.extend({method:y("resources/read"),params:dd}),Mi=V.extend({contents:_(E([vu,wu]))}),Oi=ae.extend({method:y("notifications/resources/list_changed"),params:ce.optional()}),md=Do,hd=q.extend({method:y("resources/subscribe"),params:md}),gd=Do,_d=q.extend({method:y("resources/unsubscribe"),params:gd}),zd=ce.extend({uri:u()}),xd=ae.extend({method:y("notifications/resources/updated"),params:zd}),yd=z({name:u(),description:L(u()),required:L(Z())}),bd=z({...Ee.shape,...it.shape,description:L(u()),arguments:L(_(yd)),_meta:L(F({}))}),vd=st.extend({method:y("prompts/list")}),Li=ct.extend({prompts:_(bd)}),wd=re.extend({name:u(),arguments:C(u(),u()).optional()}),$d=q.extend({method:y("prompts/get"),params:wd}),Mo=z({type:y("text"),text:u(),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Fo=z({type:y("image"),data:Uo,mimeType:u(),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Bo=z({type:y("audio"),data:Uo,mimeType:u(),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Sd=z({type:y("tool_use"),name:u(),id:u(),input:C(u(),j()),_meta:C(u(),j()).optional()}),kd=z({type:y("resource"),resource:E([vu,wu]),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Pd=$u.extend({type:y("resource_link")}),Jo=E([Mo,Fo,Bo,Pd,kd]),Zd=z({role:ut,content:Jo}),Di=V.extend({description:u().optional(),messages:_(Zd)}),Ni=ae.extend({method:y("notifications/prompts/list_changed"),params:ce.optional()}),Od=z({title:u().optional(),readOnlyHint:Z().optional(),destructiveHint:Z().optional(),idempotentHint:Z().optional(),openWorldHint:Z().optional()}),Rd=z({taskSupport:Q(["required","optional","forbidden"]).optional()}),Su=z({...Ee.shape,...it.shape,description:u().optional(),inputSchema:z({type:y("object"),properties:C(u(),B).optional(),required:_(u()).optional()}).catchall(j()),outputSchema:z({type:y("object"),properties:C(u(),B).optional(),required:_(u()).optional()}).catchall(j()).optional(),annotations:Od.optional(),execution:Rd.optional(),_meta:C(u(),j()).optional()}),Cd=st.extend({method:y("tools/list")}),Ui=ct.extend({tools:_(Su)}),Ct=V.extend({content:_(Jo).default([]),structuredContent:C(u(),j()).optional(),isError:Z().optional()}),Ng=Ct.or(V.extend({toolResult:j()})),Id=ot.extend({name:u(),arguments:C(u(),j()).optional()}),Td=q.extend({method:y("tools/call"),params:Id}),xn=ae.extend({method:y("notifications/tools/list_changed"),params:ce.optional()}),Gs=z({autoRefresh:Z().default(!0),debounceMs:w().int().nonnegative().default(300)}),ku=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),Ad=re.extend({level:ku}),Ed=q.extend({method:y("logging/setLevel"),params:Ad}),Nd=ce.extend({level:ku,logger:u().optional(),data:j()}),jd=ae.extend({method:y("notifications/message"),params:Nd}),Ld=z({name:u().optional()}),Ud=z({hints:_(Ld).optional(),costPriority:w().min(0).max(1).optional(),speedPriority:w().min(0).max(1).optional(),intelligencePriority:w().min(0).max(1).optional()}),Dd=z({mode:Q(["auto","required","none"]).optional()}),Md=z({type:y("tool_result"),toolUseId:u().describe("The unique identifier for the corresponding tool call."),content:_(Jo).default([]),structuredContent:z({}).loose().optional(),isError:Z().optional(),_meta:C(u(),j()).optional()}),Fd=Ao("type",[Mo,Fo,Bo]),Wt=Ao("type",[Mo,Fo,Bo,Sd,Md]),Bd=z({role:ut,content:E([Wt,_(Wt)]),_meta:C(u(),j()).optional()}),Jd=ot.extend({messages:_(Bd),modelPreferences:Ud.optional(),systemPrompt:u().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:w().optional(),maxTokens:w().int(),stopSequences:_(u()).optional(),metadata:B.optional(),tools:_(Su).optional(),toolChoice:Dd.optional()}),Fi=q.extend({method:y("sampling/createMessage"),params:Jd}),Bi=V.extend({model:u(),stopReason:L(Q(["endTurn","stopSequence","maxTokens"]).or(u())),role:ut,content:Fd}),$i=V.extend({model:u(),stopReason:L(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(u())),role:ut,content:E([Wt,_(Wt)])}),qd=z({type:y("boolean"),title:u().optional(),description:u().optional(),default:Z().optional()}),Vd=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()}),Wd=z({type:Q(["number","integer"]),title:u().optional(),description:u().optional(),minimum:w().optional(),maximum:w().optional(),default:w().optional()}),Kd=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),default:u().optional()}),Gd=z({type:y("string"),title:u().optional(),description:u().optional(),oneOf:_(z({const:u(),title:u()})),default:u().optional()}),Hd=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),enumNames:_(u()).optional(),default:u().optional()}),Xd=E([Kd,Gd]),Yd=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()}),Qd=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()}),ef=E([Yd,Qd]),tf=E([Hd,Xd,ef]),rf=E([tf,qd,Vd,Wd]),of=ot.extend({mode:y("form").optional(),message:u(),requestedSchema:z({type:y("object"),properties:C(u(),rf),required:_(u()).optional()})}),nf=ot.extend({mode:y("url"),message:u(),elicitationId:u(),url:u().url()}),sf=E([of,nf]),ji=q.extend({method:y("elicitation/create"),params:sf}),cf=ce.extend({elicitationId:u()}),af=ae.extend({method:y("notifications/elicitation/complete"),params:cf}),Wi=V.extend({action:Q(["accept","decline","cancel"]),content:Eo((e)=>e===null?void 0:e,C(u(),E([u(),w(),Z(),_(u())])).optional())}),uf=z({type:y("ref/resource"),uri:u()});var lf=z({type:y("ref/prompt"),name:u()}),pf=re.extend({ref:E([lf,uf]),argument:z({name:u(),value:u()}),context:z({arguments:C(u(),u()).optional()}).optional()}),df=q.extend({method:y("completion/complete"),params:pf});var Hi=V.extend({completion:F({values:_(u()).max(100),total:L(w().int()),hasMore:L(Z())})}),ff=z({uri:u().startsWith("file://"),name:u().optional(),_meta:C(u(),j()).optional()}),mf=q.extend({method:y("roots/list"),params:re.optional()}),hf=V.extend({roots:_(ff)}),gf=ae.extend({method:y("notifications/roots/list_changed"),params:ce.optional()}),jg=E([lo,rd,df,Ed,$d,vd,ld,pd,fd,hd,_d,Td,Cd,uo,mo,ho,go]),Lg=E([ao,co,yu,gf,Sn]),Ug=E([or,Bi,$i,Wi,hf,po,fo,ir]),Dg=E([lo,Fi,ji,mf,uo,mo,ho,go]),Mg=E([ao,co,jd,xd,Oi,xn,Ni,Sn,af]),Fg=E([or,Ci,Hi,Di,Li,Ri,Ii,Mi,Ct,Ui,po,fo,ir]);class A 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 Pu(o.elicitations,t)}return new A(e,t,r)}}class Pu extends A{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(R.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}function Mr(e){if(!e)return{};if(e instanceof Headers)return Object.fromEntries(e.entries());if(Array.isArray(e))return Object.fromEntries(e);return{...e}}function yo(e=fetch,t){if(!t)return e;return async(r,o)=>{let n={...t,...o,headers:o?.headers?{...Mr(t.headers),...Mr(o.headers)}:t.headers};return e(r,n)}}var _f=5,zf=[301,302,303,307,308];function xf(e,t){if(e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port)return!0;return e.hostname===t.hostname&&e.protocol==="http:"&&e.port===""&&t.protocol==="https:"&&t.port===""}function Zu(e,t){let r=zf.includes(e.status)?e.headers.get("location"):null;try{return r?new URL(r,t):void 0}catch{return}}function bo(e,t,r,o,n=0){let i=Zu(o,t),s=o.status===307||o.status===308||(r?.method??"GET").toUpperCase()==="GET";if(!i||n===_f||!s)return;let c=new URL(t);if((i.username||i.password)&&(i.username!==c.username||i.password!==c.password)||!xf(c,i))return;return Promise.resolve(o.body?.cancel()).then(()=>e(i,{...r,redirect:"manual"})).then((l)=>bo(e,i,r,l,n+1)??l)}var Ou=new WeakSet;function Or(e){let t=(r,o)=>(e??fetch)(r,o);return Ou.add(t),t}function St(e=fetch){if(Ou.has(e))return e;return(t,r)=>{if(r?.redirect==="error"||r?.redirect==="manual")return e(t,r);return Promise.resolve(e(t,{...r,redirect:"manual"})).then((o)=>bo(e,t,r,o)??o)}}function Lr(e,t){if(e.type==="opaqueredirect")return"Redirect not followed: this runtime does not expose the redirect target";let r=e.url||t,o=Zu(e,r);if(!o)return;if(o.username=o.password=o.search=o.hash="",o.protocol==="http:"&&new URL(r).protocol==="https:")return o.protocol="https:",`Redirect to plain http not followed; try ${o.href} instead`;return`Redirect to ${o.href} not followed`}var qo;qo=globalThis.crypto?.webcrypto??globalThis.crypto??import("crypto").then((e)=>e.webcrypto);async function yf(e){return(await qo).getRandomValues(new Uint8Array(e))}async function bf(e){let r=Math.pow(2,8)-Math.pow(2,8)%66,o="";while(o.length<e){let n=await yf(e-o.length);for(let i of n)if(i<r)o+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"[i%66]}return o}async function vf(e){return await bf(e)}async function wf(e){let t=await(await qo).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Vo(e){if(!e)e=43;if(e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await vf(e),r=await wf(t);return{code_verifier:t,code_challenge:r}}var W=Ya().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:du.custom,message:"URL must be parseable",fatal:!0}),br}).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"}),Cu=F({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:Z().optional(),authorization_details_types_supported:_(u()).optional(),dpop_signing_alg_values_supported:_(u()).optional(),dpop_bound_access_tokens_required:Z().optional()}),Wo=F({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:Z().optional()}),$f=F({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:Z().optional(),request_parameter_supported:Z().optional(),request_uri_parameter_supported:Z().optional(),require_request_uri_registration:Z().optional(),op_policy_uri:W.optional(),op_tos_uri:W.optional(),client_id_metadata_document_supported:Z().optional()}),Iu=z({...$f.shape,...Wo.pick({code_challenge_methods_supported:!0}).shape}),Tu=z({access_token:u(),id_token:u().optional(),token_type:u(),expires_in:Jp().optional(),scope:u().optional(),refresh_token:u().optional(),issuer:u().optional().catch(void 0)}).strip(),Au=z({error:u(),error_description:u().optional(),error_uri:u().optional()}),Ru=W.optional().or(y("").transform(()=>{return})),Sf=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:Ru,scope:u().optional(),contacts:_(u()).optional(),tos_uri:Ru,policy_uri:u().optional(),jwks_uri:W.optional(),jwks:tu().optional(),software_id:u().optional(),software_version:u().optional(),software_statement:u().optional()}).strip(),kf=z({client_id:u(),client_secret:u().optional(),client_id_issued_at:w().optional(),client_secret_expires_at:w().optional(),issuer:u().optional().catch(void 0)}).strip(),Eu=Sf.merge(kf),Vg=z({error:u(),error_description:u().optional()}).strip(),Wg=z({token:u(),token_type_hint:u().optional()}).strip();function Nu(e){let t=typeof e==="string"?new URL(e):new URL(e.href);return t.hash="",t}function ju({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 Ht extends M{}Ht.errorCode="invalid_request";class je extends M{}je.errorCode="invalid_client";class Le extends M{}Le.errorCode="invalid_grant";class Ue extends M{}Ue.errorCode="unauthorized_client";class Xt extends M{}Xt.errorCode="unsupported_grant_type";class Yt extends M{}Yt.errorCode="invalid_scope";class Qt extends M{}Qt.errorCode="access_denied";class $e extends M{}$e.errorCode="server_error";class er extends M{}er.errorCode="temporarily_unavailable";class tr extends M{}tr.errorCode="unsupported_response_type";class rr extends M{}rr.errorCode="unsupported_token_type";class cr extends M{}cr.errorCode="invalid_token";class ar extends M{}ar.errorCode="method_not_allowed";class ur extends M{}ur.errorCode="too_many_requests";class De extends M{}De.errorCode="invalid_client_metadata";class lr extends M{}lr.errorCode="insufficient_scope";class pr extends M{}pr.errorCode="invalid_target";var Lu={[Ht.errorCode]:Ht,[je.errorCode]:je,[Le.errorCode]:Le,[Ue.errorCode]:Ue,[Xt.errorCode]:Xt,[Yt.errorCode]:Yt,[Qt.errorCode]:Qt,[$e.errorCode]:$e,[er.errorCode]:er,[tr.errorCode]:tr,[rr.errorCode]:rr,[cr.errorCode]:cr,[ar.errorCode]:ar,[ur.errorCode]:ur,[De.errorCode]:De,[lr.errorCode]:lr,[pr.errorCode]:pr};class ve extends Error{constructor(e){super(e??"Unauthorized")}}function Pf(e){return["client_secret_basic","client_secret_post","none"].includes(e)}var Ko="code",Go="S256";function Zf(e,t){let r=e.client_secret!==void 0;if("token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Pf(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 Of(e,t,r,o){let{client_id:n,client_secret:i}=t;switch(e){case"client_secret_basic":Rf(n,i,r);return;case"client_secret_post":Cf(n,i,o);return;case"none":If(n,o);return;default:throw Error(`Unsupported client authentication method: ${e}`)}}function Rf(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 Cf(e,t,r){if(r.set("client_id",e),t)r.set("client_secret",t)}function If(e,t){t.set("client_id",e)}async function Du(e){let t=e instanceof Response?e.status:void 0,r=e instanceof Response?await e.text():e;try{let o=Au.parse(JSON.parse(r)),{error:n,error_description:i,error_uri:s}=o;return new(Lu[n]||$e)(i||"",s)}catch(o){let n=e instanceof Response?Lr(e,e.url):void 0,i=`${t?`HTTP ${t}: `:""}${n??`Invalid OAuth error response: ${o}. Raw body: ${r}`}`;return new $e(i)}}function Tf(e,t){let[r,o]=[e,t];try{[r,o]=[new URL(e).href,new URL(t).href]}catch{}return r===o||r.endsWith("/")&&r.slice(0,-1)===o||o.endsWith("/")&&o.slice(0,-1)===r}function Yo(e,t){if(!e)return;if(typeof e.issuer!=="string")return e.issuer==null?e:{...e,issuer:void 0};return Tf(e.issuer,t)?e:void 0}var Af=Tu.omit({issuer:!0}),Ef=Eu.omit({issuer:!0});function Mu(e,t){return Error(`OAuth client information is bound to authorization server ${e.issuer} and is not presented to ${t}. Clear the stored client information, or correct \`expectedIssuer\`, if the authorization server has moved.`)}async function nt(e,t){try{return await Ho(e,t)}catch(r){if(r instanceof je||r instanceof Ue)return await e.invalidateCredentials?.("all"),await Ho(e,t);else if(r instanceof Le)return await e.invalidateCredentials?.("tokens"),await Ho(e,t);throw r}}async function Ho(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 Bu(a,{fetchFn:i}),!c)try{c=await Fu(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 K=await Ff(t,{resourceMetadataUrl:p,fetchFn:i});a=K.authorizationServerUrl,l=K.authorizationServerMetadata,c=K.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(a),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:l})}let f=String(a),h=await jf(t,e,c),m=h&&c&&!e.validateResourceURL?c.resource:h,g=o||c?.scopes_supported?.join(" ")||e.clientMetadata.scope,v=await Promise.resolve(e.clientInformation()),b=Yo(v,f),k=e.saveClientInformation!==void 0&&!!e.redirectUrl;if(v&&!b&&!k)throw Mu(v,f);let G=b?.issuer==null?b:void 0,_e=async()=>{try{if(G)await e.saveClientInformation?.({...G,issuer:f})}catch{}};if(!b){if(r!==void 0)throw Error("Existing OAuth client information is required when exchanging an authorization code");let K=l?.client_id_metadata_document_supported===!0,fe=e.clientMetadataUrl;if(fe&&!Nf(fe))throw new De(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${fe}`);if(K&&fe)b={client_id:fe,issuer:f},await e.saveClientInformation?.(b);else{if(!e.saveClientInformation)throw Error("OAuth client information must be saveable for dynamic registration");b={...await Wf(a,{metadata:l,clientMetadata:e.clientMetadata,scope:g,fetchFn:i}),issuer:f},await e.saveClientInformation(b)}}let Se=!e.redirectUrl;if(r!==void 0||Se){let K=await Vf(e,a,{metadata:l,resource:m,authorizationCode:r,fetchFn:i});return await _e(),await e.saveTokens({...K,issuer:f}),"AUTHORIZED"}let N=Yo(await e.tokens(),f);if(N?.refresh_token&&N.issuer==null)console.warn("[mcp-sdk] stored OAuth tokens have no 'issuer' property (saved by an earlier version, or by a provider that does not keep it) and are used as-is; make sure your OAuthClientProvider stores what saveTokens() and saveClientInformation() receive unchanged.");if(N?.refresh_token)try{let K=await qf(a,{metadata:l,clientInformation:b,refreshToken:N.refresh_token,resource:m,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await _e(),await e.saveTokens({...K,issuer:f}),"AUTHORIZED"}catch(K){if(!(K instanceof M)||K instanceof $e);else throw K}let P=e.state?await e.state():void 0,{authorizationUrl:oe,codeVerifier:Me}=await Bf(a,{metadata:l,clientInformation:b,state:P,redirectUrl:e.redirectUrl,scope:g,resource:m});return await e.saveCodeVerifier(Me),await e.redirectToAuthorization(oe),"REDIRECT"}function Nf(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function jf(e,t,r){let o=Nu(e);if(t.validateResourceURL)return await t.validateResourceURL(o,r?.resource);if(!r)return;if(!ju({requestedResource:o,configuredResource:r.resource}))throw Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}function sr(e){let t=e.headers.get("WWW-Authenticate");if(!t)return{};let[r,o]=t.split(" ");if(r.toLowerCase()!=="bearer"||!o)return{};let n=Xo(e,"resource_metadata")||void 0,i;if(n)try{i=new URL(n)}catch{}let s=Xo(e,"scope")||void 0,c=Xo(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:c}}function Xo(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 Fu(e,t,r=fetch){let o=await Df(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 Cu.parse(await o.json())}async function Qo(e,t,r=fetch){try{return await St(r)(e,{headers:t})}catch(o){if(o instanceof TypeError)if(t)return Qo(e,void 0,r);else return;throw o}}function Lf(e,t="",r={}){if(t.endsWith("/"))t=t.slice(0,-1);return r.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function Uu(e,t,r=fetch){return await Qo(e,{"MCP-Protocol-Version":t},r)}function Uf(e,t){return!e||!e.ok&&e.status<500&&t!=="/"}async function Df(e,t,r,o){let n=new URL(e),i=o?.protocolVersion??Ir,s;if(o?.metadataUrl)s=new URL(o.metadataUrl);else{let a=Lf(t,n.pathname);s=new URL(a,o?.metadataServerUrl??n),s.search=n.search}let c=await Uu(s,i,r);if(!o?.metadataUrl&&Uf(c,n.pathname)){let a=new URL(`/.well-known/${t}`,n);c=await Uu(a,i,r)}return c}function Mf(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 Bu(e,{fetchFn:t=fetch,protocolVersion:r=Ir}={}){let o={"MCP-Protocol-Version":r,Accept:"application/json"},n=Mf(e);for(let{url:i,type:s}of n){let c=await Qo(i,o,t);if(!c)continue;if(!c.ok){if(await c.body?.cancel(),c.status<500)continue;throw Error(`HTTP ${c.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(s==="oauth")return Wo.parse(await c.json());else return Iu.parse(await c.json())}return}async function Ff(e,t){let r,o;try{if(r=await Fu(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 Bu(o,{fetchFn:t?.fetchFn});return{authorizationServerUrl:o,authorizationServerMetadata:n,resourceMetadata:r}}function Ju(e){return typeof e==="string"?e:e.href}async function Bf(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(Ko))throw Error(`Incompatible auth server: does not support response type ${Ko}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Go))throw Error(`Incompatible auth server: does not support code challenge method ${Go}`)}else c=new URL("/authorize",e);let a=await Vo(),{code_verifier:l,code_challenge:p}=a;if(c.searchParams.set("response_type",Ko),c.searchParams.set("client_id",r.client_id),c.searchParams.set("code_challenge",p),c.searchParams.set("code_challenge_method",Go),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",Ju(s));return{authorizationUrl:c,codeVerifier:l}}function Jf(e,t,r){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(r)})}async function qu(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",Ju(i));if(n)await n(a,r,c,t);else if(o){let p=t?.token_endpoint_auth_methods_supported??[],f=Zf(o,p);Of(f,o,a,r)}let l=await St(s??fetch)(c,{method:"POST",headers:a,body:r});if(!l.ok)throw await Du(l);return Af.parse(await l.json())}async function qf(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 qu(e,{metadata:t,tokenRequestParams:c,clientInformation:r,addClientAuthentication:i,resource:n,fetchFn:s});return{refresh_token:o,...a}}async function Vf(e,t,{metadata:r,resource:o,authorizationCode:n,fetchFn:i}={}){let s=async()=>{let p=await e.clientInformation(),f=Yo(p,String(t));if(p&&!f)throw Mu(p,String(t));return f},c=await s(),a=e.clientMetadata.scope,l;if(e.prepareTokenRequest)l=await e.prepareTokenRequest(a);if(!l){if(!n)throw Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw Error("redirectUrl is required for authorization_code flow");let p=await e.codeVerifier();l=Jf(n,p,e.redirectUrl)}return c??(c=await s()),qu(t,{metadata:r,tokenRequestParams:l,clientInformation:c,addClientAuthentication:e.addClientAuthentication,resource:o,fetchFn:i})}async function Wf(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 St(n??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...o!==void 0?{scope:o}:{}})});if(!s.ok)throw await Du(s);return Ef.parse(await s.json())}
|
|
59
|
+
export{Pi,Ir,$s,Bt,js,wn,Ws,nr,R,Hs,$t,or,ao,Ci,zs,lo,co,ir,Sn,uo,po,mo,ho,fo,go,qs,Ri,Ii,Mi,Oi,Li,Di,Ni,Ui,Ct,xn,Gs,Fi,Bi,$i,ji,Wi,Hi,A,Mr,yo,bo,Or,St,Lr,ve,nt,sr};
|