@qitqode/qitqode-android-arm64 0.2.10 → 0.2.11
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-06j0gaen.js +2 -0
- package/bundle/{chunk-1r81q7m3.js → chunk-075gkea2.js} +1 -1
- package/bundle/{chunk-9fjcgdea.js → chunk-09n24ztn.js} +1 -1
- package/bundle/chunk-0bn86djg.js +3 -0
- package/bundle/chunk-0mm40z8g.js +2 -0
- package/bundle/{chunk-mn5cacf6.js → chunk-0tya4pqb.js} +2 -2
- package/bundle/{chunk-ff8q10gk.js → chunk-1dnvdeat.js} +2 -2
- package/bundle/{chunk-kcqeh1e5.js → chunk-1h9sc0gy.js} +1 -1
- package/bundle/chunk-1mqfhw0f.js +2 -0
- package/bundle/{chunk-gq3zb4wv.js → chunk-1p39y33b.js} +2 -2
- package/bundle/{chunk-tg1f56s3.js → chunk-1pd943m9.js} +1 -1
- package/bundle/{chunk-qbewhcsz.js → chunk-1rsabv4p.js} +1 -1
- package/bundle/{chunk-vsfj16v9.js → chunk-1tdy73ha.js} +2 -2
- package/bundle/{chunk-3zzrdpsx.js → chunk-1yh1f9yj.js} +1 -1
- package/bundle/{chunk-62y6zk9x.js → chunk-22wa8zty.js} +1 -1
- package/bundle/chunk-28kte9rt.js +2 -0
- package/bundle/chunk-2dhjehxe.js +2 -0
- package/bundle/{chunk-dz3kcsb6.js → chunk-2h8b0csf.js} +2 -2
- package/bundle/chunk-2nnfxbd2.js +2 -0
- package/bundle/{chunk-g08qj9z3.js → chunk-2ts74cgq.js} +2 -2
- package/bundle/{chunk-0mwzxqt5.js → chunk-2vsqsxe1.js} +3 -3
- package/bundle/chunk-2w5zmgpb.js +2 -0
- package/bundle/{chunk-6wjdhvdf.js → chunk-32x2901e.js} +1 -1
- package/bundle/chunk-34qt3fqj.js +2 -0
- package/bundle/{chunk-by1kwg4r.js → chunk-3amgvg81.js} +2 -2
- package/bundle/{chunk-ge7csm6m.js → chunk-3hawwbw6.js} +2 -2
- package/bundle/chunk-3p0xvt47.js +2 -0
- package/bundle/chunk-3pzx5ret.js +2 -0
- package/bundle/{chunk-f6vy70p6.js → chunk-3tf7xfw5.js} +2 -2
- package/bundle/chunk-3y4rmqmm.js +2 -0
- package/bundle/{chunk-q0xgxygw.js → chunk-42gd2vx4.js} +1 -1
- package/bundle/{chunk-8rkszwxq.js → chunk-43eqr0ds.js} +6 -6
- package/bundle/{chunk-d1xfv4d3.js → chunk-43x9n8rp.js} +1 -1
- package/bundle/{chunk-kk850sdw.js → chunk-44685nzw.js} +2 -2
- package/bundle/{chunk-z023h7t8.js → chunk-46ewdxgh.js} +1 -1
- package/bundle/{chunk-v8bxj01h.js → chunk-4805mxf7.js} +1 -1
- package/bundle/chunk-486874bd.js +2 -0
- package/bundle/{chunk-0tkznq75.js → chunk-48y4n9ne.js} +1 -1
- package/bundle/{chunk-56yp5v0w.js → chunk-49brdmgp.js} +1 -1
- package/bundle/{chunk-ngyv4fhn.js → chunk-49we3vy1.js} +2 -2
- package/bundle/chunk-4bcbvfsw.js +2 -0
- package/bundle/{chunk-d0dsgxk4.js → chunk-4c6d1wy1.js} +2 -2
- package/bundle/{chunk-9tz18e54.js → chunk-4d9s7cgr.js} +1 -1
- package/bundle/{chunk-kec1xw1n.js → chunk-4ngvj758.js} +1 -1
- package/bundle/{chunk-pwsajn96.js → chunk-4q14whpc.js} +1 -1
- package/bundle/chunk-4t1ysdag.js +2 -0
- package/bundle/{chunk-nh4zk07t.js → chunk-50knjq36.js} +1 -1
- package/bundle/{chunk-9zy5tsry.js → chunk-51vn4f06.js} +3 -3
- package/bundle/{chunk-5fcyb122.js → chunk-5mgmq6yz.js} +1 -1
- package/bundle/chunk-5q7a4h2w.js +2 -0
- package/bundle/{chunk-dx7rexx3.js → chunk-5qydhr42.js} +3 -3
- package/bundle/{chunk-je8fcsa9.js → chunk-611wfdn3.js} +1 -1
- package/bundle/{chunk-9pj10pgd.js → chunk-63t0rhc9.js} +2 -2
- package/bundle/chunk-63vamhf7.js +2 -0
- package/bundle/chunk-6hhv3n7c.js +2 -0
- package/bundle/{chunk-gbkz04ke.js → chunk-6p848y99.js} +1 -1
- package/bundle/{chunk-tjfer79w.js → chunk-6xx66mr1.js} +1 -1
- package/bundle/{chunk-mmqyter3.js → chunk-71h3pmnn.js} +1 -1
- package/bundle/{chunk-yzd6cyep.js → chunk-78e76m4h.js} +1 -1
- package/bundle/{chunk-z0m1qm7j.js → chunk-78yvbv9b.js} +2 -2
- package/bundle/chunk-7a9kfb2n.js +2 -0
- package/bundle/{chunk-eme9xmh3.js → chunk-7b5vney6.js} +1 -1
- package/bundle/{chunk-yexzxx6f.js → chunk-7jvx29js.js} +1 -1
- package/bundle/{chunk-vy93mn7d.js → chunk-7wshaze9.js} +2 -2
- package/bundle/{chunk-q26s0wb5.js → chunk-7x4g7h04.js} +1 -1
- package/bundle/chunk-7x9m1smk.js +2 -0
- package/bundle/chunk-82mnr6sf.js +2 -0
- package/bundle/{chunk-mp1x10t5.js → chunk-84qx54nf.js} +2 -2
- package/bundle/{chunk-c1c8ch3g.js → chunk-88hmeyf5.js} +8 -8
- package/bundle/{chunk-vk35g121.js → chunk-89b6ttzs.js} +2 -2
- package/bundle/chunk-8bea2r6p.js +2 -0
- package/bundle/{chunk-fvv1cret.js → chunk-8gn7r4kb.js} +1 -1
- package/bundle/chunk-8h6mhzhg.js +2 -0
- package/bundle/chunk-8n1cmvr7.js +2 -0
- package/bundle/{chunk-e10c0crf.js → chunk-8qbhnwej.js} +1 -1
- package/bundle/{chunk-at4dge22.js → chunk-8rbbt1s8.js} +1 -1
- package/bundle/{chunk-6gbdvz6p.js → chunk-8rc7cvex.js} +1 -1
- package/bundle/{chunk-cdenq7jb.js → chunk-8t17w67q.js} +1 -1
- package/bundle/{chunk-qq9yc2tp.js → chunk-8y03p2md.js} +2 -2
- package/bundle/{chunk-m01h6kk1.js → chunk-8z65v9c9.js} +1 -1
- package/bundle/{chunk-f17se3hh.js → chunk-92xxg12q.js} +1 -1
- package/bundle/chunk-955zj1y6.js +2 -0
- package/bundle/{chunk-vbb1jg02.js → chunk-95tec4gm.js} +1 -1
- package/bundle/chunk-95vp9bvk.js +2 -0
- package/bundle/{chunk-eqpep2m2.js → chunk-96nmxprr.js} +1 -1
- package/bundle/{chunk-9nf5650d.js → chunk-98z5pfvj.js} +1 -1
- package/bundle/{chunk-xcmbxny8.js → chunk-9d2mtevw.js} +1 -1
- package/bundle/{chunk-c3ey896z.js → chunk-9d8meavf.js} +1 -1
- package/bundle/{chunk-fsndgr9a.js → chunk-9gs4en9v.js} +1 -1
- package/bundle/{chunk-djfrkbd5.js → chunk-9svh74gt.js} +1 -1
- package/bundle/chunk-9wzxnwv7.js +2 -0
- package/bundle/chunk-9zve998d.js +2 -0
- package/bundle/{chunk-yspstxkq.js → chunk-a2pd7nt5.js} +1 -1
- package/bundle/{chunk-pky8h8rh.js → chunk-a4cmpa56.js} +1 -1
- package/bundle/chunk-a9bkr9x4.js +2 -0
- package/bundle/chunk-ac5vzpzt.js +2 -0
- package/bundle/{chunk-532fnfmw.js → chunk-ajgwyrcf.js} +2 -2
- package/bundle/{chunk-c8k32724.js → chunk-ajyfms68.js} +1 -1
- package/bundle/{chunk-q7s6z0nz.js → chunk-akrcbxfa.js} +1 -1
- package/bundle/{chunk-ajnzv5jt.js → chunk-aykvrqrp.js} +2 -2
- package/bundle/{chunk-rk21wv4k.js → chunk-b274mb6v.js} +1 -1
- package/bundle/{chunk-5p2r8bxx.js → chunk-b79bb2g3.js} +1 -1
- package/bundle/{chunk-8nnajdwf.js → chunk-bd66q24j.js} +3 -3
- package/bundle/{chunk-qdbx1qkr.js → chunk-bffm0wv9.js} +1 -1
- package/bundle/{chunk-se8d5xg9.js → chunk-bh1zbz62.js} +1 -1
- package/bundle/{chunk-f3y5kr76.js → chunk-bqqxvagz.js} +2 -2
- package/bundle/{chunk-h6z86aay.js → chunk-bw0951fs.js} +1 -1
- package/bundle/{chunk-8peby2d1.js → chunk-bwzbcwff.js} +1 -1
- package/bundle/{chunk-wh2qqhep.js → chunk-bxc3z38f.js} +2 -2
- package/bundle/{chunk-ztvkzex1.js → chunk-bzz2expb.js} +1 -1
- package/bundle/chunk-c1exgasy.js +2 -0
- package/bundle/{chunk-qm9fm5ja.js → chunk-c53ev0da.js} +2 -2
- package/bundle/{chunk-wd2xmkdp.js → chunk-c5n49vrd.js} +2 -2
- package/bundle/{chunk-m4j6t713.js → chunk-ccghr6pm.js} +1 -1
- package/bundle/{chunk-j7637cwg.js → chunk-cg7zeppb.js} +2 -2
- package/bundle/chunk-cgxzmkkf.js +2 -0
- package/bundle/{chunk-1m78yy4k.js → chunk-cm7yp259.js} +1 -1
- package/bundle/chunk-cs3cbfm8.js +2 -0
- package/bundle/{chunk-x308f9j4.js → chunk-cshsqavb.js} +2 -2
- package/bundle/{chunk-vbfc0wgv.js → chunk-csmdhh7r.js} +2 -2
- package/bundle/{chunk-8v60bqm0.js → chunk-cydpdkx7.js} +1 -1
- package/bundle/{chunk-f6btedtt.js → chunk-czfjmrrq.js} +1 -1
- package/bundle/{chunk-a70m6kyn.js → chunk-d1j8frtq.js} +1 -1
- package/bundle/chunk-d29te4c1.js +2 -0
- package/bundle/{chunk-snf6ahg7.js → chunk-d39e4fa8.js} +1 -1
- package/bundle/chunk-d6q42p18.js +2 -0
- package/bundle/{chunk-f0ab2f28.js → chunk-d6qs2pbx.js} +1 -1
- package/bundle/{chunk-0bhzhh7s.js → chunk-datctfgt.js} +2 -2
- package/bundle/chunk-dfbexagg.js +2 -0
- package/bundle/chunk-dfkcp43a.js +2 -0
- package/bundle/chunk-dps1p1g1.js +2 -0
- package/bundle/{chunk-9d0exvey.js → chunk-dzw0j790.js} +2 -2
- package/bundle/chunk-e1fzgez5.js +2 -0
- package/bundle/{chunk-141p12c4.js → chunk-e5cds19n.js} +1 -1
- package/bundle/{chunk-nqk8d62j.js → chunk-e6ckxkj8.js} +1 -1
- package/bundle/{chunk-v0hnn7nb.js → chunk-e7a50j2w.js} +1 -1
- package/bundle/chunk-e9vh8d52.js +8 -0
- package/bundle/{chunk-j5z95b6f.js → chunk-eftk07r3.js} +1 -1
- package/bundle/chunk-egcvm4x2.js +3 -0
- package/bundle/chunk-ek3b08ed.js +2 -0
- package/bundle/{chunk-s27cz24e.js → chunk-ep92grvg.js} +52 -52
- package/bundle/{chunk-dnjyepb2.js → chunk-ex47pb9n.js} +2 -2
- package/bundle/{chunk-b9f78x5g.js → chunk-eya9c81t.js} +1 -1
- package/bundle/chunk-f78yth0b.js +2 -0
- package/bundle/{chunk-gbnf7zf9.js → chunk-fd6qxjtf.js} +1 -1
- package/bundle/{chunk-c8080519.js → chunk-fnmq42y5.js} +1 -1
- package/bundle/{chunk-nnkfdhh9.js → chunk-fqvrxy41.js} +1 -1
- package/bundle/{chunk-3sj0jv91.js → chunk-fqvsxg00.js} +1 -1
- package/bundle/{chunk-5w7ebtcd.js → chunk-fsagyvkz.js} +1 -1
- package/bundle/{chunk-gb51fn3r.js → chunk-fzxqn4j0.js} +1 -1
- package/bundle/{chunk-p506eydh.js → chunk-g7jwp73v.js} +1 -1
- package/bundle/{chunk-xnxw5zz9.js → chunk-g83d3a0t.js} +2 -2
- package/bundle/chunk-gamnnfna.js +2 -0
- package/bundle/{chunk-dp6ms01y.js → chunk-gfer8ch3.js} +2 -2
- package/bundle/{chunk-c2ns2csn.js → chunk-ghdegwnr.js} +1 -1
- package/bundle/chunk-gjxhz1a6.js +2 -0
- package/bundle/chunk-gpm39v12.js +2 -0
- package/bundle/chunk-gr8emzzx.js +2 -0
- package/bundle/chunk-gt6h68pk.js +2 -0
- package/bundle/{chunk-e72jwbfc.js → chunk-gz8k40ty.js} +1 -1
- package/bundle/{chunk-xvvt886p.js → chunk-h6kmpgak.js} +2 -2
- package/bundle/{chunk-2y5bthrp.js → chunk-h8yf5e2e.js} +1 -1
- package/bundle/{chunk-v8rqgt7h.js → chunk-hama2v6a.js} +1 -1
- package/bundle/{chunk-7a3txs9f.js → chunk-hav9pgf3.js} +2 -2
- package/bundle/chunk-hj588j4f.js +2 -0
- package/bundle/{chunk-c9cngded.js → chunk-hntsg7q4.js} +1 -1
- package/bundle/chunk-hqtex91e.js +2 -0
- package/bundle/{chunk-0sfc21qe.js → chunk-hts68y73.js} +2 -2
- package/bundle/{chunk-kc8n5cgb.js → chunk-j5dnzqjy.js} +1 -1
- package/bundle/{chunk-r81w6skn.js → chunk-j7d3v0x2.js} +1 -1
- package/bundle/{chunk-4a9jqe5s.js → chunk-jcn8bg31.js} +1 -1
- package/bundle/{chunk-2dmcpqak.js → chunk-jf4zyy7r.js} +1 -1
- package/bundle/{chunk-h0pvxre5.js → chunk-jfe9f2wv.js} +1 -1
- package/bundle/{chunk-8gpjmj42.js → chunk-jh2za7y4.js} +3 -3
- package/bundle/chunk-jmgpr5th.js +2 -0
- package/bundle/chunk-jt79yt0t.js +2 -0
- package/bundle/{chunk-7rbg6mg9.js → chunk-jt7g0r2j.js} +2 -2
- package/bundle/chunk-jtz5re73.js +2 -0
- package/bundle/{chunk-81dvy370.js → chunk-k232ny9m.js} +1 -1
- package/bundle/{chunk-t9pq363q.js → chunk-k4ajben7.js} +2 -2
- package/bundle/chunk-k4bj677f.js +3 -0
- package/bundle/{chunk-brk1jca3.js → chunk-k4d8gwxe.js} +1 -1
- package/bundle/{chunk-zskdxbbh.js → chunk-k558fr15.js} +1 -1
- package/bundle/{chunk-eabbrt1p.js → chunk-k56zj08h.js} +1 -1
- package/bundle/{chunk-61t4g8bh.js → chunk-k5swnh8m.js} +4 -4
- package/bundle/{chunk-gksbv613.js → chunk-k8zbhj2p.js} +2 -2
- package/bundle/{chunk-c8yc8qcd.js → chunk-kr975sx0.js} +1 -1
- package/bundle/{chunk-qdafm7qg.js → chunk-krk24aqm.js} +2 -2
- package/bundle/{chunk-3mtjxmw1.js → chunk-kt982884.js} +1 -1
- package/bundle/chunk-kw5z5awx.js +2 -0
- package/bundle/{chunk-vjt6mh10.js → chunk-kxdw2vtq.js} +2 -2
- package/bundle/{chunk-rxnd79h7.js → chunk-m8phqgxp.js} +1 -1
- package/bundle/{chunk-psqtptrs.js → chunk-mazakqr7.js} +1 -1
- package/bundle/{chunk-cxtwavyf.js → chunk-mnxcykeq.js} +2 -2
- package/bundle/chunk-mp42gb6q.js +2 -0
- package/bundle/{chunk-yh1t6jrj.js → chunk-mp5m0acf.js} +1 -1
- package/bundle/chunk-mq0733qh.js +2 -0
- package/bundle/chunk-mrcsatmn.js +2 -0
- package/bundle/{chunk-qtyapmy7.js → chunk-n230jbn9.js} +1 -1
- package/bundle/chunk-n24yx79r.js +5 -0
- package/bundle/{chunk-acsqvgdw.js → chunk-n2ytaxyn.js} +1 -1
- package/bundle/{chunk-819qr675.js → chunk-n4fwztya.js} +1 -1
- package/bundle/{chunk-z69tt390.js → chunk-n5dxwryh.js} +1 -1
- package/bundle/{chunk-xv03hbgj.js → chunk-n9969djm.js} +1 -1
- package/bundle/{chunk-pxm0x3e0.js → chunk-ncvr75f6.js} +2 -2
- package/bundle/chunk-ng2g9kkk.js +2 -0
- package/bundle/chunk-ngfhfyjs.js +2 -0
- package/bundle/{chunk-mn0pshpv.js → chunk-nvvja3ch.js} +1 -1
- package/bundle/{chunk-6axm2qtj.js → chunk-nwkp2f8e.js} +1 -1
- package/bundle/{chunk-d9w2bn2e.js → chunk-nwygsfhk.js} +2 -2
- package/bundle/chunk-p0dnmrqp.js +2 -0
- package/bundle/{chunk-x0hhw46n.js → chunk-p5p4jh9s.js} +1 -1
- package/bundle/chunk-p6h2ydcp.js +2 -0
- package/bundle/{chunk-e1x1mp9m.js → chunk-pcmsxhrb.js} +1 -1
- package/bundle/{chunk-rpdgn9z3.js → chunk-pdcj2rfz.js} +2 -2
- package/bundle/{chunk-t2r51r6v.js → chunk-pfd8gzy4.js} +1 -1
- package/bundle/{chunk-6y58jzak.js → chunk-ph46s66y.js} +1 -1
- package/bundle/{chunk-s05hqtx1.js → chunk-pkm3w0ks.js} +1 -1
- package/bundle/{chunk-dd461rg3.js → chunk-pnmadk2h.js} +1 -1
- package/bundle/{chunk-jt6bvxtr.js → chunk-q65qzc9w.js} +1 -1
- package/bundle/{chunk-qjw2zcq5.js → chunk-q8qx38kz.js} +1 -1
- package/bundle/chunk-qhakedgs.js +2 -0
- package/bundle/{chunk-xj0zc9za.js → chunk-qsgpbt4t.js} +1 -1
- package/bundle/{chunk-ccdjzn2m.js → chunk-qtdxy2q1.js} +3 -3
- package/bundle/chunk-r18zetwf.js +2 -0
- package/bundle/{chunk-3yfjgks3.js → chunk-r1936yb5.js} +1 -1
- package/bundle/{chunk-32xd626h.js → chunk-r4qpsa4e.js} +2 -2
- package/bundle/{chunk-azss4acq.js → chunk-r6055kk0.js} +2 -2
- package/bundle/chunk-r6rgrz25.js +2 -0
- package/bundle/{chunk-t5wdstzv.js → chunk-r9ng8xx5.js} +1 -1
- package/bundle/chunk-rk4vp09j.js +2 -0
- package/bundle/{chunk-e3mrw0k7.js → chunk-rkmg0gbq.js} +1 -1
- package/bundle/{chunk-9s5h0f1y.js → chunk-rpc0he6b.js} +2 -2
- package/bundle/{chunk-h2p984qb.js → chunk-rvev3cy6.js} +2 -2
- package/bundle/{chunk-waa781eh.js → chunk-rx29zmw2.js} +1 -1
- package/bundle/{chunk-5nm5egq0.js → chunk-rxh160jr.js} +2 -2
- package/bundle/{chunk-k10rtgsk.js → chunk-s3hbwksw.js} +1 -1
- package/bundle/{chunk-atacnspd.js → chunk-s3zmxfz2.js} +2 -2
- package/bundle/chunk-s4jp4zce.js +2 -0
- package/bundle/{chunk-qyan69nb.js → chunk-s6vhscvd.js} +2 -2
- package/bundle/{chunk-hgm8yfcb.js → chunk-s81ck6bw.js} +1 -1
- package/bundle/{chunk-3vae1s42.js → chunk-sbj816s8.js} +1 -1
- package/bundle/chunk-sec9y622.js +2 -0
- package/bundle/{chunk-dzma8zvf.js → chunk-seda5sfd.js} +2 -2
- package/bundle/{chunk-tm79yrf3.js → chunk-sjtq9bbb.js} +2 -2
- package/bundle/chunk-sn7q178t.js +2 -0
- package/bundle/chunk-st0h54dm.js +2 -0
- package/bundle/{chunk-b8rzn48q.js → chunk-sxtfssjv.js} +1 -1
- package/bundle/chunk-sz75fx13.js +2 -0
- package/bundle/{chunk-pbanj1gk.js → chunk-t076hwsv.js} +2 -2
- package/bundle/{chunk-p6jf1fyt.js → chunk-t3e19wdp.js} +1 -1
- package/bundle/{chunk-v16n1fep.js → chunk-t7s475b2.js} +2 -2
- package/bundle/chunk-tefh2cgk.js +2 -0
- package/bundle/chunk-tfez99qv.js +2 -0
- package/bundle/chunk-tjk1hymv.js +2 -0
- package/bundle/{chunk-9bbwxp5d.js → chunk-tpw1ewqn.js} +1 -1
- package/bundle/{chunk-wecs14rz.js → chunk-tqnf1p88.js} +1 -1
- package/bundle/{chunk-pyf649pz.js → chunk-tyk97q7c.js} +1 -1
- package/bundle/chunk-tz1sv9kt.js +3 -0
- package/bundle/{chunk-2zjet9tx.js → chunk-tz60e15h.js} +2 -2
- package/bundle/{chunk-xstxdw7v.js → chunk-tzwm08yc.js} +1 -1
- package/bundle/chunk-v1098rqc.js +2 -0
- package/bundle/chunk-v30ezr68.js +11 -0
- package/bundle/{chunk-q8fjktv4.js → chunk-v5j3ypfv.js} +1 -1
- package/bundle/chunk-v5wn741w.js +2 -0
- package/bundle/{chunk-tdevq564.js → chunk-vamwvx0x.js} +1 -1
- package/bundle/{chunk-yce8ph5b.js → chunk-vbcekkw2.js} +2 -2
- package/bundle/{chunk-te91d271.js → chunk-vf75j9wd.js} +1 -1
- package/bundle/{chunk-4sa9t0vx.js → chunk-vhh80d5j.js} +2 -2
- package/bundle/{chunk-5rqjze1g.js → chunk-vm8htc6d.js} +1 -1
- package/bundle/{chunk-cs825mxr.js → chunk-vnz9n9z0.js} +1 -1
- package/bundle/chunk-vp6ttkct.js +2 -0
- package/bundle/chunk-vpcsmwsb.js +2 -0
- package/bundle/{chunk-gmq1kwn0.js → chunk-vrt8wd3r.js} +1 -1
- package/bundle/{chunk-1q10jyka.js → chunk-vyf77kq1.js} +2 -2
- package/bundle/{chunk-pchv413c.js → chunk-w32xhz0x.js} +2 -2
- package/bundle/{chunk-xqwk2zsx.js → chunk-wdy0fsp8.js} +2 -2
- package/bundle/{chunk-gqgjybjc.js → chunk-wkepvmgt.js} +1 -1
- package/bundle/{chunk-g52wmt1v.js → chunk-wp0xd7at.js} +1 -1
- package/bundle/{chunk-x50adh71.js → chunk-wpkr3vzf.js} +1 -1
- package/bundle/{chunk-npdgfqaw.js → chunk-wpx2vmf5.js} +1 -1
- package/bundle/{chunk-2fbkw84y.js → chunk-wqkvsj5y.js} +2 -2
- package/bundle/{chunk-nk5vrenn.js → chunk-wspbjh74.js} +2 -2
- package/bundle/{chunk-qdh2dm62.js → chunk-wzfb19t6.js} +1 -1
- package/bundle/chunk-x23s1s8k.js +2 -0
- package/bundle/{chunk-7s0nq2aa.js → chunk-x28chfpz.js} +2 -2
- package/bundle/{chunk-gx4v8z64.js → chunk-xf1y0sc6.js} +2 -2
- package/bundle/{chunk-h91zmzs5.js → chunk-xfsccqsm.js} +1 -1
- package/bundle/{chunk-pf2vq6t1.js → chunk-xmt17jd4.js} +2 -2
- package/bundle/{chunk-q4mtwv1w.js → chunk-xphzr4wg.js} +2 -2
- package/bundle/chunk-xr6js4ek.js +2 -0
- package/bundle/chunk-y078gb3n.js +2 -0
- package/bundle/{chunk-yydqavgh.js → chunk-y24yxs9g.js} +2 -2
- package/bundle/{chunk-wbt31xap.js → chunk-y565z8n2.js} +2 -2
- package/bundle/{chunk-nq4x6792.js → chunk-y7cqyeve.js} +2 -2
- package/bundle/{chunk-d1fv2c7s.js → chunk-y8bxvp3c.js} +2 -2
- package/bundle/{chunk-zfqgh9h7.js → chunk-y8tx9x5b.js} +1 -1
- package/bundle/{chunk-kds2g7r2.js → chunk-ya6r72ng.js} +1 -1
- package/bundle/chunk-yewjnqee.js +2 -0
- package/bundle/{chunk-2cvwrabw.js → chunk-yg0rs4g1.js} +2 -2
- package/bundle/{chunk-jbcqhw3x.js → chunk-yhr7s8qm.js} +2 -2
- package/bundle/chunk-ykk9e9as.js +2 -0
- package/bundle/chunk-yqn88gjf.js +2 -0
- package/bundle/chunk-yrxg3dex.js +2 -0
- package/bundle/{chunk-7hdb1fhq.js → chunk-yvtbt12y.js} +2 -2
- package/bundle/chunk-z1xeqrgd.js +2 -0
- package/bundle/chunk-z5j46dem.js +2 -0
- package/bundle/{chunk-dm447tgc.js → chunk-zj5snrsa.js} +2 -2
- package/bundle/{chunk-asxmkyz2.js → chunk-zjfdptdj.js} +1 -1
- package/bundle/chunk-zq0hpja9.js +2 -0
- package/bundle/{chunk-td9hm9be.js → chunk-zqzh5hp3.js} +1 -1
- package/bundle/{chunk-ev6jwt7q.js → chunk-zr1cvkpb.js} +1 -1
- package/bundle/{chunk-6mnk5sg3.js → chunk-zr89enb8.js} +1 -1
- package/bundle/{chunk-ecz4h0a2.js → chunk-zskjqrmc.js} +1 -1
- package/bundle/{chunk-1h96bk6p.js → chunk-ztjrm8m0.js} +2 -2
- package/bundle/chunk-zv89qwjc.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-062chtrq.js +0 -2
- package/bundle/chunk-062vs7bp.js +0 -2
- package/bundle/chunk-08g14hmz.js +0 -2
- package/bundle/chunk-0w2v8dfy.js +0 -2
- package/bundle/chunk-10fr7a2y.js +0 -2
- package/bundle/chunk-15bjhfav.js +0 -3
- package/bundle/chunk-1hv61m11.js +0 -2
- package/bundle/chunk-2mkvx8b2.js +0 -2
- package/bundle/chunk-2rykfc3a.js +0 -2
- package/bundle/chunk-2w5hx4fs.js +0 -2
- package/bundle/chunk-2yy63sxz.js +0 -2
- package/bundle/chunk-2z3fe4qw.js +0 -2
- package/bundle/chunk-361cmmrp.js +0 -2
- package/bundle/chunk-3r6dq1h3.js +0 -2
- package/bundle/chunk-4a12wv2m.js +0 -2
- package/bundle/chunk-547a55ba.js +0 -2
- package/bundle/chunk-5ztmc770.js +0 -2
- package/bundle/chunk-62x3r2q8.js +0 -2
- package/bundle/chunk-6th7vpwm.js +0 -2
- package/bundle/chunk-6ybh5smv.js +0 -2
- package/bundle/chunk-73kprndw.js +0 -2
- package/bundle/chunk-79fr19xf.js +0 -2
- package/bundle/chunk-7ezr478e.js +0 -2
- package/bundle/chunk-7gj1vqyj.js +0 -2
- package/bundle/chunk-7ywfkwb4.js +0 -2
- package/bundle/chunk-85fnnwm2.js +0 -2
- package/bundle/chunk-89fwh84w.js +0 -2
- package/bundle/chunk-8e724g3k.js +0 -2
- package/bundle/chunk-9894a2yn.js +0 -2
- package/bundle/chunk-98ye2nwt.js +0 -2
- package/bundle/chunk-9s4excg8.js +0 -2
- package/bundle/chunk-aetgcegz.js +0 -2
- package/bundle/chunk-agas0nay.js +0 -2
- package/bundle/chunk-ayknzc4m.js +0 -2
- package/bundle/chunk-b2ybst88.js +0 -2
- package/bundle/chunk-bd5vtjd7.js +0 -2
- package/bundle/chunk-bjqqk6jt.js +0 -2
- package/bundle/chunk-cpkcdykz.js +0 -2
- package/bundle/chunk-cyafm8d6.js +0 -2
- package/bundle/chunk-d4316r53.js +0 -2
- package/bundle/chunk-d8ym7mcg.js +0 -2
- package/bundle/chunk-dnpjxjkp.js +0 -2
- package/bundle/chunk-e5gjqtby.js +0 -2
- package/bundle/chunk-ee3mqzms.js +0 -2
- package/bundle/chunk-er5f61s5.js +0 -2
- package/bundle/chunk-er716522.js +0 -2
- package/bundle/chunk-ez3gacqe.js +0 -2
- package/bundle/chunk-fkc7wf1p.js +0 -2
- package/bundle/chunk-fm6z8nqb.js +0 -2
- package/bundle/chunk-g0qwm23d.js +0 -2
- package/bundle/chunk-g4yn8cj8.js +0 -2
- package/bundle/chunk-gsez13bg.js +0 -3
- package/bundle/chunk-h1spsy3y.js +0 -2
- package/bundle/chunk-h8gkv40j.js +0 -2
- package/bundle/chunk-j59kmb49.js +0 -2
- package/bundle/chunk-jv37ghev.js +0 -2
- package/bundle/chunk-k3hcb6qf.js +0 -2
- package/bundle/chunk-k5d822n2.js +0 -3
- package/bundle/chunk-m8ytbq04.js +0 -2
- package/bundle/chunk-mf9nc4xz.js +0 -2
- package/bundle/chunk-mxby91bj.js +0 -2
- package/bundle/chunk-mzv1gh6f.js +0 -2
- package/bundle/chunk-n0hsvvw8.js +0 -2
- package/bundle/chunk-nm1v9z14.js +0 -2
- package/bundle/chunk-p7nstcxa.js +0 -2
- package/bundle/chunk-pfwkvv7g.js +0 -2
- package/bundle/chunk-pn1jz8qj.js +0 -2
- package/bundle/chunk-pqvmtfk7.js +0 -2
- package/bundle/chunk-prgw26g3.js +0 -2
- package/bundle/chunk-pv9ty6v7.js +0 -2
- package/bundle/chunk-q4rstre7.js +0 -2
- package/bundle/chunk-q6jk2v6g.js +0 -2
- package/bundle/chunk-qd43npx3.js +0 -2
- package/bundle/chunk-qdb21y83.js +0 -2
- package/bundle/chunk-qeksaefy.js +0 -2
- package/bundle/chunk-r7t9yb9d.js +0 -2
- package/bundle/chunk-sdv3a4w3.js +0 -2
- package/bundle/chunk-sk89becn.js +0 -2
- package/bundle/chunk-tc0996xz.js +0 -2
- package/bundle/chunk-tfs50mgj.js +0 -2
- package/bundle/chunk-thecq33z.js +0 -3
- package/bundle/chunk-tjvtp9d9.js +0 -2
- package/bundle/chunk-tkm9m3n0.js +0 -2
- package/bundle/chunk-v03xq38e.js +0 -5
- package/bundle/chunk-v1s1rcqx.js +0 -2
- package/bundle/chunk-v4dt4062.js +0 -2
- package/bundle/chunk-wgrq86kd.js +0 -2
- package/bundle/chunk-x8ks2bn7.js +0 -2
- package/bundle/chunk-xgf4k9q7.js +0 -10
- package/bundle/chunk-xy2ty5h5.js +0 -8
- package/bundle/chunk-z0383stv.js +0 -2
- package/bundle/chunk-zewrmk8x.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rr as e,sr as V}from"./chunk-xnxw5zz9.js";import{pP as N}from"./chunk-9pj10pgd.js";import{qP as z}from"./chunk-djfrkbd5.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{Rs as e,Ss as V}from"./chunk-g83d3a0t.js";import{PQ as N}from"./chunk-63t0rhc9.js";import{QQ as z}from"./chunk-9svh74gt.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{
|
|
2
|
+
import{Re as F}from"./chunk-sjtq9bbb.js";import{bf as z,ef as B,vf as D}from"./chunk-89b6ttzs.js";import{os as x}from"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import{fw as q}from"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-9svh74gt.js";var N="2.0.41",P=q.object({message:q.string(),type:q.string(),param:q.string(),code:q.string()}),Q={errorSchema:P,errorToMessage:(k)=>k.message};function T(k={}){var y;let G=D((y=k.baseURL)!=null?y:"https://api.cerebras.ai/v1"),J=()=>z({Authorization:`Bearer ${B({apiKey:k.apiKey,environmentVariableName:"CEREBRAS_API_KEY",description:"Cerebras API key"})}`,...k.headers},`ai-sdk/cerebras/${N}`),w=(j)=>{return new F(j,{provider:"cerebras.chat",url:({path:K})=>`${G}${K}`,headers:J,fetch:k.fetch,errorStructure:Q,supportsStructuredOutputs:!0})},f=(j)=>w(j);return f.specificationVersion="v3",f.languageModel=w,f.chat=w,f.embeddingModel=(j)=>{throw new x({modelId:j,modelType:"embeddingModel"})},f.textEmbeddingModel=f.embeddingModel,f.imageModel=(j)=>{throw new x({modelId:j,modelType:"imageModel"})},f}var Z=T();export{T as createCerebras,Z as cerebras,N as VERSION};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Sd as d}from"./chunk-k4ajben7.js";import{de as f}from"./chunk-b274mb6v.js";import{ag as e}from"./chunk-h6kmpgak.js";import{yh as l}from"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import{$k as u,Jj as m}from"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.js";var v=f({command:"usage [sessionID]",describe:"show per-turn token/cost breakdown for a session (debug/verification tool)",builder:(o)=>{return o.positional("sessionID",{describe:"session ID to inspect (default: most recently updated session)",type:"string"}).option("format",{describe:"output format",type:"string",choices:["table","json"],default:"table"}).option("limit",{describe:"number of most recent turns to show (default: all)",type:"number"})},handler:async(o)=>{await d(process.cwd(),async()=>{let a=o.sessionID?m.make(o.sessionID):[...u.list({roots:!1,limit:1})][0]?.id;if(!a)e.error("No sessions found"),process.exit(1);let p=(await l.runPromise(u.Service.use((s)=>s.messages({sessionID:a,agentID:"*"})))).filter((s)=>s.info.role==="assistant").map((s)=>{let t=s.info,c=s.parts.filter((n)=>n.type==="step-finish");return{messageID:t.id,provider:t.providerID,model:t.modelID,finish:t.finish,cost:t.cost??0,tokens:t.tokens??{input:0,output:0,reasoning:0,cache:{read:0,write:0}},steps:c.map((n)=>({cost:n.cost,tokens:n.tokens}))}}),r=o.limit?p.slice(-o.limit):p;if(r.length===0){e.println("No assistant turns found for this session");return}if(o.format==="json"){console.log(JSON.stringify({sessionID:a,turns:r},null,2));return}e.println(`Session ${a} \u2014 ${r.length} turn(s)`),e.println("");for(let s of r){let t=s.tokens,c=t.input+t.cache.read+t.cache.write,n=t.output+t.reasoning;if(e.println(`${s.messageID} ${s.provider}/${s.model} finish=${s.finish??"-"}`),e.println(` tokens input=${t.input} cache.read=${t.cache.read} cache.write=${t.cache.write} output=${t.output} reasoning=${t.reasoning} (in=${c} out=${n})`),e.println(` cost $${s.cost.toFixed(6)}`),s.steps.length>1)e.println(` steps ${s.steps.length}`),s.steps.forEach((i,g)=>{e.println(` [${g}] input=${i.tokens.input} output=${i.tokens.output} cache.read=${i.tokens.cache.read} cache.write=${i.tokens.cache.write} reasoning=${i.tokens.reasoning} cost=$${i.cost.toFixed(6)}`)});e.println("")}let h=r.reduce((s,t)=>s+t.cost,0);e.println(`Total cost for shown turns: $${h.toFixed(6)}`),e.println("(source: Session.getUsage(), same numbers persisted to the message record \u2014 see session.usage log tag)")})}});export{v as UsageCommand};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function s(n){if(n.fork&&!n.continue&&!n.session)return"--fork requires --continue or --session";return}async function t(n,o){let e=o.continue?(await n.list()).data?.find((i)=>!i.parentID)?.id:o.sessionID;if(!e)return;if(!o.fork)return e;let r=(await n.fork({sessionID:e})).data?.id;if(!r)throw Error("headless: failed to fork session");return r}
|
|
3
|
+
export{s as B,t as C};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{sP as k}from"./chunk-djfrkbd5.js";var GY={};k(GY,{pipeArguments:()=>o,Prototype:()=>$M,Mixin:()=>fp,Class:()=>G5});var o=(X,Q)=>{switch(Q.length){case 0:return X;case 1:return Q[0](X);case 2:return Q[1](Q[0](X));case 3:return Q[2](Q[1](Q[0](X)));case 4:return Q[3](Q[2](Q[1](Q[0](X))));case 5:return Q[4](Q[3](Q[2](Q[1](Q[0](X)))));case 6:return Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X))))));case 7:return Q[6](Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X)))))));case 8:return Q[7](Q[6](Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X))))))));case 9:return Q[8](Q[7](Q[6](Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X)))))))));default:{let Y=X;for(let G=0,J=Q.length;G<J;G++)Y=Q[G](Y);return Y}}},$M={pipe(){return o(this,arguments)}},G5=function(){function X(){}return X.prototype=$M,X}(),fp=(X)=>class extends X{pipe(){return o(this,arguments)}};var H_={};k(H_,{untupled:()=>ap,tupled:()=>rp,satisfies:()=>op,pipe:()=>U6,memoize:()=>b1,identity:()=>C,hole:()=>sp,flow:()=>QX,flip:()=>ip,dual:()=>W,constant:()=>I0,constVoid:()=>y8,constUndefined:()=>D6,constTrue:()=>r1,constNull:()=>qG,constFalse:()=>U7,compose:()=>np,cast:()=>ZM,apply:()=>lp,absurd:()=>HM,SK:()=>tp});var W=function(X,Q){if(typeof X==="function")return function(){return X(arguments)?Q.apply(this,arguments):(Y)=>Q(Y,...arguments)};switch(X){case 0:case 1:throw RangeError(`Invalid arity ${X}`);case 2:return function(Y,G){if(arguments.length>=2)return Q(Y,G);return function(J){return Q(J,Y)}};case 3:return function(Y,G,J){if(arguments.length>=3)return Q(Y,G,J);return function($){return Q($,Y,G)}};default:return function(){if(arguments.length>=X)return Q.apply(this,arguments);let Y=arguments;return function(G){return Q(G,...Y)}}}},lp=(X)=>(Q)=>Q(X),C=(X)=>X,op=()=>(X)=>X,ZM=C,I0=(X)=>()=>X,r1=I0(!0),U7=I0(!1),qG=I0(null),D6=I0(void 0),y8=D6,ip=(X)=>(...Q)=>(...Y)=>X(...Y)(...Q),np=W(2,(X,Q)=>(Y)=>Q(X(Y))),HM=(X)=>{throw Error("Called `absurd` function which should be uncallable")},rp=(X)=>(Q)=>X(...Q),ap=(X)=>(...Q)=>X(Q);function U6(X,...Q){return o(X,Q)}function QX(X,Q,Y,G,J,$,Z,H,K){switch(arguments.length){case 1:return X;case 2:return function(){return Q(X.apply(this,arguments))};case 3:return function(){return Y(Q(X.apply(this,arguments)))};case 4:return function(){return G(Y(Q(X.apply(this,arguments))))};case 5:return function(){return J(G(Y(Q(X.apply(this,arguments)))))};case 6:return function(){return $(J(G(Y(Q(X.apply(this,arguments))))))};case 7:return function(){return Z($(J(G(Y(Q(X.apply(this,arguments)))))))};case 8:return function(){return H(Z($(J(G(Y(Q(X.apply(this,arguments))))))))};case 9:return function(){return K(H(Z($(J(G(Y(Q(X.apply(this,arguments)))))))))}}return}var sp=ZM(HM),tp=(X,Q)=>Q;function b1(X){let Q=new WeakMap;return(Y)=>{if(Q.has(Y))return Q.get(Y);let G=X(Y);return Q.set(Y,G),G}}var s0={};k(s0,{xor:()=>Nc,some:()=>Mc,or:()=>Oc,not:()=>qc,nor:()=>Lc,nand:()=>wc,mapInput:()=>ep,isUnknown:()=>wZ,isUndefined:()=>B_,isUint8Array:()=>Wc,isTupleOfAtLeast:()=>W_,isTupleOf:()=>K_,isTruthy:()=>Xc,isTagged:()=>P1,isSymbol:()=>JY,isString:()=>b8,isSet:()=>Qc,isRegExp:()=>D_,isReadonlyObject:()=>Hc,isPropertyKey:()=>zG,isPromiseLike:()=>Vc,isPromise:()=>Bc,isObjectOrArray:()=>Zc,isObjectKeyword:()=>AZ,isObject:()=>h1,isNumber:()=>M9,isNullish:()=>$c,isNull:()=>Gc,isNotUndefined:()=>M1,isNotNullish:()=>NG,isNotNull:()=>Jc,isNever:()=>V_,isMap:()=>Yc,isIterable:()=>T9,isFunction:()=>g1,isError:()=>Kc,isDate:()=>__,isBoolean:()=>P9,isBigInt:()=>OG,implies:()=>Fc,hasProperty:()=>P,every:()=>Ac,eqv:()=>Rc,compose:()=>_c,and:()=>zc,Tuple:()=>Dc,Struct:()=>Uc});var ep=W(2,(X,Q)=>(Y)=>X(Q(Y))),K_=W(2,(X,Q)=>X.length===Q),W_=W(2,(X,Q)=>X.length>=Q);function Xc(X){return!!X}function Qc(X){return X instanceof Set}function Yc(X){return X instanceof Map}function b8(X){return typeof X==="string"}function M9(X){return typeof X==="number"}function P9(X){return typeof X==="boolean"}function OG(X){return typeof X==="bigint"}function JY(X){return typeof X==="symbol"}function zG(X){return b8(X)||M9(X)||JY(X)}function g1(X){return typeof X==="function"}function B_(X){return X===void 0}function M1(X){return X!==void 0}function Gc(X){return X===null}function Jc(X){return X!==null}function $c(X){return X===null||X===void 0}function NG(X){return X!=null}function V_(X){return!1}function wZ(X){return!0}function Zc(X){return typeof X==="object"&&X!==null}function h1(X){return typeof X==="object"&&X!==null&&!Array.isArray(X)}function Hc(X){return h1(X)}function AZ(X){return typeof X==="object"&&X!==null||g1(X)}var P=W(2,(X,Q)=>AZ(X)&&(Q in X)),P1=W(2,(X,Q)=>P(X,"_tag")&&X._tag===Q);function Kc(X){return X instanceof Error}function Wc(X){return X instanceof Uint8Array}function __(X){return X instanceof Date}function T9(X){return P(X,Symbol.iterator)||b8(X)}function Bc(X){return P(X,"then")&&"catch"in X&&g1(X.then)&&g1(X.catch)}function Vc(X){return P(X,"then")&&g1(X.then)}function D_(X){return X instanceof RegExp}var _c=W(2,(X,Q)=>(Y)=>X(Y)&&Q(Y));function Dc(X){return(Q)=>{for(let Y=0;Y<X.length;Y++)if(X[Y](Q[Y])===!1)return!1;return!0}}function Uc(X){let Q=Object.keys(X);return(Y)=>{for(let G of Q)if(!X[G](Y[G]))return!1;return!0}}function qc(X){return(Q)=>!X(Q)}var Oc=W(2,(X,Q)=>(Y)=>X(Y)||Q(Y)),zc=W(2,(X,Q)=>(Y)=>X(Y)&&Q(Y)),Nc=W(2,(X,Q)=>(Y)=>X(Y)!==Q(Y)),Rc=W(2,(X,Q)=>(Y)=>X(Y)===Q(Y)),Fc=W(2,(X,Q)=>(Y)=>X(Y)?Q(Y):!0),Lc=W(2,(X,Q)=>(Y)=>!(X(Y)||Q(Y))),wc=W(2,(X,Q)=>(Y)=>!(X(Y)&&Q(Y)));function Ac(X){return(Q)=>{for(let Y of X)if(!Y(Q))return!1;return!0}}function Mc(X){return(Q)=>{for(let Y of X)if(Y(Q))return!0;return!1}}var g8={};k(g8,{symbol:()=>L0,structureKeys:()=>MZ,structure:()=>PZ,string:()=>Y1,random:()=>FG,optimize:()=>LG,number:()=>I9,isHash:()=>KM,hash:()=>H0,combine:()=>t0,array:()=>S6});var RG=(X)=>{let Q=new Set(Reflect.ownKeys(X));if(X.constructor===Object)return Q;if(X instanceof Error)Q.delete("stack");let Y=Object.getPrototypeOf(X),G=Y;while(G!==null&&G!==Object.prototype){let J=Reflect.ownKeys(G);for(let $=0;$<J.length;$++)Q.add(J[$]);G=Object.getPrototypeOf(G)}if(Q.has("constructor")&&typeof X.constructor==="function"&&Y===X.constructor.prototype)Q.delete("constructor");return Q},$Y=new WeakSet;var L0="~effect/interfaces/Hash",H0=(X)=>{switch(typeof X){case"number":return I9(X);case"bigint":return Y1(X.toString(10));case"boolean":return Y1(String(X));case"symbol":return Y1(String(X));case"string":return Y1(X);case"undefined":return Y1("undefined");case"function":case"object":if(X===null)return Y1("null");else if(X instanceof Date)return Y1(X.toISOString());else if(X instanceof RegExp)return Y1(X.toString());else{if($Y.has(X))return FG(X);if(q_.has(X))return q_.get(X);let Q=Ic(X,()=>{if(KM(X))return X[L0]();else if(typeof X==="function")return FG(X);else if(Array.isArray(X)||ArrayBuffer.isView(X))return S6(X);else if(X instanceof Map)return Pc(X);else if(X instanceof Set)return Tc(X);return PZ(X)});return q_.set(X,Q),Q}default:throw Error(`BUG: unhandled typeof ${typeof X} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},FG=(X)=>{if(!U_.has(X))U_.set(X,I9(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)));return U_.get(X)},t0=W(2,(X,Q)=>X*53^Q),LG=(X)=>X&3221225471|X>>>1&1073741824,KM=(X)=>P(X,L0),I9=(X)=>{if(X!==X)return Y1("NaN");if(X===1/0)return Y1("Infinity");if(X===-1/0)return Y1("-Infinity");let Q=X|0;if(Q!==X)Q^=X*4294967295;while(X>4294967295)Q^=X/=4294967295;return LG(Q)},Y1=(X)=>{let Q=5381,Y=X.length;while(Y)Q=Q*33^X.charCodeAt(--Y);return LG(Q)},MZ=(X,Q)=>{let Y=12289;for(let G of Q)Y^=t0(H0(G),H0(X[G]));return LG(Y)},PZ=(X)=>MZ(X,RG(X)),z_=(X,Q)=>(Y)=>{let G=X;for(let J of Y)G^=Q(J);return LG(G)},S6=z_(6151,H0),Pc=z_(Y1("Map"),([X,Q])=>t0(H0(X),H0(Q))),Tc=z_(Y1("Set"),H0),U_=new WeakMap,q_=new WeakMap,O_=new WeakSet;function Ic(X,Q){if(O_.has(X))return Y1("[Circular]");O_.add(X);let Y=Q();return O_.delete(X),Y}var G1={};k(G1,{symbol:()=>w0,makeCompareSet:()=>AG,makeCompareMap:()=>wG,isEqual:()=>F_,equals:()=>Q0,byReferenceUnsafe:()=>IZ,byReference:()=>bc,asEquivalence:()=>Z8});var w0="~effect/interfaces/Equal";function Q0(){if(arguments.length===1)return(X)=>q7(X,arguments[0]);return q7(arguments[0],arguments[1])}function q7(X,Q){if(X===Q)return!0;if(X==null||Q==null)return!1;let Y=typeof X;if(Y!==typeof Q)return!1;if(Y==="number"&&X!==X&&Q!==Q)return!0;if(Y!=="object"&&Y!=="function")return!1;if($Y.has(X)||$Y.has(Q))return!1;return Ec(X,Q,jc)}function Cc(X,Q,Y){let G=N_.has(X),J=R_.has(Q);if(G&&J)return!0;if(G||J)return!1;N_.add(X),R_.add(Q);let $=Y();return N_.delete(X),R_.delete(Q),$}var N_=new WeakSet,R_=new WeakSet;function jc(X,Q){if(H0(X)!==H0(Q))return!1;else if(X instanceof Date){if(!(Q instanceof Date))return!1;return X.toISOString()===Q.toISOString()}else if(X instanceof RegExp){if(!(Q instanceof RegExp))return!1;return X.toString()===Q.toString()}let Y=F_(X),G=F_(Q);if(Y!==G)return!1;let J=Y&&G;if(typeof X==="function"&&!J)return!1;return Cc(X,Q,()=>{if(J)return X[w0](Q);else if(Array.isArray(X)){if(!Array.isArray(Q)||X.length!==Q.length)return!1;return Sc(X,Q)}else if(ArrayBuffer.isView(X)){if(!ArrayBuffer.isView(Q)||X.byteLength!==Q.byteLength)return!1;return xc(X,Q)}else if(X instanceof Map){if(!(Q instanceof Map)||X.size!==Q.size)return!1;return kc(X,Q)}else if(X instanceof Set){if(!(Q instanceof Set)||X.size!==Q.size)return!1;return yc(X,Q)}return vc(X,Q)})}function Ec(X,Q,Y){let G=TZ.get(X);if(!G)G=new WeakMap,TZ.set(X,G);else if(G.has(Q))return G.get(Q);let J=Y(X,Q);G.set(Q,J);let $=TZ.get(Q);if(!$)$=new WeakMap,TZ.set(Q,$);return $.set(X,J),J}var TZ=new WeakMap;function Sc(X,Q){for(let Y=0;Y<X.length;Y++)if(!q7(X[Y],Q[Y]))return!1;return!0}function xc(X,Q){if(X.length!==Q.length)return!1;for(let Y=0;Y<X.length;Y++)if(X[Y]!==Q[Y])return!1;return!0}function vc(X,Q){let Y=RG(X),G=RG(Q);if(Y.size!==G.size)return!1;for(let J of Y)if(!G.has(J)||!q7(X[J],Q[J]))return!1;return!0}function wG(X,Q){return function(G,J){for(let[$,Z]of G){let H=!1;for(let[K,B]of J)if(X($,K)&&Q(Z,B)){H=!0;break}if(!H)return!1}return!0}}var kc=wG(q7,q7);function AG(X){return function(Y,G){for(let J of Y){let $=!1;for(let Z of G)if(X(J,Z)){$=!0;break}if(!$)return!1}return!0}}var yc=AG(q7),F_=(X)=>P(X,w0),Z8=()=>Q0,bc=(X)=>IZ(new Proxy(X,{})),IZ=(X)=>{return $Y.add(X),X};var BM={};k(BM,{symbolRedactable:()=>MG,redact:()=>G4,isRedactable:()=>WM,getRedacted:()=>CZ,currentFiberTypeId:()=>O7});var MG=Symbol.for("~effect/Redactable"),WM=(X)=>P(X,MG);function G4(X){if(WM(X))return CZ(X);return X}function CZ(X){return X[MG](globalThis[O7]?.context??gc)}var O7="~effect/Fiber/currentFiber",gc={"~effect/Context":{},mapUnsafe:new Map,pipe(){return o(this,arguments)}};var _M={};k(_M,{formatPropertyKey:()=>YX,formatPath:()=>PG,formatJson:()=>ZY,formatDate:()=>jZ,format:()=>u});function u(X,Q){let Y=Q?.space??0,G=new WeakSet,J=!Y?"":typeof Y==="number"?" ".repeat(Y):Y,$=(B)=>J.repeat(B),Z=(B,V)=>{let _=B?.constructor;return _&&_!==Object.prototype.constructor&&_.name?`${_.name}(${V})`:V},H=(B)=>{try{return Reflect.ownKeys(B)}catch{return["[ownKeys threw]"]}};function K(B,V=0){if(Array.isArray(B)){if(G.has(B))return VM;if(G.add(B),!J||B.length<=1)return`[${B.map((D)=>K(D,V)).join(",")}]`;let _=B.map((D)=>K(D,V+1)).join(`,
|
|
2
|
+
import{SQ as k}from"./chunk-9svh74gt.js";var GY={};k(GY,{pipeArguments:()=>o,Prototype:()=>$M,Mixin:()=>fp,Class:()=>G5});var o=(X,Q)=>{switch(Q.length){case 0:return X;case 1:return Q[0](X);case 2:return Q[1](Q[0](X));case 3:return Q[2](Q[1](Q[0](X)));case 4:return Q[3](Q[2](Q[1](Q[0](X))));case 5:return Q[4](Q[3](Q[2](Q[1](Q[0](X)))));case 6:return Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X))))));case 7:return Q[6](Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X)))))));case 8:return Q[7](Q[6](Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X))))))));case 9:return Q[8](Q[7](Q[6](Q[5](Q[4](Q[3](Q[2](Q[1](Q[0](X)))))))));default:{let Y=X;for(let G=0,J=Q.length;G<J;G++)Y=Q[G](Y);return Y}}},$M={pipe(){return o(this,arguments)}},G5=function(){function X(){}return X.prototype=$M,X}(),fp=(X)=>class extends X{pipe(){return o(this,arguments)}};var H_={};k(H_,{untupled:()=>ap,tupled:()=>rp,satisfies:()=>op,pipe:()=>U6,memoize:()=>b1,identity:()=>C,hole:()=>sp,flow:()=>QX,flip:()=>ip,dual:()=>W,constant:()=>I0,constVoid:()=>y8,constUndefined:()=>D6,constTrue:()=>r1,constNull:()=>qG,constFalse:()=>U7,compose:()=>np,cast:()=>ZM,apply:()=>lp,absurd:()=>HM,SK:()=>tp});var W=function(X,Q){if(typeof X==="function")return function(){return X(arguments)?Q.apply(this,arguments):(Y)=>Q(Y,...arguments)};switch(X){case 0:case 1:throw RangeError(`Invalid arity ${X}`);case 2:return function(Y,G){if(arguments.length>=2)return Q(Y,G);return function(J){return Q(J,Y)}};case 3:return function(Y,G,J){if(arguments.length>=3)return Q(Y,G,J);return function($){return Q($,Y,G)}};default:return function(){if(arguments.length>=X)return Q.apply(this,arguments);let Y=arguments;return function(G){return Q(G,...Y)}}}},lp=(X)=>(Q)=>Q(X),C=(X)=>X,op=()=>(X)=>X,ZM=C,I0=(X)=>()=>X,r1=I0(!0),U7=I0(!1),qG=I0(null),D6=I0(void 0),y8=D6,ip=(X)=>(...Q)=>(...Y)=>X(...Y)(...Q),np=W(2,(X,Q)=>(Y)=>Q(X(Y))),HM=(X)=>{throw Error("Called `absurd` function which should be uncallable")},rp=(X)=>(Q)=>X(...Q),ap=(X)=>(...Q)=>X(Q);function U6(X,...Q){return o(X,Q)}function QX(X,Q,Y,G,J,$,Z,H,K){switch(arguments.length){case 1:return X;case 2:return function(){return Q(X.apply(this,arguments))};case 3:return function(){return Y(Q(X.apply(this,arguments)))};case 4:return function(){return G(Y(Q(X.apply(this,arguments))))};case 5:return function(){return J(G(Y(Q(X.apply(this,arguments)))))};case 6:return function(){return $(J(G(Y(Q(X.apply(this,arguments))))))};case 7:return function(){return Z($(J(G(Y(Q(X.apply(this,arguments)))))))};case 8:return function(){return H(Z($(J(G(Y(Q(X.apply(this,arguments))))))))};case 9:return function(){return K(H(Z($(J(G(Y(Q(X.apply(this,arguments)))))))))}}return}var sp=ZM(HM),tp=(X,Q)=>Q;function b1(X){let Q=new WeakMap;return(Y)=>{if(Q.has(Y))return Q.get(Y);let G=X(Y);return Q.set(Y,G),G}}var s0={};k(s0,{xor:()=>Nc,some:()=>Mc,or:()=>Oc,not:()=>qc,nor:()=>Lc,nand:()=>wc,mapInput:()=>ep,isUnknown:()=>wZ,isUndefined:()=>B_,isUint8Array:()=>Wc,isTupleOfAtLeast:()=>W_,isTupleOf:()=>K_,isTruthy:()=>Xc,isTagged:()=>P1,isSymbol:()=>JY,isString:()=>b8,isSet:()=>Qc,isRegExp:()=>D_,isReadonlyObject:()=>Hc,isPropertyKey:()=>zG,isPromiseLike:()=>Vc,isPromise:()=>Bc,isObjectOrArray:()=>Zc,isObjectKeyword:()=>AZ,isObject:()=>h1,isNumber:()=>M9,isNullish:()=>$c,isNull:()=>Gc,isNotUndefined:()=>M1,isNotNullish:()=>NG,isNotNull:()=>Jc,isNever:()=>V_,isMap:()=>Yc,isIterable:()=>T9,isFunction:()=>g1,isError:()=>Kc,isDate:()=>__,isBoolean:()=>P9,isBigInt:()=>OG,implies:()=>Fc,hasProperty:()=>P,every:()=>Ac,eqv:()=>Rc,compose:()=>_c,and:()=>zc,Tuple:()=>Dc,Struct:()=>Uc});var ep=W(2,(X,Q)=>(Y)=>X(Q(Y))),K_=W(2,(X,Q)=>X.length===Q),W_=W(2,(X,Q)=>X.length>=Q);function Xc(X){return!!X}function Qc(X){return X instanceof Set}function Yc(X){return X instanceof Map}function b8(X){return typeof X==="string"}function M9(X){return typeof X==="number"}function P9(X){return typeof X==="boolean"}function OG(X){return typeof X==="bigint"}function JY(X){return typeof X==="symbol"}function zG(X){return b8(X)||M9(X)||JY(X)}function g1(X){return typeof X==="function"}function B_(X){return X===void 0}function M1(X){return X!==void 0}function Gc(X){return X===null}function Jc(X){return X!==null}function $c(X){return X===null||X===void 0}function NG(X){return X!=null}function V_(X){return!1}function wZ(X){return!0}function Zc(X){return typeof X==="object"&&X!==null}function h1(X){return typeof X==="object"&&X!==null&&!Array.isArray(X)}function Hc(X){return h1(X)}function AZ(X){return typeof X==="object"&&X!==null||g1(X)}var P=W(2,(X,Q)=>AZ(X)&&(Q in X)),P1=W(2,(X,Q)=>P(X,"_tag")&&X._tag===Q);function Kc(X){return X instanceof Error}function Wc(X){return X instanceof Uint8Array}function __(X){return X instanceof Date}function T9(X){return P(X,Symbol.iterator)||b8(X)}function Bc(X){return P(X,"then")&&"catch"in X&&g1(X.then)&&g1(X.catch)}function Vc(X){return P(X,"then")&&g1(X.then)}function D_(X){return X instanceof RegExp}var _c=W(2,(X,Q)=>(Y)=>X(Y)&&Q(Y));function Dc(X){return(Q)=>{for(let Y=0;Y<X.length;Y++)if(X[Y](Q[Y])===!1)return!1;return!0}}function Uc(X){let Q=Object.keys(X);return(Y)=>{for(let G of Q)if(!X[G](Y[G]))return!1;return!0}}function qc(X){return(Q)=>!X(Q)}var Oc=W(2,(X,Q)=>(Y)=>X(Y)||Q(Y)),zc=W(2,(X,Q)=>(Y)=>X(Y)&&Q(Y)),Nc=W(2,(X,Q)=>(Y)=>X(Y)!==Q(Y)),Rc=W(2,(X,Q)=>(Y)=>X(Y)===Q(Y)),Fc=W(2,(X,Q)=>(Y)=>X(Y)?Q(Y):!0),Lc=W(2,(X,Q)=>(Y)=>!(X(Y)||Q(Y))),wc=W(2,(X,Q)=>(Y)=>!(X(Y)&&Q(Y)));function Ac(X){return(Q)=>{for(let Y of X)if(!Y(Q))return!1;return!0}}function Mc(X){return(Q)=>{for(let Y of X)if(Y(Q))return!0;return!1}}var g8={};k(g8,{symbol:()=>L0,structureKeys:()=>MZ,structure:()=>PZ,string:()=>Y1,random:()=>FG,optimize:()=>LG,number:()=>I9,isHash:()=>KM,hash:()=>H0,combine:()=>t0,array:()=>S6});var RG=(X)=>{let Q=new Set(Reflect.ownKeys(X));if(X.constructor===Object)return Q;if(X instanceof Error)Q.delete("stack");let Y=Object.getPrototypeOf(X),G=Y;while(G!==null&&G!==Object.prototype){let J=Reflect.ownKeys(G);for(let $=0;$<J.length;$++)Q.add(J[$]);G=Object.getPrototypeOf(G)}if(Q.has("constructor")&&typeof X.constructor==="function"&&Y===X.constructor.prototype)Q.delete("constructor");return Q},$Y=new WeakSet;var L0="~effect/interfaces/Hash",H0=(X)=>{switch(typeof X){case"number":return I9(X);case"bigint":return Y1(X.toString(10));case"boolean":return Y1(String(X));case"symbol":return Y1(String(X));case"string":return Y1(X);case"undefined":return Y1("undefined");case"function":case"object":if(X===null)return Y1("null");else if(X instanceof Date)return Y1(X.toISOString());else if(X instanceof RegExp)return Y1(X.toString());else{if($Y.has(X))return FG(X);if(q_.has(X))return q_.get(X);let Q=Ic(X,()=>{if(KM(X))return X[L0]();else if(typeof X==="function")return FG(X);else if(Array.isArray(X)||ArrayBuffer.isView(X))return S6(X);else if(X instanceof Map)return Pc(X);else if(X instanceof Set)return Tc(X);return PZ(X)});return q_.set(X,Q),Q}default:throw Error(`BUG: unhandled typeof ${typeof X} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},FG=(X)=>{if(!U_.has(X))U_.set(X,I9(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)));return U_.get(X)},t0=W(2,(X,Q)=>X*53^Q),LG=(X)=>X&3221225471|X>>>1&1073741824,KM=(X)=>P(X,L0),I9=(X)=>{if(X!==X)return Y1("NaN");if(X===1/0)return Y1("Infinity");if(X===-1/0)return Y1("-Infinity");let Q=X|0;if(Q!==X)Q^=X*4294967295;while(X>4294967295)Q^=X/=4294967295;return LG(Q)},Y1=(X)=>{let Q=5381,Y=X.length;while(Y)Q=Q*33^X.charCodeAt(--Y);return LG(Q)},MZ=(X,Q)=>{let Y=12289;for(let G of Q)Y^=t0(H0(G),H0(X[G]));return LG(Y)},PZ=(X)=>MZ(X,RG(X)),z_=(X,Q)=>(Y)=>{let G=X;for(let J of Y)G^=Q(J);return LG(G)},S6=z_(6151,H0),Pc=z_(Y1("Map"),([X,Q])=>t0(H0(X),H0(Q))),Tc=z_(Y1("Set"),H0),U_=new WeakMap,q_=new WeakMap,O_=new WeakSet;function Ic(X,Q){if(O_.has(X))return Y1("[Circular]");O_.add(X);let Y=Q();return O_.delete(X),Y}var G1={};k(G1,{symbol:()=>w0,makeCompareSet:()=>AG,makeCompareMap:()=>wG,isEqual:()=>F_,equals:()=>Q0,byReferenceUnsafe:()=>IZ,byReference:()=>bc,asEquivalence:()=>Z8});var w0="~effect/interfaces/Equal";function Q0(){if(arguments.length===1)return(X)=>q7(X,arguments[0]);return q7(arguments[0],arguments[1])}function q7(X,Q){if(X===Q)return!0;if(X==null||Q==null)return!1;let Y=typeof X;if(Y!==typeof Q)return!1;if(Y==="number"&&X!==X&&Q!==Q)return!0;if(Y!=="object"&&Y!=="function")return!1;if($Y.has(X)||$Y.has(Q))return!1;return Ec(X,Q,jc)}function Cc(X,Q,Y){let G=N_.has(X),J=R_.has(Q);if(G&&J)return!0;if(G||J)return!1;N_.add(X),R_.add(Q);let $=Y();return N_.delete(X),R_.delete(Q),$}var N_=new WeakSet,R_=new WeakSet;function jc(X,Q){if(H0(X)!==H0(Q))return!1;else if(X instanceof Date){if(!(Q instanceof Date))return!1;return X.toISOString()===Q.toISOString()}else if(X instanceof RegExp){if(!(Q instanceof RegExp))return!1;return X.toString()===Q.toString()}let Y=F_(X),G=F_(Q);if(Y!==G)return!1;let J=Y&&G;if(typeof X==="function"&&!J)return!1;return Cc(X,Q,()=>{if(J)return X[w0](Q);else if(Array.isArray(X)){if(!Array.isArray(Q)||X.length!==Q.length)return!1;return Sc(X,Q)}else if(ArrayBuffer.isView(X)){if(!ArrayBuffer.isView(Q)||X.byteLength!==Q.byteLength)return!1;return xc(X,Q)}else if(X instanceof Map){if(!(Q instanceof Map)||X.size!==Q.size)return!1;return kc(X,Q)}else if(X instanceof Set){if(!(Q instanceof Set)||X.size!==Q.size)return!1;return yc(X,Q)}return vc(X,Q)})}function Ec(X,Q,Y){let G=TZ.get(X);if(!G)G=new WeakMap,TZ.set(X,G);else if(G.has(Q))return G.get(Q);let J=Y(X,Q);G.set(Q,J);let $=TZ.get(Q);if(!$)$=new WeakMap,TZ.set(Q,$);return $.set(X,J),J}var TZ=new WeakMap;function Sc(X,Q){for(let Y=0;Y<X.length;Y++)if(!q7(X[Y],Q[Y]))return!1;return!0}function xc(X,Q){if(X.length!==Q.length)return!1;for(let Y=0;Y<X.length;Y++)if(X[Y]!==Q[Y])return!1;return!0}function vc(X,Q){let Y=RG(X),G=RG(Q);if(Y.size!==G.size)return!1;for(let J of Y)if(!G.has(J)||!q7(X[J],Q[J]))return!1;return!0}function wG(X,Q){return function(G,J){for(let[$,Z]of G){let H=!1;for(let[K,B]of J)if(X($,K)&&Q(Z,B)){H=!0;break}if(!H)return!1}return!0}}var kc=wG(q7,q7);function AG(X){return function(Y,G){for(let J of Y){let $=!1;for(let Z of G)if(X(J,Z)){$=!0;break}if(!$)return!1}return!0}}var yc=AG(q7),F_=(X)=>P(X,w0),Z8=()=>Q0,bc=(X)=>IZ(new Proxy(X,{})),IZ=(X)=>{return $Y.add(X),X};var BM={};k(BM,{symbolRedactable:()=>MG,redact:()=>G4,isRedactable:()=>WM,getRedacted:()=>CZ,currentFiberTypeId:()=>O7});var MG=Symbol.for("~effect/Redactable"),WM=(X)=>P(X,MG);function G4(X){if(WM(X))return CZ(X);return X}function CZ(X){return X[MG](globalThis[O7]?.context??gc)}var O7="~effect/Fiber/currentFiber",gc={"~effect/Context":{},mapUnsafe:new Map,pipe(){return o(this,arguments)}};var _M={};k(_M,{formatPropertyKey:()=>YX,formatPath:()=>PG,formatJson:()=>ZY,formatDate:()=>jZ,format:()=>u});function u(X,Q){let Y=Q?.space??0,G=new WeakSet,J=!Y?"":typeof Y==="number"?" ".repeat(Y):Y,$=(B)=>J.repeat(B),Z=(B,V)=>{let _=B?.constructor;return _&&_!==Object.prototype.constructor&&_.name?`${_.name}(${V})`:V},H=(B)=>{try{return Reflect.ownKeys(B)}catch{return["[ownKeys threw]"]}};function K(B,V=0){if(Array.isArray(B)){if(G.has(B))return VM;if(G.add(B),!J||B.length<=1)return`[${B.map((D)=>K(D,V)).join(",")}]`;let _=B.map((D)=>K(D,V+1)).join(`,
|
|
3
3
|
`+$(V+1));return`[
|
|
4
4
|
${$(V+1)}${_}
|
|
5
5
|
${$(V)}]`}if(B instanceof Date)return jZ(B);if(!Q?.ignoreToString&&P(B,"toString")&&typeof B.toString==="function"&&B.toString!==Object.prototype.toString&&B.toString!==Array.prototype.toString){let _=hc(B);if(B instanceof Error&&B.cause)return`${_} (cause: ${K(B.cause,V)})`;return _}if(typeof B==="string")return JSON.stringify(B);if(typeof B==="number"||B==null||typeof B==="boolean"||typeof B==="symbol")return String(B);if(typeof B==="bigint")return String(B)+"n";if(typeof B==="object"||typeof B==="function"){if(G.has(B))return VM;if(G.add(B),MG in B)return u(CZ(B));if(Symbol.iterator in B)return`${B.constructor.name}(${K(Array.from(B),V)})`;let _=H(B);if(!J||_.length<=1){let U=`{${_.map((z)=>`${YX(z)}:${K(B[z],V)}`).join(",")}}`;return Z(B,U)}let D=`{
|
|
@@ -74,4 +74,4 @@ ${CH0(J)}`;return $}function xh(X){return pw(X,y1)}async function vh(X){let Q=[]
|
|
|
74
74
|
`),J=J.replace(/\\r/g,"\r");Q[G]=J}return Q}function bz0(X){let Q={};for(let Y in X)Q[Y]=zp(X[Y],X).replace(/\\\$/g,"$");return Q}function zp(X,Q){let Y=gz0(X,/(?!(?<=\\))\$/g);if(Y===-1)return X;let G=X.slice(Y),J=/((?!(?<=\\))\${?([\w]+)(?::-([^}\\]*))?}?)/,$=G.match(J);if($!==null){let[Z,H,K,B]=$;return zp(X.replace(H,B||Q[K]||""),Q)}return X}function gz0(X,Q){let Y=Array.from(X.matchAll(Q));return Y.length>0?Y.slice(-1)[0].index:-1}var hz0=Z0(function*(X){let Y=yield*(yield*oX).readFileString(X?.path??".env");return Q_({env:Op(Y)})}),mz0=Z0(function*(X){let Q=yield*T$,Y=yield*oX,G=X?.rootPath??"/";return QY((J)=>{let $=Q.join(G,...J.map(String)),Z=Y.readFileString($).pipe(E((K)=>DG(K.trim()))),H=Y.readDirectory($).pipe(E((K)=>{let B=K.map((V)=>typeof V==="string"?Q.basename(V):u(V?.name??""));return X_(new Set(B))}));return Z.pipe(M4(()=>H),X3((K)=>new eA({message:`Failed to read file at ${Q.join(G,...J.map(String))}`,cause:K})))})});var Fp={};k(Fp,{values:()=>QM,isLessThanOrEqualTo:()=>fz0,isLessThan:()=>uz0,isGreaterThanOrEqualTo:()=>cz0,isGreaterThan:()=>Rp,isEnabled:()=>lz0,getOrdinal:()=>pz0,Order:()=>Y_,Equivalence:()=>dz0});var QM=["All","Fatal","Error","Warn","Info","Debug","Trace","None"],Y_=eU,dz0=TG(),pz0=(X)=>tU(X),Rp=uH,cz0=O6(Y_),uz0=a8(Y_),fz0=q6(Y_),lz0=(X)=>n((Q)=>T(!Rp(Q.getRef(qq),X)));var VN0={};k(VN0,{withDefault:()=>Mp,url:()=>KN0,unwrap:()=>Pp,succeed:()=>vp,string:()=>sz0,schema:()=>E6,redacted:()=>HN0,port:()=>$N0,orElse:()=>Ap,option:()=>rz0,number:()=>ez0,nonEmptyString:()=>tz0,nested:()=>BN0,mapOrFail:()=>iz0,map:()=>wp,make:()=>w9,logLevel:()=>ZN0,literal:()=>YN0,isConfig:()=>Lp,int:()=>QN0,finite:()=>XN0,fail:()=>xp,duration:()=>JN0,date:()=>WN0,boolean:()=>GN0,all:()=>nz0,TrueValues:()=>Tp,Record:()=>az0,Port:()=>Ep,LogLevel:()=>Sp,FalseValues:()=>Ip,Duration:()=>jp,ConfigError:()=>J_,Boolean:()=>Cp});var YM="~effect/Config",Lp=(X)=>P(X,YM);class J_{_tag="ConfigError";name="ConfigError";cause;constructor(X){this.cause=X}get message(){return this.cause.toString()}toString(){return`ConfigError(${this.message})`}}var oz0={...z8,...ZX,[YM]:YM,asEffect(){return R(XY.asEffect(),(X)=>this.parse(X))},toJSON(){return{_id:"Config"}}};function w9(X){let Q=Object.create(oz0);return Q.parse=X,Q}var wp=W(2,(X,Q)=>{return w9((Y)=>E(X.parse(Y),Q))}),iz0=W(2,(X,Q)=>{return w9((Y)=>R(X.parse(Y),Q))}),Ap=W(2,(X,Q)=>{return w9((Y)=>M4(X.parse(Y),(G)=>Q(G).parse(Y)))});function nz0(X){let Q=Array.isArray(X)?X:(Symbol.iterator in X)?[...X]:X;if(Array.isArray(Q))return w9((Y)=>aJ(Q.map((G)=>G.parse(Y))));else return w9((Y)=>aJ(VX(Q,(G)=>G.parse(Y))))}function G_(X){switch(X._tag){case"MissingKey":return!0;case"InvalidType":case"InvalidValue":return d(X.actual)||$0(X.actual)&&X.actual.value===void 0;case"OneOf":return X.actual===void 0;case"Encoding":return d(X.actual)||$0(X.actual)&&X.actual.value===void 0?!0:G_(X.issue);case"Pointer":case"Filter":return G_(X.issue);case"UnexpectedKey":return!1;case"Forbidden":return!1;case"Composite":case"AnyOf":return X.issues.every(G_)}}var Mp=W(2,(X,Q)=>{return Ap(X,(Y)=>{if(mA(Y.cause)){let G=Y.cause.issue;if(G_(G))return vp(Q)}return xp(Y.cause)})}),rz0=(X)=>X.pipe(wp(q),Mp(w())),Pp=(X)=>{if(Lp(X))return X;return w9((Q)=>{let G=Object.entries(X).map(([J,$])=>Pp($).parse(Q).pipe(E((Z)=>[J,Z])));return aJ(G).pipe(E(Object.fromEntries))})},GM=Z0(function*(X,Q){let Y=yield*X.load(Q);if(Y===void 0)return;switch(Y._tag){case"Value":return Y.value;case"Record":{if(Y.value!==void 0)return Y.value;let G={};for(let J of Y.keys){let $=yield*GM(X,[...Q,J]);if($!==void 0)G[J]=$}return G}case"Array":{if(Y.value!==void 0)return Y.value;let G=[];for(let J=0;J<Y.length;J++)G.push(yield*GM(X,[...Q,J]));return G}}}),LZ=Z0(function*(X,Q,Y){switch(X._tag){case"Objects":{let G={};for(let J of X.propertySignatures){let $=J.name;if(typeof $==="string"){let Z=yield*LZ(J.type,Q,[...Y,$]);if(Z!==void 0)G[$]=Z}}if(X.indexSignatures.length>0){let J=yield*Q.load(Y);if(J&&J._tag==="Record")for(let $ of X.indexSignatures){let Z=Y7($.parameter);for(let H of J.keys)if(!Object.hasOwn(G,H)&&Z(H)){let K=yield*LZ($.type,Q,[...Y,H]);if(K!==void 0)G[H]=K}}}return G}case"Arrays":{let G=yield*Q.load(Y);if(G&&G._tag==="Value")return G.value;let J=[];for(let $=0;$<X.elements.length;$++)J.push(yield*LZ(X.elements[$],Q,[...Y,$]));return J}case"Union":return yield*GM(Q,Y);case"Suspend":return yield*LZ(X.thunk(),Q,Y);default:{let G=yield*Q.load(Y);if(G===void 0)return;if(G._tag==="Value")return G.value;if(G._tag==="Record"&&G.value!==void 0)return G.value;if(G._tag==="Array"&&G.value!==void 0)return G.value;return}}});function E6(X,Q){let Y=eV(X),G=U1(Y),J=Y8(Y.ast),$=typeof Q==="string"?[Q]:Q??[];return w9((Z)=>{let H=Z.prefix?[...Z.prefix,...$]:$;return LZ(J,Z,$).pipe(o8((K)=>G(K).pipe(l8((B)=>new N9(H.length>0?new j0(H,B):B)))),l8((K)=>new J_(K)))})}var Tp=D7(["true","yes","on","1","y"]),Ip=D7(["false","no","off","0","n"]),Cp=D7([...Tp.literals,...Ip.literals]).pipe(X0(pV,Z1({decode:(X)=>X==="true"||X==="yes"||X==="on"||X==="1"||X==="y",encode:(X)=>X?"true":"false"}))),jp=W0.pipe(X0(RZ,{decode:E8((X)=>{let Q=gD(X);return t8(Q,{onNone:()=>I(new P0(q(X))),onSome:O})}),encode:D2(()=>"Encoding Duration is not supported")})),Ep=FZ.check(NZ({minimum:1,maximum:65535})),Sp=D7(QM),az0=(X,Q,Y)=>{let G=VZ(X,Q),J=W0.pipe(X0(VZ(W0,W0),sz(Y)),X0(G));return i1([G,J])};function xp(X){return w9(()=>I(new J_(X)))}function vp(X){return w9(()=>O(X))}function sz0(X){return E6(W0,X)}function tz0(X){return E6(iA,X)}function ez0(X){return E6(e9,X)}function XN0(X){return E6(_G,X)}function QN0(X){return E6(FZ,X)}function YN0(X,Q){return E6(J8(X),Q)}function GN0(X){return E6(Cp,X)}function JN0(X){return E6(jp,X)}function $N0(X){return E6(Ep,X)}function ZN0(X){return E6(Sp,X)}function HN0(X){return E6(oV(W0),X)}function KN0(X){return E6(nV,X)}function WN0(X){return E6(rV,X)}var BN0=W(2,(X,Q)=>w9((Y)=>X.parse(XM(Y,Q))));var CN0={};k(CN0,{withLeveledConsole:()=>qN0,withConsoleLog:()=>$_,withConsoleError:()=>UN0,tracerLogger:()=>PN0,toFile:()=>IN0,map:()=>bp,make:()=>NN0,layer:()=>TN0,isLogger:()=>kp,formatStructured:()=>JM,formatSimple:()=>FN0,formatLogFmt:()=>mp,formatJson:()=>dp,defaultLogger:()=>RN0,consoleStructured:()=>AN0,consolePretty:()=>LN0,consoleLogFmt:()=>wN0,consoleJson:()=>MN0,batched:()=>pp,LogToStderr:()=>DN0,CurrentLoggers:()=>yp});var _N0="~effect/Logger",kp=(X)=>P(X,_N0),yp=M5,DN0=oY,bp=W(2,(X,Q)=>F6((Y)=>Q(X.log(Y)))),$_=(X)=>F6((Q)=>{return Q.fiber.getRef(u7).log(X.log(Q))}),UN0=(X)=>F6((Q)=>{return Q.fiber.getRef(u7).error(X.log(Q))}),qN0=(X)=>F6((Q)=>{let Y=Q.fiber.getRef(u7),G=X.log(Q);switch(Q.logLevel){case"Debug":return Y.debug(G);case"Info":return Y.info(G);case"Trace":return Y.trace(G);case"Warn":return Y.warn(G);case"Error":case"Fatal":return Y.error(G);default:return Y.log(G)}}),ON0=/^[^\s"=]*$/,zN0=(X)=>`"${X.replace(/\\([\s\S])|(")/g,"\\$1$2")}"`,gp=(X)=>`#${X}`,hp=(X,Q)=>({cause:Y,date:G,fiber:J,logLevel:$,message:Z})=>{let H=(N)=>N.match(ON0)?N:X(N),K=(N,L)=>`${Xq(N)}=${H(L)}`,B=(N,L)=>" "+K(N,L),V=K("timestamp",G.toISOString());V+=B("level",$),V+=B("fiber",gp(J.id));let _=MY(Z);for(let N=0;N<_.length;N++)V+=B("message",u(_[N],{space:Q}));if(Y.reasons.length>0)V+=B("cause",OX(Y));let D=G.getTime(),U=J.getRef(rY);for(let N of U)V+=" "+FJ(N,D);let z=J.getRef(nY);for(let[N,L]of Object.entries(z))V+=B(N,u(L,{space:Q}));return V},NN0=F6,RN0=Qq,FN0=F6(hp(zN0)),mp=F6(hp(JSON.stringify,0)),JM=F6(({cause:X,date:Q,fiber:Y,logLevel:G,message:J})=>{let $={},Z={},H=Y.getRef(nY);for(let[_,D]of Object.entries(H))$[_]=iY(D);let K=Q.getTime(),B=Y.getRef(rY);for(let[_,D]of B)Z[_]=K-D;let V=MY(J);return{message:V.length===1?iY(V[0]):V.map(iY),level:G.toUpperCase(),timestamp:Q.toISOString(),cause:X.reasons.length>0?OX(X):void 0,annotations:$,spans:Z,fiberId:gp(Y.id)}}),dp=bp(JM,ZY),pp=W(2,(X,Q)=>g(d7,(Y)=>{let G=[],J=f(()=>{if(G.length===0)return U0;let $=G;return G=[],Q.flush($)});return g6(($)=>$(wX(Q.window).pipe(t1(J),cY)).pipe(yH,g((Z)=>O4(Y,()=>gY(Z))),t1(A5(()=>J)),F8(F6((Z)=>{G.push(X.log(Z))}))))})),LN0=kC,wN0=$_(mp),AN0=$_(JM),MN0=$_(dp),PN0=Yq,TN0=(X,Q)=>G9(yp,n(DJ(function*(Y){let G=new Set(Q?.mergeWithExisting===!0?Y.getRef(M5):[]);for(let J of X)G.add(Y0(J)?yield*J:J);return G}))),IN0=W((X)=>kp(X[0]),(X,Q,Y)=>LH(function*(){let J=yield*(yield*oX).open(Q,{flag:"a+",...Y}),$=new TextEncoder;return yield*pp(X,{window:Y?.batchWindow??1000,flush:(Z)=>jH(J.write($.encode(Z.join(`
|
|
75
75
|
`)+`
|
|
76
76
|
`)))})}));
|
|
77
|
-
export{o as
|
|
77
|
+
export{o as ZB,GY as _B,W as $B,C as aC,ZM as bC,I0 as cC,r1 as dC,U7 as eC,D6 as fC,y8 as gC,np as hC,HM as iC,U6 as jC,QX as kC,sp as lC,H_ as mC,b8 as nC,M9 as oC,P9 as pC,OG as qC,JY as rC,B_ as sC,M1 as tC,Gc as uC,Jc as vC,h1 as wC,P as xC,__ as yC,Oc as zC,s0 as AC,L0 as BC,H0 as CC,t0 as DC,I9 as EC,Y1 as FC,PZ as GC,S6 as HC,g8 as IC,w0 as JC,Q0 as KC,G1 as LC,MG as MC,G4 as NC,BM as OC,u as PC,YX as QC,_M as RC,q1 as SC,T1 as TC,L_ as UC,mc as VC,UM as WC,qM as XC,cc as YC,z8 as ZC,ZX as _C,Y0 as $C,v_ as aD,q0 as bD,a1 as cD,n as dD,w_ as eD,A_ as fD,KY as gD,b0 as hD,x6 as iD,n0 as jD,TG as kD,rc as lD,P8 as mD,p4 as nD,a8 as oD,s8 as pD,q6 as qD,O6 as rD,J4 as sD,$4 as tD,GX as uD,JX as vD,m8 as wD,w as xD,q as yD,d as zD,$0 as AD,t8 as BD,yG as CD,qu as DD,bG as ED,C9 as FD,f4 as GD,O1 as HD,I7 as ID,S0 as JD,d1 as KD,W4 as LD,RY as MD,R8 as ND,W8 as OD,u_ as PD,ru as QD,l4 as RD,l0 as SD,l_ as TD,FY as UD,tu as VD,O0 as WD,F1 as XD,S as YD,y as ZD,i_ as _D,Yf as $D,lZ as aE,b as bE,M0 as cE,e8 as dE,k6 as eE,I1 as fE,Sf as gE,e_ as hE,cf as iE,YD as jE,Yl as kE,JD as lE,sM as mE,ZD as nE,cG as oE,o4 as pE,i4 as qE,VX as rE,WD as sE,BD as tE,El as uE,bl as vE,wY as wE,oZ as xE,x as yE,MY as zE,j7 as AE,PY as BE,V1 as CE,B0 as DE,OD as EE,sZ as FE,J1 as GE,D0 as HE,j1 as IE,S7 as JE,CD as KE,mo as LE,s1 as ME,x0 as NE,x7 as OE,v7 as PE,e0 as QE,p1 as RE,c1 as SE,xP as TE,$1 as UE,Qi as VE,dD as WE,gP as XE,y6 as YE,Ai as ZE,Ti as _E,di as $E,fD as aF,lD as bF,x9 as cF,oP as dF,ci as eF,y7 as fF,b7 as gF,iD as hF,nP as iF,rD as jF,F5 as kF,bY as lF,T as mF,m as nF,f as oF,BU as pF,mY as qF,U0 as rF,DJ as sF,F8 as tF,dY as uF,ST as vF,g as wF,r as xF,L5 as yF,qU as zF,b6 as AF,qJ as BF,w5 as CF,N6 as DF,R6 as EF,RJ as FF,CI as GF,c8 as HF,xI as IF,kI as JF,p7 as KF,g6 as LF,c7 as MF,nU as NF,Q6 as OF,u7 as PF,In as QF,yC as RF,Cn as SF,LJ as TF,yn as UF,bn as VF,AJ as WF,gn as XF,f7 as YF,ln as ZF,rn as _F,an as $F,Hq as aG,sn as bG,Kq as cG,v as dG,Yr as eG,Dr as fG,gC as gG,z4 as hG,h6 as iG,Q9 as jG,Bq as kG,T8 as lG,u8 as mG,l7 as nG,N4 as oG,AX as pG,P5 as qG,T5 as rG,pr as sG,o7 as tG,fC as uG,oH as vG,nY as wG,rY as xG,or as yG,rr as zG,lC as AG,L6 as BG,tr as CG,m6 as DG,w6 as EG,Y9 as FG,B8 as GG,er as HG,V8 as IG,d0 as JG,Xa as KG,I5 as LG,j5 as MG,aY as NG,r7 as OG,tC as PG,CJ as QG,A6 as RG,i7 as SG,Ja as TG,G9 as UG,Lq as VG,$a as WG,Nq as XG,aH as YG,sY as ZG,Ka as _G,b9 as $G,Aq as aH,tH as bH,Mq as cH,g9 as dH,tY as eH,eY as fH,Tq as gH,sa as hH,XK as iH,Q2 as jH,qE as kH,zE as lH,K0 as mH,w4 as nH,At as oH,e7 as pH,MK as qH,It as rH,cJ as sH,Z2 as tH,uJ as uH,_e as vH,fE as wH,VO as xH,bE as yH,d9 as zH,aJ as AH,CX as BH,M6 as CH,sJ as DH,GQ as EH,O as FH,h as GH,i as HH,p as IH,se as JH,NO as KH,$Q as LH,w8 as MH,I as NH,_1 as OH,G6 as PH,H9 as QH,RO as RH,d6 as SH,R as TH,FO as UH,p6 as VH,J6 as WH,H00 as XH,f8 as YH,E as ZH,Q8 as _H,LO as $H,v5 as aI,M4 as bI,AO as cI,V00 as dI,_8 as eI,R00 as fI,X3 as gI,L00 as hI,kK as iI,aE as jI,T00 as kI,j00 as lI,x00 as mI,y00 as nI,b00 as oI,PO as pI,ZQ as qI,yK as rI,p00 as sI,u00 as tI,jO as uI,l00 as vI,i00 as wI,K2 as xI,n00 as yI,HQ as zI,W2 as AI,c6 as BI,SO as CI,xO as DI,t00 as EI,P4 as FI,k5 as GI,hK as HI,KQ as II,Q10 as JI,Y10 as KI,y5 as LI,kO as MI,p9 as NI,H10 as OI,u6 as PI,B10 as QI,WQ as RI,W9 as SI,jX as TI,g0 as UI,V10 as VI,U10 as WI,N10 as XI,C10 as YI,j10 as ZI,S10 as _I,E1 as $I,Y3 as aJ,k10 as bJ,G3 as cJ,b5 as dJ,h10 as eJ,m10 as fJ,J3 as gJ,gO as hJ,d10 as iJ,hO as jJ,$3 as kJ,p10 as lJ,mK as mJ,c10 as nJ,Z0 as oJ,u10 as pJ,dK as qJ,f10 as rJ,i10 as sJ,r10 as tJ,t10 as uJ,X80 as vJ,rJ as wJ,Z80 as xJ,B80 as yJ,V80 as zJ,B2 as AJ,o8 as BJ,D8 as CJ,gF0 as DJ,mO as EJ,fK as FJ,Qz as GJ,Kz as HJ,vF0 as IJ,c9 as JJ,Vz as KJ,j0 as LJ,vX as MJ,P0 as NJ,OQ as OJ,zQ as PJ,U8 as QJ,F3 as RJ,M3 as SJ,nz as TJ,E4 as UJ,Z1 as VJ,RW as WJ,v4 as XJ,N40 as YJ,ON as ZJ,L2 as _J,Z6 as $J,I2 as aK,H1 as bK,Y8 as cK,c40 as dK,u40 as eK,l40 as fK,_9 as gK,kW as hK,Gx as iK,IQ as jK,QR as kK,bW as lK,r40 as mK,JR as nK,v2 as oK,Q90 as pK,J90 as qK,$90 as rK,S2 as sK,mX as tK,K90 as uK,gX as vK,B90 as wK,O90 as xK,z90 as yK,N90 as zK,w90 as AK,ZR as BK,HR as CK,QX0 as DK,dX as EK,GX0 as FK,JX0 as GK,$X0 as HK,s3 as IK,i5 as JK,t3 as KK,I6 as LK,hW as MK,cW as NK,uW as OK,Y$ as PK,wx as QK,OR as RK,xX0 as SK,MR as TK,n8 as UK,TR as VK,K6 as WK,IR as XK,f1 as YK,n9 as ZK,b2 as _K,r5 as $K,y4 as aL,$50 as bL,XB as cL,jQ as dL,vR as eL,fx as fL,V0 as gL,K1 as hL,S50 as iL,VB as jL,n6 as kL,r9 as lL,vF as mL,V70 as nL,Hv as oL,Wv as pL,cF as qL,kQ as rL,HQ0 as sL,Rv as tL,U9 as uL,fF as vL,KQ0 as wL,TB as xL,s5 as yL,t5 as zL,w$ as AL,lF as BL,oF as CL,iF as DL,IB as EL,zQ0 as FL,wv as GL,Iv as HL,T0 as IL,j as JL,Sv as KL,xv as LL,bQ as ML,u2 as NL,q9 as OL,yQ as PL,gQ as QL,mQ0 as RL,dQ0 as SL,pQ0 as TL,hQ as UL,rQ0 as VL,t6 as WL,M$ as XL,gv as YL,eF as ZL,SY0 as _L,lv as $L,X20 as aM,ov as bM,I20 as cM,E20 as dM,S20 as eM,g20 as fM,m20 as gM,f20 as hM,n20 as iM,r20 as jM,Wk as kM,Bk as lM,BG0 as mM,Vk as nM,yB as oM,DG0 as pM,UG0 as qM,$L as rM,OG0 as sM,Dk as tM,e5 as uM,oX as vM,jG0 as wM,EG0 as xM,qk as yM,xG0 as zM,Ok as AM,HL as BM,KL as CM,T$ as DM,uG0 as EM,Rk as FM,Lk as GM,KJ0 as HM,WJ0 as IM,x$ as JM,BJ0 as KM,VJ0 as LM,_J0 as MM,UJ0 as NM,qJ0 as OM,OJ0 as PM,zJ0 as QM,NJ0 as RM,RJ0 as SM,v$ as TM,FL as UM,TJ0 as VM,IJ0 as WM,CJ0 as XM,jJ0 as YM,EJ0 as ZM,vJ0 as _M,kJ0 as $M,yJ0 as aN,bJ0 as bN,gJ0 as cN,hJ0 as dN,mJ0 as eN,nk as fN,cJ0 as gN,uJ0 as hN,y$ as iN,fJ0 as jN,lJ0 as kN,oJ0 as lN,PL as mN,iJ0 as nN,nJ0 as oN,rJ0 as pN,aJ0 as qN,sJ0 as rN,tJ0 as sN,eJ0 as tN,X30 as uN,Q30 as vN,Y30 as wN,Wy as xN,oB as yN,q30 as zN,O30 as AN,_y as BN,rX as CN,p$ as DN,c$ as EN,s2 as FN,A30 as GN,ny as HN,J$0 as IN,$$0 as JN,ry as KN,Z$0 as LN,cL as MN,Ny as NN,S30 as ON,Py as PN,Cy as QN,rL as RN,hy as SN,Y5 as TN,KU0 as UN,mA as VN,Gd as WN,Jd as XN,qU0 as YN,Zd as ZN,Hd as _N,mV as $N,sQ as aO,BG as bO,gU0 as cO,_6 as dO,J8 as eO,dU0 as fO,cU0 as gO,uU0 as hO,BZ as iO,dV as jO,dA as kO,pA as lO,W0 as mO,e9 as nO,pV as oO,Bd as pO,cV as qO,fU0 as rO,lU0 as sO,oU0 as tO,Q1 as uO,VZ as vO,aU0 as wO,WG as xO,sU0 as yO,$8 as zO,tU0 as AO,i1 as BO,D7 as CO,uV as DO,Ud as EO,X0 as FO,lA as GO,tQ as HO,XX as IO,f0 as JO,Uq0 as KO,wd as LO,_Z as MO,qq0 as NO,Oq0 as OO,zq0 as PO,Rq0 as QO,Fq0 as RO,Ad as SO,Lq0 as TO,wq0 as UO,Aq0 as VO,Mq0 as WO,Pq0 as XO,Tq0 as YO,Iq0 as ZO,Cq0 as _O,Md as $O,jq0 as aP,Td as bP,Eq0 as cP,Sq0 as dP,NZ as eP,xq0 as fP,lV as gP,Id as hP,yq0 as iP,bq0 as jP,gq0 as kP,hq0 as lP,mq0 as mP,dq0 as nP,Cd as oP,pq0 as pP,cq0 as qP,uq0 as rP,jd as sP,rq0 as tP,Sd as uP,aq0 as vP,sq0 as wP,tq0 as xP,eq0 as yP,XO0 as zP,QO0 as AP,YO0 as BP,xd as CP,eQ as DP,BO0 as EP,oV as FP,yA as GP,bA as HP,md as IP,dd as JP,_O0 as KP,UO0 as LP,qO0 as MP,OO0 as NP,zO0 as OP,NO0 as PP,RO0 as QP,FO0 as RP,nV as SP,rA as TP,RZ as UP,fd as VP,TO0 as WP,ld as XP,od as YP,id as ZP,nd as _P,_G as $P,FZ as aQ,gA as bQ,aV as cQ,sV as dQ,lO0 as eQ,td as fQ,Xp as gQ,Yp as hQ,$p as iQ,eO0 as jQ,Wp as kQ,eV as lQ,Nz0 as mQ,Rz0 as nQ,Fz0 as oQ,Up as pQ,Np as qQ,QM as rQ,pz0 as sQ,Fp as tQ,wp as uQ,Mp as vQ,rz0 as wQ,E6 as xQ,az0 as yQ,sz0 as zQ,VN0 as AQ,NN0 as BQ,TN0 as CQ,CN0 as DQ};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{wf as BX}from"./chunk-51vn4f06.js";import{Dr as AQ,Er as zQ,Gr as O,Jr as f,Qr as i,Rr as l,Vr as u,Wr as yQ,Xr as _,Yr as qQ,Zr as MQ,_r as s,cs as EQ,dr as p,fr as mQ,jr as UQ,kr as ZQ,tr as r,xr as gQ,yr as cQ}from"./chunk-vbcekkw2.js";import{es as QQ,ps as uQ,rs as YQ}from"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import{fw as Q}from"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import{QQ as wX}from"./chunk-9svh74gt.js";var dQ=wX(BX(),1);function wQ(X){var Y,L,Z,K;if(X==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let U=(Y=X.promptTokenCount)!=null?Y:0,R=(L=X.candidatesTokenCount)!=null?L:0,N=(Z=X.cachedContentTokenCount)!=null?Z:0,z=(K=X.thoughtsTokenCount)!=null?K:0;return{inputTokens:{total:U,noCache:U-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:R+z,text:R,reasoning:z},raw:X}}function g(X,Y=!0){if(X==null)return;if(iQ(X)){if(Y)return;if(typeof X==="object"&&X.description)return{type:"object",description:X.description};return{type:"object"}}if(typeof X==="boolean")return{type:"boolean",properties:{}};let{type:L,description:Z,required:K,properties:U,items:R,allOf:N,anyOf:z,oneOf:D,format:A,const:V,minLength:W,enum:B}=X,E={};if(Z)E.description=Z;if(K)E.required=K;if(A)E.format=A;if(V!==void 0)E.enum=[V];if(L)if(Array.isArray(L)){let J=L.includes("null"),j=L.filter((w)=>w!=="null");if(j.length===0)E.type="null";else if(E.anyOf=j.map((w)=>({type:w})),J)E.nullable=!0}else E.type=L;if(B!==void 0)E.enum=B;if(U!=null)E.properties=Object.entries(U).reduce((J,[j,w])=>{return J[j]=g(w,!1),J},{});if(R)E.items=Array.isArray(R)?R.map((J)=>g(J,!1)):g(R,!1);if(N)E.allOf=N.map((J)=>g(J,!1));if(z)if(z.some((J)=>typeof J==="object"&&(J==null?void 0:J.type)==="null")){let J=z.filter((j)=>!(typeof j==="object"&&(j==null?void 0:j.type)==="null"));if(J.length===1){let j=g(J[0],!1);if(typeof j==="object")E.nullable=!0,Object.assign(E,j)}else E.anyOf=J.map((j)=>g(j,!1)),E.nullable=!0}else E.anyOf=z.map((J)=>g(J,!1));if(D)E.oneOf=D.map((J)=>g(J,!1));if(W!==void 0)E.minLength=W;return E}function iQ(X){return X!=null&&typeof X==="object"&&X.type==="object"&&(X.properties==null||Object.keys(X.properties).length===0)&&!X.additionalProperties}var lQ=/^data:([^;,]+);base64,(.+)$/s;function sQ(X){let Y=lQ.exec(X);if(Y==null)return;return{mediaType:Y[1],data:Y[2]}}function nQ(X){let Y=sQ(X);if(Y==null)return;return{inlineData:{mimeType:Y.mediaType,data:Y.data}}}function aQ(X,Y,L){let Z=[],K=[];for(let U of L)switch(U.type){case"text":{K.push(U.text);break}case"image-data":case"file-data":{Z.push({inlineData:{mimeType:U.mediaType,data:U.data}});break}case"image-url":case"file-url":{let R=nQ(U.url);if(R!=null)Z.push(R);else K.push(JSON.stringify(U));break}default:{K.push(JSON.stringify(U));break}}X.push({functionResponse:{name:Y,response:{name:Y,content:K.length>0?K.join(`
|
|
3
3
|
`):"Tool executed successfully."},...Z.length>0?{parts:Z}:{}}})}function rQ(X,Y,L){for(let Z of L)switch(Z.type){case"text":X.push({functionResponse:{name:Y,response:{name:Y,content:Z.text}}});break;case"image-data":X.push({inlineData:{mimeType:String(Z.mediaType),data:String(Z.data)}},{text:"Tool executed successfully and returned this image as a response"});break;default:X.push({text:JSON.stringify(Z)});break}}function tQ(X,Y){var L,Z,K,U,R,N,z,D;let A=[],V=[],W=!0,B=(L=Y==null?void 0:Y.isGemmaModel)!=null?L:!1,E=(Z=Y==null?void 0:Y.providerOptionsName)!=null?Z:"google",J=(K=Y==null?void 0:Y.supportsFunctionResponseParts)!=null?K:!0;for(let{role:j,content:w}of X)switch(j){case"system":{if(!W)throw new YQ({functionality:"system messages are only supported at the beginning of the conversation"});A.push({text:w});break}case"user":{W=!1;let q=[];for(let F of w)switch(F.type){case"text":{q.push({text:F.text});break}case"file":{let b=F.mediaType==="image/*"?"image/jpeg":F.mediaType;q.push(F.data instanceof URL?{fileData:{mimeType:b,fileUri:F.data.toString()}}:{inlineData:{mimeType:b,data:ZQ(F.data)}});break}}V.push({role:"user",parts:q});break}case"assistant":{W=!1,V.push({role:"model",parts:w.map((q)=>{var F,b,S,y;let $=(y=(F=q.providerOptions)==null?void 0:F[E])!=null?y:E!=="google"?(b=q.providerOptions)==null?void 0:b.google:(S=q.providerOptions)==null?void 0:S.vertex,P=($==null?void 0:$.thoughtSignature)!=null?String($.thoughtSignature):void 0;switch(q.type){case"text":return q.text.length===0?void 0:{text:q.text,thoughtSignature:P};case"reasoning":return q.text.length===0?void 0:{text:q.text,thought:!0,thoughtSignature:P};case"file":{if(q.data instanceof URL)throw new YQ({functionality:"File data URLs in assistant messages are not supported"});return{inlineData:{mimeType:q.mediaType,data:ZQ(q.data)},...($==null?void 0:$.thought)===!0?{thought:!0}:{},thoughtSignature:P}}case"tool-call":{let x=($==null?void 0:$.serverToolCallId)!=null?String($.serverToolCallId):void 0,k=($==null?void 0:$.serverToolType)!=null?String($.serverToolType):void 0;if(x&&k)return{toolCall:{toolType:k,args:typeof q.input==="string"?JSON.parse(q.input):q.input,id:x},thoughtSignature:P};return{functionCall:{name:q.toolName,args:q.input},thoughtSignature:P}}case"tool-result":{let x=($==null?void 0:$.serverToolCallId)!=null?String($.serverToolCallId):void 0,k=($==null?void 0:$.serverToolType)!=null?String($.serverToolType):void 0;if(x&&k)return{toolResponse:{toolType:k,response:q.output.type==="json"?q.output.value:{},id:x},thoughtSignature:P};return}}}).filter((q)=>q!==void 0)});break}case"tool":{W=!1;let q=[];for(let F of w){if(F.type==="tool-approval-response")continue;let b=(z=(U=F.providerOptions)==null?void 0:U[E])!=null?z:E!=="google"?(R=F.providerOptions)==null?void 0:R.google:(N=F.providerOptions)==null?void 0:N.vertex,S=(b==null?void 0:b.serverToolCallId)!=null?String(b.serverToolCallId):void 0,y=(b==null?void 0:b.serverToolType)!=null?String(b.serverToolType):void 0;if(S&&y){let P=(b==null?void 0:b.thoughtSignature)!=null?String(b.thoughtSignature):void 0;if(V.length>0){let x=V[V.length-1];if(x.role==="model"){x.parts.push({toolResponse:{toolType:y,response:F.output.type==="json"?F.output.value:{},id:S},thoughtSignature:P});continue}}}let $=F.output;if($.type==="content")if(J)aQ(q,F.toolName,$.value);else rQ(q,F.toolName,$.value);else q.push({functionResponse:{name:F.toolName,response:{name:F.toolName,content:$.type==="execution-denied"?(D=$.reason)!=null?D:"Tool execution denied.":$.value}}})}V.push({role:"user",parts:q});break}}if(B&&A.length>0&&V.length>0&&V[0].role==="user"){let j=A.map((w)=>w.text).join(`
|
|
4
4
|
|
|
5
5
|
`);V[0].parts.unshift({text:j+`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{a,b,c,d,e,f,g}from"./chunk-78e76m4h.js";import"./chunk-kr975sx0.js";import"./chunk-cm7yp259.js";import"./chunk-ncvr75f6.js";import"./chunk-csmdhh7r.js";import"./chunk-cg7zeppb.js";import"./chunk-b274mb6v.js";import"./chunk-h6kmpgak.js";import"./chunk-3tf7xfw5.js";import"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.js";export{f as statusEffect,a as resolveApiKeyFlag,e as logoutEffect,d as loginEffect,c as interactiveLogin,b as apiKeyLoginEffect,g as AuthCommand};
|