@qitqode/qitqode-android-arm64 0.1.35 → 0.2.0
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-7311jry1.js → chunk-00sr2gwz.js} +2 -2
- package/bundle/{chunk-azhw650z.js → chunk-02xcb52z.js} +2 -2
- package/bundle/{chunk-gws1rn1v.js → chunk-08q55ya0.js} +1 -1
- package/bundle/chunk-092bx2yw.js +2 -0
- package/bundle/{chunk-xgr6jnd6.js → chunk-0g25z230.js} +1 -1
- package/bundle/chunk-0jrgk6vk.js +2 -0
- package/bundle/chunk-0ne5m1n3.js +2 -0
- package/bundle/chunk-0qn52zsd.js +2 -0
- package/bundle/{chunk-7mxt5b0h.js → chunk-0z33en1a.js} +1 -1
- package/bundle/chunk-10accb7b.js +2 -0
- package/bundle/chunk-13kpdfr7.js +2 -0
- package/bundle/chunk-15s8zwgf.js +2 -0
- package/bundle/chunk-17pxm5d3.js +14 -0
- package/bundle/{chunk-nj4d554m.js → chunk-1bx2sjn6.js} +1 -1
- package/bundle/chunk-1kgyfja6.js +2 -0
- package/bundle/{chunk-bv29k2pf.js → chunk-1mcsf4yb.js} +2 -2
- package/bundle/{chunk-kwx9ewe0.js → chunk-1wpjmwnh.js} +1 -1
- package/bundle/{chunk-snr44en9.js → chunk-25bp7pcm.js} +2 -2
- package/bundle/{chunk-kmcsz8yv.js → chunk-2dkrfc1s.js} +1 -1
- package/bundle/chunk-2pzvcpv4.js +3 -0
- package/bundle/chunk-3bkdbqjj.js +2 -0
- package/bundle/{chunk-08m0hkdz.js → chunk-3dr4469n.js} +1 -1
- package/bundle/{chunk-n96tvjgj.js → chunk-3mepk08v.js} +2 -2
- package/bundle/chunk-3sz6gw10.js +3 -0
- package/bundle/{chunk-xqdrr7xg.js → chunk-45mjcxqk.js} +1 -1
- package/bundle/chunk-46ztrjw0.js +7 -0
- package/bundle/chunk-4dtkj9zg.js +2 -0
- package/bundle/chunk-4e9p3e0a.js +2 -0
- package/bundle/{chunk-qrtc3etn.js → chunk-4fa390yr.js} +2 -2
- package/bundle/chunk-4gs87ghj.js +3 -0
- package/bundle/{chunk-3k2b05fv.js → chunk-4sazy0nq.js} +1 -1
- package/bundle/chunk-4tbqsrsn.js +2 -0
- package/bundle/{chunk-ngccf7ga.js → chunk-52b1v7mn.js} +1 -1
- package/bundle/chunk-53kns5wy.js +2 -0
- package/bundle/{chunk-11v7vz3y.js → chunk-549ptbaj.js} +1 -1
- package/bundle/chunk-559ek1ym.js +2 -0
- package/bundle/chunk-55wxgsga.js +2 -0
- package/bundle/{chunk-34p46th6.js → chunk-5bate758.js} +1 -1
- package/bundle/chunk-5ke0yqqz.js +8 -0
- package/bundle/{chunk-kdcnder5.js → chunk-5kmfnkzv.js} +1 -1
- package/bundle/chunk-5myxjxae.js +3 -0
- package/bundle/chunk-5q1fz2az.js +2 -0
- package/bundle/{chunk-txbwmwxj.js → chunk-5sgpjgss.js} +1 -1
- package/bundle/{chunk-rsszcqxd.js → chunk-60qyqqxx.js} +1 -1
- package/bundle/{chunk-94pcpztx.js → chunk-64s7vfj7.js} +2 -2
- package/bundle/{chunk-6ged58yw.js → chunk-6r8pg6ma.js} +2 -2
- package/bundle/{chunk-8762ty72.js → chunk-70pb4kcm.js} +2 -2
- package/bundle/{chunk-04hvaaje.js → chunk-72zxassf.js} +1 -1
- package/bundle/{chunk-yz6898wy.js → chunk-73ckx171.js} +1 -1
- package/bundle/{chunk-gj0wt0cy.js → chunk-7fawtcnn.js} +1 -1
- package/bundle/{chunk-zfn0z4sh.js → chunk-7gbytqkn.js} +2 -2
- package/bundle/{chunk-x66ycpfs.js → chunk-7jhrxzjx.js} +2 -2
- package/bundle/{chunk-09pkckr1.js → chunk-7vftsy04.js} +1 -1
- package/bundle/chunk-871f8x99.js +4 -0
- package/bundle/chunk-88emsbaz.js +2 -0
- package/bundle/{chunk-zfd70p01.js → chunk-8dxdeksr.js} +1 -1
- package/bundle/{chunk-6styp5dn.js → chunk-8fgamz4y.js} +1 -1
- package/bundle/{chunk-9qdr9t8c.js → chunk-8q6z6emx.js} +1 -1
- package/bundle/{chunk-4ttf9rjd.js → chunk-8r3410c2.js} +1 -1
- package/bundle/{chunk-3mzcr3fw.js → chunk-8tp4whyw.js} +1 -1
- package/bundle/chunk-8yn64y27.js +2 -0
- package/bundle/{chunk-41v0x1jk.js → chunk-8yr682pv.js} +2 -2
- package/bundle/chunk-8ywa7az5.js +2 -0
- package/bundle/chunk-8ywdddts.js +2 -0
- package/bundle/{chunk-exmw8jfa.js → chunk-909fp6pm.js} +2 -2
- package/bundle/chunk-92zjark4.js +2 -0
- package/bundle/chunk-98effz12.js +2 -0
- package/bundle/{chunk-kjyw00jp.js → chunk-9cw4cnz0.js} +1 -1
- package/bundle/{chunk-2swch6mx.js → chunk-9dh9bc9d.js} +1 -1
- package/bundle/{chunk-y437vyza.js → chunk-9fkmhmh6.js} +1 -1
- package/bundle/{chunk-7vd91wsd.js → chunk-9nk0ts0s.js} +1 -1
- package/bundle/{chunk-p9cnzxb8.js → chunk-9s4whpg1.js} +2 -2
- package/bundle/{chunk-yajd975f.js → chunk-9xvctnjr.js} +1 -1
- package/bundle/{chunk-4wxxyrxn.js → chunk-9zre5e54.js} +1 -1
- package/bundle/chunk-a6z0fhta.js +2 -0
- package/bundle/{chunk-yt3f3j35.js → chunk-a9y27zd2.js} +1 -1
- package/bundle/{chunk-mex0fe9s.js → chunk-acyj91wq.js} +1 -1
- package/bundle/chunk-aj3y2e86.js +3 -0
- package/bundle/chunk-akpssv2d.js +2 -0
- package/bundle/chunk-aq28ejhv.js +2 -0
- package/bundle/{chunk-pkc4ddw1.js → chunk-atpzz901.js} +1 -1
- package/bundle/chunk-aw8af3ky.js +2 -0
- package/bundle/chunk-ax1y4699.js +2 -0
- package/bundle/{chunk-dctj3c22.js → chunk-b0jh0rby.js} +2 -2
- package/bundle/chunk-b10px5g4.js +2 -0
- package/bundle/chunk-bha3sbsj.js +2 -0
- package/bundle/{chunk-67d5d8mr.js → chunk-bnz0mxak.js} +1 -1
- package/bundle/chunk-bs020a3x.js +2 -0
- package/bundle/chunk-bs61sezq.js +2 -0
- package/bundle/{chunk-7eexey82.js → chunk-c72jajx9.js} +1 -1
- package/bundle/{chunk-81trveht.js → chunk-cagk1sjd.js} +1 -1
- package/bundle/{chunk-1byd3wma.js → chunk-cdh26622.js} +2 -2
- package/bundle/{chunk-t2vm08v6.js → chunk-ceefd2nj.js} +1 -1
- package/bundle/chunk-cmdjkx32.js +2 -0
- package/bundle/{chunk-zh3fny3z.js → chunk-cx7p4ezk.js} +2 -2
- package/bundle/chunk-cxtxvt43.js +2 -0
- package/bundle/{chunk-pxmhe36r.js → chunk-d1rn44wz.js} +1 -1
- package/bundle/{chunk-0c6ep9mc.js → chunk-d93z6hrn.js} +1 -1
- package/bundle/{chunk-zddknkw7.js → chunk-d9x9kqvy.js} +1 -1
- package/bundle/chunk-de2rfsaf.js +2 -0
- package/bundle/{chunk-seghf5fc.js → chunk-dgx4rq86.js} +1 -1
- package/bundle/{chunk-qzj6027k.js → chunk-dh1h513y.js} +1 -1
- package/bundle/chunk-dncnyzaa.js +2 -0
- package/bundle/chunk-dp6zktka.js +2 -0
- package/bundle/{chunk-ba3h1pzs.js → chunk-dshnn54c.js} +1 -1
- package/bundle/{chunk-73myw3bj.js → chunk-dt899wbf.js} +2 -2
- package/bundle/chunk-dvqdtdza.js +2 -0
- package/bundle/{chunk-6ynxf3q7.js → chunk-dvxk6mr6.js} +2 -2
- package/bundle/{chunk-bnss5dkk.js → chunk-dykqn0nj.js} +2 -2
- package/bundle/{chunk-hv6eccx1.js → chunk-dz3s882k.js} +220 -220
- package/bundle/{chunk-y9zstzed.js → chunk-eaqfnwdj.js} +1 -1
- package/bundle/{chunk-54wh8b12.js → chunk-eb8nsk7e.js} +2 -2
- package/bundle/chunk-ebabnv33.js +3 -0
- package/bundle/chunk-ebdpg3cn.js +2 -0
- package/bundle/{chunk-kfmz2p27.js → chunk-ev3a2sxv.js} +2 -2
- package/bundle/{chunk-d00c1k9w.js → chunk-ewpzqnj4.js} +1 -1
- package/bundle/chunk-eyc6tb5h.js +2 -0
- package/bundle/chunk-eze57bty.js +2 -0
- package/bundle/{chunk-qddt2gcs.js → chunk-ezrskm25.js} +1 -1
- package/bundle/chunk-fa47vzfc.js +2 -0
- package/bundle/chunk-fe397ph0.js +2 -0
- package/bundle/{chunk-bzgj60w4.js → chunk-fn8191ps.js} +2 -2
- package/bundle/chunk-fr75ytdr.js +2 -0
- package/bundle/chunk-fw2tnbt6.js +2 -0
- package/bundle/chunk-fwr2qgqb.js +2 -0
- package/bundle/chunk-fyz7fngd.js +2 -0
- package/bundle/chunk-g204pt98.js +2 -0
- package/bundle/{chunk-ggydr1ze.js → chunk-g794ey6w.js} +1 -1
- package/bundle/chunk-g8cfzzrs.js +2 -0
- package/bundle/chunk-gcgmwqhh.js +2 -0
- package/bundle/{chunk-rmve21dh.js → chunk-gg7bg3ek.js} +1 -1
- package/bundle/{chunk-9x25d115.js → chunk-gkj4a27z.js} +1 -1
- package/bundle/{chunk-sjw56r2n.js → chunk-gnt982jr.js} +3 -3
- package/bundle/chunk-grdfpd57.js +2 -0
- package/bundle/chunk-gt6tgm42.js +5 -0
- package/bundle/chunk-gw36mrg4.js +2 -0
- package/bundle/{chunk-z8gdmvgg.js → chunk-gwfx7tx7.js} +2 -2
- package/bundle/{chunk-q8hd01j7.js → chunk-gxmxx8jb.js} +1 -1
- package/bundle/{chunk-tge53d52.js → chunk-h1kg35mn.js} +1 -1
- package/bundle/chunk-h36qec67.js +2 -0
- package/bundle/{chunk-0msqaywp.js → chunk-h7w35n7w.js} +1 -1
- package/bundle/chunk-h9gtymfm.js +2 -0
- package/bundle/chunk-h9qn35pn.js +2 -0
- package/bundle/{chunk-mr8j7rc6.js → chunk-hb9mc5f9.js} +1 -1
- package/bundle/{chunk-df2aswz3.js → chunk-hcy77w6t.js} +1 -1
- package/bundle/chunk-hd8q4msp.js +2 -0
- package/bundle/{chunk-6a7c7wnf.js → chunk-hgsykghj.js} +2 -2
- package/bundle/chunk-hhjkezfz.js +2 -0
- package/bundle/chunk-hnz570f9.js +3 -0
- package/bundle/chunk-j5kyf7vt.js +5 -0
- package/bundle/{chunk-1yt5rsew.js → chunk-j63fkt6n.js} +1 -1
- package/bundle/{chunk-03xppy47.js → chunk-jcjaw7tk.js} +2 -2
- package/bundle/{chunk-jkh6eg7d.js → chunk-jf6ry79j.js} +4 -4
- package/bundle/chunk-jfz8wwk9.js +2 -0
- package/bundle/{chunk-ke7n9t5p.js → chunk-jgz1a29w.js} +3 -3
- package/bundle/{chunk-ebcdxmdd.js → chunk-jngchw38.js} +1 -1
- package/bundle/{chunk-j5ymkhry.js → chunk-jqn27885.js} +1 -1
- package/bundle/chunk-js6hqmq7.js +2 -0
- package/bundle/{chunk-hj3ddt53.js → chunk-jts0dma5.js} +2 -2
- package/bundle/chunk-k70x182t.js +2 -0
- package/bundle/chunk-k7n1csxv.js +3 -0
- package/bundle/{chunk-er38zew1.js → chunk-kb6v5hhm.js} +2 -2
- package/bundle/chunk-kmtfdky8.js +4 -0
- package/bundle/chunk-kp8nkm3m.js +2 -0
- package/bundle/{chunk-7hm0c2yg.js → chunk-kqhh2pm9.js} +1 -1
- package/bundle/{chunk-0h8wdch6.js → chunk-kt0ej3nq.js} +1 -1
- package/bundle/chunk-kwzawx7r.js +2 -0
- package/bundle/{chunk-n6msxne8.js → chunk-kx2dp8ch.js} +1 -1
- package/bundle/chunk-m0mek3es.js +2 -0
- package/bundle/{chunk-tbgczapt.js → chunk-m0xsvzyd.js} +2 -2
- package/bundle/chunk-m31d2n6h.js +2 -0
- package/bundle/{chunk-9ayxg9mq.js → chunk-m6zxr0j8.js} +2 -2
- package/bundle/{chunk-egn55fa2.js → chunk-mcc5ynma.js} +3 -3
- package/bundle/{chunk-md8161zd.js → chunk-mdzzcrf9.js} +2 -2
- package/bundle/{chunk-ynwkr3yh.js → chunk-mvnxwwe7.js} +2 -2
- package/bundle/{chunk-b4knxpqh.js → chunk-mw2hr4pd.js} +1 -1
- package/bundle/{chunk-vszbqv24.js → chunk-mzbr0m2v.js} +1 -1
- package/bundle/{chunk-bj00xk8k.js → chunk-n0trgp1c.js} +2 -2
- package/bundle/chunk-n14qktbg.js +2 -0
- package/bundle/{chunk-yjk6zv2z.js → chunk-n2ygpy76.js} +1 -1
- package/bundle/{chunk-yprmd5b7.js → chunk-n38h109k.js} +2 -2
- package/bundle/{chunk-8vg4fmg2.js → chunk-n7d9eemn.js} +180 -178
- package/bundle/{chunk-06k6egt2.js → chunk-neqy8j4n.js} +1 -1
- package/bundle/chunk-nhwhkx62.js +4 -0
- package/bundle/{chunk-nj61v4n7.js → chunk-njkserae.js} +1 -1
- package/bundle/{chunk-n6gtdx5h.js → chunk-nq495be3.js} +1 -1
- package/bundle/{chunk-p3qkexpk.js → chunk-nsjp44fp.js} +1 -1
- package/bundle/chunk-nzzsj54n.js +2 -0
- package/bundle/chunk-p19qfw59.js +2 -0
- package/bundle/chunk-p2yxj9s4.js +2 -0
- package/bundle/{chunk-1dtzxt2w.js → chunk-p3rp99na.js} +1 -1
- package/bundle/{chunk-79agp7v3.js → chunk-p8kpqyxb.js} +2 -2
- package/bundle/{chunk-9fxkh84w.js → chunk-p9zrk16q.js} +1 -1
- package/bundle/chunk-pnpre7ys.js +3 -0
- package/bundle/{chunk-ee23d2nz.js → chunk-pnq1h5az.js} +2 -2
- package/bundle/{chunk-wfd5h6ax.js → chunk-pqnbdygz.js} +2 -2
- package/bundle/chunk-pr1ysgr3.js +2 -0
- package/bundle/chunk-ps9p14y6.js +2 -0
- package/bundle/chunk-px8vtbmr.js +3 -0
- package/bundle/{chunk-zfcp509b.js → chunk-pxx2hz0g.js} +2 -2
- package/bundle/{chunk-rq4w0by4.js → chunk-q81m4m9z.js} +1 -1
- package/bundle/chunk-qagc6v17.js +2 -0
- package/bundle/{chunk-mq6jn47r.js → chunk-qb35hqm4.js} +1 -1
- package/bundle/chunk-qc0zhbhm.js +2 -0
- package/bundle/{chunk-keveg5gx.js → chunk-qdcf1ay5.js} +2 -2
- package/bundle/{chunk-t3eymzg1.js → chunk-qpzspr9z.js} +2 -2
- package/bundle/chunk-qq2rcxv2.js +9 -0
- package/bundle/{chunk-axdzm75h.js → chunk-qqne79vp.js} +2 -2
- package/bundle/{chunk-g4gjz7sq.js → chunk-qs4wef8c.js} +1 -1
- package/bundle/{chunk-nmehsm3w.js → chunk-qy1a2tpc.js} +1 -1
- package/bundle/chunk-qyjt0qnq.js +3 -0
- package/bundle/{chunk-6a77w77q.js → chunk-r0g5yyhf.js} +4 -4
- package/bundle/{chunk-by855es0.js → chunk-r58gzg6m.js} +1 -1
- package/bundle/{chunk-fmq0m4k5.js → chunk-r6ndvzd0.js} +1 -1
- package/bundle/chunk-r78kfhvz.js +2 -0
- package/bundle/{chunk-dyv2hqvc.js → chunk-rcyhqkv5.js} +1 -1
- package/bundle/{chunk-yp5bypsp.js → chunk-rexdr63q.js} +2 -2
- package/bundle/{chunk-1me21qdc.js → chunk-rgxy4ngt.js} +1 -1
- package/bundle/chunk-rnd5mnsm.js +2 -0
- package/bundle/{chunk-dcndy4sr.js → chunk-rph9zj24.js} +1 -1
- package/bundle/{chunk-ryfqwsft.js → chunk-rrd0jf5m.js} +1 -1
- package/bundle/{chunk-e74efvj2.js → chunk-rtdym35y.js} +172 -172
- package/bundle/chunk-s2xdf6qh.js +14 -0
- package/bundle/{chunk-mpygdb5a.js → chunk-s8mghr5a.js} +2 -2
- package/bundle/chunk-schtpyjs.js +2 -0
- package/bundle/{chunk-08f4khsw.js → chunk-snt1kefv.js} +3 -3
- package/bundle/{chunk-a1hzeejj.js → chunk-sp8ek94w.js} +2 -2
- package/bundle/{chunk-s8hq6trz.js → chunk-srxx88nb.js} +1 -1
- package/bundle/{chunk-gy0wm7e1.js → chunk-std2bgv7.js} +2 -2
- package/bundle/chunk-sv1s1qxd.js +619 -0
- package/bundle/{chunk-dffhkd30.js → chunk-swcgsrbj.js} +1 -1
- package/bundle/chunk-sxwqrvmy.js +28 -0
- package/bundle/chunk-sxy4hyyy.js +2 -0
- package/bundle/chunk-syc4b8rt.js +2 -0
- package/bundle/{chunk-wgk7ynt3.js → chunk-t01bhw5h.js} +3 -3
- package/bundle/chunk-tcs6wgna.js +3 -0
- package/bundle/{chunk-gmzrvxnv.js → chunk-tdmn21z0.js} +2 -2
- package/bundle/{chunk-71zw0qhf.js → chunk-tdxbm1nd.js} +1 -1
- package/bundle/{chunk-p825vsjy.js → chunk-te5tfq79.js} +1 -1
- package/bundle/chunk-tf4xwqz7.js +2 -0
- package/bundle/{chunk-fg35hwa0.js → chunk-tgd5ctnt.js} +2 -2
- package/bundle/chunk-twhavv1m.js +2 -0
- package/bundle/{chunk-qa2j0qmy.js → chunk-txqc7543.js} +2 -2
- package/bundle/chunk-tzg4z74d.js +2 -0
- package/bundle/chunk-tzrbb0e8.js +3 -0
- package/bundle/chunk-v0yxkq99.js +3 -0
- package/bundle/{chunk-a3a1trap.js → chunk-v3x5nrc4.js} +2 -2
- package/bundle/chunk-v7q3d3n6.js +3 -0
- package/bundle/chunk-v8vcwx23.js +2 -0
- package/bundle/chunk-vc4e6xc4.js +10 -0
- package/bundle/{chunk-6p7yg5sr.js → chunk-vftqwdpg.js} +1 -1
- package/bundle/{chunk-r0k21apr.js → chunk-vgaxv70x.js} +2 -2
- package/bundle/{chunk-nkk4fyqf.js → chunk-vgnddhdj.js} +1 -1
- package/bundle/{chunk-xd3xc1vv.js → chunk-vm58fkrv.js} +1 -1
- package/bundle/{chunk-qg2vk5fw.js → chunk-vsys768k.js} +1 -1
- package/bundle/{chunk-5a7fs1hg.js → chunk-vvzbfv2f.js} +1 -1
- package/bundle/{chunk-s4qtphwx.js → chunk-w03fdrxe.js} +1 -1
- package/bundle/{chunk-z1ay3qd0.js → chunk-w3bmf3zz.js} +1 -1
- package/bundle/{chunk-vsr8mnj6.js → chunk-w5940jxm.js} +1 -1
- package/bundle/chunk-w6rf2knb.js +2 -0
- package/bundle/{chunk-aa8hymcv.js → chunk-w8d9srv7.js} +2 -2
- package/bundle/chunk-w9pdvcf9.js +3 -0
- package/bundle/{chunk-yk97q51d.js → chunk-wev34grp.js} +2 -2
- package/bundle/chunk-wh7r96t3.js +2 -0
- package/bundle/{chunk-1pg6pv0m.js → chunk-wm77svwm.js} +1 -1
- package/bundle/chunk-wnjqaxze.js +2 -0
- package/bundle/{chunk-gckgaqqr.js → chunk-ws3p9cya.js} +2 -2
- package/bundle/chunk-x42w8ewc.js +2 -0
- package/bundle/{chunk-qkjdr337.js → chunk-x6rr6ss1.js} +1 -1
- package/bundle/chunk-xc9se3c8.js +2 -0
- package/bundle/{chunk-bbzztav6.js → chunk-xdacgfba.js} +1 -1
- package/bundle/{chunk-6p94fpbn.js → chunk-xdjwapwy.js} +2 -2
- package/bundle/chunk-xfz698bh.js +2 -0
- package/bundle/{chunk-zwnhf4z1.js → chunk-xhbb8b5g.js} +1 -1
- package/bundle/chunk-xjhezxft.js +8 -0
- package/bundle/chunk-xxj3sgd5.js +2 -0
- package/bundle/chunk-xxvqq7kc.js +2 -0
- package/bundle/{chunk-cs38g1bx.js → chunk-y0ydzdfc.js} +1 -1
- package/bundle/{chunk-wvf5q2hz.js → chunk-y1b2h15z.js} +1 -1
- package/bundle/{chunk-1gf116rg.js → chunk-yacccwf6.js} +1 -1
- package/bundle/chunk-ydc6ypjt.js +77 -0
- package/bundle/chunk-ye0mkqb4.js +2 -0
- package/bundle/{chunk-dhqaqeq6.js → chunk-yeq7b87a.js} +1 -1
- package/bundle/chunk-yfp9y71y.js +2 -0
- package/bundle/{chunk-e6xnynaz.js → chunk-yha554nm.js} +2 -2
- package/bundle/{chunk-rv1stdvb.js → chunk-yj6rbe9p.js} +2 -2
- package/bundle/chunk-yjjh339w.js +2 -0
- package/bundle/{chunk-c5pb87yf.js → chunk-ymtcm4xd.js} +1 -1
- package/bundle/chunk-ypk3t1eh.js +3 -0
- package/bundle/chunk-yt6vd7a5.js +2 -0
- package/bundle/{chunk-ssk8tkwd.js → chunk-yw9pfqxt.js} +1 -1
- package/bundle/{chunk-g6cyhxwg.js → chunk-yykjvt7f.js} +2 -2
- package/bundle/{chunk-sfes6pp1.js → chunk-yzh4rmrt.js} +1 -1
- package/bundle/chunk-yzn08nx1.js +2 -0
- package/bundle/chunk-yzq3c3dq.js +2 -0
- package/bundle/{chunk-prh3c44x.js → chunk-yzwgvjzd.js} +1 -1
- package/bundle/chunk-z0tfsdb9.js +3 -0
- package/bundle/chunk-z1j25911.js +2 -0
- package/bundle/{chunk-rkwrjphh.js → chunk-z1rshv6g.js} +1 -1
- package/bundle/chunk-z210dtw1.js +3 -0
- package/bundle/chunk-z29ahthm.js +2 -0
- package/bundle/{chunk-w1n4rf6n.js → chunk-z7vv0ngm.js} +2 -2
- package/bundle/{chunk-jgjnz82k.js → chunk-zaan8jk6.js} +1 -1
- package/bundle/{chunk-6gb65bv1.js → chunk-zbqzm65q.js} +1 -1
- package/bundle/{chunk-bk4phk66.js → chunk-zesbm9k1.js} +1 -1
- package/bundle/{chunk-c6vfwjg4.js → chunk-zfcfyagt.js} +1 -1
- package/bundle/{chunk-ywkvq7zb.js → chunk-zfnbk5gy.js} +1 -1
- package/bundle/chunk-zgre4gc2.js +2 -0
- package/bundle/{chunk-z7430qxg.js → chunk-zrmx397j.js} +1 -1
- package/bundle/chunk-zthkjx33.js +2 -0
- package/bundle/chunk-ztnepaqc.js +3 -0
- package/bundle/chunk-zwvwbrsc.js +2 -0
- package/bundle/chunk-zxddasg8.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-0442cmw2.js +0 -2
- package/bundle/chunk-085pvqr4.js +0 -2
- package/bundle/chunk-0x5jn813.js +0 -2
- package/bundle/chunk-11g2rpv8.js +0 -3
- package/bundle/chunk-28t9akfn.js +0 -2
- package/bundle/chunk-2h1fcqvf.js +0 -2
- package/bundle/chunk-2kens6wh.js +0 -2
- package/bundle/chunk-2scyp9ns.js +0 -2
- package/bundle/chunk-2tw58kwb.js +0 -2
- package/bundle/chunk-2vxx0tax.js +0 -2
- package/bundle/chunk-2ybt3p5z.js +0 -2
- package/bundle/chunk-2zpkw3ge.js +0 -2
- package/bundle/chunk-31g86yn6.js +0 -2
- package/bundle/chunk-397be2x0.js +0 -2
- package/bundle/chunk-3c78nkgn.js +0 -2
- package/bundle/chunk-3d91q2qd.js +0 -2
- package/bundle/chunk-43yv7tz1.js +0 -2
- package/bundle/chunk-496ajawz.js +0 -2
- package/bundle/chunk-499gp5g5.js +0 -2
- package/bundle/chunk-4hzm14xt.js +0 -3
- package/bundle/chunk-4xw14sed.js +0 -2
- package/bundle/chunk-536naqqv.js +0 -2
- package/bundle/chunk-57nvmhjq.js +0 -2
- package/bundle/chunk-5e4fxy99.js +0 -616
- package/bundle/chunk-5he3d7cy.js +0 -2
- package/bundle/chunk-5qr286w8.js +0 -2
- package/bundle/chunk-606vpgc4.js +0 -4
- package/bundle/chunk-6a1skxcj.js +0 -3
- package/bundle/chunk-6cj7cn5x.js +0 -2
- package/bundle/chunk-6hybp2mt.js +0 -2
- package/bundle/chunk-6y423jax.js +0 -3
- package/bundle/chunk-72ghkgcn.js +0 -2
- package/bundle/chunk-741teh8k.js +0 -2
- package/bundle/chunk-7b3wx6kn.js +0 -2
- package/bundle/chunk-891yevv2.js +0 -2
- package/bundle/chunk-8c1ypgw5.js +0 -3
- package/bundle/chunk-8ktgy41r.js +0 -2
- package/bundle/chunk-8q73cjyj.js +0 -2
- package/bundle/chunk-8rt63jbm.js +0 -2
- package/bundle/chunk-8y623qdx.js +0 -2
- package/bundle/chunk-921vn745.js +0 -2
- package/bundle/chunk-945ebhte.js +0 -2
- package/bundle/chunk-9548cc0c.js +0 -2
- package/bundle/chunk-9yrypq1r.js +0 -14
- package/bundle/chunk-a0rp7gh4.js +0 -77
- package/bundle/chunk-a48t0g95.js +0 -3
- package/bundle/chunk-a949at1c.js +0 -3
- package/bundle/chunk-akk84fnc.js +0 -2
- package/bundle/chunk-aw7j7brm.js +0 -2
- package/bundle/chunk-b6cybdj3.js +0 -2
- package/bundle/chunk-c5fa8cb1.js +0 -2
- package/bundle/chunk-ca4r31we.js +0 -2
- package/bundle/chunk-ckbwdrm3.js +0 -2
- package/bundle/chunk-cqj21rfj.js +0 -3
- package/bundle/chunk-cz3h5n1v.js +0 -3
- package/bundle/chunk-dhc6e1t7.js +0 -2
- package/bundle/chunk-dk6rbqvp.js +0 -2
- package/bundle/chunk-dk975etf.js +0 -3
- package/bundle/chunk-dwajajaq.js +0 -2
- package/bundle/chunk-dxcrggvq.js +0 -2
- package/bundle/chunk-dyt3n3fe.js +0 -2
- package/bundle/chunk-e7ah0e61.js +0 -2
- package/bundle/chunk-e7v9trve.js +0 -11
- package/bundle/chunk-e8ws454m.js +0 -2
- package/bundle/chunk-efndtzby.js +0 -2
- package/bundle/chunk-eq2pepce.js +0 -2
- package/bundle/chunk-eva3nqqb.js +0 -14
- package/bundle/chunk-f3bnn9rf.js +0 -8
- package/bundle/chunk-f693s9vn.js +0 -2
- package/bundle/chunk-ftepqwyq.js +0 -2
- package/bundle/chunk-g18ax6yp.js +0 -2
- package/bundle/chunk-gadyp6mb.js +0 -2
- package/bundle/chunk-ge8315te.js +0 -5
- package/bundle/chunk-gk28ffhg.js +0 -2
- package/bundle/chunk-gpfc4z4v.js +0 -2
- package/bundle/chunk-gqvg02zp.js +0 -2
- package/bundle/chunk-gsyt2sv7.js +0 -2
- package/bundle/chunk-h3k1dk9m.js +0 -2
- package/bundle/chunk-h8c3dcqt.js +0 -2
- package/bundle/chunk-hfq11w4h.js +0 -2
- package/bundle/chunk-hw5qyht3.js +0 -3
- package/bundle/chunk-hwf58w1k.js +0 -2
- package/bundle/chunk-jyczz3yh.js +0 -8
- package/bundle/chunk-k8k8z6b7.js +0 -3
- package/bundle/chunk-kk3ve911.js +0 -2
- package/bundle/chunk-kv72hxkp.js +0 -3
- package/bundle/chunk-m4j7jyrd.js +0 -3
- package/bundle/chunk-mf3sm0pk.js +0 -2
- package/bundle/chunk-mkng9ykt.js +0 -2
- package/bundle/chunk-mxvypy3s.js +0 -2
- package/bundle/chunk-n5ypgxrn.js +0 -28
- package/bundle/chunk-n9xw9kqc.js +0 -2
- package/bundle/chunk-nc4wbc89.js +0 -2
- package/bundle/chunk-ngk67rt3.js +0 -3
- package/bundle/chunk-nj2bbtmx.js +0 -2
- package/bundle/chunk-nr1g57b2.js +0 -2
- package/bundle/chunk-p0ahbpxv.js +0 -2
- package/bundle/chunk-p7y8z5rd.js +0 -2
- package/bundle/chunk-pt26gerr.js +0 -2
- package/bundle/chunk-qkk1as5n.js +0 -2
- package/bundle/chunk-qsm9xw87.js +0 -2
- package/bundle/chunk-qw980y8h.js +0 -2
- package/bundle/chunk-r2w3gr8d.js +0 -2
- package/bundle/chunk-r5bqcpkz.js +0 -2
- package/bundle/chunk-r67c858b.js +0 -2
- package/bundle/chunk-r9fvfkee.js +0 -2
- package/bundle/chunk-rcn0dhbj.js +0 -2
- package/bundle/chunk-rq47pn3r.js +0 -2
- package/bundle/chunk-rvt1tdy8.js +0 -2
- package/bundle/chunk-ry7q8xn6.js +0 -2
- package/bundle/chunk-s27xvrft.js +0 -2
- package/bundle/chunk-s5nde2kd.js +0 -5
- package/bundle/chunk-scy39p6q.js +0 -2
- package/bundle/chunk-srpe3v8e.js +0 -9
- package/bundle/chunk-st5jaszz.js +0 -3
- package/bundle/chunk-t5qamf96.js +0 -2
- package/bundle/chunk-t9mz17gb.js +0 -3
- package/bundle/chunk-tns5x4w0.js +0 -3
- package/bundle/chunk-ttevj0pj.js +0 -2
- package/bundle/chunk-v7c54cyj.js +0 -2
- package/bundle/chunk-vgefaens.js +0 -2
- package/bundle/chunk-vv59b4re.js +0 -2
- package/bundle/chunk-vwqy7n3g.js +0 -2
- package/bundle/chunk-vysa9hp4.js +0 -7
- package/bundle/chunk-wn076jwj.js +0 -2
- package/bundle/chunk-x0m1qye9.js +0 -2
- package/bundle/chunk-xvntsbb1.js +0 -3
- package/bundle/chunk-y70aachh.js +0 -2
- package/bundle/chunk-yqk58hf6.js +0 -3
- package/bundle/chunk-ysgxt83y.js +0 -2
- package/bundle/chunk-ze9e6nt3.js +0 -3
- package/bundle/chunk-znzan00b.js +0 -3
- package/bundle/chunk-zrp55k47.js +0 -2
- package/bundle/chunk-zwdnh860.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$r as s0,Sr as E,Tr as yZ,Ur as N0,Vr as ZQ,Wr as ZJ,Xr as p0,Yr as n0,Zr as i0,as as o0}from"./chunk-a48t0g95.js";import{bs as AQ}from"./chunk-yqk58hf6.js";import{CP as C0,DB as h0,GD as _0,IF as k0,JF as I0,JG as x0,LD as O0,LG as c0,LH as S0,LP as L0,MP as P0,PG as r,RD as D0,TG as u,UH as JJ,YG as g,aI as QJ,dG as NJ,dH as y0,eG as PJ,gG as d0,hG as l0,iG as m0,jG as XQ,kG as u0,mB as g0,oE as E0,rG as A0,tD as WQ,vD as $Q,xH as t,zH as e}from"./chunk-a0rp7gh4.js";import{ZP as M}from"./chunk-ee23d2nz.js";import{$P as K,_P as d,cQ as TJ}from"./chunk-3k2b05fv.js";var bJ=K((GQ)=>{Object.defineProperty(GQ,"__esModule",{value:!0});GQ.AbstractAsyncHooksContextManager=void 0;var t0=TJ("events"),e0=["addListener","on","once","prependListener","prependOnceListener"];class KQ{bind(J,Q){if(Q instanceof t0.EventEmitter)return this._bindEventEmitter(J,Q);if(typeof Q==="function")return this._bindFunction(J,Q);return Q}_bindFunction(J,Q){let Z=this,$=function(...q){return Z.with(J,()=>Q.apply(this,q))};return Object.defineProperty($,"length",{enumerable:!1,configurable:!0,writable:!1,value:Q.length}),$}_bindEventEmitter(J,Q){if(this._getPatchMap(Q)!==void 0)return Q;if(this._createPatchMap(Q),e0.forEach(($)=>{if(Q[$]===void 0)return;Q[$]=this._patchAddListener(Q,Q[$],J)}),typeof Q.removeListener==="function")Q.removeListener=this._patchRemoveListener(Q,Q.removeListener);if(typeof Q.off==="function")Q.off=this._patchRemoveListener(Q,Q.off);if(typeof Q.removeAllListeners==="function")Q.removeAllListeners=this._patchRemoveAllListeners(Q,Q.removeAllListeners);return Q}_patchRemoveListener(J,Q){let Z=this;return function($,q){let W=Z._getPatchMap(J)?.[$];if(W===void 0)return Q.call(this,$,q);let X=W.get(q);return Q.call(this,$,X||q)}}_patchRemoveAllListeners(J,Q){let Z=this;return function($){let q=Z._getPatchMap(J);if(q!==void 0){if(arguments.length===0)Z._createPatchMap(J);else if(q[$]!==void 0)delete q[$]}return Q.apply(this,arguments)}}_patchAddListener(J,Q,Z){let $=this;return function(q,W){if($._wrapped)return Q.call(this,q,W);let X=$._getPatchMap(J);if(X===void 0)X=$._createPatchMap(J);let H=X[q];if(H===void 0)H=new WeakMap,X[q]=H;let Y=$.bind(Z,W);H.set(W,Y),$._wrapped=!0;try{return Q.call(this,q,Y)}finally{$._wrapped=!1}}}_createPatchMap(J){let Q=Object.create(null);return J[this._kOtListeners]=Q,Q}_getPatchMap(J){return J[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1}GQ.AbstractAsyncHooksContextManager=KQ});var jQ=K((UQ)=>{Object.defineProperty(UQ,"__esModule",{value:!0});UQ.AsyncHooksContextManager=void 0;var J6=M(),Q6=TJ("async_hooks"),Z6=bJ();class VQ extends Z6.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super();this._asyncHook=Q6.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??J6.ROOT_CONTEXT}with(J,Q,Z,...$){this._enterContext(J);try{return Q.call(Z,...$)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(J,Q){if(Q==="TIMERWRAP")return;let Z=this._stack[this._stack.length-1];if(Z!==void 0)this._contexts.set(J,Z)}_destroy(J){this._contexts.delete(J)}_before(J){let Q=this._contexts.get(J);if(Q!==void 0)this._enterContext(Q)}_after(){this._exitContext()}_enterContext(J){this._stack.push(J)}_exitContext(){this._stack.pop()}}UQ.AsyncHooksContextManager=VQ});var DQ=K((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.AsyncLocalStorageContextManager=void 0;var $6=M(),q6=TJ("async_hooks"),W6=bJ();class FQ extends W6.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super();this._asyncLocalStorage=new q6.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??$6.ROOT_CONTEXT}with(J,Q,Z,...$){let q=Z==null?Q:Q.bind(Z);return this._asyncLocalStorage.run(J,q,...$)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}hQ.AsyncLocalStorageContextManager=FQ});var EQ=K((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.AsyncLocalStorageContextManager=GJ.AsyncHooksContextManager=void 0;var z6=jQ();Object.defineProperty(GJ,"AsyncHooksContextManager",{enumerable:!0,get:function(){return z6.AsyncHooksContextManager}});var X6=DQ();Object.defineProperty(GJ,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return X6.AsyncLocalStorageContextManager}})});var MQ=K((kQ)=>{Object.defineProperty(kQ,"__esModule",{value:!0});kQ.ExceptionEventName=void 0;kQ.ExceptionEventName="exception"});var PQ=K((CQ)=>{Object.defineProperty(CQ,"__esModule",{value:!0});CQ.SpanImpl=void 0;var h=M(),O=E(),m=AQ(),H6=MQ();class RQ{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:h.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(J){let Q=Date.now();if(this._spanContext=J.spanContext,this._performanceStartTime=O.otperformance.now(),this._performanceOffset=Q-(this._performanceStartTime+O.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 Z of J.links)this.addLink(Z);if(this.startTime=this._getTime(J.startTime??Q),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,Q){if(Q==null||this._isSpanEnded())return this;if(J.length===0)return h.diag.warn(`Invalid attribute key: ${J}`),this;if(!(0,O.isAttributeValue)(Q))return h.diag.warn(`Invalid attribute value set for key: ${J}`),this;let{attributeCountLimit:Z}=this._spanLimits,$=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(Z!==void 0&&this._attributesCount>=Z&&$)return this._droppedAttributesCount++,this;if(this.attributes[J]=this._truncateToSize(Q),$)this._attributesCount++;return this}setAttributes(J){for(let Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))this.setAttribute(Q,J[Q]);return this}addEvent(J,Q,Z){if(this._isSpanEnded())return this;let{eventCountLimit:$}=this._spanLimits;if($===0)return h.diag.warn("No events allowed."),this._droppedEventsCount++,this;if($!==void 0&&this.events.length>=$){if(this._droppedEventsCount===0)h.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if((0,O.isTimeInput)(Q)){if(!(0,O.isTimeInput)(Z))Z=Q;Q=void 0}let q=(0,O.sanitizeAttributes)(Q),{attributePerEventCountLimit:W}=this._spanLimits,X={},H=0,Y=0;for(let V in q){if(!Object.prototype.hasOwnProperty.call(q,V))continue;let R=q[V];if(W!==void 0&&Y>=W){H++;continue}X[V]=this._truncateToSize(R),Y++}return this.events.push({name:J,attributes:X,time:this._getTime(Z),droppedAttributesCount:H}),this}addLink(J){if(this._isSpanEnded())return this;let{linkCountLimit:Q}=this._spanLimits;if(Q===0)return this._droppedLinksCount++,this;if(Q!==void 0&&this.links.length>=Q){if(this._droppedLinksCount===0)h.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:Z}=this._spanLimits,$=(0,O.sanitizeAttributes)(J.attributes),q={},W=0,X=0;for(let Y in $){if(!Object.prototype.hasOwnProperty.call($,Y))continue;let V=$[Y];if(Z!==void 0&&X>=Z){W++;continue}q[Y]=this._truncateToSize(V),X++}let H={context:J.context};if(X>0)H.attributes=q;if(W>0)H.droppedAttributesCount=W;return this.links.push(H),this}addLinks(J){for(let Q of J)this.addLink(Q);return this}setStatus(J){if(this._isSpanEnded())return this;if(J.code===h.SpanStatusCode.UNSET)return this;if(this.status.code===h.SpanStatusCode.OK)return this;let Q={code:J.code};if(J.code===h.SpanStatusCode.ERROR){if(typeof J.message==="string")Q.message=J.message;else if(J.message!=null)h.diag.warn(`Dropping invalid status.message of type '${typeof J.message}', expected 'string'`)}return this.status=Q,this}updateName(J){if(this._isSpanEnded())return this;return this.name=J,this}end(J){if(this._isSpanEnded()){h.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=(0,O.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0)h.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)h.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)h.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<=O.otperformance.now())return(0,O.hrTime)(J+this._performanceOffset);if(typeof J==="number")return(0,O.millisToHrTime)(J);if(J instanceof Date)return(0,O.millisToHrTime)(J.getTime());if((0,O.isTimeInputHrTime)(J))return J;if(this._startTimeProvided)return(0,O.millisToHrTime)(Date.now());let Q=O.otperformance.now()-this._performanceStartTime;return(0,O.addHrTimes)(this.startTime,(0,O.millisToHrTime)(Q))}isRecording(){return this._ended===!1}recordException(J,Q){let Z={};if(typeof J==="string")Z[m.ATTR_EXCEPTION_MESSAGE]=J;else if(J){if(J.code)Z[m.ATTR_EXCEPTION_TYPE]=J.code.toString();else if(J.name)Z[m.ATTR_EXCEPTION_TYPE]=J.name;if(J.message)Z[m.ATTR_EXCEPTION_MESSAGE]=J.message;if(J.stack)Z[m.ATTR_EXCEPTION_STACKTRACE]=J.stack}if(Z[m.ATTR_EXCEPTION_TYPE]||Z[m.ATTR_EXCEPTION_MESSAGE])this.addEvent(H6.ExceptionEventName,Z,Q);else h.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}}`);h.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,J)}return this._ended}_truncateToLimitUtil(J,Q){if(J.length<=Q)return J;return J.substring(0,Q)}_truncateToSize(J){let Q=this._attributeValueLengthLimit;if(Q<=0)return h.diag.warn(`Attribute value limit must be positive, got ${Q}`),J;if(typeof J==="string")return this._truncateToLimitUtil(J,Q);if(Array.isArray(J))return J.map((Z)=>typeof Z==="string"?this._truncateToLimitUtil(Z,Q):Z);return J}}CQ.SpanImpl=RQ});var i=K((NQ)=>{Object.defineProperty(NQ,"__esModule",{value:!0});NQ.SamplingDecision=void 0;var K6;(function(J){J[J.NOT_RECORD=0]="NOT_RECORD",J[J.RECORD=1]="RECORD",J[J.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(K6=NQ.SamplingDecision||(NQ.SamplingDecision={}))});var wJ=K((TQ)=>{Object.defineProperty(TQ,"__esModule",{value:!0});TQ.AlwaysOffSampler=void 0;var G6=i();class fQ{shouldSample(){return{decision:G6.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}TQ.AlwaysOffSampler=fQ});var VJ=K((xQ)=>{Object.defineProperty(xQ,"__esModule",{value:!0});xQ.AlwaysOnSampler=void 0;var w6=i();class _Q{shouldSample(){return{decision:w6.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}xQ.AlwaysOnSampler=_Q});var dJ=K((vQ)=>{Object.defineProperty(vQ,"__esModule",{value:!0});vQ.ParentBasedSampler=void 0;var UJ=M(),V6=E(),yQ=wJ(),xJ=VJ();class SQ{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(J){if(this._root=J.root,!this._root)(0,V6.globalErrorHandler)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new xJ.AlwaysOnSampler;this._remoteParentSampled=J.remoteParentSampled??new xJ.AlwaysOnSampler,this._remoteParentNotSampled=J.remoteParentNotSampled??new yQ.AlwaysOffSampler,this._localParentSampled=J.localParentSampled??new xJ.AlwaysOnSampler,this._localParentNotSampled=J.localParentNotSampled??new yQ.AlwaysOffSampler}shouldSample(J,Q,Z,$,q,W){let X=UJ.trace.getSpanContext(J);if(!X||!(0,UJ.isSpanContextValid)(X))return this._root.shouldSample(J,Q,Z,$,q,W);if(X.isRemote){if(X.traceFlags&UJ.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(J,Q,Z,$,q,W);return this._remoteParentNotSampled.shouldSample(J,Q,Z,$,q,W)}if(X.traceFlags&UJ.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(J,Q,Z,$,q,W);return this._localParentNotSampled.shouldSample(J,Q,Z,$,q,W)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}vQ.ParentBasedSampler=SQ});var yJ=K((uQ)=>{Object.defineProperty(uQ,"__esModule",{value:!0});uQ.TraceIdRatioBasedSampler=void 0;var U6=M(),lQ=i();class mQ{_ratio;_upperBound;constructor(J=0){this._ratio=this._normalize(J),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(J,Q){return{decision:(0,U6.isValidTraceId)(Q)&&this._accumulate(Q)<this._upperBound?lQ.SamplingDecision.RECORD_AND_SAMPLED:lQ.SamplingDecision.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 Q=0;for(let Z=0;Z<J.length/8;Z++){let $=Z*8,q=parseInt(J.slice($,$+8),16);Q=(Q^q)>>>0}return Q}}uQ.TraceIdRatioBasedSampler=mQ});var gJ=K((oQ)=>{Object.defineProperty(oQ,"__esModule",{value:!0});oQ.buildSamplerFromEnv=oQ.loadDefaultConfig=void 0;var vJ=M(),_=E(),pQ=wJ(),SJ=VJ(),BJ=dJ(),nQ=yJ(),x;(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"})(x||(x={}));var jJ=1;function B6(){return{sampler:sQ(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:(0,_.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,_.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}oQ.loadDefaultConfig=B6;function sQ(){let J=(0,_.getStringFromEnv)("OTEL_TRACES_SAMPLER")??x.ParentBasedAlwaysOn;switch(J){case x.AlwaysOn:return new SJ.AlwaysOnSampler;case x.AlwaysOff:return new pQ.AlwaysOffSampler;case x.ParentBasedAlwaysOn:return new BJ.ParentBasedSampler({root:new SJ.AlwaysOnSampler});case x.ParentBasedAlwaysOff:return new BJ.ParentBasedSampler({root:new pQ.AlwaysOffSampler});case x.TraceIdRatio:return new nQ.TraceIdRatioBasedSampler(iQ());case x.ParentBasedTraceIdRatio:return new BJ.ParentBasedSampler({root:new nQ.TraceIdRatioBasedSampler(iQ())});default:return vJ.diag.error(`OTEL_TRACES_SAMPLER value "${J}" invalid, defaulting to "${x.ParentBasedAlwaysOn}".`),new BJ.ParentBasedSampler({root:new SJ.AlwaysOnSampler})}}oQ.buildSamplerFromEnv=sQ;function iQ(){let J=(0,_.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");if(J==null)return vJ.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${jJ}.`),jJ;if(J<0||J>1)return vJ.diag.error(`OTEL_TRACES_SAMPLER_ARG=${J} was given, but it is out of range ([0..1]), defaulting to ${jJ}.`),jJ;return J}});var lJ=K((tQ)=>{Object.defineProperty(tQ,"__esModule",{value:!0});tQ.reconfigureLimits=tQ.mergeConfig=tQ.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=tQ.DEFAULT_ATTRIBUTE_COUNT_LIMIT=void 0;var rQ=gJ(),FJ=E();tQ.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;tQ.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;function F6(J){let Q={sampler:(0,rQ.buildSamplerFromEnv)()},Z=(0,rQ.loadDefaultConfig)(),$=Object.assign({},Z,Q,J);return $.generalLimits=Object.assign({},Z.generalLimits,J.generalLimits||{}),$.spanLimits=Object.assign({},Z.spanLimits,J.spanLimits||{}),$}tQ.mergeConfig=F6;function h6(J){let Q=Object.assign({},J.spanLimits);return Q.attributeCountLimit=J.spanLimits?.attributeCountLimit??J.generalLimits?.attributeCountLimit??(0,FJ.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,FJ.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??tQ.DEFAULT_ATTRIBUTE_COUNT_LIMIT,Q.attributeValueLengthLimit=J.spanLimits?.attributeValueLengthLimit??J.generalLimits?.attributeValueLengthLimit??(0,FJ.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,FJ.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??tQ.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},J,{spanLimits:Q})}tQ.reconfigureLimits=h6});var WZ=K(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.BatchSpanProcessorBase=void 0;var s=M(),S=E();class ZZ{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(J,Q){if(this._exporter=J,this._maxExportBatchSize=typeof Q?.maxExportBatchSize==="number"?Q.maxExportBatchSize:(0,S.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof Q?.maxQueueSize==="number"?Q.maxQueueSize:(0,S.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof Q?.scheduledDelayMillis==="number"?Q.scheduledDelayMillis:(0,S.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5000,this._exportTimeoutMillis=typeof Q?.exportTimeoutMillis==="number"?Q.exportTimeoutMillis:(0,S.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??30000,this._shutdownOnce=new S.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)s.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(J,Q){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&s.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._exporter.shutdown()})}_addToBuffer(J){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)s.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++;return}if(this._droppedSpansCount>0)s.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(J),this._maybeStartTimer()}_flushAll(){return new Promise((J,Q)=>{let Z=[],$=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let q=0,W=$;q<W;q++)Z.push(this._flushOneBatch());Promise.all(Z).then(()=>{J()}).catch(Q)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((J,Q)=>{let Z=setTimeout(()=>{Q(Error("Timeout"))},this._exportTimeoutMillis);s.context.with((0,S.suppressTracing)(s.context.active()),()=>{let $;if(this._finishedSpans.length<=this._maxExportBatchSize)$=this._finishedSpans,this._finishedSpans=[];else $=this._finishedSpans.splice(0,this._maxExportBatchSize);let q=()=>this._exporter.export($,(X)=>{if(clearTimeout(Z),X.code===S.ExportResultCode.SUCCESS)J();else Q(X.error??Error("BatchSpanProcessor: span export failed"))}),W=null;for(let X=0,H=$.length;X<H;X++){let Y=$[X];if(Y.resource.asyncAttributesPending&&Y.resource.waitForAsyncAttributes)W??=[],W.push(Y.resource.waitForAsyncAttributes())}if(W===null)q();else Promise.all(W).then(q,(X)=>{(0,S.globalErrorHandler)(X),Q(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((Q)=>{this._isExporting=!1,(0,S.globalErrorHandler)(Q)})};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}}$Z.BatchSpanProcessorBase=ZZ});var HZ=K((XZ)=>{Object.defineProperty(XZ,"__esModule",{value:!0});XZ.BatchSpanProcessor=void 0;var D6=WZ();class zZ extends D6.BatchSpanProcessorBase{onShutdown(){}}XZ.BatchSpanProcessor=zZ});var BZ=K((VZ)=>{Object.defineProperty(VZ,"__esModule",{value:!0});VZ.RandomIdGenerator=void 0;var E6=8,GZ=16;class wZ{generateTraceId=KZ(GZ);generateSpanId=KZ(E6)}VZ.RandomIdGenerator=wZ;var hJ=Buffer.allocUnsafe(GZ);function KZ(J){return function(){for(let Z=0;Z<J/4;Z++)hJ.writeUInt32BE(Math.random()*4294967296>>>0,Z*4);for(let Z=0;Z<J;Z++)if(hJ[Z]>0)break;else if(Z===J-1)hJ[J-1]=1;return hJ.toString("hex",0,J)}}});var jZ=K((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.RandomIdGenerator=OJ.BatchSpanProcessor=void 0;var k6=HZ();Object.defineProperty(OJ,"BatchSpanProcessor",{enumerable:!0,get:function(){return k6.BatchSpanProcessor}});var I6=BZ();Object.defineProperty(OJ,"RandomIdGenerator",{enumerable:!0,get:function(){return I6.RandomIdGenerator}})});var mJ=K((DJ)=>{Object.defineProperty(DJ,"__esModule",{value:!0});DJ.RandomIdGenerator=DJ.BatchSpanProcessor=void 0;var FZ=jZ();Object.defineProperty(DJ,"BatchSpanProcessor",{enumerable:!0,get:function(){return FZ.BatchSpanProcessor}});Object.defineProperty(DJ,"RandomIdGenerator",{enumerable:!0,get:function(){return FZ.RandomIdGenerator}})});var DZ=K((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});hZ.METRIC_OTEL_SDK_SPAN_STARTED=hZ.METRIC_OTEL_SDK_SPAN_LIVE=hZ.ATTR_OTEL_SPAN_SAMPLING_RESULT=hZ.ATTR_OTEL_SPAN_PARENT_ORIGIN=void 0;hZ.ATTR_OTEL_SPAN_PARENT_ORIGIN="otel.span.parent.origin";hZ.ATTR_OTEL_SPAN_SAMPLING_RESULT="otel.span.sampling_result";hZ.METRIC_OTEL_SDK_SPAN_LIVE="otel.sdk.span.live";hZ.METRIC_OTEL_SDK_SPAN_STARTED="otel.sdk.span.started"});var MZ=K((kZ)=>{Object.defineProperty(kZ,"__esModule",{value:!0});kZ.TracerMetrics=void 0;var EJ=i(),qJ=DZ();class EZ{startedSpans;liveSpans;constructor(J){this.startedSpans=J.createCounter(qJ.METRIC_OTEL_SDK_SPAN_STARTED,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=J.createUpDownCounter(qJ.METRIC_OTEL_SDK_SPAN_LIVE,{unit:"{span}",description:"The number of currently live spans."})}startSpan(J,Q){let Z=N6(Q);if(this.startedSpans.add(1,{[qJ.ATTR_OTEL_SPAN_PARENT_ORIGIN]:P6(J),[qJ.ATTR_OTEL_SPAN_SAMPLING_RESULT]:Z}),Q===EJ.SamplingDecision.NOT_RECORD)return()=>{};let $={[qJ.ATTR_OTEL_SPAN_SAMPLING_RESULT]:Z};return this.liveSpans.add(1,$),()=>{this.liveSpans.add(-1,$)}}}kZ.TracerMetrics=EZ;function P6(J){if(!J)return"none";if(J.isRemote)return"remote";return"local"}function N6(J){switch(J){case EJ.SamplingDecision.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case EJ.SamplingDecision.RECORD:return"RECORD_ONLY";case EJ.SamplingDecision.NOT_RECORD:return"DROP"}}});var CZ=K((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});AZ.VERSION=void 0;AZ.VERSION="2.6.1"});var fZ=K((PZ)=>{Object.defineProperty(PZ,"__esModule",{value:!0});PZ.Tracer=void 0;var F=M(),kJ=E(),f6=PQ(),T6=lJ(),b6=mJ(),_6=MZ(),x6=CZ();class LZ{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(J,Q,Z,$){let q=(0,T6.mergeConfig)(Q);this._sampler=q.sampler,this._generalLimits=q.generalLimits,this._spanLimits=q.spanLimits,this._idGenerator=Q.idGenerator||new b6.RandomIdGenerator,this._resource=Z,this._spanProcessor=$,this.instrumentationScope=J;let W=q.meterProvider?q.meterProvider.getMeter("@opentelemetry/sdk-trace",x6.VERSION):F.createNoopMeter();this._tracerMetrics=new _6.TracerMetrics(W)}startSpan(J,Q={},Z=F.context.active()){if(Q.root)Z=F.trace.deleteSpan(Z);let $=F.trace.getSpan(Z);if((0,kJ.isTracingSuppressed)(Z))return F.diag.debug("Instrumentation suppressed, returning Noop Span"),F.trace.wrapSpanContext(F.INVALID_SPAN_CONTEXT);let q=$?.spanContext(),W=this._idGenerator.generateSpanId(),X,H,Y;if(!q||!F.trace.isSpanContextValid(q))H=this._idGenerator.generateTraceId();else H=q.traceId,Y=q.traceState,X=q;let V=Q.kind??F.SpanKind.INTERNAL,R=(Q.links??[]).map((D)=>{return{context:D.context,attributes:(0,kJ.sanitizeAttributes)(D.attributes)}}),z=(0,kJ.sanitizeAttributes)(Q.attributes),U=this._sampler.shouldSample(Z,H,J,V,z,R),I=this._tracerMetrics.startSpan(q,U.decision);Y=U.traceState??Y;let G=U.decision===F.SamplingDecision.RECORD_AND_SAMPLED?F.TraceFlags.SAMPLED:F.TraceFlags.NONE,w={traceId:H,spanId:W,traceFlags:G,traceState:Y};if(U.decision===F.SamplingDecision.NOT_RECORD)return F.diag.debug("Recording is off, propagating context in a non-recording span"),F.trace.wrapSpanContext(w);let B=(0,kJ.sanitizeAttributes)(Object.assign(z,U.attributes));return new f6.SpanImpl({resource:this._resource,scope:this.instrumentationScope,context:Z,spanContext:w,name:J,kind:V,links:R,parentSpanContext:X,attributes:B,startTime:Q.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:I})}startActiveSpan(J,Q,Z,$){let q,W,X;if(arguments.length<2)return;else if(arguments.length===2)X=Q;else if(arguments.length===3)q=Q,X=Z;else q=Q,W=Z,X=$;let H=W??F.context.active(),Y=this.startSpan(J,q,H),V=F.trace.setSpan(H,Y);return F.context.with(V,X,void 0,Y)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}PZ.Tracer=LZ});var xZ=K((bZ)=>{Object.defineProperty(bZ,"__esModule",{value:!0});bZ.MultiSpanProcessor=void 0;var d6=E();class TZ{_spanProcessors;constructor(J){this._spanProcessors=J}forceFlush(){let J=[];for(let Q of this._spanProcessors)J.push(Q.forceFlush());return new Promise((Q)=>{Promise.all(J).then(()=>{Q()}).catch((Z)=>{(0,d6.globalErrorHandler)(Z||Error("MultiSpanProcessor: forceFlush failed")),Q()})})}onStart(J,Q){for(let Z of this._spanProcessors)Z.onStart(J,Q)}onEnding(J){for(let Q of this._spanProcessors)if(Q.onEnding)Q.onEnding(J)}onEnd(J){for(let Q of this._spanProcessors)Q.onEnd(J)}shutdown(){let J=[];for(let Q of this._spanProcessors)J.push(Q.shutdown());return new Promise((Q,Z)=>{Promise.all(J).then(()=>{Q()},Z)})}}bZ.MultiSpanProcessor=TZ});var lZ=K((vZ)=>{Object.defineProperty(vZ,"__esModule",{value:!0});vZ.BasicTracerProvider=vZ.ForceFlushState=void 0;var y6=E(),S6=yZ(),v6=fZ(),g6=gJ(),l6=xZ(),m6=lJ(),o;(function(J){J[J.resolved=0]="resolved",J[J.timeout=1]="timeout",J[J.error=2]="error",J[J.unresolved=3]="unresolved"})(o=vZ.ForceFlushState||(vZ.ForceFlushState={}));class SZ{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(J={}){let Q=(0,y6.merge)({},(0,g6.loadDefaultConfig)(),(0,m6.reconfigureLimits)(J));this._resource=Q.resource??(0,S6.defaultResource)(),this._config=Object.assign({},Q,{resource:this._resource});let Z=[];if(J.spanProcessors?.length)Z.push(...J.spanProcessors);this._activeSpanProcessor=new l6.MultiSpanProcessor(Z)}getTracer(J,Q,Z){let $=`${J}@${Q||""}:${Z?.schemaUrl||""}`;if(!this._tracers.has($))this._tracers.set($,new v6.Tracer({name:J,version:Q,schemaUrl:Z?.schemaUrl},this._config,this._resource,this._activeSpanProcessor));return this._tracers.get($)}forceFlush(){let J=this._config.forceFlushTimeoutMillis,Q=this._activeSpanProcessor._spanProcessors.map((Z)=>{return new Promise(($)=>{let q,W=setTimeout(()=>{$(Error(`Span processor did not completed within timeout period of ${J} ms`)),q=o.timeout},J);Z.forceFlush().then(()=>{if(clearTimeout(W),q!==o.timeout)q=o.resolved,$(q)}).catch((X)=>{clearTimeout(W),q=o.error,$(X)})})});return new Promise((Z,$)=>{Promise.all(Q).then((q)=>{let W=q.filter((X)=>X!==o.resolved);if(W.length>0)$(W);else Z()}).catch((q)=>$([q]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}vZ.BasicTracerProvider=SZ});var pZ=K((uZ)=>{Object.defineProperty(uZ,"__esModule",{value:!0});uZ.ConsoleSpanExporter=void 0;var uJ=E();class mZ{export(J,Q){return this._sendSpans(J,Q)}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:(0,uJ.hrTimeToMicroseconds)(J.startTime),duration:(0,uJ.hrTimeToMicroseconds)(J.duration),attributes:J.attributes,status:J.status,events:J.events,links:J.links}}_sendSpans(J,Q){for(let Z of J)console.dir(this._exportInfo(Z),{depth:3});if(Q)return Q({code:uJ.ExportResultCode.SUCCESS})}}uZ.ConsoleSpanExporter=mZ});var aZ=K((sZ)=>{Object.defineProperty(sZ,"__esModule",{value:!0});sZ.InMemorySpanExporter=void 0;var nZ=E();class iZ{_finishedSpans=[];_stopped=!1;export(J,Q){if(this._stopped)return Q({code:nZ.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...J),setTimeout(()=>Q({code:nZ.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}sZ.InMemorySpanExporter=iZ});var J0=K((tZ)=>{Object.defineProperty(tZ,"__esModule",{value:!0});tZ.SimpleSpanProcessor=void 0;var u6=M(),IJ=E();class rZ{_exporter;_shutdownOnce;_pendingExports;constructor(J){this._exporter=J,this._shutdownOnce=new IJ.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(J,Q){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&u6.TraceFlags.SAMPLED)===0)return;let Q=this._doExport(J).catch((Z)=>(0,IJ.globalErrorHandler)(Z));this._pendingExports.add(Q),Q.finally(()=>this._pendingExports.delete(Q))}async _doExport(J){if(J.resource.asyncAttributesPending)await J.resource.waitForAsyncAttributes?.();let Q=await IJ.internal._export(this._exporter,[J]);if(Q.code!==IJ.ExportResultCode.SUCCESS)throw Q.error??Error(`SimpleSpanProcessor: span export failed (status ${Q})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}tZ.SimpleSpanProcessor=rZ});var q0=K((Z0)=>{Object.defineProperty(Z0,"__esModule",{value:!0});Z0.NoopSpanProcessor=void 0;class Q0{onStart(J,Q){}onEnd(J){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}Z0.NoopSpanProcessor=Q0});var cJ=K((A)=>{Object.defineProperty(A,"__esModule",{value:!0});A.SamplingDecision=A.TraceIdRatioBasedSampler=A.ParentBasedSampler=A.AlwaysOnSampler=A.AlwaysOffSampler=A.NoopSpanProcessor=A.SimpleSpanProcessor=A.InMemorySpanExporter=A.ConsoleSpanExporter=A.RandomIdGenerator=A.BatchSpanProcessor=A.BasicTracerProvider=void 0;var c6=lZ();Object.defineProperty(A,"BasicTracerProvider",{enumerable:!0,get:function(){return c6.BasicTracerProvider}});var W0=mJ();Object.defineProperty(A,"BatchSpanProcessor",{enumerable:!0,get:function(){return W0.BatchSpanProcessor}});Object.defineProperty(A,"RandomIdGenerator",{enumerable:!0,get:function(){return W0.RandomIdGenerator}});var p6=pZ();Object.defineProperty(A,"ConsoleSpanExporter",{enumerable:!0,get:function(){return p6.ConsoleSpanExporter}});var n6=aZ();Object.defineProperty(A,"InMemorySpanExporter",{enumerable:!0,get:function(){return n6.InMemorySpanExporter}});var i6=J0();Object.defineProperty(A,"SimpleSpanProcessor",{enumerable:!0,get:function(){return i6.SimpleSpanProcessor}});var s6=q0();Object.defineProperty(A,"NoopSpanProcessor",{enumerable:!0,get:function(){return s6.NoopSpanProcessor}});var o6=wJ();Object.defineProperty(A,"AlwaysOffSampler",{enumerable:!0,get:function(){return o6.AlwaysOffSampler}});var a6=VJ();Object.defineProperty(A,"AlwaysOnSampler",{enumerable:!0,get:function(){return a6.AlwaysOnSampler}});var r6=dJ();Object.defineProperty(A,"ParentBasedSampler",{enumerable:!0,get:function(){return r6.ParentBasedSampler}});var t6=yJ();Object.defineProperty(A,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return t6.TraceIdRatioBasedSampler}});var e6=i();Object.defineProperty(A,"SamplingDecision",{enumerable:!0,get:function(){return e6.SamplingDecision}})});var H0=K((X0)=>{Object.defineProperty(X0,"__esModule",{value:!0});X0.NodeTracerProvider=void 0;var Q7=EQ(),Z7=cJ(),WJ=M(),pJ=E();function $7(J){if(J===null)return;if(J===void 0){let Q=new Q7.AsyncLocalStorageContextManager;Q.enable(),WJ.context.setGlobalContextManager(Q);return}J.enable(),WJ.context.setGlobalContextManager(J)}function q7(J){if(J===null)return;if(J===void 0){WJ.propagation.setGlobalPropagator(new pJ.CompositePropagator({propagators:[new pJ.W3CTraceContextPropagator,new pJ.W3CBaggagePropagator]}));return}WJ.propagation.setGlobalPropagator(J)}class z0 extends Z7.BasicTracerProvider{constructor(J={}){super(J)}register(J={}){WJ.trace.setGlobalTracerProvider(this),$7(J.contextManager),q7(J.propagator)}}X0.NodeTracerProvider=z0});var K0=K((k)=>{Object.defineProperty(k,"__esModule",{value:!0});k.TraceIdRatioBasedSampler=k.SimpleSpanProcessor=k.SamplingDecision=k.RandomIdGenerator=k.ParentBasedSampler=k.NoopSpanProcessor=k.InMemorySpanExporter=k.ConsoleSpanExporter=k.BatchSpanProcessor=k.BasicTracerProvider=k.AlwaysOnSampler=k.AlwaysOffSampler=k.NodeTracerProvider=void 0;var W7=H0();Object.defineProperty(k,"NodeTracerProvider",{enumerable:!0,get:function(){return W7.NodeTracerProvider}});var L=cJ();Object.defineProperty(k,"AlwaysOffSampler",{enumerable:!0,get:function(){return L.AlwaysOffSampler}});Object.defineProperty(k,"AlwaysOnSampler",{enumerable:!0,get:function(){return L.AlwaysOnSampler}});Object.defineProperty(k,"BasicTracerProvider",{enumerable:!0,get:function(){return L.BasicTracerProvider}});Object.defineProperty(k,"BatchSpanProcessor",{enumerable:!0,get:function(){return L.BatchSpanProcessor}});Object.defineProperty(k,"ConsoleSpanExporter",{enumerable:!0,get:function(){return L.ConsoleSpanExporter}});Object.defineProperty(k,"InMemorySpanExporter",{enumerable:!0,get:function(){return L.InMemorySpanExporter}});Object.defineProperty(k,"NoopSpanProcessor",{enumerable:!0,get:function(){return L.NoopSpanProcessor}});Object.defineProperty(k,"ParentBasedSampler",{enumerable:!0,get:function(){return L.ParentBasedSampler}});Object.defineProperty(k,"RandomIdGenerator",{enumerable:!0,get:function(){return L.RandomIdGenerator}});Object.defineProperty(k,"SamplingDecision",{enumerable:!0,get:function(){return L.SamplingDecision}});Object.defineProperty(k,"SimpleSpanProcessor",{enumerable:!0,get:function(){return L.SimpleSpanProcessor}});Object.defineProperty(k,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return L.TraceIdRatioBasedSampler}})});var a0=d(K0(),1);var MJ=(J)=>J!==void 0&&!(Array.isArray(J)&&J.length===0);var HJ=d(M(),1);var v;(function(J){J[J.UNSPECIFIED=0]="UNSPECIFIED",J[J.TRACE=1]="TRACE",J[J.TRACE2=2]="TRACE2",J[J.TRACE3=3]="TRACE3",J[J.TRACE4=4]="TRACE4",J[J.DEBUG=5]="DEBUG",J[J.DEBUG2=6]="DEBUG2",J[J.DEBUG3=7]="DEBUG3",J[J.DEBUG4=8]="DEBUG4",J[J.INFO=9]="INFO",J[J.INFO2=10]="INFO2",J[J.INFO3=11]="INFO3",J[J.INFO4=12]="INFO4",J[J.WARN=13]="WARN",J[J.WARN2=14]="WARN2",J[J.WARN3=15]="WARN3",J[J.WARN4=16]="WARN4",J[J.ERROR=17]="ERROR",J[J.ERROR2=18]="ERROR2",J[J.ERROR3=19]="ERROR3",J[J.ERROR4=20]="ERROR4",J[J.FATAL=21]="FATAL",J[J.FATAL2=22]="FATAL2",J[J.FATAL3=23]="FATAL3",J[J.FATAL4=24]="FATAL4"})(v||(v={}));class zJ{emit(J){}}var XJ=new zJ;var YJ=Symbol.for("io.opentelemetry.js.api.logs"),a=globalThis;function G0(J,Q,Z){return($)=>$===J?Q:Z}var nJ=1;class w0{getLogger(J,Q,Z){return new zJ}}var AJ=new w0;class iJ{constructor(J,Q,Z,$){this._provider=J,this.name=Q,this.version=Z,this.options=$}emit(J){this._getLogger().emit(J)}_getLogger(){if(this._delegate)return this._delegate;let J=this._provider._getDelegateLogger(this.name,this.version,this.options);if(!J)return XJ;return this._delegate=J,this._delegate}}class RJ{getLogger(J,Q,Z){var $;return($=this._getDelegateLogger(J,Q,Z))!==null&&$!==void 0?$:new iJ(this,J,Q,Z)}_getDelegate(){var J;return(J=this._delegate)!==null&&J!==void 0?J:AJ}_setDelegate(J){this._delegate=J}_getDelegateLogger(J,Q,Z){var $;return($=this._delegate)===null||$===void 0?void 0:$.getLogger(J,Q,Z)}}class CJ{constructor(){this._proxyLoggerProvider=new RJ}static getInstance(){if(!this._instance)this._instance=new CJ;return this._instance}setGlobalLoggerProvider(J){if(a[YJ])return this.getLoggerProvider();return a[YJ]=G0(nJ,J,AJ),this._proxyLoggerProvider._setDelegate(J),J}getLoggerProvider(){var J,Q;return(Q=(J=a[YJ])===null||J===void 0?void 0:J.call(a,nJ))!==null&&Q!==void 0?Q:this._proxyLoggerProvider}getLogger(J,Q,Z){return this.getLoggerProvider().getLogger(J,Q,Z)}disable(){delete a[YJ],this._proxyLoggerProvider=new RJ}}var l8=CJ.getInstance();var j0=d(yZ(),1),F0=d(E(),1);var T=d(M(),1);var f=d(M(),1),oJ=d(E(),1),C=d(AQ(),1);function V0(J){return sJ(J,new WeakSet)}function sJ(J,Q){if(J==null)return!0;if(typeof J==="string"||typeof J==="number"||typeof J==="boolean")return!0;if(J instanceof Uint8Array)return!0;if(typeof J==="object"){if(Q.has(J))return!1;if(Q.add(J),Array.isArray(J))return J.every(($)=>sJ($,Q));let Z=J;if(Z.constructor!==Object&&Z.constructor!==void 0)return!1;return Object.values(Z).every(($)=>sJ($,Q))}return!1}class aJ{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;_attributesCount=0;_droppedAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(J){if(this._isLogRecordReadonly())return;this._severityText=J}get severityText(){return this._severityText}set severityNumber(J){if(this._isLogRecordReadonly())return;this._severityNumber=J}get severityNumber(){return this._severityNumber}set body(J){if(this._isLogRecordReadonly())return;this._body=J}get body(){return this._body}get eventName(){return this._eventName}set eventName(J){if(this._isLogRecordReadonly())return;this._eventName=J}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(J,Q,Z){let{timestamp:$,observedTimestamp:q,eventName:W,severityNumber:X,severityText:H,body:Y,attributes:V={},exception:R,context:z}=Z,U=Date.now();if(this.hrTime=oJ.timeInputToHrTime($??U),this.hrTimeObserved=oJ.timeInputToHrTime(q??U),z){let I=f.trace.getSpanContext(z);if(I&&f.isSpanContextValid(I))this.spanContext=I}if(this.severityNumber=X,this.severityText=H,this.body=Y,this.resource=J.resource,this.instrumentationScope=Q,this._logRecordLimits=J.logRecordLimits,this._eventName=W,this.setAttributes(V),R!=null)this._setException(R)}setAttribute(J,Q){if(this._isLogRecordReadonly())return this;if(J.length===0)return f.diag.warn(`Invalid attribute key: ${J}`),this;if(!V0(Q))return f.diag.warn(`Invalid attribute value set for key: ${J}`),this;let Z=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(Z&&this._attributesCount>=this._logRecordLimits.attributeCountLimit){if(this._droppedAttributesCount++,this._droppedAttributesCount===1)f.diag.warn("Dropping extra attributes.");return this}if(this.attributes[J]=this._truncateToSize(Q),Z)this._attributesCount++;return this}setAttributes(J){for(let[Q,Z]of Object.entries(J))this.setAttribute(Q,Z);return this}setBody(J){return this.body=J,this}setEventName(J){return this.eventName=J,this}setSeverityNumber(J){return this.severityNumber=J,this}setSeverityText(J){return this.severityText=J,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(J){let Q=this._logRecordLimits.attributeValueLengthLimit;if(Q<=0)return f.diag.warn(`Attribute value limit must be positive, got ${Q}`),J;if(J==null)return J;if(typeof J==="string")return this._truncateToLimitUtil(J,Q);if(J instanceof Uint8Array)return J;if(Array.isArray(J))return J.map((Z)=>this._truncateToSize(Z));if(typeof J==="object"){let Z={};for(let[$,q]of Object.entries(J))Z[$]=this._truncateToSize(q);return Z}return J}_setException(J){let Q=!1;if(typeof J==="string"||typeof J==="number"){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_MESSAGE))this.setAttribute(C.ATTR_EXCEPTION_MESSAGE,String(J));Q=!0}else if(J&&typeof J==="object"){let Z=J;if(Z.code){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_TYPE))this.setAttribute(C.ATTR_EXCEPTION_TYPE,Z.code.toString());Q=!0}else if(Z.name){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_TYPE))this.setAttribute(C.ATTR_EXCEPTION_TYPE,Z.name);Q=!0}if(Z.message){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_MESSAGE))this.setAttribute(C.ATTR_EXCEPTION_MESSAGE,Z.message);Q=!0}if(Z.stack){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_STACKTRACE))this.setAttribute(C.ATTR_EXCEPTION_STACKTRACE,Z.stack);Q=!0}}if(!Q)f.diag.warn(`Failed to record an exception ${J}`)}_truncateToLimitUtil(J,Q){if(J.length<=Q)return J;return J.substring(0,Q)}_isLogRecordReadonly(){if(this._isReadonly)f.diag.warn("Can not execute the operation on emitted log record");return this._isReadonly}}class rJ{instrumentationScope;_sharedState;_loggerConfig;constructor(J,Q){this.instrumentationScope=J,this._sharedState=Q,this._loggerConfig=this._sharedState.getLoggerConfig(this.instrumentationScope)}emit(J){let Q=this._loggerConfig,Z=J.context||T.context.active(),$=J.severityNumber??v.UNSPECIFIED;if($!==v.UNSPECIFIED&&$<Q.minimumSeverity)return;if(Q.traceBased){let W=T.trace.getSpanContext(Z);if(W&&T.isSpanContextValid(W)){if((W.traceFlags&T.TraceFlags.SAMPLED)!==T.TraceFlags.SAMPLED)return}}let q=new aJ(this._sharedState,this.instrumentationScope,{context:Z,...J});this._sharedState.activeProcessor.onEmit(q,Z),q._makeReadonly()}}class tJ{forceFlush(){return Promise.resolve()}onEmit(J,Q){}shutdown(){return Promise.resolve()}}var U0=d(E(),1);class eJ{processors;forceFlushTimeoutMillis;constructor(J,Q){this.processors=J,this.forceFlushTimeoutMillis=Q}async forceFlush(){let J=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map((Q)=>U0.callWithTimeout(Q.forceFlush(),J)))}onEmit(J,Q){this.processors.forEach((Z)=>Z.onEmit(J,Q))}async shutdown(){await Promise.all(this.processors.map((J)=>J.shutdown()))}}function B0(J){return`${J.name}@${J.version||""}:${J.schemaUrl||""}`}var X7={disabled:!1,minimumSeverity:v.UNSPECIFIED,traceBased:!1},JQ=()=>({...X7});class QQ{loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];resource;forceFlushTimeoutMillis;logRecordLimits;processors;_loggerConfigurator;_loggerConfigs=new Map;constructor(J,Q,Z,$,q){if(this.resource=J,this.forceFlushTimeoutMillis=Q,this.logRecordLimits=Z,this.processors=$,$.length>0)this.registeredLogRecordProcessors=$,this.activeProcessor=new eJ(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis);else this.activeProcessor=new tJ;this._loggerConfigurator=q??JQ}getLoggerConfig(J){let Q=B0(J),Z=this._loggerConfigs.get(Q);if(Z)return Z;return Z=this._loggerConfigurator(J),this._loggerConfigs.set(Q,Z),Z}}var Y7="unknown";class LJ{_shutdownOnce;_sharedState;constructor(J={}){let Q={resource:J.resource??j0.defaultResource(),forceFlushTimeoutMillis:J.forceFlushTimeoutMillis??30000,logRecordLimits:{attributeCountLimit:J.logRecordLimits?.attributeCountLimit??128,attributeValueLengthLimit:J.logRecordLimits?.attributeValueLengthLimit??1/0},loggerConfigurator:J.loggerConfigurator??JQ,processors:J.processors??[]};this._sharedState=new QQ(Q.resource,Q.forceFlushTimeoutMillis,Q.logRecordLimits,Q.processors,Q.loggerConfigurator),this._shutdownOnce=new F0.BindOnceFuture(this._shutdown,this)}getLogger(J,Q,Z){if(this._shutdownOnce.isCalled)return HJ.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),XJ;if(!J)HJ.diag.warn("Logger requested without instrumentation scope name.");let $=J||Y7,q=`${$}@${Q||""}:${Z?.schemaUrl||""}`;if(!this._sharedState.loggers.has(q))this._sharedState.loggers.set(q,new rJ({name:$,version:Q,schemaUrl:Z?.schemaUrl},this._sharedState));return this._sharedState.loggers.get(q)}forceFlush(){if(this._shutdownOnce.isCalled)return HJ.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise;return this._sharedState.activeProcessor.forceFlush()}shutdown(){if(this._shutdownOnce.isCalled)return HJ.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise;return this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}}class qQ extends O0()("@effect/opentelemetry/Logger/OtelLoggerProvider"){}var G7=g(function*(){let J=yield*qQ,Q=yield*A0,Z=J.getLogger("@effect/opentelemetry");return L0(($)=>{let q={fiberId:$.fiber.id},W=D0($.fiber.context,E0);if(h0(W))q.spanId=W.spanId,q.traceId=W.traceId;for(let[V,R]of Object.entries($.fiber.getRef(k0)))q[V]=ZQ(R);let X=$.date.getTime();for(let[V,R]of $.fiber.getRef(I0))q[`logSpan.${V}`]=`${X-R}ms`;let H=$Q($.message).map(ZQ),Y=N0(Q.currentTimeNanosUnsafe());Z.emit({body:H.length===1?H[0]:H,severityText:$.logLevel,severityNumber:C0($.logLevel),timestamp:Y,observedTimestamp:Y,attributes:q})})}),f0=(J)=>P0([G7],{mergeWithExisting:J.mergeWithExisting??!0}),T0=(J,Q)=>PJ(qQ,g(function*(){let Z=yield*ZJ;return yield*JJ(u(()=>new LJ({...Q??void 0,processors:$Q(J),resource:Z})),($)=>r(()=>$.forceFlush().then(()=>$.shutdown())).pipe(t,QJ,e(Q?.shutdownTimeout??3000)))}));var l=d(M(),1);var c;(function(J){J[J.DELTA=0]="DELTA",J[J.CUMULATIVE=1]="CUMULATIVE"})(c||(c={}));var P;(function(J){J.COUNTER="COUNTER",J.GAUGE="GAUGE",J.HISTOGRAM="HISTOGRAM",J.UP_DOWN_COUNTER="UP_DOWN_COUNTER",J.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",J.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",J.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(P||(P={}));var b;(function(J){J[J.HISTOGRAM=0]="HISTOGRAM",J[J.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",J[J.GAUGE=2]="GAUGE",J[J.SUM=3]="SUM"})(b||(b={}));var V7="@effect/opentelemetry/Metrics";class zQ{resource;context;temporality;startTimes;startTimeNanos;previousExportTimeNanos;previousCounterState;previousHistogramState;previousFrequencyState;previousSummaryState;constructor(J,Q,Z="cumulative"){this.resource=J,this.context=Q,this.temporality=Z,this.startTimes=new Map,this.startTimeNanos=b0(),this.previousExportTimeNanos=this.startTimeNanos,this.previousCounterState=new Map,this.previousHistogramState=new Map,this.previousFrequencyState=new Map,this.previousSummaryState=new Map}startTimeFor(J,Q){if(this.startTimes.has(J))return this.startTimes.get(J);return this.startTimes.set(J,Q),Q}collect(J){let Q=x0(this.context),Z=b0(),$=[],q=new Map,W=(V)=>{$.push(V),q.set(V.descriptor.name,V)},X=this.temporality==="delta",H=X?c.DELTA:c.CUMULATIVE,Y=X?this.previousExportTimeNanos:this.startTimeNanos;for(let V=0,R=Q.length;V<R;V++){let z=Q[V],U=z.attributes?_0(Object.entries(z.attributes),{},(G,[w,B])=>{return G[w]=String(B),G}):{},I=U7(z.id,z.attributes);switch(z.type){case"Counter":{let G=z.state.count,w=G;if(X){let j=this.previousCounterState.get(I);if(j!==void 0)if(typeof G==="bigint"&&typeof j==="bigint"){if(w=G-j,w<0n)w=G}else{let y=Number(G),p=Number(j);if(w=y-p,w<0)w=y}this.previousCounterState.set(I,G)}let B=$J(z,U),D={startTime:this.startTimeFor(B.name,Y),endTime:Z,attributes:U,value:Number(w)};if(q.has(z.id))q.get(z.id).dataPoints.push(D);else W({dataPointType:b.SUM,descriptor:B,isMonotonic:z.state.incremental,aggregationTemporality:H,dataPoints:[D]});break}case"Gauge":{let G=$J(z,U),B={startTime:this.startTimeFor(G.name,this.startTimeNanos),endTime:Z,attributes:U,value:Number(z.state.value)};if(q.has(z.id))q.get(z.id).dataPoints.push(B);else W({dataPointType:b.GAUGE,descriptor:G,aggregationTemporality:c.CUMULATIVE,dataPoints:[B]});break}case"Histogram":{let G=z.state.buckets.length,w={boundaries:WQ(G-1),counts:WQ(G)},B=0,N=0;for(let[n,KJ]of z.state.buckets){if(B<G-1)w.boundaries[B]=n;w.counts[B]=KJ-N,N=KJ,B++}let D=z.state.count,j=z.state.sum,y=w.counts,p=z.state.min,fJ=z.state.max;if(X){let n=this.previousHistogramState.get(I);if(n!==void 0)D=z.state.count-n.count,j=z.state.sum-n.sum,y=w.counts.map((KJ,r0)=>Math.max(0,KJ-(n.bucketCounts[r0]??0)));this.previousHistogramState.set(I,{count:z.state.count,sum:z.state.sum,bucketCounts:w.counts.slice(),min:z.state.min,max:z.state.max})}let YQ=$J(z,U),HQ={startTime:this.startTimeFor(YQ.name,Y),endTime:Z,attributes:U,value:{buckets:{boundaries:w.boundaries,counts:y},count:D,min:p,max:fJ,sum:j}};if(q.has(z.id))q.get(z.id).dataPoints.push(HQ);else W({dataPointType:b.HISTOGRAM,descriptor:YQ,aggregationTemporality:H,dataPoints:[HQ]});break}case"Frequency":{let G=[],w=new Map;for(let[B,N]of z.state.occurrences){w.set(B,N);let D=N;if(X){let p=this.previousFrequencyState.get(I);if(p!==void 0){let fJ=p.get(B)??0;D=Math.max(0,N-fJ)}}let j=$J(z,U),y=this.startTimeFor(j.name,Y);G.push({startTime:y,endTime:Z,attributes:{...U,key:B},value:D})}if(X)this.previousFrequencyState.set(I,w);if(q.has(z.id))q.get(z.id).dataPoints.push(...G);else{let B=$J(z,U);W({dataPointType:b.SUM,descriptor:B,aggregationTemporality:H,isMonotonic:!0,dataPoints:G})}break}case"Summary":{let G=[{startTime:Y,endTime:Z,attributes:{...U,quantile:"min"},value:z.state.min}];for(let[j,y]of z.state.quantiles)G.push({startTime:Y,endTime:Z,attributes:{...U,quantile:j.toString()},value:y??0});G.push({startTime:Y,endTime:Z,attributes:{...U,quantile:"max"},value:z.state.max});let w=z.state.count,B=z.state.sum;if(X){let j=this.previousSummaryState.get(I);if(j!==void 0)w=z.state.count-j.count,B=z.state.sum-j.sum;this.previousSummaryState.set(I,{count:z.state.count,sum:z.state.sum})}let N={startTime:Y,endTime:Z,attributes:U,value:w},D={startTime:Y,endTime:Z,attributes:U,value:B};if(q.has(`${z.id}_quantiles`))q.get(`${z.id}_quantiles`).dataPoints.push(...G),q.get(`${z.id}_count`).dataPoints.push(N),q.get(`${z.id}_sum`).dataPoints.push(D);else{let j=$J(z,U);W({dataPointType:b.SUM,descriptor:{...j,name:`${j.name}_quantiles`},aggregationTemporality:H,isMonotonic:!1,dataPoints:G}),W({dataPointType:b.SUM,descriptor:{name:`${z.id}_count`,description:z.description??"",unit:"1",type:P.COUNTER,valueType:l.ValueType.INT,advice:{}},aggregationTemporality:H,isMonotonic:!0,dataPoints:[N]}),W({dataPointType:b.SUM,descriptor:{name:`${z.id}_sum`,description:z.description??"",unit:"1",type:P.COUNTER,valueType:l.ValueType.DOUBLE,advice:{}},aggregationTemporality:H,isMonotonic:!0,dataPoints:[D]})}break}}}if(X)this.previousExportTimeNanos=Z;return Promise.resolve({resourceMetrics:{resource:this.resource,scopeMetrics:[{scope:{name:V7},metrics:$}]},errors:[]})}}var U7=(J,Q)=>{if(Q===void 0||Object.keys(Q).length===0)return J;let Z=Object.entries(Q).sort(($,q)=>$[0].localeCompare(q[0]));return`${J}:${JSON.stringify(Z)}`},b0=()=>{let J=Date.now();return[Math.floor(J/1000),J%1000*1e6]},$J=(J,Q)=>{let Z=Q.unit??Q.time_unit??"1";return{name:J.id,description:J.description??"",unit:Z,type:B7(J),valueType:j7(J),advice:{}}},B7=(J)=>{switch(J.type){case"Histogram":return P.HISTOGRAM;case"Gauge":return P.OBSERVABLE_GAUGE;case"Frequency":return P.COUNTER;case"Counter":return J.state.incremental?P.COUNTER:P.UP_DOWN_COUNTER;case"Summary":return P.COUNTER}},j7=(J)=>{if(J.type==="Counter")return typeof J.state.count==="bigint"?l.ValueType.INT:l.ValueType.DOUBLE;else if(J.type==="Gauge")return typeof J.state.value==="bigint"?l.ValueType.INT:l.ValueType.DOUBLE;return l.ValueType.DOUBLE};var F7=(J)=>g(function*(){let Q=yield*ZJ,Z=yield*S0();return new zQ(Q,Z,J)}),h7=(J,Q,Z)=>JJ(u(()=>{let $=Q(),q=Array.isArray($)?$:[$];return q.forEach((W)=>W.setMetricProducer(J)),q}),($)=>r(()=>Promise.all($.map((q)=>q.shutdown()))).pipe(t,QJ,e(Z?.shutdownTimeout??3000))),v0=(J,Q)=>d0(y0(F7(Q?.temporality),(Z)=>h7(Z,J,Q)));var D7=(J,Q)=>PJ(s0,g(function*(){let Z=yield*ZJ;return yield*JJ(u(()=>{return new a0.NodeTracerProvider({...Q??void 0,resource:Z,spanProcessors:Array.isArray(J)?J:[J]})}),($)=>r(()=>$.forceFlush().then(()=>$.shutdown())).pipe(t,QJ,e(Q?.shutdownTimeout??3000)))})),a9=(J)=>l0(g(function*(){let Q=yield*c0(J)?J:u(J),Z=n0(Q.resource&&p0(Q.resource)),$=MJ(Q.spanProcessor)?XQ(o0,D7(Q.spanProcessor,{...Q.tracerConfig,shutdownTimeout:Q.shutdownTimeout})):NJ,q=MJ(Q.metricReader)?v0(g0(Q.metricReader),{shutdownTimeout:Q.shutdownTimeout,temporality:Q.metricTemporality}):NJ,W=MJ(Q.logRecordProcessor)?XQ(f0({mergeWithExisting:Q.loggerMergeWithExisting}),T0(Q.logRecordProcessor,{...Q.loggerProviderConfig,shutdownTimeout:Q.shutdownTimeout})):NJ;return m0($,q,W).pipe(u0(Z))})),r9=i0;export{D7 as layerTracerProvider,r9 as layerEmpty,a9 as layer};
|
|
2
|
+
import{$r as p0,Xr as yZ,Yr as N0,Zr as ZQ,_r as ZJ,as as n0,bs as i0,ds as s0,es as o0}from"./chunk-w9pdvcf9.js";import{fs as AQ,gs as E}from"./chunk-4gs87ghj.js";import{DH as t,FH as e,KP as C0,LB as h0,OF as k0,PD as WQ,PF as I0,PG as x0,RD as $Q,RG as c0,RH as S0,TP as L0,UP as P0,VG as r,ZG as u,_H as JJ,aD as O0,aE as _0,cH as g,gD as D0,gI as QJ,jG as NJ,jH as y0,kG as PJ,mG as d0,nG as l0,oG as m0,pG as XQ,qG as u0,uB as g0,uE as E0,xG as A0}from"./chunk-ydc6ypjt.js";import{fQ as M}from"./chunk-pnq1h5az.js";import{gQ as d,hQ as K,kQ as TJ}from"./chunk-4sazy0nq.js";var bJ=K((GQ)=>{Object.defineProperty(GQ,"__esModule",{value:!0});GQ.AbstractAsyncHooksContextManager=void 0;var t0=TJ("events"),e0=["addListener","on","once","prependListener","prependOnceListener"];class KQ{bind(J,Q){if(Q instanceof t0.EventEmitter)return this._bindEventEmitter(J,Q);if(typeof Q==="function")return this._bindFunction(J,Q);return Q}_bindFunction(J,Q){let Z=this,$=function(...q){return Z.with(J,()=>Q.apply(this,q))};return Object.defineProperty($,"length",{enumerable:!1,configurable:!0,writable:!1,value:Q.length}),$}_bindEventEmitter(J,Q){if(this._getPatchMap(Q)!==void 0)return Q;if(this._createPatchMap(Q),e0.forEach(($)=>{if(Q[$]===void 0)return;Q[$]=this._patchAddListener(Q,Q[$],J)}),typeof Q.removeListener==="function")Q.removeListener=this._patchRemoveListener(Q,Q.removeListener);if(typeof Q.off==="function")Q.off=this._patchRemoveListener(Q,Q.off);if(typeof Q.removeAllListeners==="function")Q.removeAllListeners=this._patchRemoveAllListeners(Q,Q.removeAllListeners);return Q}_patchRemoveListener(J,Q){let Z=this;return function($,q){let W=Z._getPatchMap(J)?.[$];if(W===void 0)return Q.call(this,$,q);let X=W.get(q);return Q.call(this,$,X||q)}}_patchRemoveAllListeners(J,Q){let Z=this;return function($){let q=Z._getPatchMap(J);if(q!==void 0){if(arguments.length===0)Z._createPatchMap(J);else if(q[$]!==void 0)delete q[$]}return Q.apply(this,arguments)}}_patchAddListener(J,Q,Z){let $=this;return function(q,W){if($._wrapped)return Q.call(this,q,W);let X=$._getPatchMap(J);if(X===void 0)X=$._createPatchMap(J);let H=X[q];if(H===void 0)H=new WeakMap,X[q]=H;let Y=$.bind(Z,W);H.set(W,Y),$._wrapped=!0;try{return Q.call(this,q,Y)}finally{$._wrapped=!1}}}_createPatchMap(J){let Q=Object.create(null);return J[this._kOtListeners]=Q,Q}_getPatchMap(J){return J[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1}GQ.AbstractAsyncHooksContextManager=KQ});var jQ=K((UQ)=>{Object.defineProperty(UQ,"__esModule",{value:!0});UQ.AsyncHooksContextManager=void 0;var J6=M(),Q6=TJ("async_hooks"),Z6=bJ();class VQ extends Z6.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super();this._asyncHook=Q6.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??J6.ROOT_CONTEXT}with(J,Q,Z,...$){this._enterContext(J);try{return Q.call(Z,...$)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(J,Q){if(Q==="TIMERWRAP")return;let Z=this._stack[this._stack.length-1];if(Z!==void 0)this._contexts.set(J,Z)}_destroy(J){this._contexts.delete(J)}_before(J){let Q=this._contexts.get(J);if(Q!==void 0)this._enterContext(Q)}_after(){this._exitContext()}_enterContext(J){this._stack.push(J)}_exitContext(){this._stack.pop()}}UQ.AsyncHooksContextManager=VQ});var DQ=K((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.AsyncLocalStorageContextManager=void 0;var $6=M(),q6=TJ("async_hooks"),W6=bJ();class FQ extends W6.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super();this._asyncLocalStorage=new q6.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??$6.ROOT_CONTEXT}with(J,Q,Z,...$){let q=Z==null?Q:Q.bind(Z);return this._asyncLocalStorage.run(J,q,...$)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}hQ.AsyncLocalStorageContextManager=FQ});var EQ=K((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.AsyncLocalStorageContextManager=GJ.AsyncHooksContextManager=void 0;var z6=jQ();Object.defineProperty(GJ,"AsyncHooksContextManager",{enumerable:!0,get:function(){return z6.AsyncHooksContextManager}});var X6=DQ();Object.defineProperty(GJ,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return X6.AsyncLocalStorageContextManager}})});var MQ=K((kQ)=>{Object.defineProperty(kQ,"__esModule",{value:!0});kQ.ExceptionEventName=void 0;kQ.ExceptionEventName="exception"});var PQ=K((CQ)=>{Object.defineProperty(CQ,"__esModule",{value:!0});CQ.SpanImpl=void 0;var h=M(),O=E(),m=AQ(),H6=MQ();class RQ{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:h.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(J){let Q=Date.now();if(this._spanContext=J.spanContext,this._performanceStartTime=O.otperformance.now(),this._performanceOffset=Q-(this._performanceStartTime+O.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 Z of J.links)this.addLink(Z);if(this.startTime=this._getTime(J.startTime??Q),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,Q){if(Q==null||this._isSpanEnded())return this;if(J.length===0)return h.diag.warn(`Invalid attribute key: ${J}`),this;if(!(0,O.isAttributeValue)(Q))return h.diag.warn(`Invalid attribute value set for key: ${J}`),this;let{attributeCountLimit:Z}=this._spanLimits,$=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(Z!==void 0&&this._attributesCount>=Z&&$)return this._droppedAttributesCount++,this;if(this.attributes[J]=this._truncateToSize(Q),$)this._attributesCount++;return this}setAttributes(J){for(let Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))this.setAttribute(Q,J[Q]);return this}addEvent(J,Q,Z){if(this._isSpanEnded())return this;let{eventCountLimit:$}=this._spanLimits;if($===0)return h.diag.warn("No events allowed."),this._droppedEventsCount++,this;if($!==void 0&&this.events.length>=$){if(this._droppedEventsCount===0)h.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if((0,O.isTimeInput)(Q)){if(!(0,O.isTimeInput)(Z))Z=Q;Q=void 0}let q=(0,O.sanitizeAttributes)(Q),{attributePerEventCountLimit:W}=this._spanLimits,X={},H=0,Y=0;for(let V in q){if(!Object.prototype.hasOwnProperty.call(q,V))continue;let R=q[V];if(W!==void 0&&Y>=W){H++;continue}X[V]=this._truncateToSize(R),Y++}return this.events.push({name:J,attributes:X,time:this._getTime(Z),droppedAttributesCount:H}),this}addLink(J){if(this._isSpanEnded())return this;let{linkCountLimit:Q}=this._spanLimits;if(Q===0)return this._droppedLinksCount++,this;if(Q!==void 0&&this.links.length>=Q){if(this._droppedLinksCount===0)h.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:Z}=this._spanLimits,$=(0,O.sanitizeAttributes)(J.attributes),q={},W=0,X=0;for(let Y in $){if(!Object.prototype.hasOwnProperty.call($,Y))continue;let V=$[Y];if(Z!==void 0&&X>=Z){W++;continue}q[Y]=this._truncateToSize(V),X++}let H={context:J.context};if(X>0)H.attributes=q;if(W>0)H.droppedAttributesCount=W;return this.links.push(H),this}addLinks(J){for(let Q of J)this.addLink(Q);return this}setStatus(J){if(this._isSpanEnded())return this;if(J.code===h.SpanStatusCode.UNSET)return this;if(this.status.code===h.SpanStatusCode.OK)return this;let Q={code:J.code};if(J.code===h.SpanStatusCode.ERROR){if(typeof J.message==="string")Q.message=J.message;else if(J.message!=null)h.diag.warn(`Dropping invalid status.message of type '${typeof J.message}', expected 'string'`)}return this.status=Q,this}updateName(J){if(this._isSpanEnded())return this;return this.name=J,this}end(J){if(this._isSpanEnded()){h.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=(0,O.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0)h.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)h.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)h.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<=O.otperformance.now())return(0,O.hrTime)(J+this._performanceOffset);if(typeof J==="number")return(0,O.millisToHrTime)(J);if(J instanceof Date)return(0,O.millisToHrTime)(J.getTime());if((0,O.isTimeInputHrTime)(J))return J;if(this._startTimeProvided)return(0,O.millisToHrTime)(Date.now());let Q=O.otperformance.now()-this._performanceStartTime;return(0,O.addHrTimes)(this.startTime,(0,O.millisToHrTime)(Q))}isRecording(){return this._ended===!1}recordException(J,Q){let Z={};if(typeof J==="string")Z[m.ATTR_EXCEPTION_MESSAGE]=J;else if(J){if(J.code)Z[m.ATTR_EXCEPTION_TYPE]=J.code.toString();else if(J.name)Z[m.ATTR_EXCEPTION_TYPE]=J.name;if(J.message)Z[m.ATTR_EXCEPTION_MESSAGE]=J.message;if(J.stack)Z[m.ATTR_EXCEPTION_STACKTRACE]=J.stack}if(Z[m.ATTR_EXCEPTION_TYPE]||Z[m.ATTR_EXCEPTION_MESSAGE])this.addEvent(H6.ExceptionEventName,Z,Q);else h.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}}`);h.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,J)}return this._ended}_truncateToLimitUtil(J,Q){if(J.length<=Q)return J;return J.substring(0,Q)}_truncateToSize(J){let Q=this._attributeValueLengthLimit;if(Q<=0)return h.diag.warn(`Attribute value limit must be positive, got ${Q}`),J;if(typeof J==="string")return this._truncateToLimitUtil(J,Q);if(Array.isArray(J))return J.map((Z)=>typeof Z==="string"?this._truncateToLimitUtil(Z,Q):Z);return J}}CQ.SpanImpl=RQ});var i=K((NQ)=>{Object.defineProperty(NQ,"__esModule",{value:!0});NQ.SamplingDecision=void 0;var K6;(function(J){J[J.NOT_RECORD=0]="NOT_RECORD",J[J.RECORD=1]="RECORD",J[J.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(K6=NQ.SamplingDecision||(NQ.SamplingDecision={}))});var wJ=K((TQ)=>{Object.defineProperty(TQ,"__esModule",{value:!0});TQ.AlwaysOffSampler=void 0;var G6=i();class fQ{shouldSample(){return{decision:G6.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}TQ.AlwaysOffSampler=fQ});var VJ=K((xQ)=>{Object.defineProperty(xQ,"__esModule",{value:!0});xQ.AlwaysOnSampler=void 0;var w6=i();class _Q{shouldSample(){return{decision:w6.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}xQ.AlwaysOnSampler=_Q});var dJ=K((vQ)=>{Object.defineProperty(vQ,"__esModule",{value:!0});vQ.ParentBasedSampler=void 0;var UJ=M(),V6=E(),yQ=wJ(),xJ=VJ();class SQ{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(J){if(this._root=J.root,!this._root)(0,V6.globalErrorHandler)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new xJ.AlwaysOnSampler;this._remoteParentSampled=J.remoteParentSampled??new xJ.AlwaysOnSampler,this._remoteParentNotSampled=J.remoteParentNotSampled??new yQ.AlwaysOffSampler,this._localParentSampled=J.localParentSampled??new xJ.AlwaysOnSampler,this._localParentNotSampled=J.localParentNotSampled??new yQ.AlwaysOffSampler}shouldSample(J,Q,Z,$,q,W){let X=UJ.trace.getSpanContext(J);if(!X||!(0,UJ.isSpanContextValid)(X))return this._root.shouldSample(J,Q,Z,$,q,W);if(X.isRemote){if(X.traceFlags&UJ.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(J,Q,Z,$,q,W);return this._remoteParentNotSampled.shouldSample(J,Q,Z,$,q,W)}if(X.traceFlags&UJ.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(J,Q,Z,$,q,W);return this._localParentNotSampled.shouldSample(J,Q,Z,$,q,W)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}vQ.ParentBasedSampler=SQ});var yJ=K((uQ)=>{Object.defineProperty(uQ,"__esModule",{value:!0});uQ.TraceIdRatioBasedSampler=void 0;var U6=M(),lQ=i();class mQ{_ratio;_upperBound;constructor(J=0){this._ratio=this._normalize(J),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(J,Q){return{decision:(0,U6.isValidTraceId)(Q)&&this._accumulate(Q)<this._upperBound?lQ.SamplingDecision.RECORD_AND_SAMPLED:lQ.SamplingDecision.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 Q=0;for(let Z=0;Z<J.length/8;Z++){let $=Z*8,q=parseInt(J.slice($,$+8),16);Q=(Q^q)>>>0}return Q}}uQ.TraceIdRatioBasedSampler=mQ});var gJ=K((oQ)=>{Object.defineProperty(oQ,"__esModule",{value:!0});oQ.buildSamplerFromEnv=oQ.loadDefaultConfig=void 0;var vJ=M(),_=E(),pQ=wJ(),SJ=VJ(),BJ=dJ(),nQ=yJ(),x;(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"})(x||(x={}));var jJ=1;function B6(){return{sampler:sQ(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:(0,_.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,_.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,_.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}oQ.loadDefaultConfig=B6;function sQ(){let J=(0,_.getStringFromEnv)("OTEL_TRACES_SAMPLER")??x.ParentBasedAlwaysOn;switch(J){case x.AlwaysOn:return new SJ.AlwaysOnSampler;case x.AlwaysOff:return new pQ.AlwaysOffSampler;case x.ParentBasedAlwaysOn:return new BJ.ParentBasedSampler({root:new SJ.AlwaysOnSampler});case x.ParentBasedAlwaysOff:return new BJ.ParentBasedSampler({root:new pQ.AlwaysOffSampler});case x.TraceIdRatio:return new nQ.TraceIdRatioBasedSampler(iQ());case x.ParentBasedTraceIdRatio:return new BJ.ParentBasedSampler({root:new nQ.TraceIdRatioBasedSampler(iQ())});default:return vJ.diag.error(`OTEL_TRACES_SAMPLER value "${J}" invalid, defaulting to "${x.ParentBasedAlwaysOn}".`),new BJ.ParentBasedSampler({root:new SJ.AlwaysOnSampler})}}oQ.buildSamplerFromEnv=sQ;function iQ(){let J=(0,_.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");if(J==null)return vJ.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${jJ}.`),jJ;if(J<0||J>1)return vJ.diag.error(`OTEL_TRACES_SAMPLER_ARG=${J} was given, but it is out of range ([0..1]), defaulting to ${jJ}.`),jJ;return J}});var lJ=K((tQ)=>{Object.defineProperty(tQ,"__esModule",{value:!0});tQ.reconfigureLimits=tQ.mergeConfig=tQ.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=tQ.DEFAULT_ATTRIBUTE_COUNT_LIMIT=void 0;var rQ=gJ(),FJ=E();tQ.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;tQ.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;function F6(J){let Q={sampler:(0,rQ.buildSamplerFromEnv)()},Z=(0,rQ.loadDefaultConfig)(),$=Object.assign({},Z,Q,J);return $.generalLimits=Object.assign({},Z.generalLimits,J.generalLimits||{}),$.spanLimits=Object.assign({},Z.spanLimits,J.spanLimits||{}),$}tQ.mergeConfig=F6;function h6(J){let Q=Object.assign({},J.spanLimits);return Q.attributeCountLimit=J.spanLimits?.attributeCountLimit??J.generalLimits?.attributeCountLimit??(0,FJ.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,FJ.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??tQ.DEFAULT_ATTRIBUTE_COUNT_LIMIT,Q.attributeValueLengthLimit=J.spanLimits?.attributeValueLengthLimit??J.generalLimits?.attributeValueLengthLimit??(0,FJ.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,FJ.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??tQ.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},J,{spanLimits:Q})}tQ.reconfigureLimits=h6});var WZ=K(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.BatchSpanProcessorBase=void 0;var s=M(),S=E();class ZZ{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(J,Q){if(this._exporter=J,this._maxExportBatchSize=typeof Q?.maxExportBatchSize==="number"?Q.maxExportBatchSize:(0,S.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof Q?.maxQueueSize==="number"?Q.maxQueueSize:(0,S.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof Q?.scheduledDelayMillis==="number"?Q.scheduledDelayMillis:(0,S.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5000,this._exportTimeoutMillis=typeof Q?.exportTimeoutMillis==="number"?Q.exportTimeoutMillis:(0,S.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??30000,this._shutdownOnce=new S.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)s.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(J,Q){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&s.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._exporter.shutdown()})}_addToBuffer(J){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)s.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++;return}if(this._droppedSpansCount>0)s.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(J),this._maybeStartTimer()}_flushAll(){return new Promise((J,Q)=>{let Z=[],$=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let q=0,W=$;q<W;q++)Z.push(this._flushOneBatch());Promise.all(Z).then(()=>{J()}).catch(Q)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((J,Q)=>{let Z=setTimeout(()=>{Q(Error("Timeout"))},this._exportTimeoutMillis);s.context.with((0,S.suppressTracing)(s.context.active()),()=>{let $;if(this._finishedSpans.length<=this._maxExportBatchSize)$=this._finishedSpans,this._finishedSpans=[];else $=this._finishedSpans.splice(0,this._maxExportBatchSize);let q=()=>this._exporter.export($,(X)=>{if(clearTimeout(Z),X.code===S.ExportResultCode.SUCCESS)J();else Q(X.error??Error("BatchSpanProcessor: span export failed"))}),W=null;for(let X=0,H=$.length;X<H;X++){let Y=$[X];if(Y.resource.asyncAttributesPending&&Y.resource.waitForAsyncAttributes)W??=[],W.push(Y.resource.waitForAsyncAttributes())}if(W===null)q();else Promise.all(W).then(q,(X)=>{(0,S.globalErrorHandler)(X),Q(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((Q)=>{this._isExporting=!1,(0,S.globalErrorHandler)(Q)})};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}}$Z.BatchSpanProcessorBase=ZZ});var HZ=K((XZ)=>{Object.defineProperty(XZ,"__esModule",{value:!0});XZ.BatchSpanProcessor=void 0;var D6=WZ();class zZ extends D6.BatchSpanProcessorBase{onShutdown(){}}XZ.BatchSpanProcessor=zZ});var BZ=K((VZ)=>{Object.defineProperty(VZ,"__esModule",{value:!0});VZ.RandomIdGenerator=void 0;var E6=8,GZ=16;class wZ{generateTraceId=KZ(GZ);generateSpanId=KZ(E6)}VZ.RandomIdGenerator=wZ;var hJ=Buffer.allocUnsafe(GZ);function KZ(J){return function(){for(let Z=0;Z<J/4;Z++)hJ.writeUInt32BE(Math.random()*4294967296>>>0,Z*4);for(let Z=0;Z<J;Z++)if(hJ[Z]>0)break;else if(Z===J-1)hJ[J-1]=1;return hJ.toString("hex",0,J)}}});var jZ=K((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.RandomIdGenerator=OJ.BatchSpanProcessor=void 0;var k6=HZ();Object.defineProperty(OJ,"BatchSpanProcessor",{enumerable:!0,get:function(){return k6.BatchSpanProcessor}});var I6=BZ();Object.defineProperty(OJ,"RandomIdGenerator",{enumerable:!0,get:function(){return I6.RandomIdGenerator}})});var mJ=K((DJ)=>{Object.defineProperty(DJ,"__esModule",{value:!0});DJ.RandomIdGenerator=DJ.BatchSpanProcessor=void 0;var FZ=jZ();Object.defineProperty(DJ,"BatchSpanProcessor",{enumerable:!0,get:function(){return FZ.BatchSpanProcessor}});Object.defineProperty(DJ,"RandomIdGenerator",{enumerable:!0,get:function(){return FZ.RandomIdGenerator}})});var DZ=K((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});hZ.METRIC_OTEL_SDK_SPAN_STARTED=hZ.METRIC_OTEL_SDK_SPAN_LIVE=hZ.ATTR_OTEL_SPAN_SAMPLING_RESULT=hZ.ATTR_OTEL_SPAN_PARENT_ORIGIN=void 0;hZ.ATTR_OTEL_SPAN_PARENT_ORIGIN="otel.span.parent.origin";hZ.ATTR_OTEL_SPAN_SAMPLING_RESULT="otel.span.sampling_result";hZ.METRIC_OTEL_SDK_SPAN_LIVE="otel.sdk.span.live";hZ.METRIC_OTEL_SDK_SPAN_STARTED="otel.sdk.span.started"});var MZ=K((kZ)=>{Object.defineProperty(kZ,"__esModule",{value:!0});kZ.TracerMetrics=void 0;var EJ=i(),qJ=DZ();class EZ{startedSpans;liveSpans;constructor(J){this.startedSpans=J.createCounter(qJ.METRIC_OTEL_SDK_SPAN_STARTED,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=J.createUpDownCounter(qJ.METRIC_OTEL_SDK_SPAN_LIVE,{unit:"{span}",description:"The number of currently live spans."})}startSpan(J,Q){let Z=N6(Q);if(this.startedSpans.add(1,{[qJ.ATTR_OTEL_SPAN_PARENT_ORIGIN]:P6(J),[qJ.ATTR_OTEL_SPAN_SAMPLING_RESULT]:Z}),Q===EJ.SamplingDecision.NOT_RECORD)return()=>{};let $={[qJ.ATTR_OTEL_SPAN_SAMPLING_RESULT]:Z};return this.liveSpans.add(1,$),()=>{this.liveSpans.add(-1,$)}}}kZ.TracerMetrics=EZ;function P6(J){if(!J)return"none";if(J.isRemote)return"remote";return"local"}function N6(J){switch(J){case EJ.SamplingDecision.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case EJ.SamplingDecision.RECORD:return"RECORD_ONLY";case EJ.SamplingDecision.NOT_RECORD:return"DROP"}}});var CZ=K((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});AZ.VERSION=void 0;AZ.VERSION="2.6.1"});var fZ=K((PZ)=>{Object.defineProperty(PZ,"__esModule",{value:!0});PZ.Tracer=void 0;var F=M(),kJ=E(),f6=PQ(),T6=lJ(),b6=mJ(),_6=MZ(),x6=CZ();class LZ{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(J,Q,Z,$){let q=(0,T6.mergeConfig)(Q);this._sampler=q.sampler,this._generalLimits=q.generalLimits,this._spanLimits=q.spanLimits,this._idGenerator=Q.idGenerator||new b6.RandomIdGenerator,this._resource=Z,this._spanProcessor=$,this.instrumentationScope=J;let W=q.meterProvider?q.meterProvider.getMeter("@opentelemetry/sdk-trace",x6.VERSION):F.createNoopMeter();this._tracerMetrics=new _6.TracerMetrics(W)}startSpan(J,Q={},Z=F.context.active()){if(Q.root)Z=F.trace.deleteSpan(Z);let $=F.trace.getSpan(Z);if((0,kJ.isTracingSuppressed)(Z))return F.diag.debug("Instrumentation suppressed, returning Noop Span"),F.trace.wrapSpanContext(F.INVALID_SPAN_CONTEXT);let q=$?.spanContext(),W=this._idGenerator.generateSpanId(),X,H,Y;if(!q||!F.trace.isSpanContextValid(q))H=this._idGenerator.generateTraceId();else H=q.traceId,Y=q.traceState,X=q;let V=Q.kind??F.SpanKind.INTERNAL,R=(Q.links??[]).map((D)=>{return{context:D.context,attributes:(0,kJ.sanitizeAttributes)(D.attributes)}}),z=(0,kJ.sanitizeAttributes)(Q.attributes),U=this._sampler.shouldSample(Z,H,J,V,z,R),I=this._tracerMetrics.startSpan(q,U.decision);Y=U.traceState??Y;let G=U.decision===F.SamplingDecision.RECORD_AND_SAMPLED?F.TraceFlags.SAMPLED:F.TraceFlags.NONE,w={traceId:H,spanId:W,traceFlags:G,traceState:Y};if(U.decision===F.SamplingDecision.NOT_RECORD)return F.diag.debug("Recording is off, propagating context in a non-recording span"),F.trace.wrapSpanContext(w);let B=(0,kJ.sanitizeAttributes)(Object.assign(z,U.attributes));return new f6.SpanImpl({resource:this._resource,scope:this.instrumentationScope,context:Z,spanContext:w,name:J,kind:V,links:R,parentSpanContext:X,attributes:B,startTime:Q.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:I})}startActiveSpan(J,Q,Z,$){let q,W,X;if(arguments.length<2)return;else if(arguments.length===2)X=Q;else if(arguments.length===3)q=Q,X=Z;else q=Q,W=Z,X=$;let H=W??F.context.active(),Y=this.startSpan(J,q,H),V=F.trace.setSpan(H,Y);return F.context.with(V,X,void 0,Y)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}PZ.Tracer=LZ});var xZ=K((bZ)=>{Object.defineProperty(bZ,"__esModule",{value:!0});bZ.MultiSpanProcessor=void 0;var d6=E();class TZ{_spanProcessors;constructor(J){this._spanProcessors=J}forceFlush(){let J=[];for(let Q of this._spanProcessors)J.push(Q.forceFlush());return new Promise((Q)=>{Promise.all(J).then(()=>{Q()}).catch((Z)=>{(0,d6.globalErrorHandler)(Z||Error("MultiSpanProcessor: forceFlush failed")),Q()})})}onStart(J,Q){for(let Z of this._spanProcessors)Z.onStart(J,Q)}onEnding(J){for(let Q of this._spanProcessors)if(Q.onEnding)Q.onEnding(J)}onEnd(J){for(let Q of this._spanProcessors)Q.onEnd(J)}shutdown(){let J=[];for(let Q of this._spanProcessors)J.push(Q.shutdown());return new Promise((Q,Z)=>{Promise.all(J).then(()=>{Q()},Z)})}}bZ.MultiSpanProcessor=TZ});var lZ=K((vZ)=>{Object.defineProperty(vZ,"__esModule",{value:!0});vZ.BasicTracerProvider=vZ.ForceFlushState=void 0;var y6=E(),S6=yZ(),v6=fZ(),g6=gJ(),l6=xZ(),m6=lJ(),o;(function(J){J[J.resolved=0]="resolved",J[J.timeout=1]="timeout",J[J.error=2]="error",J[J.unresolved=3]="unresolved"})(o=vZ.ForceFlushState||(vZ.ForceFlushState={}));class SZ{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(J={}){let Q=(0,y6.merge)({},(0,g6.loadDefaultConfig)(),(0,m6.reconfigureLimits)(J));this._resource=Q.resource??(0,S6.defaultResource)(),this._config=Object.assign({},Q,{resource:this._resource});let Z=[];if(J.spanProcessors?.length)Z.push(...J.spanProcessors);this._activeSpanProcessor=new l6.MultiSpanProcessor(Z)}getTracer(J,Q,Z){let $=`${J}@${Q||""}:${Z?.schemaUrl||""}`;if(!this._tracers.has($))this._tracers.set($,new v6.Tracer({name:J,version:Q,schemaUrl:Z?.schemaUrl},this._config,this._resource,this._activeSpanProcessor));return this._tracers.get($)}forceFlush(){let J=this._config.forceFlushTimeoutMillis,Q=this._activeSpanProcessor._spanProcessors.map((Z)=>{return new Promise(($)=>{let q,W=setTimeout(()=>{$(Error(`Span processor did not completed within timeout period of ${J} ms`)),q=o.timeout},J);Z.forceFlush().then(()=>{if(clearTimeout(W),q!==o.timeout)q=o.resolved,$(q)}).catch((X)=>{clearTimeout(W),q=o.error,$(X)})})});return new Promise((Z,$)=>{Promise.all(Q).then((q)=>{let W=q.filter((X)=>X!==o.resolved);if(W.length>0)$(W);else Z()}).catch((q)=>$([q]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}vZ.BasicTracerProvider=SZ});var pZ=K((uZ)=>{Object.defineProperty(uZ,"__esModule",{value:!0});uZ.ConsoleSpanExporter=void 0;var uJ=E();class mZ{export(J,Q){return this._sendSpans(J,Q)}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:(0,uJ.hrTimeToMicroseconds)(J.startTime),duration:(0,uJ.hrTimeToMicroseconds)(J.duration),attributes:J.attributes,status:J.status,events:J.events,links:J.links}}_sendSpans(J,Q){for(let Z of J)console.dir(this._exportInfo(Z),{depth:3});if(Q)return Q({code:uJ.ExportResultCode.SUCCESS})}}uZ.ConsoleSpanExporter=mZ});var aZ=K((sZ)=>{Object.defineProperty(sZ,"__esModule",{value:!0});sZ.InMemorySpanExporter=void 0;var nZ=E();class iZ{_finishedSpans=[];_stopped=!1;export(J,Q){if(this._stopped)return Q({code:nZ.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...J),setTimeout(()=>Q({code:nZ.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}sZ.InMemorySpanExporter=iZ});var J0=K((tZ)=>{Object.defineProperty(tZ,"__esModule",{value:!0});tZ.SimpleSpanProcessor=void 0;var u6=M(),IJ=E();class rZ{_exporter;_shutdownOnce;_pendingExports;constructor(J){this._exporter=J,this._shutdownOnce=new IJ.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(J,Q){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&u6.TraceFlags.SAMPLED)===0)return;let Q=this._doExport(J).catch((Z)=>(0,IJ.globalErrorHandler)(Z));this._pendingExports.add(Q),Q.finally(()=>this._pendingExports.delete(Q))}async _doExport(J){if(J.resource.asyncAttributesPending)await J.resource.waitForAsyncAttributes?.();let Q=await IJ.internal._export(this._exporter,[J]);if(Q.code!==IJ.ExportResultCode.SUCCESS)throw Q.error??Error(`SimpleSpanProcessor: span export failed (status ${Q})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}tZ.SimpleSpanProcessor=rZ});var q0=K((Z0)=>{Object.defineProperty(Z0,"__esModule",{value:!0});Z0.NoopSpanProcessor=void 0;class Q0{onStart(J,Q){}onEnd(J){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}Z0.NoopSpanProcessor=Q0});var cJ=K((A)=>{Object.defineProperty(A,"__esModule",{value:!0});A.SamplingDecision=A.TraceIdRatioBasedSampler=A.ParentBasedSampler=A.AlwaysOnSampler=A.AlwaysOffSampler=A.NoopSpanProcessor=A.SimpleSpanProcessor=A.InMemorySpanExporter=A.ConsoleSpanExporter=A.RandomIdGenerator=A.BatchSpanProcessor=A.BasicTracerProvider=void 0;var c6=lZ();Object.defineProperty(A,"BasicTracerProvider",{enumerable:!0,get:function(){return c6.BasicTracerProvider}});var W0=mJ();Object.defineProperty(A,"BatchSpanProcessor",{enumerable:!0,get:function(){return W0.BatchSpanProcessor}});Object.defineProperty(A,"RandomIdGenerator",{enumerable:!0,get:function(){return W0.RandomIdGenerator}});var p6=pZ();Object.defineProperty(A,"ConsoleSpanExporter",{enumerable:!0,get:function(){return p6.ConsoleSpanExporter}});var n6=aZ();Object.defineProperty(A,"InMemorySpanExporter",{enumerable:!0,get:function(){return n6.InMemorySpanExporter}});var i6=J0();Object.defineProperty(A,"SimpleSpanProcessor",{enumerable:!0,get:function(){return i6.SimpleSpanProcessor}});var s6=q0();Object.defineProperty(A,"NoopSpanProcessor",{enumerable:!0,get:function(){return s6.NoopSpanProcessor}});var o6=wJ();Object.defineProperty(A,"AlwaysOffSampler",{enumerable:!0,get:function(){return o6.AlwaysOffSampler}});var a6=VJ();Object.defineProperty(A,"AlwaysOnSampler",{enumerable:!0,get:function(){return a6.AlwaysOnSampler}});var r6=dJ();Object.defineProperty(A,"ParentBasedSampler",{enumerable:!0,get:function(){return r6.ParentBasedSampler}});var t6=yJ();Object.defineProperty(A,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return t6.TraceIdRatioBasedSampler}});var e6=i();Object.defineProperty(A,"SamplingDecision",{enumerable:!0,get:function(){return e6.SamplingDecision}})});var H0=K((X0)=>{Object.defineProperty(X0,"__esModule",{value:!0});X0.NodeTracerProvider=void 0;var Q7=EQ(),Z7=cJ(),WJ=M(),pJ=E();function $7(J){if(J===null)return;if(J===void 0){let Q=new Q7.AsyncLocalStorageContextManager;Q.enable(),WJ.context.setGlobalContextManager(Q);return}J.enable(),WJ.context.setGlobalContextManager(J)}function q7(J){if(J===null)return;if(J===void 0){WJ.propagation.setGlobalPropagator(new pJ.CompositePropagator({propagators:[new pJ.W3CTraceContextPropagator,new pJ.W3CBaggagePropagator]}));return}WJ.propagation.setGlobalPropagator(J)}class z0 extends Z7.BasicTracerProvider{constructor(J={}){super(J)}register(J={}){WJ.trace.setGlobalTracerProvider(this),$7(J.contextManager),q7(J.propagator)}}X0.NodeTracerProvider=z0});var K0=K((k)=>{Object.defineProperty(k,"__esModule",{value:!0});k.TraceIdRatioBasedSampler=k.SimpleSpanProcessor=k.SamplingDecision=k.RandomIdGenerator=k.ParentBasedSampler=k.NoopSpanProcessor=k.InMemorySpanExporter=k.ConsoleSpanExporter=k.BatchSpanProcessor=k.BasicTracerProvider=k.AlwaysOnSampler=k.AlwaysOffSampler=k.NodeTracerProvider=void 0;var W7=H0();Object.defineProperty(k,"NodeTracerProvider",{enumerable:!0,get:function(){return W7.NodeTracerProvider}});var L=cJ();Object.defineProperty(k,"AlwaysOffSampler",{enumerable:!0,get:function(){return L.AlwaysOffSampler}});Object.defineProperty(k,"AlwaysOnSampler",{enumerable:!0,get:function(){return L.AlwaysOnSampler}});Object.defineProperty(k,"BasicTracerProvider",{enumerable:!0,get:function(){return L.BasicTracerProvider}});Object.defineProperty(k,"BatchSpanProcessor",{enumerable:!0,get:function(){return L.BatchSpanProcessor}});Object.defineProperty(k,"ConsoleSpanExporter",{enumerable:!0,get:function(){return L.ConsoleSpanExporter}});Object.defineProperty(k,"InMemorySpanExporter",{enumerable:!0,get:function(){return L.InMemorySpanExporter}});Object.defineProperty(k,"NoopSpanProcessor",{enumerable:!0,get:function(){return L.NoopSpanProcessor}});Object.defineProperty(k,"ParentBasedSampler",{enumerable:!0,get:function(){return L.ParentBasedSampler}});Object.defineProperty(k,"RandomIdGenerator",{enumerable:!0,get:function(){return L.RandomIdGenerator}});Object.defineProperty(k,"SamplingDecision",{enumerable:!0,get:function(){return L.SamplingDecision}});Object.defineProperty(k,"SimpleSpanProcessor",{enumerable:!0,get:function(){return L.SimpleSpanProcessor}});Object.defineProperty(k,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return L.TraceIdRatioBasedSampler}})});var a0=d(K0(),1);var MJ=(J)=>J!==void 0&&!(Array.isArray(J)&&J.length===0);var HJ=d(M(),1);var v;(function(J){J[J.UNSPECIFIED=0]="UNSPECIFIED",J[J.TRACE=1]="TRACE",J[J.TRACE2=2]="TRACE2",J[J.TRACE3=3]="TRACE3",J[J.TRACE4=4]="TRACE4",J[J.DEBUG=5]="DEBUG",J[J.DEBUG2=6]="DEBUG2",J[J.DEBUG3=7]="DEBUG3",J[J.DEBUG4=8]="DEBUG4",J[J.INFO=9]="INFO",J[J.INFO2=10]="INFO2",J[J.INFO3=11]="INFO3",J[J.INFO4=12]="INFO4",J[J.WARN=13]="WARN",J[J.WARN2=14]="WARN2",J[J.WARN3=15]="WARN3",J[J.WARN4=16]="WARN4",J[J.ERROR=17]="ERROR",J[J.ERROR2=18]="ERROR2",J[J.ERROR3=19]="ERROR3",J[J.ERROR4=20]="ERROR4",J[J.FATAL=21]="FATAL",J[J.FATAL2=22]="FATAL2",J[J.FATAL3=23]="FATAL3",J[J.FATAL4=24]="FATAL4"})(v||(v={}));class zJ{emit(J){}}var XJ=new zJ;var YJ=Symbol.for("io.opentelemetry.js.api.logs"),a=globalThis;function G0(J,Q,Z){return($)=>$===J?Q:Z}var nJ=1;class w0{getLogger(J,Q,Z){return new zJ}}var AJ=new w0;class iJ{constructor(J,Q,Z,$){this._provider=J,this.name=Q,this.version=Z,this.options=$}emit(J){this._getLogger().emit(J)}_getLogger(){if(this._delegate)return this._delegate;let J=this._provider._getDelegateLogger(this.name,this.version,this.options);if(!J)return XJ;return this._delegate=J,this._delegate}}class RJ{getLogger(J,Q,Z){var $;return($=this._getDelegateLogger(J,Q,Z))!==null&&$!==void 0?$:new iJ(this,J,Q,Z)}_getDelegate(){var J;return(J=this._delegate)!==null&&J!==void 0?J:AJ}_setDelegate(J){this._delegate=J}_getDelegateLogger(J,Q,Z){var $;return($=this._delegate)===null||$===void 0?void 0:$.getLogger(J,Q,Z)}}class CJ{constructor(){this._proxyLoggerProvider=new RJ}static getInstance(){if(!this._instance)this._instance=new CJ;return this._instance}setGlobalLoggerProvider(J){if(a[YJ])return this.getLoggerProvider();return a[YJ]=G0(nJ,J,AJ),this._proxyLoggerProvider._setDelegate(J),J}getLoggerProvider(){var J,Q;return(Q=(J=a[YJ])===null||J===void 0?void 0:J.call(a,nJ))!==null&&Q!==void 0?Q:this._proxyLoggerProvider}getLogger(J,Q,Z){return this.getLoggerProvider().getLogger(J,Q,Z)}disable(){delete a[YJ],this._proxyLoggerProvider=new RJ}}var l8=CJ.getInstance();var j0=d(yZ(),1),F0=d(E(),1);var T=d(M(),1);var f=d(M(),1),oJ=d(E(),1),C=d(AQ(),1);function V0(J){return sJ(J,new WeakSet)}function sJ(J,Q){if(J==null)return!0;if(typeof J==="string"||typeof J==="number"||typeof J==="boolean")return!0;if(J instanceof Uint8Array)return!0;if(typeof J==="object"){if(Q.has(J))return!1;if(Q.add(J),Array.isArray(J))return J.every(($)=>sJ($,Q));let Z=J;if(Z.constructor!==Object&&Z.constructor!==void 0)return!1;return Object.values(Z).every(($)=>sJ($,Q))}return!1}class aJ{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;_attributesCount=0;_droppedAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(J){if(this._isLogRecordReadonly())return;this._severityText=J}get severityText(){return this._severityText}set severityNumber(J){if(this._isLogRecordReadonly())return;this._severityNumber=J}get severityNumber(){return this._severityNumber}set body(J){if(this._isLogRecordReadonly())return;this._body=J}get body(){return this._body}get eventName(){return this._eventName}set eventName(J){if(this._isLogRecordReadonly())return;this._eventName=J}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(J,Q,Z){let{timestamp:$,observedTimestamp:q,eventName:W,severityNumber:X,severityText:H,body:Y,attributes:V={},exception:R,context:z}=Z,U=Date.now();if(this.hrTime=oJ.timeInputToHrTime($??U),this.hrTimeObserved=oJ.timeInputToHrTime(q??U),z){let I=f.trace.getSpanContext(z);if(I&&f.isSpanContextValid(I))this.spanContext=I}if(this.severityNumber=X,this.severityText=H,this.body=Y,this.resource=J.resource,this.instrumentationScope=Q,this._logRecordLimits=J.logRecordLimits,this._eventName=W,this.setAttributes(V),R!=null)this._setException(R)}setAttribute(J,Q){if(this._isLogRecordReadonly())return this;if(J.length===0)return f.diag.warn(`Invalid attribute key: ${J}`),this;if(!V0(Q))return f.diag.warn(`Invalid attribute value set for key: ${J}`),this;let Z=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(Z&&this._attributesCount>=this._logRecordLimits.attributeCountLimit){if(this._droppedAttributesCount++,this._droppedAttributesCount===1)f.diag.warn("Dropping extra attributes.");return this}if(this.attributes[J]=this._truncateToSize(Q),Z)this._attributesCount++;return this}setAttributes(J){for(let[Q,Z]of Object.entries(J))this.setAttribute(Q,Z);return this}setBody(J){return this.body=J,this}setEventName(J){return this.eventName=J,this}setSeverityNumber(J){return this.severityNumber=J,this}setSeverityText(J){return this.severityText=J,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(J){let Q=this._logRecordLimits.attributeValueLengthLimit;if(Q<=0)return f.diag.warn(`Attribute value limit must be positive, got ${Q}`),J;if(J==null)return J;if(typeof J==="string")return this._truncateToLimitUtil(J,Q);if(J instanceof Uint8Array)return J;if(Array.isArray(J))return J.map((Z)=>this._truncateToSize(Z));if(typeof J==="object"){let Z={};for(let[$,q]of Object.entries(J))Z[$]=this._truncateToSize(q);return Z}return J}_setException(J){let Q=!1;if(typeof J==="string"||typeof J==="number"){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_MESSAGE))this.setAttribute(C.ATTR_EXCEPTION_MESSAGE,String(J));Q=!0}else if(J&&typeof J==="object"){let Z=J;if(Z.code){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_TYPE))this.setAttribute(C.ATTR_EXCEPTION_TYPE,Z.code.toString());Q=!0}else if(Z.name){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_TYPE))this.setAttribute(C.ATTR_EXCEPTION_TYPE,Z.name);Q=!0}if(Z.message){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_MESSAGE))this.setAttribute(C.ATTR_EXCEPTION_MESSAGE,Z.message);Q=!0}if(Z.stack){if(!Object.hasOwn(this.attributes,C.ATTR_EXCEPTION_STACKTRACE))this.setAttribute(C.ATTR_EXCEPTION_STACKTRACE,Z.stack);Q=!0}}if(!Q)f.diag.warn(`Failed to record an exception ${J}`)}_truncateToLimitUtil(J,Q){if(J.length<=Q)return J;return J.substring(0,Q)}_isLogRecordReadonly(){if(this._isReadonly)f.diag.warn("Can not execute the operation on emitted log record");return this._isReadonly}}class rJ{instrumentationScope;_sharedState;_loggerConfig;constructor(J,Q){this.instrumentationScope=J,this._sharedState=Q,this._loggerConfig=this._sharedState.getLoggerConfig(this.instrumentationScope)}emit(J){let Q=this._loggerConfig,Z=J.context||T.context.active(),$=J.severityNumber??v.UNSPECIFIED;if($!==v.UNSPECIFIED&&$<Q.minimumSeverity)return;if(Q.traceBased){let W=T.trace.getSpanContext(Z);if(W&&T.isSpanContextValid(W)){if((W.traceFlags&T.TraceFlags.SAMPLED)!==T.TraceFlags.SAMPLED)return}}let q=new aJ(this._sharedState,this.instrumentationScope,{context:Z,...J});this._sharedState.activeProcessor.onEmit(q,Z),q._makeReadonly()}}class tJ{forceFlush(){return Promise.resolve()}onEmit(J,Q){}shutdown(){return Promise.resolve()}}var U0=d(E(),1);class eJ{processors;forceFlushTimeoutMillis;constructor(J,Q){this.processors=J,this.forceFlushTimeoutMillis=Q}async forceFlush(){let J=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map((Q)=>U0.callWithTimeout(Q.forceFlush(),J)))}onEmit(J,Q){this.processors.forEach((Z)=>Z.onEmit(J,Q))}async shutdown(){await Promise.all(this.processors.map((J)=>J.shutdown()))}}function B0(J){return`${J.name}@${J.version||""}:${J.schemaUrl||""}`}var X7={disabled:!1,minimumSeverity:v.UNSPECIFIED,traceBased:!1},JQ=()=>({...X7});class QQ{loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];resource;forceFlushTimeoutMillis;logRecordLimits;processors;_loggerConfigurator;_loggerConfigs=new Map;constructor(J,Q,Z,$,q){if(this.resource=J,this.forceFlushTimeoutMillis=Q,this.logRecordLimits=Z,this.processors=$,$.length>0)this.registeredLogRecordProcessors=$,this.activeProcessor=new eJ(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis);else this.activeProcessor=new tJ;this._loggerConfigurator=q??JQ}getLoggerConfig(J){let Q=B0(J),Z=this._loggerConfigs.get(Q);if(Z)return Z;return Z=this._loggerConfigurator(J),this._loggerConfigs.set(Q,Z),Z}}var Y7="unknown";class LJ{_shutdownOnce;_sharedState;constructor(J={}){let Q={resource:J.resource??j0.defaultResource(),forceFlushTimeoutMillis:J.forceFlushTimeoutMillis??30000,logRecordLimits:{attributeCountLimit:J.logRecordLimits?.attributeCountLimit??128,attributeValueLengthLimit:J.logRecordLimits?.attributeValueLengthLimit??1/0},loggerConfigurator:J.loggerConfigurator??JQ,processors:J.processors??[]};this._sharedState=new QQ(Q.resource,Q.forceFlushTimeoutMillis,Q.logRecordLimits,Q.processors,Q.loggerConfigurator),this._shutdownOnce=new F0.BindOnceFuture(this._shutdown,this)}getLogger(J,Q,Z){if(this._shutdownOnce.isCalled)return HJ.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),XJ;if(!J)HJ.diag.warn("Logger requested without instrumentation scope name.");let $=J||Y7,q=`${$}@${Q||""}:${Z?.schemaUrl||""}`;if(!this._sharedState.loggers.has(q))this._sharedState.loggers.set(q,new rJ({name:$,version:Q,schemaUrl:Z?.schemaUrl},this._sharedState));return this._sharedState.loggers.get(q)}forceFlush(){if(this._shutdownOnce.isCalled)return HJ.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise;return this._sharedState.activeProcessor.forceFlush()}shutdown(){if(this._shutdownOnce.isCalled)return HJ.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise;return this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}}class qQ extends O0()("@effect/opentelemetry/Logger/OtelLoggerProvider"){}var G7=g(function*(){let J=yield*qQ,Q=yield*A0,Z=J.getLogger("@effect/opentelemetry");return L0(($)=>{let q={fiberId:$.fiber.id},W=D0($.fiber.context,E0);if(h0(W))q.spanId=W.spanId,q.traceId=W.traceId;for(let[V,R]of Object.entries($.fiber.getRef(k0)))q[V]=ZQ(R);let X=$.date.getTime();for(let[V,R]of $.fiber.getRef(I0))q[`logSpan.${V}`]=`${X-R}ms`;let H=$Q($.message).map(ZQ),Y=N0(Q.currentTimeNanosUnsafe());Z.emit({body:H.length===1?H[0]:H,severityText:$.logLevel,severityNumber:C0($.logLevel),timestamp:Y,observedTimestamp:Y,attributes:q})})}),f0=(J)=>P0([G7],{mergeWithExisting:J.mergeWithExisting??!0}),T0=(J,Q)=>PJ(qQ,g(function*(){let Z=yield*ZJ;return yield*JJ(u(()=>new LJ({...Q??void 0,processors:$Q(J),resource:Z})),($)=>r(()=>$.forceFlush().then(()=>$.shutdown())).pipe(t,QJ,e(Q?.shutdownTimeout??3000)))}));var l=d(M(),1);var c;(function(J){J[J.DELTA=0]="DELTA",J[J.CUMULATIVE=1]="CUMULATIVE"})(c||(c={}));var P;(function(J){J.COUNTER="COUNTER",J.GAUGE="GAUGE",J.HISTOGRAM="HISTOGRAM",J.UP_DOWN_COUNTER="UP_DOWN_COUNTER",J.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",J.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",J.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(P||(P={}));var b;(function(J){J[J.HISTOGRAM=0]="HISTOGRAM",J[J.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",J[J.GAUGE=2]="GAUGE",J[J.SUM=3]="SUM"})(b||(b={}));var V7="@effect/opentelemetry/Metrics";class zQ{resource;context;temporality;startTimes;startTimeNanos;previousExportTimeNanos;previousCounterState;previousHistogramState;previousFrequencyState;previousSummaryState;constructor(J,Q,Z="cumulative"){this.resource=J,this.context=Q,this.temporality=Z,this.startTimes=new Map,this.startTimeNanos=b0(),this.previousExportTimeNanos=this.startTimeNanos,this.previousCounterState=new Map,this.previousHistogramState=new Map,this.previousFrequencyState=new Map,this.previousSummaryState=new Map}startTimeFor(J,Q){if(this.startTimes.has(J))return this.startTimes.get(J);return this.startTimes.set(J,Q),Q}collect(J){let Q=x0(this.context),Z=b0(),$=[],q=new Map,W=(V)=>{$.push(V),q.set(V.descriptor.name,V)},X=this.temporality==="delta",H=X?c.DELTA:c.CUMULATIVE,Y=X?this.previousExportTimeNanos:this.startTimeNanos;for(let V=0,R=Q.length;V<R;V++){let z=Q[V],U=z.attributes?_0(Object.entries(z.attributes),{},(G,[w,B])=>{return G[w]=String(B),G}):{},I=U7(z.id,z.attributes);switch(z.type){case"Counter":{let G=z.state.count,w=G;if(X){let j=this.previousCounterState.get(I);if(j!==void 0)if(typeof G==="bigint"&&typeof j==="bigint"){if(w=G-j,w<0n)w=G}else{let y=Number(G),p=Number(j);if(w=y-p,w<0)w=y}this.previousCounterState.set(I,G)}let B=$J(z,U),D={startTime:this.startTimeFor(B.name,Y),endTime:Z,attributes:U,value:Number(w)};if(q.has(z.id))q.get(z.id).dataPoints.push(D);else W({dataPointType:b.SUM,descriptor:B,isMonotonic:z.state.incremental,aggregationTemporality:H,dataPoints:[D]});break}case"Gauge":{let G=$J(z,U),B={startTime:this.startTimeFor(G.name,this.startTimeNanos),endTime:Z,attributes:U,value:Number(z.state.value)};if(q.has(z.id))q.get(z.id).dataPoints.push(B);else W({dataPointType:b.GAUGE,descriptor:G,aggregationTemporality:c.CUMULATIVE,dataPoints:[B]});break}case"Histogram":{let G=z.state.buckets.length,w={boundaries:WQ(G-1),counts:WQ(G)},B=0,N=0;for(let[n,KJ]of z.state.buckets){if(B<G-1)w.boundaries[B]=n;w.counts[B]=KJ-N,N=KJ,B++}let D=z.state.count,j=z.state.sum,y=w.counts,p=z.state.min,fJ=z.state.max;if(X){let n=this.previousHistogramState.get(I);if(n!==void 0)D=z.state.count-n.count,j=z.state.sum-n.sum,y=w.counts.map((KJ,r0)=>Math.max(0,KJ-(n.bucketCounts[r0]??0)));this.previousHistogramState.set(I,{count:z.state.count,sum:z.state.sum,bucketCounts:w.counts.slice(),min:z.state.min,max:z.state.max})}let YQ=$J(z,U),HQ={startTime:this.startTimeFor(YQ.name,Y),endTime:Z,attributes:U,value:{buckets:{boundaries:w.boundaries,counts:y},count:D,min:p,max:fJ,sum:j}};if(q.has(z.id))q.get(z.id).dataPoints.push(HQ);else W({dataPointType:b.HISTOGRAM,descriptor:YQ,aggregationTemporality:H,dataPoints:[HQ]});break}case"Frequency":{let G=[],w=new Map;for(let[B,N]of z.state.occurrences){w.set(B,N);let D=N;if(X){let p=this.previousFrequencyState.get(I);if(p!==void 0){let fJ=p.get(B)??0;D=Math.max(0,N-fJ)}}let j=$J(z,U),y=this.startTimeFor(j.name,Y);G.push({startTime:y,endTime:Z,attributes:{...U,key:B},value:D})}if(X)this.previousFrequencyState.set(I,w);if(q.has(z.id))q.get(z.id).dataPoints.push(...G);else{let B=$J(z,U);W({dataPointType:b.SUM,descriptor:B,aggregationTemporality:H,isMonotonic:!0,dataPoints:G})}break}case"Summary":{let G=[{startTime:Y,endTime:Z,attributes:{...U,quantile:"min"},value:z.state.min}];for(let[j,y]of z.state.quantiles)G.push({startTime:Y,endTime:Z,attributes:{...U,quantile:j.toString()},value:y??0});G.push({startTime:Y,endTime:Z,attributes:{...U,quantile:"max"},value:z.state.max});let w=z.state.count,B=z.state.sum;if(X){let j=this.previousSummaryState.get(I);if(j!==void 0)w=z.state.count-j.count,B=z.state.sum-j.sum;this.previousSummaryState.set(I,{count:z.state.count,sum:z.state.sum})}let N={startTime:Y,endTime:Z,attributes:U,value:w},D={startTime:Y,endTime:Z,attributes:U,value:B};if(q.has(`${z.id}_quantiles`))q.get(`${z.id}_quantiles`).dataPoints.push(...G),q.get(`${z.id}_count`).dataPoints.push(N),q.get(`${z.id}_sum`).dataPoints.push(D);else{let j=$J(z,U);W({dataPointType:b.SUM,descriptor:{...j,name:`${j.name}_quantiles`},aggregationTemporality:H,isMonotonic:!1,dataPoints:G}),W({dataPointType:b.SUM,descriptor:{name:`${z.id}_count`,description:z.description??"",unit:"1",type:P.COUNTER,valueType:l.ValueType.INT,advice:{}},aggregationTemporality:H,isMonotonic:!0,dataPoints:[N]}),W({dataPointType:b.SUM,descriptor:{name:`${z.id}_sum`,description:z.description??"",unit:"1",type:P.COUNTER,valueType:l.ValueType.DOUBLE,advice:{}},aggregationTemporality:H,isMonotonic:!0,dataPoints:[D]})}break}}}if(X)this.previousExportTimeNanos=Z;return Promise.resolve({resourceMetrics:{resource:this.resource,scopeMetrics:[{scope:{name:V7},metrics:$}]},errors:[]})}}var U7=(J,Q)=>{if(Q===void 0||Object.keys(Q).length===0)return J;let Z=Object.entries(Q).sort(($,q)=>$[0].localeCompare(q[0]));return`${J}:${JSON.stringify(Z)}`},b0=()=>{let J=Date.now();return[Math.floor(J/1000),J%1000*1e6]},$J=(J,Q)=>{let Z=Q.unit??Q.time_unit??"1";return{name:J.id,description:J.description??"",unit:Z,type:B7(J),valueType:j7(J),advice:{}}},B7=(J)=>{switch(J.type){case"Histogram":return P.HISTOGRAM;case"Gauge":return P.OBSERVABLE_GAUGE;case"Frequency":return P.COUNTER;case"Counter":return J.state.incremental?P.COUNTER:P.UP_DOWN_COUNTER;case"Summary":return P.COUNTER}},j7=(J)=>{if(J.type==="Counter")return typeof J.state.count==="bigint"?l.ValueType.INT:l.ValueType.DOUBLE;else if(J.type==="Gauge")return typeof J.state.value==="bigint"?l.ValueType.INT:l.ValueType.DOUBLE;return l.ValueType.DOUBLE};var F7=(J)=>g(function*(){let Q=yield*ZJ,Z=yield*S0();return new zQ(Q,Z,J)}),h7=(J,Q,Z)=>JJ(u(()=>{let $=Q(),q=Array.isArray($)?$:[$];return q.forEach((W)=>W.setMetricProducer(J)),q}),($)=>r(()=>Promise.all($.map((q)=>q.shutdown()))).pipe(t,QJ,e(Z?.shutdownTimeout??3000))),v0=(J,Q)=>d0(y0(F7(Q?.temporality),(Z)=>h7(Z,J,Q)));var D7=(J,Q)=>PJ(s0,g(function*(){let Z=yield*ZJ;return yield*JJ(u(()=>{return new a0.NodeTracerProvider({...Q??void 0,resource:Z,spanProcessors:Array.isArray(J)?J:[J]})}),($)=>r(()=>$.forceFlush().then(()=>$.shutdown())).pipe(t,QJ,e(Q?.shutdownTimeout??3000)))})),a9=(J)=>l0(g(function*(){let Q=yield*c0(J)?J:u(J),Z=n0(Q.resource&&p0(Q.resource)),$=MJ(Q.spanProcessor)?XQ(o0,D7(Q.spanProcessor,{...Q.tracerConfig,shutdownTimeout:Q.shutdownTimeout})):NJ,q=MJ(Q.metricReader)?v0(g0(Q.metricReader),{shutdownTimeout:Q.shutdownTimeout,temporality:Q.metricTemporality}):NJ,W=MJ(Q.logRecordProcessor)?XQ(f0({mergeWithExisting:Q.loggerMergeWithExisting}),T0(Q.logRecordProcessor,{...Q.loggerProviderConfig,shutdownTimeout:Q.shutdownTimeout})):NJ;return m0($,q,W).pipe(u0(Z))})),r9=i0;export{D7 as layerTracerProvider,r9 as layerEmpty,a9 as layer};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-cqtkxwd8.js";import{
|
|
2
|
+
import"./chunk-cqtkxwd8.js";import{Mr as H}from"./chunk-ymtcm4xd.js";import{bv as gG,xv as Q}from"./chunk-tdmn21z0.js";import{lA as mG}from"./chunk-s8mghr5a.js";import"./chunk-4sazy0nq.js";var{defineProperty:uJ,defineProperties:cJ,getOwnPropertyDescriptors:dJ,getOwnPropertySymbols:VB}=Object,uG=Object.prototype.hasOwnProperty,cG=Object.prototype.propertyIsEnumerable,dG=(B)=>{throw TypeError(B)},GG=(B,G,J)=>(G in B)?uJ(B,G,{enumerable:!0,configurable:!0,writable:!0,value:J}):B[G]=J,W=(B,G)=>{for(var J in G||(G={}))if(uG.call(G,J))GG(B,J,G[J]);if(VB){for(var J of VB(G))if(cG.call(G,J))GG(B,J,G[J])}return B},T=(B,G)=>cJ(B,dJ(G)),LB=(B,G)=>{var J={};for(var N in B)if(uG.call(B,N)&&G.indexOf(N)<0)J[N]=B[N];if(B!=null&&VB){for(var N of VB(B))if(G.indexOf(N)<0&&cG.call(B,N))J[N]=B[N]}return J},pJ=(B,G,J)=>G.has(B)||dG("Cannot "+J),JG=(B,G,J)=>(pJ(B,G,"read from private field"),J?J.call(B):G.get(B)),iJ=(B,G,J)=>G.has(B)?dG("Cannot add the same private member more than once"):G instanceof WeakSet?G.add(B):G.set(B,J),pG="vercel.ai.error",rJ=Symbol.for(pG),NG,QG,I=class B extends(QG=Error,NG=rJ,QG){constructor({name:G,message:J,cause:N}){super(J);this[NG]=!0,this.name=G,this.cause=N}static isInstance(G){return B.hasMarker(G,pG)}static hasMarker(G,J){let N=Symbol.for(J);return G!=null&&typeof G==="object"&&N in G&&typeof G[N]==="boolean"&&G[N]===!0}},iG="AI_APICallError",rG=`vercel.ai.error.${iG}`,sJ=Symbol.for(rG),XG,YG,o=class extends(YG=I,XG=sJ,YG){constructor({message:B,url:G,requestBodyValues:J,statusCode:N,responseHeaders:X,responseBody:Y,cause:Z,isRetryable:$=N!=null&&(N===408||N===409||N===429||N>=500),data:z}){super({name:iG,message:B,cause:Z});this[XG]=!0,this.url=G,this.requestBodyValues=J,this.statusCode=N,this.responseHeaders=X,this.responseBody=Y,this.isRetryable=$,this.data=z}static isInstance(B){return I.hasMarker(B,rG)}},sG="AI_EmptyResponseBodyError",nG=`vercel.ai.error.${sG}`,nJ=Symbol.for(nG),ZG,$G,aJ=class extends($G=I,ZG=nJ,$G){constructor({message:B="Empty response body"}={}){super({name:sG,message:B});this[ZG]=!0}static isInstance(B){return I.hasMarker(B,nG)}};function aG(B){if(B==null)return"unknown error";if(typeof B==="string")return B;if(B instanceof Error)return B.message;return JSON.stringify(B)}var lG="AI_InvalidArgumentError",tG=`vercel.ai.error.${lG}`,lJ=Symbol.for(tG),WG,zG,oG=class extends(zG=I,WG=lJ,zG){constructor({message:B,cause:G,argument:J}){super({name:lG,message:B,cause:G});this[WG]=!0,this.argument=J}static isInstance(B){return I.hasMarker(B,tG)}},eG="AI_InvalidPromptError",BJ=`vercel.ai.error.${eG}`,tJ=Symbol.for(BJ),jG,KG,oJ=class extends(KG=I,jG=tJ,KG){constructor({prompt:B,message:G,cause:J}){super({name:eG,message:`Invalid prompt: ${G}`,cause:J});this[jG]=!0,this.prompt=B}static isInstance(B){return I.hasMarker(B,BJ)}},GJ="AI_InvalidResponseDataError",JJ=`vercel.ai.error.${GJ}`,eJ=Symbol.for(JJ),LG,FG,KB=class extends(FG=I,LG=eJ,FG){constructor({data:B,message:G=`Invalid response data: ${JSON.stringify(B)}.`}){super({name:GJ,message:G});this[LG]=!0,this.data=B}static isInstance(B){return I.hasMarker(B,JJ)}},NJ="AI_JSONParseError",QJ=`vercel.ai.error.${NJ}`,BN=Symbol.for(QJ),qG,wG,bB=class extends(wG=I,qG=BN,wG){constructor({text:B,cause:G}){super({name:NJ,message:`JSON parsing failed: Text: ${B}.
|
|
3
3
|
Error message: ${aG(G)}`,cause:G});this[qG]=!0,this.text=B}static isInstance(B){return I.hasMarker(B,QJ)}},XJ="AI_LoadAPIKeyError",YJ=`vercel.ai.error.${XJ}`,GN=Symbol.for(YJ),EG,PG,OB=class extends(PG=I,EG=GN,PG){constructor({message:B}){super({name:XJ,message:B});this[EG]=!0}static isInstance(B){return I.hasMarker(B,YJ)}},ZJ="AI_LoadSettingError",$J=`vercel.ai.error.${ZJ}`,JN=Symbol.for($J),OG,HG,XX=class extends(HG=I,OG=JN,HG){constructor({message:B}){super({name:ZJ,message:B});this[OG]=!0}static isInstance(B){return I.hasMarker(B,$J)}},WJ="AI_NoContentGeneratedError",zJ=`vercel.ai.error.${WJ}`,NN=Symbol.for(zJ),SG,yG,rB=class extends(yG=I,SG=NN,yG){constructor({message:B="No content generated."}={}){super({name:WJ,message:B});this[SG]=!0}static isInstance(B){return I.hasMarker(B,zJ)}},jJ="AI_NoSuchModelError",KJ=`vercel.ai.error.${jJ}`,QN=Symbol.for(KJ),AG,VG,YX=class extends(VG=I,AG=QN,VG){constructor({errorName:B=jJ,modelId:G,modelType:J,message:N=`No such ${J}: ${G}`}){super({name:B,message:N});this[AG]=!0,this.modelId=G,this.modelType=J}static isInstance(B){return I.hasMarker(B,KJ)}},LJ="AI_TooManyEmbeddingValuesForCallError",FJ=`vercel.ai.error.${LJ}`,XN=Symbol.for(FJ),bG,MG,ZX=class extends(MG=I,bG=XN,MG){constructor(B){super({name:LJ,message:`Too many values for a single embedding call. The ${B.provider} model "${B.modelId}" can only embed up to ${B.maxEmbeddingsPerCall} values per call, but ${B.values.length} values were provided.`});this[bG]=!0,this.provider=B.provider,this.modelId=B.modelId,this.maxEmbeddingsPerCall=B.maxEmbeddingsPerCall,this.values=B.values}static isInstance(B){return I.hasMarker(B,FJ)}},qJ="AI_TypeValidationError",wJ=`vercel.ai.error.${qJ}`,YN=Symbol.for(wJ),TG,UG,FB=class B extends(UG=I,TG=YN,UG){constructor({value:G,cause:J}){super({name:qJ,message:`Type validation failed: Value: ${JSON.stringify(G)}.
|
|
4
4
|
Error message: ${aG(J)}`,cause:J});this[TG]=!0,this.value=G}static isInstance(G){return I.hasMarker(G,wJ)}static wrap({value:G,cause:J}){return B.isInstance(J)&&J.value===G?J:new B({value:G,cause:J})}},EJ="AI_UnsupportedFunctionalityError",PJ=`vercel.ai.error.${EJ}`,ZN=Symbol.for(PJ),xG,kG,BB=class extends(kG=I,xG=ZN,kG){constructor({functionality:B,message:G=`'${B}' functionality not supported.`}){super({name:EJ,message:G});this[xG]=!0,this.functionality=B}static isInstance(B){return I.hasMarker(B,PJ)}},DG=class extends Error{constructor(B,G){super(B),this.name="ParseError",this.type=G.type,this.field=G.field,this.value=G.value,this.line=G.line}};function CB(B){}function $N(B){if(typeof B=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:G=CB,onError:J=CB,onRetry:N=CB,onComment:X}=B,Y="",Z=!0,$,z="",j="";function E(K){let V=Z?K.replace(/^\xEF\xBB\xBF/,""):K,[F,x]=WN(`${Y}${V}`);for(let C of F)P(C);Y=x,Z=!1}function P(K){if(K===""){L();return}if(K.startsWith(":")){X&&X(K.slice(K.startsWith(": ")?2:1));return}let V=K.indexOf(":");if(V!==-1){let F=K.slice(0,V),x=K[V+1]===" "?2:1,C=K.slice(V+x);q(F,C,K);return}q(K,"",K)}function q(K,V,F){switch(K){case"event":j=V;break;case"data":z=`${z}${V}
|
|
5
5
|
`;break;case"id":$=V.includes("\x00")?void 0:V;break;case"retry":/^\d+$/.test(V)?N(parseInt(V,10)):J(new DG(`Invalid \`retry\` value: "${V}"`,{type:"invalid-retry",value:V,line:F}));break;default:J(new DG(`Unknown field "${K.length>20?`${K.slice(0,20)}\u2026`:K}"`,{type:"unknown-field",field:K,value:V,line:F}));break}}function L(){z.length>0&&G({id:$,event:j||void 0,data:z.endsWith(`
|