@qitqode/qitqode-android-arm64 0.1.23 → 0.1.25
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-hyr049cr.js → chunk-0304b7xg.js} +1 -1
- package/bundle/{chunk-ky840wjj.js → chunk-08ba67f4.js} +1 -1
- package/bundle/chunk-0eneddjj.js +2 -0
- package/bundle/{chunk-mj7rk4xs.js → chunk-0hsb4knd.js} +1 -1
- package/bundle/{chunk-k0arcqnt.js → chunk-0jaxgrq0.js} +2 -2
- package/bundle/chunk-0ke6x10y.js +5 -0
- package/bundle/{chunk-naq602da.js → chunk-0rmmg3g4.js} +1 -1
- package/bundle/chunk-0vqrakhw.js +3 -0
- package/bundle/{chunk-kn9skc0g.js → chunk-0x7dbj5e.js} +1 -1
- package/bundle/{chunk-vay29sqp.js → chunk-0xmx2zfg.js} +1 -1
- package/bundle/chunk-0yb4pxjv.js +2 -0
- package/bundle/chunk-129kq1w7.js +2 -0
- package/bundle/{chunk-2e9a9brg.js → chunk-14qvaxtp.js} +1 -1
- package/bundle/chunk-1a5hq7d5.js +2 -0
- package/bundle/{chunk-bkaprkf6.js → chunk-1ce5jpdc.js} +1 -1
- package/bundle/{chunk-gz8x3915.js → chunk-1e8mja6v.js} +1 -1
- package/bundle/{chunk-12cd1yj9.js → chunk-1n1dh6zj.js} +1 -1
- package/bundle/{chunk-q1nvfmrm.js → chunk-1txkz6dt.js} +1 -1
- package/bundle/chunk-1w3y1dkk.js +2 -0
- package/bundle/{chunk-mg03szpz.js → chunk-23f6rc7a.js} +1 -1
- package/bundle/chunk-26qt44f1.js +3 -0
- package/bundle/{chunk-101y7ce2.js → chunk-2armxd20.js} +1 -1
- package/bundle/{chunk-zx90w4mt.js → chunk-2je5tp0x.js} +1 -1
- package/bundle/{chunk-9jjjzmvn.js → chunk-2k2axg73.js} +1 -1
- package/bundle/chunk-2pkake0h.js +2 -0
- package/bundle/{chunk-576zfh1s.js → chunk-2rxt1s22.js} +2 -2
- package/bundle/{chunk-xjr0xy58.js → chunk-2s28fdbp.js} +1 -1
- package/bundle/{chunk-haw1jzwb.js → chunk-2sy1wx99.js} +1 -1
- package/bundle/{chunk-bwgnmy92.js → chunk-2z35ewwc.js} +1 -1
- package/bundle/{chunk-y62tnk9q.js → chunk-2zj3h3xj.js} +2 -2
- package/bundle/chunk-32188rww.js +2 -0
- package/bundle/chunk-334tc1rh.js +2 -0
- package/bundle/{chunk-dn1jryxz.js → chunk-3dvyfmgc.js} +1 -1
- package/bundle/{chunk-2qy760rf.js → chunk-3e8p4a3y.js} +1 -1
- package/bundle/chunk-3f054f69.js +800 -0
- package/bundle/chunk-3ff94m8r.js +2 -0
- package/bundle/{chunk-3wzpdvpg.js → chunk-3fy57jcy.js} +1 -1
- package/bundle/{chunk-hk1ha5fj.js → chunk-3h08jdq8.js} +2 -2
- package/bundle/{chunk-44amvtcs.js → chunk-3j7skhxg.js} +2 -2
- package/bundle/{chunk-qkn4039t.js → chunk-3jhx8g5d.js} +1 -1
- package/bundle/{chunk-rmmyjyr9.js → chunk-3nhth7c2.js} +1 -1
- package/bundle/{chunk-b8z4hgq0.js → chunk-3tnek022.js} +1 -1
- package/bundle/{chunk-m81z3zgm.js → chunk-3xna2rk5.js} +2 -2
- package/bundle/{chunk-an5sr6gw.js → chunk-42t25nkb.js} +1 -1
- package/bundle/{chunk-3w60y2x5.js → chunk-453wpzg6.js} +1 -1
- package/bundle/chunk-4aqd2bty.js +2 -0
- package/bundle/{chunk-y0qaz8db.js → chunk-4kb2efq3.js} +1 -1
- package/bundle/{chunk-cbfjjbfd.js → chunk-4pssh5d3.js} +2 -2
- package/bundle/{chunk-9yaw0hbp.js → chunk-4stgw33j.js} +1 -1
- package/bundle/{chunk-cz8nnm2a.js → chunk-4w5t515p.js} +1 -1
- package/bundle/chunk-4wa0gf8y.js +28 -0
- package/bundle/{chunk-z1hd38wp.js → chunk-4wgb80jm.js} +2 -2
- package/bundle/{chunk-c38ppnm8.js → chunk-4wyjapes.js} +2 -2
- package/bundle/chunk-4xg5ptk9.js +2 -0
- package/bundle/chunk-54pk7nna.js +3 -0
- package/bundle/chunk-58680z2j.js +3 -0
- package/bundle/{chunk-2qj66wf5.js → chunk-5mdsrv0a.js} +1 -1
- package/bundle/{chunk-2adsn1ca.js → chunk-5mp82az0.js} +1 -1
- package/bundle/chunk-5nm36wxa.js +2 -0
- package/bundle/{chunk-7bxe5s20.js → chunk-5zw7knvd.js} +1 -1
- package/bundle/{chunk-63pvqy8n.js → chunk-61ks7c71.js} +3 -3
- package/bundle/chunk-64jet8nc.js +2 -0
- package/bundle/chunk-6584d9m8.js +2 -0
- package/bundle/chunk-66hv9bbw.js +2 -0
- package/bundle/{chunk-qr2ave8f.js → chunk-692vn48b.js} +1 -1
- package/bundle/chunk-6a1g6jzn.js +2 -0
- package/bundle/chunk-6be8p915.js +2 -0
- package/bundle/{chunk-3xf7q4ww.js → chunk-6ddp36ar.js} +1 -1
- package/bundle/chunk-6f03158n.js +2 -0
- package/bundle/{chunk-yffkcska.js → chunk-6gbaw2pk.js} +1 -1
- package/bundle/{chunk-07szgr15.js → chunk-6rrmjrm2.js} +1 -1
- package/bundle/{chunk-y2r3zker.js → chunk-6s2f5sv4.js} +1 -1
- package/bundle/{chunk-799c17nk.js → chunk-754varfr.js} +2 -2
- package/bundle/{chunk-ecczet3b.js → chunk-78h5dd4t.js} +2 -2
- package/bundle/{chunk-ejy5404v.js → chunk-7d6jhzng.js} +1 -1
- package/bundle/{chunk-kpkbyek5.js → chunk-7fx6x8x9.js} +2 -2
- package/bundle/chunk-7jnjttqx.js +2 -0
- package/bundle/{chunk-t66hycva.js → chunk-7q5srx7q.js} +2 -2
- package/bundle/chunk-7q8pa6s8.js +2 -0
- package/bundle/{chunk-36c2avm4.js → chunk-7qvkyjjg.js} +1 -1
- package/bundle/{chunk-22tf95dw.js → chunk-7rjf9b8n.js} +2 -2
- package/bundle/{chunk-zzdbrxkh.js → chunk-7v4fzkbb.js} +1 -1
- package/bundle/chunk-7w84hfxs.js +3 -0
- package/bundle/{chunk-g8zrn0at.js → chunk-7ws3gdjq.js} +1 -1
- package/bundle/{chunk-my0kzcby.js → chunk-87x607rz.js} +310 -284
- package/bundle/{chunk-hnzs3ywg.js → chunk-8ahpk8td.js} +1 -1
- package/bundle/{chunk-62yja34m.js → chunk-8atry88r.js} +1 -1
- package/bundle/chunk-8casywce.js +2 -0
- package/bundle/chunk-8cty50g7.js +2 -0
- package/bundle/{chunk-5dpev64z.js → chunk-8gy99gfb.js} +2 -2
- package/bundle/chunk-8hxwxt5p.js +2 -0
- package/bundle/{chunk-px15ev1g.js → chunk-8jcx4tep.js} +2 -2
- package/bundle/chunk-8y8140dm.js +2 -0
- package/bundle/{chunk-fhjpfzjc.js → chunk-8za87zkr.js} +1 -1
- package/bundle/{chunk-m8njvpb8.js → chunk-99p5m2f1.js} +1 -1
- package/bundle/{chunk-c7dt464m.js → chunk-9dpn4792.js} +2 -2
- package/bundle/chunk-9dqcyt6x.js +2 -0
- package/bundle/{chunk-w6t1qmeg.js → chunk-9f6pqped.js} +1 -1
- package/bundle/chunk-9he248a8.js +2 -0
- package/bundle/{chunk-3ne6j2h5.js → chunk-9jncnqbj.js} +2 -2
- package/bundle/{chunk-mwjhyj53.js → chunk-9jvnc14g.js} +1 -1
- package/bundle/chunk-9qmmse2n.js +2 -0
- package/bundle/chunk-9r6bvkp4.js +8 -0
- package/bundle/chunk-9va5eh9s.js +3 -0
- package/bundle/chunk-9w5rx0fb.js +3 -0
- package/bundle/{chunk-g5g9r3v5.js → chunk-a27yjp71.js} +1 -1
- package/bundle/chunk-aabrsxrq.js +2 -0
- package/bundle/{chunk-shav33fq.js → chunk-ag9thqkv.js} +2 -2
- package/bundle/chunk-amx3x4kd.js +3 -0
- package/bundle/{chunk-863s0tqa.js → chunk-aqm597px.js} +2 -2
- package/bundle/chunk-atd0q4v8.js +3 -0
- package/bundle/{chunk-58w4dhb6.js → chunk-av290sja.js} +1 -1
- package/bundle/chunk-avaba4sr.js +2 -0
- package/bundle/{chunk-p33fchnf.js → chunk-aw0q4y3s.js} +1 -1
- package/bundle/{chunk-7pr4jxkn.js → chunk-b2xya6pq.js} +1 -1
- package/bundle/{chunk-hqv0s6sw.js → chunk-b50t4jc5.js} +1 -1
- package/bundle/chunk-bdy1etja.js +2 -0
- package/bundle/{chunk-bwvjft74.js → chunk-bnc4626b.js} +1 -1
- package/bundle/{chunk-k5294ajv.js → chunk-bpnpxdyv.js} +2 -2
- package/bundle/chunk-bqdvqmjc.js +2 -0
- package/bundle/chunk-bqs6a1ts.js +14 -0
- package/bundle/{chunk-n889mwgv.js → chunk-bsqcfqya.js} +1 -1
- package/bundle/{chunk-ntfh16rj.js → chunk-c1ypbbka.js} +2 -2
- package/bundle/{chunk-0136n3jt.js → chunk-c27rpvdz.js} +1 -1
- package/bundle/chunk-cdws8ggq.js +2 -0
- package/bundle/{chunk-5x19yah0.js → chunk-cjxp72dv.js} +2 -2
- package/bundle/chunk-cqs9a2cs.js +2 -0
- package/bundle/{chunk-b54t7ycj.js → chunk-crap29f6.js} +1 -1
- package/bundle/{chunk-b2k9yafd.js → chunk-d0m7nbbx.js} +2 -2
- package/bundle/chunk-d0rjst58.js +2 -0
- package/bundle/{chunk-y68fp4kt.js → chunk-d1bsxz2t.js} +1 -1
- package/bundle/{chunk-2e76kpa6.js → chunk-d5b0bqbr.js} +1 -1
- package/bundle/chunk-d833a2fj.js +2 -0
- package/bundle/{chunk-mwbcmvmh.js → chunk-dd11kryy.js} +2 -2
- package/bundle/chunk-dday4nm2.js +2 -0
- package/bundle/{chunk-05badzhy.js → chunk-ddxjc803.js} +2 -2
- package/bundle/{chunk-0vhsc0yh.js → chunk-dee1a3yk.js} +2 -2
- package/bundle/{chunk-kktcccep.js → chunk-dgggvses.js} +1 -1
- package/bundle/{chunk-2es79khv.js → chunk-dk3z4k46.js} +3 -3
- package/bundle/{chunk-24r5h0fx.js → chunk-e075v4e9.js} +2 -2
- package/bundle/{chunk-m34zrf70.js → chunk-e1pwnf0b.js} +2 -2
- package/bundle/chunk-e2sj30hk.js +2 -0
- package/bundle/{chunk-t86vj45b.js → chunk-eaatrmcg.js} +1 -1
- package/bundle/{chunk-g6gs7cc6.js → chunk-eg7drzzt.js} +1 -1
- package/bundle/chunk-enc0fykg.js +2 -0
- package/bundle/chunk-evan93av.js +2 -0
- package/bundle/{chunk-wk11xsdh.js → chunk-evmfntm3.js} +1 -1
- package/bundle/{chunk-jvkqvgae.js → chunk-ey4ktbyb.js} +1 -1
- package/bundle/{chunk-fnect0ny.js → chunk-f55txcsa.js} +1 -1
- package/bundle/chunk-f600dzsr.js +2 -0
- package/bundle/chunk-f6jzwydk.js +2 -0
- package/bundle/{chunk-f958hsha.js → chunk-f84cd0a1.js} +2 -2
- package/bundle/{chunk-5wr5gpaa.js → chunk-fgw420gb.js} +1 -1
- package/bundle/chunk-fv67ng8z.js +2 -0
- package/bundle/{chunk-g7g3zm4v.js → chunk-g3s2z5xa.js} +1 -1
- package/bundle/{chunk-wmmck56g.js → chunk-g4qwkcdv.js} +1 -1
- package/bundle/{chunk-yccm7cfm.js → chunk-g73drh98.js} +3 -3
- package/bundle/{chunk-8hh5ejmr.js → chunk-gaen9ya4.js} +2 -2
- package/bundle/{chunk-m3gsrb1x.js → chunk-gefh32jb.js} +1 -1
- package/bundle/chunk-gevazsx3.js +2 -0
- package/bundle/{chunk-tfpwfczs.js → chunk-gfmfrkxc.js} +1 -1
- package/bundle/{chunk-ac69b9tm.js → chunk-ggeena9t.js} +1 -1
- package/bundle/chunk-gh18pzkx.js +2 -0
- package/bundle/chunk-gnvvgr4y.js +2 -0
- package/bundle/chunk-grkkzrg1.js +5 -0
- package/bundle/chunk-gsbjs2ws.js +2 -0
- package/bundle/{chunk-1w8b88y5.js → chunk-gsz1wqy6.js} +1 -1
- package/bundle/{chunk-ar1by07g.js → chunk-gvtw9c44.js} +1 -1
- package/bundle/chunk-gw0j8hr9.js +3 -0
- package/bundle/{chunk-3j6nrrva.js → chunk-h19ty95q.js} +1 -1
- package/bundle/{chunk-381j1hqf.js → chunk-h2fh1g8g.js} +1 -1
- package/bundle/{chunk-n1m5qdf5.js → chunk-h56jxxvj.js} +1 -1
- package/bundle/{chunk-87pzwjjj.js → chunk-hmfefq0d.js} +4 -4
- package/bundle/{chunk-g7742sqm.js → chunk-hvpe07pt.js} +1 -1
- package/bundle/{chunk-yyarzhw3.js → chunk-hwbxehhf.js} +1 -1
- package/bundle/{chunk-agyxa9nj.js → chunk-hznsed5n.js} +2 -2
- package/bundle/{chunk-fvwys8ej.js → chunk-j5b5h08g.js} +1 -1
- package/bundle/chunk-j7pdz979.js +2 -0
- package/bundle/{chunk-9zg3y89v.js → chunk-j9s62g01.js} +2 -2
- package/bundle/chunk-jfe2qbv8.js +2 -0
- package/bundle/{chunk-1vx26nt2.js → chunk-jgs6ngte.js} +1 -1
- package/bundle/{chunk-dsny9dh8.js → chunk-jhq5bvhs.js} +2 -2
- package/bundle/{chunk-9n6f9n1c.js → chunk-jq81hb32.js} +2 -2
- package/bundle/{chunk-nb0gc3sx.js → chunk-jqzejny3.js} +1 -1
- package/bundle/{chunk-t42kh492.js → chunk-jtrcnpm7.js} +2 -2
- package/bundle/{chunk-vxc5q0wk.js → chunk-jv98gw88.js} +2 -2
- package/bundle/chunk-jvaffe5d.js +10 -0
- package/bundle/chunk-k6zvb8xm.js +2 -0
- package/bundle/{chunk-erh9y0sx.js → chunk-k8bp3jjv.js} +1 -1
- package/bundle/{chunk-q1472d56.js → chunk-kb14wxcs.js} +2 -2
- package/bundle/chunk-kcht9kvx.js +2 -0
- package/bundle/{chunk-jge74hh4.js → chunk-kdcspxvq.js} +1 -1
- package/bundle/{chunk-w6zgm4vn.js → chunk-kdct3e8s.js} +1 -1
- package/bundle/{chunk-m8tfv36b.js → chunk-kgsq240v.js} +2 -2
- package/bundle/chunk-knvsa1d4.js +2 -0
- package/bundle/chunk-kp6d68hd.js +2 -0
- package/bundle/{chunk-jq6y56m5.js → chunk-kwm87f18.js} +1 -1
- package/bundle/{chunk-29hmwttd.js → chunk-kyny0t2g.js} +2 -2
- package/bundle/{chunk-v1hvnq7y.js → chunk-m2ang7yb.js} +1 -1
- package/bundle/{chunk-r0sjwtfc.js → chunk-mbh1pdv9.js} +2 -2
- package/bundle/{chunk-g2ec45xj.js → chunk-mczw8e3s.js} +2 -2
- package/bundle/chunk-me78p9x4.js +2 -0
- package/bundle/{chunk-afpwjn78.js → chunk-meaybtcc.js} +3 -3
- package/bundle/{chunk-k0v37hc6.js → chunk-mkdyknbz.js} +1 -1
- package/bundle/{chunk-fp5mvrrx.js → chunk-mkyrg7gt.js} +2 -2
- package/bundle/{chunk-ax9yyznf.js → chunk-mr7agwgn.js} +1 -1
- package/bundle/{chunk-9y65kbcf.js → chunk-msm3r7ny.js} +2 -2
- package/bundle/chunk-mv1d7wyt.js +2 -0
- package/bundle/{chunk-gjsaw7wm.js → chunk-mybpgrjj.js} +2 -2
- package/bundle/{chunk-1eg8mr1q.js → chunk-n8dcmjph.js} +1 -1
- package/bundle/chunk-n8xmmxh5.js +2 -0
- package/bundle/chunk-n90219q9.js +2 -0
- package/bundle/chunk-nckg3ydx.js +2 -0
- package/bundle/{chunk-apv1v4tk.js → chunk-nf8gkxbk.js} +2 -2
- package/bundle/chunk-nhaenjw3.js +2 -0
- package/bundle/chunk-nhtrt5ec.js +2 -0
- package/bundle/{chunk-sgq94p3x.js → chunk-nhx2xp2x.js} +1 -1
- package/bundle/{chunk-mt8btwrv.js → chunk-nmnsf3fc.js} +1 -1
- package/bundle/{chunk-wf2mj6de.js → chunk-nqefvn28.js} +1 -1
- package/bundle/{chunk-kdr6nxmk.js → chunk-p409grvp.js} +2 -2
- package/bundle/chunk-p72n0tfq.js +2 -0
- package/bundle/{chunk-rwanncah.js → chunk-p80dc6kt.js} +2 -2
- package/bundle/{chunk-z65snfyw.js → chunk-p883sz67.js} +1 -1
- package/bundle/{chunk-eqed7tvt.js → chunk-p8enedkf.js} +1 -1
- package/bundle/chunk-pd33qvr0.js +2 -0
- package/bundle/chunk-pepn5jp4.js +3 -0
- package/bundle/chunk-pf7cj4jd.js +3 -0
- package/bundle/{chunk-q6x5bmc3.js → chunk-pfn1db1m.js} +2 -2
- package/bundle/{chunk-xtj5qqsw.js → chunk-pk0tytcm.js} +1 -1
- package/bundle/chunk-pq3622ae.js +2 -0
- package/bundle/{chunk-26m5yn5d.js → chunk-psveqqv2.js} +1 -1
- package/bundle/{chunk-w8r4gjea.js → chunk-pvee151a.js} +1 -1
- package/bundle/chunk-qatj4h6b.js +2 -0
- package/bundle/{chunk-cwkdc1cc.js → chunk-qdnxv55k.js} +1 -1
- package/bundle/{chunk-s75chpxq.js → chunk-qe0sfafy.js} +2 -2
- package/bundle/chunk-qfz0a58d.js +2 -0
- package/bundle/chunk-qjwfj51e.js +2 -0
- package/bundle/chunk-qkg73rs9.js +2 -0
- package/bundle/{chunk-7b69jj5g.js → chunk-qm9ezq93.js} +1 -1
- package/bundle/{chunk-hvcdemxe.js → chunk-qnqqrvvs.js} +2 -2
- package/bundle/{chunk-bqeyh2gx.js → chunk-qnv2v02g.js} +2 -2
- package/bundle/{chunk-kfdqfha0.js → chunk-qpm5afdz.js} +1 -1
- package/bundle/chunk-qvcfst7n.js +11 -0
- package/bundle/{chunk-xqzbcs8x.js → chunk-rgecc41f.js} +2 -2
- package/bundle/chunk-rjcptzem.js +8 -0
- package/bundle/{chunk-k1ht1sjr.js → chunk-rjf21v5c.js} +1 -1
- package/bundle/chunk-rmsqb6r4.js +10 -0
- package/bundle/{chunk-dq1wprmb.js → chunk-rq4hqwjy.js} +1 -1
- package/bundle/chunk-rqrpbcm6.js +2 -0
- package/bundle/{chunk-kbhby60s.js → chunk-rs1mm5ef.js} +1 -1
- package/bundle/{chunk-jj7wrfty.js → chunk-rze20q68.js} +1 -1
- package/bundle/chunk-s76hdgw6.js +2 -0
- package/bundle/chunk-s7vhjg9e.js +2 -0
- package/bundle/{chunk-88kt6qmd.js → chunk-se79ke63.js} +2 -2
- package/bundle/chunk-sec3a60m.js +2 -0
- package/bundle/chunk-sjnt5e6w.js +2 -0
- package/bundle/chunk-sntb757q.js +2 -0
- package/bundle/chunk-svscftd7.js +2 -0
- package/bundle/chunk-sx0cabcs.js +2 -0
- package/bundle/{chunk-6j07cgna.js → chunk-sx5m81em.js} +1 -1
- package/bundle/{chunk-yr4evt94.js → chunk-syhay5ye.js} +1 -1
- package/bundle/{chunk-5d18fd4p.js → chunk-t07a5431.js} +1 -1
- package/bundle/{chunk-hs8qwx4n.js → chunk-t0amhhsk.js} +1 -1
- package/bundle/{chunk-70gfpkxv.js → chunk-t2tsyazc.js} +1 -1
- package/bundle/{chunk-7m4camry.js → chunk-tdmaxc6n.js} +1 -1
- package/bundle/{chunk-y2h0adg5.js → chunk-tf1me2r4.js} +3 -3
- package/bundle/{chunk-cn7nnjsf.js → chunk-tfggzzqw.js} +1 -1
- package/bundle/chunk-tmdm6vm6.js +2 -0
- package/bundle/{chunk-qx9j6nz1.js → chunk-v4xgceeq.js} +1 -1
- package/bundle/chunk-v6g0ksks.js +2 -0
- package/bundle/chunk-v7ah9gg0.js +3 -0
- package/bundle/{chunk-g0vzdt58.js → chunk-vb4e7y4d.js} +1 -1
- package/bundle/chunk-vbf73c7z.js +2 -0
- package/bundle/chunk-vbf9jpas.js +2 -0
- package/bundle/{chunk-5vyper2h.js → chunk-veev25yg.js} +1 -1
- package/bundle/{chunk-sjqgmp12.js → chunk-vfj5nwab.js} +2 -2
- package/bundle/{chunk-a3te67a5.js → chunk-vmgknvxs.js} +2 -2
- package/bundle/{chunk-agx5m1ev.js → chunk-vq6bh2z9.js} +1 -1
- package/bundle/{chunk-7n994qss.js → chunk-vqq5vmh1.js} +222 -222
- package/bundle/chunk-vrcf5q4s.js +2 -0
- package/bundle/chunk-vxrsp6n7.js +2 -0
- package/bundle/chunk-w8ax3pvh.js +2 -0
- package/bundle/chunk-w98r39gd.js +9 -0
- package/bundle/chunk-wb69d52j.js +3 -0
- package/bundle/{chunk-39h565hz.js → chunk-wmrq9qqf.js} +1 -1
- package/bundle/{chunk-8k4mkrdw.js → chunk-wrgg270f.js} +1 -1
- package/bundle/{chunk-w32tj884.js → chunk-ww8ear80.js} +2 -2
- package/bundle/{chunk-zeh3mjgp.js → chunk-x36jhtex.js} +1 -1
- package/bundle/{chunk-7tthc48p.js → chunk-x6b99nt3.js} +1 -1
- package/bundle/{chunk-k3pvgwgc.js → chunk-xdde80rf.js} +2 -2
- package/bundle/{chunk-ypff4a5n.js → chunk-xjrt0dta.js} +1 -1
- package/bundle/chunk-xk2cmh49.js +2 -0
- package/bundle/{chunk-3w9k7yxx.js → chunk-xqa6qkx2.js} +1 -1
- package/bundle/{chunk-scb48j07.js → chunk-xw283h2r.js} +2 -2
- package/bundle/{chunk-qzd0q1jg.js → chunk-xy4t5qf8.js} +1 -1
- package/bundle/{chunk-8e2wwdgb.js → chunk-xyn3xxfs.js} +1 -1
- package/bundle/chunk-xzhkfctf.js +2 -0
- package/bundle/chunk-y0xt5a6g.js +2 -0
- package/bundle/{chunk-26mt118z.js → chunk-ybn8tb09.js} +1 -1
- package/bundle/chunk-ydmrvx7q.js +2 -0
- package/bundle/{chunk-9tq5yt3t.js → chunk-ydsen7w0.js} +1 -1
- package/bundle/{chunk-0svy8w30.js → chunk-yhqk8bzk.js} +2 -2
- package/bundle/{chunk-shxny9x9.js → chunk-ykfq8bem.js} +1 -1
- package/bundle/{chunk-22vvjp4g.js → chunk-ym4ydwrz.js} +2 -2
- package/bundle/{chunk-1gg4c0pq.js → chunk-yzchwmb4.js} +1 -1
- package/bundle/{chunk-3cpqdake.js → chunk-z015twaq.js} +2 -2
- package/bundle/chunk-z2rtcgad.js +3 -0
- package/bundle/{chunk-c546xxjk.js → chunk-z3zx6g09.js} +1 -1
- package/bundle/chunk-z9b3t2jm.js +2 -0
- package/bundle/{chunk-brrtcqrc.js → chunk-zbdbsagd.js} +2 -2
- package/bundle/{chunk-y3qf1kg9.js → chunk-zh808d4t.js} +1 -1
- package/bundle/{chunk-7tb9fjvq.js → chunk-zny2qaqa.js} +2 -2
- package/bundle/{chunk-gzse9pab.js → chunk-zsnbxsdx.js} +2 -2
- package/bundle/{chunk-w9vv1whr.js → chunk-zss93r48.js} +1 -1
- package/bundle/chunk-zzr8smtm.js +2 -0
- package/bundle/index.js +16 -16
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-1by6y9tm.js +0 -2
- package/bundle/chunk-1gjh45v5.js +0 -9
- package/bundle/chunk-1p7wqmxp.js +0 -2
- package/bundle/chunk-1v47v7vm.js +0 -3
- package/bundle/chunk-21hnx8rx.js +0 -24
- package/bundle/chunk-22pvftx8.js +0 -2
- package/bundle/chunk-2bce1njy.js +0 -2
- package/bundle/chunk-2wcwbp3t.js +0 -799
- package/bundle/chunk-338hbnza.js +0 -11
- package/bundle/chunk-3gsvbfqz.js +0 -2
- package/bundle/chunk-3sem578c.js +0 -3
- package/bundle/chunk-3vgnqaem.js +0 -2
- package/bundle/chunk-3xrhxyz9.js +0 -2
- package/bundle/chunk-3zdyrnvp.js +0 -2
- package/bundle/chunk-4nhbgva1.js +0 -2
- package/bundle/chunk-5ch23jj3.js +0 -2
- package/bundle/chunk-5hzkd9te.js +0 -2
- package/bundle/chunk-5vwhfa42.js +0 -2
- package/bundle/chunk-662x3gq6.js +0 -2
- package/bundle/chunk-6an0pk19.js +0 -2
- package/bundle/chunk-6ybqwnp7.js +0 -2
- package/bundle/chunk-7365jzj1.js +0 -2
- package/bundle/chunk-7amvpgng.js +0 -2
- package/bundle/chunk-7dcz5ytp.js +0 -2
- package/bundle/chunk-7h7bwjmm.js +0 -2
- package/bundle/chunk-7vk5fhhv.js +0 -2
- package/bundle/chunk-7vqw9wge.js +0 -2
- package/bundle/chunk-7vxk5t11.js +0 -2
- package/bundle/chunk-83fm5xcn.js +0 -2
- package/bundle/chunk-8b644ae2.js +0 -2
- package/bundle/chunk-av2q0ffj.js +0 -2
- package/bundle/chunk-avk3wfch.js +0 -7
- package/bundle/chunk-azna4wdf.js +0 -2
- package/bundle/chunk-b192q4m0.js +0 -2
- package/bundle/chunk-bh46627y.js +0 -2
- package/bundle/chunk-c267ggx2.js +0 -2
- package/bundle/chunk-c4x99ayd.js +0 -11
- package/bundle/chunk-c6kxegws.js +0 -2
- package/bundle/chunk-cek3cfz4.js +0 -2
- package/bundle/chunk-ete0y35c.js +0 -2
- package/bundle/chunk-f1mmzzsn.js +0 -2
- package/bundle/chunk-f66cvq2q.js +0 -2
- package/bundle/chunk-fd1vbz1f.js +0 -3
- package/bundle/chunk-febbrhev.js +0 -3
- package/bundle/chunk-fq4v97xn.js +0 -2
- package/bundle/chunk-fw1f6br4.js +0 -2
- package/bundle/chunk-fzzze6zd.js +0 -5
- package/bundle/chunk-g3pb8rad.js +0 -2
- package/bundle/chunk-g6tw5dvr.js +0 -14
- package/bundle/chunk-gc1yetqd.js +0 -2
- package/bundle/chunk-gtckkn15.js +0 -2
- package/bundle/chunk-gtzreftf.js +0 -2
- package/bundle/chunk-hg7kfd0t.js +0 -3
- package/bundle/chunk-j5vahbw1.js +0 -2
- package/bundle/chunk-jazpapb9.js +0 -3
- package/bundle/chunk-jek1cnfk.js +0 -3
- package/bundle/chunk-jevrajsx.js +0 -2
- package/bundle/chunk-jzdks7bv.js +0 -2
- package/bundle/chunk-k1e7w7w5.js +0 -2
- package/bundle/chunk-k33xx2z9.js +0 -2
- package/bundle/chunk-k6vf6vq6.js +0 -2
- package/bundle/chunk-kn391hb2.js +0 -2
- package/bundle/chunk-knmba0q6.js +0 -2
- package/bundle/chunk-knnemqfm.js +0 -3
- package/bundle/chunk-kx4b39v6.js +0 -2
- package/bundle/chunk-mah572rs.js +0 -2
- package/bundle/chunk-mg6nwfw3.js +0 -2
- package/bundle/chunk-pdgrang4.js +0 -2
- package/bundle/chunk-r3q82hz3.js +0 -2
- package/bundle/chunk-r4ygs0jv.js +0 -2
- package/bundle/chunk-r6xhxvjv.js +0 -2
- package/bundle/chunk-r79mz5kd.js +0 -5
- package/bundle/chunk-r99pnfra.js +0 -2
- package/bundle/chunk-rjjgnvdk.js +0 -2
- package/bundle/chunk-rq4xdyst.js +0 -2
- package/bundle/chunk-rsd3v7cg.js +0 -2
- package/bundle/chunk-rxsgbdv0.js +0 -2
- package/bundle/chunk-s4x1jhj3.js +0 -2
- package/bundle/chunk-s7sksztt.js +0 -3
- package/bundle/chunk-sx760d9d.js +0 -2
- package/bundle/chunk-tmjd3evp.js +0 -8
- package/bundle/chunk-tp1d856p.js +0 -2
- package/bundle/chunk-tpxs00p5.js +0 -2
- package/bundle/chunk-tqk12r89.js +0 -2
- package/bundle/chunk-tycgrqgq.js +0 -2
- package/bundle/chunk-tydvpy1s.js +0 -3
- package/bundle/chunk-tz8qhbk9.js +0 -3
- package/bundle/chunk-v1y3pbfv.js +0 -2
- package/bundle/chunk-v32cyrg2.js +0 -2
- package/bundle/chunk-v7pypmvk.js +0 -2
- package/bundle/chunk-vbqyddy8.js +0 -2
- package/bundle/chunk-vgx86f2r.js +0 -2
- package/bundle/chunk-w0jvqdez.js +0 -2
- package/bundle/chunk-w79yek40.js +0 -2
- package/bundle/chunk-w7nxsfbd.js +0 -3
- package/bundle/chunk-wcea06cr.js +0 -2
- package/bundle/chunk-wcx4bbvn.js +0 -2
- package/bundle/chunk-wdw183vh.js +0 -2
- package/bundle/chunk-wqd3svh6.js +0 -2
- package/bundle/chunk-wqe5spdq.js +0 -2
- package/bundle/chunk-wqww2byk.js +0 -2
- package/bundle/chunk-wybd806z.js +0 -2
- package/bundle/chunk-x1vb00hr.js +0 -2
- package/bundle/chunk-xafh07r3.js +0 -2
- package/bundle/chunk-xgzjcsad.js +0 -2
- package/bundle/chunk-xn0xhd0w.js +0 -3
- package/bundle/chunk-xnbfy5jy.js +0 -2
- package/bundle/chunk-xxed39zx.js +0 -3
- package/bundle/chunk-y6pzag4n.js +0 -2
- package/bundle/chunk-y7w6fjwt.js +0 -2
- package/bundle/chunk-z195gv71.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rr as X0}from"./chunk-8hh5ejmr.js";import{mP as K}from"./chunk-kpkbyek5.js";import{oP as Y,rP as tZ}from"./chunk-naq602da.js";var M=Y((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});Qq.isTracingSuppressed=Qq.unsuppressTracing=Qq.suppressTracing=void 0;var VZ=K(),x=(0,VZ.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function OZ(q){return q.setValue(x,!0)}Qq.suppressTracing=OZ;function NZ(q){return q.deleteValue(x)}Qq.unsuppressTracing=NZ;function MZ(q){return q.getValue(x)===!0}Qq.isTracingSuppressed=MZ});var c=Y((Fq)=>{Object.defineProperty(Fq,"__esModule",{value:!0});Fq.BAGGAGE_MAX_TOTAL_LENGTH=Fq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=Fq.BAGGAGE_MAX_NAME_VALUE_PAIRS=Fq.BAGGAGE_HEADER=Fq.BAGGAGE_ITEMS_SEPARATOR=Fq.BAGGAGE_PROPERTIES_SEPARATOR=Fq.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;Fq.BAGGAGE_KEY_PAIR_SEPARATOR="=";Fq.BAGGAGE_PROPERTIES_SEPARATOR=";";Fq.BAGGAGE_ITEMS_SEPARATOR=",";Fq.BAGGAGE_HEADER="baggage";Fq.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;Fq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;Fq.BAGGAGE_MAX_TOTAL_LENGTH=8192});var l=Y((Wq)=>{Object.defineProperty(Wq,"__esModule",{value:!0});Wq.parseKeyPairsIntoRecord=Wq.parseBaggageHeaderString=Wq.parsePairKeyValue=Wq.getKeyPairs=Wq.serializeKeyPairs=void 0;var RZ=K(),D=c();function EZ(q){return q.reduce((J,Z)=>{let $=`${J}${J!==""?D.BAGGAGE_ITEMS_SEPARATOR:""}${Z}`;return $.length>D.BAGGAGE_MAX_TOTAL_LENGTH?J:$},"")}Wq.serializeKeyPairs=EZ;function kZ(q){return q.getAllEntries().map(([J,Z])=>{let $=`${encodeURIComponent(J)}=${encodeURIComponent(Z.value)}`;if(Z.metadata!==void 0)$+=D.BAGGAGE_PROPERTIES_SEPARATOR+Z.metadata.toString();return $})}Wq.getKeyPairs=kZ;function u(q){if(!q)return;let J=q.indexOf(D.BAGGAGE_PROPERTIES_SEPARATOR),Z=J===-1?q:q.substring(0,J),$=Z.indexOf(D.BAGGAGE_KEY_PAIR_SEPARATOR);if($<=0)return;let Q=Z.substring(0,$).trim(),F=Z.substring($+1).trim();if(!Q||!F)return;let B,G;try{B=decodeURIComponent(Q),G=decodeURIComponent(F)}catch{return}let W;if(J!==-1&&J<q.length-1){let H=q.substring(J+1);W=(0,RZ.baggageEntryMetadataFromString)(H)}return{key:B,value:G,metadata:W}}Wq.parsePairKeyValue=u;function SZ(q,J,Z,$){let Q=0;while(Q<q.length&&Z<D.BAGGAGE_MAX_NAME_VALUE_PAIRS){let F=q.indexOf(D.BAGGAGE_ITEMS_SEPARATOR,Q),B=F===-1?q.length:F,G=B-Q;if(G<=D.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS){let W=u(q.substring(Q,B));if(W){let H=(Z===0?0:1)+G;if($+H>D.BAGGAGE_MAX_TOTAL_LENGTH)break;J[W.key]=W.metadata?{value:W.value,metadata:W.metadata}:{value:W.value},Z++,$+=H}}if(F===-1)break;Q=F+1}return[Z,$]}Wq.parseBaggageHeaderString=SZ;function dZ(q){let J={};if(typeof q==="string"&&q.length>0)q.split(D.BAGGAGE_ITEMS_SEPARATOR).forEach((Z)=>{let $=u(Z);if($!==void 0&&$.value.length>0)J[$.key]=$.value});return J}Wq.parseKeyPairsIntoRecord=dZ});var Hq=Y((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});zq.W3CBaggagePropagator=void 0;var n=K(),gZ=M(),A=c(),w=l();class Gq{inject(q,J,Z){let $=n.propagation.getBaggage(q);if(!$||(0,gZ.isTracingSuppressed)(q))return;let Q=(0,w.getKeyPairs)($).filter((B)=>{return B.length<=A.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,A.BAGGAGE_MAX_NAME_VALUE_PAIRS),F=(0,w.serializeKeyPairs)(Q);if(F.length>0)Z.set(J,A.BAGGAGE_HEADER,F)}extract(q,J,Z){let $=Z.get(J,A.BAGGAGE_HEADER);if(!$)return q;let Q={},F=0,B=0;if(Array.isArray($))for(let G=0;G<$.length;G++)[F,B]=(0,w.parseBaggageHeaderString)($[G],Q,F,B);else[F]=(0,w.parseBaggageHeaderString)($,Q,F,B);if(F===0)return q;return n.propagation.setBaggage(q,n.propagation.createBaggage(Q))}fields(){return[A.BAGGAGE_HEADER]}}zq.W3CBaggagePropagator=Gq});var Iq=Y((fq)=>{Object.defineProperty(fq,"__esModule",{value:!0});fq.AnchoredClock=void 0;class Dq{_monotonicClock;_epochMillis;_performanceMillis;constructor(q,J){this._monotonicClock=J,this._epochMillis=q.now(),this._performanceMillis=J.now()}now(){let q=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+q}}fq.AnchoredClock=Dq});var jq=Y((Aq)=>{Object.defineProperty(Aq,"__esModule",{value:!0});Aq.isAttributeValue=Aq.isAttributeKey=Aq.sanitizeAttributes=void 0;var Vq=K();function mZ(q){let J={};if(typeof q!=="object"||q==null)return J;for(let Z in q){if(!Object.prototype.hasOwnProperty.call(q,Z))continue;if(!Oq(Z)){Vq.diag.warn(`Invalid attribute key: ${Z}`);continue}let $=q[Z];if(!Nq($)){Vq.diag.warn(`Invalid attribute value set for key: ${Z}`);continue}if(Array.isArray($))J[Z]=$.slice();else J[Z]=$}return J}Aq.sanitizeAttributes=mZ;function Oq(q){return typeof q==="string"&&q!==""}Aq.isAttributeKey=Oq;function Nq(q){if(q==null)return!0;if(Array.isArray(q))return xZ(q);return Mq(typeof q)}Aq.isAttributeValue=Nq;function xZ(q){let J;for(let Z of q){if(Z==null)continue;let $=typeof Z;if($===J)continue;if(!J){if(Mq($)){J=$;continue}return!1}return!1}return!0}function Mq(q){switch(q){case"number":case"boolean":case"string":return!0}return!1}});var i=Y((hq)=>{Object.defineProperty(hq,"__esModule",{value:!0});hq.loggingErrorHandler=void 0;var lZ=K();function nZ(){return(q)=>{lZ.diag.error(iZ(q))}}hq.loggingErrorHandler=nZ;function iZ(q){if(typeof q==="string")return q;else return JSON.stringify(pZ(q))}function pZ(q){let J={},Z=q;while(Z!==null)Object.getOwnPropertyNames(Z).forEach(($)=>{if(J[$])return;let Q=Z[$];if(Q)J[$]=String(Q)}),Z=Object.getPrototypeOf(Z);return J}});var Rq=Y((Pq)=>{Object.defineProperty(Pq,"__esModule",{value:!0});Pq.globalErrorHandler=Pq.setGlobalErrorHandler=void 0;var sZ=i(),bq=(0,sZ.loggingErrorHandler)();function oZ(q){bq=q}Pq.setGlobalErrorHandler=oZ;function aZ(q){try{bq(q)}catch{}}Pq.globalErrorHandler=aZ});var yq=Y((dq)=>{Object.defineProperty(dq,"__esModule",{value:!0});dq.getStringListFromEnv=dq.getBooleanFromEnv=dq.getStringFromEnv=dq.getNumberFromEnv=void 0;var Eq=K(),kq=tZ("util");function eZ(q){let J=process.env[q];if(J==null||J.trim()==="")return;let Z=Number(J);if(isNaN(Z)){Eq.diag.warn(`Unknown value ${(0,kq.inspect)(J)} for ${q}, expected a number, using defaults`);return}return Z}dq.getNumberFromEnv=eZ;function Sq(q){let J=process.env[q];if(J==null||J.trim()==="")return;return J}dq.getStringFromEnv=Sq;function q0(q){let J=process.env[q]?.trim().toLowerCase();if(J==null||J==="")return!1;if(J==="true")return!0;else if(J==="false")return!1;else return Eq.diag.warn(`Unknown value ${(0,kq.inspect)(J)} for ${q}, expected 'true' or 'false', falling back to 'false' (default)`),!1}dq.getBooleanFromEnv=q0;function J0(q){return Sq(q)?.split(",").map((J)=>J.trim()).filter((J)=>J!=="")}dq.getStringListFromEnv=J0});var gq=Y((vq)=>{Object.defineProperty(vq,"__esModule",{value:!0});vq._globalThis=void 0;vq._globalThis=globalThis});var cq=Y((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.VERSION=void 0;mq.VERSION="2.9.0"});var nq=Y((uq)=>{Object.defineProperty(uq,"__esModule",{value:!0});uq.ATTR_PROCESS_RUNTIME_NAME=void 0;uq.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var sq=Y((iq)=>{Object.defineProperty(iq,"__esModule",{value:!0});iq.SDK_INFO=void 0;var F0=cq(),b=X0(),B0=nq();iq.SDK_INFO={[b.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[B0.ATTR_PROCESS_RUNTIME_NAME]:"node",[b.ATTR_TELEMETRY_SDK_LANGUAGE]:b.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[b.ATTR_TELEMETRY_SDK_VERSION]:F0.VERSION}});var aq=Y((I)=>{Object.defineProperty(I,"__esModule",{value:!0});I.otperformance=I.SDK_INFO=I._globalThis=I.getStringListFromEnv=I.getNumberFromEnv=I.getBooleanFromEnv=I.getStringFromEnv=void 0;var P=yq();Object.defineProperty(I,"getStringFromEnv",{enumerable:!0,get:function(){return P.getStringFromEnv}});Object.defineProperty(I,"getBooleanFromEnv",{enumerable:!0,get:function(){return P.getBooleanFromEnv}});Object.defineProperty(I,"getNumberFromEnv",{enumerable:!0,get:function(){return P.getNumberFromEnv}});Object.defineProperty(I,"getStringListFromEnv",{enumerable:!0,get:function(){return P.getStringListFromEnv}});var W0=gq();Object.defineProperty(I,"_globalThis",{enumerable:!0,get:function(){return W0._globalThis}});var Y0=sq();Object.defineProperty(I,"SDK_INFO",{enumerable:!0,get:function(){return Y0.SDK_INFO}});I.otperformance=performance});var p=Y((f)=>{Object.defineProperty(f,"__esModule",{value:!0});f.getStringListFromEnv=f.getNumberFromEnv=f.getStringFromEnv=f.getBooleanFromEnv=f.otperformance=f._globalThis=f.SDK_INFO=void 0;var V=aq();Object.defineProperty(f,"SDK_INFO",{enumerable:!0,get:function(){return V.SDK_INFO}});Object.defineProperty(f,"_globalThis",{enumerable:!0,get:function(){return V._globalThis}});Object.defineProperty(f,"otperformance",{enumerable:!0,get:function(){return V.otperformance}});Object.defineProperty(f,"getBooleanFromEnv",{enumerable:!0,get:function(){return V.getBooleanFromEnv}});Object.defineProperty(f,"getStringFromEnv",{enumerable:!0,get:function(){return V.getStringFromEnv}});Object.defineProperty(f,"getNumberFromEnv",{enumerable:!0,get:function(){return V.getNumberFromEnv}});Object.defineProperty(f,"getStringListFromEnv",{enumerable:!0,get:function(){return V.getStringListFromEnv}})});var ZJ=Y((qJ)=>{Object.defineProperty(qJ,"__esModule",{value:!0});qJ.addHrTimes=qJ.isTimeInput=qJ.isTimeInputHrTime=qJ.hrTimeToSeconds=qJ.hrTimeToMilliseconds=qJ.hrTimeToMicroseconds=qJ.hrTimeToNanoseconds=qJ.hrTimeToTimeStamp=qJ.hrTimeDuration=qJ.timeInputToHrTime=qJ.hrTime=qJ.getTimeOrigin=qJ.millisToHrTime=void 0;var C=p(),rq=9,z0=6,K0=Math.pow(10,z0),L=Math.pow(10,rq);function j(q){let J=q/1000,Z=Math.trunc(J),$=Math.round(q%1000*K0);return[Z,$]}qJ.millisToHrTime=j;function H0(){return C.otperformance.timeOrigin}qJ.getTimeOrigin=H0;function tq(q){let J=j(C.otperformance.timeOrigin),Z=j(typeof q==="number"?q:C.otperformance.now());return eq(J,Z)}qJ.hrTime=tq;function D0(q){if(s(q))return q;else if(typeof q==="number")if(q<C.otperformance.timeOrigin/2)return tq(q);else return j(q);else if(q instanceof Date)return j(q.getTime());else throw TypeError("Invalid input type")}qJ.timeInputToHrTime=D0;function f0(q,J){let Z=J[0]-q[0],$=J[1]-q[1];if($<0)Z-=1,$+=L;return[Z,$]}qJ.hrTimeDuration=f0;function U0(q){let J=rq,Z=`${"0".repeat(J)}${q[1]}Z`,$=Z.substring(Z.length-J-1);return new Date(q[0]*1000).toISOString().replace("000Z",$)}qJ.hrTimeToTimeStamp=U0;function I0(q){return q[0]*L+q[1]}qJ.hrTimeToNanoseconds=I0;function V0(q){return q[0]*1e6+q[1]/1000}qJ.hrTimeToMicroseconds=V0;function O0(q){return q[0]*1000+q[1]/1e6}qJ.hrTimeToMilliseconds=O0;function N0(q){return q[0]+q[1]/L}qJ.hrTimeToSeconds=N0;function s(q){return Array.isArray(q)&&q.length===2&&typeof q[0]==="number"&&typeof q[1]==="number"}qJ.isTimeInputHrTime=s;function M0(q){return s(q)||typeof q==="number"||q instanceof Date}qJ.isTimeInput=M0;function eq(q,J){let Z=[q[0]+J[0],q[1]+J[1]];if(Z[1]>=L)Z[1]-=L,Z[0]+=1;return Z}qJ.addHrTimes=eq});var XJ=Y(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.unrefTimer=void 0;function d0(q){if(typeof q!=="number")q.unref()}$J.unrefTimer=d0});var BJ=Y((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.ExportResultCode=void 0;var T0;(function(q){q[q.SUCCESS=0]="SUCCESS",q[q.FAILED=1]="FAILED"})(T0=FJ.ExportResultCode||(FJ.ExportResultCode={}))});var KJ=Y((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.CompositePropagator=void 0;var WJ=K();class YJ{_propagators;_fields;constructor(q={}){this._propagators=q.propagators??[];let J=new Set;for(let Z of this._propagators){let $=typeof Z.fields==="function"?Z.fields():[];for(let Q of $)J.add(Q)}this._fields=Array.from(J)}inject(q,J,Z){for(let $ of this._propagators)try{$.inject(q,J,Z)}catch(Q){WJ.diag.warn(`Failed to inject with ${$.constructor.name}. Err: ${Q.message}`)}}extract(q,J,Z){return this._propagators.reduce(($,Q)=>{try{return Q.extract($,J,Z)}catch(F){WJ.diag.warn(`Failed to extract with ${Q.constructor.name}. Err: ${F.message}`)}return $},q)}fields(){return this._fields.slice()}}GJ.CompositePropagator=YJ});var fJ=Y((HJ)=>{Object.defineProperty(HJ,"__esModule",{value:!0});HJ.validateValue=HJ.validateKey=void 0;var a="[_0-9a-z-*/]",y0=`[a-z]${a}{0,255}`,v0=`[a-z0-9]${a}{0,240}@[a-z]${a}{0,13}`,_0=new RegExp(`^(?:${y0}|${v0})$`),g0=/^[ -~]{0,255}[!-~]$/,m0=/,|=/;function x0(q){return _0.test(q)}HJ.validateKey=x0;function c0(q){return g0.test(q)&&!m0.test(q)}HJ.validateValue=c0});var t=Y((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.TraceState=void 0;var R=fJ(),l0=32,UJ=512,IJ=",",VJ="=";class r{_length;_rawTraceState;_internalState;constructor(q){this._rawTraceState=typeof q==="string"?q:"",this._length=this._rawTraceState.length}set(q,J){if(!(0,R.validateKey)(q)||!(0,R.validateValue)(J))return this;let Z=this._getState(),$=Z.get(q),Q=this._length;if(typeof $==="string")Q+=J.length-$.length;else Q+=q.length+J.length+(Z.size>0?2:1);if(Q>UJ)return this;let F=new Map(Z);return F.delete(q),F.set(q,J),this._fromState(F,Q)}unset(q){let J=this._getState(),Z=J.get(q);if(typeof Z!=="string")return this;let $=this._length-(q.length+Z.length+1);if(J.size>1)$=$-1;let Q=new Map(J);return Q.delete(q),this._fromState(Q,$)}get(q){return this._getState().get(q)}serialize(){let q="",J=0;for(let Z of this._getState()){if(J>0)q=IJ+q;q=`${Z[0]}${VJ}${Z[1]}`+q,J++}return q}_getState(){if(this._internalState)return this._internalState;let q=this._rawTraceState.split(IJ),J=new Map,Z=0;for(let $ of q){let Q=$.trim(),F=Q.indexOf(VJ);if(F===-1)continue;let B=Q.slice(0,F),G=Q.slice(F+1);if(!(0,R.validateKey)(B)||!(0,R.validateValue)(G))continue;let W=Z+Q.length+(J.size>0?1:0);if(W>UJ)continue;if(J.set(B,G),Z=W,J.size>=l0)break}return this._length=Z,this._internalState=new Map(Array.from(J.entries()).reverse()),this._internalState}_fromState(q,J){let Z=Object.create(r.prototype);return Z._internalState=q,Z._length=J,Z}}OJ.TraceState=r});var hJ=Y((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.W3CTraceContextPropagator=LJ.parseTraceParent=LJ.TRACE_STATE_HEADER=LJ.TRACE_PARENT_HEADER=void 0;var E=K(),n0=M(),i0=t();LJ.TRACE_PARENT_HEADER="traceparent";LJ.TRACE_STATE_HEADER="tracestate";var p0="00",s0="(?!ff)[\\da-f]{2}",o0="(?![0]{32})[\\da-f]{32}",a0="(?![0]{16})[\\da-f]{16}",r0="[\\da-f]{2}",t0=new RegExp(`^\\s?(${s0})-(${o0})-(${a0})-(${r0})(-.*)?\\s?$`);function MJ(q){let J=t0.exec(q);if(!J)return null;if(J[1]==="00"&&J[5])return null;return{traceId:J[2],spanId:J[3],traceFlags:parseInt(J[4],16)}}LJ.parseTraceParent=MJ;class AJ{inject(q,J,Z){let $=E.trace.getSpanContext(q);if(!$||(0,n0.isTracingSuppressed)(q)||!(0,E.isSpanContextValid)($))return;let Q=`${p0}-${$.traceId}-${$.spanId}-0${Number($.traceFlags||E.TraceFlags.NONE).toString(16)}`;if(Z.set(J,LJ.TRACE_PARENT_HEADER,Q),$.traceState)Z.set(J,LJ.TRACE_STATE_HEADER,$.traceState.serialize())}extract(q,J,Z){let $=Z.get(J,LJ.TRACE_PARENT_HEADER);if(!$)return q;let Q=Array.isArray($)?$[0]:$;if(typeof Q!=="string")return q;let F=MJ(Q);if(!F)return q;F.isRemote=!0;let B=Z.get(J,LJ.TRACE_STATE_HEADER);if(B){let G=Array.isArray(B)?B.join(","):B;F.traceState=new i0.TraceState(typeof G==="string"?G:void 0)}return E.trace.setSpanContext(q,F)}fields(){return[LJ.TRACE_PARENT_HEADER,LJ.TRACE_STATE_HEADER]}}LJ.W3CTraceContextPropagator=AJ});var CJ=Y((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.getRPCMetadata=bJ.deleteRPCMetadata=bJ.setRPCMetadata=bJ.RPCType=void 0;var q1=K(),e=(0,q1.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),J1;(function(q){q.HTTP="http"})(J1=bJ.RPCType||(bJ.RPCType={}));function Z1(q,J){return q.setValue(e,J)}bJ.setRPCMetadata=Z1;function $1(q){return q.deleteValue(e)}bJ.deleteRPCMetadata=$1;function Q1(q){return q.getValue(e)}bJ.getRPCMetadata=Q1});var yJ=Y((dJ)=>{Object.defineProperty(dJ,"__esModule",{value:!0});dJ.isPlainObject=void 0;var B1="[object Object]",W1="[object Null]",Y1="[object Undefined]",G1=Function.prototype,RJ=G1.toString,z1=RJ.call(Object),K1=Object.getPrototypeOf,EJ=Object.prototype,kJ=EJ.hasOwnProperty,O=Symbol?Symbol.toStringTag:void 0,SJ=EJ.toString;function H1(q){if(!D1(q)||f1(q)!==B1)return!1;let J=K1(q);if(J===null)return!0;let Z=kJ.call(J,"constructor")&&J.constructor;return typeof Z=="function"&&Z instanceof Z&&RJ.call(Z)===z1}dJ.isPlainObject=H1;function D1(q){return q!=null&&typeof q=="object"}function f1(q){if(q==null)return q===void 0?Y1:W1;return O&&O in Object(q)?U1(q):I1(q)}function U1(q){let J=kJ.call(q,O),Z=q[O],$=!1;try{q[O]=void 0,$=!0}catch{}let Q=SJ.call(q);if($)if(J)q[O]=Z;else delete q[O];return Q}function I1(q){return SJ.call(q)}});var uJ=Y((xJ)=>{Object.defineProperty(xJ,"__esModule",{value:!0});xJ.merge=void 0;var vJ=yJ(),V1=20;function O1(...q){let J=q.shift(),Z=new WeakMap;while(q.length>0)J=gJ(J,q.shift(),0,Z);return J}xJ.merge=O1;function qq(q){if(T(q))return q.slice();return q}function gJ(q,J,Z=0,$){let Q;if(Z>V1)return;if(Z++,d(q)||d(J)||mJ(J))Q=qq(J);else if(T(q)){if(Q=q.slice(),T(J))for(let F=0,B=J.length;F<B;F++)Q.push(qq(J[F]));else if(h(J)){let F=Object.keys(J);for(let B=0,G=F.length;B<G;B++){let W=F[B];if(W==="__proto__"||W==="constructor"||W==="prototype")continue;Q[W]=qq(J[W])}}}else if(h(q))if(h(J)){if(!N1(q,J))return J;Q=Object.assign({},q);let F=Object.keys(J);for(let B=0,G=F.length;B<G;B++){let W=F[B];if(W==="__proto__"||W==="constructor"||W==="prototype")continue;let H=J[W];if(d(H))if(typeof H>"u")delete Q[W];else Q[W]=H;else{let g=Q[W],m=H;if(_J(q,W,$)||_J(J,W,$))delete Q[W];else{if(h(g)&&h(m)){let Zq=$.get(g)||[],$q=$.get(m)||[];Zq.push({obj:q,key:W}),$q.push({obj:J,key:W}),$.set(g,Zq),$.set(m,$q)}Q[W]=gJ(Q[W],H,Z,$)}}}}else Q=J;return Q}function _J(q,J,Z){let $=Z.get(q[J])||[];for(let Q=0,F=$.length;Q<F;Q++){let B=$[Q];if(B.key===J&&B.obj===q)return!0}return!1}function T(q){return Array.isArray(q)}function mJ(q){return typeof q==="function"}function h(q){return!d(q)&&!T(q)&&!mJ(q)&&typeof q==="object"}function d(q){return typeof q==="string"||typeof q==="number"||typeof q==="boolean"||typeof q>"u"||q instanceof Date||q instanceof RegExp||q===null}function N1(q,J){if(!(0,vJ.isPlainObject)(q)||!(0,vJ.isPlainObject)(J))return!1;return!0}});var iJ=Y((lJ)=>{Object.defineProperty(lJ,"__esModule",{value:!0});lJ.callWithTimeout=lJ.TimeoutError=void 0;class y extends Error{constructor(q){super(q);Object.setPrototypeOf(this,y.prototype)}}lJ.TimeoutError=y;function M1(q,J){let Z,$=new Promise(function(F,B){Z=setTimeout(function(){B(new y("Operation timed out."))},J)});return Promise.race([q,$]).then((Q)=>{return clearTimeout(Z),Q},(Q)=>{throw clearTimeout(Z),Q})}lJ.callWithTimeout=M1});var aJ=Y((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.isUrlIgnored=sJ.urlMatches=void 0;function pJ(q,J){if(typeof J==="string")return q===J;else return!!q.match(J)}sJ.urlMatches=pJ;function L1(q,J){if(!J)return!1;for(let Z of J)if(pJ(q,Z))return!0;return!1}sJ.isUrlIgnored=L1});var qZ=Y((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.Deferred=void 0;class rJ{_promise;_resolve;_reject;constructor(){this._promise=new Promise((q,J)=>{this._resolve=q,this._reject=J})}get promise(){return this._promise}resolve(q){this._resolve(q)}reject(q){this._reject(q)}}tJ.Deferred=rJ});var QZ=Y((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.BindOnceFuture=void 0;var h1=qZ();class JZ{_isCalled=!1;_deferred=new h1.Deferred;_callback;_that;constructor(q,J){this._callback=q,this._that=J}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...q){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...q)).then((J)=>this._deferred.resolve(J),(J)=>this._deferred.reject(J))}catch(J){this._deferred.reject(J)}}return this._deferred.promise}}ZZ.BindOnceFuture=JZ});var WZ=Y((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.diagLogLevelFromString=void 0;var U=K(),XZ={ALL:U.DiagLogLevel.ALL,VERBOSE:U.DiagLogLevel.VERBOSE,DEBUG:U.DiagLogLevel.DEBUG,INFO:U.DiagLogLevel.INFO,WARN:U.DiagLogLevel.WARN,ERROR:U.DiagLogLevel.ERROR,NONE:U.DiagLogLevel.NONE};function w1(q){if(q==null)return;let J=XZ[q.toUpperCase()];if(J==null)return U.diag.warn(`Unknown log level "${q}", expected one of ${Object.keys(XZ)}, using default`),U.DiagLogLevel.INFO;return J}FZ.diagLogLevelFromString=w1});var KZ=Y((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ._export=void 0;var YZ=K(),b1=M();function P1(q,J){return new Promise((Z)=>{YZ.context.with((0,b1.suppressTracing)(YZ.context.active()),()=>{q.export(J,Z)})})}GZ._export=P1});var c1=Y((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.diagLogLevelFromString=X.BindOnceFuture=X.urlMatches=X.isUrlIgnored=X.callWithTimeout=X.TimeoutError=X.merge=X.TraceState=X.unsuppressTracing=X.suppressTracing=X.isTracingSuppressed=X.setRPCMetadata=X.getRPCMetadata=X.deleteRPCMetadata=X.RPCType=X.parseTraceParent=X.W3CTraceContextPropagator=X.TRACE_STATE_HEADER=X.TRACE_PARENT_HEADER=X.CompositePropagator=X.otperformance=X.getStringListFromEnv=X.getNumberFromEnv=X.getBooleanFromEnv=X.getStringFromEnv=X._globalThis=X.SDK_INFO=X.parseKeyPairsIntoRecord=X.ExportResultCode=X.unrefTimer=X.timeInputToHrTime=X.millisToHrTime=X.isTimeInputHrTime=X.isTimeInput=X.hrTimeToTimeStamp=X.hrTimeToSeconds=X.hrTimeToNanoseconds=X.hrTimeToMilliseconds=X.hrTimeToMicroseconds=X.hrTimeDuration=X.hrTime=X.getTimeOrigin=X.addHrTimes=X.loggingErrorHandler=X.setGlobalErrorHandler=X.globalErrorHandler=X.sanitizeAttributes=X.isAttributeValue=X.AnchoredClock=X.W3CBaggagePropagator=void 0;X.internal=void 0;var C1=Hq();Object.defineProperty(X,"W3CBaggagePropagator",{enumerable:!0,get:function(){return C1.W3CBaggagePropagator}});var R1=Iq();Object.defineProperty(X,"AnchoredClock",{enumerable:!0,get:function(){return R1.AnchoredClock}});var HZ=jq();Object.defineProperty(X,"isAttributeValue",{enumerable:!0,get:function(){return HZ.isAttributeValue}});Object.defineProperty(X,"sanitizeAttributes",{enumerable:!0,get:function(){return HZ.sanitizeAttributes}});var DZ=Rq();Object.defineProperty(X,"globalErrorHandler",{enumerable:!0,get:function(){return DZ.globalErrorHandler}});Object.defineProperty(X,"setGlobalErrorHandler",{enumerable:!0,get:function(){return DZ.setGlobalErrorHandler}});var E1=i();Object.defineProperty(X,"loggingErrorHandler",{enumerable:!0,get:function(){return E1.loggingErrorHandler}});var z=ZJ();Object.defineProperty(X,"addHrTimes",{enumerable:!0,get:function(){return z.addHrTimes}});Object.defineProperty(X,"getTimeOrigin",{enumerable:!0,get:function(){return z.getTimeOrigin}});Object.defineProperty(X,"hrTime",{enumerable:!0,get:function(){return z.hrTime}});Object.defineProperty(X,"hrTimeDuration",{enumerable:!0,get:function(){return z.hrTimeDuration}});Object.defineProperty(X,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return z.hrTimeToMicroseconds}});Object.defineProperty(X,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return z.hrTimeToMilliseconds}});Object.defineProperty(X,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return z.hrTimeToNanoseconds}});Object.defineProperty(X,"hrTimeToSeconds",{enumerable:!0,get:function(){return z.hrTimeToSeconds}});Object.defineProperty(X,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return z.hrTimeToTimeStamp}});Object.defineProperty(X,"isTimeInput",{enumerable:!0,get:function(){return z.isTimeInput}});Object.defineProperty(X,"isTimeInputHrTime",{enumerable:!0,get:function(){return z.isTimeInputHrTime}});Object.defineProperty(X,"millisToHrTime",{enumerable:!0,get:function(){return z.millisToHrTime}});Object.defineProperty(X,"timeInputToHrTime",{enumerable:!0,get:function(){return z.timeInputToHrTime}});var k1=XJ();Object.defineProperty(X,"unrefTimer",{enumerable:!0,get:function(){return k1.unrefTimer}});var S1=BJ();Object.defineProperty(X,"ExportResultCode",{enumerable:!0,get:function(){return S1.ExportResultCode}});var d1=l();Object.defineProperty(X,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return d1.parseKeyPairsIntoRecord}});var N=p();Object.defineProperty(X,"SDK_INFO",{enumerable:!0,get:function(){return N.SDK_INFO}});Object.defineProperty(X,"_globalThis",{enumerable:!0,get:function(){return N._globalThis}});Object.defineProperty(X,"getStringFromEnv",{enumerable:!0,get:function(){return N.getStringFromEnv}});Object.defineProperty(X,"getBooleanFromEnv",{enumerable:!0,get:function(){return N.getBooleanFromEnv}});Object.defineProperty(X,"getNumberFromEnv",{enumerable:!0,get:function(){return N.getNumberFromEnv}});Object.defineProperty(X,"getStringListFromEnv",{enumerable:!0,get:function(){return N.getStringListFromEnv}});Object.defineProperty(X,"otperformance",{enumerable:!0,get:function(){return N.otperformance}});var T1=KJ();Object.defineProperty(X,"CompositePropagator",{enumerable:!0,get:function(){return T1.CompositePropagator}});var v=hJ();Object.defineProperty(X,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return v.TRACE_PARENT_HEADER}});Object.defineProperty(X,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return v.TRACE_STATE_HEADER}});Object.defineProperty(X,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return v.W3CTraceContextPropagator}});Object.defineProperty(X,"parseTraceParent",{enumerable:!0,get:function(){return v.parseTraceParent}});var _=CJ();Object.defineProperty(X,"RPCType",{enumerable:!0,get:function(){return _.RPCType}});Object.defineProperty(X,"deleteRPCMetadata",{enumerable:!0,get:function(){return _.deleteRPCMetadata}});Object.defineProperty(X,"getRPCMetadata",{enumerable:!0,get:function(){return _.getRPCMetadata}});Object.defineProperty(X,"setRPCMetadata",{enumerable:!0,get:function(){return _.setRPCMetadata}});var Jq=M();Object.defineProperty(X,"isTracingSuppressed",{enumerable:!0,get:function(){return Jq.isTracingSuppressed}});Object.defineProperty(X,"suppressTracing",{enumerable:!0,get:function(){return Jq.suppressTracing}});Object.defineProperty(X,"unsuppressTracing",{enumerable:!0,get:function(){return Jq.unsuppressTracing}});var y1=t();Object.defineProperty(X,"TraceState",{enumerable:!0,get:function(){return y1.TraceState}});var v1=uJ();Object.defineProperty(X,"merge",{enumerable:!0,get:function(){return v1.merge}});var fZ=iJ();Object.defineProperty(X,"TimeoutError",{enumerable:!0,get:function(){return fZ.TimeoutError}});Object.defineProperty(X,"callWithTimeout",{enumerable:!0,get:function(){return fZ.callWithTimeout}});var UZ=aJ();Object.defineProperty(X,"isUrlIgnored",{enumerable:!0,get:function(){return UZ.isUrlIgnored}});Object.defineProperty(X,"urlMatches",{enumerable:!0,get:function(){return UZ.urlMatches}});var _1=QZ();Object.defineProperty(X,"BindOnceFuture",{enumerable:!0,get:function(){return _1.BindOnceFuture}});var g1=WZ();Object.defineProperty(X,"diagLogLevelFromString",{enumerable:!0,get:function(){return g1.diagLogLevelFromString}});var m1=KZ();X.internal={_export:m1._export}});
|
|
3
|
-
export{c1 as
|
|
2
|
+
import{gq as X0}from"./chunk-gaen9ya4.js";import{cO as K}from"./chunk-7fx6x8x9.js";import{eO as Y,hO as tZ}from"./chunk-0rmmg3g4.js";var M=Y((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});Qq.isTracingSuppressed=Qq.unsuppressTracing=Qq.suppressTracing=void 0;var VZ=K(),x=(0,VZ.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function OZ(q){return q.setValue(x,!0)}Qq.suppressTracing=OZ;function NZ(q){return q.deleteValue(x)}Qq.unsuppressTracing=NZ;function MZ(q){return q.getValue(x)===!0}Qq.isTracingSuppressed=MZ});var c=Y((Fq)=>{Object.defineProperty(Fq,"__esModule",{value:!0});Fq.BAGGAGE_MAX_TOTAL_LENGTH=Fq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=Fq.BAGGAGE_MAX_NAME_VALUE_PAIRS=Fq.BAGGAGE_HEADER=Fq.BAGGAGE_ITEMS_SEPARATOR=Fq.BAGGAGE_PROPERTIES_SEPARATOR=Fq.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;Fq.BAGGAGE_KEY_PAIR_SEPARATOR="=";Fq.BAGGAGE_PROPERTIES_SEPARATOR=";";Fq.BAGGAGE_ITEMS_SEPARATOR=",";Fq.BAGGAGE_HEADER="baggage";Fq.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;Fq.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;Fq.BAGGAGE_MAX_TOTAL_LENGTH=8192});var l=Y((Wq)=>{Object.defineProperty(Wq,"__esModule",{value:!0});Wq.parseKeyPairsIntoRecord=Wq.parseBaggageHeaderString=Wq.parsePairKeyValue=Wq.getKeyPairs=Wq.serializeKeyPairs=void 0;var RZ=K(),D=c();function EZ(q){return q.reduce((J,Z)=>{let $=`${J}${J!==""?D.BAGGAGE_ITEMS_SEPARATOR:""}${Z}`;return $.length>D.BAGGAGE_MAX_TOTAL_LENGTH?J:$},"")}Wq.serializeKeyPairs=EZ;function kZ(q){return q.getAllEntries().map(([J,Z])=>{let $=`${encodeURIComponent(J)}=${encodeURIComponent(Z.value)}`;if(Z.metadata!==void 0)$+=D.BAGGAGE_PROPERTIES_SEPARATOR+Z.metadata.toString();return $})}Wq.getKeyPairs=kZ;function u(q){if(!q)return;let J=q.indexOf(D.BAGGAGE_PROPERTIES_SEPARATOR),Z=J===-1?q:q.substring(0,J),$=Z.indexOf(D.BAGGAGE_KEY_PAIR_SEPARATOR);if($<=0)return;let Q=Z.substring(0,$).trim(),F=Z.substring($+1).trim();if(!Q||!F)return;let B,G;try{B=decodeURIComponent(Q),G=decodeURIComponent(F)}catch{return}let W;if(J!==-1&&J<q.length-1){let H=q.substring(J+1);W=(0,RZ.baggageEntryMetadataFromString)(H)}return{key:B,value:G,metadata:W}}Wq.parsePairKeyValue=u;function SZ(q,J,Z,$){let Q=0;while(Q<q.length&&Z<D.BAGGAGE_MAX_NAME_VALUE_PAIRS){let F=q.indexOf(D.BAGGAGE_ITEMS_SEPARATOR,Q),B=F===-1?q.length:F,G=B-Q;if(G<=D.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS){let W=u(q.substring(Q,B));if(W){let H=(Z===0?0:1)+G;if($+H>D.BAGGAGE_MAX_TOTAL_LENGTH)break;J[W.key]=W.metadata?{value:W.value,metadata:W.metadata}:{value:W.value},Z++,$+=H}}if(F===-1)break;Q=F+1}return[Z,$]}Wq.parseBaggageHeaderString=SZ;function dZ(q){let J={};if(typeof q==="string"&&q.length>0)q.split(D.BAGGAGE_ITEMS_SEPARATOR).forEach((Z)=>{let $=u(Z);if($!==void 0&&$.value.length>0)J[$.key]=$.value});return J}Wq.parseKeyPairsIntoRecord=dZ});var Hq=Y((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});zq.W3CBaggagePropagator=void 0;var n=K(),gZ=M(),A=c(),w=l();class Gq{inject(q,J,Z){let $=n.propagation.getBaggage(q);if(!$||(0,gZ.isTracingSuppressed)(q))return;let Q=(0,w.getKeyPairs)($).filter((B)=>{return B.length<=A.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,A.BAGGAGE_MAX_NAME_VALUE_PAIRS),F=(0,w.serializeKeyPairs)(Q);if(F.length>0)Z.set(J,A.BAGGAGE_HEADER,F)}extract(q,J,Z){let $=Z.get(J,A.BAGGAGE_HEADER);if(!$)return q;let Q={},F=0,B=0;if(Array.isArray($))for(let G=0;G<$.length;G++)[F,B]=(0,w.parseBaggageHeaderString)($[G],Q,F,B);else[F]=(0,w.parseBaggageHeaderString)($,Q,F,B);if(F===0)return q;return n.propagation.setBaggage(q,n.propagation.createBaggage(Q))}fields(){return[A.BAGGAGE_HEADER]}}zq.W3CBaggagePropagator=Gq});var Iq=Y((fq)=>{Object.defineProperty(fq,"__esModule",{value:!0});fq.AnchoredClock=void 0;class Dq{_monotonicClock;_epochMillis;_performanceMillis;constructor(q,J){this._monotonicClock=J,this._epochMillis=q.now(),this._performanceMillis=J.now()}now(){let q=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+q}}fq.AnchoredClock=Dq});var jq=Y((Aq)=>{Object.defineProperty(Aq,"__esModule",{value:!0});Aq.isAttributeValue=Aq.isAttributeKey=Aq.sanitizeAttributes=void 0;var Vq=K();function mZ(q){let J={};if(typeof q!=="object"||q==null)return J;for(let Z in q){if(!Object.prototype.hasOwnProperty.call(q,Z))continue;if(!Oq(Z)){Vq.diag.warn(`Invalid attribute key: ${Z}`);continue}let $=q[Z];if(!Nq($)){Vq.diag.warn(`Invalid attribute value set for key: ${Z}`);continue}if(Array.isArray($))J[Z]=$.slice();else J[Z]=$}return J}Aq.sanitizeAttributes=mZ;function Oq(q){return typeof q==="string"&&q!==""}Aq.isAttributeKey=Oq;function Nq(q){if(q==null)return!0;if(Array.isArray(q))return xZ(q);return Mq(typeof q)}Aq.isAttributeValue=Nq;function xZ(q){let J;for(let Z of q){if(Z==null)continue;let $=typeof Z;if($===J)continue;if(!J){if(Mq($)){J=$;continue}return!1}return!1}return!0}function Mq(q){switch(q){case"number":case"boolean":case"string":return!0}return!1}});var i=Y((hq)=>{Object.defineProperty(hq,"__esModule",{value:!0});hq.loggingErrorHandler=void 0;var lZ=K();function nZ(){return(q)=>{lZ.diag.error(iZ(q))}}hq.loggingErrorHandler=nZ;function iZ(q){if(typeof q==="string")return q;else return JSON.stringify(pZ(q))}function pZ(q){let J={},Z=q;while(Z!==null)Object.getOwnPropertyNames(Z).forEach(($)=>{if(J[$])return;let Q=Z[$];if(Q)J[$]=String(Q)}),Z=Object.getPrototypeOf(Z);return J}});var Rq=Y((Pq)=>{Object.defineProperty(Pq,"__esModule",{value:!0});Pq.globalErrorHandler=Pq.setGlobalErrorHandler=void 0;var sZ=i(),bq=(0,sZ.loggingErrorHandler)();function oZ(q){bq=q}Pq.setGlobalErrorHandler=oZ;function aZ(q){try{bq(q)}catch{}}Pq.globalErrorHandler=aZ});var yq=Y((dq)=>{Object.defineProperty(dq,"__esModule",{value:!0});dq.getStringListFromEnv=dq.getBooleanFromEnv=dq.getStringFromEnv=dq.getNumberFromEnv=void 0;var Eq=K(),kq=tZ("util");function eZ(q){let J=process.env[q];if(J==null||J.trim()==="")return;let Z=Number(J);if(isNaN(Z)){Eq.diag.warn(`Unknown value ${(0,kq.inspect)(J)} for ${q}, expected a number, using defaults`);return}return Z}dq.getNumberFromEnv=eZ;function Sq(q){let J=process.env[q];if(J==null||J.trim()==="")return;return J}dq.getStringFromEnv=Sq;function q0(q){let J=process.env[q]?.trim().toLowerCase();if(J==null||J==="")return!1;if(J==="true")return!0;else if(J==="false")return!1;else return Eq.diag.warn(`Unknown value ${(0,kq.inspect)(J)} for ${q}, expected 'true' or 'false', falling back to 'false' (default)`),!1}dq.getBooleanFromEnv=q0;function J0(q){return Sq(q)?.split(",").map((J)=>J.trim()).filter((J)=>J!=="")}dq.getStringListFromEnv=J0});var gq=Y((vq)=>{Object.defineProperty(vq,"__esModule",{value:!0});vq._globalThis=void 0;vq._globalThis=globalThis});var cq=Y((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.VERSION=void 0;mq.VERSION="2.9.0"});var nq=Y((uq)=>{Object.defineProperty(uq,"__esModule",{value:!0});uq.ATTR_PROCESS_RUNTIME_NAME=void 0;uq.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var sq=Y((iq)=>{Object.defineProperty(iq,"__esModule",{value:!0});iq.SDK_INFO=void 0;var F0=cq(),b=X0(),B0=nq();iq.SDK_INFO={[b.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[B0.ATTR_PROCESS_RUNTIME_NAME]:"node",[b.ATTR_TELEMETRY_SDK_LANGUAGE]:b.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[b.ATTR_TELEMETRY_SDK_VERSION]:F0.VERSION}});var aq=Y((I)=>{Object.defineProperty(I,"__esModule",{value:!0});I.otperformance=I.SDK_INFO=I._globalThis=I.getStringListFromEnv=I.getNumberFromEnv=I.getBooleanFromEnv=I.getStringFromEnv=void 0;var P=yq();Object.defineProperty(I,"getStringFromEnv",{enumerable:!0,get:function(){return P.getStringFromEnv}});Object.defineProperty(I,"getBooleanFromEnv",{enumerable:!0,get:function(){return P.getBooleanFromEnv}});Object.defineProperty(I,"getNumberFromEnv",{enumerable:!0,get:function(){return P.getNumberFromEnv}});Object.defineProperty(I,"getStringListFromEnv",{enumerable:!0,get:function(){return P.getStringListFromEnv}});var W0=gq();Object.defineProperty(I,"_globalThis",{enumerable:!0,get:function(){return W0._globalThis}});var Y0=sq();Object.defineProperty(I,"SDK_INFO",{enumerable:!0,get:function(){return Y0.SDK_INFO}});I.otperformance=performance});var p=Y((f)=>{Object.defineProperty(f,"__esModule",{value:!0});f.getStringListFromEnv=f.getNumberFromEnv=f.getStringFromEnv=f.getBooleanFromEnv=f.otperformance=f._globalThis=f.SDK_INFO=void 0;var V=aq();Object.defineProperty(f,"SDK_INFO",{enumerable:!0,get:function(){return V.SDK_INFO}});Object.defineProperty(f,"_globalThis",{enumerable:!0,get:function(){return V._globalThis}});Object.defineProperty(f,"otperformance",{enumerable:!0,get:function(){return V.otperformance}});Object.defineProperty(f,"getBooleanFromEnv",{enumerable:!0,get:function(){return V.getBooleanFromEnv}});Object.defineProperty(f,"getStringFromEnv",{enumerable:!0,get:function(){return V.getStringFromEnv}});Object.defineProperty(f,"getNumberFromEnv",{enumerable:!0,get:function(){return V.getNumberFromEnv}});Object.defineProperty(f,"getStringListFromEnv",{enumerable:!0,get:function(){return V.getStringListFromEnv}})});var ZJ=Y((qJ)=>{Object.defineProperty(qJ,"__esModule",{value:!0});qJ.addHrTimes=qJ.isTimeInput=qJ.isTimeInputHrTime=qJ.hrTimeToSeconds=qJ.hrTimeToMilliseconds=qJ.hrTimeToMicroseconds=qJ.hrTimeToNanoseconds=qJ.hrTimeToTimeStamp=qJ.hrTimeDuration=qJ.timeInputToHrTime=qJ.hrTime=qJ.getTimeOrigin=qJ.millisToHrTime=void 0;var C=p(),rq=9,z0=6,K0=Math.pow(10,z0),L=Math.pow(10,rq);function j(q){let J=q/1000,Z=Math.trunc(J),$=Math.round(q%1000*K0);return[Z,$]}qJ.millisToHrTime=j;function H0(){return C.otperformance.timeOrigin}qJ.getTimeOrigin=H0;function tq(q){let J=j(C.otperformance.timeOrigin),Z=j(typeof q==="number"?q:C.otperformance.now());return eq(J,Z)}qJ.hrTime=tq;function D0(q){if(s(q))return q;else if(typeof q==="number")if(q<C.otperformance.timeOrigin/2)return tq(q);else return j(q);else if(q instanceof Date)return j(q.getTime());else throw TypeError("Invalid input type")}qJ.timeInputToHrTime=D0;function f0(q,J){let Z=J[0]-q[0],$=J[1]-q[1];if($<0)Z-=1,$+=L;return[Z,$]}qJ.hrTimeDuration=f0;function U0(q){let J=rq,Z=`${"0".repeat(J)}${q[1]}Z`,$=Z.substring(Z.length-J-1);return new Date(q[0]*1000).toISOString().replace("000Z",$)}qJ.hrTimeToTimeStamp=U0;function I0(q){return q[0]*L+q[1]}qJ.hrTimeToNanoseconds=I0;function V0(q){return q[0]*1e6+q[1]/1000}qJ.hrTimeToMicroseconds=V0;function O0(q){return q[0]*1000+q[1]/1e6}qJ.hrTimeToMilliseconds=O0;function N0(q){return q[0]+q[1]/L}qJ.hrTimeToSeconds=N0;function s(q){return Array.isArray(q)&&q.length===2&&typeof q[0]==="number"&&typeof q[1]==="number"}qJ.isTimeInputHrTime=s;function M0(q){return s(q)||typeof q==="number"||q instanceof Date}qJ.isTimeInput=M0;function eq(q,J){let Z=[q[0]+J[0],q[1]+J[1]];if(Z[1]>=L)Z[1]-=L,Z[0]+=1;return Z}qJ.addHrTimes=eq});var XJ=Y(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.unrefTimer=void 0;function d0(q){if(typeof q!=="number")q.unref()}$J.unrefTimer=d0});var BJ=Y((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.ExportResultCode=void 0;var T0;(function(q){q[q.SUCCESS=0]="SUCCESS",q[q.FAILED=1]="FAILED"})(T0=FJ.ExportResultCode||(FJ.ExportResultCode={}))});var KJ=Y((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.CompositePropagator=void 0;var WJ=K();class YJ{_propagators;_fields;constructor(q={}){this._propagators=q.propagators??[];let J=new Set;for(let Z of this._propagators){let $=typeof Z.fields==="function"?Z.fields():[];for(let Q of $)J.add(Q)}this._fields=Array.from(J)}inject(q,J,Z){for(let $ of this._propagators)try{$.inject(q,J,Z)}catch(Q){WJ.diag.warn(`Failed to inject with ${$.constructor.name}. Err: ${Q.message}`)}}extract(q,J,Z){return this._propagators.reduce(($,Q)=>{try{return Q.extract($,J,Z)}catch(F){WJ.diag.warn(`Failed to extract with ${Q.constructor.name}. Err: ${F.message}`)}return $},q)}fields(){return this._fields.slice()}}GJ.CompositePropagator=YJ});var fJ=Y((HJ)=>{Object.defineProperty(HJ,"__esModule",{value:!0});HJ.validateValue=HJ.validateKey=void 0;var a="[_0-9a-z-*/]",y0=`[a-z]${a}{0,255}`,v0=`[a-z0-9]${a}{0,240}@[a-z]${a}{0,13}`,_0=new RegExp(`^(?:${y0}|${v0})$`),g0=/^[ -~]{0,255}[!-~]$/,m0=/,|=/;function x0(q){return _0.test(q)}HJ.validateKey=x0;function c0(q){return g0.test(q)&&!m0.test(q)}HJ.validateValue=c0});var t=Y((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.TraceState=void 0;var R=fJ(),l0=32,UJ=512,IJ=",",VJ="=";class r{_length;_rawTraceState;_internalState;constructor(q){this._rawTraceState=typeof q==="string"?q:"",this._length=this._rawTraceState.length}set(q,J){if(!(0,R.validateKey)(q)||!(0,R.validateValue)(J))return this;let Z=this._getState(),$=Z.get(q),Q=this._length;if(typeof $==="string")Q+=J.length-$.length;else Q+=q.length+J.length+(Z.size>0?2:1);if(Q>UJ)return this;let F=new Map(Z);return F.delete(q),F.set(q,J),this._fromState(F,Q)}unset(q){let J=this._getState(),Z=J.get(q);if(typeof Z!=="string")return this;let $=this._length-(q.length+Z.length+1);if(J.size>1)$=$-1;let Q=new Map(J);return Q.delete(q),this._fromState(Q,$)}get(q){return this._getState().get(q)}serialize(){let q="",J=0;for(let Z of this._getState()){if(J>0)q=IJ+q;q=`${Z[0]}${VJ}${Z[1]}`+q,J++}return q}_getState(){if(this._internalState)return this._internalState;let q=this._rawTraceState.split(IJ),J=new Map,Z=0;for(let $ of q){let Q=$.trim(),F=Q.indexOf(VJ);if(F===-1)continue;let B=Q.slice(0,F),G=Q.slice(F+1);if(!(0,R.validateKey)(B)||!(0,R.validateValue)(G))continue;let W=Z+Q.length+(J.size>0?1:0);if(W>UJ)continue;if(J.set(B,G),Z=W,J.size>=l0)break}return this._length=Z,this._internalState=new Map(Array.from(J.entries()).reverse()),this._internalState}_fromState(q,J){let Z=Object.create(r.prototype);return Z._internalState=q,Z._length=J,Z}}OJ.TraceState=r});var hJ=Y((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.W3CTraceContextPropagator=LJ.parseTraceParent=LJ.TRACE_STATE_HEADER=LJ.TRACE_PARENT_HEADER=void 0;var E=K(),n0=M(),i0=t();LJ.TRACE_PARENT_HEADER="traceparent";LJ.TRACE_STATE_HEADER="tracestate";var p0="00",s0="(?!ff)[\\da-f]{2}",o0="(?![0]{32})[\\da-f]{32}",a0="(?![0]{16})[\\da-f]{16}",r0="[\\da-f]{2}",t0=new RegExp(`^\\s?(${s0})-(${o0})-(${a0})-(${r0})(-.*)?\\s?$`);function MJ(q){let J=t0.exec(q);if(!J)return null;if(J[1]==="00"&&J[5])return null;return{traceId:J[2],spanId:J[3],traceFlags:parseInt(J[4],16)}}LJ.parseTraceParent=MJ;class AJ{inject(q,J,Z){let $=E.trace.getSpanContext(q);if(!$||(0,n0.isTracingSuppressed)(q)||!(0,E.isSpanContextValid)($))return;let Q=`${p0}-${$.traceId}-${$.spanId}-0${Number($.traceFlags||E.TraceFlags.NONE).toString(16)}`;if(Z.set(J,LJ.TRACE_PARENT_HEADER,Q),$.traceState)Z.set(J,LJ.TRACE_STATE_HEADER,$.traceState.serialize())}extract(q,J,Z){let $=Z.get(J,LJ.TRACE_PARENT_HEADER);if(!$)return q;let Q=Array.isArray($)?$[0]:$;if(typeof Q!=="string")return q;let F=MJ(Q);if(!F)return q;F.isRemote=!0;let B=Z.get(J,LJ.TRACE_STATE_HEADER);if(B){let G=Array.isArray(B)?B.join(","):B;F.traceState=new i0.TraceState(typeof G==="string"?G:void 0)}return E.trace.setSpanContext(q,F)}fields(){return[LJ.TRACE_PARENT_HEADER,LJ.TRACE_STATE_HEADER]}}LJ.W3CTraceContextPropagator=AJ});var CJ=Y((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.getRPCMetadata=bJ.deleteRPCMetadata=bJ.setRPCMetadata=bJ.RPCType=void 0;var q1=K(),e=(0,q1.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),J1;(function(q){q.HTTP="http"})(J1=bJ.RPCType||(bJ.RPCType={}));function Z1(q,J){return q.setValue(e,J)}bJ.setRPCMetadata=Z1;function $1(q){return q.deleteValue(e)}bJ.deleteRPCMetadata=$1;function Q1(q){return q.getValue(e)}bJ.getRPCMetadata=Q1});var yJ=Y((dJ)=>{Object.defineProperty(dJ,"__esModule",{value:!0});dJ.isPlainObject=void 0;var B1="[object Object]",W1="[object Null]",Y1="[object Undefined]",G1=Function.prototype,RJ=G1.toString,z1=RJ.call(Object),K1=Object.getPrototypeOf,EJ=Object.prototype,kJ=EJ.hasOwnProperty,O=Symbol?Symbol.toStringTag:void 0,SJ=EJ.toString;function H1(q){if(!D1(q)||f1(q)!==B1)return!1;let J=K1(q);if(J===null)return!0;let Z=kJ.call(J,"constructor")&&J.constructor;return typeof Z=="function"&&Z instanceof Z&&RJ.call(Z)===z1}dJ.isPlainObject=H1;function D1(q){return q!=null&&typeof q=="object"}function f1(q){if(q==null)return q===void 0?Y1:W1;return O&&O in Object(q)?U1(q):I1(q)}function U1(q){let J=kJ.call(q,O),Z=q[O],$=!1;try{q[O]=void 0,$=!0}catch{}let Q=SJ.call(q);if($)if(J)q[O]=Z;else delete q[O];return Q}function I1(q){return SJ.call(q)}});var uJ=Y((xJ)=>{Object.defineProperty(xJ,"__esModule",{value:!0});xJ.merge=void 0;var vJ=yJ(),V1=20;function O1(...q){let J=q.shift(),Z=new WeakMap;while(q.length>0)J=gJ(J,q.shift(),0,Z);return J}xJ.merge=O1;function qq(q){if(T(q))return q.slice();return q}function gJ(q,J,Z=0,$){let Q;if(Z>V1)return;if(Z++,d(q)||d(J)||mJ(J))Q=qq(J);else if(T(q)){if(Q=q.slice(),T(J))for(let F=0,B=J.length;F<B;F++)Q.push(qq(J[F]));else if(h(J)){let F=Object.keys(J);for(let B=0,G=F.length;B<G;B++){let W=F[B];if(W==="__proto__"||W==="constructor"||W==="prototype")continue;Q[W]=qq(J[W])}}}else if(h(q))if(h(J)){if(!N1(q,J))return J;Q=Object.assign({},q);let F=Object.keys(J);for(let B=0,G=F.length;B<G;B++){let W=F[B];if(W==="__proto__"||W==="constructor"||W==="prototype")continue;let H=J[W];if(d(H))if(typeof H>"u")delete Q[W];else Q[W]=H;else{let g=Q[W],m=H;if(_J(q,W,$)||_J(J,W,$))delete Q[W];else{if(h(g)&&h(m)){let Zq=$.get(g)||[],$q=$.get(m)||[];Zq.push({obj:q,key:W}),$q.push({obj:J,key:W}),$.set(g,Zq),$.set(m,$q)}Q[W]=gJ(Q[W],H,Z,$)}}}}else Q=J;return Q}function _J(q,J,Z){let $=Z.get(q[J])||[];for(let Q=0,F=$.length;Q<F;Q++){let B=$[Q];if(B.key===J&&B.obj===q)return!0}return!1}function T(q){return Array.isArray(q)}function mJ(q){return typeof q==="function"}function h(q){return!d(q)&&!T(q)&&!mJ(q)&&typeof q==="object"}function d(q){return typeof q==="string"||typeof q==="number"||typeof q==="boolean"||typeof q>"u"||q instanceof Date||q instanceof RegExp||q===null}function N1(q,J){if(!(0,vJ.isPlainObject)(q)||!(0,vJ.isPlainObject)(J))return!1;return!0}});var iJ=Y((lJ)=>{Object.defineProperty(lJ,"__esModule",{value:!0});lJ.callWithTimeout=lJ.TimeoutError=void 0;class y extends Error{constructor(q){super(q);Object.setPrototypeOf(this,y.prototype)}}lJ.TimeoutError=y;function M1(q,J){let Z,$=new Promise(function(F,B){Z=setTimeout(function(){B(new y("Operation timed out."))},J)});return Promise.race([q,$]).then((Q)=>{return clearTimeout(Z),Q},(Q)=>{throw clearTimeout(Z),Q})}lJ.callWithTimeout=M1});var aJ=Y((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.isUrlIgnored=sJ.urlMatches=void 0;function pJ(q,J){if(typeof J==="string")return q===J;else return!!q.match(J)}sJ.urlMatches=pJ;function L1(q,J){if(!J)return!1;for(let Z of J)if(pJ(q,Z))return!0;return!1}sJ.isUrlIgnored=L1});var qZ=Y((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.Deferred=void 0;class rJ{_promise;_resolve;_reject;constructor(){this._promise=new Promise((q,J)=>{this._resolve=q,this._reject=J})}get promise(){return this._promise}resolve(q){this._resolve(q)}reject(q){this._reject(q)}}tJ.Deferred=rJ});var QZ=Y((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.BindOnceFuture=void 0;var h1=qZ();class JZ{_isCalled=!1;_deferred=new h1.Deferred;_callback;_that;constructor(q,J){this._callback=q,this._that=J}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...q){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...q)).then((J)=>this._deferred.resolve(J),(J)=>this._deferred.reject(J))}catch(J){this._deferred.reject(J)}}return this._deferred.promise}}ZZ.BindOnceFuture=JZ});var WZ=Y((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.diagLogLevelFromString=void 0;var U=K(),XZ={ALL:U.DiagLogLevel.ALL,VERBOSE:U.DiagLogLevel.VERBOSE,DEBUG:U.DiagLogLevel.DEBUG,INFO:U.DiagLogLevel.INFO,WARN:U.DiagLogLevel.WARN,ERROR:U.DiagLogLevel.ERROR,NONE:U.DiagLogLevel.NONE};function w1(q){if(q==null)return;let J=XZ[q.toUpperCase()];if(J==null)return U.diag.warn(`Unknown log level "${q}", expected one of ${Object.keys(XZ)}, using default`),U.DiagLogLevel.INFO;return J}FZ.diagLogLevelFromString=w1});var KZ=Y((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ._export=void 0;var YZ=K(),b1=M();function P1(q,J){return new Promise((Z)=>{YZ.context.with((0,b1.suppressTracing)(YZ.context.active()),()=>{q.export(J,Z)})})}GZ._export=P1});var c1=Y((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.diagLogLevelFromString=X.BindOnceFuture=X.urlMatches=X.isUrlIgnored=X.callWithTimeout=X.TimeoutError=X.merge=X.TraceState=X.unsuppressTracing=X.suppressTracing=X.isTracingSuppressed=X.setRPCMetadata=X.getRPCMetadata=X.deleteRPCMetadata=X.RPCType=X.parseTraceParent=X.W3CTraceContextPropagator=X.TRACE_STATE_HEADER=X.TRACE_PARENT_HEADER=X.CompositePropagator=X.otperformance=X.getStringListFromEnv=X.getNumberFromEnv=X.getBooleanFromEnv=X.getStringFromEnv=X._globalThis=X.SDK_INFO=X.parseKeyPairsIntoRecord=X.ExportResultCode=X.unrefTimer=X.timeInputToHrTime=X.millisToHrTime=X.isTimeInputHrTime=X.isTimeInput=X.hrTimeToTimeStamp=X.hrTimeToSeconds=X.hrTimeToNanoseconds=X.hrTimeToMilliseconds=X.hrTimeToMicroseconds=X.hrTimeDuration=X.hrTime=X.getTimeOrigin=X.addHrTimes=X.loggingErrorHandler=X.setGlobalErrorHandler=X.globalErrorHandler=X.sanitizeAttributes=X.isAttributeValue=X.AnchoredClock=X.W3CBaggagePropagator=void 0;X.internal=void 0;var C1=Hq();Object.defineProperty(X,"W3CBaggagePropagator",{enumerable:!0,get:function(){return C1.W3CBaggagePropagator}});var R1=Iq();Object.defineProperty(X,"AnchoredClock",{enumerable:!0,get:function(){return R1.AnchoredClock}});var HZ=jq();Object.defineProperty(X,"isAttributeValue",{enumerable:!0,get:function(){return HZ.isAttributeValue}});Object.defineProperty(X,"sanitizeAttributes",{enumerable:!0,get:function(){return HZ.sanitizeAttributes}});var DZ=Rq();Object.defineProperty(X,"globalErrorHandler",{enumerable:!0,get:function(){return DZ.globalErrorHandler}});Object.defineProperty(X,"setGlobalErrorHandler",{enumerable:!0,get:function(){return DZ.setGlobalErrorHandler}});var E1=i();Object.defineProperty(X,"loggingErrorHandler",{enumerable:!0,get:function(){return E1.loggingErrorHandler}});var z=ZJ();Object.defineProperty(X,"addHrTimes",{enumerable:!0,get:function(){return z.addHrTimes}});Object.defineProperty(X,"getTimeOrigin",{enumerable:!0,get:function(){return z.getTimeOrigin}});Object.defineProperty(X,"hrTime",{enumerable:!0,get:function(){return z.hrTime}});Object.defineProperty(X,"hrTimeDuration",{enumerable:!0,get:function(){return z.hrTimeDuration}});Object.defineProperty(X,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return z.hrTimeToMicroseconds}});Object.defineProperty(X,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return z.hrTimeToMilliseconds}});Object.defineProperty(X,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return z.hrTimeToNanoseconds}});Object.defineProperty(X,"hrTimeToSeconds",{enumerable:!0,get:function(){return z.hrTimeToSeconds}});Object.defineProperty(X,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return z.hrTimeToTimeStamp}});Object.defineProperty(X,"isTimeInput",{enumerable:!0,get:function(){return z.isTimeInput}});Object.defineProperty(X,"isTimeInputHrTime",{enumerable:!0,get:function(){return z.isTimeInputHrTime}});Object.defineProperty(X,"millisToHrTime",{enumerable:!0,get:function(){return z.millisToHrTime}});Object.defineProperty(X,"timeInputToHrTime",{enumerable:!0,get:function(){return z.timeInputToHrTime}});var k1=XJ();Object.defineProperty(X,"unrefTimer",{enumerable:!0,get:function(){return k1.unrefTimer}});var S1=BJ();Object.defineProperty(X,"ExportResultCode",{enumerable:!0,get:function(){return S1.ExportResultCode}});var d1=l();Object.defineProperty(X,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return d1.parseKeyPairsIntoRecord}});var N=p();Object.defineProperty(X,"SDK_INFO",{enumerable:!0,get:function(){return N.SDK_INFO}});Object.defineProperty(X,"_globalThis",{enumerable:!0,get:function(){return N._globalThis}});Object.defineProperty(X,"getStringFromEnv",{enumerable:!0,get:function(){return N.getStringFromEnv}});Object.defineProperty(X,"getBooleanFromEnv",{enumerable:!0,get:function(){return N.getBooleanFromEnv}});Object.defineProperty(X,"getNumberFromEnv",{enumerable:!0,get:function(){return N.getNumberFromEnv}});Object.defineProperty(X,"getStringListFromEnv",{enumerable:!0,get:function(){return N.getStringListFromEnv}});Object.defineProperty(X,"otperformance",{enumerable:!0,get:function(){return N.otperformance}});var T1=KJ();Object.defineProperty(X,"CompositePropagator",{enumerable:!0,get:function(){return T1.CompositePropagator}});var v=hJ();Object.defineProperty(X,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return v.TRACE_PARENT_HEADER}});Object.defineProperty(X,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return v.TRACE_STATE_HEADER}});Object.defineProperty(X,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return v.W3CTraceContextPropagator}});Object.defineProperty(X,"parseTraceParent",{enumerable:!0,get:function(){return v.parseTraceParent}});var _=CJ();Object.defineProperty(X,"RPCType",{enumerable:!0,get:function(){return _.RPCType}});Object.defineProperty(X,"deleteRPCMetadata",{enumerable:!0,get:function(){return _.deleteRPCMetadata}});Object.defineProperty(X,"getRPCMetadata",{enumerable:!0,get:function(){return _.getRPCMetadata}});Object.defineProperty(X,"setRPCMetadata",{enumerable:!0,get:function(){return _.setRPCMetadata}});var Jq=M();Object.defineProperty(X,"isTracingSuppressed",{enumerable:!0,get:function(){return Jq.isTracingSuppressed}});Object.defineProperty(X,"suppressTracing",{enumerable:!0,get:function(){return Jq.suppressTracing}});Object.defineProperty(X,"unsuppressTracing",{enumerable:!0,get:function(){return Jq.unsuppressTracing}});var y1=t();Object.defineProperty(X,"TraceState",{enumerable:!0,get:function(){return y1.TraceState}});var v1=uJ();Object.defineProperty(X,"merge",{enumerable:!0,get:function(){return v1.merge}});var fZ=iJ();Object.defineProperty(X,"TimeoutError",{enumerable:!0,get:function(){return fZ.TimeoutError}});Object.defineProperty(X,"callWithTimeout",{enumerable:!0,get:function(){return fZ.callWithTimeout}});var UZ=aJ();Object.defineProperty(X,"isUrlIgnored",{enumerable:!0,get:function(){return UZ.isUrlIgnored}});Object.defineProperty(X,"urlMatches",{enumerable:!0,get:function(){return UZ.urlMatches}});var _1=QZ();Object.defineProperty(X,"BindOnceFuture",{enumerable:!0,get:function(){return _1.BindOnceFuture}});var g1=WZ();Object.defineProperty(X,"diagLogLevelFromString",{enumerable:!0,get:function(){return g1.diagLogLevelFromString}});var m1=KZ();X.internal={_export:m1._export}});
|
|
3
|
+
export{c1 as Df};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bf as V}from"./chunk-gjsaw7wm.js";import{rr as e}from"./chunk-8hh5ejmr.js";import{mP as N}from"./chunk-kpkbyek5.js";import{nP as z}from"./chunk-naq602da.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{Df as V}from"./chunk-mybpgrjj.js";import{gq as e}from"./chunk-gaen9ya4.js";import{cO as N}from"./chunk-7fx6x8x9.js";import{dO as z}from"./chunk-0rmmg3g4.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{t as a,u as b,v as c,w as d,x as e,y as f,z as g}from"./chunk-gw0j8hr9.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-amx3x4kd.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-xw283h2r.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{e as waitForDependencies,c as layer,f as get,d as defaultLayer,g as TuiConfig,b as Service,a as Info};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Qd as b}from"./chunk-g4qwkcdv.js";import{Uf as t}from"./chunk-qe0sfafy.js";import{uh as u}from"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import{$j as m,Uk as y}from"./chunk-3f054f69.js";import{ql as v}from"./chunk-26qt44f1.js";import{Ol as a}from"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import{TG as s}from"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";import{EOL as f}from"os";var M=b({command:"models [provider]",describe:"list all available models",builder:(r)=>{return r.positional("provider",{describe:"provider ID to filter models by",type:"string",array:!1}).option("verbose",{describe:"use more verbose model output (includes metadata like costs)",type:"boolean"}).option("refresh",{describe:"refresh the models cache from models.dev",type:"boolean"})},handler:async(r)=>{if(r.refresh)await v.refresh(!0),t.println(t.Style.TEXT_SUCCESS_BOLD+"Models cache refreshed"+t.Style.TEXT_NORMAL);await a.provide({directory:process.cwd(),async fn(){await u.runPromise(s.gen(function*(){let n=yield*(yield*y.Service).list(),l=(e,o)=>{let i=n[e],d=Object.entries(i.models).sort(([c],[p])=>c.localeCompare(p));for(let[c,p]of d)if(process.stdout.write(`${e}/${c}`),process.stdout.write(f),o)process.stdout.write(JSON.stringify(p,null,2)),process.stdout.write(f)};if(r.provider){let e=m.make(r.provider);if(!n[e]){yield*s.sync(()=>t.error(`Provider not found: ${r.provider}`));return}yield*s.sync(()=>l(e,r.verbose));return}let h=Object.keys(n).sort((e,o)=>{let i=e.startsWith("opencode"),d=o.startsWith("opencode");if(i&&!d)return-1;if(!i&&d)return 1;return e.localeCompare(o)});yield*s.sync(()=>{for(let e of h)l(m.make(e),r.verbose)})}))}})}});export{M as ModelsCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{l as
|
|
2
|
+
import{sr as i}from"./chunk-jhq5bvhs.js";import{ss as o}from"./chunk-v7ah9gg0.js";import{dO as c}from"./chunk-0rmmg3g4.js";var e=c(i(),1);import p from"path";function l(n,t){let r=t?.PATH??t?.Path??process.env.PATH??process.env.Path??"",h=r?r+p.delimiter+o.Path.bin:o.Path.bin,s=e.default.sync(n,{nothrow:!0,path:h,pathExt:t?.PATHEXT??t?.PathExt??process.env.PATHEXT??process.env.PathExt});return typeof s==="string"?s:null}
|
|
3
|
+
export{l as fo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$y as tb,Ay as Ya,By as Za,Cy as _a,Dy as $a,Ey as ab,Fy as bb,Gy as cb,Hy as db,Iy as eb,Ly as fb,My as gb,Ny as hb,Oy as ib,Py as jb,Qy as kb,Ty as lb,Uy as mb,Vy as nb,Wy as ob,Xy as pb,Yy as qb,Zy as rb,_y as sb,az as ub,bz as vb,cz as wb,dz as xb,ez as yb,fz as zb,gz as Ab,hz as Bb,iz as Cb,jz as Db,kz as Eb,ly as A,lz as Fb,my as ga,ny as Ba,oy as Ma,py as Na,ry as Oa,sy as Pa,ty as Qa,uy as Ra,vy as Sa,wy as Ta,xy as Ua,yy as Va,zy as Wa}from"./chunk-p409grvp.js";import{$G as $,AE as R,AI as na,AN as Ha,Az as g,BE as S,BJ as sa,BM as Da,Bz as h,CI as oa,CJ as ta,DI as pa,EN as Ia,FD as I,FJ as ua,FM as Ea,FN as Ja,GE as T,GM as Fa,HJ as va,IN as Ka,KH as fa,KI as qa,KJ as wa,LA as s,LE as U,MD as J,ME as V,NB as y,OB as z,PB as B,PE as W,PN as La,Pz as i,RD as K,RJ as xa,SN as Xa,TG as X,UJ as ya,VG as Y,WG as Z,WJ as za,Xz as j,YA as t,YG as _,_H as ha,_z as k,aA as l,aE as L,bC as C,eA as m,eH as aa,gB as u,gI as ia,hA as n,hH as ba,iB as v,iI as ja,jI as ka,jJ as ra,kA as o,kH as ca,mI as la,nA as p,nC as D,nz as a,pB as w,pI as ma,pz as b,qE as M,qz as c,rC as E,rE as N,sC as F,sN as Ga,tA as q,tM as Aa,uA as r,vE as O,wH as da,xB as x,xE as P,xM as Ca,xz as d,yC as G,yD as H,yH as ea,yz as e,zE as Q,zz as f}from"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{e as pipe,b as identity,g as hole,f as flow,c as cast,d as absurd,r as Utils,Fb as Unify,ua as UndefinedOr,Eb as Types,Db as TxSubscriptionRef,Cb as TxSemaphore,tb as TxRef,Bb as TxReentrantLock,zb as TxQueue,Ab as TxPubSub,yb as TxPriorityQueue,xb as TxHashSet,wb as TxHashMap,vb as TxDeferred,ub as TxChunk,v as Tuple,sb as Trie,G as Tracer,rb as Terminal,pa as Take,hb as SynchronizedRef,qb as Symbol,pb as SubscriptionRef,ta as Struct,R as String,Ga as Stream,ob as Stdio,Da as Sink,oa as Semaphore,ib as ScopedRef,nb as ScopedCache,L as Scope,mb as SchemaUtils,ca as SchemaTransformation,lb as SchemaRepresentation,va as SchemaParser,aa as SchemaIssue,ba as SchemaGetter,da as SchemaAST,Aa as Schema,F as Scheduler,U as Schedule,kb as Runtime,u as Result,jb as Resource,gb as RequestResolver,V as Request,Y as RegExp,K as References,fb as Ref,l as Reducer,$ as Redacted,o as Redactable,x as Record,Fa as RcRef,Ea as RcMap,eb as Random,na as Queue,T as Pull,ma as PubSub,Ta as PrimaryKey,i as Predicate,db as Pool,Ca as PlatformError,a as Pipeable,Ia as Path,cb as PartitionedSemaphore,bb as Ordering,s as Order,t as Option,za as Optic,Q as Number,ab as NonEmptyIterable,$a as Newtype,la as MutableRef,ka as MutableList,_a as MutableHashSet,fa as MutableHashMap,W as Metric,Za as Match,Ya as ManagedRuntime,Xa as Logger,Ka as LogLevel,Wa as LayerMap,M as Layer,ja as Latch,ya as JsonSchema,wa as JsonPointer,xa as JsonPatch,w as Iterable,q as Inspectable,sa as HashSet,Ua as HashRing,ra as HashMap,j as Hash,Va as HKT,Sa as Graph,h as Function,p as Formatter,E as Filter,Ha as FileSystem,Ra as FiberSet,Qa as FiberMap,Pa as FiberHandle,ia as Fiber,I as Exit,N as ExecutionPlan,Oa as ErrorReporter,m as Equivalence,k as Equal,_ as Encoding,X as Effect,D as Duration,Na as Differ,J as Deferred,Z as DateTime,O as Data,S as Cron,C as Context,Ma as Console,Ja as ConfigProvider,La as Config,n as Combiner,P as Clock,ha as Chunk,Ba as ChannelSchema,qa as Channel,H as Cause,ga as Cache,ea as Brand,B as Boolean,A as BigInt,z as BigDecimal,y as Array};
|