@qitqode/qitqode-android-arm64 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/{chunk-ztyy3ga3.js → chunk-01e3v1xz.js} +2 -2
- package/bundle/{chunk-p54bzjtv.js → chunk-060wbpz4.js} +1 -1
- package/bundle/{chunk-ypdt9mmr.js → chunk-0am156m5.js} +2 -2
- package/bundle/{chunk-xhtcegk0.js → chunk-0bgssfvq.js} +1 -1
- package/bundle/{chunk-dnnkq5y4.js → chunk-0crgymtr.js} +2 -2
- package/bundle/chunk-0dzpjk7x.js +2 -0
- package/bundle/{chunk-bwbqkfv0.js → chunk-0ffmwhw7.js} +1 -1
- package/bundle/{chunk-h62chdmw.js → chunk-0g0jpw0z.js} +1 -1
- package/bundle/{chunk-mn9end71.js → chunk-0ggvqmnm.js} +1 -1
- package/bundle/{chunk-y7hgevfv.js → chunk-0gsw04hw.js} +2 -2
- package/bundle/{chunk-tkrwcjkr.js → chunk-0qpqd7nz.js} +2 -2
- package/bundle/{chunk-nty5z2cj.js → chunk-0tqmm8b8.js} +1 -1
- package/bundle/chunk-12fwmmcp.js +2 -0
- package/bundle/{chunk-bch1rj72.js → chunk-14d301ze.js} +1 -1
- package/bundle/{chunk-3cqrz7g1.js → chunk-16srrzjr.js} +1 -1
- package/bundle/{chunk-45a4n21f.js → chunk-19pspc1p.js} +1 -1
- package/bundle/chunk-1a95ysv3.js +2 -0
- package/bundle/chunk-1akh8pk2.js +2 -0
- package/bundle/{chunk-5tky3csh.js → chunk-1ay97v74.js} +1 -1
- package/bundle/{chunk-6ar91jvd.js → chunk-1c0yp2gv.js} +1 -1
- package/bundle/{chunk-2md6sx8d.js → chunk-1rgt2vmt.js} +1 -1
- package/bundle/{chunk-3kpse7zy.js → chunk-1vpx7szf.js} +1 -1
- package/bundle/chunk-22qetqnp.js +2 -0
- package/bundle/{chunk-tm34qp8j.js → chunk-2bjfz4fb.js} +1 -1
- package/bundle/{chunk-jxwey5py.js → chunk-2c26kxp4.js} +5 -5
- package/bundle/{chunk-xe69cnsk.js → chunk-2c41dncf.js} +1 -1
- package/bundle/{chunk-m7v4ky0y.js → chunk-2cjfezfr.js} +1 -1
- package/bundle/chunk-2d2a92kj.js +2 -0
- package/bundle/{chunk-m5dm7a1t.js → chunk-2pex3ak9.js} +1 -1
- package/bundle/chunk-2qrvkef8.js +2 -0
- package/bundle/chunk-2tppw8j9.js +2 -0
- package/bundle/chunk-2y87m7pe.js +2 -0
- package/bundle/{chunk-sfw5qddj.js → chunk-33jcxsbe.js} +1 -1
- package/bundle/{chunk-d0x5pbkm.js → chunk-3623jvcm.js} +1 -1
- package/bundle/{chunk-953pqp3w.js → chunk-368jx5dp.js} +1 -1
- package/bundle/chunk-3ft1dn9j.js +2 -0
- package/bundle/{chunk-rn83r0js.js → chunk-3k7016c2.js} +1 -1
- package/bundle/chunk-3rgct4bd.js +11 -0
- package/bundle/{chunk-68v3b6ns.js → chunk-3xdmxm5t.js} +2 -2
- package/bundle/{chunk-dt5aae7t.js → chunk-42q8vj0w.js} +1 -1
- package/bundle/{chunk-yhj01dz9.js → chunk-438faz6b.js} +2 -2
- package/bundle/chunk-4656qm05.js +2 -0
- package/bundle/chunk-46knch5z.js +2 -0
- package/bundle/{chunk-n23d0q00.js → chunk-4bewbvvr.js} +1 -1
- package/bundle/{chunk-pmg53fdd.js → chunk-4byvnx78.js} +1 -1
- package/bundle/chunk-4ftjx7ss.js +2 -0
- package/bundle/{chunk-jqk3v8d6.js → chunk-4fvbexr8.js} +1 -1
- package/bundle/{chunk-k1nh5sd2.js → chunk-4fy08jcj.js} +1 -1
- package/bundle/{chunk-0smnwqk6.js → chunk-4j76bf4j.js} +2 -2
- package/bundle/{chunk-5nrc5rhh.js → chunk-4jpab7ag.js} +1 -1
- package/bundle/{chunk-0j5rzaxx.js → chunk-4ngmjk8j.js} +2 -2
- package/bundle/{chunk-vnrjk2be.js → chunk-4rpgwgx9.js} +1 -1
- package/bundle/chunk-4sgy87h5.js +2 -0
- package/bundle/{chunk-65bmsp2t.js → chunk-4vzjdmts.js} +1 -1
- package/bundle/{chunk-zc0cdvcv.js → chunk-4zhrg3rv.js} +2 -2
- package/bundle/{chunk-5pzs51sp.js → chunk-52rdms56.js} +1 -1
- package/bundle/chunk-54hktc8h.js +2 -0
- package/bundle/{chunk-smznrv7k.js → chunk-55way0em.js} +1 -1
- package/bundle/{chunk-k4gsktts.js → chunk-59kk0mce.js} +1 -1
- package/bundle/chunk-59m55866.js +2 -0
- package/bundle/{chunk-a9a0cwmf.js → chunk-5b3v1x2c.js} +2 -2
- package/bundle/chunk-5js5nw7r.js +2 -0
- package/bundle/{chunk-5gsdnejs.js → chunk-5nhwqg7c.js} +1 -1
- package/bundle/{chunk-13rsd5vv.js → chunk-5r05d901.js} +3 -3
- package/bundle/{chunk-avefgbjg.js → chunk-5zh91zk2.js} +2 -2
- package/bundle/chunk-61jn7908.js +2 -0
- package/bundle/chunk-61txdqz1.js +2 -0
- package/bundle/chunk-668g9wkg.js +2 -0
- package/bundle/chunk-6frhjpmt.js +2 -0
- package/bundle/{chunk-920z7g7j.js → chunk-6gqs1k7m.js} +1 -1
- package/bundle/chunk-6k14c8x1.js +5 -0
- package/bundle/{chunk-g42krp0z.js → chunk-6nxebcf8.js} +1 -1
- package/bundle/chunk-6r1jpj0h.js +2 -0
- package/bundle/{chunk-7bcm7gg1.js → chunk-6r48fje7.js} +1 -1
- package/bundle/{chunk-bqn6bqws.js → chunk-6ychs4wx.js} +1 -1
- package/bundle/{chunk-21rq4592.js → chunk-705xnxbc.js} +2 -2
- package/bundle/chunk-73fn4dqd.js +2 -0
- package/bundle/{chunk-2b3fn9xv.js → chunk-73xryfgn.js} +2 -2
- package/bundle/{chunk-ct693qsd.js → chunk-76h0f86f.js} +1 -1
- package/bundle/{chunk-cq9sd32h.js → chunk-77h8tytk.js} +1 -1
- package/bundle/chunk-78j2c2je.js +2 -0
- package/bundle/chunk-78jt24ht.js +2 -0
- package/bundle/chunk-7j2vpavd.js +2 -0
- package/bundle/chunk-7nkxgm72.js +2 -0
- package/bundle/{chunk-f31yvp20.js → chunk-7p6mxch0.js} +1 -1
- package/bundle/{chunk-mhhtf0v3.js → chunk-7sq5dyv1.js} +1 -1
- package/bundle/{chunk-804vmbcd.js → chunk-7x2q1w0f.js} +1 -1
- package/bundle/{chunk-ac7482n2.js → chunk-7z96r2px.js} +2 -2
- package/bundle/chunk-84pjdenq.js +2 -0
- package/bundle/chunk-859pkecc.js +2 -0
- package/bundle/{chunk-y0527cg0.js → chunk-8hmt3avx.js} +1 -1
- package/bundle/{chunk-7ayb3k5p.js → chunk-8jvfqh3b.js} +1 -1
- package/bundle/{chunk-8wwdrwf2.js → chunk-8p0t8qah.js} +1 -1
- package/bundle/chunk-8p249svd.js +2 -0
- package/bundle/{chunk-z1932c3f.js → chunk-8rfqv5he.js} +1 -1
- package/bundle/chunk-8rqbx4jw.js +2 -0
- package/bundle/chunk-8s3krfsm.js +2 -0
- package/bundle/{chunk-pb30kkbs.js → chunk-93pmbdz7.js} +6 -6
- package/bundle/{chunk-vcygx6hs.js → chunk-95am490c.js} +2 -2
- package/bundle/{chunk-52frd9p0.js → chunk-9a6p1gdn.js} +8 -8
- package/bundle/chunk-9aafddkw.js +3 -0
- package/bundle/{chunk-0xrb12s8.js → chunk-9g9katgy.js} +2 -2
- package/bundle/{chunk-24rkf2gk.js → chunk-9qzwmt76.js} +1 -1
- package/bundle/chunk-9sv53kb4.js +2 -0
- package/bundle/chunk-9wbe0dkx.js +2 -0
- package/bundle/{chunk-bne5w117.js → chunk-9xxnwb33.js} +4 -4
- package/bundle/{chunk-fjbv3jht.js → chunk-a610qd3x.js} +1 -1
- package/bundle/{chunk-5c2438af.js → chunk-a76w2jwm.js} +1 -1
- package/bundle/{chunk-at22twxx.js → chunk-aa2n02qk.js} +2 -2
- package/bundle/{chunk-3akv2xqh.js → chunk-abv0fskc.js} +1 -1
- package/bundle/{chunk-7g66qc1v.js → chunk-acd72413.js} +2 -2
- package/bundle/{chunk-wkg3c643.js → chunk-ae7b11np.js} +2 -2
- package/bundle/{chunk-gy21fw82.js → chunk-agqss9ga.js} +2 -2
- package/bundle/chunk-aj5z8qd5.js +2 -0
- package/bundle/{chunk-fxx0z4yb.js → chunk-ajp53ksp.js} +1 -1
- package/bundle/{chunk-j164q40b.js → chunk-amp6mvbp.js} +2 -2
- package/bundle/{chunk-44723rmb.js → chunk-aqcpk2vg.js} +1 -1
- package/bundle/chunk-b0c2mvc0.js +2 -0
- package/bundle/{chunk-pxv12ctq.js → chunk-b6eypnbj.js} +1 -1
- package/bundle/chunk-b79z8f94.js +2 -0
- package/bundle/chunk-bbwcsdy9.js +2 -0
- package/bundle/chunk-bbzjdbb9.js +2 -0
- package/bundle/{chunk-6evh2ke8.js → chunk-bd505nsd.js} +1 -1
- package/bundle/{chunk-p4027t94.js → chunk-bd84t3fb.js} +1 -1
- package/bundle/chunk-bh4s1yct.js +2 -0
- package/bundle/{chunk-rrv0n73b.js → chunk-bk7f59fn.js} +1 -1
- package/bundle/{chunk-venprxdp.js → chunk-bn71wqqf.js} +1 -1
- package/bundle/{chunk-j9h1sp4g.js → chunk-c3szabpf.js} +2 -2
- package/bundle/{chunk-z6sbjvtv.js → chunk-c6cajbyj.js} +1 -1
- package/bundle/{chunk-p6crzjtf.js → chunk-c8prg3jx.js} +2 -2
- package/bundle/chunk-crqcppwq.js +2 -0
- package/bundle/{chunk-t239rvej.js → chunk-cth373se.js} +2 -2
- package/bundle/chunk-d09zpgj1.js +2 -0
- package/bundle/{chunk-np12r26m.js → chunk-d1tb1jd0.js} +1 -1
- package/bundle/{chunk-mmjgf680.js → chunk-dbpkq7ba.js} +2 -2
- package/bundle/{chunk-36xm6mgm.js → chunk-dd4qnh8s.js} +2 -2
- package/bundle/{chunk-p169ee92.js → chunk-defj5zs6.js} +1 -1
- package/bundle/chunk-dexcptaz.js +3 -0
- package/bundle/chunk-dgqkak21.js +2 -0
- package/bundle/{chunk-jww55nk9.js → chunk-dgva3y5v.js} +1 -1
- package/bundle/chunk-dhgvh7c3.js +2 -0
- package/bundle/{chunk-c55f729m.js → chunk-djqxbnwc.js} +2 -2
- package/bundle/chunk-dmd101ja.js +2 -0
- package/bundle/{chunk-vygkwwjd.js → chunk-drnj1a14.js} +2 -2
- package/bundle/{chunk-g3wvtyw3.js → chunk-dt1wwt7m.js} +1 -1
- package/bundle/{chunk-cz5vta94.js → chunk-dw70wds9.js} +1 -1
- package/bundle/{chunk-xdd3553a.js → chunk-dw7yrk1g.js} +1 -1
- package/bundle/chunk-dwb39jdf.js +2 -0
- package/bundle/chunk-dx4zxex7.js +2 -0
- package/bundle/{chunk-ph8hn1wt.js → chunk-dy2k5rdx.js} +2 -2
- package/bundle/{chunk-wwdpw27v.js → chunk-dz3bec8g.js} +1 -1
- package/bundle/{chunk-t0761rhq.js → chunk-e0zb6sw6.js} +2 -2
- package/bundle/chunk-e2pqvscp.js +2 -0
- package/bundle/{chunk-vsz4s6zt.js → chunk-e4g4mvak.js} +1 -1
- package/bundle/{chunk-fhqfqd5v.js → chunk-eeq0krp7.js} +2 -2
- package/bundle/chunk-efe6kj3d.js +2 -0
- package/bundle/{chunk-qp1n7kwe.js → chunk-egkhynj5.js} +1 -1
- package/bundle/chunk-emac0dss.js +2 -0
- package/bundle/chunk-encfnt6w.js +2 -0
- package/bundle/{chunk-y29ejqg2.js → chunk-etv6c77a.js} +1 -1
- package/bundle/{chunk-32j0q58h.js → chunk-eyr5ymt8.js} +1 -1
- package/bundle/{chunk-r9w0thdk.js → chunk-f2pv705d.js} +1 -1
- package/bundle/{chunk-5w76kdjr.js → chunk-f4mnp6xd.js} +1 -1
- package/bundle/{chunk-xdteq9bd.js → chunk-f84hw65n.js} +1 -1
- package/bundle/chunk-fg2nyz2x.js +2 -0
- package/bundle/chunk-ga6wc979.js +2 -0
- package/bundle/{chunk-nw3e93y8.js → chunk-gbxf6e5d.js} +3 -3
- package/bundle/chunk-gdew7bwm.js +2 -0
- package/bundle/{chunk-w9gzfsy7.js → chunk-gdj7mqrd.js} +2 -2
- package/bundle/chunk-ge19ff9d.js +2 -0
- package/bundle/{chunk-wmezdcdh.js → chunk-ghap1n1m.js} +4 -4
- package/bundle/chunk-gt0q07xq.js +2 -0
- package/bundle/{chunk-7mppvhv9.js → chunk-gwrnxcdn.js} +2 -2
- package/bundle/{chunk-e8p92vz4.js → chunk-gww0skmn.js} +2 -2
- package/bundle/chunk-h4dnjfr2.js +2 -0
- package/bundle/{chunk-has2rz35.js → chunk-h7658zxy.js} +1 -1
- package/bundle/chunk-h8fx619t.js +2 -0
- package/bundle/{chunk-313zqzc1.js → chunk-hfefq104.js} +1 -1
- package/bundle/{chunk-ff548b0j.js → chunk-hhk2sp5n.js} +2 -2
- package/bundle/{chunk-47k5jy1p.js → chunk-hqjc4wgg.js} +2 -2
- package/bundle/{chunk-48r70n4s.js → chunk-hrtze4c5.js} +1 -1
- package/bundle/{chunk-r5zy4za0.js → chunk-hwsqqkrv.js} +2 -2
- package/bundle/{chunk-ehb4hd9c.js → chunk-j6xmgn63.js} +1 -1
- package/bundle/chunk-jnvb3s7f.js +2 -0
- package/bundle/chunk-jrq2xw6e.js +2 -0
- package/bundle/chunk-jwckmhjm.js +2 -0
- package/bundle/{chunk-xqnzmr7a.js → chunk-jxkrhrp0.js} +2 -2
- package/bundle/chunk-jz27ypm5.js +2 -0
- package/bundle/chunk-jzrs878d.js +2 -0
- package/bundle/chunk-jzx700tb.js +2 -0
- package/bundle/chunk-k1x8469r.js +3 -0
- package/bundle/{chunk-0g7acwt1.js → chunk-k3g28tbw.js} +1 -1
- package/bundle/{chunk-wy3a4cab.js → chunk-k6zwfstj.js} +1 -1
- package/bundle/{chunk-0qd3567w.js → chunk-kfj37631.js} +1 -1
- package/bundle/{chunk-khzzmyk2.js → chunk-kmzpeq8k.js} +1 -1
- package/bundle/{chunk-bd21p9zz.js → chunk-kre93a89.js} +2 -2
- package/bundle/{chunk-j8fcfhr2.js → chunk-kry4vcrf.js} +2 -2
- package/bundle/chunk-ktp2b4t4.js +2 -0
- package/bundle/chunk-m483jvn8.js +2 -0
- package/bundle/chunk-makecdh6.js +8 -0
- package/bundle/{chunk-tr6rdr6h.js → chunk-mbbxedsq.js} +2 -2
- package/bundle/chunk-menbcmkq.js +2 -0
- package/bundle/{chunk-hwrrrbqd.js → chunk-mghnkwp8.js} +1 -1
- package/bundle/{chunk-pr7z5dj8.js → chunk-mhxyv9c8.js} +1 -1
- package/bundle/{chunk-k5q9px67.js → chunk-mjrqhbp2.js} +1 -1
- package/bundle/{chunk-9zm6r55d.js → chunk-msh249db.js} +2 -2
- package/bundle/{chunk-bbdp6dj4.js → chunk-n0g4983e.js} +1 -1
- package/bundle/{chunk-dnsh1v42.js → chunk-n4qxj391.js} +2 -2
- package/bundle/{chunk-ptqk1j2r.js → chunk-n5p7cn4w.js} +1 -1
- package/bundle/{chunk-5zkj5xv9.js → chunk-n9twhc5d.js} +2 -2
- package/bundle/{chunk-p5be5ddp.js → chunk-na1wr2qf.js} +1 -1
- package/bundle/{chunk-4agaj51z.js → chunk-nbckdba0.js} +1 -1
- package/bundle/{chunk-ezrqhqkp.js → chunk-nftbj8g9.js} +1 -1
- package/bundle/{chunk-93gdcrbc.js → chunk-nfzpegqx.js} +1 -1
- package/bundle/chunk-np8h66t0.js +2 -0
- package/bundle/{chunk-af81r4v7.js → chunk-npzx3yd5.js} +1 -1
- package/bundle/chunk-nr2j8ytn.js +3 -0
- package/bundle/{chunk-w46g7kdq.js → chunk-nrk29616.js} +2 -2
- package/bundle/{chunk-826r9svy.js → chunk-ns8xnkjb.js} +2 -2
- package/bundle/{chunk-7vmx8bg9.js → chunk-ntpn0w9m.js} +2 -2
- package/bundle/chunk-nwwmns3w.js +2 -0
- package/bundle/{chunk-ksme3gj1.js → chunk-p40z6510.js} +1 -1
- package/bundle/{chunk-xmb8jy13.js → chunk-p847g35y.js} +1 -1
- package/bundle/{chunk-vf492zs6.js → chunk-p8ak162p.js} +1 -1
- package/bundle/chunk-pe5dpzec.js +2 -0
- package/bundle/{chunk-bbng1cea.js → chunk-pf3nqf00.js} +1 -1
- package/bundle/{chunk-9hz56z6a.js → chunk-ppy0jy6j.js} +1 -1
- package/bundle/{chunk-et3804wr.js → chunk-prbxhnza.js} +1 -1
- package/bundle/{chunk-nrat6ncm.js → chunk-ptwex14s.js} +1 -1
- package/bundle/{chunk-qey1efpx.js → chunk-q3pt4p9f.js} +1 -1
- package/bundle/{chunk-eb4y8bjv.js → chunk-q6mcnq9p.js} +1 -1
- package/bundle/{chunk-vp9scf28.js → chunk-q6p92zyn.js} +2 -2
- package/bundle/{chunk-yfzyzsr4.js → chunk-q87fw8dk.js} +2 -2
- package/bundle/chunk-q8f6a074.js +2 -0
- package/bundle/{chunk-5qsr1q4t.js → chunk-qbrj9wzd.js} +1 -1
- package/bundle/{chunk-j0bwa5dk.js → chunk-qdvnscxm.js} +2 -2
- package/bundle/{chunk-d6jhs818.js → chunk-qp3hxqg5.js} +2 -2
- package/bundle/{chunk-jg1ccs3j.js → chunk-qph2c2v7.js} +1 -1
- package/bundle/{chunk-3vvd7j14.js → chunk-qprbef09.js} +1 -1
- package/bundle/chunk-qqaevt32.js +2 -0
- package/bundle/chunk-qzpvz708.js +2 -0
- package/bundle/{chunk-41cq88js.js → chunk-r4kg0z96.js} +2 -2
- package/bundle/{chunk-faee8zgc.js → chunk-r73e8gsp.js} +1 -1
- package/bundle/chunk-reyjr2e0.js +2 -0
- package/bundle/{chunk-dxdggn90.js → chunk-rfzra502.js} +1 -1
- package/bundle/{chunk-tg226j37.js → chunk-rhrcgvb8.js} +1 -1
- package/bundle/{chunk-wyj8cpx5.js → chunk-rk0fnvp5.js} +1 -1
- package/bundle/{chunk-t8c4cs6z.js → chunk-rqedtjz9.js} +1 -1
- package/bundle/{chunk-eg3syjtv.js → chunk-s06t769q.js} +2 -2
- package/bundle/{chunk-cfjjx3sh.js → chunk-skxg3s8z.js} +1 -1
- package/bundle/{chunk-7x6yrtzn.js → chunk-spzd8rev.js} +1 -1
- package/bundle/chunk-t178njgb.js +2 -0
- package/bundle/{chunk-3jf3jhrs.js → chunk-t4b2fm7z.js} +1 -1
- package/bundle/{chunk-55fcmswd.js → chunk-t8sy5sgx.js} +2 -2
- package/bundle/{chunk-s4vx9x1v.js → chunk-t9qyzzsz.js} +1 -1
- package/bundle/{chunk-6scf311w.js → chunk-tc9xbn1t.js} +1 -1
- package/bundle/{chunk-qnvsqnz5.js → chunk-tezrgfc6.js} +2 -2
- package/bundle/chunk-tjpev5t6.js +2 -0
- package/bundle/{chunk-nymf08b4.js → chunk-tkzctbxq.js} +2 -2
- package/bundle/{chunk-t5xxs5kp.js → chunk-ts2k13g0.js} +1 -1
- package/bundle/{chunk-gszvgz76.js → chunk-twd6r7nf.js} +2 -2
- package/bundle/{chunk-qxcyz5hc.js → chunk-twfvrafb.js} +2 -2
- package/bundle/{chunk-70q8qcb2.js → chunk-twvmjsxf.js} +1 -1
- package/bundle/{chunk-ggxzf22k.js → chunk-tz3s8dvy.js} +1 -1
- package/bundle/chunk-tzq7wjgv.js +3 -0
- package/bundle/{chunk-n78f8hfk.js → chunk-v0c3k797.js} +1 -1
- package/bundle/chunk-v1s16wwd.js +2 -0
- package/bundle/{chunk-kj8cmn7z.js → chunk-v3nmnm57.js} +2 -2
- package/bundle/chunk-v6b29nx4.js +2 -0
- package/bundle/chunk-v6rgd1j5.js +2 -0
- package/bundle/chunk-v9dnetq8.js +2 -0
- package/bundle/{chunk-450fef7h.js → chunk-v9w88wpy.js} +2 -2
- package/bundle/{chunk-7hvf9dgx.js → chunk-va2qfh0x.js} +1 -1
- package/bundle/chunk-vd5mpvcc.js +2 -0
- package/bundle/{chunk-w4synhfg.js → chunk-vfb72vdy.js} +1 -1
- package/bundle/{chunk-45k7qm85.js → chunk-vhzx5bxd.js} +1 -1
- package/bundle/{chunk-cmb62jkt.js → chunk-vjn54xj5.js} +2 -2
- package/bundle/{chunk-ybane1en.js → chunk-vp3yf46q.js} +1 -1
- package/bundle/{chunk-jyt2xvha.js → chunk-vzrc2fmt.js} +1 -1
- package/bundle/{chunk-ejqzcdcx.js → chunk-w3zhy5vq.js} +1 -1
- package/bundle/{chunk-v3nqkqhz.js → chunk-w43kmnm9.js} +641 -635
- package/bundle/{chunk-w4brava0.js → chunk-wb1d3mqw.js} +1 -1
- package/bundle/{chunk-6m9jb0s9.js → chunk-wd8hbven.js} +2 -2
- package/bundle/{chunk-vshycswk.js → chunk-wgt1tqw9.js} +1 -1
- package/bundle/{chunk-0428v6mw.js → chunk-whw18cn9.js} +1 -1
- package/bundle/{chunk-pxm4qvqk.js → chunk-wjz42325.js} +2 -2
- package/bundle/{chunk-y67kaj0b.js → chunk-wvb17w0z.js} +1 -1
- package/bundle/chunk-wwct4z7j.js +2 -0
- package/bundle/{chunk-55ykn8nz.js → chunk-x55h5qdc.js} +4 -4
- package/bundle/{chunk-05ck7acg.js → chunk-x80d0zh7.js} +1 -1
- package/bundle/{chunk-mjjaezwq.js → chunk-x9fyt3vx.js} +2 -2
- package/bundle/{chunk-g22e4gw7.js → chunk-xb3sxa6f.js} +1 -1
- package/bundle/{chunk-yz25607t.js → chunk-xcxqt8ag.js} +1 -1
- package/bundle/{chunk-c36p881g.js → chunk-xhh70g8j.js} +3 -3
- package/bundle/chunk-xr9wz961.js +2 -0
- package/bundle/{chunk-0cnwsf8p.js → chunk-y0h3jfkj.js} +1 -1
- package/bundle/{chunk-m7ganre7.js → chunk-y2t5pmqw.js} +1 -1
- package/bundle/{chunk-g3y5xemb.js → chunk-y5q9v80n.js} +1 -1
- package/bundle/{chunk-kdj7xvz7.js → chunk-yd94wz5v.js} +2 -2
- package/bundle/{chunk-rn043d0r.js → chunk-yjqww6ag.js} +2 -2
- package/bundle/{chunk-2drzgtv3.js → chunk-yxttz5z5.js} +2 -2
- package/bundle/{chunk-2nv1scj9.js → chunk-yy7r3t3w.js} +2 -2
- package/bundle/{chunk-5pwv2p3s.js → chunk-yzpc5kj2.js} +1 -1
- package/bundle/{chunk-73r8bjjz.js → chunk-z6kcnpsj.js} +2 -2
- package/bundle/{chunk-nj1ntakd.js → chunk-z744mz4w.js} +2 -2
- package/bundle/{chunk-39z96pc6.js → chunk-z7kswv9r.js} +3 -3
- package/bundle/chunk-zfegnt1e.js +2 -0
- package/bundle/chunk-zg7kesbp.js +2 -0
- package/bundle/{chunk-t9pwz4ws.js → chunk-znmbfx70.js} +1 -1
- package/bundle/{chunk-24ygjbpf.js → chunk-zp5sr5nx.js} +2 -2
- package/bundle/{chunk-ha1w0xzh.js → chunk-zrhw1szj.js} +1 -1
- package/bundle/chunk-zy06fe4r.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-03bp59wq.js +0 -2
- package/bundle/chunk-0ppnq3a4.js +0 -2
- package/bundle/chunk-0te0vcdn.js +0 -2
- package/bundle/chunk-11h06z17.js +0 -2
- package/bundle/chunk-28yv4fqe.js +0 -2
- package/bundle/chunk-34a52hyr.js +0 -2
- package/bundle/chunk-3n3gb3vd.js +0 -2
- package/bundle/chunk-3sq60y9f.js +0 -2
- package/bundle/chunk-49mbnqvc.js +0 -2
- package/bundle/chunk-4fr6kae9.js +0 -2
- package/bundle/chunk-516w1nc4.js +0 -2
- package/bundle/chunk-535nm66j.js +0 -2
- package/bundle/chunk-5kpxpm8e.js +0 -2
- package/bundle/chunk-5nm5s0h2.js +0 -2
- package/bundle/chunk-5ysbwr4x.js +0 -3
- package/bundle/chunk-6gpf2bjs.js +0 -2
- package/bundle/chunk-6sxx56b2.js +0 -2
- package/bundle/chunk-6t48g4x5.js +0 -2
- package/bundle/chunk-7bgzcpdw.js +0 -2
- package/bundle/chunk-7kjvcbwa.js +0 -2
- package/bundle/chunk-89b4k585.js +0 -2
- package/bundle/chunk-8jma2btf.js +0 -2
- package/bundle/chunk-93e0w75z.js +0 -2
- package/bundle/chunk-97gp818s.js +0 -2
- package/bundle/chunk-98b7ecrk.js +0 -2
- package/bundle/chunk-9epf2zbh.js +0 -2
- package/bundle/chunk-acpjrs02.js +0 -2
- package/bundle/chunk-agv04nt7.js +0 -2
- package/bundle/chunk-be7smmar.js +0 -2
- package/bundle/chunk-bryx5cx9.js +0 -2
- package/bundle/chunk-c13rrw41.js +0 -2
- package/bundle/chunk-c2kkv619.js +0 -2
- package/bundle/chunk-c5xj1y5v.js +0 -2
- package/bundle/chunk-ckpm4dvv.js +0 -2
- package/bundle/chunk-ct8twng1.js +0 -2
- package/bundle/chunk-d38y7bvh.js +0 -2
- package/bundle/chunk-d6hxsfm6.js +0 -2
- package/bundle/chunk-descb9jz.js +0 -2
- package/bundle/chunk-dvr2b9r1.js +0 -2
- package/bundle/chunk-ea5fktnn.js +0 -2
- package/bundle/chunk-f0t7rryn.js +0 -3
- package/bundle/chunk-f4mf6tpp.js +0 -2
- package/bundle/chunk-f97k17t8.js +0 -2
- package/bundle/chunk-g4ehhdzp.js +0 -2
- package/bundle/chunk-gd6qpdjw.js +0 -2
- package/bundle/chunk-gehn9fd9.js +0 -2
- package/bundle/chunk-h5pnng66.js +0 -2
- package/bundle/chunk-hgmqz75r.js +0 -2
- package/bundle/chunk-hhax4mxw.js +0 -2
- package/bundle/chunk-jvkzdap1.js +0 -2
- package/bundle/chunk-kf2f3mza.js +0 -2
- package/bundle/chunk-kg8fcv91.js +0 -2
- package/bundle/chunk-kgptyf7n.js +0 -3
- package/bundle/chunk-kjjjrjnb.js +0 -2
- package/bundle/chunk-kn8w69g9.js +0 -8
- package/bundle/chunk-kxwkab31.js +0 -2
- package/bundle/chunk-m5cfmhwh.js +0 -2
- package/bundle/chunk-m7qxxbns.js +0 -2
- package/bundle/chunk-mh19kwzw.js +0 -10
- package/bundle/chunk-mtpzcc14.js +0 -2
- package/bundle/chunk-n8wg5h5p.js +0 -2
- package/bundle/chunk-p6hcj3kv.js +0 -2
- package/bundle/chunk-pexmns0j.js +0 -2
- package/bundle/chunk-pt603np4.js +0 -2
- package/bundle/chunk-qk5bfcv8.js +0 -2
- package/bundle/chunk-qr06byhp.js +0 -2
- package/bundle/chunk-r1xh50b2.js +0 -5
- package/bundle/chunk-r7sq3maz.js +0 -2
- package/bundle/chunk-rmgs9nmj.js +0 -2
- package/bundle/chunk-rrd0fdra.js +0 -2
- package/bundle/chunk-rytavefg.js +0 -2
- package/bundle/chunk-sf5zc4kc.js +0 -2
- package/bundle/chunk-sh9vjnsh.js +0 -2
- package/bundle/chunk-st0c5wwc.js +0 -2
- package/bundle/chunk-teb3k2sf.js +0 -2
- package/bundle/chunk-ts798jvf.js +0 -2
- package/bundle/chunk-tx5aj02v.js +0 -2
- package/bundle/chunk-ty2vg1a5.js +0 -2
- package/bundle/chunk-v1t51rrq.js +0 -2
- package/bundle/chunk-vh9ptqn0.js +0 -2
- package/bundle/chunk-vwh6mv37.js +0 -2
- package/bundle/chunk-w2cb8cry.js +0 -2
- package/bundle/chunk-w72rctxz.js +0 -2
- package/bundle/chunk-wbw9zv3h.js +0 -2
- package/bundle/chunk-x6mw98c2.js +0 -2
- package/bundle/chunk-xy3c8f1h.js +0 -3
- package/bundle/chunk-xynwfaf1.js +0 -3
- package/bundle/chunk-y6p57wgh.js +0 -2
- package/bundle/chunk-y6xs8v17.js +0 -2
- package/bundle/chunk-yv5aehqq.js +0 -2
- package/bundle/chunk-z3xsfpc6.js +0 -2
- package/bundle/chunk-zgcabs1k.js +0 -2
- package/bundle/chunk-zn5pw733.js +0 -2
- package/bundle/chunk-zxwvnmea.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gr as j,hr as M,ir as f,kr as N,nr as H,or as z,pr as A,sr as I,xr as t}from"./chunk-n5p7cn4w.js";import{yr as U}from"./chunk-mhxyv9c8.js";import{Nu as n}from"./chunk-c3szabpf.js";import{Xz as d}from"./chunk-c8prg3jx.js";function NJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function VJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}function B(F){return Object.fromEntries([...F.headers])}var{btoa:$F,atob:LF}=globalThis;function TJ(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=LF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function o(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return $F(J)}function _J(F){return F instanceof Uint8Array?o(F):F}function jJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:o(F.data)}`}function kJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var a="AI_DownloadError",s=`vercel.ai.error.${a}`,UF=Symbol.for(s),m,u,O=class extends(u=j,m=UF,u){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:a,message:X,cause:W});this[m]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return j.hasMarker(F,s)}},r=2147483648;async function wF({response:F,url:J,maxBytes:Q=r}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:R}=await Y.read();if(G)break;if($+=R.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(R)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let w=new Uint8Array($),L=0;for(let G of Z)w.set(G,L),L+=G.length;return w}function i(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http or https, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(EF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(e(Q)){if(k(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function e(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function k(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function EF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(e(Q))return k(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,w=Y>>8&255,L=Y&255;return k(`${Z}.${$}.${w}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function SJ(F,J){var Q,W;i(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)i(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await wF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:r}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var GF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new N({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},xJ=GF();function b(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var CF=["fetch failed","failed to fetch"],MF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function KF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&MF.includes(J))return!0;return!1}function qF({error:F,url:J,requestBodyValues:Q}){if(b(F))return F;if(F instanceof TypeError&&CF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new M({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(KF(F))return new M({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function DF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function OF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function IF(F,...J){let Q=new Headers(OF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var PF="4.0.21";var zF="JSON schema:",AF="You MUST answer with a JSON object that matches the JSON schema above.",HF="You MUST answer with JSON.";function BF({prompt:F,schema:J,schemaPrefix:Q=J!=null?zF:void 0,schemaSuffix:W=J!=null?AF:HF}){return[F!=null&&F.length>0?F:void 0,F!=null&&F.length>0?"":void 0,Q,J!=null?JSON.stringify(J):void 0,W].filter((X)=>X!=null).join(`
|
|
3
3
|
`)}function yJ({messages:F,schema:J,schemaPrefix:Q,schemaSuffix:W}){var X,Y;let Z=((X=F[0])==null?void 0:X.role)==="system"?{...F[0]}:{role:"system",content:""};return Z.content=BF({prompt:Z.content,schema:J,schemaPrefix:Q,schemaSuffix:W}),[Z,...((Y=F[0])==null?void 0:Y.role)==="system"?F.slice(1):F]}function hJ(F){return F!=null}function uJ({apiKey:F,environmentVariableName:J,apiKeyParameterName:Q="apiKey",description:W}){if(typeof F==="string")return F;if(F!=null)throw new z({message:`${W} API key must be a string.`});if(typeof process>"u")throw new z({message:`${W} API key is missing. Pass it using the '${Q}' parameter. Environment variables is not supported in this environment.`});if(F=process.env[J],F==null)throw new z({message:`${W} API key is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new z({message:`${W} API key must be a string. The value of the ${J} environment variable is not a string.`});return F}function pJ({settingValue:F,environmentVariableName:J,settingName:Q,description:W}){if(typeof F==="string")return F;if(F!=null)throw new A({message:`${W} setting must be a string.`});if(typeof process>"u")throw new A({message:`${W} setting is missing. Pass it using the '${Q}' parameter. Environment variables is not supported in this environment.`});if(F=process.env[J],F==null)throw new A({message:`${W} setting is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new A({message:`${W} setting must be a string. The value of the ${J} environment variable is not a string.`});return F}function lJ(F){var J;let[Q,W=""]=F.toLowerCase().split("/");return(J={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[W])!=null?J:W}var RF=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,NF=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function p(F){let J=JSON.parse(F);if(J===null||typeof J!=="object")return J;if(RF.test(F)===!1&&NF.test(F)===!1)return J;return VF(J)}function VF(F){let J=[F];while(J.length){let Q=J;J=[];for(let W of Q){if(Object.prototype.hasOwnProperty.call(W,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(W,"constructor")&&W.constructor!==null&&typeof W.constructor==="object"&&Object.prototype.hasOwnProperty.call(W.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let X in W){let Y=W[X];if(Y&&typeof Y==="object")J.push(Y)}}}return F}function x(F){let{stackTraceLimit:J}=Error;try{Error.stackTraceLimit=0}catch(Q){return p(F)}try{return p(F)}finally{Error.stackTraceLimit=J}}function v(F){if(F.type==="object"||Array.isArray(F.type)&&F.type.includes("object")){F.additionalProperties=!1;let{properties:Q}=F;if(Q!=null)for(let W of Object.keys(Q))Q[W]=P(Q[W])}if(F.items!=null)F.items=Array.isArray(F.items)?F.items.map(P):P(F.items);if(F.anyOf!=null)F.anyOf=F.anyOf.map(P);if(F.allOf!=null)F.allOf=F.allOf.map(P);if(F.oneOf!=null)F.oneOf=F.oneOf.map(P);let{definitions:J}=F;if(J!=null)for(let Q of Object.keys(J))J[Q]=P(J[Q]);return F}function P(F){if(typeof F==="boolean")return F;return v(F)}var TF=Symbol("Let zodToJsonSchema decide on which parser to use"),l={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},_F=(F)=>typeof F==="string"?{...l,name:F}:{...l,...F};function K(){return{}}function jF(F,J){var Q,W,X;let Y={type:"array"};if(((Q=F.type)==null?void 0:Q._def)&&((X=(W=F.type)==null?void 0:W._def)==null?void 0:X.typeName)!==U.ZodAny)Y.items=E(F.type._def,{...J,currentPath:[...J.currentPath,"items"]});if(F.minLength)Y.minItems=F.minLength.value;if(F.maxLength)Y.maxItems=F.maxLength.value;if(F.exactLength)Y.minItems=F.exactLength.value,Y.maxItems=F.exactLength.value;return Y}function kF(F){let J={type:"integer",format:"int64"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function bF(){return{type:"boolean"}}function FF(F,J){return E(F.type._def,J)}var SF=(F,J)=>{return E(F.innerType._def,J)};function JF(F,J,Q){let W=Q!=null?Q:J.dateStrategy;if(Array.isArray(W))return{anyOf:W.map((X,Y)=>JF(F,J,X))};switch(W){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return gF(F)}}var gF=(F)=>{let J={type:"integer",format:"unix-time"};for(let Q of F.checks)switch(Q.kind){case"min":J.minimum=Q.value;break;case"max":J.maximum=Q.value;break}return J};function xF(F,J){return{...E(F.innerType._def,J),default:F.defaultValue()}}function vF(F,J){return J.effectStrategy==="input"?E(F.schema._def,J):K()}function yF(F){return{type:"string",enum:Array.from(F.values)}}var hF=(F)=>{if("type"in F&&F.type==="string")return!1;return"allOf"in F};function mF(F,J){let Q=[E(F.left._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),E(F.right._def,{...J,currentPath:[...J.currentPath,"allOf","1"]})].filter((X)=>!!X),W=[];return Q.forEach((X)=>{if(hF(X))W.push(...X.allOf);else{let Y=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Z,...$}=X;Y=$}W.push(Y)}}),W.length?{allOf:W}:void 0}function uF(F){let J=typeof F.value;if(J!=="bigint"&&J!=="number"&&J!=="boolean"&&J!=="string")return{type:Array.isArray(F.value)?"array":"object"};return{type:J==="bigint"?"integer":J,const:F.value}}var T=void 0,q={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(T===void 0)T=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return T},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function QF(F,J){let Q={type:"string"};if(F.checks)for(let W of F.checks)switch(W.kind){case"min":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value;break;case"max":Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"email":switch(J.emailStrategy){case"format:email":D(Q,"email",W.message,J);break;case"format:idn-email":D(Q,"idn-email",W.message,J);break;case"pattern:zod":C(Q,q.email,W.message,J);break}break;case"url":D(Q,"uri",W.message,J);break;case"uuid":D(Q,"uuid",W.message,J);break;case"regex":C(Q,W.regex,W.message,J);break;case"cuid":C(Q,q.cuid,W.message,J);break;case"cuid2":C(Q,q.cuid2,W.message,J);break;case"startsWith":C(Q,RegExp(`^${_(W.value,J)}`),W.message,J);break;case"endsWith":C(Q,RegExp(`${_(W.value,J)}$`),W.message,J);break;case"datetime":D(Q,"date-time",W.message,J);break;case"date":D(Q,"date",W.message,J);break;case"time":D(Q,"time",W.message,J);break;case"duration":D(Q,"duration",W.message,J);break;case"length":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value,Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"includes":{C(Q,RegExp(_(W.value,J)),W.message,J);break}case"ip":{if(W.version!=="v6")D(Q,"ipv4",W.message,J);if(W.version!=="v4")D(Q,"ipv6",W.message,J);break}case"base64url":C(Q,q.base64url,W.message,J);break;case"jwt":C(Q,q.jwt,W.message,J);break;case"cidr":{if(W.version!=="v6")C(Q,q.ipv4Cidr,W.message,J);if(W.version!=="v4")C(Q,q.ipv6Cidr,W.message,J);break}case"emoji":C(Q,q.emoji(),W.message,J);break;case"ulid":{C(Q,q.ulid,W.message,J);break}case"base64":{switch(J.base64Strategy){case"format:binary":{D(Q,"binary",W.message,J);break}case"contentEncoding:base64":{Q.contentEncoding="base64";break}case"pattern:zod":{C(Q,q.base64,W.message,J);break}}break}case"nanoid":C(Q,q.nanoid,W.message,J);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return Q}function _(F,J){return J.patternStrategy==="escape"?pF(F):F}var iF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function pF(F){let J="";for(let Q=0;Q<F.length;Q++){if(!iF.has(F[Q]))J+="\\";J+=F[Q]}return J}function D(F,J,Q,W){var X;if(F.format||((X=F.anyOf)==null?void 0:X.some((Y)=>Y.format))){if(!F.anyOf)F.anyOf=[];if(F.format)F.anyOf.push({format:F.format}),delete F.format;F.anyOf.push({format:J,...Q&&W.errorMessages&&{errorMessage:{format:Q}}})}else F.format=J}function C(F,J,Q,W){var X;if(F.pattern||((X=F.allOf)==null?void 0:X.some((Y)=>Y.pattern))){if(!F.allOf)F.allOf=[];if(F.pattern)F.allOf.push({pattern:F.pattern}),delete F.pattern;F.allOf.push({pattern:c(J,W),...Q&&W.errorMessages&&{errorMessage:{pattern:Q}}})}else F.pattern=c(J,W)}function c(F,J){var Q;if(!J.applyRegexFlags||!F.flags)return F.source;let W={i:F.flags.includes("i"),m:F.flags.includes("m"),s:F.flags.includes("s")},X=W.i?F.source.toLowerCase():F.source,Y="",Z=!1,$=!1,w=!1;for(let L=0;L<X.length;L++){if(Z){Y+=X[L],Z=!1;continue}if(W.i){if($){if(X[L].match(/[a-z]/)){if(w)Y+=X[L],Y+=`${X[L-2]}-${X[L]}`.toUpperCase(),w=!1;else if(X[L+1]==="-"&&((Q=X[L+2])==null?void 0:Q.match(/[a-z]/)))Y+=X[L],w=!0;else Y+=`${X[L]}${X[L].toUpperCase()}`;continue}}else if(X[L].match(/[a-z]/)){Y+=`[${X[L]}${X[L].toUpperCase()}]`;continue}}if(W.m){if(X[L]==="^"){Y+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(X[L]==="$"){Y+=`($|(?=[\r
|
|
5
5
|
]))`;continue}}if(W.s&&X[L]==="."){Y+=$?`${X[L]}\r
|
|
6
6
|
`:`[${X[L]}\r
|
|
7
7
|
]`;continue}if(Y+=X[L],X[L]==="\\")Z=!0;else if($&&X[L]==="]")$=!1;else if(!$&&X[L]==="[")$=!0}try{new RegExp(Y)}catch(L){return console.warn(`Could not convert regex pattern at ${J.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),F.source}return Y}function WF(F,J){var Q,W,X,Y,Z,$;let w={type:"object",additionalProperties:(Q=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]}))!=null?Q:J.allowedAdditionalProperties};if(((W=F.keyType)==null?void 0:W._def.typeName)===U.ZodString&&((X=F.keyType._def.checks)==null?void 0:X.length)){let{type:L,...G}=QF(F.keyType._def,J);return{...w,propertyNames:G}}else if(((Y=F.keyType)==null?void 0:Y._def.typeName)===U.ZodEnum)return{...w,propertyNames:{enum:F.keyType._def.values}};else if(((Z=F.keyType)==null?void 0:Z._def.typeName)===U.ZodBranded&&F.keyType._def.type._def.typeName===U.ZodString&&(($=F.keyType._def.type._def.checks)==null?void 0:$.length)){let{type:L,...G}=FF(F.keyType._def,J);return{...w,propertyNames:G}}return w}function lF(F,J){if(J.mapStrategy==="record")return WF(F,J);let Q=E(F.keyType._def,{...J,currentPath:[...J.currentPath,"items","items","0"]})||K(),W=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items","items","1"]})||K();return{type:"array",maxItems:125,items:{type:"array",items:[Q,W],minItems:2,maxItems:2}}}function cF(F){let J=F.values,W=Object.keys(F.values).filter((Y)=>{return typeof J[J[Y]]!=="number"}).map((Y)=>J[Y]),X=Array.from(new Set(W.map((Y)=>typeof Y)));return{type:X.length===1?X[0]==="string"?"string":"number":["string","number"],enum:W}}function dF(){return{not:K()}}function nF(){return{type:"null"}}var S={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function fF(F,J){let Q=F.options instanceof Map?Array.from(F.options.values()):F.options;if(Q.every((W)=>(W._def.typeName in S)&&(!W._def.checks||!W._def.checks.length))){let W=Q.reduce((X,Y)=>{let Z=S[Y._def.typeName];return Z&&!X.includes(Z)?[...X,Z]:X},[]);return{type:W.length>1?W:W[0]}}else if(Q.every((W)=>W._def.typeName==="ZodLiteral"&&!W.description)){let W=Q.reduce((X,Y)=>{let Z=typeof Y._def.value;switch(Z){case"string":case"number":case"boolean":return[...X,Z];case"bigint":return[...X,"integer"];case"object":if(Y._def.value===null)return[...X,"null"];case"symbol":case"undefined":case"function":default:return X}},[]);if(W.length===Q.length){let X=W.filter((Y,Z,$)=>$.indexOf(Y)===Z);return{type:X.length>1?X:X[0],enum:Q.reduce((Y,Z)=>{return Y.includes(Z._def.value)?Y:[...Y,Z._def.value]},[])}}}else if(Q.every((W)=>W._def.typeName==="ZodEnum"))return{type:"string",enum:Q.reduce((W,X)=>[...W,...X._def.values.filter((Y)=>!W.includes(Y))],[])};return tF(F,J)}var tF=(F,J)=>{let Q=(F.options instanceof Map?Array.from(F.options.values()):F.options).map((W,X)=>E(W._def,{...J,currentPath:[...J.currentPath,"anyOf",`${X}`]})).filter((W)=>!!W&&(!J.strictUnions||typeof W==="object"&&Object.keys(W).length>0));return Q.length?{anyOf:Q}:void 0};function oF(F,J){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(F.innerType._def.typeName)&&(!F.innerType._def.checks||!F.innerType._def.checks.length))return{type:[S[F.innerType._def.typeName],"null"]};let Q=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","0"]});return Q&&{anyOf:[Q,{type:"null"}]}}function aF(F){let J={type:"number"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"int":J.type="integer";break;case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function sF(F,J){let Q={type:"object",properties:{}},W=[],X=F.shape();for(let Z in X){let $=X[Z];if($===void 0||$._def===void 0)continue;let w=eF($),L=E($._def,{...J,currentPath:[...J.currentPath,"properties",Z],propertyPath:[...J.currentPath,"properties",Z]});if(L===void 0)continue;if(Q.properties[Z]=L,!w)W.push(Z)}if(W.length)Q.required=W;let Y=rF(F,J);if(Y!==void 0)Q.additionalProperties=Y;return Q}function rF(F,J){if(F.catchall._def.typeName!=="ZodNever")return E(F.catchall._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]});switch(F.unknownKeys){case"passthrough":return J.allowedAdditionalProperties;case"strict":return J.rejectedAdditionalProperties;case"strip":return J.removeAdditionalStrategy==="strict"?J.allowedAdditionalProperties:J.rejectedAdditionalProperties}}function eF(F){try{return F.isOptional()}catch(J){return!0}}var FJ=(F,J)=>{var Q;if(J.currentPath.toString()===((Q=J.propertyPath)==null?void 0:Q.toString()))return E(F.innerType._def,J);let W=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","1"]});return W?{anyOf:[{not:K()},W]}:K()},JJ=(F,J)=>{if(J.pipeStrategy==="input")return E(F.in._def,J);else if(J.pipeStrategy==="output")return E(F.out._def,J);let Q=E(F.in._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),W=E(F.out._def,{...J,currentPath:[...J.currentPath,"allOf",Q?"1":"0"]});return{allOf:[Q,W].filter((X)=>X!==void 0)}};function QJ(F,J){return E(F.type._def,J)}function WJ(F,J){let W={type:"array",uniqueItems:!0,items:E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items"]})};if(F.minSize)W.minItems=F.minSize.value;if(F.maxSize)W.maxItems=F.maxSize.value;return W}function XJ(F,J){if(F.rest)return{type:"array",minItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[]),additionalItems:E(F.rest._def,{...J,currentPath:[...J.currentPath,"additionalItems"]})};else return{type:"array",minItems:F.items.length,maxItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[])}}function YJ(){return{not:K()}}function ZJ(){return K()}var $J=(F,J)=>{return E(F.innerType._def,J)},LJ=(F,J,Q)=>{switch(J){case U.ZodString:return QF(F,Q);case U.ZodNumber:return aF(F);case U.ZodObject:return sF(F,Q);case U.ZodBigInt:return kF(F);case U.ZodBoolean:return bF();case U.ZodDate:return JF(F,Q);case U.ZodUndefined:return YJ();case U.ZodNull:return nF();case U.ZodArray:return jF(F,Q);case U.ZodUnion:case U.ZodDiscriminatedUnion:return fF(F,Q);case U.ZodIntersection:return mF(F,Q);case U.ZodTuple:return XJ(F,Q);case U.ZodRecord:return WF(F,Q);case U.ZodLiteral:return uF(F);case U.ZodEnum:return yF(F);case U.ZodNativeEnum:return cF(F);case U.ZodNullable:return oF(F,Q);case U.ZodOptional:return FJ(F,Q);case U.ZodMap:return lF(F,Q);case U.ZodSet:return WJ(F,Q);case U.ZodLazy:return()=>F.getter()._def;case U.ZodPromise:return QJ(F,Q);case U.ZodNaN:case U.ZodNever:return dF();case U.ZodEffects:return vF(F,Q);case U.ZodAny:return K();case U.ZodUnknown:return ZJ();case U.ZodDefault:return xF(F,Q);case U.ZodBranded:return FF(F,Q);case U.ZodReadonly:return $J(F,Q);case U.ZodCatch:return SF(F,Q);case U.ZodPipeline:return JJ(F,Q);case U.ZodFunction:case U.ZodVoid:case U.ZodSymbol:return;default:return((W)=>{return})(J)}},UJ=(F,J)=>{let Q=0;for(;Q<F.length&&Q<J.length;Q++)if(F[Q]!==J[Q])break;return[(F.length-Q).toString(),...J.slice(Q)].join("/")};function E(F,J,Q=!1){var W;let X=J.seen.get(F);if(J.override){let w=(W=J.override)==null?void 0:W.call(J,F,J,X,Q);if(w!==TF)return w}if(X&&!Q){let w=wJ(X,J);if(w!==void 0)return w}let Y={def:F,path:J.currentPath,jsonSchema:void 0};J.seen.set(F,Y);let Z=LJ(F,F.typeName,J),$=typeof Z==="function"?E(Z(),J):Z;if($)EJ(F,J,$);if(J.postProcess){let w=J.postProcess($,F,J);return Y.jsonSchema=$,w}return Y.jsonSchema=$,$}var wJ=(F,J)=>{switch(J.$refStrategy){case"root":return{$ref:F.path.join("/")};case"relative":return{$ref:UJ(J.currentPath,F.path)};case"none":case"seen":{if(F.path.length<J.currentPath.length&&F.path.every((Q,W)=>J.currentPath[W]===Q))return console.warn(`Recursive reference detected at ${J.currentPath.join("/")}! Defaulting to any`),K();return J.$refStrategy==="seen"?K():void 0}}},EJ=(F,J,Q)=>{if(F.description)Q.description=F.description;return Q},GJ=(F)=>{let J=_F(F),Q=J.name!==void 0?[...J.basePath,J.definitionPath,J.name]:J.basePath;return{...J,currentPath:Q,propertyPath:void 0,seen:new Map(Object.entries(J.definitions).map(([W,X])=>[X._def,{def:X._def,path:[...J.basePath,J.definitionPath,W],jsonSchema:void 0}]))}},CJ=(F,J)=>{var Q;let W=GJ(J),X=typeof J==="object"&&J.definitions?Object.entries(J.definitions).reduce((L,[G,R])=>{var h;return{...L,[G]:(h=E(R._def,{...W,currentPath:[...W.basePath,W.definitionPath,G]},!0))!=null?h:K()}},{}):void 0,Y=typeof J==="string"?J:(J==null?void 0:J.nameStrategy)==="title"?void 0:J==null?void 0:J.name,Z=(Q=E(F._def,Y===void 0?W:{...W,currentPath:[...W.basePath,W.definitionPath,Y]},!1))!=null?Q:K(),$=typeof J==="object"&&J.name!==void 0&&J.nameStrategy==="title"?J.name:void 0;if($!==void 0)Z.title=$;let w=Y===void 0?X?{...Z,[W.definitionPath]:X}:Z:{$ref:[...W.$refStrategy==="relative"?[]:W.basePath,W.definitionPath,Y].join("/"),[W.definitionPath]:{...X,[Y]:Z}};return w.$schema="http://json-schema.org/draft-07/schema#",w},g=Symbol.for("vercel.ai.schema");function aJ(F){let J;return()=>{if(J==null)J=F();return J}}function V(F,{validate:J}={}){return{[g]:!0,_type:void 0,get jsonSchema(){if(typeof F==="function")F=F();return F},validate:J}}function MJ(F){return typeof F==="object"&&F!==null&&g in F&&F[g]===!0&&"jsonSchema"in F&&"validate"in F}function KJ(F){return F==null?V({properties:{},additionalProperties:!1}):MJ(F)?F:("~standard"in F)?F["~standard"].vendor==="zod"?PJ(F):qJ(F):F()}function qJ(F){return V(()=>v(F["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async(J)=>{let Q=await F["~standard"].validate(J);return"value"in Q?{success:!0,value:Q.value}:{success:!1,error:new I({value:J,cause:Q.issues})}}})}function DJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return V(()=>CJ(F,{$refStrategy:W?"root":"none"}),{validate:async(X)=>{let Y=await F.safeParseAsync(X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function OJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return V(()=>v(d(F,{target:"draft-7",io:"input",reused:W?"ref":"inline"})),{validate:async(X)=>{let Y=await n(F,X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function IJ(F){return"_zod"in F}function PJ(F,J){if(IJ(F))return OJ(F,J);else return DJ(F,J)}async function zJ({value:F,schema:J,context:Q}){let W=await y({value:F,schema:J,context:Q});if(!W.success)throw I.wrap({value:F,cause:W.error,context:Q});return W.value}async function y({value:F,schema:J,context:Q}){let W=KJ(J);try{if(W.validate==null)return{success:!0,value:F,rawValue:F};let X=await W.validate(F);if(X.success)return{success:!0,value:X.value,rawValue:F};return{success:!1,error:I.wrap({value:F,cause:X.error,context:Q}),rawValue:F}}catch(X){return{success:!1,error:I.wrap({value:F,cause:X,context:Q}),rawValue:F}}}async function AJ({text:F,schema:J}){try{let Q=x(F);if(J==null)return Q;return zJ({value:Q,schema:J})}catch(Q){if(H.isInstance(Q)||I.isInstance(Q))throw Q;throw new H({text:F,cause:Q})}}async function XF({text:F,schema:J}){try{let Q=x(F);if(J==null)return{success:!0,value:Q,rawValue:Q};return await y({value:Q,schema:J})}catch(Q){return{success:!1,error:H.isInstance(Q)?Q:new H({text:F,cause:Q}),rawValue:void 0}}}function sJ(F){try{return x(F),!0}catch(J){return!1}}function HJ({stream:F,schema:J}){return F.pipeThrough(new TextDecoderStream).pipeThrough(new t).pipeThrough(new TransformStream({async transform({data:Q},W){if(Q==="[DONE]")return;W.enqueue(await XF({text:Q,schema:J}))}}))}async function FQ({provider:F,providerOptions:J,schema:Q}){if((J==null?void 0:J[F])==null)return;let W=await y({value:J[F],schema:Q});if(!W.success)throw new N({argument:"providerOptions",message:`invalid ${F} provider options`,cause:W.error});return W.value}var BJ=()=>globalThis.fetch,QQ=async({url:F,headers:J,body:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>YF({url:F,headers:{"Content-Type":"application/json",...J},body:{content:JSON.stringify(Q),values:Q},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),WQ=async({url:F,headers:J,formData:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>YF({url:F,headers:J,body:{content:Q,values:Object.fromEntries(Q.entries())},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),YF=async({url:F,headers:J={},body:Q,successfulResponseHandler:W,failedResponseHandler:X,abortSignal:Y,fetch:Z=BJ()})=>{try{let $=await Z(F,{method:"POST",headers:IF(J,`ai-sdk/provider-utils/${PF}`,DF()),body:Q.content,signal:Y}),w=B($);if(!$.ok){let L;try{L=await X({response:$,url:F,requestBodyValues:Q.values})}catch(G){if(b(G)||M.isInstance(G))throw G;throw new M({message:"Failed to process error response",cause:G,statusCode:$.status,url:F,responseHeaders:w,requestBodyValues:Q.values})}throw L.value}try{return await W({response:$,url:F,requestBodyValues:Q.values})}catch(L){if(L instanceof Error){if(b(L)||M.isInstance(L))throw L}throw new M({message:"Failed to process successful response",cause:L,statusCode:$.status,url:F,responseHeaders:w,requestBodyValues:Q.values})}}catch($){throw qF({error:$,url:F,requestBodyValues:Q.values})}};function ZF(F){return F}function XQ({id:F,inputSchema:J}){return({execute:Q,outputSchema:W,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:w,...L})=>ZF({type:"provider",id:F,args:L,inputSchema:J,outputSchema:W,execute:Q,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:w})}function YQ({id:F,inputSchema:J,outputSchema:Q,supportsDeferredResults:W}){return({execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:w,onInputAvailable:L,...G})=>ZF({type:"provider",id:F,args:G,inputSchema:J,outputSchema:Q,execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:w,onInputAvailable:L,supportsDeferredResults:W})}var $Q=({errorSchema:F,errorToMessage:J,isRetryable:Q})=>async({response:W,url:X,requestBodyValues:Y})=>{let Z=await W.text(),$=B(W);if(Z.trim()==="")return{responseHeaders:$,value:new M({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})};try{let w=await AJ({text:Z,schema:F});return{responseHeaders:$,value:new M({message:J(w),url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,data:w,isRetryable:Q==null?void 0:Q(W,w)})}}catch(w){return{responseHeaders:$,value:new M({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})}}},LQ=(F)=>async({response:J})=>{let Q=B(J);if(J.body==null)throw new f({});return{responseHeaders:Q,value:HJ({stream:J.body,schema:F})}},UQ=(F)=>async({response:J,url:Q,requestBodyValues:W})=>{let X=await J.text(),Y=await XF({text:X,schema:F}),Z=B(J);if(!Y.success)throw new M({message:"Invalid JSON response",cause:Y.error,statusCode:J.status,responseHeaders:Z,responseBody:X,url:Q,requestBodyValues:W});return{responseHeaders:Z,value:Y.value,rawValue:Y.rawValue}},wQ=()=>async({response:F,url:J,requestBodyValues:Q})=>{let W=B(F);if(!F.body)throw new M({message:"Response body is empty",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0});try{let X=await F.arrayBuffer();return{responseHeaders:W,value:new Uint8Array(X)}}catch(X){throw new M({message:"Failed to read response as array buffer",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0,cause:X})}};function EQ(F){return F==null?void 0:F.replace(/\/$/,"")}
|
|
8
|
-
export{NJ as
|
|
8
|
+
export{NJ as Se,VJ as Te,TJ as Ue,o as Ve,_J as We,jJ as Xe,kJ as Ye,SJ as Ze,xJ as _e,IF as $e,yJ as af,hJ as bf,uJ as cf,pJ as df,lJ as ef,aJ as ff,PJ as gf,zJ as hf,AJ as if,sJ as jf,FQ as kf,QQ as lf,WQ as mf,XQ as nf,YQ as of,$Q as pf,LQ as qf,UQ as rf,wQ as sf,EQ as tf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{o as
|
|
2
|
+
import{lu as n}from"./chunk-mbbxedsq.js";function s(e){let r=e?.password??n.QITQODE_SERVER_PASSWORD;if(!r)return;let t=e?.username??n.QITQODE_SERVER_USERNAME??"qitqode";return`Basic ${Buffer.from(`${t}:${r}`).toString("base64")}`}function o(e){let r=s(e);if(!r)return;return{Authorization:r}}
|
|
3
|
+
export{o as $};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Gd as a,Hd as b}from"./chunk-5zh91zk2.js";import"./chunk-kmzpeq8k.js";import"./chunk-01e3v1xz.js";import"./chunk-dbpkq7ba.js";import"./chunk-hwsqqkrv.js";import"./chunk-mbbxedsq.js";import"./chunk-aa2n02qk.js";import"./chunk-k1x8469r.js";import"./chunk-c3szabpf.js";import"./chunk-c8prg3jx.js";import"./chunk-t8sy5sgx.js";import"./chunk-tezrgfc6.js";import"./chunk-f2pv705d.js";export{a as read,b as copy};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ee as _w}from"./chunk-dnsh1v42.js";import{Fe as Mw,Ie as Aw}from"./chunk-gszvgz76.js";import{Je as Ww}from"./chunk-68v3b6ns.js";import{Ke as Iw,Le as hw,Me as fw}from"./chunk-bne5w117.js";import{Ne as Pw}from"./chunk-j0bwa5dk.js";import{Ff as kw,Gf as Uw,Hf as Jw,If as Hw,Jf as bw}from"./chunk-2drzgtv3.js";import{tO as $w}from"./chunk-r9w0thdk.js";var zj=$w((Dw)=>{var jj=Mw(),m={CrtSignerV4:null},wj="X-Amz-S3session-Token",Mj=wj.toLowerCase();class xj extends jj.SignatureV4{async signWithCredentials(j,w,x){let E=Dj(w);j.headers[Mj]=w.sessionToken;let B=this;return yj(B,E),B.signRequest(j,x??{})}async presignWithCredentials(j,w,x){let E=Dj(w);return delete j.headers[Mj],j.headers[wj]=w.sessionToken,j.query=j.query??{},j.query[wj]=w.sessionToken,yj(this,E),this.presign(j,x)}}function Dj(j){return{accessKeyId:j.accessKeyId,secretAccessKey:j.secretAccessKey,expiration:j.expiration}}function yj(j,w){let x=j.credentialProvider;j.credentialProvider=()=>{return j.credentialProvider=x,Promise.resolve(w)}}class Lj{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof m.CrtSignerV4==="function")return"crt";else if(typeof jj.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(j){this.sigv4Signer=new xj(j),this.signerOptions=j}async sign(j,w={}){if(w.signingRegion==="*")return this.getSigv4aSigner().sign(j,w);return this.sigv4Signer.sign(j,w)}async signWithCredentials(j,w,x={}){if(x.signingRegion==="*"){let E=this.getSigv4aSigner(),B=m.CrtSignerV4;if(B&&E instanceof B)return E.signWithCredentials(j,w,x);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(j,w,x)}async presign(j,w={}){if(w.signingRegion==="*"){let x=this.getSigv4aSigner(),E=m.CrtSignerV4;if(E&&x instanceof E)return x.presign(j,w);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(j,w)}async presignWithCredentials(j,w,x={}){if(x.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(j,w,x)}getSigv4aSigner(){if(!this.sigv4aSigner){let j=m.CrtSignerV4,w=jj.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!j&&!w)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(j&&typeof j==="function")this.sigv4aSigner=new j({...this.signerOptions,signingAlgorithm:1});else if(w&&typeof w==="function")this.sigv4aSigner=new w({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!w||typeof w!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new w({...this.signerOptions})}}return this.sigv4aSigner}}Dw.SignatureV4MultiRegion=Lj;Dw.SignatureV4SignWithCredentials=xj;Dw.signatureV4CrtContainer=m});var Y=fw(),S=hw(),Z=Uw(),$=Jw(),b=Hw(),d=Pw(),c=Iw(),Gj=kw(),H=_w(),_j=zj(),O=bw(),kj=Ww(),vw=Aw(),T="ref",h=-1,q=!0,Uj="isSet",Wj="PartitionResult",C="booleanEquals",Q="stringEquals",Bj="getAttr",Jj="us-east-1",Hj="sigv4",bj="sts",Pj="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ij={[T]:"Endpoint"},X={[T]:"Region"},Ej={[T]:Wj},R={},hj=[X],fj={conditions:[[Uj,[Ij]],[Uj,hj],["aws.partition",hj,Wj],[C,[{[T]:"UseFIPS"},q]],[C,[{[T]:"UseDualStack"},q]],[Q,[X,"aws-global"]],[C,[{[T]:"UseGlobalEndpoint"},q]],[Q,[X,"eu-central-1"]],[C,[{fn:Bj,argv:[Ej,"supportsDualStack"]},q]],[C,[{fn:Bj,argv:[Ej,"supportsFIPS"]},q]],[Q,[X,"ap-south-1"]],[Q,[X,"eu-north-1"]],[Q,[X,"eu-west-1"]],[Q,[X,"eu-west-2"]],[Q,[X,"eu-west-3"]],[Q,[X,"sa-east-1"]],[Q,[X,Jj]],[Q,[X,"us-east-2"]],[Q,[X,"us-west-2"]],[Q,[X,"us-west-1"]],[Q,[X,"ca-central-1"]],[Q,[X,"ap-southeast-1"]],[Q,[X,"ap-northeast-1"]],[Q,[X,"ap-southeast-2"]],[Q,[{fn:Bj,argv:[Ej,"name"]},"aws-us-gov"]]],results:[[h],["https://sts.amazonaws.com",{authSchemes:[{name:Hj,signingName:bj,signingRegion:Jj}]}],[Pj,{authSchemes:[{name:Hj,signingName:bj,signingRegion:"{Region}"}]}],[h,"Invalid Configuration: FIPS and custom endpoint are not supported"],[h,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ij,R],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",R],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",R],[h,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"DualStack is enabled but this partition does not support DualStack"],[Pj,R],[h,"Invalid Configuration: Missing Region"]]},Vw=2,F=1e8,Rw=new Int32Array([-1,1,-1,0,30,3,1,4,F+14,2,5,F+14,3,25,6,4,24,7,5,F+1,8,6,9,F+13,7,F+1,10,10,F+1,11,11,F+1,12,12,F+1,13,13,F+1,14,14,F+1,15,15,F+1,16,16,F+1,17,17,F+1,18,18,F+1,19,19,F+1,20,20,F+1,21,21,F+1,22,22,F+1,23,23,F+1,F+2,8,F+11,F+12,4,28,26,9,27,F+10,24,F+8,F+9,8,29,F+7,9,F+6,F+7,3,F+3,31,4,F+4,F+5]),Ow=b.BinaryDecisionDiagram.from(Rw,Vw,fj.conditions,fj.results),Tw=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Aj=(j,w={})=>{return Tw.get(j,()=>b.decideEndpoint(Ow,{endpointParams:j,logger:w.logger}))};b.customEndpointFunctions.aws=Y.awsEndpointFunctions;var mw=(j)=>async(w,x,E)=>{if(!E)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let B=await j(w,x,E),N=Z.getSmithyContext(x)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!N)throw Error(`getEndpointParameterInstructions() is not defined on '${x.commandName}'`);let G=await b.resolveParams(E,{getEndpointParameterInstructions:N},w);return Object.assign(B,G)},qw=async(j,w,x)=>{return{operation:Z.getSmithyContext(w).operation,region:await Z.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Cw=mw(qw);function vj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Fj(j){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Vj(j){return{schemeId:"smithy.api#noAuth"}}var Sw=(j,w,x)=>{return(B)=>{let G=j(B).properties?.authSchemes;if(!G)return w(B);let M=[];for(let z of G){let{name:D,properties:k={},...I}=z,U=D.toLowerCase();if(D!==U)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${D}' to '${U}'`);let L;if(U==="sigv4a"){L="aws.auth#sigv4a";let s=G.find((e)=>{let $j=e.name.toLowerCase();return $j!=="sigv4a"&&$j.startsWith("sigv4")});if(_j.SignatureV4MultiRegion.sigv4aDependency()==="none"&&s)continue}else if(U.startsWith("sigv4"))L="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${U}'`);let V=x[L];if(!V)throw Error(`Could not find HttpAuthOption create function for '${L}'`);let J=V(B);J.schemeId=L,J.signingProperties={...J.signingProperties||{},...I,...k},M.push(J)}return M}},cw=(j)=>{let w=[];switch(j.operation){case"AssumeRoleWithWebIdentity":{w.push(Vj()),w.push(Fj(j));break}default:w.push(vj(j)),w.push(Fj(j))}return w},uw=Sw(Aj,cw,{"aws.auth#sigv4":vj,"aws.auth#sigv4a":Fj,"smithy.api#noAuth":Vj}),dw=(j)=>{let w=H.resolveAwsSdkSigV4Config(j),x=H.resolveAwsSdkSigV4AConfig(w);return Object.assign(x,{authSchemePreference:Z.normalizeProvider(j.authSchemePreference??[])})},pw=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,useGlobalEndpoint:j.useGlobalEndpoint??!1,defaultSigningName:"sts"})},Rj={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},lw="3.997.14",gw={version:lw};class y extends Z.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,y.prototype)}}class p extends y{name="ExpiredTokenException";$fault="client";constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,p.prototype)}}class l extends y{name="MalformedPolicyDocumentException";$fault="client";constructor(j){super({name:"MalformedPolicyDocumentException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype)}}class g extends y{name="PackedPolicyTooLargeException";$fault="client";constructor(j){super({name:"PackedPolicyTooLargeException",$fault:"client",...j});Object.setPrototypeOf(this,g.prototype)}}class a extends y{name="RegionDisabledException";$fault="client";constructor(j){super({name:"RegionDisabledException",$fault:"client",...j});Object.setPrototypeOf(this,a.prototype)}}class r extends y{name="IDPRejectedClaimException";$fault="client";constructor(j){super({name:"IDPRejectedClaimException",$fault:"client",...j});Object.setPrototypeOf(this,r.prototype)}}class o extends y{name="InvalidIdentityTokenException";$fault="client";constructor(j){super({name:"InvalidIdentityTokenException",$fault:"client",...j});Object.setPrototypeOf(this,o.prototype)}}class n extends y{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(j){super({name:"IDPCommunicationErrorException",$fault:"client",...j});Object.setPrototypeOf(this,n.prototype)}}var aw="Arn",rw="AccessKeyId",ow="AssumeRole",nw="AssumedRoleId",iw="AssumeRoleRequest",tw="AssumeRoleResponse",Kj="AssumedRoleUser",sw="AssumeRoleWithWebIdentity",ew="AssumeRoleWithWebIdentityRequest",jx="AssumeRoleWithWebIdentityResponse",wx="Audience",Nj="Credentials",xx="ContextAssertion",Oj="DurationSeconds",Bx="Expiration",Ex="ExternalId",Fx="ExpiredTokenException",Gx="IDPCommunicationErrorException",Kx="IDPRejectedClaimException",Nx="InvalidIdentityTokenException",Qx="Key",Xx="MalformedPolicyDocumentException",Tj="Policy",mj="PolicyArns",Yx="ProviderArn",Zx="ProvidedContexts",$x="ProvidedContextsListType",Mx="ProvidedContext",Dx="PolicyDescriptorType",yx="ProviderId",qj="PackedPolicySize",Lx="PackedPolicyTooLargeException",zx="Provider",Cj="RoleArn",kx="RegionDisabledException",Sj="RoleSessionName",Ux="SecretAccessKey",Jx="SubjectFromWebIdentityToken",Qj="SourceIdentity",Hx="SerialNumber",bx="SessionToken",Px="Tags",Ix="TokenCode",hx="TransitiveTagKeys",fx="Tag",_x="Value",Wx="WebIdentityToken",Ax="arn",vx="accessKeySecretType",f="awsQueryError",_="client",Vx="clientTokenType",W="error",A="httpError",v="message",Rx="policyDescriptorListType",cj="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ox="tagListType",K="com.amazonaws.sts",uj=Gj.TypeRegistry.for(cj),dj=[-3,cj,"STSServiceException",0,[],[]];uj.registerError(dj,y);var P=Gj.TypeRegistry.for(K),pj=[-3,K,Fx,{[f]:["ExpiredTokenException",400],[W]:_,[A]:400},[v],[0]];P.registerError(pj,p);var lj=[-3,K,Gx,{[f]:["IDPCommunicationError",400],[W]:_,[A]:400},[v],[0]];P.registerError(lj,n);var gj=[-3,K,Kx,{[f]:["IDPRejectedClaim",403],[W]:_,[A]:403},[v],[0]];P.registerError(gj,r);var aj=[-3,K,Nx,{[f]:["InvalidIdentityToken",400],[W]:_,[A]:400},[v],[0]];P.registerError(aj,o);var rj=[-3,K,Xx,{[f]:["MalformedPolicyDocument",400],[W]:_,[A]:400},[v],[0]];P.registerError(rj,l);var oj=[-3,K,Lx,{[f]:["PackedPolicyTooLarge",400],[W]:_,[A]:400},[v],[0]];P.registerError(oj,g);var nj=[-3,K,kx,{[f]:["RegionDisabledException",403],[W]:_,[A]:403},[v],[0]];P.registerError(nj,a);var ij=[uj,P],Tx=[0,K,vx,8,0],mx=[0,K,Vx,8,0],Xj=[3,K,Kj,0,[nw,aw],[0,0],2],tj=[3,K,iw,0,[Cj,Sj,mj,Tj,Oj,Px,hx,Ex,Hx,Ix,Qj,Zx],[0,0,()=>Ew,0,1,()=>Cx,64,0,0,0,0,()=>qx],2],sj=[3,K,tw,0,[Nj,Kj,qj,Qj],[[()=>Yj,0],()=>Xj,1,0]],ej=[3,K,ew,0,[Cj,Sj,Wx,yx,mj,Tj,Oj],[0,0,[()=>mx,0],0,()=>Ew,0,1],3],jw=[3,K,jx,0,[Nj,Jx,Kj,qj,zx,wx,Qj],[[()=>Yj,0],0,()=>Xj,1,0,0,0]],Yj=[3,K,Nj,0,[rw,Ux,bx,Bx],[0,[()=>Tx,0],0,4],4],ww=[3,K,Dx,0,[Ax],[0]],xw=[3,K,Mx,0,[Yx,xx],[0,0]],Bw=[3,K,fx,0,[Qx,_x],[0,0],2],Ew=[1,K,Rx,0,()=>ww],qx=[1,K,$x,0,()=>xw],Cx=[1,K,Ox,0,()=>Bw],Fw=[9,K,ow,0,()=>tj,()=>sj],Gw=[9,K,sw,0,()=>ej,()=>jw],Sx=(j)=>{return{apiVersion:"2011-06-15",base64Decoder:j?.base64Decoder??O.fromBase64,base64Encoder:j?.base64Encoder??O.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??Aj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??uw,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],logger:j?.logger??new Z.NoOpLogger,protocol:j?.protocol??vw.AwsQueryProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:ij,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:j?.serviceId??"STS",signerConstructor:j?.signerConstructor??_j.SignatureV4MultiRegion,urlParser:j?.urlParser??d.parseUrl,utf8Decoder:j?.utf8Decoder??O.fromUtf8,utf8Encoder:j?.utf8Encoder??O.toUtf8}},cx=(j)=>{Z.emitWarningIfUnsupportedVersion(process.version);let w=$.resolveDefaultsModeConfig(j),x=()=>w().then(Z.loadConfigsForDefaultMode),E=Sx(j);Y.emitWarningIfUnsupportedVersion(process.version);let B={profile:j?.profile,logger:E.logger};return{...E,...j,runtime:"node",defaultsMode:w,authSchemePreference:j?.authSchemePreference??$.loadConfig(H.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,B),bodyLengthChecker:j?.bodyLengthChecker??O.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Y.createDefaultUserAgentProvider({serviceId:E.serviceId,clientVersion:gw.version}),httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4")||(async(G)=>await j.credentialDefaultProvider(G?.__config||{})()),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(N)=>N.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],maxAttempts:j?.maxAttempts??$.loadConfig(c.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??$.loadConfig($.NODE_REGION_CONFIG_OPTIONS,{...$.NODE_REGION_CONFIG_FILE_OPTIONS,...B}),requestHandler:kj.NodeHttpHandler.create(j?.requestHandler??x),retryMode:j?.retryMode??$.loadConfig({...c.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await x()).retryMode||c.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??O.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:j?.sigv4aSigningRegionSet??$.loadConfig(H.NODE_SIGV4A_CONFIG_OPTIONS,B),streamCollector:j?.streamCollector??kj.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??$.loadConfig($.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,B),useFipsEndpoint:j?.useFipsEndpoint??$.loadConfig($.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,B),userAgentAppId:j?.userAgentAppId??$.loadConfig(Y.NODE_APP_ID_CONFIG_OPTIONS,B)}},ux=(j)=>{let{httpAuthSchemes:w,httpAuthSchemeProvider:x,credentials:E}=j;return{setHttpAuthScheme(B){let N=w.findIndex((G)=>G.schemeId===B.schemeId);if(N===-1)w.push(B);else w.splice(N,1,B)},httpAuthSchemes(){return w},setHttpAuthSchemeProvider(B){x=B},httpAuthSchemeProvider(){return x},setCredentials(B){E=B},credentials(){return E}}},dx=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},px=(j,w)=>{let x=Object.assign(Y.getAwsRegionExtensionConfiguration(j),Z.getDefaultExtensionConfiguration(j),d.getHttpHandlerExtensionConfiguration(j),ux(j));return w.forEach((E)=>E.configure(x)),Object.assign(j,Y.resolveAwsRegionExtensionConfiguration(x),Z.resolveDefaultRuntimeConfig(x),d.resolveHttpHandlerRuntimeConfig(x),dx(x))};class u extends Z.Client{config;constructor(...[j]){let w=cx(j||{});super(w);this.initConfig=w;let x=pw(w),E=Y.resolveUserAgentConfig(x),B=c.resolveRetryConfig(E),N=$.resolveRegionConfig(B),G=Y.resolveHostHeaderConfig(N),M=b.resolveEndpointConfig(G),z=dw(M),D=px(z,j?.extensions||[]);this.config=D,this.middlewareStack.use(Gj.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Y.getUserAgentPlugin(this.config)),this.middlewareStack.use(c.getRetryPlugin(this.config)),this.middlewareStack.use(d.getContentLengthPlugin(this.config)),this.middlewareStack.use(Y.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Y.getLoggerPlugin(this.config)),this.middlewareStack.use(Y.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(S.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Cw,identityProviderConfigProvider:async(k)=>new S.DefaultIdentityProviderConfig({"aws.auth#sigv4":k.credentials,"aws.auth#sigv4a":k.credentials})})),this.middlewareStack.use(S.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class i extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Fw).build(){}class t extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Gw).build(){}var lx={AssumeRoleCommand:i,AssumeRoleWithWebIdentityCommand:t};class Zj extends u{}Z.createAggregatedClient(lx,Zj);var Kw=(j)=>{if(typeof j?.Arn==="string"){let w=j.Arn.split(":");if(w.length>4&&w[4]!=="")return w[4]}return},Nw=async(j,w,x,E={})=>{let B=typeof j==="function"?await j():j,N=typeof w==="function"?await w():w,G="",M=B??N??(G=await Y.stsRegionDefaultResolver(E)());return x?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${B} (credential provider clientConfig)`,`${N} (contextual client)`,`${G} (STS default: AWS_REGION, profile region, or us-east-1)`),M},gx=(j,w)=>{let x,E;return async(B,N)=>{if(E=B,!x){let{logger:k=j?.parentClientConfig?.logger,profile:I=j?.parentClientConfig?.profile,region:U,requestHandler:L=j?.parentClientConfig?.requestHandler,credentialProviderLogger:V,userAgentAppId:J=j?.parentClientConfig?.userAgentAppId}=j,s=await Nw(U,j?.parentClientConfig?.region,V,{logger:k,profile:I}),e=!Qw(L);x=new w({...j,userAgentAppId:J,profile:I,credentialDefaultProvider:()=>async()=>E,region:s,requestHandler:e?L:void 0,logger:k})}let{Credentials:G,AssumedRoleUser:M}=await x.send(new i(N));if(!G||!G.AccessKeyId||!G.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${N.RoleArn}`);let z=Kw(M),D={accessKeyId:G.AccessKeyId,secretAccessKey:G.SecretAccessKey,sessionToken:G.SessionToken,expiration:G.Expiration,...G.CredentialScope&&{credentialScope:G.CredentialScope},...z&&{accountId:z}};return Y.setCredentialFeature(D,"CREDENTIALS_STS_ASSUME_ROLE","i"),D}},ax=(j,w)=>{let x;return async(E)=>{if(!x){let{logger:z=j?.parentClientConfig?.logger,profile:D=j?.parentClientConfig?.profile,region:k,requestHandler:I=j?.parentClientConfig?.requestHandler,credentialProviderLogger:U,userAgentAppId:L=j?.parentClientConfig?.userAgentAppId}=j,V=await Nw(k,j?.parentClientConfig?.region,U,{logger:z,profile:D}),J=!Qw(I);x=new w({...j,userAgentAppId:L,profile:D,region:V,requestHandler:J?I:void 0,logger:z})}let{Credentials:B,AssumedRoleUser:N}=await x.send(new t(E));if(!B||!B.AccessKeyId||!B.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${E.RoleArn}`);let G=Kw(N),M={accessKeyId:B.AccessKeyId,secretAccessKey:B.SecretAccessKey,sessionToken:B.SessionToken,expiration:B.Expiration,...B.CredentialScope&&{credentialScope:B.CredentialScope},...G&&{accountId:G}};if(G)Y.setCredentialFeature(M,"RESOLVED_ACCOUNT_ID","T");return Y.setCredentialFeature(M,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),M}},Qw=(j)=>{return j?.metadata?.handlerProtocol==="h2"},Xw=(j,w)=>{if(!w)return j;else return class extends j{constructor(E){super(E);for(let B of w)this.middlewareStack.use(B)}}},Yw=(j={},w)=>gx(j,Xw(u,w)),Zw=(j={},w)=>ax(j,Xw(u,w)),rx=(j)=>(w)=>j({roleAssumer:Yw(w),roleAssumerWithWebIdentity:Zw(w),...w});var{Command:ox,Client:nx}=Z,ix=Fw,tx=i,sx=tj,ex=sj,jB=Gw,wB=t,xB=ej,BB=jw,EB=Xj,FB=Yj,GB=p,KB=pj,NB=n,QB=lj,XB=r,YB=gj,ZB=o,$B=aj,MB=l,DB=rj,yB=g,LB=oj,zB=ww,kB=xw,UB=a,JB=nj,HB=Zj,bB=u,PB=y,IB=dj,hB=Bw,fB=rx,_B=ij,WB=Yw,AB=Zw;export{AB as getDefaultRoleAssumerWithWebIdentity,WB as getDefaultRoleAssumer,_B as errorTypeRegistries,fB as decorateDefaultCredentialProvider,nx as __Client,hB as Tag$,IB as STSServiceException$,PB as STSServiceException,bB as STSClient,HB as STS,JB as RegionDisabledException$,UB as RegionDisabledException,kB as ProvidedContext$,zB as PolicyDescriptorType$,LB as PackedPolicyTooLargeException$,yB as PackedPolicyTooLargeException,DB as MalformedPolicyDocumentException$,MB as MalformedPolicyDocumentException,$B as InvalidIdentityTokenException$,ZB as InvalidIdentityTokenException,YB as IDPRejectedClaimException$,XB as IDPRejectedClaimException,QB as IDPCommunicationErrorException$,NB as IDPCommunicationErrorException,KB as ExpiredTokenException$,GB as ExpiredTokenException,FB as Credentials$,EB as AssumedRoleUser$,BB as AssumeRoleWithWebIdentityResponse$,xB as AssumeRoleWithWebIdentityRequest$,wB as AssumeRoleWithWebIdentityCommand,jB as AssumeRoleWithWebIdentity$,ex as AssumeRoleResponse$,sx as AssumeRoleRequest$,tx as AssumeRoleCommand,ix as AssumeRole$,ox as $Command};export default {get getDefaultRoleAssumerWithWebIdentity(){return AB},get getDefaultRoleAssumer(){return WB},get errorTypeRegistries(){return _B},get decorateDefaultCredentialProvider(){return fB},get __Client(){return nx},get Tag$(){return hB},get STSServiceException$(){return IB},get STSServiceException(){return PB},get STSClient(){return bB},get STS(){return HB},get RegionDisabledException$(){return JB},get RegionDisabledException(){return UB},get ProvidedContext$(){return kB},get PolicyDescriptorType$(){return zB},get PackedPolicyTooLargeException$(){return LB},get PackedPolicyTooLargeException(){return yB},get MalformedPolicyDocumentException$(){return DB},get MalformedPolicyDocumentException(){return MB},get InvalidIdentityTokenException$(){return $B},get InvalidIdentityTokenException(){return ZB},get IDPRejectedClaimException$(){return YB},get IDPRejectedClaimException(){return XB},get IDPCommunicationErrorException$(){return QB},get IDPCommunicationErrorException(){return NB},get ExpiredTokenException$(){return KB},get ExpiredTokenException(){return GB},get Credentials$(){return FB},get AssumedRoleUser$(){return EB},get AssumeRoleWithWebIdentityResponse$(){return BB},get AssumeRoleWithWebIdentityRequest$(){return xB},get AssumeRoleWithWebIdentityCommand(){return wB},get AssumeRoleWithWebIdentity$(){return jB},get AssumeRoleResponse$(){return ex},get AssumeRoleRequest$(){return sx},get AssumeRoleCommand(){return tx},get AssumeRole$(){return ix},get $Command(){return ox}};
|
|
2
|
+
import{Fe as _w}from"./chunk-n4qxj391.js";import{Ge as Mw,Je as Aw}from"./chunk-twd6r7nf.js";import{Ke as Ww}from"./chunk-3xdmxm5t.js";import{Le as Iw,Me as hw,Ne as fw}from"./chunk-9xxnwb33.js";import{Oe as Pw}from"./chunk-qdvnscxm.js";import{Gf as kw,Hf as Uw,If as Jw,Jf as Hw,Kf as bw}from"./chunk-yxttz5z5.js";import{TP as $w}from"./chunk-f2pv705d.js";var zj=$w((Dw)=>{var jj=Mw(),m={CrtSignerV4:null},wj="X-Amz-S3session-Token",Mj=wj.toLowerCase();class xj extends jj.SignatureV4{async signWithCredentials(j,w,x){let E=Dj(w);j.headers[Mj]=w.sessionToken;let B=this;return yj(B,E),B.signRequest(j,x??{})}async presignWithCredentials(j,w,x){let E=Dj(w);return delete j.headers[Mj],j.headers[wj]=w.sessionToken,j.query=j.query??{},j.query[wj]=w.sessionToken,yj(this,E),this.presign(j,x)}}function Dj(j){return{accessKeyId:j.accessKeyId,secretAccessKey:j.secretAccessKey,expiration:j.expiration}}function yj(j,w){let x=j.credentialProvider;j.credentialProvider=()=>{return j.credentialProvider=x,Promise.resolve(w)}}class Lj{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof m.CrtSignerV4==="function")return"crt";else if(typeof jj.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(j){this.sigv4Signer=new xj(j),this.signerOptions=j}async sign(j,w={}){if(w.signingRegion==="*")return this.getSigv4aSigner().sign(j,w);return this.sigv4Signer.sign(j,w)}async signWithCredentials(j,w,x={}){if(x.signingRegion==="*"){let E=this.getSigv4aSigner(),B=m.CrtSignerV4;if(B&&E instanceof B)return E.signWithCredentials(j,w,x);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(j,w,x)}async presign(j,w={}){if(w.signingRegion==="*"){let x=this.getSigv4aSigner(),E=m.CrtSignerV4;if(E&&x instanceof E)return x.presign(j,w);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(j,w)}async presignWithCredentials(j,w,x={}){if(x.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(j,w,x)}getSigv4aSigner(){if(!this.sigv4aSigner){let j=m.CrtSignerV4,w=jj.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!j&&!w)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(j&&typeof j==="function")this.sigv4aSigner=new j({...this.signerOptions,signingAlgorithm:1});else if(w&&typeof w==="function")this.sigv4aSigner=new w({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!w||typeof w!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new w({...this.signerOptions})}}return this.sigv4aSigner}}Dw.SignatureV4MultiRegion=Lj;Dw.SignatureV4SignWithCredentials=xj;Dw.signatureV4CrtContainer=m});var Y=fw(),S=hw(),Z=Uw(),$=Jw(),b=Hw(),d=Pw(),c=Iw(),Gj=kw(),H=_w(),_j=zj(),O=bw(),kj=Ww(),vw=Aw(),T="ref",h=-1,q=!0,Uj="isSet",Wj="PartitionResult",C="booleanEquals",Q="stringEquals",Bj="getAttr",Jj="us-east-1",Hj="sigv4",bj="sts",Pj="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ij={[T]:"Endpoint"},X={[T]:"Region"},Ej={[T]:Wj},R={},hj=[X],fj={conditions:[[Uj,[Ij]],[Uj,hj],["aws.partition",hj,Wj],[C,[{[T]:"UseFIPS"},q]],[C,[{[T]:"UseDualStack"},q]],[Q,[X,"aws-global"]],[C,[{[T]:"UseGlobalEndpoint"},q]],[Q,[X,"eu-central-1"]],[C,[{fn:Bj,argv:[Ej,"supportsDualStack"]},q]],[C,[{fn:Bj,argv:[Ej,"supportsFIPS"]},q]],[Q,[X,"ap-south-1"]],[Q,[X,"eu-north-1"]],[Q,[X,"eu-west-1"]],[Q,[X,"eu-west-2"]],[Q,[X,"eu-west-3"]],[Q,[X,"sa-east-1"]],[Q,[X,Jj]],[Q,[X,"us-east-2"]],[Q,[X,"us-west-2"]],[Q,[X,"us-west-1"]],[Q,[X,"ca-central-1"]],[Q,[X,"ap-southeast-1"]],[Q,[X,"ap-northeast-1"]],[Q,[X,"ap-southeast-2"]],[Q,[{fn:Bj,argv:[Ej,"name"]},"aws-us-gov"]]],results:[[h],["https://sts.amazonaws.com",{authSchemes:[{name:Hj,signingName:bj,signingRegion:Jj}]}],[Pj,{authSchemes:[{name:Hj,signingName:bj,signingRegion:"{Region}"}]}],[h,"Invalid Configuration: FIPS and custom endpoint are not supported"],[h,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ij,R],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",R],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",R],[h,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"DualStack is enabled but this partition does not support DualStack"],[Pj,R],[h,"Invalid Configuration: Missing Region"]]},Vw=2,F=1e8,Rw=new Int32Array([-1,1,-1,0,30,3,1,4,F+14,2,5,F+14,3,25,6,4,24,7,5,F+1,8,6,9,F+13,7,F+1,10,10,F+1,11,11,F+1,12,12,F+1,13,13,F+1,14,14,F+1,15,15,F+1,16,16,F+1,17,17,F+1,18,18,F+1,19,19,F+1,20,20,F+1,21,21,F+1,22,22,F+1,23,23,F+1,F+2,8,F+11,F+12,4,28,26,9,27,F+10,24,F+8,F+9,8,29,F+7,9,F+6,F+7,3,F+3,31,4,F+4,F+5]),Ow=b.BinaryDecisionDiagram.from(Rw,Vw,fj.conditions,fj.results),Tw=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Aj=(j,w={})=>{return Tw.get(j,()=>b.decideEndpoint(Ow,{endpointParams:j,logger:w.logger}))};b.customEndpointFunctions.aws=Y.awsEndpointFunctions;var mw=(j)=>async(w,x,E)=>{if(!E)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let B=await j(w,x,E),N=Z.getSmithyContext(x)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!N)throw Error(`getEndpointParameterInstructions() is not defined on '${x.commandName}'`);let G=await b.resolveParams(E,{getEndpointParameterInstructions:N},w);return Object.assign(B,G)},qw=async(j,w,x)=>{return{operation:Z.getSmithyContext(w).operation,region:await Z.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Cw=mw(qw);function vj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Fj(j){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Vj(j){return{schemeId:"smithy.api#noAuth"}}var Sw=(j,w,x)=>{return(B)=>{let G=j(B).properties?.authSchemes;if(!G)return w(B);let M=[];for(let z of G){let{name:D,properties:k={},...I}=z,U=D.toLowerCase();if(D!==U)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${D}' to '${U}'`);let L;if(U==="sigv4a"){L="aws.auth#sigv4a";let s=G.find((e)=>{let $j=e.name.toLowerCase();return $j!=="sigv4a"&&$j.startsWith("sigv4")});if(_j.SignatureV4MultiRegion.sigv4aDependency()==="none"&&s)continue}else if(U.startsWith("sigv4"))L="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${U}'`);let V=x[L];if(!V)throw Error(`Could not find HttpAuthOption create function for '${L}'`);let J=V(B);J.schemeId=L,J.signingProperties={...J.signingProperties||{},...I,...k},M.push(J)}return M}},cw=(j)=>{let w=[];switch(j.operation){case"AssumeRoleWithWebIdentity":{w.push(Vj()),w.push(Fj(j));break}default:w.push(vj(j)),w.push(Fj(j))}return w},uw=Sw(Aj,cw,{"aws.auth#sigv4":vj,"aws.auth#sigv4a":Fj,"smithy.api#noAuth":Vj}),dw=(j)=>{let w=H.resolveAwsSdkSigV4Config(j),x=H.resolveAwsSdkSigV4AConfig(w);return Object.assign(x,{authSchemePreference:Z.normalizeProvider(j.authSchemePreference??[])})},pw=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,useGlobalEndpoint:j.useGlobalEndpoint??!1,defaultSigningName:"sts"})},Rj={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},lw="3.997.14",gw={version:lw};class y extends Z.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,y.prototype)}}class p extends y{name="ExpiredTokenException";$fault="client";constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,p.prototype)}}class l extends y{name="MalformedPolicyDocumentException";$fault="client";constructor(j){super({name:"MalformedPolicyDocumentException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype)}}class g extends y{name="PackedPolicyTooLargeException";$fault="client";constructor(j){super({name:"PackedPolicyTooLargeException",$fault:"client",...j});Object.setPrototypeOf(this,g.prototype)}}class a extends y{name="RegionDisabledException";$fault="client";constructor(j){super({name:"RegionDisabledException",$fault:"client",...j});Object.setPrototypeOf(this,a.prototype)}}class r extends y{name="IDPRejectedClaimException";$fault="client";constructor(j){super({name:"IDPRejectedClaimException",$fault:"client",...j});Object.setPrototypeOf(this,r.prototype)}}class o extends y{name="InvalidIdentityTokenException";$fault="client";constructor(j){super({name:"InvalidIdentityTokenException",$fault:"client",...j});Object.setPrototypeOf(this,o.prototype)}}class n extends y{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(j){super({name:"IDPCommunicationErrorException",$fault:"client",...j});Object.setPrototypeOf(this,n.prototype)}}var aw="Arn",rw="AccessKeyId",ow="AssumeRole",nw="AssumedRoleId",iw="AssumeRoleRequest",tw="AssumeRoleResponse",Kj="AssumedRoleUser",sw="AssumeRoleWithWebIdentity",ew="AssumeRoleWithWebIdentityRequest",jx="AssumeRoleWithWebIdentityResponse",wx="Audience",Nj="Credentials",xx="ContextAssertion",Oj="DurationSeconds",Bx="Expiration",Ex="ExternalId",Fx="ExpiredTokenException",Gx="IDPCommunicationErrorException",Kx="IDPRejectedClaimException",Nx="InvalidIdentityTokenException",Qx="Key",Xx="MalformedPolicyDocumentException",Tj="Policy",mj="PolicyArns",Yx="ProviderArn",Zx="ProvidedContexts",$x="ProvidedContextsListType",Mx="ProvidedContext",Dx="PolicyDescriptorType",yx="ProviderId",qj="PackedPolicySize",Lx="PackedPolicyTooLargeException",zx="Provider",Cj="RoleArn",kx="RegionDisabledException",Sj="RoleSessionName",Ux="SecretAccessKey",Jx="SubjectFromWebIdentityToken",Qj="SourceIdentity",Hx="SerialNumber",bx="SessionToken",Px="Tags",Ix="TokenCode",hx="TransitiveTagKeys",fx="Tag",_x="Value",Wx="WebIdentityToken",Ax="arn",vx="accessKeySecretType",f="awsQueryError",_="client",Vx="clientTokenType",W="error",A="httpError",v="message",Rx="policyDescriptorListType",cj="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ox="tagListType",K="com.amazonaws.sts",uj=Gj.TypeRegistry.for(cj),dj=[-3,cj,"STSServiceException",0,[],[]];uj.registerError(dj,y);var P=Gj.TypeRegistry.for(K),pj=[-3,K,Fx,{[f]:["ExpiredTokenException",400],[W]:_,[A]:400},[v],[0]];P.registerError(pj,p);var lj=[-3,K,Gx,{[f]:["IDPCommunicationError",400],[W]:_,[A]:400},[v],[0]];P.registerError(lj,n);var gj=[-3,K,Kx,{[f]:["IDPRejectedClaim",403],[W]:_,[A]:403},[v],[0]];P.registerError(gj,r);var aj=[-3,K,Nx,{[f]:["InvalidIdentityToken",400],[W]:_,[A]:400},[v],[0]];P.registerError(aj,o);var rj=[-3,K,Xx,{[f]:["MalformedPolicyDocument",400],[W]:_,[A]:400},[v],[0]];P.registerError(rj,l);var oj=[-3,K,Lx,{[f]:["PackedPolicyTooLarge",400],[W]:_,[A]:400},[v],[0]];P.registerError(oj,g);var nj=[-3,K,kx,{[f]:["RegionDisabledException",403],[W]:_,[A]:403},[v],[0]];P.registerError(nj,a);var ij=[uj,P],Tx=[0,K,vx,8,0],mx=[0,K,Vx,8,0],Xj=[3,K,Kj,0,[nw,aw],[0,0],2],tj=[3,K,iw,0,[Cj,Sj,mj,Tj,Oj,Px,hx,Ex,Hx,Ix,Qj,Zx],[0,0,()=>Ew,0,1,()=>Cx,64,0,0,0,0,()=>qx],2],sj=[3,K,tw,0,[Nj,Kj,qj,Qj],[[()=>Yj,0],()=>Xj,1,0]],ej=[3,K,ew,0,[Cj,Sj,Wx,yx,mj,Tj,Oj],[0,0,[()=>mx,0],0,()=>Ew,0,1],3],jw=[3,K,jx,0,[Nj,Jx,Kj,qj,zx,wx,Qj],[[()=>Yj,0],0,()=>Xj,1,0,0,0]],Yj=[3,K,Nj,0,[rw,Ux,bx,Bx],[0,[()=>Tx,0],0,4],4],ww=[3,K,Dx,0,[Ax],[0]],xw=[3,K,Mx,0,[Yx,xx],[0,0]],Bw=[3,K,fx,0,[Qx,_x],[0,0],2],Ew=[1,K,Rx,0,()=>ww],qx=[1,K,$x,0,()=>xw],Cx=[1,K,Ox,0,()=>Bw],Fw=[9,K,ow,0,()=>tj,()=>sj],Gw=[9,K,sw,0,()=>ej,()=>jw],Sx=(j)=>{return{apiVersion:"2011-06-15",base64Decoder:j?.base64Decoder??O.fromBase64,base64Encoder:j?.base64Encoder??O.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??Aj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??uw,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],logger:j?.logger??new Z.NoOpLogger,protocol:j?.protocol??vw.AwsQueryProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:ij,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:j?.serviceId??"STS",signerConstructor:j?.signerConstructor??_j.SignatureV4MultiRegion,urlParser:j?.urlParser??d.parseUrl,utf8Decoder:j?.utf8Decoder??O.fromUtf8,utf8Encoder:j?.utf8Encoder??O.toUtf8}},cx=(j)=>{Z.emitWarningIfUnsupportedVersion(process.version);let w=$.resolveDefaultsModeConfig(j),x=()=>w().then(Z.loadConfigsForDefaultMode),E=Sx(j);Y.emitWarningIfUnsupportedVersion(process.version);let B={profile:j?.profile,logger:E.logger};return{...E,...j,runtime:"node",defaultsMode:w,authSchemePreference:j?.authSchemePreference??$.loadConfig(H.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,B),bodyLengthChecker:j?.bodyLengthChecker??O.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Y.createDefaultUserAgentProvider({serviceId:E.serviceId,clientVersion:gw.version}),httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4")||(async(G)=>await j.credentialDefaultProvider(G?.__config||{})()),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(N)=>N.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],maxAttempts:j?.maxAttempts??$.loadConfig(c.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??$.loadConfig($.NODE_REGION_CONFIG_OPTIONS,{...$.NODE_REGION_CONFIG_FILE_OPTIONS,...B}),requestHandler:kj.NodeHttpHandler.create(j?.requestHandler??x),retryMode:j?.retryMode??$.loadConfig({...c.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await x()).retryMode||c.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??O.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:j?.sigv4aSigningRegionSet??$.loadConfig(H.NODE_SIGV4A_CONFIG_OPTIONS,B),streamCollector:j?.streamCollector??kj.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??$.loadConfig($.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,B),useFipsEndpoint:j?.useFipsEndpoint??$.loadConfig($.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,B),userAgentAppId:j?.userAgentAppId??$.loadConfig(Y.NODE_APP_ID_CONFIG_OPTIONS,B)}},ux=(j)=>{let{httpAuthSchemes:w,httpAuthSchemeProvider:x,credentials:E}=j;return{setHttpAuthScheme(B){let N=w.findIndex((G)=>G.schemeId===B.schemeId);if(N===-1)w.push(B);else w.splice(N,1,B)},httpAuthSchemes(){return w},setHttpAuthSchemeProvider(B){x=B},httpAuthSchemeProvider(){return x},setCredentials(B){E=B},credentials(){return E}}},dx=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},px=(j,w)=>{let x=Object.assign(Y.getAwsRegionExtensionConfiguration(j),Z.getDefaultExtensionConfiguration(j),d.getHttpHandlerExtensionConfiguration(j),ux(j));return w.forEach((E)=>E.configure(x)),Object.assign(j,Y.resolveAwsRegionExtensionConfiguration(x),Z.resolveDefaultRuntimeConfig(x),d.resolveHttpHandlerRuntimeConfig(x),dx(x))};class u extends Z.Client{config;constructor(...[j]){let w=cx(j||{});super(w);this.initConfig=w;let x=pw(w),E=Y.resolveUserAgentConfig(x),B=c.resolveRetryConfig(E),N=$.resolveRegionConfig(B),G=Y.resolveHostHeaderConfig(N),M=b.resolveEndpointConfig(G),z=dw(M),D=px(z,j?.extensions||[]);this.config=D,this.middlewareStack.use(Gj.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Y.getUserAgentPlugin(this.config)),this.middlewareStack.use(c.getRetryPlugin(this.config)),this.middlewareStack.use(d.getContentLengthPlugin(this.config)),this.middlewareStack.use(Y.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Y.getLoggerPlugin(this.config)),this.middlewareStack.use(Y.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(S.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Cw,identityProviderConfigProvider:async(k)=>new S.DefaultIdentityProviderConfig({"aws.auth#sigv4":k.credentials,"aws.auth#sigv4a":k.credentials})})),this.middlewareStack.use(S.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class i extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Fw).build(){}class t extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Gw).build(){}var lx={AssumeRoleCommand:i,AssumeRoleWithWebIdentityCommand:t};class Zj extends u{}Z.createAggregatedClient(lx,Zj);var Kw=(j)=>{if(typeof j?.Arn==="string"){let w=j.Arn.split(":");if(w.length>4&&w[4]!=="")return w[4]}return},Nw=async(j,w,x,E={})=>{let B=typeof j==="function"?await j():j,N=typeof w==="function"?await w():w,G="",M=B??N??(G=await Y.stsRegionDefaultResolver(E)());return x?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${B} (credential provider clientConfig)`,`${N} (contextual client)`,`${G} (STS default: AWS_REGION, profile region, or us-east-1)`),M},gx=(j,w)=>{let x,E;return async(B,N)=>{if(E=B,!x){let{logger:k=j?.parentClientConfig?.logger,profile:I=j?.parentClientConfig?.profile,region:U,requestHandler:L=j?.parentClientConfig?.requestHandler,credentialProviderLogger:V,userAgentAppId:J=j?.parentClientConfig?.userAgentAppId}=j,s=await Nw(U,j?.parentClientConfig?.region,V,{logger:k,profile:I}),e=!Qw(L);x=new w({...j,userAgentAppId:J,profile:I,credentialDefaultProvider:()=>async()=>E,region:s,requestHandler:e?L:void 0,logger:k})}let{Credentials:G,AssumedRoleUser:M}=await x.send(new i(N));if(!G||!G.AccessKeyId||!G.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${N.RoleArn}`);let z=Kw(M),D={accessKeyId:G.AccessKeyId,secretAccessKey:G.SecretAccessKey,sessionToken:G.SessionToken,expiration:G.Expiration,...G.CredentialScope&&{credentialScope:G.CredentialScope},...z&&{accountId:z}};return Y.setCredentialFeature(D,"CREDENTIALS_STS_ASSUME_ROLE","i"),D}},ax=(j,w)=>{let x;return async(E)=>{if(!x){let{logger:z=j?.parentClientConfig?.logger,profile:D=j?.parentClientConfig?.profile,region:k,requestHandler:I=j?.parentClientConfig?.requestHandler,credentialProviderLogger:U,userAgentAppId:L=j?.parentClientConfig?.userAgentAppId}=j,V=await Nw(k,j?.parentClientConfig?.region,U,{logger:z,profile:D}),J=!Qw(I);x=new w({...j,userAgentAppId:L,profile:D,region:V,requestHandler:J?I:void 0,logger:z})}let{Credentials:B,AssumedRoleUser:N}=await x.send(new t(E));if(!B||!B.AccessKeyId||!B.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${E.RoleArn}`);let G=Kw(N),M={accessKeyId:B.AccessKeyId,secretAccessKey:B.SecretAccessKey,sessionToken:B.SessionToken,expiration:B.Expiration,...B.CredentialScope&&{credentialScope:B.CredentialScope},...G&&{accountId:G}};if(G)Y.setCredentialFeature(M,"RESOLVED_ACCOUNT_ID","T");return Y.setCredentialFeature(M,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),M}},Qw=(j)=>{return j?.metadata?.handlerProtocol==="h2"},Xw=(j,w)=>{if(!w)return j;else return class extends j{constructor(E){super(E);for(let B of w)this.middlewareStack.use(B)}}},Yw=(j={},w)=>gx(j,Xw(u,w)),Zw=(j={},w)=>ax(j,Xw(u,w)),rx=(j)=>(w)=>j({roleAssumer:Yw(w),roleAssumerWithWebIdentity:Zw(w),...w});var{Command:ox,Client:nx}=Z,ix=Fw,tx=i,sx=tj,ex=sj,jB=Gw,wB=t,xB=ej,BB=jw,EB=Xj,FB=Yj,GB=p,KB=pj,NB=n,QB=lj,XB=r,YB=gj,ZB=o,$B=aj,MB=l,DB=rj,yB=g,LB=oj,zB=ww,kB=xw,UB=a,JB=nj,HB=Zj,bB=u,PB=y,IB=dj,hB=Bw,fB=rx,_B=ij,WB=Yw,AB=Zw;export{AB as getDefaultRoleAssumerWithWebIdentity,WB as getDefaultRoleAssumer,_B as errorTypeRegistries,fB as decorateDefaultCredentialProvider,nx as __Client,hB as Tag$,IB as STSServiceException$,PB as STSServiceException,bB as STSClient,HB as STS,JB as RegionDisabledException$,UB as RegionDisabledException,kB as ProvidedContext$,zB as PolicyDescriptorType$,LB as PackedPolicyTooLargeException$,yB as PackedPolicyTooLargeException,DB as MalformedPolicyDocumentException$,MB as MalformedPolicyDocumentException,$B as InvalidIdentityTokenException$,ZB as InvalidIdentityTokenException,YB as IDPRejectedClaimException$,XB as IDPRejectedClaimException,QB as IDPCommunicationErrorException$,NB as IDPCommunicationErrorException,KB as ExpiredTokenException$,GB as ExpiredTokenException,FB as Credentials$,EB as AssumedRoleUser$,BB as AssumeRoleWithWebIdentityResponse$,xB as AssumeRoleWithWebIdentityRequest$,wB as AssumeRoleWithWebIdentityCommand,jB as AssumeRoleWithWebIdentity$,ex as AssumeRoleResponse$,sx as AssumeRoleRequest$,tx as AssumeRoleCommand,ix as AssumeRole$,ox as $Command};export default {get getDefaultRoleAssumerWithWebIdentity(){return AB},get getDefaultRoleAssumer(){return WB},get errorTypeRegistries(){return _B},get decorateDefaultCredentialProvider(){return fB},get __Client(){return nx},get Tag$(){return hB},get STSServiceException$(){return IB},get STSServiceException(){return PB},get STSClient(){return bB},get STS(){return HB},get RegionDisabledException$(){return JB},get RegionDisabledException(){return UB},get ProvidedContext$(){return kB},get PolicyDescriptorType$(){return zB},get PackedPolicyTooLargeException$(){return LB},get PackedPolicyTooLargeException(){return yB},get MalformedPolicyDocumentException$(){return DB},get MalformedPolicyDocumentException(){return MB},get InvalidIdentityTokenException$(){return $B},get InvalidIdentityTokenException(){return ZB},get IDPRejectedClaimException$(){return YB},get IDPRejectedClaimException(){return XB},get IDPCommunicationErrorException$(){return QB},get IDPCommunicationErrorException(){return NB},get ExpiredTokenException$(){return KB},get ExpiredTokenException(){return GB},get Credentials$(){return FB},get AssumedRoleUser$(){return EB},get AssumeRoleWithWebIdentityResponse$(){return BB},get AssumeRoleWithWebIdentityRequest$(){return xB},get AssumeRoleWithWebIdentityCommand(){return wB},get AssumeRoleWithWebIdentity$(){return jB},get AssumeRoleResponse$(){return ex},get AssumeRoleRequest$(){return sx},get AssumeRoleCommand(){return tx},get AssumeRole$(){return ix},get $Command(){return ox}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Pf as C}from"./chunk-p8ak162p.js";import"./chunk-nfg7nt13.js";import{Mg as B}from"./chunk-v9w88wpy.js";import"./chunk-f2pv705d.js";function K(){return async(D,q)=>{let w=await B(D,{errorMode:"ignore",overrideAction:({valibotAction:z,jsonSchema:E})=>{let k=C(E,q);if(z.kind==="metadata"&&z.type==="metadata"&&!("$ref"in k)){let f=z.metadata;if(f.example!==void 0)k.example=f.example;if(f.examples&&f.examples.length>0)k.examples=f.examples;if(f.ref)return q.components.schemas={...q.components.schemas,[f.ref]:k},{$ref:`#/components/schemas/${f.ref}`}}return k},...q.options});if("$schema"in w)delete w.$schema;return w}}export{K as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$d as w1}from"./chunk-zc0cdvcv.js";import{sO as r,tO as e1}from"./chunk-r9w0thdk.js";var I1=e1((D0,_1)=>{var e={to(S,J){if(!J)return`\x1B[${S+1}G`;return`\x1B[${J+1};${S+1}H`},move(S,J){let G="";if(S<0)G+=`\x1B[${-S}D`;else if(S>0)G+=`\x1B[${S}C`;if(J<0)G+=`\x1B[${-J}A`;else if(J>0)G+=`\x1B[${J}B`;return G},up:(S=1)=>`\x1B[${S}A`,down:(S=1)=>`\x1B[${S}B`,forward:(S=1)=>`\x1B[${S}C`,backward:(S=1)=>`\x1B[${S}D`,nextLine:(S=1)=>"\x1B[E".repeat(S),prevLine:(S=1)=>"\x1B[F".repeat(S),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},I0={up:(S=1)=>"\x1B[S".repeat(S),down:(S=1)=>"\x1B[T".repeat(S)},S0={screen:"\x1B[2J",up:(S=1)=>"\x1B[1J".repeat(S),down:(S=1)=>"\x1B[J".repeat(S),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(S){let J="";for(let G=0;G<S;G++)J+=this.line+(G<S-1?e.up():"");if(S)J+=e.left;return J}};_1.exports={cursor:e,scroll:I0,erase:S0,beep:"\x07"}});var _=r(I1(),1),f=r(w1(),1);import{stdin as f1,stdout as $1}from"process";import*as E from"readline";import J0 from"readline";import{ReadStream as k1,WriteStream as II}from"tty";function G0({onlyFirst:S=!1}={}){let J=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(J,S?void 0:"g")}var K0=G0();function E1(S){if(typeof S!="string")throw TypeError(`Expected a \`string\`, got \`${typeof S}\``);return S.replace(K0,"")}function x1(S){return S&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S}var g1={exports:{}};(function(S){var J={};S.exports=J,J.eastAsianWidth=function(W){var z=W.charCodeAt(0),H=W.length==2?W.charCodeAt(1):0,I=z;return 55296<=z&&z<=56319&&56320<=H&&H<=57343&&(z&=1023,H&=1023,I=z<<10|H,I+=65536),I==12288||65281<=I&&I<=65376||65504<=I&&I<=65510?"F":I==8361||65377<=I&&I<=65470||65474<=I&&I<=65479||65482<=I&&I<=65487||65490<=I&&I<=65495||65498<=I&&I<=65500||65512<=I&&I<=65518?"H":4352<=I&&I<=4447||4515<=I&&I<=4519||4602<=I&&I<=4607||9001<=I&&I<=9002||11904<=I&&I<=11929||11931<=I&&I<=12019||12032<=I&&I<=12245||12272<=I&&I<=12283||12289<=I&&I<=12350||12353<=I&&I<=12438||12441<=I&&I<=12543||12549<=I&&I<=12589||12593<=I&&I<=12686||12688<=I&&I<=12730||12736<=I&&I<=12771||12784<=I&&I<=12830||12832<=I&&I<=12871||12880<=I&&I<=13054||13056<=I&&I<=19903||19968<=I&&I<=42124||42128<=I&&I<=42182||43360<=I&&I<=43388||44032<=I&&I<=55203||55216<=I&&I<=55238||55243<=I&&I<=55291||63744<=I&&I<=64255||65040<=I&&I<=65049||65072<=I&&I<=65106||65108<=I&&I<=65126||65128<=I&&I<=65131||110592<=I&&I<=110593||127488<=I&&I<=127490||127504<=I&&I<=127546||127552<=I&&I<=127560||127568<=I&&I<=127569||131072<=I&&I<=194367||177984<=I&&I<=196605||196608<=I&&I<=262141?"W":32<=I&&I<=126||162<=I&&I<=163||165<=I&&I<=166||I==172||I==175||10214<=I&&I<=10221||10629<=I&&I<=10630?"Na":I==161||I==164||167<=I&&I<=168||I==170||173<=I&&I<=174||176<=I&&I<=180||182<=I&&I<=186||188<=I&&I<=191||I==198||I==208||215<=I&&I<=216||222<=I&&I<=225||I==230||232<=I&&I<=234||236<=I&&I<=237||I==240||242<=I&&I<=243||247<=I&&I<=250||I==252||I==254||I==257||I==273||I==275||I==283||294<=I&&I<=295||I==299||305<=I&&I<=307||I==312||319<=I&&I<=322||I==324||328<=I&&I<=331||I==333||338<=I&&I<=339||358<=I&&I<=359||I==363||I==462||I==464||I==466||I==468||I==470||I==472||I==474||I==476||I==593||I==609||I==708||I==711||713<=I&&I<=715||I==717||I==720||728<=I&&I<=731||I==733||I==735||768<=I&&I<=879||913<=I&&I<=929||931<=I&&I<=937||945<=I&&I<=961||963<=I&&I<=969||I==1025||1040<=I&&I<=1103||I==1105||I==8208||8211<=I&&I<=8214||8216<=I&&I<=8217||8220<=I&&I<=8221||8224<=I&&I<=8226||8228<=I&&I<=8231||I==8240||8242<=I&&I<=8243||I==8245||I==8251||I==8254||I==8308||I==8319||8321<=I&&I<=8324||I==8364||I==8451||I==8453||I==8457||I==8467||I==8470||8481<=I&&I<=8482||I==8486||I==8491||8531<=I&&I<=8532||8539<=I&&I<=8542||8544<=I&&I<=8555||8560<=I&&I<=8569||I==8585||8592<=I&&I<=8601||8632<=I&&I<=8633||I==8658||I==8660||I==8679||I==8704||8706<=I&&I<=8707||8711<=I&&I<=8712||I==8715||I==8719||I==8721||I==8725||I==8730||8733<=I&&I<=8736||I==8739||I==8741||8743<=I&&I<=8748||I==8750||8756<=I&&I<=8759||8764<=I&&I<=8765||I==8776||I==8780||I==8786||8800<=I&&I<=8801||8804<=I&&I<=8807||8810<=I&&I<=8811||8814<=I&&I<=8815||8834<=I&&I<=8835||8838<=I&&I<=8839||I==8853||I==8857||I==8869||I==8895||I==8978||9312<=I&&I<=9449||9451<=I&&I<=9547||9552<=I&&I<=9587||9600<=I&&I<=9615||9618<=I&&I<=9621||9632<=I&&I<=9633||9635<=I&&I<=9641||9650<=I&&I<=9651||9654<=I&&I<=9655||9660<=I&&I<=9661||9664<=I&&I<=9665||9670<=I&&I<=9672||I==9675||9678<=I&&I<=9681||9698<=I&&I<=9701||I==9711||9733<=I&&I<=9734||I==9737||9742<=I&&I<=9743||9748<=I&&I<=9749||I==9756||I==9758||I==9792||I==9794||9824<=I&&I<=9825||9827<=I&&I<=9829||9831<=I&&I<=9834||9836<=I&&I<=9837||I==9839||9886<=I&&I<=9887||9918<=I&&I<=9919||9924<=I&&I<=9933||9935<=I&&I<=9953||I==9955||9960<=I&&I<=9983||I==10045||I==10071||10102<=I&&I<=10111||11093<=I&&I<=11097||12872<=I&&I<=12879||57344<=I&&I<=63743||65024<=I&&I<=65039||I==65533||127232<=I&&I<=127242||127248<=I&&I<=127277||127280<=I&&I<=127337||127344<=I&&I<=127386||917760<=I&&I<=917999||983040<=I&&I<=1048573||1048576<=I&&I<=1114109?"A":"N"},J.characterLength=function(W){var z=this.eastAsianWidth(W);return z=="F"||z=="W"||z=="A"?2:1};function G(W){return W.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}J.length=function(W){for(var z=G(W),H=0,I=0;I<z.length;I++)H=H+this.characterLength(z[I]);return H},J.slice=function(W,z,H){textLen=J.length(W),z=z||0,H=H||1,z<0&&(z=textLen+z),H<0&&(H=textLen+H);for(var I="",Q=0,q=G(W),Z=0;Z<q.length;Z++){var X=q[Z],C=J.length(X);if(Q>=z-(C==2?1:0))if(Q+C<=H)I+=X;else break;Q+=C}return I}})(g1);var W0=g1.exports,z0=x1(W0),H0=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},Q0=x1(H0);function a(S,J={}){if(typeof S!="string"||S.length===0||(J={ambiguousIsNarrow:!0,...J},S=E1(S),S.length===0))return 0;S=S.replace(Q0()," ");let G=J.ambiguousIsNarrow?1:2,W=0;for(let z of S){let H=z.codePointAt(0);if(H<=31||H>=127&&H<=159||H>=768&&H<=879)continue;switch(z0.eastAsianWidth(z)){case"F":case"W":W+=2;break;case"A":W+=G;break;default:W+=1}}return W}var S1=10,A1=(S=0)=>(J)=>`\x1B[${J+S}m`,V1=(S=0)=>(J)=>`\x1B[${38+S};5;${J}m`,O1=(S=0)=>(J,G,W)=>`\x1B[${38+S};2;${J};${G};${W}m`,U={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(U.modifier);var Y0=Object.keys(U.color),Z0=Object.keys(U.bgColor);[...Y0,...Z0];function q0(){let S=new Map;for(let[J,G]of Object.entries(U)){for(let[W,z]of Object.entries(G))U[W]={open:`\x1B[${z[0]}m`,close:`\x1B[${z[1]}m`},G[W]=U[W],S.set(z[0],z[1]);Object.defineProperty(U,J,{value:G,enumerable:!1})}return Object.defineProperty(U,"codes",{value:S,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=A1(),U.color.ansi256=V1(),U.color.ansi16m=O1(),U.bgColor.ansi=A1(S1),U.bgColor.ansi256=V1(S1),U.bgColor.ansi16m=O1(S1),Object.defineProperties(U,{rgbToAnsi256:{value:(J,G,W)=>J===G&&G===W?J<8?16:J>248?231:Math.round((J-8)/247*24)+232:16+36*Math.round(J/255*5)+6*Math.round(G/255*5)+Math.round(W/255*5),enumerable:!1},hexToRgb:{value:(J)=>{let G=/[a-f\d]{6}|[a-f\d]{3}/i.exec(J.toString(16));if(!G)return[0,0,0];let[W]=G;W.length===3&&(W=[...W].map((H)=>H+H).join(""));let z=Number.parseInt(W,16);return[z>>16&255,z>>8&255,z&255]},enumerable:!1},hexToAnsi256:{value:(J)=>U.rgbToAnsi256(...U.hexToRgb(J)),enumerable:!1},ansi256ToAnsi:{value:(J)=>{if(J<8)return 30+J;if(J<16)return 90+(J-8);let G,W,z;if(J>=232)G=((J-232)*10+8)/255,W=G,z=G;else{J-=16;let Q=J%36;G=Math.floor(J/36)/5,W=Math.floor(Q/6)/5,z=Q%6/5}let H=Math.max(G,W,z)*2;if(H===0)return 30;let I=30+(Math.round(z)<<2|Math.round(W)<<1|Math.round(G));return H===2&&(I+=60),I},enumerable:!1},rgbToAnsi:{value:(J,G,W)=>U.ansi256ToAnsi(U.rgbToAnsi256(J,G,W)),enumerable:!1},hexToAnsi:{value:(J)=>U.ansi256ToAnsi(U.hexToAnsi256(J)),enumerable:!1}}),U}var X0=q0(),i=new Set(["\x1B","\x9B"]),C0=39,z1="\x07",h1="[",N0="]",v1="m",H1=`${N0}8;;`,j1=(S)=>`${i.values().next().value}${h1}${S}${v1}`,B1=(S)=>`${i.values().next().value}${H1}${S}${z1}`,U0=(S)=>S.split(" ").map((J)=>a(J)),J1=(S,J,G)=>{let W=[...J],z=!1,H=!1,I=a(E1(S[S.length-1]));for(let[Q,q]of W.entries()){let Z=a(q);if(I+Z<=G?S[S.length-1]+=q:(S.push(q),I=0),i.has(q)&&(z=!0,H=W.slice(Q+1).join("").startsWith(H1)),z){H?q===z1&&(z=!1,H=!1):q===v1&&(z=!1);continue}I+=Z,I===G&&Q<W.length-1&&(S.push(""),I=0)}!I&&S[S.length-1].length>0&&S.length>1&&(S[S.length-2]+=S.pop())},L0=(S)=>{let J=S.split(" "),G=J.length;for(;G>0&&!(a(J[G-1])>0);)G--;return G===J.length?S:J.slice(0,G).join(" ")+J.slice(G).join("")},P0=(S,J,G={})=>{if(G.trim!==!1&&S.trim()==="")return"";let W="",z,H,I=U0(S),Q=[""];for(let[Z,X]of S.split(" ").entries()){G.trim!==!1&&(Q[Q.length-1]=Q[Q.length-1].trimStart());let C=a(Q[Q.length-1]);if(Z!==0&&(C>=J&&(G.wordWrap===!1||G.trim===!1)&&(Q.push(""),C=0),(C>0||G.trim===!1)&&(Q[Q.length-1]+=" ",C++)),G.hard&&I[Z]>J){let k=J-C,N=1+Math.floor((I[Z]-k-1)/J);Math.floor((I[Z]-1)/J)<N&&Q.push(""),J1(Q,X,J);continue}if(C+I[Z]>J&&C>0&&I[Z]>0){if(G.wordWrap===!1&&C<J){J1(Q,X,J);continue}Q.push("")}if(C+I[Z]>J&&G.wordWrap===!1){J1(Q,X,J);continue}Q[Q.length-1]+=X}G.trim!==!1&&(Q=Q.map((Z)=>L0(Z)));let q=[...Q.join(`
|
|
2
|
+
import{ae as w1}from"./chunk-4zhrg3rv.js";import{SP as r,TP as e1}from"./chunk-f2pv705d.js";var I1=e1((D0,_1)=>{var e={to(S,J){if(!J)return`\x1B[${S+1}G`;return`\x1B[${J+1};${S+1}H`},move(S,J){let G="";if(S<0)G+=`\x1B[${-S}D`;else if(S>0)G+=`\x1B[${S}C`;if(J<0)G+=`\x1B[${-J}A`;else if(J>0)G+=`\x1B[${J}B`;return G},up:(S=1)=>`\x1B[${S}A`,down:(S=1)=>`\x1B[${S}B`,forward:(S=1)=>`\x1B[${S}C`,backward:(S=1)=>`\x1B[${S}D`,nextLine:(S=1)=>"\x1B[E".repeat(S),prevLine:(S=1)=>"\x1B[F".repeat(S),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},I0={up:(S=1)=>"\x1B[S".repeat(S),down:(S=1)=>"\x1B[T".repeat(S)},S0={screen:"\x1B[2J",up:(S=1)=>"\x1B[1J".repeat(S),down:(S=1)=>"\x1B[J".repeat(S),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(S){let J="";for(let G=0;G<S;G++)J+=this.line+(G<S-1?e.up():"");if(S)J+=e.left;return J}};_1.exports={cursor:e,scroll:I0,erase:S0,beep:"\x07"}});var _=r(I1(),1),f=r(w1(),1);import{stdin as f1,stdout as $1}from"process";import*as E from"readline";import J0 from"readline";import{ReadStream as k1,WriteStream as II}from"tty";function G0({onlyFirst:S=!1}={}){let J=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(J,S?void 0:"g")}var K0=G0();function E1(S){if(typeof S!="string")throw TypeError(`Expected a \`string\`, got \`${typeof S}\``);return S.replace(K0,"")}function x1(S){return S&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S}var g1={exports:{}};(function(S){var J={};S.exports=J,J.eastAsianWidth=function(W){var z=W.charCodeAt(0),H=W.length==2?W.charCodeAt(1):0,I=z;return 55296<=z&&z<=56319&&56320<=H&&H<=57343&&(z&=1023,H&=1023,I=z<<10|H,I+=65536),I==12288||65281<=I&&I<=65376||65504<=I&&I<=65510?"F":I==8361||65377<=I&&I<=65470||65474<=I&&I<=65479||65482<=I&&I<=65487||65490<=I&&I<=65495||65498<=I&&I<=65500||65512<=I&&I<=65518?"H":4352<=I&&I<=4447||4515<=I&&I<=4519||4602<=I&&I<=4607||9001<=I&&I<=9002||11904<=I&&I<=11929||11931<=I&&I<=12019||12032<=I&&I<=12245||12272<=I&&I<=12283||12289<=I&&I<=12350||12353<=I&&I<=12438||12441<=I&&I<=12543||12549<=I&&I<=12589||12593<=I&&I<=12686||12688<=I&&I<=12730||12736<=I&&I<=12771||12784<=I&&I<=12830||12832<=I&&I<=12871||12880<=I&&I<=13054||13056<=I&&I<=19903||19968<=I&&I<=42124||42128<=I&&I<=42182||43360<=I&&I<=43388||44032<=I&&I<=55203||55216<=I&&I<=55238||55243<=I&&I<=55291||63744<=I&&I<=64255||65040<=I&&I<=65049||65072<=I&&I<=65106||65108<=I&&I<=65126||65128<=I&&I<=65131||110592<=I&&I<=110593||127488<=I&&I<=127490||127504<=I&&I<=127546||127552<=I&&I<=127560||127568<=I&&I<=127569||131072<=I&&I<=194367||177984<=I&&I<=196605||196608<=I&&I<=262141?"W":32<=I&&I<=126||162<=I&&I<=163||165<=I&&I<=166||I==172||I==175||10214<=I&&I<=10221||10629<=I&&I<=10630?"Na":I==161||I==164||167<=I&&I<=168||I==170||173<=I&&I<=174||176<=I&&I<=180||182<=I&&I<=186||188<=I&&I<=191||I==198||I==208||215<=I&&I<=216||222<=I&&I<=225||I==230||232<=I&&I<=234||236<=I&&I<=237||I==240||242<=I&&I<=243||247<=I&&I<=250||I==252||I==254||I==257||I==273||I==275||I==283||294<=I&&I<=295||I==299||305<=I&&I<=307||I==312||319<=I&&I<=322||I==324||328<=I&&I<=331||I==333||338<=I&&I<=339||358<=I&&I<=359||I==363||I==462||I==464||I==466||I==468||I==470||I==472||I==474||I==476||I==593||I==609||I==708||I==711||713<=I&&I<=715||I==717||I==720||728<=I&&I<=731||I==733||I==735||768<=I&&I<=879||913<=I&&I<=929||931<=I&&I<=937||945<=I&&I<=961||963<=I&&I<=969||I==1025||1040<=I&&I<=1103||I==1105||I==8208||8211<=I&&I<=8214||8216<=I&&I<=8217||8220<=I&&I<=8221||8224<=I&&I<=8226||8228<=I&&I<=8231||I==8240||8242<=I&&I<=8243||I==8245||I==8251||I==8254||I==8308||I==8319||8321<=I&&I<=8324||I==8364||I==8451||I==8453||I==8457||I==8467||I==8470||8481<=I&&I<=8482||I==8486||I==8491||8531<=I&&I<=8532||8539<=I&&I<=8542||8544<=I&&I<=8555||8560<=I&&I<=8569||I==8585||8592<=I&&I<=8601||8632<=I&&I<=8633||I==8658||I==8660||I==8679||I==8704||8706<=I&&I<=8707||8711<=I&&I<=8712||I==8715||I==8719||I==8721||I==8725||I==8730||8733<=I&&I<=8736||I==8739||I==8741||8743<=I&&I<=8748||I==8750||8756<=I&&I<=8759||8764<=I&&I<=8765||I==8776||I==8780||I==8786||8800<=I&&I<=8801||8804<=I&&I<=8807||8810<=I&&I<=8811||8814<=I&&I<=8815||8834<=I&&I<=8835||8838<=I&&I<=8839||I==8853||I==8857||I==8869||I==8895||I==8978||9312<=I&&I<=9449||9451<=I&&I<=9547||9552<=I&&I<=9587||9600<=I&&I<=9615||9618<=I&&I<=9621||9632<=I&&I<=9633||9635<=I&&I<=9641||9650<=I&&I<=9651||9654<=I&&I<=9655||9660<=I&&I<=9661||9664<=I&&I<=9665||9670<=I&&I<=9672||I==9675||9678<=I&&I<=9681||9698<=I&&I<=9701||I==9711||9733<=I&&I<=9734||I==9737||9742<=I&&I<=9743||9748<=I&&I<=9749||I==9756||I==9758||I==9792||I==9794||9824<=I&&I<=9825||9827<=I&&I<=9829||9831<=I&&I<=9834||9836<=I&&I<=9837||I==9839||9886<=I&&I<=9887||9918<=I&&I<=9919||9924<=I&&I<=9933||9935<=I&&I<=9953||I==9955||9960<=I&&I<=9983||I==10045||I==10071||10102<=I&&I<=10111||11093<=I&&I<=11097||12872<=I&&I<=12879||57344<=I&&I<=63743||65024<=I&&I<=65039||I==65533||127232<=I&&I<=127242||127248<=I&&I<=127277||127280<=I&&I<=127337||127344<=I&&I<=127386||917760<=I&&I<=917999||983040<=I&&I<=1048573||1048576<=I&&I<=1114109?"A":"N"},J.characterLength=function(W){var z=this.eastAsianWidth(W);return z=="F"||z=="W"||z=="A"?2:1};function G(W){return W.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}J.length=function(W){for(var z=G(W),H=0,I=0;I<z.length;I++)H=H+this.characterLength(z[I]);return H},J.slice=function(W,z,H){textLen=J.length(W),z=z||0,H=H||1,z<0&&(z=textLen+z),H<0&&(H=textLen+H);for(var I="",Q=0,q=G(W),Z=0;Z<q.length;Z++){var X=q[Z],C=J.length(X);if(Q>=z-(C==2?1:0))if(Q+C<=H)I+=X;else break;Q+=C}return I}})(g1);var W0=g1.exports,z0=x1(W0),H0=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},Q0=x1(H0);function a(S,J={}){if(typeof S!="string"||S.length===0||(J={ambiguousIsNarrow:!0,...J},S=E1(S),S.length===0))return 0;S=S.replace(Q0()," ");let G=J.ambiguousIsNarrow?1:2,W=0;for(let z of S){let H=z.codePointAt(0);if(H<=31||H>=127&&H<=159||H>=768&&H<=879)continue;switch(z0.eastAsianWidth(z)){case"F":case"W":W+=2;break;case"A":W+=G;break;default:W+=1}}return W}var S1=10,A1=(S=0)=>(J)=>`\x1B[${J+S}m`,V1=(S=0)=>(J)=>`\x1B[${38+S};5;${J}m`,O1=(S=0)=>(J,G,W)=>`\x1B[${38+S};2;${J};${G};${W}m`,U={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(U.modifier);var Y0=Object.keys(U.color),Z0=Object.keys(U.bgColor);[...Y0,...Z0];function q0(){let S=new Map;for(let[J,G]of Object.entries(U)){for(let[W,z]of Object.entries(G))U[W]={open:`\x1B[${z[0]}m`,close:`\x1B[${z[1]}m`},G[W]=U[W],S.set(z[0],z[1]);Object.defineProperty(U,J,{value:G,enumerable:!1})}return Object.defineProperty(U,"codes",{value:S,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=A1(),U.color.ansi256=V1(),U.color.ansi16m=O1(),U.bgColor.ansi=A1(S1),U.bgColor.ansi256=V1(S1),U.bgColor.ansi16m=O1(S1),Object.defineProperties(U,{rgbToAnsi256:{value:(J,G,W)=>J===G&&G===W?J<8?16:J>248?231:Math.round((J-8)/247*24)+232:16+36*Math.round(J/255*5)+6*Math.round(G/255*5)+Math.round(W/255*5),enumerable:!1},hexToRgb:{value:(J)=>{let G=/[a-f\d]{6}|[a-f\d]{3}/i.exec(J.toString(16));if(!G)return[0,0,0];let[W]=G;W.length===3&&(W=[...W].map((H)=>H+H).join(""));let z=Number.parseInt(W,16);return[z>>16&255,z>>8&255,z&255]},enumerable:!1},hexToAnsi256:{value:(J)=>U.rgbToAnsi256(...U.hexToRgb(J)),enumerable:!1},ansi256ToAnsi:{value:(J)=>{if(J<8)return 30+J;if(J<16)return 90+(J-8);let G,W,z;if(J>=232)G=((J-232)*10+8)/255,W=G,z=G;else{J-=16;let Q=J%36;G=Math.floor(J/36)/5,W=Math.floor(Q/6)/5,z=Q%6/5}let H=Math.max(G,W,z)*2;if(H===0)return 30;let I=30+(Math.round(z)<<2|Math.round(W)<<1|Math.round(G));return H===2&&(I+=60),I},enumerable:!1},rgbToAnsi:{value:(J,G,W)=>U.ansi256ToAnsi(U.rgbToAnsi256(J,G,W)),enumerable:!1},hexToAnsi:{value:(J)=>U.ansi256ToAnsi(U.hexToAnsi256(J)),enumerable:!1}}),U}var X0=q0(),i=new Set(["\x1B","\x9B"]),C0=39,z1="\x07",h1="[",N0="]",v1="m",H1=`${N0}8;;`,j1=(S)=>`${i.values().next().value}${h1}${S}${v1}`,B1=(S)=>`${i.values().next().value}${H1}${S}${z1}`,U0=(S)=>S.split(" ").map((J)=>a(J)),J1=(S,J,G)=>{let W=[...J],z=!1,H=!1,I=a(E1(S[S.length-1]));for(let[Q,q]of W.entries()){let Z=a(q);if(I+Z<=G?S[S.length-1]+=q:(S.push(q),I=0),i.has(q)&&(z=!0,H=W.slice(Q+1).join("").startsWith(H1)),z){H?q===z1&&(z=!1,H=!1):q===v1&&(z=!1);continue}I+=Z,I===G&&Q<W.length-1&&(S.push(""),I=0)}!I&&S[S.length-1].length>0&&S.length>1&&(S[S.length-2]+=S.pop())},L0=(S)=>{let J=S.split(" "),G=J.length;for(;G>0&&!(a(J[G-1])>0);)G--;return G===J.length?S:J.slice(0,G).join(" ")+J.slice(G).join("")},P0=(S,J,G={})=>{if(G.trim!==!1&&S.trim()==="")return"";let W="",z,H,I=U0(S),Q=[""];for(let[Z,X]of S.split(" ").entries()){G.trim!==!1&&(Q[Q.length-1]=Q[Q.length-1].trimStart());let C=a(Q[Q.length-1]);if(Z!==0&&(C>=J&&(G.wordWrap===!1||G.trim===!1)&&(Q.push(""),C=0),(C>0||G.trim===!1)&&(Q[Q.length-1]+=" ",C++)),G.hard&&I[Z]>J){let k=J-C,N=1+Math.floor((I[Z]-k-1)/J);Math.floor((I[Z]-1)/J)<N&&Q.push(""),J1(Q,X,J);continue}if(C+I[Z]>J&&C>0&&I[Z]>0){if(G.wordWrap===!1&&C<J){J1(Q,X,J);continue}Q.push("")}if(C+I[Z]>J&&G.wordWrap===!1){J1(Q,X,J);continue}Q[Q.length-1]+=X}G.trim!==!1&&(Q=Q.map((Z)=>L0(Z)));let q=[...Q.join(`
|
|
3
3
|
`)];for(let[Z,X]of q.entries()){if(W+=X,i.has(X)){let{groups:k}=new RegExp(`(?:\\${h1}(?<code>\\d+)m|\\${H1}(?<uri>.*)${z1})`).exec(q.slice(Z).join(""))||{groups:{}};if(k.code!==void 0){let N=Number.parseFloat(k.code);z=N===C0?void 0:N}else k.uri!==void 0&&(H=k.uri.length===0?void 0:k.uri)}let C=X0.codes.get(Number(z));q[Z+1]===`
|
|
4
4
|
`?(H&&(W+=B1("")),z&&C&&(W+=j1(C))):X===`
|
|
5
5
|
`&&(z&&C&&(W+=j1(z)),H&&(W+=B1(H)))}return W};function M1(S,J,G){return String(S).normalize().replace(/\r\n/g,`
|
|
@@ -67,4 +67,4 @@ ${K.default.yellow(T)} ${K.default.yellow(this.error)}
|
|
|
67
67
|
${K.default.gray(Y)}`:""}`;default:return`${J}${K.default.cyan(Y)} ${W}
|
|
68
68
|
${K.default.cyan(T)}
|
|
69
69
|
`}}}).prompt();
|
|
70
|
-
export{y1 as
|
|
70
|
+
export{y1 as Rd,_I as Sd,kI as Td,p as Ud,AI as Vd,VI as Wd,OI as Xd,jI as Yd,BI as Zd,RI as _d,bI as $d};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$q as fZ,Aq as yZ,Bq as y,Fq as h,Iq as L,Lq as V,Nq as f,Rq as hZ,Tq as R,Yq as l,Zq as U,_q as B,ar as x,er as gZ,fq as O,lq as u}from"./chunk-dy2k5rdx.js";import{hr as v}from"./chunk-n5p7cn4w.js";import{Ar as U0,Br as L0,zr as Q0}from"./chunk-0crgymtr.js";import{hv as Z}from"./chunk-c3szabpf.js";import{SP as g,TP as c,WP as r}from"./chunk-f2pv705d.js";var m=c((E$,o)=>{var{defineProperty:_,getOwnPropertyDescriptor:aZ,getOwnPropertyNames:oZ}=Object,rZ=Object.prototype.hasOwnProperty,eZ=($,W)=>{for(var Q in W)_($,Q,{get:W[Q],enumerable:!0})},Z0=($,W,Q,X)=>{if(W&&typeof W==="object"||typeof W==="function"){for(let Y of oZ(W))if(!rZ.call($,Y)&&Y!==Q)_($,Y,{get:()=>W[Y],enumerable:!(X=aZ(W,Y))||X.enumerable})}return $},$0=($)=>Z0(_({},"__esModule",{value:!0}),$),t={};eZ(t,{SYMBOL_FOR_REQ_CONTEXT:()=>a,getContext:()=>W0});o.exports=$0(t);var a=Symbol.for("@vercel/request-context");function W0(){return globalThis[a]?.get?.()??{}}});var $Z=c((H$,ZZ)=>{var{defineProperty:i,getOwnPropertyDescriptor:X0,getOwnPropertyNames:Y0}=Object,j0=Object.prototype.hasOwnProperty,D0=($,W)=>{for(var Q in W)i($,Q,{get:W[Q],enumerable:!0})},K0=($,W,Q,X)=>{if(W&&typeof W==="object"||typeof W==="function"){for(let Y of Y0(W))if(!j0.call($,Y)&&Y!==Q)i($,Y,{get:()=>W[Y],enumerable:!(X=X0(W,Y))||X.enumerable})}return $},J0=($)=>K0(i({},"__esModule",{value:!0}),$),e={};D0(e,{getVercelOidcToken:()=>N0,getVercelOidcTokenSync:()=>p});ZZ.exports=J0(e);var A0=m(),F0=Q0();async function N0($){let W="",Q;try{W=p()}catch(X){Q=X}try{let[{getTokenPayload:X,isExpired:Y},{refreshToken:D}]=await Promise.all([await import("./chunk-emac0dss.js").then((m)=>g(m.default)),await import("./chunk-bd505nsd.js").then((m)=>g(m.default))]);if(!W||Y(X(W),$?.expirationBufferMs))await D($),W=p()}catch(X){let Y=Q instanceof Error?Q.message:"";if(X instanceof Error)Y=`${Y}
|
|
3
3
|
${X.message}`;if(Y)throw new F0.VercelOidcTokenError(Y);throw X}return W}function p(){let $=(0,A0.getContext)().headers?.["x-vercel-oidc-token"]??process.env.VERCEL_OIDC_TOKEN;if(!$)throw Error("The 'x-vercel-oidc-token' header is missing from the request. Do you have the OIDC option enabled in the Vercel project settings?");return $}});var n=c((M$,YZ)=>{var{defineProperty:d,getOwnPropertyDescriptor:V0,getOwnPropertyNames:q0}=Object,T0=Object.prototype.hasOwnProperty,B0=($,W)=>{for(var Q in W)d($,Q,{get:W[Q],enumerable:!0})},G0=($,W,Q,X)=>{if(W&&typeof W==="object"||typeof W==="function"){for(let Y of q0(W))if(!T0.call($,Y)&&Y!==Q)d($,Y,{get:()=>W[Y],enumerable:!(X=V0(W,Y))||X.enumerable})}return $},x0=($)=>G0(d({},"__esModule",{value:!0}),$),XZ={};B0(XZ,{AccessTokenMissingError:()=>QZ.AccessTokenMissingError,RefreshAccessTokenFailedError:()=>QZ.RefreshAccessTokenFailedError,getContext:()=>z0.getContext,getVercelOidcToken:()=>WZ.getVercelOidcToken,getVercelOidcTokenSync:()=>WZ.getVercelOidcTokenSync,getVercelToken:()=>E0.getVercelToken});YZ.exports=x0(XZ);var WZ=$Z(),z0=m(),QZ=U0(),E0=L0()});var sZ=g(n(),1),tZ=g(n(),1);var H0="vercel.ai.gateway.error",s=Symbol.for(H0),jZ,DZ,z=class $ extends(DZ=Error,jZ=s,DZ){constructor({message:W,statusCode:Q=500,cause:X,generationId:Y}){super(Y?`${W} [${Y}]`:W);this[jZ]=!0,this.statusCode=Q,this.cause=X,this.generationId=Y}static isInstance(W){return $.hasMarker(W)}static hasMarker(W){return typeof W==="object"&&W!==null&&s in W&&W[s]===!0}},uZ="GatewayAuthenticationError",M0=`vercel.ai.gateway.error.${uZ}`,KZ=Symbol.for(M0),JZ,AZ,lZ=class $ extends(AZ=z,JZ=KZ,AZ){constructor({message:W="Authentication failed",statusCode:Q=401,cause:X,generationId:Y}={}){super({message:W,statusCode:Q,cause:X,generationId:Y});this[JZ]=!0,this.name=uZ,this.type="authentication_error"}static isInstance(W){return z.hasMarker(W)&&KZ in W}static createContextualError({apiKeyProvided:W,oidcTokenProvided:Q,message:X="Authentication failed",statusCode:Y=401,cause:D,generationId:N}){let j;if(W)j=`AI Gateway authentication failed: Invalid API key.
|
|
4
4
|
|
|
5
5
|
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
@@ -17,4 +17,4 @@ Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
|
|
|
17
17
|
Option 2 - OIDC token:
|
|
18
18
|
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`;return new $({message:j,statusCode:Y,cause:D,generationId:N})}},cZ="GatewayInvalidRequestError",O0=`vercel.ai.gateway.error.${cZ}`,FZ=Symbol.for(O0),NZ,UZ,R0=class extends(UZ=z,NZ=FZ,UZ){constructor({message:$="Invalid request",statusCode:W=400,cause:Q,generationId:X}={}){super({message:$,statusCode:W,cause:Q,generationId:X});this[NZ]=!0,this.name=cZ,this.type="invalid_request_error"}static isInstance($){return z.hasMarker($)&&FZ in $}},_Z="GatewayRateLimitError",C0=`vercel.ai.gateway.error.${_Z}`,LZ=Symbol.for(C0),VZ,qZ,S0=class extends(qZ=z,VZ=LZ,qZ){constructor({message:$="Rate limit exceeded",statusCode:W=429,cause:Q,generationId:X}={}){super({message:$,statusCode:W,cause:Q,generationId:X});this[VZ]=!0,this.name=_Z,this.type="rate_limit_exceeded"}static isInstance($){return z.hasMarker($)&&LZ in $}},mZ="GatewayModelNotFoundError",w0=`vercel.ai.gateway.error.${mZ}`,TZ=Symbol.for(w0),P0=L(()=>V(Z.object({modelId:Z.string()}))),BZ,GZ,b0=class extends(GZ=z,BZ=TZ,GZ){constructor({message:$="Model not found",statusCode:W=404,modelId:Q,cause:X,generationId:Y}={}){super({message:$,statusCode:W,cause:X,generationId:Y});this[BZ]=!0,this.name=mZ,this.type="model_not_found",this.modelId=Q}static isInstance($){return z.hasMarker($)&&TZ in $}},pZ="GatewayInternalServerError",I0=`vercel.ai.gateway.error.${pZ}`,xZ=Symbol.for(I0),zZ,EZ,HZ=class extends(EZ=z,zZ=xZ,EZ){constructor({message:$="Internal server error",statusCode:W=500,cause:Q,generationId:X}={}){super({message:$,statusCode:W,cause:Q,generationId:X});this[zZ]=!0,this.name=pZ,this.type="internal_server_error"}static isInstance($){return z.hasMarker($)&&xZ in $}},iZ="GatewayResponseError",k0=`vercel.ai.gateway.error.${iZ}`,MZ=Symbol.for(k0),OZ,RZ,v0=class extends(RZ=z,OZ=MZ,RZ){constructor({message:$="Invalid response from Gateway",statusCode:W=502,response:Q,validationError:X,cause:Y,generationId:D}={}){super({message:$,statusCode:W,cause:Y,generationId:D});this[OZ]=!0,this.name=iZ,this.type="response_error",this.response=Q,this.validationError=X}static isInstance($){return z.hasMarker($)&&MZ in $}};async function CZ({response:$,statusCode:W,defaultMessage:Q="Gateway request failed",cause:X,authMethod:Y}){var D;let N=await f({value:$,schema:y0});if(!N.success){let E=typeof $==="object"&&$!==null&&"generationId"in $?$.generationId:void 0;return new v0({message:`Invalid error response format: ${Q}`,statusCode:W,response:$,validationError:N.error,cause:X,generationId:E})}let j=N.value,K=j.error.type,F=j.error.message,q=(D=j.generationId)!=null?D:void 0;switch(K){case"authentication_error":return lZ.createContextualError({apiKeyProvided:Y==="api-key",oidcTokenProvided:Y==="oidc",statusCode:W,cause:X,generationId:q});case"invalid_request_error":return new R0({message:F,statusCode:W,cause:X,generationId:q});case"rate_limit_exceeded":return new S0({message:F,statusCode:W,cause:X,generationId:q});case"model_not_found":{let E=await f({value:j.error.param,schema:P0});return new b0({message:F,statusCode:W,modelId:E.success?E.value.modelId:void 0,cause:X,generationId:q})}case"internal_server_error":return new HZ({message:F,statusCode:W,cause:X,generationId:q});default:return new HZ({message:F,statusCode:W,cause:X,generationId:q})}}var y0=L(()=>V(Z.object({error:Z.object({message:Z.string(),type:Z.string().nullish(),param:Z.unknown().nullish(),code:Z.union([Z.string(),Z.number()]).nullish()}),generationId:Z.string().nullish()}))),dZ="GatewayTimeoutError",h0=`vercel.ai.gateway.error.${dZ}`,SZ=Symbol.for(h0),wZ,PZ,bZ=class $ extends(PZ=z,wZ=SZ,PZ){constructor({message:W="Request timed out",statusCode:Q=408,cause:X,generationId:Y}={}){super({message:W,statusCode:Q,cause:X,generationId:Y});this[wZ]=!0,this.name=dZ,this.type="timeout_error"}static isInstance(W){return z.hasMarker(W)&&SZ in W}static createTimeoutError({originalMessage:W,statusCode:Q=408,cause:X,generationId:Y}){let D=`Gateway request timed out: ${W}
|
|
19
19
|
|
|
20
|
-
This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;return new $({message:D,statusCode:Q,cause:X,generationId:Y})}};function IZ($){if(!($ instanceof Error))return!1;let W=$.code;if(typeof W==="string")return["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(W);return!1}async function H($,W){var Q;if(z.isInstance($))return $;if(IZ($))return bZ.createTimeoutError({originalMessage:$ instanceof Error?$.message:"Unknown error",cause:$});if(v.isInstance($)){if($.cause&&IZ($.cause))return bZ.createTimeoutError({originalMessage:$.message,cause:$});return await CZ({response:f0($),statusCode:(Q=$.statusCode)!=null?Q:500,defaultMessage:"Gateway request failed",cause:$,authMethod:W})}return await CZ({response:{},statusCode:500,defaultMessage:$ instanceof Error?`Gateway request failed: ${$.message}`:"Unknown Gateway error",cause:$,authMethod:W})}function f0($){if($.data!==void 0)return $.data;if($.responseBody!=null)try{return JSON.parse($.responseBody)}catch(W){return $.responseBody}return{}}var nZ="ai-gateway-auth-method";async function w($){let W=await f({value:$[nZ],schema:g0});return W.success?W.value:void 0}var g0=L(()=>V(Z.union([Z.literal("api-key"),Z.literal("oidc")]))),u0=["embedding","image","language","reranking","video"],kZ=class{constructor($){this.config=$}async getAvailableModels(){try{let{value:$}=await y({url:`${this.config.baseURL}/config`,headers:await U(this.config.headers()),successfulResponseHandler:x(l0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(W)=>W}),fetch:this.config.fetch});return $}catch($){throw await H($)}}async getCredits(){try{let $=new URL(this.config.baseURL),{value:W}=await y({url:`${$.origin}/v1/credits`,headers:await U(this.config.headers()),successfulResponseHandler:x(c0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Q)=>Q}),fetch:this.config.fetch});return W}catch($){throw await H($)}}},l0=L(()=>V(Z.object({models:Z.array(Z.object({id:Z.string(),name:Z.string(),description:Z.string().nullish(),pricing:Z.object({input:Z.string(),output:Z.string(),input_cache_read:Z.string().nullish(),input_cache_write:Z.string().nullish()}).transform(({input:$,output:W,input_cache_read:Q,input_cache_write:X})=>({input:$,output:W,...Q?{cachedInputTokens:Q}:{},...X?{cacheCreationInputTokens:X}:{}})).nullish(),specification:Z.object({specificationVersion:Z.literal("v3"),provider:Z.string(),modelId:Z.string()}),modelType:Z.string().nullish()})).transform(($)=>$.filter((W)=>W.modelType==null||u0.includes(W.modelType)))}))),c0=L(()=>V(Z.object({balance:Z.string(),total_used:Z.string()}).transform(({balance:$,total_used:W})=>({balance:$,totalUsed:W})))),_0=class{constructor($){this.config=$}async getSpendReport($){try{let W=new URL(this.config.baseURL),Q=new URLSearchParams;if(Q.set("start_date",$.startDate),Q.set("end_date",$.endDate),$.groupBy)Q.set("group_by",$.groupBy);if($.datePart)Q.set("date_part",$.datePart);if($.userId)Q.set("user_id",$.userId);if($.model)Q.set("model",$.model);if($.provider)Q.set("provider",$.provider);if($.credentialType)Q.set("credential_type",$.credentialType);if($.tags&&$.tags.length>0)Q.set("tags",$.tags.join(","));let{value:X}=await y({url:`${W.origin}/v1/report?${Q.toString()}`,headers:await U(this.config.headers()),successfulResponseHandler:x(m0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Y)=>Y}),fetch:this.config.fetch});return X}catch(W){throw await H(W)}}},m0=L(()=>V(Z.object({results:Z.array(Z.object({day:Z.string().optional(),hour:Z.string().optional(),user:Z.string().optional(),model:Z.string().optional(),tag:Z.string().optional(),provider:Z.string().optional(),credential_type:Z.enum(["byok","system"]).optional(),total_cost:Z.number(),market_cost:Z.number().optional(),input_tokens:Z.number().optional(),output_tokens:Z.number().optional(),cached_input_tokens:Z.number().optional(),cache_creation_input_tokens:Z.number().optional(),reasoning_tokens:Z.number().optional(),request_count:Z.number().optional()}).transform(({credential_type:$,total_cost:W,market_cost:Q,input_tokens:X,output_tokens:Y,cached_input_tokens:D,cache_creation_input_tokens:N,reasoning_tokens:j,request_count:K,...F})=>({...F,...$!==void 0?{credentialType:$}:{},totalCost:W,...Q!==void 0?{marketCost:Q}:{},...X!==void 0?{inputTokens:X}:{},...Y!==void 0?{outputTokens:Y}:{},...D!==void 0?{cachedInputTokens:D}:{},...N!==void 0?{cacheCreationInputTokens:N}:{},...j!==void 0?{reasoningTokens:j}:{},...K!==void 0?{requestCount:K}:{}})))}))),p0=class{constructor($){this.config=$}async getGenerationInfo($){try{let W=new URL(this.config.baseURL),{value:Q}=await y({url:`${W.origin}/v1/generation?id=${encodeURIComponent($.id)}`,headers:await U(this.config.headers()),successfulResponseHandler:x(i0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(X)=>X}),fetch:this.config.fetch});return Q}catch(W){throw await H(W)}}},i0=L(()=>V(Z.object({data:Z.object({id:Z.string(),total_cost:Z.number(),upstream_inference_cost:Z.number(),usage:Z.number(),created_at:Z.string(),model:Z.string(),is_byok:Z.boolean(),provider_name:Z.string(),streamed:Z.boolean(),finish_reason:Z.string(),latency:Z.number(),generation_time:Z.number(),native_tokens_prompt:Z.number(),native_tokens_completion:Z.number(),native_tokens_reasoning:Z.number(),native_tokens_cached:Z.number(),native_tokens_cache_creation:Z.number(),billable_web_search_calls:Z.number()}).transform(({total_cost:$,upstream_inference_cost:W,created_at:Q,is_byok:X,provider_name:Y,finish_reason:D,generation_time:N,native_tokens_prompt:j,native_tokens_completion:K,native_tokens_reasoning:F,native_tokens_cached:q,native_tokens_cache_creation:E,billable_web_search_calls:P,...C})=>({...C,totalCost:$,upstreamInferenceCost:W,createdAt:Q,isByok:X,providerName:Y,finishReason:D,generationTime:N,promptTokens:j,completionTokens:K,reasoningTokens:F,cachedTokens:q,cacheCreationTokens:E,billableWebSearchCalls:P}))}).transform(({data:$})=>$))),d0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs($){let{abortSignal:W,...Q}=$;return{args:this.maybeEncodeFileParts(Q),warnings:[]}}async doGenerate($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{responseHeaders:D,value:N,rawValue:j}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!1),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:x(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(K)=>K}),...X&&{abortSignal:X},fetch:this.config.fetch});return{...N,request:{body:W},response:{headers:D,body:j},warnings:Q}}catch(D){throw await H(D,await w(Y))}}async doStream($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{value:D,responseHeaders:N}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!0),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:fZ(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(j)=>j}),...X&&{abortSignal:X},fetch:this.config.fetch});return{stream:D.pipeThrough(new TransformStream({start(j){if(Q.length>0)j.enqueue({type:"stream-start",warnings:Q})},transform(j,K){if(j.success){let F=j.value;if(F.type==="raw"&&!$.includeRawChunks)return;if(F.type==="response-metadata"&&F.timestamp&&typeof F.timestamp==="string")F.timestamp=new Date(F.timestamp);K.enqueue(F)}else K.error(j.error)}})),request:{body:W},response:{headers:N}}}catch(D){throw await H(D,await w(Y))}}isFilePart($){return $&&typeof $==="object"&&"type"in $&&$.type==="file"}maybeEncodeFileParts($){for(let W of $.prompt)for(let Q of W.content)if(this.isFilePart(Q)){let X=Q;if(X.data instanceof Uint8Array){let Y=Uint8Array.from(X.data),D=Buffer.from(Y).toString("base64");X.data=new URL(`data:${X.mediaType||"application/octet-stream"};base64,${D}`)}}return $}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders($,W){return{"ai-language-model-specification-version":"3","ai-language-model-id":$,"ai-language-model-streaming":String(W)}}},n0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:$,headers:W,abortSignal:Q,providerOptions:X}){var Y;let D=await U(this.config.headers());try{let{responseHeaders:N,value:j,rawValue:K}=await R({url:this.getUrl(),headers:O(D,W!=null?W:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{values:$,...X?{providerOptions:X}:{}},successfulResponseHandler:x(s0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(F)=>F}),...Q&&{abortSignal:Q},fetch:this.config.fetch});return{embeddings:j.embeddings,usage:(Y=j.usage)!=null?Y:void 0,providerMetadata:j.providerMetadata,response:{headers:N,body:K},warnings:[]}}catch(N){throw await H(N,await w(D))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},s0=L(()=>V(Z.object({embeddings:Z.array(Z.array(Z.number())),usage:Z.object({tokens:Z.number()}).nullish(),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),t0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,size:Q,aspectRatio:X,seed:Y,files:D,mask:N,providerOptions:j,headers:K,abortSignal:F}){var q,E,P,C;let b=await U(this.config.headers());try{let{responseHeaders:J,value:G,rawValue:I}=await R({url:this.getUrl(),headers:O(b,K!=null?K:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{prompt:$,n:W,...Q&&{size:Q},...X&&{aspectRatio:X},...Y&&{seed:Y},...j&&{providerOptions:j},...D&&{files:D.map((A)=>vZ(A))},...N&&{mask:vZ(N)}},successfulResponseHandler:x(e0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(A)=>A}),...F&&{abortSignal:F},fetch:this.config.fetch});return{images:G.images,warnings:(q=G.warnings)!=null?q:[],providerMetadata:G.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:J},...G.usage!=null&&{usage:{inputTokens:(E=G.usage.inputTokens)!=null?E:void 0,outputTokens:(P=G.usage.outputTokens)!=null?P:void 0,totalTokens:(C=G.usage.totalTokens)!=null?C:void 0}}}}catch(J){throw await H(J,await w(b))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function vZ($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var a0=Z.object({images:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),o0=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),r0=Z.object({inputTokens:Z.number().nullish(),outputTokens:Z.number().nullish(),totalTokens:Z.number().nullish()}),e0=Z.object({images:Z.array(Z.string()),warnings:Z.array(o0).optional(),providerMetadata:Z.record(Z.string(),a0).optional(),usage:r0.optional()}),Z$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,aspectRatio:Q,resolution:X,duration:Y,fps:D,seed:N,image:j,providerOptions:K,headers:F,abortSignal:q}){var E;let P=await U(this.config.headers());try{let{responseHeaders:C,value:b}=await R({url:this.getUrl(),headers:O(P,F!=null?F:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:$,n:W,...Q&&{aspectRatio:Q},...X&&{resolution:X},...Y&&{duration:Y},...D&&{fps:D},...N&&{seed:N},...K&&{providerOptions:K},...j&&{image:$$(j)}},successfulResponseHandler:async({response:J,url:G,requestBodyValues:I})=>{if(J.body==null)throw new v({message:"SSE response body is empty",url:G,requestBodyValues:I,statusCode:J.status});let M=hZ({stream:J.body,schema:Y$}).getReader(),{done:k,value:S}=await M.read();if(M.releaseLock(),k||!S)throw new v({message:"SSE stream ended without a data event",url:G,requestBodyValues:I,statusCode:J.status});if(!S.success)throw new v({message:"Failed to parse video SSE event",cause:S.error,url:G,requestBodyValues:I,statusCode:J.status});let T=S.value;if(T.type==="error")throw new v({message:T.message,statusCode:T.statusCode,url:G,requestBodyValues:I,responseHeaders:Object.fromEntries([...J.headers]),responseBody:JSON.stringify(T),data:{error:{message:T.message,type:T.errorType,param:T.param}}});return{value:{videos:T.videos,warnings:T.warnings,providerMetadata:T.providerMetadata},responseHeaders:Object.fromEntries([...J.headers])}},failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(J)=>J}),...q&&{abortSignal:q},fetch:this.config.fetch});return{videos:b.videos,warnings:(E=b.warnings)!=null?E:[],providerMetadata:b.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:C}}}catch(C){throw await H(C,await w(P))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};function $$($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var W$=Z.object({videos:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),Q$=Z.union([Z.object({type:Z.literal("url"),url:Z.string(),mediaType:Z.string()}),Z.object({type:Z.literal("base64"),data:Z.string(),mediaType:Z.string()})]),X$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),Y$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("result"),videos:Z.array(Q$),warnings:Z.array(X$).optional(),providerMetadata:Z.record(Z.string(),W$).optional()}),Z.object({type:Z.literal("error"),message:Z.string(),errorType:Z.string(),statusCode:Z.number(),param:Z.unknown().nullable()})]),j$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3"}get provider(){return this.config.provider}async doRerank({documents:$,query:W,topN:Q,headers:X,abortSignal:Y,providerOptions:D}){let N=await U(this.config.headers());try{let{responseHeaders:j,value:K,rawValue:F}=await R({url:this.getUrl(),headers:O(N,X!=null?X:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{documents:$,query:W,...Q!=null?{topN:Q}:{},...D?{providerOptions:D}:{}},successfulResponseHandler:x(D$),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(q)=>q}),...Y&&{abortSignal:Y},fetch:this.config.fetch});return{ranking:K.ranking,providerMetadata:K.providerMetadata,response:{headers:j,body:F},warnings:[]}}catch(j){throw await H(j,await w(N))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"3","ai-model-id":this.modelId}}},D$=L(()=>V(Z.object({ranking:Z.array(Z.object({index:Z.number(),relevanceScore:Z.number()})),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),K$=L(()=>V(Z.object({objective:Z.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:Z.array(Z.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:Z.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:Z.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:Z.object({include_domains:Z.array(Z.string()).optional().describe("List of domains to include in search results."),exclude_domains:Z.array(Z.string()).optional().describe("List of domains to exclude from search results."),after_date:Z.string().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:Z.object({max_chars_per_result:Z.number().optional().describe("Maximum characters per result."),max_chars_total:Z.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:Z.object({max_age_seconds:Z.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}))),J$=L(()=>V(Z.union([Z.object({searchId:Z.string(),results:Z.array(Z.object({url:Z.string(),title:Z.string(),excerpt:Z.string(),publishDate:Z.string().nullable().optional(),relevanceScore:Z.number().optional()}))}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),A$=l({id:"gateway.parallel_search",inputSchema:K$,outputSchema:J$}),F$=($={})=>A$($),N$=L(()=>V(Z.object({query:Z.union([Z.string(),Z.array(Z.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:Z.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:Z.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:Z.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:Z.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:Z.array(Z.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:Z.array(Z.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:Z.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:Z.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:Z.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:Z.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:Z.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),U$=L(()=>V(Z.union([Z.object({results:Z.array(Z.object({title:Z.string(),url:Z.string(),snippet:Z.string(),date:Z.string().optional(),lastUpdated:Z.string().optional()})),id:Z.string()}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),L$=l({id:"gateway.perplexity_search",inputSchema:N$,outputSchema:U$}),V$=($={})=>L$($),q$={parallelSearch:F$,perplexitySearch:V$};async function T$(){var $;return($=sZ.getContext().headers)==null?void 0:$["x-vercel-id"]}var B$="3.0.104",G$="0.0.1";function x$($={}){var W,Q;let X=null,Y=null,D=(W=$.metadataCacheRefreshMillis)!=null?W:300000,N=0,j=(Q=gZ($.baseURL))!=null?Q:"https://ai-gateway.vercel.sh/v3/ai",K=async()=>{try{let A=await z$($);return yZ({Authorization:`Bearer ${A.token}`,"ai-gateway-protocol-version":G$,[nZ]:A.authMethod,...$.headers},`ai-sdk/gateway/${B$}`)}catch(A){throw lZ.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:A})}},F=()=>{let A=h({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),M=h({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),k=h({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),S=h({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let T=await T$();return{...A&&{"ai-o11y-deployment-id":A},...M&&{"ai-o11y-environment":M},...k&&{"ai-o11y-region":k},...T&&{"ai-o11y-request-id":T},...S&&{"ai-o11y-project-id":S}}}},q=(A)=>{return new d0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},E=async()=>{var A,M,k;let S=(k=(M=(A=$._internal)==null?void 0:A.currentDate)==null?void 0:M.call(A).getTime())!=null?k:Date.now();if(!X||S-N>D)N=S,X=new kZ({baseURL:j,headers:K,fetch:$.fetch}).getAvailableModels().then((T)=>{return Y=T,T}).catch(async(T)=>{throw await H(T,await w(await K()))});return Y?Promise.resolve(Y):X},P=async()=>{return new kZ({baseURL:j,headers:K,fetch:$.fetch}).getCredits().catch(async(A)=>{throw await H(A,await w(await K()))})},C=async(A)=>{return new _0({baseURL:j,headers:K,fetch:$.fetch}).getSpendReport(A).catch(async(M)=>{throw await H(M,await w(await K()))})},b=async(A)=>{return new p0({baseURL:j,headers:K,fetch:$.fetch}).getGenerationInfo(A).catch(async(M)=>{throw await H(M,await w(await K()))})},J=function(A){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return q(A)};J.specificationVersion="v3",J.getAvailableModels=E,J.getCredits=P,J.getSpendReport=C,J.getGenerationInfo=b,J.imageModel=(A)=>{return new t0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},J.languageModel=q;let G=(A)=>{return new n0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};J.embeddingModel=G,J.textEmbeddingModel=G,J.videoModel=(A)=>{return new Z$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};let I=(A)=>{return new j$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};return J.rerankingModel=I,J.reranking=I,J.chat=J.languageModel,J.embedding=J.embeddingModel,J.image=J.imageModel,J.video=J.videoModel,J.tools=q$,J}var $W=x$();async function z$($){let W=h({settingValue:$.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});if(W)return{token:W,authMethod:"api-key"};return{token:await tZ.getVercelOidcToken(),authMethod:"oidc"}}export{z as Rn,lZ as Sn,R0 as Tn,S0 as Un,b0 as Vn,HZ as Wn,v0 as Xn,x$ as Yn,$W as Zn};
|
|
20
|
+
This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;return new $({message:D,statusCode:Q,cause:X,generationId:Y})}};function IZ($){if(!($ instanceof Error))return!1;let W=$.code;if(typeof W==="string")return["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(W);return!1}async function H($,W){var Q;if(z.isInstance($))return $;if(IZ($))return bZ.createTimeoutError({originalMessage:$ instanceof Error?$.message:"Unknown error",cause:$});if(v.isInstance($)){if($.cause&&IZ($.cause))return bZ.createTimeoutError({originalMessage:$.message,cause:$});return await CZ({response:f0($),statusCode:(Q=$.statusCode)!=null?Q:500,defaultMessage:"Gateway request failed",cause:$,authMethod:W})}return await CZ({response:{},statusCode:500,defaultMessage:$ instanceof Error?`Gateway request failed: ${$.message}`:"Unknown Gateway error",cause:$,authMethod:W})}function f0($){if($.data!==void 0)return $.data;if($.responseBody!=null)try{return JSON.parse($.responseBody)}catch(W){return $.responseBody}return{}}var nZ="ai-gateway-auth-method";async function w($){let W=await f({value:$[nZ],schema:g0});return W.success?W.value:void 0}var g0=L(()=>V(Z.union([Z.literal("api-key"),Z.literal("oidc")]))),u0=["embedding","image","language","reranking","video"],kZ=class{constructor($){this.config=$}async getAvailableModels(){try{let{value:$}=await y({url:`${this.config.baseURL}/config`,headers:await U(this.config.headers()),successfulResponseHandler:x(l0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(W)=>W}),fetch:this.config.fetch});return $}catch($){throw await H($)}}async getCredits(){try{let $=new URL(this.config.baseURL),{value:W}=await y({url:`${$.origin}/v1/credits`,headers:await U(this.config.headers()),successfulResponseHandler:x(c0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Q)=>Q}),fetch:this.config.fetch});return W}catch($){throw await H($)}}},l0=L(()=>V(Z.object({models:Z.array(Z.object({id:Z.string(),name:Z.string(),description:Z.string().nullish(),pricing:Z.object({input:Z.string(),output:Z.string(),input_cache_read:Z.string().nullish(),input_cache_write:Z.string().nullish()}).transform(({input:$,output:W,input_cache_read:Q,input_cache_write:X})=>({input:$,output:W,...Q?{cachedInputTokens:Q}:{},...X?{cacheCreationInputTokens:X}:{}})).nullish(),specification:Z.object({specificationVersion:Z.literal("v3"),provider:Z.string(),modelId:Z.string()}),modelType:Z.string().nullish()})).transform(($)=>$.filter((W)=>W.modelType==null||u0.includes(W.modelType)))}))),c0=L(()=>V(Z.object({balance:Z.string(),total_used:Z.string()}).transform(({balance:$,total_used:W})=>({balance:$,totalUsed:W})))),_0=class{constructor($){this.config=$}async getSpendReport($){try{let W=new URL(this.config.baseURL),Q=new URLSearchParams;if(Q.set("start_date",$.startDate),Q.set("end_date",$.endDate),$.groupBy)Q.set("group_by",$.groupBy);if($.datePart)Q.set("date_part",$.datePart);if($.userId)Q.set("user_id",$.userId);if($.model)Q.set("model",$.model);if($.provider)Q.set("provider",$.provider);if($.credentialType)Q.set("credential_type",$.credentialType);if($.tags&&$.tags.length>0)Q.set("tags",$.tags.join(","));let{value:X}=await y({url:`${W.origin}/v1/report?${Q.toString()}`,headers:await U(this.config.headers()),successfulResponseHandler:x(m0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Y)=>Y}),fetch:this.config.fetch});return X}catch(W){throw await H(W)}}},m0=L(()=>V(Z.object({results:Z.array(Z.object({day:Z.string().optional(),hour:Z.string().optional(),user:Z.string().optional(),model:Z.string().optional(),tag:Z.string().optional(),provider:Z.string().optional(),credential_type:Z.enum(["byok","system"]).optional(),total_cost:Z.number(),market_cost:Z.number().optional(),input_tokens:Z.number().optional(),output_tokens:Z.number().optional(),cached_input_tokens:Z.number().optional(),cache_creation_input_tokens:Z.number().optional(),reasoning_tokens:Z.number().optional(),request_count:Z.number().optional()}).transform(({credential_type:$,total_cost:W,market_cost:Q,input_tokens:X,output_tokens:Y,cached_input_tokens:D,cache_creation_input_tokens:N,reasoning_tokens:j,request_count:K,...F})=>({...F,...$!==void 0?{credentialType:$}:{},totalCost:W,...Q!==void 0?{marketCost:Q}:{},...X!==void 0?{inputTokens:X}:{},...Y!==void 0?{outputTokens:Y}:{},...D!==void 0?{cachedInputTokens:D}:{},...N!==void 0?{cacheCreationInputTokens:N}:{},...j!==void 0?{reasoningTokens:j}:{},...K!==void 0?{requestCount:K}:{}})))}))),p0=class{constructor($){this.config=$}async getGenerationInfo($){try{let W=new URL(this.config.baseURL),{value:Q}=await y({url:`${W.origin}/v1/generation?id=${encodeURIComponent($.id)}`,headers:await U(this.config.headers()),successfulResponseHandler:x(i0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(X)=>X}),fetch:this.config.fetch});return Q}catch(W){throw await H(W)}}},i0=L(()=>V(Z.object({data:Z.object({id:Z.string(),total_cost:Z.number(),upstream_inference_cost:Z.number(),usage:Z.number(),created_at:Z.string(),model:Z.string(),is_byok:Z.boolean(),provider_name:Z.string(),streamed:Z.boolean(),finish_reason:Z.string(),latency:Z.number(),generation_time:Z.number(),native_tokens_prompt:Z.number(),native_tokens_completion:Z.number(),native_tokens_reasoning:Z.number(),native_tokens_cached:Z.number(),native_tokens_cache_creation:Z.number(),billable_web_search_calls:Z.number()}).transform(({total_cost:$,upstream_inference_cost:W,created_at:Q,is_byok:X,provider_name:Y,finish_reason:D,generation_time:N,native_tokens_prompt:j,native_tokens_completion:K,native_tokens_reasoning:F,native_tokens_cached:q,native_tokens_cache_creation:E,billable_web_search_calls:P,...C})=>({...C,totalCost:$,upstreamInferenceCost:W,createdAt:Q,isByok:X,providerName:Y,finishReason:D,generationTime:N,promptTokens:j,completionTokens:K,reasoningTokens:F,cachedTokens:q,cacheCreationTokens:E,billableWebSearchCalls:P}))}).transform(({data:$})=>$))),d0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs($){let{abortSignal:W,...Q}=$;return{args:this.maybeEncodeFileParts(Q),warnings:[]}}async doGenerate($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{responseHeaders:D,value:N,rawValue:j}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!1),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:x(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(K)=>K}),...X&&{abortSignal:X},fetch:this.config.fetch});return{...N,request:{body:W},response:{headers:D,body:j},warnings:Q}}catch(D){throw await H(D,await w(Y))}}async doStream($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{value:D,responseHeaders:N}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!0),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:fZ(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(j)=>j}),...X&&{abortSignal:X},fetch:this.config.fetch});return{stream:D.pipeThrough(new TransformStream({start(j){if(Q.length>0)j.enqueue({type:"stream-start",warnings:Q})},transform(j,K){if(j.success){let F=j.value;if(F.type==="raw"&&!$.includeRawChunks)return;if(F.type==="response-metadata"&&F.timestamp&&typeof F.timestamp==="string")F.timestamp=new Date(F.timestamp);K.enqueue(F)}else K.error(j.error)}})),request:{body:W},response:{headers:N}}}catch(D){throw await H(D,await w(Y))}}isFilePart($){return $&&typeof $==="object"&&"type"in $&&$.type==="file"}maybeEncodeFileParts($){for(let W of $.prompt)for(let Q of W.content)if(this.isFilePart(Q)){let X=Q;if(X.data instanceof Uint8Array){let Y=Uint8Array.from(X.data),D=Buffer.from(Y).toString("base64");X.data=new URL(`data:${X.mediaType||"application/octet-stream"};base64,${D}`)}}return $}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders($,W){return{"ai-language-model-specification-version":"3","ai-language-model-id":$,"ai-language-model-streaming":String(W)}}},n0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:$,headers:W,abortSignal:Q,providerOptions:X}){var Y;let D=await U(this.config.headers());try{let{responseHeaders:N,value:j,rawValue:K}=await R({url:this.getUrl(),headers:O(D,W!=null?W:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{values:$,...X?{providerOptions:X}:{}},successfulResponseHandler:x(s0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(F)=>F}),...Q&&{abortSignal:Q},fetch:this.config.fetch});return{embeddings:j.embeddings,usage:(Y=j.usage)!=null?Y:void 0,providerMetadata:j.providerMetadata,response:{headers:N,body:K},warnings:[]}}catch(N){throw await H(N,await w(D))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},s0=L(()=>V(Z.object({embeddings:Z.array(Z.array(Z.number())),usage:Z.object({tokens:Z.number()}).nullish(),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),t0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,size:Q,aspectRatio:X,seed:Y,files:D,mask:N,providerOptions:j,headers:K,abortSignal:F}){var q,E,P,C;let b=await U(this.config.headers());try{let{responseHeaders:J,value:G,rawValue:I}=await R({url:this.getUrl(),headers:O(b,K!=null?K:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{prompt:$,n:W,...Q&&{size:Q},...X&&{aspectRatio:X},...Y&&{seed:Y},...j&&{providerOptions:j},...D&&{files:D.map((A)=>vZ(A))},...N&&{mask:vZ(N)}},successfulResponseHandler:x(e0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(A)=>A}),...F&&{abortSignal:F},fetch:this.config.fetch});return{images:G.images,warnings:(q=G.warnings)!=null?q:[],providerMetadata:G.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:J},...G.usage!=null&&{usage:{inputTokens:(E=G.usage.inputTokens)!=null?E:void 0,outputTokens:(P=G.usage.outputTokens)!=null?P:void 0,totalTokens:(C=G.usage.totalTokens)!=null?C:void 0}}}}catch(J){throw await H(J,await w(b))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function vZ($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var a0=Z.object({images:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),o0=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),r0=Z.object({inputTokens:Z.number().nullish(),outputTokens:Z.number().nullish(),totalTokens:Z.number().nullish()}),e0=Z.object({images:Z.array(Z.string()),warnings:Z.array(o0).optional(),providerMetadata:Z.record(Z.string(),a0).optional(),usage:r0.optional()}),Z$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,aspectRatio:Q,resolution:X,duration:Y,fps:D,seed:N,image:j,providerOptions:K,headers:F,abortSignal:q}){var E;let P=await U(this.config.headers());try{let{responseHeaders:C,value:b}=await R({url:this.getUrl(),headers:O(P,F!=null?F:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:$,n:W,...Q&&{aspectRatio:Q},...X&&{resolution:X},...Y&&{duration:Y},...D&&{fps:D},...N&&{seed:N},...K&&{providerOptions:K},...j&&{image:$$(j)}},successfulResponseHandler:async({response:J,url:G,requestBodyValues:I})=>{if(J.body==null)throw new v({message:"SSE response body is empty",url:G,requestBodyValues:I,statusCode:J.status});let M=hZ({stream:J.body,schema:Y$}).getReader(),{done:k,value:S}=await M.read();if(M.releaseLock(),k||!S)throw new v({message:"SSE stream ended without a data event",url:G,requestBodyValues:I,statusCode:J.status});if(!S.success)throw new v({message:"Failed to parse video SSE event",cause:S.error,url:G,requestBodyValues:I,statusCode:J.status});let T=S.value;if(T.type==="error")throw new v({message:T.message,statusCode:T.statusCode,url:G,requestBodyValues:I,responseHeaders:Object.fromEntries([...J.headers]),responseBody:JSON.stringify(T),data:{error:{message:T.message,type:T.errorType,param:T.param}}});return{value:{videos:T.videos,warnings:T.warnings,providerMetadata:T.providerMetadata},responseHeaders:Object.fromEntries([...J.headers])}},failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(J)=>J}),...q&&{abortSignal:q},fetch:this.config.fetch});return{videos:b.videos,warnings:(E=b.warnings)!=null?E:[],providerMetadata:b.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:C}}}catch(C){throw await H(C,await w(P))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};function $$($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var W$=Z.object({videos:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),Q$=Z.union([Z.object({type:Z.literal("url"),url:Z.string(),mediaType:Z.string()}),Z.object({type:Z.literal("base64"),data:Z.string(),mediaType:Z.string()})]),X$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),Y$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("result"),videos:Z.array(Q$),warnings:Z.array(X$).optional(),providerMetadata:Z.record(Z.string(),W$).optional()}),Z.object({type:Z.literal("error"),message:Z.string(),errorType:Z.string(),statusCode:Z.number(),param:Z.unknown().nullable()})]),j$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3"}get provider(){return this.config.provider}async doRerank({documents:$,query:W,topN:Q,headers:X,abortSignal:Y,providerOptions:D}){let N=await U(this.config.headers());try{let{responseHeaders:j,value:K,rawValue:F}=await R({url:this.getUrl(),headers:O(N,X!=null?X:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{documents:$,query:W,...Q!=null?{topN:Q}:{},...D?{providerOptions:D}:{}},successfulResponseHandler:x(D$),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(q)=>q}),...Y&&{abortSignal:Y},fetch:this.config.fetch});return{ranking:K.ranking,providerMetadata:K.providerMetadata,response:{headers:j,body:F},warnings:[]}}catch(j){throw await H(j,await w(N))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"3","ai-model-id":this.modelId}}},D$=L(()=>V(Z.object({ranking:Z.array(Z.object({index:Z.number(),relevanceScore:Z.number()})),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),K$=L(()=>V(Z.object({objective:Z.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:Z.array(Z.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:Z.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:Z.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:Z.object({include_domains:Z.array(Z.string()).optional().describe("List of domains to include in search results."),exclude_domains:Z.array(Z.string()).optional().describe("List of domains to exclude from search results."),after_date:Z.string().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:Z.object({max_chars_per_result:Z.number().optional().describe("Maximum characters per result."),max_chars_total:Z.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:Z.object({max_age_seconds:Z.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}))),J$=L(()=>V(Z.union([Z.object({searchId:Z.string(),results:Z.array(Z.object({url:Z.string(),title:Z.string(),excerpt:Z.string(),publishDate:Z.string().nullable().optional(),relevanceScore:Z.number().optional()}))}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),A$=l({id:"gateway.parallel_search",inputSchema:K$,outputSchema:J$}),F$=($={})=>A$($),N$=L(()=>V(Z.object({query:Z.union([Z.string(),Z.array(Z.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:Z.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:Z.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:Z.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:Z.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:Z.array(Z.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:Z.array(Z.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:Z.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:Z.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:Z.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:Z.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:Z.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),U$=L(()=>V(Z.union([Z.object({results:Z.array(Z.object({title:Z.string(),url:Z.string(),snippet:Z.string(),date:Z.string().optional(),lastUpdated:Z.string().optional()})),id:Z.string()}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),L$=l({id:"gateway.perplexity_search",inputSchema:N$,outputSchema:U$}),V$=($={})=>L$($),q$={parallelSearch:F$,perplexitySearch:V$};async function T$(){var $;return($=sZ.getContext().headers)==null?void 0:$["x-vercel-id"]}var B$="3.0.104",G$="0.0.1";function x$($={}){var W,Q;let X=null,Y=null,D=(W=$.metadataCacheRefreshMillis)!=null?W:300000,N=0,j=(Q=gZ($.baseURL))!=null?Q:"https://ai-gateway.vercel.sh/v3/ai",K=async()=>{try{let A=await z$($);return yZ({Authorization:`Bearer ${A.token}`,"ai-gateway-protocol-version":G$,[nZ]:A.authMethod,...$.headers},`ai-sdk/gateway/${B$}`)}catch(A){throw lZ.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:A})}},F=()=>{let A=h({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),M=h({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),k=h({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),S=h({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let T=await T$();return{...A&&{"ai-o11y-deployment-id":A},...M&&{"ai-o11y-environment":M},...k&&{"ai-o11y-region":k},...T&&{"ai-o11y-request-id":T},...S&&{"ai-o11y-project-id":S}}}},q=(A)=>{return new d0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},E=async()=>{var A,M,k;let S=(k=(M=(A=$._internal)==null?void 0:A.currentDate)==null?void 0:M.call(A).getTime())!=null?k:Date.now();if(!X||S-N>D)N=S,X=new kZ({baseURL:j,headers:K,fetch:$.fetch}).getAvailableModels().then((T)=>{return Y=T,T}).catch(async(T)=>{throw await H(T,await w(await K()))});return Y?Promise.resolve(Y):X},P=async()=>{return new kZ({baseURL:j,headers:K,fetch:$.fetch}).getCredits().catch(async(A)=>{throw await H(A,await w(await K()))})},C=async(A)=>{return new _0({baseURL:j,headers:K,fetch:$.fetch}).getSpendReport(A).catch(async(M)=>{throw await H(M,await w(await K()))})},b=async(A)=>{return new p0({baseURL:j,headers:K,fetch:$.fetch}).getGenerationInfo(A).catch(async(M)=>{throw await H(M,await w(await K()))})},J=function(A){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return q(A)};J.specificationVersion="v3",J.getAvailableModels=E,J.getCredits=P,J.getSpendReport=C,J.getGenerationInfo=b,J.imageModel=(A)=>{return new t0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},J.languageModel=q;let G=(A)=>{return new n0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};J.embeddingModel=G,J.textEmbeddingModel=G,J.videoModel=(A)=>{return new Z$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};let I=(A)=>{return new j$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};return J.rerankingModel=I,J.reranking=I,J.chat=J.languageModel,J.embedding=J.embeddingModel,J.image=J.imageModel,J.video=J.videoModel,J.tools=q$,J}var $W=x$();async function z$($){let W=h({settingValue:$.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});if(W)return{token:W,authMethod:"api-key"};return{token:await tZ.getVercelOidcToken(),authMethod:"oidc"}}export{z as pp,lZ as qp,R0 as rp,S0 as sp,b0 as tp,HZ as up,v0 as vp,x$ as wp,$W as xp};
|