@vercel/otel 2.2.0 → 2.2.1

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.
@@ -1,17 +1,17 @@
1
1
  if (globalThis.performance === undefined) {
2
2
  globalThis.performance = { timeOrigin: 0, now: () => Date.now() };
3
3
  }
4
- var AA=Object.create;var We=Object.defineProperty;var dA=Object.getOwnPropertyDescriptor;var mA=Object.getOwnPropertyNames;var fA=Object.getPrototypeOf,hA=Object.prototype.hasOwnProperty;var Ss=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var Y=(r,t)=>()=>(r&&(t=r(r=0)),t);var S=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),RA=(r,t)=>{for(var e in t)We(r,e,{get:t[e],enumerable:!0})},je=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mA(t))!hA.call(r,o)&&o!==e&&We(r,o,{get:()=>t[o],enumerable:!(n=dA(t,o))||n.enumerable});return r},tt=(r,t,e)=>(je(r,t,"default"),e&&je(e,t,"default")),R=(r,t,e)=>(e=r!=null?AA(fA(r)):{},je(t||!r||!r.__esModule?We(e,"default",{value:r,enumerable:!0}):e,r)),b=r=>je(We({},"__esModule",{value:!0}),r);var c={};import*as Jx from"@opentelemetry/api";var d=Y(()=>{tt(c,Jx)});var Te=S(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isTracingSuppressed=mt.unsuppressTracing=mt.suppressTracing=void 0;var OA=(d(),b(c)),Vn=(0,OA.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function gA(r){return r.setValue(Vn,!0)}mt.suppressTracing=gA;function NA(r){return r.deleteValue(Vn)}mt.unsuppressTracing=NA;function MA(r){return r.getValue(Vn)===!0}mt.isTracingSuppressed=MA});var vn=S(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.BAGGAGE_MAX_TOTAL_LENGTH=y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=y.BAGGAGE_MAX_NAME_VALUE_PAIRS=y.BAGGAGE_HEADER=y.BAGGAGE_ITEMS_SEPARATOR=y.BAGGAGE_PROPERTIES_SEPARATOR=y.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;y.BAGGAGE_KEY_PAIR_SEPARATOR="=";y.BAGGAGE_PROPERTIES_SEPARATOR=";";y.BAGGAGE_ITEMS_SEPARATOR=",";y.BAGGAGE_HEADER="baggage";y.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;y.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Bn=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.parseKeyPairsIntoRecord=st.parsePairKeyValue=st.getKeyPairs=st.serializeKeyPairs=void 0;var PA=(d(),b(c)),Lt=vn();function CA(r){return r.reduce((t,e)=>{let n=`${t}${t!==""?Lt.BAGGAGE_ITEMS_SEPARATOR:""}${e}`;return n.length>Lt.BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}st.serializeKeyPairs=CA;function LA(r){return r.getAllEntries().map(([t,e])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(e.value)}`;return e.metadata!==void 0&&(n+=Lt.BAGGAGE_PROPERTIES_SEPARATOR+e.metadata.toString()),n})}st.getKeyPairs=LA;function ps(r){let t=r.split(Lt.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let e=t.shift();if(!e)return;let n=e.indexOf(Lt.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(e.substring(0,n).trim()),s=decodeURIComponent(e.substring(n+1).trim()),i;return t.length>0&&(i=(0,PA.baggageEntryMetadataFromString)(t.join(Lt.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:s,metadata:i}}st.parsePairKeyValue=ps;function IA(r){let t={};return typeof r=="string"&&r.length>0&&r.split(Lt.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let n=ps(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}st.parseKeyPairsIntoRecord=IA});var ls=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.W3CBaggagePropagator=void 0;var wn=(d(),b(c)),xA=Te(),It=vn(),Gn=Bn(),Hn=class{inject(t,e,n){let o=wn.propagation.getBaggage(t);if(!o||(0,xA.isTracingSuppressed)(t))return;let s=(0,Gn.getKeyPairs)(o).filter(a=>a.length<=It.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,It.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,Gn.serializeKeyPairs)(s);i.length>0&&n.set(e,It.BAGGAGE_HEADER,i)}extract(t,e,n){let o=n.get(e,It.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(It.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return t;let i={};return s.length===0||(s.split(It.BAGGAGE_ITEMS_SEPARATOR).forEach(_=>{let u=(0,Gn.parsePairKeyValue)(_);if(u){let E={value:u.value};u.metadata&&(E.metadata=u.metadata),i[u.key]=E}}),Object.entries(i).length===0)?t:wn.propagation.setBaggage(t,wn.propagation.createBaggage(i))}fields(){return[It.BAGGAGE_HEADER]}};qe.W3CBaggagePropagator=Hn});var As=S($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.AnchoredClock=void 0;var Fn=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};$e.AnchoredClock=Fn});var Rs=S(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.isAttributeValue=ft.isAttributeKey=ft.sanitizeAttributes=void 0;var ds=(d(),b(c));function DA(r){let t={};if(typeof r!="object"||r==null)return t;for(let[e,n]of Object.entries(r)){if(!ms(e)){ds.diag.warn(`Invalid attribute key: ${e}`);continue}if(!fs(n)){ds.diag.warn(`Invalid attribute value set for key: ${e}`);continue}Array.isArray(n)?t[e]=n.slice():t[e]=n}return t}ft.sanitizeAttributes=DA;function ms(r){return typeof r=="string"&&r.length>0}ft.isAttributeKey=ms;function fs(r){return r==null?!0:Array.isArray(r)?UA(r):hs(r)}ft.isAttributeValue=fs;function UA(r){let t;for(let e of r)if(e!=null){if(!t){if(hs(e)){t=typeof e;continue}return!1}if(typeof e!==t)return!1}return!0}function hs(r){switch(typeof r){case"number":case"boolean":case"string":return!0}return!1}});var Yn=S(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.loggingErrorHandler=void 0;var bA=(d(),b(c));function yA(){return r=>{bA.diag.error(VA(r))}}Xe.loggingErrorHandler=yA;function VA(r){return typeof r=="string"?r:JSON.stringify(vA(r))}function vA(r){let t={},e=r;for(;e!==null;)Object.getOwnPropertyNames(e).forEach(n=>{if(t[n])return;let o=e[n];o&&(t[n]=String(o))}),e=Object.getPrototypeOf(e);return t}});var gs=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.globalErrorHandler=Gt.setGlobalErrorHandler=void 0;var BA=Yn(),Os=(0,BA.loggingErrorHandler)();function wA(r){Os=r}Gt.setGlobalErrorHandler=wA;function GA(r){try{Os(r)}catch{}}Gt.globalErrorHandler=GA});var Ns=S(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.getStringListFromEnv=it.getNumberFromEnv=it.getBooleanFromEnv=it.getStringFromEnv=void 0;function HA(r){}it.getStringFromEnv=HA;function FA(r){}it.getBooleanFromEnv=FA;function YA(r){}it.getNumberFromEnv=YA;function kA(r){}it.getStringListFromEnv=kA});var Ms=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze._globalThis=void 0;ze._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var Ps=S(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.otperformance=void 0;Qe.otperformance=performance});var Cs=S(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.VERSION=void 0;Je.VERSION="2.1.0"});function C(r){let t={},e=r.length;for(let n=0;n<e;n++){let o=r[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}var kn=Y(()=>{});var Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,ui,Ei,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,ua,Ea,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka,ja,Wa,qa,KA,jA,WA,qA,$A,XA,zA,QA,JA,ZA,td,ed,rd,nd,od,sd,id,ad,cd,_d,ud,Ed,Td,Sd,pd,ld,Ad,dd,md,fd,hd,Rd,Od,gd,Nd,Md,Pd,Cd,Ld,Id,xd,Dd,Ud,bd,yd,Vd,vd,Bd,wd,Gd,Hd,Fd,Yd,kd,Kd,jd,Wd,qd,$d,Xd,zd,Qd,Jd,Zd,tm,em,rm,nm,om,sm,im,am,cm,_m,um,Em,Tm,Sm,pm,lm,Am,dm,mm,fm,hm,Rm,Om,gm,Nm,Mm,Pm,Cm,Lm,Im,xm,Dm,Um,bm,ym,Vm,vm,Bm,wm,Gm,Hm,Fm,Ym,km,Km,jm,Wm,qm,$m,Xm,zm,Qm,Jm,Zm,tf,ef,rf,nf,of,sf,af,cf,_f,uf,Ef,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,uc,Ec,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc,wc,Gc,Hc,Tf,Sf,pf,lf,Af,df,mf,ff,hf,Rf,Of,gf,Nf,Mf,Pf,Cf,Lf,If,xf,Df,Uf,bf,yf,Vf,vf,Bf,wf,Gf,Hf,Ff,Yf,kf,Kf,jf,Wf,qf,$f,Xf,zf,Qf,Jf,Zf,th,eh,rh,nh,oh,sh,Fc,Yc,kc,Kc,jc,Wc,qc,$c,Xc,zc,Qc,ih,ah,ch,_h,uh,Eh,Th,Sh,ph,lh,Ah,dh,Jc,Zc,t_,e_,r_,mh,fh,hh,Rh,Oh,gh,n_,o_,s_,Nh,Mh,Ph,Ch,i_,a_,c_,__,Lh,Ih,xh,Dh,Uh,u_,E_,T_,S_,p_,l_,A_,bh,yh,Vh,vh,Bh,wh,Gh,Hh,d_,m_,f_,h_,R_,Fh,Yh,kh,Kh,jh,Wh,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_,H_,F_,Y_,qh,$h,Xh,zh,Qh,Jh,Zh,tR,eR,rR,nR,oR,sR,iR,aR,cR,_R,uR,ER,TR,SR,pR,k_,K_,j_,W_,q_,lR,AR,dR,mR,fR,hR,$_,X_,RR,OR,gR,z_,Q_,NR,MR,PR,J_,Z_,tu,eu,ru,nu,ou,su,iu,au,cu,_u,uu,Eu,Tu,Su,pu,CR,LR,IR,xR,DR,UR,bR,yR,VR,vR,BR,wR,GR,HR,FR,YR,kR,KR,lu,Au,jR,WR,qR,du=Y(()=>{kn();Ls="aws.lambda.invoked_arn",Is="db.system",xs="db.connection_string",Ds="db.user",Us="db.jdbc.driver_classname",bs="db.name",ys="db.statement",Vs="db.operation",vs="db.mssql.instance_name",Bs="db.cassandra.keyspace",ws="db.cassandra.page_size",Gs="db.cassandra.consistency_level",Hs="db.cassandra.table",Fs="db.cassandra.idempotence",Ys="db.cassandra.speculative_execution_count",ks="db.cassandra.coordinator.id",Ks="db.cassandra.coordinator.dc",js="db.hbase.namespace",Ws="db.redis.database_index",qs="db.mongodb.collection",$s="db.sql.table",Xs="exception.type",zs="exception.message",Qs="exception.stacktrace",Js="exception.escaped",Zs="faas.trigger",ti="faas.execution",ei="faas.document.collection",ri="faas.document.operation",ni="faas.document.time",oi="faas.document.name",si="faas.time",ii="faas.cron",ai="faas.coldstart",ci="faas.invoked_name",_i="faas.invoked_provider",ui="faas.invoked_region",Ei="net.transport",Ti="net.peer.ip",Si="net.peer.port",pi="net.peer.name",li="net.host.ip",Ai="net.host.port",di="net.host.name",mi="net.host.connection.type",fi="net.host.connection.subtype",hi="net.host.carrier.name",Ri="net.host.carrier.mcc",Oi="net.host.carrier.mnc",gi="net.host.carrier.icc",Ni="peer.service",Mi="enduser.id",Pi="enduser.role",Ci="enduser.scope",Li="thread.id",Ii="thread.name",xi="code.function",Di="code.namespace",Ui="code.filepath",bi="code.lineno",yi="http.method",Vi="http.url",vi="http.target",Bi="http.host",wi="http.scheme",Gi="http.status_code",Hi="http.flavor",Fi="http.user_agent",Yi="http.request_content_length",ki="http.request_content_length_uncompressed",Ki="http.response_content_length",ji="http.response_content_length_uncompressed",Wi="http.server_name",qi="http.route",$i="http.client_ip",Xi="aws.dynamodb.table_names",zi="aws.dynamodb.consumed_capacity",Qi="aws.dynamodb.item_collection_metrics",Ji="aws.dynamodb.provisioned_read_capacity",Zi="aws.dynamodb.provisioned_write_capacity",ta="aws.dynamodb.consistent_read",ea="aws.dynamodb.projection",ra="aws.dynamodb.limit",na="aws.dynamodb.attributes_to_get",oa="aws.dynamodb.index_name",sa="aws.dynamodb.select",ia="aws.dynamodb.global_secondary_indexes",aa="aws.dynamodb.local_secondary_indexes",ca="aws.dynamodb.exclusive_start_table",_a="aws.dynamodb.table_count",ua="aws.dynamodb.scan_forward",Ea="aws.dynamodb.segment",Ta="aws.dynamodb.total_segments",Sa="aws.dynamodb.count",pa="aws.dynamodb.scanned_count",la="aws.dynamodb.attribute_definitions",Aa="aws.dynamodb.global_secondary_index_updates",da="messaging.system",ma="messaging.destination",fa="messaging.destination_kind",ha="messaging.temp_destination",Ra="messaging.protocol",Oa="messaging.protocol_version",ga="messaging.url",Na="messaging.message_id",Ma="messaging.conversation_id",Pa="messaging.message_payload_size_bytes",Ca="messaging.message_payload_compressed_size_bytes",La="messaging.operation",Ia="messaging.consumer_id",xa="messaging.rabbitmq.routing_key",Da="messaging.kafka.message_key",Ua="messaging.kafka.consumer_group",ba="messaging.kafka.client_id",ya="messaging.kafka.partition",Va="messaging.kafka.tombstone",va="rpc.system",Ba="rpc.service",wa="rpc.method",Ga="rpc.grpc.status_code",Ha="rpc.jsonrpc.version",Fa="rpc.jsonrpc.request_id",Ya="rpc.jsonrpc.error_code",ka="rpc.jsonrpc.error_message",Ka="message.type",ja="message.id",Wa="message.compressed_size",qa="message.uncompressed_size",KA=Ls,jA=Is,WA=xs,qA=Ds,$A=Us,XA=bs,zA=ys,QA=Vs,JA=vs,ZA=Bs,td=ws,ed=Gs,rd=Hs,nd=Fs,od=Ys,sd=ks,id=Ks,ad=js,cd=Ws,_d=qs,ud=$s,Ed=Xs,Td=zs,Sd=Qs,pd=Js,ld=Zs,Ad=ti,dd=ei,md=ri,fd=ni,hd=oi,Rd=si,Od=ii,gd=ai,Nd=ci,Md=_i,Pd=ui,Cd=Ei,Ld=Ti,Id=Si,xd=pi,Dd=li,Ud=Ai,bd=di,yd=mi,Vd=fi,vd=hi,Bd=Ri,wd=Oi,Gd=gi,Hd=Ni,Fd=Mi,Yd=Pi,kd=Ci,Kd=Li,jd=Ii,Wd=xi,qd=Di,$d=Ui,Xd=bi,zd=yi,Qd=Vi,Jd=vi,Zd=Bi,tm=wi,em=Gi,rm=Hi,nm=Fi,om=Yi,sm=ki,im=Ki,am=ji,cm=Wi,_m=qi,um=$i,Em=Xi,Tm=zi,Sm=Qi,pm=Ji,lm=Zi,Am=ta,dm=ea,mm=ra,fm=na,hm=oa,Rm=sa,Om=ia,gm=aa,Nm=ca,Mm=_a,Pm=ua,Cm=Ea,Lm=Ta,Im=Sa,xm=pa,Dm=la,Um=Aa,bm=da,ym=ma,Vm=fa,vm=ha,Bm=Ra,wm=Oa,Gm=ga,Hm=Na,Fm=Ma,Ym=Pa,km=Ca,Km=La,jm=Ia,Wm=xa,qm=Da,$m=Ua,Xm=ba,zm=ya,Qm=Va,Jm=va,Zm=Ba,tf=wa,ef=Ga,rf=Ha,nf=Fa,of=Ya,sf=ka,af=Ka,cf=ja,_f=Wa,uf=qa,Ef=C([Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,ui,Ei,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,ua,Ea,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka,ja,Wa,qa]),$a="other_sql",Xa="mssql",za="mysql",Qa="oracle",Ja="db2",Za="postgresql",tc="redshift",ec="hive",rc="cloudscape",nc="hsqldb",oc="progress",sc="maxdb",ic="hanadb",ac="ingres",cc="firstsql",_c="edb",uc="cache",Ec="adabas",Tc="firebird",Sc="derby",pc="filemaker",lc="informix",Ac="instantdb",dc="interbase",mc="mariadb",fc="netezza",hc="pervasive",Rc="pointbase",Oc="sqlite",gc="sybase",Nc="teradata",Mc="vertica",Pc="h2",Cc="coldfusion",Lc="cassandra",Ic="hbase",xc="mongodb",Dc="redis",Uc="couchbase",bc="couchdb",yc="cosmosdb",Vc="dynamodb",vc="neo4j",Bc="geode",wc="elasticsearch",Gc="memcached",Hc="cockroachdb",Tf=$a,Sf=Xa,pf=za,lf=Qa,Af=Ja,df=Za,mf=tc,ff=ec,hf=rc,Rf=nc,Of=oc,gf=sc,Nf=ic,Mf=ac,Pf=cc,Cf=_c,Lf=uc,If=Ec,xf=Tc,Df=Sc,Uf=pc,bf=lc,yf=Ac,Vf=dc,vf=mc,Bf=fc,wf=hc,Gf=Rc,Hf=Oc,Ff=gc,Yf=Nc,kf=Mc,Kf=Pc,jf=Cc,Wf=Lc,qf=Ic,$f=xc,Xf=Dc,zf=Uc,Qf=bc,Jf=yc,Zf=Vc,th=vc,eh=Bc,rh=wc,nh=Gc,oh=Hc,sh=C([$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,uc,Ec,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc,wc,Gc,Hc]),Fc="all",Yc="each_quorum",kc="quorum",Kc="local_quorum",jc="one",Wc="two",qc="three",$c="local_one",Xc="any",zc="serial",Qc="local_serial",ih=Fc,ah=Yc,ch=kc,_h=Kc,uh=jc,Eh=Wc,Th=qc,Sh=$c,ph=Xc,lh=zc,Ah=Qc,dh=C([Fc,Yc,kc,Kc,jc,Wc,qc,$c,Xc,zc,Qc]),Jc="datasource",Zc="http",t_="pubsub",e_="timer",r_="other",mh=Jc,fh=Zc,hh=t_,Rh=e_,Oh=r_,gh=C([Jc,Zc,t_,e_,r_]),n_="insert",o_="edit",s_="delete",Nh=n_,Mh=o_,Ph=s_,Ch=C([n_,o_,s_]),i_="alibaba_cloud",a_="aws",c_="azure",__="gcp",Lh=i_,Ih=a_,xh=c_,Dh=__,Uh=C([i_,a_,c_,__]),u_="ip_tcp",E_="ip_udp",T_="ip",S_="unix",p_="pipe",l_="inproc",A_="other",bh=u_,yh=E_,Vh=T_,vh=S_,Bh=p_,wh=l_,Gh=A_,Hh=C([u_,E_,T_,S_,p_,l_,A_]),d_="wifi",m_="wired",f_="cell",h_="unavailable",R_="unknown",Fh=d_,Yh=m_,kh=f_,Kh=h_,jh=R_,Wh=C([d_,m_,f_,h_,R_]),O_="gprs",g_="edge",N_="umts",M_="cdma",P_="evdo_0",C_="evdo_a",L_="cdma2000_1xrtt",I_="hsdpa",x_="hsupa",D_="hspa",U_="iden",b_="evdo_b",y_="lte",V_="ehrpd",v_="hspap",B_="gsm",w_="td_scdma",G_="iwlan",H_="nr",F_="nrnsa",Y_="lte_ca",qh=O_,$h=g_,Xh=N_,zh=M_,Qh=P_,Jh=C_,Zh=L_,tR=I_,eR=x_,rR=D_,nR=U_,oR=b_,sR=y_,iR=V_,aR=v_,cR=B_,_R=w_,uR=G_,ER=H_,TR=F_,SR=Y_,pR=C([O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_,H_,F_,Y_]),k_="1.0",K_="1.1",j_="2.0",W_="SPDY",q_="QUIC",lR=k_,AR=K_,dR=j_,mR=W_,fR=q_,hR={HTTP_1_0:k_,HTTP_1_1:K_,HTTP_2_0:j_,SPDY:W_,QUIC:q_},$_="queue",X_="topic",RR=$_,OR=X_,gR=C([$_,X_]),z_="receive",Q_="process",NR=z_,MR=Q_,PR=C([z_,Q_]),J_=0,Z_=1,tu=2,eu=3,ru=4,nu=5,ou=6,su=7,iu=8,au=9,cu=10,_u=11,uu=12,Eu=13,Tu=14,Su=15,pu=16,CR=J_,LR=Z_,IR=tu,xR=eu,DR=ru,UR=nu,bR=ou,yR=su,VR=iu,vR=au,BR=cu,wR=_u,GR=uu,HR=Eu,FR=Tu,YR=Su,kR=pu,KR={OK:J_,CANCELLED:Z_,UNKNOWN:tu,INVALID_ARGUMENT:eu,DEADLINE_EXCEEDED:ru,NOT_FOUND:nu,ALREADY_EXISTS:ou,PERMISSION_DENIED:su,RESOURCE_EXHAUSTED:iu,FAILED_PRECONDITION:au,ABORTED:cu,OUT_OF_RANGE:_u,UNIMPLEMENTED:uu,INTERNAL:Eu,UNAVAILABLE:Tu,DATA_LOSS:Su,UNAUTHENTICATED:pu},lu="SENT",Au="RECEIVED",jR=lu,WR=Au,qR=C([lu,Au])});var mu=Y(()=>{du()});var fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu,ku,Ku,ju,Wu,qu,$u,Xu,zu,Qu,Ju,Zu,tE,eE,rE,nE,oE,sE,iE,aE,cE,_E,uE,EE,TE,SE,pE,lE,AE,dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,$R,XR,zR,QR,JR,ZR,tO,eO,rO,nO,oO,sO,iO,aO,cO,_O,uO,EO,TO,SO,pO,lO,AO,dO,mO,fO,hO,RO,OO,gO,NO,MO,PO,CO,LO,IO,xO,DO,UO,bO,yO,VO,vO,BO,wO,GO,HO,FO,YO,kO,KO,jO,WO,qO,$O,XO,zO,QO,JO,ZO,tg,eg,rg,ng,og,sg,ig,ag,cg,_g,ug,Eg,Tg,Sg,pg,lg,Ag,dg,mg,fg,hg,Rg,WE,qE,$E,XE,Og,gg,Ng,Mg,Pg,zE,QE,JE,ZE,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T,uT,ET,TT,Cg,Lg,Ig,xg,Dg,Ug,bg,yg,Vg,vg,Bg,wg,Gg,Hg,Fg,Yg,kg,Kg,ST,pT,jg,Wg,qg,lT,AT,dT,mT,fT,hT,RT,$g,Xg,zg,Qg,Jg,Zg,tN,eN,OT,gT,NT,MT,PT,CT,LT,IT,xT,DT,UT,rN,nN,oN,sN,iN,aN,cN,_N,uN,EN,TN,SN,bT,yT,VT,vT,BT,wT,GT,HT,FT,YT,pN,lN,AN,dN,mN,fN,hN,RN,ON,gN,NN,kT=Y(()=>{kn();fu="cloud.provider",hu="cloud.account.id",Ru="cloud.region",Ou="cloud.availability_zone",gu="cloud.platform",Nu="aws.ecs.container.arn",Mu="aws.ecs.cluster.arn",Pu="aws.ecs.launchtype",Cu="aws.ecs.task.arn",Lu="aws.ecs.task.family",Iu="aws.ecs.task.revision",xu="aws.eks.cluster.arn",Du="aws.log.group.names",Uu="aws.log.group.arns",bu="aws.log.stream.names",yu="aws.log.stream.arns",Vu="container.name",vu="container.id",Bu="container.runtime",wu="container.image.name",Gu="container.image.tag",Hu="deployment.environment",Fu="device.id",Yu="device.model.identifier",ku="device.model.name",Ku="faas.name",ju="faas.id",Wu="faas.version",qu="faas.instance",$u="faas.max_memory",Xu="host.id",zu="host.name",Qu="host.type",Ju="host.arch",Zu="host.image.name",tE="host.image.id",eE="host.image.version",rE="k8s.cluster.name",nE="k8s.node.name",oE="k8s.node.uid",sE="k8s.namespace.name",iE="k8s.pod.uid",aE="k8s.pod.name",cE="k8s.container.name",_E="k8s.replicaset.uid",uE="k8s.replicaset.name",EE="k8s.deployment.uid",TE="k8s.deployment.name",SE="k8s.statefulset.uid",pE="k8s.statefulset.name",lE="k8s.daemonset.uid",AE="k8s.daemonset.name",dE="k8s.job.uid",mE="k8s.job.name",fE="k8s.cronjob.uid",hE="k8s.cronjob.name",RE="os.type",OE="os.description",gE="os.name",NE="os.version",ME="process.pid",PE="process.executable.name",CE="process.executable.path",LE="process.command",IE="process.command_line",xE="process.command_args",DE="process.owner",UE="process.runtime.name",bE="process.runtime.version",yE="process.runtime.description",VE="service.name",vE="service.namespace",BE="service.instance.id",wE="service.version",GE="telemetry.sdk.name",HE="telemetry.sdk.language",FE="telemetry.sdk.version",YE="telemetry.auto.version",kE="webengine.name",KE="webengine.version",jE="webengine.description",$R=fu,XR=hu,zR=Ru,QR=Ou,JR=gu,ZR=Nu,tO=Mu,eO=Pu,rO=Cu,nO=Lu,oO=Iu,sO=xu,iO=Du,aO=Uu,cO=bu,_O=yu,uO=Vu,EO=vu,TO=Bu,SO=wu,pO=Gu,lO=Hu,AO=Fu,dO=Yu,mO=ku,fO=Ku,hO=ju,RO=Wu,OO=qu,gO=$u,NO=Xu,MO=zu,PO=Qu,CO=Ju,LO=Zu,IO=tE,xO=eE,DO=rE,UO=nE,bO=oE,yO=sE,VO=iE,vO=aE,BO=cE,wO=_E,GO=uE,HO=EE,FO=TE,YO=SE,kO=pE,KO=lE,jO=AE,WO=dE,qO=mE,$O=fE,XO=hE,zO=RE,QO=OE,JO=gE,ZO=NE,tg=ME,eg=PE,rg=CE,ng=LE,og=IE,sg=xE,ig=DE,ag=UE,cg=bE,_g=yE,ug=VE,Eg=vE,Tg=BE,Sg=wE,pg=GE,lg=HE,Ag=FE,dg=YE,mg=kE,fg=KE,hg=jE,Rg=C([fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu,ku,Ku,ju,Wu,qu,$u,Xu,zu,Qu,Ju,Zu,tE,eE,rE,nE,oE,sE,iE,aE,cE,_E,uE,EE,TE,SE,pE,lE,AE,dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE]),WE="alibaba_cloud",qE="aws",$E="azure",XE="gcp",Og=WE,gg=qE,Ng=$E,Mg=XE,Pg=C([WE,qE,$E,XE]),zE="alibaba_cloud_ecs",QE="alibaba_cloud_fc",JE="aws_ec2",ZE="aws_ecs",tT="aws_eks",eT="aws_lambda",rT="aws_elastic_beanstalk",nT="azure_vm",oT="azure_container_instances",sT="azure_aks",iT="azure_functions",aT="azure_app_service",cT="gcp_compute_engine",_T="gcp_cloud_run",uT="gcp_kubernetes_engine",ET="gcp_cloud_functions",TT="gcp_app_engine",Cg=zE,Lg=QE,Ig=JE,xg=ZE,Dg=tT,Ug=eT,bg=rT,yg=nT,Vg=oT,vg=sT,Bg=iT,wg=aT,Gg=cT,Hg=_T,Fg=uT,Yg=ET,kg=TT,Kg=C([zE,QE,JE,ZE,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T,uT,ET,TT]),ST="ec2",pT="fargate",jg=ST,Wg=pT,qg=C([ST,pT]),lT="amd64",AT="arm32",dT="arm64",mT="ia64",fT="ppc32",hT="ppc64",RT="x86",$g=lT,Xg=AT,zg=dT,Qg=mT,Jg=fT,Zg=hT,tN=RT,eN=C([lT,AT,dT,mT,fT,hT,RT]),OT="windows",gT="linux",NT="darwin",MT="freebsd",PT="netbsd",CT="openbsd",LT="dragonflybsd",IT="hpux",xT="aix",DT="solaris",UT="z_os",rN=OT,nN=gT,oN=NT,sN=MT,iN=PT,aN=CT,cN=LT,_N=IT,uN=xT,EN=DT,TN=UT,SN=C([OT,gT,NT,MT,PT,CT,LT,IT,xT,DT,UT]),bT="cpp",yT="dotnet",VT="erlang",vT="go",BT="java",wT="nodejs",GT="php",HT="python",FT="ruby",YT="webjs",pN=bT,lN=yT,AN=VT,dN=vT,mN=BT,fN=wT,hN=GT,RN=HT,ON=FT,gN=YT,NN=C([bT,yT,VT,vT,BT,wT,GT,HT,FT,YT])});var KT=Y(()=>{kT()});var MN,PN,CN,LN,IN,xN,DN,UN,bN,yN,VN,vN,BN,wN,GN,HN,FN,YN,kN,KN,jN,WN,qN,$N,XN,zN,QN,JN,ZN,tM,eM,rM,nM,oM,sM,iM,aM,cM,_M,uM,EM,TM,SM,pM,lM,AM,dM,Se,Kn,pe,mM,fM,hM,RM,OM,gM,NM,MM,PM,CM,LM,IM,xM,DM,UM,bM,yM,VM,vM,BM,wM,GM,HM,FM,YM,kM,KM,jM,WM,qM,$M,XM,zM,QM,JM,ZM,tP,eP,rP,nP,oP,sP,iP,aP,cP,_P,uP,EP,TP,SP,pP,lP,AP,dP,le,mP,fP,hP,RP,OP,gP,NP,MP,PP,Ze,CP,LP,IP,xP,DP,UP,bP,yP,VP,vP,BP,wP,tr,er,GP,HP,FP,YP,kP,KP,jT=Y(()=>{MN="aspnetcore.diagnostics.exception.result",PN="aborted",CN="handled",LN="skipped",IN="unhandled",xN="aspnetcore.diagnostics.handler.type",DN="aspnetcore.rate_limiting.policy",UN="aspnetcore.rate_limiting.result",bN="acquired",yN="endpoint_limiter",VN="global_limiter",vN="request_canceled",BN="aspnetcore.request.is_unhandled",wN="aspnetcore.routing.is_fallback",GN="aspnetcore.routing.match_status",HN="failure",FN="success",YN="aspnetcore.user.is_authenticated",kN="client.address",KN="client.port",jN="code.column.number",WN="code.file.path",qN="code.function.name",$N="code.line.number",XN="code.stacktrace",zN="db.collection.name",QN="db.namespace",JN="db.operation.batch.size",ZN="db.operation.name",tM="db.query.summary",eM="db.query.text",rM="db.response.status_code",nM="db.stored_procedure.name",oM="db.system.name",sM="mariadb",iM="microsoft.sql_server",aM="mysql",cM="postgresql",_M="dotnet.gc.heap.generation",uM="gen0",EM="gen1",TM="gen2",SM="loh",pM="poh",lM="error.type",AM="_OTHER",dM="exception.escaped",Se="exception.message",Kn="exception.stacktrace",pe="exception.type",mM=r=>`http.request.header.${r}`,fM="http.request.method",hM="_OTHER",RM="CONNECT",OM="DELETE",gM="GET",NM="HEAD",MM="OPTIONS",PM="PATCH",CM="POST",LM="PUT",IM="TRACE",xM="http.request.method_original",DM="http.request.resend_count",UM=r=>`http.response.header.${r}`,bM="http.response.status_code",yM="http.route",VM="jvm.gc.action",vM="jvm.gc.name",BM="jvm.memory.pool.name",wM="jvm.memory.type",GM="heap",HM="non_heap",FM="jvm.thread.daemon",YM="jvm.thread.state",kM="blocked",KM="new",jM="runnable",WM="terminated",qM="timed_waiting",$M="waiting",XM="network.local.address",zM="network.local.port",QM="network.peer.address",JM="network.peer.port",ZM="network.protocol.name",tP="network.protocol.version",eP="network.transport",rP="pipe",nP="quic",oP="tcp",sP="udp",iP="unix",aP="network.type",cP="ipv4",_P="ipv6",uP="otel.scope.name",EP="otel.scope.version",TP="otel.status_code",SP="ERROR",pP="OK",lP="otel.status_description",AP="server.address",dP="server.port",le="service.name",mP="service.version",fP="signalr.connection.status",hP="app_shutdown",RP="normal_closure",OP="timeout",gP="signalr.transport",NP="long_polling",MP="server_sent_events",PP="web_sockets",Ze="telemetry.sdk.language",CP="cpp",LP="dotnet",IP="erlang",xP="go",DP="java",UP="nodejs",bP="php",yP="python",VP="ruby",vP="rust",BP="swift",wP="webjs",tr="telemetry.sdk.name",er="telemetry.sdk.version",GP="url.fragment",HP="url.full",FP="url.path",YP="url.query",kP="url.scheme",KP="user_agent.original"});var jP,WP,qP,$P,XP,zP,QP,JP,ZP,tC,eC,rC,nC,oC,sC,iC,aC,cC,_C,uC,EC,TC,SC,pC,lC,AC,dC,mC,fC,hC,RC,OC,gC,NC,MC,PC,CC,LC,IC,xC,DC,UC,bC,yC,VC,vC,BC,wC,GC,HC,FC,WT=Y(()=>{jP="aspnetcore.diagnostics.exceptions",WP="aspnetcore.rate_limiting.active_request_leases",qP="aspnetcore.rate_limiting.queued_requests",$P="aspnetcore.rate_limiting.request.time_in_queue",XP="aspnetcore.rate_limiting.request_lease.duration",zP="aspnetcore.rate_limiting.requests",QP="aspnetcore.routing.match_attempts",JP="db.client.operation.duration",ZP="dotnet.assembly.count",tC="dotnet.exceptions",eC="dotnet.gc.collections",rC="dotnet.gc.heap.total_allocated",nC="dotnet.gc.last_collection.heap.fragmentation.size",oC="dotnet.gc.last_collection.heap.size",sC="dotnet.gc.last_collection.memory.committed_size",iC="dotnet.gc.pause.time",aC="dotnet.jit.compilation.time",cC="dotnet.jit.compiled_il.size",_C="dotnet.jit.compiled_methods",uC="dotnet.monitor.lock_contentions",EC="dotnet.process.cpu.count",TC="dotnet.process.cpu.time",SC="dotnet.process.memory.working_set",pC="dotnet.thread_pool.queue.length",lC="dotnet.thread_pool.thread.count",AC="dotnet.thread_pool.work_item.count",dC="dotnet.timer.count",mC="http.client.request.duration",fC="http.server.request.duration",hC="jvm.class.count",RC="jvm.class.loaded",OC="jvm.class.unloaded",gC="jvm.cpu.count",NC="jvm.cpu.recent_utilization",MC="jvm.cpu.time",PC="jvm.gc.duration",CC="jvm.memory.committed",LC="jvm.memory.limit",IC="jvm.memory.used",xC="jvm.memory.used_after_last_gc",DC="jvm.thread.count",UC="kestrel.active_connections",bC="kestrel.active_tls_handshakes",yC="kestrel.connection.duration",VC="kestrel.queued_connections",vC="kestrel.queued_requests",BC="kestrel.rejected_connections",wC="kestrel.tls_handshake.duration",GC="kestrel.upgraded_connections",HC="signalr.server.active_connections",FC="signalr.server.connection.duration"});var YC,qT=Y(()=>{YC="exception"});var $T={};RA($T,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>PN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>CN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>LN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>IN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>bN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>yN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>VN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>vN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>HN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>FN,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>MN,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>xN,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>DN,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>UN,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>BN,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>wN,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>GN,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>YN,ATTR_CLIENT_ADDRESS:()=>kN,ATTR_CLIENT_PORT:()=>KN,ATTR_CODE_COLUMN_NUMBER:()=>jN,ATTR_CODE_FILE_PATH:()=>WN,ATTR_CODE_FUNCTION_NAME:()=>qN,ATTR_CODE_LINE_NUMBER:()=>$N,ATTR_CODE_STACKTRACE:()=>XN,ATTR_DB_COLLECTION_NAME:()=>zN,ATTR_DB_NAMESPACE:()=>QN,ATTR_DB_OPERATION_BATCH_SIZE:()=>JN,ATTR_DB_OPERATION_NAME:()=>ZN,ATTR_DB_QUERY_SUMMARY:()=>tM,ATTR_DB_QUERY_TEXT:()=>eM,ATTR_DB_RESPONSE_STATUS_CODE:()=>rM,ATTR_DB_STORED_PROCEDURE_NAME:()=>nM,ATTR_DB_SYSTEM_NAME:()=>oM,ATTR_DOTNET_GC_HEAP_GENERATION:()=>_M,ATTR_ERROR_TYPE:()=>lM,ATTR_EXCEPTION_ESCAPED:()=>dM,ATTR_EXCEPTION_MESSAGE:()=>Se,ATTR_EXCEPTION_STACKTRACE:()=>Kn,ATTR_EXCEPTION_TYPE:()=>pe,ATTR_HTTP_REQUEST_HEADER:()=>mM,ATTR_HTTP_REQUEST_METHOD:()=>fM,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>xM,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>DM,ATTR_HTTP_RESPONSE_HEADER:()=>UM,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>bM,ATTR_HTTP_ROUTE:()=>yM,ATTR_JVM_GC_ACTION:()=>VM,ATTR_JVM_GC_NAME:()=>vM,ATTR_JVM_MEMORY_POOL_NAME:()=>BM,ATTR_JVM_MEMORY_TYPE:()=>wM,ATTR_JVM_THREAD_DAEMON:()=>FM,ATTR_JVM_THREAD_STATE:()=>YM,ATTR_NETWORK_LOCAL_ADDRESS:()=>XM,ATTR_NETWORK_LOCAL_PORT:()=>zM,ATTR_NETWORK_PEER_ADDRESS:()=>QM,ATTR_NETWORK_PEER_PORT:()=>JM,ATTR_NETWORK_PROTOCOL_NAME:()=>ZM,ATTR_NETWORK_PROTOCOL_VERSION:()=>tP,ATTR_NETWORK_TRANSPORT:()=>eP,ATTR_NETWORK_TYPE:()=>aP,ATTR_OTEL_SCOPE_NAME:()=>uP,ATTR_OTEL_SCOPE_VERSION:()=>EP,ATTR_OTEL_STATUS_CODE:()=>TP,ATTR_OTEL_STATUS_DESCRIPTION:()=>lP,ATTR_SERVER_ADDRESS:()=>AP,ATTR_SERVER_PORT:()=>dP,ATTR_SERVICE_NAME:()=>le,ATTR_SERVICE_VERSION:()=>mP,ATTR_SIGNALR_CONNECTION_STATUS:()=>fP,ATTR_SIGNALR_TRANSPORT:()=>gP,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Ze,ATTR_TELEMETRY_SDK_NAME:()=>tr,ATTR_TELEMETRY_SDK_VERSION:()=>er,ATTR_URL_FRAGMENT:()=>GP,ATTR_URL_FULL:()=>HP,ATTR_URL_PATH:()=>FP,ATTR_URL_QUERY:()=>YP,ATTR_URL_SCHEME:()=>kP,ATTR_USER_AGENT_ORIGINAL:()=>KP,AWSECSLAUNCHTYPEVALUES_EC2:()=>jg,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Wg,AwsEcsLaunchtypeValues:()=>qg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>Cg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>Lg,CLOUDPLATFORMVALUES_AWS_EC2:()=>Ig,CLOUDPLATFORMVALUES_AWS_ECS:()=>xg,CLOUDPLATFORMVALUES_AWS_EKS:()=>Dg,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>bg,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Ug,CLOUDPLATFORMVALUES_AZURE_AKS:()=>vg,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>wg,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Vg,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>Bg,CLOUDPLATFORMVALUES_AZURE_VM:()=>yg,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>kg,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Yg,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>Hg,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Gg,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Fg,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>Og,CLOUDPROVIDERVALUES_AWS:()=>gg,CLOUDPROVIDERVALUES_AZURE:()=>Ng,CLOUDPROVIDERVALUES_GCP:()=>Mg,CloudPlatformValues:()=>Kg,CloudProviderValues:()=>Pg,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>ih,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>ph,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>ah,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>Sh,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>_h,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Ah,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>uh,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>ch,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>lh,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Th,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Eh,DBSYSTEMVALUES_ADABAS:()=>If,DBSYSTEMVALUES_CACHE:()=>Lf,DBSYSTEMVALUES_CASSANDRA:()=>Wf,DBSYSTEMVALUES_CLOUDSCAPE:()=>hf,DBSYSTEMVALUES_COCKROACHDB:()=>oh,DBSYSTEMVALUES_COLDFUSION:()=>jf,DBSYSTEMVALUES_COSMOSDB:()=>Jf,DBSYSTEMVALUES_COUCHBASE:()=>zf,DBSYSTEMVALUES_COUCHDB:()=>Qf,DBSYSTEMVALUES_DB2:()=>Af,DBSYSTEMVALUES_DERBY:()=>Df,DBSYSTEMVALUES_DYNAMODB:()=>Zf,DBSYSTEMVALUES_EDB:()=>Cf,DBSYSTEMVALUES_ELASTICSEARCH:()=>rh,DBSYSTEMVALUES_FILEMAKER:()=>Uf,DBSYSTEMVALUES_FIREBIRD:()=>xf,DBSYSTEMVALUES_FIRSTSQL:()=>Pf,DBSYSTEMVALUES_GEODE:()=>eh,DBSYSTEMVALUES_H2:()=>Kf,DBSYSTEMVALUES_HANADB:()=>Nf,DBSYSTEMVALUES_HBASE:()=>qf,DBSYSTEMVALUES_HIVE:()=>ff,DBSYSTEMVALUES_HSQLDB:()=>Rf,DBSYSTEMVALUES_INFORMIX:()=>bf,DBSYSTEMVALUES_INGRES:()=>Mf,DBSYSTEMVALUES_INSTANTDB:()=>yf,DBSYSTEMVALUES_INTERBASE:()=>Vf,DBSYSTEMVALUES_MARIADB:()=>vf,DBSYSTEMVALUES_MAXDB:()=>gf,DBSYSTEMVALUES_MEMCACHED:()=>nh,DBSYSTEMVALUES_MONGODB:()=>$f,DBSYSTEMVALUES_MSSQL:()=>Sf,DBSYSTEMVALUES_MYSQL:()=>pf,DBSYSTEMVALUES_NEO4J:()=>th,DBSYSTEMVALUES_NETEZZA:()=>Bf,DBSYSTEMVALUES_ORACLE:()=>lf,DBSYSTEMVALUES_OTHER_SQL:()=>Tf,DBSYSTEMVALUES_PERVASIVE:()=>wf,DBSYSTEMVALUES_POINTBASE:()=>Gf,DBSYSTEMVALUES_POSTGRESQL:()=>df,DBSYSTEMVALUES_PROGRESS:()=>Of,DBSYSTEMVALUES_REDIS:()=>Xf,DBSYSTEMVALUES_REDSHIFT:()=>mf,DBSYSTEMVALUES_SQLITE:()=>Hf,DBSYSTEMVALUES_SYBASE:()=>Ff,DBSYSTEMVALUES_TERADATA:()=>Yf,DBSYSTEMVALUES_VERTICA:()=>kf,DB_SYSTEM_NAME_VALUE_MARIADB:()=>sM,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>iM,DB_SYSTEM_NAME_VALUE_MYSQL:()=>aM,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>cM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>uM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>EM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>TM,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>SM,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>pM,DbCassandraConsistencyLevelValues:()=>dh,DbSystemValues:()=>sh,ERROR_TYPE_VALUE_OTHER:()=>AM,EVENT_EXCEPTION:()=>YC,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Ph,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Mh,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Nh,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Lh,FAASINVOKEDPROVIDERVALUES_AWS:()=>Ih,FAASINVOKEDPROVIDERVALUES_AZURE:()=>xh,FAASINVOKEDPROVIDERVALUES_GCP:()=>Dh,FAASTRIGGERVALUES_DATASOURCE:()=>mh,FAASTRIGGERVALUES_HTTP:()=>fh,FAASTRIGGERVALUES_OTHER:()=>Oh,FAASTRIGGERVALUES_PUBSUB:()=>hh,FAASTRIGGERVALUES_TIMER:()=>Rh,FaasDocumentOperationValues:()=>Ch,FaasInvokedProviderValues:()=>Uh,FaasTriggerValues:()=>gh,HOSTARCHVALUES_AMD64:()=>$g,HOSTARCHVALUES_ARM32:()=>Xg,HOSTARCHVALUES_ARM64:()=>zg,HOSTARCHVALUES_IA64:()=>Qg,HOSTARCHVALUES_PPC32:()=>Jg,HOSTARCHVALUES_PPC64:()=>Zg,HOSTARCHVALUES_X86:()=>tN,HTTPFLAVORVALUES_HTTP_1_0:()=>lR,HTTPFLAVORVALUES_HTTP_1_1:()=>AR,HTTPFLAVORVALUES_HTTP_2_0:()=>dR,HTTPFLAVORVALUES_QUIC:()=>fR,HTTPFLAVORVALUES_SPDY:()=>mR,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>RM,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>OM,HTTP_REQUEST_METHOD_VALUE_GET:()=>gM,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>NM,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>MM,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>hM,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>PM,HTTP_REQUEST_METHOD_VALUE_POST:()=>CM,HTTP_REQUEST_METHOD_VALUE_PUT:()=>LM,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>IM,HostArchValues:()=>eN,HttpFlavorValues:()=>hR,JVM_MEMORY_TYPE_VALUE_HEAP:()=>GM,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>HM,JVM_THREAD_STATE_VALUE_BLOCKED:()=>kM,JVM_THREAD_STATE_VALUE_NEW:()=>KM,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>jM,JVM_THREAD_STATE_VALUE_TERMINATED:()=>WM,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>qM,JVM_THREAD_STATE_VALUE_WAITING:()=>$M,MESSAGETYPEVALUES_RECEIVED:()=>WR,MESSAGETYPEVALUES_SENT:()=>jR,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>RR,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>OR,MESSAGINGOPERATIONVALUES_PROCESS:()=>MR,MESSAGINGOPERATIONVALUES_RECEIVE:()=>NR,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>jP,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>WP,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>qP,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>zP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>XP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>$P,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>QP,METRIC_DB_CLIENT_OPERATION_DURATION:()=>JP,METRIC_DOTNET_ASSEMBLY_COUNT:()=>ZP,METRIC_DOTNET_EXCEPTIONS:()=>tC,METRIC_DOTNET_GC_COLLECTIONS:()=>eC,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>rC,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>nC,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>oC,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>sC,METRIC_DOTNET_GC_PAUSE_TIME:()=>iC,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>aC,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>cC,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>_C,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>uC,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>EC,METRIC_DOTNET_PROCESS_CPU_TIME:()=>TC,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>SC,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>pC,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>lC,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>AC,METRIC_DOTNET_TIMER_COUNT:()=>dC,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>mC,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>fC,METRIC_JVM_CLASS_COUNT:()=>hC,METRIC_JVM_CLASS_LOADED:()=>RC,METRIC_JVM_CLASS_UNLOADED:()=>OC,METRIC_JVM_CPU_COUNT:()=>gC,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>NC,METRIC_JVM_CPU_TIME:()=>MC,METRIC_JVM_GC_DURATION:()=>PC,METRIC_JVM_MEMORY_COMMITTED:()=>CC,METRIC_JVM_MEMORY_LIMIT:()=>LC,METRIC_JVM_MEMORY_USED:()=>IC,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>xC,METRIC_JVM_THREAD_COUNT:()=>DC,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>UC,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>bC,METRIC_KESTREL_CONNECTION_DURATION:()=>yC,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>VC,METRIC_KESTREL_QUEUED_REQUESTS:()=>vC,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>BC,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>wC,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>GC,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>HC,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>FC,MessageTypeValues:()=>qR,MessagingDestinationKindValues:()=>gR,MessagingOperationValues:()=>PR,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>zh,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Zh,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>$h,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>iR,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Qh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Jh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>oR,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>qh,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>cR,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>tR,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>rR,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>aR,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>eR,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>nR,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>uR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>sR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>SR,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>ER,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>TR,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>_R,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Xh,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>kh,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Kh,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>jh,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Fh,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Yh,NETTRANSPORTVALUES_INPROC:()=>wh,NETTRANSPORTVALUES_IP:()=>Vh,NETTRANSPORTVALUES_IP_TCP:()=>bh,NETTRANSPORTVALUES_IP_UDP:()=>yh,NETTRANSPORTVALUES_OTHER:()=>Gh,NETTRANSPORTVALUES_PIPE:()=>Bh,NETTRANSPORTVALUES_UNIX:()=>vh,NETWORK_TRANSPORT_VALUE_PIPE:()=>rP,NETWORK_TRANSPORT_VALUE_QUIC:()=>nP,NETWORK_TRANSPORT_VALUE_TCP:()=>oP,NETWORK_TRANSPORT_VALUE_UDP:()=>sP,NETWORK_TRANSPORT_VALUE_UNIX:()=>iP,NETWORK_TYPE_VALUE_IPV4:()=>cP,NETWORK_TYPE_VALUE_IPV6:()=>_P,NetHostConnectionSubtypeValues:()=>pR,NetHostConnectionTypeValues:()=>Wh,NetTransportValues:()=>Hh,OSTYPEVALUES_AIX:()=>uN,OSTYPEVALUES_DARWIN:()=>oN,OSTYPEVALUES_DRAGONFLYBSD:()=>cN,OSTYPEVALUES_FREEBSD:()=>sN,OSTYPEVALUES_HPUX:()=>_N,OSTYPEVALUES_LINUX:()=>nN,OSTYPEVALUES_NETBSD:()=>iN,OSTYPEVALUES_OPENBSD:()=>aN,OSTYPEVALUES_SOLARIS:()=>EN,OSTYPEVALUES_WINDOWS:()=>rN,OSTYPEVALUES_Z_OS:()=>TN,OTEL_STATUS_CODE_VALUE_ERROR:()=>SP,OTEL_STATUS_CODE_VALUE_OK:()=>pP,OsTypeValues:()=>SN,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>BR,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>bR,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>LR,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>YR,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>DR,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>vR,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>HR,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>xR,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>UR,RPCGRPCSTATUSCODEVALUES_OK:()=>CR,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>wR,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>yR,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>VR,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>kR,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>FR,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>GR,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>IR,RpcGrpcStatusCodeValues:()=>KR,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>fm,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Dm,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Am,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>Tm,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Im,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Nm,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>Om,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Um,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>hm,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>Sm,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>mm,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>gm,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>dm,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>pm,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>lm,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>xm,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Pm,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Cm,SEMATTRS_AWS_DYNAMODB_SELECT:()=>Rm,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>Mm,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>Em,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Lm,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>KA,SEMATTRS_CODE_FILEPATH:()=>$d,SEMATTRS_CODE_FUNCTION:()=>Wd,SEMATTRS_CODE_LINENO:()=>Xd,SEMATTRS_CODE_NAMESPACE:()=>qd,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>ed,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>id,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>sd,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>nd,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>ZA,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>td,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>od,SEMATTRS_DB_CASSANDRA_TABLE:()=>rd,SEMATTRS_DB_CONNECTION_STRING:()=>WA,SEMATTRS_DB_HBASE_NAMESPACE:()=>ad,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>$A,SEMATTRS_DB_MONGODB_COLLECTION:()=>_d,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>JA,SEMATTRS_DB_NAME:()=>XA,SEMATTRS_DB_OPERATION:()=>QA,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>cd,SEMATTRS_DB_SQL_TABLE:()=>ud,SEMATTRS_DB_STATEMENT:()=>zA,SEMATTRS_DB_SYSTEM:()=>jA,SEMATTRS_DB_USER:()=>qA,SEMATTRS_ENDUSER_ID:()=>Fd,SEMATTRS_ENDUSER_ROLE:()=>Yd,SEMATTRS_ENDUSER_SCOPE:()=>kd,SEMATTRS_EXCEPTION_ESCAPED:()=>pd,SEMATTRS_EXCEPTION_MESSAGE:()=>Td,SEMATTRS_EXCEPTION_STACKTRACE:()=>Sd,SEMATTRS_EXCEPTION_TYPE:()=>Ed,SEMATTRS_FAAS_COLDSTART:()=>gd,SEMATTRS_FAAS_CRON:()=>Od,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>dd,SEMATTRS_FAAS_DOCUMENT_NAME:()=>hd,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>md,SEMATTRS_FAAS_DOCUMENT_TIME:()=>fd,SEMATTRS_FAAS_EXECUTION:()=>Ad,SEMATTRS_FAAS_INVOKED_NAME:()=>Nd,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Md,SEMATTRS_FAAS_INVOKED_REGION:()=>Pd,SEMATTRS_FAAS_TIME:()=>Rd,SEMATTRS_FAAS_TRIGGER:()=>ld,SEMATTRS_HTTP_CLIENT_IP:()=>um,SEMATTRS_HTTP_FLAVOR:()=>rm,SEMATTRS_HTTP_HOST:()=>Zd,SEMATTRS_HTTP_METHOD:()=>zd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>om,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>sm,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>im,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>am,SEMATTRS_HTTP_ROUTE:()=>_m,SEMATTRS_HTTP_SCHEME:()=>tm,SEMATTRS_HTTP_SERVER_NAME:()=>cm,SEMATTRS_HTTP_STATUS_CODE:()=>em,SEMATTRS_HTTP_TARGET:()=>Jd,SEMATTRS_HTTP_URL:()=>Qd,SEMATTRS_HTTP_USER_AGENT:()=>nm,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>_f,SEMATTRS_MESSAGE_ID:()=>cf,SEMATTRS_MESSAGE_TYPE:()=>af,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>uf,SEMATTRS_MESSAGING_CONSUMER_ID:()=>jm,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Fm,SEMATTRS_MESSAGING_DESTINATION:()=>ym,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>Vm,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Xm,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>$m,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>qm,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>zm,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Qm,SEMATTRS_MESSAGING_MESSAGE_ID:()=>Hm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>km,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Ym,SEMATTRS_MESSAGING_OPERATION:()=>Km,SEMATTRS_MESSAGING_PROTOCOL:()=>Bm,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>wm,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Wm,SEMATTRS_MESSAGING_SYSTEM:()=>bm,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>vm,SEMATTRS_MESSAGING_URL:()=>Gm,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Gd,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Bd,SEMATTRS_NET_HOST_CARRIER_MNC:()=>wd,SEMATTRS_NET_HOST_CARRIER_NAME:()=>vd,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>Vd,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>yd,SEMATTRS_NET_HOST_IP:()=>Dd,SEMATTRS_NET_HOST_NAME:()=>bd,SEMATTRS_NET_HOST_PORT:()=>Ud,SEMATTRS_NET_PEER_IP:()=>Ld,SEMATTRS_NET_PEER_NAME:()=>xd,SEMATTRS_NET_PEER_PORT:()=>Id,SEMATTRS_NET_TRANSPORT:()=>Cd,SEMATTRS_PEER_SERVICE:()=>Hd,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>ef,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>of,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>sf,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>nf,SEMATTRS_RPC_JSONRPC_VERSION:()=>rf,SEMATTRS_RPC_METHOD:()=>tf,SEMATTRS_RPC_SERVICE:()=>Zm,SEMATTRS_RPC_SYSTEM:()=>Jm,SEMATTRS_THREAD_ID:()=>Kd,SEMATTRS_THREAD_NAME:()=>jd,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>tO,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>ZR,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>eO,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>rO,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>nO,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>oO,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>sO,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>aO,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>iO,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>_O,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>cO,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>XR,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>QR,SEMRESATTRS_CLOUD_PLATFORM:()=>JR,SEMRESATTRS_CLOUD_PROVIDER:()=>$R,SEMRESATTRS_CLOUD_REGION:()=>zR,SEMRESATTRS_CONTAINER_ID:()=>EO,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>SO,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>pO,SEMRESATTRS_CONTAINER_NAME:()=>uO,SEMRESATTRS_CONTAINER_RUNTIME:()=>TO,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>lO,SEMRESATTRS_DEVICE_ID:()=>AO,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>dO,SEMRESATTRS_DEVICE_MODEL_NAME:()=>mO,SEMRESATTRS_FAAS_ID:()=>hO,SEMRESATTRS_FAAS_INSTANCE:()=>OO,SEMRESATTRS_FAAS_MAX_MEMORY:()=>gO,SEMRESATTRS_FAAS_NAME:()=>fO,SEMRESATTRS_FAAS_VERSION:()=>RO,SEMRESATTRS_HOST_ARCH:()=>CO,SEMRESATTRS_HOST_ID:()=>NO,SEMRESATTRS_HOST_IMAGE_ID:()=>IO,SEMRESATTRS_HOST_IMAGE_NAME:()=>LO,SEMRESATTRS_HOST_IMAGE_VERSION:()=>xO,SEMRESATTRS_HOST_NAME:()=>MO,SEMRESATTRS_HOST_TYPE:()=>PO,SEMRESATTRS_K8S_CLUSTER_NAME:()=>DO,SEMRESATTRS_K8S_CONTAINER_NAME:()=>BO,SEMRESATTRS_K8S_CRONJOB_NAME:()=>XO,SEMRESATTRS_K8S_CRONJOB_UID:()=>$O,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>jO,SEMRESATTRS_K8S_DAEMONSET_UID:()=>KO,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>FO,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>HO,SEMRESATTRS_K8S_JOB_NAME:()=>qO,SEMRESATTRS_K8S_JOB_UID:()=>WO,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>yO,SEMRESATTRS_K8S_NODE_NAME:()=>UO,SEMRESATTRS_K8S_NODE_UID:()=>bO,SEMRESATTRS_K8S_POD_NAME:()=>vO,SEMRESATTRS_K8S_POD_UID:()=>VO,SEMRESATTRS_K8S_REPLICASET_NAME:()=>GO,SEMRESATTRS_K8S_REPLICASET_UID:()=>wO,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>kO,SEMRESATTRS_K8S_STATEFULSET_UID:()=>YO,SEMRESATTRS_OS_DESCRIPTION:()=>QO,SEMRESATTRS_OS_NAME:()=>JO,SEMRESATTRS_OS_TYPE:()=>zO,SEMRESATTRS_OS_VERSION:()=>ZO,SEMRESATTRS_PROCESS_COMMAND:()=>ng,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>sg,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>og,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>eg,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>rg,SEMRESATTRS_PROCESS_OWNER:()=>ig,SEMRESATTRS_PROCESS_PID:()=>tg,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>_g,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>ag,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>cg,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Tg,SEMRESATTRS_SERVICE_NAME:()=>ug,SEMRESATTRS_SERVICE_NAMESPACE:()=>Eg,SEMRESATTRS_SERVICE_VERSION:()=>Sg,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>dg,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>lg,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>pg,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Ag,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>hg,SEMRESATTRS_WEBENGINE_NAME:()=>mg,SEMRESATTRS_WEBENGINE_VERSION:()=>fg,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>hP,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>RP,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>OP,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>NP,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>MP,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>PP,SemanticAttributes:()=>Ef,SemanticResourceAttributes:()=>Rg,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>pN,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>lN,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>AN,TELEMETRYSDKLANGUAGEVALUES_GO:()=>dN,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>mN,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>fN,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>hN,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>RN,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>ON,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>gN,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>CP,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>LP,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>IP,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>xP,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>DP,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>UP,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>bP,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>yP,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>VP,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>vP,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>BP,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>wP,TelemetrySdkLanguageValues:()=>NN});var Ae=Y(()=>{mu();KT();jT();WT();qT()});var XT=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.ATTR_PROCESS_RUNTIME_NAME=void 0;rr.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var zT=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.SDK_INFO=void 0;var kC=Cs(),nr=(Ae(),b($T)),KC=XT();or.SDK_INFO={[nr.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[KC.ATTR_PROCESS_RUNTIME_NAME]:"browser",[nr.ATTR_TELEMETRY_SDK_LANGUAGE]:nr.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[nr.ATTR_TELEMETRY_SDK_VERSION]:kC.VERSION}});var QT=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.unrefTimer=void 0;function jC(r){}sr.unrefTimer=jC});var jn=S(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.unrefTimer=D.SDK_INFO=D.otperformance=D._globalThis=D.getStringListFromEnv=D.getNumberFromEnv=D.getBooleanFromEnv=D.getStringFromEnv=void 0;var ir=Ns();Object.defineProperty(D,"getStringFromEnv",{enumerable:!0,get:function(){return ir.getStringFromEnv}});Object.defineProperty(D,"getBooleanFromEnv",{enumerable:!0,get:function(){return ir.getBooleanFromEnv}});Object.defineProperty(D,"getNumberFromEnv",{enumerable:!0,get:function(){return ir.getNumberFromEnv}});Object.defineProperty(D,"getStringListFromEnv",{enumerable:!0,get:function(){return ir.getStringListFromEnv}});var WC=Ms();Object.defineProperty(D,"_globalThis",{enumerable:!0,get:function(){return WC._globalThis}});var qC=Ps();Object.defineProperty(D,"otperformance",{enumerable:!0,get:function(){return qC.otperformance}});var $C=zT();Object.defineProperty(D,"SDK_INFO",{enumerable:!0,get:function(){return $C.SDK_INFO}});var XC=QT();Object.defineProperty(D,"unrefTimer",{enumerable:!0,get:function(){return XC.unrefTimer}})});var eS=S(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.addHrTimes=g.isTimeInput=g.isTimeInputHrTime=g.hrTimeToMicroseconds=g.hrTimeToMilliseconds=g.hrTimeToNanoseconds=g.hrTimeToTimeStamp=g.hrTimeDuration=g.timeInputToHrTime=g.hrTime=g.getTimeOrigin=g.millisToHrTime=void 0;var Wn=jn(),JT=9,zC=6,QC=Math.pow(10,zC),ar=Math.pow(10,JT);function de(r){let t=r/1e3,e=Math.trunc(t),n=Math.round(r%1e3*QC);return[e,n]}g.millisToHrTime=de;function qn(){let r=Wn.otperformance.timeOrigin;if(typeof r!="number"){let t=Wn.otperformance;r=t.timing&&t.timing.fetchStart}return r}g.getTimeOrigin=qn;function ZT(r){let t=de(qn()),e=de(typeof r=="number"?r:Wn.otperformance.now());return tS(t,e)}g.hrTime=ZT;function JC(r){if($n(r))return r;if(typeof r=="number")return r<qn()?ZT(r):de(r);if(r instanceof Date)return de(r.getTime());throw TypeError("Invalid input type")}g.timeInputToHrTime=JC;function ZC(r,t){let e=t[0]-r[0],n=t[1]-r[1];return n<0&&(e-=1,n+=ar),[e,n]}g.hrTimeDuration=ZC;function tL(r){let t=JT,e=`${"0".repeat(t)}${r[1]}Z`,n=e.substring(e.length-t-1);return new Date(r[0]*1e3).toISOString().replace("000Z",n)}g.hrTimeToTimeStamp=tL;function eL(r){return r[0]*ar+r[1]}g.hrTimeToNanoseconds=eL;function rL(r){return r[0]*1e3+r[1]/1e6}g.hrTimeToMilliseconds=rL;function nL(r){return r[0]*1e6+r[1]/1e3}g.hrTimeToMicroseconds=nL;function $n(r){return Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"}g.isTimeInputHrTime=$n;function oL(r){return $n(r)||typeof r=="number"||r instanceof Date}g.isTimeInput=oL;function tS(r,t){let e=[r[0]+t[0],r[1]+t[1]];return e[1]>=ar&&(e[1]-=ar,e[0]+=1),e}g.addHrTimes=tS});var rS=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.ExportResultCode=void 0;var sL;(function(r){r[r.SUCCESS=0]="SUCCESS",r[r.FAILED=1]="FAILED"})(sL=me.ExportResultCode||(me.ExportResultCode={}))});var oS=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.CompositePropagator=void 0;var nS=(d(),b(c)),Xn=class{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields=="function"?e.fields():[]).reduce((e,n)=>e.concat(n),[])))}inject(t,e,n){for(let o of this._propagators)try{o.inject(t,e,n)}catch(s){nS.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${s.message}`)}}extract(t,e,n){return this._propagators.reduce((o,s)=>{try{return s.extract(o,e,n)}catch(i){nS.diag.warn(`Failed to extract with ${s.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}};cr.CompositePropagator=Xn});var sS=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.validateValue=Ht.validateKey=void 0;var zn="[_0-9a-z-*/]",iL=`[a-z]${zn}{0,255}`,aL=`[a-z0-9]${zn}{0,240}@[a-z]${zn}{0,13}`,cL=new RegExp(`^(?:${iL}|${aL})$`),_L=/^[ -~]{0,255}[!-~]$/,uL=/,|=/;function EL(r){return cL.test(r)}Ht.validateKey=EL;function TL(r){return _L.test(r)&&!uL.test(r)}Ht.validateValue=TL});var Jn=S(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.TraceState=void 0;var iS=sS(),aS=32,SL=512,cS=",",_S="=",Qn=class r{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,e){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n}unset(t){let e=this._clone();return e._internalState.delete(t),e}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,e)=>(t.push(e+_S+this.get(e)),t),[]).join(cS)}_parse(t){t.length>SL||(this._internalState=t.split(cS).reverse().reduce((e,n)=>{let o=n.trim(),s=o.indexOf(_S);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,n.length);(0,iS.validateKey)(i)&&(0,iS.validateValue)(a)&&e.set(i,a)}return e},new Map),this._internalState.size>aS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,aS))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new r;return t._internalState=new Map(this._internalState),t}};_r.TraceState=Qn});var ES=S(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.W3CTraceContextPropagator=V.parseTraceParent=V.TRACE_STATE_HEADER=V.TRACE_PARENT_HEADER=void 0;var ur=(d(),b(c)),pL=Te(),lL=Jn();V.TRACE_PARENT_HEADER="traceparent";V.TRACE_STATE_HEADER="tracestate";var AL="00",dL="(?!ff)[\\da-f]{2}",mL="(?![0]{32})[\\da-f]{32}",fL="(?![0]{16})[\\da-f]{16}",hL="[\\da-f]{2}",RL=new RegExp(`^\\s?(${dL})-(${mL})-(${fL})-(${hL})(-.*)?\\s?$`);function uS(r){let t=RL.exec(r);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}V.parseTraceParent=uS;var Zn=class{inject(t,e,n){let o=ur.trace.getSpanContext(t);if(!o||(0,pL.isTracingSuppressed)(t)||!(0,ur.isSpanContextValid)(o))return;let s=`${AL}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||ur.TraceFlags.NONE).toString(16)}`;n.set(e,V.TRACE_PARENT_HEADER,s),o.traceState&&n.set(e,V.TRACE_STATE_HEADER,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,V.TRACE_PARENT_HEADER);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=uS(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,V.TRACE_STATE_HEADER);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=new lL.TraceState(typeof _=="string"?_:void 0)}return ur.trace.setSpanContext(t,i)}fields(){return[V.TRACE_PARENT_HEADER,V.TRACE_STATE_HEADER]}};V.W3CTraceContextPropagator=Zn});var TS=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.getRPCMetadata=et.deleteRPCMetadata=et.setRPCMetadata=et.RPCType=void 0;var OL=(d(),b(c)),to=(0,OL.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),gL;(function(r){r.HTTP="http"})(gL=et.RPCType||(et.RPCType={}));function NL(r,t){return r.setValue(to,t)}et.setRPCMetadata=NL;function ML(r){return r.deleteValue(to)}et.deleteRPCMetadata=ML;function PL(r){return r.getValue(to)}et.getRPCMetadata=PL});var dS=S(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.isPlainObject=void 0;var CL="[object Object]",LL="[object Null]",IL="[object Undefined]",xL=Function.prototype,SS=xL.toString,DL=SS.call(Object),UL=Object.getPrototypeOf,pS=Object.prototype,lS=pS.hasOwnProperty,xt=Symbol?Symbol.toStringTag:void 0,AS=pS.toString;function bL(r){if(!yL(r)||VL(r)!==CL)return!1;let t=UL(r);if(t===null)return!0;let e=lS.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&SS.call(e)===DL}Er.isPlainObject=bL;function yL(r){return r!=null&&typeof r=="object"}function VL(r){return r==null?r===void 0?IL:LL:xt&&xt in Object(r)?vL(r):BL(r)}function vL(r){let t=lS.call(r,xt),e=r[xt],n=!1;try{r[xt]=void 0,n=!0}catch{}let o=AS.call(r);return n&&(t?r[xt]=e:delete r[xt]),o}function BL(r){return AS.call(r)}});var OS=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.merge=void 0;var mS=dS(),wL=20;function GL(...r){let t=r.shift(),e=new WeakMap;for(;r.length>0;)t=hS(t,r.shift(),0,e);return t}pr.merge=GL;function eo(r){return Sr(r)?r.slice():r}function hS(r,t,e=0,n){let o;if(!(e>wL)){if(e++,Tr(r)||Tr(t)||RS(t))o=eo(t);else if(Sr(r)){if(o=r.slice(),Sr(t))for(let s=0,i=t.length;s<i;s++)o.push(eo(t[s]));else if(fe(t)){let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i];o[_]=eo(t[_])}}}else if(fe(r))if(fe(t)){if(!HL(r,t))return t;o=Object.assign({},r);let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i],u=t[_];if(Tr(u))typeof u>"u"?delete o[_]:o[_]=u;else{let E=o[_],p=u;if(fS(r,_,n)||fS(t,_,n))delete o[_];else{if(fe(E)&&fe(p)){let A=n.get(E)||[],h=n.get(p)||[];A.push({obj:r,key:_}),h.push({obj:t,key:_}),n.set(E,A),n.set(p,h)}o[_]=hS(o[_],u,e,n)}}}}else o=t;return o}}function fS(r,t,e){let n=e.get(r[t])||[];for(let o=0,s=n.length;o<s;o++){let i=n[o];if(i.key===t&&i.obj===r)return!0}return!1}function Sr(r){return Array.isArray(r)}function RS(r){return typeof r=="function"}function fe(r){return!Tr(r)&&!Sr(r)&&!RS(r)&&typeof r=="object"}function Tr(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r>"u"||r instanceof Date||r instanceof RegExp||r===null}function HL(r,t){return!(!(0,mS.isPlainObject)(r)||!(0,mS.isPlainObject)(t))}});var gS=S(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.callWithTimeout=Ft.TimeoutError=void 0;var lr=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};Ft.TimeoutError=lr;function FL(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new lr("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}Ft.callWithTimeout=FL});var MS=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.isUrlIgnored=Yt.urlMatches=void 0;function NS(r,t){return typeof t=="string"?r===t:!!r.match(t)}Yt.urlMatches=NS;function YL(r,t){if(!t)return!1;for(let e of t)if(NS(r,e))return!0;return!1}Yt.isUrlIgnored=YL});var PS=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.Deferred=void 0;var ro=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};Ar.Deferred=ro});var CS=S(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.BindOnceFuture=void 0;var kL=PS(),no=class{_callback;_that;_isCalled=!1;_deferred=new kL.Deferred;constructor(t,e){this._callback=t,this._that=e}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};dr.BindOnceFuture=no});var IS=S(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.diagLogLevelFromString=void 0;var pt=(d(),b(c)),LS={ALL:pt.DiagLogLevel.ALL,VERBOSE:pt.DiagLogLevel.VERBOSE,DEBUG:pt.DiagLogLevel.DEBUG,INFO:pt.DiagLogLevel.INFO,WARN:pt.DiagLogLevel.WARN,ERROR:pt.DiagLogLevel.ERROR,NONE:pt.DiagLogLevel.NONE};function KL(r){if(r==null)return;let t=LS[r.toUpperCase()];return t??(pt.diag.warn(`Unknown log level "${r}", expected one of ${Object.keys(LS)}, using default`),pt.DiagLogLevel.INFO)}mr.diagLogLevelFromString=KL});var DS=S(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr._export=void 0;var xS=(d(),b(c)),jL=Te();function WL(r,t){return new Promise(e=>{xS.context.with((0,jL.suppressTracing)(xS.context.active()),()=>{r.export(t,n=>{e(n)})})})}fr._export=WL});var P=S(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.internal=T.diagLogLevelFromString=T.BindOnceFuture=T.urlMatches=T.isUrlIgnored=T.callWithTimeout=T.TimeoutError=T.merge=T.TraceState=T.unsuppressTracing=T.suppressTracing=T.isTracingSuppressed=T.setRPCMetadata=T.getRPCMetadata=T.deleteRPCMetadata=T.RPCType=T.parseTraceParent=T.W3CTraceContextPropagator=T.TRACE_STATE_HEADER=T.TRACE_PARENT_HEADER=T.CompositePropagator=T.unrefTimer=T.otperformance=T.getStringListFromEnv=T.getNumberFromEnv=T.getBooleanFromEnv=T.getStringFromEnv=T._globalThis=T.SDK_INFO=T.parseKeyPairsIntoRecord=T.ExportResultCode=T.timeInputToHrTime=T.millisToHrTime=T.isTimeInputHrTime=T.isTimeInput=T.hrTimeToTimeStamp=T.hrTimeToNanoseconds=T.hrTimeToMilliseconds=T.hrTimeToMicroseconds=T.hrTimeDuration=T.hrTime=T.getTimeOrigin=T.addHrTimes=T.loggingErrorHandler=T.setGlobalErrorHandler=T.globalErrorHandler=T.sanitizeAttributes=T.isAttributeValue=T.AnchoredClock=T.W3CBaggagePropagator=void 0;var qL=ls();Object.defineProperty(T,"W3CBaggagePropagator",{enumerable:!0,get:function(){return qL.W3CBaggagePropagator}});var $L=As();Object.defineProperty(T,"AnchoredClock",{enumerable:!0,get:function(){return $L.AnchoredClock}});var US=Rs();Object.defineProperty(T,"isAttributeValue",{enumerable:!0,get:function(){return US.isAttributeValue}});Object.defineProperty(T,"sanitizeAttributes",{enumerable:!0,get:function(){return US.sanitizeAttributes}});var bS=gs();Object.defineProperty(T,"globalErrorHandler",{enumerable:!0,get:function(){return bS.globalErrorHandler}});Object.defineProperty(T,"setGlobalErrorHandler",{enumerable:!0,get:function(){return bS.setGlobalErrorHandler}});var XL=Yn();Object.defineProperty(T,"loggingErrorHandler",{enumerable:!0,get:function(){return XL.loggingErrorHandler}});var k=eS();Object.defineProperty(T,"addHrTimes",{enumerable:!0,get:function(){return k.addHrTimes}});Object.defineProperty(T,"getTimeOrigin",{enumerable:!0,get:function(){return k.getTimeOrigin}});Object.defineProperty(T,"hrTime",{enumerable:!0,get:function(){return k.hrTime}});Object.defineProperty(T,"hrTimeDuration",{enumerable:!0,get:function(){return k.hrTimeDuration}});Object.defineProperty(T,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return k.hrTimeToMicroseconds}});Object.defineProperty(T,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return k.hrTimeToMilliseconds}});Object.defineProperty(T,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return k.hrTimeToNanoseconds}});Object.defineProperty(T,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return k.hrTimeToTimeStamp}});Object.defineProperty(T,"isTimeInput",{enumerable:!0,get:function(){return k.isTimeInput}});Object.defineProperty(T,"isTimeInputHrTime",{enumerable:!0,get:function(){return k.isTimeInputHrTime}});Object.defineProperty(T,"millisToHrTime",{enumerable:!0,get:function(){return k.millisToHrTime}});Object.defineProperty(T,"timeInputToHrTime",{enumerable:!0,get:function(){return k.timeInputToHrTime}});var zL=rS();Object.defineProperty(T,"ExportResultCode",{enumerable:!0,get:function(){return zL.ExportResultCode}});var QL=Bn();Object.defineProperty(T,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return QL.parseKeyPairsIntoRecord}});var ht=jn();Object.defineProperty(T,"SDK_INFO",{enumerable:!0,get:function(){return ht.SDK_INFO}});Object.defineProperty(T,"_globalThis",{enumerable:!0,get:function(){return ht._globalThis}});Object.defineProperty(T,"getStringFromEnv",{enumerable:!0,get:function(){return ht.getStringFromEnv}});Object.defineProperty(T,"getBooleanFromEnv",{enumerable:!0,get:function(){return ht.getBooleanFromEnv}});Object.defineProperty(T,"getNumberFromEnv",{enumerable:!0,get:function(){return ht.getNumberFromEnv}});Object.defineProperty(T,"getStringListFromEnv",{enumerable:!0,get:function(){return ht.getStringListFromEnv}});Object.defineProperty(T,"otperformance",{enumerable:!0,get:function(){return ht.otperformance}});Object.defineProperty(T,"unrefTimer",{enumerable:!0,get:function(){return ht.unrefTimer}});var JL=oS();Object.defineProperty(T,"CompositePropagator",{enumerable:!0,get:function(){return JL.CompositePropagator}});var hr=ES();Object.defineProperty(T,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return hr.TRACE_PARENT_HEADER}});Object.defineProperty(T,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return hr.TRACE_STATE_HEADER}});Object.defineProperty(T,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return hr.W3CTraceContextPropagator}});Object.defineProperty(T,"parseTraceParent",{enumerable:!0,get:function(){return hr.parseTraceParent}});var Rr=TS();Object.defineProperty(T,"RPCType",{enumerable:!0,get:function(){return Rr.RPCType}});Object.defineProperty(T,"deleteRPCMetadata",{enumerable:!0,get:function(){return Rr.deleteRPCMetadata}});Object.defineProperty(T,"getRPCMetadata",{enumerable:!0,get:function(){return Rr.getRPCMetadata}});Object.defineProperty(T,"setRPCMetadata",{enumerable:!0,get:function(){return Rr.setRPCMetadata}});var oo=Te();Object.defineProperty(T,"isTracingSuppressed",{enumerable:!0,get:function(){return oo.isTracingSuppressed}});Object.defineProperty(T,"suppressTracing",{enumerable:!0,get:function(){return oo.suppressTracing}});Object.defineProperty(T,"unsuppressTracing",{enumerable:!0,get:function(){return oo.unsuppressTracing}});var ZL=Jn();Object.defineProperty(T,"TraceState",{enumerable:!0,get:function(){return ZL.TraceState}});var tI=OS();Object.defineProperty(T,"merge",{enumerable:!0,get:function(){return tI.merge}});var yS=gS();Object.defineProperty(T,"TimeoutError",{enumerable:!0,get:function(){return yS.TimeoutError}});Object.defineProperty(T,"callWithTimeout",{enumerable:!0,get:function(){return yS.callWithTimeout}});var VS=MS();Object.defineProperty(T,"isUrlIgnored",{enumerable:!0,get:function(){return VS.isUrlIgnored}});Object.defineProperty(T,"urlMatches",{enumerable:!0,get:function(){return VS.urlMatches}});var eI=CS();Object.defineProperty(T,"BindOnceFuture",{enumerable:!0,get:function(){return eI.BindOnceFuture}});var rI=IS();Object.defineProperty(T,"diagLogLevelFromString",{enumerable:!0,get:function(){return rI.diagLogLevelFromString}});var nI=DS();T.internal={_export:nI._export}});var ne={};import*as sv from"async_hooks";var yo=Y(()=>{tt(ne,sv)});var ye={};import*as iv from"events";var lp=Y(()=>{tt(ye,iv)});var vo=S(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.AbstractAsyncHooksContextManager=void 0;var MI=(lp(),b(ye)),PI=["addListener","on","once","prependListener","prependOnceListener"],Vo=class{bind(t,e){return e instanceof MI.EventEmitter?this._bindEventEmitter(t,e):typeof e=="function"?this._bindFunction(t,e):e}_bindFunction(t,e){let n=this,o=function(...s){return n.with(t,()=>e.apply(this,s))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o}_bindEventEmitter(t,e){return this._getPatchMap(e)!==void 0||(this._createPatchMap(e),PI.forEach(o=>{e[o]!==void 0&&(e[o]=this._patchAddListener(e,e[o],t))}),typeof e.removeListener=="function"&&(e.removeListener=this._patchRemoveListener(e,e.removeListener)),typeof e.off=="function"&&(e.off=this._patchRemoveListener(e,e.off)),typeof e.removeAllListeners=="function"&&(e.removeAllListeners=this._patchRemoveAllListeners(e,e.removeAllListeners))),e}_patchRemoveListener(t,e){let n=this;return function(o,s){let i=n._getPatchMap(t)?.[o];if(i===void 0)return e.call(this,o,s);let a=i.get(s);return e.call(this,o,a||s)}}_patchRemoveAllListeners(t,e){let n=this;return function(o){let s=n._getPatchMap(t);return s!==void 0&&(arguments.length===0?n._createPatchMap(t):s[o]!==void 0&&delete s[o]),e.apply(this,arguments)}}_patchAddListener(t,e,n){let o=this;return function(s,i){if(o._wrapped)return e.call(this,s,i);let a=o._getPatchMap(t);a===void 0&&(a=o._createPatchMap(t));let _=a[s];_===void 0&&(_=new WeakMap,a[s]=_);let u=o.bind(n,i);_.set(i,u),o._wrapped=!0;try{return e.call(this,s,u)}finally{o._wrapped=!1}}}_createPatchMap(t){let e=Object.create(null);return t[this._kOtListeners]=e,e}_getPatchMap(t){return t[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};dn.AbstractAsyncHooksContextManager=Vo});var Ap=S(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.AsyncHooksContextManager=void 0;var CI=(d(),b(c)),LI=(yo(),b(ne)),II=vo(),Bo=class extends II.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=LI.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]??CI.ROOT_CONTEXT}with(t,e,n,...o){this._enterContext(t);try{return e.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(t,e){if(e==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(t,n)}_destroy(t){this._contexts.delete(t)}_before(t){let e=this._contexts.get(t);e!==void 0&&this._enterContext(e)}_after(){this._exitContext()}_enterContext(t){this._stack.push(t)}_exitContext(){this._stack.pop()}};mn.AsyncHooksContextManager=Bo});var dp=S(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.AsyncLocalStorageContextManager=void 0;var xI=(d(),b(c)),DI=(yo(),b(ne)),UI=vo(),wo=class extends UI.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new DI.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??xI.ROOT_CONTEXT}with(t,e,n,...o){let s=n==null?e:e.bind(n);return this._asyncLocalStorage.run(t,s,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};fn.AsyncLocalStorageContextManager=wo});var mp=S(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.AsyncLocalStorageContextManager=oe.AsyncHooksContextManager=void 0;var bI=Ap();Object.defineProperty(oe,"AsyncHooksContextManager",{enumerable:!0,get:function(){return bI.AsyncHooksContextManager}});var yI=dp();Object.defineProperty(oe,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return yI.AsyncLocalStorageContextManager}})});var Yp=S(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.toAnyValue=z.toKeyValue=z.toAttributes=z.createInstrumentationScope=z.createResource=void 0;function YI(r){let t={attributes:Fp(r.attributes),droppedAttributesCount:0},e=r.schemaUrl;return e&&e!==""&&(t.schemaUrl=e),t}z.createResource=YI;function kI(r){return{name:r.name,version:r.version}}z.createInstrumentationScope=kI;function Fp(r){return Object.keys(r).map(t=>Yo(t,r[t]))}z.toAttributes=Fp;function Yo(r,t){return{key:r,value:ko(t)}}z.toKeyValue=Yo;function ko(r){let t=typeof r;return t==="string"?{stringValue:r}:t==="number"?Number.isInteger(r)?{intValue:r}:{doubleValue:r}:t==="boolean"?{boolValue:r}:r instanceof Uint8Array?{bytesValue:r}:Array.isArray(r)?{arrayValue:{values:r.map(ko)}}:t==="object"&&r!=null?{kvlistValue:{values:Object.entries(r).map(([e,n])=>Yo(e,n))}}:{}}z.toAnyValue=ko});var Kp=S(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.hexToBinary=void 0;function kp(r){return r>=48&&r<=57?r-48:r>=97&&r<=102?r-87:r-55}function KI(r){let t=new Uint8Array(r.length/2),e=0;for(let n=0;n<r.length;n+=2){let o=kp(r.charCodeAt(n)),s=kp(r.charCodeAt(n+1));t[e++]=o<<4|s}return t}On.hexToBinary=KI});var Xp=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.getOtlpEncoder=Q.encodeAsString=Q.encodeAsLongBits=Q.toLongBits=Q.hrTimeToNanos=void 0;var jI=P(),Ko=Kp();function jo(r){let t=BigInt(1e9);return BigInt(r[0])*t+BigInt(r[1])}Q.hrTimeToNanos=jo;function Wp(r){let t=Number(BigInt.asUintN(32,r)),e=Number(BigInt.asUintN(32,r>>BigInt(32)));return{low:t,high:e}}Q.toLongBits=Wp;function Wo(r){let t=jo(r);return Wp(t)}Q.encodeAsLongBits=Wo;function qp(r){return jo(r).toString()}Q.encodeAsString=qp;var WI=typeof BigInt<"u"?qp:jI.hrTimeToNanoseconds;function jp(r){return r}function $p(r){if(r!==void 0)return(0,Ko.hexToBinary)(r)}var qI={encodeHrTime:Wo,encodeSpanContext:Ko.hexToBinary,encodeOptionalSpanContext:$p};function $I(r){if(r===void 0)return qI;let t=r.useLongBits??!0,e=r.useHex??!1;return{encodeHrTime:t?Wo:WI,encodeSpanContext:e?jp:Ko.hexToBinary,encodeOptionalSpanContext:e?jp:$p}}Q.getOtlpEncoder=$I});var qo=S(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createExportTraceServiceRequest=Tt.toOtlpSpanEvent=Tt.toOtlpLink=Tt.sdkSpanToOtlpSpan=void 0;var ve=Yp(),XI=Xp();function zp(r,t){let e=r.spanContext(),n=r.status,o=r.parentSpanContext?.spanId?t.encodeSpanContext(r.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(e.traceId),spanId:t.encodeSpanContext(e.spanId),parentSpanId:o,traceState:e.traceState?.serialize(),name:r.name,kind:r.kind==null?0:r.kind+1,startTimeUnixNano:t.encodeHrTime(r.startTime),endTimeUnixNano:t.encodeHrTime(r.endTime),attributes:(0,ve.toAttributes)(r.attributes),droppedAttributesCount:r.droppedAttributesCount,events:r.events.map(s=>Jp(s,t)),droppedEventsCount:r.droppedEventsCount,status:{code:n.code,message:n.message},links:r.links.map(s=>Qp(s,t)),droppedLinksCount:r.droppedLinksCount}}Tt.sdkSpanToOtlpSpan=zp;function Qp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],spanId:t.encodeSpanContext(r.context.spanId),traceId:t.encodeSpanContext(r.context.traceId),traceState:r.context.traceState?.serialize(),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpLink=Qp;function Jp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],name:r.name,timeUnixNano:t.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpSpanEvent=Jp;function zI(r,t){let e=(0,XI.getOtlpEncoder)(t);return{resourceSpans:JI(r,e)}}Tt.createExportTraceServiceRequest=zI;function QI(r){let t=new Map;for(let e of r){let n=t.get(e.resource);n||(n=new Map,t.set(e.resource,n));let o=`${e.instrumentationScope.name}@${e.instrumentationScope.version||""}:${e.instrumentationScope.schemaUrl||""}`,s=n.get(o);s||(s=[],n.set(o,s)),s.push(e)}return t}function JI(r,t){let e=QI(r),n=[],o=e.entries(),s=o.next();for(;!s.done;){let[i,a]=s.value,_=[],u=a.values(),E=u.next();for(;!E.done;){let h=E.value;if(h.length>0){let O=h.map(I=>zp(I,t));_.push({scope:(0,ve.createInstrumentationScope)(h[0].instrumentationScope),spans:O,schemaUrl:h[0].instrumentationScope.schemaUrl})}E=u.next()}let p=(0,ve.createResource)(i),A={resource:p,scopeSpans:_,schemaUrl:p.schemaUrl};n.push(A),s=o.next()}return n}});var $o=S(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.JsonTraceSerializer=void 0;var ZI=qo();gn.JsonTraceSerializer={serializeRequest:r=>{let t=(0,ZI.createExportTraceServiceRequest)(r,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:r=>{if(r.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(r))}}});var nl=S((kv,rl)=>{"use strict";rl.exports=nx;function nx(r,t){for(var e=new Array(arguments.length-1),n=0,o=2,s=!0;o<arguments.length;)e[n++]=arguments[o++];return new Promise(function(a,_){e[n]=function(E){if(s)if(s=!1,E)_(E);else{for(var p=new Array(arguments.length-1),A=0;A<p.length;)p[A++]=arguments[A];a.apply(null,p)}};try{r.apply(t||null,e)}catch(u){s&&(s=!1,_(u))}})}});var al=S(il=>{"use strict";var Mn=il;Mn.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&t.charAt(e)==="=";)++n;return Math.ceil(t.length*3)/4-n};var ce=new Array(64),sl=new Array(123);for(rt=0;rt<64;)sl[ce[rt]=rt<26?rt+65:rt<52?rt+71:rt<62?rt-4:rt-59|43]=rt++;var rt;Mn.encode=function(t,e,n){for(var o=null,s=[],i=0,a=0,_;e<n;){var u=t[e++];switch(a){case 0:s[i++]=ce[u>>2],_=(u&3)<<4,a=1;break;case 1:s[i++]=ce[_|u>>4],_=(u&15)<<2,a=2;break;case 2:s[i++]=ce[_|u>>6],s[i++]=ce[u&63],a=0;break}i>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),i=0)}return a&&(s[i++]=ce[_],s[i++]=61,a===1&&(s[i++]=61)),o?(i&&o.push(String.fromCharCode.apply(String,s.slice(0,i))),o.join("")):String.fromCharCode.apply(String,s.slice(0,i))};var ol="invalid encoding";Mn.decode=function(t,e,n){for(var o=n,s=0,i,a=0;a<t.length;){var _=t.charCodeAt(a++);if(_===61&&s>1)break;if((_=sl[_])===void 0)throw Error(ol);switch(s){case 0:i=_,s=1;break;case 1:e[n++]=i<<2|(_&48)>>4,i=_,s=2;break;case 2:e[n++]=(i&15)<<4|(_&60)>>2,i=_,s=3;break;case 3:e[n++]=(i&3)<<6|_,s=0;break}}if(s===1)throw Error(ol);return n-o};Mn.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}});var _l=S((jv,cl)=>{"use strict";cl.exports=Pn;function Pn(){this._listeners={}}Pn.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this};Pn.prototype.off=function(t,e){if(t===void 0)this._listeners={};else if(e===void 0)this._listeners[t]=[];else for(var n=this._listeners[t],o=0;o<n.length;)n[o].fn===e?n.splice(o,1):++o;return this};Pn.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],o=1;o<arguments.length;)n.push(arguments[o++]);for(o=0;o<e.length;)e[o].fn.apply(e[o++].ctx,n)}return this}});var Al=S((Wv,ll)=>{"use strict";ll.exports=ul(ul);function ul(r){return typeof Float32Array<"u"?function(){var t=new Float32Array([-0]),e=new Uint8Array(t.buffer),n=e[3]===128;function o(_,u,E){t[0]=_,u[E]=e[0],u[E+1]=e[1],u[E+2]=e[2],u[E+3]=e[3]}function s(_,u,E){t[0]=_,u[E]=e[3],u[E+1]=e[2],u[E+2]=e[1],u[E+3]=e[0]}r.writeFloatLE=n?o:s,r.writeFloatBE=n?s:o;function i(_,u){return e[0]=_[u],e[1]=_[u+1],e[2]=_[u+2],e[3]=_[u+3],t[0]}function a(_,u){return e[3]=_[u],e[2]=_[u+1],e[1]=_[u+2],e[0]=_[u+3],t[0]}r.readFloatLE=n?i:a,r.readFloatBE=n?a:i}():function(){function t(n,o,s,i){var a=o<0?1:0;if(a&&(o=-o),o===0)n(1/o>0?0:2147483648,s,i);else if(isNaN(o))n(2143289344,s,i);else if(o>34028234663852886e22)n((a<<31|2139095040)>>>0,s,i);else if(o<11754943508222875e-54)n((a<<31|Math.round(o/1401298464324817e-60))>>>0,s,i);else{var _=Math.floor(Math.log(o)/Math.LN2),u=Math.round(o*Math.pow(2,-_)*8388608)&8388607;n((a<<31|_+127<<23|u)>>>0,s,i)}}r.writeFloatLE=t.bind(null,El),r.writeFloatBE=t.bind(null,Tl);function e(n,o,s){var i=n(o,s),a=(i>>31)*2+1,_=i>>>23&255,u=i&8388607;return _===255?u?NaN:a*(1/0):_===0?a*1401298464324817e-60*u:a*Math.pow(2,_-150)*(u+8388608)}r.readFloatLE=e.bind(null,Sl),r.readFloatBE=e.bind(null,pl)}(),typeof Float64Array<"u"?function(){var t=new Float64Array([-0]),e=new Uint8Array(t.buffer),n=e[7]===128;function o(_,u,E){t[0]=_,u[E]=e[0],u[E+1]=e[1],u[E+2]=e[2],u[E+3]=e[3],u[E+4]=e[4],u[E+5]=e[5],u[E+6]=e[6],u[E+7]=e[7]}function s(_,u,E){t[0]=_,u[E]=e[7],u[E+1]=e[6],u[E+2]=e[5],u[E+3]=e[4],u[E+4]=e[3],u[E+5]=e[2],u[E+6]=e[1],u[E+7]=e[0]}r.writeDoubleLE=n?o:s,r.writeDoubleBE=n?s:o;function i(_,u){return e[0]=_[u],e[1]=_[u+1],e[2]=_[u+2],e[3]=_[u+3],e[4]=_[u+4],e[5]=_[u+5],e[6]=_[u+6],e[7]=_[u+7],t[0]}function a(_,u){return e[7]=_[u],e[6]=_[u+1],e[5]=_[u+2],e[4]=_[u+3],e[3]=_[u+4],e[2]=_[u+5],e[1]=_[u+6],e[0]=_[u+7],t[0]}r.readDoubleLE=n?i:a,r.readDoubleBE=n?a:i}():function(){function t(n,o,s,i,a,_){var u=i<0?1:0;if(u&&(i=-i),i===0)n(0,a,_+o),n(1/i>0?0:2147483648,a,_+s);else if(isNaN(i))n(0,a,_+o),n(2146959360,a,_+s);else if(i>17976931348623157e292)n(0,a,_+o),n((u<<31|2146435072)>>>0,a,_+s);else{var E;if(i<22250738585072014e-324)E=i/5e-324,n(E>>>0,a,_+o),n((u<<31|E/4294967296)>>>0,a,_+s);else{var p=Math.floor(Math.log(i)/Math.LN2);p===1024&&(p=1023),E=i*Math.pow(2,-p),n(E*4503599627370496>>>0,a,_+o),n((u<<31|p+1023<<20|E*1048576&1048575)>>>0,a,_+s)}}}r.writeDoubleLE=t.bind(null,El,0,4),r.writeDoubleBE=t.bind(null,Tl,4,0);function e(n,o,s,i,a){var _=n(i,a+o),u=n(i,a+s),E=(u>>31)*2+1,p=u>>>20&2047,A=4294967296*(u&1048575)+_;return p===2047?A?NaN:E*(1/0):p===0?E*5e-324*A:E*Math.pow(2,p-1075)*(A+4503599627370496)}r.readDoubleLE=e.bind(null,Sl,0,4),r.readDoubleBE=e.bind(null,pl,4,0)}(),r}function El(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}function Tl(r,t,e){t[e]=r>>>24,t[e+1]=r>>>16&255,t[e+2]=r>>>8&255,t[e+3]=r&255}function Sl(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24)>>>0}function pl(r,t){return(r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3])>>>0}});var ml=S((qv,dl)=>{"use strict";dl.exports=ox;function ox(r){return null}});var hl=S(fl=>{"use strict";var zo=fl;zo.length=function(t){for(var e=0,n=0,o=0;o<t.length;++o)n=t.charCodeAt(o),n<128?e+=1:n<2048?e+=2:(n&64512)===55296&&(t.charCodeAt(o+1)&64512)===56320?(++o,e+=4):e+=3;return e};zo.read=function(t,e,n){var o=n-e;if(o<1)return"";for(var s=null,i=[],a=0,_;e<n;)_=t[e++],_<128?i[a++]=_:_>191&&_<224?i[a++]=(_&31)<<6|t[e++]&63:_>239&&_<365?(_=((_&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[a++]=55296+(_>>10),i[a++]=56320+(_&1023)):i[a++]=(_&15)<<12|(t[e++]&63)<<6|t[e++]&63,a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),a=0);return s?(a&&s.push(String.fromCharCode.apply(String,i.slice(0,a))),s.join("")):String.fromCharCode.apply(String,i.slice(0,a))};zo.write=function(t,e,n){for(var o=n,s,i,a=0;a<t.length;++a)s=t.charCodeAt(a),s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&((i=t.charCodeAt(a+1))&64512)===56320?(s=65536+((s&1023)<<10)+(i&1023),++a,e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128);return n-o}});var Ol=S((Xv,Rl)=>{"use strict";Rl.exports=sx;function sx(r,t,e){var n=e||8192,o=n>>>1,s=null,i=n;return function(_){if(_<1||_>o)return r(_);i+_>n&&(s=r(n),i=0);var u=t.call(s,i,i+=_);return i&7&&(i=(i|7)+1),u}}});var Nl=S((zv,gl)=>{"use strict";gl.exports=U;var Be=Mt();function U(r,t){this.lo=r>>>0,this.hi=t>>>0}var Vt=U.zero=new U(0,0);Vt.toNumber=function(){return 0};Vt.zzEncode=Vt.zzDecode=function(){return this};Vt.length=function(){return 1};var ix=U.zeroHash="\0\0\0\0\0\0\0\0";U.fromNumber=function(t){if(t===0)return Vt;var e=t<0;e&&(t=-t);var n=t>>>0,o=(t-n)/4294967296>>>0;return e&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new U(n,o)};U.from=function(t){if(typeof t=="number")return U.fromNumber(t);if(Be.isString(t))if(Be.Long)t=Be.Long.fromString(t);else return U.fromNumber(parseInt(t,10));return t.low||t.high?new U(t.low>>>0,t.high>>>0):Vt};U.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+n*4294967296)}return this.lo+this.hi*4294967296};U.prototype.toLong=function(t){return Be.Long?new Be.Long(this.lo|0,this.hi|0,!!t):{low:this.lo|0,high:this.hi|0,unsigned:!!t}};var Nt=String.prototype.charCodeAt;U.fromHash=function(t){return t===ix?Vt:new U((Nt.call(t,0)|Nt.call(t,1)<<8|Nt.call(t,2)<<16|Nt.call(t,3)<<24)>>>0,(Nt.call(t,4)|Nt.call(t,5)<<8|Nt.call(t,6)<<16|Nt.call(t,7)<<24)>>>0)};U.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};U.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this};U.prototype.zzDecode=function(){var t=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this};U.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?e===0?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}});var Mt=S(Qo=>{"use strict";var l=Qo;l.asPromise=nl();l.base64=al();l.EventEmitter=_l();l.float=Al();l.inquire=ml();l.utf8=hl();l.pool=Ol();l.LongBits=Nl();l.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);l.global=l.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Qo;l.emptyArray=Object.freeze?Object.freeze([]):[];l.emptyObject=Object.freeze?Object.freeze({}):{};l.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};l.isString=function(t){return typeof t=="string"||t instanceof String};l.isObject=function(t){return t&&typeof t=="object"};l.isset=l.isSet=function(t,e){var n=t[e];return n!=null&&t.hasOwnProperty(e)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};l.Buffer=function(){try{var r=l.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();l._Buffer_from=null;l._Buffer_allocUnsafe=null;l.newBuffer=function(t){return typeof t=="number"?l.Buffer?l._Buffer_allocUnsafe(t):new l.Array(t):l.Buffer?l._Buffer_from(t):typeof Uint8Array>"u"?t:new Uint8Array(t)};l.Array=typeof Uint8Array<"u"?Uint8Array:Array;l.Long=l.global.dcodeIO&&l.global.dcodeIO.Long||l.global.Long||l.inquire("long");l.key2Re=/^true|false|0|1$/;l.key32Re=/^-?(?:0|[1-9][0-9]*)$/;l.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;l.longToHash=function(t){return t?l.LongBits.from(t).toHash():l.LongBits.zeroHash};l.longFromHash=function(t,e){var n=l.LongBits.fromHash(t);return l.Long?l.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)};function Ml(r,t,e){for(var n=Object.keys(t),o=0;o<n.length;++o)(r[n[o]]===void 0||!e)&&(r[n[o]]=t[n[o]]);return r}l.merge=Ml;l.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)};function Pl(r){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&Ml(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return r},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}l.newError=Pl;l.ProtocolError=Pl("ProtocolError");l.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var o=Object.keys(this),s=o.length-1;s>-1;--s)if(e[o[s]]===1&&this[o[s]]!==void 0&&this[o[s]]!==null)return o[s]}};l.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}};l.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};l._configure=function(){var r=l.Buffer;if(!r){l._Buffer_from=l._Buffer_allocUnsafe=null;return}l._Buffer_from=r.from!==Uint8Array.from&&r.from||function(e,n){return new r(e,n)},l._Buffer_allocUnsafe=r.allocUnsafe||function(e){return new r(e)}}});var os=S((Jv,xl)=>{"use strict";xl.exports=m;var J=Mt(),Jo,Cn=J.LongBits,Cl=J.base64,Ll=J.utf8;function we(r,t,e){this.fn=r,this.len=t,this.next=void 0,this.val=e}function ts(){}function ax(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function m(){this.len=0,this.head=new we(ts,0,0),this.tail=this.head,this.states=null}var Il=function(){return J.Buffer?function(){return(m.create=function(){return new Jo})()}:function(){return new m}};m.create=Il();m.alloc=function(t){return new J.Array(t)};J.Array!==Array&&(m.alloc=J.pool(m.alloc,J.Array.prototype.subarray));m.prototype._push=function(t,e,n){return this.tail=this.tail.next=new we(t,e,n),this.len+=e,this};function es(r,t,e){t[e]=r&255}function cx(r,t,e){for(;r>127;)t[e++]=r&127|128,r>>>=7;t[e]=r}function rs(r,t){this.len=r,this.next=void 0,this.val=t}rs.prototype=Object.create(we.prototype);rs.prototype.fn=cx;m.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new rs((t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this};m.prototype.int32=function(t){return t<0?this._push(ns,10,Cn.fromNumber(t)):this.uint32(t)};m.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)};function ns(r,t,e){for(;r.hi;)t[e++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)t[e++]=r.lo&127|128,r.lo=r.lo>>>7;t[e++]=r.lo}m.prototype.uint64=function(t){var e=Cn.from(t);return this._push(ns,e.length(),e)};m.prototype.int64=m.prototype.uint64;m.prototype.sint64=function(t){var e=Cn.from(t).zzEncode();return this._push(ns,e.length(),e)};m.prototype.bool=function(t){return this._push(es,1,t?1:0)};function Zo(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}m.prototype.fixed32=function(t){return this._push(Zo,4,t>>>0)};m.prototype.sfixed32=m.prototype.fixed32;m.prototype.fixed64=function(t){var e=Cn.from(t);return this._push(Zo,4,e.lo)._push(Zo,4,e.hi)};m.prototype.sfixed64=m.prototype.fixed64;m.prototype.float=function(t){return this._push(J.float.writeFloatLE,4,t)};m.prototype.double=function(t){return this._push(J.float.writeDoubleLE,8,t)};var _x=J.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var o=0;o<t.length;++o)e[n+o]=t[o]};m.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(es,1,0);if(J.isString(t)){var n=m.alloc(e=Cl.length(t));Cl.decode(t,n,0),t=n}return this.uint32(e)._push(_x,e,t)};m.prototype.string=function(t){var e=Ll.length(t);return e?this.uint32(e)._push(Ll.write,e,t):this._push(es,1,0)};m.prototype.fork=function(){return this.states=new ax(this),this.head=this.tail=new we(ts,0,0),this.len=0,this};m.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new we(ts,0,0),this.len=0),this};m.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this};m.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e};m._configure=function(r){Jo=r,m.create=Il(),Jo._configure()}});var bl=S((Zv,Ul)=>{"use strict";Ul.exports=St;var Dl=os();(St.prototype=Object.create(Dl.prototype)).constructor=St;var Pt=Mt();function St(){Dl.call(this)}St._configure=function(){St.alloc=Pt._Buffer_allocUnsafe,St.writeBytesBuffer=Pt.Buffer&&Pt.Buffer.prototype instanceof Uint8Array&&Pt.Buffer.prototype.set.name==="set"?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var o=0;o<t.length;)e[n++]=t[o++]}};St.prototype.bytes=function(t){Pt.isString(t)&&(t=Pt._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(St.writeBytesBuffer,e,t),this};function ux(r,t,e){r.length<40?Pt.utf8.write(r,t,e):t.utf8Write?t.utf8Write(r,e):t.write(r,e)}St.prototype.string=function(t){var e=Pt.Buffer.byteLength(t);return this.uint32(e),e&&this._push(ux,e,t),this};St._configure()});var as=S((tB,wl)=>{"use strict";wl.exports=L;var nt=Mt(),is,vl=nt.LongBits,Ex=nt.utf8;function ot(r,t){return RangeError("index out of range: "+r.pos+" + "+(t||1)+" > "+r.len)}function L(r){this.buf=r,this.pos=0,this.len=r.length}var yl=typeof Uint8Array<"u"?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new L(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new L(t);throw Error("illegal buffer")},Bl=function(){return nt.Buffer?function(e){return(L.create=function(o){return nt.Buffer.isBuffer(o)?new is(o):yl(o)})(e)}:yl};L.create=Bl();L.prototype._slice=nt.Array.prototype.subarray||nt.Array.prototype.slice;L.prototype.uint32=function(){var t=4294967295;return function(){if(t=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(t=(t|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,ot(this,10);return t}}();L.prototype.int32=function(){return this.uint32()|0};L.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(t&1)|0};function ss(){var r=new vl(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw ot(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,r}if(this.len-this.pos>4){for(;t<5;++t)if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}else for(;t<5;++t){if(this.pos>=this.len)throw ot(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}L.prototype.bool=function(){return this.uint32()!==0};function Ln(r,t){return(r[t-4]|r[t-3]<<8|r[t-2]<<16|r[t-1]<<24)>>>0}L.prototype.fixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Ln(this.buf,this.pos+=4)};L.prototype.sfixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Ln(this.buf,this.pos+=4)|0};function Vl(){if(this.pos+8>this.len)throw ot(this,8);return new vl(Ln(this.buf,this.pos+=4),Ln(this.buf,this.pos+=4))}L.prototype.float=function(){if(this.pos+4>this.len)throw ot(this,4);var t=nt.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t};L.prototype.double=function(){if(this.pos+8>this.len)throw ot(this,4);var t=nt.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t};L.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw ot(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var o=nt.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)};L.prototype.string=function(){var t=this.bytes();return Ex.read(t,0,t.length)};L.prototype.skip=function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw ot(this,t);this.pos+=t}else do if(this.pos>=this.len)throw ot(this);while(this.buf[this.pos++]&128);return this};L.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};L._configure=function(r){is=r,L.create=Bl(),is._configure();var t=nt.Long?"toLong":"toNumber";nt.merge(L.prototype,{int64:function(){return ss.call(this)[t](!1)},uint64:function(){return ss.call(this)[t](!0)},sint64:function(){return ss.call(this).zzDecode()[t](!1)},fixed64:function(){return Vl.call(this)[t](!0)},sfixed64:function(){return Vl.call(this)[t](!1)}})}});var Yl=S((eB,Fl)=>{"use strict";Fl.exports=vt;var Hl=as();(vt.prototype=Object.create(Hl.prototype)).constructor=vt;var Gl=Mt();function vt(r){Hl.call(this,r)}vt._configure=function(){Gl.Buffer&&(vt.prototype._slice=Gl.Buffer.prototype.slice)};vt.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))};vt._configure()});var Kl=S((rB,kl)=>{"use strict";kl.exports=Ge;var cs=Mt();(Ge.prototype=Object.create(cs.EventEmitter.prototype)).constructor=Ge;function Ge(r,t,e){if(typeof r!="function")throw TypeError("rpcImpl must be a function");cs.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!t,this.responseDelimited=!!e}Ge.prototype.rpcCall=function r(t,e,n,o,s){if(!o)throw TypeError("request must be specified");var i=this;if(!s)return cs.asPromise(r,i,t,e,n,o);if(!i.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return i.rpcImpl(t,e[i.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(_,u){if(_)return i.emit("error",_,t),s(_);if(u===null){i.end(!0);return}if(!(u instanceof n))try{u=n[i.responseDelimited?"decodeDelimited":"decode"](u)}catch(E){return i.emit("error",E,t),s(E)}return i.emit("data",u,t),s(null,u)})}catch(a){i.emit("error",a,t),setTimeout(function(){s(a)},0);return}};Ge.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Wl=S(jl=>{"use strict";var Tx=jl;Tx.Service=Kl()});var $l=S((oB,ql)=>{"use strict";ql.exports={}});var Ql=S(zl=>{"use strict";var H=zl;H.build="minimal";H.Writer=os();H.BufferWriter=bl();H.Reader=as();H.BufferReader=Yl();H.util=Mt();H.rpc=Wl();H.roots=$l();H.configure=Xl;function Xl(){H.util._configure(),H.Writer._configure(H.BufferWriter),H.Reader._configure(H.BufferReader)}Xl()});var Zl=S((iB,Jl)=>{"use strict";Jl.exports=Ql()});var jS=R(P());d();d();var Or=R(P());Ae();function so(){return"unknown_service"}var kt=r=>r!==null&&typeof r=="object"&&typeof r.then=="function";var gr=class r{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,e){let n=new r({},e);return n._rawAttributes=vS(t),n._asyncAttributesPending=t.filter(([o,s])=>kt(s)).length>0,n}constructor(t,e){let n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,s])=>(kt(s)&&(this._asyncAttributesPending=!0),[o,s])),this._rawAttributes=vS(this._rawAttributes),this._schemaUrl=oI(e?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){let[e,n]=this._rawAttributes[t];this._rawAttributes[t]=[e,kt(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&c.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let t={};for(let[e,n]of this._rawAttributes){if(kt(n)){c.diag.debug(`Unsettled resource attribute ${e} skipped`);continue}n!=null&&(t[e]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let e=sI(this,t),n=e?{schemaUrl:e}:void 0;return r.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}};function he(r,t){return gr.FromAttributeList(Object.entries(r),t)}function BS(r,t){return new gr(r,t)}function Nr(){return he({})}function Dt(){return he({[le]:so(),[Ze]:Or.SDK_INFO[Ze],[tr]:Or.SDK_INFO[tr],[er]:Or.SDK_INFO[er]})}function vS(r){return r.map(([t,e])=>kt(e)?[t,e.catch(n=>{c.diag.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,e])}function oI(r){if(typeof r=="string"||r===void 0)return r;c.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",r)}function sI(r,t){let e=r?.schemaUrl,n=t?.schemaUrl,o=e===void 0||e==="",s=n===void 0||n==="";if(o)return n;if(s||e===n)return e;c.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',e,n)}var io=(r={})=>(r.detectors||[]).map(e=>{try{let n=BS(e.detect(r));return c.diag.debug(`${e.constructor.name} found resource.`,n),n}catch(n){return c.diag.debug(`${e.constructor.name} failed: ${n.message}`),Nr()}}).reduce((e,n)=>e.merge(n),Nr());d();Ae();var ao=R(P()),co=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(t){let e={},n=(0,ao.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),o=(0,ao.getStringFromEnv)("OTEL_SERVICE_NAME");if(n)try{let s=this._parseResourceAttributes(n);Object.assign(e,s)}catch(s){c.diag.debug(`EnvDetector failed: ${s.message}`)}return o&&(e[le]=o),{attributes:e}}_parseResourceAttributes(t){if(!t)return{};let e={},n=t.split(this._COMMA_SEPARATOR,-1);for(let o of n){let s=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(s.length!==2)continue;let[i,a]=s;if(i=i.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);e[i]=decodeURIComponent(a)}return e}_isValid(t){return t.length<=this._MAX_LENGTH&&this._isBaggageOctetString(t)}_isBaggageOctetString(t){for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(t){return t.length>0&&this._isValid(t)}},Mr=new co;d();var Kt=R(P());d();var N=R(P());Ae();var wS="exception";var Pr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:c.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){let e=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=N.otperformance.now(),this._performanceOffset=e-(this._performanceStartTime+(0,N.getTimeOrigin)()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??e),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,e){if(e==null||this._isSpanEnded())return this;if(t.length===0)return c.diag.warn(`Invalid attribute key: ${t}`),this;if(!(0,N.isAttributeValue)(e))return c.diag.warn(`Invalid attribute value set for key: ${t}`),this;let{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this)}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}addEvent(t,e,n){if(this._isSpanEnded())return this;let{eventCountLimit:o}=this._spanLimits;if(o===0)return c.diag.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&c.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,N.isTimeInput)(e)&&((0,N.isTimeInput)(n)||(n=e),e=void 0);let s=(0,N.sanitizeAttributes)(e);return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(c.diag.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){c.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=(0,N.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(c.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]),this._droppedEventsCount>0&&c.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=N.otperformance.now())return(0,N.hrTime)(t+this._performanceOffset);if(typeof t=="number")return(0,N.millisToHrTime)(t);if(t instanceof Date)return(0,N.millisToHrTime)(t.getTime());if((0,N.isTimeInputHrTime)(t))return t;if(this._startTimeProvided)return(0,N.millisToHrTime)(Date.now());let e=N.otperformance.now()-this._performanceStartTime;return(0,N.addHrTimes)(this.startTime,(0,N.millisToHrTime)(e))}isRecording(){return this._ended===!1}recordException(t,e){let n={};typeof t=="string"?n[Se]=t:t&&(t.code?n[pe]=t.code.toString():t.name&&(n[pe]=t.name),t.message&&(n[Se]=t.message),t.stack&&(n[Kn]=t.stack)),n[pe]||n[Se]?this.addEvent(wS,n,e):c.diag.warn(`Failed to record an exception ${t}`)}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 t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);c.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_truncateToSize(t){let e=this._attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}};d();var W=R(P());var lt;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(lt||(lt={}));var K=class{shouldSample(){return{decision:lt.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var B=class{shouldSample(){return{decision:lt.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};d();var GS=R(P());var j=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||((0,GS.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new B),this._remoteParentSampled=t.remoteParentSampled??new B,this._remoteParentNotSampled=t.remoteParentNotSampled??new K,this._localParentSampled=t.localParentSampled??new B,this._localParentNotSampled=t.localParentNotSampled??new K}shouldSample(t,e,n,o,s,i){let a=c.trace.getSpanContext(t);return!a||!(0,c.isSpanContextValid)(a)?this._root.shouldSample(t,e,n,o,s,i):a.isRemote?a.traceFlags&c.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,s,i):this._remoteParentNotSampled.shouldSample(t,e,n,o,s,i):a.traceFlags&c.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,s,i):this._localParentNotSampled.shouldSample(t,e,n,o,s,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};d();var At=class{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,e){return{decision:(0,c.isValidTraceId)(e)&&this._accumulate(e)<this._upperBound?lt.RECORD_AND_SAMPLED:lt.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let n=0;n<t.length/8;n++){let o=n*8,s=parseInt(t.slice(o,o+8),16);e=(e^s)>>>0}return e}};var at;(function(r){r.AlwaysOff="always_off",r.AlwaysOn="always_on",r.ParentBasedAlwaysOff="parentbased_always_off",r.ParentBasedAlwaysOn="parentbased_always_on",r.ParentBasedTraceIdRatio="parentbased_traceidratio",r.TraceIdRatio="traceidratio"})(at||(at={}));var Cr=1;function Lr(){return{sampler:_o(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,W.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,W.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,W.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,W.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,W.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,W.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,W.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,W.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function _o(){let r=(0,W.getStringFromEnv)("OTEL_TRACES_SAMPLER")??at.ParentBasedAlwaysOn;switch(r){case at.AlwaysOn:return new B;case at.AlwaysOff:return new K;case at.ParentBasedAlwaysOn:return new j({root:new B});case at.ParentBasedAlwaysOff:return new j({root:new K});case at.TraceIdRatio:return new At(HS());case at.ParentBasedTraceIdRatio:return new j({root:new At(HS())});default:return c.diag.error(`OTEL_TRACES_SAMPLER value "${r}" invalid, defaulting to "${at.ParentBasedAlwaysOn}".`),new j({root:new B})}}function HS(){let r=(0,W.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return r==null?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Cr}.`),Cr):r<0||r>1?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r} was given, but it is out of range ([0..1]), defaulting to ${Cr}.`),Cr):r}var Re=R(P()),iI=128,aI=1/0;function FS(r){let t={sampler:_o()},e=Lr(),n=Object.assign({},e,t,r);return n.generalLimits=Object.assign({},e.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},e.spanLimits,r.spanLimits||{}),n}function YS(r){let t=Object.assign({},r.spanLimits);return t.attributeCountLimit=r.spanLimits?.attributeCountLimit??r.generalLimits?.attributeCountLimit??(0,Re.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,Re.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??iI,t.attributeValueLengthLimit=r.spanLimits?.attributeValueLengthLimit??r.generalLimits?.attributeValueLengthLimit??(0,Re.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,Re.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??aI,Object.assign({},r,{spanLimits:t})}d();var v=R(P()),Ir=class{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,e){this._exporter=t,this._maxExportBatchSize=typeof e?.maxExportBatchSize=="number"?e.maxExportBatchSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof e?.maxQueueSize=="number"?e.maxQueueSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof e?.scheduledDelayMillis=="number"?e.scheduledDelayMillis:(0,v.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis=typeof e?.exportTimeoutMillis=="number"?e.exportTimeoutMillis:(0,v.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new v.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(c.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,e){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&c.TraceFlags.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&c.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(c.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,e)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let s=0,i=o;s<i;s++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(e)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,e)=>{let n=setTimeout(()=>{e(new Error("Timeout"))},this._exportTimeoutMillis);c.context.with((0,v.suppressTracing)(c.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let s=()=>this._exporter.export(o,a=>{clearTimeout(n),a.code===v.ExportResultCode.SUCCESS?t():e(a.error??new Error("BatchSpanProcessor: span export failed"))}),i=null;for(let a=0,_=o.length;a<_;a++){let u=o[a];u.resource.asyncAttributesPending&&u.resource.waitForAsyncAttributes&&(i??=[],i.push(u.resource.waitForAsyncAttributes()))}i===null?s():Promise.all(i).then(s,a=>{(0,v.globalErrorHandler)(a),e(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,v.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),(0,v.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};var uo=R(P()),dt=class extends Ir{_visibilityChangeListener;_pageHideListener;constructor(t,e){super(t,e),this.onInit(e)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(e=>{(0,uo.globalErrorHandler)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,uo.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}};var Rt=class{generateTraceId=kS(16);generateSpanId=kS(8)},xr=Array(32);function kS(r){return function(){for(let e=0;e<r*2;e++)xr[e]=Math.floor(Math.random()*16)+48,xr[e]>=58&&(xr[e]+=39);return String.fromCharCode.apply(null,xr.slice(0,r*2))}}var Dr=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,e,n,o){let s=FS(e);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=e.idGenerator||new Rt,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,e={},n=c.context.active()){e.root&&(n=c.trace.deleteSpan(n));let o=c.trace.getSpan(n);if((0,Kt.isTracingSuppressed)(n))return c.diag.debug("Instrumentation suppressed, returning Noop Span"),c.trace.wrapSpanContext(c.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),i=this._idGenerator.generateSpanId(),a,_,u;!s||!c.trace.isSpanContextValid(s)?_=this._idGenerator.generateTraceId():(_=s.traceId,u=s.traceState,a=s);let E=e.kind??c.SpanKind.INTERNAL,p=(e.links??[]).map(Z=>({context:Z.context,attributes:(0,Kt.sanitizeAttributes)(Z.attributes)})),A=(0,Kt.sanitizeAttributes)(e.attributes),h=this._sampler.shouldSample(n,_,t,E,A,p);u=h.traceState??u;let O=h.decision===c.SamplingDecision.RECORD_AND_SAMPLED?c.TraceFlags.SAMPLED:c.TraceFlags.NONE,I={traceId:_,spanId:i,traceFlags:O,traceState:u};if(h.decision===c.SamplingDecision.NOT_RECORD)return c.diag.debug("Recording is off, propagating context in a non-recording span"),c.trace.wrapSpanContext(I);let x=(0,Kt.sanitizeAttributes)(Object.assign(A,h.attributes));return new Pr({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:I,name:t,kind:E,links:p,parentSpanContext:a,attributes:x,startTime:e.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,e,n,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=e:arguments.length===3?(s=e,a=n):(s=e,i=n,a=o);let _=i??c.context.active(),u=this.startSpan(t,s,_),E=c.trace.setSpan(_,u);return c.context.with(E,a,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var KS=R(P()),Ur=class{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){let t=[];for(let e of this._spanProcessors)t.push(e.forceFlush());return new Promise(e=>{Promise.all(t).then(()=>{e()}).catch(n=>{(0,KS.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),e()})})}onStart(t,e){for(let n of this._spanProcessors)n.onStart(t,e)}onEnd(t){for(let e of this._spanProcessors)e.onEnd(t)}shutdown(){let t=[];for(let e of this._spanProcessors)t.push(e.shutdown());return new Promise((e,n)=>{Promise.all(t).then(()=>{e()},n)})}};var Ut;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(Ut||(Ut={}));var Oe=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){let e=(0,jS.merge)({},Lr(),YS(t));this._resource=e.resource??Dt(),this._config=Object.assign({},e,{resource:this._resource});let n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Ur(n)}getTracer(t,e,n){let o=`${t}@${e||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Dr({name:t,version:e,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){let t=this._config.forceFlushTimeoutMillis,e=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let s,i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),s=Ut.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),s!==Ut.timeout&&(s=Ut.resolved,o(s))}).catch(a=>{clearTimeout(i),s=Ut.error,o(a)})}));return new Promise((n,o)=>{Promise.all(e).then(s=>{let i=s.filter(a=>a!==Ut.resolved);i.length>0?o(i):n()}).catch(s=>o([s]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};d();var q={};tt(q,Ab);import*as Ab from"@opentelemetry/api-logs";d();function WS(r,t,e,n){for(let o=0,s=r.length;o<s;o++){let i=r[o];t&&i.setTracerProvider(t),e&&i.setMeterProvider(e),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function qS(r){r.forEach(t=>t.disable())}function Eo(r){let t=r.tracerProvider||c.trace.getTracerProvider(),e=r.meterProvider||c.metrics.getMeterProvider(),n=r.loggerProvider||q.logs.getLoggerProvider(),o=r.instrumentations?.flat()??[];return WS(o,t,e,n),()=>{qS(o)}}d();var wr=R(P());d();d();var jt=R(P()),br=class{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(t){this._isLogRecordReadonly()||(this._severityText=t)}get severityText(){return this._severityText}set severityNumber(t){this._isLogRecordReadonly()||(this._severityNumber=t)}get severityNumber(){return this._severityNumber}set body(t){this._isLogRecordReadonly()||(this._body=t)}get body(){return this._body}get eventName(){return this._eventName}set eventName(t){this._isLogRecordReadonly()||(this._eventName=t)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(t,e,n){let{timestamp:o,observedTimestamp:s,eventName:i,severityNumber:a,severityText:_,body:u,attributes:E={},context:p}=n,A=Date.now();if(this.hrTime=(0,jt.timeInputToHrTime)(o??A),this.hrTimeObserved=(0,jt.timeInputToHrTime)(s??A),p){let h=c.trace.getSpanContext(p);h&&c.isSpanContextValid(h)&&(this.spanContext=h)}this.severityNumber=a,this.severityText=_,this.body=u,this.resource=t.resource,this.instrumentationScope=e,this._logRecordLimits=t.logRecordLimits,this._eventName=i,this.setAttributes(E)}setAttribute(t,e){return this._isLogRecordReadonly()?this:e===null?this:t.length===0?(c.diag.warn(`Invalid attribute key: ${t}`),this):!(0,jt.isAttributeValue)(e)&&!(typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0)?(c.diag.warn(`Invalid attribute value set for key: ${t}`),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&c.diag.warn("Dropping extra attributes."),this):((0,jt.isAttributeValue)(e)?this.attributes[t]=this._truncateToSize(e):this.attributes[t]=e,this))}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}setBody(t){return this.body=t,this}setEventName(t){return this.eventName=t,this}setSeverityNumber(t){return this.severityNumber=t,this}setSeverityText(t){return this.severityText=t,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(t){let e=this._logRecordLimits.attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_isLogRecordReadonly(){return this._isReadonly&&c.diag.warn("Can not execute the operation on emitted log record"),this._isReadonly}};var yr=class{instrumentationScope;_sharedState;constructor(t,e){this.instrumentationScope=t,this._sharedState=e}emit(t){let e=t.context||c.context.active(),n=new br(this._sharedState,this.instrumentationScope,{context:e,...t});this._sharedState.activeProcessor.onEmit(n,e),n._makeReadonly()}};var bt=R(P());function $S(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:(0,bt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,bt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??128},includeTraceContext:!0}}function XS(r){return{attributeCountLimit:r.attributeCountLimit??(0,bt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??(0,bt.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,attributeValueLengthLimit:r.attributeValueLengthLimit??(0,bt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,bt.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0}}var Vr=class{forceFlush(){return Promise.resolve()}onEmit(t,e){}shutdown(){return Promise.resolve()}};var zS=R(P()),vr=class{processors;forceFlushTimeoutMillis;constructor(t,e){this.processors=t,this.forceFlushTimeoutMillis=e}async forceFlush(){let t=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(e=>(0,zS.callWithTimeout)(e.forceFlush(),t)))}onEmit(t,e){this.processors.forEach(n=>n.onEmit(t,e))}async shutdown(){await Promise.all(this.processors.map(t=>t.shutdown()))}};var Br=class{resource;forceFlushTimeoutMillis;logRecordLimits;processors;loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];constructor(t,e,n,o){this.resource=t,this.forceFlushTimeoutMillis=e,this.logRecordLimits=n,this.processors=o,o.length>0?(this.registeredLogRecordProcessors=o,this.activeProcessor=new vr(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new Vr}};var cI="unknown",ge=class{_shutdownOnce;_sharedState;constructor(t={}){let e=(0,wr.merge)({},$S(),t),n=t.resource??Dt();this._sharedState=new Br(n,e.forceFlushTimeoutMillis,XS(e.logRecordLimits),t?.processors??[]),this._shutdownOnce=new wr.BindOnceFuture(this._shutdown,this)}getLogger(t,e,n){if(this._shutdownOnce.isCalled)return c.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),q.NOOP_LOGGER;t||c.diag.warn("Logger requested without instrumentation scope name.");let o=t||cI,s=`${o}@${e||""}:${n?.schemaUrl||""}`;return this._sharedState.loggers.has(s)||this._sharedState.loggers.set(s,new yr({name:o,version:e,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(s)}forceFlush(){return this._shutdownOnce.isCalled?(c.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(c.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};var Gr;(function(r){r[r.DELTA=0]="DELTA",r[r.CUMULATIVE=1]="CUMULATIVE"})(Gr||(Gr={}));var f;(function(r){r.COUNTER="COUNTER",r.GAUGE="GAUGE",r.HISTOGRAM="HISTOGRAM",r.UP_DOWN_COUNTER="UP_DOWN_COUNTER",r.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",r.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",r.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(f||(f={}));var ct;(function(r){r[r.HISTOGRAM=0]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",r[r.GAUGE=2]="GAUGE",r[r.SUM=3]="SUM"})(ct||(ct={}));function QS(r){return r!=null}function Hr(r){let t=Object.keys(r);return t.length===0?"":(t=t.sort(),JSON.stringify(t.map(e=>[e,r[e]])))}function JS(r){return`${r.name}:${r.version??""}:${r.schemaUrl??""}`}var To=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};function So(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new To("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}async function ZS(r){return Promise.all(r.map(async t=>{try{return{status:"fulfilled",value:await t}}catch(e){return{status:"rejected",reason:e}}}))}function tp(r){return r.status==="rejected"}function ep(r,t){if(r.size!==t.size)return!1;for(let e of r)if(!t.has(e))return!1;return!0}function rp(r,t){let e=0,n=r.length-1,o=r.length;for(;n>=e;){let s=e+Math.trunc((n-e)/2);r[s]<t?e=s+1:(o=s,n=s-1)}return o}function np(r,t){return r.toLowerCase()===t.toLowerCase()}d();var $;(function(r){r[r.DROP=0]="DROP",r[r.SUM=1]="SUM",r[r.LAST_VALUE=2]="LAST_VALUE",r[r.HISTOGRAM=3]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})($||($={}));var Ne=class{kind=$.DROP;createAccumulation(){}merge(t,e){}diff(t,e){}toMetricData(t,e,n,o){}};function _I(r){let t=r.map(()=>0);return t.push(0),{buckets:{boundaries:r,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var Wt=class{startTime;_boundaries;_recordMinMax;_current;constructor(t,e,n=!0,o=_I(e)){this.startTime=t,this._boundaries=e,this._recordMinMax=n,this._current=o}record(t){if(Number.isNaN(t))return;this._current.count+=1,this._current.sum+=t,this._recordMinMax&&(this._current.min=Math.min(t,this._current.min),this._current.max=Math.max(t,this._current.max),this._current.hasMinMax=!0);let e=rp(this._boundaries,t);this._current.buckets.counts[e]+=1}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},qt=class{_boundaries;_recordMinMax;kind=$.HISTOGRAM;constructor(t,e){this._boundaries=t,this._recordMinMax=e}createAccumulation(t){return new Wt(t,this._boundaries,this._recordMinMax)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let E=0;E<s.length;E++)a[E]=s[E]+i[E];let _=1/0,u=-1/0;return this._recordMinMax&&(n.hasMinMax&&o.hasMinMax?(_=Math.min(n.min,o.min),u=Math.max(n.max,o.max)):n.hasMinMax?(_=n.min,u=n.max):o.hasMinMax&&(_=o.min,u=o.max)),new Wt(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:n.count+o.count,sum:n.sum+o.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||o.hasMinMax),min:_,max:u})}diff(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let _=0;_<s.length;_++)a[_]=i[_]-s[_];return new Wt(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:o.count-n.count,sum:o.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,buckets:a.buckets,count:a.count}}})}}};d();var Me=class r{backing;indexBase;indexStart;indexEnd;constructor(t=new po,e=0,n=0,o=0){this.backing=t,this.indexBase=e,this.indexStart=n,this.indexEnd=o}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(t,e)=>this.at(e))}at(t){let e=this.indexBase-this.indexStart;return t<e&&(t+=this.backing.length),t-=e,this.backing.countAt(t)}incrementBucket(t,e){this.backing.increment(t,e)}decrementBucket(t,e){this.backing.decrement(t,e)}trim(){for(let t=0;t<this.length;t++)if(this.at(t)!==0){this.indexStart+=t;break}else if(t===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let t=this.length-1;t>=0;t--)if(this.at(t)!==0){this.indexEnd-=this.length-t-1;break}this._rotate()}downscale(t){this._rotate();let e=1+this.indexEnd-this.indexStart,n=1<<t,o=0,s=0;for(let i=this.indexStart;i<=this.indexEnd;){let a=i%n;a<0&&(a+=n);for(let _=a;_<n&&o<e;_++)this._relocateBucket(s,o),o++,i++;s++}this.indexStart>>=t,this.indexEnd>>=t,this.indexBase=this.indexStart}clone(){return new r(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let t=this.indexBase-this.indexStart;t!==0&&(t>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,t),this.backing.reverse(t,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+t)),this.indexBase=this.indexStart)}_relocateBucket(t,e){t!==e&&this.incrementBucket(t,this.backing.emptyBucket(e))}},po=class r{_counts;constructor(t=[0]){this._counts=t}get length(){return this._counts.length}countAt(t){return this._counts[t]}growTo(t,e,n){let o=new Array(t).fill(0);o.splice(n,this._counts.length-e,...this._counts.slice(e)),o.splice(0,e,...this._counts.slice(0,e)),this._counts=o}reverse(t,e){let n=Math.floor((t+e)/2)-t;for(let o=0;o<n;o++){let s=this._counts[t+o];this._counts[t+o]=this._counts[e-o-1],this._counts[e-o-1]=s}}emptyBucket(t){let e=this._counts[t];return this._counts[t]=0,e}increment(t,e){this._counts[t]+=e}decrement(t,e){this._counts[t]>=e?this._counts[t]-=e:this._counts[t]=0}clone(){return new r([...this._counts])}};var Pe=Math.pow(2,-1022);function Fr(r){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,r),((t.getUint32(0)&2146435072)>>20)-1023}function Yr(r){let t=new DataView(new ArrayBuffer(8));t.setFloat64(0,r);let e=t.getUint32(0),n=t.getUint32(4);return(e&1048575)*Math.pow(2,32)+n}function Ce(r,t){return r===0||r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY||Number.isNaN(r)?r:r*Math.pow(2,t)}function sp(r){return r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r++,r}var _t=class extends Error{};var kr=class{_shift;constructor(t){this._shift=-t}mapToIndex(t){if(t<Pe)return this._minNormalLowerBoundaryIndex();let e=Fr(t),n=this._rightShift(Yr(t)-1,52);return e+n>>this._shift}lowerBoundary(t){let e=this._minNormalLowerBoundaryIndex();if(t<e)throw new _t(`underflow: ${t} is < minimum lower boundary: ${e}`);let n=this._maxNormalLowerBoundaryIndex();if(t>n)throw new _t(`overflow: ${t} is > maximum lower boundary: ${n}`);return Ce(1,t<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let t=-1022>>this._shift;return this._shift<2&&t--,t}_maxNormalLowerBoundaryIndex(){return 1023>>this._shift}_rightShift(t,e){return Math.floor(t*Math.pow(2,-e))}};var Kr=class{_scale;_scaleFactor;_inverseFactor;constructor(t){this._scale=t,this._scaleFactor=Ce(Math.LOG2E,t),this._inverseFactor=Ce(Math.LN2,-t)}mapToIndex(t){if(t<=Pe)return this._minNormalLowerBoundaryIndex()-1;if(Yr(t)===0)return(Fr(t)<<this._scale)-1;let e=Math.floor(Math.log(t)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return e>=n?n:e}lowerBoundary(t){let e=this._maxNormalLowerBoundaryIndex();if(t>=e){if(t===e)return 2*Math.exp((t-(1<<this._scale))/this._scaleFactor);throw new _t(`overflow: ${t} is > maximum lower boundary: ${e}`)}let n=this._minNormalLowerBoundaryIndex();if(t<=n){if(t===n)return Pe;if(t===n-1)return Math.exp((t+(1<<this._scale))/this._scaleFactor)/2;throw new _t(`overflow: ${t} is < minimum lower boundary: ${n}`)}return Math.exp(t*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return-1022<<this._scale}_maxNormalLowerBoundaryIndex(){return(1024<<this._scale)-1}};var ap=-10,cp=20,EI=Array.from({length:31},(r,t)=>t>10?new Kr(t-10):new kr(t-10));function mo(r){if(r>cp||r<ap)throw new _t(`expected scale >= ${ap} && <= ${cp}, got: ${r}`);return EI[r+10]}var $t=class r{low;high;static combine(t,e){return new r(Math.min(t.low,e.low),Math.max(t.high,e.high))}constructor(t,e){this.low=t,this.high=e}},TI=20,SI=160,fo=2,jr=class r{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(t,e=SI,n=!0,o=0,s=0,i=0,a=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,u=new Me,E=new Me,p=mo(TI)){this.startTime=t,this._maxSize=e,this._recordMinMax=n,this._sum=o,this._count=s,this._zeroCount=i,this._min=a,this._max=_,this._positive=u,this._negative=E,this._mapping=p,this._maxSize<fo&&(c.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${fo}`),this._maxSize=fo)}record(t){this.updateByIncrement(t,1)}setStartTime(t){this.startTime=t}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(t,e){if(!Number.isNaN(t)){if(t>this._max&&(this._max=t),t<this._min&&(this._min=t),this._count+=e,t===0){this._zeroCount+=e;return}this._sum+=t*e,t>0?this._updateBuckets(this._positive,t,e):this._updateBuckets(this._negative,-t,e)}}merge(t){this._count===0?(this._min=t.min,this._max=t.max):t.count!==0&&(t.min<this.min&&(this._min=t.min),t.max>this.max&&(this._max=t.max)),this.startTime=t.startTime,this._sum+=t.sum,this._count+=t.count,this._zeroCount+=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._mergeBuckets(this.positive,t,t.positive,e),this._mergeBuckets(this.negative,t,t.negative,e)}diff(t){this._min=1/0,this._max=-1/0,this._sum-=t.sum,this._count-=t.count,this._zeroCount-=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._diffBuckets(this.positive,t,t.positive,e),this._diffBuckets(this.negative,t,t.negative,e)}clone(){return new r(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(t,e,n){let o=this._mapping.mapToIndex(e),s=!1,i=0,a=0;if(t.length===0?(t.indexStart=o,t.indexEnd=t.indexStart,t.indexBase=t.indexStart):o<t.indexStart&&t.indexEnd-o>=this._maxSize?(s=!0,a=o,i=t.indexEnd):o>t.indexEnd&&o-t.indexStart>=this._maxSize&&(s=!0,a=t.indexStart,i=o),s){let _=this._changeScale(i,a);this._downscale(_),o=this._mapping.mapToIndex(e)}this._incrementIndexBy(t,o,n)}_incrementIndexBy(t,e,n){if(n===0)return;if(t.length===0&&(t.indexStart=t.indexEnd=t.indexBase=e),e<t.indexStart){let s=t.indexEnd-e;s>=t.backing.length&&this._grow(t,s+1),t.indexStart=e}else if(e>t.indexEnd){let s=e-t.indexStart;s>=t.backing.length&&this._grow(t,s+1),t.indexEnd=e}let o=e-t.indexBase;o<0&&(o+=t.backing.length),t.incrementBucket(o,n)}_grow(t,e){let n=t.backing.length,o=t.indexBase-t.indexStart,s=n-o,i=sp(e);i>this._maxSize&&(i=this._maxSize);let a=i-o;t.backing.growTo(i,s,a)}_changeScale(t,e){let n=0;for(;t-e>=this._maxSize;)t>>=1,e>>=1,n++;return n}_downscale(t){if(t===0)return;if(t<0)throw new Error(`impossible change of scale: ${this.scale}`);let e=this._mapping.scale-t;this._positive.downscale(t),this._negative.downscale(t),this._mapping=mo(e)}_minScale(t){let e=Math.min(this.scale,t.scale),n=$t.combine(this._highLowAtScale(this.positive,this.scale,e),this._highLowAtScale(t.positive,t.scale,e)),o=$t.combine(this._highLowAtScale(this.negative,this.scale,e),this._highLowAtScale(t.negative,t.scale,e));return Math.min(e-this._changeScale(n.high,n.low),e-this._changeScale(o.high,o.low))}_highLowAtScale(t,e,n){if(t.length===0)return new $t(0,-1);let o=e-n;return new $t(t.indexStart>>o,t.indexEnd>>o)}_mergeBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++)this._incrementIndexBy(t,s+a>>i,n.at(a))}_diffBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++){let u=(s+a>>i)-t.indexBase;u<0&&(u+=t.backing.length),t.decrementBucket(u,n.at(a))}t.trim()}},Le=class{_maxSize;_recordMinMax;kind=$.EXPONENTIAL_HISTOGRAM;constructor(t,e){this._maxSize=t,this._recordMinMax=e}createAccumulation(t){return new jr(t,this._maxSize,this._recordMinMax)}merge(t,e){let n=e.clone();return n.merge(t),n}diff(t,e){let n=e.clone();return n.diff(t),n}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.EXPONENTIAL_HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,positive:{offset:a.positive.offset,bucketCounts:a.positive.bucketCounts},negative:{offset:a.negative.offset,bucketCounts:a.negative.bucketCounts},count:a.count,scale:a.scale,zeroCount:a.zeroCount}}})}}};var yt=R(P());var Xt=class{startTime;_current;sampleTime;constructor(t,e=0,n=[0,0]){this.startTime=t,this._current=e,this.sampleTime=n}record(t){this._current=t,this.sampleTime=(0,yt.millisToHrTime)(Date.now())}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},Ie=class{kind=$.LAST_VALUE;createAccumulation(t){return new Xt(t)}merge(t,e){let n=(0,yt.hrTimeToMicroseconds)(e.sampleTime)>=(0,yt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new Xt(t.startTime,n.toPointValue(),n.sampleTime)}diff(t,e){let n=(0,yt.hrTimeToMicroseconds)(e.sampleTime)>=(0,yt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new Xt(e.startTime,n.toPointValue(),n.sampleTime)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.GAUGE,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()}))}}};var Ot=class{startTime;monotonic;_current;reset;constructor(t,e,n=0,o=!1){this.startTime=t,this.monotonic=e,this._current=n,this.reset=o}record(t){this.monotonic&&t<0||(this._current+=t)}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},zt=class{monotonic;kind=$.SUM;constructor(t){this.monotonic=t}createAccumulation(t){return new Ot(t,this.monotonic)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue();return e.reset?new Ot(e.startTime,this.monotonic,o,e.reset):new Ot(t.startTime,this.monotonic,n+o)}diff(t,e){let n=t.toPointValue(),o=e.toPointValue();return this.monotonic&&n>o?new Ot(e.startTime,this.monotonic,o,!0):new Ot(e.startTime,this.monotonic,o-n)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.SUM,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()})),isMonotonic:this.monotonic}}};var ho=class r{static DEFAULT_INSTANCE=new Ne;createAggregator(t){return r.DEFAULT_INSTANCE}};var Ro=class r{static MONOTONIC_INSTANCE=new zt(!0);static NON_MONOTONIC_INSTANCE=new zt(!1);createAggregator(t){switch(t.type){case f.COUNTER:case f.OBSERVABLE_COUNTER:case f.HISTOGRAM:return r.MONOTONIC_INSTANCE;default:return r.NON_MONOTONIC_INSTANCE}}};var Oo=class r{static DEFAULT_INSTANCE=new Ie;createAggregator(t){return r.DEFAULT_INSTANCE}};var go=class r{static DEFAULT_INSTANCE=new qt([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(t){return r.DEFAULT_INSTANCE}};var xe=class{_recordMinMax;_boundaries;constructor(t,e=!0){if(this._recordMinMax=e,t==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");t=t.concat(),t=t.sort((s,i)=>s-i);let n=t.lastIndexOf(-1/0),o=t.indexOf(1/0);o===-1&&(o=void 0),this._boundaries=t.slice(n+1,o)}createAggregator(t){return new qt(this._boundaries,this._recordMinMax)}},De=class{_maxSize;_recordMinMax;constructor(t=160,e=!0){this._maxSize=t,this._recordMinMax=e}createAggregator(t){return new Le(this._maxSize,this._recordMinMax)}},No=class{_resolve(t){switch(t.type){case f.COUNTER:case f.UP_DOWN_COUNTER:case f.OBSERVABLE_COUNTER:case f.OBSERVABLE_UP_DOWN_COUNTER:return Po;case f.GAUGE:case f.OBSERVABLE_GAUGE:return Co;case f.HISTOGRAM:return t.advice.explicitBucketBoundaries?new xe(t.advice.explicitBucketBoundaries):Lo}return c.diag.warn(`Unable to recognize instrument type: ${t.type}`),Mo}createAggregator(t){return this._resolve(t).createAggregator(t)}},Mo=new ho,Po=new Ro,Co=new Oo,Lo=new go,xy=new De,_p=new No;var ut;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.DROP=1]="DROP",r[r.SUM=2]="SUM",r[r.LAST_VALUE=3]="LAST_VALUE",r[r.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(ut||(ut={}));function Wr(r){switch(r.type){case ut.DEFAULT:return _p;case ut.DROP:return Mo;case ut.SUM:return Po;case ut.LAST_VALUE:return Co;case ut.EXPONENTIAL_HISTOGRAM:{let t=r;return new De(t.options?.maxSize,t.options?.recordMinMax)}case ut.EXPLICIT_BUCKET_HISTOGRAM:{let t=r;return t.options==null?Lo:new xe(t.options?.boundaries,t.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}d();var qr=class{_registeredViews=[];addView(t){this._registeredViews.push(t)}findViews(t,e){return this._registeredViews.filter(o=>this._matchInstrument(o.instrumentSelector,t)&&this._matchMeter(o.meterSelector,e))}_matchInstrument(t,e){return(t.getType()===void 0||e.type===t.getType())&&t.getNameFilter().match(e.name)&&t.getUnitFilter().match(e.unit)}_matchMeter(t,e){return t.getNameFilter().match(e.name)&&(e.version===void 0||t.getVersionFilter().match(e.version))&&(e.schemaUrl===void 0||t.getSchemaUrlFilter().match(e.schemaUrl))}};d();function Et(r,t,e){return lI(r)||c.diag.warn(`Invalid metric name: "${r}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:r,type:t,description:e?.description??"",unit:e?.unit??"",valueType:e?.valueType??c.ValueType.DOUBLE,advice:e?.advice??{}}}function up(r,t){return{name:r.name??t.name,description:r.description??t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function Ep(r,t){return np(r.name,t.name)&&r.unit===t.unit&&r.type===t.type&&r.valueType===t.valueType}var pI=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function lI(r){return r.match(pI)!=null}d();var Tp=R(P()),Qt=class{_writableMetricStorage;_descriptor;constructor(t,e){this._writableMetricStorage=t,this._descriptor=e}_record(t,e={},n=c.context.active()){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${t}`);return}this._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._writableMetricStorage.record(t,e,n,(0,Tp.millisToHrTime)(Date.now()))}},$r=class extends Qt{add(t,e,n){this._record(t,e,n)}},Xr=class extends Qt{add(t,e,n){if(t<0){c.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},zr=class extends Qt{record(t,e,n){this._record(t,e,n)}},Qr=class extends Qt{record(t,e,n){if(t<0){c.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},Jt=class{_observableRegistry;_metricStorages;_descriptor;constructor(t,e,n){this._observableRegistry=n,this._descriptor=t,this._metricStorages=e}addCallback(t){this._observableRegistry.addCallback(t,this)}removeCallback(t){this._observableRegistry.removeCallback(t,this)}},Jr=class extends Jt{},Zr=class extends Jt{},tn=class extends Jt{};function Ue(r){return r instanceof Jt}var en=class{_meterSharedState;constructor(t){this._meterSharedState=t}createGauge(t,e){let n=Et(t,f.GAUGE,e),o=this._meterSharedState.registerMetricStorage(n);return new zr(o,n)}createHistogram(t,e){let n=Et(t,f.HISTOGRAM,e),o=this._meterSharedState.registerMetricStorage(n);return new Qr(o,n)}createCounter(t,e){let n=Et(t,f.COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new Xr(o,n)}createUpDownCounter(t,e){let n=Et(t,f.UP_DOWN_COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new $r(o,n)}createObservableGauge(t,e){let n=Et(t,f.OBSERVABLE_GAUGE,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Zr(n,o,this._meterSharedState.observableRegistry)}createObservableCounter(t,e){let n=Et(t,f.OBSERVABLE_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Jr(n,o,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(t,e){let n=Et(t,f.OBSERVABLE_UP_DOWN_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new tn(n,o,this._meterSharedState.observableRegistry)}addBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.addBatchCallback(t,e)}removeBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.removeBatchCallback(t,e)}};var Zt=class{_instrumentDescriptor;constructor(t){this._instrumentDescriptor=t}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(t){this._instrumentDescriptor=Et(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:t,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};var Io=class{_hash;_valueMap=new Map;_keyMap=new Map;constructor(t){this._hash=t}get(t,e){return e??=this._hash(t),this._valueMap.get(e)}getOrDefault(t,e){let n=this._hash(t);if(this._valueMap.has(n))return this._valueMap.get(n);let o=e();return this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,o),o}set(t,e,n){n??=this._hash(t),this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,e)}has(t,e){return e??=this._hash(t),this._valueMap.has(e)}*keys(){let t=this._keyMap.entries(),e=t.next();for(;e.done!==!0;)yield[e.value[1],e.value[0]],e=t.next()}*entries(){let t=this._valueMap.entries(),e=t.next();for(;e.done!==!0;)yield[this._keyMap.get(e.value[0]),e.value[1],e.value[0]],e=t.next()}get size(){return this._valueMap.size}},F=class extends Io{constructor(){super(Hr)}};var te=class{_aggregator;_activeCollectionStorage=new F;_cumulativeMemoStorage=new F;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;constructor(t,e){this._aggregator=t,this._cardinalityLimit=(e??2e3)-1,this._overflowHashCode=Hr(this._overflowAttributes)}record(t,e,n,o){let s=this._activeCollectionStorage.get(e);if(!s){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(o))?.record(t);return}s=this._aggregator.createAccumulation(o),this._activeCollectionStorage.set(e,s)}s?.record(t)}batchCumulate(t,e){Array.from(t.entries()).forEach(([n,o,s])=>{let i=this._aggregator.createAccumulation(e);i?.record(o);let a=i;if(this._cumulativeMemoStorage.has(n,s)){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(n=this._overflowAttributes,s=this._overflowHashCode,this._cumulativeMemoStorage.has(n,s))){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}if(this._activeCollectionStorage.has(n,s)){let _=this._activeCollectionStorage.get(n,s);a=this._aggregator.merge(_,a)}this._cumulativeMemoStorage.set(n,i,s),this._activeCollectionStorage.set(n,a,s)})}collect(){let t=this._activeCollectionStorage;return this._activeCollectionStorage=new F,t}};var ee=class r{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(t,e){this._aggregator=t,e.forEach(n=>{this._unreportedAccumulations.set(n,[])})}buildMetrics(t,e,n,o){this._stashAccumulations(n);let s=this._getMergedUnreportedAccumulations(t),i=s,a;if(this._reportHistory.has(t)){let u=this._reportHistory.get(t),E=u.collectionTime;a=u.aggregationTemporality,a===Gr.CUMULATIVE?i=r.merge(u.accumulations,s,this._aggregator):i=r.calibrateStartTime(u.accumulations,s,E)}else a=t.selectAggregationTemporality(e.type);this._reportHistory.set(t,{accumulations:i,collectionTime:o,aggregationTemporality:a});let _=AI(i);if(_.length!==0)return this._aggregator.toMetricData(e,a,_,o)}_stashAccumulations(t){let e=this._unreportedAccumulations.keys();for(let n of e){let o=this._unreportedAccumulations.get(n);o===void 0&&(o=[],this._unreportedAccumulations.set(n,o)),o.push(t)}}_getMergedUnreportedAccumulations(t){let e=new F,n=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),n===void 0)return e;for(let o of n)e=r.merge(e,o,this._aggregator);return e}static merge(t,e,n){let o=t,s=e.entries(),i=s.next();for(;i.done!==!0;){let[a,_,u]=i.value;if(t.has(a,u)){let E=t.get(a,u),p=n.merge(E,_);o.set(a,p,u)}else o.set(a,_,u);i=s.next()}return o}static calibrateStartTime(t,e,n){for(let[o,s]of t.keys())e.get(o,s)?.setStartTime(n);return e}};function AI(r){return Array.from(r.entries())}var rn=class extends Zt{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new te(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new ee(e,o)}record(t,e){let n=new F;Array.from(t.entries()).forEach(([o,s])=>{n.set(this._attributesProcessor.process(o),s)}),this._deltaMetricStorage.batchCumulate(n,e)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};d();function xo(r,t){let e="";return r.unit!==t.unit&&(e+=` - Unit '${r.unit}' does not match '${t.unit}'
4
+ var pA=Object.create;var We=Object.defineProperty;var lA=Object.getOwnPropertyDescriptor;var AA=Object.getOwnPropertyNames;var dA=Object.getPrototypeOf,mA=Object.prototype.hasOwnProperty;var Es=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var k=(r,t)=>()=>(r&&(t=r(r=0)),t);var p=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),fA=(r,t)=>{for(var e in t)We(r,e,{get:t[e],enumerable:!0})},je=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of AA(t))!mA.call(r,o)&&o!==e&&We(r,o,{get:()=>t[o],enumerable:!(n=lA(t,o))||n.enumerable});return r},tt=(r,t,e)=>(je(r,t,"default"),e&&je(e,t,"default")),R=(r,t,e)=>(e=r!=null?pA(dA(r)):{},je(t||!r||!r.__esModule?We(e,"default",{value:r,enumerable:!0}):e,r)),b=r=>je(We({},"__esModule",{value:!0}),r);var c={};import*as eD from"@opentelemetry/api";var d=k(()=>{tt(c,eD)});var Te=p(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isTracingSuppressed=mt.unsuppressTracing=mt.suppressTracing=void 0;var hA=(d(),b(c)),vn=(0,hA.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function RA(r){return r.setValue(vn,!0)}mt.suppressTracing=RA;function OA(r){return r.deleteValue(vn)}mt.unsuppressTracing=OA;function gA(r){return r.getValue(vn)===!0}mt.isTracingSuppressed=gA});var Bn=p(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.BAGGAGE_MAX_TOTAL_LENGTH=y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=y.BAGGAGE_MAX_NAME_VALUE_PAIRS=y.BAGGAGE_HEADER=y.BAGGAGE_ITEMS_SEPARATOR=y.BAGGAGE_PROPERTIES_SEPARATOR=y.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;y.BAGGAGE_KEY_PAIR_SEPARATOR="=";y.BAGGAGE_PROPERTIES_SEPARATOR=";";y.BAGGAGE_ITEMS_SEPARATOR=",";y.BAGGAGE_HEADER="baggage";y.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;y.BAGGAGE_MAX_TOTAL_LENGTH=8192});var wn=p(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.parseKeyPairsIntoRecord=st.parsePairKeyValue=st.getKeyPairs=st.serializeKeyPairs=void 0;var NA=(d(),b(c)),wt=Bn();function MA(r){return r.reduce((t,e)=>{let n=`${t}${t!==""?wt.BAGGAGE_ITEMS_SEPARATOR:""}${e}`;return n.length>wt.BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}st.serializeKeyPairs=MA;function PA(r){return r.getAllEntries().map(([t,e])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(e.value)}`;return e.metadata!==void 0&&(n+=wt.BAGGAGE_PROPERTIES_SEPARATOR+e.metadata.toString()),n})}st.getKeyPairs=PA;function us(r){if(!r)return;let t=r.indexOf(wt.BAGGAGE_PROPERTIES_SEPARATOR),e=t===-1?r:r.substring(0,t),n=e.indexOf(wt.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=e.substring(0,n).trim(),s=e.substring(n+1).trim();if(!o||!s)return;let i,a;try{i=decodeURIComponent(o),a=decodeURIComponent(s)}catch{return}let _;if(t!==-1&&t<r.length-1){let E=r.substring(t+1);_=(0,NA.baggageEntryMetadataFromString)(E)}return{key:i,value:a,metadata:_}}st.parsePairKeyValue=us;function CA(r){let t={};return typeof r=="string"&&r.length>0&&r.split(wt.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let n=us(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}st.parseKeyPairsIntoRecord=CA});var Ts=p(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.W3CBaggagePropagator=void 0;var Gn=(d(),b(c)),LA=Te(),Ct=Bn(),Hn=wn(),Fn=class{inject(t,e,n){let o=Gn.propagation.getBaggage(t);if(!o||(0,LA.isTracingSuppressed)(t))return;let s=(0,Hn.getKeyPairs)(o).filter(a=>a.length<=Ct.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,Ct.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,Hn.serializeKeyPairs)(s);i.length>0&&n.set(e,Ct.BAGGAGE_HEADER,i)}extract(t,e,n){let o=n.get(e,Ct.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(Ct.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return t;let i={};return s.length===0||(s.split(Ct.BAGGAGE_ITEMS_SEPARATOR).forEach(_=>{let E=(0,Hn.parsePairKeyValue)(_);if(E){let u={value:E.value};E.metadata&&(u.metadata=E.metadata),i[E.key]=u}}),Object.entries(i).length===0)?t:Gn.propagation.setBaggage(t,Gn.propagation.createBaggage(i))}fields(){return[Ct.BAGGAGE_HEADER]}};qe.W3CBaggagePropagator=Fn});var Ss=p($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.AnchoredClock=void 0;var Yn=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};$e.AnchoredClock=Yn});var ms=p(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.isAttributeValue=ft.isAttributeKey=ft.sanitizeAttributes=void 0;var ps=(d(),b(c));function IA(r){let t={};if(typeof r!="object"||r==null)return t;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;if(!ls(e)){ps.diag.warn(`Invalid attribute key: ${e}`);continue}let n=r[e];if(!As(n)){ps.diag.warn(`Invalid attribute value set for key: ${e}`);continue}Array.isArray(n)?t[e]=n.slice():t[e]=n}return t}ft.sanitizeAttributes=IA;function ls(r){return typeof r=="string"&&r!==""}ft.isAttributeKey=ls;function As(r){return r==null?!0:Array.isArray(r)?xA(r):ds(typeof r)}ft.isAttributeValue=As;function xA(r){let t;for(let e of r){if(e==null)continue;let n=typeof e;if(n!==t){if(!t){if(ds(n)){t=n;continue}return!1}return!1}}return!0}function ds(r){switch(r){case"number":case"boolean":case"string":return!0}return!1}});var kn=p(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.loggingErrorHandler=void 0;var DA=(d(),b(c));function UA(){return r=>{DA.diag.error(bA(r))}}Xe.loggingErrorHandler=UA;function bA(r){return typeof r=="string"?r:JSON.stringify(yA(r))}function yA(r){let t={},e=r;for(;e!==null;)Object.getOwnPropertyNames(e).forEach(n=>{if(t[n])return;let o=e[n];o&&(t[n]=String(o))}),e=Object.getPrototypeOf(e);return t}});var hs=p(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.globalErrorHandler=Gt.setGlobalErrorHandler=void 0;var VA=kn(),fs=(0,VA.loggingErrorHandler)();function vA(r){fs=r}Gt.setGlobalErrorHandler=vA;function BA(r){try{fs(r)}catch{}}Gt.globalErrorHandler=BA});var Rs=p(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.getStringListFromEnv=it.getNumberFromEnv=it.getBooleanFromEnv=it.getStringFromEnv=void 0;function wA(r){}it.getStringFromEnv=wA;function GA(r){}it.getBooleanFromEnv=GA;function HA(r){}it.getNumberFromEnv=HA;function FA(r){}it.getStringListFromEnv=FA});var Os=p(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze._globalThis=void 0;ze._globalThis=globalThis});var gs=p(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.VERSION=void 0;Qe.VERSION="2.3.0"});function C(r){let t={},e=r.length;for(let n=0;n<e;n++){let o=r[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}var Kn=k(()=>{});var Ns,Ms,Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,YA,kA,KA,jA,WA,qA,$A,XA,zA,QA,JA,ZA,td,ed,rd,nd,od,sd,id,ad,cd,_d,Ed,ud,Td,Sd,pd,ld,Ad,dd,md,fd,hd,Rd,Od,gd,Nd,Md,Pd,Cd,Ld,Id,xd,Dd,Ud,bd,yd,Vd,vd,Bd,wd,Gd,Hd,Fd,Yd,kd,Kd,jd,Wd,qd,$d,Xd,zd,Qd,Jd,Zd,tm,em,rm,nm,om,sm,im,am,cm,_m,Em,um,Tm,Sm,pm,lm,Am,dm,mm,fm,hm,Rm,Om,gm,Nm,Mm,Pm,Cm,Lm,Im,xm,Dm,Um,bm,ym,Vm,vm,Bm,wm,Gm,Hm,Fm,Ym,km,Km,jm,Wm,qm,$m,Xm,zm,Qm,Jm,Zm,tf,ef,rf,nf,of,sf,af,cf,_f,Ka,ja,Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Ef,uf,Tf,Sf,pf,lf,Af,df,mf,ff,hf,Rf,Of,gf,Nf,Mf,Pf,Cf,Lf,If,xf,Df,Uf,bf,yf,Vf,vf,Bf,wf,Gf,Hf,Ff,Yf,kf,Kf,jf,Wf,qf,$f,Xf,zf,Qf,Jf,Zf,th,eh,rh,nh,Bc,wc,Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc,oh,sh,ih,ah,ch,_h,Eh,uh,Th,Sh,ph,lh,$c,Xc,zc,Qc,Jc,Ah,dh,mh,fh,hh,Rh,Zc,t_,e_,Oh,gh,Nh,Mh,r_,n_,o_,s_,Ph,Ch,Lh,Ih,xh,i_,a_,c_,__,E_,u_,T_,Dh,Uh,bh,yh,Vh,vh,Bh,wh,S_,p_,l_,A_,d_,Gh,Hh,Fh,Yh,kh,Kh,m_,f_,h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,jh,Wh,qh,$h,Xh,zh,Qh,Jh,Zh,tR,eR,rR,nR,oR,sR,iR,aR,cR,_R,ER,uR,TR,G_,H_,F_,Y_,k_,SR,pR,lR,AR,dR,mR,K_,j_,fR,hR,RR,W_,q_,OR,gR,NR,$_,X_,z_,Q_,J_,Z_,tE,eE,rE,nE,oE,sE,iE,aE,cE,_E,EE,MR,PR,CR,LR,IR,xR,DR,UR,bR,yR,VR,vR,BR,wR,GR,HR,FR,YR,uE,TE,kR,KR,jR,SE=k(()=>{Kn();Ns="aws.lambda.invoked_arn",Ms="db.system",Ps="db.connection_string",Cs="db.user",Ls="db.jdbc.driver_classname",Is="db.name",xs="db.statement",Ds="db.operation",Us="db.mssql.instance_name",bs="db.cassandra.keyspace",ys="db.cassandra.page_size",Vs="db.cassandra.consistency_level",vs="db.cassandra.table",Bs="db.cassandra.idempotence",ws="db.cassandra.speculative_execution_count",Gs="db.cassandra.coordinator.id",Hs="db.cassandra.coordinator.dc",Fs="db.hbase.namespace",Ys="db.redis.database_index",ks="db.mongodb.collection",Ks="db.sql.table",js="exception.type",Ws="exception.message",qs="exception.stacktrace",$s="exception.escaped",Xs="faas.trigger",zs="faas.execution",Qs="faas.document.collection",Js="faas.document.operation",Zs="faas.document.time",ti="faas.document.name",ei="faas.time",ri="faas.cron",ni="faas.coldstart",oi="faas.invoked_name",si="faas.invoked_provider",ii="faas.invoked_region",ai="net.transport",ci="net.peer.ip",_i="net.peer.port",Ei="net.peer.name",ui="net.host.ip",Ti="net.host.port",Si="net.host.name",pi="net.host.connection.type",li="net.host.connection.subtype",Ai="net.host.carrier.name",di="net.host.carrier.mcc",mi="net.host.carrier.mnc",fi="net.host.carrier.icc",hi="peer.service",Ri="enduser.id",Oi="enduser.role",gi="enduser.scope",Ni="thread.id",Mi="thread.name",Pi="code.function",Ci="code.namespace",Li="code.filepath",Ii="code.lineno",xi="http.method",Di="http.url",Ui="http.target",bi="http.host",yi="http.scheme",Vi="http.status_code",vi="http.flavor",Bi="http.user_agent",wi="http.request_content_length",Gi="http.request_content_length_uncompressed",Hi="http.response_content_length",Fi="http.response_content_length_uncompressed",Yi="http.server_name",ki="http.route",Ki="http.client_ip",ji="aws.dynamodb.table_names",Wi="aws.dynamodb.consumed_capacity",qi="aws.dynamodb.item_collection_metrics",$i="aws.dynamodb.provisioned_read_capacity",Xi="aws.dynamodb.provisioned_write_capacity",zi="aws.dynamodb.consistent_read",Qi="aws.dynamodb.projection",Ji="aws.dynamodb.limit",Zi="aws.dynamodb.attributes_to_get",ta="aws.dynamodb.index_name",ea="aws.dynamodb.select",ra="aws.dynamodb.global_secondary_indexes",na="aws.dynamodb.local_secondary_indexes",oa="aws.dynamodb.exclusive_start_table",sa="aws.dynamodb.table_count",ia="aws.dynamodb.scan_forward",aa="aws.dynamodb.segment",ca="aws.dynamodb.total_segments",_a="aws.dynamodb.count",Ea="aws.dynamodb.scanned_count",ua="aws.dynamodb.attribute_definitions",Ta="aws.dynamodb.global_secondary_index_updates",Sa="messaging.system",pa="messaging.destination",la="messaging.destination_kind",Aa="messaging.temp_destination",da="messaging.protocol",ma="messaging.protocol_version",fa="messaging.url",ha="messaging.message_id",Ra="messaging.conversation_id",Oa="messaging.message_payload_size_bytes",ga="messaging.message_payload_compressed_size_bytes",Na="messaging.operation",Ma="messaging.consumer_id",Pa="messaging.rabbitmq.routing_key",Ca="messaging.kafka.message_key",La="messaging.kafka.consumer_group",Ia="messaging.kafka.client_id",xa="messaging.kafka.partition",Da="messaging.kafka.tombstone",Ua="rpc.system",ba="rpc.service",ya="rpc.method",Va="rpc.grpc.status_code",va="rpc.jsonrpc.version",Ba="rpc.jsonrpc.request_id",wa="rpc.jsonrpc.error_code",Ga="rpc.jsonrpc.error_message",Ha="message.type",Fa="message.id",Ya="message.compressed_size",ka="message.uncompressed_size",YA=Ns,kA=Ms,KA=Ps,jA=Cs,WA=Ls,qA=Is,$A=xs,XA=Ds,zA=Us,QA=bs,JA=ys,ZA=Vs,td=vs,ed=Bs,rd=ws,nd=Gs,od=Hs,sd=Fs,id=Ys,ad=ks,cd=Ks,_d=js,Ed=Ws,ud=qs,Td=$s,Sd=Xs,pd=zs,ld=Qs,Ad=Js,dd=Zs,md=ti,fd=ei,hd=ri,Rd=ni,Od=oi,gd=si,Nd=ii,Md=ai,Pd=ci,Cd=_i,Ld=Ei,Id=ui,xd=Ti,Dd=Si,Ud=pi,bd=li,yd=Ai,Vd=di,vd=mi,Bd=fi,wd=hi,Gd=Ri,Hd=Oi,Fd=gi,Yd=Ni,kd=Mi,Kd=Pi,jd=Ci,Wd=Li,qd=Ii,$d=xi,Xd=Di,zd=Ui,Qd=bi,Jd=yi,Zd=Vi,tm=vi,em=Bi,rm=wi,nm=Gi,om=Hi,sm=Fi,im=Yi,am=ki,cm=Ki,_m=ji,Em=Wi,um=qi,Tm=$i,Sm=Xi,pm=zi,lm=Qi,Am=Ji,dm=Zi,mm=ta,fm=ea,hm=ra,Rm=na,Om=oa,gm=sa,Nm=ia,Mm=aa,Pm=ca,Cm=_a,Lm=Ea,Im=ua,xm=Ta,Dm=Sa,Um=pa,bm=la,ym=Aa,Vm=da,vm=ma,Bm=fa,wm=ha,Gm=Ra,Hm=Oa,Fm=ga,Ym=Na,km=Ma,Km=Pa,jm=Ca,Wm=La,qm=Ia,$m=xa,Xm=Da,zm=Ua,Qm=ba,Jm=ya,Zm=Va,tf=va,ef=Ba,rf=wa,nf=Ga,of=Ha,sf=Fa,af=Ya,cf=ka,_f=C([Ns,Ms,Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka]),Ka="other_sql",ja="mssql",Wa="mysql",qa="oracle",$a="db2",Xa="postgresql",za="redshift",Qa="hive",Ja="cloudscape",Za="hsqldb",tc="progress",ec="maxdb",rc="hanadb",nc="ingres",oc="firstsql",sc="edb",ic="cache",ac="adabas",cc="firebird",_c="derby",Ec="filemaker",uc="informix",Tc="instantdb",Sc="interbase",pc="mariadb",lc="netezza",Ac="pervasive",dc="pointbase",mc="sqlite",fc="sybase",hc="teradata",Rc="vertica",Oc="h2",gc="coldfusion",Nc="cassandra",Mc="hbase",Pc="mongodb",Cc="redis",Lc="couchbase",Ic="couchdb",xc="cosmosdb",Dc="dynamodb",Uc="neo4j",bc="geode",yc="elasticsearch",Vc="memcached",vc="cockroachdb",Ef=Ka,uf=ja,Tf=Wa,Sf=qa,pf=$a,lf=Xa,Af=za,df=Qa,mf=Ja,ff=Za,hf=tc,Rf=ec,Of=rc,gf=nc,Nf=oc,Mf=sc,Pf=ic,Cf=ac,Lf=cc,If=_c,xf=Ec,Df=uc,Uf=Tc,bf=Sc,yf=pc,Vf=lc,vf=Ac,Bf=dc,wf=mc,Gf=fc,Hf=hc,Ff=Rc,Yf=Oc,kf=gc,Kf=Nc,jf=Mc,Wf=Pc,qf=Cc,$f=Lc,Xf=Ic,zf=xc,Qf=Dc,Jf=Uc,Zf=bc,th=yc,eh=Vc,rh=vc,nh=C([Ka,ja,Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc]),Bc="all",wc="each_quorum",Gc="quorum",Hc="local_quorum",Fc="one",Yc="two",kc="three",Kc="local_one",jc="any",Wc="serial",qc="local_serial",oh=Bc,sh=wc,ih=Gc,ah=Hc,ch=Fc,_h=Yc,Eh=kc,uh=Kc,Th=jc,Sh=Wc,ph=qc,lh=C([Bc,wc,Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc]),$c="datasource",Xc="http",zc="pubsub",Qc="timer",Jc="other",Ah=$c,dh=Xc,mh=zc,fh=Qc,hh=Jc,Rh=C([$c,Xc,zc,Qc,Jc]),Zc="insert",t_="edit",e_="delete",Oh=Zc,gh=t_,Nh=e_,Mh=C([Zc,t_,e_]),r_="alibaba_cloud",n_="aws",o_="azure",s_="gcp",Ph=r_,Ch=n_,Lh=o_,Ih=s_,xh=C([r_,n_,o_,s_]),i_="ip_tcp",a_="ip_udp",c_="ip",__="unix",E_="pipe",u_="inproc",T_="other",Dh=i_,Uh=a_,bh=c_,yh=__,Vh=E_,vh=u_,Bh=T_,wh=C([i_,a_,c_,__,E_,u_,T_]),S_="wifi",p_="wired",l_="cell",A_="unavailable",d_="unknown",Gh=S_,Hh=p_,Fh=l_,Yh=A_,kh=d_,Kh=C([S_,p_,l_,A_,d_]),m_="gprs",f_="edge",h_="umts",R_="cdma",O_="evdo_0",g_="evdo_a",N_="cdma2000_1xrtt",M_="hsdpa",P_="hsupa",C_="hspa",L_="iden",I_="evdo_b",x_="lte",D_="ehrpd",U_="hspap",b_="gsm",y_="td_scdma",V_="iwlan",v_="nr",B_="nrnsa",w_="lte_ca",jh=m_,Wh=f_,qh=h_,$h=R_,Xh=O_,zh=g_,Qh=N_,Jh=M_,Zh=P_,tR=C_,eR=L_,rR=I_,nR=x_,oR=D_,sR=U_,iR=b_,aR=y_,cR=V_,_R=v_,ER=B_,uR=w_,TR=C([m_,f_,h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_]),G_="1.0",H_="1.1",F_="2.0",Y_="SPDY",k_="QUIC",SR=G_,pR=H_,lR=F_,AR=Y_,dR=k_,mR={HTTP_1_0:G_,HTTP_1_1:H_,HTTP_2_0:F_,SPDY:Y_,QUIC:k_},K_="queue",j_="topic",fR=K_,hR=j_,RR=C([K_,j_]),W_="receive",q_="process",OR=W_,gR=q_,NR=C([W_,q_]),$_=0,X_=1,z_=2,Q_=3,J_=4,Z_=5,tE=6,eE=7,rE=8,nE=9,oE=10,sE=11,iE=12,aE=13,cE=14,_E=15,EE=16,MR=$_,PR=X_,CR=z_,LR=Q_,IR=J_,xR=Z_,DR=tE,UR=eE,bR=rE,yR=nE,VR=oE,vR=sE,BR=iE,wR=aE,GR=cE,HR=_E,FR=EE,YR={OK:$_,CANCELLED:X_,UNKNOWN:z_,INVALID_ARGUMENT:Q_,DEADLINE_EXCEEDED:J_,NOT_FOUND:Z_,ALREADY_EXISTS:tE,PERMISSION_DENIED:eE,RESOURCE_EXHAUSTED:rE,FAILED_PRECONDITION:nE,ABORTED:oE,OUT_OF_RANGE:sE,UNIMPLEMENTED:iE,INTERNAL:aE,UNAVAILABLE:cE,DATA_LOSS:_E,UNAUTHENTICATED:EE},uE="SENT",TE="RECEIVED",kR=uE,KR=TE,jR=C([uE,TE])});var pE=k(()=>{SE()});var lE,AE,dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,WR,qR,$R,XR,zR,QR,JR,ZR,tO,eO,rO,nO,oO,sO,iO,aO,cO,_O,EO,uO,TO,SO,pO,lO,AO,dO,mO,fO,hO,RO,OO,gO,NO,MO,PO,CO,LO,IO,xO,DO,UO,bO,yO,VO,vO,BO,wO,GO,HO,FO,YO,kO,KO,jO,WO,qO,$O,XO,zO,QO,JO,ZO,tg,eg,rg,ng,og,sg,ig,ag,cg,_g,Eg,ug,Tg,Sg,pg,lg,Ag,dg,mg,fg,Yu,ku,Ku,ju,hg,Rg,Og,gg,Ng,Wu,qu,$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT,Mg,Pg,Cg,Lg,Ig,xg,Dg,Ug,bg,yg,Vg,vg,Bg,wg,Gg,Hg,Fg,Yg,_T,ET,kg,Kg,jg,uT,TT,ST,pT,lT,AT,dT,Wg,qg,$g,Xg,zg,Qg,Jg,Zg,mT,fT,hT,RT,OT,gT,NT,MT,PT,CT,LT,tN,eN,rN,nN,oN,sN,iN,aN,cN,_N,EN,uN,IT,xT,DT,UT,bT,yT,VT,vT,BT,wT,TN,SN,pN,lN,AN,dN,mN,fN,hN,RN,ON,GT=k(()=>{Kn();lE="cloud.provider",AE="cloud.account.id",dE="cloud.region",mE="cloud.availability_zone",fE="cloud.platform",hE="aws.ecs.container.arn",RE="aws.ecs.cluster.arn",OE="aws.ecs.launchtype",gE="aws.ecs.task.arn",NE="aws.ecs.task.family",ME="aws.ecs.task.revision",PE="aws.eks.cluster.arn",CE="aws.log.group.names",LE="aws.log.group.arns",IE="aws.log.stream.names",xE="aws.log.stream.arns",DE="container.name",UE="container.id",bE="container.runtime",yE="container.image.name",VE="container.image.tag",vE="deployment.environment",BE="device.id",wE="device.model.identifier",GE="device.model.name",HE="faas.name",FE="faas.id",YE="faas.version",kE="faas.instance",KE="faas.max_memory",jE="host.id",WE="host.name",qE="host.type",$E="host.arch",XE="host.image.name",zE="host.image.id",QE="host.image.version",JE="k8s.cluster.name",ZE="k8s.node.name",tu="k8s.node.uid",eu="k8s.namespace.name",ru="k8s.pod.uid",nu="k8s.pod.name",ou="k8s.container.name",su="k8s.replicaset.uid",iu="k8s.replicaset.name",au="k8s.deployment.uid",cu="k8s.deployment.name",_u="k8s.statefulset.uid",Eu="k8s.statefulset.name",uu="k8s.daemonset.uid",Tu="k8s.daemonset.name",Su="k8s.job.uid",pu="k8s.job.name",lu="k8s.cronjob.uid",Au="k8s.cronjob.name",du="os.type",mu="os.description",fu="os.name",hu="os.version",Ru="process.pid",Ou="process.executable.name",gu="process.executable.path",Nu="process.command",Mu="process.command_line",Pu="process.command_args",Cu="process.owner",Lu="process.runtime.name",Iu="process.runtime.version",xu="process.runtime.description",Du="service.name",Uu="service.namespace",bu="service.instance.id",yu="service.version",Vu="telemetry.sdk.name",vu="telemetry.sdk.language",Bu="telemetry.sdk.version",wu="telemetry.auto.version",Gu="webengine.name",Hu="webengine.version",Fu="webengine.description",WR=lE,qR=AE,$R=dE,XR=mE,zR=fE,QR=hE,JR=RE,ZR=OE,tO=gE,eO=NE,rO=ME,nO=PE,oO=CE,sO=LE,iO=IE,aO=xE,cO=DE,_O=UE,EO=bE,uO=yE,TO=VE,SO=vE,pO=BE,lO=wE,AO=GE,dO=HE,mO=FE,fO=YE,hO=kE,RO=KE,OO=jE,gO=WE,NO=qE,MO=$E,PO=XE,CO=zE,LO=QE,IO=JE,xO=ZE,DO=tu,UO=eu,bO=ru,yO=nu,VO=ou,vO=su,BO=iu,wO=au,GO=cu,HO=_u,FO=Eu,YO=uu,kO=Tu,KO=Su,jO=pu,WO=lu,qO=Au,$O=du,XO=mu,zO=fu,QO=hu,JO=Ru,ZO=Ou,tg=gu,eg=Nu,rg=Mu,ng=Pu,og=Cu,sg=Lu,ig=Iu,ag=xu,cg=Du,_g=Uu,Eg=bu,ug=yu,Tg=Vu,Sg=vu,pg=Bu,lg=wu,Ag=Gu,dg=Hu,mg=Fu,fg=C([lE,AE,dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu]),Yu="alibaba_cloud",ku="aws",Ku="azure",ju="gcp",hg=Yu,Rg=ku,Og=Ku,gg=ju,Ng=C([Yu,ku,Ku,ju]),Wu="alibaba_cloud_ecs",qu="alibaba_cloud_fc",$u="aws_ec2",Xu="aws_ecs",zu="aws_eks",Qu="aws_lambda",Ju="aws_elastic_beanstalk",Zu="azure_vm",tT="azure_container_instances",eT="azure_aks",rT="azure_functions",nT="azure_app_service",oT="gcp_compute_engine",sT="gcp_cloud_run",iT="gcp_kubernetes_engine",aT="gcp_cloud_functions",cT="gcp_app_engine",Mg=Wu,Pg=qu,Cg=$u,Lg=Xu,Ig=zu,xg=Qu,Dg=Ju,Ug=Zu,bg=tT,yg=eT,Vg=rT,vg=nT,Bg=oT,wg=sT,Gg=iT,Hg=aT,Fg=cT,Yg=C([Wu,qu,$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT]),_T="ec2",ET="fargate",kg=_T,Kg=ET,jg=C([_T,ET]),uT="amd64",TT="arm32",ST="arm64",pT="ia64",lT="ppc32",AT="ppc64",dT="x86",Wg=uT,qg=TT,$g=ST,Xg=pT,zg=lT,Qg=AT,Jg=dT,Zg=C([uT,TT,ST,pT,lT,AT,dT]),mT="windows",fT="linux",hT="darwin",RT="freebsd",OT="netbsd",gT="openbsd",NT="dragonflybsd",MT="hpux",PT="aix",CT="solaris",LT="z_os",tN=mT,eN=fT,rN=hT,nN=RT,oN=OT,sN=gT,iN=NT,aN=MT,cN=PT,_N=CT,EN=LT,uN=C([mT,fT,hT,RT,OT,gT,NT,MT,PT,CT,LT]),IT="cpp",xT="dotnet",DT="erlang",UT="go",bT="java",yT="nodejs",VT="php",vT="python",BT="ruby",wT="webjs",TN=IT,SN=xT,pN=DT,lN=UT,AN=bT,dN=yT,mN=VT,fN=vT,hN=BT,RN=wT,ON=C([IT,xT,DT,UT,bT,yT,VT,vT,BT,wT])});var HT=k(()=>{GT()});var gN,NN,MN,PN,CN,LN,IN,xN,DN,UN,bN,yN,VN,vN,BN,wN,GN,HN,FN,YN,kN,KN,jN,WN,qN,$N,XN,zN,QN,JN,ZN,tM,eM,rM,nM,oM,sM,iM,aM,cM,_M,EM,uM,TM,SM,pM,lM,Se,jn,pe,AM,dM,mM,fM,hM,RM,OM,gM,NM,MM,PM,CM,LM,IM,xM,DM,UM,bM,yM,VM,vM,BM,wM,GM,HM,FM,YM,kM,KM,jM,WM,qM,$M,XM,zM,QM,JM,ZM,tP,eP,rP,nP,oP,sP,iP,aP,cP,_P,EP,uP,TP,SP,pP,lP,le,AP,dP,mP,fP,hP,RP,OP,gP,NP,Je,MP,PP,CP,LP,IP,xP,DP,UP,bP,yP,VP,vP,Ze,tr,BP,wP,GP,HP,FP,YP,FT=k(()=>{gN="aspnetcore.diagnostics.exception.result",NN="aborted",MN="handled",PN="skipped",CN="unhandled",LN="aspnetcore.diagnostics.handler.type",IN="aspnetcore.rate_limiting.policy",xN="aspnetcore.rate_limiting.result",DN="acquired",UN="endpoint_limiter",bN="global_limiter",yN="request_canceled",VN="aspnetcore.request.is_unhandled",vN="aspnetcore.routing.is_fallback",BN="aspnetcore.routing.match_status",wN="failure",GN="success",HN="aspnetcore.user.is_authenticated",FN="client.address",YN="client.port",kN="code.column.number",KN="code.file.path",jN="code.function.name",WN="code.line.number",qN="code.stacktrace",$N="db.collection.name",XN="db.namespace",zN="db.operation.batch.size",QN="db.operation.name",JN="db.query.summary",ZN="db.query.text",tM="db.response.status_code",eM="db.stored_procedure.name",rM="db.system.name",nM="mariadb",oM="microsoft.sql_server",sM="mysql",iM="postgresql",aM="dotnet.gc.heap.generation",cM="gen0",_M="gen1",EM="gen2",uM="loh",TM="poh",SM="error.type",pM="_OTHER",lM="exception.escaped",Se="exception.message",jn="exception.stacktrace",pe="exception.type",AM=r=>`http.request.header.${r}`,dM="http.request.method",mM="_OTHER",fM="CONNECT",hM="DELETE",RM="GET",OM="HEAD",gM="OPTIONS",NM="PATCH",MM="POST",PM="PUT",CM="TRACE",LM="http.request.method_original",IM="http.request.resend_count",xM=r=>`http.response.header.${r}`,DM="http.response.status_code",UM="http.route",bM="jvm.gc.action",yM="jvm.gc.name",VM="jvm.memory.pool.name",vM="jvm.memory.type",BM="heap",wM="non_heap",GM="jvm.thread.daemon",HM="jvm.thread.state",FM="blocked",YM="new",kM="runnable",KM="terminated",jM="timed_waiting",WM="waiting",qM="network.local.address",$M="network.local.port",XM="network.peer.address",zM="network.peer.port",QM="network.protocol.name",JM="network.protocol.version",ZM="network.transport",tP="pipe",eP="quic",rP="tcp",nP="udp",oP="unix",sP="network.type",iP="ipv4",aP="ipv6",cP="otel.scope.name",_P="otel.scope.version",EP="otel.status_code",uP="ERROR",TP="OK",SP="otel.status_description",pP="server.address",lP="server.port",le="service.name",AP="service.version",dP="signalr.connection.status",mP="app_shutdown",fP="normal_closure",hP="timeout",RP="signalr.transport",OP="long_polling",gP="server_sent_events",NP="web_sockets",Je="telemetry.sdk.language",MP="cpp",PP="dotnet",CP="erlang",LP="go",IP="java",xP="nodejs",DP="php",UP="python",bP="ruby",yP="rust",VP="swift",vP="webjs",Ze="telemetry.sdk.name",tr="telemetry.sdk.version",BP="url.fragment",wP="url.full",GP="url.path",HP="url.query",FP="url.scheme",YP="user_agent.original"});var kP,KP,jP,WP,qP,$P,XP,zP,QP,JP,ZP,tC,eC,rC,nC,oC,sC,iC,aC,cC,_C,EC,uC,TC,SC,pC,lC,AC,dC,mC,fC,hC,RC,OC,gC,NC,MC,PC,CC,LC,IC,xC,DC,UC,bC,yC,VC,vC,BC,wC,GC,YT=k(()=>{kP="aspnetcore.diagnostics.exceptions",KP="aspnetcore.rate_limiting.active_request_leases",jP="aspnetcore.rate_limiting.queued_requests",WP="aspnetcore.rate_limiting.request.time_in_queue",qP="aspnetcore.rate_limiting.request_lease.duration",$P="aspnetcore.rate_limiting.requests",XP="aspnetcore.routing.match_attempts",zP="db.client.operation.duration",QP="dotnet.assembly.count",JP="dotnet.exceptions",ZP="dotnet.gc.collections",tC="dotnet.gc.heap.total_allocated",eC="dotnet.gc.last_collection.heap.fragmentation.size",rC="dotnet.gc.last_collection.heap.size",nC="dotnet.gc.last_collection.memory.committed_size",oC="dotnet.gc.pause.time",sC="dotnet.jit.compilation.time",iC="dotnet.jit.compiled_il.size",aC="dotnet.jit.compiled_methods",cC="dotnet.monitor.lock_contentions",_C="dotnet.process.cpu.count",EC="dotnet.process.cpu.time",uC="dotnet.process.memory.working_set",TC="dotnet.thread_pool.queue.length",SC="dotnet.thread_pool.thread.count",pC="dotnet.thread_pool.work_item.count",lC="dotnet.timer.count",AC="http.client.request.duration",dC="http.server.request.duration",mC="jvm.class.count",fC="jvm.class.loaded",hC="jvm.class.unloaded",RC="jvm.cpu.count",OC="jvm.cpu.recent_utilization",gC="jvm.cpu.time",NC="jvm.gc.duration",MC="jvm.memory.committed",PC="jvm.memory.limit",CC="jvm.memory.used",LC="jvm.memory.used_after_last_gc",IC="jvm.thread.count",xC="kestrel.active_connections",DC="kestrel.active_tls_handshakes",UC="kestrel.connection.duration",bC="kestrel.queued_connections",yC="kestrel.queued_requests",VC="kestrel.rejected_connections",vC="kestrel.tls_handshake.duration",BC="kestrel.upgraded_connections",wC="signalr.server.active_connections",GC="signalr.server.connection.duration"});var HC,kT=k(()=>{HC="exception"});var KT={};fA(KT,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>NN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>MN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>PN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>CN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>DN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>UN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>bN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>yN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>wN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>GN,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>gN,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>LN,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>IN,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>xN,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>VN,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>vN,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>BN,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>HN,ATTR_CLIENT_ADDRESS:()=>FN,ATTR_CLIENT_PORT:()=>YN,ATTR_CODE_COLUMN_NUMBER:()=>kN,ATTR_CODE_FILE_PATH:()=>KN,ATTR_CODE_FUNCTION_NAME:()=>jN,ATTR_CODE_LINE_NUMBER:()=>WN,ATTR_CODE_STACKTRACE:()=>qN,ATTR_DB_COLLECTION_NAME:()=>$N,ATTR_DB_NAMESPACE:()=>XN,ATTR_DB_OPERATION_BATCH_SIZE:()=>zN,ATTR_DB_OPERATION_NAME:()=>QN,ATTR_DB_QUERY_SUMMARY:()=>JN,ATTR_DB_QUERY_TEXT:()=>ZN,ATTR_DB_RESPONSE_STATUS_CODE:()=>tM,ATTR_DB_STORED_PROCEDURE_NAME:()=>eM,ATTR_DB_SYSTEM_NAME:()=>rM,ATTR_DOTNET_GC_HEAP_GENERATION:()=>aM,ATTR_ERROR_TYPE:()=>SM,ATTR_EXCEPTION_ESCAPED:()=>lM,ATTR_EXCEPTION_MESSAGE:()=>Se,ATTR_EXCEPTION_STACKTRACE:()=>jn,ATTR_EXCEPTION_TYPE:()=>pe,ATTR_HTTP_REQUEST_HEADER:()=>AM,ATTR_HTTP_REQUEST_METHOD:()=>dM,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>LM,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>IM,ATTR_HTTP_RESPONSE_HEADER:()=>xM,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>DM,ATTR_HTTP_ROUTE:()=>UM,ATTR_JVM_GC_ACTION:()=>bM,ATTR_JVM_GC_NAME:()=>yM,ATTR_JVM_MEMORY_POOL_NAME:()=>VM,ATTR_JVM_MEMORY_TYPE:()=>vM,ATTR_JVM_THREAD_DAEMON:()=>GM,ATTR_JVM_THREAD_STATE:()=>HM,ATTR_NETWORK_LOCAL_ADDRESS:()=>qM,ATTR_NETWORK_LOCAL_PORT:()=>$M,ATTR_NETWORK_PEER_ADDRESS:()=>XM,ATTR_NETWORK_PEER_PORT:()=>zM,ATTR_NETWORK_PROTOCOL_NAME:()=>QM,ATTR_NETWORK_PROTOCOL_VERSION:()=>JM,ATTR_NETWORK_TRANSPORT:()=>ZM,ATTR_NETWORK_TYPE:()=>sP,ATTR_OTEL_SCOPE_NAME:()=>cP,ATTR_OTEL_SCOPE_VERSION:()=>_P,ATTR_OTEL_STATUS_CODE:()=>EP,ATTR_OTEL_STATUS_DESCRIPTION:()=>SP,ATTR_SERVER_ADDRESS:()=>pP,ATTR_SERVER_PORT:()=>lP,ATTR_SERVICE_NAME:()=>le,ATTR_SERVICE_VERSION:()=>AP,ATTR_SIGNALR_CONNECTION_STATUS:()=>dP,ATTR_SIGNALR_TRANSPORT:()=>RP,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Je,ATTR_TELEMETRY_SDK_NAME:()=>Ze,ATTR_TELEMETRY_SDK_VERSION:()=>tr,ATTR_URL_FRAGMENT:()=>BP,ATTR_URL_FULL:()=>wP,ATTR_URL_PATH:()=>GP,ATTR_URL_QUERY:()=>HP,ATTR_URL_SCHEME:()=>FP,ATTR_USER_AGENT_ORIGINAL:()=>YP,AWSECSLAUNCHTYPEVALUES_EC2:()=>kg,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Kg,AwsEcsLaunchtypeValues:()=>jg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>Mg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>Pg,CLOUDPLATFORMVALUES_AWS_EC2:()=>Cg,CLOUDPLATFORMVALUES_AWS_ECS:()=>Lg,CLOUDPLATFORMVALUES_AWS_EKS:()=>Ig,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Dg,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>xg,CLOUDPLATFORMVALUES_AZURE_AKS:()=>yg,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>vg,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>bg,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>Vg,CLOUDPLATFORMVALUES_AZURE_VM:()=>Ug,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Fg,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Hg,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>wg,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Bg,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Gg,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>hg,CLOUDPROVIDERVALUES_AWS:()=>Rg,CLOUDPROVIDERVALUES_AZURE:()=>Og,CLOUDPROVIDERVALUES_GCP:()=>gg,CloudPlatformValues:()=>Yg,CloudProviderValues:()=>Ng,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>oh,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>Th,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>sh,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>uh,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>ah,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>ph,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>ch,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>ih,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Sh,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Eh,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>_h,DBSYSTEMVALUES_ADABAS:()=>Cf,DBSYSTEMVALUES_CACHE:()=>Pf,DBSYSTEMVALUES_CASSANDRA:()=>Kf,DBSYSTEMVALUES_CLOUDSCAPE:()=>mf,DBSYSTEMVALUES_COCKROACHDB:()=>rh,DBSYSTEMVALUES_COLDFUSION:()=>kf,DBSYSTEMVALUES_COSMOSDB:()=>zf,DBSYSTEMVALUES_COUCHBASE:()=>$f,DBSYSTEMVALUES_COUCHDB:()=>Xf,DBSYSTEMVALUES_DB2:()=>pf,DBSYSTEMVALUES_DERBY:()=>If,DBSYSTEMVALUES_DYNAMODB:()=>Qf,DBSYSTEMVALUES_EDB:()=>Mf,DBSYSTEMVALUES_ELASTICSEARCH:()=>th,DBSYSTEMVALUES_FILEMAKER:()=>xf,DBSYSTEMVALUES_FIREBIRD:()=>Lf,DBSYSTEMVALUES_FIRSTSQL:()=>Nf,DBSYSTEMVALUES_GEODE:()=>Zf,DBSYSTEMVALUES_H2:()=>Yf,DBSYSTEMVALUES_HANADB:()=>Of,DBSYSTEMVALUES_HBASE:()=>jf,DBSYSTEMVALUES_HIVE:()=>df,DBSYSTEMVALUES_HSQLDB:()=>ff,DBSYSTEMVALUES_INFORMIX:()=>Df,DBSYSTEMVALUES_INGRES:()=>gf,DBSYSTEMVALUES_INSTANTDB:()=>Uf,DBSYSTEMVALUES_INTERBASE:()=>bf,DBSYSTEMVALUES_MARIADB:()=>yf,DBSYSTEMVALUES_MAXDB:()=>Rf,DBSYSTEMVALUES_MEMCACHED:()=>eh,DBSYSTEMVALUES_MONGODB:()=>Wf,DBSYSTEMVALUES_MSSQL:()=>uf,DBSYSTEMVALUES_MYSQL:()=>Tf,DBSYSTEMVALUES_NEO4J:()=>Jf,DBSYSTEMVALUES_NETEZZA:()=>Vf,DBSYSTEMVALUES_ORACLE:()=>Sf,DBSYSTEMVALUES_OTHER_SQL:()=>Ef,DBSYSTEMVALUES_PERVASIVE:()=>vf,DBSYSTEMVALUES_POINTBASE:()=>Bf,DBSYSTEMVALUES_POSTGRESQL:()=>lf,DBSYSTEMVALUES_PROGRESS:()=>hf,DBSYSTEMVALUES_REDIS:()=>qf,DBSYSTEMVALUES_REDSHIFT:()=>Af,DBSYSTEMVALUES_SQLITE:()=>wf,DBSYSTEMVALUES_SYBASE:()=>Gf,DBSYSTEMVALUES_TERADATA:()=>Hf,DBSYSTEMVALUES_VERTICA:()=>Ff,DB_SYSTEM_NAME_VALUE_MARIADB:()=>nM,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>oM,DB_SYSTEM_NAME_VALUE_MYSQL:()=>sM,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>iM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>cM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>_M,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>EM,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>uM,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>TM,DbCassandraConsistencyLevelValues:()=>lh,DbSystemValues:()=>nh,ERROR_TYPE_VALUE_OTHER:()=>pM,EVENT_EXCEPTION:()=>HC,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Nh,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>gh,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Oh,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Ph,FAASINVOKEDPROVIDERVALUES_AWS:()=>Ch,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Lh,FAASINVOKEDPROVIDERVALUES_GCP:()=>Ih,FAASTRIGGERVALUES_DATASOURCE:()=>Ah,FAASTRIGGERVALUES_HTTP:()=>dh,FAASTRIGGERVALUES_OTHER:()=>hh,FAASTRIGGERVALUES_PUBSUB:()=>mh,FAASTRIGGERVALUES_TIMER:()=>fh,FaasDocumentOperationValues:()=>Mh,FaasInvokedProviderValues:()=>xh,FaasTriggerValues:()=>Rh,HOSTARCHVALUES_AMD64:()=>Wg,HOSTARCHVALUES_ARM32:()=>qg,HOSTARCHVALUES_ARM64:()=>$g,HOSTARCHVALUES_IA64:()=>Xg,HOSTARCHVALUES_PPC32:()=>zg,HOSTARCHVALUES_PPC64:()=>Qg,HOSTARCHVALUES_X86:()=>Jg,HTTPFLAVORVALUES_HTTP_1_0:()=>SR,HTTPFLAVORVALUES_HTTP_1_1:()=>pR,HTTPFLAVORVALUES_HTTP_2_0:()=>lR,HTTPFLAVORVALUES_QUIC:()=>dR,HTTPFLAVORVALUES_SPDY:()=>AR,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>fM,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>hM,HTTP_REQUEST_METHOD_VALUE_GET:()=>RM,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>OM,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>gM,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>mM,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>NM,HTTP_REQUEST_METHOD_VALUE_POST:()=>MM,HTTP_REQUEST_METHOD_VALUE_PUT:()=>PM,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>CM,HostArchValues:()=>Zg,HttpFlavorValues:()=>mR,JVM_MEMORY_TYPE_VALUE_HEAP:()=>BM,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>wM,JVM_THREAD_STATE_VALUE_BLOCKED:()=>FM,JVM_THREAD_STATE_VALUE_NEW:()=>YM,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>kM,JVM_THREAD_STATE_VALUE_TERMINATED:()=>KM,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>jM,JVM_THREAD_STATE_VALUE_WAITING:()=>WM,MESSAGETYPEVALUES_RECEIVED:()=>KR,MESSAGETYPEVALUES_SENT:()=>kR,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>fR,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>hR,MESSAGINGOPERATIONVALUES_PROCESS:()=>gR,MESSAGINGOPERATIONVALUES_RECEIVE:()=>OR,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>kP,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>KP,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>jP,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>$P,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>qP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>WP,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>XP,METRIC_DB_CLIENT_OPERATION_DURATION:()=>zP,METRIC_DOTNET_ASSEMBLY_COUNT:()=>QP,METRIC_DOTNET_EXCEPTIONS:()=>JP,METRIC_DOTNET_GC_COLLECTIONS:()=>ZP,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>tC,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>eC,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>rC,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>nC,METRIC_DOTNET_GC_PAUSE_TIME:()=>oC,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>sC,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>iC,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>aC,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>cC,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>_C,METRIC_DOTNET_PROCESS_CPU_TIME:()=>EC,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>uC,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>TC,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>SC,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>pC,METRIC_DOTNET_TIMER_COUNT:()=>lC,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>AC,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>dC,METRIC_JVM_CLASS_COUNT:()=>mC,METRIC_JVM_CLASS_LOADED:()=>fC,METRIC_JVM_CLASS_UNLOADED:()=>hC,METRIC_JVM_CPU_COUNT:()=>RC,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>OC,METRIC_JVM_CPU_TIME:()=>gC,METRIC_JVM_GC_DURATION:()=>NC,METRIC_JVM_MEMORY_COMMITTED:()=>MC,METRIC_JVM_MEMORY_LIMIT:()=>PC,METRIC_JVM_MEMORY_USED:()=>CC,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>LC,METRIC_JVM_THREAD_COUNT:()=>IC,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>xC,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>DC,METRIC_KESTREL_CONNECTION_DURATION:()=>UC,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>bC,METRIC_KESTREL_QUEUED_REQUESTS:()=>yC,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>VC,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>vC,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>BC,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>wC,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>GC,MessageTypeValues:()=>jR,MessagingDestinationKindValues:()=>RR,MessagingOperationValues:()=>NR,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>$h,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Qh,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Wh,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>oR,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Xh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>zh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>rR,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>jh,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>iR,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Jh,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>tR,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>sR,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Zh,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>eR,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>cR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>nR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>uR,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>_R,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>ER,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>aR,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>qh,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Fh,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Yh,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>kh,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Gh,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Hh,NETTRANSPORTVALUES_INPROC:()=>vh,NETTRANSPORTVALUES_IP:()=>bh,NETTRANSPORTVALUES_IP_TCP:()=>Dh,NETTRANSPORTVALUES_IP_UDP:()=>Uh,NETTRANSPORTVALUES_OTHER:()=>Bh,NETTRANSPORTVALUES_PIPE:()=>Vh,NETTRANSPORTVALUES_UNIX:()=>yh,NETWORK_TRANSPORT_VALUE_PIPE:()=>tP,NETWORK_TRANSPORT_VALUE_QUIC:()=>eP,NETWORK_TRANSPORT_VALUE_TCP:()=>rP,NETWORK_TRANSPORT_VALUE_UDP:()=>nP,NETWORK_TRANSPORT_VALUE_UNIX:()=>oP,NETWORK_TYPE_VALUE_IPV4:()=>iP,NETWORK_TYPE_VALUE_IPV6:()=>aP,NetHostConnectionSubtypeValues:()=>TR,NetHostConnectionTypeValues:()=>Kh,NetTransportValues:()=>wh,OSTYPEVALUES_AIX:()=>cN,OSTYPEVALUES_DARWIN:()=>rN,OSTYPEVALUES_DRAGONFLYBSD:()=>iN,OSTYPEVALUES_FREEBSD:()=>nN,OSTYPEVALUES_HPUX:()=>aN,OSTYPEVALUES_LINUX:()=>eN,OSTYPEVALUES_NETBSD:()=>oN,OSTYPEVALUES_OPENBSD:()=>sN,OSTYPEVALUES_SOLARIS:()=>_N,OSTYPEVALUES_WINDOWS:()=>tN,OSTYPEVALUES_Z_OS:()=>EN,OTEL_STATUS_CODE_VALUE_ERROR:()=>uP,OTEL_STATUS_CODE_VALUE_OK:()=>TP,OsTypeValues:()=>uN,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>VR,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>DR,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>PR,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>HR,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>IR,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>yR,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>wR,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>LR,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>xR,RPCGRPCSTATUSCODEVALUES_OK:()=>MR,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>vR,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>UR,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>bR,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>FR,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>GR,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>BR,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>CR,RpcGrpcStatusCodeValues:()=>YR,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>dm,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Im,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>pm,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>Em,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Cm,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Om,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>hm,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>xm,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>mm,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>um,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>Am,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Rm,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>lm,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Tm,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Sm,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Lm,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Nm,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Mm,SEMATTRS_AWS_DYNAMODB_SELECT:()=>fm,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>gm,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>_m,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Pm,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>YA,SEMATTRS_CODE_FILEPATH:()=>Wd,SEMATTRS_CODE_FUNCTION:()=>Kd,SEMATTRS_CODE_LINENO:()=>qd,SEMATTRS_CODE_NAMESPACE:()=>jd,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>ZA,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>od,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>nd,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>ed,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>QA,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>JA,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>rd,SEMATTRS_DB_CASSANDRA_TABLE:()=>td,SEMATTRS_DB_CONNECTION_STRING:()=>KA,SEMATTRS_DB_HBASE_NAMESPACE:()=>sd,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>WA,SEMATTRS_DB_MONGODB_COLLECTION:()=>ad,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>zA,SEMATTRS_DB_NAME:()=>qA,SEMATTRS_DB_OPERATION:()=>XA,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>id,SEMATTRS_DB_SQL_TABLE:()=>cd,SEMATTRS_DB_STATEMENT:()=>$A,SEMATTRS_DB_SYSTEM:()=>kA,SEMATTRS_DB_USER:()=>jA,SEMATTRS_ENDUSER_ID:()=>Gd,SEMATTRS_ENDUSER_ROLE:()=>Hd,SEMATTRS_ENDUSER_SCOPE:()=>Fd,SEMATTRS_EXCEPTION_ESCAPED:()=>Td,SEMATTRS_EXCEPTION_MESSAGE:()=>Ed,SEMATTRS_EXCEPTION_STACKTRACE:()=>ud,SEMATTRS_EXCEPTION_TYPE:()=>_d,SEMATTRS_FAAS_COLDSTART:()=>Rd,SEMATTRS_FAAS_CRON:()=>hd,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>ld,SEMATTRS_FAAS_DOCUMENT_NAME:()=>md,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Ad,SEMATTRS_FAAS_DOCUMENT_TIME:()=>dd,SEMATTRS_FAAS_EXECUTION:()=>pd,SEMATTRS_FAAS_INVOKED_NAME:()=>Od,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>gd,SEMATTRS_FAAS_INVOKED_REGION:()=>Nd,SEMATTRS_FAAS_TIME:()=>fd,SEMATTRS_FAAS_TRIGGER:()=>Sd,SEMATTRS_HTTP_CLIENT_IP:()=>cm,SEMATTRS_HTTP_FLAVOR:()=>tm,SEMATTRS_HTTP_HOST:()=>Qd,SEMATTRS_HTTP_METHOD:()=>$d,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>rm,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>nm,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>om,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>sm,SEMATTRS_HTTP_ROUTE:()=>am,SEMATTRS_HTTP_SCHEME:()=>Jd,SEMATTRS_HTTP_SERVER_NAME:()=>im,SEMATTRS_HTTP_STATUS_CODE:()=>Zd,SEMATTRS_HTTP_TARGET:()=>zd,SEMATTRS_HTTP_URL:()=>Xd,SEMATTRS_HTTP_USER_AGENT:()=>em,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>af,SEMATTRS_MESSAGE_ID:()=>sf,SEMATTRS_MESSAGE_TYPE:()=>of,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>cf,SEMATTRS_MESSAGING_CONSUMER_ID:()=>km,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Gm,SEMATTRS_MESSAGING_DESTINATION:()=>Um,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>bm,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>qm,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Wm,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>jm,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>$m,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Xm,SEMATTRS_MESSAGING_MESSAGE_ID:()=>wm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Fm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Hm,SEMATTRS_MESSAGING_OPERATION:()=>Ym,SEMATTRS_MESSAGING_PROTOCOL:()=>Vm,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>vm,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Km,SEMATTRS_MESSAGING_SYSTEM:()=>Dm,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>ym,SEMATTRS_MESSAGING_URL:()=>Bm,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Bd,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Vd,SEMATTRS_NET_HOST_CARRIER_MNC:()=>vd,SEMATTRS_NET_HOST_CARRIER_NAME:()=>yd,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>bd,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Ud,SEMATTRS_NET_HOST_IP:()=>Id,SEMATTRS_NET_HOST_NAME:()=>Dd,SEMATTRS_NET_HOST_PORT:()=>xd,SEMATTRS_NET_PEER_IP:()=>Pd,SEMATTRS_NET_PEER_NAME:()=>Ld,SEMATTRS_NET_PEER_PORT:()=>Cd,SEMATTRS_NET_TRANSPORT:()=>Md,SEMATTRS_PEER_SERVICE:()=>wd,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Zm,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>rf,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>nf,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>ef,SEMATTRS_RPC_JSONRPC_VERSION:()=>tf,SEMATTRS_RPC_METHOD:()=>Jm,SEMATTRS_RPC_SERVICE:()=>Qm,SEMATTRS_RPC_SYSTEM:()=>zm,SEMATTRS_THREAD_ID:()=>Yd,SEMATTRS_THREAD_NAME:()=>kd,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>JR,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>QR,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>ZR,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>tO,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>eO,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>rO,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>nO,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>sO,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>oO,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>aO,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>iO,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>qR,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>XR,SEMRESATTRS_CLOUD_PLATFORM:()=>zR,SEMRESATTRS_CLOUD_PROVIDER:()=>WR,SEMRESATTRS_CLOUD_REGION:()=>$R,SEMRESATTRS_CONTAINER_ID:()=>_O,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>uO,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>TO,SEMRESATTRS_CONTAINER_NAME:()=>cO,SEMRESATTRS_CONTAINER_RUNTIME:()=>EO,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>SO,SEMRESATTRS_DEVICE_ID:()=>pO,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>lO,SEMRESATTRS_DEVICE_MODEL_NAME:()=>AO,SEMRESATTRS_FAAS_ID:()=>mO,SEMRESATTRS_FAAS_INSTANCE:()=>hO,SEMRESATTRS_FAAS_MAX_MEMORY:()=>RO,SEMRESATTRS_FAAS_NAME:()=>dO,SEMRESATTRS_FAAS_VERSION:()=>fO,SEMRESATTRS_HOST_ARCH:()=>MO,SEMRESATTRS_HOST_ID:()=>OO,SEMRESATTRS_HOST_IMAGE_ID:()=>CO,SEMRESATTRS_HOST_IMAGE_NAME:()=>PO,SEMRESATTRS_HOST_IMAGE_VERSION:()=>LO,SEMRESATTRS_HOST_NAME:()=>gO,SEMRESATTRS_HOST_TYPE:()=>NO,SEMRESATTRS_K8S_CLUSTER_NAME:()=>IO,SEMRESATTRS_K8S_CONTAINER_NAME:()=>VO,SEMRESATTRS_K8S_CRONJOB_NAME:()=>qO,SEMRESATTRS_K8S_CRONJOB_UID:()=>WO,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>kO,SEMRESATTRS_K8S_DAEMONSET_UID:()=>YO,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>GO,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>wO,SEMRESATTRS_K8S_JOB_NAME:()=>jO,SEMRESATTRS_K8S_JOB_UID:()=>KO,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>UO,SEMRESATTRS_K8S_NODE_NAME:()=>xO,SEMRESATTRS_K8S_NODE_UID:()=>DO,SEMRESATTRS_K8S_POD_NAME:()=>yO,SEMRESATTRS_K8S_POD_UID:()=>bO,SEMRESATTRS_K8S_REPLICASET_NAME:()=>BO,SEMRESATTRS_K8S_REPLICASET_UID:()=>vO,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>FO,SEMRESATTRS_K8S_STATEFULSET_UID:()=>HO,SEMRESATTRS_OS_DESCRIPTION:()=>XO,SEMRESATTRS_OS_NAME:()=>zO,SEMRESATTRS_OS_TYPE:()=>$O,SEMRESATTRS_OS_VERSION:()=>QO,SEMRESATTRS_PROCESS_COMMAND:()=>eg,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>ng,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>rg,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>ZO,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>tg,SEMRESATTRS_PROCESS_OWNER:()=>og,SEMRESATTRS_PROCESS_PID:()=>JO,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>ag,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>sg,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>ig,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Eg,SEMRESATTRS_SERVICE_NAME:()=>cg,SEMRESATTRS_SERVICE_NAMESPACE:()=>_g,SEMRESATTRS_SERVICE_VERSION:()=>ug,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>lg,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>Sg,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Tg,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>pg,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>mg,SEMRESATTRS_WEBENGINE_NAME:()=>Ag,SEMRESATTRS_WEBENGINE_VERSION:()=>dg,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>mP,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>fP,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>hP,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>OP,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>gP,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>NP,SemanticAttributes:()=>_f,SemanticResourceAttributes:()=>fg,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>TN,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>SN,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>pN,TELEMETRYSDKLANGUAGEVALUES_GO:()=>lN,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>AN,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>dN,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>mN,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>fN,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>hN,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>RN,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>MP,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>PP,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>CP,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>LP,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>IP,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>xP,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>DP,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>UP,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>bP,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>yP,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>VP,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>vP,TelemetrySdkLanguageValues:()=>ON});var Ae=k(()=>{pE();HT();FT();YT();kT()});var jT=p(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.ATTR_PROCESS_RUNTIME_NAME=void 0;er.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var WT=p(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.SDK_INFO=void 0;var FC=gs(),rr=(Ae(),b(KT)),YC=jT();nr.SDK_INFO={[rr.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[YC.ATTR_PROCESS_RUNTIME_NAME]:"browser",[rr.ATTR_TELEMETRY_SDK_LANGUAGE]:rr.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[rr.ATTR_TELEMETRY_SDK_VERSION]:FC.VERSION}});var Wn=p(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.otperformance=V.SDK_INFO=V._globalThis=V.getStringListFromEnv=V.getNumberFromEnv=V.getBooleanFromEnv=V.getStringFromEnv=void 0;var or=Rs();Object.defineProperty(V,"getStringFromEnv",{enumerable:!0,get:function(){return or.getStringFromEnv}});Object.defineProperty(V,"getBooleanFromEnv",{enumerable:!0,get:function(){return or.getBooleanFromEnv}});Object.defineProperty(V,"getNumberFromEnv",{enumerable:!0,get:function(){return or.getNumberFromEnv}});Object.defineProperty(V,"getStringListFromEnv",{enumerable:!0,get:function(){return or.getStringListFromEnv}});var kC=Os();Object.defineProperty(V,"_globalThis",{enumerable:!0,get:function(){return kC._globalThis}});var KC=WT();Object.defineProperty(V,"SDK_INFO",{enumerable:!0,get:function(){return KC.SDK_INFO}});V.otperformance=performance});var zT=p(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.addHrTimes=g.isTimeInput=g.isTimeInputHrTime=g.hrTimeToMicroseconds=g.hrTimeToMilliseconds=g.hrTimeToNanoseconds=g.hrTimeToTimeStamp=g.hrTimeDuration=g.timeInputToHrTime=g.hrTime=g.getTimeOrigin=g.millisToHrTime=void 0;var sr=Wn(),qT=9,jC=6,WC=Math.pow(10,jC),ir=Math.pow(10,qT);function de(r){let t=r/1e3,e=Math.trunc(t),n=Math.round(r%1e3*WC);return[e,n]}g.millisToHrTime=de;function qC(){return sr.otperformance.timeOrigin}g.getTimeOrigin=qC;function $T(r){let t=de(sr.otperformance.timeOrigin),e=de(typeof r=="number"?r:sr.otperformance.now());return XT(t,e)}g.hrTime=$T;function $C(r){if(qn(r))return r;if(typeof r=="number")return r<sr.otperformance.timeOrigin?$T(r):de(r);if(r instanceof Date)return de(r.getTime());throw TypeError("Invalid input type")}g.timeInputToHrTime=$C;function XC(r,t){let e=t[0]-r[0],n=t[1]-r[1];return n<0&&(e-=1,n+=ir),[e,n]}g.hrTimeDuration=XC;function zC(r){let t=qT,e=`${"0".repeat(t)}${r[1]}Z`,n=e.substring(e.length-t-1);return new Date(r[0]*1e3).toISOString().replace("000Z",n)}g.hrTimeToTimeStamp=zC;function QC(r){return r[0]*ir+r[1]}g.hrTimeToNanoseconds=QC;function JC(r){return r[0]*1e3+r[1]/1e6}g.hrTimeToMilliseconds=JC;function ZC(r){return r[0]*1e6+r[1]/1e3}g.hrTimeToMicroseconds=ZC;function qn(r){return Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"}g.isTimeInputHrTime=qn;function tL(r){return qn(r)||typeof r=="number"||r instanceof Date}g.isTimeInput=tL;function XT(r,t){let e=[r[0]+t[0],r[1]+t[1]];return e[1]>=ir&&(e[1]-=ir,e[0]+=1),e}g.addHrTimes=XT});var QT=p(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.unrefTimer=void 0;function eL(r){typeof r!="number"&&r.unref()}ar.unrefTimer=eL});var JT=p(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.ExportResultCode=void 0;var rL;(function(r){r[r.SUCCESS=0]="SUCCESS",r[r.FAILED=1]="FAILED"})(rL=me.ExportResultCode||(me.ExportResultCode={}))});var tS=p(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.CompositePropagator=void 0;var ZT=(d(),b(c)),$n=class{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields=="function"?e.fields():[]).reduce((e,n)=>e.concat(n),[])))}inject(t,e,n){for(let o of this._propagators)try{o.inject(t,e,n)}catch(s){ZT.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${s.message}`)}}extract(t,e,n){return this._propagators.reduce((o,s)=>{try{return s.extract(o,e,n)}catch(i){ZT.diag.warn(`Failed to extract with ${s.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}};cr.CompositePropagator=$n});var eS=p(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.validateValue=Ht.validateKey=void 0;var Xn="[_0-9a-z-*/]",nL=`[a-z]${Xn}{0,255}`,oL=`[a-z0-9]${Xn}{0,240}@[a-z]${Xn}{0,13}`,sL=new RegExp(`^(?:${nL}|${oL})$`),iL=/^[ -~]{0,255}[!-~]$/,aL=/,|=/;function cL(r){return sL.test(r)}Ht.validateKey=cL;function _L(r){return iL.test(r)&&!aL.test(r)}Ht.validateValue=_L});var Qn=p(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.TraceState=void 0;var rS=eS(),nS=32,EL=512,oS=",",sS="=",zn=class r{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,e){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n}unset(t){let e=this._clone();return e._internalState.delete(t),e}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,e)=>(t.push(e+sS+this.get(e)),t),[]).join(oS)}_parse(t){t.length>EL||(this._internalState=t.split(oS).reverse().reduce((e,n)=>{let o=n.trim(),s=o.indexOf(sS);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,n.length);(0,rS.validateKey)(i)&&(0,rS.validateValue)(a)&&e.set(i,a)}return e},new Map),this._internalState.size>nS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,nS))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new r;return t._internalState=new Map(this._internalState),t}};_r.TraceState=zn});var aS=p(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.W3CTraceContextPropagator=v.parseTraceParent=v.TRACE_STATE_HEADER=v.TRACE_PARENT_HEADER=void 0;var Er=(d(),b(c)),uL=Te(),TL=Qn();v.TRACE_PARENT_HEADER="traceparent";v.TRACE_STATE_HEADER="tracestate";var SL="00",pL="(?!ff)[\\da-f]{2}",lL="(?![0]{32})[\\da-f]{32}",AL="(?![0]{16})[\\da-f]{16}",dL="[\\da-f]{2}",mL=new RegExp(`^\\s?(${pL})-(${lL})-(${AL})-(${dL})(-.*)?\\s?$`);function iS(r){let t=mL.exec(r);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}v.parseTraceParent=iS;var Jn=class{inject(t,e,n){let o=Er.trace.getSpanContext(t);if(!o||(0,uL.isTracingSuppressed)(t)||!(0,Er.isSpanContextValid)(o))return;let s=`${SL}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||Er.TraceFlags.NONE).toString(16)}`;n.set(e,v.TRACE_PARENT_HEADER,s),o.traceState&&n.set(e,v.TRACE_STATE_HEADER,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,v.TRACE_PARENT_HEADER);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=iS(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,v.TRACE_STATE_HEADER);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=new TL.TraceState(typeof _=="string"?_:void 0)}return Er.trace.setSpanContext(t,i)}fields(){return[v.TRACE_PARENT_HEADER,v.TRACE_STATE_HEADER]}};v.W3CTraceContextPropagator=Jn});var cS=p(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.getRPCMetadata=et.deleteRPCMetadata=et.setRPCMetadata=et.RPCType=void 0;var fL=(d(),b(c)),Zn=(0,fL.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),hL;(function(r){r.HTTP="http"})(hL=et.RPCType||(et.RPCType={}));function RL(r,t){return r.setValue(Zn,t)}et.setRPCMetadata=RL;function OL(r){return r.deleteValue(Zn)}et.deleteRPCMetadata=OL;function gL(r){return r.getValue(Zn)}et.getRPCMetadata=gL});var SS=p(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.isPlainObject=void 0;var NL="[object Object]",ML="[object Null]",PL="[object Undefined]",CL=Function.prototype,_S=CL.toString,LL=_S.call(Object),IL=Object.getPrototypeOf,ES=Object.prototype,uS=ES.hasOwnProperty,Lt=Symbol?Symbol.toStringTag:void 0,TS=ES.toString;function xL(r){if(!DL(r)||UL(r)!==NL)return!1;let t=IL(r);if(t===null)return!0;let e=uS.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&_S.call(e)===LL}ur.isPlainObject=xL;function DL(r){return r!=null&&typeof r=="object"}function UL(r){return r==null?r===void 0?PL:ML:Lt&&Lt in Object(r)?bL(r):yL(r)}function bL(r){let t=uS.call(r,Lt),e=r[Lt],n=!1;try{r[Lt]=void 0,n=!0}catch{}let o=TS.call(r);return n&&(t?r[Lt]=e:delete r[Lt]),o}function yL(r){return TS.call(r)}});var mS=p(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.merge=void 0;var pS=SS(),VL=20;function vL(...r){let t=r.shift(),e=new WeakMap;for(;r.length>0;)t=AS(t,r.shift(),0,e);return t}pr.merge=vL;function to(r){return Sr(r)?r.slice():r}function AS(r,t,e=0,n){let o;if(!(e>VL)){if(e++,Tr(r)||Tr(t)||dS(t))o=to(t);else if(Sr(r)){if(o=r.slice(),Sr(t))for(let s=0,i=t.length;s<i;s++)o.push(to(t[s]));else if(fe(t)){let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i];o[_]=to(t[_])}}}else if(fe(r))if(fe(t)){if(!BL(r,t))return t;o=Object.assign({},r);let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i],E=t[_];if(Tr(E))typeof E>"u"?delete o[_]:o[_]=E;else{let u=o[_],S=E;if(lS(r,_,n)||lS(t,_,n))delete o[_];else{if(fe(u)&&fe(S)){let A=n.get(u)||[],h=n.get(S)||[];A.push({obj:r,key:_}),h.push({obj:t,key:_}),n.set(u,A),n.set(S,h)}o[_]=AS(o[_],E,e,n)}}}}else o=t;return o}}function lS(r,t,e){let n=e.get(r[t])||[];for(let o=0,s=n.length;o<s;o++){let i=n[o];if(i.key===t&&i.obj===r)return!0}return!1}function Sr(r){return Array.isArray(r)}function dS(r){return typeof r=="function"}function fe(r){return!Tr(r)&&!Sr(r)&&!dS(r)&&typeof r=="object"}function Tr(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r>"u"||r instanceof Date||r instanceof RegExp||r===null}function BL(r,t){return!(!(0,pS.isPlainObject)(r)||!(0,pS.isPlainObject)(t))}});var fS=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.callWithTimeout=Ft.TimeoutError=void 0;var lr=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};Ft.TimeoutError=lr;function wL(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new lr("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}Ft.callWithTimeout=wL});var RS=p(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.isUrlIgnored=Yt.urlMatches=void 0;function hS(r,t){return typeof t=="string"?r===t:!!r.match(t)}Yt.urlMatches=hS;function GL(r,t){if(!t)return!1;for(let e of t)if(hS(r,e))return!0;return!1}Yt.isUrlIgnored=GL});var OS=p(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.Deferred=void 0;var eo=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};Ar.Deferred=eo});var gS=p(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.BindOnceFuture=void 0;var HL=OS(),ro=class{_isCalled=!1;_deferred=new HL.Deferred;_callback;_that;constructor(t,e){this._callback=t,this._that=e}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};dr.BindOnceFuture=ro});var MS=p(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.diagLogLevelFromString=void 0;var pt=(d(),b(c)),NS={ALL:pt.DiagLogLevel.ALL,VERBOSE:pt.DiagLogLevel.VERBOSE,DEBUG:pt.DiagLogLevel.DEBUG,INFO:pt.DiagLogLevel.INFO,WARN:pt.DiagLogLevel.WARN,ERROR:pt.DiagLogLevel.ERROR,NONE:pt.DiagLogLevel.NONE};function FL(r){if(r==null)return;let t=NS[r.toUpperCase()];return t??(pt.diag.warn(`Unknown log level "${r}", expected one of ${Object.keys(NS)}, using default`),pt.DiagLogLevel.INFO)}mr.diagLogLevelFromString=FL});var CS=p(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr._export=void 0;var PS=(d(),b(c)),YL=Te();function kL(r,t){return new Promise(e=>{PS.context.with((0,YL.suppressTracing)(PS.context.active()),()=>{r.export(t,n=>{e(n)})})})}fr._export=kL});var P=p(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.internal=T.diagLogLevelFromString=T.BindOnceFuture=T.urlMatches=T.isUrlIgnored=T.callWithTimeout=T.TimeoutError=T.merge=T.TraceState=T.unsuppressTracing=T.suppressTracing=T.isTracingSuppressed=T.setRPCMetadata=T.getRPCMetadata=T.deleteRPCMetadata=T.RPCType=T.parseTraceParent=T.W3CTraceContextPropagator=T.TRACE_STATE_HEADER=T.TRACE_PARENT_HEADER=T.CompositePropagator=T.otperformance=T.getStringListFromEnv=T.getNumberFromEnv=T.getBooleanFromEnv=T.getStringFromEnv=T._globalThis=T.SDK_INFO=T.parseKeyPairsIntoRecord=T.ExportResultCode=T.unrefTimer=T.timeInputToHrTime=T.millisToHrTime=T.isTimeInputHrTime=T.isTimeInput=T.hrTimeToTimeStamp=T.hrTimeToNanoseconds=T.hrTimeToMilliseconds=T.hrTimeToMicroseconds=T.hrTimeDuration=T.hrTime=T.getTimeOrigin=T.addHrTimes=T.loggingErrorHandler=T.setGlobalErrorHandler=T.globalErrorHandler=T.sanitizeAttributes=T.isAttributeValue=T.AnchoredClock=T.W3CBaggagePropagator=void 0;var KL=Ts();Object.defineProperty(T,"W3CBaggagePropagator",{enumerable:!0,get:function(){return KL.W3CBaggagePropagator}});var jL=Ss();Object.defineProperty(T,"AnchoredClock",{enumerable:!0,get:function(){return jL.AnchoredClock}});var LS=ms();Object.defineProperty(T,"isAttributeValue",{enumerable:!0,get:function(){return LS.isAttributeValue}});Object.defineProperty(T,"sanitizeAttributes",{enumerable:!0,get:function(){return LS.sanitizeAttributes}});var IS=hs();Object.defineProperty(T,"globalErrorHandler",{enumerable:!0,get:function(){return IS.globalErrorHandler}});Object.defineProperty(T,"setGlobalErrorHandler",{enumerable:!0,get:function(){return IS.setGlobalErrorHandler}});var WL=kn();Object.defineProperty(T,"loggingErrorHandler",{enumerable:!0,get:function(){return WL.loggingErrorHandler}});var K=zT();Object.defineProperty(T,"addHrTimes",{enumerable:!0,get:function(){return K.addHrTimes}});Object.defineProperty(T,"getTimeOrigin",{enumerable:!0,get:function(){return K.getTimeOrigin}});Object.defineProperty(T,"hrTime",{enumerable:!0,get:function(){return K.hrTime}});Object.defineProperty(T,"hrTimeDuration",{enumerable:!0,get:function(){return K.hrTimeDuration}});Object.defineProperty(T,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return K.hrTimeToMicroseconds}});Object.defineProperty(T,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return K.hrTimeToMilliseconds}});Object.defineProperty(T,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return K.hrTimeToNanoseconds}});Object.defineProperty(T,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return K.hrTimeToTimeStamp}});Object.defineProperty(T,"isTimeInput",{enumerable:!0,get:function(){return K.isTimeInput}});Object.defineProperty(T,"isTimeInputHrTime",{enumerable:!0,get:function(){return K.isTimeInputHrTime}});Object.defineProperty(T,"millisToHrTime",{enumerable:!0,get:function(){return K.millisToHrTime}});Object.defineProperty(T,"timeInputToHrTime",{enumerable:!0,get:function(){return K.timeInputToHrTime}});var qL=QT();Object.defineProperty(T,"unrefTimer",{enumerable:!0,get:function(){return qL.unrefTimer}});var $L=JT();Object.defineProperty(T,"ExportResultCode",{enumerable:!0,get:function(){return $L.ExportResultCode}});var XL=wn();Object.defineProperty(T,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return XL.parseKeyPairsIntoRecord}});var It=Wn();Object.defineProperty(T,"SDK_INFO",{enumerable:!0,get:function(){return It.SDK_INFO}});Object.defineProperty(T,"_globalThis",{enumerable:!0,get:function(){return It._globalThis}});Object.defineProperty(T,"getStringFromEnv",{enumerable:!0,get:function(){return It.getStringFromEnv}});Object.defineProperty(T,"getBooleanFromEnv",{enumerable:!0,get:function(){return It.getBooleanFromEnv}});Object.defineProperty(T,"getNumberFromEnv",{enumerable:!0,get:function(){return It.getNumberFromEnv}});Object.defineProperty(T,"getStringListFromEnv",{enumerable:!0,get:function(){return It.getStringListFromEnv}});Object.defineProperty(T,"otperformance",{enumerable:!0,get:function(){return It.otperformance}});var zL=tS();Object.defineProperty(T,"CompositePropagator",{enumerable:!0,get:function(){return zL.CompositePropagator}});var hr=aS();Object.defineProperty(T,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return hr.TRACE_PARENT_HEADER}});Object.defineProperty(T,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return hr.TRACE_STATE_HEADER}});Object.defineProperty(T,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return hr.W3CTraceContextPropagator}});Object.defineProperty(T,"parseTraceParent",{enumerable:!0,get:function(){return hr.parseTraceParent}});var Rr=cS();Object.defineProperty(T,"RPCType",{enumerable:!0,get:function(){return Rr.RPCType}});Object.defineProperty(T,"deleteRPCMetadata",{enumerable:!0,get:function(){return Rr.deleteRPCMetadata}});Object.defineProperty(T,"getRPCMetadata",{enumerable:!0,get:function(){return Rr.getRPCMetadata}});Object.defineProperty(T,"setRPCMetadata",{enumerable:!0,get:function(){return Rr.setRPCMetadata}});var no=Te();Object.defineProperty(T,"isTracingSuppressed",{enumerable:!0,get:function(){return no.isTracingSuppressed}});Object.defineProperty(T,"suppressTracing",{enumerable:!0,get:function(){return no.suppressTracing}});Object.defineProperty(T,"unsuppressTracing",{enumerable:!0,get:function(){return no.unsuppressTracing}});var QL=Qn();Object.defineProperty(T,"TraceState",{enumerable:!0,get:function(){return QL.TraceState}});var JL=mS();Object.defineProperty(T,"merge",{enumerable:!0,get:function(){return JL.merge}});var xS=fS();Object.defineProperty(T,"TimeoutError",{enumerable:!0,get:function(){return xS.TimeoutError}});Object.defineProperty(T,"callWithTimeout",{enumerable:!0,get:function(){return xS.callWithTimeout}});var DS=RS();Object.defineProperty(T,"isUrlIgnored",{enumerable:!0,get:function(){return DS.isUrlIgnored}});Object.defineProperty(T,"urlMatches",{enumerable:!0,get:function(){return DS.urlMatches}});var ZL=gS();Object.defineProperty(T,"BindOnceFuture",{enumerable:!0,get:function(){return ZL.BindOnceFuture}});var tI=MS();Object.defineProperty(T,"diagLogLevelFromString",{enumerable:!0,get:function(){return tI.diagLogLevelFromString}});var eI=CS();T.internal={_export:eI._export}});var ne={};import*as cv from"async_hooks";var Uo=k(()=>{tt(ne,cv)});var ye={};import*as _v from"events";var Tp=k(()=>{tt(ye,_v)});var yo=p(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.AbstractAsyncHooksContextManager=void 0;var PI=(Tp(),b(ye)),CI=["addListener","on","once","prependListener","prependOnceListener"],bo=class{bind(t,e){return e instanceof PI.EventEmitter?this._bindEventEmitter(t,e):typeof e=="function"?this._bindFunction(t,e):e}_bindFunction(t,e){let n=this,o=function(...s){return n.with(t,()=>e.apply(this,s))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o}_bindEventEmitter(t,e){return this._getPatchMap(e)!==void 0||(this._createPatchMap(e),CI.forEach(o=>{e[o]!==void 0&&(e[o]=this._patchAddListener(e,e[o],t))}),typeof e.removeListener=="function"&&(e.removeListener=this._patchRemoveListener(e,e.removeListener)),typeof e.off=="function"&&(e.off=this._patchRemoveListener(e,e.off)),typeof e.removeAllListeners=="function"&&(e.removeAllListeners=this._patchRemoveAllListeners(e,e.removeAllListeners))),e}_patchRemoveListener(t,e){let n=this;return function(o,s){let i=n._getPatchMap(t)?.[o];if(i===void 0)return e.call(this,o,s);let a=i.get(s);return e.call(this,o,a||s)}}_patchRemoveAllListeners(t,e){let n=this;return function(o){let s=n._getPatchMap(t);return s!==void 0&&(arguments.length===0?n._createPatchMap(t):s[o]!==void 0&&delete s[o]),e.apply(this,arguments)}}_patchAddListener(t,e,n){let o=this;return function(s,i){if(o._wrapped)return e.call(this,s,i);let a=o._getPatchMap(t);a===void 0&&(a=o._createPatchMap(t));let _=a[s];_===void 0&&(_=new WeakMap,a[s]=_);let E=o.bind(n,i);_.set(i,E),o._wrapped=!0;try{return e.call(this,s,E)}finally{o._wrapped=!1}}}_createPatchMap(t){let e=Object.create(null);return t[this._kOtListeners]=e,e}_getPatchMap(t){return t[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};dn.AbstractAsyncHooksContextManager=bo});var Sp=p(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.AsyncHooksContextManager=void 0;var LI=(d(),b(c)),II=(Uo(),b(ne)),xI=yo(),Vo=class extends xI.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=II.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]??LI.ROOT_CONTEXT}with(t,e,n,...o){this._enterContext(t);try{return e.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(t,e){if(e==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(t,n)}_destroy(t){this._contexts.delete(t)}_before(t){let e=this._contexts.get(t);e!==void 0&&this._enterContext(e)}_after(){this._exitContext()}_enterContext(t){this._stack.push(t)}_exitContext(){this._stack.pop()}};mn.AsyncHooksContextManager=Vo});var pp=p(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.AsyncLocalStorageContextManager=void 0;var DI=(d(),b(c)),UI=(Uo(),b(ne)),bI=yo(),vo=class extends bI.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new UI.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??DI.ROOT_CONTEXT}with(t,e,n,...o){let s=n==null?e:e.bind(n);return this._asyncLocalStorage.run(t,s,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};fn.AsyncLocalStorageContextManager=vo});var lp=p(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.AsyncLocalStorageContextManager=oe.AsyncHooksContextManager=void 0;var yI=Sp();Object.defineProperty(oe,"AsyncHooksContextManager",{enumerable:!0,get:function(){return yI.AsyncHooksContextManager}});var VI=pp();Object.defineProperty(oe,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return VI.AsyncLocalStorageContextManager}})});var Gp=p(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.toAnyValue=z.toKeyValue=z.toAttributes=z.createInstrumentationScope=z.createResource=void 0;function kI(r){let t={attributes:wp(r.attributes),droppedAttributesCount:0},e=r.schemaUrl;return e&&e!==""&&(t.schemaUrl=e),t}z.createResource=kI;function KI(r){return{name:r.name,version:r.version}}z.createInstrumentationScope=KI;function wp(r){return Object.keys(r).map(t=>Ho(t,r[t]))}z.toAttributes=wp;function Ho(r,t){return{key:r,value:Fo(t)}}z.toKeyValue=Ho;function Fo(r){let t=typeof r;return t==="string"?{stringValue:r}:t==="number"?Number.isInteger(r)?{intValue:r}:{doubleValue:r}:t==="boolean"?{boolValue:r}:r instanceof Uint8Array?{bytesValue:r}:Array.isArray(r)?{arrayValue:{values:r.map(Fo)}}:t==="object"&&r!=null?{kvlistValue:{values:Object.entries(r).map(([e,n])=>Ho(e,n))}}:{}}z.toAnyValue=Fo});var Fp=p(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.hexToBinary=void 0;function Hp(r){return r>=48&&r<=57?r-48:r>=97&&r<=102?r-87:r-55}function jI(r){let t=new Uint8Array(r.length/2),e=0;for(let n=0;n<r.length;n+=2){let o=Hp(r.charCodeAt(n)),s=Hp(r.charCodeAt(n+1));t[e++]=o<<4|s}return t}On.hexToBinary=jI});var Wp=p(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.getOtlpEncoder=Q.encodeAsString=Q.encodeAsLongBits=Q.toLongBits=Q.hrTimeToNanos=void 0;var WI=P(),Yo=Fp();function ko(r){let t=BigInt(1e9);return BigInt(Math.trunc(r[0]))*t+BigInt(Math.trunc(r[1]))}Q.hrTimeToNanos=ko;function kp(r){let t=Number(BigInt.asUintN(32,r)),e=Number(BigInt.asUintN(32,r>>BigInt(32)));return{low:t,high:e}}Q.toLongBits=kp;function Ko(r){let t=ko(r);return kp(t)}Q.encodeAsLongBits=Ko;function Kp(r){return ko(r).toString()}Q.encodeAsString=Kp;var qI=typeof BigInt<"u"?Kp:WI.hrTimeToNanoseconds;function Yp(r){return r}function jp(r){if(r!==void 0)return(0,Yo.hexToBinary)(r)}var $I={encodeHrTime:Ko,encodeSpanContext:Yo.hexToBinary,encodeOptionalSpanContext:jp};function XI(r){if(r===void 0)return $I;let t=r.useLongBits??!0,e=r.useHex??!1;return{encodeHrTime:t?Ko:qI,encodeSpanContext:e?Yp:Yo.hexToBinary,encodeOptionalSpanContext:e?Yp:jp}}Q.getOtlpEncoder=XI});var jo=p(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createExportTraceServiceRequest=Tt.toOtlpSpanEvent=Tt.toOtlpLink=Tt.sdkSpanToOtlpSpan=void 0;var ve=Gp(),zI=Wp(),QI=256,JI=512;function qp(r,t){let e=r&255|QI;return t&&(e|=JI),e}function $p(r,t){let e=r.spanContext(),n=r.status,o=r.parentSpanContext?.spanId?t.encodeSpanContext(r.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(e.traceId),spanId:t.encodeSpanContext(e.spanId),parentSpanId:o,traceState:e.traceState?.serialize(),name:r.name,kind:r.kind==null?0:r.kind+1,startTimeUnixNano:t.encodeHrTime(r.startTime),endTimeUnixNano:t.encodeHrTime(r.endTime),attributes:(0,ve.toAttributes)(r.attributes),droppedAttributesCount:r.droppedAttributesCount,events:r.events.map(s=>zp(s,t)),droppedEventsCount:r.droppedEventsCount,status:{code:n.code,message:n.message},links:r.links.map(s=>Xp(s,t)),droppedLinksCount:r.droppedLinksCount,flags:qp(e.traceFlags,r.parentSpanContext?.isRemote)}}Tt.sdkSpanToOtlpSpan=$p;function Xp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],spanId:t.encodeSpanContext(r.context.spanId),traceId:t.encodeSpanContext(r.context.traceId),traceState:r.context.traceState?.serialize(),droppedAttributesCount:r.droppedAttributesCount||0,flags:qp(r.context.traceFlags,r.context.isRemote)}}Tt.toOtlpLink=Xp;function zp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],name:r.name,timeUnixNano:t.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpSpanEvent=zp;function ZI(r,t){let e=(0,zI.getOtlpEncoder)(t);return{resourceSpans:ex(r,e)}}Tt.createExportTraceServiceRequest=ZI;function tx(r){let t=new Map;for(let e of r){let n=t.get(e.resource);n||(n=new Map,t.set(e.resource,n));let o=`${e.instrumentationScope.name}@${e.instrumentationScope.version||""}:${e.instrumentationScope.schemaUrl||""}`,s=n.get(o);s||(s=[],n.set(o,s)),s.push(e)}return t}function ex(r,t){let e=tx(r),n=[],o=e.entries(),s=o.next();for(;!s.done;){let[i,a]=s.value,_=[],E=a.values(),u=E.next();for(;!u.done;){let h=u.value;if(h.length>0){let O=h.map(I=>$p(I,t));_.push({scope:(0,ve.createInstrumentationScope)(h[0].instrumentationScope),spans:O,schemaUrl:h[0].instrumentationScope.schemaUrl})}u=E.next()}let S=(0,ve.createResource)(i),A={resource:S,scopeSpans:_,schemaUrl:S.schemaUrl};n.push(A),s=o.next()}return n}});var Wo=p(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.JsonTraceSerializer=void 0;var rx=jo();gn.JsonTraceSerializer={serializeRequest:r=>{let t=(0,rx.createExportTraceServiceRequest)(r,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:r=>{if(r.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(r))}}});var el=p((Wv,tl)=>{"use strict";tl.exports=ix;function ix(r,t){for(var e=new Array(arguments.length-1),n=0,o=2,s=!0;o<arguments.length;)e[n++]=arguments[o++];return new Promise(function(a,_){e[n]=function(u){if(s)if(s=!1,u)_(u);else{for(var S=new Array(arguments.length-1),A=0;A<S.length;)S[A++]=arguments[A];a.apply(null,S)}};try{r.apply(t||null,e)}catch(E){s&&(s=!1,_(E))}})}});var sl=p(ol=>{"use strict";var Mn=ol;Mn.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&t.charAt(e)==="=";)++n;return Math.ceil(t.length*3)/4-n};var ce=new Array(64),nl=new Array(123);for(rt=0;rt<64;)nl[ce[rt]=rt<26?rt+65:rt<52?rt+71:rt<62?rt-4:rt-59|43]=rt++;var rt;Mn.encode=function(t,e,n){for(var o=null,s=[],i=0,a=0,_;e<n;){var E=t[e++];switch(a){case 0:s[i++]=ce[E>>2],_=(E&3)<<4,a=1;break;case 1:s[i++]=ce[_|E>>4],_=(E&15)<<2,a=2;break;case 2:s[i++]=ce[_|E>>6],s[i++]=ce[E&63],a=0;break}i>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),i=0)}return a&&(s[i++]=ce[_],s[i++]=61,a===1&&(s[i++]=61)),o?(i&&o.push(String.fromCharCode.apply(String,s.slice(0,i))),o.join("")):String.fromCharCode.apply(String,s.slice(0,i))};var rl="invalid encoding";Mn.decode=function(t,e,n){for(var o=n,s=0,i,a=0;a<t.length;){var _=t.charCodeAt(a++);if(_===61&&s>1)break;if((_=nl[_])===void 0)throw Error(rl);switch(s){case 0:i=_,s=1;break;case 1:e[n++]=i<<2|(_&48)>>4,i=_,s=2;break;case 2:e[n++]=(i&15)<<4|(_&60)>>2,i=_,s=3;break;case 3:e[n++]=(i&3)<<6|_,s=0;break}}if(s===1)throw Error(rl);return n-o};Mn.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}});var al=p(($v,il)=>{"use strict";il.exports=Pn;function Pn(){this._listeners={}}Pn.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this};Pn.prototype.off=function(t,e){if(t===void 0)this._listeners={};else if(e===void 0)this._listeners[t]=[];else for(var n=this._listeners[t],o=0;o<n.length;)n[o].fn===e?n.splice(o,1):++o;return this};Pn.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],o=1;o<arguments.length;)n.push(arguments[o++]);for(o=0;o<e.length;)e[o].fn.apply(e[o++].ctx,n)}return this}});var pl=p((Xv,Sl)=>{"use strict";Sl.exports=cl(cl);function cl(r){return typeof Float32Array<"u"?function(){var t=new Float32Array([-0]),e=new Uint8Array(t.buffer),n=e[3]===128;function o(_,E,u){t[0]=_,E[u]=e[0],E[u+1]=e[1],E[u+2]=e[2],E[u+3]=e[3]}function s(_,E,u){t[0]=_,E[u]=e[3],E[u+1]=e[2],E[u+2]=e[1],E[u+3]=e[0]}r.writeFloatLE=n?o:s,r.writeFloatBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],t[0]}function a(_,E){return e[3]=_[E],e[2]=_[E+1],e[1]=_[E+2],e[0]=_[E+3],t[0]}r.readFloatLE=n?i:a,r.readFloatBE=n?a:i}():function(){function t(n,o,s,i){var a=o<0?1:0;if(a&&(o=-o),o===0)n(1/o>0?0:2147483648,s,i);else if(isNaN(o))n(2143289344,s,i);else if(o>34028234663852886e22)n((a<<31|2139095040)>>>0,s,i);else if(o<11754943508222875e-54)n((a<<31|Math.round(o/1401298464324817e-60))>>>0,s,i);else{var _=Math.floor(Math.log(o)/Math.LN2),E=Math.round(o*Math.pow(2,-_)*8388608)&8388607;n((a<<31|_+127<<23|E)>>>0,s,i)}}r.writeFloatLE=t.bind(null,_l),r.writeFloatBE=t.bind(null,El);function e(n,o,s){var i=n(o,s),a=(i>>31)*2+1,_=i>>>23&255,E=i&8388607;return _===255?E?NaN:a*(1/0):_===0?a*1401298464324817e-60*E:a*Math.pow(2,_-150)*(E+8388608)}r.readFloatLE=e.bind(null,ul),r.readFloatBE=e.bind(null,Tl)}(),typeof Float64Array<"u"?function(){var t=new Float64Array([-0]),e=new Uint8Array(t.buffer),n=e[7]===128;function o(_,E,u){t[0]=_,E[u]=e[0],E[u+1]=e[1],E[u+2]=e[2],E[u+3]=e[3],E[u+4]=e[4],E[u+5]=e[5],E[u+6]=e[6],E[u+7]=e[7]}function s(_,E,u){t[0]=_,E[u]=e[7],E[u+1]=e[6],E[u+2]=e[5],E[u+3]=e[4],E[u+4]=e[3],E[u+5]=e[2],E[u+6]=e[1],E[u+7]=e[0]}r.writeDoubleLE=n?o:s,r.writeDoubleBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],e[4]=_[E+4],e[5]=_[E+5],e[6]=_[E+6],e[7]=_[E+7],t[0]}function a(_,E){return e[7]=_[E],e[6]=_[E+1],e[5]=_[E+2],e[4]=_[E+3],e[3]=_[E+4],e[2]=_[E+5],e[1]=_[E+6],e[0]=_[E+7],t[0]}r.readDoubleLE=n?i:a,r.readDoubleBE=n?a:i}():function(){function t(n,o,s,i,a,_){var E=i<0?1:0;if(E&&(i=-i),i===0)n(0,a,_+o),n(1/i>0?0:2147483648,a,_+s);else if(isNaN(i))n(0,a,_+o),n(2146959360,a,_+s);else if(i>17976931348623157e292)n(0,a,_+o),n((E<<31|2146435072)>>>0,a,_+s);else{var u;if(i<22250738585072014e-324)u=i/5e-324,n(u>>>0,a,_+o),n((E<<31|u/4294967296)>>>0,a,_+s);else{var S=Math.floor(Math.log(i)/Math.LN2);S===1024&&(S=1023),u=i*Math.pow(2,-S),n(u*4503599627370496>>>0,a,_+o),n((E<<31|S+1023<<20|u*1048576&1048575)>>>0,a,_+s)}}}r.writeDoubleLE=t.bind(null,_l,0,4),r.writeDoubleBE=t.bind(null,El,4,0);function e(n,o,s,i,a){var _=n(i,a+o),E=n(i,a+s),u=(E>>31)*2+1,S=E>>>20&2047,A=4294967296*(E&1048575)+_;return S===2047?A?NaN:u*(1/0):S===0?u*5e-324*A:u*Math.pow(2,S-1075)*(A+4503599627370496)}r.readDoubleLE=e.bind(null,ul,0,4),r.readDoubleBE=e.bind(null,Tl,4,0)}(),r}function _l(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}function El(r,t,e){t[e]=r>>>24,t[e+1]=r>>>16&255,t[e+2]=r>>>8&255,t[e+3]=r&255}function ul(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24)>>>0}function Tl(r,t){return(r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3])>>>0}});var Al=p((zv,ll)=>{"use strict";ll.exports=ax;function ax(r){return null}});var ml=p(dl=>{"use strict";var $o=dl;$o.length=function(t){for(var e=0,n=0,o=0;o<t.length;++o)n=t.charCodeAt(o),n<128?e+=1:n<2048?e+=2:(n&64512)===55296&&(t.charCodeAt(o+1)&64512)===56320?(++o,e+=4):e+=3;return e};$o.read=function(t,e,n){var o=n-e;if(o<1)return"";for(var s=null,i=[],a=0,_;e<n;)_=t[e++],_<128?i[a++]=_:_>191&&_<224?i[a++]=(_&31)<<6|t[e++]&63:_>239&&_<365?(_=((_&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[a++]=55296+(_>>10),i[a++]=56320+(_&1023)):i[a++]=(_&15)<<12|(t[e++]&63)<<6|t[e++]&63,a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),a=0);return s?(a&&s.push(String.fromCharCode.apply(String,i.slice(0,a))),s.join("")):String.fromCharCode.apply(String,i.slice(0,a))};$o.write=function(t,e,n){for(var o=n,s,i,a=0;a<t.length;++a)s=t.charCodeAt(a),s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&((i=t.charCodeAt(a+1))&64512)===56320?(s=65536+((s&1023)<<10)+(i&1023),++a,e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128);return n-o}});var hl=p((Jv,fl)=>{"use strict";fl.exports=cx;function cx(r,t,e){var n=e||8192,o=n>>>1,s=null,i=n;return function(_){if(_<1||_>o)return r(_);i+_>n&&(s=r(n),i=0);var E=t.call(s,i,i+=_);return i&7&&(i=(i|7)+1),E}}});var Ol=p((Zv,Rl)=>{"use strict";Rl.exports=U;var Be=Nt();function U(r,t){this.lo=r>>>0,this.hi=t>>>0}var yt=U.zero=new U(0,0);yt.toNumber=function(){return 0};yt.zzEncode=yt.zzDecode=function(){return this};yt.length=function(){return 1};var _x=U.zeroHash="\0\0\0\0\0\0\0\0";U.fromNumber=function(t){if(t===0)return yt;var e=t<0;e&&(t=-t);var n=t>>>0,o=(t-n)/4294967296>>>0;return e&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new U(n,o)};U.from=function(t){if(typeof t=="number")return U.fromNumber(t);if(Be.isString(t))if(Be.Long)t=Be.Long.fromString(t);else return U.fromNumber(parseInt(t,10));return t.low||t.high?new U(t.low>>>0,t.high>>>0):yt};U.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+n*4294967296)}return this.lo+this.hi*4294967296};U.prototype.toLong=function(t){return Be.Long?new Be.Long(this.lo|0,this.hi|0,!!t):{low:this.lo|0,high:this.hi|0,unsigned:!!t}};var gt=String.prototype.charCodeAt;U.fromHash=function(t){return t===_x?yt:new U((gt.call(t,0)|gt.call(t,1)<<8|gt.call(t,2)<<16|gt.call(t,3)<<24)>>>0,(gt.call(t,4)|gt.call(t,5)<<8|gt.call(t,6)<<16|gt.call(t,7)<<24)>>>0)};U.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};U.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this};U.prototype.zzDecode=function(){var t=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this};U.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?e===0?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}});var Nt=p(Xo=>{"use strict";var l=Xo;l.asPromise=el();l.base64=sl();l.EventEmitter=al();l.float=pl();l.inquire=Al();l.utf8=ml();l.pool=hl();l.LongBits=Ol();l.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);l.global=l.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Xo;l.emptyArray=Object.freeze?Object.freeze([]):[];l.emptyObject=Object.freeze?Object.freeze({}):{};l.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};l.isString=function(t){return typeof t=="string"||t instanceof String};l.isObject=function(t){return t&&typeof t=="object"};l.isset=l.isSet=function(t,e){var n=t[e];return n!=null&&t.hasOwnProperty(e)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};l.Buffer=function(){try{var r=l.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();l._Buffer_from=null;l._Buffer_allocUnsafe=null;l.newBuffer=function(t){return typeof t=="number"?l.Buffer?l._Buffer_allocUnsafe(t):new l.Array(t):l.Buffer?l._Buffer_from(t):typeof Uint8Array>"u"?t:new Uint8Array(t)};l.Array=typeof Uint8Array<"u"?Uint8Array:Array;l.Long=l.global.dcodeIO&&l.global.dcodeIO.Long||l.global.Long||l.inquire("long");l.key2Re=/^true|false|0|1$/;l.key32Re=/^-?(?:0|[1-9][0-9]*)$/;l.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;l.longToHash=function(t){return t?l.LongBits.from(t).toHash():l.LongBits.zeroHash};l.longFromHash=function(t,e){var n=l.LongBits.fromHash(t);return l.Long?l.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)};function gl(r,t,e){for(var n=Object.keys(t),o=0;o<n.length;++o)(r[n[o]]===void 0||!e)&&(r[n[o]]=t[n[o]]);return r}l.merge=gl;l.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)};function Nl(r){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&gl(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return r},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}l.newError=Nl;l.ProtocolError=Nl("ProtocolError");l.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var o=Object.keys(this),s=o.length-1;s>-1;--s)if(e[o[s]]===1&&this[o[s]]!==void 0&&this[o[s]]!==null)return o[s]}};l.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}};l.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};l._configure=function(){var r=l.Buffer;if(!r){l._Buffer_from=l._Buffer_allocUnsafe=null;return}l._Buffer_from=r.from!==Uint8Array.from&&r.from||function(e,n){return new r(e,n)},l._Buffer_allocUnsafe=r.allocUnsafe||function(e){return new r(e)}}});var rs=p((eB,Ll)=>{"use strict";Ll.exports=m;var J=Nt(),zo,Cn=J.LongBits,Ml=J.base64,Pl=J.utf8;function we(r,t,e){this.fn=r,this.len=t,this.next=void 0,this.val=e}function Jo(){}function Ex(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function m(){this.len=0,this.head=new we(Jo,0,0),this.tail=this.head,this.states=null}var Cl=function(){return J.Buffer?function(){return(m.create=function(){return new zo})()}:function(){return new m}};m.create=Cl();m.alloc=function(t){return new J.Array(t)};J.Array!==Array&&(m.alloc=J.pool(m.alloc,J.Array.prototype.subarray));m.prototype._push=function(t,e,n){return this.tail=this.tail.next=new we(t,e,n),this.len+=e,this};function Zo(r,t,e){t[e]=r&255}function ux(r,t,e){for(;r>127;)t[e++]=r&127|128,r>>>=7;t[e]=r}function ts(r,t){this.len=r,this.next=void 0,this.val=t}ts.prototype=Object.create(we.prototype);ts.prototype.fn=ux;m.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new ts((t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this};m.prototype.int32=function(t){return t<0?this._push(es,10,Cn.fromNumber(t)):this.uint32(t)};m.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)};function es(r,t,e){for(;r.hi;)t[e++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)t[e++]=r.lo&127|128,r.lo=r.lo>>>7;t[e++]=r.lo}m.prototype.uint64=function(t){var e=Cn.from(t);return this._push(es,e.length(),e)};m.prototype.int64=m.prototype.uint64;m.prototype.sint64=function(t){var e=Cn.from(t).zzEncode();return this._push(es,e.length(),e)};m.prototype.bool=function(t){return this._push(Zo,1,t?1:0)};function Qo(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}m.prototype.fixed32=function(t){return this._push(Qo,4,t>>>0)};m.prototype.sfixed32=m.prototype.fixed32;m.prototype.fixed64=function(t){var e=Cn.from(t);return this._push(Qo,4,e.lo)._push(Qo,4,e.hi)};m.prototype.sfixed64=m.prototype.fixed64;m.prototype.float=function(t){return this._push(J.float.writeFloatLE,4,t)};m.prototype.double=function(t){return this._push(J.float.writeDoubleLE,8,t)};var Tx=J.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var o=0;o<t.length;++o)e[n+o]=t[o]};m.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(Zo,1,0);if(J.isString(t)){var n=m.alloc(e=Ml.length(t));Ml.decode(t,n,0),t=n}return this.uint32(e)._push(Tx,e,t)};m.prototype.string=function(t){var e=Pl.length(t);return e?this.uint32(e)._push(Pl.write,e,t):this._push(Zo,1,0)};m.prototype.fork=function(){return this.states=new Ex(this),this.head=this.tail=new we(Jo,0,0),this.len=0,this};m.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new we(Jo,0,0),this.len=0),this};m.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this};m.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e};m._configure=function(r){zo=r,m.create=Cl(),zo._configure()}});var Dl=p((rB,xl)=>{"use strict";xl.exports=St;var Il=rs();(St.prototype=Object.create(Il.prototype)).constructor=St;var Mt=Nt();function St(){Il.call(this)}St._configure=function(){St.alloc=Mt._Buffer_allocUnsafe,St.writeBytesBuffer=Mt.Buffer&&Mt.Buffer.prototype instanceof Uint8Array&&Mt.Buffer.prototype.set.name==="set"?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var o=0;o<t.length;)e[n++]=t[o++]}};St.prototype.bytes=function(t){Mt.isString(t)&&(t=Mt._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(St.writeBytesBuffer,e,t),this};function Sx(r,t,e){r.length<40?Mt.utf8.write(r,t,e):t.utf8Write?t.utf8Write(r,e):t.write(r,e)}St.prototype.string=function(t){var e=Mt.Buffer.byteLength(t);return this.uint32(e),e&&this._push(Sx,e,t),this};St._configure()});var ss=p((nB,vl)=>{"use strict";vl.exports=L;var nt=Nt(),os,yl=nt.LongBits,px=nt.utf8;function ot(r,t){return RangeError("index out of range: "+r.pos+" + "+(t||1)+" > "+r.len)}function L(r){this.buf=r,this.pos=0,this.len=r.length}var Ul=typeof Uint8Array<"u"?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new L(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new L(t);throw Error("illegal buffer")},Vl=function(){return nt.Buffer?function(e){return(L.create=function(o){return nt.Buffer.isBuffer(o)?new os(o):Ul(o)})(e)}:Ul};L.create=Vl();L.prototype._slice=nt.Array.prototype.subarray||nt.Array.prototype.slice;L.prototype.uint32=function(){var t=4294967295;return function(){if(t=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(t=(t|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,ot(this,10);return t}}();L.prototype.int32=function(){return this.uint32()|0};L.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(t&1)|0};function ns(){var r=new yl(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw ot(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,r}if(this.len-this.pos>4){for(;t<5;++t)if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}else for(;t<5;++t){if(this.pos>=this.len)throw ot(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}L.prototype.bool=function(){return this.uint32()!==0};function Ln(r,t){return(r[t-4]|r[t-3]<<8|r[t-2]<<16|r[t-1]<<24)>>>0}L.prototype.fixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Ln(this.buf,this.pos+=4)};L.prototype.sfixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Ln(this.buf,this.pos+=4)|0};function bl(){if(this.pos+8>this.len)throw ot(this,8);return new yl(Ln(this.buf,this.pos+=4),Ln(this.buf,this.pos+=4))}L.prototype.float=function(){if(this.pos+4>this.len)throw ot(this,4);var t=nt.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t};L.prototype.double=function(){if(this.pos+8>this.len)throw ot(this,4);var t=nt.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t};L.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw ot(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var o=nt.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)};L.prototype.string=function(){var t=this.bytes();return px.read(t,0,t.length)};L.prototype.skip=function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw ot(this,t);this.pos+=t}else do if(this.pos>=this.len)throw ot(this);while(this.buf[this.pos++]&128);return this};L.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};L._configure=function(r){os=r,L.create=Vl(),os._configure();var t=nt.Long?"toLong":"toNumber";nt.merge(L.prototype,{int64:function(){return ns.call(this)[t](!1)},uint64:function(){return ns.call(this)[t](!0)},sint64:function(){return ns.call(this).zzDecode()[t](!1)},fixed64:function(){return bl.call(this)[t](!0)},sfixed64:function(){return bl.call(this)[t](!1)}})}});var Hl=p((oB,Gl)=>{"use strict";Gl.exports=Vt;var wl=ss();(Vt.prototype=Object.create(wl.prototype)).constructor=Vt;var Bl=Nt();function Vt(r){wl.call(this,r)}Vt._configure=function(){Bl.Buffer&&(Vt.prototype._slice=Bl.Buffer.prototype.slice)};Vt.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))};Vt._configure()});var Yl=p((sB,Fl)=>{"use strict";Fl.exports=Ge;var is=Nt();(Ge.prototype=Object.create(is.EventEmitter.prototype)).constructor=Ge;function Ge(r,t,e){if(typeof r!="function")throw TypeError("rpcImpl must be a function");is.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!t,this.responseDelimited=!!e}Ge.prototype.rpcCall=function r(t,e,n,o,s){if(!o)throw TypeError("request must be specified");var i=this;if(!s)return is.asPromise(r,i,t,e,n,o);if(!i.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return i.rpcImpl(t,e[i.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(_,E){if(_)return i.emit("error",_,t),s(_);if(E===null){i.end(!0);return}if(!(E instanceof n))try{E=n[i.responseDelimited?"decodeDelimited":"decode"](E)}catch(u){return i.emit("error",u,t),s(u)}return i.emit("data",E,t),s(null,E)})}catch(a){i.emit("error",a,t),setTimeout(function(){s(a)},0);return}};Ge.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Kl=p(kl=>{"use strict";var lx=kl;lx.Service=Yl()});var Wl=p((aB,jl)=>{"use strict";jl.exports={}});var Xl=p($l=>{"use strict";var F=$l;F.build="minimal";F.Writer=rs();F.BufferWriter=Dl();F.Reader=ss();F.BufferReader=Hl();F.util=Nt();F.rpc=Kl();F.roots=Wl();F.configure=ql;function ql(){F.util._configure(),F.Writer._configure(F.BufferWriter),F.Reader._configure(F.BufferReader)}ql()});var Ql=p((_B,zl)=>{"use strict";zl.exports=Xl()});var YS=R(P());d();d();var Or=R(P());Ae();var rI=typeof process=="object"&&typeof process.argv0=="string"&&process.argv0.length>0?`unknown_service:${process.argv0}`:"unknown_service";function US(){return rI}var kt=r=>r!==null&&typeof r=="object"&&typeof r.then=="function";var gr=class r{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,e){let n=new r({},e);return n._rawAttributes=bS(t),n._asyncAttributesPending=t.filter(([o,s])=>kt(s)).length>0,n}constructor(t,e){let n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,s])=>(kt(s)&&(this._asyncAttributesPending=!0),[o,s])),this._rawAttributes=bS(this._rawAttributes),this._schemaUrl=nI(e?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){let[e,n]=this._rawAttributes[t];this._rawAttributes[t]=[e,kt(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&c.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let t={};for(let[e,n]of this._rawAttributes){if(kt(n)){c.diag.debug(`Unsettled resource attribute ${e} skipped`);continue}n!=null&&(t[e]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let e=oI(this,t),n=e?{schemaUrl:e}:void 0;return r.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}};function he(r,t){return gr.FromAttributeList(Object.entries(r),t)}function yS(r,t){return new gr(r,t)}function Nr(){return he({})}function xt(){return he({[le]:US(),[Je]:Or.SDK_INFO[Je],[Ze]:Or.SDK_INFO[Ze],[tr]:Or.SDK_INFO[tr]})}function bS(r){return r.map(([t,e])=>kt(e)?[t,e.catch(n=>{c.diag.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,e])}function nI(r){if(typeof r=="string"||r===void 0)return r;c.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",r)}function oI(r,t){let e=r?.schemaUrl,n=t?.schemaUrl,o=e===void 0||e==="",s=n===void 0||n==="";if(o)return n;if(s||e===n)return e;c.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',e,n)}var oo=(r={})=>(r.detectors||[]).map(e=>{try{let n=yS(e.detect(r));return c.diag.debug(`${e.constructor.name} found resource.`,n),n}catch(n){return c.diag.debug(`${e.constructor.name} failed: ${n.message}`),Nr()}}).reduce((e,n)=>e.merge(n),Nr());d();Ae();var so=R(P()),io=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(t){let e={},n=(0,so.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),o=(0,so.getStringFromEnv)("OTEL_SERVICE_NAME");if(n)try{let s=this._parseResourceAttributes(n);Object.assign(e,s)}catch(s){c.diag.debug(`EnvDetector failed: ${s.message}`)}return o&&(e[le]=o),{attributes:e}}_parseResourceAttributes(t){if(!t)return{};let e={},n=t.split(this._COMMA_SEPARATOR,-1);for(let o of n){let s=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(s.length!==2)continue;let[i,a]=s;if(i=i.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);e[i]=decodeURIComponent(a)}return e}_isValid(t){return t.length<=this._MAX_LENGTH&&this._isBaggageOctetString(t)}_isBaggageOctetString(t){for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(t){return t.length>0&&this._isValid(t)}},Mr=new io;d();var Kt=R(P());d();var N=R(P());Ae();var VS="exception";var Pr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:c.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){let e=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=N.otperformance.now(),this._performanceOffset=e-(this._performanceStartTime+N.otperformance.timeOrigin),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??e),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,e){if(e==null||this._isSpanEnded())return this;if(t.length===0)return c.diag.warn(`Invalid attribute key: ${t}`),this;if(!(0,N.isAttributeValue)(e))return c.diag.warn(`Invalid attribute value set for key: ${t}`),this;let{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this)}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}addEvent(t,e,n){if(this._isSpanEnded())return this;let{eventCountLimit:o}=this._spanLimits;if(o===0)return c.diag.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&c.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,N.isTimeInput)(e)&&((0,N.isTimeInput)(n)||(n=e),e=void 0);let s=(0,N.sanitizeAttributes)(e);return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(c.diag.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){c.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=(0,N.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(c.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]),this._droppedEventsCount>0&&c.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=N.otperformance.now())return(0,N.hrTime)(t+this._performanceOffset);if(typeof t=="number")return(0,N.millisToHrTime)(t);if(t instanceof Date)return(0,N.millisToHrTime)(t.getTime());if((0,N.isTimeInputHrTime)(t))return t;if(this._startTimeProvided)return(0,N.millisToHrTime)(Date.now());let e=N.otperformance.now()-this._performanceStartTime;return(0,N.addHrTimes)(this.startTime,(0,N.millisToHrTime)(e))}isRecording(){return this._ended===!1}recordException(t,e){let n={};typeof t=="string"?n[Se]=t:t&&(t.code?n[pe]=t.code.toString():t.name&&(n[pe]=t.name),t.message&&(n[Se]=t.message),t.stack&&(n[jn]=t.stack)),n[pe]||n[Se]?this.addEvent(VS,n,e):c.diag.warn(`Failed to record an exception ${t}`)}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 t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);c.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_truncateToSize(t){let e=this._attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}};d();var q=R(P());var lt;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(lt||(lt={}));var j=class{shouldSample(){return{decision:lt.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var B=class{shouldSample(){return{decision:lt.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};d();var vS=R(P());var W=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||((0,vS.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new B),this._remoteParentSampled=t.remoteParentSampled??new B,this._remoteParentNotSampled=t.remoteParentNotSampled??new j,this._localParentSampled=t.localParentSampled??new B,this._localParentNotSampled=t.localParentNotSampled??new j}shouldSample(t,e,n,o,s,i){let a=c.trace.getSpanContext(t);return!a||!(0,c.isSpanContextValid)(a)?this._root.shouldSample(t,e,n,o,s,i):a.isRemote?a.traceFlags&c.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,s,i):this._remoteParentNotSampled.shouldSample(t,e,n,o,s,i):a.traceFlags&c.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,s,i):this._localParentNotSampled.shouldSample(t,e,n,o,s,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};d();var At=class{_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,e){return{decision:(0,c.isValidTraceId)(e)&&this._accumulate(e)<this._upperBound?lt.RECORD_AND_SAMPLED:lt.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let n=0;n<t.length/8;n++){let o=n*8,s=parseInt(t.slice(o,o+8),16);e=(e^s)>>>0}return e}};var at;(function(r){r.AlwaysOff="always_off",r.AlwaysOn="always_on",r.ParentBasedAlwaysOff="parentbased_always_off",r.ParentBasedAlwaysOn="parentbased_always_on",r.ParentBasedTraceIdRatio="parentbased_traceidratio",r.TraceIdRatio="traceidratio"})(at||(at={}));var Cr=1;function Lr(){return{sampler:ao(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,q.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,q.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,q.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,q.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,q.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,q.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,q.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,q.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function ao(){let r=(0,q.getStringFromEnv)("OTEL_TRACES_SAMPLER")??at.ParentBasedAlwaysOn;switch(r){case at.AlwaysOn:return new B;case at.AlwaysOff:return new j;case at.ParentBasedAlwaysOn:return new W({root:new B});case at.ParentBasedAlwaysOff:return new W({root:new j});case at.TraceIdRatio:return new At(BS());case at.ParentBasedTraceIdRatio:return new W({root:new At(BS())});default:return c.diag.error(`OTEL_TRACES_SAMPLER value "${r}" invalid, defaulting to "${at.ParentBasedAlwaysOn}".`),new W({root:new B})}}function BS(){let r=(0,q.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return r==null?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Cr}.`),Cr):r<0||r>1?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r} was given, but it is out of range ([0..1]), defaulting to ${Cr}.`),Cr):r}var Re=R(P()),sI=128,iI=1/0;function wS(r){let t={sampler:ao()},e=Lr(),n=Object.assign({},e,t,r);return n.generalLimits=Object.assign({},e.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},e.spanLimits,r.spanLimits||{}),n}function GS(r){let t=Object.assign({},r.spanLimits);return t.attributeCountLimit=r.spanLimits?.attributeCountLimit??r.generalLimits?.attributeCountLimit??(0,Re.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,Re.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??sI,t.attributeValueLengthLimit=r.spanLimits?.attributeValueLengthLimit??r.generalLimits?.attributeValueLengthLimit??(0,Re.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,Re.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??iI,Object.assign({},r,{spanLimits:t})}d();var G=R(P()),Ir=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,e){this._exporter=t,this._maxExportBatchSize=typeof e?.maxExportBatchSize=="number"?e.maxExportBatchSize:(0,G.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof e?.maxQueueSize=="number"?e.maxQueueSize:(0,G.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof e?.scheduledDelayMillis=="number"?e.scheduledDelayMillis:(0,G.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis=typeof e?.exportTimeoutMillis=="number"?e.exportTimeoutMillis:(0,G.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new G.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(c.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,e){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&c.TraceFlags.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&c.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(c.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,e)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let s=0,i=o;s<i;s++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(e)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,e)=>{let n=setTimeout(()=>{e(new Error("Timeout"))},this._exportTimeoutMillis);c.context.with((0,G.suppressTracing)(c.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let s=()=>this._exporter.export(o,a=>{clearTimeout(n),a.code===G.ExportResultCode.SUCCESS?t():e(a.error??new Error("BatchSpanProcessor: span export failed"))}),i=null;for(let a=0,_=o.length;a<_;a++){let E=o[a];E.resource.asyncAttributesPending&&E.resource.waitForAsyncAttributes&&(i??=[],i.push(E.resource.waitForAsyncAttributes()))}i===null?s():Promise.all(i).then(s,a=>{(0,G.globalErrorHandler)(a),e(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,G.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};var co=R(P()),dt=class extends Ir{_visibilityChangeListener;_pageHideListener;constructor(t,e){super(t,e),this.onInit(e)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}};var ht=class{generateTraceId=HS(16);generateSpanId=HS(8)},xr=Array(32);function HS(r){return function(){for(let e=0;e<r*2;e++)xr[e]=Math.floor(Math.random()*16)+48,xr[e]>=58&&(xr[e]+=39);return String.fromCharCode.apply(null,xr.slice(0,r*2))}}var Dr=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,e,n,o){let s=wS(e);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=e.idGenerator||new ht,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,e={},n=c.context.active()){e.root&&(n=c.trace.deleteSpan(n));let o=c.trace.getSpan(n);if((0,Kt.isTracingSuppressed)(n))return c.diag.debug("Instrumentation suppressed, returning Noop Span"),c.trace.wrapSpanContext(c.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),i=this._idGenerator.generateSpanId(),a,_,E;!s||!c.trace.isSpanContextValid(s)?_=this._idGenerator.generateTraceId():(_=s.traceId,E=s.traceState,a=s);let u=e.kind??c.SpanKind.INTERNAL,S=(e.links??[]).map(Z=>({context:Z.context,attributes:(0,Kt.sanitizeAttributes)(Z.attributes)})),A=(0,Kt.sanitizeAttributes)(e.attributes),h=this._sampler.shouldSample(n,_,t,u,A,S);E=h.traceState??E;let O=h.decision===c.SamplingDecision.RECORD_AND_SAMPLED?c.TraceFlags.SAMPLED:c.TraceFlags.NONE,I={traceId:_,spanId:i,traceFlags:O,traceState:E};if(h.decision===c.SamplingDecision.NOT_RECORD)return c.diag.debug("Recording is off, propagating context in a non-recording span"),c.trace.wrapSpanContext(I);let x=(0,Kt.sanitizeAttributes)(Object.assign(A,h.attributes));return new Pr({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:I,name:t,kind:u,links:S,parentSpanContext:a,attributes:x,startTime:e.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,e,n,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=e:arguments.length===3?(s=e,a=n):(s=e,i=n,a=o);let _=i??c.context.active(),E=this.startSpan(t,s,_),u=c.trace.setSpan(_,E);return c.context.with(u,a,void 0,E)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var FS=R(P()),Ur=class{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){let t=[];for(let e of this._spanProcessors)t.push(e.forceFlush());return new Promise(e=>{Promise.all(t).then(()=>{e()}).catch(n=>{(0,FS.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),e()})})}onStart(t,e){for(let n of this._spanProcessors)n.onStart(t,e)}onEnding(t){for(let e of this._spanProcessors)e.onEnding&&e.onEnding(t)}onEnd(t){for(let e of this._spanProcessors)e.onEnd(t)}shutdown(){let t=[];for(let e of this._spanProcessors)t.push(e.shutdown());return new Promise((e,n)=>{Promise.all(t).then(()=>{e()},n)})}};var Dt;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(Dt||(Dt={}));var Oe=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){let e=(0,YS.merge)({},Lr(),GS(t));this._resource=e.resource??xt(),this._config=Object.assign({},e,{resource:this._resource});let n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Ur(n)}getTracer(t,e,n){let o=`${t}@${e||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Dr({name:t,version:e,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){let t=this._config.forceFlushTimeoutMillis,e=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let s,i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),s=Dt.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),s!==Dt.timeout&&(s=Dt.resolved,o(s))}).catch(a=>{clearTimeout(i),s=Dt.error,o(a)})}));return new Promise((n,o)=>{Promise.all(e).then(s=>{let i=s.filter(a=>a!==Dt.resolved);i.length>0?o(i):n()}).catch(s=>o([s]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};d();var D={};tt(D,Ab);import*as Ab from"@opentelemetry/api-logs";d();function kS(r,t,e,n){for(let o=0,s=r.length;o<s;o++){let i=r[o];t&&i.setTracerProvider(t),e&&i.setMeterProvider(e),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function KS(r){r.forEach(t=>t.disable())}function _o(r){let t=r.tracerProvider||c.trace.getTracerProvider(),e=r.meterProvider||c.metrics.getMeterProvider(),n=r.loggerProvider||D.logs.getLoggerProvider(),o=r.instrumentations?.flat()??[];return kS(o,t,e,n),()=>{KS(o)}}d();var wr=R(P());d();d();var jt=R(P()),br=class{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(t){this._isLogRecordReadonly()||(this._severityText=t)}get severityText(){return this._severityText}set severityNumber(t){this._isLogRecordReadonly()||(this._severityNumber=t)}get severityNumber(){return this._severityNumber}set body(t){this._isLogRecordReadonly()||(this._body=t)}get body(){return this._body}get eventName(){return this._eventName}set eventName(t){this._isLogRecordReadonly()||(this._eventName=t)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(t,e,n){let{timestamp:o,observedTimestamp:s,eventName:i,severityNumber:a,severityText:_,body:E,attributes:u={},context:S}=n,A=Date.now();if(this.hrTime=(0,jt.timeInputToHrTime)(o??A),this.hrTimeObserved=(0,jt.timeInputToHrTime)(s??A),S){let h=c.trace.getSpanContext(S);h&&c.isSpanContextValid(h)&&(this.spanContext=h)}this.severityNumber=a,this.severityText=_,this.body=E,this.resource=t.resource,this.instrumentationScope=e,this._logRecordLimits=t.logRecordLimits,this._eventName=i,this.setAttributes(u)}setAttribute(t,e){return this._isLogRecordReadonly()?this:e===null?this:t.length===0?(c.diag.warn(`Invalid attribute key: ${t}`),this):!(0,jt.isAttributeValue)(e)&&!(typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0)?(c.diag.warn(`Invalid attribute value set for key: ${t}`),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&c.diag.warn("Dropping extra attributes."),this):((0,jt.isAttributeValue)(e)?this.attributes[t]=this._truncateToSize(e):this.attributes[t]=e,this))}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}setBody(t){return this.body=t,this}setEventName(t){return this.eventName=t,this}setSeverityNumber(t){return this.severityNumber=t,this}setSeverityText(t){return this.severityText=t,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(t){let e=this._logRecordLimits.attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_isLogRecordReadonly(){return this._isReadonly&&c.diag.warn("Can not execute the operation on emitted log record"),this._isReadonly}};var yr=class{instrumentationScope;_sharedState;_loggerConfig;constructor(t,e){this.instrumentationScope=t,this._sharedState=e,this._loggerConfig=this._sharedState.getLoggerConfig(this.instrumentationScope)}emit(t){let e=this._loggerConfig,n=t.context||c.context.active(),o=t.severityNumber??D.SeverityNumber.UNSPECIFIED;if(o!==D.SeverityNumber.UNSPECIFIED&&o<e.minimumSeverity)return;if(e.traceBased){let i=c.trace.getSpanContext(n);if(i&&(0,c.isSpanContextValid)(i)&&!((i.traceFlags&c.TraceFlags.SAMPLED)===c.TraceFlags.SAMPLED))return}let s=new br(this._sharedState,this.instrumentationScope,{context:n,...t});this._sharedState.activeProcessor.onEmit(s,n),s._makeReadonly()}};var Ut=R(P());function jS(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:(0,Ut.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,Ut.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??128},includeTraceContext:!0}}function WS(r){return{attributeCountLimit:r.attributeCountLimit??(0,Ut.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??(0,Ut.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,attributeValueLengthLimit:r.attributeValueLengthLimit??(0,Ut.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,Ut.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0}}var Vr=class{forceFlush(){return Promise.resolve()}onEmit(t,e){}shutdown(){return Promise.resolve()}};var qS=R(P()),vr=class{processors;forceFlushTimeoutMillis;constructor(t,e){this.processors=t,this.forceFlushTimeoutMillis=e}async forceFlush(){let t=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(e=>(0,qS.callWithTimeout)(e.forceFlush(),t)))}onEmit(t,e){this.processors.forEach(n=>n.onEmit(t,e))}async shutdown(){await Promise.all(this.processors.map(t=>t.shutdown()))}};function $S(r){return`${r.name}@${r.version||""}:${r.schemaUrl||""}`}var aI={disabled:!1,minimumSeverity:D.SeverityNumber.UNSPECIFIED,traceBased:!1},cI=()=>({...aI}),Br=class{loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];resource;forceFlushTimeoutMillis;logRecordLimits;processors;_loggerConfigurator;_loggerConfigs=new Map;constructor(t,e,n,o,s){this.resource=t,this.forceFlushTimeoutMillis=e,this.logRecordLimits=n,this.processors=o,o.length>0?(this.registeredLogRecordProcessors=o,this.activeProcessor=new vr(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new Vr,this._loggerConfigurator=s??cI}getLoggerConfig(t){let e=$S(t),n=this._loggerConfigs.get(e);return n||(n=this._loggerConfigurator(t),this._loggerConfigs.set(e,n),n)}};var _I="unknown",ge=class{_shutdownOnce;_sharedState;constructor(t={}){let e=(0,wr.merge)({},jS(),t),n=t.resource??xt();this._sharedState=new Br(n,e.forceFlushTimeoutMillis,WS(e.logRecordLimits),t?.processors??[],t?.loggerConfigurator),this._shutdownOnce=new wr.BindOnceFuture(this._shutdown,this)}getLogger(t,e,n){if(this._shutdownOnce.isCalled)return c.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),D.NOOP_LOGGER;t||c.diag.warn("Logger requested without instrumentation scope name.");let o=t||_I,s=`${o}@${e||""}:${n?.schemaUrl||""}`;return this._sharedState.loggers.has(s)||this._sharedState.loggers.set(s,new yr({name:o,version:e,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(s)}forceFlush(){return this._shutdownOnce.isCalled?(c.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(c.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};var Gr;(function(r){r[r.DELTA=0]="DELTA",r[r.CUMULATIVE=1]="CUMULATIVE"})(Gr||(Gr={}));var f;(function(r){r.COUNTER="COUNTER",r.GAUGE="GAUGE",r.HISTOGRAM="HISTOGRAM",r.UP_DOWN_COUNTER="UP_DOWN_COUNTER",r.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",r.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",r.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(f||(f={}));var ct;(function(r){r[r.HISTOGRAM=0]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",r[r.GAUGE=2]="GAUGE",r[r.SUM=3]="SUM"})(ct||(ct={}));function Hr(r){let t=Object.keys(r);return t.length===0?"":(t=t.sort(),JSON.stringify(t.map(e=>[e,r[e]])))}function XS(r){return`${r.name}:${r.version??""}:${r.schemaUrl??""}`}var Eo=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};function uo(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new Eo("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}async function zS(r){return Promise.all(r.map(async t=>{try{return{status:"fulfilled",value:await t}}catch(e){return{status:"rejected",reason:e}}}))}function QS(r){return r.status==="rejected"}function JS(r,t){if(r.size!==t.size)return!1;for(let e of r)if(!t.has(e))return!1;return!0}function ZS(r,t){let e=0,n=r.length-1,o=r.length;for(;n>=e;){let s=e+Math.trunc((n-e)/2);r[s]<t?e=s+1:(o=s,n=s-1)}return o}function tp(r,t){return r.toLowerCase()===t.toLowerCase()}d();var $;(function(r){r[r.DROP=0]="DROP",r[r.SUM=1]="SUM",r[r.LAST_VALUE=2]="LAST_VALUE",r[r.HISTOGRAM=3]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})($||($={}));var Ne=class{kind=$.DROP;createAccumulation(){}merge(t,e){}diff(t,e){}toMetricData(t,e,n,o){}};function EI(r){let t=r.map(()=>0);return t.push(0),{buckets:{boundaries:r,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var Wt=class{startTime;_boundaries;_recordMinMax;_current;constructor(t,e,n=!0,o=EI(e)){this.startTime=t,this._boundaries=e,this._recordMinMax=n,this._current=o}record(t){if(Number.isNaN(t))return;this._current.count+=1,this._current.sum+=t,this._recordMinMax&&(this._current.min=Math.min(t,this._current.min),this._current.max=Math.max(t,this._current.max),this._current.hasMinMax=!0);let e=ZS(this._boundaries,t);this._current.buckets.counts[e]+=1}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},qt=class{kind=$.HISTOGRAM;_boundaries;_recordMinMax;constructor(t,e){this._boundaries=t,this._recordMinMax=e}createAccumulation(t){return new Wt(t,this._boundaries,this._recordMinMax)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let u=0;u<s.length;u++)a[u]=s[u]+i[u];let _=1/0,E=-1/0;return this._recordMinMax&&(n.hasMinMax&&o.hasMinMax?(_=Math.min(n.min,o.min),E=Math.max(n.max,o.max)):n.hasMinMax?(_=n.min,E=n.max):o.hasMinMax&&(_=o.min,E=o.max)),new Wt(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:n.count+o.count,sum:n.sum+o.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||o.hasMinMax),min:_,max:E})}diff(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let _=0;_<s.length;_++)a[_]=i[_]-s[_];return new Wt(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:o.count-n.count,sum:o.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,buckets:a.buckets,count:a.count}}})}}};d();var Me=class r{backing;indexBase;indexStart;indexEnd;constructor(t=new To,e=0,n=0,o=0){this.backing=t,this.indexBase=e,this.indexStart=n,this.indexEnd=o}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(t,e)=>this.at(e))}at(t){let e=this.indexBase-this.indexStart;return t<e&&(t+=this.backing.length),t-=e,this.backing.countAt(t)}incrementBucket(t,e){this.backing.increment(t,e)}decrementBucket(t,e){this.backing.decrement(t,e)}trim(){for(let t=0;t<this.length;t++)if(this.at(t)!==0){this.indexStart+=t;break}else if(t===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let t=this.length-1;t>=0;t--)if(this.at(t)!==0){this.indexEnd-=this.length-t-1;break}this._rotate()}downscale(t){this._rotate();let e=1+this.indexEnd-this.indexStart,n=1<<t,o=0,s=0;for(let i=this.indexStart;i<=this.indexEnd;){let a=i%n;a<0&&(a+=n);for(let _=a;_<n&&o<e;_++)this._relocateBucket(s,o),o++,i++;s++}this.indexStart>>=t,this.indexEnd>>=t,this.indexBase=this.indexStart}clone(){return new r(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let t=this.indexBase-this.indexStart;t!==0&&(t>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,t),this.backing.reverse(t,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+t)),this.indexBase=this.indexStart)}_relocateBucket(t,e){t!==e&&this.incrementBucket(t,this.backing.emptyBucket(e))}},To=class r{_counts;constructor(t=[0]){this._counts=t}get length(){return this._counts.length}countAt(t){return this._counts[t]}growTo(t,e,n){let o=new Array(t).fill(0);o.splice(n,this._counts.length-e,...this._counts.slice(e)),o.splice(0,e,...this._counts.slice(0,e)),this._counts=o}reverse(t,e){let n=Math.floor((t+e)/2)-t;for(let o=0;o<n;o++){let s=this._counts[t+o];this._counts[t+o]=this._counts[e-o-1],this._counts[e-o-1]=s}}emptyBucket(t){let e=this._counts[t];return this._counts[t]=0,e}increment(t,e){this._counts[t]+=e}decrement(t,e){this._counts[t]>=e?this._counts[t]-=e:this._counts[t]=0}clone(){return new r([...this._counts])}};var Pe=Math.pow(2,-1022);function Fr(r){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,r),((t.getUint32(0)&2146435072)>>20)-1023}function Yr(r){let t=new DataView(new ArrayBuffer(8));t.setFloat64(0,r);let e=t.getUint32(0),n=t.getUint32(4);return(e&1048575)*Math.pow(2,32)+n}function Ce(r,t){return r===0||r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY||Number.isNaN(r)?r:r*Math.pow(2,t)}function rp(r){return r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r++,r}var _t=class extends Error{};var kr=class{_shift;constructor(t){this._shift=-t}mapToIndex(t){if(t<Pe)return this._minNormalLowerBoundaryIndex();let e=Fr(t),n=this._rightShift(Yr(t)-1,52);return e+n>>this._shift}lowerBoundary(t){let e=this._minNormalLowerBoundaryIndex();if(t<e)throw new _t(`underflow: ${t} is < minimum lower boundary: ${e}`);let n=this._maxNormalLowerBoundaryIndex();if(t>n)throw new _t(`overflow: ${t} is > maximum lower boundary: ${n}`);return Ce(1,t<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let t=-1022>>this._shift;return this._shift<2&&t--,t}_maxNormalLowerBoundaryIndex(){return 1023>>this._shift}_rightShift(t,e){return Math.floor(t*Math.pow(2,-e))}};var Kr=class{_scale;_scaleFactor;_inverseFactor;constructor(t){this._scale=t,this._scaleFactor=Ce(Math.LOG2E,t),this._inverseFactor=Ce(Math.LN2,-t)}mapToIndex(t){if(t<=Pe)return this._minNormalLowerBoundaryIndex()-1;if(Yr(t)===0)return(Fr(t)<<this._scale)-1;let e=Math.floor(Math.log(t)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return e>=n?n:e}lowerBoundary(t){let e=this._maxNormalLowerBoundaryIndex();if(t>=e){if(t===e)return 2*Math.exp((t-(1<<this._scale))/this._scaleFactor);throw new _t(`overflow: ${t} is > maximum lower boundary: ${e}`)}let n=this._minNormalLowerBoundaryIndex();if(t<=n){if(t===n)return Pe;if(t===n-1)return Math.exp((t+(1<<this._scale))/this._scaleFactor)/2;throw new _t(`overflow: ${t} is < minimum lower boundary: ${n}`)}return Math.exp(t*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return-1022<<this._scale}_maxNormalLowerBoundaryIndex(){return(1024<<this._scale)-1}};var op=-10,sp=20,TI=Array.from({length:31},(r,t)=>t>10?new Kr(t-10):new kr(t-10));function lo(r){if(r>sp||r<op)throw new _t(`expected scale >= ${op} && <= ${sp}, got: ${r}`);return TI[r+10]}var $t=class r{static combine(t,e){return new r(Math.min(t.low,e.low),Math.max(t.high,e.high))}low;high;constructor(t,e){this.low=t,this.high=e}},SI=20,pI=160,Ao=2,jr=class r{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(t,e=pI,n=!0,o=0,s=0,i=0,a=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,E=new Me,u=new Me,S=lo(SI)){this.startTime=t,this._maxSize=e,this._recordMinMax=n,this._sum=o,this._count=s,this._zeroCount=i,this._min=a,this._max=_,this._positive=E,this._negative=u,this._mapping=S,this._maxSize<Ao&&(c.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Ao}`),this._maxSize=Ao)}record(t){this.updateByIncrement(t,1)}setStartTime(t){this.startTime=t}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(t,e){if(!Number.isNaN(t)){if(t>this._max&&(this._max=t),t<this._min&&(this._min=t),this._count+=e,t===0){this._zeroCount+=e;return}this._sum+=t*e,t>0?this._updateBuckets(this._positive,t,e):this._updateBuckets(this._negative,-t,e)}}merge(t){this._count===0?(this._min=t.min,this._max=t.max):t.count!==0&&(t.min<this.min&&(this._min=t.min),t.max>this.max&&(this._max=t.max)),this.startTime=t.startTime,this._sum+=t.sum,this._count+=t.count,this._zeroCount+=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._mergeBuckets(this.positive,t,t.positive,e),this._mergeBuckets(this.negative,t,t.negative,e)}diff(t){this._min=1/0,this._max=-1/0,this._sum-=t.sum,this._count-=t.count,this._zeroCount-=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._diffBuckets(this.positive,t,t.positive,e),this._diffBuckets(this.negative,t,t.negative,e)}clone(){return new r(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(t,e,n){let o=this._mapping.mapToIndex(e),s=!1,i=0,a=0;if(t.length===0?(t.indexStart=o,t.indexEnd=t.indexStart,t.indexBase=t.indexStart):o<t.indexStart&&t.indexEnd-o>=this._maxSize?(s=!0,a=o,i=t.indexEnd):o>t.indexEnd&&o-t.indexStart>=this._maxSize&&(s=!0,a=t.indexStart,i=o),s){let _=this._changeScale(i,a);this._downscale(_),o=this._mapping.mapToIndex(e)}this._incrementIndexBy(t,o,n)}_incrementIndexBy(t,e,n){if(n===0)return;if(t.length===0&&(t.indexStart=t.indexEnd=t.indexBase=e),e<t.indexStart){let s=t.indexEnd-e;s>=t.backing.length&&this._grow(t,s+1),t.indexStart=e}else if(e>t.indexEnd){let s=e-t.indexStart;s>=t.backing.length&&this._grow(t,s+1),t.indexEnd=e}let o=e-t.indexBase;o<0&&(o+=t.backing.length),t.incrementBucket(o,n)}_grow(t,e){let n=t.backing.length,o=t.indexBase-t.indexStart,s=n-o,i=rp(e);i>this._maxSize&&(i=this._maxSize);let a=i-o;t.backing.growTo(i,s,a)}_changeScale(t,e){let n=0;for(;t-e>=this._maxSize;)t>>=1,e>>=1,n++;return n}_downscale(t){if(t===0)return;if(t<0)throw new Error(`impossible change of scale: ${this.scale}`);let e=this._mapping.scale-t;this._positive.downscale(t),this._negative.downscale(t),this._mapping=lo(e)}_minScale(t){let e=Math.min(this.scale,t.scale),n=$t.combine(this._highLowAtScale(this.positive,this.scale,e),this._highLowAtScale(t.positive,t.scale,e)),o=$t.combine(this._highLowAtScale(this.negative,this.scale,e),this._highLowAtScale(t.negative,t.scale,e));return Math.min(e-this._changeScale(n.high,n.low),e-this._changeScale(o.high,o.low))}_highLowAtScale(t,e,n){if(t.length===0)return new $t(0,-1);let o=e-n;return new $t(t.indexStart>>o,t.indexEnd>>o)}_mergeBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++)this._incrementIndexBy(t,s+a>>i,n.at(a))}_diffBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++){let E=(s+a>>i)-t.indexBase;E<0&&(E+=t.backing.length),t.decrementBucket(E,n.at(a))}t.trim()}},Le=class{kind=$.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(t,e){this._maxSize=t,this._recordMinMax=e}createAccumulation(t){return new jr(t,this._maxSize,this._recordMinMax)}merge(t,e){let n=e.clone();return n.merge(t),n}diff(t,e){let n=e.clone();return n.diff(t),n}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.EXPONENTIAL_HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,positive:{offset:a.positive.offset,bucketCounts:a.positive.bucketCounts},negative:{offset:a.negative.offset,bucketCounts:a.negative.bucketCounts},count:a.count,scale:a.scale,zeroCount:a.zeroCount}}})}}};var bt=R(P());var Xt=class{startTime;_current;sampleTime;constructor(t,e=0,n=[0,0]){this.startTime=t,this._current=e,this.sampleTime=n}record(t){this._current=t,this.sampleTime=(0,bt.millisToHrTime)(Date.now())}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},Ie=class{kind=$.LAST_VALUE;createAccumulation(t){return new Xt(t)}merge(t,e){let n=(0,bt.hrTimeToMicroseconds)(e.sampleTime)>=(0,bt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new Xt(t.startTime,n.toPointValue(),n.sampleTime)}diff(t,e){let n=(0,bt.hrTimeToMicroseconds)(e.sampleTime)>=(0,bt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new Xt(e.startTime,n.toPointValue(),n.sampleTime)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.GAUGE,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()}))}}};var Rt=class{startTime;monotonic;_current;reset;constructor(t,e,n=0,o=!1){this.startTime=t,this.monotonic=e,this._current=n,this.reset=o}record(t){this.monotonic&&t<0||(this._current+=t)}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},zt=class{kind=$.SUM;monotonic;constructor(t){this.monotonic=t}createAccumulation(t){return new Rt(t,this.monotonic)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue();return e.reset?new Rt(e.startTime,this.monotonic,o,e.reset):new Rt(t.startTime,this.monotonic,n+o)}diff(t,e){let n=t.toPointValue(),o=e.toPointValue();return this.monotonic&&n>o?new Rt(e.startTime,this.monotonic,o,!0):new Rt(e.startTime,this.monotonic,o-n)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.SUM,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()})),isMonotonic:this.monotonic}}};var mo=class r{static DEFAULT_INSTANCE=new Ne;createAggregator(t){return r.DEFAULT_INSTANCE}};var fo=class r{static MONOTONIC_INSTANCE=new zt(!0);static NON_MONOTONIC_INSTANCE=new zt(!1);createAggregator(t){switch(t.type){case f.COUNTER:case f.OBSERVABLE_COUNTER:case f.HISTOGRAM:return r.MONOTONIC_INSTANCE;default:return r.NON_MONOTONIC_INSTANCE}}};var ho=class r{static DEFAULT_INSTANCE=new Ie;createAggregator(t){return r.DEFAULT_INSTANCE}};var Ro=class r{static DEFAULT_INSTANCE=new qt([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(t){return r.DEFAULT_INSTANCE}};var xe=class{_boundaries;_recordMinMax;constructor(t,e=!0){if(t==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");t=t.concat(),t=t.sort((s,i)=>s-i);let n=t.lastIndexOf(-1/0),o=t.indexOf(1/0);o===-1&&(o=void 0),this._boundaries=t.slice(n+1,o),this._recordMinMax=e}createAggregator(t){return new qt(this._boundaries,this._recordMinMax)}},De=class{_maxSize;_recordMinMax;constructor(t=160,e=!0){this._maxSize=t,this._recordMinMax=e}createAggregator(t){return new Le(this._maxSize,this._recordMinMax)}},Oo=class{_resolve(t){switch(t.type){case f.COUNTER:case f.UP_DOWN_COUNTER:case f.OBSERVABLE_COUNTER:case f.OBSERVABLE_UP_DOWN_COUNTER:return No;case f.GAUGE:case f.OBSERVABLE_GAUGE:return Mo;case f.HISTOGRAM:return t.advice.explicitBucketBoundaries?new xe(t.advice.explicitBucketBoundaries):Po}return c.diag.warn(`Unable to recognize instrument type: ${t.type}`),go}createAggregator(t){return this._resolve(t).createAggregator(t)}},go=new mo,No=new fo,Mo=new ho,Po=new Ro,yy=new De,ip=new Oo;var Et;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.DROP=1]="DROP",r[r.SUM=2]="SUM",r[r.LAST_VALUE=3]="LAST_VALUE",r[r.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(Et||(Et={}));function Wr(r){switch(r.type){case Et.DEFAULT:return ip;case Et.DROP:return go;case Et.SUM:return No;case Et.LAST_VALUE:return Mo;case Et.EXPONENTIAL_HISTOGRAM:{let t=r;return new De(t.options?.maxSize,t.options?.recordMinMax)}case Et.EXPLICIT_BUCKET_HISTOGRAM:{let t=r;return t.options==null?Po:new xe(t.options?.boundaries,t.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}d();var qr=class{_registeredViews=[];addView(t){this._registeredViews.push(t)}findViews(t,e){return this._registeredViews.filter(o=>this._matchInstrument(o.instrumentSelector,t)&&this._matchMeter(o.meterSelector,e))}_matchInstrument(t,e){return(t.getType()===void 0||e.type===t.getType())&&t.getNameFilter().match(e.name)&&t.getUnitFilter().match(e.unit)}_matchMeter(t,e){return t.getNameFilter().match(e.name)&&(e.version===void 0||t.getVersionFilter().match(e.version))&&(e.schemaUrl===void 0||t.getSchemaUrlFilter().match(e.schemaUrl))}};d();function ut(r,t,e){return AI(r)||c.diag.warn(`Invalid metric name: "${r}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:r,type:t,description:e?.description??"",unit:e?.unit??"",valueType:e?.valueType??c.ValueType.DOUBLE,advice:e?.advice??{}}}function ap(r,t){return{name:r.name??t.name,description:r.description??t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function cp(r,t){return tp(r.name,t.name)&&r.unit===t.unit&&r.type===t.type&&r.valueType===t.valueType}var lI=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function AI(r){return lI.test(r)}d();var _p=R(P()),Qt=class{_writableMetricStorage;_descriptor;constructor(t,e){this._writableMetricStorage=t,this._descriptor=e}_record(t,e={},n=c.context.active()){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${t}`);return}this._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._writableMetricStorage.record(t,e,n,(0,_p.millisToHrTime)(Date.now()))}},$r=class extends Qt{add(t,e,n){this._record(t,e,n)}},Xr=class extends Qt{add(t,e,n){if(t<0){c.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},zr=class extends Qt{record(t,e,n){this._record(t,e,n)}},Qr=class extends Qt{record(t,e,n){if(t<0){c.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},Jt=class{_metricStorages;_descriptor;_observableRegistry;constructor(t,e,n){this._descriptor=t,this._metricStorages=e,this._observableRegistry=n}addCallback(t){this._observableRegistry.addCallback(t,this)}removeCallback(t){this._observableRegistry.removeCallback(t,this)}},Jr=class extends Jt{},Zr=class extends Jt{},tn=class extends Jt{};function Ue(r){return r instanceof Jt}var en=class{_meterSharedState;constructor(t){this._meterSharedState=t}createGauge(t,e){let n=ut(t,f.GAUGE,e),o=this._meterSharedState.registerMetricStorage(n);return new zr(o,n)}createHistogram(t,e){let n=ut(t,f.HISTOGRAM,e),o=this._meterSharedState.registerMetricStorage(n);return new Qr(o,n)}createCounter(t,e){let n=ut(t,f.COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new Xr(o,n)}createUpDownCounter(t,e){let n=ut(t,f.UP_DOWN_COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new $r(o,n)}createObservableGauge(t,e){let n=ut(t,f.OBSERVABLE_GAUGE,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Zr(n,o,this._meterSharedState.observableRegistry)}createObservableCounter(t,e){let n=ut(t,f.OBSERVABLE_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Jr(n,o,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(t,e){let n=ut(t,f.OBSERVABLE_UP_DOWN_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new tn(n,o,this._meterSharedState.observableRegistry)}addBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.addBatchCallback(t,e)}removeBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.removeBatchCallback(t,e)}};var Zt=class{_instrumentDescriptor;constructor(t){this._instrumentDescriptor=t}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(t){this._instrumentDescriptor=ut(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:t,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};var Co=class{_valueMap=new Map;_keyMap=new Map;_hash;constructor(t){this._hash=t}get(t,e){return e??=this._hash(t),this._valueMap.get(e)}getOrDefault(t,e){let n=this._hash(t);if(this._valueMap.has(n))return this._valueMap.get(n);let o=e();return this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,o),o}set(t,e,n){n??=this._hash(t),this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,e)}has(t,e){return e??=this._hash(t),this._valueMap.has(e)}*keys(){let t=this._keyMap.entries(),e=t.next();for(;e.done!==!0;)yield[e.value[1],e.value[0]],e=t.next()}*entries(){let t=this._valueMap.entries(),e=t.next();for(;e.done!==!0;)yield[this._keyMap.get(e.value[0]),e.value[1],e.value[0]],e=t.next()}get size(){return this._valueMap.size}},Y=class extends Co{constructor(){super(Hr)}};var te=class{_activeCollectionStorage=new Y;_cumulativeMemoStorage=new Y;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;_aggregator;constructor(t,e){this._aggregator=t,this._cardinalityLimit=(e??2e3)-1,this._overflowHashCode=Hr(this._overflowAttributes)}record(t,e,n,o){let s=this._activeCollectionStorage.get(e);if(!s){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(o))?.record(t);return}s=this._aggregator.createAccumulation(o),this._activeCollectionStorage.set(e,s)}s?.record(t)}batchCumulate(t,e){Array.from(t.entries()).forEach(([n,o,s])=>{let i=this._aggregator.createAccumulation(e);i?.record(o);let a=i;if(this._cumulativeMemoStorage.has(n,s)){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(n=this._overflowAttributes,s=this._overflowHashCode,this._cumulativeMemoStorage.has(n,s))){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}if(this._activeCollectionStorage.has(n,s)){let _=this._activeCollectionStorage.get(n,s);a=this._aggregator.merge(_,a)}this._cumulativeMemoStorage.set(n,i,s),this._activeCollectionStorage.set(n,a,s)})}collect(){let t=this._activeCollectionStorage;return this._activeCollectionStorage=new Y,t}};var ee=class r{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(t,e){this._aggregator=t,e.forEach(n=>{this._unreportedAccumulations.set(n,[])})}buildMetrics(t,e,n,o){this._stashAccumulations(n);let s=this._getMergedUnreportedAccumulations(t),i=s,a;if(this._reportHistory.has(t)){let E=this._reportHistory.get(t),u=E.collectionTime;a=E.aggregationTemporality,a===Gr.CUMULATIVE?i=r.merge(E.accumulations,s,this._aggregator):i=r.calibrateStartTime(E.accumulations,s,u)}else a=t.selectAggregationTemporality(e.type);this._reportHistory.set(t,{accumulations:i,collectionTime:o,aggregationTemporality:a});let _=dI(i);if(_.length!==0)return this._aggregator.toMetricData(e,a,_,o)}_stashAccumulations(t){let e=this._unreportedAccumulations.keys();for(let n of e){let o=this._unreportedAccumulations.get(n);o===void 0&&(o=[],this._unreportedAccumulations.set(n,o)),o.push(t)}}_getMergedUnreportedAccumulations(t){let e=new Y,n=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),n===void 0)return e;for(let o of n)e=r.merge(e,o,this._aggregator);return e}static merge(t,e,n){let o=t,s=e.entries(),i=s.next();for(;i.done!==!0;){let[a,_,E]=i.value;if(t.has(a,E)){let u=t.get(a,E),S=n.merge(u,_);o.set(a,S,E)}else o.set(a,_,E);i=s.next()}return o}static calibrateStartTime(t,e,n){for(let[o,s]of t.keys())e.get(o,s)?.setStartTime(n);return e}};function dI(r){return Array.from(r.entries())}var rn=class extends Zt{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(t,e,n,o,s){super(t),this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new te(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new ee(e,o),this._attributesProcessor=n}record(t,e){let n=new Y;Array.from(t.entries()).forEach(([o,s])=>{n.set(this._attributesProcessor.process(o),s)}),this._deltaMetricStorage.batchCumulate(n,e)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};d();function Lo(r,t){let e="";return r.unit!==t.unit&&(e+=` - Unit '${r.unit}' does not match '${t.unit}'
5
5
  `),r.type!==t.type&&(e+=` - Type '${r.type}' does not match '${t.type}'
6
6
  `),r.valueType!==t.valueType&&(e+=` - Value Type '${r.valueType}' does not match '${t.valueType}'
7
7
  `),r.description!==t.description&&(e+=` - Description '${r.description}' does not match '${t.description}'
8
- `),e}function dI(r,t){return` - use valueType '${r.valueType}' on instrument creation or use an instrument name other than '${t.name}'`}function mI(r,t){return` - use unit '${r.unit}' on instrument creation or use an instrument name other than '${t.name}'`}function fI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'`}function hI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'
8
+ `),e}function mI(r,t){return` - use valueType '${r.valueType}' on instrument creation or use an instrument name other than '${t.name}'`}function fI(r,t){return` - use unit '${r.unit}' on instrument creation or use an instrument name other than '${t.name}'`}function hI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'`}function RI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'
9
9
  - OR - create a new view with the name ${r.name} and description '${r.description}' and InstrumentSelector ${n}
10
- - OR - create a new view with the name ${t.name} and description '${r.description}' and InstrumentSelector ${n}`}function Do(r,t){return r.valueType!==t.valueType?dI(r,t):r.unit!==t.unit?mI(r,t):r.type!==t.type?fI(r,t):r.description!==t.description?hI(r,t):""}var nn=class r{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new r}getStorages(t){let e=[];for(let o of this._sharedRegistry.values())e=e.concat(o);let n=this._perCollectorRegistry.get(t);if(n!=null)for(let o of n.values())e=e.concat(o);return e}register(t){this._registerStorage(t,this._sharedRegistry)}registerForCollector(t,e){let n=this._perCollectorRegistry.get(t);n==null&&(n=new Map,this._perCollectorRegistry.set(t,n)),this._registerStorage(e,n)}findOrUpdateCompatibleStorage(t){let e=this._sharedRegistry.get(t.name);return e===void 0?null:this._findOrUpdateCompatibleStorage(t,e)}findOrUpdateCompatibleCollectorStorage(t,e){let n=this._perCollectorRegistry.get(t);if(n===void 0)return null;let o=n.get(e.name);return o===void 0?null:this._findOrUpdateCompatibleStorage(e,o)}_registerStorage(t,e){let n=t.getInstrumentDescriptor(),o=e.get(n.name);if(o===void 0){e.set(n.name,[t]);return}o.push(t)}_findOrUpdateCompatibleStorage(t,e){let n=null;for(let o of e){let s=o.getInstrumentDescriptor();Ep(s,t)?(s.description!==t.description&&(t.description.length>s.description.length&&o.updateDescription(t.description),c.diag.warn("A view or instrument with the name ",t.name,` has already been registered, but has a different description and is incompatible with another registered view.
10
+ - OR - create a new view with the name ${t.name} and description '${r.description}' and InstrumentSelector ${n}`}function Io(r,t){return r.valueType!==t.valueType?mI(r,t):r.unit!==t.unit?fI(r,t):r.type!==t.type?hI(r,t):r.description!==t.description?RI(r,t):""}var nn=class r{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new r}getStorages(t){let e=[];for(let o of this._sharedRegistry.values())e=e.concat(o);let n=this._perCollectorRegistry.get(t);if(n!=null)for(let o of n.values())e=e.concat(o);return e}register(t){this._registerStorage(t,this._sharedRegistry)}registerForCollector(t,e){let n=this._perCollectorRegistry.get(t);n==null&&(n=new Map,this._perCollectorRegistry.set(t,n)),this._registerStorage(e,n)}findOrUpdateCompatibleStorage(t){let e=this._sharedRegistry.get(t.name);return e===void 0?null:this._findOrUpdateCompatibleStorage(t,e)}findOrUpdateCompatibleCollectorStorage(t,e){let n=this._perCollectorRegistry.get(t);if(n===void 0)return null;let o=n.get(e.name);return o===void 0?null:this._findOrUpdateCompatibleStorage(e,o)}_registerStorage(t,e){let n=t.getInstrumentDescriptor(),o=e.get(n.name);if(o===void 0){e.set(n.name,[t]);return}o.push(t)}_findOrUpdateCompatibleStorage(t,e){let n=null;for(let o of e){let s=o.getInstrumentDescriptor();cp(s,t)?(s.description!==t.description&&(t.description.length>s.description.length&&o.updateDescription(t.description),c.diag.warn("A view or instrument with the name ",t.name,` has already been registered, but has a different description and is incompatible with another registered view.
11
11
  `,`Details:
12
- `,xo(s,t),`The longer description will be used.
13
- To resolve the conflict:`,Do(s,t))),n=o):c.diag.warn("A view or instrument with the name ",t.name,` has already been registered and is incompatible with another registered view.
12
+ `,Lo(s,t),`The longer description will be used.
13
+ To resolve the conflict:`,Io(s,t))),n=o):c.diag.warn("A view or instrument with the name ",t.name,` has already been registered and is incompatible with another registered view.
14
14
  `,`Details:
15
- `,xo(s,t),`To resolve the conflict:
16
- `,Do(s,t))}return n}};var on=class{_backingStorages;constructor(t){this._backingStorages=t}record(t,e,n,o){this._backingStorages.forEach(s=>{s.record(t,e,n,o)})}};d();d();var sn=class{_instrumentName;_valueType;_buffer=new F;constructor(t,e){this._instrumentName=t,this._valueType=e}observe(t,e={}){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${t}`);return}this._valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._buffer.set(e,t)}},an=class{_buffer=new Map;observe(t,e,n={}){if(!Ue(t))return;let o=this._buffer.get(t);if(o==null&&(o=new F,this._buffer.set(t,o)),typeof e!="number"){c.diag.warn(`non-number value provided to metric ${t._descriptor.name}: ${e}`);return}t._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(e)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${t._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||o.set(n,e)}};var cn=class{_callbacks=[];_batchCallbacks=[];addCallback(t,e){this._findCallback(t,e)>=0||this._callbacks.push({callback:t,instrument:e})}removeCallback(t,e){let n=this._findCallback(t,e);n<0||this._callbacks.splice(n,1)}addBatchCallback(t,e){let n=new Set(e.filter(Ue));if(n.size===0){c.diag.error("BatchObservableCallback is not associated with valid instruments",e);return}this._findBatchCallback(t,n)>=0||this._batchCallbacks.push({callback:t,instruments:n})}removeBatchCallback(t,e){let n=new Set(e.filter(Ue)),o=this._findBatchCallback(t,n);o<0||this._batchCallbacks.splice(o,1)}async observe(t,e){let n=this._observeCallbacks(t,e),o=this._observeBatchCallbacks(t,e);return(await ZS([...n,...o])).filter(tp).map(a=>a.reason)}_observeCallbacks(t,e){return this._callbacks.map(async({callback:n,instrument:o})=>{let s=new sn(o._descriptor.name,o._descriptor.valueType),i=Promise.resolve(n(s));e!=null&&(i=So(i,e)),await i,o._metricStorages.forEach(a=>{a.record(s._buffer,t)})})}_observeBatchCallbacks(t,e){return this._batchCallbacks.map(async({callback:n,instruments:o})=>{let s=new an,i=Promise.resolve(n(s));e!=null&&(i=So(i,e)),await i,o.forEach(a=>{let _=s._buffer.get(a);_!=null&&a._metricStorages.forEach(u=>{u.record(_,t)})})})}_findCallback(t,e){return this._callbacks.findIndex(n=>n.callback===t&&n.instrument===e)}_findBatchCallback(t,e){return this._batchCallbacks.findIndex(n=>n.callback===t&&ep(n.instruments,e))}};var _n=class extends Zt{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new te(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new ee(e,o)}record(t,e,n,o){e=this._attributesProcessor.process(e,n),this._deltaMetricStorage.record(t,e,n,o)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};var Uo=class{process(t,e){return t}},bo=class{_processors;constructor(t){this._processors=t}process(t,e){let n=t;for(let o of this._processors)n=o.process(n,e);return n}};function un(){return RI}function Sp(r){return new bo(r)}var RI=new Uo;var En=class{_meterProviderSharedState;_instrumentationScope;metricStorageRegistry=new nn;observableRegistry=new cn;meter;constructor(t,e){this._meterProviderSharedState=t,this._instrumentationScope=e,this.meter=new en(this)}registerMetricStorage(t){let e=this._registerMetricStorage(t,_n);return e.length===1?e[0]:new on(e)}registerAsyncMetricStorage(t){return this._registerMetricStorage(t,rn)}async collect(t,e,n){let o=await this.observableRegistry.observe(e,n?.timeoutMillis),s=this.metricStorageRegistry.getStorages(t);if(s.length===0)return null;let i=s.map(a=>a.collect(t,e)).filter(QS);return i.length===0?{errors:o}:{scopeMetrics:{scope:this._instrumentationScope,metrics:i},errors:o}}_registerMetricStorage(t,e){let o=this._meterProviderSharedState.viewRegistry.findViews(t,this._instrumentationScope).map(s=>{let i=up(s,t),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(i);if(a!=null)return a;let _=s.aggregation.createAggregator(i),u=new e(i,_,s.attributesProcessor,this._meterProviderSharedState.metricCollectors,s.aggregationCardinalityLimit);return this.metricStorageRegistry.register(u),u});if(o.length===0){let i=this._meterProviderSharedState.selectAggregations(t.type).map(([a,_])=>{let u=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,t);if(u!=null)return u;let E=_.createAggregator(t),p=a.selectCardinalityLimit(t.type),A=new e(t,E,un(),[a],p);return this.metricStorageRegistry.registerForCollector(a,A),A});o=o.concat(i)}return o}};var Tn=class{resource;viewRegistry=new qr;metricCollectors=[];meterSharedStates=new Map;constructor(t){this.resource=t}getMeterSharedState(t){let e=JS(t),n=this.meterSharedStates.get(e);return n==null&&(n=new En(this,t),this.meterSharedStates.set(e,n)),n}selectAggregations(t){let e=[];for(let n of this.metricCollectors)e.push([n,Wr(n.selectAggregation(t))]);return e}};var pp=R(P()),Sn=class{_sharedState;_metricReader;constructor(t,e){this._sharedState=t,this._metricReader=e}async collect(t){let e=(0,pp.millisToHrTime)(Date.now()),n=[],o=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(async i=>{let a=await i.collect(this,e,t);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&o.push(...a.errors)});return await Promise.all(s),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:o}}async forceFlush(t){await this._metricReader.forceFlush(t)}async shutdown(t){await this._metricReader.shutdown(t)}selectAggregationTemporality(t){return this._metricReader.selectAggregationTemporality(t)}selectAggregation(t){return this._metricReader.selectAggregation(t)}selectCardinalityLimit(t){return this._metricReader.selectCardinalityLimit?.(t)??2e3}};var OI=/[\^$\\.+?()[\]{}|]/g,re=class r{_matchAll;_regexp;constructor(t){t==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(t)))}match(t){return this._matchAll?!0:this._regexp.test(t)}static escapePattern(t){return`^${t.replace(OI,"\\$&").replace("*",".*")}$`}static hasWildcard(t){return t.includes("*")}},gt=class{_matchAll;_pattern;constructor(t){this._matchAll=t===void 0,this._pattern=t}match(t){return!!(this._matchAll||t===this._pattern)}};var pn=class{_nameFilter;_type;_unitFilter;constructor(t){this._nameFilter=new re(t?.name??"*"),this._type=t?.type,this._unitFilter=new gt(t?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};var ln=class{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(t){this._nameFilter=new gt(t?.name),this._versionFilter=new gt(t?.version),this._schemaUrlFilter=new gt(t?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};function gI(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}function NI(r){if(gI(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||re.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}var An=class{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(t){NI(t),t.attributesProcessors!=null?this.attributesProcessor=Sp(t.attributesProcessors):this.attributesProcessor=un(),this.name=t.name,this.description=t.description,this.aggregation=Wr(t.aggregation??{type:ut.DEFAULT}),this.instrumentSelector=new pn({name:t.instrumentName,type:t.instrumentType,unit:t.instrumentUnit}),this.meterSelector=new ln({name:t.meterName,version:t.meterVersion,schemaUrl:t.meterSchemaUrl}),this.aggregationCardinalityLimit=t.aggregationCardinalityLimit}};var be=class{_sharedState;_shutdown=!1;constructor(t){if(this._sharedState=new Tn(t?.resource??Dt()),t?.views!=null&&t.views.length>0)for(let e of t.views)this._sharedState.viewRegistry.addView(new An(e));if(t?.readers!=null&&t.readers.length>0)for(let e of t.readers){let n=new Sn(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)}}getMeter(t,e="",n={}){return this._shutdown?(c.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,c.createNoopMeter)()):this._sharedState.getMeterSharedState({name:t,version:e,schemaUrl:n.schemaUrl}).meter}async shutdown(t){if(this._shutdown){c.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(e=>e.shutdown(t)))}async forceFlush(t){if(this._shutdown){c.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(e=>e.forceFlush(t)))}};var SA=R(mp(),1),ke=R(P(),1);d();var VI=Symbol.for("@vercel/request-context");function X(){return globalThis[VI]?.get()}var fp="http.method",hp="http.url",hn="http.host",Rp="http.scheme",Go="http.status_code",Op="http.user_agent",Ho="http.response_content_length_uncompressed",gp="net.peer.port",Np="net.peer.name",Mp="cloud.region";var Pp="deployment.environment.name",Cp="deployment.id",Lp="cloud.provider",Ip="process.runtime.name",xp="vcs.ref.head.name",Dp="vcs.ref.head.revision",Up="vcs.repository.name",bp="vcs.repository.ref.revision";var yp="service.name",Vp="service.version";function Fo(r){return Object.fromEntries(Object.entries(r).filter(([t,e])=>e!==void 0))}function Bp({attributes:r,env:t=process.env,runtime:e,serviceName:n}){let o=t.VERCEL_ENV,s=t.VERCEL_DEPLOYMENT_ID,i=t.VERCEL_GIT_COMMIT_SHA,a=t.VERCEL_REGION,_=t.VERCEL_GIT_COMMIT_REF,u=t.VERCEL_GIT_REPO_SLUG;return Fo({[yp]:n,"node.ci":t.CI?!0:void 0,"node.env":t.NODE_ENV,[Pp]:o,env:o,[Lp]:"vercel",[Mp]:a,"vercel.region":a,[Ip]:e,"vercel.runtime":e,[xp]:_,[Dp]:i,[Up]:u,[bp]:i,"vercel.sha":i,"vercel.host":t.VERCEL_URL||void 0,"vercel.branch_host":t.VERCEL_BRANCH_URL||void 0,[Cp]:s,"vercel.deployment_id":s,[Vp]:s,"vercel.project_id":t.VERCEL_PROJECT_ID||void 0,...r})}function wp(r){return r?r.split("::").at(-1):void 0}function Gp(r=X(),t){if(!r)return;let e=t?BI(t,r.headers):void 0;return Fo({[hn]:r.headers.host,[Op]:r.headers["user-agent"],"http.referer":r.headers.referer,"vercel.request_id":wp(r.headers["x-vercel-id"]),"vercel.matched_path":r.headers["x-matched-path"],"vercel.edge_region":process.env.VERCEL_REGION,...e})}var vI={keys(r){return[]},get(r,t){return r[t.toLocaleLowerCase()]}};function BI(r,t){if(typeof r=="function")return r(t,vI);let e={};for(let[n,o]of Object.entries(r)){let s=t[o.toLocaleLowerCase()];s!==void 0&&(e[n]=s)}return e}d();function se(r){return(r&c.TraceFlags.SAMPLED)!==0}d();var wI=2**31-1;function Ve(r,t){if(r===void 0)return;let e=typeof r=="string"?Number(r):r;if(Number.isFinite(e)&&e>0)return Math.min(e,wI);c.diag.warn(`@vercel/otel: ignoring invalid ${t}: ${String(r)}`)}var GI=1e4,Rn=class{constructor(t,e,n){this.processors=t;this.attributesFromHeaders=e;this.rootSpanIds=new Map;this.waitSpanEnd=new Map;this.flushTimeoutMillis=Ve(n,"flushTimeoutMillis")??GI}forceFlush(){return Promise.all(this.processors.map(t=>t.forceFlush().catch(e=>{c.diag.error("@vercel/otel: forceFlush failed:",e)}))).then(()=>{})}forceFlushWithTimeout(t){let e;return Promise.race([this.forceFlush(),new Promise(n=>{e=setTimeout(()=>{c.diag.warn(`@vercel/otel: forceFlush did not complete within ${t}ms, giving up`),n()},t)})]).finally(()=>{clearTimeout(e)})}shutdown(){return Promise.all(this.processors.map(t=>t.shutdown().catch(()=>{}))).then(()=>{})}onStart(t,e){let{traceId:n,spanId:o,traceFlags:s}=t.spanContext(),i=!t.parentSpanContext?.spanId||!this.rootSpanIds.has(n);if(i?this.rootSpanIds.set(n,{rootSpanId:o,open:[]}):this.rootSpanIds.get(n)?.open.push(t),i&&se(s)){let a=X(),_=Gp(a,this.attributesFromHeaders);_&&t.setAttributes(_),a&&a.waitUntil(async()=>{if(this.rootSpanIds.has(n)){let u=new Promise(p=>{this.waitSpanEnd.set(n,p)}),E;await Promise.race([u,new Promise(p=>{E=setTimeout(()=>{this.waitSpanEnd.delete(n),p(void 0)},50)})]),E&&clearTimeout(E)}return this.forceFlushWithTimeout(this.flushTimeoutMillis)})}for(let a of this.processors)a.onStart(t,e)}onEnd(t){let{traceId:e,spanId:n,traceFlags:o}=t.spanContext(),s=se(o),i=this.rootSpanIds.get(e),a=i?.rootSpanId===n;if(s){let _=FI(t);_&&Object.assign(t.attributes,_)}if(a){if(this.rootSpanIds.delete(e),i.open.length>0){for(let _ of i.open)if(!_.ended&&_.spanContext().spanId!==n)try{_.end()}catch(u){c.diag.error("@vercel/otel: onEnd failed:",u)}}}else if(i)for(let _=0;_<i.open.length;_++)i.open[_]?.spanContext().spanId===n&&i.open.splice(_,1);for(let _ of this.processors)_.onEnd(t);if(a){let _=this.waitSpanEnd.get(e);_&&(this.waitSpanEnd.delete(e),_())}}},HI={[c.SpanKind.INTERNAL]:"internal",[c.SpanKind.SERVER]:"server",[c.SpanKind.CLIENT]:"client",[c.SpanKind.PRODUCER]:"producer",[c.SpanKind.CONSUMER]:"consumer"};function FI(r){let{kind:t,attributes:e}=r,{"operation.name":n,"resource.name":o,"span.type":s,"next.span_type":i,"http.method":a,"http.route":_}=e;if(n)return;let u=o??(a&&typeof a=="string"&&_&&typeof _=="string"?`${a} ${_}`:_);if(r.kind===c.SpanKind.SERVER&&a&&_&&typeof a=="string"&&typeof _=="string")return{"operation.name":"web.request","resource.name":u};let E=r.instrumentationScope.name,p=i??s;if(p&&typeof p=="string"){let A=Hp(E,p);return _?{"operation.name":A,"resource.name":u}:{"operation.name":A}}return{"operation.name":Hp(E,t===c.SpanKind.INTERNAL?"":HI[t])}}function Hp(r,t){if(!r)return t;let e=r.replace(/[ @./]/g,"_");return e.startsWith("_")&&(e=e.slice(1)),t?`${e}.${t}`:e}var el=R($o(),1);d();function G(r){let t=process.env[r];if(!(!t||t.trim()===""))return t}function Zp(r){return G(r)?.split(",").map(t=>t.trim()).filter(t=>t!=="")}var tx=1e4,ie=class{constructor(t={}){this._shutdownOnce={isCalled:!1};this._sendingPromises=[];this.url=t.url||this.getDefaultUrl(t),this.timeoutMillis=Ve(t.timeoutMillis,"timeoutMillis")??tl("OTEL_EXPORTER_OTLP_TRACES_TIMEOUT")??tl("OTEL_EXPORTER_OTLP_TIMEOUT")??tx,t.headers&&(this._headers=t.headers),this.onInit()}onShutdown(){c.diag.debug("@vercel/otel/otlp: onShutdown")}onInit(){c.diag.debug("@vercel/otel/otlp: onInit")}export(t,e){this.send(t,()=>e({code:0}),n=>e({code:1,error:n}))}async forceFlush(){await Promise.all(this._sendingPromises)}async shutdown(){this._shutdownOnce.isCalled=!0,this.onShutdown(),await this.forceFlush()}send(t,e,n){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects"),n(new Error("Exporter has been shut down"));return}let o,s,i;try{({body:o,contentType:s,headers:i}=this.toMessage(this.convert(t)))}catch(E){c.diag.warn("@vercel/otel/otlp: failed to serialize spans",E),n(E instanceof Error?E:new Error(String(E)));return}let a=new AbortController,_=setTimeout(()=>{a.abort(new Error(`Export timed out after ${this.timeoutMillis}ms`))},this.timeoutMillis),u=fetch(this.url,{method:"POST",body:o,headers:{...this._headers,...i,"Content-Type":s,"User-Agent":"OTel-OTLP-Exporter-JavaScript/0.46.0"},signal:a.signal,next:{internal:!0}}).then(E=>{c.diag.debug("@vercel/otel/otlp: onSuccess",E.status,E.statusText),e(),E.arrayBuffer().catch(()=>{})}).catch(E=>{c.diag.error("@vercel/otel/otlp: onError",E),n(E)}).finally(()=>{clearTimeout(_);let E=this._sendingPromises.indexOf(u);this._sendingPromises.splice(E,1)});this._sendingPromises.push(u)}};function tl(r){return Ve(G(r),r)}var ex="v1/traces",rx=`http://localhost:4318/${ex}`;function Nn(r){return typeof r.url=="string"?r.url:rx}var ae=class{constructor(t={}){this.impl=new Xo(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},Xo=class extends ie{convert(t){return t}toMessage(t){let e=el.JsonTraceSerializer.serializeRequest(t);return{body:new TextDecoder().decode(e),contentType:"application/json"}}getDefaultUrl(t){return Nn(t)}};var nA=R(qo(),1);var tA=R(Zl(),1);function eA(r){let t=new tA.Writer;return Sx(r,t),t.finish()}function Sx(r,t){if(r.resourceSpans!=null&&r.resourceSpans.length)for(let e=0;e<r.resourceSpans.length;++e)px(r.resourceSpans[e],t.uint32(10).fork()).ldelim();return t}function px(r,t){if(r.resource!=null&&lx(r.resource,t.uint32(10).fork()).ldelim(),r.scopeSpans!=null&&r.scopeSpans.length)for(let e=0;e<r.scopeSpans.length;++e)Ax(r.scopeSpans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function lx(r,t){if(r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(10).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(16).uint32(r.droppedAttributesCount),t}function Ax(r,t){if(r.scope!=null&&fx(r.scope,t.uint32(10).fork()).ldelim(),r.spans!=null&&r.spans.length)for(let e=0;e<r.spans.length;++e)hx(r.spans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function _e(r,t){return r.key!=null&&t.uint32(10).string(r.key),r.value!=null&&rA(r.value,t.uint32(18).fork()).ldelim(),t}function rA(r,t){return r.stringValue!=null&&t.uint32(10).string(r.stringValue),r.boolValue!=null&&t.uint32(16).bool(r.boolValue),r.intValue!=null&&t.uint32(24).int64(r.intValue),r.doubleValue!=null&&t.uint32(33).double(r.doubleValue),r.arrayValue!=null&&dx(r.arrayValue,t.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&mx(r.kvlistValue,t.uint32(50).fork()).ldelim(),r.bytesValue!=null&&t.uint32(58).bytes(r.bytesValue),t}function dx(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)rA(r.values[e],t.uint32(10).fork()).ldelim();return t}function mx(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)_e(r.values[e],t.uint32(10).fork()).ldelim();return t}function fx(r,t){if(r.name!=null&&t.uint32(10).string(r.name),r.version!=null&&t.uint32(18).string(r.version),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function hx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.parentSpanId!=null&&t.uint32(34).bytes(r.parentSpanId),r.name!=null&&t.uint32(42).string(r.name),r.kind!=null&&t.uint32(48).int32(r.kind),r.startTimeUnixNano!=null&&t.uint32(57).fixed64(r.startTimeUnixNano),r.endTimeUnixNano!=null&&t.uint32(65).fixed64(r.endTimeUnixNano),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(74).fork()).ldelim();if(r.droppedAttributesCount!=null&&t.uint32(80).uint32(r.droppedAttributesCount),r.events!=null&&r.events.length)for(let e=0;e<r.events.length;++e)Ox(r.events[e],t.uint32(90).fork()).ldelim();if(r.droppedEventsCount!=null&&t.uint32(96).uint32(r.droppedEventsCount),r.links!=null&&r.links.length)for(let e=0;e<r.links.length;++e)gx(r.links[e],t.uint32(106).fork()).ldelim();return r.droppedLinksCount!=null&&t.uint32(112).uint32(r.droppedLinksCount),r.status!=null&&Rx(r.status,t.uint32(122).fork()).ldelim(),t}function Rx(r,t){return r.message!=null&&t.uint32(18).string(r.message),r.code!=null&&t.uint32(24).int32(r.code),t}function Ox(r,t){if(r.timeUnixNano!=null&&t.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&t.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function gx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(40).uint32(r.droppedAttributesCount),t}var Bt=class{constructor(t={}){this.impl=new _s(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},_s=class extends ie{convert(t){return(0,nA.createExportTraceServiceRequest)(t)}toMessage(t){return{body:eA(t),contentType:"application/x-protobuf",headers:{accept:"application/x-protobuf"}}}getDefaultUrl(t){return Nn(t)}};d();function oA(r,t){return r.replace(/\{(?<temp1>[^{}]+)\}/g,(e,n)=>{let o=t[n];return o!==void 0?String(o):e})}var ue=class{constructor(t={}){this.instrumentationName="@vercel/otel/fetch";this.instrumentationVersion="1.0.0";this.config=t}getConfig(){return this.config}setConfig(){}setTracerProvider(t){this.tracerProvider=t}setMeterProvider(){}shouldIgnore(t,e){let n=this.config.ignoreUrls??[];if(e?.opentelemetry?.ignore!==void 0)return e.opentelemetry.ignore;if(n.length===0)return!1;let o=t.toString();return n.some(s=>typeof s=="string"?s==="*"?!0:o.startsWith(s):s.test(o))}shouldPropagate(t,e){let n=process.env.VERCEL_URL||null,o=process.env.VERCEL_BRANCH_URL||null,s=this.config.propagateContextUrls??[],i=this.config.dontPropagateContextUrls??[];if(e?.opentelemetry?.propagateContext)return e.opentelemetry.propagateContext;let a=t.toString();return i.length>0&&i.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))?!1:n&&t.protocol==="https:"&&(t.host===n||t.host===o||t.host===X()?.headers.host)||!n&&t.protocol==="http:"&&t.hostname==="localhost"?!0:s.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))}startSpan({tracer:t,url:e,fetchType:n,method:o="GET",name:s,attributes:i={}}){let a=this.config.resourceNameTemplate,_={[fp]:o,[hp]:e.toString(),[hn]:e.host,[Rp]:e.protocol.replace(":",""),[Np]:e.hostname,[gp]:e.port},u=a?oA(a,_):Px(e.toString()),E=s??`${n} ${o} ${e.toString()}`,p=c.context.active();return t.startSpan(E,{kind:c.SpanKind.CLIENT,attributes:{..._,"operation.name":`${n}.${o}`,"http.client.name":n,"resource.name":u,...i}},p)}instrumentHttp(t,e){let{tracerProvider:n}=this;if(!n)return;let o=n.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:s,attributesFromResponseHeaders:i}=this.config,a=t.request,u=(E=>(p,A,h)=>{let O,I={},x;if(typeof p=="string"||p instanceof URL?(O=new URL(p.toString()),typeof A=="function"?x=A:A&&typeof h=="function"?(I=A,x=h):A&&(I=A)):(I=p,typeof A=="function"&&(x=A),O=Lx(I,e)),this.shouldIgnore(O))return E.apply(this,[O,I,x]);let M=this.startSpan({tracer:o,url:O,fetchType:"http",method:I.method||"GET"});if(!M.isRecording()||!se(M.spanContext().traceFlags))return M.end(),E.apply(this,[O,I,x]);if(this.shouldPropagate(O)){let Z=c.context.active(),Ct=c.trace.setSpan(Z,M);c.propagation.inject(Ct,I.headers||{},Mx)}s&&In(M,s,I.headers||{},iA);try{let Z=Date.now(),Ct=E.apply(this,[O,I,x]);return Ct.prependListener("response",w=>{let lA=Date.now()-Z;M.setAttribute("http.response_time",lA),w.statusCode!==void 0?(M.setAttribute(Go,w.statusCode),w.statusCode>=500&&wt(M,`Status: ${w.statusCode}`)):wt(M,"Response status code is undefined"),i&&In(M,i,w.headers,iA),Ct.listenerCount("response")<=1&&w.resume(),w.on("end",()=>{let Ke,yn=w.statusCode;w.aborted&&!w.complete?Ke={code:c.SpanStatusCode.ERROR}:yn&&yn>=100&&yn<500?Ke={code:c.SpanStatusCode.UNSET}:Ke={code:c.SpanStatusCode.ERROR},M.setStatus(Ke),M.isRecording()&&(w.headers["content-length"]&&M.setAttribute(Ho,w.headers["content-length"]),M.end())})}),Ct.on("error",w=>{M.isRecording()&&(wt(M,w),M.end())}),Ct.on("close",()=>{M.isRecording()&&M.end()}),Ct}catch(Z){throw wt(M,Z),M.end(),Z}})(a);t.request=u,t.get=(...E)=>{let p=u(...E);return p.end(),p}}instrumentFetch(){let{tracerProvider:t}=this;if(!t)return;let e=t.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:n,attributesFromResponseHeaders:o}=this.config;process.env.NEXT_OTEL_FETCH_DISABLED="1";let s=globalThis.fetch;this.originalFetch=s;let i=async(a,_)=>{let u=_;if(u?.next?.internal)return s(a,u);let E=new Request(a instanceof Request?a.clone():a,u),p=new URL(E.url);if(this.shouldIgnore(p,u))return s(a,u);let A=this.startSpan({tracer:e,url:p,fetchType:"fetch",method:E.method,name:u?.opentelemetry?.spanName,attributes:u?.opentelemetry?.attributes});if(!A.isRecording()||!se(A.spanContext().traceFlags))return A.end(),s(a,u);if(this.shouldPropagate(p,u)){let h=c.context.active(),O=c.trace.setSpan(h,A);c.propagation.inject(O,E.headers,Nx)}n&&In(A,n,E.headers,sA);try{let h=Date.now();u?.body&&u.body instanceof FormData&&E.headers.delete("content-type");let O=await s(a,{...u,headers:E.headers}),I=Date.now()-h;return A.setAttribute(Go,O.status),A.setAttribute("http.response_time",I),o&&In(A,o,O.headers,sA),O.status>=500&&wt(A,`Status: ${O.status} (${O.statusText})`),O.body?Cx(O).then(x=>{A.isRecording()&&(A.setAttribute(Ho,x),A.end())},x=>{A.isRecording()&&(wt(A,x),A.end())}):A.end(),O}catch(h){throw wt(A,h),A.end(),h}};globalThis.fetch=i}enable(){this.disable(),this.instrumentFetch();try{let t=Ss("node:http"),e=Ss("node:https");this.instrumentHttp(t,"http:"),this.instrumentHttp(e,"https:")}catch{}}disable(){this.originalFetch&&(globalThis.fetch=this.originalFetch)}},Nx={set(r,t,e){r.set(t,e)}},sA={get(r,t){let e=r.get(t);if(e!==null)return e.includes(",")?e.split(",").map(n=>n.trimStart()):e},keys(r){let t=[];return r.forEach((e,n)=>{t.push(n)}),t}},Mx={set(r,t,e){r[t.toLowerCase()]=e}},iA={get(r,t){return r[t.toLowerCase()]},keys(r){return Object.keys(r)}};function Px(r){let t=r.indexOf("?");return t===-1?r:r.substring(0,t)}function Cx(r){let t=0,n=r.clone().body?.getReader();if(!n)return Promise.resolve(0);let o=()=>n.read().then(({done:s,value:i})=>{if(!s)return t+=i.byteLength,o()});return o().then(()=>t)}function wt(r,t){if(t instanceof Error)r.recordException(t),r.setStatus({code:c.SpanStatusCode.ERROR,message:t.message});else{let e=String(t);r.setStatus({code:c.SpanStatusCode.ERROR,message:e})}}function In(r,t,e,n){for(let[o,s]of Object.entries(t)){let i=n.get(e,s);i!==void 0&&r.setAttribute(o,i)}}function Lx(r,t){if(r.socketPath)throw new Error("Cannot construct a network URL: options.socketPath is specified, indicating a Unix domain socket.");let e=r.protocol??t;e&&!e.endsWith(":")&&(e+=":");let n=r.hostname,o=r.port??r.defaultPort;if(!n&&r.host){let u=r.host.split(":");n=u[0];let E=u[1];if(u.length>1&&E&&o===void 0){let p=parseInt(E,10);isNaN(p)||(o=p)}}n||(n="localhost");let s;if(o!==void 0&&o!==""){let u=parseInt(String(o),10);isNaN(u)?s=e==="https:"?443:80:s=u}else s=e==="https:"?443:80;let i=r.path||"/",a=`${e}//${n}:${s}`,_=new URL(i,a);if(r.auth){let u=r.auth.split(":");_.username=decodeURIComponent(u[0]||""),u.length>1&&(_.password=decodeURIComponent(u[1]||""))}return _}d();var aA=R(P(),1),Ix="00",us="traceparent",Es="tracestate",He=class{fields(){return[us,Es]}inject(t,e,n){let o=c.trace.getSpanContext(t);if(!o||(0,aA.isTracingSuppressed)(t)||!(0,c.isSpanContextValid)(o))return;let s=`${Ix}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||0).toString(16)}`;n.set(e,us,s),o.traceState&&n.set(e,Es,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,us);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=xx(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,Es);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=(0,c.createTraceState)(typeof _=="string"?_:void 0)}return c.trace.setSpanContext(t,i)}};function xx(r){let[t,e,n,o,s]=r.split("-");return!t||!e||!n||!o||t.length!==2||e.length!==32||n.length!==16||o.length!==2||t==="00"&&s?null:{traceId:e,spanId:n,traceFlags:parseInt(o,16)}}d();var cA=R(P(),1),Dx="baggage",Ux=",",bx=";",yx="=",Vx=180,vx=4096,Bx=8192,Fe=class extends cA.W3CBaggagePropagator{extract(t,e,n){let o=n.get(e,Dx);if(!o)return t;let s={},i={count:0,totalSize:0},a=Array.isArray(o)?o:[o];for(let _ of a)wx(_,s,i);return i.count===0?t:c.propagation.setBaggage(t,c.propagation.createBaggage(s))}};function wx(r,t,e){let n=0;for(;n<r.length&&e.count<Vx;){let o=r.indexOf(Ux,n),s=o===-1?r.length:o,i=s-n;if(i<=vx){let a=Gx(r.substring(n,s));if(a){let _=(e.count===0?0:1)+i;if(e.totalSize+_>Bx)return;t[a.key]=a.metadata?{value:a.value,metadata:a.metadata}:{value:a.value},e.count++,e.totalSize+=_}}if(o===-1)return;n=o+1}}function Gx(r){if(!r)return;let t=r.indexOf(bx),e=t===-1?r:r.substring(0,t),n=e.indexOf(yx);if(n<=0)return;let o=e.substring(0,n).trim(),s=e.substring(n+1).trim();if(!o||!s)return;let i,a;try{i=decodeURIComponent(o),a=decodeURIComponent(s)}catch{return}let _;return t!==-1&&t<r.length-1&&(_=(0,c.baggageEntryMetadataFromString)(r.substring(t+1))),{key:i,value:a,metadata:_}}d();var xn=class{fields(){return[]}inject(){}extract(t){let e=X();if(!e?.telemetry)return c.diag.warn("@vercel/otel: Vercel telemetry extension not found."),t;let{rootSpanContext:n}=e.telemetry;return n?(c.diag.debug("@vercel/otel: Extracted root SpanContext from Vercel request context.",n),c.trace.setSpanContext(t,{...n,isRemote:!0,traceFlags:n.traceFlags||c.TraceFlags.SAMPLED})):t}};d();var Dn=R(P(),1),_A=R($o(),1);var Un=class{export(t,e){let n=X();if(!n?.telemetry){c.diag.warn("@vercel/otel: no telemetry context found"),e({code:Dn.ExportResultCode.SUCCESS,error:void 0});return}try{let o=_A.JsonTraceSerializer.serializeRequest(t);if(!o)throw new Error("Failed to serialize spans");let s=JSON.parse(new TextDecoder().decode(o));n.telemetry.reportSpans(s),e({code:Dn.ExportResultCode.SUCCESS,error:void 0})}catch(o){e({code:Dn.ExportResultCode.FAILED,error:o instanceof Error?o:new Error(String(o))})}}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};d();function Ts(){return!!X()?.telemetry?.traceDrains?.length}var uA=!1,Ye=class{constructor(t){this.processor=t}forceFlush(){return this.processor.forceFlush()}shutdown(){return this.processor.shutdown()}onStart(t,e){if(Ts()){uA||(uA=!0,c.diag.debug("@vercel/otel: skipping automatic exporter due to configured trace drains"));return}this.processor.onStart(t,e)}onEnd(t){Ts()||this.processor.onEnd(t)}};var Hx={ALL:c.DiagLogLevel.ALL,VERBOSE:c.DiagLogLevel.VERBOSE,DEBUG:c.DiagLogLevel.DEBUG,INFO:c.DiagLogLevel.INFO,WARN:c.DiagLogLevel.WARN,ERROR:c.DiagLogLevel.ERROR,NONE:c.DiagLogLevel.NONE},bn=class{constructor(t={}){this.configuration=t}start(){let t=Fx(),e=this.configuration,n=process.env.NEXT_RUNTIME||"nodejs",o=!!t.OTEL_SDK_DISABLED;if(process.env.OTEL_LOG_LEVEL&&c.diag.setLogger(new c.DiagConsoleLogger,{logLevel:Hx[process.env.OTEL_LOG_LEVEL.toUpperCase()]}),o)return;let s=e.idGenerator??new Rt;this.contextManager=zx(e.contextManager);let i=t.OTEL_SERVICE_NAME||e.serviceName||"app",a=he(Bp({attributes:e.attributes,runtime:n,serviceName:i})),_=e.resourceDetectors??[Mr];if(e.autoDetectResources??!0){let M=io({detectors:_});a=a.merge(M)}let E=kx(e.propagators,e,t),p=Kx(e.traceSampler,t),A=jx(e.spanProcessors,e,t);A.length===0&&c.diag.warn("@vercel/otel: No span processors configured. No spans will be exported.");let h=e.spanLimits,O=new Oe({resource:a,idGenerator:s,sampler:p,spanLimits:h,spanProcessors:[new Rn(A,e.attributesFromHeaders,e.flushTimeoutMillis)]});if(c.trace.setGlobalTracerProvider(O),c.propagation.setGlobalPropagator(new ke.CompositePropagator({propagators:E})),this.tracerProvider=O,e.logRecordProcessors){let x=new ge({resource:a,processors:e.logRecordProcessors});this.loggerProvider=x,q.logs.setGlobalLoggerProvider(x)}if(e.metricReaders||e.views){let x=new be({resource:a,views:e.views??[],readers:e.metricReaders??[]});c.metrics.setGlobalMeterProvider(x),this.meterProvider=x}let I=Yx(e.instrumentations,e.instrumentationConfig);this.disableInstrumentations=Eo({instrumentations:I}),c.diag.info("@vercel/otel: started",i,n)}async shutdown(){let t=[];this.tracerProvider&&t.push(this.tracerProvider.shutdown()),this.loggerProvider&&t.push(this.loggerProvider.shutdown()),this.meterProvider&&t.push(this.meterProvider.shutdown()),c.diag.info("@vercel/otel: shutting down",t.length,process.env.NEXT_RUNTIME),await Promise.all(t),this.contextManager&&this.contextManager.disable();let{disableInstrumentations:e}=this;e&&e()}};function Fx(){return{OTEL_SDK_DISABLED:G("OTEL_SDK_DISABLED"),OTEL_SERVICE_NAME:G("OTEL_SERVICE_NAME"),OTEL_PROPAGATORS:Zp("OTEL_PROPAGATORS"),OTEL_TRACES_SAMPLER:G("OTEL_TRACES_SAMPLER"),OTEL_TRACES_SAMPLER_ARG:G("OTEL_TRACES_SAMPLER_ARG"),OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:G("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"),OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:G("OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"),OTEL_EXPORTER_OTLP_PROTOCOL:G("OTEL_EXPORTER_OTLP_PROTOCOL"),OTEL_EXPORTER_OTLP_ENDPOINT:G("OTEL_EXPORTER_OTLP_ENDPOINT"),OTEL_EXPORTER_OTLP_HEADERS:G("OTEL_EXPORTER_OTLP_HEADERS"),OTEL_EXPORTER_OTLP_TRACES_HEADERS:G("OTEL_EXPORTER_OTLP_TRACES_HEADERS")}}function Yx(r,t){return(r??["auto"]).map(e=>e==="auto"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),[new ue(t?.fetch)]):e==="fetch"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),new ue(t?.fetch)):e).flat()}function kx(r,t,e){let n=process.env.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS.length>0?e.OTEL_PROPAGATORS:void 0;return(r??n??["auto"]).map(o=>{if(o==="none")return[];if(o==="auto"){let s=[];return s.push({name:"tracecontext",propagator:new He}),s.push({name:"baggage",propagator:new Fe}),s.push({name:"vercel-runtime",propagator:new xn}),c.diag.debug(`@vercel/otel: Configure propagators: ${s.map(i=>i.name).join(", ")}`),s.map(i=>i.propagator)}if(o==="tracecontext")return c.diag.debug("@vercel/otel: Configure propagator: tracecontext"),new He;if(o==="baggage")return c.diag.debug("@vercel/otel: Configure propagator: baggage"),new Fe;if(typeof o=="string")throw new Error(`Unknown propagator: "${o}"`);return o}).flat()}var EA="always_on",Ee=1;function Kx(r,t){if(r&&typeof r!="string")return r;let e=r&&r!=="auto"?r:t.OTEL_TRACES_SAMPLER||EA;switch(c.diag.debug("@vercel/otel: Configure sampler: ",e),e){case"always_on":return new B;case"always_off":return new K;case"parentbased_always_on":return new j({root:new B});case"parentbased_always_off":return new j({root:new K});case"traceidratio":return new At(TA(t));case"parentbased_traceidratio":return new j({root:new At(TA(t))});default:return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER value "${String(t.OTEL_TRACES_SAMPLER)} invalid, defaulting to ${EA}".`),new B}}function TA(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Ee}.`),Ee;c.diag.debug("@vercel/otel: Configure sampler probability: ",r.OTEL_TRACES_SAMPLER_ARG);let t=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Ee}.`),Ee):t<0||t>1?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Ee}.`),Ee):t}function jx(r,t,e){return[...(r??["auto"]).flatMap(n=>{if(n==="auto"){let o=[new dt(new Un)];if(process.env.VERCEL_OTEL_ENDPOINTS){let s=process.env.VERCEL_OTEL_ENDPOINTS_PORT||"4318",i=process.env.VERCEL_OTEL_ENDPOINTS_PROTOCOL||"http/protobuf";c.diag.debug("@vercel/otel: Configure vercel otel collector on port: ",s,i);let a={url:`http://localhost:${s}/v1/traces`,headers:{}},_=i==="http/protobuf"?new Bt(a):new ae(a);o.push(new Ye(new dt(_)))}else(!t.traceExporter||t.traceExporter==="auto"||e.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||e.OTEL_EXPORTER_OTLP_ENDPOINT)&&o.push(new Ye(new dt(Wx(e))));return o}return n}).filter(Xx),...t.traceExporter&&t.traceExporter!=="auto"?[new dt(t.traceExporter)]:[]]}function Wx(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL??r.OTEL_EXPORTER_OTLP_PROTOCOL??"http/protobuf",e=$x(r),n={...r.OTEL_EXPORTER_OTLP_HEADERS?(0,ke.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_HEADERS):{},...r.OTEL_EXPORTER_OTLP_TRACES_HEADERS?(0,ke.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_TRACES_HEADERS):{}};switch(c.diag.debug("@vercel/otel: Configure trace exporter: ",t,e,`headers: ${Object.keys(n).join(",")||"<none>"}`),t){case"http/json":return new ae({url:e,headers:n});case"http/protobuf":return new Bt({url:e,headers:n});default:return c.diag.warn(`@vercel/otel: Unsupported OTLP traces protocol: ${t}. Using http/protobuf.`),new Bt}}var pA="v1/traces",qx=`http://localhost:4318/${pA}`;function $x(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT;if(t&&typeof t=="string")return t;let e=r.OTEL_EXPORTER_OTLP_ENDPOINT;return e&&typeof e=="string"?`${e}/${pA}`:qx}function Xx(r){return r!=null}function zx(r){if(r===void 0){c.diag.debug("@vercel/otel: Configure context manager: default");let t=new SA.AsyncLocalStorageContextManager;return t.enable(),c.context.setGlobalContextManager(t),t}return c.diag.debug("@vercel/otel: Configure context manager: from configuration"),r.enable(),c.context.setGlobalContextManager(r),r}function ZB(r){let t;r?typeof r=="string"?t={serviceName:r}:t=r:t={},new bn(t).start()}export{ue as FetchInstrumentation,ae as OTLPHttpJsonTraceExporter,Bt as OTLPHttpProtoTraceExporter,ZB as registerOTel};
15
+ `,Lo(s,t),`To resolve the conflict:
16
+ `,Io(s,t))}return n}};var on=class{_backingStorages;constructor(t){this._backingStorages=t}record(t,e,n,o){this._backingStorages.forEach(s=>{s.record(t,e,n,o)})}};d();d();var sn=class{_buffer=new Y;_instrumentName;_valueType;constructor(t,e){this._instrumentName=t,this._valueType=e}observe(t,e={}){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${t}`);return}this._valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._buffer.set(e,t)}},an=class{_buffer=new Map;observe(t,e,n={}){if(!Ue(t))return;let o=this._buffer.get(t);if(o==null&&(o=new Y,this._buffer.set(t,o)),typeof e!="number"){c.diag.warn(`non-number value provided to metric ${t._descriptor.name}: ${e}`);return}t._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(e)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${t._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||o.set(n,e)}};var cn=class{_callbacks=[];_batchCallbacks=[];addCallback(t,e){this._findCallback(t,e)>=0||this._callbacks.push({callback:t,instrument:e})}removeCallback(t,e){let n=this._findCallback(t,e);n<0||this._callbacks.splice(n,1)}addBatchCallback(t,e){let n=new Set(e.filter(Ue));if(n.size===0){c.diag.error("BatchObservableCallback is not associated with valid instruments",e);return}this._findBatchCallback(t,n)>=0||this._batchCallbacks.push({callback:t,instruments:n})}removeBatchCallback(t,e){let n=new Set(e.filter(Ue)),o=this._findBatchCallback(t,n);o<0||this._batchCallbacks.splice(o,1)}async observe(t,e){let n=this._observeCallbacks(t,e),o=this._observeBatchCallbacks(t,e);return(await zS([...n,...o])).filter(QS).map(a=>a.reason)}_observeCallbacks(t,e){return this._callbacks.map(async({callback:n,instrument:o})=>{let s=new sn(o._descriptor.name,o._descriptor.valueType),i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o._metricStorages.forEach(a=>{a.record(s._buffer,t)})})}_observeBatchCallbacks(t,e){return this._batchCallbacks.map(async({callback:n,instruments:o})=>{let s=new an,i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o.forEach(a=>{let _=s._buffer.get(a);_!=null&&a._metricStorages.forEach(E=>{E.record(_,t)})})})}_findCallback(t,e){return this._callbacks.findIndex(n=>n.callback===t&&n.instrument===e)}_findBatchCallback(t,e){return this._batchCallbacks.findIndex(n=>n.callback===t&&JS(n.instruments,e))}};var _n=class extends Zt{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(t,e,n,o,s){super(t),this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new te(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new ee(e,o),this._attributesProcessor=n}record(t,e,n,o){e=this._attributesProcessor.process(e,n),this._deltaMetricStorage.record(t,e,n,o)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};var xo=class{process(t,e){return t}},Do=class{_processors;constructor(t){this._processors=t}process(t,e){let n=t;for(let o of this._processors)n=o.process(n,e);return n}};function En(){return OI}function Ep(r){return new Do(r)}var OI=new xo;var un=class{metricStorageRegistry=new nn;observableRegistry=new cn;meter;_meterProviderSharedState;_instrumentationScope;constructor(t,e){this.meter=new en(this),this._meterProviderSharedState=t,this._instrumentationScope=e}registerMetricStorage(t){let e=this._registerMetricStorage(t,_n);return e.length===1?e[0]:new on(e)}registerAsyncMetricStorage(t){return this._registerMetricStorage(t,rn)}async collect(t,e,n){let o=await this.observableRegistry.observe(e,n?.timeoutMillis),s=this.metricStorageRegistry.getStorages(t);if(s.length===0)return null;let i=[];return s.forEach(a=>{let _=a.collect(t,e);_!=null&&i.push(_)}),i.length===0?{errors:o}:{scopeMetrics:{scope:this._instrumentationScope,metrics:i},errors:o}}_registerMetricStorage(t,e){let o=this._meterProviderSharedState.viewRegistry.findViews(t,this._instrumentationScope).map(s=>{let i=ap(s,t),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(i);if(a!=null)return a;let _=s.aggregation.createAggregator(i),E=new e(i,_,s.attributesProcessor,this._meterProviderSharedState.metricCollectors,s.aggregationCardinalityLimit);return this.metricStorageRegistry.register(E),E});if(o.length===0){let i=this._meterProviderSharedState.selectAggregations(t.type).map(([a,_])=>{let E=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,t);if(E!=null)return E;let u=_.createAggregator(t),S=a.selectCardinalityLimit(t.type),A=new e(t,u,En(),[a],S);return this.metricStorageRegistry.registerForCollector(a,A),A});o=o.concat(i)}return o}};var Tn=class{viewRegistry=new qr;metricCollectors=[];meterSharedStates=new Map;resource;constructor(t){this.resource=t}getMeterSharedState(t){let e=XS(t),n=this.meterSharedStates.get(e);return n==null&&(n=new un(this,t),this.meterSharedStates.set(e,n)),n}selectAggregations(t){let e=[];for(let n of this.metricCollectors)e.push([n,Wr(n.selectAggregation(t))]);return e}};var up=R(P()),Sn=class{_sharedState;_metricReader;constructor(t,e){this._sharedState=t,this._metricReader=e}async collect(t){let e=(0,up.millisToHrTime)(Date.now()),n=[],o=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(async i=>{let a=await i.collect(this,e,t);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&o.push(...a.errors)});return await Promise.all(s),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:o}}async forceFlush(t){await this._metricReader.forceFlush(t)}async shutdown(t){await this._metricReader.shutdown(t)}selectAggregationTemporality(t){return this._metricReader.selectAggregationTemporality(t)}selectAggregation(t){return this._metricReader.selectAggregation(t)}selectCardinalityLimit(t){return this._metricReader.selectCardinalityLimit?.(t)??2e3}};var gI=/[\^$\\.+?()[\]{}|]/g,re=class r{_matchAll;_regexp;constructor(t){t==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(t)))}match(t){return this._matchAll?!0:this._regexp.test(t)}static escapePattern(t){return`^${t.replace(gI,"\\$&").replace("*",".*")}$`}static hasWildcard(t){return t.includes("*")}},Ot=class{_matchAll;_pattern;constructor(t){this._matchAll=t===void 0,this._pattern=t}match(t){return!!(this._matchAll||t===this._pattern)}};var pn=class{_nameFilter;_type;_unitFilter;constructor(t){this._nameFilter=new re(t?.name??"*"),this._type=t?.type,this._unitFilter=new Ot(t?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};var ln=class{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(t){this._nameFilter=new Ot(t?.name),this._versionFilter=new Ot(t?.version),this._schemaUrlFilter=new Ot(t?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};function NI(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}function MI(r){if(NI(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||re.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}var An=class{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(t){MI(t),t.attributesProcessors!=null?this.attributesProcessor=Ep(t.attributesProcessors):this.attributesProcessor=En(),this.name=t.name,this.description=t.description,this.aggregation=Wr(t.aggregation??{type:Et.DEFAULT}),this.instrumentSelector=new pn({name:t.instrumentName,type:t.instrumentType,unit:t.instrumentUnit}),this.meterSelector=new ln({name:t.meterName,version:t.meterVersion,schemaUrl:t.meterSchemaUrl}),this.aggregationCardinalityLimit=t.aggregationCardinalityLimit}};var be=class{_sharedState;_shutdown=!1;constructor(t){if(this._sharedState=new Tn(t?.resource??xt()),t?.views!=null&&t.views.length>0)for(let e of t.views)this._sharedState.viewRegistry.addView(new An(e));if(t?.readers!=null&&t.readers.length>0)for(let e of t.readers){let n=new Sn(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)}}getMeter(t,e="",n={}){return this._shutdown?(c.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,c.createNoopMeter)()):this._sharedState.getMeterSharedState({name:t,version:e,schemaUrl:n.schemaUrl}).meter}async shutdown(t){if(this._shutdown){c.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(e=>e.shutdown(t)))}async forceFlush(t){if(this._shutdown){c.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(e=>e.forceFlush(t)))}};var uA=R(lp(),1),ke=R(P(),1);d();var vI=Symbol.for("@vercel/request-context");function X(){return globalThis[vI]?.get()}var Ap="http.method",dp="http.url",hn="http.host",mp="http.scheme",Bo="http.status_code",fp="http.user_agent",wo="http.response_content_length_uncompressed",hp="net.peer.port",Rp="net.peer.name",Op="cloud.region";var gp="deployment.environment.name",Np="deployment.id",Mp="cloud.provider",Pp="process.runtime.name",Cp="vcs.ref.head.name",Lp="vcs.ref.head.revision",Ip="vcs.repository.name",xp="vcs.repository.ref.revision";var Dp="service.name",Up="service.version";function Go(r){return Object.fromEntries(Object.entries(r).filter(([t,e])=>e!==void 0))}function yp({attributes:r,env:t=process.env,runtime:e,serviceName:n}){let o=t.VERCEL_ENV,s=t.VERCEL_DEPLOYMENT_ID,i=t.VERCEL_GIT_COMMIT_SHA,a=t.VERCEL_REGION,_=t.VERCEL_GIT_COMMIT_REF,E=t.VERCEL_GIT_REPO_SLUG;return Go({[Dp]:n,"node.ci":t.CI?!0:void 0,"node.env":t.NODE_ENV,[gp]:o,env:o,[Mp]:"vercel",[Op]:a,"vercel.region":a,[Pp]:e,"vercel.runtime":e,[Cp]:_,[Lp]:i,[Ip]:E,[xp]:i,"vercel.sha":i,"vercel.host":t.VERCEL_URL||void 0,"vercel.branch_host":t.VERCEL_BRANCH_URL||void 0,[Np]:s,"vercel.deployment_id":s,[Up]:s,"vercel.project_id":t.VERCEL_PROJECT_ID||void 0,...r})}function Vp(r){return r?r.split("::").at(-1):void 0}function vp(r=X(),t){if(!r)return;let e=t?wI(t,r.headers):void 0;return Go({[hn]:r.headers.host,[fp]:r.headers["user-agent"],"http.referer":r.headers.referer,"vercel.request_id":Vp(r.headers["x-vercel-id"]),"vercel.matched_path":r.headers["x-matched-path"],"vercel.edge_region":process.env.VERCEL_REGION,...e})}var BI={keys(r){return[]},get(r,t){return r[t.toLocaleLowerCase()]}};function wI(r,t){if(typeof r=="function")return r(t,BI);let e={};for(let[n,o]of Object.entries(r)){let s=t[o.toLocaleLowerCase()];s!==void 0&&(e[n]=s)}return e}d();function se(r){return(r&c.TraceFlags.SAMPLED)!==0}d();var GI=2**31-1;function Ve(r,t){if(r===void 0)return;let e=typeof r=="string"?Number(r):r;if(Number.isFinite(e)&&e>0)return Math.min(e,GI);c.diag.warn(`@vercel/otel: ignoring invalid ${t}: ${String(r)}`)}var HI=1e4,Rn=class{constructor(t,e,n){this.processors=t;this.attributesFromHeaders=e;this.rootSpanIds=new Map;this.waitSpanEnd=new Map;this.flushTimeoutMillis=Ve(n,"flushTimeoutMillis")??HI}forceFlush(){return Promise.all(this.processors.map(t=>t.forceFlush().catch(e=>{c.diag.error("@vercel/otel: forceFlush failed:",e)}))).then(()=>{})}forceFlushWithTimeout(t){let e;return Promise.race([this.forceFlush(),new Promise(n=>{e=setTimeout(()=>{c.diag.warn(`@vercel/otel: forceFlush did not complete within ${t}ms, giving up`),n()},t)})]).finally(()=>{clearTimeout(e)})}shutdown(){return Promise.all(this.processors.map(t=>t.shutdown().catch(()=>{}))).then(()=>{})}onStart(t,e){let{traceId:n,spanId:o,traceFlags:s}=t.spanContext(),i=!t.parentSpanContext?.spanId||!this.rootSpanIds.has(n);if(i?this.rootSpanIds.set(n,{rootSpanId:o,open:[]}):this.rootSpanIds.get(n)?.open.push(t),i&&se(s)){let a=X(),_=vp(a,this.attributesFromHeaders);_&&t.setAttributes(_),a&&a.waitUntil(async()=>{if(this.rootSpanIds.has(n)){let E=new Promise(S=>{this.waitSpanEnd.set(n,S)}),u;await Promise.race([E,new Promise(S=>{u=setTimeout(()=>{this.waitSpanEnd.delete(n),S(void 0)},50)})]),u&&clearTimeout(u)}return this.forceFlushWithTimeout(this.flushTimeoutMillis)})}for(let a of this.processors)a.onStart(t,e)}onEnding(t){for(let e of this.processors)e.onEnding?.(t)}onEnd(t){let{traceId:e,spanId:n,traceFlags:o}=t.spanContext(),s=se(o),i=this.rootSpanIds.get(e),a=i?.rootSpanId===n;if(s){let _=YI(t);_&&Object.assign(t.attributes,_)}if(a){if(this.rootSpanIds.delete(e),i.open.length>0){for(let _ of i.open)if(!_.ended&&_.spanContext().spanId!==n)try{_.end()}catch(E){c.diag.error("@vercel/otel: onEnd failed:",E)}}}else if(i)for(let _=0;_<i.open.length;_++)i.open[_]?.spanContext().spanId===n&&i.open.splice(_,1);for(let _ of this.processors)_.onEnd(t);if(a){let _=this.waitSpanEnd.get(e);_&&(this.waitSpanEnd.delete(e),_())}}},FI={[c.SpanKind.INTERNAL]:"internal",[c.SpanKind.SERVER]:"server",[c.SpanKind.CLIENT]:"client",[c.SpanKind.PRODUCER]:"producer",[c.SpanKind.CONSUMER]:"consumer"};function YI(r){let{kind:t,attributes:e}=r,{"operation.name":n,"resource.name":o,"span.type":s,"next.span_type":i,"http.method":a,"http.route":_}=e;if(n)return;let E=o??(a&&typeof a=="string"&&_&&typeof _=="string"?`${a} ${_}`:_);if(r.kind===c.SpanKind.SERVER&&a&&_&&typeof a=="string"&&typeof _=="string")return{"operation.name":"web.request","resource.name":E};let u=r.instrumentationScope.name,S=i??s;if(S&&typeof S=="string"){let A=Bp(u,S);return _?{"operation.name":A,"resource.name":E}:{"operation.name":A}}return{"operation.name":Bp(u,t===c.SpanKind.INTERNAL?"":FI[t])}}function Bp(r,t){if(!r)return t;let e=r.replace(/[ @./]/g,"_");return e.startsWith("_")&&(e=e.slice(1)),t?`${e}.${t}`:e}var Zp=R(Wo(),1);d();function H(r){let t=process.env[r];if(!(!t||t.trim()===""))return t}function Qp(r){return H(r)?.split(",").map(t=>t.trim()).filter(t=>t!=="")}var nx=1e4,ie=class{constructor(t={}){this._shutdownOnce={isCalled:!1};this._sendingPromises=[];this.url=t.url||this.getDefaultUrl(t),this.timeoutMillis=Ve(t.timeoutMillis,"timeoutMillis")??Jp("OTEL_EXPORTER_OTLP_TRACES_TIMEOUT")??Jp("OTEL_EXPORTER_OTLP_TIMEOUT")??nx,t.headers&&(this._headers=t.headers),this.onInit()}onShutdown(){c.diag.debug("@vercel/otel/otlp: onShutdown")}onInit(){c.diag.debug("@vercel/otel/otlp: onInit")}export(t,e){this.send(t,()=>e({code:0}),n=>e({code:1,error:n}))}async forceFlush(){await Promise.all(this._sendingPromises)}async shutdown(){this._shutdownOnce.isCalled=!0,this.onShutdown(),await this.forceFlush()}send(t,e,n){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects"),n(new Error("Exporter has been shut down"));return}let o,s,i;try{({body:o,contentType:s,headers:i}=this.toMessage(this.convert(t)))}catch(u){c.diag.warn("@vercel/otel/otlp: failed to serialize spans",u),n(u instanceof Error?u:new Error(String(u)));return}let a=new AbortController,_=setTimeout(()=>{a.abort(new Error(`Export timed out after ${this.timeoutMillis}ms`))},this.timeoutMillis),E=fetch(this.url,{method:"POST",body:o,headers:{...this._headers,...i,"Content-Type":s,"User-Agent":"OTel-OTLP-Exporter-JavaScript/0.46.0"},signal:a.signal,next:{internal:!0}}).then(u=>{c.diag.debug("@vercel/otel/otlp: onSuccess",u.status,u.statusText),e(),u.arrayBuffer().catch(()=>{})}).catch(u=>{c.diag.error("@vercel/otel/otlp: onError",u),n(u)}).finally(()=>{clearTimeout(_);let u=this._sendingPromises.indexOf(E);this._sendingPromises.splice(u,1)});this._sendingPromises.push(E)}};function Jp(r){return Ve(H(r),r)}var ox="v1/traces",sx=`http://localhost:4318/${ox}`;function Nn(r){return typeof r.url=="string"?r.url:sx}var ae=class{constructor(t={}){this.impl=new qo(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},qo=class extends ie{convert(t){return t}toMessage(t){let e=Zp.JsonTraceSerializer.serializeRequest(t);return{body:new TextDecoder().decode(e),contentType:"application/json"}}getDefaultUrl(t){return Nn(t)}};var eA=R(jo(),1);var Jl=R(Ql(),1);function Zl(r){let t=new Jl.Writer;return Ax(r,t),t.finish()}function Ax(r,t){if(r.resourceSpans!=null&&r.resourceSpans.length)for(let e=0;e<r.resourceSpans.length;++e)dx(r.resourceSpans[e],t.uint32(10).fork()).ldelim();return t}function dx(r,t){if(r.resource!=null&&mx(r.resource,t.uint32(10).fork()).ldelim(),r.scopeSpans!=null&&r.scopeSpans.length)for(let e=0;e<r.scopeSpans.length;++e)fx(r.scopeSpans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function mx(r,t){if(r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(10).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(16).uint32(r.droppedAttributesCount),t}function fx(r,t){if(r.scope!=null&&Ox(r.scope,t.uint32(10).fork()).ldelim(),r.spans!=null&&r.spans.length)for(let e=0;e<r.spans.length;++e)gx(r.spans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function _e(r,t){return r.key!=null&&t.uint32(10).string(r.key),r.value!=null&&tA(r.value,t.uint32(18).fork()).ldelim(),t}function tA(r,t){return r.stringValue!=null&&t.uint32(10).string(r.stringValue),r.boolValue!=null&&t.uint32(16).bool(r.boolValue),r.intValue!=null&&t.uint32(24).int64(r.intValue),r.doubleValue!=null&&t.uint32(33).double(r.doubleValue),r.arrayValue!=null&&hx(r.arrayValue,t.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Rx(r.kvlistValue,t.uint32(50).fork()).ldelim(),r.bytesValue!=null&&t.uint32(58).bytes(r.bytesValue),t}function hx(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)tA(r.values[e],t.uint32(10).fork()).ldelim();return t}function Rx(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)_e(r.values[e],t.uint32(10).fork()).ldelim();return t}function Ox(r,t){if(r.name!=null&&t.uint32(10).string(r.name),r.version!=null&&t.uint32(18).string(r.version),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function gx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.parentSpanId!=null&&t.uint32(34).bytes(r.parentSpanId),r.name!=null&&t.uint32(42).string(r.name),r.kind!=null&&t.uint32(48).int32(r.kind),r.startTimeUnixNano!=null&&t.uint32(57).fixed64(r.startTimeUnixNano),r.endTimeUnixNano!=null&&t.uint32(65).fixed64(r.endTimeUnixNano),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(74).fork()).ldelim();if(r.droppedAttributesCount!=null&&t.uint32(80).uint32(r.droppedAttributesCount),r.events!=null&&r.events.length)for(let e=0;e<r.events.length;++e)Mx(r.events[e],t.uint32(90).fork()).ldelim();if(r.droppedEventsCount!=null&&t.uint32(96).uint32(r.droppedEventsCount),r.links!=null&&r.links.length)for(let e=0;e<r.links.length;++e)Px(r.links[e],t.uint32(106).fork()).ldelim();return r.droppedLinksCount!=null&&t.uint32(112).uint32(r.droppedLinksCount),r.status!=null&&Nx(r.status,t.uint32(122).fork()).ldelim(),t}function Nx(r,t){return r.message!=null&&t.uint32(18).string(r.message),r.code!=null&&t.uint32(24).int32(r.code),t}function Mx(r,t){if(r.timeUnixNano!=null&&t.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&t.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function Px(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)_e(r.attributes[e],t.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(40).uint32(r.droppedAttributesCount),t}var vt=class{constructor(t={}){this.impl=new as(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},as=class extends ie{convert(t){return(0,eA.createExportTraceServiceRequest)(t)}toMessage(t){return{body:Zl(t),contentType:"application/x-protobuf",headers:{accept:"application/x-protobuf"}}}getDefaultUrl(t){return Nn(t)}};d();function rA(r,t){return r.replace(/\{(?<temp1>[^{}]+)\}/g,(e,n)=>{let o=t[n];return o!==void 0?String(o):e})}var Ee=class{constructor(t={}){this.instrumentationName="@vercel/otel/fetch";this.instrumentationVersion="1.0.0";this.config=t}getConfig(){return this.config}setConfig(){}setTracerProvider(t){this.tracerProvider=t}setMeterProvider(){}shouldIgnore(t,e){let n=this.config.ignoreUrls??[];if(e?.opentelemetry?.ignore!==void 0)return e.opentelemetry.ignore;if(n.length===0)return!1;let o=t.toString();return n.some(s=>typeof s=="string"?s==="*"?!0:o.startsWith(s):s.test(o))}shouldPropagate(t,e){let n=process.env.VERCEL_URL||null,o=process.env.VERCEL_BRANCH_URL||null,s=this.config.propagateContextUrls??[],i=this.config.dontPropagateContextUrls??[];if(e?.opentelemetry?.propagateContext)return e.opentelemetry.propagateContext;let a=t.toString();return i.length>0&&i.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))?!1:n&&t.protocol==="https:"&&(t.host===n||t.host===o||t.host===X()?.headers.host)||!n&&t.protocol==="http:"&&t.hostname==="localhost"?!0:s.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))}startSpan({tracer:t,url:e,fetchType:n,method:o="GET",name:s,attributes:i={}}){let a=this.config.resourceNameTemplate,_={[Ap]:o,[dp]:e.toString(),[hn]:e.host,[mp]:e.protocol.replace(":",""),[Rp]:e.hostname,[hp]:e.port},E=a?rA(a,_):Ix(e.toString()),u=s??`${n} ${o} ${e.toString()}`,S=c.context.active();return t.startSpan(u,{kind:c.SpanKind.CLIENT,attributes:{..._,"operation.name":`${n}.${o}`,"http.client.name":n,"resource.name":E,...i}},S)}instrumentHttp(t,e){let{tracerProvider:n}=this;if(!n)return;let o=n.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:s,attributesFromResponseHeaders:i}=this.config,a=t.request,E=(u=>(S,A,h)=>{let O,I={},x;if(typeof S=="string"||S instanceof URL?(O=new URL(S.toString()),typeof A=="function"?x=A:A&&typeof h=="function"?(I=A,x=h):A&&(I=A)):(I=S,typeof A=="function"&&(x=A),O=Dx(I,e)),this.shouldIgnore(O))return u.apply(this,[O,I,x]);let M=this.startSpan({tracer:o,url:O,fetchType:"http",method:I.method||"GET"});if(!M.isRecording()||!se(M.spanContext().traceFlags))return M.end(),u.apply(this,[O,I,x]);if(this.shouldPropagate(O)){let Z=c.context.active(),Pt=c.trace.setSpan(Z,M);c.propagation.inject(Pt,I.headers||{},Lx)}s&&In(M,s,I.headers||{},oA);try{let Z=Date.now(),Pt=u.apply(this,[O,I,x]);return Pt.prependListener("response",w=>{let SA=Date.now()-Z;M.setAttribute("http.response_time",SA),w.statusCode!==void 0?(M.setAttribute(Bo,w.statusCode),w.statusCode>=500&&Bt(M,`Status: ${w.statusCode}`)):Bt(M,"Response status code is undefined"),i&&In(M,i,w.headers,oA),Pt.listenerCount("response")<=1&&w.resume(),w.on("end",()=>{let Ke,Vn=w.statusCode;w.aborted&&!w.complete?Ke={code:c.SpanStatusCode.ERROR}:Vn&&Vn>=100&&Vn<500?Ke={code:c.SpanStatusCode.UNSET}:Ke={code:c.SpanStatusCode.ERROR},M.setStatus(Ke),M.isRecording()&&(w.headers["content-length"]&&M.setAttribute(wo,w.headers["content-length"]),M.end())})}),Pt.on("error",w=>{M.isRecording()&&(Bt(M,w),M.end())}),Pt.on("close",()=>{M.isRecording()&&M.end()}),Pt}catch(Z){throw Bt(M,Z),M.end(),Z}})(a);t.request=E,t.get=(...u)=>{let S=E(...u);return S.end(),S}}instrumentFetch(){let{tracerProvider:t}=this;if(!t)return;let e=t.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:n,attributesFromResponseHeaders:o}=this.config;process.env.NEXT_OTEL_FETCH_DISABLED="1";let s=globalThis.fetch;this.originalFetch=s;let i=async(a,_)=>{let E=_;if(E?.next?.internal)return s(a,E);let u=new Request(a instanceof Request?a.clone():a,E),S=new URL(u.url);if(this.shouldIgnore(S,E))return s(a,E);let A=this.startSpan({tracer:e,url:S,fetchType:"fetch",method:u.method,name:E?.opentelemetry?.spanName,attributes:E?.opentelemetry?.attributes});if(!A.isRecording()||!se(A.spanContext().traceFlags))return A.end(),s(a,E);if(this.shouldPropagate(S,E)){let h=c.context.active(),O=c.trace.setSpan(h,A);c.propagation.inject(O,u.headers,Cx)}n&&In(A,n,u.headers,nA);try{let h=Date.now();E?.body&&E.body instanceof FormData&&u.headers.delete("content-type");let O=await s(a,{...E,headers:u.headers}),I=Date.now()-h;return A.setAttribute(Bo,O.status),A.setAttribute("http.response_time",I),o&&In(A,o,O.headers,nA),O.status>=500&&Bt(A,`Status: ${O.status} (${O.statusText})`),O.body?xx(O).then(x=>{A.isRecording()&&(A.setAttribute(wo,x),A.end())},x=>{A.isRecording()&&(Bt(A,x),A.end())}):A.end(),O}catch(h){throw Bt(A,h),A.end(),h}};globalThis.fetch=i}enable(){this.disable(),this.instrumentFetch();try{let t=Es("node:http"),e=Es("node:https");this.instrumentHttp(t,"http:"),this.instrumentHttp(e,"https:")}catch{}}disable(){this.originalFetch&&(globalThis.fetch=this.originalFetch)}},Cx={set(r,t,e){r.set(t,e)}},nA={get(r,t){let e=r.get(t);if(e!==null)return e.includes(",")?e.split(",").map(n=>n.trimStart()):e},keys(r){let t=[];return r.forEach((e,n)=>{t.push(n)}),t}},Lx={set(r,t,e){r[t.toLowerCase()]=e}},oA={get(r,t){return r[t.toLowerCase()]},keys(r){return Object.keys(r)}};function Ix(r){let t=r.indexOf("?");return t===-1?r:r.substring(0,t)}function xx(r){let t=0,n=r.clone().body?.getReader();if(!n)return Promise.resolve(0);let o=()=>n.read().then(({done:s,value:i})=>{if(!s)return t+=i.byteLength,o()});return o().then(()=>t)}function Bt(r,t){if(t instanceof Error)r.recordException(t),r.setStatus({code:c.SpanStatusCode.ERROR,message:t.message});else{let e=String(t);r.setStatus({code:c.SpanStatusCode.ERROR,message:e})}}function In(r,t,e,n){for(let[o,s]of Object.entries(t)){let i=n.get(e,s);i!==void 0&&r.setAttribute(o,i)}}function Dx(r,t){if(r.socketPath)throw new Error("Cannot construct a network URL: options.socketPath is specified, indicating a Unix domain socket.");let e=r.protocol??t;e&&!e.endsWith(":")&&(e+=":");let n=r.hostname,o=r.port??r.defaultPort;if(!n&&r.host){let E=r.host.split(":");n=E[0];let u=E[1];if(E.length>1&&u&&o===void 0){let S=parseInt(u,10);isNaN(S)||(o=S)}}n||(n="localhost");let s;if(o!==void 0&&o!==""){let E=parseInt(String(o),10);isNaN(E)?s=e==="https:"?443:80:s=E}else s=e==="https:"?443:80;let i=r.path||"/",a=`${e}//${n}:${s}`,_=new URL(i,a);if(r.auth){let E=r.auth.split(":");_.username=decodeURIComponent(E[0]||""),E.length>1&&(_.password=decodeURIComponent(E[1]||""))}return _}d();var sA=R(P(),1),Ux="00",cs="traceparent",_s="tracestate",He=class{fields(){return[cs,_s]}inject(t,e,n){let o=c.trace.getSpanContext(t);if(!o||(0,sA.isTracingSuppressed)(t)||!(0,c.isSpanContextValid)(o))return;let s=`${Ux}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||0).toString(16)}`;n.set(e,cs,s),o.traceState&&n.set(e,_s,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,cs);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=bx(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,_s);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=(0,c.createTraceState)(typeof _=="string"?_:void 0)}return c.trace.setSpanContext(t,i)}};function bx(r){let[t,e,n,o,s]=r.split("-");return!t||!e||!n||!o||t.length!==2||e.length!==32||n.length!==16||o.length!==2||t==="00"&&s?null:{traceId:e,spanId:n,traceFlags:parseInt(o,16)}}d();var iA=R(P(),1),yx="baggage",Vx=",",vx=";",Bx="=",wx=180,Gx=4096,Hx=8192,Fe=class extends iA.W3CBaggagePropagator{extract(t,e,n){let o=n.get(e,yx);if(!o)return t;let s={},i={count:0,totalSize:0},a=Array.isArray(o)?o:[o];for(let _ of a)Fx(_,s,i);return i.count===0?t:c.propagation.setBaggage(t,c.propagation.createBaggage(s))}};function Fx(r,t,e){let n=0;for(;n<r.length&&e.count<wx;){let o=r.indexOf(Vx,n),s=o===-1?r.length:o,i=s-n;if(i<=Gx){let a=Yx(r.substring(n,s));if(a){let _=(e.count===0?0:1)+i;if(e.totalSize+_>Hx)return;t[a.key]=a.metadata?{value:a.value,metadata:a.metadata}:{value:a.value},e.count++,e.totalSize+=_}}if(o===-1)return;n=o+1}}function Yx(r){if(!r)return;let t=r.indexOf(vx),e=t===-1?r:r.substring(0,t),n=e.indexOf(Bx);if(n<=0)return;let o=e.substring(0,n).trim(),s=e.substring(n+1).trim();if(!o||!s)return;let i,a;try{i=decodeURIComponent(o),a=decodeURIComponent(s)}catch{return}let _;return t!==-1&&t<r.length-1&&(_=(0,c.baggageEntryMetadataFromString)(r.substring(t+1))),{key:i,value:a,metadata:_}}d();var xn=class{fields(){return[]}inject(){}extract(t){let e=X();if(!e?.telemetry)return c.diag.warn("@vercel/otel: Vercel telemetry extension not found."),t;let{rootSpanContext:n}=e.telemetry;return n?(c.diag.debug("@vercel/otel: Extracted root SpanContext from Vercel request context.",n),c.trace.setSpanContext(t,{...n,isRemote:!0,traceFlags:n.traceFlags||c.TraceFlags.SAMPLED})):t}};d();var Dn=R(P(),1),aA=R(Wo(),1);var Un=class{export(t,e){let n=X();if(!n?.telemetry){c.diag.warn("@vercel/otel: no telemetry context found"),e({code:Dn.ExportResultCode.SUCCESS,error:void 0});return}try{let o=aA.JsonTraceSerializer.serializeRequest(t);if(!o)throw new Error("Failed to serialize spans");let s=JSON.parse(new TextDecoder().decode(o));n.telemetry.reportSpans(s),e({code:Dn.ExportResultCode.SUCCESS,error:void 0})}catch(o){e({code:Dn.ExportResultCode.FAILED,error:o instanceof Error?o:new Error(String(o))})}}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};d();function bn(){return!!X()?.telemetry?.traceDrains?.length}var cA=!1,Ye=class{constructor(t){this.processor=t}forceFlush(){return this.processor.forceFlush()}shutdown(){return this.processor.shutdown()}onStart(t,e){if(bn()){cA||(cA=!0,c.diag.debug("@vercel/otel: skipping automatic exporter due to configured trace drains"));return}this.processor.onStart(t,e)}onEnding(t){bn()||this.processor.onEnding?.(t)}onEnd(t){bn()||this.processor.onEnd(t)}};var kx={ALL:c.DiagLogLevel.ALL,VERBOSE:c.DiagLogLevel.VERBOSE,DEBUG:c.DiagLogLevel.DEBUG,INFO:c.DiagLogLevel.INFO,WARN:c.DiagLogLevel.WARN,ERROR:c.DiagLogLevel.ERROR,NONE:c.DiagLogLevel.NONE},yn=class{constructor(t={}){this.configuration=t}start(){let t=Kx(),e=this.configuration,n=process.env.NEXT_RUNTIME||"nodejs",o=!!t.OTEL_SDK_DISABLED;if(process.env.OTEL_LOG_LEVEL&&c.diag.setLogger(new c.DiagConsoleLogger,{logLevel:kx[process.env.OTEL_LOG_LEVEL.toUpperCase()]}),o)return;let s=e.idGenerator??new ht;this.contextManager=Zx(e.contextManager);let i=t.OTEL_SERVICE_NAME||e.serviceName||"app",a=he(yp({attributes:e.attributes,runtime:n,serviceName:i})),_=e.resourceDetectors??[Mr];if(e.autoDetectResources??!0){let M=oo({detectors:_});a=a.merge(M)}let u=Wx(e.propagators,e,t),S=qx(e.traceSampler,t),A=$x(e.spanProcessors,e,t);A.length===0&&c.diag.warn("@vercel/otel: No span processors configured. No spans will be exported.");let h=e.spanLimits,O=new Oe({resource:a,idGenerator:s,sampler:S,spanLimits:h,spanProcessors:[new Rn(A,e.attributesFromHeaders,e.flushTimeoutMillis)]});if(c.trace.setGlobalTracerProvider(O),c.propagation.setGlobalPropagator(new ke.CompositePropagator({propagators:u})),this.tracerProvider=O,e.logRecordProcessors){let x=new ge({resource:a,processors:e.logRecordProcessors});this.loggerProvider=x,D.logs.setGlobalLoggerProvider(x)}if(e.metricReaders||e.views){let x=new be({resource:a,views:e.views??[],readers:e.metricReaders??[]});c.metrics.setGlobalMeterProvider(x),this.meterProvider=x}let I=jx(e.instrumentations,e.instrumentationConfig);this.disableInstrumentations=_o({instrumentations:I}),c.diag.info("@vercel/otel: started",i,n)}async shutdown(){let t=[];this.tracerProvider&&t.push(this.tracerProvider.shutdown()),this.loggerProvider&&t.push(this.loggerProvider.shutdown()),this.meterProvider&&t.push(this.meterProvider.shutdown()),c.diag.info("@vercel/otel: shutting down",t.length,process.env.NEXT_RUNTIME),await Promise.all(t),this.contextManager&&this.contextManager.disable();let{disableInstrumentations:e}=this;e&&e()}};function Kx(){return{OTEL_SDK_DISABLED:H("OTEL_SDK_DISABLED"),OTEL_SERVICE_NAME:H("OTEL_SERVICE_NAME"),OTEL_PROPAGATORS:Qp("OTEL_PROPAGATORS"),OTEL_TRACES_SAMPLER:H("OTEL_TRACES_SAMPLER"),OTEL_TRACES_SAMPLER_ARG:H("OTEL_TRACES_SAMPLER_ARG"),OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:H("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"),OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:H("OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"),OTEL_EXPORTER_OTLP_PROTOCOL:H("OTEL_EXPORTER_OTLP_PROTOCOL"),OTEL_EXPORTER_OTLP_ENDPOINT:H("OTEL_EXPORTER_OTLP_ENDPOINT"),OTEL_EXPORTER_OTLP_HEADERS:H("OTEL_EXPORTER_OTLP_HEADERS"),OTEL_EXPORTER_OTLP_TRACES_HEADERS:H("OTEL_EXPORTER_OTLP_TRACES_HEADERS")}}function jx(r,t){return(r??["auto"]).map(e=>e==="auto"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),[new Ee(t?.fetch)]):e==="fetch"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),new Ee(t?.fetch)):e).flat()}function Wx(r,t,e){let n=process.env.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS.length>0?e.OTEL_PROPAGATORS:void 0;return(r??n??["auto"]).map(o=>{if(o==="none")return[];if(o==="auto"){let s=[];return s.push({name:"tracecontext",propagator:new He}),s.push({name:"baggage",propagator:new Fe}),s.push({name:"vercel-runtime",propagator:new xn}),c.diag.debug(`@vercel/otel: Configure propagators: ${s.map(i=>i.name).join(", ")}`),s.map(i=>i.propagator)}if(o==="tracecontext")return c.diag.debug("@vercel/otel: Configure propagator: tracecontext"),new He;if(o==="baggage")return c.diag.debug("@vercel/otel: Configure propagator: baggage"),new Fe;if(typeof o=="string")throw new Error(`Unknown propagator: "${o}"`);return o}).flat()}var _A="always_on",ue=1;function qx(r,t){if(r&&typeof r!="string")return r;let e=r&&r!=="auto"?r:t.OTEL_TRACES_SAMPLER||_A;switch(c.diag.debug("@vercel/otel: Configure sampler: ",e),e){case"always_on":return new B;case"always_off":return new j;case"parentbased_always_on":return new W({root:new B});case"parentbased_always_off":return new W({root:new j});case"traceidratio":return new At(EA(t));case"parentbased_traceidratio":return new W({root:new At(EA(t))});default:return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER value "${String(t.OTEL_TRACES_SAMPLER)} invalid, defaulting to ${_A}".`),new B}}function EA(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${ue}.`),ue;c.diag.debug("@vercel/otel: Configure sampler probability: ",r.OTEL_TRACES_SAMPLER_ARG);let t=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${ue}.`),ue):t<0||t>1?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${ue}.`),ue):t}function $x(r,t,e){return[...(r??["auto"]).flatMap(n=>{if(n==="auto"){let o=[new dt(new Un)];if(process.env.VERCEL_OTEL_ENDPOINTS){let s=process.env.VERCEL_OTEL_ENDPOINTS_PORT||"4318",i=process.env.VERCEL_OTEL_ENDPOINTS_PROTOCOL||"http/protobuf";c.diag.debug("@vercel/otel: Configure vercel otel collector on port: ",s,i);let a={url:`http://localhost:${s}/v1/traces`,headers:{}},_=i==="http/protobuf"?new vt(a):new ae(a);o.push(new Ye(new dt(_)))}else(!t.traceExporter||t.traceExporter==="auto"||e.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||e.OTEL_EXPORTER_OTLP_ENDPOINT)&&o.push(new Ye(new dt(Xx(e))));return o}return n}).filter(Jx),...t.traceExporter&&t.traceExporter!=="auto"?[new dt(t.traceExporter)]:[]]}function Xx(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL??r.OTEL_EXPORTER_OTLP_PROTOCOL??"http/protobuf",e=Qx(r),n={...r.OTEL_EXPORTER_OTLP_HEADERS?(0,ke.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_HEADERS):{},...r.OTEL_EXPORTER_OTLP_TRACES_HEADERS?(0,ke.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_TRACES_HEADERS):{}};switch(c.diag.debug("@vercel/otel: Configure trace exporter: ",t,e,`headers: ${Object.keys(n).join(",")||"<none>"}`),t){case"http/json":return new ae({url:e,headers:n});case"http/protobuf":return new vt({url:e,headers:n});default:return c.diag.warn(`@vercel/otel: Unsupported OTLP traces protocol: ${t}. Using http/protobuf.`),new vt}}var TA="v1/traces",zx=`http://localhost:4318/${TA}`;function Qx(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT;if(t&&typeof t=="string")return t;let e=r.OTEL_EXPORTER_OTLP_ENDPOINT;return e&&typeof e=="string"?`${e}/${TA}`:zx}function Jx(r){return r!=null}function Zx(r){if(r===void 0){c.diag.debug("@vercel/otel: Configure context manager: default");let t=new uA.AsyncLocalStorageContextManager;return t.enable(),c.context.setGlobalContextManager(t),t}return c.diag.debug("@vercel/otel: Configure context manager: from configuration"),r.enable(),c.context.setGlobalContextManager(r),r}function rw(r){let t;r?typeof r=="string"?t={serviceName:r}:t=r:t={},new yn(t).start()}export{Ee as FetchInstrumentation,ae as OTLPHttpJsonTraceExporter,vt as OTLPHttpProtoTraceExporter,rw as registerOTel};
17
17
  //# sourceMappingURL=index.js.map