@qitqode/qitqode-android-arm64 0.2.7 → 0.2.9
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-ga6wc979.js → chunk-03zpnwk2.js} +1 -1
- package/bundle/{chunk-qdvnscxm.js → chunk-0a4pmkc9.js} +1 -1
- package/bundle/chunk-0aqdzyar.js +2 -0
- package/bundle/{chunk-drnj1a14.js → chunk-0egrckx0.js} +1 -1
- package/bundle/{chunk-aqcpk2vg.js → chunk-0eh3yc6e.js} +1 -1
- package/bundle/{chunk-14d301ze.js → chunk-0mh600tv.js} +1 -1
- package/bundle/{chunk-yd94wz5v.js → chunk-0s4cp6q2.js} +1 -1
- package/bundle/{chunk-368jx5dp.js → chunk-0tcggtwv.js} +1 -1
- package/bundle/{chunk-0qpqd7nz.js → chunk-0tm6589k.js} +2 -2
- package/bundle/{chunk-0gsw04hw.js → chunk-0w19vmd7.js} +2 -2
- package/bundle/{chunk-j6xmgn63.js → chunk-0z1keh2w.js} +1 -1
- package/bundle/{chunk-djqxbnwc.js → chunk-13jq2ygc.js} +1 -1
- package/bundle/{chunk-znmbfx70.js → chunk-1a6q1f5n.js} +1 -1
- package/bundle/{chunk-w43kmnm9.js → chunk-1acn5me8.js} +357 -357
- package/bundle/{chunk-aa2n02qk.js → chunk-1bxfzd6r.js} +2 -2
- package/bundle/{chunk-hrtze4c5.js → chunk-1har4t9a.js} +1 -1
- package/bundle/{chunk-33jcxsbe.js → chunk-1p9s5jj1.js} +1 -1
- package/bundle/{chunk-p40z6510.js → chunk-1v0khv7p.js} +1 -1
- package/bundle/{chunk-eeq0krp7.js → chunk-27saej0r.js} +2 -2
- package/bundle/{chunk-ppy0jy6j.js → chunk-29gwtcey.js} +1 -1
- package/bundle/{chunk-yjqww6ag.js → chunk-29q89bge.js} +2 -2
- package/bundle/chunk-2a5gjgvp.js +2 -0
- package/bundle/{chunk-bn71wqqf.js → chunk-2caaqmec.js} +1 -1
- package/bundle/{chunk-hhk2sp5n.js → chunk-2kh0tg92.js} +1 -1
- package/bundle/{chunk-bd505nsd.js → chunk-2nheahmq.js} +1 -1
- package/bundle/{chunk-42q8vj0w.js → chunk-2phyc1c0.js} +1 -1
- package/bundle/chunk-2pkfphgb.js +2 -0
- package/bundle/{chunk-4fy08jcj.js → chunk-2vaphpz0.js} +1 -1
- package/bundle/{chunk-qbrj9wzd.js → chunk-30wp95w1.js} +1 -1
- package/bundle/chunk-32fpqd0n.js +2 -0
- package/bundle/{chunk-yxttz5z5.js → chunk-35fj1sfm.js} +1 -1
- package/bundle/{chunk-1vpx7szf.js → chunk-3bb4aqh9.js} +1 -1
- package/bundle/chunk-3f2cjzb4.js +2 -0
- package/bundle/chunk-3qvap1kv.js +2 -0
- package/bundle/{chunk-c8prg3jx.js → chunk-3va85mbe.js} +2 -2
- package/bundle/{chunk-wvb17w0z.js → chunk-3z2zn8rj.js} +1 -1
- package/bundle/{chunk-84pjdenq.js → chunk-42hvspe7.js} +1 -1
- package/bundle/chunk-452tk6v3.js +2 -0
- package/bundle/{chunk-w3zhy5vq.js → chunk-48gap82w.js} +1 -1
- package/bundle/{chunk-4ftjx7ss.js → chunk-4gqb1hps.js} +1 -1
- package/bundle/{chunk-gww0skmn.js → chunk-4pmvxnkj.js} +1 -1
- package/bundle/chunk-4y9wbfd2.js +8 -0
- package/bundle/chunk-50qgz5ka.js +2 -0
- package/bundle/{chunk-4zhrg3rv.js → chunk-52xvhxek.js} +1 -1
- package/bundle/chunk-539cw9r0.js +2 -0
- package/bundle/{chunk-nfzpegqx.js → chunk-53jstmdp.js} +1 -1
- package/bundle/{chunk-8hmt3avx.js → chunk-56wq8cqj.js} +1 -1
- package/bundle/{chunk-mbbxedsq.js → chunk-59csnjc3.js} +2 -2
- package/bundle/chunk-5b0xyq5z.js +2 -0
- package/bundle/{chunk-0ggvqmnm.js → chunk-5bv63rqj.js} +1 -1
- package/bundle/{chunk-vfb72vdy.js → chunk-5cw8235e.js} +1 -1
- package/bundle/chunk-5j4nxpdy.js +2 -0
- package/bundle/chunk-5nxgk6hw.js +2 -0
- package/bundle/chunk-5qkvhr6y.js +2 -0
- package/bundle/{chunk-5zh91zk2.js → chunk-5r7c6vvx.js} +1 -1
- package/bundle/{chunk-c6cajbyj.js → chunk-5wx962mw.js} +1 -1
- package/bundle/{chunk-7sq5dyv1.js → chunk-5xkp27b1.js} +1 -1
- package/bundle/chunk-6dpdkzrk.js +2 -0
- package/bundle/chunk-6p6m5956.js +3 -0
- package/bundle/{chunk-n4qxj391.js → chunk-6ps30qax.js} +1 -1
- package/bundle/{chunk-kmzpeq8k.js → chunk-6tqbnxar.js} +1 -1
- package/bundle/{chunk-b6eypnbj.js → chunk-6vnqbejg.js} +1 -1
- package/bundle/{chunk-ghap1n1m.js → chunk-702bt91p.js} +4 -4
- package/bundle/{chunk-2c26kxp4.js → chunk-705qkpra.js} +1 -1
- package/bundle/{chunk-2pex3ak9.js → chunk-72crs18f.js} +1 -1
- package/bundle/chunk-76c400ze.js +2 -0
- package/bundle/{chunk-mghnkwp8.js → chunk-7adsab4h.js} +1 -1
- package/bundle/{chunk-n0g4983e.js → chunk-7bxxc4a3.js} +1 -1
- package/bundle/chunk-7g59hc61.js +2 -0
- package/bundle/{chunk-52rdms56.js → chunk-7jy53zqy.js} +1 -1
- package/bundle/chunk-7p88j56s.js +2 -0
- package/bundle/{chunk-5b3v1x2c.js → chunk-7pckez5z.js} +2 -2
- package/bundle/{chunk-q6p92zyn.js → chunk-7r92d7v9.js} +1 -1
- package/bundle/{chunk-t4b2fm7z.js → chunk-7thhd7ds.js} +1 -1
- package/bundle/chunk-7trngc9g.js +2 -0
- package/bundle/{chunk-4fvbexr8.js → chunk-85wh85pk.js} +1 -1
- package/bundle/chunk-8cebbmtf.js +2 -0
- package/bundle/chunk-8j1xcdmd.js +2 -0
- package/bundle/{chunk-ntpn0w9m.js → chunk-8jmb5bd4.js} +2 -2
- package/bundle/{chunk-pf3nqf00.js → chunk-8ysp6vf8.js} +1 -1
- package/bundle/{chunk-3k7016c2.js → chunk-8yzghzjq.js} +1 -1
- package/bundle/chunk-90r2z49k.js +2 -0
- package/bundle/{chunk-amp6mvbp.js → chunk-92r1gw2j.js} +1 -1
- package/bundle/{chunk-ktp2b4t4.js → chunk-94mjwy22.js} +1 -1
- package/bundle/{chunk-y5q9v80n.js → chunk-9bw6bx5c.js} +1 -1
- package/bundle/{chunk-f84hw65n.js → chunk-9cf2ktyh.js} +1 -1
- package/bundle/{chunk-x55h5qdc.js → chunk-a1z8rnq7.js} +3 -3
- package/bundle/{chunk-c3szabpf.js → chunk-a48mx917.js} +2 -2
- package/bundle/{chunk-prbxhnza.js → chunk-a8bjcvda.js} +1 -1
- package/bundle/chunk-aenrd7dk.js +2 -0
- package/bundle/{chunk-dw70wds9.js → chunk-afr8m0q1.js} +1 -1
- package/bundle/{chunk-7p6mxch0.js → chunk-ag8wxwwz.js} +1 -1
- package/bundle/{chunk-22qetqnp.js → chunk-ahmy80vb.js} +1 -1
- package/bundle/chunk-avn12jkt.js +2 -0
- package/bundle/{chunk-tc9xbn1t.js → chunk-ax64ngf2.js} +1 -1
- package/bundle/{chunk-0crgymtr.js → chunk-az3nss5m.js} +2 -2
- package/bundle/{chunk-73xryfgn.js → chunk-b5ym419d.js} +2 -2
- package/bundle/{chunk-dt1wwt7m.js → chunk-b7sr9rn3.js} +1 -1
- package/bundle/{chunk-9qzwmt76.js → chunk-bc2krtaf.js} +1 -1
- package/bundle/{chunk-jxkrhrp0.js → chunk-bhg69t69.js} +1 -1
- package/bundle/{chunk-ns8xnkjb.js → chunk-bkfafcbw.js} +1 -1
- package/bundle/{chunk-tkzctbxq.js → chunk-bnw744ej.js} +2 -2
- package/bundle/{chunk-twvmjsxf.js → chunk-bpfq8fz4.js} +1 -1
- package/bundle/chunk-brk6bge4.js +3 -0
- package/bundle/{chunk-s06t769q.js → chunk-bwadggys.js} +1 -1
- package/bundle/{chunk-spzd8rev.js → chunk-c76cjhn0.js} +1 -1
- package/bundle/{chunk-abv0fskc.js → chunk-c987bemn.js} +1 -1
- package/bundle/{chunk-705xnxbc.js → chunk-ccf4pgkr.js} +1 -1
- package/bundle/chunk-ce5e7j62.js +2 -0
- package/bundle/{chunk-2bjfz4fb.js → chunk-cf9m9m9q.js} +1 -1
- package/bundle/{chunk-z7kswv9r.js → chunk-cfwz1hgr.js} +3 -3
- package/bundle/{chunk-dgva3y5v.js → chunk-cghz0855.js} +1 -1
- package/bundle/{chunk-a76w2jwm.js → chunk-cr5tknvb.js} +1 -1
- package/bundle/chunk-cw1gwjx9.js +2 -0
- package/bundle/chunk-czw30fjs.js +2 -0
- package/bundle/{chunk-x80d0zh7.js → chunk-d30k7dpf.js} +1 -1
- package/bundle/{chunk-x9fyt3vx.js → chunk-d839fr0w.js} +1 -1
- package/bundle/{chunk-q87fw8dk.js → chunk-dcv6wj9x.js} +1 -1
- package/bundle/{chunk-4byvnx78.js → chunk-dgcannw0.js} +1 -1
- package/bundle/{chunk-4rpgwgx9.js → chunk-dhvx9p54.js} +1 -1
- package/bundle/{chunk-z744mz4w.js → chunk-dt3bsmfe.js} +2 -2
- package/bundle/chunk-dtcvqrmn.js +2 -0
- package/bundle/chunk-dwhsvpag.js +2 -0
- package/bundle/{chunk-4j76bf4j.js → chunk-dwkrqtbc.js} +1 -1
- package/bundle/{chunk-vzrc2fmt.js → chunk-dwqvcdmf.js} +1 -1
- package/bundle/chunk-e0hfpdje.js +2 -0
- package/bundle/{chunk-ajp53ksp.js → chunk-e0hha3be.js} +1 -1
- package/bundle/{chunk-f2pv705d.js → chunk-e0vrxetq.js} +1 -1
- package/bundle/{chunk-59kk0mce.js → chunk-e2wfj86b.js} +1 -1
- package/bundle/chunk-e5jk67xh.js +2 -0
- package/bundle/{chunk-ae7b11np.js → chunk-eacpc64g.js} +2 -2
- package/bundle/{chunk-hqjc4wgg.js → chunk-eewe7tx1.js} +2 -2
- package/bundle/{chunk-etv6c77a.js → chunk-eg1m81ax.js} +1 -1
- package/bundle/chunk-eg4pq4hv.js +2 -0
- package/bundle/{chunk-9xxnwb33.js → chunk-ejhhrece.js} +3 -3
- package/bundle/chunk-ew3yz97p.js +2 -0
- package/bundle/{chunk-19pspc1p.js → chunk-f2v4g7t1.js} +1 -1
- package/bundle/chunk-f2yfyhh8.js +2 -0
- package/bundle/{chunk-vp3yf46q.js → chunk-fa8pwdwv.js} +1 -1
- package/bundle/{chunk-vhzx5bxd.js → chunk-fd8x2nb4.js} +1 -1
- package/bundle/{chunk-dz3bec8g.js → chunk-fej5x648.js} +1 -1
- package/bundle/{chunk-0tqmm8b8.js → chunk-fh3d0wce.js} +1 -1
- package/bundle/{chunk-twd6r7nf.js → chunk-fjftb2sz.js} +1 -1
- package/bundle/{chunk-xhh70g8j.js → chunk-fs1vb39f.js} +2 -2
- package/bundle/{chunk-9g9katgy.js → chunk-ftvvm4r5.js} +2 -2
- package/bundle/chunk-fv5mrdyc.js +5 -0
- package/bundle/{chunk-gdew7bwm.js → chunk-fveaq0pb.js} +1 -1
- package/bundle/{chunk-ptwex14s.js → chunk-fw1f47de.js} +1 -1
- package/bundle/{chunk-y2t5pmqw.js → chunk-g26redah.js} +1 -1
- package/bundle/{chunk-acd72413.js → chunk-g3n465ee.js} +1 -1
- package/bundle/{chunk-hfefq104.js → chunk-g4tyaj0m.js} +1 -1
- package/bundle/{chunk-a610qd3x.js → chunk-g6y2c5az.js} +1 -1
- package/bundle/{chunk-tezrgfc6.js → chunk-g7v6sp3c.js} +2 -2
- package/bundle/{chunk-4bewbvvr.js → chunk-g878zd6e.js} +1 -1
- package/bundle/{chunk-na1wr2qf.js → chunk-g9nwqwqp.js} +1 -1
- package/bundle/chunk-gbvm6dpv.js +2 -0
- package/bundle/{chunk-xcxqt8ag.js → chunk-ggncq8w8.js} +1 -1
- package/bundle/chunk-gkbx6edf.js +2 -0
- package/bundle/{chunk-skxg3s8z.js → chunk-gq9hb2e8.js} +1 -1
- package/bundle/{chunk-gwrnxcdn.js → chunk-gsg6zn7e.js} +1 -1
- package/bundle/{chunk-v3nmnm57.js → chunk-gswhjd1h.js} +2 -2
- package/bundle/{chunk-4jpab7ag.js → chunk-gznt3dv8.js} +1 -1
- package/bundle/{chunk-defj5zs6.js → chunk-h1bvqstw.js} +1 -1
- package/bundle/chunk-h5w91zr4.js +2 -0
- package/bundle/{chunk-qp3hxqg5.js → chunk-h8mfbbjh.js} +1 -1
- package/bundle/chunk-hmpb3c21.js +2 -0
- package/bundle/chunk-hq7s4f75.js +2 -0
- package/bundle/{chunk-6gqs1k7m.js → chunk-hz02vrqs.js} +1 -1
- package/bundle/{chunk-3xdmxm5t.js → chunk-j10a984e.js} +1 -1
- package/bundle/chunk-j1h64m65.js +2 -0
- package/bundle/chunk-j32rr7rt.js +2 -0
- package/bundle/chunk-j871xzr7.js +2 -0
- package/bundle/{chunk-kfj37631.js → chunk-jmmtcr2r.js} +1 -1
- package/bundle/{chunk-h7658zxy.js → chunk-jpn9zfj5.js} +1 -1
- package/bundle/{chunk-wgt1tqw9.js → chunk-jqj1ay7x.js} +1 -1
- package/bundle/{chunk-e4g4mvak.js → chunk-jr80q31w.js} +1 -1
- package/bundle/{chunk-9a6p1gdn.js → chunk-k1qd8ecm.js} +7 -7
- package/bundle/{chunk-8jvfqh3b.js → chunk-k3m7jfdh.js} +1 -1
- package/bundle/{chunk-gbxf6e5d.js → chunk-k6981ysw.js} +3 -3
- package/bundle/{chunk-k6zwfstj.js → chunk-kckr30tf.js} +1 -1
- package/bundle/{chunk-8rfqv5he.js → chunk-kgv68cpb.js} +1 -1
- package/bundle/{chunk-55way0em.js → chunk-kveztc6k.js} +1 -1
- package/bundle/chunk-kx88qekb.js +2 -0
- package/bundle/chunk-m4g4djss.js +2 -0
- package/bundle/{chunk-nbckdba0.js → chunk-m4r8sepw.js} +1 -1
- package/bundle/{chunk-6ychs4wx.js → chunk-m7tmgvh6.js} +1 -1
- package/bundle/{chunk-npzx3yd5.js → chunk-maa21rh9.js} +1 -1
- package/bundle/{chunk-egkhynj5.js → chunk-makegrxs.js} +1 -1
- package/bundle/{chunk-438faz6b.js → chunk-mr17tppa.js} +1 -1
- package/bundle/{chunk-4ngmjk8j.js → chunk-mrq35ftw.js} +1 -1
- package/bundle/{chunk-9aafddkw.js → chunk-mt2by7rx.js} +1 -1
- package/bundle/{chunk-yzpc5kj2.js → chunk-mv7q6ach.js} +1 -1
- package/bundle/chunk-mwkms65j.js +3 -0
- package/bundle/chunk-n61e0znt.js +2 -0
- package/bundle/{chunk-kry4vcrf.js → chunk-n6tqtk6h.js} +2 -2
- package/bundle/{chunk-k3g28tbw.js → chunk-nas631g2.js} +1 -1
- package/bundle/chunk-ndd4cn3z.js +2 -0
- package/bundle/{chunk-dd4qnh8s.js → chunk-nsp1za8t.js} +1 -1
- package/bundle/chunk-nsw5x43k.js +2 -0
- package/bundle/{chunk-bk7f59fn.js → chunk-ntr0ezf2.js} +1 -1
- package/bundle/{chunk-cth373se.js → chunk-p2fte9vz.js} +2 -2
- package/bundle/chunk-p5b5ekhh.js +2 -0
- package/bundle/chunk-pf23nw4z.js +2 -0
- package/bundle/{chunk-whw18cn9.js → chunk-phf37x1c.js} +1 -1
- package/bundle/{chunk-r73e8gsp.js → chunk-phpxxd48.js} +1 -1
- package/bundle/{chunk-1ay97v74.js → chunk-pqg1wjb5.js} +1 -1
- package/bundle/chunk-pw3cv89g.js +2 -0
- package/bundle/{chunk-0am156m5.js → chunk-qbnt4ynd.js} +1 -1
- package/bundle/{chunk-mjrqhbp2.js → chunk-qgek59e6.js} +1 -1
- package/bundle/{chunk-v9w88wpy.js → chunk-qgkb6n8k.js} +1 -1
- package/bundle/{chunk-2c41dncf.js → chunk-qk1jkc0n.js} +1 -1
- package/bundle/{chunk-wb1d3mqw.js → chunk-qk5vy2pr.js} +1 -1
- package/bundle/{chunk-r4kg0z96.js → chunk-qsme16gk.js} +1 -1
- package/bundle/{chunk-d1tb1jd0.js → chunk-qwmae3vk.js} +1 -1
- package/bundle/chunk-rdk62809.js +2 -0
- package/bundle/{chunk-5r05d901.js → chunk-rdreeyv0.js} +2 -2
- package/bundle/chunk-rew6r516.js +2 -0
- package/bundle/{chunk-0bgssfvq.js → chunk-rjcz4kbm.js} +1 -1
- package/bundle/chunk-rmsqb6r4.js +10 -0
- package/bundle/{chunk-qph2c2v7.js → chunk-rva2ekrt.js} +1 -1
- package/bundle/{chunk-7z96r2px.js → chunk-rwnwjm82.js} +1 -1
- package/bundle/{chunk-ts2k13g0.js → chunk-rwwvy89t.js} +1 -1
- package/bundle/{chunk-tz3s8dvy.js → chunk-rye1yjnr.js} +1 -1
- package/bundle/{chunk-t9qyzzsz.js → chunk-ryrxgn6d.js} +1 -1
- package/bundle/{chunk-wjz42325.js → chunk-s2tc3qs0.js} +2 -2
- package/bundle/{chunk-p847g35y.js → chunk-s5aefff0.js} +1 -1
- package/bundle/{chunk-msh249db.js → chunk-sa0rrreh.js} +2 -2
- package/bundle/{chunk-dbpkq7ba.js → chunk-sbjymf20.js} +2 -2
- package/bundle/{chunk-n5p7cn4w.js → chunk-scnbt714.js} +1 -1
- package/bundle/chunk-skgr9ypq.js +2 -0
- package/bundle/{chunk-rhrcgvb8.js → chunk-sm1g81cv.js} +1 -1
- package/bundle/chunk-sv40pwe2.js +2 -0
- package/bundle/{chunk-qprbef09.js → chunk-sy9w1t2y.js} +1 -1
- package/bundle/{chunk-bd84t3fb.js → chunk-sz0favtz.js} +1 -1
- package/bundle/{chunk-xb3sxa6f.js → chunk-t18ka1e7.js} +1 -1
- package/bundle/{chunk-va2qfh0x.js → chunk-t3w43rft.js} +1 -1
- package/bundle/{chunk-n9twhc5d.js → chunk-t6zz47zk.js} +1 -1
- package/bundle/{chunk-wd8hbven.js → chunk-t8fjgkp8.js} +1 -1
- package/bundle/chunk-tax3ecy5.js +2 -0
- package/bundle/{chunk-6r48fje7.js → chunk-tbx741en.js} +1 -1
- package/bundle/chunk-tfhpjmny.js +2 -0
- package/bundle/{chunk-2cjfezfr.js → chunk-tk4z6r09.js} +1 -1
- package/bundle/chunk-tnete6ye.js +2 -0
- package/bundle/{chunk-2y87m7pe.js → chunk-tpyq7ycb.js} +1 -1
- package/bundle/chunk-tr0rm1ka.js +2 -0
- package/bundle/{chunk-nftbj8g9.js → chunk-trstb8ee.js} +1 -1
- package/bundle/{chunk-77h8tytk.js → chunk-ty14zznd.js} +1 -1
- package/bundle/chunk-v5h5wxw5.js +2 -0
- package/bundle/chunk-v6141yq1.js +2 -0
- package/bundle/{chunk-vjn54xj5.js → chunk-vbfej8ds.js} +2 -2
- package/bundle/{chunk-5nhwqg7c.js → chunk-vd8cmdpv.js} +1 -1
- package/bundle/{chunk-76h0f86f.js → chunk-vgt3artc.js} +1 -1
- package/bundle/chunk-vjs69r6x.js +2 -0
- package/bundle/{chunk-yy7r3t3w.js → chunk-vkkz40je.js} +1 -1
- package/bundle/chunk-vmhar83s.js +2 -0
- package/bundle/{chunk-zp5sr5nx.js → chunk-vph4w4yy.js} +1 -1
- package/bundle/chunk-vpjyk76v.js +2 -0
- package/bundle/chunk-vqvnw12p.js +2 -0
- package/bundle/{chunk-0g0jpw0z.js → chunk-vr8nwzp0.js} +1 -1
- package/bundle/{chunk-nrk29616.js → chunk-vs3s49jw.js} +1 -1
- package/bundle/{chunk-v0c3k797.js → chunk-vsqvnxbz.js} +1 -1
- package/bundle/{chunk-rqedtjz9.js → chunk-w0nc0gcx.js} +1 -1
- package/bundle/chunk-w0sztk4y.js +2 -0
- package/bundle/chunk-w6bb320d.js +2 -0
- package/bundle/{chunk-t8sy5sgx.js → chunk-w7a33cwa.js} +2 -2
- package/bundle/{chunk-agqss9ga.js → chunk-wb47k8ah.js} +2 -2
- package/bundle/{chunk-rfzra502.js → chunk-wd8f9r4k.js} +1 -1
- package/bundle/{chunk-hwsqqkrv.js → chunk-wgkcyqn1.js} +2 -2
- package/bundle/{chunk-dy2k5rdx.js → chunk-wm9nh9nb.js} +2 -2
- package/bundle/{chunk-6nxebcf8.js → chunk-wn63q3xp.js} +1 -1
- package/bundle/{chunk-z6kcnpsj.js → chunk-wqk1v8t0.js} +2 -2
- package/bundle/chunk-wqw6yjrg.js +2 -0
- package/bundle/{chunk-q3pt4p9f.js → chunk-wr6rnxr5.js} +1 -1
- package/bundle/chunk-ws08rxge.js +2 -0
- package/bundle/{chunk-dw7yrk1g.js → chunk-wtt5wms9.js} +1 -1
- package/bundle/{chunk-93pmbdz7.js → chunk-wtxh5m6j.js} +6 -6
- package/bundle/{chunk-q6mcnq9p.js → chunk-wwvek9zf.js} +1 -1
- package/bundle/chunk-wz3dvc3g.js +2 -0
- package/bundle/chunk-x2pmqvdc.js +2 -0
- package/bundle/chunk-x4wfq39v.js +2 -0
- package/bundle/chunk-x7a3kqe5.js +2 -0
- package/bundle/chunk-xb22grz6.js +2 -0
- package/bundle/{chunk-3623jvcm.js → chunk-xy8arehp.js} +1 -1
- package/bundle/{chunk-16srrzjr.js → chunk-y31f8k5f.js} +1 -1
- package/bundle/chunk-y3eeva80.js +2 -0
- package/bundle/{chunk-mhxyv9c8.js → chunk-y3gy62q5.js} +1 -1
- package/bundle/chunk-yb6m08zj.js +2 -0
- package/bundle/{chunk-b79z8f94.js → chunk-ybcqkgs7.js} +1 -1
- package/bundle/{chunk-95am490c.js → chunk-ydgst3h8.js} +2 -2
- package/bundle/{chunk-twfvrafb.js → chunk-ykpj10nz.js} +1 -1
- package/bundle/{chunk-e0zb6sw6.js → chunk-ynf17943.js} +1 -1
- package/bundle/{chunk-01e3v1xz.js → chunk-z0kbyr00.js} +2 -2
- package/bundle/{chunk-4vzjdmts.js → chunk-zfrftgcy.js} +1 -1
- package/bundle/chunk-zj1jc1xt.js +2 -0
- package/bundle/{chunk-9sv53kb4.js → chunk-zm0m0504.js} +1 -1
- package/bundle/chunk-zq32jhj1.js +2 -0
- package/bundle/{chunk-gdj7mqrd.js → chunk-zqdjk4rf.js} +1 -1
- package/bundle/{chunk-7x2q1w0f.js → chunk-zsg29gba.js} +1 -1
- package/bundle/{chunk-1c0yp2gv.js → chunk-zwhmg9dj.js} +1 -1
- package/bundle/chunk-zxwjxszn.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-0dzpjk7x.js +0 -2
- package/bundle/chunk-12fwmmcp.js +0 -2
- package/bundle/chunk-1a95ysv3.js +0 -2
- package/bundle/chunk-1akh8pk2.js +0 -2
- package/bundle/chunk-2d2a92kj.js +0 -2
- package/bundle/chunk-2qrvkef8.js +0 -2
- package/bundle/chunk-2tppw8j9.js +0 -2
- package/bundle/chunk-3ft1dn9j.js +0 -2
- package/bundle/chunk-3rgct4bd.js +0 -11
- package/bundle/chunk-4656qm05.js +0 -2
- package/bundle/chunk-46knch5z.js +0 -2
- package/bundle/chunk-4sgy87h5.js +0 -2
- package/bundle/chunk-54hktc8h.js +0 -2
- package/bundle/chunk-59m55866.js +0 -2
- package/bundle/chunk-5js5nw7r.js +0 -2
- package/bundle/chunk-61jn7908.js +0 -2
- package/bundle/chunk-61txdqz1.js +0 -2
- package/bundle/chunk-668g9wkg.js +0 -2
- package/bundle/chunk-6frhjpmt.js +0 -2
- package/bundle/chunk-6k14c8x1.js +0 -5
- package/bundle/chunk-6r1jpj0h.js +0 -2
- package/bundle/chunk-73fn4dqd.js +0 -2
- package/bundle/chunk-78j2c2je.js +0 -2
- package/bundle/chunk-78jt24ht.js +0 -2
- package/bundle/chunk-7j2vpavd.js +0 -2
- package/bundle/chunk-7nkxgm72.js +0 -2
- package/bundle/chunk-859pkecc.js +0 -2
- package/bundle/chunk-8p249svd.js +0 -2
- package/bundle/chunk-8rqbx4jw.js +0 -2
- package/bundle/chunk-8s3krfsm.js +0 -2
- package/bundle/chunk-9wbe0dkx.js +0 -2
- package/bundle/chunk-aj5z8qd5.js +0 -2
- package/bundle/chunk-b0c2mvc0.js +0 -2
- package/bundle/chunk-bbwcsdy9.js +0 -2
- package/bundle/chunk-bbzjdbb9.js +0 -2
- package/bundle/chunk-bh4s1yct.js +0 -2
- package/bundle/chunk-crqcppwq.js +0 -2
- package/bundle/chunk-d09zpgj1.js +0 -2
- package/bundle/chunk-dexcptaz.js +0 -3
- package/bundle/chunk-dgqkak21.js +0 -2
- package/bundle/chunk-dhgvh7c3.js +0 -2
- package/bundle/chunk-dmd101ja.js +0 -2
- package/bundle/chunk-dwb39jdf.js +0 -2
- package/bundle/chunk-dx4zxex7.js +0 -2
- package/bundle/chunk-e2pqvscp.js +0 -2
- package/bundle/chunk-efe6kj3d.js +0 -2
- package/bundle/chunk-emac0dss.js +0 -2
- package/bundle/chunk-encfnt6w.js +0 -2
- package/bundle/chunk-fg2nyz2x.js +0 -2
- package/bundle/chunk-ge19ff9d.js +0 -2
- package/bundle/chunk-gt0q07xq.js +0 -2
- package/bundle/chunk-h4dnjfr2.js +0 -2
- package/bundle/chunk-h8fx619t.js +0 -2
- package/bundle/chunk-jnvb3s7f.js +0 -2
- package/bundle/chunk-jrq2xw6e.js +0 -2
- package/bundle/chunk-jwckmhjm.js +0 -2
- package/bundle/chunk-jz27ypm5.js +0 -2
- package/bundle/chunk-jzrs878d.js +0 -2
- package/bundle/chunk-jzx700tb.js +0 -2
- package/bundle/chunk-k1x8469r.js +0 -3
- package/bundle/chunk-m483jvn8.js +0 -2
- package/bundle/chunk-makecdh6.js +0 -8
- package/bundle/chunk-menbcmkq.js +0 -2
- package/bundle/chunk-np8h66t0.js +0 -2
- package/bundle/chunk-nwwmns3w.js +0 -2
- package/bundle/chunk-pe5dpzec.js +0 -2
- package/bundle/chunk-q8f6a074.js +0 -2
- package/bundle/chunk-qqaevt32.js +0 -2
- package/bundle/chunk-qzpvz708.js +0 -2
- package/bundle/chunk-reyjr2e0.js +0 -2
- package/bundle/chunk-t178njgb.js +0 -2
- package/bundle/chunk-tjpev5t6.js +0 -2
- package/bundle/chunk-tzq7wjgv.js +0 -3
- package/bundle/chunk-v1s16wwd.js +0 -2
- package/bundle/chunk-v6b29nx4.js +0 -2
- package/bundle/chunk-v6rgd1j5.js +0 -2
- package/bundle/chunk-v9dnetq8.js +0 -2
- package/bundle/chunk-vd5mpvcc.js +0 -2
- package/bundle/chunk-wwct4z7j.js +0 -2
- package/bundle/chunk-xr9wz961.js +0 -2
- package/bundle/chunk-zfegnt1e.js +0 -2
- package/bundle/chunk-zg7kesbp.js +0 -2
- package/bundle/chunk-zy06fe4r.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{wf as n6,xf as L0,yf as t6}from"./chunk-gdj7mqrd.js";import{$q as d6,Aq as l6,Eq as p6,Qq as A0,Sq as JY,Tq as M0,_q as o6,ar as r6,er as u6,fq as F0,mq as PY,vq as CQ}from"./chunk-dy2k5rdx.js";import{mr as w0,tr as qQ}from"./chunk-n5p7cn4w.js";import"./chunk-cqtkxwd8.js";import"./chunk-mhxyv9c8.js";import"./chunk-c3szabpf.js";import"./chunk-c8prg3jx.js";import"./chunk-f2pv705d.js";var y9=Object.defineProperty,s=(Q,q)=>{for(var G in q)y9(Q,G,{get:q[G],enumerable:!0})},f9="2.0.1";function m9({tools:Q,toolChoice:q}){Q=Q?.length?Q:void 0;let G=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:G};let H=[];for(let X of Q)if(X.type==="provider")G.push({type:"unsupported",feature:`provider-defined tool ${X.id}`});else H.push({type:"function",function:{name:X.name,description:X.description,parameters:X.inputSchema,...X.strict!=null?{strict:X.strict}:{}}});if(q==null)return{tools:H,toolChoice:void 0,toolWarnings:G};let Y=q.type;switch(Y){case"auto":case"none":case"required":return{tools:H,toolChoice:Y,toolWarnings:G};case"tool":return{tools:H,toolChoice:{type:"function",function:{name:q.toolName}},toolWarnings:G};default:throw new qQ({functionality:`tool choice type: ${Y}`})}}function $6(Q){if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};return{inputTokens:{total:Q.total_tokens??void 0,noCache:Q.prompt_tokens??void 0,cacheRead:Q.prompt_tokens_details?.cached_tokens??void 0,cacheWrite:Q.prompt_tokens_details?.cache_creation_input_tokens??void 0},outputTokens:{total:Q.completion_tokens??void 0,text:void 0,reasoning:void 0},raw:Q}}var F={};s(F,{$brand:()=>e6,$input:()=>SG,$output:()=>TG,NEVER:()=>i6,TimePrecision:()=>xG,ZodAny:()=>_1,ZodArray:()=>y1,ZodBase64:()=>tY,ZodBase64URL:()=>aY,ZodBigInt:()=>iQ,ZodBigIntFormat:()=>sY,ZodBoolean:()=>aQ,ZodCIDRv4:()=>uY,ZodCIDRv6:()=>nY,ZodCUID:()=>mY,ZodCUID2:()=>cY,ZodCatch:()=>W6,ZodCodec:()=>K0,ZodCustom:()=>qY,ZodCustomStringFormat:()=>ZQ,ZodDate:()=>Y0,ZodDefault:()=>Q6,ZodDiscriminatedUnion:()=>m1,ZodE164:()=>iY,ZodEmail:()=>gY,ZodEmoji:()=>yY,ZodEnum:()=>VQ,ZodError:()=>HK,ZodExactOptional:()=>i1,ZodFile:()=>t1,ZodFirstPartyTypeKind:()=>V0,ZodFunction:()=>M6,ZodGUID:()=>SQ,ZodIPv4:()=>dY,ZodIPv6:()=>rY,ZodISODate:()=>Z1,ZodISODateTime:()=>R1,ZodISODuration:()=>b1,ZodISOTime:()=>D1,ZodIntersection:()=>c1,ZodIssueCode:()=>WK,ZodJWT:()=>eY,ZodKSUID:()=>oY,ZodLazy:()=>w6,ZodLiteral:()=>n1,ZodMAC:()=>C1,ZodMap:()=>r1,ZodNaN:()=>K6,ZodNanoID:()=>fY,ZodNever:()=>h1,ZodNonOptional:()=>W0,ZodNull:()=>j1,ZodNullable:()=>s1,ZodNumber:()=>tQ,ZodNumberFormat:()=>AQ,ZodObject:()=>sQ,ZodOptional:()=>H0,ZodPipe:()=>J0,ZodPrefault:()=>q6,ZodPromise:()=>A6,ZodReadonly:()=>B6,ZodRealError:()=>p,ZodRecord:()=>YY,ZodSet:()=>u1,ZodString:()=>uQ,ZodStringFormat:()=>S,ZodSuccess:()=>H6,ZodSymbol:()=>S1,ZodTemplateLiteral:()=>U6,ZodTransform:()=>a1,ZodTuple:()=>p1,ZodType:()=>D,ZodULID:()=>lY,ZodURL:()=>nQ,ZodUUID:()=>i,ZodUndefined:()=>z1,ZodUnion:()=>QY,ZodUnknown:()=>x1,ZodVoid:()=>g1,ZodXID:()=>pY,ZodXor:()=>f1,_ZodString:()=>hY,_default:()=>Y6,_function:()=>LY,any:()=>H9,array:()=>eQ,base64:()=>l2,base64url:()=>p2,bigint:()=>Q9,boolean:()=>T1,catch:()=>J6,check:()=>C9,cidrv4:()=>m2,cidrv6:()=>c2,clone:()=>u,codec:()=>Z9,coerce:()=>h9,config:()=>h,core:()=>a6,cuid:()=>j2,cuid2:()=>v2,custom:()=>k9,date:()=>J9,decode:()=>M2,decodeAsync:()=>P2,describe:()=>T9,discriminatedUnion:()=>F9,e164:()=>o2,email:()=>V2,emoji:()=>S2,encode:()=>A2,encodeAsync:()=>L2,endsWith:()=>TY,enum:()=>X0,exactOptional:()=>e1,file:()=>O9,flattenError:()=>b0,float32:()=>a2,float64:()=>i2,formatError:()=>C0,fromJSONSchema:()=>wK,function:()=>LY,getErrorMap:()=>KK,globalRegistry:()=>o,gt:()=>GQ,gte:()=>m,guid:()=>R2,hash:()=>t2,hex:()=>n2,hostname:()=>u2,httpUrl:()=>T2,includes:()=>CY,instanceof:()=>z9,int:()=>MY,int32:()=>e2,int64:()=>Y9,intersection:()=>l1,ipv4:()=>g2,ipv6:()=>f2,iso:()=>V1,json:()=>v9,jwt:()=>d2,keyof:()=>K9,ksuid:()=>h2,lazy:()=>F6,length:()=>dQ,literal:()=>E9,locales:()=>u0,looseObject:()=>U9,looseRecord:()=>M9,lowercase:()=>DY,lt:()=>XQ,lte:()=>d,mac:()=>y2,map:()=>L9,maxLength:()=>oQ,maxSize:()=>RQ,meta:()=>S9,mime:()=>SY,minLength:()=>NQ,minSize:()=>HQ,multipleOf:()=>$Q,nan:()=>R9,nanoid:()=>z2,nativeEnum:()=>$9,negative:()=>L1,never:()=>Q0,nonnegative:()=>$1,nonoptional:()=>G6,nonpositive:()=>P1,normalize:()=>zY,null:()=>v1,nullable:()=>jQ,nullish:()=>I9,number:()=>k1,object:()=>B9,optional:()=>zQ,overwrite:()=>YQ,parse:()=>N2,parseAsync:()=>U2,partialRecord:()=>A9,pipe:()=>vQ,positive:()=>M1,prefault:()=>X6,preprocess:()=>_9,prettifyError:()=>wq,promise:()=>b9,property:()=>E1,readonly:()=>N6,record:()=>d1,refine:()=>L6,regex:()=>ZY,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>E2,safeDecodeAsync:()=>I2,safeEncode:()=>$2,safeEncodeAsync:()=>O2,safeParse:()=>w2,safeParseAsync:()=>F2,set:()=>P9,setErrorMap:()=>JK,size:()=>pQ,slugify:()=>xY,startsWith:()=>kY,strictObject:()=>N9,string:()=>AY,stringFormat:()=>r2,stringbool:()=>j9,success:()=>V9,superRefine:()=>P6,symbol:()=>X9,templateLiteral:()=>D9,toJSONSchema:()=>q2,toLowerCase:()=>vY,toUpperCase:()=>_Y,transform:()=>G0,treeifyError:()=>Nq,trim:()=>jY,tuple:()=>o1,uint32:()=>s2,uint64:()=>q9,ulid:()=>_2,undefined:()=>G9,union:()=>q0,unknown:()=>UQ,uppercase:()=>bY,url:()=>k2,util:()=>C,uuid:()=>Z2,uuidv4:()=>D2,uuidv6:()=>b2,uuidv7:()=>C2,void:()=>W9,xid:()=>x2,xor:()=>w9});var a6={};s(a6,{$ZodAny:()=>dX,$ZodArray:()=>aX,$ZodAsyncError:()=>KQ,$ZodBase64:()=>vX,$ZodBase64URL:()=>xX,$ZodBigInt:()=>p0,$ZodBigIntFormat:()=>cX,$ZodBoolean:()=>l0,$ZodCIDRv4:()=>zX,$ZodCIDRv6:()=>jX,$ZodCUID:()=>EX,$ZodCUID2:()=>OX,$ZodCatch:()=>PG,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>tq,$ZodCheckEndsWith:()=>JX,$ZodCheckGreaterThan:()=>f0,$ZodCheckIncludes:()=>HX,$ZodCheckLengthEquals:()=>YX,$ZodCheckLessThan:()=>y0,$ZodCheckLowerCase:()=>XX,$ZodCheckMaxLength:()=>sq,$ZodCheckMaxSize:()=>aq,$ZodCheckMimeType:()=>BX,$ZodCheckMinLength:()=>QX,$ZodCheckMinSize:()=>iq,$ZodCheckMultipleOf:()=>uq,$ZodCheckNumberFormat:()=>nq,$ZodCheckOverwrite:()=>NX,$ZodCheckProperty:()=>KX,$ZodCheckRegex:()=>qX,$ZodCheckSizeEquals:()=>eq,$ZodCheckStartsWith:()=>WX,$ZodCheckStringFormat:()=>cQ,$ZodCheckUpperCase:()=>GX,$ZodCodec:()=>r0,$ZodCustom:()=>DG,$ZodCustomStringFormat:()=>fX,$ZodDate:()=>tX,$ZodDefault:()=>FG,$ZodDiscriminatedUnion:()=>qG,$ZodE164:()=>hX,$ZodEmail:()=>MX,$ZodEmoji:()=>PX,$ZodEncodeError:()=>$Y,$ZodEnum:()=>JG,$ZodError:()=>D0,$ZodExactOptional:()=>UG,$ZodFile:()=>BG,$ZodFunction:()=>VG,$ZodGUID:()=>FX,$ZodIPv4:()=>kX,$ZodIPv6:()=>TX,$ZodISODate:()=>DX,$ZodISODateTime:()=>ZX,$ZodISODuration:()=>CX,$ZodISOTime:()=>bX,$ZodIntersection:()=>XG,$ZodJWT:()=>yX,$ZodKSUID:()=>RX,$ZodLazy:()=>ZG,$ZodLiteral:()=>KG,$ZodMAC:()=>SX,$ZodMap:()=>HG,$ZodNaN:()=>$G,$ZodNanoID:()=>$X,$ZodNever:()=>uX,$ZodNonOptional:()=>MG,$ZodNull:()=>oX,$ZodNullable:()=>wG,$ZodNumber:()=>c0,$ZodNumberFormat:()=>mX,$ZodObject:()=>sX,$ZodObjectJIT:()=>QG,$ZodOptional:()=>d0,$ZodPipe:()=>EG,$ZodPrefault:()=>AG,$ZodPromise:()=>RG,$ZodReadonly:()=>OG,$ZodRealError:()=>l,$ZodRecord:()=>GG,$ZodRegistry:()=>zG,$ZodSet:()=>WG,$ZodString:()=>lQ,$ZodStringFormat:()=>T,$ZodSuccess:()=>LG,$ZodSymbol:()=>lX,$ZodTemplateLiteral:()=>IG,$ZodTransform:()=>NG,$ZodTuple:()=>o0,$ZodType:()=>Z,$ZodULID:()=>IX,$ZodURL:()=>LX,$ZodUUID:()=>AX,$ZodUndefined:()=>pX,$ZodUnion:()=>VY,$ZodUnknown:()=>rX,$ZodVoid:()=>nX,$ZodXID:()=>VX,$ZodXor:()=>YG,$brand:()=>e6,$constructor:()=>U,$input:()=>SG,$output:()=>TG,Doc:()=>UX,JSONSchema:()=>GK,JSONSchemaGenerator:()=>XK,NEVER:()=>i6,TimePrecision:()=>xG,_any:()=>q8,_array:()=>B8,_base64:()=>U1,_base64url:()=>w1,_bigint:()=>tG,_boolean:()=>uG,_catch:()=>aJ,_check:()=>A8,_cidrv4:()=>B1,_cidrv6:()=>N1,_coercedBigint:()=>aG,_coercedBoolean:()=>nG,_coercedDate:()=>J8,_coercedNumber:()=>cG,_coercedString:()=>vG,_cuid:()=>q1,_cuid2:()=>X1,_custom:()=>U8,_date:()=>W8,_decode:()=>T0,_decodeAsync:()=>z0,_default:()=>uJ,_discriminatedUnion:()=>xJ,_e164:()=>F1,_email:()=>t0,_emoji:()=>Q1,_encode:()=>k0,_encodeAsync:()=>S0,_endsWith:()=>TY,_enum:()=>cJ,_file:()=>N8,_float32:()=>pG,_float64:()=>oG,_gt:()=>GQ,_gte:()=>m,_guid:()=>FY,_includes:()=>CY,_int:()=>lG,_int32:()=>dG,_int64:()=>iG,_intersection:()=>hJ,_ipv4:()=>J1,_ipv6:()=>K1,_isoDate:()=>gG,_isoDateTime:()=>hG,_isoDuration:()=>fG,_isoTime:()=>yG,_jwt:()=>A1,_ksuid:()=>W1,_lazy:()=>QK,_length:()=>dQ,_literal:()=>pJ,_lowercase:()=>DY,_lt:()=>XQ,_lte:()=>d,_mac:()=>_G,_map:()=>fJ,_max:()=>d,_maxLength:()=>oQ,_maxSize:()=>RQ,_mime:()=>SY,_min:()=>m,_minLength:()=>NQ,_minSize:()=>HQ,_multipleOf:()=>$Q,_nan:()=>K8,_nanoid:()=>Y1,_nativeEnum:()=>lJ,_negative:()=>L1,_never:()=>G8,_nonnegative:()=>$1,_nonoptional:()=>nJ,_nonpositive:()=>P1,_normalize:()=>zY,_null:()=>Y8,_nullable:()=>rJ,_number:()=>mG,_optional:()=>dJ,_overwrite:()=>YQ,_parse:()=>xQ,_parseAsync:()=>hQ,_pipe:()=>iJ,_positive:()=>M1,_promise:()=>YK,_property:()=>E1,_readonly:()=>eJ,_record:()=>yJ,_refine:()=>w8,_regex:()=>ZY,_safeDecode:()=>v0,_safeDecodeAsync:()=>x0,_safeEncode:()=>j0,_safeEncodeAsync:()=>_0,_safeParse:()=>gQ,_safeParseAsync:()=>yQ,_set:()=>mJ,_size:()=>pQ,_slugify:()=>xY,_startsWith:()=>kY,_string:()=>jG,_stringFormat:()=>rQ,_stringbool:()=>P8,_success:()=>tJ,_superRefine:()=>F8,_symbol:()=>sG,_templateLiteral:()=>sJ,_toLowerCase:()=>vY,_toUpperCase:()=>_Y,_transform:()=>oJ,_trim:()=>jY,_tuple:()=>gJ,_uint32:()=>rG,_uint64:()=>eG,_ulid:()=>G1,_undefined:()=>Q8,_union:()=>vJ,_unknown:()=>X8,_uppercase:()=>bY,_url:()=>RY,_uuid:()=>a0,_uuidv4:()=>i0,_uuidv6:()=>e0,_uuidv7:()=>s0,_void:()=>H8,_xid:()=>H1,_xor:()=>_J,clone:()=>u,config:()=>h,createStandardJSONSchemaMethod:()=>TQ,createToJSONSchemaMethod:()=>$8,decode:()=>AH,decodeAsync:()=>LH,describe:()=>M8,encode:()=>FH,encodeAsync:()=>MH,extractDefs:()=>OQ,finalize:()=>IQ,flattenError:()=>b0,formatError:()=>C0,globalConfig:()=>KY,globalRegistry:()=>o,initializeContext:()=>EQ,isValidBase64:()=>m0,isValidBase64URL:()=>_X,isValidJWT:()=>gX,locales:()=>u0,meta:()=>L8,parse:()=>$0,parseAsync:()=>E0,prettifyError:()=>wq,process:()=>k,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>$H,safeDecodeAsync:()=>OH,safeEncode:()=>PH,safeEncodeAsync:()=>EH,safeParse:()=>Fq,safeParseAsync:()=>Aq,toDotPath:()=>Uq,toJSONSchema:()=>q2,treeifyError:()=>Nq,util:()=>C,version:()=>wX});var i6=Object.freeze({status:"aborted"});function U(Q,q,G){function H(J,K){if(!J._zod)Object.defineProperty(J,"_zod",{value:{def:K,constr:W,traits:new Set},enumerable:!1});if(J._zod.traits.has(Q))return;J._zod.traits.add(Q),q(J,K);let B=W.prototype,N=Object.keys(B);for(let w=0;w<N.length;w++){let L=N[w];if(!(L in J))J[L]=B[L].bind(J)}}let Y=G?.Parent??Object;class X extends Y{}Object.defineProperty(X,"name",{value:Q});function W(J){var K;let B=G?.Parent?new X:this;H(B,J),(K=B._zod).deferred??(K.deferred=[]);for(let N of B._zod.deferred)N();return B}return Object.defineProperty(W,"init",{value:H}),Object.defineProperty(W,Symbol.hasInstance,{value:(J)=>{if(G?.Parent&&J instanceof G.Parent)return!0;return J?._zod?.traits?.has(Q)}}),Object.defineProperty(W,"name",{value:Q}),W}var e6=Symbol("zod_brand"),KQ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$Y=class extends Error{constructor(Q){super(`Encountered unidirectional transform during encode: ${Q}`);this.name="ZodEncodeError"}},KY={};function h(Q){if(Q)Object.assign(KY,Q);return KY}var C={};s(C,{BIGINT_FORMAT_RANGES:()=>Wq,Class:()=>wH,NUMBER_FORMAT_RANGES:()=>Hq,aborted:()=>JQ,allowsEval:()=>Yq,assert:()=>d9,assertEqual:()=>c9,assertIs:()=>p9,assertNever:()=>o9,assertNotEqual:()=>l9,assignProp:()=>WQ,base64ToUint8Array:()=>Jq,base64urlToUint8Array:()=>KH,cached:()=>_Q,captureStackTrace:()=>Z0,cleanEnum:()=>JH,cleanRegex:()=>EY,clone:()=>u,cloneDef:()=>u9,createTransparentProxy:()=>s9,defineLazy:()=>b,esc:()=>P0,escapeRegex:()=>e,extend:()=>qH,finalizeIssue:()=>r,floatSafeRemainder:()=>s6,getElementAtPath:()=>n9,getEnumValues:()=>R0,getLengthableOrigin:()=>IY,getParsedType:()=>e9,getSizableOrigin:()=>OY,hexToUint8Array:()=>NH,isObject:()=>LQ,isPlainObject:()=>BQ,issue:()=>UY,joinValues:()=>M,jsonStringifyReplacer:()=>BY,merge:()=>GH,mergeDefs:()=>QQ,normalizeParams:()=>P,nullish:()=>wQ,numKeys:()=>i9,objectClone:()=>r9,omit:()=>YH,optionalKeys:()=>Gq,parsedType:()=>V,partial:()=>HH,pick:()=>QH,prefixIssues:()=>a,primitiveTypes:()=>Xq,promiseAllObject:()=>t9,propertyKeyTypes:()=>NY,randomString:()=>a9,required:()=>WH,safeExtend:()=>XH,shallowClone:()=>qq,slugify:()=>Qq,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>Kq,uint8ArrayToBase64url:()=>BH,uint8ArrayToHex:()=>UH,unwrapMessage:()=>kQ});function c9(Q){return Q}function l9(Q){return Q}function p9(Q){}function o9(Q){throw Error("Unexpected value in exhaustive check")}function d9(Q){}function R0(Q){let q=Object.values(Q).filter((H)=>typeof H==="number");return Object.entries(Q).filter(([H,Y])=>q.indexOf(+H)===-1).map(([H,Y])=>Y)}function M(Q,q="|"){return Q.map((G)=>I(G)).join(q)}function BY(Q,q){if(typeof q==="bigint")return q.toString();return q}function _Q(Q){return{get value(){{let G=Q();return Object.defineProperty(this,"value",{value:G}),G}throw Error("cached value already set")}}}function wQ(Q){return Q===null||Q===void 0}function EY(Q){let q=Q.startsWith("^")?1:0,G=Q.endsWith("$")?Q.length-1:Q.length;return Q.slice(q,G)}function s6(Q,q){let G=(Q.toString().split(".")[1]||"").length,H=q.toString(),Y=(H.split(".")[1]||"").length;if(Y===0&&/\d?e-\d?/.test(H)){let K=H.match(/\d?e-(\d?)/);if(K?.[1])Y=Number.parseInt(K[1])}let X=G>Y?G:Y,W=Number.parseInt(Q.toFixed(X).replace(".","")),J=Number.parseInt(q.toFixed(X).replace(".",""));return W%J/10**X}var E6=Symbol("evaluating");function b(Q,q,G){let H=void 0;Object.defineProperty(Q,q,{get(){if(H===E6)return;if(H===void 0)H=E6,H=G();return H},set(Y){Object.defineProperty(Q,q,{value:Y})},configurable:!0})}function r9(Q){return Object.create(Object.getPrototypeOf(Q),Object.getOwnPropertyDescriptors(Q))}function WQ(Q,q,G){Object.defineProperty(Q,q,{value:G,writable:!0,enumerable:!0,configurable:!0})}function QQ(...Q){let q={};for(let G of Q){let H=Object.getOwnPropertyDescriptors(G);Object.assign(q,H)}return Object.defineProperties({},q)}function u9(Q){return QQ(Q._zod.def)}function n9(Q,q){if(!q)return Q;return q.reduce((G,H)=>G?.[H],Q)}function t9(Q){let q=Object.keys(Q),G=q.map((H)=>Q[H]);return Promise.all(G).then((H)=>{let Y={};for(let X=0;X<q.length;X++)Y[q[X]]=H[X];return Y})}function a9(Q=10){let G="";for(let H=0;H<Q;H++)G+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return G}function P0(Q){return JSON.stringify(Q)}function Qq(Q){return Q.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Z0="captureStackTrace"in Error?Error.captureStackTrace:(...Q)=>{};function LQ(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var Yq=_Q(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(Q){return!1}});function BQ(Q){if(LQ(Q)===!1)return!1;let q=Q.constructor;if(q===void 0)return!0;if(typeof q!=="function")return!0;let G=q.prototype;if(LQ(G)===!1)return!1;if(Object.prototype.hasOwnProperty.call(G,"isPrototypeOf")===!1)return!1;return!0}function qq(Q){if(BQ(Q))return{...Q};if(Array.isArray(Q))return[...Q];return Q}function i9(Q){let q=0;for(let G in Q)if(Object.prototype.hasOwnProperty.call(Q,G))q++;return q}var e9=(Q)=>{let q=typeof Q;switch(q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(Q)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(Q))return"array";if(Q===null)return"null";if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return"promise";if(typeof Map<"u"&&Q instanceof Map)return"map";if(typeof Set<"u"&&Q instanceof Set)return"set";if(typeof Date<"u"&&Q instanceof Date)return"date";if(typeof File<"u"&&Q instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${q}`)}},NY=new Set(["string","number","symbol"]),Xq=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e(Q){return Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(Q,q,G){let H=new Q._zod.constr(q??Q._zod.def);if(!q||G?.parent)H._zod.parent=Q;return H}function P(Q){let q=Q;if(!q)return{};if(typeof q==="string")return{error:()=>q};if(q?.message!==void 0){if(q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");q.error=q.message}if(delete q.message,typeof q.error==="string")return{...q,error:()=>q.error};return q}function s9(Q){let q;return new Proxy({},{get(G,H,Y){return q??(q=Q()),Reflect.get(q,H,Y)},set(G,H,Y,X){return q??(q=Q()),Reflect.set(q,H,Y,X)},has(G,H){return q??(q=Q()),Reflect.has(q,H)},deleteProperty(G,H){return q??(q=Q()),Reflect.deleteProperty(q,H)},ownKeys(G){return q??(q=Q()),Reflect.ownKeys(q)},getOwnPropertyDescriptor(G,H){return q??(q=Q()),Reflect.getOwnPropertyDescriptor(q,H)},defineProperty(G,H,Y){return q??(q=Q()),Reflect.defineProperty(q,H,Y)}})}function I(Q){if(typeof Q==="bigint")return Q.toString()+"n";if(typeof Q==="string")return`"${Q}"`;return`${Q}`}function Gq(Q){return Object.keys(Q).filter((q)=>{return Q[q]._zod.optin==="optional"&&Q[q]._zod.optout==="optional"})}var Hq={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wq={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function QH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;W[J]=G.shape[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function YH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={...Q._zod.def.shape};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;delete W[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function qH(Q,q){if(!BQ(q))throw Error("Invalid input to extend: expected a plain object");let G=Q._zod.def.checks;if(G&&G.length>0){let X=Q._zod.def.shape;for(let W in q)if(Object.getOwnPropertyDescriptor(X,W)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let Y=QQ(Q._zod.def,{get shape(){let X={...Q._zod.def.shape,...q};return WQ(this,"shape",X),X}});return u(Q,Y)}function XH(Q,q){if(!BQ(q))throw Error("Invalid input to safeExtend: expected a plain object");let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q};return WQ(this,"shape",H),H}});return u(Q,G)}function GH(Q,q){let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q._zod.def.shape};return WQ(this,"shape",H),H},get catchall(){return q._zod.def.catchall},checks:[]});return u(Q,G)}function HH(Q,q,G){let Y=q._zod.def.checks;if(Y&&Y.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let W=QQ(q._zod.def,{get shape(){let J=q._zod.def.shape,K={...J};if(G)for(let B in G){if(!(B in J))throw Error(`Unrecognized key: "${B}"`);if(!G[B])continue;K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B]}else for(let B in J)K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B];return WQ(this,"shape",K),K},checks:[]});return u(q,W)}function WH(Q,q,G){let H=QQ(q._zod.def,{get shape(){let Y=q._zod.def.shape,X={...Y};if(G)for(let W in G){if(!(W in X))throw Error(`Unrecognized key: "${W}"`);if(!G[W])continue;X[W]=new Q({type:"nonoptional",innerType:Y[W]})}else for(let W in Y)X[W]=new Q({type:"nonoptional",innerType:Y[W]});return WQ(this,"shape",X),X}});return u(q,H)}function JQ(Q,q=0){if(Q.aborted===!0)return!0;for(let G=q;G<Q.issues.length;G++)if(Q.issues[G]?.continue!==!0)return!0;return!1}function a(Q,q){return q.map((G)=>{var H;return(H=G).path??(H.path=[]),G.path.unshift(Q),G})}function kQ(Q){return typeof Q==="string"?Q:Q?.message}function r(Q,q,G){let H={...Q,path:Q.path??[]};if(!Q.message){let Y=kQ(Q.inst?._zod.def?.error?.(Q))??kQ(q?.error?.(Q))??kQ(G.customError?.(Q))??kQ(G.localeError?.(Q))??"Invalid input";H.message=Y}if(delete H.inst,delete H.continue,!q?.reportInput)delete H.input;return H}function OY(Q){if(Q instanceof Set)return"set";if(Q instanceof Map)return"map";if(Q instanceof File)return"file";return"unknown"}function IY(Q){if(Array.isArray(Q))return"array";if(typeof Q==="string")return"string";return"unknown"}function V(Q){let q=typeof Q;switch(q){case"number":return Number.isNaN(Q)?"nan":"number";case"object":{if(Q===null)return"null";if(Array.isArray(Q))return"array";let G=Q;if(G&&Object.getPrototypeOf(G)!==Object.prototype&&"constructor"in G&&G.constructor)return G.constructor.name}}return q}function UY(...Q){let[q,G,H]=Q;if(typeof q==="string")return{message:q,code:"custom",input:G,inst:H};return{...q}}function JH(Q){return Object.entries(Q).filter(([q,G])=>{return Number.isNaN(Number.parseInt(q,10))}).map((q)=>q[1])}function Jq(Q){let q=atob(Q),G=new Uint8Array(q.length);for(let H=0;H<q.length;H++)G[H]=q.charCodeAt(H);return G}function Kq(Q){let q="";for(let G=0;G<Q.length;G++)q+=String.fromCharCode(Q[G]);return btoa(q)}function KH(Q){let q=Q.replace(/-/g,"+").replace(/_/g,"/"),G="=".repeat((4-q.length%4)%4);return Jq(q+G)}function BH(Q){return Kq(Q).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function NH(Q){let q=Q.replace(/^0x/,"");if(q.length%2!==0)throw Error("Invalid hex string length");let G=new Uint8Array(q.length/2);for(let H=0;H<q.length;H+=2)G[H/2]=Number.parseInt(q.slice(H,H+2),16);return G}function UH(Q){return Array.from(Q).map((q)=>q.toString(16).padStart(2,"0")).join("")}var wH=class{constructor(...Q){}},Bq=(Q,q)=>{Q.name="$ZodError",Object.defineProperty(Q,"_zod",{value:Q._zod,enumerable:!1}),Object.defineProperty(Q,"issues",{value:q,enumerable:!1}),Q.message=JSON.stringify(q,BY,2),Object.defineProperty(Q,"toString",{value:()=>Q.message,enumerable:!1})},D0=U("$ZodError",Bq),l=U("$ZodError",Bq,{Parent:Error});function b0(Q,q=(G)=>G.message){let G={},H=[];for(let Y of Q.issues)if(Y.path.length>0)G[Y.path[0]]=G[Y.path[0]]||[],G[Y.path[0]].push(q(Y));else H.push(q(Y));return{formErrors:H,fieldErrors:G}}function C0(Q,q=(G)=>G.message){let G={_errors:[]},H=(Y)=>{for(let X of Y.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map((W)=>H({issues:W}));else if(X.code==="invalid_key")H({issues:X.issues});else if(X.code==="invalid_element")H({issues:X.issues});else if(X.path.length===0)G._errors.push(q(X));else{let W=G,J=0;while(J<X.path.length){let K=X.path[J];if(J!==X.path.length-1)W[K]=W[K]||{_errors:[]};else W[K]=W[K]||{_errors:[]},W[K]._errors.push(q(X));W=W[K],J++}}};return H(Q),G}function Nq(Q,q=(G)=>G.message){let G={errors:[]},H=(Y,X=[])=>{var W,J;for(let K of Y.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((B)=>H({issues:B},K.path));else if(K.code==="invalid_key")H({issues:K.issues},K.path);else if(K.code==="invalid_element")H({issues:K.issues},K.path);else{let B=[...X,...K.path];if(B.length===0){G.errors.push(q(K));continue}let N=G,w=0;while(w<B.length){let L=B[w],A=w===B.length-1;if(typeof L==="string")N.properties??(N.properties={}),(W=N.properties)[L]??(W[L]={errors:[]}),N=N.properties[L];else N.items??(N.items=[]),(J=N.items)[L]??(J[L]={errors:[]}),N=N.items[L];if(A)N.errors.push(q(K));w++}}};return H(Q),G}function Uq(Q){let q=[],G=Q.map((H)=>typeof H==="object"?H.key:H);for(let H of G)if(typeof H==="number")q.push(`[${H}]`);else if(typeof H==="symbol")q.push(`[${JSON.stringify(String(H))}]`);else if(/[^\w$]/.test(H))q.push(`[${JSON.stringify(H)}]`);else{if(q.length)q.push(".");q.push(H)}return q.join("")}function wq(Q){let q=[],G=[...Q.issues].sort((H,Y)=>(H.path??[]).length-(Y.path??[]).length);for(let H of G)if(q.push(`\u2716 ${H.message}`),H.path?.length)q.push(` \u2192 at ${Uq(H.path)}`);return q.join(`
|
|
2
|
+
import{wf as n6,xf as L0,yf as t6}from"./chunk-zqdjk4rf.js";import{Bp as o6,Cp as d6,Dp as r6,Hp as u6,Io as F0,Po as PY,Yo as CQ,bp as l6,fp as p6,rp as A0,tp as JY,up as M0}from"./chunk-wm9nh9nb.js";import{Pp as w0,Wp as qQ}from"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-e0vrxetq.js";var y9=Object.defineProperty,s=(Q,q)=>{for(var G in q)y9(Q,G,{get:q[G],enumerable:!0})},f9="2.0.1";function m9({tools:Q,toolChoice:q}){Q=Q?.length?Q:void 0;let G=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:G};let H=[];for(let X of Q)if(X.type==="provider")G.push({type:"unsupported",feature:`provider-defined tool ${X.id}`});else H.push({type:"function",function:{name:X.name,description:X.description,parameters:X.inputSchema,...X.strict!=null?{strict:X.strict}:{}}});if(q==null)return{tools:H,toolChoice:void 0,toolWarnings:G};let Y=q.type;switch(Y){case"auto":case"none":case"required":return{tools:H,toolChoice:Y,toolWarnings:G};case"tool":return{tools:H,toolChoice:{type:"function",function:{name:q.toolName}},toolWarnings:G};default:throw new qQ({functionality:`tool choice type: ${Y}`})}}function $6(Q){if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};return{inputTokens:{total:Q.total_tokens??void 0,noCache:Q.prompt_tokens??void 0,cacheRead:Q.prompt_tokens_details?.cached_tokens??void 0,cacheWrite:Q.prompt_tokens_details?.cache_creation_input_tokens??void 0},outputTokens:{total:Q.completion_tokens??void 0,text:void 0,reasoning:void 0},raw:Q}}var F={};s(F,{$brand:()=>e6,$input:()=>SG,$output:()=>TG,NEVER:()=>i6,TimePrecision:()=>xG,ZodAny:()=>_1,ZodArray:()=>y1,ZodBase64:()=>tY,ZodBase64URL:()=>aY,ZodBigInt:()=>iQ,ZodBigIntFormat:()=>sY,ZodBoolean:()=>aQ,ZodCIDRv4:()=>uY,ZodCIDRv6:()=>nY,ZodCUID:()=>mY,ZodCUID2:()=>cY,ZodCatch:()=>W6,ZodCodec:()=>K0,ZodCustom:()=>qY,ZodCustomStringFormat:()=>ZQ,ZodDate:()=>Y0,ZodDefault:()=>Q6,ZodDiscriminatedUnion:()=>m1,ZodE164:()=>iY,ZodEmail:()=>gY,ZodEmoji:()=>yY,ZodEnum:()=>VQ,ZodError:()=>HK,ZodExactOptional:()=>i1,ZodFile:()=>t1,ZodFirstPartyTypeKind:()=>V0,ZodFunction:()=>M6,ZodGUID:()=>SQ,ZodIPv4:()=>dY,ZodIPv6:()=>rY,ZodISODate:()=>Z1,ZodISODateTime:()=>R1,ZodISODuration:()=>b1,ZodISOTime:()=>D1,ZodIntersection:()=>c1,ZodIssueCode:()=>WK,ZodJWT:()=>eY,ZodKSUID:()=>oY,ZodLazy:()=>w6,ZodLiteral:()=>n1,ZodMAC:()=>C1,ZodMap:()=>r1,ZodNaN:()=>K6,ZodNanoID:()=>fY,ZodNever:()=>h1,ZodNonOptional:()=>W0,ZodNull:()=>j1,ZodNullable:()=>s1,ZodNumber:()=>tQ,ZodNumberFormat:()=>AQ,ZodObject:()=>sQ,ZodOptional:()=>H0,ZodPipe:()=>J0,ZodPrefault:()=>q6,ZodPromise:()=>A6,ZodReadonly:()=>B6,ZodRealError:()=>p,ZodRecord:()=>YY,ZodSet:()=>u1,ZodString:()=>uQ,ZodStringFormat:()=>S,ZodSuccess:()=>H6,ZodSymbol:()=>S1,ZodTemplateLiteral:()=>U6,ZodTransform:()=>a1,ZodTuple:()=>p1,ZodType:()=>D,ZodULID:()=>lY,ZodURL:()=>nQ,ZodUUID:()=>i,ZodUndefined:()=>z1,ZodUnion:()=>QY,ZodUnknown:()=>x1,ZodVoid:()=>g1,ZodXID:()=>pY,ZodXor:()=>f1,_ZodString:()=>hY,_default:()=>Y6,_function:()=>LY,any:()=>H9,array:()=>eQ,base64:()=>l2,base64url:()=>p2,bigint:()=>Q9,boolean:()=>T1,catch:()=>J6,check:()=>C9,cidrv4:()=>m2,cidrv6:()=>c2,clone:()=>u,codec:()=>Z9,coerce:()=>h9,config:()=>h,core:()=>a6,cuid:()=>j2,cuid2:()=>v2,custom:()=>k9,date:()=>J9,decode:()=>M2,decodeAsync:()=>P2,describe:()=>T9,discriminatedUnion:()=>F9,e164:()=>o2,email:()=>V2,emoji:()=>S2,encode:()=>A2,encodeAsync:()=>L2,endsWith:()=>TY,enum:()=>X0,exactOptional:()=>e1,file:()=>O9,flattenError:()=>b0,float32:()=>a2,float64:()=>i2,formatError:()=>C0,fromJSONSchema:()=>wK,function:()=>LY,getErrorMap:()=>KK,globalRegistry:()=>o,gt:()=>GQ,gte:()=>m,guid:()=>R2,hash:()=>t2,hex:()=>n2,hostname:()=>u2,httpUrl:()=>T2,includes:()=>CY,instanceof:()=>z9,int:()=>MY,int32:()=>e2,int64:()=>Y9,intersection:()=>l1,ipv4:()=>g2,ipv6:()=>f2,iso:()=>V1,json:()=>v9,jwt:()=>d2,keyof:()=>K9,ksuid:()=>h2,lazy:()=>F6,length:()=>dQ,literal:()=>E9,locales:()=>u0,looseObject:()=>U9,looseRecord:()=>M9,lowercase:()=>DY,lt:()=>XQ,lte:()=>d,mac:()=>y2,map:()=>L9,maxLength:()=>oQ,maxSize:()=>RQ,meta:()=>S9,mime:()=>SY,minLength:()=>NQ,minSize:()=>HQ,multipleOf:()=>$Q,nan:()=>R9,nanoid:()=>z2,nativeEnum:()=>$9,negative:()=>L1,never:()=>Q0,nonnegative:()=>$1,nonoptional:()=>G6,nonpositive:()=>P1,normalize:()=>zY,null:()=>v1,nullable:()=>jQ,nullish:()=>I9,number:()=>k1,object:()=>B9,optional:()=>zQ,overwrite:()=>YQ,parse:()=>N2,parseAsync:()=>U2,partialRecord:()=>A9,pipe:()=>vQ,positive:()=>M1,prefault:()=>X6,preprocess:()=>_9,prettifyError:()=>wq,promise:()=>b9,property:()=>E1,readonly:()=>N6,record:()=>d1,refine:()=>L6,regex:()=>ZY,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>E2,safeDecodeAsync:()=>I2,safeEncode:()=>$2,safeEncodeAsync:()=>O2,safeParse:()=>w2,safeParseAsync:()=>F2,set:()=>P9,setErrorMap:()=>JK,size:()=>pQ,slugify:()=>xY,startsWith:()=>kY,strictObject:()=>N9,string:()=>AY,stringFormat:()=>r2,stringbool:()=>j9,success:()=>V9,superRefine:()=>P6,symbol:()=>X9,templateLiteral:()=>D9,toJSONSchema:()=>q2,toLowerCase:()=>vY,toUpperCase:()=>_Y,transform:()=>G0,treeifyError:()=>Nq,trim:()=>jY,tuple:()=>o1,uint32:()=>s2,uint64:()=>q9,ulid:()=>_2,undefined:()=>G9,union:()=>q0,unknown:()=>UQ,uppercase:()=>bY,url:()=>k2,util:()=>C,uuid:()=>Z2,uuidv4:()=>D2,uuidv6:()=>b2,uuidv7:()=>C2,void:()=>W9,xid:()=>x2,xor:()=>w9});var a6={};s(a6,{$ZodAny:()=>dX,$ZodArray:()=>aX,$ZodAsyncError:()=>KQ,$ZodBase64:()=>vX,$ZodBase64URL:()=>xX,$ZodBigInt:()=>p0,$ZodBigIntFormat:()=>cX,$ZodBoolean:()=>l0,$ZodCIDRv4:()=>zX,$ZodCIDRv6:()=>jX,$ZodCUID:()=>EX,$ZodCUID2:()=>OX,$ZodCatch:()=>PG,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>tq,$ZodCheckEndsWith:()=>JX,$ZodCheckGreaterThan:()=>f0,$ZodCheckIncludes:()=>HX,$ZodCheckLengthEquals:()=>YX,$ZodCheckLessThan:()=>y0,$ZodCheckLowerCase:()=>XX,$ZodCheckMaxLength:()=>sq,$ZodCheckMaxSize:()=>aq,$ZodCheckMimeType:()=>BX,$ZodCheckMinLength:()=>QX,$ZodCheckMinSize:()=>iq,$ZodCheckMultipleOf:()=>uq,$ZodCheckNumberFormat:()=>nq,$ZodCheckOverwrite:()=>NX,$ZodCheckProperty:()=>KX,$ZodCheckRegex:()=>qX,$ZodCheckSizeEquals:()=>eq,$ZodCheckStartsWith:()=>WX,$ZodCheckStringFormat:()=>cQ,$ZodCheckUpperCase:()=>GX,$ZodCodec:()=>r0,$ZodCustom:()=>DG,$ZodCustomStringFormat:()=>fX,$ZodDate:()=>tX,$ZodDefault:()=>FG,$ZodDiscriminatedUnion:()=>qG,$ZodE164:()=>hX,$ZodEmail:()=>MX,$ZodEmoji:()=>PX,$ZodEncodeError:()=>$Y,$ZodEnum:()=>JG,$ZodError:()=>D0,$ZodExactOptional:()=>UG,$ZodFile:()=>BG,$ZodFunction:()=>VG,$ZodGUID:()=>FX,$ZodIPv4:()=>kX,$ZodIPv6:()=>TX,$ZodISODate:()=>DX,$ZodISODateTime:()=>ZX,$ZodISODuration:()=>CX,$ZodISOTime:()=>bX,$ZodIntersection:()=>XG,$ZodJWT:()=>yX,$ZodKSUID:()=>RX,$ZodLazy:()=>ZG,$ZodLiteral:()=>KG,$ZodMAC:()=>SX,$ZodMap:()=>HG,$ZodNaN:()=>$G,$ZodNanoID:()=>$X,$ZodNever:()=>uX,$ZodNonOptional:()=>MG,$ZodNull:()=>oX,$ZodNullable:()=>wG,$ZodNumber:()=>c0,$ZodNumberFormat:()=>mX,$ZodObject:()=>sX,$ZodObjectJIT:()=>QG,$ZodOptional:()=>d0,$ZodPipe:()=>EG,$ZodPrefault:()=>AG,$ZodPromise:()=>RG,$ZodReadonly:()=>OG,$ZodRealError:()=>l,$ZodRecord:()=>GG,$ZodRegistry:()=>zG,$ZodSet:()=>WG,$ZodString:()=>lQ,$ZodStringFormat:()=>T,$ZodSuccess:()=>LG,$ZodSymbol:()=>lX,$ZodTemplateLiteral:()=>IG,$ZodTransform:()=>NG,$ZodTuple:()=>o0,$ZodType:()=>Z,$ZodULID:()=>IX,$ZodURL:()=>LX,$ZodUUID:()=>AX,$ZodUndefined:()=>pX,$ZodUnion:()=>VY,$ZodUnknown:()=>rX,$ZodVoid:()=>nX,$ZodXID:()=>VX,$ZodXor:()=>YG,$brand:()=>e6,$constructor:()=>U,$input:()=>SG,$output:()=>TG,Doc:()=>UX,JSONSchema:()=>GK,JSONSchemaGenerator:()=>XK,NEVER:()=>i6,TimePrecision:()=>xG,_any:()=>q8,_array:()=>B8,_base64:()=>U1,_base64url:()=>w1,_bigint:()=>tG,_boolean:()=>uG,_catch:()=>aJ,_check:()=>A8,_cidrv4:()=>B1,_cidrv6:()=>N1,_coercedBigint:()=>aG,_coercedBoolean:()=>nG,_coercedDate:()=>J8,_coercedNumber:()=>cG,_coercedString:()=>vG,_cuid:()=>q1,_cuid2:()=>X1,_custom:()=>U8,_date:()=>W8,_decode:()=>T0,_decodeAsync:()=>z0,_default:()=>uJ,_discriminatedUnion:()=>xJ,_e164:()=>F1,_email:()=>t0,_emoji:()=>Q1,_encode:()=>k0,_encodeAsync:()=>S0,_endsWith:()=>TY,_enum:()=>cJ,_file:()=>N8,_float32:()=>pG,_float64:()=>oG,_gt:()=>GQ,_gte:()=>m,_guid:()=>FY,_includes:()=>CY,_int:()=>lG,_int32:()=>dG,_int64:()=>iG,_intersection:()=>hJ,_ipv4:()=>J1,_ipv6:()=>K1,_isoDate:()=>gG,_isoDateTime:()=>hG,_isoDuration:()=>fG,_isoTime:()=>yG,_jwt:()=>A1,_ksuid:()=>W1,_lazy:()=>QK,_length:()=>dQ,_literal:()=>pJ,_lowercase:()=>DY,_lt:()=>XQ,_lte:()=>d,_mac:()=>_G,_map:()=>fJ,_max:()=>d,_maxLength:()=>oQ,_maxSize:()=>RQ,_mime:()=>SY,_min:()=>m,_minLength:()=>NQ,_minSize:()=>HQ,_multipleOf:()=>$Q,_nan:()=>K8,_nanoid:()=>Y1,_nativeEnum:()=>lJ,_negative:()=>L1,_never:()=>G8,_nonnegative:()=>$1,_nonoptional:()=>nJ,_nonpositive:()=>P1,_normalize:()=>zY,_null:()=>Y8,_nullable:()=>rJ,_number:()=>mG,_optional:()=>dJ,_overwrite:()=>YQ,_parse:()=>xQ,_parseAsync:()=>hQ,_pipe:()=>iJ,_positive:()=>M1,_promise:()=>YK,_property:()=>E1,_readonly:()=>eJ,_record:()=>yJ,_refine:()=>w8,_regex:()=>ZY,_safeDecode:()=>v0,_safeDecodeAsync:()=>x0,_safeEncode:()=>j0,_safeEncodeAsync:()=>_0,_safeParse:()=>gQ,_safeParseAsync:()=>yQ,_set:()=>mJ,_size:()=>pQ,_slugify:()=>xY,_startsWith:()=>kY,_string:()=>jG,_stringFormat:()=>rQ,_stringbool:()=>P8,_success:()=>tJ,_superRefine:()=>F8,_symbol:()=>sG,_templateLiteral:()=>sJ,_toLowerCase:()=>vY,_toUpperCase:()=>_Y,_transform:()=>oJ,_trim:()=>jY,_tuple:()=>gJ,_uint32:()=>rG,_uint64:()=>eG,_ulid:()=>G1,_undefined:()=>Q8,_union:()=>vJ,_unknown:()=>X8,_uppercase:()=>bY,_url:()=>RY,_uuid:()=>a0,_uuidv4:()=>i0,_uuidv6:()=>e0,_uuidv7:()=>s0,_void:()=>H8,_xid:()=>H1,_xor:()=>_J,clone:()=>u,config:()=>h,createStandardJSONSchemaMethod:()=>TQ,createToJSONSchemaMethod:()=>$8,decode:()=>AH,decodeAsync:()=>LH,describe:()=>M8,encode:()=>FH,encodeAsync:()=>MH,extractDefs:()=>OQ,finalize:()=>IQ,flattenError:()=>b0,formatError:()=>C0,globalConfig:()=>KY,globalRegistry:()=>o,initializeContext:()=>EQ,isValidBase64:()=>m0,isValidBase64URL:()=>_X,isValidJWT:()=>gX,locales:()=>u0,meta:()=>L8,parse:()=>$0,parseAsync:()=>E0,prettifyError:()=>wq,process:()=>k,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>$H,safeDecodeAsync:()=>OH,safeEncode:()=>PH,safeEncodeAsync:()=>EH,safeParse:()=>Fq,safeParseAsync:()=>Aq,toDotPath:()=>Uq,toJSONSchema:()=>q2,treeifyError:()=>Nq,util:()=>C,version:()=>wX});var i6=Object.freeze({status:"aborted"});function U(Q,q,G){function H(J,K){if(!J._zod)Object.defineProperty(J,"_zod",{value:{def:K,constr:W,traits:new Set},enumerable:!1});if(J._zod.traits.has(Q))return;J._zod.traits.add(Q),q(J,K);let B=W.prototype,N=Object.keys(B);for(let w=0;w<N.length;w++){let L=N[w];if(!(L in J))J[L]=B[L].bind(J)}}let Y=G?.Parent??Object;class X extends Y{}Object.defineProperty(X,"name",{value:Q});function W(J){var K;let B=G?.Parent?new X:this;H(B,J),(K=B._zod).deferred??(K.deferred=[]);for(let N of B._zod.deferred)N();return B}return Object.defineProperty(W,"init",{value:H}),Object.defineProperty(W,Symbol.hasInstance,{value:(J)=>{if(G?.Parent&&J instanceof G.Parent)return!0;return J?._zod?.traits?.has(Q)}}),Object.defineProperty(W,"name",{value:Q}),W}var e6=Symbol("zod_brand"),KQ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$Y=class extends Error{constructor(Q){super(`Encountered unidirectional transform during encode: ${Q}`);this.name="ZodEncodeError"}},KY={};function h(Q){if(Q)Object.assign(KY,Q);return KY}var C={};s(C,{BIGINT_FORMAT_RANGES:()=>Wq,Class:()=>wH,NUMBER_FORMAT_RANGES:()=>Hq,aborted:()=>JQ,allowsEval:()=>Yq,assert:()=>d9,assertEqual:()=>c9,assertIs:()=>p9,assertNever:()=>o9,assertNotEqual:()=>l9,assignProp:()=>WQ,base64ToUint8Array:()=>Jq,base64urlToUint8Array:()=>KH,cached:()=>_Q,captureStackTrace:()=>Z0,cleanEnum:()=>JH,cleanRegex:()=>EY,clone:()=>u,cloneDef:()=>u9,createTransparentProxy:()=>s9,defineLazy:()=>b,esc:()=>P0,escapeRegex:()=>e,extend:()=>qH,finalizeIssue:()=>r,floatSafeRemainder:()=>s6,getElementAtPath:()=>n9,getEnumValues:()=>R0,getLengthableOrigin:()=>IY,getParsedType:()=>e9,getSizableOrigin:()=>OY,hexToUint8Array:()=>NH,isObject:()=>LQ,isPlainObject:()=>BQ,issue:()=>UY,joinValues:()=>M,jsonStringifyReplacer:()=>BY,merge:()=>GH,mergeDefs:()=>QQ,normalizeParams:()=>P,nullish:()=>wQ,numKeys:()=>i9,objectClone:()=>r9,omit:()=>YH,optionalKeys:()=>Gq,parsedType:()=>V,partial:()=>HH,pick:()=>QH,prefixIssues:()=>a,primitiveTypes:()=>Xq,promiseAllObject:()=>t9,propertyKeyTypes:()=>NY,randomString:()=>a9,required:()=>WH,safeExtend:()=>XH,shallowClone:()=>qq,slugify:()=>Qq,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>Kq,uint8ArrayToBase64url:()=>BH,uint8ArrayToHex:()=>UH,unwrapMessage:()=>kQ});function c9(Q){return Q}function l9(Q){return Q}function p9(Q){}function o9(Q){throw Error("Unexpected value in exhaustive check")}function d9(Q){}function R0(Q){let q=Object.values(Q).filter((H)=>typeof H==="number");return Object.entries(Q).filter(([H,Y])=>q.indexOf(+H)===-1).map(([H,Y])=>Y)}function M(Q,q="|"){return Q.map((G)=>I(G)).join(q)}function BY(Q,q){if(typeof q==="bigint")return q.toString();return q}function _Q(Q){return{get value(){{let G=Q();return Object.defineProperty(this,"value",{value:G}),G}throw Error("cached value already set")}}}function wQ(Q){return Q===null||Q===void 0}function EY(Q){let q=Q.startsWith("^")?1:0,G=Q.endsWith("$")?Q.length-1:Q.length;return Q.slice(q,G)}function s6(Q,q){let G=(Q.toString().split(".")[1]||"").length,H=q.toString(),Y=(H.split(".")[1]||"").length;if(Y===0&&/\d?e-\d?/.test(H)){let K=H.match(/\d?e-(\d?)/);if(K?.[1])Y=Number.parseInt(K[1])}let X=G>Y?G:Y,W=Number.parseInt(Q.toFixed(X).replace(".","")),J=Number.parseInt(q.toFixed(X).replace(".",""));return W%J/10**X}var E6=Symbol("evaluating");function b(Q,q,G){let H=void 0;Object.defineProperty(Q,q,{get(){if(H===E6)return;if(H===void 0)H=E6,H=G();return H},set(Y){Object.defineProperty(Q,q,{value:Y})},configurable:!0})}function r9(Q){return Object.create(Object.getPrototypeOf(Q),Object.getOwnPropertyDescriptors(Q))}function WQ(Q,q,G){Object.defineProperty(Q,q,{value:G,writable:!0,enumerable:!0,configurable:!0})}function QQ(...Q){let q={};for(let G of Q){let H=Object.getOwnPropertyDescriptors(G);Object.assign(q,H)}return Object.defineProperties({},q)}function u9(Q){return QQ(Q._zod.def)}function n9(Q,q){if(!q)return Q;return q.reduce((G,H)=>G?.[H],Q)}function t9(Q){let q=Object.keys(Q),G=q.map((H)=>Q[H]);return Promise.all(G).then((H)=>{let Y={};for(let X=0;X<q.length;X++)Y[q[X]]=H[X];return Y})}function a9(Q=10){let G="";for(let H=0;H<Q;H++)G+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return G}function P0(Q){return JSON.stringify(Q)}function Qq(Q){return Q.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Z0="captureStackTrace"in Error?Error.captureStackTrace:(...Q)=>{};function LQ(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var Yq=_Q(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(Q){return!1}});function BQ(Q){if(LQ(Q)===!1)return!1;let q=Q.constructor;if(q===void 0)return!0;if(typeof q!=="function")return!0;let G=q.prototype;if(LQ(G)===!1)return!1;if(Object.prototype.hasOwnProperty.call(G,"isPrototypeOf")===!1)return!1;return!0}function qq(Q){if(BQ(Q))return{...Q};if(Array.isArray(Q))return[...Q];return Q}function i9(Q){let q=0;for(let G in Q)if(Object.prototype.hasOwnProperty.call(Q,G))q++;return q}var e9=(Q)=>{let q=typeof Q;switch(q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(Q)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(Q))return"array";if(Q===null)return"null";if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return"promise";if(typeof Map<"u"&&Q instanceof Map)return"map";if(typeof Set<"u"&&Q instanceof Set)return"set";if(typeof Date<"u"&&Q instanceof Date)return"date";if(typeof File<"u"&&Q instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${q}`)}},NY=new Set(["string","number","symbol"]),Xq=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e(Q){return Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(Q,q,G){let H=new Q._zod.constr(q??Q._zod.def);if(!q||G?.parent)H._zod.parent=Q;return H}function P(Q){let q=Q;if(!q)return{};if(typeof q==="string")return{error:()=>q};if(q?.message!==void 0){if(q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");q.error=q.message}if(delete q.message,typeof q.error==="string")return{...q,error:()=>q.error};return q}function s9(Q){let q;return new Proxy({},{get(G,H,Y){return q??(q=Q()),Reflect.get(q,H,Y)},set(G,H,Y,X){return q??(q=Q()),Reflect.set(q,H,Y,X)},has(G,H){return q??(q=Q()),Reflect.has(q,H)},deleteProperty(G,H){return q??(q=Q()),Reflect.deleteProperty(q,H)},ownKeys(G){return q??(q=Q()),Reflect.ownKeys(q)},getOwnPropertyDescriptor(G,H){return q??(q=Q()),Reflect.getOwnPropertyDescriptor(q,H)},defineProperty(G,H,Y){return q??(q=Q()),Reflect.defineProperty(q,H,Y)}})}function I(Q){if(typeof Q==="bigint")return Q.toString()+"n";if(typeof Q==="string")return`"${Q}"`;return`${Q}`}function Gq(Q){return Object.keys(Q).filter((q)=>{return Q[q]._zod.optin==="optional"&&Q[q]._zod.optout==="optional"})}var Hq={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wq={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function QH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;W[J]=G.shape[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function YH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={...Q._zod.def.shape};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;delete W[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function qH(Q,q){if(!BQ(q))throw Error("Invalid input to extend: expected a plain object");let G=Q._zod.def.checks;if(G&&G.length>0){let X=Q._zod.def.shape;for(let W in q)if(Object.getOwnPropertyDescriptor(X,W)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let Y=QQ(Q._zod.def,{get shape(){let X={...Q._zod.def.shape,...q};return WQ(this,"shape",X),X}});return u(Q,Y)}function XH(Q,q){if(!BQ(q))throw Error("Invalid input to safeExtend: expected a plain object");let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q};return WQ(this,"shape",H),H}});return u(Q,G)}function GH(Q,q){let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q._zod.def.shape};return WQ(this,"shape",H),H},get catchall(){return q._zod.def.catchall},checks:[]});return u(Q,G)}function HH(Q,q,G){let Y=q._zod.def.checks;if(Y&&Y.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let W=QQ(q._zod.def,{get shape(){let J=q._zod.def.shape,K={...J};if(G)for(let B in G){if(!(B in J))throw Error(`Unrecognized key: "${B}"`);if(!G[B])continue;K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B]}else for(let B in J)K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B];return WQ(this,"shape",K),K},checks:[]});return u(q,W)}function WH(Q,q,G){let H=QQ(q._zod.def,{get shape(){let Y=q._zod.def.shape,X={...Y};if(G)for(let W in G){if(!(W in X))throw Error(`Unrecognized key: "${W}"`);if(!G[W])continue;X[W]=new Q({type:"nonoptional",innerType:Y[W]})}else for(let W in Y)X[W]=new Q({type:"nonoptional",innerType:Y[W]});return WQ(this,"shape",X),X}});return u(q,H)}function JQ(Q,q=0){if(Q.aborted===!0)return!0;for(let G=q;G<Q.issues.length;G++)if(Q.issues[G]?.continue!==!0)return!0;return!1}function a(Q,q){return q.map((G)=>{var H;return(H=G).path??(H.path=[]),G.path.unshift(Q),G})}function kQ(Q){return typeof Q==="string"?Q:Q?.message}function r(Q,q,G){let H={...Q,path:Q.path??[]};if(!Q.message){let Y=kQ(Q.inst?._zod.def?.error?.(Q))??kQ(q?.error?.(Q))??kQ(G.customError?.(Q))??kQ(G.localeError?.(Q))??"Invalid input";H.message=Y}if(delete H.inst,delete H.continue,!q?.reportInput)delete H.input;return H}function OY(Q){if(Q instanceof Set)return"set";if(Q instanceof Map)return"map";if(Q instanceof File)return"file";return"unknown"}function IY(Q){if(Array.isArray(Q))return"array";if(typeof Q==="string")return"string";return"unknown"}function V(Q){let q=typeof Q;switch(q){case"number":return Number.isNaN(Q)?"nan":"number";case"object":{if(Q===null)return"null";if(Array.isArray(Q))return"array";let G=Q;if(G&&Object.getPrototypeOf(G)!==Object.prototype&&"constructor"in G&&G.constructor)return G.constructor.name}}return q}function UY(...Q){let[q,G,H]=Q;if(typeof q==="string")return{message:q,code:"custom",input:G,inst:H};return{...q}}function JH(Q){return Object.entries(Q).filter(([q,G])=>{return Number.isNaN(Number.parseInt(q,10))}).map((q)=>q[1])}function Jq(Q){let q=atob(Q),G=new Uint8Array(q.length);for(let H=0;H<q.length;H++)G[H]=q.charCodeAt(H);return G}function Kq(Q){let q="";for(let G=0;G<Q.length;G++)q+=String.fromCharCode(Q[G]);return btoa(q)}function KH(Q){let q=Q.replace(/-/g,"+").replace(/_/g,"/"),G="=".repeat((4-q.length%4)%4);return Jq(q+G)}function BH(Q){return Kq(Q).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function NH(Q){let q=Q.replace(/^0x/,"");if(q.length%2!==0)throw Error("Invalid hex string length");let G=new Uint8Array(q.length/2);for(let H=0;H<q.length;H+=2)G[H/2]=Number.parseInt(q.slice(H,H+2),16);return G}function UH(Q){return Array.from(Q).map((q)=>q.toString(16).padStart(2,"0")).join("")}var wH=class{constructor(...Q){}},Bq=(Q,q)=>{Q.name="$ZodError",Object.defineProperty(Q,"_zod",{value:Q._zod,enumerable:!1}),Object.defineProperty(Q,"issues",{value:q,enumerable:!1}),Q.message=JSON.stringify(q,BY,2),Object.defineProperty(Q,"toString",{value:()=>Q.message,enumerable:!1})},D0=U("$ZodError",Bq),l=U("$ZodError",Bq,{Parent:Error});function b0(Q,q=(G)=>G.message){let G={},H=[];for(let Y of Q.issues)if(Y.path.length>0)G[Y.path[0]]=G[Y.path[0]]||[],G[Y.path[0]].push(q(Y));else H.push(q(Y));return{formErrors:H,fieldErrors:G}}function C0(Q,q=(G)=>G.message){let G={_errors:[]},H=(Y)=>{for(let X of Y.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map((W)=>H({issues:W}));else if(X.code==="invalid_key")H({issues:X.issues});else if(X.code==="invalid_element")H({issues:X.issues});else if(X.path.length===0)G._errors.push(q(X));else{let W=G,J=0;while(J<X.path.length){let K=X.path[J];if(J!==X.path.length-1)W[K]=W[K]||{_errors:[]};else W[K]=W[K]||{_errors:[]},W[K]._errors.push(q(X));W=W[K],J++}}};return H(Q),G}function Nq(Q,q=(G)=>G.message){let G={errors:[]},H=(Y,X=[])=>{var W,J;for(let K of Y.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((B)=>H({issues:B},K.path));else if(K.code==="invalid_key")H({issues:K.issues},K.path);else if(K.code==="invalid_element")H({issues:K.issues},K.path);else{let B=[...X,...K.path];if(B.length===0){G.errors.push(q(K));continue}let N=G,w=0;while(w<B.length){let L=B[w],A=w===B.length-1;if(typeof L==="string")N.properties??(N.properties={}),(W=N.properties)[L]??(W[L]={errors:[]}),N=N.properties[L];else N.items??(N.items=[]),(J=N.items)[L]??(J[L]={errors:[]}),N=N.items[L];if(A)N.errors.push(q(K));w++}}};return H(Q),G}function Uq(Q){let q=[],G=Q.map((H)=>typeof H==="object"?H.key:H);for(let H of G)if(typeof H==="number")q.push(`[${H}]`);else if(typeof H==="symbol")q.push(`[${JSON.stringify(String(H))}]`);else if(/[^\w$]/.test(H))q.push(`[${JSON.stringify(H)}]`);else{if(q.length)q.push(".");q.push(H)}return q.join("")}function wq(Q){let q=[],G=[...Q.issues].sort((H,Y)=>(H.path??[]).length-(Y.path??[]).length);for(let H of G)if(q.push(`\u2716 ${H.message}`),H.path?.length)q.push(` \u2192 at ${Uq(H.path)}`);return q.join(`
|
|
3
3
|
`)}var xQ=(Q)=>(q,G,H,Y)=>{let X=H?Object.assign(H,{async:!1}):{async:!1},W=q._zod.run({value:G,issues:[]},X);if(W instanceof Promise)throw new KQ;if(W.issues.length){let J=new(Y?.Err??Q)(W.issues.map((K)=>r(K,X,h())));throw Z0(J,Y?.callee),J}return W.value},$0=xQ(l),hQ=(Q)=>async(q,G,H,Y)=>{let X=H?Object.assign(H,{async:!0}):{async:!0},W=q._zod.run({value:G,issues:[]},X);if(W instanceof Promise)W=await W;if(W.issues.length){let J=new(Y?.Err??Q)(W.issues.map((K)=>r(K,X,h())));throw Z0(J,Y?.callee),J}return W.value},E0=hQ(l),gQ=(Q)=>(q,G,H)=>{let Y=H?{...H,async:!1}:{async:!1},X=q._zod.run({value:G,issues:[]},Y);if(X instanceof Promise)throw new KQ;return X.issues.length?{success:!1,error:new(Q??D0)(X.issues.map((W)=>r(W,Y,h())))}:{success:!0,data:X.value}},Fq=gQ(l),yQ=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{async:!0}):{async:!0},X=q._zod.run({value:G,issues:[]},Y);if(X instanceof Promise)X=await X;return X.issues.length?{success:!1,error:new Q(X.issues.map((W)=>r(W,Y,h())))}:{success:!0,data:X.value}},Aq=yQ(l),k0=(Q)=>(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return xQ(Q)(q,G,Y)},FH=k0(l),T0=(Q)=>(q,G,H)=>{return xQ(Q)(q,G,H)},AH=T0(l),S0=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return hQ(Q)(q,G,Y)},MH=S0(l),z0=(Q)=>async(q,G,H)=>{return hQ(Q)(q,G,H)},LH=z0(l),j0=(Q)=>(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return gQ(Q)(q,G,Y)},PH=j0(l),v0=(Q)=>(q,G,H)=>{return gQ(Q)(q,G,H)},$H=v0(l),_0=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return yQ(Q)(q,G,Y)},EH=_0(l),x0=(Q)=>async(q,G,H)=>{return yQ(Q)(q,G,H)},OH=x0(l),FQ={};s(FQ,{base64:()=>zq,base64url:()=>h0,bigint:()=>fq,boolean:()=>cq,browserEmail:()=>kH,cidrv4:()=>Tq,cidrv6:()=>Sq,cuid:()=>Mq,cuid2:()=>Lq,date:()=>_q,datetime:()=>gq,domain:()=>zH,duration:()=>Iq,e164:()=>jq,email:()=>Rq,emoji:()=>Dq,extendedDuration:()=>IH,guid:()=>Vq,hex:()=>jH,hostname:()=>SH,html5Email:()=>DH,idnEmail:()=>CH,integer:()=>mq,ipv4:()=>bq,ipv6:()=>Cq,ksuid:()=>Eq,lowercase:()=>oq,mac:()=>kq,md5_base64:()=>_H,md5_base64url:()=>xH,md5_hex:()=>vH,nanoid:()=>Oq,null:()=>lq,number:()=>g0,rfc5322Email:()=>bH,sha1_base64:()=>gH,sha1_base64url:()=>yH,sha1_hex:()=>hH,sha256_base64:()=>mH,sha256_base64url:()=>cH,sha256_hex:()=>fH,sha384_base64:()=>pH,sha384_base64url:()=>oH,sha384_hex:()=>lH,sha512_base64:()=>rH,sha512_base64url:()=>uH,sha512_hex:()=>dH,string:()=>yq,time:()=>hq,ulid:()=>Pq,undefined:()=>pq,unicodeEmail:()=>Zq,uppercase:()=>dq,uuid:()=>PQ,uuid4:()=>VH,uuid6:()=>RH,uuid7:()=>ZH,xid:()=>$q});var Mq=/^[cC][^\s-]{8,}$/,Lq=/^[0-9a-z]+$/,Pq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$q=/^[0-9a-vA-V]{20}$/,Eq=/^[A-Za-z0-9]{27}$/,Oq=/^[a-zA-Z0-9_-]{21}$/,Iq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,IH=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,PQ=(Q)=>{if(!Q)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${Q}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},VH=PQ(4),RH=PQ(6),ZH=PQ(7),Rq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DH=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bH=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Zq=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,CH=Zq,kH=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,TH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dq(){return new RegExp(TH,"u")}var bq=/^(?:(?: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])$/,Cq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,kq=(Q)=>{let q=e(Q??":");return new RegExp(`^(?:[0-9A-F]{2}${q}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${q}){5}[0-9a-f]{2}$`)},Tq=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Sq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zq=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,h0=/^[A-Za-z0-9_-]*$/,SH=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zH=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,jq=/^\+[1-9]\d{6,14}$/,vq="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_q=new RegExp(`^${vq}$`);function xq(Q){return typeof Q.precision==="number"?Q.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":Q.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${Q.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function hq(Q){return new RegExp(`^${xq(Q)}$`)}function gq(Q){let q=xq({precision:Q.precision}),G=["Z"];if(Q.local)G.push("");if(Q.offset)G.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let H=`${q}(?:${G.join("|")})`;return new RegExp(`^${vq}T(?:${H})$`)}var yq=(Q)=>{let q=Q?`[\\s\\S]{${Q?.minimum??0},${Q?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${q}$`)},fq=/^-?\d+n?$/,mq=/^-?\d+$/,g0=/^-?\d+(?:\.\d+)?$/,cq=/^(?:true|false)$/i,lq=/^null$/i,pq=/^undefined$/i,oq=/^[^A-Z]*$/,dq=/^[^a-z]*$/,jH=/^[0-9a-fA-F]*$/;function fQ(Q,q){return new RegExp(`^[A-Za-z0-9+/]{${Q}}${q}$`)}function mQ(Q){return new RegExp(`^[A-Za-z0-9_-]{${Q}}$`)}var vH=/^[0-9a-fA-F]{32}$/,_H=fQ(22,"=="),xH=mQ(22),hH=/^[0-9a-fA-F]{40}$/,gH=fQ(27,"="),yH=mQ(27),fH=/^[0-9a-fA-F]{64}$/,mH=fQ(43,"="),cH=mQ(43),lH=/^[0-9a-fA-F]{96}$/,pH=fQ(64,""),oH=mQ(64),dH=/^[0-9a-fA-F]{128}$/,rH=fQ(86,"=="),uH=mQ(86),j=U("$ZodCheck",(Q,q)=>{var G;Q._zod??(Q._zod={}),Q._zod.def=q,(G=Q._zod).onattach??(G.onattach=[])}),rq={number:"number",bigint:"bigint",object:"date"},y0=U("$ZodCheckLessThan",(Q,q)=>{j.init(Q,q);let G=rq[typeof q.value];Q._zod.onattach.push((H)=>{let Y=H._zod.bag,X=(q.inclusive?Y.maximum:Y.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(q.value<X)if(q.inclusive)Y.maximum=q.value;else Y.exclusiveMaximum=q.value}),Q._zod.check=(H)=>{if(q.inclusive?H.value<=q.value:H.value<q.value)return;H.issues.push({origin:G,code:"too_big",maximum:typeof q.value==="object"?q.value.getTime():q.value,input:H.value,inclusive:q.inclusive,inst:Q,continue:!q.abort})}}),f0=U("$ZodCheckGreaterThan",(Q,q)=>{j.init(Q,q);let G=rq[typeof q.value];Q._zod.onattach.push((H)=>{let Y=H._zod.bag,X=(q.inclusive?Y.minimum:Y.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(q.value>X)if(q.inclusive)Y.minimum=q.value;else Y.exclusiveMinimum=q.value}),Q._zod.check=(H)=>{if(q.inclusive?H.value>=q.value:H.value>q.value)return;H.issues.push({origin:G,code:"too_small",minimum:typeof q.value==="object"?q.value.getTime():q.value,input:H.value,inclusive:q.inclusive,inst:Q,continue:!q.abort})}}),uq=U("$ZodCheckMultipleOf",(Q,q)=>{j.init(Q,q),Q._zod.onattach.push((G)=>{var H;(H=G._zod.bag).multipleOf??(H.multipleOf=q.value)}),Q._zod.check=(G)=>{if(typeof G.value!==typeof q.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof G.value==="bigint"?G.value%q.value===BigInt(0):s6(G.value,q.value)===0)return;G.issues.push({origin:typeof G.value,code:"not_multiple_of",divisor:q.value,input:G.value,inst:Q,continue:!q.abort})}}),nq=U("$ZodCheckNumberFormat",(Q,q)=>{j.init(Q,q),q.format=q.format||"float64";let G=q.format?.includes("int"),H=G?"int":"number",[Y,X]=Hq[q.format];Q._zod.onattach.push((W)=>{let J=W._zod.bag;if(J.format=q.format,J.minimum=Y,J.maximum=X,G)J.pattern=mq}),Q._zod.check=(W)=>{let J=W.value;if(G){if(!Number.isInteger(J)){W.issues.push({expected:H,format:q.format,code:"invalid_type",continue:!1,input:J,inst:Q});return}if(!Number.isSafeInteger(J)){if(J>0)W.issues.push({input:J,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:Q,origin:H,inclusive:!0,continue:!q.abort});else W.issues.push({input:J,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:Q,origin:H,inclusive:!0,continue:!q.abort});return}}if(J<Y)W.issues.push({origin:"number",input:J,code:"too_small",minimum:Y,inclusive:!0,inst:Q,continue:!q.abort});if(J>X)W.issues.push({origin:"number",input:J,code:"too_big",maximum:X,inclusive:!0,inst:Q,continue:!q.abort})}}),tq=U("$ZodCheckBigIntFormat",(Q,q)=>{j.init(Q,q);let[G,H]=Wq[q.format];Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.format=q.format,X.minimum=G,X.maximum=H}),Q._zod.check=(Y)=>{let X=Y.value;if(X<G)Y.issues.push({origin:"bigint",input:X,code:"too_small",minimum:G,inclusive:!0,inst:Q,continue:!q.abort});if(X>H)Y.issues.push({origin:"bigint",input:X,code:"too_big",maximum:H,inclusive:!0,inst:Q,continue:!q.abort})}}),aq=U("$ZodCheckMaxSize",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)H._zod.bag.maximum=q.maximum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.size<=q.maximum)return;H.issues.push({origin:OY(Y),code:"too_big",maximum:q.maximum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),iq=U("$ZodCheckMinSize",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)H._zod.bag.minimum=q.minimum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.size>=q.minimum)return;H.issues.push({origin:OY(Y),code:"too_small",minimum:q.minimum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),eq=U("$ZodCheckSizeEquals",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.minimum=q.size,Y.maximum=q.size,Y.size=q.size}),Q._zod.check=(H)=>{let Y=H.value,X=Y.size;if(X===q.size)return;let W=X>q.size;H.issues.push({origin:OY(Y),...W?{code:"too_big",maximum:q.size}:{code:"too_small",minimum:q.size},inclusive:!0,exact:!0,input:H.value,inst:Q,continue:!q.abort})}}),sq=U("$ZodCheckMaxLength",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)H._zod.bag.maximum=q.maximum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.length<=q.maximum)return;let W=IY(Y);H.issues.push({origin:W,code:"too_big",maximum:q.maximum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),QX=U("$ZodCheckMinLength",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)H._zod.bag.minimum=q.minimum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.length>=q.minimum)return;let W=IY(Y);H.issues.push({origin:W,code:"too_small",minimum:q.minimum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),YX=U("$ZodCheckLengthEquals",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.minimum=q.length,Y.maximum=q.length,Y.length=q.length}),Q._zod.check=(H)=>{let Y=H.value,X=Y.length;if(X===q.length)return;let W=IY(Y),J=X>q.length;H.issues.push({origin:W,...J?{code:"too_big",maximum:q.length}:{code:"too_small",minimum:q.length},inclusive:!0,exact:!0,input:H.value,inst:Q,continue:!q.abort})}}),cQ=U("$ZodCheckStringFormat",(Q,q)=>{var G,H;if(j.init(Q,q),Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;if(X.format=q.format,q.pattern)X.patterns??(X.patterns=new Set),X.patterns.add(q.pattern)}),q.pattern)(G=Q._zod).check??(G.check=(Y)=>{if(q.pattern.lastIndex=0,q.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:q.format,input:Y.value,...q.pattern?{pattern:q.pattern.toString()}:{},inst:Q,continue:!q.abort})});else(H=Q._zod).check??(H.check=()=>{})}),qX=U("$ZodCheckRegex",(Q,q)=>{cQ.init(Q,q),Q._zod.check=(G)=>{if(q.pattern.lastIndex=0,q.pattern.test(G.value))return;G.issues.push({origin:"string",code:"invalid_format",format:"regex",input:G.value,pattern:q.pattern.toString(),inst:Q,continue:!q.abort})}}),XX=U("$ZodCheckLowerCase",(Q,q)=>{q.pattern??(q.pattern=oq),cQ.init(Q,q)}),GX=U("$ZodCheckUpperCase",(Q,q)=>{q.pattern??(q.pattern=dq),cQ.init(Q,q)}),HX=U("$ZodCheckIncludes",(Q,q)=>{j.init(Q,q);let G=e(q.includes),H=new RegExp(typeof q.position==="number"?`^.{${q.position}}${G}`:G);q.pattern=H,Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(H)}),Q._zod.check=(Y)=>{if(Y.value.includes(q.includes,q.position))return;Y.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:q.includes,input:Y.value,inst:Q,continue:!q.abort})}}),WX=U("$ZodCheckStartsWith",(Q,q)=>{j.init(Q,q);let G=new RegExp(`^${e(q.prefix)}.*`);q.pattern??(q.pattern=G),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(G)}),Q._zod.check=(H)=>{if(H.value.startsWith(q.prefix))return;H.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:q.prefix,input:H.value,inst:Q,continue:!q.abort})}}),JX=U("$ZodCheckEndsWith",(Q,q)=>{j.init(Q,q);let G=new RegExp(`.*${e(q.suffix)}$`);q.pattern??(q.pattern=G),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(G)}),Q._zod.check=(H)=>{if(H.value.endsWith(q.suffix))return;H.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:q.suffix,input:H.value,inst:Q,continue:!q.abort})}});function O6(Q,q,G){if(Q.issues.length)q.issues.push(...a(G,Q.issues))}var KX=U("$ZodCheckProperty",(Q,q)=>{j.init(Q,q),Q._zod.check=(G)=>{let H=q.schema._zod.run({value:G.value[q.property],issues:[]},{});if(H instanceof Promise)return H.then((Y)=>O6(Y,G,q.property));O6(H,G,q.property);return}}),BX=U("$ZodCheckMimeType",(Q,q)=>{j.init(Q,q);let G=new Set(q.mime);Q._zod.onattach.push((H)=>{H._zod.bag.mime=q.mime}),Q._zod.check=(H)=>{if(G.has(H.value.type))return;H.issues.push({code:"invalid_value",values:q.mime,input:H.value.type,inst:Q,continue:!q.abort})}}),NX=U("$ZodCheckOverwrite",(Q,q)=>{j.init(Q,q),Q._zod.check=(G)=>{G.value=q.tx(G.value)}}),UX=class{constructor(Q=[]){if(this.content=[],this.indent=0,this)this.args=Q}indented(Q){this.indent+=1,Q(this),this.indent-=1}write(Q){if(typeof Q==="function"){Q(this,{execution:"sync"}),Q(this,{execution:"async"});return}let G=Q.split(`
|
|
4
4
|
`).filter((X)=>X),H=Math.min(...G.map((X)=>X.length-X.trimStart().length)),Y=G.map((X)=>X.slice(H)).map((X)=>" ".repeat(this.indent*2)+X);for(let X of Y)this.content.push(X)}compile(){let Q=Function,q=this?.args,H=[...(this?.content??[""]).map((Y)=>` ${Y}`)];return new Q(...q,H.join(`
|
|
5
5
|
`))}},wX={major:4,minor:3,patch:6},Z=U("$ZodType",(Q,q)=>{var G;Q??(Q={}),Q._zod.def=q,Q._zod.bag=Q._zod.bag||{},Q._zod.version=wX;let H=[...Q._zod.def.checks??[]];if(Q._zod.traits.has("$ZodCheck"))H.unshift(Q);for(let Y of H)for(let X of Y._zod.onattach)X(Q);if(H.length===0)(G=Q._zod).deferred??(G.deferred=[]),Q._zod.deferred?.push(()=>{Q._zod.run=Q._zod.parse});else{let Y=(W,J,K)=>{let B=JQ(W),N;for(let w of J){if(w._zod.def.when){if(!w._zod.def.when(W))continue}else if(B)continue;let L=W.issues.length,A=w._zod.check(W);if(A instanceof Promise&&K?.async===!1)throw new KQ;if(N||A instanceof Promise)N=(N??Promise.resolve()).then(async()=>{if(await A,W.issues.length===L)return;if(!B)B=JQ(W,L)});else{if(W.issues.length===L)continue;if(!B)B=JQ(W,L)}}if(N)return N.then(()=>{return W});return W},X=(W,J,K)=>{if(JQ(W))return W.aborted=!0,W;let B=Y(J,H,K);if(B instanceof Promise){if(K.async===!1)throw new KQ;return B.then((N)=>Q._zod.parse(N,K))}return Q._zod.parse(B,K)};Q._zod.run=(W,J)=>{if(J.skipChecks)return Q._zod.parse(W,J);if(J.direction==="backward"){let B=Q._zod.parse({value:W.value,issues:[]},{...J,skipChecks:!0});if(B instanceof Promise)return B.then((N)=>{return X(N,W,J)});return X(B,W,J)}let K=Q._zod.parse(W,J);if(K instanceof Promise){if(J.async===!1)throw new KQ;return K.then((B)=>Y(B,H,J))}return Y(K,H,J)}}b(Q,"~standard",()=>({validate:(Y)=>{try{let X=Fq(Q,Y);return X.success?{value:X.data}:{issues:X.error?.issues}}catch(X){return Aq(Q,Y).then((W)=>W.success?{value:W.data}:{issues:W.error?.issues})}},vendor:"zod",version:1}))}),lQ=U("$ZodString",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=[...Q?._zod.bag?.patterns??[]].pop()??yq(Q._zod.bag),Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=String(G.value)}catch(Y){}if(typeof G.value==="string")return G;return G.issues.push({expected:"string",code:"invalid_type",input:G.value,inst:Q}),G}}),T=U("$ZodStringFormat",(Q,q)=>{cQ.init(Q,q),lQ.init(Q,q)}),FX=U("$ZodGUID",(Q,q)=>{q.pattern??(q.pattern=Vq),T.init(Q,q)}),AX=U("$ZodUUID",(Q,q)=>{if(q.version){let H={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[q.version];if(H===void 0)throw Error(`Invalid UUID version: "${q.version}"`);q.pattern??(q.pattern=PQ(H))}else q.pattern??(q.pattern=PQ());T.init(Q,q)}),MX=U("$ZodEmail",(Q,q)=>{q.pattern??(q.pattern=Rq),T.init(Q,q)}),LX=U("$ZodURL",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{try{let H=G.value.trim(),Y=new URL(H);if(q.hostname){if(q.hostname.lastIndex=0,!q.hostname.test(Y.hostname))G.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:q.hostname.source,input:G.value,inst:Q,continue:!q.abort})}if(q.protocol){if(q.protocol.lastIndex=0,!q.protocol.test(Y.protocol.endsWith(":")?Y.protocol.slice(0,-1):Y.protocol))G.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:q.protocol.source,input:G.value,inst:Q,continue:!q.abort})}if(q.normalize)G.value=Y.href;else G.value=H;return}catch(H){G.issues.push({code:"invalid_format",format:"url",input:G.value,inst:Q,continue:!q.abort})}}}),PX=U("$ZodEmoji",(Q,q)=>{q.pattern??(q.pattern=Dq()),T.init(Q,q)}),$X=U("$ZodNanoID",(Q,q)=>{q.pattern??(q.pattern=Oq),T.init(Q,q)}),EX=U("$ZodCUID",(Q,q)=>{q.pattern??(q.pattern=Mq),T.init(Q,q)}),OX=U("$ZodCUID2",(Q,q)=>{q.pattern??(q.pattern=Lq),T.init(Q,q)}),IX=U("$ZodULID",(Q,q)=>{q.pattern??(q.pattern=Pq),T.init(Q,q)}),VX=U("$ZodXID",(Q,q)=>{q.pattern??(q.pattern=$q),T.init(Q,q)}),RX=U("$ZodKSUID",(Q,q)=>{q.pattern??(q.pattern=Eq),T.init(Q,q)}),ZX=U("$ZodISODateTime",(Q,q)=>{q.pattern??(q.pattern=gq(q)),T.init(Q,q)}),DX=U("$ZodISODate",(Q,q)=>{q.pattern??(q.pattern=_q),T.init(Q,q)}),bX=U("$ZodISOTime",(Q,q)=>{q.pattern??(q.pattern=hq(q)),T.init(Q,q)}),CX=U("$ZodISODuration",(Q,q)=>{q.pattern??(q.pattern=Iq),T.init(Q,q)}),kX=U("$ZodIPv4",(Q,q)=>{q.pattern??(q.pattern=bq),T.init(Q,q),Q._zod.bag.format="ipv4"}),TX=U("$ZodIPv6",(Q,q)=>{q.pattern??(q.pattern=Cq),T.init(Q,q),Q._zod.bag.format="ipv6",Q._zod.check=(G)=>{try{new URL(`http://[${G.value}]`)}catch{G.issues.push({code:"invalid_format",format:"ipv6",input:G.value,inst:Q,continue:!q.abort})}}}),SX=U("$ZodMAC",(Q,q)=>{q.pattern??(q.pattern=kq(q.delimiter)),T.init(Q,q),Q._zod.bag.format="mac"}),zX=U("$ZodCIDRv4",(Q,q)=>{q.pattern??(q.pattern=Tq),T.init(Q,q)}),jX=U("$ZodCIDRv6",(Q,q)=>{q.pattern??(q.pattern=Sq),T.init(Q,q),Q._zod.check=(G)=>{let H=G.value.split("/");try{if(H.length!==2)throw Error();let[Y,X]=H;if(!X)throw Error();let W=Number(X);if(`${W}`!==X)throw Error();if(W<0||W>128)throw Error();new URL(`http://[${Y}]`)}catch{G.issues.push({code:"invalid_format",format:"cidrv6",input:G.value,inst:Q,continue:!q.abort})}}});function m0(Q){if(Q==="")return!0;if(Q.length%4!==0)return!1;try{return atob(Q),!0}catch{return!1}}var vX=U("$ZodBase64",(Q,q)=>{q.pattern??(q.pattern=zq),T.init(Q,q),Q._zod.bag.contentEncoding="base64",Q._zod.check=(G)=>{if(m0(G.value))return;G.issues.push({code:"invalid_format",format:"base64",input:G.value,inst:Q,continue:!q.abort})}});function _X(Q){if(!h0.test(Q))return!1;let q=Q.replace(/[-_]/g,(H)=>H==="-"?"+":"/"),G=q.padEnd(Math.ceil(q.length/4)*4,"=");return m0(G)}var xX=U("$ZodBase64URL",(Q,q)=>{q.pattern??(q.pattern=h0),T.init(Q,q),Q._zod.bag.contentEncoding="base64url",Q._zod.check=(G)=>{if(_X(G.value))return;G.issues.push({code:"invalid_format",format:"base64url",input:G.value,inst:Q,continue:!q.abort})}}),hX=U("$ZodE164",(Q,q)=>{q.pattern??(q.pattern=jq),T.init(Q,q)});function gX(Q,q=null){try{let G=Q.split(".");if(G.length!==3)return!1;let[H]=G;if(!H)return!1;let Y=JSON.parse(atob(H));if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if(q&&(!("alg"in Y)||Y.alg!==q))return!1;return!0}catch{return!1}}var yX=U("$ZodJWT",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{if(gX(G.value,q.alg))return;G.issues.push({code:"invalid_format",format:"jwt",input:G.value,inst:Q,continue:!q.abort})}}),fX=U("$ZodCustomStringFormat",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{if(q.fn(G.value))return;G.issues.push({code:"invalid_format",format:q.format,input:G.value,inst:Q,continue:!q.abort})}}),c0=U("$ZodNumber",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=Q._zod.bag.pattern??g0,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=Number(G.value)}catch(W){}let Y=G.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return G;let X=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?"Infinity":void 0:void 0;return G.issues.push({expected:"number",code:"invalid_type",input:Y,inst:Q,...X?{received:X}:{}}),G}}),mX=U("$ZodNumberFormat",(Q,q)=>{nq.init(Q,q),c0.init(Q,q)}),l0=U("$ZodBoolean",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=cq,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=Boolean(G.value)}catch(X){}let Y=G.value;if(typeof Y==="boolean")return G;return G.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:Q}),G}}),p0=U("$ZodBigInt",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=fq,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=BigInt(G.value)}catch(Y){}if(typeof G.value==="bigint")return G;return G.issues.push({expected:"bigint",code:"invalid_type",input:G.value,inst:Q}),G}}),cX=U("$ZodBigIntFormat",(Q,q)=>{tq.init(Q,q),p0.init(Q,q)}),lX=U("$ZodSymbol",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y==="symbol")return G;return G.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:Q}),G}}),pX=U("$ZodUndefined",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=pq,Q._zod.values=new Set([void 0]),Q._zod.optin="optional",Q._zod.optout="optional",Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y>"u")return G;return G.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:Q}),G}}),oX=U("$ZodNull",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=lq,Q._zod.values=new Set([null]),Q._zod.parse=(G,H)=>{let Y=G.value;if(Y===null)return G;return G.issues.push({expected:"null",code:"invalid_type",input:Y,inst:Q}),G}}),dX=U("$ZodAny",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G)=>G}),rX=U("$ZodUnknown",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G)=>G}),uX=U("$ZodNever",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{return G.issues.push({expected:"never",code:"invalid_type",input:G.value,inst:Q}),G}}),nX=U("$ZodVoid",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y>"u")return G;return G.issues.push({expected:"void",code:"invalid_type",input:Y,inst:Q}),G}}),tX=U("$ZodDate",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=new Date(G.value)}catch(J){}let Y=G.value,X=Y instanceof Date;if(X&&!Number.isNaN(Y.getTime()))return G;return G.issues.push({expected:"date",code:"invalid_type",input:Y,...X?{received:"Invalid Date"}:{},inst:Q}),G}});function I6(Q,q,G){if(Q.issues.length)q.issues.push(...a(G,Q.issues));q.value[G]=Q.value}var aX=U("$ZodArray",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(!Array.isArray(Y))return G.issues.push({expected:"array",code:"invalid_type",input:Y,inst:Q}),G;G.value=Array(Y.length);let X=[];for(let W=0;W<Y.length;W++){let J=Y[W],K=q.element._zod.run({value:J,issues:[]},H);if(K instanceof Promise)X.push(K.then((B)=>I6(B,G,W)));else I6(K,G,W)}if(X.length)return Promise.all(X).then(()=>G);return G}});function wY(Q,q,G,H,Y){if(Q.issues.length){if(Y&&!(G in H))return;q.issues.push(...a(G,Q.issues))}if(Q.value===void 0){if(G in H)q.value[G]=void 0}else q.value[G]=Q.value}function iX(Q){let q=Object.keys(Q.shape);for(let H of q)if(!Q.shape?.[H]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${H}": expected a Zod schema`);let G=Gq(Q.shape);return{...Q,keys:q,keySet:new Set(q),numKeys:q.length,optionalKeys:new Set(G)}}function eX(Q,q,G,H,Y,X){let W=[],J=Y.keySet,K=Y.catchall._zod,B=K.def.type,N=K.optout==="optional";for(let w in q){if(J.has(w))continue;if(B==="never"){W.push(w);continue}let L=K.run({value:q[w],issues:[]},H);if(L instanceof Promise)Q.push(L.then((A)=>wY(A,G,w,q,N)));else wY(L,G,w,q,N)}if(W.length)G.issues.push({code:"unrecognized_keys",keys:W,input:q,inst:X});if(!Q.length)return G;return Promise.all(Q).then(()=>{return G})}var sX=U("$ZodObject",(Q,q)=>{if(Z.init(Q,q),!Object.getOwnPropertyDescriptor(q,"shape")?.get){let J=q.shape;Object.defineProperty(q,"shape",{get:()=>{let K={...J};return Object.defineProperty(q,"shape",{value:K}),K}})}let H=_Q(()=>iX(q));b(Q._zod,"propValues",()=>{let J=q.shape,K={};for(let B in J){let N=J[B]._zod;if(N.values){K[B]??(K[B]=new Set);for(let w of N.values)K[B].add(w)}}return K});let Y=LQ,X=q.catchall,W;Q._zod.parse=(J,K)=>{W??(W=H.value);let B=J.value;if(!Y(B))return J.issues.push({expected:"object",code:"invalid_type",input:B,inst:Q}),J;J.value={};let N=[],w=W.shape;for(let L of W.keys){let A=w[L],R=A._zod.optout==="optional",E=A._zod.run({value:B[L],issues:[]},K);if(E instanceof Promise)N.push(E.then((O)=>wY(O,J,L,B,R)));else wY(E,J,L,B,R)}if(!X)return N.length?Promise.all(N).then(()=>J):J;return eX(N,B,J,K,H.value,Q)}}),QG=U("$ZodObjectJIT",(Q,q)=>{sX.init(Q,q);let G=Q._zod.parse,H=_Q(()=>iX(q)),Y=(L)=>{let A=new UX(["shape","payload","ctx"]),R=H.value,E=(v)=>{let _=P0(v);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};A.write("const input = payload.value;");let O=Object.create(null),n=0;for(let v of R.keys)O[v]=`key_${n++}`;A.write("const newResult = {};");for(let v of R.keys){let _=O[v],z=P0(v),g=L[v]?._zod?.optout==="optional";if(A.write(`const ${_} = ${E(v)};`),g)A.write(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Eh as b}from"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-
|
|
2
|
+
import{Eh as b}from"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-e0vrxetq.js";export{b as QuickJSAsyncWASMModule};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Tr as e,Ur as V}from"./chunk-eeq0krp7.js";import{RP as N}from"./chunk-kry4vcrf.js";import{SP as z}from"./chunk-f2pv705d.js";var gJ=z(V(),1);var t=z(N(),1),D=z(V(),1);var RJ=z(N(),1);var A=z(N(),1),p=z(V(),1),M=z(e(),1);var c;function VJ(){if(c===void 0)try{let J=globalThis.process.argv0;c=J?`unknown_service:${J}`:"unknown_service"}catch{c="unknown_service"}return c}var x=(J)=>{return J!==null&&typeof J==="object"&&typeof J.then==="function"};class i{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(J,$){let W=new i({},$);return W._rawAttributes=jJ(J),W._asyncAttributesPending=J.filter(([Z,Q])=>x(Q)).length>0,W}constructor(J,$){let W=J.attributes??{};this._rawAttributes=Object.entries(W).map(([Z,Q])=>{if(x(Q))this._asyncAttributesPending=!0;return[Z,Q]}),this._rawAttributes=jJ(this._rawAttributes),this._schemaUrl=iJ($?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let J=0;J<this._rawAttributes.length;J++){let[$,W]=this._rawAttributes[J];this._rawAttributes[J]=[$,x(W)?await W:W]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)A.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let J={};for(let[$,W]of this._rawAttributes){if(x(W)){A.diag.debug(`Unsettled resource attribute ${$} skipped`);continue}if(W!=null)J[$]??=W}if(!this._asyncAttributesPending)this._memoizedAttributes=J;return J}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(J){if(J==null)return this;let $=oJ(this,J),W=$?{schemaUrl:$}:void 0;return i.FromAttributeList([...J.getRawAttributes(),...this.getRawAttributes()],W)}}function DJ(J,$){return i.FromAttributeList(Object.entries(J),$)}function JJ(){return DJ({[M.ATTR_SERVICE_NAME]:VJ(),[M.ATTR_TELEMETRY_SDK_LANGUAGE]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_LANGUAGE],[M.ATTR_TELEMETRY_SDK_NAME]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_NAME],[M.ATTR_TELEMETRY_SDK_VERSION]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_VERSION]})}function jJ(J){return J.map(([$,W])=>{if(x(W))return[$,W.catch((Z)=>{A.diag.debug("promise rejection for resource attribute: %s - %s",$,Z);return})];return[$,W]})}function iJ(J){if(typeof J==="string"||J===void 0)return J;A.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",J);return}function oJ(J,$){let W=J?.schemaUrl,Z=$?.schemaUrl,Q=W===void 0||W==="",q=Z===void 0||Z==="";if(Q)return Z;if(q)return W;if(W===Z)return W;A.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',W,Z);return}var H=z(N(),1),E=z(V(),1);var G=z(N(),1),Y=z(V(),1),h=z(e(),1);var MJ="exception";var C=Symbol.for("nodejs.util.inspect.custom");function R(J){let $={};for(let[W,Z]of J.getRawAttributes()){if(typeof Z?.then==="function")continue;if(Z!=null)$[W]??=Z}return $}function b(J,$,W,Z,Q){if(typeof W==="number"&&W<0){let X=`[${J}]`;return Z?.stylize?Z.stylize(X,"special"):X}if(typeof Q!=="function"||!Z)return $;let q={...Z,depth:Z.depth==null?Z.depth:Z.depth-1};return`${J} ${Q($,q)}`}class $J{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:G.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(J){let $=Date.now();if(this._spanContext=J.spanContext,this._performanceStartTime=Y.otperformance.now(),this._performanceOffset=$-(this._performanceStartTime+Y.otperformance.timeOrigin),this._startTimeProvided=J.startTime!=null,this._spanLimits=J.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=J.spanProcessor,this.name=J.name,this.parentSpanContext=J.parentSpanContext,this.kind=J.kind,J.links)for(let W of J.links)this.addLink(W);if(this.startTime=this._getTime(J.startTime??$),this.resource=J.resource,this.instrumentationScope=J.scope,this._recordEndMetrics=J.recordEndMetrics,J.attributes!=null)this.setAttributes(J.attributes);this._spanProcessor.onStart(this,J.context)}spanContext(){return this._spanContext}setAttribute(J,$){if($==null||this._isSpanEnded())return this;if(J.length===0)return G.diag.warn(`Invalid attribute key: ${J}`),this;if(!Y.isAttributeValue($))return G.diag.warn(`Invalid attribute value set for key: ${J}`),this;let{attributeCountLimit:W}=this._spanLimits,Z=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(W!==void 0&&this._attributesCount>=W&&Z)return this._droppedAttributesCount++,this;if(this.attributes[J]=this._truncateToSize($),Z)this._attributesCount++;return this}setAttributes(J){for(let $ in J)if(Object.prototype.hasOwnProperty.call(J,$))this.setAttribute($,J[$]);return this}addEvent(J,$,W){if(this._isSpanEnded())return this;let{eventCountLimit:Z}=this._spanLimits;if(Z===0)return G.diag.warn("No events allowed."),this._droppedEventsCount++,this;if(Z!==void 0&&this.events.length>=Z){if(this._droppedEventsCount===0)G.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if(Y.isTimeInput($)){if(!Y.isTimeInput(W))W=$;$=void 0}let Q=Y.sanitizeAttributes($),{attributePerEventCountLimit:q}=this._spanLimits,X={},w=0,K=0;for(let U in Q){if(!Object.prototype.hasOwnProperty.call(Q,U))continue;let m=Q[U];if(q!==void 0&&K>=q){w++;continue}X[U]=this._truncateToSize(m),K++}return this.events.push({name:J,attributes:X,time:this._getTime(W),droppedAttributesCount:w}),this}addLink(J){if(this._isSpanEnded())return this;let{linkCountLimit:$}=this._spanLimits;if($===0)return this._droppedLinksCount++,this;if($!==void 0&&this.links.length>=$){if(this._droppedLinksCount===0)G.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:W}=this._spanLimits,Z=Y.sanitizeAttributes(J.attributes),Q={},q=0,X=0;for(let K in Z){if(!Object.prototype.hasOwnProperty.call(Z,K))continue;let U=Z[K];if(W!==void 0&&X>=W){q++;continue}Q[K]=this._truncateToSize(U),X++}let w={context:J.context};if(X>0)w.attributes=Q;if(q>0)w.droppedAttributesCount=q;return this.links.push(w),this}addLinks(J){for(let $ of J)this.addLink($);return this}setStatus(J){if(this._isSpanEnded())return this;if(J.code===G.SpanStatusCode.UNSET)return this;if(this.status.code===G.SpanStatusCode.OK)return this;let $={code:J.code};if(J.code===G.SpanStatusCode.ERROR){if(typeof J.message==="string")$.message=J.message;else if(J.message!=null)G.diag.warn(`Dropping invalid status.message of type '${typeof J.message}', expected 'string'`)}return this.status=$,this}updateName(J){if(this._isSpanEnded())return this;return this.name=J,this}end(J){if(this._isSpanEnded()){G.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}if(this.endTime=this._getTime(J),this._duration=Y.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0)G.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0];if(this._droppedEventsCount>0)G.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)G.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`);if(this._spanProcessor.onEnding)this._spanProcessor.onEnding(this);this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(J){if(typeof J==="number"&&J<=Y.otperformance.now())return Y.hrTime(J+this._performanceOffset);if(typeof J==="number")return Y.millisToHrTime(J);if(J instanceof Date)return Y.millisToHrTime(J.getTime());if(Y.isTimeInputHrTime(J))return J;if(this._startTimeProvided)return Y.millisToHrTime(Date.now());let $=Y.otperformance.now()-this._performanceStartTime;return Y.addHrTimes(this.startTime,Y.millisToHrTime($))}isRecording(){return this._ended===!1}recordException(J,$){let W={};if(typeof J==="string")W[h.ATTR_EXCEPTION_MESSAGE]=J;else if(J){if(J.code)W[h.ATTR_EXCEPTION_TYPE]=J.code.toString();else if(J.name)W[h.ATTR_EXCEPTION_TYPE]=J.name;if(J.message)W[h.ATTR_EXCEPTION_MESSAGE]=J.message;if(J.stack)W[h.ATTR_EXCEPTION_STACKTRACE]=J.stack}if(W[h.ATTR_EXCEPTION_TYPE]||W[h.ATTR_EXCEPTION_MESSAGE])this.addEvent(MJ,W,$);else G.diag.warn(`Failed to record an exception ${J}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let J=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);G.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,J)}return this._ended}_truncateToLimitUtil(J,$){if(J.length<=$)return J;return J.substring(0,$)}_truncateToSize(J){let $=this._attributeValueLengthLimit;if($<=0)return G.diag.warn(`Attribute value limit must be positive, got ${$}`),J;if(typeof J==="string")return this._truncateToLimitUtil(J,$);if(Array.isArray(J))return J.map((W)=>typeof W==="string"?this._truncateToLimitUtil(W,$):W);return J}[C](J,$,W){let Z={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:R(this.resource)}};return b("SpanImpl",Z,J,$,W)}}var B;(function(J){J[J.NOT_RECORD=0]="NOT_RECORD",J[J.RECORD=1]="RECORD",J[J.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(B||(B={}));var OJ="otel.component.name",UJ="otel.component.type",hJ="otel.span.parent.origin",WJ="otel.span.sampling_result",PJ="otel.sdk.processor.span.processed",fJ="otel.sdk.processor.span.queue.capacity",NJ="otel.sdk.processor.span.queue.size",kJ="otel.sdk.span.live",IJ="otel.sdk.span.started",LJ="batching_span_processor",_J="simple_span_processor";class ZJ{startedSpans;liveSpans;constructor(J){this.startedSpans=J.createCounter(IJ,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=J.createUpDownCounter(kJ,{unit:"{span}",description:"The number of currently live spans."})}startSpan(J,$){let W=rJ($);if(this.startedSpans.add(1,{[hJ]:nJ(J),[WJ]:W}),$===B.NOT_RECORD)return()=>{};let Z={[WJ]:W};return this.liveSpans.add(1,Z),()=>{this.liveSpans.add(-1,Z)}}}function nJ(J){if(!J)return"none";if(J.isRemote)return"remote";return"local"}function rJ(J){switch(J){case B.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case B.RECORD:return"RECORD_ONLY";case B.NOT_RECORD:return"DROP"}}var FJ="2.9.0";class QJ{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(J,$){this.instrumentationScope=J,this._sampler=$.sampler,this._spanLimits=$.spanLimits,this._resource=$.resource,this._idGenerator=$.idGenerator,this._spanProcessor=$.spanProcessor;let W=$.meterProvider.getMeter("@opentelemetry/sdk-trace",FJ);this._tracerMetrics=new ZJ(W)}startSpan(J,$={},W=H.context.active()){if($.root)W=H.trace.deleteSpan(W);let Z=H.trace.getSpan(W);if(E.isTracingSuppressed(W))return H.diag.debug("Instrumentation suppressed, returning Noop Span"),H.trace.wrapSpanContext(H.INVALID_SPAN_CONTEXT);let Q=Z?.spanContext(),q=this._idGenerator.generateSpanId(),X,w,K;if(!Q||!H.trace.isSpanContextValid(Q))w=this._idGenerator.generateTraceId();else w=Q.traceId,K=Q.traceState,X=Q;let U=$.kind??H.SpanKind.INTERNAL,m=($.links??[]).map((l)=>{return{context:l.context,attributes:E.sanitizeAttributes(l.attributes)}}),KJ=E.sanitizeAttributes($.attributes),g=this._sampler.shouldSample(W,w,J,U,KJ,m),lJ=this._tracerMetrics.startSpan(Q,g.decision);K=g.traceState??K;let cJ=g.decision===H.SamplingDecision.RECORD_AND_SAMPLED?H.TraceFlags.SAMPLED:H.TraceFlags.NONE,BJ={traceId:w,spanId:q,traceFlags:cJ,traceState:K};if(g.decision===H.SamplingDecision.NOT_RECORD)return H.diag.debug("Recording is off, propagating context in a non-recording span"),H.trace.wrapSpanContext(BJ);let pJ=E.sanitizeAttributes(Object.assign(KJ,g.attributes));return new $J({resource:this._resource,scope:this.instrumentationScope,context:W,spanContext:BJ,name:J,kind:U,links:m,parentSpanContext:X,attributes:pJ,startTime:$.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:lJ})}startActiveSpan(J,$,W,Z){let Q,q,X;if(arguments.length<2)return;else if(arguments.length===2)X=$;else if(arguments.length===3)Q=$,X=W;else Q=$,q=W,X=Z;let w=q??H.context.active(),K=this.startSpan(J,Q,w),U=H.trace.setSpan(w,K);return H.context.with(U,X,void 0,K)}[C](J,$,W){let Z={instrumentationScope:this.instrumentationScope,resource:{attributes:R(this._resource)},spanLimits:this._spanLimits};return b("Tracer",Z,J,$,W)}}var yJ=z(V(),1);class qJ{_spanProcessors;constructor(J){this._spanProcessors=J}forceFlush(){let J=[];for(let $ of this._spanProcessors)J.push($.forceFlush());return new Promise(($)=>{Promise.all(J).then(()=>{$()}).catch((W)=>{yJ.globalErrorHandler(W||Error("MultiSpanProcessor: forceFlush failed")),$()})})}onStart(J,$){for(let W of this._spanProcessors)W.onStart(J,$)}onEnding(J){for(let $ of this._spanProcessors)if($.onEnding)$.onEnding(J)}onEnd(J){for(let $ of this._spanProcessors)$.onEnd(J)}shutdown(){let J=[];for(let $ of this._spanProcessors)J.push($.shutdown());return new Promise(($,W)=>{Promise.all(J).then(()=>{$()},W)})}}var _=z(N(),1),xJ=z(V(),1);class k{shouldSample(){return{decision:B.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class j{shouldSample(){return{decision:B.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class P{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(J){if(this._root=J.root,!this._root)xJ.globalErrorHandler(Error("ParentBasedSampler must have a root sampler configured")),this._root=new j;this._remoteParentSampled=J.remoteParentSampled??new j,this._remoteParentNotSampled=J.remoteParentNotSampled??new k,this._localParentSampled=J.localParentSampled??new j,this._localParentNotSampled=J.localParentNotSampled??new k}shouldSample(J,$,W,Z,Q,q){let X=_.trace.getSpanContext(J);if(!X||!_.isSpanContextValid(X))return this._root.shouldSample(J,$,W,Z,Q,q);if(X.isRemote){if(X.traceFlags&_.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(J,$,W,Z,Q,q);return this._remoteParentNotSampled.shouldSample(J,$,W,Z,Q,q)}if(X.traceFlags&_.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(J,$,W,Z,Q,q);return this._localParentNotSampled.shouldSample(J,$,W,Z,Q,q)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}var O=z(N(),1),I=z(V(),1);var XJ=z(e(),1);var AJ=new Map;class d{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(J,$,W){let Z=AJ.get(J)??0;if(AJ.set(J,Z+1),this.standardAttrs={[UJ]:J,[OJ]:`${J}/${Z}`},this.droppedAttrs={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:"queue_full"},this.processedSpans=$.createCounter(PJ,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),W){let{capacity:Q,getQueueSize:q}=W;$.createUpDownCounter(fJ,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(Q,this.standardAttrs),this.queueSize=$.createObservableUpDownCounter(NJ,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=(w)=>w.observe(q(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(J){this.processedSpans.add(J,this.droppedAttrs)}finishSpans(J,$){if(!$){this.processedSpans.add(J,this.standardAttrs);return}let W={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:$.name};this.processedSpans.add(J,W)}shutdown(){if(this.queueSize&&this.queueSizeCallback)this.queueSize.removeCallback(this.queueSizeCallback)}}class YJ{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(J){if(this._exporter=J.exporter,this._maxExportBatchSize=J.maxExportBatchSize??512,this._maxQueueSize=J.maxQueueSize??2048,this._scheduledDelayMillis=J.scheduledDelayMillis??5000,this._exportTimeoutMillis=J.exportTimeoutMillis??30000,this._shutdownOnce=new I.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)O.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):O.createNoopMeter();this._metrics=new d(LJ,$,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&O.TraceFlags.SAMPLED)===0)return;this._addToBuffer(J)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>{return this.onShutdown()}).then(()=>{return this._flushAll()}).then(()=>{return this._metrics.shutdown(),this._exporter.shutdown()})}_addToBuffer(J){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)O.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++,this._metrics.dropSpans(1);return}if(this._droppedSpansCount>0)O.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(J),this._maybeStartTimer()}_flushAll(){return new Promise((J,$)=>{let W=[],Z=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let Q=0,q=Z;Q<q;Q++)W.push(this._flushOneBatch());Promise.all(W).then(()=>{J()}).catch($)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((J,$)=>{let W=setTimeout(()=>{$(Error("Timeout"))},this._exportTimeoutMillis);O.context.with(I.suppressTracing(O.context.active()),()=>{let Z;if(this._finishedSpans.length<=this._maxExportBatchSize)Z=this._finishedSpans,this._finishedSpans=[];else Z=this._finishedSpans.splice(0,this._maxExportBatchSize);let Q=()=>this._exporter.export(Z,(X)=>{if(clearTimeout(W),this._metrics.finishSpans(Z.length,X.error),X.code===I.ExportResultCode.SUCCESS)J();else $(X.error??Error("BatchSpanProcessor: span export failed"))}),q=null;for(let X=0,w=Z.length;X<w;X++){let K=Z[X];if(K.resource.asyncAttributesPending&&K.resource.waitForAsyncAttributes)q??=[],q.push(K.resource.waitForAsyncAttributes())}if(q===null)Q();else Promise.all(q).then(Q,(X)=>{I.globalErrorHandler(X),$(X)})})})}_maybeStartTimer(){if(this._isExporting)return;let J=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{if(this._isExporting=!1,this._finishedSpans.length>0)this._clearTimer(),this._maybeStartTimer()}).catch(($)=>{this._isExporting=!1,I.globalErrorHandler($)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return J();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>J(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}}class v extends YJ{onShutdown(){}}class F{generateTraceId=CJ(16);generateSpanId=CJ(8)}var o=Buffer.allocUnsafe(16);function CJ(J){return function(){for(let W=0;W<J/4;W++)o.writeUInt32BE(Math.random()*4294967296>>>0,W*4);for(let W=0;W<J;W++)if(o[W]>0)break;else if(W===J-1)o[J-1]=1;return o.toString("hex",0,J)}}var y;(function(J){J[J.resolved=0]="resolved",J[J.timeout=1]="timeout",J[J.error=2]="error",J[J.unresolved=3]="unresolved"})(y||(y={}));class n{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(J={}){this._forceFlushTimeoutMillis=J.forceFlushTimeoutMillis??30000,this._resource=J.resource??JJ();let $=J.spanProcessors??[];this._activeSpanProcessor=new qJ($),this._tracerOptions={resource:this._resource,sampler:J.sampler??new P({root:new j}),spanLimits:{attributeCountLimit:J.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:J.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:J.spanLimits?.eventCountLimit??128,linkCountLimit:J.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:J.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:J.spanLimits?.attributePerLinkCountLimit??128},idGenerator:J.idGenerator||new F,spanProcessor:this._activeSpanProcessor,meterProvider:J.meterProvider??{getMeter(){return RJ.createNoopMeter()}}}}getTracer(J,$,W){let Z=`${J}@${$||""}:${W?.schemaUrl||""}`;if(!this._tracers.has(Z))this._tracers.set(Z,new QJ({name:J,version:$,schemaUrl:W?.schemaUrl},this._tracerOptions));return this._tracers.get(Z)}forceFlush(){let J=this._forceFlushTimeoutMillis,$=this._activeSpanProcessor._spanProcessors.map((W)=>{return new Promise((Z)=>{let Q,q=setTimeout(()=>{Z(Error(`Span processor did not completed within timeout period of ${J} ms`)),Q=y.timeout},J);W.forceFlush().then(()=>{if(clearTimeout(q),Q!==y.timeout)Q=y.resolved,Z(Q)}).catch((X)=>{clearTimeout(q),Q=y.error,Z(X)})})});return new Promise((W,Z)=>{Promise.all($).then((Q)=>{let q=Q.filter((X)=>X!==y.resolved);if(q.length>0)Z(q);else W()}).catch((Q)=>Z([Q]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[C](J,$,W){let Z=this._activeSpanProcessor._spanProcessors,Q={resource:{attributes:R(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:Z.map((q)=>q.constructor?.name??"SpanProcessor")};return b("TracerProvider",Q,J,$,W)}}var S=z(V(),1);class zJ{export(J,$){return this._sendSpans(J,$)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(J){return{resource:{attributes:J.resource.attributes},instrumentationScope:J.instrumentationScope,traceId:J.spanContext().traceId,parentSpanContext:J.parentSpanContext,traceState:J.spanContext().traceState?.serialize(),name:J.name,id:J.spanContext().spanId,kind:J.kind,timestamp:S.hrTimeToMicroseconds(J.startTime),duration:S.hrTimeToMicroseconds(J.duration),attributes:J.attributes,status:J.status,events:J.events,links:J.links}}_sendSpans(J,$){for(let W of J)console.dir(this._exportInfo(W),{depth:3});if($)return $({code:S.ExportResultCode.SUCCESS})}}var HJ=z(V(),1);class GJ{_finishedSpans=[];_stopped=!1;export(J,$){if(this._stopped)return $({code:HJ.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...J),setTimeout(()=>$({code:HJ.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}var r=z(N(),1),L=z(V(),1);class a{_exporter;_metrics;_shutdownOnce;_pendingExports;constructor(J){this._exporter=J.exporter,this._shutdownOnce=new L.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):r.createNoopMeter();this._metrics=new d(_J,$)}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&r.TraceFlags.SAMPLED)===0)return;let $=this._doExport(J).catch((W)=>L.globalErrorHandler(W));this._pendingExports.add($),$.finally(()=>this._pendingExports.delete($))}async _doExport(J){if(J.resource.asyncAttributesPending)await J.resource.waitForAsyncAttributes?.();let $=await L.internal._export(this._exporter,[J]);if(this._metrics.finishSpans(1,$.error),$.code!==L.ExportResultCode.SUCCESS)throw $.error??Error(`SimpleSpanProcessor: span export failed (status ${$})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._metrics.shutdown(),this._exporter.shutdown()}}class wJ{onStart(J,$){}onEnd(J){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}var bJ=z(N(),1);class T{_ratio;_upperBound;constructor(J=0){this._ratio=this._normalize(J),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(J,$){return{decision:bJ.isValidTraceId($)&&this._accumulate($)<this._upperBound?B.RECORD_AND_SAMPLED:B.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(J){if(typeof J!=="number"||isNaN(J))return 0;return J>=1?1:J<=0?0:J}_accumulate(J){let $=0;for(let W=0;W<32;W+=8){let Z=0;for(let Q=0;Q<8;Q++){let q=J.charCodeAt(W+Q),X=q<58?q-48:q<71?q-55:q-87;Z=Z<<4|X}$=($^Z)>>>0}return $}}var f;(function(J){J.AlwaysOff="always_off",J.AlwaysOn="always_on",J.ParentBasedAlwaysOff="parentbased_always_off",J.ParentBasedAlwaysOn="parentbased_always_on",J.ParentBasedTraceIdRatio="parentbased_traceidratio",J.TraceIdRatio="traceidratio"})(f||(f={}));var s=1;function vJ(){return{sampler:aJ(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:D.getNumberFromEnv("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:D.getNumberFromEnv("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function aJ(){let J=D.getStringFromEnv("OTEL_TRACES_SAMPLER")??f.ParentBasedAlwaysOn;switch(J){case f.AlwaysOn:return new j;case f.AlwaysOff:return new k;case f.ParentBasedAlwaysOn:return new P({root:new j});case f.ParentBasedAlwaysOff:return new P({root:new k});case f.TraceIdRatio:return new T(EJ());case f.ParentBasedTraceIdRatio:return new P({root:new T(EJ())});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${J}" invalid, defaulting to "${f.ParentBasedAlwaysOn}".`),new P({root:new j})}}function EJ(){let J=D.getNumberFromEnv("OTEL_TRACES_SAMPLER_ARG");if(J==null)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${s}.`),s;if(J<0||J>1)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${J} was given, but it is out of range ([0..1]), defaulting to ${s}.`),s;return J}var u=z(V(),1),sJ=128,tJ=1/0;function TJ(J){let $=Object.assign({},J.spanLimits);return $.attributeCountLimit=J.spanLimits?.attributeCountLimit??J.generalLimits?.attributeCountLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??sJ,$.attributeValueLengthLimit=J.spanLimits?.attributeValueLengthLimit??J.generalLimits?.attributeValueLengthLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??tJ,Object.assign({},J,{spanLimits:$})}class dJ extends n{constructor(J={}){let $=gJ.merge({},vJ(),TJ(J));delete $.generalLimits;super($)}}var SJ=z(V(),1);class uJ extends v{constructor(J,$){if(!$)$={};let W=[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]];for(let[Z,Q]of W)if($[Z]===void 0){let q=SJ.getNumberFromEnv(Q);if(q!==void 0)$[Z]=q}super({exporter:J,...$})}}class mJ extends a{constructor(J){super({exporter:J})}}export{T as TraceIdRatioBasedSampler,mJ as SimpleSpanProcessor,B as SamplingDecision,F as RandomIdGenerator,P as ParentBasedSampler,wJ as NoopSpanProcessor,GJ as InMemorySpanExporter,zJ as ConsoleSpanExporter,uJ as BatchSpanProcessor,dJ as BasicTracerProvider,j as AlwaysOnSampler,k as AlwaysOffSampler};
|
|
2
|
+
import{uq as e,vq as V}from"./chunk-27saej0r.js";import{sO as N}from"./chunk-n6tqtk6h.js";import{tO as z}from"./chunk-e0vrxetq.js";var gJ=z(V(),1);var t=z(N(),1),D=z(V(),1);var RJ=z(N(),1);var A=z(N(),1),p=z(V(),1),M=z(e(),1);var c;function VJ(){if(c===void 0)try{let J=globalThis.process.argv0;c=J?`unknown_service:${J}`:"unknown_service"}catch{c="unknown_service"}return c}var x=(J)=>{return J!==null&&typeof J==="object"&&typeof J.then==="function"};class i{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(J,$){let W=new i({},$);return W._rawAttributes=jJ(J),W._asyncAttributesPending=J.filter(([Z,Q])=>x(Q)).length>0,W}constructor(J,$){let W=J.attributes??{};this._rawAttributes=Object.entries(W).map(([Z,Q])=>{if(x(Q))this._asyncAttributesPending=!0;return[Z,Q]}),this._rawAttributes=jJ(this._rawAttributes),this._schemaUrl=iJ($?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let J=0;J<this._rawAttributes.length;J++){let[$,W]=this._rawAttributes[J];this._rawAttributes[J]=[$,x(W)?await W:W]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)A.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let J={};for(let[$,W]of this._rawAttributes){if(x(W)){A.diag.debug(`Unsettled resource attribute ${$} skipped`);continue}if(W!=null)J[$]??=W}if(!this._asyncAttributesPending)this._memoizedAttributes=J;return J}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(J){if(J==null)return this;let $=oJ(this,J),W=$?{schemaUrl:$}:void 0;return i.FromAttributeList([...J.getRawAttributes(),...this.getRawAttributes()],W)}}function DJ(J,$){return i.FromAttributeList(Object.entries(J),$)}function JJ(){return DJ({[M.ATTR_SERVICE_NAME]:VJ(),[M.ATTR_TELEMETRY_SDK_LANGUAGE]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_LANGUAGE],[M.ATTR_TELEMETRY_SDK_NAME]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_NAME],[M.ATTR_TELEMETRY_SDK_VERSION]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_VERSION]})}function jJ(J){return J.map(([$,W])=>{if(x(W))return[$,W.catch((Z)=>{A.diag.debug("promise rejection for resource attribute: %s - %s",$,Z);return})];return[$,W]})}function iJ(J){if(typeof J==="string"||J===void 0)return J;A.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",J);return}function oJ(J,$){let W=J?.schemaUrl,Z=$?.schemaUrl,Q=W===void 0||W==="",q=Z===void 0||Z==="";if(Q)return Z;if(q)return W;if(W===Z)return W;A.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',W,Z);return}var H=z(N(),1),E=z(V(),1);var G=z(N(),1),Y=z(V(),1),h=z(e(),1);var MJ="exception";var C=Symbol.for("nodejs.util.inspect.custom");function R(J){let $={};for(let[W,Z]of J.getRawAttributes()){if(typeof Z?.then==="function")continue;if(Z!=null)$[W]??=Z}return $}function b(J,$,W,Z,Q){if(typeof W==="number"&&W<0){let X=`[${J}]`;return Z?.stylize?Z.stylize(X,"special"):X}if(typeof Q!=="function"||!Z)return $;let q={...Z,depth:Z.depth==null?Z.depth:Z.depth-1};return`${J} ${Q($,q)}`}class $J{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:G.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(J){let $=Date.now();if(this._spanContext=J.spanContext,this._performanceStartTime=Y.otperformance.now(),this._performanceOffset=$-(this._performanceStartTime+Y.otperformance.timeOrigin),this._startTimeProvided=J.startTime!=null,this._spanLimits=J.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=J.spanProcessor,this.name=J.name,this.parentSpanContext=J.parentSpanContext,this.kind=J.kind,J.links)for(let W of J.links)this.addLink(W);if(this.startTime=this._getTime(J.startTime??$),this.resource=J.resource,this.instrumentationScope=J.scope,this._recordEndMetrics=J.recordEndMetrics,J.attributes!=null)this.setAttributes(J.attributes);this._spanProcessor.onStart(this,J.context)}spanContext(){return this._spanContext}setAttribute(J,$){if($==null||this._isSpanEnded())return this;if(J.length===0)return G.diag.warn(`Invalid attribute key: ${J}`),this;if(!Y.isAttributeValue($))return G.diag.warn(`Invalid attribute value set for key: ${J}`),this;let{attributeCountLimit:W}=this._spanLimits,Z=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(W!==void 0&&this._attributesCount>=W&&Z)return this._droppedAttributesCount++,this;if(this.attributes[J]=this._truncateToSize($),Z)this._attributesCount++;return this}setAttributes(J){for(let $ in J)if(Object.prototype.hasOwnProperty.call(J,$))this.setAttribute($,J[$]);return this}addEvent(J,$,W){if(this._isSpanEnded())return this;let{eventCountLimit:Z}=this._spanLimits;if(Z===0)return G.diag.warn("No events allowed."),this._droppedEventsCount++,this;if(Z!==void 0&&this.events.length>=Z){if(this._droppedEventsCount===0)G.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if(Y.isTimeInput($)){if(!Y.isTimeInput(W))W=$;$=void 0}let Q=Y.sanitizeAttributes($),{attributePerEventCountLimit:q}=this._spanLimits,X={},w=0,K=0;for(let U in Q){if(!Object.prototype.hasOwnProperty.call(Q,U))continue;let m=Q[U];if(q!==void 0&&K>=q){w++;continue}X[U]=this._truncateToSize(m),K++}return this.events.push({name:J,attributes:X,time:this._getTime(W),droppedAttributesCount:w}),this}addLink(J){if(this._isSpanEnded())return this;let{linkCountLimit:$}=this._spanLimits;if($===0)return this._droppedLinksCount++,this;if($!==void 0&&this.links.length>=$){if(this._droppedLinksCount===0)G.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:W}=this._spanLimits,Z=Y.sanitizeAttributes(J.attributes),Q={},q=0,X=0;for(let K in Z){if(!Object.prototype.hasOwnProperty.call(Z,K))continue;let U=Z[K];if(W!==void 0&&X>=W){q++;continue}Q[K]=this._truncateToSize(U),X++}let w={context:J.context};if(X>0)w.attributes=Q;if(q>0)w.droppedAttributesCount=q;return this.links.push(w),this}addLinks(J){for(let $ of J)this.addLink($);return this}setStatus(J){if(this._isSpanEnded())return this;if(J.code===G.SpanStatusCode.UNSET)return this;if(this.status.code===G.SpanStatusCode.OK)return this;let $={code:J.code};if(J.code===G.SpanStatusCode.ERROR){if(typeof J.message==="string")$.message=J.message;else if(J.message!=null)G.diag.warn(`Dropping invalid status.message of type '${typeof J.message}', expected 'string'`)}return this.status=$,this}updateName(J){if(this._isSpanEnded())return this;return this.name=J,this}end(J){if(this._isSpanEnded()){G.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}if(this.endTime=this._getTime(J),this._duration=Y.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0)G.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0];if(this._droppedEventsCount>0)G.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)G.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`);if(this._spanProcessor.onEnding)this._spanProcessor.onEnding(this);this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(J){if(typeof J==="number"&&J<=Y.otperformance.now())return Y.hrTime(J+this._performanceOffset);if(typeof J==="number")return Y.millisToHrTime(J);if(J instanceof Date)return Y.millisToHrTime(J.getTime());if(Y.isTimeInputHrTime(J))return J;if(this._startTimeProvided)return Y.millisToHrTime(Date.now());let $=Y.otperformance.now()-this._performanceStartTime;return Y.addHrTimes(this.startTime,Y.millisToHrTime($))}isRecording(){return this._ended===!1}recordException(J,$){let W={};if(typeof J==="string")W[h.ATTR_EXCEPTION_MESSAGE]=J;else if(J){if(J.code)W[h.ATTR_EXCEPTION_TYPE]=J.code.toString();else if(J.name)W[h.ATTR_EXCEPTION_TYPE]=J.name;if(J.message)W[h.ATTR_EXCEPTION_MESSAGE]=J.message;if(J.stack)W[h.ATTR_EXCEPTION_STACKTRACE]=J.stack}if(W[h.ATTR_EXCEPTION_TYPE]||W[h.ATTR_EXCEPTION_MESSAGE])this.addEvent(MJ,W,$);else G.diag.warn(`Failed to record an exception ${J}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let J=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);G.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,J)}return this._ended}_truncateToLimitUtil(J,$){if(J.length<=$)return J;return J.substring(0,$)}_truncateToSize(J){let $=this._attributeValueLengthLimit;if($<=0)return G.diag.warn(`Attribute value limit must be positive, got ${$}`),J;if(typeof J==="string")return this._truncateToLimitUtil(J,$);if(Array.isArray(J))return J.map((W)=>typeof W==="string"?this._truncateToLimitUtil(W,$):W);return J}[C](J,$,W){let Z={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:R(this.resource)}};return b("SpanImpl",Z,J,$,W)}}var B;(function(J){J[J.NOT_RECORD=0]="NOT_RECORD",J[J.RECORD=1]="RECORD",J[J.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(B||(B={}));var OJ="otel.component.name",UJ="otel.component.type",hJ="otel.span.parent.origin",WJ="otel.span.sampling_result",PJ="otel.sdk.processor.span.processed",fJ="otel.sdk.processor.span.queue.capacity",NJ="otel.sdk.processor.span.queue.size",kJ="otel.sdk.span.live",IJ="otel.sdk.span.started",LJ="batching_span_processor",_J="simple_span_processor";class ZJ{startedSpans;liveSpans;constructor(J){this.startedSpans=J.createCounter(IJ,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=J.createUpDownCounter(kJ,{unit:"{span}",description:"The number of currently live spans."})}startSpan(J,$){let W=rJ($);if(this.startedSpans.add(1,{[hJ]:nJ(J),[WJ]:W}),$===B.NOT_RECORD)return()=>{};let Z={[WJ]:W};return this.liveSpans.add(1,Z),()=>{this.liveSpans.add(-1,Z)}}}function nJ(J){if(!J)return"none";if(J.isRemote)return"remote";return"local"}function rJ(J){switch(J){case B.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case B.RECORD:return"RECORD_ONLY";case B.NOT_RECORD:return"DROP"}}var FJ="2.9.0";class QJ{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(J,$){this.instrumentationScope=J,this._sampler=$.sampler,this._spanLimits=$.spanLimits,this._resource=$.resource,this._idGenerator=$.idGenerator,this._spanProcessor=$.spanProcessor;let W=$.meterProvider.getMeter("@opentelemetry/sdk-trace",FJ);this._tracerMetrics=new ZJ(W)}startSpan(J,$={},W=H.context.active()){if($.root)W=H.trace.deleteSpan(W);let Z=H.trace.getSpan(W);if(E.isTracingSuppressed(W))return H.diag.debug("Instrumentation suppressed, returning Noop Span"),H.trace.wrapSpanContext(H.INVALID_SPAN_CONTEXT);let Q=Z?.spanContext(),q=this._idGenerator.generateSpanId(),X,w,K;if(!Q||!H.trace.isSpanContextValid(Q))w=this._idGenerator.generateTraceId();else w=Q.traceId,K=Q.traceState,X=Q;let U=$.kind??H.SpanKind.INTERNAL,m=($.links??[]).map((l)=>{return{context:l.context,attributes:E.sanitizeAttributes(l.attributes)}}),KJ=E.sanitizeAttributes($.attributes),g=this._sampler.shouldSample(W,w,J,U,KJ,m),lJ=this._tracerMetrics.startSpan(Q,g.decision);K=g.traceState??K;let cJ=g.decision===H.SamplingDecision.RECORD_AND_SAMPLED?H.TraceFlags.SAMPLED:H.TraceFlags.NONE,BJ={traceId:w,spanId:q,traceFlags:cJ,traceState:K};if(g.decision===H.SamplingDecision.NOT_RECORD)return H.diag.debug("Recording is off, propagating context in a non-recording span"),H.trace.wrapSpanContext(BJ);let pJ=E.sanitizeAttributes(Object.assign(KJ,g.attributes));return new $J({resource:this._resource,scope:this.instrumentationScope,context:W,spanContext:BJ,name:J,kind:U,links:m,parentSpanContext:X,attributes:pJ,startTime:$.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:lJ})}startActiveSpan(J,$,W,Z){let Q,q,X;if(arguments.length<2)return;else if(arguments.length===2)X=$;else if(arguments.length===3)Q=$,X=W;else Q=$,q=W,X=Z;let w=q??H.context.active(),K=this.startSpan(J,Q,w),U=H.trace.setSpan(w,K);return H.context.with(U,X,void 0,K)}[C](J,$,W){let Z={instrumentationScope:this.instrumentationScope,resource:{attributes:R(this._resource)},spanLimits:this._spanLimits};return b("Tracer",Z,J,$,W)}}var yJ=z(V(),1);class qJ{_spanProcessors;constructor(J){this._spanProcessors=J}forceFlush(){let J=[];for(let $ of this._spanProcessors)J.push($.forceFlush());return new Promise(($)=>{Promise.all(J).then(()=>{$()}).catch((W)=>{yJ.globalErrorHandler(W||Error("MultiSpanProcessor: forceFlush failed")),$()})})}onStart(J,$){for(let W of this._spanProcessors)W.onStart(J,$)}onEnding(J){for(let $ of this._spanProcessors)if($.onEnding)$.onEnding(J)}onEnd(J){for(let $ of this._spanProcessors)$.onEnd(J)}shutdown(){let J=[];for(let $ of this._spanProcessors)J.push($.shutdown());return new Promise(($,W)=>{Promise.all(J).then(()=>{$()},W)})}}var _=z(N(),1),xJ=z(V(),1);class k{shouldSample(){return{decision:B.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class j{shouldSample(){return{decision:B.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class P{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(J){if(this._root=J.root,!this._root)xJ.globalErrorHandler(Error("ParentBasedSampler must have a root sampler configured")),this._root=new j;this._remoteParentSampled=J.remoteParentSampled??new j,this._remoteParentNotSampled=J.remoteParentNotSampled??new k,this._localParentSampled=J.localParentSampled??new j,this._localParentNotSampled=J.localParentNotSampled??new k}shouldSample(J,$,W,Z,Q,q){let X=_.trace.getSpanContext(J);if(!X||!_.isSpanContextValid(X))return this._root.shouldSample(J,$,W,Z,Q,q);if(X.isRemote){if(X.traceFlags&_.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(J,$,W,Z,Q,q);return this._remoteParentNotSampled.shouldSample(J,$,W,Z,Q,q)}if(X.traceFlags&_.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(J,$,W,Z,Q,q);return this._localParentNotSampled.shouldSample(J,$,W,Z,Q,q)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}var O=z(N(),1),I=z(V(),1);var XJ=z(e(),1);var AJ=new Map;class d{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(J,$,W){let Z=AJ.get(J)??0;if(AJ.set(J,Z+1),this.standardAttrs={[UJ]:J,[OJ]:`${J}/${Z}`},this.droppedAttrs={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:"queue_full"},this.processedSpans=$.createCounter(PJ,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),W){let{capacity:Q,getQueueSize:q}=W;$.createUpDownCounter(fJ,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(Q,this.standardAttrs),this.queueSize=$.createObservableUpDownCounter(NJ,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=(w)=>w.observe(q(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(J){this.processedSpans.add(J,this.droppedAttrs)}finishSpans(J,$){if(!$){this.processedSpans.add(J,this.standardAttrs);return}let W={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:$.name};this.processedSpans.add(J,W)}shutdown(){if(this.queueSize&&this.queueSizeCallback)this.queueSize.removeCallback(this.queueSizeCallback)}}class YJ{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(J){if(this._exporter=J.exporter,this._maxExportBatchSize=J.maxExportBatchSize??512,this._maxQueueSize=J.maxQueueSize??2048,this._scheduledDelayMillis=J.scheduledDelayMillis??5000,this._exportTimeoutMillis=J.exportTimeoutMillis??30000,this._shutdownOnce=new I.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)O.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):O.createNoopMeter();this._metrics=new d(LJ,$,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&O.TraceFlags.SAMPLED)===0)return;this._addToBuffer(J)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>{return this.onShutdown()}).then(()=>{return this._flushAll()}).then(()=>{return this._metrics.shutdown(),this._exporter.shutdown()})}_addToBuffer(J){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)O.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++,this._metrics.dropSpans(1);return}if(this._droppedSpansCount>0)O.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(J),this._maybeStartTimer()}_flushAll(){return new Promise((J,$)=>{let W=[],Z=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let Q=0,q=Z;Q<q;Q++)W.push(this._flushOneBatch());Promise.all(W).then(()=>{J()}).catch($)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((J,$)=>{let W=setTimeout(()=>{$(Error("Timeout"))},this._exportTimeoutMillis);O.context.with(I.suppressTracing(O.context.active()),()=>{let Z;if(this._finishedSpans.length<=this._maxExportBatchSize)Z=this._finishedSpans,this._finishedSpans=[];else Z=this._finishedSpans.splice(0,this._maxExportBatchSize);let Q=()=>this._exporter.export(Z,(X)=>{if(clearTimeout(W),this._metrics.finishSpans(Z.length,X.error),X.code===I.ExportResultCode.SUCCESS)J();else $(X.error??Error("BatchSpanProcessor: span export failed"))}),q=null;for(let X=0,w=Z.length;X<w;X++){let K=Z[X];if(K.resource.asyncAttributesPending&&K.resource.waitForAsyncAttributes)q??=[],q.push(K.resource.waitForAsyncAttributes())}if(q===null)Q();else Promise.all(q).then(Q,(X)=>{I.globalErrorHandler(X),$(X)})})})}_maybeStartTimer(){if(this._isExporting)return;let J=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{if(this._isExporting=!1,this._finishedSpans.length>0)this._clearTimer(),this._maybeStartTimer()}).catch(($)=>{this._isExporting=!1,I.globalErrorHandler($)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return J();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>J(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}}class v extends YJ{onShutdown(){}}class F{generateTraceId=CJ(16);generateSpanId=CJ(8)}var o=Buffer.allocUnsafe(16);function CJ(J){return function(){for(let W=0;W<J/4;W++)o.writeUInt32BE(Math.random()*4294967296>>>0,W*4);for(let W=0;W<J;W++)if(o[W]>0)break;else if(W===J-1)o[J-1]=1;return o.toString("hex",0,J)}}var y;(function(J){J[J.resolved=0]="resolved",J[J.timeout=1]="timeout",J[J.error=2]="error",J[J.unresolved=3]="unresolved"})(y||(y={}));class n{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(J={}){this._forceFlushTimeoutMillis=J.forceFlushTimeoutMillis??30000,this._resource=J.resource??JJ();let $=J.spanProcessors??[];this._activeSpanProcessor=new qJ($),this._tracerOptions={resource:this._resource,sampler:J.sampler??new P({root:new j}),spanLimits:{attributeCountLimit:J.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:J.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:J.spanLimits?.eventCountLimit??128,linkCountLimit:J.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:J.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:J.spanLimits?.attributePerLinkCountLimit??128},idGenerator:J.idGenerator||new F,spanProcessor:this._activeSpanProcessor,meterProvider:J.meterProvider??{getMeter(){return RJ.createNoopMeter()}}}}getTracer(J,$,W){let Z=`${J}@${$||""}:${W?.schemaUrl||""}`;if(!this._tracers.has(Z))this._tracers.set(Z,new QJ({name:J,version:$,schemaUrl:W?.schemaUrl},this._tracerOptions));return this._tracers.get(Z)}forceFlush(){let J=this._forceFlushTimeoutMillis,$=this._activeSpanProcessor._spanProcessors.map((W)=>{return new Promise((Z)=>{let Q,q=setTimeout(()=>{Z(Error(`Span processor did not completed within timeout period of ${J} ms`)),Q=y.timeout},J);W.forceFlush().then(()=>{if(clearTimeout(q),Q!==y.timeout)Q=y.resolved,Z(Q)}).catch((X)=>{clearTimeout(q),Q=y.error,Z(X)})})});return new Promise((W,Z)=>{Promise.all($).then((Q)=>{let q=Q.filter((X)=>X!==y.resolved);if(q.length>0)Z(q);else W()}).catch((Q)=>Z([Q]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[C](J,$,W){let Z=this._activeSpanProcessor._spanProcessors,Q={resource:{attributes:R(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:Z.map((q)=>q.constructor?.name??"SpanProcessor")};return b("TracerProvider",Q,J,$,W)}}var S=z(V(),1);class zJ{export(J,$){return this._sendSpans(J,$)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(J){return{resource:{attributes:J.resource.attributes},instrumentationScope:J.instrumentationScope,traceId:J.spanContext().traceId,parentSpanContext:J.parentSpanContext,traceState:J.spanContext().traceState?.serialize(),name:J.name,id:J.spanContext().spanId,kind:J.kind,timestamp:S.hrTimeToMicroseconds(J.startTime),duration:S.hrTimeToMicroseconds(J.duration),attributes:J.attributes,status:J.status,events:J.events,links:J.links}}_sendSpans(J,$){for(let W of J)console.dir(this._exportInfo(W),{depth:3});if($)return $({code:S.ExportResultCode.SUCCESS})}}var HJ=z(V(),1);class GJ{_finishedSpans=[];_stopped=!1;export(J,$){if(this._stopped)return $({code:HJ.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...J),setTimeout(()=>$({code:HJ.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}var r=z(N(),1),L=z(V(),1);class a{_exporter;_metrics;_shutdownOnce;_pendingExports;constructor(J){this._exporter=J.exporter,this._shutdownOnce=new L.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):r.createNoopMeter();this._metrics=new d(_J,$)}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&r.TraceFlags.SAMPLED)===0)return;let $=this._doExport(J).catch((W)=>L.globalErrorHandler(W));this._pendingExports.add($),$.finally(()=>this._pendingExports.delete($))}async _doExport(J){if(J.resource.asyncAttributesPending)await J.resource.waitForAsyncAttributes?.();let $=await L.internal._export(this._exporter,[J]);if(this._metrics.finishSpans(1,$.error),$.code!==L.ExportResultCode.SUCCESS)throw $.error??Error(`SimpleSpanProcessor: span export failed (status ${$})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._metrics.shutdown(),this._exporter.shutdown()}}class wJ{onStart(J,$){}onEnd(J){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}var bJ=z(N(),1);class T{_ratio;_upperBound;constructor(J=0){this._ratio=this._normalize(J),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(J,$){return{decision:bJ.isValidTraceId($)&&this._accumulate($)<this._upperBound?B.RECORD_AND_SAMPLED:B.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(J){if(typeof J!=="number"||isNaN(J))return 0;return J>=1?1:J<=0?0:J}_accumulate(J){let $=0;for(let W=0;W<32;W+=8){let Z=0;for(let Q=0;Q<8;Q++){let q=J.charCodeAt(W+Q),X=q<58?q-48:q<71?q-55:q-87;Z=Z<<4|X}$=($^Z)>>>0}return $}}var f;(function(J){J.AlwaysOff="always_off",J.AlwaysOn="always_on",J.ParentBasedAlwaysOff="parentbased_always_off",J.ParentBasedAlwaysOn="parentbased_always_on",J.ParentBasedTraceIdRatio="parentbased_traceidratio",J.TraceIdRatio="traceidratio"})(f||(f={}));var s=1;function vJ(){return{sampler:aJ(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:D.getNumberFromEnv("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:D.getNumberFromEnv("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function aJ(){let J=D.getStringFromEnv("OTEL_TRACES_SAMPLER")??f.ParentBasedAlwaysOn;switch(J){case f.AlwaysOn:return new j;case f.AlwaysOff:return new k;case f.ParentBasedAlwaysOn:return new P({root:new j});case f.ParentBasedAlwaysOff:return new P({root:new k});case f.TraceIdRatio:return new T(EJ());case f.ParentBasedTraceIdRatio:return new P({root:new T(EJ())});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${J}" invalid, defaulting to "${f.ParentBasedAlwaysOn}".`),new P({root:new j})}}function EJ(){let J=D.getNumberFromEnv("OTEL_TRACES_SAMPLER_ARG");if(J==null)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${s}.`),s;if(J<0||J>1)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${J} was given, but it is out of range ([0..1]), defaulting to ${s}.`),s;return J}var u=z(V(),1),sJ=128,tJ=1/0;function TJ(J){let $=Object.assign({},J.spanLimits);return $.attributeCountLimit=J.spanLimits?.attributeCountLimit??J.generalLimits?.attributeCountLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??sJ,$.attributeValueLengthLimit=J.spanLimits?.attributeValueLengthLimit??J.generalLimits?.attributeValueLengthLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??tJ,Object.assign({},J,{spanLimits:$})}class dJ extends n{constructor(J={}){let $=gJ.merge({},vJ(),TJ(J));delete $.generalLimits;super($)}}var SJ=z(V(),1);class uJ extends v{constructor(J,$){if(!$)$={};let W=[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]];for(let[Z,Q]of W)if($[Z]===void 0){let q=SJ.getNumberFromEnv(Q);if(q!==void 0)$[Z]=q}super({exporter:J,...$})}}class mJ extends a{constructor(J){super({exporter:J})}}export{T as TraceIdRatioBasedSampler,mJ as SimpleSpanProcessor,B as SamplingDecision,F as RandomIdGenerator,P as ParentBasedSampler,wJ as NoopSpanProcessor,GJ as InMemorySpanExporter,zJ as ConsoleSpanExporter,uJ as BatchSpanProcessor,dJ as BasicTracerProvider,j as AlwaysOnSampler,k as AlwaysOffSampler};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Mh as f,Nh as q,Oh as w,Ph as x}from"./chunk-060wbpz4.js";import"./chunk-
|
|
2
|
+
import{Mh as f,Nh as q,Oh as w,Ph as x}from"./chunk-060wbpz4.js";import"./chunk-e0vrxetq.js";export{w as applyModuleEvalRuntimeOptions,q as applyBaseRuntimeOptions,x as QuickJSWASMModule,f as QuickJSModuleCallbacks};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Os as n}from"./chunk-59csnjc3.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
3
|
export{o as $};
|