@qitqode/qitqode-android-arm64 0.2.2 → 0.2.3
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/bun +0 -0
- package/bundle/{chunk-2hv2c8d5.js → chunk-0428v6mw.js} +1 -1
- package/bundle/{chunk-0f3ft9dh.js → chunk-05ck7acg.js} +1 -1
- package/bundle/{chunk-3888asr7.js → chunk-083wpv6r.js} +1 -1
- package/bundle/{chunk-j5ymkhry.js → chunk-0cnwsf8p.js} +1 -1
- package/bundle/{chunk-7z884mz2.js → chunk-0nbteyb0.js} +2 -2
- package/bundle/chunk-0nqf1k20.js +2 -0
- package/bundle/chunk-0ppnq3a4.js +2 -0
- package/bundle/{chunk-6kf4vw2g.js → chunk-0qd3567w.js} +1 -1
- package/bundle/{chunk-jw114bbt.js → chunk-0smnwqk6.js} +2 -2
- package/bundle/chunk-0te0vcdn.js +2 -0
- package/bundle/{chunk-xmjntwjc.js → chunk-0vakk88p.js} +2 -2
- package/bundle/{chunk-45fyv9f1.js → chunk-0vxnkstz.js} +2 -2
- package/bundle/{chunk-q4fn41ex.js → chunk-0xrb12s8.js} +2 -2
- package/bundle/chunk-11h06z17.js +2 -0
- package/bundle/chunk-16w710kf.js +3 -0
- package/bundle/{chunk-6dfjtzqb.js → chunk-21rq4592.js} +2 -2
- package/bundle/{chunk-y3dfk6n5.js → chunk-24rkf2gk.js} +1 -1
- package/bundle/{chunk-rdwma0de.js → chunk-24ygjbpf.js} +2 -2
- package/bundle/chunk-262s2yz2.js +2 -0
- package/bundle/chunk-28yv4fqe.js +2 -0
- package/bundle/{chunk-3tmq81kq.js → chunk-2drzgtv3.js} +2 -2
- package/bundle/{chunk-xd3xc1vv.js → chunk-2md6sx8d.js} +1 -1
- package/bundle/{chunk-v9rg0a8g.js → chunk-313zqzc1.js} +1 -1
- package/bundle/{chunk-zfd70p01.js → chunk-32j0q58h.js} +1 -1
- package/bundle/chunk-34a52hyr.js +2 -0
- package/bundle/{chunk-86jsqc7d.js → chunk-39z96pc6.js} +3 -3
- package/bundle/{chunk-t1475j9f.js → chunk-3atcc483.js} +1 -1
- package/bundle/{chunk-e6wp96vm.js → chunk-3jf3jhrs.js} +1 -1
- package/bundle/{chunk-4sxg9cgr.js → chunk-3kpse7zy.js} +1 -1
- package/bundle/chunk-3n3gb3vd.js +2 -0
- package/bundle/chunk-3sq60y9f.js +2 -0
- package/bundle/{chunk-2qwmrp16.js → chunk-3vvd7j14.js} +1 -1
- package/bundle/chunk-4086z5ys.js +2 -0
- package/bundle/{chunk-rcyzqa3g.js → chunk-450fef7h.js} +2 -2
- package/bundle/{chunk-kxjrrdj0.js → chunk-45a4n21f.js} +1 -1
- package/bundle/{chunk-xny5ecn0.js → chunk-47k5jy1p.js} +2 -2
- package/bundle/{chunk-6f8qqbac.js → chunk-47z3x3dp.js} +166 -205
- package/bundle/{chunk-0gab4v98.js → chunk-48r70n4s.js} +1 -1
- package/bundle/chunk-49mbnqvc.js +2 -0
- package/bundle/{chunk-ssdw9zre.js → chunk-49xhybc2.js} +1 -1
- package/bundle/{chunk-t9zbp2qw.js → chunk-4agaj51z.js} +1 -1
- package/bundle/{chunk-mrn44msr.js → chunk-4dnntf9k.js} +2 -2
- package/bundle/chunk-4fr6kae9.js +2 -0
- package/bundle/chunk-4websxrs.js +2 -0
- package/bundle/chunk-516w1nc4.js +2 -0
- package/bundle/chunk-52w60e1f.js +2 -0
- package/bundle/chunk-535nm66j.js +2 -0
- package/bundle/{chunk-1p6jjrea.js → chunk-55fcmswd.js} +2 -2
- package/bundle/{chunk-n7kqdqkh.js → chunk-55ykn8nz.js} +4 -4
- package/bundle/chunk-565855py.js +2 -0
- package/bundle/chunk-56v352f8.js +2 -0
- package/bundle/chunk-5bjtq8t2.js +2 -0
- package/bundle/{chunk-as845ya4.js → chunk-5c2438af.js} +1 -1
- package/bundle/chunk-5kpxpm8e.js +2 -0
- package/bundle/chunk-5nm5s0h2.js +2 -0
- package/bundle/{chunk-07s30fpb.js → chunk-5nrc5rhh.js} +1 -1
- package/bundle/{chunk-jwph7tpc.js → chunk-5pwv2p3s.js} +1 -1
- package/bundle/{chunk-q5abwn50.js → chunk-5pzs51sp.js} +1 -1
- package/bundle/{chunk-r0s28gnb.js → chunk-5tky3csh.js} +1 -1
- package/bundle/{chunk-yajd975f.js → chunk-5w76kdjr.js} +1 -1
- package/bundle/{chunk-wcqfr8vr.js → chunk-5ysbwr4x.js} +1 -1
- package/bundle/{chunk-85xh72hk.js → chunk-5zkj5xv9.js} +2 -2
- package/bundle/{chunk-fgn83bs7.js → chunk-65bmsp2t.js} +1 -1
- package/bundle/chunk-65t9b9eq.js +3 -0
- package/bundle/{chunk-9jrxrjzt.js → chunk-68v3b6ns.js} +2 -2
- package/bundle/{chunk-7ntw4rrn.js → chunk-6ar91jvd.js} +1 -1
- package/bundle/{chunk-bbbh69ys.js → chunk-6evh2ke8.js} +1 -1
- package/bundle/chunk-6gpf2bjs.js +2 -0
- package/bundle/{chunk-a2dz9nqh.js → chunk-6m9jb0s9.js} +2 -2
- package/bundle/{chunk-yvjke593.js → chunk-6scf311w.js} +1 -1
- package/bundle/{chunk-e374shb8.js → chunk-6tstcwxp.js} +2 -2
- package/bundle/{chunk-5wwd40t3.js → chunk-70q8qcb2.js} +1 -1
- package/bundle/{chunk-pfkm3j8g.js → chunk-73r8bjjz.js} +2 -2
- package/bundle/{chunk-9bm9z52r.js → chunk-78pt314g.js} +1 -1
- package/bundle/{chunk-hs3vfhar.js → chunk-7bcm7gg1.js} +1 -1
- package/bundle/chunk-7bgzcpdw.js +2 -0
- package/bundle/{chunk-ezfzb8qc.js → chunk-7g66qc1v.js} +2 -2
- package/bundle/{chunk-fd7fmvyw.js → chunk-7hvf9dgx.js} +1 -1
- package/bundle/chunk-7kjvcbwa.js +2 -0
- package/bundle/chunk-7knnz5f1.js +2 -0
- package/bundle/{chunk-6j339s7a.js → chunk-7mppvhv9.js} +2 -2
- package/bundle/{chunk-kmwy6c9g.js → chunk-7vmx8bg9.js} +2 -2
- package/bundle/{chunk-7njz51r4.js → chunk-7x6yrtzn.js} +1 -1
- package/bundle/{chunk-skv9ww0s.js → chunk-804vmbcd.js} +1 -1
- package/bundle/{chunk-7zc04q43.js → chunk-88q0mtgp.js} +2 -2
- package/bundle/chunk-8jma2btf.js +2 -0
- package/bundle/{chunk-dbztxdea.js → chunk-8mm92zn2.js} +2 -2
- package/bundle/{chunk-kdcnder5.js → chunk-8wwdrwf2.js} +1 -1
- package/bundle/{chunk-4fk46ngj.js → chunk-920z7g7j.js} +1 -1
- package/bundle/chunk-93e0w75z.js +2 -0
- package/bundle/{chunk-pzefsndd.js → chunk-953pqp3w.js} +1 -1
- package/bundle/chunk-96wwns35.js +2 -0
- package/bundle/chunk-97gp818s.js +2 -0
- package/bundle/chunk-9epf2zbh.js +2 -0
- package/bundle/chunk-9fyz4sxa.js +2 -0
- package/bundle/{chunk-4hd3v58j.js → chunk-9hz56z6a.js} +1 -1
- package/bundle/{chunk-rk2bk4s7.js → chunk-9zm6r55d.js} +2 -2
- package/bundle/chunk-a7wmadf1.js +2 -0
- package/bundle/{chunk-w7em72p8.js → chunk-ac7482n2.js} +2 -2
- package/bundle/chunk-agv04nt7.js +2 -0
- package/bundle/{chunk-cbmwhvxw.js → chunk-at22twxx.js} +2 -2
- package/bundle/{chunk-frsd6e1h.js → chunk-avefgbjg.js} +2 -2
- package/bundle/chunk-azpnrnv9.js +8251 -0
- package/bundle/{chunk-z2h1gxyx.js → chunk-bbng1cea.js} +1 -1
- package/bundle/{chunk-5az84brc.js → chunk-bd21p9zz.js} +2 -2
- package/bundle/chunk-be7smmar.js +2 -0
- package/bundle/{chunk-y4e7e42x.js → chunk-bne5w117.js} +4 -4
- package/bundle/{chunk-j3jqk62r.js → chunk-bqn6bqws.js} +1 -1
- package/bundle/{chunk-yhsnmpzv.js → chunk-brws2aht.js} +1 -1
- package/bundle/chunk-bryx5cx9.js +2 -0
- package/bundle/{chunk-vtw0wwch.js → chunk-bvf2dcq4.js} +3 -3
- package/bundle/{chunk-tge53d52.js → chunk-bwbqkfv0.js} +1 -1
- package/bundle/chunk-c13rrw41.js +2 -0
- package/bundle/chunk-c2kkv619.js +2 -0
- package/bundle/{chunk-64c8q9zg.js → chunk-c36p881g.js} +3 -3
- package/bundle/chunk-c5xj1y5v.js +2 -0
- package/bundle/chunk-c74cxhjb.js +2 -0
- package/bundle/chunk-cejyed1j.js +2 -0
- package/bundle/chunk-ckpm4dvv.js +2 -0
- package/bundle/{chunk-732yr6qq.js → chunk-cmb62jkt.js} +2 -2
- package/bundle/chunk-ct8twng1.js +2 -0
- package/bundle/{chunk-1q1cddy4.js → chunk-cz5vta94.js} +1 -1
- package/bundle/{chunk-fpm2vgz6.js → chunk-d0x5pbkm.js} +1 -1
- package/bundle/chunk-d38y7bvh.js +2 -0
- package/bundle/chunk-d6hxsfm6.js +2 -0
- package/bundle/{chunk-29zm623f.js → chunk-d6jhs818.js} +2 -2
- package/bundle/chunk-descb9jz.js +2 -0
- package/bundle/{chunk-mswx4k75.js → chunk-dnnkq5y4.js} +2 -2
- package/bundle/{chunk-6pcmv8vs.js → chunk-dnsh1v42.js} +2 -2
- package/bundle/{chunk-vk88jj60.js → chunk-dqp4nmxs.js} +1 -1
- package/bundle/chunk-dvr2b9r1.js +2 -0
- package/bundle/{chunk-s0ty36qg.js → chunk-dxdggn90.js} +1 -1
- package/bundle/{chunk-w30b563s.js → chunk-e8p92vz4.js} +2 -2
- package/bundle/chunk-ea5fktnn.js +2 -0
- package/bundle/{chunk-t1jgx17a.js → chunk-eg3syjtv.js} +2 -2
- package/bundle/{chunk-2a9rzgk6.js → chunk-ehb4hd9c.js} +1 -1
- package/bundle/{chunk-9jsgs71h.js → chunk-ejqzcdcx.js} +1 -1
- package/bundle/chunk-enmsp09e.js +3 -0
- package/bundle/chunk-epgcsjfp.js +2 -0
- package/bundle/{chunk-5t0w9ecw.js → chunk-et3804wr.js} +1 -1
- package/bundle/{chunk-yd8bzhv6.js → chunk-ezrqhqkp.js} +1 -1
- package/bundle/chunk-f0t7rryn.js +3 -0
- package/bundle/{chunk-p635phfw.js → chunk-f31yvp20.js} +1 -1
- package/bundle/chunk-f4mf6tpp.js +2 -0
- package/bundle/chunk-f97k17t8.js +2 -0
- package/bundle/{chunk-yx1h0b5v.js → chunk-faee8zgc.js} +1 -1
- package/bundle/{chunk-p9mj4zyk.js → chunk-ff548b0j.js} +2 -2
- package/bundle/{chunk-bgng3rdj.js → chunk-fhqfqd5v.js} +2 -2
- package/bundle/{chunk-zek5c15t.js → chunk-fjbv3jht.js} +1 -1
- package/bundle/{chunk-epa576pa.js → chunk-fsahzvd5.js} +3 -3
- package/bundle/chunk-g06a4chw.js +2 -0
- package/bundle/{chunk-hq9bgnqb.js → chunk-g22e4gw7.js} +1 -1
- package/bundle/{chunk-s0ptrw0z.js → chunk-g3wvtyw3.js} +1 -1
- package/bundle/{chunk-x4pdpka8.js → chunk-g42krp0z.js} +1 -1
- package/bundle/chunk-g4ehhdzp.js +2 -0
- package/bundle/{chunk-a9y27zd2.js → chunk-gbkz04ke.js} +1 -1
- package/bundle/chunk-gd6qpdjw.js +2 -0
- package/bundle/chunk-gehn9fd9.js +2 -0
- package/bundle/{chunk-0zxwjsvz.js → chunk-ggxzf22k.js} +1 -1
- package/bundle/{chunk-kzvvvj79.js → chunk-gszvgz76.js} +2 -2
- package/bundle/{chunk-g3kd4957.js → chunk-gy21fw82.js} +2 -2
- package/bundle/{chunk-cbf1y12x.js → chunk-h62chdmw.js} +1 -1
- package/bundle/{chunk-et5dnymk.js → chunk-h823m51m.js} +2 -2
- package/bundle/{chunk-5js6a6gf.js → chunk-h99tj1e4.js} +1 -1
- package/bundle/{chunk-c1g8n10t.js → chunk-ha1w0xzh.js} +1 -1
- package/bundle/chunk-ha8b2n4x.js +2 -0
- package/bundle/{chunk-rpfhgncs.js → chunk-has2rz35.js} +1 -1
- package/bundle/chunk-hbyrwmne.js +2 -0
- package/bundle/chunk-hhax4mxw.js +2 -0
- package/bundle/{chunk-087tnr8a.js → chunk-hwrrrbqd.js} +1 -1
- package/bundle/chunk-hzrxmdqm.js +2 -0
- package/bundle/{chunk-yd2emszh.js → chunk-j0bwa5dk.js} +2 -2
- package/bundle/{chunk-9b4aqcde.js → chunk-j164q40b.js} +2 -2
- package/bundle/{chunk-qhnpq5gb.js → chunk-j8fcfhr2.js} +2 -2
- package/bundle/{chunk-9ea1n338.js → chunk-j9h1sp4g.js} +2 -2
- package/bundle/{chunk-yrfq22a5.js → chunk-jg1ccs3j.js} +1 -1
- package/bundle/{chunk-d307vb2d.js → chunk-jqk3v8d6.js} +1 -1
- package/bundle/chunk-jrwnz64e.js +3 -0
- package/bundle/chunk-jvkzdap1.js +2 -0
- package/bundle/chunk-jvybgsz5.js +5 -0
- package/bundle/{chunk-pp9neaaz.js → chunk-jww55nk9.js} +1 -1
- package/bundle/{chunk-fvy24yhq.js → chunk-k1nh5sd2.js} +1 -1
- package/bundle/{chunk-wfggztm4.js → chunk-k4gsktts.js} +1 -1
- package/bundle/{chunk-qaz100ht.js → chunk-k5q9px67.js} +1 -1
- package/bundle/chunk-kg8fcv91.js +2 -0
- package/bundle/chunk-kgptyf7n.js +3 -0
- package/bundle/{chunk-b50t4jc5.js → chunk-khzzmyk2.js} +1 -1
- package/bundle/chunk-kjjjrjnb.js +2 -0
- package/bundle/{chunk-jvjq554f.js → chunk-ksme3gj1.js} +1 -1
- package/bundle/chunk-m5cfmhwh.js +2 -0
- package/bundle/{chunk-4v61ysex.js → chunk-m5dm7a1t.js} +1 -1
- package/bundle/{chunk-yr35q7q1.js → chunk-m7ganre7.js} +1 -1
- package/bundle/chunk-m7qxxbns.js +2 -0
- package/bundle/{chunk-y287zwkr.js → chunk-mh19kwzw.js} +1 -1
- package/bundle/{chunk-7my2231h.js → chunk-mhhtf0v3.js} +1 -1
- package/bundle/{chunk-grw4gg9j.js → chunk-mjjaezwq.js} +2 -2
- package/bundle/{chunk-03mbn7nj.js → chunk-mmjgf680.js} +2 -2
- package/bundle/{chunk-jv4th87b.js → chunk-mn9end71.js} +1 -1
- package/bundle/{chunk-543pt030.js → chunk-msdypt5f.js} +2 -2
- package/bundle/chunk-n0b0dfqk.js +2 -0
- package/bundle/{chunk-3h49k2ck.js → chunk-n23d0q00.js} +1 -1
- package/bundle/{chunk-mpe8zxc0.js → chunk-n78f8hfk.js} +1 -1
- package/bundle/chunk-n8wg5h5p.js +2 -0
- package/bundle/{chunk-9s785py4.js → chunk-nbd13scz.js} +1 -1
- package/bundle/{chunk-sjreby6e.js → chunk-nftgx6bz.js} +1 -1
- package/bundle/{chunk-gr4bctqj.js → chunk-nj1ntakd.js} +2 -2
- package/bundle/{chunk-wdaf713t.js → chunk-nrat6ncm.js} +1 -1
- package/bundle/{chunk-rm5ntsvn.js → chunk-nty5z2cj.js} +1 -1
- package/bundle/chunk-nvwzam7a.js +2 -0
- package/bundle/{chunk-rp8asmq7.js → chunk-p169ee92.js} +1 -1
- package/bundle/chunk-p27a88vp.js +7 -0
- package/bundle/{chunk-h10wjk96.js → chunk-p3rd2q47.js} +2 -2
- package/bundle/{chunk-fbm6qczy.js → chunk-p4027t94.js} +1 -1
- package/bundle/{chunk-94qhpkfx.js → chunk-p54bzjtv.js} +1 -1
- package/bundle/{chunk-cp39f96a.js → chunk-p5be5ddp.js} +1 -1
- package/bundle/{chunk-ngvp6zc2.js → chunk-p6crzjtf.js} +2 -2
- package/bundle/chunk-p6hcj3kv.js +2 -0
- package/bundle/{chunk-p4ewy9xh.js → chunk-pb30kkbs.js} +6 -6
- package/bundle/chunk-pexmns0j.js +2 -0
- package/bundle/{chunk-my3cswnp.js → chunk-ph8hn1wt.js} +2 -2
- package/bundle/{chunk-99148b1k.js → chunk-pmg53fdd.js} +1 -1
- package/bundle/{chunk-wf4x5cjc.js → chunk-pr7z5dj8.js} +1 -1
- package/bundle/chunk-pt603np4.js +2 -0
- package/bundle/{chunk-4mvg7jt1.js → chunk-ptqk1j2r.js} +1 -1
- package/bundle/{chunk-a92hh67a.js → chunk-pxm4qvqk.js} +2 -2
- package/bundle/{chunk-3qfpw8f6.js → chunk-qey1efpx.js} +1 -1
- package/bundle/chunk-qk5bfcv8.js +2 -0
- package/bundle/{chunk-91z7azf7.js → chunk-qktzz0sy.js} +1 -1
- package/bundle/{chunk-ks1cs80p.js → chunk-qnvsqnz5.js} +2 -2
- package/bundle/{chunk-bcx2vkv4.js → chunk-qp1n7kwe.js} +1 -1
- package/bundle/{chunk-zcp0wx4j.js → chunk-qqrc1h5b.js} +2 -2
- package/bundle/{chunk-vyh300ac.js → chunk-qqxrvyx0.js} +2 -2
- package/bundle/chunk-qr06byhp.js +2 -0
- package/bundle/{chunk-8v6x712g.js → chunk-qrxqfp59.js} +2 -2
- package/bundle/{chunk-gtjn3yc4.js → chunk-qxcyz5hc.js} +2 -2
- package/bundle/{chunk-a550vst5.js → chunk-qznr1emx.js} +9 -9
- package/bundle/{chunk-tj3rem3q.js → chunk-r5zy4za0.js} +2 -2
- package/bundle/chunk-r7sq3maz.js +2 -0
- package/bundle/{chunk-f83wv08n.js → chunk-r9w0thdk.js} +1 -1
- package/bundle/chunk-rmgs9nmj.js +2 -0
- package/bundle/{chunk-p887g1xj.js → chunk-rn83r0js.js} +1 -1
- package/bundle/{chunk-8d6e4jg7.js → chunk-rp9r3cvt.js} +2 -2
- package/bundle/{chunk-n90eh3e7.js → chunk-rrv0n73b.js} +1 -1
- package/bundle/chunk-rscfes01.js +2 -0
- package/bundle/chunk-rytavefg.js +2 -0
- package/bundle/{chunk-g7k6ecb2.js → chunk-s2gg38y0.js} +1 -1
- package/bundle/{chunk-yz0pwv2m.js → chunk-s4vx9x1v.js} +1 -1
- package/bundle/{chunk-x2cavpa9.js → chunk-sfw5qddj.js} +1 -1
- package/bundle/chunk-sh9vjnsh.js +2 -0
- package/bundle/{chunk-6avjq7my.js → chunk-smznrv7k.js} +1 -1
- package/bundle/chunk-snbw69t6.js +2 -0
- package/bundle/chunk-st0c5wwc.js +2 -0
- package/bundle/{chunk-vqss3e48.js → chunk-t0761rhq.js} +2 -2
- package/bundle/{chunk-vqpfpmha.js → chunk-t239rvej.js} +2 -2
- package/bundle/{chunk-bggybm9k.js → chunk-t8c4cs6z.js} +1 -1
- package/bundle/chunk-tdyvps17.js +35 -0
- package/bundle/chunk-teb3k2sf.js +2 -0
- package/bundle/{chunk-ve3np791.js → chunk-tg226j37.js} +1 -1
- package/bundle/{chunk-73fz0cf4.js → chunk-tkrwcjkr.js} +2 -2
- package/bundle/{chunk-v5z6sx6j.js → chunk-tm34qp8j.js} +1 -1
- package/bundle/chunk-tr6rdr6h.js +4 -0
- package/bundle/chunk-ts798jvf.js +2 -0
- package/bundle/chunk-tx5aj02v.js +2 -0
- package/bundle/{chunk-3jms025t.js → chunk-tza09w2q.js} +1 -1
- package/bundle/chunk-v1t51rrq.js +2 -0
- package/bundle/{chunk-7ab3yw9j.js → chunk-v6h3nes1.js} +2 -2
- package/bundle/{chunk-e586sjb0.js → chunk-vcygx6hs.js} +2 -2
- package/bundle/{chunk-h2bmss2m.js → chunk-vdxar0ct.js} +1 -1
- package/bundle/{chunk-86yk21g4.js → chunk-venprxdp.js} +1 -1
- package/bundle/{chunk-ywkvq7zb.js → chunk-vf492zs6.js} +1 -1
- package/bundle/chunk-vh9ptqn0.js +2 -0
- package/bundle/{chunk-w79jzf8w.js → chunk-vnrjk2be.js} +1 -1
- package/bundle/{chunk-8q5ns61h.js → chunk-vshycswk.js} +1 -1
- package/bundle/{chunk-8e6gx3gg.js → chunk-vsz4s6zt.js} +1 -1
- package/bundle/{chunk-vhe92p7a.js → chunk-vygkwwjd.js} +2 -2
- package/bundle/{chunk-9rxyq6f9.js → chunk-w46g7kdq.js} +2 -2
- package/bundle/{chunk-q128vfc6.js → chunk-w4brava0.js} +1 -1
- package/bundle/{chunk-drwqag0f.js → chunk-w4synhfg.js} +1 -1
- package/bundle/chunk-w72rctxz.js +2 -0
- package/bundle/{chunk-mxhb5adq.js → chunk-w9gzfsy7.js} +2 -2
- package/bundle/chunk-wbw9zv3h.js +2 -0
- package/bundle/{chunk-q46pzk9z.js → chunk-wg55bwqh.js} +2 -2
- package/bundle/{chunk-1sfcxdbw.js → chunk-wkg3c643.js} +2 -2
- package/bundle/{chunk-2bgqy6z7.js → chunk-wwdpw27v.js} +1 -1
- package/bundle/{chunk-km1n4ttr.js → chunk-wy3a4cab.js} +1 -1
- package/bundle/{chunk-tczbhj0e.js → chunk-wyj8cpx5.js} +1 -1
- package/bundle/chunk-x6mw98c2.js +2 -0
- package/bundle/chunk-x9ptmxt7.js +2 -0
- package/bundle/{chunk-8rh0femq.js → chunk-xdd3553a.js} +1 -1
- package/bundle/{chunk-2jpmxt4v.js → chunk-xdteq9bd.js} +1 -1
- package/bundle/{chunk-9y15zjxa.js → chunk-xe69cnsk.js} +1 -1
- package/bundle/{chunk-s77qktcn.js → chunk-xq2kcar4.js} +2 -2
- package/bundle/{chunk-bk3z400e.js → chunk-y0527cg0.js} +1 -1
- package/bundle/{chunk-hrw5rmj1.js → chunk-y29ejqg2.js} +1 -1
- package/bundle/{chunk-42r7z6sq.js → chunk-y67kaj0b.js} +1 -1
- package/bundle/chunk-y6p57wgh.js +2 -0
- package/bundle/chunk-y6xs8v17.js +2 -0
- package/bundle/{chunk-zdzxsyxs.js → chunk-y7hgevfv.js} +2 -2
- package/bundle/{chunk-k1gddnkm.js → chunk-ybane1en.js} +1 -1
- package/bundle/{chunk-k6cbfrzc.js → chunk-yhj01dz9.js} +2 -2
- package/bundle/{chunk-2xqqkf86.js → chunk-ypdt9mmr.js} +2 -2
- package/bundle/chunk-yvn8dmah.js +2 -0
- package/bundle/{chunk-vm1ek7yf.js → chunk-yz25607t.js} +1 -1
- package/bundle/{chunk-ypcc3cnb.js → chunk-z1932c3f.js} +1 -1
- package/bundle/chunk-z3xsfpc6.js +2 -0
- package/bundle/chunk-z4kjxtjq.js +2 -0
- package/bundle/{chunk-6ypafpg8.js → chunk-z6sbjvtv.js} +1 -1
- package/bundle/chunk-z8mj4z6e.js +2 -0
- package/bundle/{chunk-ta7mfkms.js → chunk-zc0cdvcv.js} +2 -2
- package/bundle/chunk-zgv1e250.js +2 -0
- package/bundle/chunk-zn5pw733.js +2 -0
- package/bundle/{chunk-ywdtp534.js → chunk-ztyy3ga3.js} +2 -2
- package/bundle/chunk-zxwvnmea.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/qffi-compat.so +0 -0
- package/bundle/qffi.node +0 -0
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-0cdtq1r3.js +0 -2
- package/bundle/chunk-0ych0f5w.js +0 -2
- package/bundle/chunk-0yjdatm6.js +0 -3
- package/bundle/chunk-0ykeedfm.js +0 -2
- package/bundle/chunk-22hr3ndh.js +0 -2
- package/bundle/chunk-23tyxyyj.js +0 -2
- package/bundle/chunk-2517cev8.js +0 -2
- package/bundle/chunk-28g1ndpx.js +0 -2
- package/bundle/chunk-2avxtbv3.js +0 -2
- package/bundle/chunk-2faah8w1.js +0 -2
- package/bundle/chunk-2qk0k2eb.js +0 -2
- package/bundle/chunk-3c3xzz0g.js +0 -3
- package/bundle/chunk-42wdfks8.js +0 -2
- package/bundle/chunk-44y6dffe.js +0 -2
- package/bundle/chunk-4f19vqxf.js +0 -2
- package/bundle/chunk-4m3k1atq.js +0 -2
- package/bundle/chunk-4n2ytddp.js +0 -2
- package/bundle/chunk-4yg42p6y.js +0 -2
- package/bundle/chunk-4zx3ze68.js +0 -2
- package/bundle/chunk-637sjdzq.js +0 -2
- package/bundle/chunk-6h8f89tt.js +0 -2
- package/bundle/chunk-6sjj203r.js +0 -2
- package/bundle/chunk-79aka9xe.js +0 -2
- package/bundle/chunk-7nqdhe7x.js +0 -2
- package/bundle/chunk-7q003wdd.js +0 -4
- package/bundle/chunk-7x88b2n2.js +0 -2
- package/bundle/chunk-8apeexas.js +0 -3
- package/bundle/chunk-8mthftwc.js +0 -2
- package/bundle/chunk-8wdara3b.js +0 -2
- package/bundle/chunk-8xhzpnph.js +0 -2
- package/bundle/chunk-96sqbyvf.js +0 -2
- package/bundle/chunk-9akz8w0d.js +0 -2
- package/bundle/chunk-9etpppyv.js +0 -3
- package/bundle/chunk-9pnpmtb2.js +0 -2
- package/bundle/chunk-a5pbvp1f.js +0 -7
- package/bundle/chunk-a7p0x4sw.js +0 -2
- package/bundle/chunk-ae0a496j.js +0 -2
- package/bundle/chunk-aq1j9y18.js +0 -2
- package/bundle/chunk-aq8nz9hp.js +0 -2
- package/bundle/chunk-b4zy78be.js +0 -2
- package/bundle/chunk-basjzwqp.js +0 -2
- package/bundle/chunk-bhetpmgq.js +0 -3
- package/bundle/chunk-bm7xpjh6.js +0 -2
- package/bundle/chunk-c1bw1q75.js +0 -2
- package/bundle/chunk-c2k556rk.js +0 -2
- package/bundle/chunk-c47vp7ne.js +0 -2
- package/bundle/chunk-cbhgf058.js +0 -2
- package/bundle/chunk-d41mg7at.js +0 -2
- package/bundle/chunk-d50kpss6.js +0 -2
- package/bundle/chunk-day0rb5p.js +0 -2
- package/bundle/chunk-dp7cww4v.js +0 -2
- package/bundle/chunk-dy31mchw.js +0 -3
- package/bundle/chunk-e5rda9mx.js +0 -2
- package/bundle/chunk-e999xtfj.js +0 -2
- package/bundle/chunk-ehfxypks.js +0 -7610
- package/bundle/chunk-eyr0vf92.js +0 -2
- package/bundle/chunk-gbmmbhy4.js +0 -2
- package/bundle/chunk-gp877cq5.js +0 -2
- package/bundle/chunk-h4f582d6.js +0 -2
- package/bundle/chunk-h57c6ne3.js +0 -2
- package/bundle/chunk-hk8vvc10.js +0 -2
- package/bundle/chunk-hnrqhcgq.js +0 -2
- package/bundle/chunk-hwavzxdm.js +0 -2
- package/bundle/chunk-hwnc2sa5.js +0 -2
- package/bundle/chunk-hy86wfad.js +0 -2
- package/bundle/chunk-j17421hz.js +0 -2
- package/bundle/chunk-j2gvpa15.js +0 -2
- package/bundle/chunk-j7n8khk7.js +0 -2
- package/bundle/chunk-jkh98wby.js +0 -2
- package/bundle/chunk-k5a652s4.js +0 -2
- package/bundle/chunk-k6w32q2p.js +0 -2
- package/bundle/chunk-kghwk0yh.js +0 -2
- package/bundle/chunk-kh8de8re.js +0 -2
- package/bundle/chunk-mce8aa9y.js +0 -2
- package/bundle/chunk-me1ja46g.js +0 -2
- package/bundle/chunk-mgadsp7r.js +0 -2
- package/bundle/chunk-n0k0pp4k.js +0 -2
- package/bundle/chunk-n393nnh5.js +0 -2
- package/bundle/chunk-n5vyed7w.js +0 -2
- package/bundle/chunk-pasm65wq.js +0 -2
- package/bundle/chunk-phpmxjf8.js +0 -2
- package/bundle/chunk-q2q3dmg3.js +0 -2
- package/bundle/chunk-qvzvxsjw.js +0 -2
- package/bundle/chunk-racrb1b3.js +0 -2
- package/bundle/chunk-s0c0t6qr.js +0 -5
- package/bundle/chunk-sghy9s7m.js +0 -2
- package/bundle/chunk-skpkjnyy.js +0 -2
- package/bundle/chunk-skxhg212.js +0 -2
- package/bundle/chunk-snt4kwab.js +0 -2
- package/bundle/chunk-sq47t8f1.js +0 -2
- package/bundle/chunk-sqhgnvvs.js +0 -2
- package/bundle/chunk-t114r59h.js +0 -2
- package/bundle/chunk-t1f56k0j.js +0 -2
- package/bundle/chunk-t69jx6fz.js +0 -2
- package/bundle/chunk-tsb3jsx4.js +0 -2
- package/bundle/chunk-ttpbpzbh.js +0 -2
- package/bundle/chunk-v667egp5.js +0 -2
- package/bundle/chunk-vrv67tt0.js +0 -2
- package/bundle/chunk-wcx7hc2p.js +0 -635
- package/bundle/chunk-wv8qx8sa.js +0 -2
- package/bundle/chunk-xxrtr6sd.js +0 -2
- package/bundle/chunk-y2ptjam9.js +0 -3
- package/bundle/chunk-y6h35v4a.js +0 -2
- package/bundle/chunk-y72p79v2.js +0 -2
- package/bundle/chunk-y8eggnrr.js +0 -2
- package/bundle/chunk-y9q0f9qz.js +0 -2
- package/bundle/chunk-yck5h49c.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Aq as yZ,Bq as N0,Cq as ZQ,Dq as ZJ,Eq as p0,Fq as n0,Gq as i0,Iq as s0,Jq as o0}from"./chunk-1sfcxdbw.js";import{Kq as AQ,Lq as E}from"./chunk-bgng3rdj.js";import{CF as u,DG as JJ,FB as O0,FC as _0,HF as g,LB as D0,LG as QJ,OE as NJ,OF as y0,PE as PJ,RE as d0,SE as l0,TE as m0,UE as XQ,VE as u0,ZC as E0,Zz as g0,aF as A0,gG as t,iG as e,nO as C0,oA as h0,rE as k0,sC as WQ,sE as I0,sF as x0,uC as $Q,uF as c0,uG as S0,wO as L0,xO as P0,yF as r}from"./chunk-ks1cs80p.js";import{KO as M}from"./chunk-qhnpq5gb.js";import{LO as d,MO as K,PO as TJ}from"./chunk-f83wv08n.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{jq as yZ,kq as N0,lq as ZQ,mq as ZJ,nq as p0,oq as n0,pq as i0,rq as s0,sq as o0}from"./chunk-wkg3c643.js";import{tq as AQ,uq as E}from"./chunk-fhqfqd5v.js";import{$B as WQ,$D as I0,$E as x0,AE as m0,BE as XQ,CE as u0,GC as E0,Gz as g0,JE as A0,PF as t,RF as e,WN as C0,Xz as h0,_D as k0,bC as $Q,bF as c0,bG as S0,dO as L0,eO as P0,fF as r,jF as u,kG as JJ,mB as O0,mC as _0,oF as g,sB as D0,sG as QJ,vE as NJ,vF as y0,wE as PJ,yE as d0,zE as l0}from"./chunk-qnvsqnz5.js";import{rO as M}from"./chunk-j8fcfhr2.js";import{sO as d,tO as K,wO as TJ}from"./chunk-r9w0thdk.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{o as L}from"./chunk-47z3x3dp.js";import"./chunk-78pt314g.js";import{A as K}from"./chunk-nftgx6bz.js";import{B as N}from"./chunk-gsez13bg.js";import{C as F,E as J}from"./chunk-c8k32724.js";import"./chunk-qktzz0sy.js";import"./chunk-tdyvps17.js";import"./chunk-gbkz04ke.js";import"./chunk-0nbteyb0.js";import{_ as M}from"./chunk-e8p92vz4.js";import"./chunk-55ykn8nz.js";import"./chunk-avefgbjg.js";import"./chunk-wyj8cpx5.js";import"./chunk-8wwdrwf2.js";import"./chunk-zc0cdvcv.js";import{ae as B}from"./chunk-5w76kdjr.js";import"./chunk-yhj01dz9.js";import"./chunk-d6jhs818.js";import"./chunk-0vxnkstz.js";import{dg as z}from"./chunk-eg3syjtv.js";import"./chunk-8mm92zn2.js";import"./chunk-msdypt5f.js";import"./chunk-azpnrnv9.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-qznr1emx.js";import"./chunk-6tstcwxp.js";import"./chunk-qqrc1h5b.js";import"./chunk-fsahzvd5.js";import"./chunk-mh19kwzw.js";import"./chunk-88q0mtgp.js";import"./chunk-bvf2dcq4.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-rp9r3cvt.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-xq2kcar4.js";import"./chunk-qrxqfp59.js";import"./chunk-73r8bjjz.js";import"./chunk-vdxar0ct.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-7vmx8bg9.js";import"./chunk-tkrwcjkr.js";import"./chunk-x9ptmxt7.js";import"./chunk-0vakk88p.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{h as R}from"./chunk-
|
|
2
|
+
import{h as R}from"./chunk-h99tj1e4.js";import{ae as g}from"./chunk-5w76kdjr.js";import{dg as z}from"./chunk-eg3syjtv.js";import"./chunk-msdypt5f.js";import{Bh as F}from"./chunk-azpnrnv9.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-qznr1emx.js";import"./chunk-6tstcwxp.js";import"./chunk-qqrc1h5b.js";import"./chunk-fsahzvd5.js";import"./chunk-mh19kwzw.js";import"./chunk-88q0mtgp.js";import"./chunk-bvf2dcq4.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import{Ao as E,Go as C,yo as n,zo as m}from"./chunk-rp9r3cvt.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-xq2kcar4.js";import"./chunk-qrxqfp59.js";import"./chunk-73r8bjjz.js";import"./chunk-vdxar0ct.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import{cs as h}from"./chunk-x9ptmxt7.js";import"./chunk-0vakk88p.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import{ht as A,kt as b}from"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import{eH as K}from"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import{xO as B,yO as T}from"./chunk-r9w0thdk.js";import L from"fs/promises";import y from"path";function p(J){return K.promise(async()=>{try{return{ok:!0,value:await J()}}catch(O){return{ok:!1,err:O}}})}var H=["free","fast","economical","default","power","orchestrated"],o="default",N=y.join(b.Path.data,"batches.json"),i=100;function u(J){if(!Array.isArray(J))return[];let O=[];for(let V of J){if(!V||typeof V!=="object"||Array.isArray(V))continue;let Q=V,W=typeof Q.batchId==="string"?Q.batchId.trim():"";if(!W)continue;let $=Q.tier;if(typeof $!=="string"||!H.includes($))continue;O.push({batchId:W,tier:$,submittedAt:typeof Q.submittedAt==="string"?Q.submittedAt:"",requestCount:typeof Q.requestCount==="number"?Q.requestCount:void 0})}return O}async function l(){try{return u(JSON.parse(await L.readFile(N,"utf8")))}catch{return[]}}async function d(J){try{let O=[];try{const G=B(O,await A.acquire(`batch-index:${N}`),1);let M=(await l()).filter((X)=>X.batchId!==J.batchId);let S=[J,...M].slice(0,i);await L.mkdir(y.dirname(N),{recursive:!0});let P=`${N}.${process.pid}.tmp`;await L.writeFile(P,JSON.stringify(S,null,2)+`
|
|
3
3
|
`,"utf8");await L.rename(P,N).catch(async(X)=>{throw await L.rm(P,{force:!0}).catch(()=>{}),X})}catch(V){var Q=V,W=1}finally{var $=T(O,Q,W);$&&await $}}catch{}}function f(J){if(J instanceof n)return"Your QitQode sign-in has ended and couldn't be renewed automatically. Run `qitqode auth login` to sign in again.";if(J instanceof m)return J.message+h.copy().insufficientBalanceCliSuffix;if(J instanceof E)return J.message;return"Request failed: "+(J instanceof Error?J.message:String(J))}var U=(J,O=o)=>K.gen(function*(){if((yield*R())==="revoked")return;let V=yield*K.promise(async()=>{try{return{ok:!0,content:await L.readFile(y.resolve(J),"utf8")}}catch(v){let Y=v;return{ok:!1,message:`Cannot read '${J}': ${Y.message??String(Y)}`}}});if(!V.ok){yield*K.sync(()=>z.println(z.Style.TEXT_DANGER+V.message+z.Style.TEXT_NORMAL));return}let Q=[],W=V.content.split(`
|
|
4
4
|
`);for(let v=0;v<W.length;v++){let Y=W[v];if(!Y||!Y.trim())continue;let Z=v+1,j;try{j=JSON.parse(Y)}catch{yield*K.sync(()=>z.println(z.Style.TEXT_DANGER+`Error: line ${Z} is not valid JSON.`+z.Style.TEXT_NORMAL));return}if(typeof j!=="object"||j===null||Array.isArray(j)){yield*K.sync(()=>z.println(z.Style.TEXT_DANGER+`Error: line ${Z} must be a JSON object (got ${j===null?"null":Array.isArray(j)?"array":typeof j}).`+z.Style.TEXT_NORMAL));return}let x=j;if(typeof x.prompt!=="string"||!x.prompt.trim()){yield*K.sync(()=>z.println(z.Style.TEXT_DANGER+`Error: line ${Z} must have a non-empty string 'prompt' field.`+z.Style.TEXT_NORMAL));return}if(x.options!==void 0){yield*K.sync(()=>z.println(z.Style.TEXT_DANGER+`Error: line ${Z} has an 'options' field, which batch jobs cannot honour \u2014 `+"per-request settings are not part of the batch API. Remove it, or run these prompts individually with `qitqode run`."+z.Style.TEXT_NORMAL));return}Q.push(x.prompt)}if(Q.length===0){yield*K.sync(()=>z.println(z.Style.TEXT_WARNING+"No prompts found in the file."+z.Style.TEXT_NORMAL));return}yield*K.sync(()=>z.println(z.Style.TEXT_DIM+`Submitting ${Q.length} request${Q.length===1?"":"s"}\u2026`+z.Style.TEXT_NORMAL));let $=yield*p(()=>C.resolveSubmitBatch({tier:O,requests:Q}));if(!$.ok){yield*K.sync(()=>z.println(z.Style.TEXT_DANGER+f($.err)+z.Style.TEXT_NORMAL));return}let{batchId:G,status:M,createdAt:S,totalCount:P,requestCount:X,supported:w}=$.value;if(w===!1||!G){yield*K.sync(()=>{z.println(z.Style.TEXT_WARNING+`The ${O} tier does not run batch jobs, so nothing was submitted.`+z.Style.TEXT_NORMAL),z.println(z.Style.TEXT_DIM+"Batching is a capability of the provider behind a tier. Try another tier with `qitqode batch submit <file> --tier <name>`."+z.Style.TEXT_NORMAL)}),process.exitCode=1;return}let q=X??P;yield*K.promise(()=>d({batchId:G,tier:O,submittedAt:new Date().toISOString(),...q!==void 0?{requestCount:q}:{}})),process.stdout.write(G+`
|
|
5
5
|
`),yield*K.sync(()=>{if(z.println(z.Style.TEXT_SUCCESS+"Batch submitted."+z.Style.TEXT_NORMAL),z.println(" ID: "+z.Style.TEXT_HIGHLIGHT_BOLD+G+z.Style.TEXT_NORMAL),z.println(" Tier: "+O),M)z.println(" Status: "+M);if(q!==void 0)z.println(" Requests: "+q);if(S)z.println(" Created: "+z.Style.TEXT_DIM+new Date(S).toLocaleString()+z.Style.TEXT_NORMAL);z.println(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{te as Ij}from"./chunk-6pcmv8vs.js";import{xe as hj}from"./chunk-kzvvvj79.js";import{ye as Oj}from"./chunk-9jrxrjzt.js";import{Ae as vj,Be as $j,ze as _j}from"./chunk-y4e7e42x.js";import{Ce as mj}from"./chunk-yd2emszh.js";import{uf as Rj,vf as Pj,wf as Tj,xf as Aj,yf as Dj}from"./chunk-3tmq81kq.js";import"./chunk-f83wv08n.js";var Z=$j(),T=vj(),X=Pj(),Y=Tj(),w=Aj(),A=mj(),G=_j(),a=Rj(),S=Ij(),U=Dj(),r=Oj(),uj=hj(),lj=async(j,B,K)=>{return{operation:X.getSmithyContext(B).operation,region:await X.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function dj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:j.region},propertiesExtractor:(B,K)=>({signingProperties:{config:B,context:K}})}}function Cj(j){return{schemeId:"smithy.api#noAuth"}}var Ej=(j)=>{let B=[];switch(j.operation){case"CreateToken":{B.push(Cj());break}default:B.push(dj(j))}return B},xj=(j)=>{let B=S.resolveAwsSdkSigV4Config(j);return Object.assign(B,{authSchemePreference:X.normalizeProvider(j.authSchemePreference??[])})},aj=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},Sj={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},fj="3.997.14",gj={version:fj},k="ref",q=-1,R=!0,p="isSet",o="PartitionResult",P="booleanEquals",E="getAttr",c={[k]:"Endpoint"},x={[k]:o},z={},t=[{[k]:"Region"}],i={conditions:[[p,[c]],[p,t],["aws.partition",t,o],[P,[{[k]:"UseFIPS"},R]],[P,[{[k]:"UseDualStack"},R]],[P,[{fn:E,argv:[x,"supportsDualStack"]},R]],[P,[{fn:E,argv:[x,"supportsFIPS"]},R]],["stringEquals",[{fn:E,argv:[x,"name"]},"aws-us-gov"]]],results:[[q],[q,"Invalid Configuration: FIPS and custom endpoint are not supported"],[q,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[c,z],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",z],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",z],[q,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",z],[q,"Invalid Configuration: Missing Region"]]},sj=2,W=1e8,rj=new Int32Array([-1,1,-1,0,13,3,1,4,W+12,2,5,W+12,3,8,6,4,7,W+11,5,W+9,W+10,4,11,9,6,10,W+8,7,W+6,W+7,5,12,W+5,6,W+4,W+5,3,W+1,14,4,W+2,W+3]),pj=w.BinaryDecisionDiagram.from(rj,sj,i.conditions,i.results),cj=new w.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),tj=(j,B={})=>{return cj.get(j,()=>w.decideEndpoint(pj,{endpointParams:j,logger:B.logger}))};w.customEndpointFunctions.aws=Z.awsEndpointFunctions;class Q extends X.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,Q.prototype)}}class D extends Q{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(j){super({name:"AccessDeniedException",$fault:"client",...j});Object.setPrototypeOf(this,D.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class m extends Q{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(j){super({name:"AuthorizationPendingException",$fault:"client",...j});Object.setPrototypeOf(this,m.prototype),this.error=j.error,this.error_description=j.error_description}}class _ extends Q{name="ExpiredTokenException";$fault="client";error;error_description;constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,_.prototype),this.error=j.error,this.error_description=j.error_description}}class v extends Q{name="InternalServerException";$fault="server";error;error_description;constructor(j){super({name:"InternalServerException",$fault:"server",...j});Object.setPrototypeOf(this,v.prototype),this.error=j.error,this.error_description=j.error_description}}class $ extends Q{name="InvalidClientException";$fault="client";error;error_description;constructor(j){super({name:"InvalidClientException",$fault:"client",...j});Object.setPrototypeOf(this,$.prototype),this.error=j.error,this.error_description=j.error_description}}class I extends Q{name="InvalidGrantException";$fault="client";error;error_description;constructor(j){super({name:"InvalidGrantException",$fault:"client",...j});Object.setPrototypeOf(this,I.prototype),this.error=j.error,this.error_description=j.error_description}}class O extends Q{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(j){super({name:"InvalidRequestException",$fault:"client",...j});Object.setPrototypeOf(this,O.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class h extends Q{name="InvalidScopeException";$fault="client";error;error_description;constructor(j){super({name:"InvalidScopeException",$fault:"client",...j});Object.setPrototypeOf(this,h.prototype),this.error=j.error,this.error_description=j.error_description}}class u extends Q{name="SlowDownException";$fault="client";error;error_description;constructor(j){super({name:"SlowDownException",$fault:"client",...j});Object.setPrototypeOf(this,u.prototype),this.error=j.error,this.error_description=j.error_description}}class l extends Q{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(j){super({name:"UnauthorizedClientException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype),this.error=j.error,this.error_description=j.error_description}}class d extends Q{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(j){super({name:"UnsupportedGrantTypeException",$fault:"client",...j});Object.setPrototypeOf(this,d.prototype),this.error=j.error,this.error_description=j.error_description}}var ij="AccessDeniedException",oj="AuthorizationPendingException",ej="AccessToken",nj="ClientSecret",jB="CreateToken",BB="CreateTokenRequest",FB="CreateTokenResponse",JB="CodeVerifier",KB="ExpiredTokenException",LB="InvalidClientException",QB="InvalidGrantException",WB="InvalidRequestException",XB="InternalServerException",YB="InvalidScopeException",ZB="IdToken",NB="RefreshToken",MB="SlowDownException",bB="UnauthorizedClientException",VB="UnsupportedGrantTypeException",HB="accessToken",H="client",qB="clientId",zB="clientSecret",UB="codeVerifier",wB="code",GB="deviceCode",F="error",kB="expiresIn",b="error_description",yB="grantType",RB="http",V="httpError",PB="idToken",e="reason",n="refreshToken",TB="redirectUri",jj="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",AB="scope",DB="server",mB="tokenType",J="com.amazonaws.ssooidc",Bj=a.TypeRegistry.for(jj),Fj=[-3,jj,"SSOOIDCServiceException",0,[],[]];Bj.registerError(Fj,Q);var N=a.TypeRegistry.for(J),Jj=[-3,J,ij,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Jj,D);var Kj=[-3,J,oj,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Kj,m);var Lj=[-3,J,KB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Lj,_);var Qj=[-3,J,XB,{[F]:DB,[V]:500},[F,b],[0,0]];N.registerError(Qj,v);var Wj=[-3,J,LB,{[F]:H,[V]:401},[F,b],[0,0]];N.registerError(Wj,$);var Xj=[-3,J,QB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Xj,I);var Yj=[-3,J,WB,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Yj,O);var Zj=[-3,J,YB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Zj,h);var Nj=[-3,J,MB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Nj,u);var Mj=[-3,J,bB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Mj,l);var bj=[-3,J,VB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(bj,d);var Vj=[Bj,N],_B=[0,J,ej,8,0],vB=[0,J,nj,8,0],$B=[0,J,JB,8,0],IB=[0,J,ZB,8,0],Hj=[0,J,NB,8,0],qj=[3,J,BB,0,[qB,zB,yB,GB,wB,n,AB,TB,UB],[0,[()=>vB,0],0,0,0,[()=>Hj,0],64,0,[()=>$B,0]],3],zj=[3,J,FB,0,[HB,mB,kB,n,PB],[[()=>_B,0],0,1,[()=>Hj,0],[()=>IB,0]]],Uj=[9,J,jB,{[RB]:["POST","/token",200]},()=>qj,()=>zj],OB=(j)=>{return{apiVersion:"2019-06-10",base64Decoder:j?.base64Decoder??U.fromBase64,base64Encoder:j?.base64Encoder??U.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??tj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??Ej,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(B)=>B.getIdentityProvider("aws.auth#sigv4"),signer:new S.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(B)=>B.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new T.NoAuthSigner}],logger:j?.logger??new X.NoOpLogger,protocol:j?.protocol??uj.AwsRestJsonProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Vj,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:j?.serviceId??"SSO OIDC",urlParser:j?.urlParser??A.parseUrl,utf8Decoder:j?.utf8Decoder??U.fromUtf8,utf8Encoder:j?.utf8Encoder??U.toUtf8}},hB=(j)=>{X.emitWarningIfUnsupportedVersion(process.version);let B=Y.resolveDefaultsModeConfig(j),K=()=>B().then(X.loadConfigsForDefaultMode),M=OB(j);Z.emitWarningIfUnsupportedVersion(process.version);let L={profile:j?.profile,logger:M.logger};return{...M,...j,runtime:"node",defaultsMode:B,authSchemePreference:j?.authSchemePreference??Y.loadConfig(S.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,L),bodyLengthChecker:j?.bodyLengthChecker??U.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Z.createDefaultUserAgentProvider({serviceId:M.serviceId,clientVersion:gj.version}),maxAttempts:j?.maxAttempts??Y.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??Y.loadConfig(Y.NODE_REGION_CONFIG_OPTIONS,{...Y.NODE_REGION_CONFIG_FILE_OPTIONS,...L}),requestHandler:r.NodeHttpHandler.create(j?.requestHandler??K),retryMode:j?.retryMode??Y.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||G.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??U.Hash.bind(null,"sha256"),streamCollector:j?.streamCollector??r.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??Y.loadConfig(Y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,L),useFipsEndpoint:j?.useFipsEndpoint??Y.loadConfig(Y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,L),userAgentAppId:j?.userAgentAppId??Y.loadConfig(Z.NODE_APP_ID_CONFIG_OPTIONS,L)}},uB=(j)=>{let{httpAuthSchemes:B,httpAuthSchemeProvider:K,credentials:M}=j;return{setHttpAuthScheme(L){let y=B.findIndex((C)=>C.schemeId===L.schemeId);if(y===-1)B.push(L);else B.splice(y,1,L)},httpAuthSchemes(){return B},setHttpAuthSchemeProvider(L){K=L},httpAuthSchemeProvider(){return K},setCredentials(L){M=L},credentials(){return M}}},lB=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},dB=(j,B)=>{let K=Object.assign(Z.getAwsRegionExtensionConfiguration(j),X.getDefaultExtensionConfiguration(j),A.getHttpHandlerExtensionConfiguration(j),uB(j));return B.forEach((M)=>M.configure(K)),Object.assign(j,Z.resolveAwsRegionExtensionConfiguration(K),X.resolveDefaultRuntimeConfig(K),A.resolveHttpHandlerRuntimeConfig(K),lB(K))};class f extends X.Client{config;constructor(...[j]){let B=hB(j||{});super(B);this.initConfig=B;let K=aj(B),M=Z.resolveUserAgentConfig(K),L=G.resolveRetryConfig(M),y=Y.resolveRegionConfig(L),C=Z.resolveHostHeaderConfig(y),wj=w.resolveEndpointConfig(C),Gj=xj(wj),kj=dB(Gj,j?.extensions||[]);this.config=kj,this.middlewareStack.use(a.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Z.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(A.getContentLengthPlugin(this.config)),this.middlewareStack.use(Z.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Z.getLoggerPlugin(this.config)),this.middlewareStack.use(Z.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(T.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:lj,identityProviderConfigProvider:async(yj)=>new T.DefaultIdentityProviderConfig({"aws.auth#sigv4":yj.credentials})})),this.middlewareStack.use(T.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends X.Command.classBuilder().ep(Sj).m(function(j,B,K,M){return[w.getEndpointPlugin(K,j.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(Uj).build(){}var CB={CreateTokenCommand:g};class s extends f{}X.createAggregatedClient(CB,s);var EB={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},xB={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var{Command:aB,Client:SB}=X,fB=D,gB=Jj,sB=EB,rB=m,pB=Kj,cB=Uj,tB=g,iB=qj,oB=zj,eB=_,nB=Lj,jF=v,BF=Qj,FF=$,JF=Wj,KF=I,LF=Xj,QF=O,WF=Yj,XF=xB,YF=h,ZF=Zj,NF=s,MF=f,bF=Q,VF=Fj,HF=u,qF=Nj,zF=l,UF=Mj,wF=d,GF=bj,kF=Vj;export{kF as errorTypeRegistries,SB as __Client,GF as UnsupportedGrantTypeException$,wF as UnsupportedGrantTypeException,UF as UnauthorizedClientException$,zF as UnauthorizedClientException,qF as SlowDownException$,HF as SlowDownException,VF as SSOOIDCServiceException$,bF as SSOOIDCServiceException,MF as SSOOIDCClient,NF as SSOOIDC,ZF as InvalidScopeException$,YF as InvalidScopeException,XF as InvalidRequestExceptionReason,WF as InvalidRequestException$,QF as InvalidRequestException,LF as InvalidGrantException$,KF as InvalidGrantException,JF as InvalidClientException$,FF as InvalidClientException,BF as InternalServerException$,jF as InternalServerException,nB as ExpiredTokenException$,eB as ExpiredTokenException,oB as CreateTokenResponse$,iB as CreateTokenRequest$,tB as CreateTokenCommand,cB as CreateToken$,pB as AuthorizationPendingException$,rB as AuthorizationPendingException,sB as AccessDeniedExceptionReason,gB as AccessDeniedException$,fB as AccessDeniedException,aB as $Command};export default {get errorTypeRegistries(){return kF},get __Client(){return SB},get UnsupportedGrantTypeException$(){return GF},get UnsupportedGrantTypeException(){return wF},get UnauthorizedClientException$(){return UF},get UnauthorizedClientException(){return zF},get SlowDownException$(){return qF},get SlowDownException(){return HF},get SSOOIDCServiceException$(){return VF},get SSOOIDCServiceException(){return bF},get SSOOIDCClient(){return MF},get SSOOIDC(){return NF},get InvalidScopeException$(){return ZF},get InvalidScopeException(){return YF},get InvalidRequestExceptionReason(){return XF},get InvalidRequestException$(){return WF},get InvalidRequestException(){return QF},get InvalidGrantException$(){return LF},get InvalidGrantException(){return KF},get InvalidClientException$(){return JF},get InvalidClientException(){return FF},get InternalServerException$(){return BF},get InternalServerException(){return jF},get ExpiredTokenException$(){return nB},get ExpiredTokenException(){return eB},get CreateTokenResponse$(){return oB},get CreateTokenRequest$(){return iB},get CreateTokenCommand(){return tB},get CreateToken$(){return cB},get AuthorizationPendingException$(){return pB},get AuthorizationPendingException(){return rB},get AccessDeniedExceptionReason(){return sB},get AccessDeniedException$(){return gB},get AccessDeniedException(){return fB},get $Command(){return aB}};
|
|
2
|
+
import{Ee as Ij}from"./chunk-dnsh1v42.js";import{Ie as hj}from"./chunk-gszvgz76.js";import{Je as Oj}from"./chunk-68v3b6ns.js";import{Ke as _j,Le as vj,Me as $j}from"./chunk-bne5w117.js";import{Ne as mj}from"./chunk-j0bwa5dk.js";import{Ff as Rj,Gf as Pj,Hf as Tj,If as Aj,Jf as Dj}from"./chunk-2drzgtv3.js";import"./chunk-r9w0thdk.js";var Z=$j(),T=vj(),X=Pj(),Y=Tj(),w=Aj(),A=mj(),G=_j(),a=Rj(),S=Ij(),U=Dj(),r=Oj(),uj=hj(),lj=async(j,B,K)=>{return{operation:X.getSmithyContext(B).operation,region:await X.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function dj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:j.region},propertiesExtractor:(B,K)=>({signingProperties:{config:B,context:K}})}}function Cj(j){return{schemeId:"smithy.api#noAuth"}}var Ej=(j)=>{let B=[];switch(j.operation){case"CreateToken":{B.push(Cj());break}default:B.push(dj(j))}return B},xj=(j)=>{let B=S.resolveAwsSdkSigV4Config(j);return Object.assign(B,{authSchemePreference:X.normalizeProvider(j.authSchemePreference??[])})},aj=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},Sj={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},fj="3.997.14",gj={version:fj},k="ref",q=-1,R=!0,p="isSet",o="PartitionResult",P="booleanEquals",E="getAttr",c={[k]:"Endpoint"},x={[k]:o},z={},t=[{[k]:"Region"}],i={conditions:[[p,[c]],[p,t],["aws.partition",t,o],[P,[{[k]:"UseFIPS"},R]],[P,[{[k]:"UseDualStack"},R]],[P,[{fn:E,argv:[x,"supportsDualStack"]},R]],[P,[{fn:E,argv:[x,"supportsFIPS"]},R]],["stringEquals",[{fn:E,argv:[x,"name"]},"aws-us-gov"]]],results:[[q],[q,"Invalid Configuration: FIPS and custom endpoint are not supported"],[q,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[c,z],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",z],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",z],[q,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",z],[q,"Invalid Configuration: Missing Region"]]},sj=2,W=1e8,rj=new Int32Array([-1,1,-1,0,13,3,1,4,W+12,2,5,W+12,3,8,6,4,7,W+11,5,W+9,W+10,4,11,9,6,10,W+8,7,W+6,W+7,5,12,W+5,6,W+4,W+5,3,W+1,14,4,W+2,W+3]),pj=w.BinaryDecisionDiagram.from(rj,sj,i.conditions,i.results),cj=new w.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),tj=(j,B={})=>{return cj.get(j,()=>w.decideEndpoint(pj,{endpointParams:j,logger:B.logger}))};w.customEndpointFunctions.aws=Z.awsEndpointFunctions;class Q extends X.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,Q.prototype)}}class D extends Q{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(j){super({name:"AccessDeniedException",$fault:"client",...j});Object.setPrototypeOf(this,D.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class m extends Q{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(j){super({name:"AuthorizationPendingException",$fault:"client",...j});Object.setPrototypeOf(this,m.prototype),this.error=j.error,this.error_description=j.error_description}}class _ extends Q{name="ExpiredTokenException";$fault="client";error;error_description;constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,_.prototype),this.error=j.error,this.error_description=j.error_description}}class v extends Q{name="InternalServerException";$fault="server";error;error_description;constructor(j){super({name:"InternalServerException",$fault:"server",...j});Object.setPrototypeOf(this,v.prototype),this.error=j.error,this.error_description=j.error_description}}class $ extends Q{name="InvalidClientException";$fault="client";error;error_description;constructor(j){super({name:"InvalidClientException",$fault:"client",...j});Object.setPrototypeOf(this,$.prototype),this.error=j.error,this.error_description=j.error_description}}class I extends Q{name="InvalidGrantException";$fault="client";error;error_description;constructor(j){super({name:"InvalidGrantException",$fault:"client",...j});Object.setPrototypeOf(this,I.prototype),this.error=j.error,this.error_description=j.error_description}}class O extends Q{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(j){super({name:"InvalidRequestException",$fault:"client",...j});Object.setPrototypeOf(this,O.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class h extends Q{name="InvalidScopeException";$fault="client";error;error_description;constructor(j){super({name:"InvalidScopeException",$fault:"client",...j});Object.setPrototypeOf(this,h.prototype),this.error=j.error,this.error_description=j.error_description}}class u extends Q{name="SlowDownException";$fault="client";error;error_description;constructor(j){super({name:"SlowDownException",$fault:"client",...j});Object.setPrototypeOf(this,u.prototype),this.error=j.error,this.error_description=j.error_description}}class l extends Q{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(j){super({name:"UnauthorizedClientException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype),this.error=j.error,this.error_description=j.error_description}}class d extends Q{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(j){super({name:"UnsupportedGrantTypeException",$fault:"client",...j});Object.setPrototypeOf(this,d.prototype),this.error=j.error,this.error_description=j.error_description}}var ij="AccessDeniedException",oj="AuthorizationPendingException",ej="AccessToken",nj="ClientSecret",jB="CreateToken",BB="CreateTokenRequest",FB="CreateTokenResponse",JB="CodeVerifier",KB="ExpiredTokenException",LB="InvalidClientException",QB="InvalidGrantException",WB="InvalidRequestException",XB="InternalServerException",YB="InvalidScopeException",ZB="IdToken",NB="RefreshToken",MB="SlowDownException",bB="UnauthorizedClientException",VB="UnsupportedGrantTypeException",HB="accessToken",H="client",qB="clientId",zB="clientSecret",UB="codeVerifier",wB="code",GB="deviceCode",F="error",kB="expiresIn",b="error_description",yB="grantType",RB="http",V="httpError",PB="idToken",e="reason",n="refreshToken",TB="redirectUri",jj="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",AB="scope",DB="server",mB="tokenType",J="com.amazonaws.ssooidc",Bj=a.TypeRegistry.for(jj),Fj=[-3,jj,"SSOOIDCServiceException",0,[],[]];Bj.registerError(Fj,Q);var N=a.TypeRegistry.for(J),Jj=[-3,J,ij,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Jj,D);var Kj=[-3,J,oj,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Kj,m);var Lj=[-3,J,KB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Lj,_);var Qj=[-3,J,XB,{[F]:DB,[V]:500},[F,b],[0,0]];N.registerError(Qj,v);var Wj=[-3,J,LB,{[F]:H,[V]:401},[F,b],[0,0]];N.registerError(Wj,$);var Xj=[-3,J,QB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Xj,I);var Yj=[-3,J,WB,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Yj,O);var Zj=[-3,J,YB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Zj,h);var Nj=[-3,J,MB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Nj,u);var Mj=[-3,J,bB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Mj,l);var bj=[-3,J,VB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(bj,d);var Vj=[Bj,N],_B=[0,J,ej,8,0],vB=[0,J,nj,8,0],$B=[0,J,JB,8,0],IB=[0,J,ZB,8,0],Hj=[0,J,NB,8,0],qj=[3,J,BB,0,[qB,zB,yB,GB,wB,n,AB,TB,UB],[0,[()=>vB,0],0,0,0,[()=>Hj,0],64,0,[()=>$B,0]],3],zj=[3,J,FB,0,[HB,mB,kB,n,PB],[[()=>_B,0],0,1,[()=>Hj,0],[()=>IB,0]]],Uj=[9,J,jB,{[RB]:["POST","/token",200]},()=>qj,()=>zj],OB=(j)=>{return{apiVersion:"2019-06-10",base64Decoder:j?.base64Decoder??U.fromBase64,base64Encoder:j?.base64Encoder??U.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??tj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??Ej,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(B)=>B.getIdentityProvider("aws.auth#sigv4"),signer:new S.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(B)=>B.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new T.NoAuthSigner}],logger:j?.logger??new X.NoOpLogger,protocol:j?.protocol??uj.AwsRestJsonProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Vj,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:j?.serviceId??"SSO OIDC",urlParser:j?.urlParser??A.parseUrl,utf8Decoder:j?.utf8Decoder??U.fromUtf8,utf8Encoder:j?.utf8Encoder??U.toUtf8}},hB=(j)=>{X.emitWarningIfUnsupportedVersion(process.version);let B=Y.resolveDefaultsModeConfig(j),K=()=>B().then(X.loadConfigsForDefaultMode),M=OB(j);Z.emitWarningIfUnsupportedVersion(process.version);let L={profile:j?.profile,logger:M.logger};return{...M,...j,runtime:"node",defaultsMode:B,authSchemePreference:j?.authSchemePreference??Y.loadConfig(S.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,L),bodyLengthChecker:j?.bodyLengthChecker??U.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Z.createDefaultUserAgentProvider({serviceId:M.serviceId,clientVersion:gj.version}),maxAttempts:j?.maxAttempts??Y.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??Y.loadConfig(Y.NODE_REGION_CONFIG_OPTIONS,{...Y.NODE_REGION_CONFIG_FILE_OPTIONS,...L}),requestHandler:r.NodeHttpHandler.create(j?.requestHandler??K),retryMode:j?.retryMode??Y.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||G.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??U.Hash.bind(null,"sha256"),streamCollector:j?.streamCollector??r.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??Y.loadConfig(Y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,L),useFipsEndpoint:j?.useFipsEndpoint??Y.loadConfig(Y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,L),userAgentAppId:j?.userAgentAppId??Y.loadConfig(Z.NODE_APP_ID_CONFIG_OPTIONS,L)}},uB=(j)=>{let{httpAuthSchemes:B,httpAuthSchemeProvider:K,credentials:M}=j;return{setHttpAuthScheme(L){let y=B.findIndex((C)=>C.schemeId===L.schemeId);if(y===-1)B.push(L);else B.splice(y,1,L)},httpAuthSchemes(){return B},setHttpAuthSchemeProvider(L){K=L},httpAuthSchemeProvider(){return K},setCredentials(L){M=L},credentials(){return M}}},lB=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},dB=(j,B)=>{let K=Object.assign(Z.getAwsRegionExtensionConfiguration(j),X.getDefaultExtensionConfiguration(j),A.getHttpHandlerExtensionConfiguration(j),uB(j));return B.forEach((M)=>M.configure(K)),Object.assign(j,Z.resolveAwsRegionExtensionConfiguration(K),X.resolveDefaultRuntimeConfig(K),A.resolveHttpHandlerRuntimeConfig(K),lB(K))};class f extends X.Client{config;constructor(...[j]){let B=hB(j||{});super(B);this.initConfig=B;let K=aj(B),M=Z.resolveUserAgentConfig(K),L=G.resolveRetryConfig(M),y=Y.resolveRegionConfig(L),C=Z.resolveHostHeaderConfig(y),wj=w.resolveEndpointConfig(C),Gj=xj(wj),kj=dB(Gj,j?.extensions||[]);this.config=kj,this.middlewareStack.use(a.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Z.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(A.getContentLengthPlugin(this.config)),this.middlewareStack.use(Z.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Z.getLoggerPlugin(this.config)),this.middlewareStack.use(Z.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(T.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:lj,identityProviderConfigProvider:async(yj)=>new T.DefaultIdentityProviderConfig({"aws.auth#sigv4":yj.credentials})})),this.middlewareStack.use(T.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends X.Command.classBuilder().ep(Sj).m(function(j,B,K,M){return[w.getEndpointPlugin(K,j.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(Uj).build(){}var CB={CreateTokenCommand:g};class s extends f{}X.createAggregatedClient(CB,s);var EB={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},xB={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var{Command:aB,Client:SB}=X,fB=D,gB=Jj,sB=EB,rB=m,pB=Kj,cB=Uj,tB=g,iB=qj,oB=zj,eB=_,nB=Lj,jF=v,BF=Qj,FF=$,JF=Wj,KF=I,LF=Xj,QF=O,WF=Yj,XF=xB,YF=h,ZF=Zj,NF=s,MF=f,bF=Q,VF=Fj,HF=u,qF=Nj,zF=l,UF=Mj,wF=d,GF=bj,kF=Vj;export{kF as errorTypeRegistries,SB as __Client,GF as UnsupportedGrantTypeException$,wF as UnsupportedGrantTypeException,UF as UnauthorizedClientException$,zF as UnauthorizedClientException,qF as SlowDownException$,HF as SlowDownException,VF as SSOOIDCServiceException$,bF as SSOOIDCServiceException,MF as SSOOIDCClient,NF as SSOOIDC,ZF as InvalidScopeException$,YF as InvalidScopeException,XF as InvalidRequestExceptionReason,WF as InvalidRequestException$,QF as InvalidRequestException,LF as InvalidGrantException$,KF as InvalidGrantException,JF as InvalidClientException$,FF as InvalidClientException,BF as InternalServerException$,jF as InternalServerException,nB as ExpiredTokenException$,eB as ExpiredTokenException,oB as CreateTokenResponse$,iB as CreateTokenRequest$,tB as CreateTokenCommand,cB as CreateToken$,pB as AuthorizationPendingException$,rB as AuthorizationPendingException,sB as AccessDeniedExceptionReason,gB as AccessDeniedException$,fB as AccessDeniedException,aB as $Command};export default {get errorTypeRegistries(){return kF},get __Client(){return SB},get UnsupportedGrantTypeException$(){return GF},get UnsupportedGrantTypeException(){return wF},get UnauthorizedClientException$(){return UF},get UnauthorizedClientException(){return zF},get SlowDownException$(){return qF},get SlowDownException(){return HF},get SSOOIDCServiceException$(){return VF},get SSOOIDCServiceException(){return bF},get SSOOIDCClient(){return MF},get SSOOIDC(){return NF},get InvalidScopeException$(){return ZF},get InvalidScopeException(){return YF},get InvalidRequestExceptionReason(){return XF},get InvalidRequestException$(){return WF},get InvalidRequestException(){return QF},get InvalidGrantException$(){return LF},get InvalidGrantException(){return KF},get InvalidClientException$(){return JF},get InvalidClientException(){return FF},get InternalServerException$(){return BF},get InternalServerException(){return jF},get ExpiredTokenException$(){return nB},get ExpiredTokenException(){return eB},get CreateTokenResponse$(){return oB},get CreateTokenRequest$(){return iB},get CreateTokenCommand(){return tB},get CreateToken$(){return cB},get AuthorizationPendingException$(){return pB},get AuthorizationPendingException(){return rB},get AccessDeniedExceptionReason(){return sB},get AccessDeniedException$(){return gB},get AccessDeniedException(){return fB},get $Command(){return aB}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-8wwdrwf2.js";import"./chunk-r9w0thdk.js";var e={"ui.sessionReview.title":"\u4F1A\u8BDD\u53D8\u66F4","ui.sessionReview.title.lastTurn":"\u4E0A\u4E00\u8F6E\u53D8\u66F4","ui.sessionReview.diffStyle.unified":"\u7EDF\u4E00","ui.sessionReview.diffStyle.split":"\u62C6\u5206","ui.sessionReview.openFile":"\u6253\u5F00\u6587\u4EF6","ui.sessionReview.selection.line":"\u7B2C {{line}} \u884C","ui.sessionReview.selection.lines":"\u7B2C {{start}}-{{end}} \u884C","ui.sessionReview.expandAll":"\u5168\u90E8\u5C55\u5F00","ui.sessionReview.collapseAll":"\u5168\u90E8\u6536\u8D77","ui.sessionReview.change.added":"\u5DF2\u6DFB\u52A0","ui.sessionReview.change.removed":"\u5DF2\u79FB\u9664","ui.sessionReview.change.modified":"\u5DF2\u4FEE\u6539","ui.sessionReview.image.loading":"\u52A0\u8F7D\u4E2D...","ui.sessionReview.image.placeholder":"\u56FE\u7247","ui.sessionReview.largeDiff.title":"\u5DEE\u5F02\u8FC7\u5927\uFF0C\u65E0\u6CD5\u6E32\u67D3","ui.sessionReview.largeDiff.meta":"\u9650\u5236\uFF1A{{limit}} \u884C\u53D8\u66F4\u3002\u5F53\u524D\uFF1A{{current}} \u884C\u53D8\u66F4\u3002","ui.sessionReview.largeDiff.renderAnyway":"\u4ECD\u7136\u6E32\u67D3","ui.fileMedia.kind.image":"\u56FE\u7247","ui.fileMedia.kind.audio":"\u97F3\u9891","ui.fileMedia.state.removed":"{{kind}}\u5DF2\u79FB\u9664","ui.fileMedia.state.loading":"\u6B63\u5728\u52A0\u8F7D{{kind}}...","ui.fileMedia.state.error":"\u52A0\u8F7D{{kind}}\u5931\u8D25","ui.fileMedia.state.unavailable":"{{kind}}\u4E0D\u53EF\u9884\u89C8","ui.fileMedia.binary.title":"\u4E8C\u8FDB\u5236\u6587\u4EF6","ui.fileMedia.binary.description.path":"\u65E0\u6CD5\u663E\u793A {{path}}\uFF0C\u56E0\u4E3A\u5B83\u662F\u4E8C\u8FDB\u5236\u6587\u4EF6\u3002","ui.fileMedia.binary.description.default":"\u65E0\u6CD5\u663E\u793A\u6B64\u6587\u4EF6\uFF0C\u56E0\u4E3A\u5B83\u662F\u4E8C\u8FDB\u5236\u6587\u4EF6\u3002","ui.lineComment.label.prefix":"\u8BC4\u8BBA ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"\u6B63\u5728\u8BC4\u8BBA ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"\u6DFB\u52A0\u8BC4\u8BBA","ui.lineComment.submit":"\u8BC4\u8BBA","ui.sessionTurn.steps.show":"\u663E\u793A\u6B65\u9AA4","ui.sessionTurn.steps.hide":"\u9690\u85CF\u6B65\u9AA4","ui.sessionTurn.summary.response":"\u56DE\u590D","ui.sessionTurn.diff.showMore":"\u663E\u793A\u66F4\u591A\u66F4\u6539\uFF08{{count}}\uFF09","ui.sessionTurn.retry.retrying":"\u91CD\u8BD5\u4E2D","ui.sessionTurn.retry.inSeconds":"{{seconds}} \u79D2\u540E","ui.sessionTurn.retry.attempt":"\u7B2C {{attempt}} \u6B21","ui.sessionTurn.retry.attemptLine":"{{line}} - \u7B2C {{attempt}} \u6B21","ui.sessionTurn.retry.geminiHot":"gemini \u5F53\u524D\u8FC7\u8F7D","ui.sessionTurn.error.freeUsageExceeded":"\u514D\u8D39\u4F7F\u7528\u989D\u5EA6\u5DF2\u7528\u5B8C","ui.sessionTurn.error.addQredits":"\u6DFB\u52A0\u79EF\u5206","ui.sessionTurn.status.delegating":"\u6B63\u5728\u59D4\u6D3E\u5DE5\u4F5C","ui.sessionTurn.status.planning":"\u6B63\u5728\u89C4\u5212\u4E0B\u4E00\u6B65","ui.sessionTurn.status.gatheringContext":"\u6B63\u5728\u63A2\u7D22","ui.sessionTurn.status.gatheredContext":"\u5DF2\u63A2\u7D22","ui.sessionTurn.status.searchingCodebase":"\u6B63\u5728\u641C\u7D22\u4EE3\u7801\u5E93","ui.sessionTurn.status.searchingWeb":"\u6B63\u5728\u641C\u7D22\u7F51\u9875","ui.sessionTurn.status.makingEdits":"\u6B63\u5728\u4FEE\u6539","ui.sessionTurn.status.runningCommands":"\u6B63\u5728\u8FD0\u884C\u547D\u4EE4","ui.sessionTurn.status.thinking":"\u601D\u8003\u4E2D","ui.sessionTurn.status.thinkingWithTopic":"\u601D\u8003\uFF1A{{topic}}","ui.sessionTurn.status.gatheringThoughts":"\u6B63\u5728\u6574\u7406\u601D\u8DEF","ui.sessionTurn.status.consideringNextSteps":"\u6B63\u5728\u8003\u8651\u4E0B\u4E00\u6B65","ui.messagePart.questions.dismissed":"\u95EE\u9898\u5DF2\u5FFD\u7565","ui.messagePart.compaction":"\u4F1A\u8BDD\u5DF2\u538B\u7F29","ui.messagePart.context.read.one":"{{count}} \u6B21\u8BFB\u53D6","ui.messagePart.context.read.other":"{{count}} \u6B21\u8BFB\u53D6","ui.messagePart.context.search.one":"{{count}} \u6B21\u641C\u7D22","ui.messagePart.context.search.other":"{{count}} \u6B21\u641C\u7D22","ui.messagePart.context.list.one":"{{count}} \u4E2A\u5217\u8868","ui.messagePart.context.list.other":"{{count}} \u4E2A\u5217\u8868","ui.messagePart.diagnostic.error":"\u9519\u8BEF","ui.messagePart.title.edit":"\u7F16\u8F91","ui.messagePart.title.write":"\u5199\u5165","ui.messagePart.option.typeOwnAnswer":"\u8F93\u5165\u81EA\u5DF1\u7684\u7B54\u6848","ui.messagePart.review.title":"\u68C0\u67E5\u4F60\u7684\u7B54\u6848","ui.list.loading":"\u52A0\u8F7D\u4E2D","ui.list.empty":"\u65E0\u7ED3\u679C","ui.list.clearFilter":"\u6E05\u9664\u7B5B\u9009","ui.list.emptyWithFilter.prefix":"\u6CA1\u6709\u5173\u4E8E","ui.list.emptyWithFilter.suffix":"\u7684\u7ED3\u679C","ui.messageNav.newMessage":"\u65B0\u6D88\u606F","ui.textField.copyToClipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","ui.textField.copyLink":"\u590D\u5236\u94FE\u63A5","ui.textField.copied":"\u5DF2\u590D\u5236","ui.imagePreview.alt":"\u56FE\u7247\u9884\u89C8","ui.scrollView.ariaLabel":"\u53EF\u6EDA\u52A8\u5185\u5BB9","ui.tool.read":"\u8BFB\u53D6","ui.tool.loaded":"\u5DF2\u52A0\u8F7D","ui.tool.list":"\u5217\u8868","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"\u7F51\u7EDC\u641C\u7D22","ui.tool.codesearch":"\u4EE3\u7801\u641C\u7D22","ui.tool.shell":"Shell","ui.tool.patch":"\u8865\u4E01","ui.tool.todos":"\u5F85\u529E","ui.tool.todos.read":"\u8BFB\u53D6\u5F85\u529E","ui.tool.questions":"\u95EE\u9898","ui.tool.agent":"{{type}} \u667A\u80FD\u4F53","ui.tool.agent.default":"\u667A\u80FD\u4F53","ui.common.file.one":"\u4E2A\u6587\u4EF6","ui.common.file.other":"\u4E2A\u6587\u4EF6","ui.common.question.one":"\u4E2A\u95EE\u9898","ui.common.question.other":"\u4E2A\u95EE\u9898","ui.common.add":"\u6DFB\u52A0","ui.common.back":"\u8FD4\u56DE","ui.common.cancel":"\u53D6\u6D88","ui.common.confirm":"\u786E\u8BA4","ui.common.dismiss":"\u5FFD\u7565","ui.common.close":"\u5173\u95ED","ui.common.next":"\u4E0B\u4E00\u6B65","ui.common.submit":"\u63D0\u4EA4","ui.permission.deny":"\u62D2\u7EDD","ui.permission.allowAlways":"\u59CB\u7EC8\u5141\u8BB8","ui.permission.allowOnce":"\u5141\u8BB8\u4E00\u6B21","ui.message.expand":"\u5C55\u5F00\u6D88\u606F","ui.message.collapse":"\u6536\u8D77\u6D88\u606F","ui.message.copy":"\u590D\u5236","ui.message.copyMessage":"\u590D\u5236\u6D88\u606F","ui.message.forkMessage":"\u5206\u53C9\u5230\u65B0\u4F1A\u8BDD","ui.message.revertMessage":"\u91CD\u7F6E\u5230\u6B64\u70B9","ui.message.copyResponse":"\u590D\u5236\u56DE\u590D","ui.message.copied":"\u5DF2\u590D\u5236\uFF01","ui.message.interrupted":"\u5DF2\u4E2D\u65AD","ui.message.queued":"\u6392\u961F\u4E2D","ui.message.attachment.alt":"\u9644\u4EF6","ui.patch.action.deleted":"\u5DF2\u5220\u9664","ui.patch.action.created":"\u5DF2\u521B\u5EFA","ui.patch.action.moved":"\u5DF2\u79FB\u52A8","ui.patch.action.patched":"\u5DF2\u5E94\u7528\u8865\u4E01","ui.question.subtitle.answered":"{{count}} \u5DF2\u56DE\u7B54","ui.question.answer.none":"(\u65E0\u7B54\u6848)","ui.question.review.notAnswered":"(\u672A\u56DE\u7B54)","ui.question.multiHint":"\u53EF\u591A\u9009","ui.question.singleHint":"\u9009\u62E9\u4E00\u4E2A\u7B54\u6848","ui.question.custom.placeholder":"\u8F93\u5165\u4F60\u7684\u7B54\u6848...","ui.fileSearch.placeholder":"\u67E5\u627E","ui.fileSearch.previousMatch":"\u4E0A\u4E00\u4E2A","ui.fileSearch.nextMatch":"\u4E0B\u4E00\u4E2A","ui.fileSearch.close":"\u5173\u95ED\u641C\u7D22","ui.tool.task":"\u4EFB\u52A1","ui.tool.skill":"\u6280\u80FD","ui.basicTool.called":"\u8C03\u7528\u4E86 `{{tool}}`","ui.toolErrorCard.failed":"\u5931\u8D25","ui.toolErrorCard.copyError":"\u590D\u5236\u9519\u8BEF","ui.message.duration.seconds":"{{count}}\u79D2","ui.message.duration.minutesSeconds":"{{minutes}}\u5206 {{seconds}}\u79D2"};export{e as dict};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Rn as a,Sn as b,Tn as c,Un as d,Vn as e,Wn as f,Xn as g,Yn as h,Zn as i}from"./chunk-47k5jy1p.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-r9w0thdk.js";export{i as gateway,h as createGatewayProvider,h as createGateway,g as GatewayResponseError,d as GatewayRateLimitError,e as GatewayModelNotFoundError,c as GatewayInvalidRequestError,f as GatewayInternalServerError,a as GatewayError,b as GatewayAuthenticationError};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-r9w0thdk.js";var Jm=Object.defineProperty,Om=(e)=>{throw TypeError(e)},dh=(e,_,o)=>(_ in e)?Jm(e,_,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[_]=o,Lm=(e,_)=>{for(var o in _)Jm(e,o,{get:_[o],enumerable:!0})},zo=(e,_,o)=>dh(e,typeof _!="symbol"?_+"":_,o),mh=(e,_,o)=>_.has(e)||Om("Cannot "+o),fh=(e,_,o)=>_.has(e)?Om("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(e):_.set(e,o),ye=(e,_,o)=>(mh(e,_,"access private method"),o),Rm={};Lm(Rm,{parsers:()=>qm});var qm={};Lm(qm,{typescript:()=>T4});var hh=()=>()=>{},Fp=hh,yh=(e,_,o,c)=>{if(!(e&&_==null))return _.replaceAll?_.replaceAll(o,c):o.global?_.replace(o,c):_.split(o).join(c)},Na=yh,gh="5.8",At=[],bh=new Map;function Ho(e){return e!==void 0?e.length:0}function O_(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c)return c}}function vh(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c!==void 0)return c}}function xd(e,_,o){let c=[];q.assertEqual(e.length,_.length);for(let h=0;h<e.length;h++)c.push(o(e[h],_[h],h));return c}function jp(e,_){if(e!==void 0){for(let o=0;o<e.length;o++)if(!_(e[o],o))return!1}return!0}function Um(e,_,o){if(e!==void 0)for(let c=o??0;c<e.length;c++){let h=e[c];if(_(h,c))return h}}function Gu(e,_,o){if(e===void 0)return-1;for(let c=o??0;c<e.length;c++)if(_(e[c],c))return c;return-1}function xh(e,_,o=Op){if(e!==void 0){for(let c=0;c<e.length;c++)if(o(e[c],_))return!0}return!1}function Xn(e,_){if(e!==void 0){let o=e.length,c=0;for(;c<o&&_(e[c]);)c++;if(c<o){let h=e.slice(0,c);for(c++;c<o;){let v=e[c];_(v)&&h.push(v),c++}return h}}return e}function cp(e,_){let o;if(e!==void 0){o=[];for(let c=0;c<e.length;c++)o.push(_(e[c],c))}return o}function Bm(e){let _=[];for(let o=0;o<e.length;o++){let c=e[o];c&&($n(c)?D_(_,c):_.push(c))}return _}function zm(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h&&($n(h)?o=D_(o,h):o=C_(o,h))}return o??At}function wh(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=e[c],v=_(h,c);(o||h!==v||$n(v))&&(o||(o=e.slice(0,c)),$n(v)?D_(o,v):o.push(v))}return o??e}function Th(e,_){let o=[];if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h!==void 0&&o.push(h)}return o}function Zt(e,_){if(e!==void 0)if(_!==void 0){for(let o=0;o<e.length;o++)if(_(e[o]))return!0}else return e.length>0;return!1}function Mp(e,_){return _===void 0||_.length===0?e:e===void 0||e.length===0?_:[...e,..._]}function Sh(e,_,o=Op){if(e===void 0||_===void 0)return e===_;if(e.length!==_.length)return!1;for(let c=0;c<e.length;c++)if(!o(e[c],_[c],c))return!1;return!0}function C_(e,_){return _===void 0?e:e===void 0?[_]:(e.push(_),e)}function up(e,_){return _<0?e.length+_:_}function D_(e,_,o,c){if(_===void 0||_.length===0)return e;if(e===void 0)return _.slice(o,c);o=o===void 0?0:up(_,o),c=c===void 0?_.length:up(_,c);for(let h=o;h<c&&h<_.length;h++)_[h]!==void 0&&e.push(_[h]);return e}function kh(e,_,o){return xh(e,_,o)?!1:(e.push(_),!0)}function Ch(e,_,o){return e!==void 0?(kh(e,_,o),e):[_]}function Ah(e,_){return e.length===0?At:e.slice().sort(_)}var S4=Array.prototype.at?(e,_)=>e==null?void 0:e.at(_):(e,_)=>{if(e!==void 0&&(_=up(e,_),_<e.length))return e[_]};function Jp(e){return e===void 0||e.length===0?void 0:e[0]}function ja(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Dh(e){return q.assert(e.length!==0),e[e.length-1]}function Eh(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ph(e,_,o,c,h){return Nh(e,o(_),o,c,h)}function Nh(e,_,o,c,h){if(!Zt(e))return-1;let v=h??0,A=e.length-1;for(;v<=A;){let E=v+(A-v>>1),s=o(e[E],E);switch(c(s,_)){case-1:v=E+1;break;case 0:return E;case 1:A=E-1;break}}return~v}function Ih(e,_,o,c,h){if(e&&e.length>0){let v=e.length;if(v>0){let A=c===void 0||c<0?0:c,E=h===void 0||A+h>v-1?v-1:A+h,s;for(arguments.length<=2?(s=e[A],A++):s=o;A<=E;)s=_(s,e[A],A),A++;return s}}return o}var Km=Object.prototype.hasOwnProperty;function Dn(e,_){return Km.call(e,_)}function Fh(e){let _=[];for(let o in e)Km.call(e,o)&&_.push(o);return _}function jh(){let e=new Map;return e.add=Mh,e.remove=Jh,e}function Mh(e,_){let o=this.get(e);return o!==void 0?o.push(_):this.set(e,o=[_]),o}function Jh(e,_){let o=this.get(e);o!==void 0&&(Vh(o,_),o.length||this.delete(e))}function $n(e){return Array.isArray(e)}function $u(e){return $n(e)?e:[e]}function Oh(e,_){return e!==void 0&&_(e)?e:void 0}function Cn(e,_){return e!==void 0&&_(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(_)}'.`)}function qa(e){}function Lh(){return!0}function gt(e){return e}function wd(e){let _;return()=>(e&&(_=e(),e=void 0),_)}function H_(e){let _=new Map;return(o)=>{let c=`${typeof o}:${o}`,h=_.get(c);return h===void 0&&!_.has(c)&&(h=e(o),_.set(c,h)),h}}function Op(e,_){return e===_}function Lp(e,_){return e===_||e!==void 0&&_!==void 0&&e.toUpperCase()===_.toUpperCase()}function Rh(e,_){return Op(e,_)}function qh(e,_){return e===_?0:e===void 0?-1:_===void 0?1:e<_?-1:1}function Vm(e,_){return qh(e,_)}function Uh(e,_,o){for(let c=0;c<e.length;c++)_=Math.max(_,o(e[c]));return _}function Qo(e,_,o){let c=Math.max(2,Math.floor(e.length*0.34)),h=Math.floor(e.length*0.4)+1,v;for(let A of _){let E=o(A);if(E!==void 0&&Math.abs(E.length-e.length)<=c){if(E===e||E.length<3&&E.toLowerCase()!==e.toLowerCase())continue;let s=Bh(e,E,h-0.1);if(s===void 0)continue;q.assert(s<h),h=s,v=A}}return v}function Bh(e,_,o){let c=Array(_.length+1),h=Array(_.length+1),v=o+0.01;for(let E=0;E<=_.length;E++)c[E]=E;for(let E=1;E<=e.length;E++){let s=e.charCodeAt(E-1),V=Math.ceil(E>o?E-o:1),d=Math.floor(_.length>o+E?o+E:_.length);h[0]=E;let T=E;for(let S=1;S<V;S++)h[S]=v;for(let S=V;S<=d;S++){let F=e[E-1].toLowerCase()===_[S-1].toLowerCase()?c[S-1]+0.1:c[S-1]+2,te=s===_.charCodeAt(S-1)?c[S-1]:Math.min(c[S]+1,h[S-1]+1,F);h[S]=te,T=Math.min(T,te)}for(let S=d+1;S<=_.length;S++)h[S]=v;if(T>o)return;let b=c;c=h,h=b}let A=c[_.length];return A>o?void 0:A}function zh(e,_,o){let c=e.length-_.length;return c>=0&&(o?Lp(e.slice(c),_):e.indexOf(_,c)===c)}function Kh(e,_){e[_]=e[e.length-1],e.pop()}function Vh(e,_){return Wh(e,(o)=>o===_)}function Wh(e,_){for(let o=0;o<e.length;o++)if(_(e[o]))return Kh(e,o),!0;return!1}function _c(e,_,o){return o?Lp(e.slice(0,_.length),_):e.lastIndexOf(_,0)===0}function pp(e){return e===void 0?void 0:[e]}var q;((e)=>{let _=0;e.currentLogLevel=2,e.isDebugging=!1;function o(J){return e.currentLogLevel<=J}e.shouldLog=o;function c(J,oe){e.loggingHost&&o(J)&&e.loggingHost.log(J,oe)}function h(J){c(3,J)}e.log=h,((J)=>{function oe(Ye){c(1,Ye)}J.error=oe;function pe(Ye){c(2,Ye)}J.warn=pe;function ke(Ye){c(3,Ye)}J.log=ke;function Qe(Ye){c(4,Ye)}J.trace=Qe})(h=e.log||(e.log={}));let v={};function A(){return _}e.getAssertionLevel=A;function E(J){let oe=_;if(_=J,J>oe)for(let pe of Fh(v)){let ke=v[pe];ke!==void 0&&e[pe]!==ke.assertion&&J>=ke.level&&(e[pe]=ke,v[pe]=void 0)}}e.setAssertionLevel=E;function s(J){return _>=J}e.shouldAssert=s;function V(J,oe){return s(J)?!0:(v[oe]={level:J,assertion:e[oe]},e[oe]=qa,!1)}function d(J,oe){debugger;let pe=Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(pe,oe||d),pe}e.fail=d;function T(J,oe,pe){return d(`${oe||"Unexpected node."}\r
|
|
3
3
|
Node ${jt(J.kind)} was unexpected.`,pe||T)}e.failBadSyntaxKind=T;function b(J,oe,pe,ke){J||(oe=oe?`False expression: ${oe}`:"False expression.",pe&&(oe+=`\r
|
|
4
4
|
Verbose Debug Information: `+(typeof pe=="string"?pe:pe())),d(oe,ke||b))}e.assert=b;function S(J,oe,pe,ke,Qe){if(J!==oe){let Ye=pe?ke?`${pe} ${ke}`:pe:"";d(`Expected ${J} === ${oe}. ${Ye}`,Qe||S)}}e.assertEqual=S;function F(J,oe,pe,ke){J>=oe&&d(`Expected ${J} < ${oe}. ${pe||""}`,ke||F)}e.assertLessThan=F;function te(J,oe,pe){J>oe&&d(`Expected ${J} <= ${oe}`,pe||te)}e.assertLessThanOrEqual=te;function ve(J,oe,pe){J<oe&&d(`Expected ${J} >= ${oe}`,pe||ve)}e.assertGreaterThanOrEqual=ve;function fe(J,oe,pe){J==null&&d(oe,pe||fe)}e.assertIsDefined=fe;function me(J,oe,pe){return fe(J,oe,pe||me),J}e.checkDefined=me;function j(J,oe,pe){for(let ke of J)fe(ke,oe,pe||j)}e.assertEachIsDefined=j;function ne(J,oe,pe){return j(J,oe,pe||ne),J}e.checkEachDefined=ne;function je(J,oe="Illegal value:",pe){let ke=typeof J=="object"&&Dn(J,"kind")&&Dn(J,"pos")?"SyntaxKind: "+jt(J.kind):JSON.stringify(J);return d(`${oe} ${ke}`,pe||je)}e.assertNever=je;function K(J,oe,pe,ke){V(1,"assertEachNode")&&b(oe===void 0||jp(J,oe),pe||"Unexpected node.",()=>`Node array did not pass test '${y_(oe)}'.`,ke||K)}e.assertEachNode=K;function se(J,oe,pe,ke){V(1,"assertNode")&&b(J!==void 0&&(oe===void 0||oe(J)),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||se)}e.assertNode=se;function G(J,oe,pe,ke){V(1,"assertNotNode")&&b(J===void 0||oe===void 0||!oe(J),pe||"Unexpected node.",()=>`Node ${jt(J.kind)} should not have passed test '${y_(oe)}'.`,ke||G)}e.assertNotNode=G;function mt(J,oe,pe,ke){V(1,"assertOptionalNode")&&b(oe===void 0||J===void 0||oe(J),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||mt)}e.assertOptionalNode=mt;function en(J,oe,pe,ke){V(1,"assertOptionalToken")&&b(oe===void 0||J===void 0||J.kind===oe,pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} was not a '${jt(oe)}' token.`,ke||en)}e.assertOptionalToken=en;function h_(J,oe,pe){V(1,"assertMissingNode")&&b(J===void 0,oe||"Unexpected node.",()=>`Node ${jt(J.kind)} was unexpected'.`,pe||h_)}e.assertMissingNode=h_;function tn(J){}e.type=tn;function y_(J){if(typeof J!="function")return"";if(Dn(J,"name"))return J.name;{let oe=Function.prototype.toString.call(J),pe=/^function\s+([\w$]+)\s*\(/.exec(oe);return pe?pe[1]:""}}e.getFunctionName=y_;function P_(J){return`{ name: ${si(J.escapedName)}; flags: ${st(J.flags)}; declarations: ${cp(J.declarations,(oe)=>jt(oe.kind))} }`}e.formatSymbol=P_;function We(J=0,oe,pe){let ke=Pn(oe);if(J===0)return ke.length>0&&ke[0][0]===0?ke[0][1]:"0";if(pe){let Qe=[],Ye=J;for(let[at,Et]of ke){if(at>J)break;at!==0&&at&J&&(Qe.push(Et),Ye&=~at)}if(Ye===0)return Qe.join("|")}else for(let[Qe,Ye]of ke)if(Qe===J)return Ye;return J.toString()}e.formatEnum=We;let _n=new Map;function Pn(J){let oe=_n.get(J);if(oe)return oe;let pe=[];for(let Qe in J){let Ye=J[Qe];typeof Ye=="number"&&pe.push([Ye,Qe])}let ke=Ah(pe,(Qe,Ye)=>Vm(Qe[0],Ye[0]));return _n.set(J,ke),ke}function jt(J){return We(J,Fe,!1)}e.formatSyntaxKind=jt;function L_(J){return We(J,ef,!1)}e.formatSnippetKind=L_;function N_(J){return We(J,Wn,!1)}e.formatScriptKind=N_;function Mt(J){return We(J,Y_,!0)}e.formatNodeFlags=Mt;function bt(J){return We(J,$m,!0)}e.formatNodeCheckFlags=bt;function He(J){return We(J,Wm,!0)}e.formatModifierFlags=He;function R_(J){return We(J,Zm,!0)}e.formatTransformFlags=R_;function Xt(J){return We(J,tf,!0)}e.formatEmitFlags=Xt;function st(J){return We(J,Gm,!0)}e.formatSymbolFlags=st;function rt(J){return We(J,o_,!0)}e.formatTypeFlags=rt;function Rt(J){return We(J,Qm,!0)}e.formatSignatureFlags=Rt;function Jt(J){return We(J,Hm,!0)}e.formatObjectFlags=Jt;function lt(J){return We(J,dp,!0)}e.formatFlowFlags=lt;function nn(J){return We(J,Xm,!0)}e.formatRelationComparisonResult=nn;function ft(J){return We(J,CheckMode,!0)}e.formatCheckMode=ft;function g_(J){return We(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=g_;function yt(J){return We(J,TypeFacts,!0)}e.formatTypeFacts=yt;let i_=!1,_t;function qt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",pe=this.flags&-2048;return`${oe}${pe?` (${lt(pe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,dp,!0)}},__debugToString:{value(){return hn(this)}}})}function t_(J){return i_&&(typeof Object.setPrototypeOf=="function"?(_t||(_t=Object.create(Object.prototype),qt(_t)),Object.setPrototypeOf(J,_t)):qt(J)),J}e.attachFlowNodeDebugInfo=t_;let rn;function dn(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function mn(J){i_&&(typeof Object.setPrototypeOf=="function"?(rn||(rn=Object.create(Array.prototype),dn(rn)),Object.setPrototypeOf(J,rn)):dn(J))}e.attachNodeArrayDebugInfo=mn;function q_(){if(i_)return;let J=new WeakMap,oe=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&33554432?"TransientSymbol":"Symbol",Qe=this.flags&-33554433;return`${ke} '${hp(this)}'${Qe?` (${st(Qe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Qe=this.flags&524288?this.objectFlags&-1344:0;return`${ke}${this.symbol?` '${hp(this.symbol)}'`:""}${Qe?` (${Jt(Qe)})`:""}`}},__debugFlags:{get(){return rt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let ke=J.get(this);return ke===void 0&&(ke=this.checker.typeToString(this),J.set(this,ke)),ke}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Rt(this.flags)}},__debugSignatureToString:{value(){var ke;return(ke=this.checker)==null?void 0:ke.signatureToString(this)}}});let pe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let ke of pe)Dn(ke.prototype,"__debugKind")||Object.defineProperties(ke.prototype,{__tsDebuggerDisplay:{value(){return`${Fa(this)?"GeneratedIdentifier":tt(this)?`Identifier '${E_(this)}'`:Xr(this)?`PrivateIdentifier '${E_(this)}'`:Ra(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ba(this)?`NumericLiteral ${this.text}`:og(this)?`BigIntLiteral ${this.text}n`:Qf(this)?"TypeParameterDeclaration":sc(this)?"ParameterDeclaration":Yf(this)?"ConstructorDeclaration":Tp(this)?"GetAccessorDeclaration":cc(this)?"SetAccessorDeclaration":mg(this)?"CallSignatureDeclaration":fg(this)?"ConstructSignatureDeclaration":Zf(this)?"IndexSignatureDeclaration":hg(this)?"TypePredicateNode":e1(this)?"TypeReferenceNode":t1(this)?"FunctionTypeNode":_1(this)?"ConstructorTypeNode":yg(this)?"TypeQueryNode":gg(this)?"TypeLiteralNode":bg(this)?"ArrayTypeNode":vg(this)?"TupleTypeNode":wg(this)?"OptionalTypeNode":Tg(this)?"RestTypeNode":Sg(this)?"UnionTypeNode":kg(this)?"IntersectionTypeNode":Cg(this)?"ConditionalTypeNode":Ag(this)?"InferTypeNode":Dg(this)?"ParenthesizedTypeNode":Eg(this)?"ThisTypeNode":Pg(this)?"TypeOperatorNode":Ng(this)?"IndexedAccessTypeNode":Ig(this)?"MappedTypeNode":Fg(this)?"LiteralTypeNode":xg(this)?"NamedTupleMember":jg(this)?"ImportTypeNode":jt(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return jt(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return He(h2(this))}},__debugTransformFlags:{get(){return R_(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ac(this)}},__debugEmitFlags:{get(){return Xt(La(this))}},__debugGetText:{value(Qe){if(Aa(this))return"";let Ye=oe.get(this);if(Ye===void 0){let at=N0(this),Et=at&&fr(at);Ye=Et?Od(Et,at,Qe):"",oe.set(this,Ye)}return Ye}}});i_=!0}e.enableDebugInfo=q_;function U_(J){let oe=J&7,pe=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return J&8?pe+=" (unmeasurable)":J&16&&(pe+=" (unreliable)"),pe}e.formatVariance=U_;class fn{__debugToString(){var J;switch(this.kind){case 3:return((J=this.debugInfo)==null?void 0:J.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xd(this.sources,this.targets||cp(this.sources,()=>"any"),(oe,pe)=>`${oe.__debugTypeToString()} -> ${typeof pe=="string"?pe:pe.__debugTypeToString()}`).join(", ");case 2:return xd(this.sources,this.targets,(oe,pe)=>`${oe.__debugTypeToString()} -> ${pe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
5
5
|
`).join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Br as h,Cr as i,Dr as j,Er as k,Fr as l,Hr as m,Ir as n,xr as e,yr as f,zr as g}from"./chunk-vdxar0ct.js";import{Nr as d}from"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import{ys as c}from"./chunk-0vakk88p.js";import"./chunk-r5zy4za0.js";import{Ws as b}from"./chunk-tr6rdr6h.js";import{ft as a}from"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{h as getEnvInfo,c as Wildcard,n as Token,m as Rpc,d as Process,b as Log,l as Lock,k as Locale,j as LocalContext,i as Keybind,a as Filesystem,g as EffectUtil,f as Color,e as Archive};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Os as a,Ps as b,Qs as c,Rs as d,Ss as e,Ts as f,Us as g,Vs as h}from"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{g as redactValue,e as init,f as flush,d as file,b as enabled,h as create,a as Level,c as Default};
|