@drenso/homey-log 8.37.1 → 8.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js ADDED
@@ -0,0 +1,39 @@
1
+ "use strict";var ble=Object.create;var of=Object.defineProperty;var vle=Object.getOwnPropertyDescriptor;var yle=Object.getOwnPropertyNames;var Nle=Object.getPrototypeOf,Cle=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(t&&(e=t(t=0)),e);var c=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tq=(t,e)=>{for(var r in e)of(t,r,{get:e[r],enumerable:!0})},rq=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of yle(e))!Cle.call(t,o)&&o!==r&&of(t,o,{get:()=>e[o],enumerable:!(n=vle(e,o))||n.enumerable});return t};var JI=(t,e,r)=>(r=t!=null?ble(Nle(t)):{},rq(e||!t||!t.__esModule?of(r,"default",{value:t,enumerable:!0}):r,t)),m=t=>rq(of({},"__esModule",{value:!0}),t);var Ir=c(pt=>{Object.defineProperty(pt,"__esModule",{value:!0});var nq=Object.prototype.toString;function Mle(t){switch(nq.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return sf(t,Error)}}function Na(t,e){return nq.call(t)===`[object ${e}]`}function Lle(t){return Na(t,"ErrorEvent")}function Dle(t){return Na(t,"DOMError")}function Gle(t){return Na(t,"DOMException")}function xle(t){return Na(t,"String")}function oq(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Ule(t){return t===null||oq(t)||typeof t!="object"&&typeof t!="function"}function iq(t){return Na(t,"Object")}function wle(t){return typeof Event<"u"&&sf(t,Event)}function qle(t){return typeof Element<"u"&&sf(t,Element)}function jle(t){return Na(t,"RegExp")}function Vle(t){return!!(t&&t.then&&typeof t.then=="function")}function Ble(t){return iq(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function sf(t,e){try{return t instanceof e}catch{return!1}}function Hle(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}pt.isDOMError=Dle;pt.isDOMException=Gle;pt.isElement=qle;pt.isError=Mle;pt.isErrorEvent=Lle;pt.isEvent=wle;pt.isInstanceOf=sf;pt.isParameterizedString=oq;pt.isPlainObject=iq;pt.isPrimitive=Ule;pt.isRegExp=jle;pt.isString=xle;pt.isSyntheticEvent=Ble;pt.isThenable=Vle;pt.isVueViewModel=Hle});var Ca=c(ys=>{Object.defineProperty(ys,"__esModule",{value:!0});var af=Ir();function Fle(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function kle(t,e){let r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);let o=Math.max(e-60,0);o<5&&(o=0);let i=Math.min(o+140,n);return i>n-5&&(i=n),i===n&&(o=Math.max(i-140,0)),r=r.slice(o,i),o>0&&(r=`'{snip} ${r}`),i<n&&(r+=" {snip}"),r}function Wle(t,e){if(!Array.isArray(t))return"";let r=[];for(let n=0;n<t.length;n++){let o=t[n];try{af.isVueViewModel(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(e)}function sq(t,e,r=!1){return af.isString(t)?af.isRegExp(e)?e.test(t):af.isString(e)?r?t===e:t.includes(e):!1:!1}function Yle(t,e=[],r=!1){return e.some(n=>sq(t,n,r))}ys.isMatchingPattern=sq;ys.safeJoin=Wle;ys.snipLine=kle;ys.stringMatchesSomePattern=Yle;ys.truncate=Fle});var cq=c(eP=>{Object.defineProperty(eP,"__esModule",{value:!0});var $I=Ir(),Kle=Ca();function Xle(t,e,r=250,n,o,i,s){if(!i.exception||!i.exception.values||!s||!$I.isInstanceOf(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=Zle(QI(t,e,o,s.originalException,n,i.exception.values,a,0),r))}function QI(t,e,r,n,o,i,s,a){if(i.length>=r+1)return i;let u=[...i];if($I.isInstanceOf(n[o],Error)){aq(s,a);let l=t(e,n[o]),d=u.length;uq(l,o,d,a),u=QI(t,e,r,n[o],o,[l,...u],l,d)}return Array.isArray(n.errors)&&n.errors.forEach((l,d)=>{if($I.isInstanceOf(l,Error)){aq(s,a);let p=t(e,l),_=u.length;uq(p,`errors[${d}]`,_,a),u=QI(t,e,r,l,o,[p,...u],p,_)}}),u}function aq(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function uq(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function Zle(t,e){return t.map(r=>(r.value&&(r.value=Kle.truncate(r.value,e)),r))}eP.applyAggregateErrorsToEvent=Xle});var lq=c(tP=>{Object.defineProperty(tP,"__esModule",{value:!0});function zle(t){let e=[],r=n=>{n.forEach(o=>{Array.isArray(o)?r(o):e.push(o)})};return r(t),e}tP.flatten=zle});var dq=c(rP=>{Object.defineProperty(rP,"__esModule",{value:!0});function Jle(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}rP.getBreadcrumbLogLevelFromHttpStatusCode=Jle});var oP=c(nP=>{Object.defineProperty(nP,"__esModule",{value:!0});var $le="8.39.0";nP.SDK_VERSION=$le});var Tt=c(uf=>{Object.defineProperty(uf,"__esModule",{value:!0});var pq=oP(),_q=globalThis;function Qle(t,e,r){let n=r||_q,o=n.__SENTRY__=n.__SENTRY__||{},i=o[pq.SDK_VERSION]=o[pq.SDK_VERSION]||{};return i[t]||(i[t]=e())}uf.GLOBAL_OBJ=_q;uf.getGlobalSingleton=Qle});var iP=c(La=>{Object.defineProperty(La,"__esModule",{value:!0});var ede=Ir(),tde=Tt(),Ma=tde.GLOBAL_OBJ,rde=80;function nde(t,e={}){if(!t)return"<unknown>";try{let r=t,n=5,o=[],i=0,s=0,a=" > ",u=a.length,l,d=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||rde;for(;r&&i++<n&&(l=ode(r,d),!(l==="html"||i>1&&s+o.length*u+l.length>=p));)o.push(l),s+=l.length,r=r.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function ode(t,e){let r=t,n=[];if(!r||!r.tagName)return"";if(Ma.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());let o=e&&e.length?e.filter(s=>r.getAttribute(s)).map(s=>[s,r.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{n.push(`[${s[0]}="${s[1]}"]`)});else{r.id&&n.push(`#${r.id}`);let s=r.className;if(s&&ede.isString(s)){let a=s.split(/\s+/);for(let u of a)n.push(`.${u}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=r.getAttribute(s);a&&n.push(`[${s}="${a}"]`)}return n.join("")}function ide(){try{return Ma.document.location.href}catch{return""}}function sde(t){return Ma.document&&Ma.document.querySelector?Ma.document.querySelector(t):null}function ade(t){if(!Ma.HTMLElement)return null;let e=t,r=5;for(let n=0;n<r;n++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}La.getComponentName=ade;La.getDomElement=sde;La.getLocationHref=ide;La.htmlTreeAsString=nde});var ko=c(sP=>{Object.defineProperty(sP,"__esModule",{value:!0});var ude=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;sP.DEBUG_BUILD=ude});var to=c(Da=>{Object.defineProperty(Da,"__esModule",{value:!0});var cde=ko(),cf=Tt(),lde="Sentry Logger ",aP=["debug","info","warn","error","log","assert","trace"],uP={};function fq(t){if(!("console"in cf.GLOBAL_OBJ))return t();let e=cf.GLOBAL_OBJ.console,r={},n=Object.keys(uP);n.forEach(o=>{let i=uP[o];r[o]=e[o],e[o]=i});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function dde(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return cde.DEBUG_BUILD?aP.forEach(r=>{e[r]=(...n)=>{t&&fq(()=>{cf.GLOBAL_OBJ.console[r](`${lde}[${r}]:`,...n)})}}):aP.forEach(r=>{e[r]=()=>{}}),e}var pde=cf.getGlobalSingleton("logger",dde);Da.CONSOLE_LEVELS=aP;Da.consoleSandbox=fq;Da.logger=pde;Da.originalConsoleMethods=uP});var cP=c(od=>{Object.defineProperty(od,"__esModule",{value:!0});var _de=ko(),nd=to(),fde=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function gde(t){return t==="http"||t==="https"}function hde(t,e=!1){let{host:r,path:n,pass:o,port:i,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${s}`}function gq(t){let e=fde.exec(t);if(!e){nd.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[r,n,o="",i="",s="",a=""]=e.slice(1),u="",l=a,d=l.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),l=d.pop()),l){let p=l.match(/^\d+/);p&&(l=p[0])}return hq({host:i,pass:o,path:u,projectId:l,port:s,protocol:r,publicKey:n})}function hq(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Ede(t){if(!_de.DEBUG_BUILD)return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(nd.logger.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?gde(n)?e&&isNaN(parseInt(e,10))?(nd.logger.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(nd.logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(nd.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function mde(t){let e=typeof t=="string"?gq(t):hq(t);if(!(!e||!Ede(e)))return e}od.dsnFromString=gq;od.dsnToString=hde;od.makeDsn=mde});var pP=c(dP=>{Object.defineProperty(dP,"__esModule",{value:!0});var lP=class extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};dP.SentryError=lP});var ro=c(zr=>{Object.defineProperty(zr,"__esModule",{value:!0});var Tde=iP(),Sde=ko(),Ga=Ir(),Ade=to(),Eq=Ca();function Ode(t,e,r){if(!(e in t))return;let n=t[e],o=r(n);typeof o=="function"&&Aq(o,n),t[e]=o}function Sq(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Sde.DEBUG_BUILD&&Ade.logger.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Aq(t,e){try{let r=e.prototype||{};t.prototype=e.prototype=r,Sq(t,"__sentry_original__",e)}catch{}}function Rde(t){return t.__sentry_original__}function Ide(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function Oq(t){if(Ga.isError(t))return{message:t.message,name:t.name,stack:t.stack,...Tq(t)};if(Ga.isEvent(t)){let e={type:t.type,target:mq(t.target),currentTarget:mq(t.currentTarget),...Tq(t)};return typeof CustomEvent<"u"&&Ga.isInstanceOf(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function mq(t){try{return Ga.isElement(t)?Tde.htmlTreeAsString(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Tq(t){if(typeof t=="object"&&t!==null){let e={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function Pde(t,e=40){let r=Object.keys(Oq(t));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return Eq.truncate(n,e);for(let o=r.length;o>0;o--){let i=r.slice(0,o).join(", ");if(!(i.length>e))return o===r.length?i:Eq.truncate(i,e)}return""}function bde(t){return _P(t,new Map)}function _P(t,e){if(vde(t)){let r=e.get(t);if(r!==void 0)return r;let n={};e.set(t,n);for(let o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=_P(t[o],e));return n}if(Array.isArray(t)){let r=e.get(t);if(r!==void 0)return r;let n=[];return e.set(t,n),t.forEach(o=>{n.push(_P(o,e))}),n}return t}function vde(t){if(!Ga.isPlainObject(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}function yde(t){let e;switch(!0){case t==null:e=new String(t);break;case(typeof t=="symbol"||typeof t=="bigint"):e=Object(t);break;case Ga.isPrimitive(t):e=new t.constructor(t);break;default:e=t;break}return e}zr.addNonEnumerableProperty=Sq;zr.convertToPlainObject=Oq;zr.dropUndefinedKeys=bde;zr.extractExceptionKeysForMessage=Pde;zr.fill=Ode;zr.getOriginalFunction=Rde;zr.markFunctionWrapped=Aq;zr.objectify=yde;zr.urlEncode=Ide});var xa=c(Wo=>{Object.defineProperty(Wo,"__esModule",{value:!0});var Pq=50,bq="?",Rq=/\(error: (.*)\)/,Iq=/captureMessage|captureException/;function vq(...t){let e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{let i=[],s=r.split(`
2
+ `);for(let a=n;a<s.length;a++){let u=s[a];if(u.length>1024)continue;let l=Rq.test(u)?u.replace(Rq,"$1"):u;if(!l.match(/\S*Error: /)){for(let d of e){let p=d(l);if(p){i.push(p);break}}if(i.length>=Pq+o)break}}return yq(i.slice(o))}}function Nde(t){return Array.isArray(t)?vq(...t):t}function yq(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(lf(e).function||"")&&e.pop(),e.reverse(),Iq.test(lf(e).function||"")&&(e.pop(),Iq.test(lf(e).function||"")&&e.pop()),e.slice(0,Pq).map(r=>({...r,filename:r.filename||lf(e).filename,function:r.function||bq}))}function lf(t){return t[t.length-1]||{}}var fP="<anonymous>";function Cde(t){try{return!t||typeof t!="function"?fP:t.name||fP}catch{return fP}}function Mde(t){let e=t.exception;if(e){let r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}Wo.UNKNOWN_FUNCTION=bq;Wo.createStackParser=vq;Wo.getFramesFromEvent=Mde;Wo.getFunctionName=Cde;Wo.stackParserFromStackParserOptions=Nde;Wo.stripSentryFramesAndReverse=yq});var qa=c(wa=>{Object.defineProperty(wa,"__esModule",{value:!0});var Cq=ko(),Mq=to(),Lde=xa(),Ua={},Nq={};function Dde(t,e){Ua[t]=Ua[t]||[],Ua[t].push(e)}function Gde(){Object.keys(Ua).forEach(t=>{Ua[t]=void 0})}function xde(t,e){if(!Nq[t]){Nq[t]=!0;try{e()}catch(r){Cq.DEBUG_BUILD&&Mq.logger.error(`Error while instrumenting ${t}`,r)}}}function Ude(t,e){let r=t&&Ua[t];if(r)for(let n of r)try{n(e)}catch(o){Cq.DEBUG_BUILD&&Mq.logger.error(`Error while triggering instrumentation handler.
3
+ Type: ${t}
4
+ Name: ${Lde.getFunctionName(n)}
5
+ Error:`,o)}}wa.addHandler=Dde;wa.maybeInstrument=xde;wa.resetInstrumentationHandlers=Gde;wa.triggerHandlers=Ude});var Lq=c(EP=>{Object.defineProperty(EP,"__esModule",{value:!0});var gP=to(),wde=ro(),df=Tt(),hP=qa();function qde(t){let e="console";hP.addHandler(e,t),hP.maybeInstrument(e,jde)}function jde(){"console"in df.GLOBAL_OBJ&&gP.CONSOLE_LEVELS.forEach(function(t){t in df.GLOBAL_OBJ.console&&wde.fill(df.GLOBAL_OBJ.console,t,function(e){return gP.originalConsoleMethods[t]=e,function(...r){let n={args:r,level:t};hP.triggerHandlers("console",n);let o=gP.originalConsoleMethods[t];o&&o.apply(df.GLOBAL_OBJ.console,r)}})})}EP.addConsoleInstrumentationHandler=qde});var SP=c(fn=>{Object.defineProperty(fn,"__esModule",{value:!0});var Vde=ko(),Bde=to(),Hde=Tt(),pf=Hde.GLOBAL_OBJ;function Fde(){try{return new ErrorEvent(""),!0}catch{return!1}}function kde(){try{return new DOMError(""),!0}catch{return!1}}function Wde(){try{return new DOMException(""),!0}catch{return!1}}function TP(){if(!("fetch"in pf))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function mP(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Yde(){if(typeof EdgeRuntime=="string")return!0;if(!TP())return!1;if(mP(pf.fetch))return!0;let t=!1,e=pf.document;if(e&&typeof e.createElement=="function")try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=mP(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Vde.DEBUG_BUILD&&Bde.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Kde(){return"ReportingObserver"in pf}function Xde(){if(!TP())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}fn.isNativeFunction=mP;fn.supportsDOMError=kde;fn.supportsDOMException=Wde;fn.supportsErrorEvent=Fde;fn.supportsFetch=TP;fn.supportsNativeFetch=Yde;fn.supportsReferrerPolicy=Xde;fn.supportsReportingObserver=Kde});var _f=c(gn=>{Object.defineProperty(gn,"__esModule",{value:!0});var Dq=Tt(),Gq=1e3;function xq(){return Date.now()/Gq}function Zde(){let{performance:t}=Dq.GLOBAL_OBJ;if(!t||!t.now)return xq;let e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/Gq}var zde=Zde();gn._browserPerformanceTimeOriginMode=void 0;var Jde=(()=>{let{performance:t}=Dq.GLOBAL_OBJ;if(!t||!t.now){gn._browserPerformanceTimeOriginMode="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=o<e,s=t.timing&&t.timing.navigationStart,u=typeof s=="number"?Math.abs(s+r-n):e,l=u<e;return i||l?o<=u?(gn._browserPerformanceTimeOriginMode="timeOrigin",t.timeOrigin):(gn._browserPerformanceTimeOriginMode="navigationStart",s):(gn._browserPerformanceTimeOriginMode="dateNow",n)})();gn.browserPerformanceTimeOrigin=Jde;gn.dateTimestampInSeconds=xq;gn.timestampInSeconds=zde});var Bq=c(id=>{Object.defineProperty(id,"__esModule",{value:!0});var $de=Ir(),Uq=ro(),Qde=SP(),ff=_f(),wq=Tt(),Yo=qa();function epe(t,e){let r="fetch";Yo.addHandler(r,t),Yo.maybeInstrument(r,()=>jq(void 0,e))}function tpe(t){let e="fetch-body-resolved";Yo.addHandler(e,t),Yo.maybeInstrument(e,()=>jq(npe))}function jq(t,e=!1){e&&!Qde.supportsNativeFetch()||Uq.fill(wq.GLOBAL_OBJ,"fetch",function(r){return function(...n){let{method:o,url:i}=Vq(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:ff.timestampInSeconds()*1e3};t||Yo.triggerHandlers("fetch",{...s});let a=new Error().stack;return r.apply(wq.GLOBAL_OBJ,n).then(async u=>(t?t(u):Yo.triggerHandlers("fetch",{...s,endTimestamp:ff.timestampInSeconds()*1e3,response:u}),u),u=>{throw Yo.triggerHandlers("fetch",{...s,endTimestamp:ff.timestampInSeconds()*1e3,error:u}),$de.isError(u)&&u.stack===void 0&&(u.stack=a,Uq.addNonEnumerableProperty(u,"framesToPop",1)),u})}})}async function rpe(t,e){if(t&&t.body){let r=t.body,n=r.getReader(),o=setTimeout(()=>{r.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(s),a&&(e(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),n.releaseLock(),r.cancel().then(null,()=>{})}}function npe(t){let e;try{e=t.clone()}catch{return}rpe(e,()=>{Yo.triggerHandlers("fetch-body-resolved",{endTimestamp:ff.timestampInSeconds()*1e3,response:t})})}function AP(t,e){return!!t&&typeof t=="object"&&!!t[e]}function qq(t){return typeof t=="string"?t:t?AP(t,"url")?t.url:t.toString?t.toString():"":""}function Vq(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[r,n]=t;return{url:qq(r),method:AP(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:qq(e),method:AP(e,"method")?String(e.method).toUpperCase():"GET"}}id.addFetchEndInstrumentationHandler=tpe;id.addFetchInstrumentationHandler=epe;id.parseFetchArgs=Vq});var Hq=c(IP=>{Object.defineProperty(IP,"__esModule",{value:!0});var OP=Tt(),RP=qa(),gf=null;function ope(t){let e="error";RP.addHandler(e,t),RP.maybeInstrument(e,ipe)}function ipe(){gf=OP.GLOBAL_OBJ.onerror,OP.GLOBAL_OBJ.onerror=function(t,e,r,n,o){let i={column:n,error:o,line:r,msg:t,url:e};return RP.triggerHandlers("error",i),gf&&!gf.__SENTRY_LOADER__?gf.apply(this,arguments):!1},OP.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}IP.addGlobalErrorInstrumentationHandler=ope});var Fq=c(vP=>{Object.defineProperty(vP,"__esModule",{value:!0});var PP=Tt(),bP=qa(),hf=null;function spe(t){let e="unhandledrejection";bP.addHandler(e,t),bP.maybeInstrument(e,ape)}function ape(){hf=PP.GLOBAL_OBJ.onunhandledrejection,PP.GLOBAL_OBJ.onunhandledrejection=function(t){let e=t;return bP.triggerHandlers("unhandledrejection",e),hf&&!hf.__SENTRY_LOADER__?hf.apply(this,arguments):!0},PP.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}vP.addGlobalUnhandledRejectionInstrumentationHandler=spe});var yP=c(Ef=>{Object.defineProperty(Ef,"__esModule",{value:!0});function upe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function cpe(){return"npm"}Ef.getSDKSource=cpe;Ef.isBrowserBundle=upe});var NP=c((sd,Tf)=>{Object.defineProperty(sd,"__esModule",{value:!0});var lpe=yP();function dpe(){return!lpe.isBrowserBundle()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function mf(t,e){return t.require(e)}function ppe(t){let e;try{e=mf(Tf,t)}catch{}if(!e)try{let{cwd:r}=mf(Tf,"process");e=mf(Tf,`${r()}/node_modules/${t}`)}catch{}return e}sd.dynamicRequire=mf;sd.isNodeEnv=dpe;sd.loadModule=ppe});var Wq=c(CP=>{Object.defineProperty(CP,"__esModule",{value:!0});var _pe=NP(),kq=Tt();function fpe(){return typeof window<"u"&&(!_pe.isNodeEnv()||gpe())}function gpe(){return kq.GLOBAL_OBJ.process!==void 0&&kq.GLOBAL_OBJ.process.type==="renderer"}CP.isBrowser=fpe});var LP=c(MP=>{Object.defineProperty(MP,"__esModule",{value:!0});function hpe(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let i=0;i<e.length;i++)if(e[i]===o)return!0;return e.push(o),!1}function n(o){if(t)e.delete(o);else for(let i=0;i<e.length;i++)if(e[i]===o){e.splice(i,1);break}}return[r,n]}MP.memoBuilder=hpe});var ad=c(hn=>{Object.defineProperty(hn,"__esModule",{value:!0});var Epe=ro(),DP=Ca(),mpe=Tt();function Tpe(){let t=mpe.GLOBAL_OBJ,e=t.crypto||t.msCrypto,r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function Yq(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Spe(t){let{message:e,event_id:r}=t;if(e)return e;let n=Yq(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function Ape(t,e,r){let n=t.exception=t.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=r||"Error")}function Ope(t,e){let r=Yq(t);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data};r.mechanism.data=i}}var Rpe=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function GP(t){return parseInt(t||"",10)}function Ipe(t){let e=t.match(Rpe)||[],r=GP(e[1]),n=GP(e[2]),o=GP(e[3]);return{buildmetadata:e[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:e[4]}}function Ppe(t,e,r=5){if(e.lineno===void 0)return;let n=t.length,o=Math.max(Math.min(n-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-r),o).map(s=>DP.snipLine(s,0));let i=Math.min(n-1,o);e.context_line=DP.snipLine(t[i],e.colno||0),e.post_context=t.slice(Math.min(o+1,n),o+1+r).map(s=>DP.snipLine(s,0))}function bpe(t){if(t&&t.__sentry_captured__)return!0;try{Epe.addNonEnumerableProperty(t,"__sentry_captured__",!0)}catch{}return!1}function vpe(t){return Array.isArray(t)?t:[t]}hn.addContextToFrame=Ppe;hn.addExceptionMechanism=Ope;hn.addExceptionTypeValue=Ape;hn.arrayify=vpe;hn.checkOrSetAlreadyCaught=bpe;hn.getEventDescription=Spe;hn.parseSemver=Ipe;hn.uuid4=Tpe});var cd=c(ud=>{Object.defineProperty(ud,"__esModule",{value:!0});var Kq=Ir(),ype=LP(),Npe=ro(),Cpe=xa();function Xq(t,e=100,r=1/0){try{return xP("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Zq(t,e=3,r=100*1024){let n=Xq(t,e);return Gpe(n)>r?Zq(t,e-1,r):n}function xP(t,e,r=1/0,n=1/0,o=ype.memoBuilder()){let[i,s]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=Mpe(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return a.replace("object ","");if(i(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let f=l.toJSON();return xP("",f,u-1,n,o)}catch{}let d=Array.isArray(e)?[]:{},p=0,_=Npe.convertToPlainObject(e);for(let f in _){if(!Object.prototype.hasOwnProperty.call(_,f))continue;if(p>=n){d[f]="[MaxProperties ~]";break}let g=_[f];d[f]=xP(f,g,u-1,n,o),p++}return s(e),d}function Mpe(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Kq.isVueViewModel(e))return"[VueViewModel]";if(Kq.isSyntheticEvent(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Cpe.getFunctionName(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let r=Lpe(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function Lpe(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Dpe(t){return~-encodeURI(t).split(/%..|./).length}function Gpe(t){return Dpe(JSON.stringify(t))}function xpe(t,e){let r=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=t;try{n=decodeURI(t)}catch{}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}ud.normalize=Xq;ud.normalizeToSize=Zq;ud.normalizeUrlToBase=xpe});var tj=c(no=>{Object.defineProperty(no,"__esModule",{value:!0});function Jq(t,e){let r=0;for(let n=t.length-1;n>=0;n--){let o=t[n];o==="."?t.splice(n,1):o===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var Upe=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function $q(t){let e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,r=Upe.exec(e);return r?r.slice(1):[]}function UP(...t){let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){let o=n>=0?t[n]:"/";o&&(e=`${o}/${e}`,r=o.charAt(0)==="/")}return e=Jq(e.split("/").filter(n=>!!n),!r).join("/"),(r?"/":"")+e||"."}function zq(t){let e=0;for(;e<t.length&&t[e]==="";e++);let r=t.length-1;for(;r>=0&&t[r]==="";r--);return e>r?[]:t.slice(e,r-e+1)}function wpe(t,e){t=UP(t).slice(1),e=UP(e).slice(1);let r=zq(t.split("/")),n=zq(e.split("/")),o=Math.min(r.length,n.length),i=o;for(let a=0;a<o;a++)if(r[a]!==n[a]){i=a;break}let s=[];for(let a=i;a<r.length;a++)s.push("..");return s=s.concat(n.slice(i)),s.join("/")}function Qq(t){let e=ej(t),r=t.slice(-1)==="/",n=Jq(t.split("/").filter(o=>!!o),!e).join("/");return!n&&!e&&(n="."),n&&r&&(n+="/"),(e?"/":"")+n}function ej(t){return t.charAt(0)==="/"}function qpe(...t){return Qq(t.join("/"))}function jpe(t){let e=$q(t),r=e[0]||"",n=e[1];return!r&&!n?".":(n&&(n=n.slice(0,n.length-1)),r+n)}function Vpe(t,e){let r=$q(t)[2]||"";return e&&r.slice(e.length*-1)===e&&(r=r.slice(0,r.length-e.length)),r}no.basename=Vpe;no.dirname=jpe;no.isAbsolute=ej;no.join=qpe;no.normalizePath=Qq;no.relative=wpe;no.resolve=UP});var wP=c(dd=>{Object.defineProperty(dd,"__esModule",{value:!0});var Bpe=Ir(),oo;(function(t){t[t.PENDING=0]="PENDING";let r=1;t[t.RESOLVED=r]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(oo||(oo={}));function Hpe(t){return new ld(e=>{e(t)})}function Fpe(t){return new ld((e,r)=>{r(t)})}var ld=class t{constructor(e){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._state=oo.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new t((n,o)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(s){o(s)}},i=>{if(!r)o(i);else try{n(r(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new t((r,n)=>{let o,i;return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{if(i){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(oo.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(oo.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===oo.PENDING){if(Bpe.isThenable(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===oo.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===oo.RESOLVED&&r[1](this._value),this._state===oo.REJECTED&&r[2](this._value),r[0]=!0)})}}};dd.SyncPromise=ld;dd.rejectedSyncPromise=Fpe;dd.resolvedSyncPromise=Hpe});var rj=c(jP=>{Object.defineProperty(jP,"__esModule",{value:!0});var kpe=pP(),qP=wP();function Wpe(t){let e=[];function r(){return t===void 0||e.length<t}function n(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!r())return qP.rejectedSyncPromise(new kpe.SentryError("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>n(a)).then(null,()=>n(a).then(null,()=>{})),a}function i(s){return new qP.SyncPromise((a,u)=>{let l=e.length;if(!l)return a(!0);let d=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(p=>{qP.resolvedSyncPromise(p).then(()=>{--l||(clearTimeout(d),a(!0))},u)})})}return{$:e,add:o,drain:i}}jP.makePromiseBuffer=Wpe});var nj=c(VP=>{Object.defineProperty(VP,"__esModule",{value:!0});function Ype(t){let e={},r=0;for(;r<t.length;){let n=t.indexOf("=",r);if(n===-1)break;let o=t.indexOf(";",r);if(o===-1)o=t.length;else if(o<n){r=t.lastIndexOf(";",n-1)+1;continue}let i=t.slice(r,n).trim();if(e[i]===void 0){let s=t.slice(n+1,o).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1));try{e[i]=s.indexOf("%")!==-1?decodeURIComponent(s):s}catch{e[i]=s}}r=o+1}return e}VP.parseCookie=Ype});var BP=c(ja=>{Object.defineProperty(ja,"__esModule",{value:!0});function Kpe(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function Xpe(t){return t.split(/[?#]/,1)[0]}function Zpe(t){return t.split(/\\?\//).filter(e=>e.length>0&&e!==",").length}function zpe(t){let{protocol:e,host:r,path:n}=t,o=r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${e?`${e}://`:""}${o}${n}`}ja.getNumberOfUrlSegments=Zpe;ja.getSanitizedUrlString=zpe;ja.parseUrl=Kpe;ja.stripUrlQueryAndFragment=Xpe});var ij=c(Sf=>{Object.defineProperty(Sf,"__esModule",{value:!0});var oj=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function Jpe(t){return oj.map(o=>{let i=t[o],s=Array.isArray(i)?i.join(";"):i;return o==="Forwarded"?$pe(s):s&&s.split(",").map(a=>a.trim())}).reduce((o,i)=>i?o.concat(i):o,[]).find(o=>o!==null&&Qpe(o))||null}function $pe(t){if(!t)return null;for(let e of t.split(";"))if(e.startsWith("for="))return e.slice(4);return null}function Qpe(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}Sf.getClientIPAddress=Jpe;Sf.ipHeaderNames=oj});var pj=c(io=>{Object.defineProperty(io,"__esModule",{value:!0});var sj=nj(),e_e=ko(),Af=Ir(),t_e=to(),r_e=cd(),n_e=Ca(),o_e=BP(),Of=ij(),aj={ip:!1,request:!0,user:!0},Rf=["cookies","data","headers","method","query_string","url"],uj=["id","username","email"];function i_e(t,e={}){let r=t.method&&t.method.toUpperCase(),n="",o="url";e.customRoute||t.route?(n=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(n=o_e.stripUrlQueryAndFragment(t.originalUrl||t.url||""));let i="";return e.method&&r&&(i+=r),e.method&&e.path&&(i+=" "),e.path&&n&&(i+=n),[i,o]}function cj(t,e){let r={};return(Array.isArray(e)?e:uj).forEach(o=>{t&&o in t&&(r[o]=t[o])}),r}function lj(t,e={}){let{include:r=Rf}=e,n={},o=t.headers||{},i=t.method,s=o.host||t.hostname||t.host||"<no host>",a=t.protocol==="https"||t.socket&&t.socket.encrypted?"https":"http",u=t.originalUrl||t.url||"",l=u.startsWith(a)?u:`${a}://${s}${u}`;return r.forEach(d=>{switch(d){case"headers":{n.headers=o,r.includes("cookies")||delete n.headers.cookie,r.includes("ip")||Of.ipHeaderNames.forEach(p=>{delete n.headers[p]});break}case"method":{n.method=i;break}case"url":{n.url=l;break}case"cookies":{n.cookies=t.cookies||o.cookie&&sj.parseCookie(o.cookie)||{};break}case"query_string":{n.query_string=u_e(t);break}case"data":{if(i==="GET"||i==="HEAD")break;let p=t.body;if(p!==void 0){let _=Af.isString(p)?p:Af.isPlainObject(p)?JSON.stringify(r_e.normalize(p)):n_e.truncate(`${p}`,1024);_&&(n.data=_)}break}default:({}).hasOwnProperty.call(t,d)&&(n[d]=t[d])}}),n}function s_e(t,e,r,n){let o={...aj,...n&&n.include};if(o.request){let i=Array.isArray(o.request)?[...o.request]:[...Rf];o.ip&&i.push("ip");let s=l_e(e,{include:i});t.request={...t.request,...s}}if(o.user){let i=r.user&&Af.isPlainObject(r.user)?cj(r.user,o.user):{};Object.keys(i).length&&(t.user={...t.user,...i})}if(o.ip){let i=e.headers&&Of.getClientIPAddress(e.headers)||r.ipAddress;i&&(t.user={...t.user,ip_address:i})}}function a_e(t,e,r){let n={...aj,...r&&r.include};if(n.request){let o=Array.isArray(n.request)?[...n.request]:[...Rf];n.ip&&o.push("ip");let i=lj(e,{include:o});t.request={...t.request,...i}}if(n.user){let o=e.user&&Af.isPlainObject(e.user)?cj(e.user,n.user):{};Object.keys(o).length&&(t.user={...t.user,...o})}if(n.ip){let o=e.headers&&Of.getClientIPAddress(e.headers)||e.ip||e.socket&&e.socket.remoteAddress;o&&(t.user={...t.user,ip_address:o})}return t}function u_e(t){let e=t.originalUrl||t.url||"";if(e){e.startsWith("/")&&(e=`http://dogs.are.great${e}`);try{let r=t.query||new URL(e).search.slice(1);return r.length?r:void 0}catch{return}}}function dj(t){let e={};try{t.forEach((r,n)=>{typeof r=="string"&&(e[n]=r)})}catch{e_e.DEBUG_BUILD&&t_e.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return e}function c_e(t){let e=dj(t.headers);return{method:t.method,url:t.url,headers:e}}function l_e(t,{include:e}){let r=e?Array.isArray(e)?e:Rf:[],n={},o={...t.headers};if(r.includes("headers")&&(n.headers=o,e.includes("cookies")||delete o.cookie,e.includes("ip")||Of.ipHeaderNames.forEach(i=>{delete o[i]})),r.includes("method")&&(n.method=t.method),r.includes("url")&&(n.url=t.url),r.includes("cookies")){let i=t.cookies||(o&&o.cookie?sj.parseCookie(o.cookie):void 0);n.cookies=i||{}}return r.includes("query_string")&&(n.query_string=t.query_string),r.includes("data")&&(n.data=t.data),n}io.DEFAULT_USER_INCLUDES=uj;io.addNormalizedRequestDataToEvent=s_e;io.addRequestDataToEvent=a_e;io.extractPathForTransaction=i_e;io.extractRequestData=lj;io.winterCGHeadersToDict=dj;io.winterCGRequestToRequestData=c_e});var fj=c(If=>{Object.defineProperty(If,"__esModule",{value:!0});var _j=["fatal","error","warning","log","info","debug"];function d_e(t){return t==="warn"?"warning":_j.includes(t)?t:"log"}If.severityLevelFromString=d_e;If.validSeverityLevels=_j});var HP=c(pd=>{Object.defineProperty(pd,"__esModule",{value:!0});var p_e=xa();function hj(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&t!==void 0&&!t.includes("node_modules/")}function Ej(t){let e=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let o=n.match(r);if(o){let i,s,a,u,l;if(o[1]){a=o[1];let _=a.lastIndexOf(".");if(a[_-1]==="."&&_--,_>0){i=a.slice(0,_),s=a.slice(_+1);let f=i.indexOf(".Module");f>0&&(a=a.slice(f+1),i=i.slice(0,f))}u=void 0}s&&(u=i,l=s),s==="<anonymous>"&&(l=void 0,a=void 0),a===void 0&&(l=l||p_e.UNKNOWN_FUNCTION,a=u?`${u}.${l}`:l);let d=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2],p=o[5]==="native";return d&&d.match(/\/[A-Z]:/)&&(d=d.slice(1)),!d&&o[5]&&!p&&(d=o[5]),{filename:d,module:t?t(d):void 0,function:a,lineno:gj(o[3]),colno:gj(o[4]),in_app:hj(d||"",p)}}if(n.match(e))return{filename:n}}}function __e(t){return[90,Ej(t)]}function gj(t){return parseInt(t||"",10)||void 0}pd.filenameIsInApp=hj;pd.node=Ej;pd.nodeStackLineParser=__e});var kP=c(so=>{Object.defineProperty(so,"__esModule",{value:!0});var f_e=ko(),g_e=Ir(),h_e=to(),E_e="baggage",FP="sentry-",Tj=/^sentry-/,Sj=8192;function m_e(t){let e=Aj(t);if(!e)return;let r=Object.entries(e).reduce((n,[o,i])=>{if(o.match(Tj)){let s=o.slice(FP.length);n[s]=i}return n},{});if(Object.keys(r).length>0)return r}function T_e(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,o])=>(o&&(r[`${FP}${n}`]=o),r),{});return S_e(e)}function Aj(t){if(!(!t||!g_e.isString(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{let n=mj(r);return Object.entries(n).forEach(([o,i])=>{e[o]=i}),e},{}):mj(t)}function mj(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}function S_e(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],o)=>{let i=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,s=o===0?i:`${e},${i}`;return s.length>Sj?(f_e.DEBUG_BUILD&&h_e.logger.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}so.BAGGAGE_HEADER_NAME=E_e;so.MAX_BAGGAGE_STRING_LENGTH=Sj;so.SENTRY_BAGGAGE_KEY_PREFIX=FP;so.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=Tj;so.baggageHeaderToDynamicSamplingContext=m_e;so.dynamicSamplingContextToSentryBaggageHeader=T_e;so.parseBaggageHeader=Aj});var Ij=c(Va=>{Object.defineProperty(Va,"__esModule",{value:!0});var A_e=kP(),Ns=ad(),Oj=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Rj(t){if(!t)return;let e=t.match(Oj);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function O_e(t,e){let r=Rj(t),n=A_e.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:i,parentSampled:s}=r||{};return r?{traceId:o||Ns.uuid4(),parentSpanId:i||Ns.uuid4().substring(16),spanId:Ns.uuid4().substring(16),sampled:s,dsc:n||{}}:{traceId:o||Ns.uuid4(),spanId:Ns.uuid4().substring(16)}}function R_e(t=Ns.uuid4(),e=Ns.uuid4().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}Va.TRACEPARENT_REGEXP=Oj;Va.extractTraceparentData=Rj;Va.generateSentryTraceHeader=R_e;Va.propagationContextFromHeaders=O_e});var WP=c(hr=>{Object.defineProperty(hr,"__esModule",{value:!0});var I_e=cP(),P_e=cd(),Pj=ro(),Ba=Tt();function b_e(t,e=[]){return[t,e]}function v_e(t,e){let[r,n]=t;return[r,[...n,e]]}function bj(t,e){let r=t[1];for(let n of r){let o=n[0].type;if(e(n,o))return!0}return!1}function y_e(t,e){return bj(t,(r,n)=>e.includes(n))}function Pf(t){return Ba.GLOBAL_OBJ.__SENTRY__&&Ba.GLOBAL_OBJ.__SENTRY__.encodePolyfill?Ba.GLOBAL_OBJ.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function N_e(t){return Ba.GLOBAL_OBJ.__SENTRY__&&Ba.GLOBAL_OBJ.__SENTRY__.decodePolyfill?Ba.GLOBAL_OBJ.__SENTRY__.decodePolyfill(t):new TextDecoder().decode(t)}function C_e(t){let[e,r]=t,n=JSON.stringify(e);function o(i){typeof n=="string"?n=typeof i=="string"?n+i:[Pf(n),i]:n.push(typeof i=="string"?Pf(i):i)}for(let i of r){let[s,a]=i;if(o(`
6
+ ${JSON.stringify(s)}
7
+ `),typeof a=="string"||a instanceof Uint8Array)o(a);else{let u;try{u=JSON.stringify(a)}catch{u=JSON.stringify(P_e.normalize(a))}o(u)}}return typeof n=="string"?n:M_e(n)}function M_e(t){let e=t.reduce((o,i)=>o+i.length,0),r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.length;return r}function L_e(t){let e=typeof t=="string"?Pf(t):t;function r(s){let a=e.subarray(0,s);return e=e.subarray(s+1),a}function n(){let s=e.indexOf(10);return s<0&&(s=e.length),JSON.parse(N_e(r(s)))}let o=n(),i=[];for(;e.length;){let s=n(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?r(a):n()])}return[o,i]}function D_e(t){return[{type:"span"},t]}function G_e(t){let e=typeof t.data=="string"?Pf(t.data):t.data;return[Pj.dropUndefinedKeys({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}var x_e={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function U_e(t){return x_e[t]}function w_e(t){if(!t||!t.sdk)return;let{name:e,version:r}=t.sdk;return{name:e,version:r}}function q_e(t,e,r,n){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:I_e.dsnToString(n)},...o&&{trace:Pj.dropUndefinedKeys({...o})}}}hr.addItemToEnvelope=v_e;hr.createAttachmentEnvelopeItem=G_e;hr.createEnvelope=b_e;hr.createEventEnvelopeHeaders=q_e;hr.createSpanEnvelopeItem=D_e;hr.envelopeContainsItemType=y_e;hr.envelopeItemTypeToDataCategory=U_e;hr.forEachEnvelopeItem=bj;hr.getSdkMetadataForEnvelopeHeader=w_e;hr.parseEnvelope=L_e;hr.serializeEnvelope=C_e});var vj=c(YP=>{Object.defineProperty(YP,"__esModule",{value:!0});var j_e=WP(),V_e=_f();function B_e(t,e,r){let n=[{type:"client_report"},{timestamp:r||V_e.dateTimestampInSeconds(),discarded_events:t}];return j_e.createEnvelope(e?{dsn:e}:{},[n])}YP.createClientReportEnvelope=B_e});var Mj=c(Cs=>{Object.defineProperty(Cs,"__esModule",{value:!0});var yj=60*1e3;function Nj(t,e=Date.now()){let r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${t}`);return isNaN(n)?yj:n-e}function Cj(t,e){return t[e]||t.all||0}function H_e(t,e,r=Date.now()){return Cj(t,e)>r}function F_e(t,{statusCode:e,headers:r},n=Date.now()){let o={...t},i=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(i)for(let a of i.trim().split(",")){let[u,l,,,d]=a.split(":",5),p=parseInt(u,10),_=(isNaN(p)?60:p)*1e3;if(!l)o.all=n+_;else for(let f of l.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[f]=n+_):o[f]=n+_}else s?o.all=n+Nj(s,n):e===429&&(o.all=n+60*1e3);return o}Cs.DEFAULT_RETRY_AFTER=yj;Cs.disabledUntil=Cj;Cs.isRateLimited=H_e;Cs.parseRetryAfterHeader=Nj;Cs.updateRateLimits=F_e});var Lj=c(KP=>{Object.defineProperty(KP,"__esModule",{value:!0});function k_e(t){let e=[],r={};return{add(n,o){for(;e.length>=t;){let i=e.shift();i!==void 0&&delete r[i]}r[n]&&this.delete(n),e.push(n),r[n]=o},clear(){r={},e=[]},get(n){return r[n]},size(){return e.length},delete(n){if(!r[n])return!1;delete r[n];for(let o=0;o<e.length;o++)if(e[o]===n){e.splice(o,1);break}return!0}}}KP.makeFifoCache=k_e});var xj=c(Ha=>{Object.defineProperty(Ha,"__esModule",{value:!0});var bf=Ir(),Dj=ad(),W_e=cd(),Y_e=ro();function XP(t,e){return t(e.stack||"",1)}function Gj(t,e){let r={type:e.name||e.constructor.name,value:e.message},n=XP(t,e);return n.length&&(r.stacktrace={frames:n}),r}function K_e(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let r=t[e];if(r instanceof Error)return r}}function X_e(t){if("name"in t&&typeof t.name=="string"){let n=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(n+=` with message '${t.message}'`),n}else if("message"in t&&typeof t.message=="string")return t.message;let e=Y_e.extractExceptionKeysForMessage(t);if(bf.isErrorEvent(t))return`Event \`ErrorEvent\` captured as exception with message \`${t.message}\``;let r=Z_e(t);return`${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${e}`}function Z_e(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function z_e(t,e,r,n){if(bf.isError(r))return[r,void 0];if(e.synthetic=!0,bf.isPlainObject(r)){let i=t&&t.getOptions().normalizeDepth,s={__serialized__:W_e.normalizeToSize(r,i)},a=K_e(r);if(a)return[a,s];let u=X_e(r),l=n&&n.syntheticException||new Error(u);return l.message=u,[l,s]}let o=n&&n.syntheticException||new Error(r);return o.message=`${r}`,[o,void 0]}function J_e(t,e,r,n){let i=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"},[s,a]=z_e(t,i,r,n),u={exception:{values:[Gj(e,s)]}};return a&&(u.extra=a),Dj.addExceptionTypeValue(u,void 0,void 0),Dj.addExceptionMechanism(u,i),{...u,event_id:n&&n.event_id}}function $_e(t,e,r="info",n,o){let i={event_id:n&&n.event_id,level:r};if(o&&n&&n.syntheticException){let s=XP(t,n.syntheticException);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}if(bf.isParameterizedString(e)){let{__sentry_template_string__:s,__sentry_template_values__:a}=e;return i.logentry={message:s,params:a},i}return i.message=e,i}Ha.eventFromMessage=$_e;Ha.eventFromUnknownInput=J_e;Ha.exceptionFromError=Gj;Ha.parseStackFrames=XP});var Uj=c(vf=>{Object.defineProperty(vf,"__esModule",{value:!0});var Q_e=HP(),efe=ro(),tfe=xa();function rfe(t,e,r,n){let o=t(),i=!1,s=!0;return setInterval(()=>{let a=o.getTimeMs();i===!1&&a>e+r&&(i=!0,s&&n()),a<e+r&&(i=!1)},20),{poll:()=>{o.reset()},enabled:a=>{s=a}}}function nfe(t,e,r){let n=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,i=t.location.lineNumber?t.location.lineNumber+1:void 0;return efe.dropUndefinedKeys({filename:n,module:r(n),function:t.functionName||tfe.UNKNOWN_FUNCTION,colno:o,lineno:i,in_app:n?Q_e.filenameIsInApp(n):void 0})}vf.callFrameToStackFrame=nfe;vf.watchdogTimer=rfe});var wj=c(zP=>{Object.defineProperty(zP,"__esModule",{value:!0});var ZP=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let r=this._cache.get(e);if(r!==void 0)return this._cache.delete(e),this._cache.set(e,r),r}set(e,r){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,r)}remove(e){let r=this._cache.get(e);return r&&this._cache.delete(e),r}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(r=>e.push(r)),e}};zP.LRUMap=ZP});var jj=c(JP=>{Object.defineProperty(JP,"__esModule",{value:!0});var qj=ad();function ofe(){return{traceId:qj.uuid4(),spanId:qj.uuid4().substring(16)}}JP.generatePropagationContext=ofe});var Vj=c($P=>{Object.defineProperty($P,"__esModule",{value:!0});var ife=Tt();function sfe(t){let e=ife.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],r=e&&e.get&&e.get()?e.get():{};r&&r.waitUntil&&r.waitUntil(t)}$P.vercelWaitUntil=sfe});var Fj=c(yf=>{Object.defineProperty(yf,"__esModule",{value:!0});var afe=Tt(),Bj=new WeakMap;function Hj(t){let e=afe.GLOBAL_OBJ._sentryDebugIds;if(!e)return{};let r,n=Bj.get(t);return n?r=n:(r=new Map,Bj.set(t,r)),Object.keys(e).reduce((o,i)=>{let s,a=r.get(i);a?s=a:(s=t(i),r.set(i,s));for(let u=s.length-1;u>=0;u--){let l=s[u],d=l&&l.filename;if(l&&d){o[d]=e[i];break}}return o},{})}function ufe(t,e){let r=Hj(t),n=[];for(let o of e)o&&r[o]&&n.push({type:"sourcemap",code_file:o,debug_id:r[o]});return n}yf.getDebugImagesForResources=ufe;yf.getFilenameToDebugIdMap=Hj});var kj=c(QP=>{Object.defineProperty(QP,"__esModule",{value:!0});function cfe(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}QP.escapeStringForRegex=cfe});var Wj=c(eb=>{Object.defineProperty(eb,"__esModule",{value:!0});var lfe=Tt(),Nf=lfe.GLOBAL_OBJ;function dfe(){let t=Nf.chrome,e=t&&t.app&&t.app.runtime,r="history"in Nf&&!!Nf.history.pushState&&!!Nf.history.replaceState;return!e&&r}eb.supportsHistory=dfe});var rb=c(tb=>{Object.defineProperty(tb,"__esModule",{value:!0});function pfe(t,e){return t??e()}tb._nullishCoalesce=pfe});var Yj=c(nb=>{Object.defineProperty(nb,"__esModule",{value:!0});var _fe=rb();async function ffe(t,e){return _fe._nullishCoalesce(t,e)}nb._asyncNullishCoalesce=ffe});var ib=c(ob=>{Object.defineProperty(ob,"__esModule",{value:!0});async function gfe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=await i(r)):(o==="call"||o==="optionalCall")&&(r=await i((...s)=>r.call(e,...s)),e=void 0)}return r}ob._asyncOptionalChain=gfe});var Kj=c(sb=>{Object.defineProperty(sb,"__esModule",{value:!0});var hfe=ib();async function Efe(t){let e=await hfe._asyncOptionalChain(t);return e??!0}sb._asyncOptionalChainDelete=Efe});var ub=c(ab=>{Object.defineProperty(ab,"__esModule",{value:!0});function mfe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}ab._optionalChain=mfe});var Xj=c(cb=>{Object.defineProperty(cb,"__esModule",{value:!0});var Tfe=ub();function Sfe(t){let e=Tfe._optionalChain(t);return e??!0}cb._optionalChainDelete=Sfe});var b=c(E=>{Object.defineProperty(E,"__esModule",{value:!0});var Afe=cq(),Ofe=lq(),Rfe=dq(),Cf=iP(),lb=cP(),Ife=pP(),Zj=Tt(),Pfe=Lq(),zj=Bq(),bfe=Hq(),vfe=Fq(),Mf=qa(),Yt=Ir(),yfe=Wq(),Lf=to(),Nfe=LP(),Ko=ad(),db=NP(),pb=cd(),ao=ro(),Ms=tj(),Cfe=rj(),Ls=pj(),Jj=fj(),Fa=xa(),_b=HP(),_d=Ca(),Xo=SP(),fb=wP(),Df=_f(),Gf=Ij(),$j=yP(),Jr=WP(),Mfe=vj(),fd=Mj(),Ds=kP(),xf=BP(),Lfe=Lj(),Uf=xj(),Qj=Uj(),Dfe=wj(),Gfe=jj(),xfe=Vj(),Ufe=oP(),eV=Fj(),wfe=kj(),qfe=Wj(),jfe=Yj(),Vfe=ib(),Bfe=Kj(),Hfe=rb(),Ffe=ub(),kfe=Xj();E.applyAggregateErrorsToEvent=Afe.applyAggregateErrorsToEvent;E.flatten=Ofe.flatten;E.getBreadcrumbLogLevelFromHttpStatusCode=Rfe.getBreadcrumbLogLevelFromHttpStatusCode;E.getComponentName=Cf.getComponentName;E.getDomElement=Cf.getDomElement;E.getLocationHref=Cf.getLocationHref;E.htmlTreeAsString=Cf.htmlTreeAsString;E.dsnFromString=lb.dsnFromString;E.dsnToString=lb.dsnToString;E.makeDsn=lb.makeDsn;E.SentryError=Ife.SentryError;E.GLOBAL_OBJ=Zj.GLOBAL_OBJ;E.getGlobalSingleton=Zj.getGlobalSingleton;E.addConsoleInstrumentationHandler=Pfe.addConsoleInstrumentationHandler;E.addFetchEndInstrumentationHandler=zj.addFetchEndInstrumentationHandler;E.addFetchInstrumentationHandler=zj.addFetchInstrumentationHandler;E.addGlobalErrorInstrumentationHandler=bfe.addGlobalErrorInstrumentationHandler;E.addGlobalUnhandledRejectionInstrumentationHandler=vfe.addGlobalUnhandledRejectionInstrumentationHandler;E.addHandler=Mf.addHandler;E.maybeInstrument=Mf.maybeInstrument;E.resetInstrumentationHandlers=Mf.resetInstrumentationHandlers;E.triggerHandlers=Mf.triggerHandlers;E.isDOMError=Yt.isDOMError;E.isDOMException=Yt.isDOMException;E.isElement=Yt.isElement;E.isError=Yt.isError;E.isErrorEvent=Yt.isErrorEvent;E.isEvent=Yt.isEvent;E.isInstanceOf=Yt.isInstanceOf;E.isParameterizedString=Yt.isParameterizedString;E.isPlainObject=Yt.isPlainObject;E.isPrimitive=Yt.isPrimitive;E.isRegExp=Yt.isRegExp;E.isString=Yt.isString;E.isSyntheticEvent=Yt.isSyntheticEvent;E.isThenable=Yt.isThenable;E.isVueViewModel=Yt.isVueViewModel;E.isBrowser=yfe.isBrowser;E.CONSOLE_LEVELS=Lf.CONSOLE_LEVELS;E.consoleSandbox=Lf.consoleSandbox;E.logger=Lf.logger;E.originalConsoleMethods=Lf.originalConsoleMethods;E.memoBuilder=Nfe.memoBuilder;E.addContextToFrame=Ko.addContextToFrame;E.addExceptionMechanism=Ko.addExceptionMechanism;E.addExceptionTypeValue=Ko.addExceptionTypeValue;E.arrayify=Ko.arrayify;E.checkOrSetAlreadyCaught=Ko.checkOrSetAlreadyCaught;E.getEventDescription=Ko.getEventDescription;E.parseSemver=Ko.parseSemver;E.uuid4=Ko.uuid4;E.dynamicRequire=db.dynamicRequire;E.isNodeEnv=db.isNodeEnv;E.loadModule=db.loadModule;E.normalize=pb.normalize;E.normalizeToSize=pb.normalizeToSize;E.normalizeUrlToBase=pb.normalizeUrlToBase;E.addNonEnumerableProperty=ao.addNonEnumerableProperty;E.convertToPlainObject=ao.convertToPlainObject;E.dropUndefinedKeys=ao.dropUndefinedKeys;E.extractExceptionKeysForMessage=ao.extractExceptionKeysForMessage;E.fill=ao.fill;E.getOriginalFunction=ao.getOriginalFunction;E.markFunctionWrapped=ao.markFunctionWrapped;E.objectify=ao.objectify;E.urlEncode=ao.urlEncode;E.basename=Ms.basename;E.dirname=Ms.dirname;E.isAbsolute=Ms.isAbsolute;E.join=Ms.join;E.normalizePath=Ms.normalizePath;E.relative=Ms.relative;E.resolve=Ms.resolve;E.makePromiseBuffer=Cfe.makePromiseBuffer;E.DEFAULT_USER_INCLUDES=Ls.DEFAULT_USER_INCLUDES;E.addNormalizedRequestDataToEvent=Ls.addNormalizedRequestDataToEvent;E.addRequestDataToEvent=Ls.addRequestDataToEvent;E.extractPathForTransaction=Ls.extractPathForTransaction;E.extractRequestData=Ls.extractRequestData;E.winterCGHeadersToDict=Ls.winterCGHeadersToDict;E.winterCGRequestToRequestData=Ls.winterCGRequestToRequestData;E.severityLevelFromString=Jj.severityLevelFromString;E.validSeverityLevels=Jj.validSeverityLevels;E.UNKNOWN_FUNCTION=Fa.UNKNOWN_FUNCTION;E.createStackParser=Fa.createStackParser;E.getFramesFromEvent=Fa.getFramesFromEvent;E.getFunctionName=Fa.getFunctionName;E.stackParserFromStackParserOptions=Fa.stackParserFromStackParserOptions;E.stripSentryFramesAndReverse=Fa.stripSentryFramesAndReverse;E.filenameIsInApp=_b.filenameIsInApp;E.node=_b.node;E.nodeStackLineParser=_b.nodeStackLineParser;E.isMatchingPattern=_d.isMatchingPattern;E.safeJoin=_d.safeJoin;E.snipLine=_d.snipLine;E.stringMatchesSomePattern=_d.stringMatchesSomePattern;E.truncate=_d.truncate;E.isNativeFunction=Xo.isNativeFunction;E.supportsDOMError=Xo.supportsDOMError;E.supportsDOMException=Xo.supportsDOMException;E.supportsErrorEvent=Xo.supportsErrorEvent;E.supportsFetch=Xo.supportsFetch;E.supportsNativeFetch=Xo.supportsNativeFetch;E.supportsReferrerPolicy=Xo.supportsReferrerPolicy;E.supportsReportingObserver=Xo.supportsReportingObserver;E.SyncPromise=fb.SyncPromise;E.rejectedSyncPromise=fb.rejectedSyncPromise;E.resolvedSyncPromise=fb.resolvedSyncPromise;Object.defineProperty(E,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>Df._browserPerformanceTimeOriginMode});E.browserPerformanceTimeOrigin=Df.browserPerformanceTimeOrigin;E.dateTimestampInSeconds=Df.dateTimestampInSeconds;E.timestampInSeconds=Df.timestampInSeconds;E.TRACEPARENT_REGEXP=Gf.TRACEPARENT_REGEXP;E.extractTraceparentData=Gf.extractTraceparentData;E.generateSentryTraceHeader=Gf.generateSentryTraceHeader;E.propagationContextFromHeaders=Gf.propagationContextFromHeaders;E.getSDKSource=$j.getSDKSource;E.isBrowserBundle=$j.isBrowserBundle;E.addItemToEnvelope=Jr.addItemToEnvelope;E.createAttachmentEnvelopeItem=Jr.createAttachmentEnvelopeItem;E.createEnvelope=Jr.createEnvelope;E.createEventEnvelopeHeaders=Jr.createEventEnvelopeHeaders;E.createSpanEnvelopeItem=Jr.createSpanEnvelopeItem;E.envelopeContainsItemType=Jr.envelopeContainsItemType;E.envelopeItemTypeToDataCategory=Jr.envelopeItemTypeToDataCategory;E.forEachEnvelopeItem=Jr.forEachEnvelopeItem;E.getSdkMetadataForEnvelopeHeader=Jr.getSdkMetadataForEnvelopeHeader;E.parseEnvelope=Jr.parseEnvelope;E.serializeEnvelope=Jr.serializeEnvelope;E.createClientReportEnvelope=Mfe.createClientReportEnvelope;E.DEFAULT_RETRY_AFTER=fd.DEFAULT_RETRY_AFTER;E.disabledUntil=fd.disabledUntil;E.isRateLimited=fd.isRateLimited;E.parseRetryAfterHeader=fd.parseRetryAfterHeader;E.updateRateLimits=fd.updateRateLimits;E.BAGGAGE_HEADER_NAME=Ds.BAGGAGE_HEADER_NAME;E.MAX_BAGGAGE_STRING_LENGTH=Ds.MAX_BAGGAGE_STRING_LENGTH;E.SENTRY_BAGGAGE_KEY_PREFIX=Ds.SENTRY_BAGGAGE_KEY_PREFIX;E.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=Ds.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;E.baggageHeaderToDynamicSamplingContext=Ds.baggageHeaderToDynamicSamplingContext;E.dynamicSamplingContextToSentryBaggageHeader=Ds.dynamicSamplingContextToSentryBaggageHeader;E.parseBaggageHeader=Ds.parseBaggageHeader;E.getNumberOfUrlSegments=xf.getNumberOfUrlSegments;E.getSanitizedUrlString=xf.getSanitizedUrlString;E.parseUrl=xf.parseUrl;E.stripUrlQueryAndFragment=xf.stripUrlQueryAndFragment;E.makeFifoCache=Lfe.makeFifoCache;E.eventFromMessage=Uf.eventFromMessage;E.eventFromUnknownInput=Uf.eventFromUnknownInput;E.exceptionFromError=Uf.exceptionFromError;E.parseStackFrames=Uf.parseStackFrames;E.callFrameToStackFrame=Qj.callFrameToStackFrame;E.watchdogTimer=Qj.watchdogTimer;E.LRUMap=Dfe.LRUMap;E.generatePropagationContext=Gfe.generatePropagationContext;E.vercelWaitUntil=xfe.vercelWaitUntil;E.SDK_VERSION=Ufe.SDK_VERSION;E.getDebugImagesForResources=eV.getDebugImagesForResources;E.getFilenameToDebugIdMap=eV.getFilenameToDebugIdMap;E.escapeStringForRegex=wfe.escapeStringForRegex;E.supportsHistory=qfe.supportsHistory;E._asyncNullishCoalesce=jfe._asyncNullishCoalesce;E._asyncOptionalChain=Vfe._asyncOptionalChain;E._asyncOptionalChainDelete=Bfe._asyncOptionalChainDelete;E._nullishCoalesce=Hfe._nullishCoalesce;E._optionalChain=Ffe._optionalChain;E._optionalChainDelete=kfe._optionalChainDelete});var tV,rV=H(()=>{tV=typeof globalThis=="object"?globalThis:global});var nV=H(()=>{rV()});var oV=H(()=>{nV()});var uo,gb=H(()=>{uo="1.9.0"});function Wfe(t){var e=new Set([t]),r=new Set,n=t.match(iV);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(u){return u===t};function i(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(u){if(e.has(u))return!0;if(r.has(u))return!1;var l=u.match(iV);if(!l)return i(u);var d={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return d.prerelease!=null||o.major!==d.major?i(u):o.major===0?o.minor===d.minor&&o.patch<=d.patch?s(u):i(u):o.minor<=d.minor?s(u):i(u)}}var iV,sV,aV=H(()=>{gb();iV=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;sV=Wfe(uo)});function En(t,e,r,n){var o;n===void 0&&(n=!1);var i=hd[gd]=(o=hd[gd])!==null&&o!==void 0?o:{version:uo};if(!n&&i[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(i.version!==uo){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+uo);return r.error(s.stack||s.message),!1}return i[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+uo+"."),!0}function Er(t){var e,r,n=(e=hd[gd])===null||e===void 0?void 0:e.version;if(!(!n||!sV(n)))return(r=hd[gd])===null||r===void 0?void 0:r[t]}function mn(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+uo+".");var r=hd[gd];r&&delete r[t]}var Yfe,gd,hd,Gs=H(()=>{oV();gb();aV();Yfe=uo.split(".")[0],gd=Symbol.for("opentelemetry.js.api."+Yfe),hd=tV});function Ed(t,e,r){var n=Er("diag");if(n)return r.unshift(e),n[t].apply(n,Xfe([],Kfe(r),!1))}var Kfe,Xfe,uV,cV=H(()=>{Gs();Kfe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Xfe=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},uV=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ed("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ed("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ed("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ed("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ed("verbose",this._namespace,e)},t}()});var _t,wf=H(()=>{(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(_t||(_t={}))});function lV(t,e){t<_t.NONE?t=_t.NONE:t>_t.ALL&&(t=_t.ALL),e=e||{};function r(n,o){var i=e[n];return typeof i=="function"&&t>=o?i.bind(e):function(){}}return{error:r("error",_t.ERROR),warn:r("warn",_t.WARN),info:r("info",_t.INFO),debug:r("debug",_t.DEBUG),verbose:r("verbose",_t.VERBOSE)}}var dV=H(()=>{wf()});var Zfe,zfe,Jfe,St,xs=H(()=>{cV();dV();wf();Gs();Zfe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},zfe=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},Jfe="diag",St=function(){function t(){function e(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=Er("diag");if(a)return a[o].apply(a,zfe([],Zfe(i),!1))}}var r=this,n=function(o,i){var s,a,u;if(i===void 0&&(i={logLevel:_t.INFO}),o===r){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=l.stack)!==null&&s!==void 0?s:l.message),!1}typeof i=="number"&&(i={logLevel:i});var d=Er("diag"),p=lV((a=i.logLevel)!==null&&a!==void 0?a:_t.INFO,o);if(d&&!i.suppressOverrideMessage){var _=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";d.warn("Current logger will be overwritten from "+_),p.warn("Current logger will overwrite one already registered from "+_)}return En("diag",p,r,!0)};r.setLogger=n,r.disable=function(){mn(Jfe,r)},r.createComponentLogger=function(o){return new uV(o)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}()});var $fe,Qfe,pV,_V=H(()=>{$fe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Qfe=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},pV=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=$fe(e,2),n=r[0],o=r[1];return[n,o]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new t(this._entries);try{for(var s=Qfe(n),a=s.next();!a.done;a=s.next()){var u=a.value;i._entries.delete(u)}}catch(l){e={error:l}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}()});var fV,gV=H(()=>{fV=Symbol("BaggageEntryMetadata")});function hV(t){return t===void 0&&(t={}),new pV(new Map(Object.entries(t)))}function EV(t){return typeof t!="string"&&(ege.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:fV,toString:function(){return t}}}var ege,hb=H(()=>{xs();_V();gV();ege=St.instance()});function ka(t){return Symbol.for(t)}var tge,qf,md=H(()=>{tge=function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,o){var i=new t(r._currentContext);return i._currentContext.set(n,o),i},r.deleteValue=function(n){var o=new t(r._currentContext);return o._currentContext.delete(n),o}}return t}(),qf=new tge});var Eb,mV,TV=H(()=>{Eb=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],mV=function(){function t(){function e(n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(console){var s=console[n];if(typeof s!="function"&&(s=console.log),typeof s=="function")return s.apply(console,o)}}}for(var r=0;r<Eb.length;r++)this[Eb[r].n]=e(Eb[r].c)}return t}()});function SV(){return Tb}var Us,rge,jf,nge,oge,ige,sge,mb,age,uge,cge,Tb,lge,dge,pge,_ge,fge,gge,hge,Sb=H(()=>{Us=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),rge=function(){function t(){}return t.prototype.createGauge=function(e,r){return dge},t.prototype.createHistogram=function(e,r){return pge},t.prototype.createCounter=function(e,r){return lge},t.prototype.createUpDownCounter=function(e,r){return _ge},t.prototype.createObservableGauge=function(e,r){return gge},t.prototype.createObservableCounter=function(e,r){return fge},t.prototype.createObservableUpDownCounter=function(e,r){return hge},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t}(),jf=function(){function t(){}return t}(),nge=function(t){Us(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(jf),oge=function(t){Us(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(jf),ige=function(t){Us(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(jf),sge=function(t){Us(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(jf),mb=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),age=function(t){Us(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mb),uge=function(t){Us(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mb),cge=function(t){Us(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mb),Tb=new rge,lge=new nge,dge=new ige,pge=new sge,_ge=new oge,fge=new age,gge=new uge,hge=new cge});var Vf,AV=H(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(Vf||(Vf={}))});var Bf,Hf,Ab=H(()=>{Bf={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},Hf={set:function(t,e,r){t!=null&&(t[e]=r)}}});var Ege,mge,OV,RV=H(()=>{md();Ege=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},mge=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},OV=function(){function t(){}return t.prototype.active=function(){return qf},t.prototype.with=function(e,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return r.call.apply(r,mge([n],Ege(o),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}()});var Tge,Sge,Ob,Age,Zo,Td=H(()=>{RV();Gs();xs();Tge=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Sge=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},Ob="context",Age=new OV,Zo=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return En(Ob,e,St.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,Sge([e,r,n],Tge(i),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return Er(Ob)||Age},t.prototype.disable=function(){this._getContextManager().disable(),mn(Ob,St.instance())},t}()});var Wa,Rb=H(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Wa||(Wa={}))});var Sd,Ad,Ff,kf=H(()=>{Rb();Sd="0000000000000000",Ad="00000000000000000000000000000000",Ff={traceId:Ad,spanId:Sd,traceFlags:Wa.NONE}});var zo,Wf=H(()=>{kf();zo=function(){function t(e){e===void 0&&(e=Ff),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t}()});function Yf(t){return t.getValue(Ib)||void 0}function IV(){return Yf(Zo.getInstance().active())}function Od(t,e){return t.setValue(Ib,e)}function PV(t){return t.deleteValue(Ib)}function bV(t,e){return Od(t,new zo(e))}function Kf(t){var e;return(e=Yf(t))===null||e===void 0?void 0:e.spanContext()}var Ib,Pb=H(()=>{md();Wf();Td();Ib=ka("OpenTelemetry Context Key SPAN")});function bb(t){return Oge.test(t)&&t!==Ad}function vb(t){return Rge.test(t)&&t!==Sd}function Ya(t){return bb(t.traceId)&&vb(t.spanId)}function vV(t){return new zo(t)}var Oge,Rge,Xf=H(()=>{kf();Wf();Oge=/^([0-9a-f]{32})$/i,Rge=/^[0-9a-f]{16}$/i});function Ige(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var yb,Zf,Nb=H(()=>{Td();Pb();Wf();Xf();yb=Zo.getInstance(),Zf=function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=yb.active());var o=!!r?.root;if(o)return new zo;var i=n&&Kf(n);return Ige(i)&&Ya(i)?new zo(i):new zo},t.prototype.startActiveSpan=function(e,r,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);var u=s??yb.active(),l=this.startSpan(e,i,u),d=Od(u,l);return yb.with(d,a,void 0,l)}},t}()});var Pge,zf,Cb=H(()=>{Nb();Pge=new Zf,zf=function(){function t(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Pge},t}()});var yV,NV=H(()=>{Nb();yV=function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new Zf},t}()});var bge,Rd,Mb=H(()=>{Cb();NV();bge=new yV,Rd=function(){function t(){}return t.prototype.getTracer=function(e,r,n){var o;return(o=this.getDelegateTracer(e,r,n))!==null&&o!==void 0?o:new zf(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:bge},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,r,n)},t}()});var Jf,CV=H(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Jf||(Jf={}))});var $f,MV=H(()=>{(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})($f||($f={}))});var Qf,LV=H(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(Qf||(Qf={}))});function DV(t){return Nge.test(t)}function GV(t){return Cge.test(t)&&!Mge.test(t)}var Lb,vge,yge,Nge,Cge,Mge,xV=H(()=>{Lb="[_0-9a-z-*/]",vge="[a-z]"+Lb+"{0,255}",yge="[a-z0-9]"+Lb+"{0,240}@[a-z]"+Lb+"{0,13}",Nge=new RegExp("^(?:"+vge+"|"+yge+")$"),Cge=/^[ -~]{0,255}[!-~]$/,Mge=/,|=/});var UV,Lge,wV,qV,jV,VV=H(()=>{xV();UV=32,Lge=512,wV=",",qV="=",jV=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,r){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n},t.prototype.unset=function(e){var r=this._clone();return r._internalState.delete(e),r},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(r,n){return r.push(n+qV+e.get(n)),r},[]).join(wV)},t.prototype._parse=function(e){e.length>Lge||(this._internalState=e.split(wV).reverse().reduce(function(r,n){var o=n.trim(),i=o.indexOf(qV);if(i!==-1){var s=o.slice(0,i),a=o.slice(i+1,n.length);DV(s)&&GV(a)&&r.set(s,a)}return r},new Map),this._internalState.size>UV&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,UV))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function BV(t){return new jV(t)}var HV=H(()=>{VV()});var Db,FV=H(()=>{Td();Db=Zo.getInstance()});var Gb,kV=H(()=>{xs();Gb=St.instance()});var Dge,WV,YV=H(()=>{Sb();Dge=function(){function t(){}return t.prototype.getMeter=function(e,r,n){return Tb},t}(),WV=new Dge});var xb,KV,XV=H(()=>{YV();Gs();xs();xb="metrics",KV=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return En(xb,e,St.instance())},t.prototype.getMeterProvider=function(){return Er(xb)||WV},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){mn(xb,St.instance())},t}()});var Ub,ZV=H(()=>{XV();Ub=KV.getInstance()});var zV,JV=H(()=>{zV=function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t}()});function qb(t){return t.getValue(wb)||void 0}function $V(){return qb(Zo.getInstance().active())}function QV(t,e){return t.setValue(wb,e)}function eB(t){return t.deleteValue(wb)}var wb,tB=H(()=>{Td();md();wb=ka("OpenTelemetry Baggage Key")});var jb,Gge,rB,nB=H(()=>{Gs();JV();Ab();tB();hb();xs();jb="propagation",Gge=new zV,rB=function(){function t(){this.createBaggage=hV,this.getBaggage=qb,this.getActiveBaggage=$V,this.setBaggage=QV,this.deleteBaggage=eB}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return En(jb,e,St.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=Hf),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=Bf),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){mn(jb,St.instance())},t.prototype._getGlobalPropagator=function(){return Er(jb)||Gge},t}()});var Vb,oB=H(()=>{nB();Vb=rB.getInstance()});var Bb,iB,sB=H(()=>{Gs();Mb();Xf();Pb();xs();Bb="trace",iB=function(){function t(){this._proxyTracerProvider=new Rd,this.wrapSpanContext=vV,this.isSpanContextValid=Ya,this.deleteSpan=PV,this.getSpan=Yf,this.getActiveSpan=IV,this.getSpanContext=Kf,this.setSpan=Od,this.setSpanContext=bV}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=En(Bb,this._proxyTracerProvider,St.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return Er(Bb)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){mn(Bb,St.instance()),this._proxyTracerProvider=new Rd},t}()});var Hb,aB=H(()=>{sB();Hb=iB.getInstance()});var I={};tq(I,{DiagConsoleLogger:()=>mV,DiagLogLevel:()=>_t,INVALID_SPANID:()=>Sd,INVALID_SPAN_CONTEXT:()=>Ff,INVALID_TRACEID:()=>Ad,ProxyTracer:()=>zf,ProxyTracerProvider:()=>Rd,ROOT_CONTEXT:()=>qf,SamplingDecision:()=>Jf,SpanKind:()=>$f,SpanStatusCode:()=>Qf,TraceFlags:()=>Wa,ValueType:()=>Vf,baggageEntryMetadataFromString:()=>EV,context:()=>Db,createContextKey:()=>ka,createNoopMeter:()=>SV,createTraceState:()=>BV,default:()=>xge,defaultTextMapGetter:()=>Bf,defaultTextMapSetter:()=>Hf,diag:()=>Gb,isSpanContextValid:()=>Ya,isValidSpanId:()=>vb,isValidTraceId:()=>bb,metrics:()=>Ub,propagation:()=>Vb,trace:()=>Hb});var xge,P=H(()=>{hb();md();TV();wf();Sb();AV();Ab();Cb();Mb();CV();MV();LV();Rb();HV();Xf();kf();FV();kV();ZV();oB();aB();xge={context:Db,diag:Gb,metrics:Ub,propagation:Vb,trace:Hb}});var Id=c(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.isTracingSuppressed=Jo.unsuppressTracing=Jo.suppressTracing=void 0;var Uge=(P(),m(I)),Fb=(0,Uge.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function wge(t){return t.setValue(Fb,!0)}Jo.suppressTracing=wge;function qge(t){return t.deleteValue(Fb)}Jo.unsuppressTracing=qge;function jge(t){return t.getValue(Fb)===!0}Jo.isTracingSuppressed=jge});var kb=c(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.BAGGAGE_MAX_TOTAL_LENGTH=At.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=At.BAGGAGE_MAX_NAME_VALUE_PAIRS=At.BAGGAGE_HEADER=At.BAGGAGE_ITEMS_SEPARATOR=At.BAGGAGE_PROPERTIES_SEPARATOR=At.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;At.BAGGAGE_KEY_PAIR_SEPARATOR="=";At.BAGGAGE_PROPERTIES_SEPARATOR=";";At.BAGGAGE_ITEMS_SEPARATOR=",";At.BAGGAGE_HEADER="baggage";At.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;At.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;At.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Wb=c(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.parseKeyPairsIntoRecord=Tn.parsePairKeyValue=Tn.getKeyPairs=Tn.serializeKeyPairs=void 0;var Vge=(P(),m(I)),ws=kb();function Bge(t){return t.reduce((e,r)=>{let n=`${e}${e!==""?ws.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>ws.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}Tn.serializeKeyPairs=Bge;function Hge(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=ws.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}Tn.getKeyPairs=Hge;function uB(t){let e=t.split(ws.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let n=r.indexOf(ws.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return e.length>0&&(s=(0,Vge.baggageEntryMetadataFromString)(e.join(ws.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}Tn.parsePairKeyValue=uB;function Fge(t){return typeof t!="string"||t.length===0?{}:t.split(ws.BAGGAGE_ITEMS_SEPARATOR).map(e=>uB(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,r)=>(e[r.key]=r.value,e),{})}Tn.parseKeyPairsIntoRecord=Fge});var cB=c(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.W3CBaggagePropagator=void 0;var Yb=(P(),m(I)),kge=Id(),qs=kb(),Kb=Wb(),Xb=class{inject(e,r,n){let o=Yb.propagation.getBaggage(e);if(!o||(0,kge.isTracingSuppressed)(e))return;let i=(0,Kb.getKeyPairs)(o).filter(a=>a.length<=qs.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,qs.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,Kb.serializeKeyPairs)(i);s.length>0&&n.set(r,qs.BAGGAGE_HEADER,s)}extract(e,r,n){let o=n.get(r,qs.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(qs.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return e;let s={};return i.length===0||(i.split(qs.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,Kb.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),s[l.key]=d}}),Object.entries(s).length===0)?e:Yb.propagation.setBaggage(e,Yb.propagation.createBaggage(s))}fields(){return[qs.BAGGAGE_HEADER]}};eg.W3CBaggagePropagator=Xb});var lB=c(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.AnchoredClock=void 0;var Zb=class{constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};tg.AnchoredClock=Zb});var gB=c($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.isAttributeValue=$o.isAttributeKey=$o.sanitizeAttributes=void 0;var dB=(P(),m(I));function Wge(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,n]of Object.entries(t)){if(!pB(r)){dB.diag.warn(`Invalid attribute key: ${r}`);continue}if(!_B(n)){dB.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}$o.sanitizeAttributes=Wge;function pB(t){return typeof t=="string"&&t.length>0}$o.isAttributeKey=pB;function _B(t){return t==null?!0:Array.isArray(t)?Yge(t):fB(t)}$o.isAttributeValue=_B;function Yge(t){let e;for(let r of t)if(r!=null){if(!e){if(fB(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function fB(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var zb=c(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.loggingErrorHandler=void 0;var Kge=(P(),m(I));function Xge(){return t=>{Kge.diag.error(Zge(t))}}rg.loggingErrorHandler=Xge;function Zge(t){return typeof t=="string"?t:JSON.stringify(zge(t))}function zge(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;let o=r[n];o&&(e[n]=String(o))}),r=Object.getPrototypeOf(r);return e}});var Jb=c(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.globalErrorHandler=Ka.setGlobalErrorHandler=void 0;var Jge=zb(),hB=(0,Jge.loggingErrorHandler)();function $ge(t){hB=t}Ka.setGlobalErrorHandler=$ge;function Qge(t){try{hB(t)}catch{}}Ka.globalErrorHandler=Qge});var $b=c(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.TracesSamplerValues=void 0;var ehe;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(ehe=Pd.TracesSamplerValues||(Pd.TracesSamplerValues={}))});var Qb=c(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.parseEnvironment=be.DEFAULT_ENVIRONMENT=be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=be.DEFAULT_ATTRIBUTE_COUNT_LIMIT=be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Qo=(P(),m(I)),the=$b(),rhe=",",nhe=["OTEL_SDK_DISABLED"];function ohe(t){return nhe.indexOf(t)>-1}var ihe=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function she(t){return ihe.indexOf(t)>-1}var ahe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function uhe(t){return ahe.indexOf(t)>-1}be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;be.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;be.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Qo.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:the.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function che(t,e,r){if(typeof r[t]>"u")return;let n=String(r[t]);e[t]=n.toLowerCase()==="true"}function lhe(t,e,r,n=-1/0,o=1/0){if(typeof r[t]<"u"){let i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}function dhe(t,e,r,n=rhe){let o=r[t];typeof o=="string"&&(e[t]=o.split(n).map(i=>i.trim()))}var phe={ALL:Qo.DiagLogLevel.ALL,VERBOSE:Qo.DiagLogLevel.VERBOSE,DEBUG:Qo.DiagLogLevel.DEBUG,INFO:Qo.DiagLogLevel.INFO,WARN:Qo.DiagLogLevel.WARN,ERROR:Qo.DiagLogLevel.ERROR,NONE:Qo.DiagLogLevel.NONE};function _he(t,e,r){let n=r[t];if(typeof n=="string"){let o=phe[n.toUpperCase()];o!=null&&(e[t]=o)}}function fhe(t){let e={};for(let r in be.DEFAULT_ENVIRONMENT){let n=r;switch(n){case"OTEL_LOG_LEVEL":_he(n,e,t);break;default:if(ohe(n))che(n,e,t);else if(she(n))lhe(n,e,t);else if(uhe(n))dhe(n,e,t);else{let o=t[n];typeof o<"u"&&o!==null&&(e[n]=String(o))}}}return e}be.parseEnvironment=fhe});var EB=c(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.getEnvWithoutDefaults=Xa.getEnv=void 0;var ev=Qb();function ghe(){let t=(0,ev.parseEnvironment)(process.env);return Object.assign({},ev.DEFAULT_ENVIRONMENT,t)}Xa.getEnv=ghe;function hhe(){return(0,ev.parseEnvironment)(process.env)}Xa.getEnvWithoutDefaults=hhe});var mB=c(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng._globalThis=void 0;ng._globalThis=typeof globalThis=="object"?globalThis:global});var tv=c(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.hexToBinary=void 0;function TB(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Ehe(t){let e=new Uint8Array(t.length/2),r=0;for(let n=0;n<t.length;n+=2){let o=TB(t.charCodeAt(n)),i=TB(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}og.hexToBinary=Ehe});var SB=c(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.hexToBase64=void 0;var mhe=tv();function The(t){return Buffer.from((0,mhe.hexToBinary)(t)).toString("base64")}ig.hexToBase64=The});var RB=c(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.RandomIdGenerator=void 0;var She=8,OB=16,rv=class{constructor(){this.generateTraceId=AB(OB),this.generateSpanId=AB(She)}};ag.RandomIdGenerator=rv;var sg=Buffer.allocUnsafe(OB);function AB(t){return function(){for(let r=0;r<t/4;r++)sg.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(sg[r]>0);r++)r===t-1&&(sg[t-1]=1);return sg.toString("hex",0,t)}}});var IB=c(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});ug.otperformance=void 0;var Ahe=require("perf_hooks");ug.otperformance=Ahe.performance});var nv=c(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});cg.VERSION=void 0;cg.VERSION="1.26.0"});function De(t){for(var e={},r=t.length,n=0;n<r;n++){var o=t[n];o&&(e[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return e}var ov=H(()=>{});var PB,bB,vB,yB,NB,CB,MB,LB,DB,GB,xB,UB,wB,qB,jB,VB,BB,HB,FB,kB,WB,YB,KB,XB,ZB,zB,JB,$B,QB,eH,tH,rH,nH,oH,iH,sH,aH,uH,cH,lH,dH,pH,_H,fH,gH,hH,EH,mH,TH,SH,AH,OH,RH,IH,PH,bH,vH,yH,NH,CH,MH,LH,DH,GH,xH,UH,wH,qH,jH,VH,BH,HH,FH,kH,WH,YH,KH,XH,ZH,zH,JH,$H,QH,eF,tF,rF,nF,oF,iF,sF,aF,uF,cF,lF,dF,pF,_F,fF,gF,hF,EF,mF,TF,SF,AF,OF,RF,IF,PF,bF,vF,yF,NF,CF,MF,LF,DF,GF,xF,UF,wF,qF,jF,VF,BF,HF,FF,kF,Ohe,Rhe,Ihe,Phe,bhe,vhe,yhe,Nhe,Che,Mhe,Lhe,Dhe,Ghe,xhe,Uhe,whe,qhe,jhe,Vhe,Bhe,Hhe,Fhe,khe,Whe,Yhe,Khe,Xhe,Zhe,zhe,Jhe,$he,Qhe,eEe,tEe,rEe,nEe,oEe,iEe,sEe,aEe,uEe,cEe,lEe,dEe,pEe,_Ee,fEe,gEe,hEe,EEe,mEe,TEe,SEe,AEe,OEe,REe,IEe,PEe,bEe,vEe,yEe,NEe,CEe,MEe,LEe,DEe,GEe,xEe,UEe,wEe,qEe,jEe,VEe,BEe,HEe,FEe,kEe,WEe,YEe,KEe,XEe,ZEe,zEe,JEe,$Ee,QEe,eme,tme,rme,nme,ome,ime,sme,ame,ume,cme,lme,dme,pme,_me,fme,gme,hme,Eme,mme,Tme,Sme,Ame,Ome,Rme,Ime,Pme,bme,vme,yme,Nme,Cme,Mme,Lme,Dme,Gme,xme,Ume,wme,qme,jme,Vme,Bme,Hme,WF,YF,KF,XF,ZF,zF,JF,$F,QF,ek,tk,rk,nk,ok,ik,sk,ak,uk,ck,lk,dk,pk,_k,fk,gk,hk,Ek,mk,Tk,Sk,Ak,Ok,Rk,Ik,Pk,bk,vk,yk,Nk,Ck,Mk,Lk,Dk,Gk,xk,Uk,wk,Fme,kme,Wme,Yme,Kme,Xme,Zme,zme,Jme,$me,Qme,eTe,tTe,rTe,nTe,oTe,iTe,sTe,aTe,uTe,cTe,lTe,dTe,pTe,_Te,fTe,gTe,hTe,ETe,mTe,TTe,STe,ATe,OTe,RTe,ITe,PTe,bTe,vTe,yTe,NTe,CTe,MTe,LTe,DTe,GTe,xTe,UTe,qk,jk,Vk,Bk,Hk,Fk,kk,Wk,Yk,Kk,Xk,wTe,qTe,jTe,VTe,BTe,HTe,FTe,kTe,WTe,YTe,KTe,XTe,Zk,zk,Jk,$k,Qk,ZTe,zTe,JTe,$Te,QTe,eSe,eW,tW,rW,tSe,rSe,nSe,oSe,nW,oW,iW,sW,iSe,sSe,aSe,uSe,cSe,aW,uW,cW,lW,dW,pW,_W,lSe,dSe,pSe,_Se,fSe,gSe,hSe,ESe,fW,gW,hW,EW,mW,mSe,TSe,SSe,ASe,OSe,RSe,TW,SW,AW,OW,RW,IW,PW,bW,vW,yW,NW,CW,MW,LW,DW,GW,xW,UW,wW,qW,jW,ISe,PSe,bSe,vSe,ySe,NSe,CSe,MSe,LSe,DSe,GSe,xSe,USe,wSe,qSe,jSe,VSe,BSe,HSe,FSe,kSe,WSe,VW,BW,HW,FW,kW,YSe,KSe,XSe,ZSe,zSe,JSe,WW,YW,$Se,QSe,eAe,KW,XW,tAe,rAe,nAe,ZW,zW,JW,$W,QW,eY,tY,rY,nY,oY,iY,sY,aY,uY,cY,lY,dY,oAe,iAe,sAe,aAe,uAe,cAe,lAe,dAe,pAe,_Ae,fAe,gAe,hAe,EAe,mAe,TAe,SAe,AAe,pY,_Y,OAe,RAe,IAe,fY=H(()=>{ov();PB="aws.lambda.invoked_arn",bB="db.system",vB="db.connection_string",yB="db.user",NB="db.jdbc.driver_classname",CB="db.name",MB="db.statement",LB="db.operation",DB="db.mssql.instance_name",GB="db.cassandra.keyspace",xB="db.cassandra.page_size",UB="db.cassandra.consistency_level",wB="db.cassandra.table",qB="db.cassandra.idempotence",jB="db.cassandra.speculative_execution_count",VB="db.cassandra.coordinator.id",BB="db.cassandra.coordinator.dc",HB="db.hbase.namespace",FB="db.redis.database_index",kB="db.mongodb.collection",WB="db.sql.table",YB="exception.type",KB="exception.message",XB="exception.stacktrace",ZB="exception.escaped",zB="faas.trigger",JB="faas.execution",$B="faas.document.collection",QB="faas.document.operation",eH="faas.document.time",tH="faas.document.name",rH="faas.time",nH="faas.cron",oH="faas.coldstart",iH="faas.invoked_name",sH="faas.invoked_provider",aH="faas.invoked_region",uH="net.transport",cH="net.peer.ip",lH="net.peer.port",dH="net.peer.name",pH="net.host.ip",_H="net.host.port",fH="net.host.name",gH="net.host.connection.type",hH="net.host.connection.subtype",EH="net.host.carrier.name",mH="net.host.carrier.mcc",TH="net.host.carrier.mnc",SH="net.host.carrier.icc",AH="peer.service",OH="enduser.id",RH="enduser.role",IH="enduser.scope",PH="thread.id",bH="thread.name",vH="code.function",yH="code.namespace",NH="code.filepath",CH="code.lineno",MH="http.method",LH="http.url",DH="http.target",GH="http.host",xH="http.scheme",UH="http.status_code",wH="http.flavor",qH="http.user_agent",jH="http.request_content_length",VH="http.request_content_length_uncompressed",BH="http.response_content_length",HH="http.response_content_length_uncompressed",FH="http.server_name",kH="http.route",WH="http.client_ip",YH="aws.dynamodb.table_names",KH="aws.dynamodb.consumed_capacity",XH="aws.dynamodb.item_collection_metrics",ZH="aws.dynamodb.provisioned_read_capacity",zH="aws.dynamodb.provisioned_write_capacity",JH="aws.dynamodb.consistent_read",$H="aws.dynamodb.projection",QH="aws.dynamodb.limit",eF="aws.dynamodb.attributes_to_get",tF="aws.dynamodb.index_name",rF="aws.dynamodb.select",nF="aws.dynamodb.global_secondary_indexes",oF="aws.dynamodb.local_secondary_indexes",iF="aws.dynamodb.exclusive_start_table",sF="aws.dynamodb.table_count",aF="aws.dynamodb.scan_forward",uF="aws.dynamodb.segment",cF="aws.dynamodb.total_segments",lF="aws.dynamodb.count",dF="aws.dynamodb.scanned_count",pF="aws.dynamodb.attribute_definitions",_F="aws.dynamodb.global_secondary_index_updates",fF="messaging.system",gF="messaging.destination",hF="messaging.destination_kind",EF="messaging.temp_destination",mF="messaging.protocol",TF="messaging.protocol_version",SF="messaging.url",AF="messaging.message_id",OF="messaging.conversation_id",RF="messaging.message_payload_size_bytes",IF="messaging.message_payload_compressed_size_bytes",PF="messaging.operation",bF="messaging.consumer_id",vF="messaging.rabbitmq.routing_key",yF="messaging.kafka.message_key",NF="messaging.kafka.consumer_group",CF="messaging.kafka.client_id",MF="messaging.kafka.partition",LF="messaging.kafka.tombstone",DF="rpc.system",GF="rpc.service",xF="rpc.method",UF="rpc.grpc.status_code",wF="rpc.jsonrpc.version",qF="rpc.jsonrpc.request_id",jF="rpc.jsonrpc.error_code",VF="rpc.jsonrpc.error_message",BF="message.type",HF="message.id",FF="message.compressed_size",kF="message.uncompressed_size",Ohe=PB,Rhe=bB,Ihe=vB,Phe=yB,bhe=NB,vhe=CB,yhe=MB,Nhe=LB,Che=DB,Mhe=GB,Lhe=xB,Dhe=UB,Ghe=wB,xhe=qB,Uhe=jB,whe=VB,qhe=BB,jhe=HB,Vhe=FB,Bhe=kB,Hhe=WB,Fhe=YB,khe=KB,Whe=XB,Yhe=ZB,Khe=zB,Xhe=JB,Zhe=$B,zhe=QB,Jhe=eH,$he=tH,Qhe=rH,eEe=nH,tEe=oH,rEe=iH,nEe=sH,oEe=aH,iEe=uH,sEe=cH,aEe=lH,uEe=dH,cEe=pH,lEe=_H,dEe=fH,pEe=gH,_Ee=hH,fEe=EH,gEe=mH,hEe=TH,EEe=SH,mEe=AH,TEe=OH,SEe=RH,AEe=IH,OEe=PH,REe=bH,IEe=vH,PEe=yH,bEe=NH,vEe=CH,yEe=MH,NEe=LH,CEe=DH,MEe=GH,LEe=xH,DEe=UH,GEe=wH,xEe=qH,UEe=jH,wEe=VH,qEe=BH,jEe=HH,VEe=FH,BEe=kH,HEe=WH,FEe=YH,kEe=KH,WEe=XH,YEe=ZH,KEe=zH,XEe=JH,ZEe=$H,zEe=QH,JEe=eF,$Ee=tF,QEe=rF,eme=nF,tme=oF,rme=iF,nme=sF,ome=aF,ime=uF,sme=cF,ame=lF,ume=dF,cme=pF,lme=_F,dme=fF,pme=gF,_me=hF,fme=EF,gme=mF,hme=TF,Eme=SF,mme=AF,Tme=OF,Sme=RF,Ame=IF,Ome=PF,Rme=bF,Ime=vF,Pme=yF,bme=NF,vme=CF,yme=MF,Nme=LF,Cme=DF,Mme=GF,Lme=xF,Dme=UF,Gme=wF,xme=qF,Ume=jF,wme=VF,qme=BF,jme=HF,Vme=FF,Bme=kF,Hme=De([PB,bB,vB,yB,NB,CB,MB,LB,DB,GB,xB,UB,wB,qB,jB,VB,BB,HB,FB,kB,WB,YB,KB,XB,ZB,zB,JB,$B,QB,eH,tH,rH,nH,oH,iH,sH,aH,uH,cH,lH,dH,pH,_H,fH,gH,hH,EH,mH,TH,SH,AH,OH,RH,IH,PH,bH,vH,yH,NH,CH,MH,LH,DH,GH,xH,UH,wH,qH,jH,VH,BH,HH,FH,kH,WH,YH,KH,XH,ZH,zH,JH,$H,QH,eF,tF,rF,nF,oF,iF,sF,aF,uF,cF,lF,dF,pF,_F,fF,gF,hF,EF,mF,TF,SF,AF,OF,RF,IF,PF,bF,vF,yF,NF,CF,MF,LF,DF,GF,xF,UF,wF,qF,jF,VF,BF,HF,FF,kF]),WF="other_sql",YF="mssql",KF="mysql",XF="oracle",ZF="db2",zF="postgresql",JF="redshift",$F="hive",QF="cloudscape",ek="hsqldb",tk="progress",rk="maxdb",nk="hanadb",ok="ingres",ik="firstsql",sk="edb",ak="cache",uk="adabas",ck="firebird",lk="derby",dk="filemaker",pk="informix",_k="instantdb",fk="interbase",gk="mariadb",hk="netezza",Ek="pervasive",mk="pointbase",Tk="sqlite",Sk="sybase",Ak="teradata",Ok="vertica",Rk="h2",Ik="coldfusion",Pk="cassandra",bk="hbase",vk="mongodb",yk="redis",Nk="couchbase",Ck="couchdb",Mk="cosmosdb",Lk="dynamodb",Dk="neo4j",Gk="geode",xk="elasticsearch",Uk="memcached",wk="cockroachdb",Fme=WF,kme=YF,Wme=KF,Yme=XF,Kme=ZF,Xme=zF,Zme=JF,zme=$F,Jme=QF,$me=ek,Qme=tk,eTe=rk,tTe=nk,rTe=ok,nTe=ik,oTe=sk,iTe=ak,sTe=uk,aTe=ck,uTe=lk,cTe=dk,lTe=pk,dTe=_k,pTe=fk,_Te=gk,fTe=hk,gTe=Ek,hTe=mk,ETe=Tk,mTe=Sk,TTe=Ak,STe=Ok,ATe=Rk,OTe=Ik,RTe=Pk,ITe=bk,PTe=vk,bTe=yk,vTe=Nk,yTe=Ck,NTe=Mk,CTe=Lk,MTe=Dk,LTe=Gk,DTe=xk,GTe=Uk,xTe=wk,UTe=De([WF,YF,KF,XF,ZF,zF,JF,$F,QF,ek,tk,rk,nk,ok,ik,sk,ak,uk,ck,lk,dk,pk,_k,fk,gk,hk,Ek,mk,Tk,Sk,Ak,Ok,Rk,Ik,Pk,bk,vk,yk,Nk,Ck,Mk,Lk,Dk,Gk,xk,Uk,wk]),qk="all",jk="each_quorum",Vk="quorum",Bk="local_quorum",Hk="one",Fk="two",kk="three",Wk="local_one",Yk="any",Kk="serial",Xk="local_serial",wTe=qk,qTe=jk,jTe=Vk,VTe=Bk,BTe=Hk,HTe=Fk,FTe=kk,kTe=Wk,WTe=Yk,YTe=Kk,KTe=Xk,XTe=De([qk,jk,Vk,Bk,Hk,Fk,kk,Wk,Yk,Kk,Xk]),Zk="datasource",zk="http",Jk="pubsub",$k="timer",Qk="other",ZTe=Zk,zTe=zk,JTe=Jk,$Te=$k,QTe=Qk,eSe=De([Zk,zk,Jk,$k,Qk]),eW="insert",tW="edit",rW="delete",tSe=eW,rSe=tW,nSe=rW,oSe=De([eW,tW,rW]),nW="alibaba_cloud",oW="aws",iW="azure",sW="gcp",iSe=nW,sSe=oW,aSe=iW,uSe=sW,cSe=De([nW,oW,iW,sW]),aW="ip_tcp",uW="ip_udp",cW="ip",lW="unix",dW="pipe",pW="inproc",_W="other",lSe=aW,dSe=uW,pSe=cW,_Se=lW,fSe=dW,gSe=pW,hSe=_W,ESe=De([aW,uW,cW,lW,dW,pW,_W]),fW="wifi",gW="wired",hW="cell",EW="unavailable",mW="unknown",mSe=fW,TSe=gW,SSe=hW,ASe=EW,OSe=mW,RSe=De([fW,gW,hW,EW,mW]),TW="gprs",SW="edge",AW="umts",OW="cdma",RW="evdo_0",IW="evdo_a",PW="cdma2000_1xrtt",bW="hsdpa",vW="hsupa",yW="hspa",NW="iden",CW="evdo_b",MW="lte",LW="ehrpd",DW="hspap",GW="gsm",xW="td_scdma",UW="iwlan",wW="nr",qW="nrnsa",jW="lte_ca",ISe=TW,PSe=SW,bSe=AW,vSe=OW,ySe=RW,NSe=IW,CSe=PW,MSe=bW,LSe=vW,DSe=yW,GSe=NW,xSe=CW,USe=MW,wSe=LW,qSe=DW,jSe=GW,VSe=xW,BSe=UW,HSe=wW,FSe=qW,kSe=jW,WSe=De([TW,SW,AW,OW,RW,IW,PW,bW,vW,yW,NW,CW,MW,LW,DW,GW,xW,UW,wW,qW,jW]),VW="1.0",BW="1.1",HW="2.0",FW="SPDY",kW="QUIC",YSe=VW,KSe=BW,XSe=HW,ZSe=FW,zSe=kW,JSe={HTTP_1_0:VW,HTTP_1_1:BW,HTTP_2_0:HW,SPDY:FW,QUIC:kW},WW="queue",YW="topic",$Se=WW,QSe=YW,eAe=De([WW,YW]),KW="receive",XW="process",tAe=KW,rAe=XW,nAe=De([KW,XW]),ZW=0,zW=1,JW=2,$W=3,QW=4,eY=5,tY=6,rY=7,nY=8,oY=9,iY=10,sY=11,aY=12,uY=13,cY=14,lY=15,dY=16,oAe=ZW,iAe=zW,sAe=JW,aAe=$W,uAe=QW,cAe=eY,lAe=tY,dAe=rY,pAe=nY,_Ae=oY,fAe=iY,gAe=sY,hAe=aY,EAe=uY,mAe=cY,TAe=lY,SAe=dY,AAe={OK:ZW,CANCELLED:zW,UNKNOWN:JW,INVALID_ARGUMENT:$W,DEADLINE_EXCEEDED:QW,NOT_FOUND:eY,ALREADY_EXISTS:tY,PERMISSION_DENIED:rY,RESOURCE_EXHAUSTED:nY,FAILED_PRECONDITION:oY,ABORTED:iY,OUT_OF_RANGE:sY,UNIMPLEMENTED:aY,INTERNAL:uY,UNAVAILABLE:cY,DATA_LOSS:lY,UNAUTHENTICATED:dY},pY="SENT",_Y="RECEIVED",OAe=pY,RAe=_Y,IAe=De([pY,_Y])});var gY=H(()=>{fY()});var hY,EY,mY,TY,SY,AY,OY,RY,IY,PY,bY,vY,yY,NY,CY,MY,LY,DY,GY,xY,UY,wY,qY,jY,VY,BY,HY,FY,kY,WY,YY,KY,XY,ZY,zY,JY,$Y,QY,eK,tK,rK,nK,oK,iK,sK,aK,uK,cK,lK,dK,pK,_K,fK,gK,hK,EK,mK,TK,SK,AK,OK,RK,IK,PK,bK,vK,yK,NK,CK,MK,LK,DK,GK,xK,UK,wK,qK,jK,VK,BK,HK,PAe,bAe,vAe,yAe,NAe,CAe,MAe,LAe,DAe,GAe,xAe,UAe,wAe,qAe,jAe,VAe,BAe,HAe,FAe,kAe,WAe,YAe,KAe,XAe,ZAe,zAe,JAe,$Ae,QAe,eOe,tOe,rOe,nOe,oOe,iOe,sOe,aOe,uOe,cOe,lOe,dOe,pOe,_Oe,fOe,gOe,hOe,EOe,mOe,TOe,SOe,AOe,OOe,ROe,IOe,POe,bOe,vOe,yOe,NOe,COe,MOe,LOe,DOe,GOe,xOe,UOe,wOe,qOe,jOe,VOe,BOe,HOe,FOe,kOe,WOe,YOe,KOe,XOe,ZOe,zOe,JOe,$Oe,FK,kK,WK,YK,QOe,eRe,tRe,rRe,nRe,KK,XK,ZK,zK,JK,$K,QK,e2,t2,r2,n2,o2,i2,s2,a2,u2,c2,oRe,iRe,sRe,aRe,uRe,cRe,lRe,dRe,pRe,_Re,fRe,gRe,hRe,ERe,mRe,TRe,SRe,ARe,l2,d2,ORe,RRe,IRe,p2,_2,f2,g2,h2,E2,m2,PRe,bRe,vRe,yRe,NRe,CRe,MRe,LRe,T2,S2,A2,O2,R2,I2,P2,b2,v2,y2,N2,DRe,GRe,xRe,URe,wRe,qRe,jRe,VRe,BRe,HRe,FRe,kRe,C2,M2,L2,D2,G2,x2,U2,w2,q2,j2,WRe,YRe,KRe,XRe,ZRe,zRe,JRe,$Re,QRe,eIe,tIe,V2=H(()=>{ov();hY="cloud.provider",EY="cloud.account.id",mY="cloud.region",TY="cloud.availability_zone",SY="cloud.platform",AY="aws.ecs.container.arn",OY="aws.ecs.cluster.arn",RY="aws.ecs.launchtype",IY="aws.ecs.task.arn",PY="aws.ecs.task.family",bY="aws.ecs.task.revision",vY="aws.eks.cluster.arn",yY="aws.log.group.names",NY="aws.log.group.arns",CY="aws.log.stream.names",MY="aws.log.stream.arns",LY="container.name",DY="container.id",GY="container.runtime",xY="container.image.name",UY="container.image.tag",wY="deployment.environment",qY="device.id",jY="device.model.identifier",VY="device.model.name",BY="faas.name",HY="faas.id",FY="faas.version",kY="faas.instance",WY="faas.max_memory",YY="host.id",KY="host.name",XY="host.type",ZY="host.arch",zY="host.image.name",JY="host.image.id",$Y="host.image.version",QY="k8s.cluster.name",eK="k8s.node.name",tK="k8s.node.uid",rK="k8s.namespace.name",nK="k8s.pod.uid",oK="k8s.pod.name",iK="k8s.container.name",sK="k8s.replicaset.uid",aK="k8s.replicaset.name",uK="k8s.deployment.uid",cK="k8s.deployment.name",lK="k8s.statefulset.uid",dK="k8s.statefulset.name",pK="k8s.daemonset.uid",_K="k8s.daemonset.name",fK="k8s.job.uid",gK="k8s.job.name",hK="k8s.cronjob.uid",EK="k8s.cronjob.name",mK="os.type",TK="os.description",SK="os.name",AK="os.version",OK="process.pid",RK="process.executable.name",IK="process.executable.path",PK="process.command",bK="process.command_line",vK="process.command_args",yK="process.owner",NK="process.runtime.name",CK="process.runtime.version",MK="process.runtime.description",LK="service.name",DK="service.namespace",GK="service.instance.id",xK="service.version",UK="telemetry.sdk.name",wK="telemetry.sdk.language",qK="telemetry.sdk.version",jK="telemetry.auto.version",VK="webengine.name",BK="webengine.version",HK="webengine.description",PAe=hY,bAe=EY,vAe=mY,yAe=TY,NAe=SY,CAe=AY,MAe=OY,LAe=RY,DAe=IY,GAe=PY,xAe=bY,UAe=vY,wAe=yY,qAe=NY,jAe=CY,VAe=MY,BAe=LY,HAe=DY,FAe=GY,kAe=xY,WAe=UY,YAe=wY,KAe=qY,XAe=jY,ZAe=VY,zAe=BY,JAe=HY,$Ae=FY,QAe=kY,eOe=WY,tOe=YY,rOe=KY,nOe=XY,oOe=ZY,iOe=zY,sOe=JY,aOe=$Y,uOe=QY,cOe=eK,lOe=tK,dOe=rK,pOe=nK,_Oe=oK,fOe=iK,gOe=sK,hOe=aK,EOe=uK,mOe=cK,TOe=lK,SOe=dK,AOe=pK,OOe=_K,ROe=fK,IOe=gK,POe=hK,bOe=EK,vOe=mK,yOe=TK,NOe=SK,COe=AK,MOe=OK,LOe=RK,DOe=IK,GOe=PK,xOe=bK,UOe=vK,wOe=yK,qOe=NK,jOe=CK,VOe=MK,BOe=LK,HOe=DK,FOe=GK,kOe=xK,WOe=UK,YOe=wK,KOe=qK,XOe=jK,ZOe=VK,zOe=BK,JOe=HK,$Oe=De([hY,EY,mY,TY,SY,AY,OY,RY,IY,PY,bY,vY,yY,NY,CY,MY,LY,DY,GY,xY,UY,wY,qY,jY,VY,BY,HY,FY,kY,WY,YY,KY,XY,ZY,zY,JY,$Y,QY,eK,tK,rK,nK,oK,iK,sK,aK,uK,cK,lK,dK,pK,_K,fK,gK,hK,EK,mK,TK,SK,AK,OK,RK,IK,PK,bK,vK,yK,NK,CK,MK,LK,DK,GK,xK,UK,wK,qK,jK,VK,BK,HK]),FK="alibaba_cloud",kK="aws",WK="azure",YK="gcp",QOe=FK,eRe=kK,tRe=WK,rRe=YK,nRe=De([FK,kK,WK,YK]),KK="alibaba_cloud_ecs",XK="alibaba_cloud_fc",ZK="aws_ec2",zK="aws_ecs",JK="aws_eks",$K="aws_lambda",QK="aws_elastic_beanstalk",e2="azure_vm",t2="azure_container_instances",r2="azure_aks",n2="azure_functions",o2="azure_app_service",i2="gcp_compute_engine",s2="gcp_cloud_run",a2="gcp_kubernetes_engine",u2="gcp_cloud_functions",c2="gcp_app_engine",oRe=KK,iRe=XK,sRe=ZK,aRe=zK,uRe=JK,cRe=$K,lRe=QK,dRe=e2,pRe=t2,_Re=r2,fRe=n2,gRe=o2,hRe=i2,ERe=s2,mRe=a2,TRe=u2,SRe=c2,ARe=De([KK,XK,ZK,zK,JK,$K,QK,e2,t2,r2,n2,o2,i2,s2,a2,u2,c2]),l2="ec2",d2="fargate",ORe=l2,RRe=d2,IRe=De([l2,d2]),p2="amd64",_2="arm32",f2="arm64",g2="ia64",h2="ppc32",E2="ppc64",m2="x86",PRe=p2,bRe=_2,vRe=f2,yRe=g2,NRe=h2,CRe=E2,MRe=m2,LRe=De([p2,_2,f2,g2,h2,E2,m2]),T2="windows",S2="linux",A2="darwin",O2="freebsd",R2="netbsd",I2="openbsd",P2="dragonflybsd",b2="hpux",v2="aix",y2="solaris",N2="z_os",DRe=T2,GRe=S2,xRe=A2,URe=O2,wRe=R2,qRe=I2,jRe=P2,VRe=b2,BRe=v2,HRe=y2,FRe=N2,kRe=De([T2,S2,A2,O2,R2,I2,P2,b2,v2,y2,N2]),C2="cpp",M2="dotnet",L2="erlang",D2="go",G2="java",x2="nodejs",U2="php",w2="python",q2="ruby",j2="webjs",WRe=C2,YRe=M2,KRe=L2,XRe=D2,ZRe=G2,zRe=x2,JRe=U2,$Re=w2,QRe=q2,eIe=j2,tIe=De([C2,M2,L2,D2,G2,x2,U2,w2,q2,j2])});var B2=H(()=>{V2()});var rIe,nIe,oIe,iIe,sIe,aIe,uIe,cIe,lIe,dIe,pIe,_Ie,fIe,gIe,hIe,EIe,mIe,TIe,SIe,AIe,OIe,RIe,IIe,PIe,bIe,vIe,yIe,NIe,CIe,MIe,LIe,DIe,GIe,xIe,UIe,wIe,qIe,jIe,VIe,BIe,HIe,FIe,kIe,WIe,YIe,KIe,XIe,ZIe,zIe,JIe,$Ie,QIe,ePe,tPe,rPe,nPe,oPe,iPe,sPe,aPe,uPe,cPe,lPe,dPe,pPe,_Pe,fPe,gPe,hPe,EPe,mPe,TPe,SPe,APe,OPe,RPe,IPe,PPe,bPe,vPe,yPe,NPe,CPe,MPe,LPe,DPe,GPe,xPe,UPe,wPe,qPe,jPe,VPe,BPe,HPe,FPe,kPe,WPe,YPe,KPe,XPe,ZPe,zPe,JPe,$Pe,QPe,ebe,tbe,rbe,nbe,H2=H(()=>{rIe="aspnetcore.rate_limiting.result",nIe="acquired",oIe="endpoint_limiter",iIe="global_limiter",sIe="request_canceled",aIe="telemetry.sdk.language",uIe="cpp",cIe="dotnet",lIe="erlang",dIe="go",pIe="java",_Ie="nodejs",fIe="php",gIe="python",hIe="ruby",EIe="rust",mIe="swift",TIe="webjs",SIe="telemetry.sdk.name",AIe="telemetry.sdk.version",OIe="aspnetcore.diagnostics.handler.type",RIe="aspnetcore.diagnostics.exception.result",IIe="aborted",PIe="handled",bIe="skipped",vIe="unhandled",yIe="aspnetcore.rate_limiting.policy",NIe="aspnetcore.request.is_unhandled",CIe="aspnetcore.routing.is_fallback",MIe="aspnetcore.routing.match_status",LIe="failure",DIe="success",GIe="client.address",xIe="client.port",UIe="error.type",wIe="_OTHER",qIe="exception.escaped",jIe="exception.message",VIe="exception.stacktrace",BIe="exception.type",HIe=function(t){return"http.request.header."+t},FIe="http.request.method",kIe="_OTHER",WIe="CONNECT",YIe="DELETE",KIe="GET",XIe="HEAD",ZIe="OPTIONS",zIe="PATCH",JIe="POST",$Ie="PUT",QIe="TRACE",ePe="http.request.method_original",tPe="http.request.resend_count",rPe=function(t){return"http.response.header."+t},nPe="http.response.status_code",oPe="http.route",iPe="jvm.gc.action",sPe="jvm.gc.name",aPe="jvm.memory.pool.name",uPe="jvm.memory.type",cPe="heap",lPe="non_heap",dPe="jvm.thread.daemon",pPe="jvm.thread.state",_Pe="blocked",fPe="new",gPe="runnable",hPe="terminated",EPe="timed_waiting",mPe="waiting",TPe="network.local.address",SPe="network.local.port",APe="network.peer.address",OPe="network.peer.port",RPe="network.protocol.name",IPe="network.protocol.version",PPe="network.transport",bPe="pipe",vPe="quic",yPe="tcp",NPe="udp",CPe="unix",MPe="network.type",LPe="ipv4",DPe="ipv6",GPe="otel.scope.name",xPe="otel.scope.version",UPe="otel.status_code",wPe="ERROR",qPe="OK",jPe="otel.status_description",VPe="server.address",BPe="server.port",HPe="service.name",FPe="service.version",kPe="signalr.connection.status",WPe="app_shutdown",YPe="normal_closure",KPe="timeout",XPe="signalr.transport",ZPe="long_polling",zPe="server_sent_events",JPe="web_sockets",$Pe="url.fragment",QPe="url.full",ebe="url.path",tbe="url.query",rbe="url.scheme",nbe="user_agent.original"});var obe,ibe,sbe,abe,ube,cbe,lbe,dbe,pbe,_be,fbe,gbe,hbe,Ebe,mbe,Tbe,Sbe,Abe,Obe,Rbe,Ibe,Pbe,bbe,vbe,ybe,Nbe,Cbe,Mbe,Lbe,Dbe,Gbe,F2=H(()=>{obe="aspnetcore.diagnostics.exceptions",ibe="aspnetcore.rate_limiting.active_request_leases",sbe="aspnetcore.rate_limiting.queued_requests",abe="aspnetcore.rate_limiting.request.time_in_queue",ube="aspnetcore.rate_limiting.request_lease.duration",cbe="aspnetcore.rate_limiting.requests",lbe="aspnetcore.routing.match_attempts",dbe="http.client.request.duration",pbe="http.server.request.duration",_be="jvm.class.count",fbe="jvm.class.loaded",gbe="jvm.class.unloaded",hbe="jvm.cpu.count",Ebe="jvm.cpu.recent_utilization",mbe="jvm.cpu.time",Tbe="jvm.gc.duration",Sbe="jvm.memory.committed",Abe="jvm.memory.limit",Obe="jvm.memory.used",Rbe="jvm.memory.used_after_last_gc",Ibe="jvm.thread.count",Pbe="kestrel.active_connections",bbe="kestrel.active_tls_handshakes",vbe="kestrel.connection.duration",ybe="kestrel.queued_connections",Nbe="kestrel.queued_requests",Cbe="kestrel.rejected_connections",Mbe="kestrel.tls_handshake.duration",Lbe="kestrel.upgraded_connections",Dbe="signalr.server.active_connections",Gbe="signalr.server.connection.duration"});var J={};tq(J,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>IIe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>PIe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>bIe,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>vIe,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>nIe,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>oIe,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>iIe,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>sIe,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>LIe,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>DIe,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>RIe,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>OIe,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>yIe,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>rIe,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>NIe,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>CIe,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>MIe,ATTR_CLIENT_ADDRESS:()=>GIe,ATTR_CLIENT_PORT:()=>xIe,ATTR_ERROR_TYPE:()=>UIe,ATTR_EXCEPTION_ESCAPED:()=>qIe,ATTR_EXCEPTION_MESSAGE:()=>jIe,ATTR_EXCEPTION_STACKTRACE:()=>VIe,ATTR_EXCEPTION_TYPE:()=>BIe,ATTR_HTTP_REQUEST_HEADER:()=>HIe,ATTR_HTTP_REQUEST_METHOD:()=>FIe,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>ePe,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>tPe,ATTR_HTTP_RESPONSE_HEADER:()=>rPe,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>nPe,ATTR_HTTP_ROUTE:()=>oPe,ATTR_JVM_GC_ACTION:()=>iPe,ATTR_JVM_GC_NAME:()=>sPe,ATTR_JVM_MEMORY_POOL_NAME:()=>aPe,ATTR_JVM_MEMORY_TYPE:()=>uPe,ATTR_JVM_THREAD_DAEMON:()=>dPe,ATTR_JVM_THREAD_STATE:()=>pPe,ATTR_NETWORK_LOCAL_ADDRESS:()=>TPe,ATTR_NETWORK_LOCAL_PORT:()=>SPe,ATTR_NETWORK_PEER_ADDRESS:()=>APe,ATTR_NETWORK_PEER_PORT:()=>OPe,ATTR_NETWORK_PROTOCOL_NAME:()=>RPe,ATTR_NETWORK_PROTOCOL_VERSION:()=>IPe,ATTR_NETWORK_TRANSPORT:()=>PPe,ATTR_NETWORK_TYPE:()=>MPe,ATTR_OTEL_SCOPE_NAME:()=>GPe,ATTR_OTEL_SCOPE_VERSION:()=>xPe,ATTR_OTEL_STATUS_CODE:()=>UPe,ATTR_OTEL_STATUS_DESCRIPTION:()=>jPe,ATTR_SERVER_ADDRESS:()=>VPe,ATTR_SERVER_PORT:()=>BPe,ATTR_SERVICE_NAME:()=>HPe,ATTR_SERVICE_VERSION:()=>FPe,ATTR_SIGNALR_CONNECTION_STATUS:()=>kPe,ATTR_SIGNALR_TRANSPORT:()=>XPe,ATTR_TELEMETRY_SDK_LANGUAGE:()=>aIe,ATTR_TELEMETRY_SDK_NAME:()=>SIe,ATTR_TELEMETRY_SDK_VERSION:()=>AIe,ATTR_URL_FRAGMENT:()=>$Pe,ATTR_URL_FULL:()=>QPe,ATTR_URL_PATH:()=>ebe,ATTR_URL_QUERY:()=>tbe,ATTR_URL_SCHEME:()=>rbe,ATTR_USER_AGENT_ORIGINAL:()=>nbe,AWSECSLAUNCHTYPEVALUES_EC2:()=>ORe,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>RRe,AwsEcsLaunchtypeValues:()=>IRe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>oRe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>iRe,CLOUDPLATFORMVALUES_AWS_EC2:()=>sRe,CLOUDPLATFORMVALUES_AWS_ECS:()=>aRe,CLOUDPLATFORMVALUES_AWS_EKS:()=>uRe,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>lRe,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>cRe,CLOUDPLATFORMVALUES_AZURE_AKS:()=>_Re,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>gRe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>pRe,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>fRe,CLOUDPLATFORMVALUES_AZURE_VM:()=>dRe,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>SRe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>TRe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>ERe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>hRe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>mRe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>QOe,CLOUDPROVIDERVALUES_AWS:()=>eRe,CLOUDPROVIDERVALUES_AZURE:()=>tRe,CLOUDPROVIDERVALUES_GCP:()=>rRe,CloudPlatformValues:()=>ARe,CloudProviderValues:()=>nRe,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>wTe,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>WTe,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>qTe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>kTe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>VTe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>KTe,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>BTe,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>jTe,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>YTe,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>FTe,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>HTe,DBSYSTEMVALUES_ADABAS:()=>sTe,DBSYSTEMVALUES_CACHE:()=>iTe,DBSYSTEMVALUES_CASSANDRA:()=>RTe,DBSYSTEMVALUES_CLOUDSCAPE:()=>Jme,DBSYSTEMVALUES_COCKROACHDB:()=>xTe,DBSYSTEMVALUES_COLDFUSION:()=>OTe,DBSYSTEMVALUES_COSMOSDB:()=>NTe,DBSYSTEMVALUES_COUCHBASE:()=>vTe,DBSYSTEMVALUES_COUCHDB:()=>yTe,DBSYSTEMVALUES_DB2:()=>Kme,DBSYSTEMVALUES_DERBY:()=>uTe,DBSYSTEMVALUES_DYNAMODB:()=>CTe,DBSYSTEMVALUES_EDB:()=>oTe,DBSYSTEMVALUES_ELASTICSEARCH:()=>DTe,DBSYSTEMVALUES_FILEMAKER:()=>cTe,DBSYSTEMVALUES_FIREBIRD:()=>aTe,DBSYSTEMVALUES_FIRSTSQL:()=>nTe,DBSYSTEMVALUES_GEODE:()=>LTe,DBSYSTEMVALUES_H2:()=>ATe,DBSYSTEMVALUES_HANADB:()=>tTe,DBSYSTEMVALUES_HBASE:()=>ITe,DBSYSTEMVALUES_HIVE:()=>zme,DBSYSTEMVALUES_HSQLDB:()=>$me,DBSYSTEMVALUES_INFORMIX:()=>lTe,DBSYSTEMVALUES_INGRES:()=>rTe,DBSYSTEMVALUES_INSTANTDB:()=>dTe,DBSYSTEMVALUES_INTERBASE:()=>pTe,DBSYSTEMVALUES_MARIADB:()=>_Te,DBSYSTEMVALUES_MAXDB:()=>eTe,DBSYSTEMVALUES_MEMCACHED:()=>GTe,DBSYSTEMVALUES_MONGODB:()=>PTe,DBSYSTEMVALUES_MSSQL:()=>kme,DBSYSTEMVALUES_MYSQL:()=>Wme,DBSYSTEMVALUES_NEO4J:()=>MTe,DBSYSTEMVALUES_NETEZZA:()=>fTe,DBSYSTEMVALUES_ORACLE:()=>Yme,DBSYSTEMVALUES_OTHER_SQL:()=>Fme,DBSYSTEMVALUES_PERVASIVE:()=>gTe,DBSYSTEMVALUES_POINTBASE:()=>hTe,DBSYSTEMVALUES_POSTGRESQL:()=>Xme,DBSYSTEMVALUES_PROGRESS:()=>Qme,DBSYSTEMVALUES_REDIS:()=>bTe,DBSYSTEMVALUES_REDSHIFT:()=>Zme,DBSYSTEMVALUES_SQLITE:()=>ETe,DBSYSTEMVALUES_SYBASE:()=>mTe,DBSYSTEMVALUES_TERADATA:()=>TTe,DBSYSTEMVALUES_VERTICA:()=>STe,DbCassandraConsistencyLevelValues:()=>XTe,DbSystemValues:()=>UTe,ERROR_TYPE_VALUE_OTHER:()=>wIe,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>nSe,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>rSe,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>tSe,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>iSe,FAASINVOKEDPROVIDERVALUES_AWS:()=>sSe,FAASINVOKEDPROVIDERVALUES_AZURE:()=>aSe,FAASINVOKEDPROVIDERVALUES_GCP:()=>uSe,FAASTRIGGERVALUES_DATASOURCE:()=>ZTe,FAASTRIGGERVALUES_HTTP:()=>zTe,FAASTRIGGERVALUES_OTHER:()=>QTe,FAASTRIGGERVALUES_PUBSUB:()=>JTe,FAASTRIGGERVALUES_TIMER:()=>$Te,FaasDocumentOperationValues:()=>oSe,FaasInvokedProviderValues:()=>cSe,FaasTriggerValues:()=>eSe,HOSTARCHVALUES_AMD64:()=>PRe,HOSTARCHVALUES_ARM32:()=>bRe,HOSTARCHVALUES_ARM64:()=>vRe,HOSTARCHVALUES_IA64:()=>yRe,HOSTARCHVALUES_PPC32:()=>NRe,HOSTARCHVALUES_PPC64:()=>CRe,HOSTARCHVALUES_X86:()=>MRe,HTTPFLAVORVALUES_HTTP_1_0:()=>YSe,HTTPFLAVORVALUES_HTTP_1_1:()=>KSe,HTTPFLAVORVALUES_HTTP_2_0:()=>XSe,HTTPFLAVORVALUES_QUIC:()=>zSe,HTTPFLAVORVALUES_SPDY:()=>ZSe,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>WIe,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>YIe,HTTP_REQUEST_METHOD_VALUE_GET:()=>KIe,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>XIe,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>ZIe,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>kIe,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>zIe,HTTP_REQUEST_METHOD_VALUE_POST:()=>JIe,HTTP_REQUEST_METHOD_VALUE_PUT:()=>$Ie,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>QIe,HostArchValues:()=>LRe,HttpFlavorValues:()=>JSe,JVM_MEMORY_TYPE_VALUE_HEAP:()=>cPe,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>lPe,JVM_THREAD_STATE_VALUE_BLOCKED:()=>_Pe,JVM_THREAD_STATE_VALUE_NEW:()=>fPe,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>gPe,JVM_THREAD_STATE_VALUE_TERMINATED:()=>hPe,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>EPe,JVM_THREAD_STATE_VALUE_WAITING:()=>mPe,MESSAGETYPEVALUES_RECEIVED:()=>RAe,MESSAGETYPEVALUES_SENT:()=>OAe,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>$Se,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>QSe,MESSAGINGOPERATIONVALUES_PROCESS:()=>rAe,MESSAGINGOPERATIONVALUES_RECEIVE:()=>tAe,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>obe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>ibe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>sbe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>cbe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>ube,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>abe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>lbe,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>dbe,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>pbe,METRIC_JVM_CLASS_COUNT:()=>_be,METRIC_JVM_CLASS_LOADED:()=>fbe,METRIC_JVM_CLASS_UNLOADED:()=>gbe,METRIC_JVM_CPU_COUNT:()=>hbe,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>Ebe,METRIC_JVM_CPU_TIME:()=>mbe,METRIC_JVM_GC_DURATION:()=>Tbe,METRIC_JVM_MEMORY_COMMITTED:()=>Sbe,METRIC_JVM_MEMORY_LIMIT:()=>Abe,METRIC_JVM_MEMORY_USED:()=>Obe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>Rbe,METRIC_JVM_THREAD_COUNT:()=>Ibe,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>Pbe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>bbe,METRIC_KESTREL_CONNECTION_DURATION:()=>vbe,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>ybe,METRIC_KESTREL_QUEUED_REQUESTS:()=>Nbe,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>Cbe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>Mbe,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>Lbe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>Dbe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>Gbe,MessageTypeValues:()=>IAe,MessagingDestinationKindValues:()=>eAe,MessagingOperationValues:()=>nAe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>vSe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>CSe,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>PSe,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>wSe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>ySe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>NSe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>xSe,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>ISe,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>jSe,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>MSe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>DSe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>qSe,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>LSe,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>GSe,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>BSe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>USe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>kSe,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>HSe,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>FSe,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>VSe,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>bSe,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>SSe,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>ASe,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>OSe,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>mSe,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>TSe,NETTRANSPORTVALUES_INPROC:()=>gSe,NETTRANSPORTVALUES_IP:()=>pSe,NETTRANSPORTVALUES_IP_TCP:()=>lSe,NETTRANSPORTVALUES_IP_UDP:()=>dSe,NETTRANSPORTVALUES_OTHER:()=>hSe,NETTRANSPORTVALUES_PIPE:()=>fSe,NETTRANSPORTVALUES_UNIX:()=>_Se,NETWORK_TRANSPORT_VALUE_PIPE:()=>bPe,NETWORK_TRANSPORT_VALUE_QUIC:()=>vPe,NETWORK_TRANSPORT_VALUE_TCP:()=>yPe,NETWORK_TRANSPORT_VALUE_UDP:()=>NPe,NETWORK_TRANSPORT_VALUE_UNIX:()=>CPe,NETWORK_TYPE_VALUE_IPV4:()=>LPe,NETWORK_TYPE_VALUE_IPV6:()=>DPe,NetHostConnectionSubtypeValues:()=>WSe,NetHostConnectionTypeValues:()=>RSe,NetTransportValues:()=>ESe,OSTYPEVALUES_AIX:()=>BRe,OSTYPEVALUES_DARWIN:()=>xRe,OSTYPEVALUES_DRAGONFLYBSD:()=>jRe,OSTYPEVALUES_FREEBSD:()=>URe,OSTYPEVALUES_HPUX:()=>VRe,OSTYPEVALUES_LINUX:()=>GRe,OSTYPEVALUES_NETBSD:()=>wRe,OSTYPEVALUES_OPENBSD:()=>qRe,OSTYPEVALUES_SOLARIS:()=>HRe,OSTYPEVALUES_WINDOWS:()=>DRe,OSTYPEVALUES_Z_OS:()=>FRe,OTEL_STATUS_CODE_VALUE_ERROR:()=>wPe,OTEL_STATUS_CODE_VALUE_OK:()=>qPe,OsTypeValues:()=>kRe,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>fAe,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>lAe,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>iAe,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>TAe,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>uAe,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>_Ae,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>EAe,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>aAe,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>cAe,RPCGRPCSTATUSCODEVALUES_OK:()=>oAe,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>gAe,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>dAe,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>pAe,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>SAe,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>mAe,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>hAe,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>sAe,RpcGrpcStatusCodeValues:()=>AAe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>JEe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>cme,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>XEe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>kEe,SEMATTRS_AWS_DYNAMODB_COUNT:()=>ame,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>rme,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>eme,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>lme,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>$Ee,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>WEe,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>zEe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>tme,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>ZEe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>YEe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>KEe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>ume,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>ome,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>ime,SEMATTRS_AWS_DYNAMODB_SELECT:()=>QEe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>nme,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>FEe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>sme,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Ohe,SEMATTRS_CODE_FILEPATH:()=>bEe,SEMATTRS_CODE_FUNCTION:()=>IEe,SEMATTRS_CODE_LINENO:()=>vEe,SEMATTRS_CODE_NAMESPACE:()=>PEe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Dhe,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>qhe,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>whe,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>xhe,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Mhe,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Lhe,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>Uhe,SEMATTRS_DB_CASSANDRA_TABLE:()=>Ghe,SEMATTRS_DB_CONNECTION_STRING:()=>Ihe,SEMATTRS_DB_HBASE_NAMESPACE:()=>jhe,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>bhe,SEMATTRS_DB_MONGODB_COLLECTION:()=>Bhe,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Che,SEMATTRS_DB_NAME:()=>vhe,SEMATTRS_DB_OPERATION:()=>Nhe,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>Vhe,SEMATTRS_DB_SQL_TABLE:()=>Hhe,SEMATTRS_DB_STATEMENT:()=>yhe,SEMATTRS_DB_SYSTEM:()=>Rhe,SEMATTRS_DB_USER:()=>Phe,SEMATTRS_ENDUSER_ID:()=>TEe,SEMATTRS_ENDUSER_ROLE:()=>SEe,SEMATTRS_ENDUSER_SCOPE:()=>AEe,SEMATTRS_EXCEPTION_ESCAPED:()=>Yhe,SEMATTRS_EXCEPTION_MESSAGE:()=>khe,SEMATTRS_EXCEPTION_STACKTRACE:()=>Whe,SEMATTRS_EXCEPTION_TYPE:()=>Fhe,SEMATTRS_FAAS_COLDSTART:()=>tEe,SEMATTRS_FAAS_CRON:()=>eEe,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Zhe,SEMATTRS_FAAS_DOCUMENT_NAME:()=>$he,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>zhe,SEMATTRS_FAAS_DOCUMENT_TIME:()=>Jhe,SEMATTRS_FAAS_EXECUTION:()=>Xhe,SEMATTRS_FAAS_INVOKED_NAME:()=>rEe,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>nEe,SEMATTRS_FAAS_INVOKED_REGION:()=>oEe,SEMATTRS_FAAS_TIME:()=>Qhe,SEMATTRS_FAAS_TRIGGER:()=>Khe,SEMATTRS_HTTP_CLIENT_IP:()=>HEe,SEMATTRS_HTTP_FLAVOR:()=>GEe,SEMATTRS_HTTP_HOST:()=>MEe,SEMATTRS_HTTP_METHOD:()=>yEe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>UEe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>wEe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>qEe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>jEe,SEMATTRS_HTTP_ROUTE:()=>BEe,SEMATTRS_HTTP_SCHEME:()=>LEe,SEMATTRS_HTTP_SERVER_NAME:()=>VEe,SEMATTRS_HTTP_STATUS_CODE:()=>DEe,SEMATTRS_HTTP_TARGET:()=>CEe,SEMATTRS_HTTP_URL:()=>NEe,SEMATTRS_HTTP_USER_AGENT:()=>xEe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>Vme,SEMATTRS_MESSAGE_ID:()=>jme,SEMATTRS_MESSAGE_TYPE:()=>qme,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>Bme,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Rme,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Tme,SEMATTRS_MESSAGING_DESTINATION:()=>pme,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>_me,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>vme,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>bme,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Pme,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>yme,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Nme,SEMATTRS_MESSAGING_MESSAGE_ID:()=>mme,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Ame,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Sme,SEMATTRS_MESSAGING_OPERATION:()=>Ome,SEMATTRS_MESSAGING_PROTOCOL:()=>gme,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>hme,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Ime,SEMATTRS_MESSAGING_SYSTEM:()=>dme,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>fme,SEMATTRS_MESSAGING_URL:()=>Eme,SEMATTRS_NET_HOST_CARRIER_ICC:()=>EEe,SEMATTRS_NET_HOST_CARRIER_MCC:()=>gEe,SEMATTRS_NET_HOST_CARRIER_MNC:()=>hEe,SEMATTRS_NET_HOST_CARRIER_NAME:()=>fEe,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>_Ee,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>pEe,SEMATTRS_NET_HOST_IP:()=>cEe,SEMATTRS_NET_HOST_NAME:()=>dEe,SEMATTRS_NET_HOST_PORT:()=>lEe,SEMATTRS_NET_PEER_IP:()=>sEe,SEMATTRS_NET_PEER_NAME:()=>uEe,SEMATTRS_NET_PEER_PORT:()=>aEe,SEMATTRS_NET_TRANSPORT:()=>iEe,SEMATTRS_PEER_SERVICE:()=>mEe,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Dme,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>Ume,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>wme,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>xme,SEMATTRS_RPC_JSONRPC_VERSION:()=>Gme,SEMATTRS_RPC_METHOD:()=>Lme,SEMATTRS_RPC_SERVICE:()=>Mme,SEMATTRS_RPC_SYSTEM:()=>Cme,SEMATTRS_THREAD_ID:()=>OEe,SEMATTRS_THREAD_NAME:()=>REe,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>MAe,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>CAe,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>LAe,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>DAe,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>GAe,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>xAe,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>UAe,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>qAe,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>wAe,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>VAe,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>jAe,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>bAe,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>yAe,SEMRESATTRS_CLOUD_PLATFORM:()=>NAe,SEMRESATTRS_CLOUD_PROVIDER:()=>PAe,SEMRESATTRS_CLOUD_REGION:()=>vAe,SEMRESATTRS_CONTAINER_ID:()=>HAe,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>kAe,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>WAe,SEMRESATTRS_CONTAINER_NAME:()=>BAe,SEMRESATTRS_CONTAINER_RUNTIME:()=>FAe,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>YAe,SEMRESATTRS_DEVICE_ID:()=>KAe,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>XAe,SEMRESATTRS_DEVICE_MODEL_NAME:()=>ZAe,SEMRESATTRS_FAAS_ID:()=>JAe,SEMRESATTRS_FAAS_INSTANCE:()=>QAe,SEMRESATTRS_FAAS_MAX_MEMORY:()=>eOe,SEMRESATTRS_FAAS_NAME:()=>zAe,SEMRESATTRS_FAAS_VERSION:()=>$Ae,SEMRESATTRS_HOST_ARCH:()=>oOe,SEMRESATTRS_HOST_ID:()=>tOe,SEMRESATTRS_HOST_IMAGE_ID:()=>sOe,SEMRESATTRS_HOST_IMAGE_NAME:()=>iOe,SEMRESATTRS_HOST_IMAGE_VERSION:()=>aOe,SEMRESATTRS_HOST_NAME:()=>rOe,SEMRESATTRS_HOST_TYPE:()=>nOe,SEMRESATTRS_K8S_CLUSTER_NAME:()=>uOe,SEMRESATTRS_K8S_CONTAINER_NAME:()=>fOe,SEMRESATTRS_K8S_CRONJOB_NAME:()=>bOe,SEMRESATTRS_K8S_CRONJOB_UID:()=>POe,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>OOe,SEMRESATTRS_K8S_DAEMONSET_UID:()=>AOe,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>mOe,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>EOe,SEMRESATTRS_K8S_JOB_NAME:()=>IOe,SEMRESATTRS_K8S_JOB_UID:()=>ROe,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>dOe,SEMRESATTRS_K8S_NODE_NAME:()=>cOe,SEMRESATTRS_K8S_NODE_UID:()=>lOe,SEMRESATTRS_K8S_POD_NAME:()=>_Oe,SEMRESATTRS_K8S_POD_UID:()=>pOe,SEMRESATTRS_K8S_REPLICASET_NAME:()=>hOe,SEMRESATTRS_K8S_REPLICASET_UID:()=>gOe,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>SOe,SEMRESATTRS_K8S_STATEFULSET_UID:()=>TOe,SEMRESATTRS_OS_DESCRIPTION:()=>yOe,SEMRESATTRS_OS_NAME:()=>NOe,SEMRESATTRS_OS_TYPE:()=>vOe,SEMRESATTRS_OS_VERSION:()=>COe,SEMRESATTRS_PROCESS_COMMAND:()=>GOe,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>UOe,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>xOe,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>LOe,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>DOe,SEMRESATTRS_PROCESS_OWNER:()=>wOe,SEMRESATTRS_PROCESS_PID:()=>MOe,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>VOe,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>qOe,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>jOe,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>FOe,SEMRESATTRS_SERVICE_NAME:()=>BOe,SEMRESATTRS_SERVICE_NAMESPACE:()=>HOe,SEMRESATTRS_SERVICE_VERSION:()=>kOe,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>XOe,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>YOe,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>WOe,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>KOe,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>JOe,SEMRESATTRS_WEBENGINE_NAME:()=>ZOe,SEMRESATTRS_WEBENGINE_VERSION:()=>zOe,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>WPe,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>YPe,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>KPe,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>ZPe,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>zPe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>JPe,SemanticAttributes:()=>Hme,SemanticResourceAttributes:()=>$Oe,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>WRe,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>YRe,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>KRe,TELEMETRYSDKLANGUAGEVALUES_GO:()=>XRe,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>ZRe,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>zRe,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>JRe,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>$Re,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>QRe,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>eIe,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>uIe,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>cIe,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>lIe,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>dIe,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>pIe,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>_Ie,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>fIe,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>gIe,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>hIe,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>EIe,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>mIe,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>TIe,TelemetrySdkLanguageValues:()=>tIe});var $=H(()=>{gY();B2();H2();F2()});var k2=c(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});lg.SDK_INFO=void 0;var xbe=nv(),bd=($(),m(J));lg.SDK_INFO={[bd.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[bd.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[bd.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:bd.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[bd.SEMRESATTRS_TELEMETRY_SDK_VERSION]:xbe.VERSION}});var W2=c(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.unrefTimer=void 0;function Ube(t){t.unref()}dg.unrefTimer=Ube});var K2=c(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.unrefTimer=Fe.SDK_INFO=Fe.otperformance=Fe.RandomIdGenerator=Fe.hexToBase64=Fe._globalThis=Fe.getEnv=Fe.getEnvWithoutDefaults=void 0;var Y2=EB();Object.defineProperty(Fe,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Y2.getEnvWithoutDefaults}});Object.defineProperty(Fe,"getEnv",{enumerable:!0,get:function(){return Y2.getEnv}});var wbe=mB();Object.defineProperty(Fe,"_globalThis",{enumerable:!0,get:function(){return wbe._globalThis}});var qbe=SB();Object.defineProperty(Fe,"hexToBase64",{enumerable:!0,get:function(){return qbe.hexToBase64}});var jbe=RB();Object.defineProperty(Fe,"RandomIdGenerator",{enumerable:!0,get:function(){return jbe.RandomIdGenerator}});var Vbe=IB();Object.defineProperty(Fe,"otperformance",{enumerable:!0,get:function(){return Vbe.otperformance}});var Bbe=k2();Object.defineProperty(Fe,"SDK_INFO",{enumerable:!0,get:function(){return Bbe.SDK_INFO}});var Hbe=W2();Object.defineProperty(Fe,"unrefTimer",{enumerable:!0,get:function(){return Hbe.unrefTimer}})});var iv=c(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.unrefTimer=ke.otperformance=ke.hexToBase64=ke.getEnvWithoutDefaults=ke.getEnv=ke._globalThis=ke.SDK_INFO=ke.RandomIdGenerator=void 0;var ei=K2();Object.defineProperty(ke,"RandomIdGenerator",{enumerable:!0,get:function(){return ei.RandomIdGenerator}});Object.defineProperty(ke,"SDK_INFO",{enumerable:!0,get:function(){return ei.SDK_INFO}});Object.defineProperty(ke,"_globalThis",{enumerable:!0,get:function(){return ei._globalThis}});Object.defineProperty(ke,"getEnv",{enumerable:!0,get:function(){return ei.getEnv}});Object.defineProperty(ke,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return ei.getEnvWithoutDefaults}});Object.defineProperty(ke,"hexToBase64",{enumerable:!0,get:function(){return ei.hexToBase64}});Object.defineProperty(ke,"otperformance",{enumerable:!0,get:function(){return ei.otperformance}});Object.defineProperty(ke,"unrefTimer",{enumerable:!0,get:function(){return ei.unrefTimer}})});var J2=c(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.addHrTimes=fe.isTimeInput=fe.isTimeInputHrTime=fe.hrTimeToMicroseconds=fe.hrTimeToMilliseconds=fe.hrTimeToNanoseconds=fe.hrTimeToTimeStamp=fe.hrTimeDuration=fe.timeInputToHrTime=fe.hrTime=fe.getTimeOrigin=fe.millisToHrTime=void 0;var sv=iv(),X2=9,Fbe=6,kbe=Math.pow(10,Fbe),pg=Math.pow(10,X2);function vd(t){let e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*kbe);return[r,n]}fe.millisToHrTime=vd;function av(){let t=sv.otperformance.timeOrigin;if(typeof t!="number"){let e=sv.otperformance;t=e.timing&&e.timing.fetchStart}return t}fe.getTimeOrigin=av;function Z2(t){let e=vd(av()),r=vd(typeof t=="number"?t:sv.otperformance.now());return z2(e,r)}fe.hrTime=Z2;function Wbe(t){if(uv(t))return t;if(typeof t=="number")return t<av()?Z2(t):vd(t);if(t instanceof Date)return vd(t.getTime());throw TypeError("Invalid input type")}fe.timeInputToHrTime=Wbe;function Ybe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=pg),[r,n]}fe.hrTimeDuration=Ybe;function Kbe(t){let e=X2,r=`${"0".repeat(e)}${t[1]}Z`,n=r.substr(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",n)}fe.hrTimeToTimeStamp=Kbe;function Xbe(t){return t[0]*pg+t[1]}fe.hrTimeToNanoseconds=Xbe;function Zbe(t){return t[0]*1e3+t[1]/1e6}fe.hrTimeToMilliseconds=Zbe;function zbe(t){return t[0]*1e6+t[1]/1e3}fe.hrTimeToMicroseconds=zbe;function uv(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}fe.isTimeInputHrTime=uv;function Jbe(t){return uv(t)||typeof t=="number"||t instanceof Date}fe.isTimeInput=Jbe;function z2(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=pg&&(r[1]-=pg,r[0]+=1),r}fe.addHrTimes=z2});var $2=c(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.ExportResultCode=void 0;var $be;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})($be=yd.ExportResultCode||(yd.ExportResultCode={}))});var eX=c(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.CompositePropagator=void 0;var Q2=(P(),m(I)),cv=class{constructor(e={}){var r;this._propagators=(r=e.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,o)=>n.concat(o),[])))}inject(e,r,n){for(let o of this._propagators)try{o.inject(e,r,n)}catch(i){Q2.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(e,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){Q2.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${s.message}`)}return o},e)}fields(){return this._fields.slice()}};_g.CompositePropagator=cv});var tX=c(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.validateValue=Za.validateKey=void 0;var lv="[_0-9a-z-*/]",Qbe=`[a-z]${lv}{0,255}`,eve=`[a-z0-9]${lv}{0,240}@[a-z]${lv}{0,13}`,tve=new RegExp(`^(?:${Qbe}|${eve})$`),rve=/^[ -~]{0,255}[!-~]$/,nve=/,|=/;function ove(t){return tve.test(t)}Za.validateKey=ove;function ive(t){return rve.test(t)&&!nve.test(t)}Za.validateValue=ive});var pv=c(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.TraceState=void 0;var rX=tX(),nX=32,sve=512,oX=",",iX="=",dv=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,r){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+iX+this.get(r)),e),[]).join(oX)}_parse(e){e.length>sve||(this._internalState=e.split(oX).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(iX);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);(0,rX.validateKey)(s)&&(0,rX.validateValue)(a)&&r.set(s,a)}return r},new Map),this._internalState.size>nX&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,nX))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};fg.TraceState=dv});var aX=c(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.W3CTraceContextPropagator=Ot.parseTraceParent=Ot.TRACE_STATE_HEADER=Ot.TRACE_PARENT_HEADER=void 0;var gg=(P(),m(I)),ave=Id(),uve=pv();Ot.TRACE_PARENT_HEADER="traceparent";Ot.TRACE_STATE_HEADER="tracestate";var cve="00",lve="(?!ff)[\\da-f]{2}",dve="(?![0]{32})[\\da-f]{32}",pve="(?![0]{16})[\\da-f]{16}",_ve="[\\da-f]{2}",fve=new RegExp(`^\\s?(${lve})-(${dve})-(${pve})-(${_ve})(-.*)?\\s?$`);function sX(t){let e=fve.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}Ot.parseTraceParent=sX;var _v=class{inject(e,r,n){let o=gg.trace.getSpanContext(e);if(!o||(0,ave.isTracingSuppressed)(e)||!(0,gg.isSpanContextValid)(o))return;let i=`${cve}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||gg.TraceFlags.NONE).toString(16)}`;n.set(r,Ot.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,Ot.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,n){let o=n.get(r,Ot.TRACE_PARENT_HEADER);if(!o)return e;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;let s=sX(i);if(!s)return e;s.isRemote=!0;let a=n.get(r,Ot.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;s.traceState=new uve.TraceState(typeof u=="string"?u:void 0)}return gg.trace.setSpanContext(e,s)}fields(){return[Ot.TRACE_PARENT_HEADER,Ot.TRACE_STATE_HEADER]}};Ot.W3CTraceContextPropagator=_v});var uX=c($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.getRPCMetadata=$r.deleteRPCMetadata=$r.setRPCMetadata=$r.RPCType=void 0;var gve=(P(),m(I)),fv=(0,gve.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),hve;(function(t){t.HTTP="http"})(hve=$r.RPCType||($r.RPCType={}));function Eve(t,e){return t.setValue(fv,e)}$r.setRPCMetadata=Eve;function mve(t){return t.deleteValue(fv)}$r.deleteRPCMetadata=mve;function Tve(t){return t.getValue(fv)}$r.getRPCMetadata=Tve});var hv=c(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.AlwaysOffSampler=void 0;var Sve=(P(),m(I)),gv=class{shouldSample(){return{decision:Sve.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};hg.AlwaysOffSampler=gv});var mv=c(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.AlwaysOnSampler=void 0;var Ave=(P(),m(I)),Ev=class{shouldSample(){return{decision:Ave.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Eg.AlwaysOnSampler=Ev});var lX=c(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});Tg.ParentBasedSampler=void 0;var mg=(P(),m(I)),Ove=Jb(),cX=hv(),Tv=mv(),Sv=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,Ove.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Tv.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new Tv.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new cX.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new Tv.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new cX.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=mg.trace.getSpanContext(e);return!a||!(0,mg.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&mg.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&mg.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};Tg.ParentBasedSampler=Sv});var dX=c(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.TraceIdRatioBasedSampler=void 0;var Av=(P(),m(I)),Ov=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,Av.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?Av.SamplingDecision.RECORD_AND_SAMPLED:Av.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};Sg.TraceIdRatioBasedSampler=Ov});var hX=c(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.isPlainObject=void 0;var Rve="[object Object]",Ive="[object Null]",Pve="[object Undefined]",bve=Function.prototype,pX=bve.toString,vve=pX.call(Object),yve=Nve(Object.getPrototypeOf,Object),_X=Object.prototype,fX=_X.hasOwnProperty,js=Symbol?Symbol.toStringTag:void 0,gX=_X.toString;function Nve(t,e){return function(r){return t(e(r))}}function Cve(t){if(!Mve(t)||Lve(t)!==Rve)return!1;let e=yve(t);if(e===null)return!0;let r=fX.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&pX.call(r)===vve}Ag.isPlainObject=Cve;function Mve(t){return t!=null&&typeof t=="object"}function Lve(t){return t==null?t===void 0?Pve:Ive:js&&js in Object(t)?Dve(t):Gve(t)}function Dve(t){let e=fX.call(t,js),r=t[js],n=!1;try{t[js]=void 0,n=!0}catch{}let o=gX.call(t);return n&&(e?t[js]=r:delete t[js]),o}function Gve(t){return gX.call(t)}});var AX=c(Ig=>{"use strict";Object.defineProperty(Ig,"__esModule",{value:!0});Ig.merge=void 0;var EX=hX(),xve=20;function Uve(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=TX(e,t.shift(),0,r);return e}Ig.merge=Uve;function Rv(t){return Rg(t)?t.slice():t}function TX(t,e,r=0,n){let o;if(!(r>xve)){if(r++,Og(t)||Og(e)||SX(e))o=Rv(e);else if(Rg(t)){if(o=t.slice(),Rg(e))for(let i=0,s=e.length;i<s;i++)o.push(Rv(e[i]));else if(Nd(e)){let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s];o[u]=Rv(e[u])}}}else if(Nd(t))if(Nd(e)){if(!wve(t,e))return e;o=Object.assign({},t);let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s],l=e[u];if(Og(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(mX(t,u,n)||mX(e,u,n))delete o[u];else{if(Nd(d)&&Nd(p)){let _=n.get(d)||[],f=n.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),n.set(d,_),n.set(p,f)}o[u]=TX(o[u],l,r,n)}}}}else o=e;return o}}function mX(t,e,r){let n=r.get(t[e])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===e&&s.obj===t)return!0}return!1}function Rg(t){return Array.isArray(t)}function SX(t){return typeof t=="function"}function Nd(t){return!Og(t)&&!Rg(t)&&!SX(t)&&typeof t=="object"}function Og(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function wve(t,e){return!(!(0,EX.isPlainObject)(t)||!(0,EX.isPlainObject)(e))}});var OX=c(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.callWithTimeout=za.TimeoutError=void 0;var Pg=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};za.TimeoutError=Pg;function qve(t,e){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new Pg("Operation timed out."))},e)});return Promise.race([t,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}za.callWithTimeout=qve});var IX=c(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.isUrlIgnored=Ja.urlMatches=void 0;function RX(t,e){return typeof e=="string"?t===e:!!t.match(e)}Ja.urlMatches=RX;function jve(t,e){if(!e)return!1;for(let r of e)if(RX(t,r))return!0;return!1}Ja.isUrlIgnored=jve});var PX=c(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.isWrapped=void 0;function Vve(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}bg.isWrapped=Vve});var bX=c(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.Deferred=void 0;var Iv=class{constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};vg.Deferred=Iv});var vX=c(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.BindOnceFuture=void 0;var Bve=bX(),Pv=class{constructor(e,r){this._callback=e,this._that=r,this._isCalled=!1,this._deferred=new Bve.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};yg.BindOnceFuture=Pv});var NX=c(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng._export=void 0;var yX=(P(),m(I)),Hve=Id();function Fve(t,e){return new Promise(r=>{yX.context.with((0,Hve.suppressTracing)(yX.context.active()),()=>{t.export(e,n=>{r(n)})})})}Ng._export=Fve});var Dg=c(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=O.DEFAULT_ATTRIBUTE_COUNT_LIMIT=O.TraceState=O.unsuppressTracing=O.suppressTracing=O.isTracingSuppressed=O.TraceIdRatioBasedSampler=O.ParentBasedSampler=O.AlwaysOnSampler=O.AlwaysOffSampler=O.setRPCMetadata=O.getRPCMetadata=O.deleteRPCMetadata=O.RPCType=O.parseTraceParent=O.W3CTraceContextPropagator=O.TRACE_STATE_HEADER=O.TRACE_PARENT_HEADER=O.CompositePropagator=O.unrefTimer=O.otperformance=O.hexToBase64=O.getEnvWithoutDefaults=O.getEnv=O._globalThis=O.SDK_INFO=O.RandomIdGenerator=O.baggageUtils=O.ExportResultCode=O.hexToBinary=O.timeInputToHrTime=O.millisToHrTime=O.isTimeInputHrTime=O.isTimeInput=O.hrTimeToTimeStamp=O.hrTimeToNanoseconds=O.hrTimeToMilliseconds=O.hrTimeToMicroseconds=O.hrTimeDuration=O.hrTime=O.getTimeOrigin=O.addHrTimes=O.loggingErrorHandler=O.setGlobalErrorHandler=O.globalErrorHandler=O.sanitizeAttributes=O.isAttributeValue=O.isAttributeKey=O.AnchoredClock=O.W3CBaggagePropagator=void 0;O.internal=O.VERSION=O.BindOnceFuture=O.isWrapped=O.urlMatches=O.isUrlIgnored=O.callWithTimeout=O.TimeoutError=O.TracesSamplerValues=O.merge=O.parseEnvironment=O.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=O.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=O.DEFAULT_ENVIRONMENT=void 0;var kve=cB();Object.defineProperty(O,"W3CBaggagePropagator",{enumerable:!0,get:function(){return kve.W3CBaggagePropagator}});var Wve=lB();Object.defineProperty(O,"AnchoredClock",{enumerable:!0,get:function(){return Wve.AnchoredClock}});var bv=gB();Object.defineProperty(O,"isAttributeKey",{enumerable:!0,get:function(){return bv.isAttributeKey}});Object.defineProperty(O,"isAttributeValue",{enumerable:!0,get:function(){return bv.isAttributeValue}});Object.defineProperty(O,"sanitizeAttributes",{enumerable:!0,get:function(){return bv.sanitizeAttributes}});var CX=Jb();Object.defineProperty(O,"globalErrorHandler",{enumerable:!0,get:function(){return CX.globalErrorHandler}});Object.defineProperty(O,"setGlobalErrorHandler",{enumerable:!0,get:function(){return CX.setGlobalErrorHandler}});var Yve=zb();Object.defineProperty(O,"loggingErrorHandler",{enumerable:!0,get:function(){return Yve.loggingErrorHandler}});var Pr=J2();Object.defineProperty(O,"addHrTimes",{enumerable:!0,get:function(){return Pr.addHrTimes}});Object.defineProperty(O,"getTimeOrigin",{enumerable:!0,get:function(){return Pr.getTimeOrigin}});Object.defineProperty(O,"hrTime",{enumerable:!0,get:function(){return Pr.hrTime}});Object.defineProperty(O,"hrTimeDuration",{enumerable:!0,get:function(){return Pr.hrTimeDuration}});Object.defineProperty(O,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Pr.hrTimeToMicroseconds}});Object.defineProperty(O,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Pr.hrTimeToMilliseconds}});Object.defineProperty(O,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Pr.hrTimeToNanoseconds}});Object.defineProperty(O,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Pr.hrTimeToTimeStamp}});Object.defineProperty(O,"isTimeInput",{enumerable:!0,get:function(){return Pr.isTimeInput}});Object.defineProperty(O,"isTimeInputHrTime",{enumerable:!0,get:function(){return Pr.isTimeInputHrTime}});Object.defineProperty(O,"millisToHrTime",{enumerable:!0,get:function(){return Pr.millisToHrTime}});Object.defineProperty(O,"timeInputToHrTime",{enumerable:!0,get:function(){return Pr.timeInputToHrTime}});var Kve=tv();Object.defineProperty(O,"hexToBinary",{enumerable:!0,get:function(){return Kve.hexToBinary}});var Xve=$2();Object.defineProperty(O,"ExportResultCode",{enumerable:!0,get:function(){return Xve.ExportResultCode}});var Cg=Wb();O.baggageUtils={getKeyPairs:Cg.getKeyPairs,serializeKeyPairs:Cg.serializeKeyPairs,parseKeyPairsIntoRecord:Cg.parseKeyPairsIntoRecord,parsePairKeyValue:Cg.parsePairKeyValue};var ti=iv();Object.defineProperty(O,"RandomIdGenerator",{enumerable:!0,get:function(){return ti.RandomIdGenerator}});Object.defineProperty(O,"SDK_INFO",{enumerable:!0,get:function(){return ti.SDK_INFO}});Object.defineProperty(O,"_globalThis",{enumerable:!0,get:function(){return ti._globalThis}});Object.defineProperty(O,"getEnv",{enumerable:!0,get:function(){return ti.getEnv}});Object.defineProperty(O,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return ti.getEnvWithoutDefaults}});Object.defineProperty(O,"hexToBase64",{enumerable:!0,get:function(){return ti.hexToBase64}});Object.defineProperty(O,"otperformance",{enumerable:!0,get:function(){return ti.otperformance}});Object.defineProperty(O,"unrefTimer",{enumerable:!0,get:function(){return ti.unrefTimer}});var Zve=eX();Object.defineProperty(O,"CompositePropagator",{enumerable:!0,get:function(){return Zve.CompositePropagator}});var Mg=aX();Object.defineProperty(O,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Mg.TRACE_PARENT_HEADER}});Object.defineProperty(O,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Mg.TRACE_STATE_HEADER}});Object.defineProperty(O,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Mg.W3CTraceContextPropagator}});Object.defineProperty(O,"parseTraceParent",{enumerable:!0,get:function(){return Mg.parseTraceParent}});var Lg=uX();Object.defineProperty(O,"RPCType",{enumerable:!0,get:function(){return Lg.RPCType}});Object.defineProperty(O,"deleteRPCMetadata",{enumerable:!0,get:function(){return Lg.deleteRPCMetadata}});Object.defineProperty(O,"getRPCMetadata",{enumerable:!0,get:function(){return Lg.getRPCMetadata}});Object.defineProperty(O,"setRPCMetadata",{enumerable:!0,get:function(){return Lg.setRPCMetadata}});var zve=hv();Object.defineProperty(O,"AlwaysOffSampler",{enumerable:!0,get:function(){return zve.AlwaysOffSampler}});var Jve=mv();Object.defineProperty(O,"AlwaysOnSampler",{enumerable:!0,get:function(){return Jve.AlwaysOnSampler}});var $ve=lX();Object.defineProperty(O,"ParentBasedSampler",{enumerable:!0,get:function(){return $ve.ParentBasedSampler}});var Qve=dX();Object.defineProperty(O,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Qve.TraceIdRatioBasedSampler}});var vv=Id();Object.defineProperty(O,"isTracingSuppressed",{enumerable:!0,get:function(){return vv.isTracingSuppressed}});Object.defineProperty(O,"suppressTracing",{enumerable:!0,get:function(){return vv.suppressTracing}});Object.defineProperty(O,"unsuppressTracing",{enumerable:!0,get:function(){return vv.unsuppressTracing}});var eye=pv();Object.defineProperty(O,"TraceState",{enumerable:!0,get:function(){return eye.TraceState}});var $a=Qb();Object.defineProperty(O,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return $a.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(O,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return $a.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(O,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return $a.DEFAULT_ENVIRONMENT}});Object.defineProperty(O,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return $a.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(O,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return $a.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(O,"parseEnvironment",{enumerable:!0,get:function(){return $a.parseEnvironment}});var tye=AX();Object.defineProperty(O,"merge",{enumerable:!0,get:function(){return tye.merge}});var rye=$b();Object.defineProperty(O,"TracesSamplerValues",{enumerable:!0,get:function(){return rye.TracesSamplerValues}});var MX=OX();Object.defineProperty(O,"TimeoutError",{enumerable:!0,get:function(){return MX.TimeoutError}});Object.defineProperty(O,"callWithTimeout",{enumerable:!0,get:function(){return MX.callWithTimeout}});var LX=IX();Object.defineProperty(O,"isUrlIgnored",{enumerable:!0,get:function(){return LX.isUrlIgnored}});Object.defineProperty(O,"urlMatches",{enumerable:!0,get:function(){return LX.urlMatches}});var nye=PX();Object.defineProperty(O,"isWrapped",{enumerable:!0,get:function(){return nye.isWrapped}});var oye=vX();Object.defineProperty(O,"BindOnceFuture",{enumerable:!0,get:function(){return oye.BindOnceFuture}});var iye=nv();Object.defineProperty(O,"VERSION",{enumerable:!0,get:function(){return iye.VERSION}});var sye=NX();O.internal={_export:sye._export}});var Cd=c((sat,DX)=>{var aye="2.0.0",uye=Number.MAX_SAFE_INTEGER||9007199254740991,cye=16,lye=250,dye=["major","premajor","minor","preminor","patch","prepatch","prerelease"];DX.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:cye,MAX_SAFE_BUILD_LENGTH:lye,MAX_SAFE_INTEGER:uye,RELEASE_TYPES:dye,SEMVER_SPEC_VERSION:aye,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Md=c((aat,GX)=>{var pye=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};GX.exports=pye});var Qa=c((co,xX)=>{var{MAX_SAFE_COMPONENT_LENGTH:yv,MAX_SAFE_BUILD_LENGTH:_ye,MAX_LENGTH:fye}=Cd(),gye=Md();co=xX.exports={};var hye=co.re=[],Eye=co.safeRe=[],q=co.src=[],j=co.t={},mye=0,Nv="[a-zA-Z0-9-]",Tye=[["\\s",1],["\\d",fye],[Nv,_ye]],Sye=t=>{for(let[e,r]of Tye)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},X=(t,e,r)=>{let n=Sye(e),o=mye++;gye(t,o,e),j[t]=o,q[o]=e,hye[o]=new RegExp(e,r?"g":void 0),Eye[o]=new RegExp(n,r?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","\\d+");X("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Nv}*`);X("MAINVERSION",`(${q[j.NUMERICIDENTIFIER]})\\.(${q[j.NUMERICIDENTIFIER]})\\.(${q[j.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${q[j.NUMERICIDENTIFIERLOOSE]})\\.(${q[j.NUMERICIDENTIFIERLOOSE]})\\.(${q[j.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${q[j.NUMERICIDENTIFIER]}|${q[j.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${q[j.NUMERICIDENTIFIERLOOSE]}|${q[j.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${q[j.PRERELEASEIDENTIFIER]}(?:\\.${q[j.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${q[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${q[j.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER",`${Nv}+`);X("BUILD",`(?:\\+(${q[j.BUILDIDENTIFIER]}(?:\\.${q[j.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${q[j.MAINVERSION]}${q[j.PRERELEASE]}?${q[j.BUILD]}?`);X("FULL",`^${q[j.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${q[j.MAINVERSIONLOOSE]}${q[j.PRERELEASELOOSE]}?${q[j.BUILD]}?`);X("LOOSE",`^${q[j.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${q[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${q[j.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${q[j.XRANGEIDENTIFIER]})(?:\\.(${q[j.XRANGEIDENTIFIER]})(?:\\.(${q[j.XRANGEIDENTIFIER]})(?:${q[j.PRERELEASE]})?${q[j.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${q[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${q[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${q[j.XRANGEIDENTIFIERLOOSE]})(?:${q[j.PRERELEASELOOSE]})?${q[j.BUILD]}?)?)?`);X("XRANGE",`^${q[j.GTLT]}\\s*${q[j.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${q[j.GTLT]}\\s*${q[j.XRANGEPLAINLOOSE]}$`);X("COERCEPLAIN",`(^|[^\\d])(\\d{1,${yv}})(?:\\.(\\d{1,${yv}}))?(?:\\.(\\d{1,${yv}}))?`);X("COERCE",`${q[j.COERCEPLAIN]}(?:$|[^\\d])`);X("COERCEFULL",q[j.COERCEPLAIN]+`(?:${q[j.PRERELEASE]})?(?:${q[j.BUILD]})?(?:$|[^\\d])`);X("COERCERTL",q[j.COERCE],!0);X("COERCERTLFULL",q[j.COERCEFULL],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${q[j.LONETILDE]}\\s+`,!0);co.tildeTrimReplace="$1~";X("TILDE",`^${q[j.LONETILDE]}${q[j.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${q[j.LONETILDE]}${q[j.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${q[j.LONECARET]}\\s+`,!0);co.caretTrimReplace="$1^";X("CARET",`^${q[j.LONECARET]}${q[j.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${q[j.LONECARET]}${q[j.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${q[j.GTLT]}\\s*(${q[j.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${q[j.GTLT]}\\s*(${q[j.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${q[j.GTLT]}\\s*(${q[j.LOOSEPLAIN]}|${q[j.XRANGEPLAIN]})`,!0);co.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${q[j.XRANGEPLAIN]})\\s+-\\s+(${q[j.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${q[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${q[j.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Gg=c((uat,UX)=>{var Aye=Object.freeze({loose:!0}),Oye=Object.freeze({}),Rye=t=>t?typeof t!="object"?Aye:t:Oye;UX.exports=Rye});var Cv=c((cat,jX)=>{var wX=/^[0-9]+$/,qX=(t,e)=>{let r=wX.test(t),n=wX.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},Iye=(t,e)=>qX(e,t);jX.exports={compareIdentifiers:qX,rcompareIdentifiers:Iye}});var Rt=c((lat,FX)=>{var xg=Md(),{MAX_LENGTH:VX,MAX_SAFE_INTEGER:Ug}=Cd(),{safeRe:BX,t:HX}=Qa(),Pye=Gg(),{compareIdentifiers:eu}=Cv(),Mv=class t{constructor(e,r){if(r=Pye(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>VX)throw new TypeError(`version is longer than ${VX} characters`);xg("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?BX[HX.LOOSE]:BX[HX.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Ug||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ug||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ug||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let i=+o;if(i>=0&&i<Ug)return i}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(xg("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),eu(this.major,e.major)||eu(this.minor,e.minor)||eu(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],o=e.prerelease[r];if(xg("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return eu(n,o)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],o=e.build[r];if(xg("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return eu(n,o)}while(++r)}inc(e,r,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let i=[r,o];n===!1&&(i=[r]),eu(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};FX.exports=Mv});var Vs=c((dat,WX)=>{var kX=Rt(),bye=(t,e,r=!1)=>{if(t instanceof kX)return t;try{return new kX(t,e)}catch(n){if(!r)return null;throw n}};WX.exports=bye});var KX=c((pat,YX)=>{var vye=Vs(),yye=(t,e)=>{let r=vye(t,e);return r?r.version:null};YX.exports=yye});var ZX=c((_at,XX)=>{var Nye=Vs(),Cye=(t,e)=>{let r=Nye(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};XX.exports=Cye});var $X=c((fat,JX)=>{var zX=Rt(),Mye=(t,e,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new zX(t instanceof zX?t.version:t,r).inc(e,n,o).version}catch{return null}};JX.exports=Mye});var tZ=c((gat,eZ)=>{var QX=Vs(),Lye=(t,e)=>{let r=QX(t,null,!0),n=QX(e,null,!0),o=r.compare(n);if(o===0)return null;let i=o>0,s=i?r:n,a=i?n:r,u=!!s.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":s.patch?"patch":s.minor?"minor":"major";let d=u?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"};eZ.exports=Lye});var nZ=c((hat,rZ)=>{var Dye=Rt(),Gye=(t,e)=>new Dye(t,e).major;rZ.exports=Gye});var iZ=c((Eat,oZ)=>{var xye=Rt(),Uye=(t,e)=>new xye(t,e).minor;oZ.exports=Uye});var aZ=c((mat,sZ)=>{var wye=Rt(),qye=(t,e)=>new wye(t,e).patch;sZ.exports=qye});var cZ=c((Tat,uZ)=>{var jye=Vs(),Vye=(t,e)=>{let r=jye(t,e);return r&&r.prerelease.length?r.prerelease:null};uZ.exports=Vye});var br=c((Sat,dZ)=>{var lZ=Rt(),Bye=(t,e,r)=>new lZ(t,r).compare(new lZ(e,r));dZ.exports=Bye});var _Z=c((Aat,pZ)=>{var Hye=br(),Fye=(t,e,r)=>Hye(e,t,r);pZ.exports=Fye});var gZ=c((Oat,fZ)=>{var kye=br(),Wye=(t,e)=>kye(t,e,!0);fZ.exports=Wye});var wg=c((Rat,EZ)=>{var hZ=Rt(),Yye=(t,e,r)=>{let n=new hZ(t,r),o=new hZ(e,r);return n.compare(o)||n.compareBuild(o)};EZ.exports=Yye});var TZ=c((Iat,mZ)=>{var Kye=wg(),Xye=(t,e)=>t.sort((r,n)=>Kye(r,n,e));mZ.exports=Xye});var AZ=c((Pat,SZ)=>{var Zye=wg(),zye=(t,e)=>t.sort((r,n)=>Zye(n,r,e));SZ.exports=zye});var Ld=c((bat,OZ)=>{var Jye=br(),$ye=(t,e,r)=>Jye(t,e,r)>0;OZ.exports=$ye});var qg=c((vat,RZ)=>{var Qye=br(),eNe=(t,e,r)=>Qye(t,e,r)<0;RZ.exports=eNe});var Lv=c((yat,IZ)=>{var tNe=br(),rNe=(t,e,r)=>tNe(t,e,r)===0;IZ.exports=rNe});var Dv=c((Nat,PZ)=>{var nNe=br(),oNe=(t,e,r)=>nNe(t,e,r)!==0;PZ.exports=oNe});var jg=c((Cat,bZ)=>{var iNe=br(),sNe=(t,e,r)=>iNe(t,e,r)>=0;bZ.exports=sNe});var Vg=c((Mat,vZ)=>{var aNe=br(),uNe=(t,e,r)=>aNe(t,e,r)<=0;vZ.exports=uNe});var Gv=c((Lat,yZ)=>{var cNe=Lv(),lNe=Dv(),dNe=Ld(),pNe=jg(),_Ne=qg(),fNe=Vg(),gNe=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return cNe(t,r,n);case"!=":return lNe(t,r,n);case">":return dNe(t,r,n);case">=":return pNe(t,r,n);case"<":return _Ne(t,r,n);case"<=":return fNe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};yZ.exports=gNe});var CZ=c((Dat,NZ)=>{var hNe=Rt(),ENe=Vs(),{safeRe:Bg,t:Hg}=Qa(),mNe=(t,e)=>{if(t instanceof hNe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Bg[Hg.COERCEFULL]:Bg[Hg.COERCE]);else{let u=e.includePrerelease?Bg[Hg.COERCERTLFULL]:Bg[Hg.COERCERTL],l;for(;(l=u.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],o=r[3]||"0",i=r[4]||"0",s=e.includePrerelease&&r[5]?`-${r[5]}`:"",a=e.includePrerelease&&r[6]?`+${r[6]}`:"";return ENe(`${n}.${o}.${i}${s}${a}`,e)};NZ.exports=mNe});var LZ=c((Gat,MZ)=>{var xv=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(e,r)}return this}};MZ.exports=xv});var vr=c((xat,UZ)=>{var TNe=/\s+/g,Uv=class t{constructor(e,r){if(r=ANe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof wv)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(TNe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!GZ(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&yNe(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&bNe)|(this.options.loose&&vNe))+":"+e,o=DZ.get(n);if(o)return o;let i=this.options.loose,s=i?ir[Kt.HYPHENRANGELOOSE]:ir[Kt.HYPHENRANGE];e=e.replace(s,qNe(this.options.includePrerelease)),me("hyphen replace",e),e=e.replace(ir[Kt.COMPARATORTRIM],RNe),me("comparator trim",e),e=e.replace(ir[Kt.TILDETRIM],INe),me("tilde trim",e),e=e.replace(ir[Kt.CARETTRIM],PNe),me("caret trim",e);let a=e.split(" ").map(p=>NNe(p,this.options)).join(" ").split(/\s+/).map(p=>wNe(p,this.options));i&&(a=a.filter(p=>(me("loose invalid filter",p,this.options),!!p.match(ir[Kt.COMPARATORLOOSE])))),me("range list",a);let u=new Map,l=a.map(p=>new wv(p,this.options));for(let p of l){if(GZ(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let d=[...u.values()];return DZ.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>xZ(n,r)&&e.set.some(o=>xZ(o,r)&&n.every(i=>o.every(s=>i.intersects(s,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new ONe(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(jNe(this.set[r],e,this.options))return!0;return!1}};UZ.exports=Uv;var SNe=LZ(),DZ=new SNe,ANe=Gg(),wv=Dd(),me=Md(),ONe=Rt(),{safeRe:ir,t:Kt,comparatorTrimReplace:RNe,tildeTrimReplace:INe,caretTrimReplace:PNe}=Qa(),{FLAG_INCLUDE_PRERELEASE:bNe,FLAG_LOOSE:vNe}=Cd(),GZ=t=>t.value==="<0.0.0-0",yNe=t=>t.value==="",xZ=(t,e)=>{let r=!0,n=t.slice(),o=n.pop();for(;r&&n.length;)r=n.every(i=>o.intersects(i,e)),o=n.pop();return r},NNe=(t,e)=>(me("comp",t,e),t=LNe(t,e),me("caret",t),t=CNe(t,e),me("tildes",t),t=GNe(t,e),me("xrange",t),t=UNe(t,e),me("stars",t),t),Xt=t=>!t||t.toLowerCase()==="x"||t==="*",CNe=(t,e)=>t.trim().split(/\s+/).map(r=>MNe(r,e)).join(" "),MNe=(t,e)=>{let r=e.loose?ir[Kt.TILDELOOSE]:ir[Kt.TILDE];return t.replace(r,(n,o,i,s,a)=>{me("tilde",t,n,o,i,s,a);let u;return Xt(o)?u="":Xt(i)?u=`>=${o}.0.0 <${+o+1}.0.0-0`:Xt(s)?u=`>=${o}.${i}.0 <${o}.${+i+1}.0-0`:a?(me("replaceTilde pr",a),u=`>=${o}.${i}.${s}-${a} <${o}.${+i+1}.0-0`):u=`>=${o}.${i}.${s} <${o}.${+i+1}.0-0`,me("tilde return",u),u})},LNe=(t,e)=>t.trim().split(/\s+/).map(r=>DNe(r,e)).join(" "),DNe=(t,e)=>{me("caret",t,e);let r=e.loose?ir[Kt.CARETLOOSE]:ir[Kt.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(o,i,s,a,u)=>{me("caret",t,o,i,s,a,u);let l;return Xt(i)?l="":Xt(s)?l=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Xt(a)?i==="0"?l=`>=${i}.${s}.0${n} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.0${n} <${+i+1}.0.0-0`:u?(me("replaceCaret pr",u),i==="0"?s==="0"?l=`>=${i}.${s}.${a}-${u} <${i}.${s}.${+a+1}-0`:l=`>=${i}.${s}.${a}-${u} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.${a}-${u} <${+i+1}.0.0-0`):(me("no pr"),i==="0"?s==="0"?l=`>=${i}.${s}.${a}${n} <${i}.${s}.${+a+1}-0`:l=`>=${i}.${s}.${a}${n} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.${a} <${+i+1}.0.0-0`),me("caret return",l),l})},GNe=(t,e)=>(me("replaceXRanges",t,e),t.split(/\s+/).map(r=>xNe(r,e)).join(" ")),xNe=(t,e)=>{t=t.trim();let r=e.loose?ir[Kt.XRANGELOOSE]:ir[Kt.XRANGE];return t.replace(r,(n,o,i,s,a,u)=>{me("xRange",t,n,o,i,s,a,u);let l=Xt(i),d=l||Xt(s),p=d||Xt(a),_=p;return o==="="&&_&&(o=""),u=e.includePrerelease?"-0":"",l?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&_?(d&&(s=0),a=0,o===">"?(o=">=",d?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):o==="<="&&(o="<",d?i=+i+1:s=+s+1),o==="<"&&(u="-0"),n=`${o+i}.${s}.${a}${u}`):d?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${s}.0${u} <${i}.${+s+1}.0-0`),me("xRange return",n),n})},UNe=(t,e)=>(me("replaceStars",t,e),t.trim().replace(ir[Kt.STAR],"")),wNe=(t,e)=>(me("replaceGTE0",t,e),t.trim().replace(ir[e.includePrerelease?Kt.GTE0PRE:Kt.GTE0],"")),qNe=t=>(e,r,n,o,i,s,a,u,l,d,p,_)=>(Xt(n)?r="":Xt(o)?r=`>=${n}.0.0${t?"-0":""}`:Xt(i)?r=`>=${n}.${o}.0${t?"-0":""}`:s?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Xt(l)?u="":Xt(d)?u=`<${+l+1}.0.0-0`:Xt(p)?u=`<${l}.${+d+1}.0-0`:_?u=`<=${l}.${d}.${p}-${_}`:t?u=`<${l}.${d}.${+p+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),jNe=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(me(t[n].semver),t[n].semver!==wv.ANY&&t[n].semver.prerelease.length>0){let o=t[n].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}});var Dd=c((Uat,HZ)=>{var Gd=Symbol("SemVer ANY"),Vv=class t{static get ANY(){return Gd}constructor(e,r){if(r=wZ(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),jv("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Gd?this.value="":this.value=this.operator+this.semver.version,jv("comp",this)}parse(e){let r=this.options.loose?qZ[jZ.COMPARATORLOOSE]:qZ[jZ.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new VZ(n[2],this.options.loose):this.semver=Gd}toString(){return this.value}test(e){if(jv("Comparator.test",e,this.options.loose),this.semver===Gd||e===Gd)return!0;if(typeof e=="string")try{e=new VZ(e,this.options)}catch{return!1}return qv(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new BZ(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new BZ(this.value,r).test(e.semver):(r=wZ(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||qv(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||qv(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};HZ.exports=Vv;var wZ=Gg(),{safeRe:qZ,t:jZ}=Qa(),qv=Gv(),jv=Md(),VZ=Rt(),BZ=vr()});var xd=c((wat,FZ)=>{var VNe=vr(),BNe=(t,e,r)=>{try{e=new VNe(e,r)}catch{return!1}return e.test(t)};FZ.exports=BNe});var WZ=c((qat,kZ)=>{var HNe=vr(),FNe=(t,e)=>new HNe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));kZ.exports=FNe});var KZ=c((jat,YZ)=>{var kNe=Rt(),WNe=vr(),YNe=(t,e,r)=>{let n=null,o=null,i=null;try{i=new WNe(e,r)}catch{return null}return t.forEach(s=>{i.test(s)&&(!n||o.compare(s)===-1)&&(n=s,o=new kNe(n,r))}),n};YZ.exports=YNe});var ZZ=c((Vat,XZ)=>{var KNe=Rt(),XNe=vr(),ZNe=(t,e,r)=>{let n=null,o=null,i=null;try{i=new XNe(e,r)}catch{return null}return t.forEach(s=>{i.test(s)&&(!n||o.compare(s)===1)&&(n=s,o=new KNe(n,r))}),n};XZ.exports=ZNe});var $Z=c((Bat,JZ)=>{var Bv=Rt(),zNe=vr(),zZ=Ld(),JNe=(t,e)=>{t=new zNe(t,e);let r=new Bv("0.0.0");if(t.test(r)||(r=new Bv("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let o=t.set[n],i=null;o.forEach(s=>{let a=new Bv(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||zZ(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),i&&(!r||zZ(r,i))&&(r=i)}return r&&t.test(r)?r:null};JZ.exports=JNe});var e5=c((Hat,QZ)=>{var $Ne=vr(),QNe=(t,e)=>{try{return new $Ne(t,e).range||"*"}catch{return null}};QZ.exports=QNe});var Fg=c((Fat,o5)=>{var eCe=Rt(),n5=Dd(),{ANY:tCe}=n5,rCe=vr(),nCe=xd(),t5=Ld(),r5=qg(),oCe=Vg(),iCe=jg(),sCe=(t,e,r,n)=>{t=new eCe(t,n),e=new rCe(e,n);let o,i,s,a,u;switch(r){case">":o=t5,i=oCe,s=r5,a=">",u=">=";break;case"<":o=r5,i=iCe,s=t5,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nCe(t,e,n))return!1;for(let l=0;l<e.set.length;++l){let d=e.set[l],p=null,_=null;if(d.forEach(f=>{f.semver===tCe&&(f=new n5(">=0.0.0")),p=p||f,_=_||f,o(f.semver,p.semver,n)?p=f:s(f.semver,_.semver,n)&&(_=f)}),p.operator===a||p.operator===u||(!_.operator||_.operator===a)&&i(t,_.semver))return!1;if(_.operator===u&&s(t,_.semver))return!1}return!0};o5.exports=sCe});var s5=c((kat,i5)=>{var aCe=Fg(),uCe=(t,e,r)=>aCe(t,e,">",r);i5.exports=uCe});var u5=c((Wat,a5)=>{var cCe=Fg(),lCe=(t,e,r)=>cCe(t,e,"<",r);a5.exports=lCe});var d5=c((Yat,l5)=>{var c5=vr(),dCe=(t,e,r)=>(t=new c5(t,r),e=new c5(e,r),t.intersects(e,r));l5.exports=dCe});var _5=c((Kat,p5)=>{var pCe=xd(),_Ce=br();p5.exports=(t,e,r)=>{let n=[],o=null,i=null,s=t.sort((d,p)=>_Ce(d,p,r));for(let d of s)pCe(d,e,r)?(i=d,o||(o=d)):(i&&n.push([o,i]),i=null,o=null);o&&n.push([o,null]);let a=[];for(let[d,p]of n)d===p?a.push(d):!p&&d===s[0]?a.push("*"):p?d===s[0]?a.push(`<=${p}`):a.push(`${d} - ${p}`):a.push(`>=${d}`);let u=a.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var T5=c((Xat,m5)=>{var f5=vr(),Fv=Dd(),{ANY:Hv}=Fv,Ud=xd(),kv=br(),fCe=(t,e,r={})=>{if(t===e)return!0;t=new f5(t,r),e=new f5(e,r);let n=!1;e:for(let o of t.set){for(let i of e.set){let s=hCe(o,i,r);if(n=n||s!==null,s)continue e}if(n)return!1}return!0},gCe=[new Fv(">=0.0.0-0")],g5=[new Fv(">=0.0.0")],hCe=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Hv){if(e.length===1&&e[0].semver===Hv)return!0;r.includePrerelease?t=gCe:t=g5}if(e.length===1&&e[0].semver===Hv){if(r.includePrerelease)return!0;e=g5}let n=new Set,o,i;for(let f of t)f.operator===">"||f.operator===">="?o=h5(o,f,r):f.operator==="<"||f.operator==="<="?i=E5(i,f,r):n.add(f.semver);if(n.size>1)return null;let s;if(o&&i){if(s=kv(o.semver,i.semver,r),s>0)return null;if(s===0&&(o.operator!==">="||i.operator!=="<="))return null}for(let f of n){if(o&&!Ud(f,String(o),r)||i&&!Ud(f,String(i),r))return null;for(let g of e)if(!Ud(f,String(g),r))return!1;return!0}let a,u,l,d,p=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,_=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",o){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(a=h5(o,f,r),a===f&&a!==o)return!1}else if(o.operator===">="&&!Ud(o.semver,String(f),r))return!1}if(i){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=E5(i,f,r),u===f&&u!==i)return!1}else if(i.operator==="<="&&!Ud(i.semver,String(f),r))return!1}if(!f.operator&&(i||o)&&s!==0)return!1}return!(o&&l&&!i&&s!==0||i&&d&&!o&&s!==0||_||p)},h5=(t,e,r)=>{if(!t)return e;let n=kv(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},E5=(t,e,r)=>{if(!t)return e;let n=kv(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};m5.exports=fCe});var Zt=c((Zat,O5)=>{var Wv=Qa(),S5=Cd(),ECe=Rt(),A5=Cv(),mCe=Vs(),TCe=KX(),SCe=ZX(),ACe=$X(),OCe=tZ(),RCe=nZ(),ICe=iZ(),PCe=aZ(),bCe=cZ(),vCe=br(),yCe=_Z(),NCe=gZ(),CCe=wg(),MCe=TZ(),LCe=AZ(),DCe=Ld(),GCe=qg(),xCe=Lv(),UCe=Dv(),wCe=jg(),qCe=Vg(),jCe=Gv(),VCe=CZ(),BCe=Dd(),HCe=vr(),FCe=xd(),kCe=WZ(),WCe=KZ(),YCe=ZZ(),KCe=$Z(),XCe=e5(),ZCe=Fg(),zCe=s5(),JCe=u5(),$Ce=d5(),QCe=_5(),eMe=T5();O5.exports={parse:mCe,valid:TCe,clean:SCe,inc:ACe,diff:OCe,major:RCe,minor:ICe,patch:PCe,prerelease:bCe,compare:vCe,rcompare:yCe,compareLoose:NCe,compareBuild:CCe,sort:MCe,rsort:LCe,gt:DCe,lt:GCe,eq:xCe,neq:UCe,gte:wCe,lte:qCe,cmp:jCe,coerce:VCe,Comparator:BCe,Range:HCe,satisfies:FCe,toComparators:kCe,maxSatisfying:WCe,minSatisfying:YCe,minVersion:KCe,validRange:XCe,outside:ZCe,gtr:zCe,ltr:JCe,intersects:$Ce,simplifyRange:QCe,subset:eMe,SemVer:ECe,re:Wv.re,src:Wv.src,tokens:Wv.t,SEMVER_SPEC_VERSION:S5.SEMVER_SPEC_VERSION,RELEASE_TYPES:S5.RELEASE_TYPES,compareIdentifiers:A5.compareIdentifiers,rcompareIdentifiers:A5.rcompareIdentifiers}});var R5=c(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.AttributeNames=void 0;var tMe;(function(t){t.HTTP_ERROR_NAME="http.error_name",t.HTTP_ERROR_MESSAGE="http.error_message",t.HTTP_STATUS_TEXT="http.status_text"})(tMe=wd.AttributeNames||(wd.AttributeNames={}))});var Yv=c(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.headerCapture=F.getIncomingRequestMetricAttributesOnResponse=F.getIncomingRequestAttributesOnResponse=F.getIncomingRequestMetricAttributes=F.getIncomingRequestAttributes=F.getOutgoingRequestMetricAttributesOnResponse=F.getOutgoingRequestAttributesOnResponse=F.setAttributesFromHttpKind=F.getOutgoingRequestMetricAttributes=F.getOutgoingRequestAttributes=F.extractHostnameAndPort=F.isValidOptionsType=F.getRequestInfo=F.isCompressed=F.setResponseContentLengthAttribute=F.setRequestContentLengthAttribute=F.setSpanWithError=F.isIgnored=F.satisfiesPattern=F.parseResponseStatus=F.getAbsoluteUrl=void 0;var qd=(P(),m(I)),B=($(),m(J)),I5=Dg(),kg=require("url"),Wg=R5(),rMe=(t,e,r="http:")=>{let n=t||{},o=n.protocol||r,i=(n.port||"").toString(),s=n.path||"/",a=n.host||n.hostname||e.host||"localhost";return a.indexOf(":")===-1&&i&&i!=="80"&&i!=="443"&&(a+=`:${i}`),`${o}//${a}${s}`};F.getAbsoluteUrl=rMe;var nMe=(t,e)=>{let r=t===qd.SpanKind.CLIENT?400:500;return e&&e>=100&&e<r?qd.SpanStatusCode.UNSET:qd.SpanStatusCode.ERROR};F.parseResponseStatus=nMe;var oMe=(t,e)=>{if(typeof e=="string")return e===t;if(e instanceof RegExp)return e.test(t);if(typeof e=="function")return e(t);throw new TypeError("Pattern is in unsupported datatype")};F.satisfiesPattern=oMe;var iMe=(t,e,r)=>{if(!e)return!1;try{for(let n of e)if((0,F.satisfiesPattern)(t,n))return!0}catch(n){r&&r(n)}return!1};F.isIgnored=iMe;var sMe=(t,e)=>{let r=e.message;t.setAttribute(Wg.AttributeNames.HTTP_ERROR_NAME,e.name),t.setAttribute(Wg.AttributeNames.HTTP_ERROR_MESSAGE,r),t.setStatus({code:qd.SpanStatusCode.ERROR,message:r}),t.recordException(e)};F.setSpanWithError=sMe;var aMe=(t,e)=>{let r=P5(t.headers);r!==null&&((0,F.isCompressed)(t.headers)?e[B.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH]=r:e[B.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]=r)};F.setRequestContentLengthAttribute=aMe;var uMe=(t,e)=>{let r=P5(t.headers);r!==null&&((0,F.isCompressed)(t.headers)?e[B.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]=r:e[B.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]=r)};F.setResponseContentLengthAttribute=uMe;function P5(t){let e=t["content-length"];if(e===void 0)return null;let r=parseInt(e,10);return isNaN(r)?null:r}var cMe=t=>{let e=t["content-encoding"];return!!e&&e!=="identity"};F.isCompressed=cMe;var lMe=(t,e)=>{let r="/",n="",o;if(typeof t=="string")o=kg.parse(t),r=o.pathname||"/",n=`${o.protocol||"http:"}//${o.host}`,e!==void 0&&Object.assign(o,e);else if(t instanceof kg.URL)o={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,path:`${t.pathname||""}${t.search||""}`},t.port!==""&&(o.port=Number(t.port)),(t.username||t.password)&&(o.auth=`${t.username}:${t.password}`),r=t.pathname,n=t.origin,e!==void 0&&Object.assign(o,e);else{o=Object.assign({protocol:t.host?"http:":void 0},t),r=t.pathname,!r&&o.path&&(r=kg.parse(o.path).pathname||"/");let s=o.host||(o.port!=null?`${o.hostname}${o.port}`:o.hostname);n=`${o.protocol||"http:"}//${s}`}let i=o.method?o.method.toUpperCase():"GET";return{origin:n,pathname:r,method:i,optionsParsed:o}};F.getRequestInfo=lMe;var dMe=t=>{if(!t)return!1;let e=typeof t;return e==="string"||e==="object"&&!Array.isArray(t)};F.isValidOptionsType=dMe;var pMe=t=>{var e;if(t.hostname&&t.port)return{hostname:t.hostname,port:t.port};let r=((e=t.host)===null||e===void 0?void 0:e.match(/^([^:/ ]+)(:\d{1,5})?/))||null,n=t.hostname||(r===null?"localhost":r[1]),o=t.port;return o||(r&&r[2]?o=r[2].substring(1):o=t.protocol==="https:"?"443":"80"),{hostname:n,port:o}};F.extractHostnameAndPort=pMe;var _Me=(t,e)=>{var r;let n=e.hostname,o=e.port,i=t.method,s=i?i.toUpperCase():"GET",a=t.headers||{},u=a["user-agent"],l={[B.SEMATTRS_HTTP_URL]:(0,F.getAbsoluteUrl)(t,a,`${e.component}:`),[B.SEMATTRS_HTTP_METHOD]:s,[B.SEMATTRS_HTTP_TARGET]:t.path||"/",[B.SEMATTRS_NET_PEER_NAME]:n,[B.SEMATTRS_HTTP_HOST]:(r=a.host)!==null&&r!==void 0?r:`${n}:${o}`};return u!==void 0&&(l[B.SEMATTRS_HTTP_USER_AGENT]=u),Object.assign(l,e.hookAttributes)};F.getOutgoingRequestAttributes=_Me;var fMe=t=>{let e={};return e[B.SEMATTRS_HTTP_METHOD]=t[B.SEMATTRS_HTTP_METHOD],e[B.SEMATTRS_NET_PEER_NAME]=t[B.SEMATTRS_NET_PEER_NAME],e};F.getOutgoingRequestMetricAttributes=fMe;var gMe=(t,e)=>{t&&(e[B.SEMATTRS_HTTP_FLAVOR]=t,t.toUpperCase()!=="QUIC"?e[B.SEMATTRS_NET_TRANSPORT]=B.NETTRANSPORTVALUES_IP_TCP:e[B.SEMATTRS_NET_TRANSPORT]=B.NETTRANSPORTVALUES_IP_UDP)};F.setAttributesFromHttpKind=gMe;var hMe=t=>{let{statusCode:e,statusMessage:r,httpVersion:n,socket:o}=t,i={};if(o){let{remoteAddress:s,remotePort:a}=o;i[B.SEMATTRS_NET_PEER_IP]=s,i[B.SEMATTRS_NET_PEER_PORT]=a}return(0,F.setResponseContentLengthAttribute)(t,i),e&&(i[B.SEMATTRS_HTTP_STATUS_CODE]=e,i[Wg.AttributeNames.HTTP_STATUS_TEXT]=(r||"").toUpperCase()),(0,F.setAttributesFromHttpKind)(n,i),i};F.getOutgoingRequestAttributesOnResponse=hMe;var EMe=t=>{let e={};return e[B.SEMATTRS_NET_PEER_PORT]=t[B.SEMATTRS_NET_PEER_PORT],e[B.SEMATTRS_HTTP_STATUS_CODE]=t[B.SEMATTRS_HTTP_STATUS_CODE],e[B.SEMATTRS_HTTP_FLAVOR]=t[B.SEMATTRS_HTTP_FLAVOR],e};F.getOutgoingRequestMetricAttributesOnResponse=EMe;var mMe=(t,e)=>{let r=t.headers,n=r["user-agent"],o=r["x-forwarded-for"],i=t.method||"GET",s=t.httpVersion,a=t.url?kg.parse(t.url):null,u=a?.host||r.host,l=a?.hostname||u?.replace(/^(.*)(:[0-9]{1,5})/,"$1")||"localhost",d=e.serverName,p={[B.SEMATTRS_HTTP_URL]:(0,F.getAbsoluteUrl)(a,r,`${e.component}:`),[B.SEMATTRS_HTTP_HOST]:u,[B.SEMATTRS_NET_HOST_NAME]:l,[B.SEMATTRS_HTTP_METHOD]:i,[B.SEMATTRS_HTTP_SCHEME]:e.component};return typeof o=="string"&&(p[B.SEMATTRS_HTTP_CLIENT_IP]=o.split(",")[0]),typeof d=="string"&&(p[B.SEMATTRS_HTTP_SERVER_NAME]=d),a&&(p[B.SEMATTRS_HTTP_TARGET]=a.path||"/"),n!==void 0&&(p[B.SEMATTRS_HTTP_USER_AGENT]=n),(0,F.setRequestContentLengthAttribute)(t,p),(0,F.setAttributesFromHttpKind)(s,p),Object.assign(p,e.hookAttributes)};F.getIncomingRequestAttributes=mMe;var TMe=t=>{let e={};return e[B.SEMATTRS_HTTP_SCHEME]=t[B.SEMATTRS_HTTP_SCHEME],e[B.SEMATTRS_HTTP_METHOD]=t[B.SEMATTRS_HTTP_METHOD],e[B.SEMATTRS_NET_HOST_NAME]=t[B.SEMATTRS_NET_HOST_NAME],e[B.SEMATTRS_HTTP_FLAVOR]=t[B.SEMATTRS_HTTP_FLAVOR],e};F.getIncomingRequestMetricAttributes=TMe;var SMe=(t,e)=>{let{socket:r}=t,{statusCode:n,statusMessage:o}=e,i=(0,I5.getRPCMetadata)(qd.context.active()),s={};if(r){let{localAddress:a,localPort:u,remoteAddress:l,remotePort:d}=r;s[B.SEMATTRS_NET_HOST_IP]=a,s[B.SEMATTRS_NET_HOST_PORT]=u,s[B.SEMATTRS_NET_PEER_IP]=l,s[B.SEMATTRS_NET_PEER_PORT]=d}return s[B.SEMATTRS_HTTP_STATUS_CODE]=n,s[Wg.AttributeNames.HTTP_STATUS_TEXT]=(o||"").toUpperCase(),i?.type===I5.RPCType.HTTP&&i.route!==void 0&&(s[B.SEMATTRS_HTTP_ROUTE]=i.route),s};F.getIncomingRequestAttributesOnResponse=SMe;var AMe=t=>{let e={};return e[B.SEMATTRS_HTTP_STATUS_CODE]=t[B.SEMATTRS_HTTP_STATUS_CODE],e[B.SEMATTRS_NET_HOST_PORT]=t[B.SEMATTRS_NET_HOST_PORT],t[B.SEMATTRS_HTTP_ROUTE]!==void 0&&(e[B.SEMATTRS_HTTP_ROUTE]=t[B.SEMATTRS_HTTP_ROUTE]),e};F.getIncomingRequestMetricAttributesOnResponse=AMe;function OMe(t,e){let r=new Map;for(let n=0,o=e.length;n<o;n++){let i=e[n].toLowerCase();r.set(i,i.replace(/-/g,"_"))}return(n,o)=>{for(let i of r.keys()){let s=o(i);if(s===void 0)continue;let a=r.get(i),u=`http.${t}.header.${a}`;typeof s=="string"?n.setAttribute(u,[s]):Array.isArray(s)?n.setAttribute(u,s):n.setAttribute(u,[s])}}}F.headerCapture=OMe});var b5=c(Yg=>{"use strict";Object.defineProperty(Yg,"__esModule",{value:!0});Yg.VERSION=void 0;Yg.VERSION="0.53.0"});var v5=c(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.SeverityNumber=void 0;var RMe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(RMe=jd.SeverityNumber||(jd.SeverityNumber={}))});var Kv=c(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.NOOP_LOGGER=tu.NoopLogger=void 0;var Kg=class{emit(e){}};tu.NoopLogger=Kg;tu.NOOP_LOGGER=new Kg});var Xv=c(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.NOOP_LOGGER_PROVIDER=ru.NoopLoggerProvider=void 0;var IMe=Kv(),Xg=class{getLogger(e,r,n){return new IMe.NoopLogger}};ru.NoopLoggerProvider=Xg;ru.NOOP_LOGGER_PROVIDER=new Xg});var y5=c(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg._globalThis=void 0;Zg._globalThis=typeof globalThis=="object"?globalThis:global});var N5=c(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg._globalThis=void 0;var PMe=y5();Object.defineProperty(zg,"_globalThis",{enumerable:!0,get:function(){return PMe._globalThis}})});var C5=c(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg._globalThis=void 0;var bMe=N5();Object.defineProperty(Jg,"_globalThis",{enumerable:!0,get:function(){return bMe._globalThis}})});var M5=c(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.API_BACKWARDS_COMPATIBILITY_VERSION=Sn.makeGetter=Sn._global=Sn.GLOBAL_LOGS_API_KEY=void 0;var vMe=C5();Sn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Sn._global=vMe._globalThis;function yMe(t,e,r){return n=>n===t?e:r}Sn.makeGetter=yMe;Sn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var D5=c($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.LogsAPI=void 0;var yr=M5(),L5=Xv(),Zv=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return yr._global[yr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(yr._global[yr.GLOBAL_LOGS_API_KEY]=(0,yr.makeGetter)(yr.API_BACKWARDS_COMPATIBILITY_VERSION,e,L5.NOOP_LOGGER_PROVIDER),e)}getLoggerProvider(){var e,r;return(r=(e=yr._global[yr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(yr._global,yr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:L5.NOOP_LOGGER_PROVIDER}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete yr._global[yr.GLOBAL_LOGS_API_KEY]}};$g.LogsAPI=Zv});var zv=c(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.logs=sr.NoopLoggerProvider=sr.NOOP_LOGGER_PROVIDER=sr.NoopLogger=sr.NOOP_LOGGER=sr.SeverityNumber=void 0;var NMe=v5();Object.defineProperty(sr,"SeverityNumber",{enumerable:!0,get:function(){return NMe.SeverityNumber}});var G5=Kv();Object.defineProperty(sr,"NOOP_LOGGER",{enumerable:!0,get:function(){return G5.NOOP_LOGGER}});Object.defineProperty(sr,"NoopLogger",{enumerable:!0,get:function(){return G5.NoopLogger}});var x5=Xv();Object.defineProperty(sr,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return x5.NOOP_LOGGER_PROVIDER}});Object.defineProperty(sr,"NoopLoggerProvider",{enumerable:!0,get:function(){return x5.NoopLoggerProvider}});var CMe=D5();sr.logs=CMe.LogsAPI.getInstance()});var U5=c(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.disableInstrumentations=nu.enableInstrumentations=void 0;function MMe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}nu.enableInstrumentations=MMe;function LMe(t){t.forEach(e=>e.disable())}nu.disableInstrumentations=LMe});var j5=c(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});Qg.registerInstrumentations=void 0;var w5=(P(),m(I)),DMe=zv(),q5=U5();function GMe(t){var e,r;let n=t.tracerProvider||w5.trace.getTracerProvider(),o=t.meterProvider||w5.metrics.getMeterProvider(),i=t.loggerProvider||DMe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,q5.enableInstrumentations)(s,n,o,i),()=>{(0,q5.disableInstrumentations)(s)}}Qg.registerInstrumentations=GMe});var le=c((lut,H5)=>{"use strict";function Jv(t){return typeof t=="function"}var zt=console.error.bind(console);function Vd(t,e,r){var n=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function Bd(t){t&&t.logger&&(Jv(t.logger)?zt=t.logger:zt("new logger isn't a function, not replacing"))}function V5(t,e,r){if(!t||!t[e]){zt("no original function "+e+" to wrap");return}if(!r){zt("no wrapper function"),zt(new Error().stack);return}if(!Jv(t[e])||!Jv(r)){zt("original object and wrapper must be functions");return}var n=t[e],o=r(n,e);return Vd(o,"__original",n),Vd(o,"__unwrap",function(){t[e]===o&&Vd(t,e,n)}),Vd(o,"__wrapped",!0),Vd(t,e,o),o}function xMe(t,e,r){if(t)Array.isArray(t)||(t=[t]);else{zt("must provide one or more modules to patch"),zt(new Error().stack);return}if(!(e&&Array.isArray(e))){zt("must provide one or more functions to wrap on modules");return}t.forEach(function(n){e.forEach(function(o){V5(n,o,r)})})}function B5(t,e){if(!t||!t[e]){zt("no function to unwrap."),zt(new Error().stack);return}if(!t[e].__unwrap)zt("no original to unwrap to -- has "+e+" already been unwrapped?");else return t[e].__unwrap()}function UMe(t,e){if(t)Array.isArray(t)||(t=[t]);else{zt("must provide one or more modules to patch"),zt(new Error().stack);return}if(!(e&&Array.isArray(e))){zt("must provide one or more functions to unwrap on modules");return}t.forEach(function(r){e.forEach(function(n){B5(r,n)})})}Bd.wrap=V5;Bd.massWrap=xMe;Bd.unwrap=B5;Bd.massUnwrap=UMe;H5.exports=Bd});var F5=c(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.InstrumentationAbstract=void 0;var $v=(P(),m(I)),wMe=zv(),eh=le(),Qv=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=eh.wrap,this._unwrap=eh.unwrap,this._massWrap=eh.massWrap,this._massUnwrap=eh.massUnwrap,this.setConfig(n),this._diag=$v.diag.createComponentLogger({namespace:e}),this._tracer=$v.trace.getTracer(e,r),this._meter=$v.metrics.getMeter(e,r),this._logger=wMe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};th.InstrumentationAbstract=Qv});var ey=c((put,k5)=>{"use strict";var qMe=require("os");k5.exports=qMe.homedir||function(){var e=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(r?"/Users/"+r:null):process.platform==="linux"?e||(process.getuid()===0?"/root":r?"/home/"+r:null):e||null}});var ty=c((_ut,W5)=>{W5.exports=function(){var t=Error.prepareStackTrace;Error.prepareStackTrace=function(r,n){return n};var e=new Error().stack;return Error.prepareStackTrace=t,e[2].getFileName()}});var Y5=c((fut,Hd)=>{"use strict";var jMe=process.platform==="win32",VMe=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,ry={};function BMe(t){return VMe.exec(t).slice(1)}ry.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=BMe(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var HMe=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,ny={};function FMe(t){return HMe.exec(t).slice(1)}ny.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=FMe(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};jMe?Hd.exports=ry.parse:Hd.exports=ny.parse;Hd.exports.posix=ny.parse;Hd.exports.win32=ry.parse});var oy=c((gut,z5)=>{var Z5=require("path"),K5=Z5.parse||Y5(),X5=function(e,r){var n="/";/^([A-Za-z]:)/.test(e)?n="":/^\\\\/.test(e)&&(n="\\\\");for(var o=[e],i=K5(e);i.dir!==o[o.length-1];)o.push(i.dir),i=K5(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(u){return Z5.resolve(n,a,u)}))},[])};z5.exports=function(e,r,n){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(n,e,function(){return X5(e,o)},r);var i=X5(e,o);return r&&r.paths?i.concat(r.paths):i}});var iy=c((hut,J5)=>{J5.exports=function(t,e){return e||{}}});var e9=c((Eut,Q5)=>{"use strict";var kMe="Function.prototype.bind called on incompatible ",WMe=Object.prototype.toString,YMe=Math.max,KMe="[object Function]",$5=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},XMe=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},ZMe=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};Q5.exports=function(e){var r=this;if(typeof r!="function"||WMe.apply(r)!==KMe)throw new TypeError(kMe+r);for(var n=XMe(arguments,1),o,i=function(){if(this instanceof o){var d=r.apply(this,$5(n,arguments));return Object(d)===d?d:this}return r.apply(e,$5(n,arguments))},s=YMe(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+ZMe(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}});var r9=c((mut,t9)=>{"use strict";var zMe=e9();t9.exports=Function.prototype.bind||zMe});var o9=c((Tut,n9)=>{"use strict";var JMe=Function.prototype.call,$Me=Object.prototype.hasOwnProperty,QMe=r9();n9.exports=QMe.call(JMe,$Me)});var i9=c((Sut,eLe)=>{eLe.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Fd=c((Aut,u9)=>{"use strict";var tLe=o9();function rLe(t,e){for(var r=t.split("."),n=e.split(" "),o=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),s=0;s<3;++s){var a=parseInt(r[s]||0,10),u=parseInt(i[s]||0,10);if(a!==u)return o==="<"?a<u:o===">="?a>=u:!1}return o===">="}function s9(t,e){var r=e.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!rLe(t,r[n]))return!1;return!0}function nLe(t,e){if(typeof e=="boolean")return e;var r=typeof t>"u"?process.versions&&process.versions.node:t;if(typeof r!="string")throw new TypeError(typeof t>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var n=0;n<e.length;++n)if(s9(r,e[n]))return!0;return!1}return s9(r,e)}var a9=i9();u9.exports=function(e,r){return tLe(a9,e)&&nLe(r,a9[e])}});var d9=c((Out,l9)=>{var Bs=require("fs"),oLe=ey(),we=require("path"),iLe=ty(),sLe=oy(),aLe=iy(),uLe=Fd(),cLe=process.platform!=="win32"&&Bs.realpath&&typeof Bs.realpath.native=="function"?Bs.realpath.native:Bs.realpath,c9=oLe(),lLe=function(){return[we.join(c9,".node_modules"),we.join(c9,".node_libraries")]},dLe=function(e,r){Bs.stat(e,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},pLe=function(e,r){Bs.stat(e,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},_Le=function(e,r){cLe(e,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?e:o)})},kd=function(e,r,n,o){n&&n.preserveSymlinks===!1?e(r,o):o(null,r)},fLe=function(e,r,n){e(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},gLe=function(e,r,n){for(var o=sLe(r,n,e),i=0;i<o.length;i++)o[i]=we.join(o[i],e);return o};l9.exports=function(e,r,n){var o=n,i=r;if(typeof r=="function"&&(o=i,i={}),typeof e!="string"){var s=new TypeError("Path must be a string.");return process.nextTick(function(){o(s)})}i=aLe(e,i);var a=i.isFile||dLe,u=i.isDirectory||pLe,l=i.readFile||Bs.readFile,d=i.realpath||_Le,p=i.readPackage||fLe;if(i.readFile&&i.readPackage){var _=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(_)})}var f=i.packageIterator,g=i.extensions||[".js"],h=i.includeCoreModules!==!1,T=i.basedir||we.dirname(iLe()),v=i.filename||T;i.paths=i.paths||lLe();var N=we.resolve(T);kd(d,N,i,function(x,V){x?o(x):L(V)});var D;function L(x){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))D=we.resolve(x,e),(e==="."||e===".."||e.slice(-1)==="/")&&(D+="/"),/\/$/.test(e)&&D===x?K(D,i.package,y):C(D,i.package,y);else{if(h&&uLe(e))return o(null,e);Ue(e,x,function(V,ie,z){if(V)o(V);else{if(ie)return kd(d,ie,i,function(Ve,_e){Ve?o(Ve):o(null,_e,z)});var ce=new Error("Cannot find module '"+e+"' from '"+v+"'");ce.code="MODULE_NOT_FOUND",o(ce)}})}}function y(x,V,ie){x?o(x):V?o(null,V,ie):K(D,function(z,ce,Ve){if(z)o(z);else if(ce)kd(d,ce,i,function(oe,dt){oe?o(oe):o(null,dt,Ve)});else{var _e=new Error("Cannot find module '"+e+"' from '"+v+"'");_e.code="MODULE_NOT_FOUND",o(_e)}})}function C(x,V,ie){var z=V,ce=ie;typeof z=="function"&&(ce=z,z=void 0);var Ve=[""].concat(g);_e(Ve,x,z);function _e(oe,dt,Qn){if(oe.length===0)return ce(null,void 0,Qn);var vs=dt+oe[0],_n=Qn;_n?mt(null,_n):G(we.dirname(vs),mt);function mt(Fo,ya,eo){if(_n=ya,Fo)return ce(Fo);if(eo&&_n&&i.pathFilter){var rf=we.relative(eo,vs),nf=rf.slice(0,rf.length-oe[0].length),rd=i.pathFilter(_n,dt,nf);if(rd)return _e([""].concat(g.slice()),we.resolve(eo,rd),_n)}a(vs,tf)}function tf(Fo,ya){if(Fo)return ce(Fo);if(ya)return ce(null,vs,_n);_e(oe.slice(1),dt,_n)}}}function G(x,V){if(x===""||x==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(x)||/[/\\]node_modules[/\\]*$/.test(x))return V(null);kd(d,x,i,function(ie,z){if(ie)return G(we.dirname(x),V);var ce=we.join(z,"package.json");a(ce,function(Ve,_e){if(!_e)return G(we.dirname(x),V);p(l,ce,function(oe,dt){oe&&V(oe);var Qn=dt;Qn&&i.packageFilter&&(Qn=i.packageFilter(Qn,ce)),V(null,Qn,x)})})})}function K(x,V,ie){var z=ie,ce=V;typeof ce=="function"&&(z=ce,ce=i.package),kd(d,x,i,function(Ve,_e){if(Ve)return z(Ve);var oe=we.join(_e,"package.json");a(oe,function(dt,Qn){if(dt)return z(dt);if(!Qn)return C(we.join(x,"index"),ce,z);p(l,oe,function(vs,_n){if(vs)return z(vs);var mt=_n;if(mt&&i.packageFilter&&(mt=i.packageFilter(mt,oe)),mt&&mt.main){if(typeof mt.main!="string"){var tf=new TypeError("package \u201C"+mt.name+"\u201D `main` must be a string");return tf.code="INVALID_PACKAGE_MAIN",z(tf)}(mt.main==="."||mt.main==="./")&&(mt.main="index"),C(we.resolve(x,mt.main),mt,function(Fo,ya,eo){if(Fo)return z(Fo);if(ya)return z(null,ya,eo);if(!eo)return C(we.join(x,"index"),eo,z);var rf=we.resolve(x,eo.main);K(rf,eo,function(nf,rd,eq){if(nf)return z(nf);if(rd)return z(null,rd,eq);C(we.join(x,"index"),eq,z)})});return}C(we.join(x,"/index"),mt,z)})})})}function Q(x,V){if(V.length===0)return x(null,void 0);var ie=V[0];u(we.dirname(ie),z);function z(_e,oe){if(_e)return x(_e);if(!oe)return Q(x,V.slice(1));C(ie,i.package,ce)}function ce(_e,oe,dt){if(_e)return x(_e);if(oe)return x(null,oe,dt);K(ie,i.package,Ve)}function Ve(_e,oe,dt){if(_e)return x(_e);if(oe)return x(null,oe,dt);Q(x,V.slice(1))}}function Ue(x,V,ie){var z=function(){return gLe(x,V,i)};Q(ie,f?f(x,V,z,i):z())}}});var p9=c((Rut,hLe)=>{hLe.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var h9=c((Iut,g9)=>{"use strict";var ELe=Fd(),_9=p9(),f9={};for(rh in _9)Object.prototype.hasOwnProperty.call(_9,rh)&&(f9[rh]=ELe(rh));var rh;g9.exports=f9});var m9=c((Put,E9)=>{var mLe=Fd();E9.exports=function(e){return mLe(e)}});var A9=c((but,S9)=>{var TLe=Fd(),Hs=require("fs"),It=require("path"),SLe=ey(),ALe=ty(),OLe=oy(),RLe=iy(),ILe=process.platform!=="win32"&&Hs.realpathSync&&typeof Hs.realpathSync.native=="function"?Hs.realpathSync.native:Hs.realpathSync,T9=SLe(),PLe=function(){return[It.join(T9,".node_modules"),It.join(T9,".node_libraries")]},bLe=function(e){try{var r=Hs.statSync(e,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},vLe=function(e){try{var r=Hs.statSync(e,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},yLe=function(e){try{return ILe(e)}catch(r){if(r.code!=="ENOENT")throw r}return e},Wd=function(e,r,n){return n&&n.preserveSymlinks===!1?e(r):r},NLe=function(e,r){var n=e(r);try{var o=JSON.parse(n);return o}catch{}},CLe=function(e,r,n){for(var o=OLe(r,n,e),i=0;i<o.length;i++)o[i]=It.join(o[i],e);return o};S9.exports=function(e,r){if(typeof e!="string")throw new TypeError("Path must be a string.");var n=RLe(e,r),o=n.isFile||bLe,i=n.readFileSync||Hs.readFileSync,s=n.isDirectory||vLe,a=n.realpathSync||yLe,u=n.readPackageSync||NLe;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var l=n.packageIterator,d=n.extensions||[".js"],p=n.includeCoreModules!==!1,_=n.basedir||It.dirname(ALe()),f=n.filename||_;n.paths=n.paths||PLe();var g=Wd(a,It.resolve(_),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var h=It.resolve(g,e);(e==="."||e===".."||e.slice(-1)==="/")&&(h+="/");var T=D(h)||y(h);if(T)return Wd(a,T,n)}else{if(p&&TLe(e))return e;var v=C(e,g);if(v)return Wd(a,v,n)}var N=new Error("Cannot find module '"+e+"' from '"+f+"'");throw N.code="MODULE_NOT_FOUND",N;function D(G){var K=L(It.dirname(G));if(K&&K.dir&&K.pkg&&n.pathFilter){var Q=It.relative(K.dir,G),Ue=n.pathFilter(K.pkg,G,Q);Ue&&(G=It.resolve(K.dir,Ue))}if(o(G))return G;for(var x=0;x<d.length;x++){var V=G+d[x];if(o(V))return V}}function L(G){if(!(G===""||G==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(G))&&!/[/\\]node_modules[/\\]*$/.test(G)){var K=It.join(Wd(a,G,n),"package.json");if(!o(K))return L(It.dirname(G));var Q=u(i,K);return Q&&n.packageFilter&&(Q=n.packageFilter(Q,G)),{pkg:Q,dir:G}}}function y(G){var K=It.join(Wd(a,G,n),"/package.json");if(o(K)){try{var Q=u(i,K)}catch{}if(Q&&n.packageFilter&&(Q=n.packageFilter(Q,G)),Q&&Q.main){if(typeof Q.main!="string"){var Ue=new TypeError("package \u201C"+Q.name+"\u201D `main` must be a string");throw Ue.code="INVALID_PACKAGE_MAIN",Ue}(Q.main==="."||Q.main==="./")&&(Q.main="index");try{var x=D(It.resolve(G,Q.main));if(x)return x;var V=y(It.resolve(G,Q.main));if(V)return V}catch{}}}return D(It.join(G,"/index"))}function C(G,K){for(var Q=function(){return CLe(G,K,n)},Ue=l?l(G,K,Q,n):Q(),x=0;x<Ue.length;x++){var V=Ue[x];if(s(It.dirname(V))){var ie=D(V);if(ie)return ie;var z=y(V);if(z)return z}}}}});var R9=c((vut,O9)=>{var nh=d9();nh.core=h9();nh.isCore=m9();nh.sync=A9();O9.exports=nh});var P9=c((yut,I9)=>{var ou=1e3,iu=ou*60,su=iu*60,Fs=su*24,MLe=Fs*7,LLe=Fs*365.25;I9.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return DLe(t);if(r==="number"&&isFinite(t))return e.long?xLe(t):GLe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function DLe(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*LLe;case"weeks":case"week":case"w":return r*MLe;case"days":case"day":case"d":return r*Fs;case"hours":case"hour":case"hrs":case"hr":case"h":return r*su;case"minutes":case"minute":case"mins":case"min":case"m":return r*iu;case"seconds":case"second":case"secs":case"sec":case"s":return r*ou;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function GLe(t){var e=Math.abs(t);return e>=Fs?Math.round(t/Fs)+"d":e>=su?Math.round(t/su)+"h":e>=iu?Math.round(t/iu)+"m":e>=ou?Math.round(t/ou)+"s":t+"ms"}function xLe(t){var e=Math.abs(t);return e>=Fs?oh(t,e,Fs,"day"):e>=su?oh(t,e,su,"hour"):e>=iu?oh(t,e,iu,"minute"):e>=ou?oh(t,e,ou,"second"):t+" ms"}function oh(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var sy=c((Nut,b9)=>{function ULe(t){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=s,r.humanize=P9(),r.destroy=l,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let _=0;_<d.length;_++)p=(p<<5)-p+d.charCodeAt(_),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(d){let p,_=null,f,g;function h(...T){if(!h.enabled)return;let v=h,N=Number(new Date),D=N-(p||N);v.diff=D,v.prev=p,v.curr=N,p=N,T[0]=r.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let L=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(C,G)=>{if(C==="%%")return"%";L++;let K=r.formatters[G];if(typeof K=="function"){let Q=T[L];C=K.call(v,Q),T.splice(L,1),L--}return C}),r.formatArgs.call(v,T),(v.log||r.log).apply(v,T)}return h.namespace=d,h.useColors=r.useColors(),h.color=r.selectColor(d),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(f!==r.namespaces&&(f=r.namespaces,g=r.enabled(d)),g),set:T=>{_=T}}),typeof r.init=="function"&&r.init(h),h}function n(d,p){let _=r(this.namespace+(typeof p>"u"?":":p)+d);return _.log=this.log,_}function o(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,_=(typeof d=="string"?d:"").split(/[\s,]+/),f=_.length;for(p=0;p<f;p++)_[p]&&(d=_[p].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.slice(1)+"$")):r.names.push(new RegExp("^"+d+"$")))}function i(){let d=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let p,_;for(p=0,_=r.skips.length;p<_;p++)if(r.skips[p].test(d))return!1;for(p=0,_=r.names.length;p<_;p++)if(r.names[p].test(d))return!0;return!1}function a(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function u(d){return d instanceof Error?d.stack||d.message:d}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}b9.exports=ULe});var v9=c((mr,ih)=>{mr.formatArgs=qLe;mr.save=jLe;mr.load=VLe;mr.useColors=wLe;mr.storage=BLe();mr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();mr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function wLe(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function qLe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ih.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}mr.log=console.debug||console.log||(()=>{});function jLe(t){try{t?mr.storage.setItem("debug",t):mr.storage.removeItem("debug")}catch{}}function VLe(){let t;try{t=mr.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function BLe(){try{return localStorage}catch{}}ih.exports=sy()(mr);var{formatters:HLe}=ih.exports;HLe.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var N9=c((Cut,y9)=>{"use strict";y9.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),o=e.indexOf("--");return n!==-1&&(o===-1||n<o)}});var L9=c((Mut,M9)=>{"use strict";var FLe=require("os"),C9=require("tty"),Nr=N9(),{env:We}=process,ri;Nr("no-color")||Nr("no-colors")||Nr("color=false")||Nr("color=never")?ri=0:(Nr("color")||Nr("colors")||Nr("color=true")||Nr("color=always"))&&(ri=1);"FORCE_COLOR"in We&&(We.FORCE_COLOR==="true"?ri=1:We.FORCE_COLOR==="false"?ri=0:ri=We.FORCE_COLOR.length===0?1:Math.min(parseInt(We.FORCE_COLOR,10),3));function ay(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function uy(t,e){if(ri===0)return 0;if(Nr("color=16m")||Nr("color=full")||Nr("color=truecolor"))return 3;if(Nr("color=256"))return 2;if(t&&!e&&ri===void 0)return 0;let r=ri||0;if(We.TERM==="dumb")return r;if(process.platform==="win32"){let n=FLe.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in We)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in We)||We.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in We)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(We.TEAMCITY_VERSION)?1:0;if(We.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in We){let n=parseInt((We.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(We.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(We.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(We.TERM)||"COLORTERM"in We?1:r}function kLe(t){let e=uy(t,t&&t.isTTY);return ay(e)}M9.exports={supportsColor:kLe,stdout:ay(uy(!0,C9.isatty(1))),stderr:ay(uy(!0,C9.isatty(2)))}});var G9=c((Ye,ah)=>{var WLe=require("tty"),sh=require("util");Ye.init=$Le;Ye.log=ZLe;Ye.formatArgs=KLe;Ye.save=zLe;Ye.load=JLe;Ye.useColors=YLe;Ye.destroy=sh.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ye.colors=[6,2,3,4,5,1];try{let t=L9();t&&(t.stderr||t).level>=2&&(Ye.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Ye.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function YLe(){return"colors"in Ye.inspectOpts?!!Ye.inspectOpts.colors:WLe.isatty(process.stderr.fd)}function KLe(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
8
+ `).join(`
9
+ `+i),t.push(o+"m+"+ah.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=XLe()+e+" "+t[0]}function XLe(){return Ye.inspectOpts.hideDate?"":new Date().toISOString()+" "}function ZLe(...t){return process.stderr.write(sh.formatWithOptions(Ye.inspectOpts,...t)+`
10
+ `)}function zLe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function JLe(){return process.env.DEBUG}function $Le(t){t.inspectOpts={};let e=Object.keys(Ye.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ye.inspectOpts[e[r]]}ah.exports=sy()(Ye);var{formatters:D9}=ah.exports;D9.o=function(t){return this.inspectOpts.colors=this.useColors,sh.inspect(t,this.inspectOpts).split(`
11
+ `).map(e=>e.trim()).join(" ")};D9.O=function(t){return this.inspectOpts.colors=this.useColors,sh.inspect(t,this.inspectOpts)}});var x9=c((Lut,cy)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?cy.exports=v9():cy.exports=G9()});var dy=c((Dut,U9)=>{"use strict";var ly=require("path");U9.exports=function(t){var e=t.split(ly.sep),r=e.lastIndexOf("node_modules");if(r!==-1&&e[r+1]){var n=e[r+1][0]==="@",o=n?e[r+1]+"/"+e[r+2]:e[r+1],i=n?3:2;return{name:o,basedir:e.slice(0,r+i).join(ly.sep),path:e.slice(r+i).join(ly.sep)}}}});var w9=c((Gut,QLe)=>{QLe.exports={name:"require-in-the-middle",version:"7.4.0",description:"Module to hook into the Node.js require function",main:"index.js",types:"types/index.d.ts",dependencies:{debug:"^4.3.5","module-details-from-path":"^1.0.3",resolve:"^1.22.8"},devDependencies:{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.5","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","ipp-printer":"^1.0.0",patterns:"^1.0.3",roundround:"^0.2.0",semver:"^6.3.0",standard:"^14.3.1",tape:"^4.11.0"},scripts:{test:"npm run test:lint && npm run test:tape && npm run test:babel","test:lint":"standard","test:tape":"tape test/*.js","test:babel":"node test/babel/babel-register.js"},repository:{type:"git",url:"git+https://github.com/elastic/require-in-the-middle.git"},keywords:["require","hook","shim","shimmer","shimming","patch","monkey","monkeypatch","module","load"],files:["types"],author:"Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)",license:"MIT",bugs:{url:"https://github.com/elastic/require-in-the-middle/issues"},homepage:"https://github.com/elastic/require-in-the-middle#readme",engines:{node:">=8.6.0"}}});var de=c((xut,fy)=>{"use strict";var au=require("path"),lo=require("module"),py=R9(),Ge=x9()("require-in-the-middle"),e0e=dy();fy.exports=Kd;fy.exports.Hook=Kd;var Yd;if(lo.isBuiltin)Yd=lo.isBuiltin;else{let[t,e]=process.versions.node.split(".").map(Number);t===8&&e<8?Yd=r=>r==="http2"?!0:!!py.core[r]:Yd=r=>!!py.core[r]}var t0e=/([/\\]index)?(\.js)?$/,_y=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol("RitmExports")}has(e,r){if(this._localCache.has(e))return!0;if(r)return!1;{let n=require.cache[e];return!!(n&&this._kRitmExports in n)}}get(e,r){let n=this._localCache.get(e);if(n!==void 0)return n;if(!r){let o=require.cache[e];return o&&o[this._kRitmExports]}}set(e,r,n){n?this._localCache.set(e,r):e in require.cache?require.cache[e][this._kRitmExports]=r:(Ge('non-core module is unexpectedly not in require.cache: "%s"',e),this._localCache.set(e,r))}};function Kd(t,e,r){if(!(this instanceof Kd))return new Kd(t,e,r);if(typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),typeof lo._resolveFilename!="function"){console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!",typeof lo._resolveFilename),console.error("Please report this error as an issue related to Node.js %s at %s",process.version,w9().bugs.url);return}this._cache=new _y,this._unhooked=!1,this._origRequire=lo.prototype.require;let n=this,o=new Set,i=e?e.internals===!0:!1,s=Array.isArray(t);Ge("registering require hook"),this._require=lo.prototype.require=function(u){return n._unhooked===!0?(Ge("ignoring require call - module is soft-unhooked"),n._origRequire.apply(this,arguments)):a.call(this,arguments,!1)},typeof process.getBuiltinModule=="function"&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(u){return n._unhooked===!0?(Ge("ignoring process.getBuiltinModule call - module is soft-unhooked"),n._origGetBuiltinModule.apply(this,arguments)):a.call(this,arguments,!0)});function a(u,l){let d=u[0],p=Yd(d),_;if(p){if(_=d,d.startsWith("node:")){let N=d.slice(5);Yd(N)&&(_=N)}}else{if(l)return Ge("call to process.getBuiltinModule with unknown built-in id"),n._origGetBuiltinModule.apply(this,u);try{_=lo._resolveFilename(d,this)}catch(N){return Ge('Module._resolveFilename("%s") threw %j, calling original Module.require',d,N.message),n._origRequire.apply(this,u)}}let f,g;if(Ge("processing %s module require('%s'): %s",p===!0?"core":"non-core",d,_),n._cache.has(_,p)===!0)return Ge("returning already patched cached module: %s",_),n._cache.get(_,p);let h=o.has(_);h===!1&&o.add(_);let T=l?n._origGetBuiltinModule.apply(this,u):n._origRequire.apply(this,u);if(h===!0)return Ge("module is in the process of being patched already - ignoring: %s",_),T;if(o.delete(_),p===!0){if(s===!0&&t.includes(_)===!1)return Ge("ignoring core module not on whitelist: %s",_),T;f=_}else if(s===!0&&t.includes(_)){let N=au.parse(_);f=N.name,g=N.dir}else{let N=e0e(_);if(N===void 0)return Ge("could not parse filename: %s",_),T;f=N.name,g=N.basedir;let D=r0e(N);Ge("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)",f,d,D,g);let L=!1;if(s){if(!d.startsWith(".")&&t.includes(d)&&(f=d,L=!0),!t.includes(f)&&!t.includes(D))return T;t.includes(D)&&D!==f&&(f=D,L=!0)}if(!L){let y;try{y=py.sync(f,{basedir:g})}catch{return Ge("could not resolve module: %s",f),n._cache.set(_,T,p),T}if(y!==_)if(i===!0)f=f+au.sep+au.relative(g,_),Ge("preparing to process require of internal file: %s",f);else return Ge("ignoring require of non-main module file: %s",y),n._cache.set(_,T,p),T}}n._cache.set(_,T,p),Ge("calling require hook: %s",f);let v=r(T,f,g);return n._cache.set(_,v,p),Ge("returning module: %s",f),v}}Kd.prototype.unhook=function(){this._unhooked=!0,this._require===lo.prototype.require?(lo.prototype.require=this._origRequire,Ge("require unhook successful")):Ge("require unhook unsuccessful"),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,Ge("process.getBuiltinModule unhook successful")):Ge("process.getBuiltinModule unhook unsuccessful"))};function r0e(t){let e=au.sep!=="/"?t.path.split(au.sep).join("/"):t.path;return au.posix.join(t.name,e).replace(t0e,"")}});var q9=c(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.ModuleNameTrie=ni.ModuleNameSeparator=void 0;ni.ModuleNameSeparator="/";var uh=class{constructor(){this.hooks=[],this.children=new Map}},gy=class{constructor(){this._trie=new uh,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(ni.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new uh,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(ni.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};ni.ModuleNameTrie=gy});var V9=c(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.RequireInTheMiddleSingleton=void 0;var n0e=de(),j9=require("path"),hy=q9(),o0e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),Ey=class t{constructor(){this._moduleNameTrie=new hy.ModuleNameTrie,this._initialize()}_initialize(){new n0e.Hook(null,{internals:!0},(e,r,n)=>{let o=i0e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return o0e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};ch.RequireInTheMiddleSingleton=Ey;function i0e(t){return j9.sep!==hy.ModuleNameSeparator?t.split(j9.sep).join(hy.ModuleNameSeparator):t}});var W9=c(Xd=>{var B9=[],my=new WeakMap,H9=new WeakMap,F9=new Map,k9=[],s0e={set(t,e,r){return my.get(t)[e](r)},get(t,e){if(e===Symbol.toStringTag)return"Module";let r=H9.get(t)[e];if(typeof r=="function")return r()},defineProperty(t,e,r){if(!("value"in r))throw new Error("Getters/setters are not supported for exports property descriptors.");return my.get(t)[e](r.value)}};function a0e(t,e,r,n,o){F9.set(t,o),my.set(e,r),H9.set(e,n);let i=new Proxy(e,s0e);B9.forEach(s=>s(t,i)),k9.push([t,i])}Xd.register=a0e;Xd.importHooks=B9;Xd.specifiers=F9;Xd.toHook=k9});var Jt=c((jut,uu)=>{var Y9=require("path"),u0e=dy(),{fileURLToPath:K9}=require("url"),{MessageChannel:c0e}=require("worker_threads"),{importHooks:Ty,specifiers:l0e,toHook:d0e}=W9();function Z9(t){Ty.push(t),d0e.forEach(([e,r])=>t(e,r))}function z9(t){let e=Ty.indexOf(t);e>-1&&Ty.splice(e,1)}function X9(t,e,r,n){let o=t(e,r,n);o&&o!==e&&(e.default=o)}var Sy;function p0e(){let{port1:t,port2:e}=new c0e,r=0,n;Sy=a=>{r++,t.postMessage(a)},t.on("message",()=>{r--,n&&r<=0&&n()}).unref();function o(){let a=setInterval(()=>{},1e3),u=new Promise(l=>{n=l}).then(()=>{clearInterval(a)});return r===0&&n(),u}let i=e;return{registerOptions:{data:{addHookMessagePort:i,include:[]},transferList:[i]},addHookMessagePort:i,waitForAllMessagesAcknowledged:o}}function Zd(t,e,r){if(!(this instanceof Zd))return new Zd(t,e,r);typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n=e?e.internals===!0:!1;Sy&&Array.isArray(t)&&Sy(t),this._iitmHook=(o,i)=>{let s=o,a=o.startsWith("node:"),u;if(a)o=o.replace(/^node:/,"");else{if(o.startsWith("file://"))try{o=K9(o)}catch{}let l=u0e(o);l&&(o=l.name,u=l.basedir)}if(t){for(let l of t)if(l===o){if(u){if(n)o=o+Y9.sep+Y9.relative(u,K9(s));else if(!u.endsWith(l0e.get(s)))continue}X9(r,i,o,u)}}else X9(r,i,o,u)},Z9(this._iitmHook)}Zd.prototype.unhook=function(){z9(this._iitmHook)};uu.exports=Zd;uu.exports.Hook=Zd;uu.exports.addHook=Z9;uu.exports.removeHook=z9;uu.exports.createAddHookMessageChannel=p0e});var Ay=c(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.isWrapped=oi.safeExecuteInTheMiddleAsync=oi.safeExecuteInTheMiddle=void 0;function _0e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}oi.safeExecuteInTheMiddle=_0e;async function f0e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}oi.safeExecuteInTheMiddleAsync=f0e;function g0e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}oi.isWrapped=g0e});var Q9=c(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.InstrumentationBase=void 0;var Oy=require("path"),J9=require("util"),h0e=Zt(),Ry=le(),E0e=F5(),m0e=V9(),T0e=Jt(),zd=(P(),m(I)),S0e=de(),A0e=require("fs"),O0e=Ay(),Iy=class extends E0e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=m0e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,O0e.isWrapped)(i[s])&&this._unwrap(i,s),J9.types.isProxy(i)){let u=(0,Ry.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,Ry.wrap)(i,s,a)},this._unwrap=(i,s)=>J9.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,Ry.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{zd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){zd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{zd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){zd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,A0e.readFileSync)(Oy.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{zd.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return $9(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=Oy.normalize(n);return a.filter(d=>d.name===u).filter(d=>$9(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=Oy.isAbsolute(e.name)?new S0e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new T0e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};lh.InstrumentationBase=Iy;function $9(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,h0e.satisfies)(e,n,{includePrerelease:r}))}});var ez=c(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.normalize=void 0;var R0e=require("path");Object.defineProperty(dh,"normalize",{enumerable:!0,get:function(){return R0e.normalize}})});var tz=c(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.normalize=cu.InstrumentationBase=void 0;var I0e=Q9();Object.defineProperty(cu,"InstrumentationBase",{enumerable:!0,get:function(){return I0e.InstrumentationBase}});var P0e=ez();Object.defineProperty(cu,"normalize",{enumerable:!0,get:function(){return P0e.normalize}})});var Py=c(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.normalize=lu.InstrumentationBase=void 0;var rz=tz();Object.defineProperty(lu,"InstrumentationBase",{enumerable:!0,get:function(){return rz.InstrumentationBase}});Object.defineProperty(lu,"normalize",{enumerable:!0,get:function(){return rz.normalize}})});var nz=c(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.InstrumentationNodeModuleDefinition=void 0;var by=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};ph.InstrumentationNodeModuleDefinition=by});var oz=c(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.InstrumentationNodeModuleFile=void 0;var b0e=Py(),vy=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,b0e.normalize)(e)}};_h.InstrumentationNodeModuleFile=vy});var Ke=c(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.safeExecuteInTheMiddleAsync=Pt.safeExecuteInTheMiddle=Pt.isWrapped=Pt.InstrumentationNodeModuleFile=Pt.InstrumentationNodeModuleDefinition=Pt.InstrumentationBase=Pt.registerInstrumentations=void 0;var v0e=j5();Object.defineProperty(Pt,"registerInstrumentations",{enumerable:!0,get:function(){return v0e.registerInstrumentations}});var y0e=Py();Object.defineProperty(Pt,"InstrumentationBase",{enumerable:!0,get:function(){return y0e.InstrumentationBase}});var N0e=nz();Object.defineProperty(Pt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return N0e.InstrumentationNodeModuleDefinition}});var C0e=oz();Object.defineProperty(Pt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return C0e.InstrumentationNodeModuleFile}});var yy=Ay();Object.defineProperty(Pt,"isWrapped",{enumerable:!0,get:function(){return yy.isWrapped}});Object.defineProperty(Pt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return yy.safeExecuteInTheMiddle}});Object.defineProperty(Pt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return yy.safeExecuteInTheMiddleAsync}})});var uz=c(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.HttpInstrumentation=void 0;var Y=(P(),m(I)),du=Dg(),iz=Zt(),sz=require("url"),Oe=Yv(),M0e=b5(),Cr=Ke(),az=Dg(),Ny=require("events"),L0e=($(),m(J)),Cy=class extends Cr.InstrumentationBase{constructor(e={}){super("@opentelemetry/instrumentation-http",M0e.VERSION,e),this._spanNotEnded=new WeakSet,this._headerCapture=this._createHeaderCapture()}_updateMetricInstruments(){this._httpServerDurationHistogram=this.meter.createHistogram("http.server.duration",{description:"Measures the duration of inbound HTTP requests.",unit:"ms",valueType:Y.ValueType.DOUBLE}),this._httpClientDurationHistogram=this.meter.createHistogram("http.client.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"ms",valueType:Y.ValueType.DOUBLE})}setConfig(e={}){super.setConfig(e),this._headerCapture=this._createHeaderCapture()}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new Cr.InstrumentationNodeModuleDefinition("http",["*"],e=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchOutgoingRequestFunction("http"));this._wrap(e,"get",this._getPatchOutgoingGetFunction(r))}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("http")),e},e=>{e!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(e,"request"),this._unwrap(e,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(e.Server.prototype,"emit"))})}_getHttpsInstrumentation(){return new Cr.InstrumentationNodeModuleDefinition("https",["*"],e=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchHttpsOutgoingRequestFunction("https"));this._wrap(e,"get",this._getPatchHttpsOutgoingGetFunction(r))}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("https")),e},e=>{e!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(e,"request"),this._unwrap(e,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(e.Server.prototype,"emit"))})}_getPatchIncomingRequestFunction(e){return r=>this._incomingRequestFunction(e,r)}_getPatchOutgoingRequestFunction(e){return r=>this._outgoingRequestFunction(e,r)}_getPatchOutgoingGetFunction(e){return r=>function(o,...i){let s=e(o,...i);return s.end(),s}}_getPatchHttpsOutgoingRequestFunction(e){return r=>{let n=this;return function(i,...s){var a;return e==="https"&&typeof i=="object"&&((a=i?.constructor)===null||a===void 0?void 0:a.name)!=="URL"&&(i=Object.assign({},i),n._setDefaultOptions(i)),n._getPatchOutgoingRequestFunction(e)(r)(i,...s)}}}_setDefaultOptions(e){e.protocol=e.protocol||"https:",e.port=e.port||443}_getPatchHttpsOutgoingGetFunction(e){return r=>{let n=this;return function(i,...s){return n._getPatchOutgoingGetFunction(e)(r)(i,...s)}}}_traceClientRequest(e,r,n,o){this.getConfig().requestHook&&this._callRequestHook(r,e);let i=!1;return e.prependListener("response",s=>{this._diag.debug("outgoingRequest on response()"),e.listenerCount("response")<=1&&s.resume();let a=Oe.getOutgoingRequestAttributesOnResponse(s);r.setAttributes(a),o=Object.assign(o,Oe.getOutgoingRequestMetricAttributesOnResponse(a)),this.getConfig().responseHook&&this._callResponseHook(r,s),this._headerCapture.client.captureRequestHeaders(r,l=>e.getHeader(l)),this._headerCapture.client.captureResponseHeaders(r,l=>s.headers[l]),Y.context.bind(Y.context.active(),s);let u=()=>{if(this._diag.debug("outgoingRequest on end()"),i)return;i=!0;let l;s.aborted&&!s.complete?l={code:Y.SpanStatusCode.ERROR}:l={code:Oe.parseResponseStatus(Y.SpanKind.CLIENT,s.statusCode)},r.setStatus(l),this.getConfig().applyCustomAttributesOnSpan&&(0,Cr.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(r,e,s),()=>{},!0),this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o)};s.on("end",u),iz.lt(process.version,"16.0.0")&&s.on("close",u),s.on(Ny.errorMonitor,l=>{this._diag.debug("outgoingRequest on error()",l),!i&&(i=!0,Oe.setSpanWithError(r,l),r.setStatus({code:Y.SpanStatusCode.ERROR,message:l.message}),this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o))})}),e.on("close",()=>{this._diag.debug("outgoingRequest on request close()"),!(e.aborted||i)&&(i=!0,this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o))}),e.on(Ny.errorMonitor,s=>{this._diag.debug("outgoingRequest on request error()",s),!i&&(i=!0,Oe.setSpanWithError(r,s),this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o))}),this._diag.debug("http.ClientRequest return request"),e}_incomingRequestFunction(e,r){let n=this;return function(i,...s){if(i!=="request")return r.apply(this,[i,...s]);let a=s[0],u=s[1],l=a.url&&sz.parse(a.url).pathname||"/",d=a.method||"GET";if(n._diag.debug(`${e} instrumentation incomingRequest`),Oe.isIgnored(l,n.getConfig().ignoreIncomingPaths,D=>n._diag.error("caught ignoreIncomingPaths error: ",D))||(0,Cr.safeExecuteInTheMiddle)(()=>{var D,L;return(L=(D=n.getConfig()).ignoreIncomingRequestHook)===null||L===void 0?void 0:L.call(D,a)},D=>{D!=null&&n._diag.error("caught ignoreIncomingRequestHook error: ",D)},!0))return Y.context.with((0,du.suppressTracing)(Y.context.active()),()=>(Y.context.bind(Y.context.active(),a),Y.context.bind(Y.context.active(),u),r.apply(this,[i,...s])));let p=a.headers,_=Oe.getIncomingRequestAttributes(a,{component:e,serverName:n.getConfig().serverName,hookAttributes:n._callStartSpanHook(a,n.getConfig().startIncomingSpanHook)}),f={kind:Y.SpanKind.SERVER,attributes:_},g=(0,du.hrTime)(),h=Oe.getIncomingRequestMetricAttributes(_),T=Y.propagation.extract(Y.ROOT_CONTEXT,p),v=n._startHttpSpan(d,f,T),N={type:az.RPCType.HTTP,span:v};return Y.context.with((0,az.setRPCMetadata)(Y.trace.setSpan(T,v),N),()=>{Y.context.bind(Y.context.active(),a),Y.context.bind(Y.context.active(),u),n.getConfig().requestHook&&n._callRequestHook(v,a),n.getConfig().responseHook&&n._callResponseHook(v,u),n._headerCapture.server.captureRequestHeaders(v,L=>a.headers[L]);let D=!1;return u.on("close",()=>{D||n._onServerResponseFinish(a,u,v,h,g)}),u.on(Ny.errorMonitor,L=>{D=!0,n._onServerResponseError(v,h,g,L)}),(0,Cr.safeExecuteInTheMiddle)(()=>r.apply(this,[i,...s]),L=>{if(L)throw Oe.setSpanWithError(v,L),n._closeHttpSpan(v,Y.SpanKind.SERVER,g,h),L})})}}_outgoingRequestFunction(e,r){let n=this;return function(i,...s){if(!Oe.isValidOptionsType(i))return r.apply(this,[i,...s]);let a=typeof s[0]=="object"&&(typeof i=="string"||i instanceof sz.URL)?s.shift():void 0,{origin:u,pathname:l,method:d,optionsParsed:p}=Oe.getRequestInfo(i,a);if(e==="http"&&iz.lt(process.version,"9.0.0")&&p.protocol==="https:")return r.apply(this,[p,...s]);if(Oe.isIgnored(u+l,n.getConfig().ignoreOutgoingUrls,y=>n._diag.error("caught ignoreOutgoingUrls error: ",y))||(0,Cr.safeExecuteInTheMiddle)(()=>{var y,C;return(C=(y=n.getConfig()).ignoreOutgoingRequestHook)===null||C===void 0?void 0:C.call(y,p)},y=>{y!=null&&n._diag.error("caught ignoreOutgoingRequestHook error: ",y)},!0))return r.apply(this,[p,...s]);let{hostname:_,port:f}=Oe.extractHostnameAndPort(p),g=Oe.getOutgoingRequestAttributes(p,{component:e,port:f,hostname:_,hookAttributes:n._callStartSpanHook(p,n.getConfig().startOutgoingSpanHook)}),h=(0,du.hrTime)(),T=Oe.getOutgoingRequestMetricAttributes(g),v={kind:Y.SpanKind.CLIENT,attributes:g},N=n._startHttpSpan(d,v),D=Y.context.active(),L=Y.trace.setSpan(D,N);return p.headers?p.headers=Object.assign({},p.headers):p.headers={},Y.propagation.inject(L,p.headers),Y.context.with(L,()=>{let y=s[s.length-1];typeof y=="function"&&(s[s.length-1]=Y.context.bind(D,y));let C=(0,Cr.safeExecuteInTheMiddle)(()=>r.apply(this,[p,...s]),G=>{if(G)throw Oe.setSpanWithError(N,G),n._closeHttpSpan(N,Y.SpanKind.CLIENT,h,T),G});return n._diag.debug(`${e} instrumentation outgoingRequest`),Y.context.bind(D,C),n._traceClientRequest(C,N,h,T)})}}_onServerResponseFinish(e,r,n,o,i){let s=Oe.getIncomingRequestAttributesOnResponse(e,r);o=Object.assign(o,Oe.getIncomingRequestMetricAttributesOnResponse(s)),this._headerCapture.server.captureResponseHeaders(n,u=>r.getHeader(u)),n.setAttributes(s).setStatus({code:Oe.parseResponseStatus(Y.SpanKind.SERVER,r.statusCode)});let a=s[L0e.SEMATTRS_HTTP_ROUTE];a&&n.updateName(`${e.method||"GET"} ${a}`),this.getConfig().applyCustomAttributesOnSpan&&(0,Cr.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(n,e,r),()=>{},!0),this._closeHttpSpan(n,Y.SpanKind.SERVER,i,o)}_onServerResponseError(e,r,n,o){Oe.setSpanWithError(e,o),this._closeHttpSpan(e,Y.SpanKind.SERVER,n,r)}_startHttpSpan(e,r,n=Y.context.active()){let o=r.kind===Y.SpanKind.CLIENT?this.getConfig().requireParentforOutgoingSpans:this.getConfig().requireParentforIncomingSpans,i,s=Y.trace.getSpan(n);return o===!0&&s===void 0?i=Y.trace.wrapSpanContext(Y.INVALID_SPAN_CONTEXT):o===!0&&s?.spanContext().isRemote?i=s:i=this.tracer.startSpan(e,r,n),this._spanNotEnded.add(i),i}_closeHttpSpan(e,r,n,o){if(!this._spanNotEnded.has(e))return;e.end(),this._spanNotEnded.delete(e);let i=(0,du.hrTimeToMilliseconds)((0,du.hrTimeDuration)(n,(0,du.hrTime)()));r===Y.SpanKind.SERVER?this._httpServerDurationHistogram.record(i,o):r===Y.SpanKind.CLIENT&&this._httpClientDurationHistogram.record(i,o)}_callResponseHook(e,r){(0,Cr.safeExecuteInTheMiddle)(()=>this.getConfig().responseHook(e,r),()=>{},!0)}_callRequestHook(e,r){(0,Cr.safeExecuteInTheMiddle)(()=>this.getConfig().requestHook(e,r),()=>{},!0)}_callStartSpanHook(e,r){if(typeof r=="function")return(0,Cr.safeExecuteInTheMiddle)(()=>r(e),()=>{},!0)}_createHeaderCapture(){var e,r,n,o,i,s,a,u,l,d,p,_;let f=this.getConfig();return{client:{captureRequestHeaders:Oe.headerCapture("request",(n=(r=(e=f.headersToSpanAttributes)===null||e===void 0?void 0:e.client)===null||r===void 0?void 0:r.requestHeaders)!==null&&n!==void 0?n:[]),captureResponseHeaders:Oe.headerCapture("response",(s=(i=(o=f.headersToSpanAttributes)===null||o===void 0?void 0:o.client)===null||i===void 0?void 0:i.responseHeaders)!==null&&s!==void 0?s:[])},server:{captureRequestHeaders:Oe.headerCapture("request",(l=(u=(a=f.headersToSpanAttributes)===null||a===void 0?void 0:a.server)===null||u===void 0?void 0:u.requestHeaders)!==null&&l!==void 0?l:[]),captureResponseHeaders:Oe.headerCapture("response",(_=(p=(d=f.headersToSpanAttributes)===null||d===void 0?void 0:d.server)===null||p===void 0?void 0:p.responseHeaders)!==null&&_!==void 0?_:[])}}}};fh.HttpInstrumentation=Cy});var My=c(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.setSpanWithError=W.setResponseContentLengthAttribute=W.setRequestContentLengthAttribute=W.setAttributesFromHttpKind=W.satisfiesPattern=W.parseResponseStatus=W.isValidOptionsType=W.isIgnored=W.isCompressed=W.headerCapture=W.getRequestInfo=W.getOutgoingRequestMetricAttributesOnResponse=W.getOutgoingRequestMetricAttributes=W.getOutgoingRequestAttributesOnResponse=W.getOutgoingRequestAttributes=W.getIncomingRequestMetricAttributesOnResponse=W.getIncomingRequestMetricAttributes=W.getIncomingRequestAttributesOnResponse=W.getIncomingRequestAttributes=W.getAbsoluteUrl=W.extractHostnameAndPort=W.HttpInstrumentation=void 0;var D0e=uz();Object.defineProperty(W,"HttpInstrumentation",{enumerable:!0,get:function(){return D0e.HttpInstrumentation}});var xe=Yv();Object.defineProperty(W,"extractHostnameAndPort",{enumerable:!0,get:function(){return xe.extractHostnameAndPort}});Object.defineProperty(W,"getAbsoluteUrl",{enumerable:!0,get:function(){return xe.getAbsoluteUrl}});Object.defineProperty(W,"getIncomingRequestAttributes",{enumerable:!0,get:function(){return xe.getIncomingRequestAttributes}});Object.defineProperty(W,"getIncomingRequestAttributesOnResponse",{enumerable:!0,get:function(){return xe.getIncomingRequestAttributesOnResponse}});Object.defineProperty(W,"getIncomingRequestMetricAttributes",{enumerable:!0,get:function(){return xe.getIncomingRequestMetricAttributes}});Object.defineProperty(W,"getIncomingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return xe.getIncomingRequestMetricAttributesOnResponse}});Object.defineProperty(W,"getOutgoingRequestAttributes",{enumerable:!0,get:function(){return xe.getOutgoingRequestAttributes}});Object.defineProperty(W,"getOutgoingRequestAttributesOnResponse",{enumerable:!0,get:function(){return xe.getOutgoingRequestAttributesOnResponse}});Object.defineProperty(W,"getOutgoingRequestMetricAttributes",{enumerable:!0,get:function(){return xe.getOutgoingRequestMetricAttributes}});Object.defineProperty(W,"getOutgoingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return xe.getOutgoingRequestMetricAttributesOnResponse}});Object.defineProperty(W,"getRequestInfo",{enumerable:!0,get:function(){return xe.getRequestInfo}});Object.defineProperty(W,"headerCapture",{enumerable:!0,get:function(){return xe.headerCapture}});Object.defineProperty(W,"isCompressed",{enumerable:!0,get:function(){return xe.isCompressed}});Object.defineProperty(W,"isIgnored",{enumerable:!0,get:function(){return xe.isIgnored}});Object.defineProperty(W,"isValidOptionsType",{enumerable:!0,get:function(){return xe.isValidOptionsType}});Object.defineProperty(W,"parseResponseStatus",{enumerable:!0,get:function(){return xe.parseResponseStatus}});Object.defineProperty(W,"satisfiesPattern",{enumerable:!0,get:function(){return xe.satisfiesPattern}});Object.defineProperty(W,"setAttributesFromHttpKind",{enumerable:!0,get:function(){return xe.setAttributesFromHttpKind}});Object.defineProperty(W,"setRequestContentLengthAttribute",{enumerable:!0,get:function(){return xe.setRequestContentLengthAttribute}});Object.defineProperty(W,"setResponseContentLengthAttribute",{enumerable:!0,get:function(){return xe.setResponseContentLengthAttribute}});Object.defineProperty(W,"setSpanWithError",{enumerable:!0,get:function(){return xe.setSpanWithError}})});var Re=c(Ly=>{Object.defineProperty(Ly,"__esModule",{value:!0});var G0e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;Ly.DEBUG_BUILD=G0e});var ii=c(gh=>{Object.defineProperty(gh,"__esModule",{value:!0});var Jd=b();function x0e(){return cz(Jd.GLOBAL_OBJ),Jd.GLOBAL_OBJ}function cz(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Jd.SDK_VERSION,e[Jd.SDK_VERSION]=e[Jd.SDK_VERSION]||{}}gh.getMainCarrier=x0e;gh.getSentryCarrier=cz});var ep=c(Qd=>{Object.defineProperty(Qd,"__esModule",{value:!0});var $d=b();function U0e(t){let e=$d.timestampInSeconds(),r={sid:$d.uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>q0e(r)};return t&&Dy(r,t),r}function Dy(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||$d.timestampInSeconds(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:$d.uuid4()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function w0e(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),Dy(t,r)}function q0e(t){return $d.dropUndefinedKeys({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}Qd.closeSession=w0e;Qd.makeSession=U0e;Qd.updateSession=Dy});var pu=c(hh=>{Object.defineProperty(hh,"__esModule",{value:!0});var j0e=b(),Gy="_sentrySpan";function V0e(t,e){e?j0e.addNonEnumerableProperty(t,Gy,e):delete t[Gy]}function B0e(t){return t[Gy]}hh._getSpanForScope=B0e;hh._setSpanForScope=V0e});var _u=c(Uy=>{Object.defineProperty(Uy,"__esModule",{value:!0});var An=b(),H0e=ep(),Eh=pu(),F0e=100,xy=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=An.generatePropagationContext()}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Eh._setSpanForScope(e,Eh._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&H0e.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e,[n,o]=r instanceof lz?[r.getScopeData(),r.getRequestSession()]:An.isPlainObject(r)?[e,e.requestSession]:[],{tags:i,extra:s,user:a,contexts:u,level:l,fingerprint:d=[],propagationContext:p}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Eh._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=An.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:F0e;if(n<=0)return this;let o={timestamp:An.dateTimestampInSeconds(),...e},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Eh._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r&&r.event_id?r.event_id:An.uuid4();if(!this._client)return An.logger.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){let o=n&&n.event_id?n.event_id:An.uuid4();if(!this._client)return An.logger.warn("No client configured on scope - will not capture message!"),o;let i=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:i,...n,event_id:o},this),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:An.uuid4();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(An.logger.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}},lz=xy;Uy.Scope=lz});var wy=c(mh=>{Object.defineProperty(mh,"__esModule",{value:!0});var dz=b(),pz=_u();function k0e(){return dz.getGlobalSingleton("defaultCurrentScope",()=>new pz.Scope)}function W0e(){return dz.getGlobalSingleton("defaultIsolationScope",()=>new pz.Scope)}mh.getDefaultCurrentScope=k0e;mh.getDefaultIsolationScope=W0e});var Ez=c(Sh=>{Object.defineProperty(Sh,"__esModule",{value:!0});var Y0e=b(),_z=wy(),fz=_u(),gz=ii(),Th=class{constructor(e,r){let n;e?n=e:n=new fz.Scope;let o;r?o=r:o=new fz.Scope,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){let r=this._pushScope(),n;try{n=e(r)}catch(o){throw this._popScope(),o}return Y0e.isThenable(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function fu(){let t=gz.getMainCarrier(),e=gz.getSentryCarrier(t);return e.stack=e.stack||new Th(_z.getDefaultCurrentScope(),_z.getDefaultIsolationScope())}function K0e(t){return fu().withScope(t)}function X0e(t,e){let r=fu();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function hz(t){return fu().withScope(()=>t(fu().getIsolationScope()))}function Z0e(){return{withIsolationScope:hz,withScope:K0e,withSetScope:X0e,withSetIsolationScope:(t,e)=>hz(e),getCurrentScope:()=>fu().getScope(),getIsolationScope:()=>fu().getIsolationScope()}}Sh.AsyncContextStack=Th;Sh.getStackAsyncContextStrategy=Z0e});var gu=c(Ah=>{Object.defineProperty(Ah,"__esModule",{value:!0});var qy=ii(),z0e=Ez();function J0e(t){let e=qy.getMainCarrier(),r=qy.getSentryCarrier(e);r.acs=t}function $0e(t){let e=qy.getSentryCarrier(t);return e.acs?e.acs:z0e.getStackAsyncContextStrategy()}Ah.getAsyncContextStrategy=$0e;Ah.setAsyncContextStrategy=J0e});var Te=c(si=>{Object.defineProperty(si,"__esModule",{value:!0});var Q0e=b(),Oh=gu(),Rh=ii(),e1e=_u();function mz(){let t=Rh.getMainCarrier();return Oh.getAsyncContextStrategy(t).getCurrentScope()}function t1e(){let t=Rh.getMainCarrier();return Oh.getAsyncContextStrategy(t).getIsolationScope()}function r1e(){return Q0e.getGlobalSingleton("globalScope",()=>new e1e.Scope)}function n1e(...t){let e=Rh.getMainCarrier(),r=Oh.getAsyncContextStrategy(e);if(t.length===2){let[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function o1e(...t){let e=Rh.getMainCarrier(),r=Oh.getAsyncContextStrategy(e);if(t.length===2){let[n,o]=t;return n?r.withSetIsolationScope(n,o):r.withIsolationScope(o)}return r.withIsolationScope(t[0])}function i1e(){return mz().getClient()}si.getClient=i1e;si.getCurrentScope=mz;si.getGlobalScope=r1e;si.getIsolationScope=t1e;si.withIsolationScope=o1e;si.withScope=n1e});var Ph=c(Ih=>{Object.defineProperty(Ih,"__esModule",{value:!0});var s1e=b(),jy="_sentryMetrics";function a1e(t){let e=t[jy];if(!e)return;let r={};for(let[,[n,o]]of e)(r[n]||(r[n]=[])).push(s1e.dropUndefinedKeys(o));return r}function u1e(t,e,r,n,o,i,s){let u=t[jy]||(t[jy]=new Map),l=`${e}:${r}@${o}`,d=u.get(s);if(d){let[,p]=d;u.set(s,[l,{min:Math.min(p.min,n),max:Math.max(p.max,n),count:p.count+=1,sum:p.sum+=n,tags:p.tags}])}else u.set(s,[l,{min:n,max:n,count:1,sum:n,tags:i}])}Ih.getMetricSummaryJsonForSpan=a1e;Ih.updateMetricSummaryOnSpan=u1e});var On=c(bt=>{Object.defineProperty(bt,"__esModule",{value:!0});var c1e="sentry.source",l1e="sentry.sample_rate",d1e="sentry.op",p1e="sentry.origin",_1e="sentry.idle_span_finish_reason",f1e="sentry.measurement_unit",g1e="sentry.measurement_value",h1e="sentry.profile_id",E1e="sentry.exclusive_time",m1e="cache.hit",T1e="cache.key",S1e="cache.item_size",A1e="http.request.method",O1e="url.full";bt.SEMANTIC_ATTRIBUTE_CACHE_HIT=m1e;bt.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=S1e;bt.SEMANTIC_ATTRIBUTE_CACHE_KEY=T1e;bt.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=E1e;bt.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=A1e;bt.SEMANTIC_ATTRIBUTE_PROFILE_ID=h1e;bt.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=_1e;bt.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=f1e;bt.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=g1e;bt.SEMANTIC_ATTRIBUTE_SENTRY_OP=d1e;bt.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=p1e;bt.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=l1e;bt.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=c1e;bt.SEMANTIC_ATTRIBUTE_URL_FULL=O1e});var Ws=c(ks=>{Object.defineProperty(ks,"__esModule",{value:!0});var R1e=0,Tz=1,ar=2;function Sz(t){if(t<400&&t>=100)return{code:Tz};if(t>=400&&t<500)switch(t){case 401:return{code:ar,message:"unauthenticated"};case 403:return{code:ar,message:"permission_denied"};case 404:return{code:ar,message:"not_found"};case 409:return{code:ar,message:"already_exists"};case 413:return{code:ar,message:"failed_precondition"};case 429:return{code:ar,message:"resource_exhausted"};case 499:return{code:ar,message:"cancelled"};default:return{code:ar,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:ar,message:"unimplemented"};case 503:return{code:ar,message:"unavailable"};case 504:return{code:ar,message:"deadline_exceeded"};default:return{code:ar,message:"internal_error"}}return{code:ar,message:"unknown_error"}}function I1e(t,e){t.setAttribute("http.response.status_code",e);let r=Sz(e);r.message!=="unknown_error"&&t.setStatus(r)}ks.SPAN_STATUS_ERROR=ar;ks.SPAN_STATUS_OK=Tz;ks.SPAN_STATUS_UNSET=R1e;ks.getSpanStatusFromHttpCode=Sz;ks.setHttpStatus=I1e});var Xe=c(ft=>{Object.defineProperty(ft,"__esModule",{value:!0});var Ks=b(),P1e=gu(),b1e=ii(),v1e=Te(),Iz=Ph(),Az=On(),Oz=Ws(),y1e=pu(),N1e=0,Pz=1;function C1e(t){let{spanId:e,traceId:r}=t.spanContext(),{data:n,op:o,parent_span_id:i,status:s,origin:a}=Hy(t);return Ks.dropUndefinedKeys({parent_span_id:i,span_id:e,trace_id:r,data:n,op:o,status:s,origin:a})}function M1e(t){let{spanId:e,traceId:r}=t.spanContext(),{parent_span_id:n}=Hy(t);return Ks.dropUndefinedKeys({parent_span_id:n,span_id:e,trace_id:r})}function L1e(t){let{traceId:e,spanId:r}=t.spanContext(),n=Fy(t);return Ks.generateSentryTraceHeader(e,r,n)}function Vy(t){return typeof t=="number"?Rz(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Rz(t.getTime()):Ks.timestampInSeconds()}function Rz(t){return t>9999999999?t/1e3:t}function Hy(t){if(G1e(t))return t.getSpanJSON();try{let{spanId:e,traceId:r}=t.spanContext();if(D1e(t)){let{attributes:n,startTime:o,name:i,endTime:s,parentSpanId:a,status:u}=t;return Ks.dropUndefinedKeys({span_id:e,trace_id:r,data:n,description:i,parent_span_id:a,start_timestamp:Vy(o),timestamp:Vy(s)||void 0,status:bz(u),op:n[Az.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[Az.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:Iz.getMetricSummaryJsonForSpan(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function D1e(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function G1e(t){return typeof t.getSpanJSON=="function"}function Fy(t){let{traceFlags:e}=t.spanContext();return e===Pz}function bz(t){if(!(!t||t.code===Oz.SPAN_STATUS_UNSET))return t.code===Oz.SPAN_STATUS_OK?"ok":t.message||"unknown_error"}var Ys="_sentryChildSpans",By="_sentryRootSpan";function x1e(t,e){let r=t[By]||t;Ks.addNonEnumerableProperty(e,By,r),t[Ys]?t[Ys].add(e):Ks.addNonEnumerableProperty(t,Ys,new Set([e]))}function U1e(t,e){t[Ys]&&t[Ys].delete(e)}function w1e(t){let e=new Set;function r(n){if(!e.has(n)&&Fy(n)){e.add(n);let o=n[Ys]?Array.from(n[Ys]):[];for(let i of o)r(i)}}return r(t),Array.from(e)}function q1e(t){return t[By]||t}function vz(){let t=b1e.getMainCarrier(),e=P1e.getAsyncContextStrategy(t);return e.getActiveSpan?e.getActiveSpan():y1e._getSpanForScope(v1e.getCurrentScope())}function j1e(t,e,r,n,o,i){let s=vz();s&&Iz.updateMetricSummaryOnSpan(s,t,e,r,n,o,i)}ft.TRACE_FLAG_NONE=N1e;ft.TRACE_FLAG_SAMPLED=Pz;ft.addChildSpanToSpan=x1e;ft.getActiveSpan=vz;ft.getRootSpan=q1e;ft.getSpanDescendants=w1e;ft.getStatusMessage=bz;ft.removeChildSpanFromSpan=U1e;ft.spanIsSampled=Fy;ft.spanTimeInputToSeconds=Vy;ft.spanToJSON=Hy;ft.spanToTraceContext=M1e;ft.spanToTraceHeader=L1e;ft.spanToTransactionTraceContext=C1e;ft.updateMetricSummaryOnActiveSpan=j1e});var ai=c(Yy=>{Object.defineProperty(Yy,"__esModule",{value:!0});var ky=b(),V1e=Re(),yz=Xe(),B1e=Ws(),Nz=!1;function H1e(){Nz||(Nz=!0,ky.addGlobalErrorInstrumentationHandler(Wy),ky.addGlobalUnhandledRejectionInstrumentationHandler(Wy))}function Wy(){let t=yz.getActiveSpan(),e=t&&yz.getRootSpan(t);if(e){let r="internal_error";V1e.DEBUG_BUILD&&ky.logger.log(`[Tracing] Root span: ${r} -> Global error occurred`),e.setStatus({code:B1e.SPAN_STATUS_ERROR,message:r})}}Wy.tag="sentry_tracingErrorCallback";Yy.registerSpanErrorInstrumentation=H1e});var bh=c(tp=>{Object.defineProperty(tp,"__esModule",{value:!0});var Ky=b(),Cz="_sentryScope",Mz="_sentryIsolationScope";function F1e(t,e,r){t&&(Ky.addNonEnumerableProperty(t,Mz,r),Ky.addNonEnumerableProperty(t,Cz,e))}function k1e(t){return{scope:t[Cz],isolationScope:t[Mz]}}tp.stripUrlQueryAndFragment=Ky.stripUrlQueryAndFragment;tp.getCapturedScopesOnSpan=k1e;tp.setCapturedScopesOnSpan=F1e});var Lz=c(Xy=>{Object.defineProperty(Xy,"__esModule",{value:!0});var W1e=ai();function Y1e(){W1e.registerSpanErrorInstrumentation()}Xy.addTracingExtensions=Y1e});var Xs=c(Zy=>{Object.defineProperty(Zy,"__esModule",{value:!0});var K1e=Te();function X1e(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=K1e.getClient(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}Zy.hasTracingEnabled=X1e});var rp=c(Jy=>{Object.defineProperty(Jy,"__esModule",{value:!0});var Dz=b(),Z1e=Xe(),zy=class{constructor(e={}){this._traceId=e.traceId||Dz.uuid4(),this._spanId=e.spanId||Dz.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Z1e.TRACE_FLAG_NONE}}end(e){}setAttribute(e,r){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,r,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,r){}};Jy.SentryNonRecordingSpan=zy});var vh=c($y=>{Object.defineProperty($y,"__esModule",{value:!0});var z1e=b();function J1e(t,e,r=()=>{}){let n;try{n=t()}catch(o){throw e(o),r(),o}return $1e(n,e,r)}function $1e(t,e,r){return z1e.isThenable(t)?t.then(n=>(r(),n),n=>{throw e(n),r(),n}):(r(),t)}$y.handleCallbackErrors=J1e});var np=c(Qy=>{Object.defineProperty(Qy,"__esModule",{value:!0});var Q1e="production";Qy.DEFAULT_ENVIRONMENT=Q1e});var Rn=c(hu=>{Object.defineProperty(hu,"__esModule",{value:!0});var Nh=b(),eDe=np(),tDe=Te(),Gz=On(),rDe=Xs(),yh=Xe(),xz="_frozenDsc";function nDe(t,e){let r=t;Nh.addNonEnumerableProperty(r,xz,e)}function Uz(t,e){let r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=Nh.dropUndefinedKeys({environment:r.environment||eDe.DEFAULT_ENVIRONMENT,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function wz(t){let e=tDe.getClient();if(!e)return{};let r=Uz(yh.spanToJSON(t).trace_id||"",e),n=yh.getRootSpan(t),o=n[xz];if(o)return o;let i=n.spanContext().traceState,s=i&&i.get("sentry.dsc"),a=s&&Nh.baggageHeaderToDynamicSamplingContext(s);if(a)return a;let u=yh.spanToJSON(n),l=u.data||{},d=l[Gz.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];d!=null&&(r.sample_rate=`${d}`);let p=l[Gz.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],_=u.description;return p!=="url"&&_&&(r.transaction=_),rDe.hasTracingEnabled()&&(r.sampled=String(yh.spanIsSampled(n))),e.emit("createDsc",r,n),r}function oDe(t){let e=wz(t);return Nh.dynamicSamplingContextToSentryBaggageHeader(e)}hu.freezeDscOnSpan=nDe;hu.getDynamicSamplingContextFromClient=Uz;hu.getDynamicSamplingContextFromSpan=wz;hu.spanToBaggageHeader=oDe});var Mh=c(Ch=>{Object.defineProperty(Ch,"__esModule",{value:!0});var qz=b(),jz=Re(),Eu=Xe();function iDe(t){if(!jz.DEBUG_BUILD)return;let{description:e="< unknown name >",op:r="< unknown op >",parent_span_id:n}=Eu.spanToJSON(t),{spanId:o}=t.spanContext(),i=Eu.spanIsSampled(t),s=Eu.getRootSpan(t),a=s===t,u=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${r}`,`name: ${e}`,`ID: ${o}`];if(n&&l.push(`parent ID: ${n}`),!a){let{op:d,description:p}=Eu.spanToJSON(s);l.push(`root ID: ${s.spanContext().spanId}`),d&&l.push(`root op: ${d}`),p&&l.push(`root description: ${p}`)}qz.logger.log(`${u}
12
+ ${l.join(`
13
+ `)}`)}function sDe(t){if(!jz.DEBUG_BUILD)return;let{description:e="< unknown name >",op:r="< unknown op >"}=Eu.spanToJSON(t),{spanId:n}=t.spanContext(),i=Eu.getRootSpan(t)===t,s=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${e}" with ID ${n}`;qz.logger.log(s)}Ch.logSpanEnd=sDe;Ch.logSpanStart=iDe});var Lh=c(eN=>{Object.defineProperty(eN,"__esModule",{value:!0});var aDe=b(),uDe=Re();function cDe(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){uDe.DEBUG_BUILD&&aDe.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}eN.parseSampleRate=cDe});var oN=c(nN=>{Object.defineProperty(nN,"__esModule",{value:!0});var tN=b(),rN=Re(),lDe=Xs(),dDe=Lh();function pDe(t,e){if(!lDe.hasTracingEnabled(t))return[!1];let r;typeof t.tracesSampler=="function"?r=t.tracesSampler(e):e.parentSampled!==void 0?r=e.parentSampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1;let n=dDe.parseSampleRate(r);return n===void 0?(rN.DEBUG_BUILD&&tN.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()<n?[!0,n]:(rN.DEBUG_BUILD&&tN.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[!1,n]):(rN.DEBUG_BUILD&&tN.logger.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,n])}nN.sampleSpan=pDe});var Dh=c(op=>{Object.defineProperty(op,"__esModule",{value:!0});var po=b(),_De=Rn(),Vz=Xe();function fDe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function gDe(t,e,r,n){let o=po.getSdkMetadataForEnvelopeHeader(r),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:po.dsnToString(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return po.createEnvelope(i,[s])}function hDe(t,e,r,n){let o=po.getSdkMetadataForEnvelopeHeader(r),i=t.type&&t.type!=="replay_event"?t.type:"event";fDe(t,r&&r.sdk);let s=po.createEventEnvelopeHeaders(t,o,n,e);delete t.sdkProcessingMetadata;let a=[{type:i},t];return po.createEnvelope(s,[a])}function EDe(t,e){function r(d){return!!d.trace_id&&!!d.public_key}let n=_De.getDynamicSamplingContextFromSpan(t[0]),o=e&&e.getDsn(),i=e&&e.getOptions().tunnel,s={sent_at:new Date().toISOString(),...r(n)&&{trace:n},...!!i&&o&&{dsn:po.dsnToString(o)}},a=e&&e.getOptions().beforeSendSpan,u=a?d=>a(Vz.spanToJSON(d)):d=>Vz.spanToJSON(d),l=[];for(let d of t){let p=u(d);p&&l.push(po.createSpanEnvelopeItem(p))}return po.createEnvelope(s,l)}op.createEventEnvelope=hDe;op.createSessionEnvelope=gDe;op.createSpanEnvelope=EDe});var iN=c(xh=>{Object.defineProperty(xh,"__esModule",{value:!0});var Gh=On(),Bz=Xe();function mDe(t,e,r,n=Bz.getActiveSpan()){let o=n&&Bz.getRootSpan(n);o&&o.addEvent(t,{[Gh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e,[Gh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r})}function TDe(t){if(!t||t.length===0)return;let e={};return t.forEach(r=>{let n=r.attributes||{},o=n[Gh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[Gh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];typeof o=="string"&&typeof i=="number"&&(e[r.name]={value:i,unit:o})}),e}xh.setMeasurement=mDe;xh.timedEventsToMeasurements=TDe});var aN=c(sN=>{Object.defineProperty(sN,"__esModule",{value:!0});var Qr=b(),sp=Te(),ip=Re(),SDe=Dh(),Hz=Ph(),ui=On(),Tr=Xe(),ADe=Rn(),ODe=Mh(),Fz=iN(),kz=bh(),Wz=1e3,Uh=class{constructor(e={}){this._traceId=e.traceId||Qr.uuid4(),this._spanId=e.spanId||Qr.uuid4().substring(16),this._startTime=e.startTimestamp||Qr.timestampInSeconds(),this._attributes={},this.setAttributes({[ui.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[ui.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,r){}spanContext(){let{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?Tr.TRACE_FLAG_SAMPLED:Tr.TRACE_FLAG_NONE}}setAttribute(e,r){return r===void 0?delete this._attributes[e]:this._attributes[e]=r,this}setAttributes(e){return Object.keys(e).forEach(r=>this.setAttribute(r,e[r])),this}updateStartTime(e){this._startTime=Tr.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(ui.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=Tr.spanTimeInputToSeconds(e),ODe.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return Qr.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[ui.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Tr.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ui.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:Hz.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[ui.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[ui.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:Fz.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&Tr.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?Tr.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,r,n){ip.DEBUG_BUILD&&Qr.logger.log("[Tracing] Adding an event to span:",e);let o=Yz(r)?r:n||Qr.timestampInSeconds(),i=Yz(r)?{}:r||{},s={name:e,time:Tr.spanTimeInputToSeconds(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=sp.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===Tr.getRootSpan(this)))return;if(this._isStandaloneSpan){this._sampled?IDe(SDe.createSpanEnvelope([this],e)):(ip.DEBUG_BUILD&&Qr.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let n=this._convertSpanToTransaction();n&&(kz.getCapturedScopesOnSpan(this).scope||sp.getCurrentScope()).captureEvent(n)}_convertSpanToTransaction(){if(!Kz(Tr.spanToJSON(this)))return;this._name||(ip.DEBUG_BUILD&&Qr.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:r}=kz.getCapturedScopesOnSpan(this),o=(e||sp.getCurrentScope()).getClient()||sp.getClient();if(this._sampled!==!0){ip.DEBUG_BUILD&&Qr.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}let s=Tr.getSpanDescendants(this).filter(p=>p!==this&&!RDe(p)).map(p=>Tr.spanToJSON(p)).filter(Kz),a=this._attributes[ui.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],u={contexts:{trace:Tr.spanToTransactionTraceContext(this)},spans:s.length>Wz?s.sort((p,_)=>p.start_timestamp-_.start_timestamp).slice(0,Wz):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:r,...Qr.dropUndefinedKeys({dynamicSamplingContext:ADe.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:Hz.getMetricSummaryJsonForSpan(this),...a&&{transaction_info:{source:a}}},l=Fz.timedEventsToMeasurements(this._events);return l&&Object.keys(l).length&&(ip.DEBUG_BUILD&&Qr.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),u.measurements=l),u}};function Yz(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function Kz(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function RDe(t){return t instanceof Uh&&t.isStandaloneSpan()}function IDe(t){let e=sp.getClient();if(!e)return;let r=t[1];if(!r||r.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}sN.SentrySpan=Uh});var mu=c(_o=>{Object.defineProperty(_o,"__esModule",{value:!0});var cN=b(),PDe=ii(),ur=Te(),bDe=gu(),vDe=Re(),Xz=On(),zz=vh(),yDe=Xs(),wh=pu(),ci=Xe(),uN=Rn(),NDe=Mh(),CDe=oN(),ap=rp(),Jz=aN(),$z=Ws(),MDe=bh(),lN="__SENTRY_SUPPRESS_TRACING__";function LDe(t,e){let r=up();if(r.startSpan)return r.startSpan(t,e);let n=pN(t),{forceTransaction:o,parentSpan:i}=t;return ur.withScope(t.scope,()=>Qz(i)(()=>{let a=ur.getCurrentScope(),u=_N(a),d=t.onlyIfParent&&!u?new ap.SentryNonRecordingSpan:dN({parentSpan:u,spanArguments:n,forceTransaction:o,scope:a});return wh._setSpanForScope(a,d),zz.handleCallbackErrors(()=>e(d),()=>{let{status:p}=ci.spanToJSON(d);d.isRecording()&&(!p||p==="ok")&&d.setStatus({code:$z.SPAN_STATUS_ERROR,message:"internal_error"})},()=>d.end())}))}function DDe(t,e){let r=up();if(r.startSpanManual)return r.startSpanManual(t,e);let n=pN(t),{forceTransaction:o,parentSpan:i}=t;return ur.withScope(t.scope,()=>Qz(i)(()=>{let a=ur.getCurrentScope(),u=_N(a),d=t.onlyIfParent&&!u?new ap.SentryNonRecordingSpan:dN({parentSpan:u,spanArguments:n,forceTransaction:o,scope:a});wh._setSpanForScope(a,d);function p(){d.end()}return zz.handleCallbackErrors(()=>e(d,p),()=>{let{status:_}=ci.spanToJSON(d);d.isRecording()&&(!_||_==="ok")&&d.setStatus({code:$z.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function GDe(t){let e=up();if(e.startInactiveSpan)return e.startInactiveSpan(t);let r=pN(t),{forceTransaction:n,parentSpan:o}=t;return(t.scope?s=>ur.withScope(t.scope,s):o!==void 0?s=>qh(o,s):s=>s())(()=>{let s=ur.getCurrentScope(),a=_N(s);return t.onlyIfParent&&!a?new ap.SentryNonRecordingSpan:dN({parentSpan:a,spanArguments:r,forceTransaction:n,scope:s})})}var xDe=({sentryTrace:t,baggage:e},r)=>ur.withScope(n=>{let o=cN.propagationContextFromHeaders(t,e);return n.setPropagationContext(o),r()});function qh(t,e){let r=up();return r.withActiveSpan?r.withActiveSpan(t,e):ur.withScope(n=>(wh._setSpanForScope(n,t||void 0),e(n)))}function UDe(t){let e=up();return e.suppressTracing?e.suppressTracing(t):ur.withScope(r=>(r.setSDKProcessingMetadata({[lN]:!0}),t()))}function wDe(t){return ur.withScope(e=>(e.setPropagationContext(cN.generatePropagationContext()),vDe.DEBUG_BUILD&&cN.logger.info(`Starting a new trace with id ${e.getPropagationContext().traceId}`),qh(null,t)))}function dN({parentSpan:t,spanArguments:e,forceTransaction:r,scope:n}){if(!yDe.hasTracingEnabled())return new ap.SentryNonRecordingSpan;let o=ur.getIsolationScope(),i;if(t&&!r)i=qDe(t,n,e),ci.addChildSpanToSpan(t,i);else if(t){let s=uN.getDynamicSamplingContextFromSpan(t),{traceId:a,spanId:u}=t.spanContext(),l=ci.spanIsSampled(t);i=Zz({traceId:a,parentSpanId:u,...e},n,l),uN.freezeDscOnSpan(i,s)}else{let{traceId:s,dsc:a,parentSpanId:u,sampled:l}={...o.getPropagationContext(),...n.getPropagationContext()};i=Zz({traceId:s,parentSpanId:u,...e},n,l),a&&uN.freezeDscOnSpan(i,a)}return NDe.logSpanStart(i),MDe.setCapturedScopesOnSpan(i,n,o),i}function pN(t){let r={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...r};return n.startTimestamp=ci.spanTimeInputToSeconds(t.startTime),delete n.startTime,n}return r}function up(){let t=PDe.getMainCarrier();return bDe.getAsyncContextStrategy(t)}function Zz(t,e,r){let n=ur.getClient(),o=n&&n.getOptions()||{},{name:i="",attributes:s}=t,[a,u]=e.getScopeData().sdkProcessingMetadata[lN]?[!1]:CDe.sampleSpan(o,{name:i,parentSampled:r,attributes:s,transactionContext:{name:i,parentSampled:r}}),l=new Jz.SentrySpan({...t,attributes:{[Xz.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...t.attributes},sampled:a});return u!==void 0&&l.setAttribute(Xz.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),n&&n.emit("spanStart",l),l}function qDe(t,e,r){let{spanId:n,traceId:o}=t.spanContext(),i=e.getScopeData().sdkProcessingMetadata[lN]?!1:ci.spanIsSampled(t),s=i?new Jz.SentrySpan({...r,parentSpanId:n,traceId:o,sampled:i}):new ap.SentryNonRecordingSpan({traceId:o});ci.addChildSpanToSpan(t,s);let a=ur.getClient();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}function _N(t){let e=wh._getSpanForScope(t);if(!e)return;let r=ur.getClient();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?ci.getRootSpan(e):e}function Qz(t){return t!==void 0?e=>qh(t,e):e=>e()}_o.continueTrace=xDe;_o.startInactiveSpan=GDe;_o.startNewTrace=wDe;_o.startSpan=LDe;_o.startSpanManual=DDe;_o.suppressTracing=UDe;_o.withActiveSpan=qh});var n3=c(Vh=>{Object.defineProperty(Vh,"__esModule",{value:!0});var li=b(),fN=Te(),gN=Re(),e3=On(),jDe=Xs(),r3=pu(),en=Xe(),VDe=rp(),t3=Ws(),BDe=mu(),jh={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},HDe="heartbeatFailed",FDe="idleTimeout",kDe="finalTimeout",WDe="externalFinish";function YDe(t,e={}){let r=new Map,n=!1,o,i=WDe,s=!e.disableAutoFinish,a=[],{idleTimeout:u=jh.idleTimeout,finalTimeout:l=jh.finalTimeout,childSpanTimeout:d=jh.childSpanTimeout,beforeSpanEnd:p}=e,_=fN.getClient();if(!_||!jDe.hasTracingEnabled())return new VDe.SentryNonRecordingSpan;let f=fN.getCurrentScope(),g=en.getActiveSpan(),h=KDe(t);h.end=new Proxy(h.end,{apply(C,G,K){p&&p(h);let[Q,...Ue]=K,x=Q||li.timestampInSeconds(),V=en.spanTimeInputToSeconds(x),ie=en.getSpanDescendants(h).filter(oe=>oe!==h);if(!ie.length)return y(V),Reflect.apply(C,G,[V,...Ue]);let z=ie.map(oe=>en.spanToJSON(oe).timestamp).filter(oe=>!!oe),ce=z.length?Math.max(...z):void 0,Ve=en.spanToJSON(h).start_timestamp,_e=Math.min(Ve?Ve+l/1e3:1/0,Math.max(Ve||-1/0,Math.min(V,ce||1/0)));return y(_e),Reflect.apply(C,G,[_e,...Ue])}});function T(){o&&(clearTimeout(o),o=void 0)}function v(C){T(),o=setTimeout(()=>{!n&&r.size===0&&s&&(i=FDe,h.end(C))},u)}function N(C){o=setTimeout(()=>{!n&&s&&(i=HDe,h.end(C))},d)}function D(C){T(),r.set(C,!0);let G=li.timestampInSeconds();N(G+d/1e3)}function L(C){if(r.has(C)&&r.delete(C),r.size===0){let G=li.timestampInSeconds();v(G+u/1e3)}}function y(C){n=!0,r.clear(),a.forEach(V=>V()),r3._setSpanForScope(f,g);let G=en.spanToJSON(h),{start_timestamp:K}=G;if(!K)return;(G.data||{})[e3.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||h.setAttribute(e3.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,i),li.logger.log(`[Tracing] Idle span "${G.op}" finished`);let Ue=en.getSpanDescendants(h).filter(V=>V!==h),x=0;Ue.forEach(V=>{V.isRecording()&&(V.setStatus({code:t3.SPAN_STATUS_ERROR,message:"cancelled"}),V.end(C),gN.DEBUG_BUILD&&li.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(V,void 0,2)));let ie=en.spanToJSON(V),{timestamp:z=0,start_timestamp:ce=0}=ie,Ve=ce<=C,_e=(l+u)/1e3,oe=z-ce<=_e;if(gN.DEBUG_BUILD){let dt=JSON.stringify(V,void 0,2);Ve?oe||li.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",dt):li.logger.log("[Tracing] Discarding span since it happened after idle span was finished",dt)}(!oe||!Ve)&&(en.removeChildSpanFromSpan(h,V),x++)}),x>0&&h.setAttribute("sentry.idle_span_discarded_spans",x)}return a.push(_.on("spanStart",C=>{if(n||C===h||en.spanToJSON(C).timestamp)return;en.getSpanDescendants(h).includes(C)&&D(C.spanContext().spanId)})),a.push(_.on("spanEnd",C=>{n||L(C.spanContext().spanId)})),a.push(_.on("idleSpanEnableAutoFinish",C=>{C===h&&(s=!0,v(),r.size&&N())})),e.disableAutoFinish||v(),setTimeout(()=>{n||(h.setStatus({code:t3.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),i=kDe,h.end())},l),h}function KDe(t){let e=BDe.startInactiveSpan(t);return r3._setSpanForScope(fN.getCurrentScope(),e),gN.DEBUG_BUILD&&li.logger.log("[Tracing] Started span is an idle span"),e}Vh.TRACING_DEFAULTS=jh;Vh.startIdleSpan=YDe});var TN=c(mN=>{Object.defineProperty(mN,"__esModule",{value:!0});var hN=b(),XDe=Re();function EN(t,e,r,n=0){return new hN.SyncPromise((o,i)=>{let s=t[n];if(e===null||typeof s!="function")o(e);else{let a=s({...e},r);XDe.DEBUG_BUILD&&s.id&&a===null&&hN.logger.log(`Event processor "${s.id}" dropped event`),hN.isThenable(a)?a.then(u=>EN(t,u,r,n+1).then(o)).then(null,i):EN(t,a,r,n+1).then(o).then(null,i)}})}mN.notifyEventProcessors=EN});var AN=c(lp=>{Object.defineProperty(lp,"__esModule",{value:!0});var cp=b(),ZDe=Rn(),SN=Xe();function zDe(t,e){let{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:i}=e;$De(t,e),n&&tGe(t,n),rGe(t,r),QDe(t,o),eGe(t,i)}function JDe(t,e){let{extra:r,tags:n,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:_,transactionName:f,span:g}=e;Tu(t,"extra",r),Tu(t,"tags",n),Tu(t,"user",o),Tu(t,"contexts",i),Tu(t,"sdkProcessingMetadata",a),s&&(t.level=s),f&&(t.transactionName=f),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,..._}}function Tu(t,e,r){if(r&&Object.keys(r).length){t[e]={...t[e]};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[e][n]=r[n])}}function $De(t,e){let{extra:r,tags:n,user:o,contexts:i,level:s,transactionName:a}=e,u=cp.dropUndefinedKeys(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});let l=cp.dropUndefinedKeys(n);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let d=cp.dropUndefinedKeys(o);d&&Object.keys(d).length&&(t.user={...d,...t.user});let p=cp.dropUndefinedKeys(i);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function QDe(t,e){let r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function eGe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function tGe(t,e){t.contexts={trace:SN.spanToTraceContext(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:ZDe.getDynamicSamplingContextFromSpan(e),...t.sdkProcessingMetadata};let r=SN.getRootSpan(e),n=SN.spanToJSON(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function rGe(t,e){t.fingerprint=t.fingerprint?cp.arrayify(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}lp.applyScopeDataToEvent=zDe;lp.mergeAndOverwriteScopeData=Tu;lp.mergeScopeData=JDe});var Bh=c(Su=>{Object.defineProperty(Su,"__esModule",{value:!0});var Sr=b(),nGe=np(),oGe=Te(),iGe=TN(),o3=_u(),ON=AN();function sGe(t,e,r,n,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||r.event_id||Sr.uuid4(),timestamp:e.timestamp||Sr.dateTimestampInSeconds()},l=r.integrations||t.integrations.map(T=>T.name);aGe(u,t),uGe(u,l),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&i3(u,t.stackParser);let d=lGe(n,r.captureContext);r.mechanism&&Sr.addExceptionMechanism(u,r.mechanism);let p=o?o.getEventProcessors():[],_=oGe.getGlobalScope().getScopeData();if(i){let T=i.getScopeData();ON.mergeScopeData(_,T)}if(d){let T=d.getScopeData();ON.mergeScopeData(_,T)}let f=[...r.attachments||[],..._.attachments];f.length&&(r.attachments=f),ON.applyScopeDataToEvent(u,_);let g=[...p,..._.eventProcessors];return iGe.notifyEventProcessors(g,u,r).then(T=>(T&&s3(T),typeof s=="number"&&s>0?cGe(T,s,a):T))}function aGe(t,e){let{environment:r,release:n,dist:o,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?r:nGe.DEFAULT_ENVIRONMENT),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=Sr.truncate(t.message,i));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Sr.truncate(s.value,i));let a=t.request;a&&a.url&&(a.url=Sr.truncate(a.url,i))}function i3(t,e){let r=Sr.getFilenameToDebugIdMap(e);try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=r[o.filename])})})}catch{}}function s3(t){let e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function uGe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function cGe(t,e,r){if(!t)return null;let n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Sr.normalize(o.data,e,r)}}))},...t.user&&{user:Sr.normalize(t.user,e,r)},...t.contexts&&{contexts:Sr.normalize(t.contexts,e,r)},...t.extra&&{extra:Sr.normalize(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Sr.normalize(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:Sr.normalize(o.data,e,r)}}))),n}function lGe(t,e){if(!e)return t;let r=t?t.clone():new o3.Scope;return r.update(e),r}function dGe(t){if(t)return pGe(t)?{captureContext:t}:fGe(t)?{captureContext:t}:t}function pGe(t){return t instanceof o3.Scope||typeof t=="function"}var _Ge=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function fGe(t){return Object.keys(t).some(e=>_Ge.includes(e))}Su.applyDebugIds=i3;Su.applyDebugMeta=s3;Su.parseEventHintOrCaptureContext=dGe;Su.prepareEvent=sGe});var Au=c(Ce=>{Object.defineProperty(Ce,"__esModule",{value:!0});var fo=b(),gGe=np(),ge=Te(),Hh=Re(),RN=ep(),hGe=Bh();function EGe(t,e){return ge.getCurrentScope().captureException(t,hGe.parseEventHintOrCaptureContext(e))}function mGe(t,e){let r=typeof e=="string"?e:void 0,n=typeof e!="string"?{captureContext:e}:void 0;return ge.getCurrentScope().captureMessage(t,r,n)}function TGe(t,e){return ge.getCurrentScope().captureEvent(t,e)}function SGe(t,e){ge.getIsolationScope().setContext(t,e)}function AGe(t){ge.getIsolationScope().setExtras(t)}function OGe(t,e){ge.getIsolationScope().setExtra(t,e)}function RGe(t){ge.getIsolationScope().setTags(t)}function IGe(t,e){ge.getIsolationScope().setTag(t,e)}function PGe(t){ge.getIsolationScope().setUser(t)}function bGe(){return ge.getIsolationScope().lastEventId()}function IN(t,e){let r=ge.getCurrentScope(),n=ge.getClient();if(!n)Hh.DEBUG_BUILD&&fo.logger.warn("Cannot capture check-in. No client defined.");else if(!n.captureCheckIn)Hh.DEBUG_BUILD&&fo.logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return n.captureCheckIn(t,e,r);return fo.uuid4()}function vGe(t,e,r){let n=IN({monitorSlug:t,status:"in_progress"},r),o=fo.timestampInSeconds();function i(s){IN({monitorSlug:t,status:s,checkInId:n,duration:fo.timestampInSeconds()-o})}return ge.withIsolationScope(()=>{let s;try{s=e()}catch(a){throw i("error"),a}return fo.isThenable(s)?Promise.resolve(s).then(()=>{i("ok")},a=>{throw i("error"),a}):i("ok"),s})}async function yGe(t){let e=ge.getClient();return e?e.flush(t):(Hh.DEBUG_BUILD&&fo.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function NGe(t){let e=ge.getClient();return e?e.close(t):(Hh.DEBUG_BUILD&&fo.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function CGe(){return!!ge.getClient()}function MGe(){let t=ge.getClient();return!!t&&t.getOptions().enabled!==!1&&!!t.getTransport()}function LGe(t){ge.getIsolationScope().addEventProcessor(t)}function DGe(t){let e=ge.getClient(),r=ge.getIsolationScope(),n=ge.getCurrentScope(),{release:o,environment:i=gGe.DEFAULT_ENVIRONMENT}=e&&e.getOptions()||{},{userAgent:s}=fo.GLOBAL_OBJ.navigator||{},a=RN.makeSession({release:o,environment:i,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...t}),u=r.getSession();return u&&u.status==="ok"&&RN.updateSession(u,{status:"exited"}),PN(),r.setSession(a),n.setSession(a),a}function PN(){let t=ge.getIsolationScope(),e=ge.getCurrentScope(),r=e.getSession()||t.getSession();r&&RN.closeSession(r),a3(),t.setSession(),e.setSession()}function a3(){let t=ge.getIsolationScope(),e=ge.getCurrentScope(),r=ge.getClient(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function GGe(t=!1){if(t){PN();return}a3()}Ce.addEventProcessor=LGe;Ce.captureCheckIn=IN;Ce.captureEvent=TGe;Ce.captureException=EGe;Ce.captureMessage=mGe;Ce.captureSession=GGe;Ce.close=NGe;Ce.endSession=PN;Ce.flush=yGe;Ce.isEnabled=MGe;Ce.isInitialized=CGe;Ce.lastEventId=bGe;Ce.setContext=SGe;Ce.setExtra=OGe;Ce.setExtras=AGe;Ce.setTag=IGe;Ce.setTags=RGe;Ce.setUser=PGe;Ce.startSession=DGe;Ce.withMonitor=vGe});var yN=c(vN=>{Object.defineProperty(vN,"__esModule",{value:!0});var xGe=b(),UGe=Te(),bN=class{constructor(e,r){this._client=e,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=r}flush(){let e=this.getSessionAggregates();e.aggregates.length!==0&&(this._pendingAggregates=new Map,this._client.sendSession(e))}getSessionAggregates(){let e=Array.from(this._pendingAggregates.values()),r={attrs:this._sessionAttrs,aggregates:e};return xGe.dropUndefinedKeys(r)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=UGe.getIsolationScope(),r=e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,r){let n=new Date(r).setSeconds(0,0),o=this._pendingAggregates.get(n);switch(o||(o={started:new Date(n).toISOString()},this._pendingAggregates.set(n,o)),e){case"errored":return o.errored=(o.errored||0)+1,o.errored;case"ok":return o.exited=(o.exited||0)+1,o.exited;default:return o.crashed=(o.crashed||0)+1,o.crashed}}};vN.SessionFlusher=bN});var kh=c(Fh=>{Object.defineProperty(Fh,"__esModule",{value:!0});var NN=b(),wGe="7";function u3(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function qGe(t){return`${u3(t)}${t.projectId}/envelope/`}function jGe(t,e){return NN.urlEncode({sentry_key:t.publicKey,sentry_version:wGe,...e&&{sentry_client:`${e.name}/${e.version}`}})}function VGe(t,e,r){return e||`${qGe(t)}?${jGe(t,r)}`}function BGe(t,e){let r=NN.makeDsn(t);if(!r)return"";let n=`${u3(r)}embed/error-page/`,o=`dsn=${NN.dsnToString(r)}`;for(let i in e)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=e.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`;return`${n}?${o}`}Fh.getEnvelopeEndpointWithUrlEncodedAuth=VGe;Fh.getReportDialogEndpoint=BGe});var vt=c(go=>{Object.defineProperty(go,"__esModule",{value:!0});var Wh=b(),HGe=Te(),CN=Re(),MN=[];function FGe(t){let e={};return t.forEach(r=>{let{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function kGe(t){let e=t.defaultIntegrations||[],r=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=Wh.arrayify(r(e)):n=e;let o=FGe(n),i=o.findIndex(s=>s.name==="Debug");if(i>-1){let[s]=o.splice(i,1);o.push(s)}return o}function WGe(t,e){let r={};return e.forEach(n=>{n&&c3(t,n,r)}),r}function YGe(t,e){for(let r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function c3(t,e,r){if(r[e.name]){CN.DEBUG_BUILD&&Wh.logger.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,MN.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),MN.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,i)=>n(o,i,t))}if(typeof e.processEvent=="function"){let n=e.processEvent.bind(e),o=Object.assign((i,s)=>n(i,s,t),{id:e.name});t.addEventProcessor(o)}CN.DEBUG_BUILD&&Wh.logger.log(`Integration installed: ${e.name}`)}function KGe(t){let e=HGe.getClient();if(!e){CN.DEBUG_BUILD&&Wh.logger.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function XGe(t){return t}go.addIntegration=KGe;go.afterSetupIntegrations=YGe;go.defineIntegration=XGe;go.getIntegrationsToSetup=kGe;go.installedIntegrations=MN;go.setupIntegration=c3;go.setupIntegrations=WGe});var GN=c(DN=>{Object.defineProperty(DN,"__esModule",{value:!0});var Z=b(),ZGe=kh(),zGe=Te(),Mr=Re(),l3=Dh(),Yh=vt(),d3=ep(),JGe=Rn(),$Ge=Lh(),QGe=Bh(),p3="Not capturing exception because it's already been captured.",LN=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Z.makeDsn(e.dsn):Mr.DEBUG_BUILD&&Z.logger.warn("No DSN provided, client will not send events."),this._dsn){let r=ZGe.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){let o=Z.uuid4();if(Z.checkOrSetAlreadyCaught(e))return Mr.DEBUG_BUILD&&Z.logger.log(p3),o;let i={event_id:o,...r};return this._process(this.eventFromException(e,i).then(s=>this._captureEvent(s,i,n))),i.event_id}captureMessage(e,r,n,o){let i={event_id:Z.uuid4(),...n},s=Z.isParameterizedString(e)?e:String(e),a=Z.isPrimitive(e)?this.eventFromMessage(s,r,i):this.eventFromException(e,i);return this._process(a.then(u=>this._captureEvent(u,i,o))),i.event_id}captureEvent(e,r,n){let o=Z.uuid4();if(r&&r.originalException&&Z.checkOrSetAlreadyCaught(r.originalException))return Mr.DEBUG_BUILD&&Z.logger.log(p3),o;let i={event_id:o,...r},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){typeof e.release!="string"?Mr.DEBUG_BUILD&&Z.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),d3.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Z.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let r=this._integrations[e.name];Yh.setupIntegration(this,e,this._integrations),r||Yh.afterSetupIntegrations(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=l3.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of r.attachments||[])n=Z.addItemToEnvelope(n,Z.createAttachmentEnvelopeItem(i));let o=this.sendEnvelope(n);o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let r=l3.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){let o=typeof n=="number"?n:1,i=`${e}:${r}`;Mr.DEBUG_BUILD&&Z.logger.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(e,r){let n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{let o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){let n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(Mr.DEBUG_BUILD&&Z.logger.error("Error while sending envelope:",r),r)):(Mr.DEBUG_BUILD&&Z.logger.error("Transport disabled"),Z.resolvedSyncPromise({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Yh.setupIntegrations(this,e),Yh.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1,i=r.exception&&r.exception.values;if(i){o=!0;for(let u of i){let l=u.mechanism;if(l&&l.handled===!1){n=!0;break}}}let s=e.status==="ok";(s&&e.errors===0||s&&n)&&(d3.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Z.SyncPromise(r=>{let n=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),r(!0)):(n+=o,e&&n>=e&&(clearInterval(i),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o=zGe.getIsolationScope()){let i=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s.length>0&&(r.integrations=s),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),QGe.prepareEvent(i,e,r,n,this,o).then(a=>{if(a===null)return a;let u={...o.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&u){let{traceId:d,spanId:p,parentSpanId:_,dsc:f}=u;a.contexts={trace:Z.dropUndefinedKeys({trace_id:d,span_id:p,parent_span_id:_}),...a.contexts};let g=f||JGe.getDynamicSamplingContextFromClient(d,this);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(Mr.DEBUG_BUILD){let i=o;i.logLevel==="log"?Z.logger.log(i.message):Z.logger.warn(i)}})}_processEvent(e,r,n){let o=this.getOptions(),{sampleRate:i}=o,s=f3(e),a=_3(e),u=e.type||"error",l=`before send for type \`${u}\``,d=typeof i>"u"?void 0:$Ge.parseSampleRate(i);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",e),Z.rejectedSyncPromise(new Z.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let p=u==="replay_event"?"replay":u,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,f).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",p,e),new Z.SentryError("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return g;let T=txe(this,o,g,r);return exe(T,l)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",p,e),s){let N=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",N)}throw new Z.SentryError(`${l} returned \`null\`, will not send event.`,"log")}let h=n&&n.getSession();if(!s&&h&&this._updateSessionFromEvent(h,g),s){let v=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,N=g.spans?g.spans.length:0,D=v-N;D>0&&this.recordDroppedEvent("before_send","span",D)}let T=g.transaction_info;if(s&&T&&g.transaction!==e.transaction){let v="custom";g.transaction_info={...T,source:v}}return this.sendEvent(g,r),g}).then(null,g=>{throw g instanceof Z.SentryError?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Z.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
14
+ Reason: ${g}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{let[o,i]=r.split(":");return{reason:o,category:i,quantity:n}})}_flushOutcomes(){Mr.DEBUG_BUILD&&Z.logger.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){Mr.DEBUG_BUILD&&Z.logger.log("No outcomes to send");return}if(!this._dsn){Mr.DEBUG_BUILD&&Z.logger.log("No dsn provided, will not send outcomes");return}Mr.DEBUG_BUILD&&Z.logger.log("Sending outcomes:",e);let r=Z.createClientReportEnvelope(e,this._options.tunnel&&Z.dsnToString(this._dsn));this.sendEnvelope(r)}};function exe(t,e){let r=`${e} must return \`null\` or a valid event.`;if(Z.isThenable(t))return t.then(n=>{if(!Z.isPlainObject(n)&&n!==null)throw new Z.SentryError(r);return n},n=>{throw new Z.SentryError(`${e} rejected with ${n}`)});if(!Z.isPlainObject(t)&&t!==null)throw new Z.SentryError(r);return t}function txe(t,e,r,n){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=e;if(_3(r)&&o)return o(r,n);if(f3(r)){if(r.spans&&s){let a=[];for(let u of r.spans){let l=s(u);l?a.push(l):t.recordDroppedEvent("before_send","span")}r.spans=a}if(i){if(r.spans){let a=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(r,n)}}return r}function _3(t){return t.type===void 0}function f3(t){return t.type==="transaction"}DN.BaseClient=LN});var wN=c(UN=>{Object.defineProperty(UN,"__esModule",{value:!0});var xN=b();function rxe(t,e,r,n,o){let i={sent_at:new Date().toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&o&&(i.dsn=xN.dsnToString(o)),e&&(i.trace=xN.dropUndefinedKeys(e));let s=nxe(t);return xN.createEnvelope(i,[s])}function nxe(t){return[{type:"check_in"},t]}UN.createCheckInEnvelope=rxe});var m3=c(jN=>{Object.defineProperty(jN,"__esModule",{value:!0});var ho=b(),oxe=GN(),ixe=wN(),g3=Te(),Kh=Re(),sxe=yN(),axe=ai(),uxe=pu(),h3=Xe(),E3=Rn(),qN=class extends oxe.BaseClient{constructor(e){axe.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,r){return ho.resolvedSyncPromise(ho.eventFromUnknownInput(this,this._options.stackParser,e,r))}eventFromMessage(e,r="info",n){return ho.resolvedSyncPromise(ho.eventFromMessage(this._options.stackParser,e,r,n,this._options.attachStacktrace))}captureException(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher){let o=g3.getIsolationScope().getRequestSession();o&&o.status==="ok"&&(o.status="errored")}return super.captureException(e,r,n)}captureEvent(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&(e.type||"exception")==="exception"&&e.exception&&e.exception.values&&e.exception.values.length>0){let s=g3.getIsolationScope().getRequestSession();s&&s.status==="ok"&&(s.status="errored")}return super.captureEvent(e,r,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:r}=this._options;e?this._sessionFlusher=new sxe.SessionFlusher(this,{release:e,environment:r}):Kh.DEBUG_BUILD&&ho.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,r,n){let o="checkInId"in e&&e.checkInId?e.checkInId:ho.uuid4();if(!this._isEnabled())return Kh.DEBUG_BUILD&&ho.logger.warn("SDK not enabled, will not capture checkin."),o;let i=this.getOptions(),{release:s,environment:a,tunnel:u}=i,l={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:s,environment:a};"duration"in e&&(l.duration=e.duration),r&&(l.monitor_config={schedule:r.schedule,checkin_margin:r.checkinMargin,max_runtime:r.maxRuntime,timezone:r.timezone,failure_issue_threshold:r.failureIssueThreshold,recovery_threshold:r.recoveryThreshold});let[d,p]=this._getTraceInfoFromScope(n);p&&(l.contexts={trace:p});let _=ixe.createCheckInEnvelope(l,d,this.getSdkMetadata(),u,this.getDsn());return Kh.DEBUG_BUILD&&ho.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(_),o}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Kh.DEBUG_BUILD&&ho.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,r,n,o){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,r,n,o)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let r=uxe._getSpanForScope(e);if(r){let u=h3.getRootSpan(r);return[E3.getDynamicSamplingContextFromSpan(u),h3.spanToTraceContext(u)]}let{traceId:n,spanId:o,parentSpanId:i,dsc:s}=e.getPropagationContext(),a={trace_id:n,span_id:o,parent_span_id:i};return s?[s,a]:[E3.getDynamicSamplingContextFromClient(n,this),a]}};jN.ServerRuntimeClient=qN});var O3=c(Xh=>{Object.defineProperty(Xh,"__esModule",{value:!0});var T3=b(),S3=Te(),cxe=Re();function lxe(t,e){e.debug===!0&&(cxe.DEBUG_BUILD?T3.logger.enable():T3.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),S3.getCurrentScope().update(e.initialScope);let n=new t(e);return A3(n),n.init(),n}function A3(t){S3.getCurrentScope().setClient(t)}Xh.initAndBind=lxe;Xh.setCurrentClient=A3});var b3=c(Zh=>{Object.defineProperty(Zh,"__esModule",{value:!0});var cr=b(),R3=Re(),P3=64;function dxe(t,e,r=cr.makePromiseBuffer(t.bufferSize||P3)){let n={},o=s=>r.drain(s);function i(s){let a=[];if(cr.forEachEnvelopeItem(s,(p,_)=>{let f=cr.envelopeItemTypeToDataCategory(_);if(cr.isRateLimited(n,f)){let g=I3(p,_);t.recordDroppedEvent("ratelimit_backoff",f,g)}else a.push(p)}),a.length===0)return cr.resolvedSyncPromise({});let u=cr.createEnvelope(s[0],a),l=p=>{cr.forEachEnvelopeItem(u,(_,f)=>{let g=I3(_,f);t.recordDroppedEvent(p,cr.envelopeItemTypeToDataCategory(f),g)})},d=()=>e({body:cr.serializeEnvelope(u)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&R3.DEBUG_BUILD&&cr.logger.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),n=cr.updateRateLimits(n,p),p),p=>{throw l("network_error"),p});return r.add(d).then(p=>p,p=>{if(p instanceof cr.SentryError)return R3.DEBUG_BUILD&&cr.logger.error("Skipped sending event because buffer is full."),l("queue_overflow"),cr.resolvedSyncPromise({});throw p})}return{send:i,flush:o}}function I3(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}Zh.DEFAULT_TRANSPORT_BUFFER_SIZE=P3;Zh.createTransport=dxe});var v3=c(dp=>{Object.defineProperty(dp,"__esModule",{value:!0});var zh=b(),pxe=Re(),VN=100,BN=5e3,_xe=36e5;function fxe(t){function e(...r){pxe.DEBUG_BUILD&&zh.logger.info("[Offline]:",...r)}return r=>{let n=t(r);if(!r.createStore)throw new Error("No `createStore` function was provided");let o=r.createStore(r),i=BN,s;function a(p,_,f){return zh.envelopeContainsItemType(p,["client_report"])?!1:r.shouldStore?r.shouldStore(p,_,f):!0}function u(p){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;let _=await o.shift();_&&(e("Attempting to send previously queued event"),_[0].sent_at=new Date().toISOString(),d(_,!0).catch(f=>{e("Failed to retry sending",f)}))},p),typeof s!="number"&&s.unref&&s.unref()}function l(){s||(u(i),i=Math.min(i*2,_xe))}async function d(p,_=!1){if(!_&&zh.envelopeContainsItemType(p,["replay_event","replay_recording"]))return await o.push(p),u(VN),{};try{let f=await n.send(p),g=VN;if(f){if(f.headers&&f.headers["retry-after"])g=zh.parseRetryAfterHeader(f.headers["retry-after"]);else if(f.headers&&f.headers["x-sentry-rate-limits"])g=6e4;else if((f.statusCode||0)>=400)return f}return u(g),i=BN,f}catch(f){if(await a(p,f,i))return _?await o.unshift(p):await o.push(p),l(),e("Error sending. Event queued.",f),{};throw f}}return r.flushAtStartup&&l(),{send:d,flush:p=>n.flush(p)}}}dp.MIN_DELAY=VN;dp.START_DELAY=BN;dp.makeOfflineTransport=fxe});var y3=c(Jh=>{Object.defineProperty(Jh,"__esModule",{value:!0});var HN=b(),gxe=kh();function FN(t,e){let r;return HN.forEachEnvelopeItem(t,(n,o)=>(e.includes(o)&&(r=Array.isArray(n)?n[1]:void 0),!!r)),r}function hxe(t,e){return r=>{let n=t(r);return{...n,send:async o=>{let i=FN(o,["event","transaction","profile","replay_event"]);return i&&(i.release=e),n.send(o)}}}}function Exe(t,e){return HN.createEnvelope(e?{...t[0],dsn:e}:t[0],t[1])}function mxe(t,e){return r=>{let n=t(r),o=new Map;function i(u,l){let d=l?`${u}:${l}`:u,p=o.get(d);if(!p){let _=HN.dsnFromString(u);if(!_)return;let f=gxe.getEnvelopeEndpointWithUrlEncodedAuth(_,r.tunnel);p=l?hxe(t,l)({...r,url:f}):t({...r,url:f}),o.set(d,p)}return[u,p]}async function s(u){function l(f){let g=f&&f.length?f:["event"];return FN(u,g)}let d=e({envelope:u,getEvent:l}).map(f=>typeof f=="string"?i(f,void 0):i(f.dsn,f.release)).filter(f=>!!f),p=d.length?d:[["",n]];return(await Promise.all(p.map(([f,g])=>g.send(Exe(u,f)))))[0]}async function a(u){let l=[...o.values(),n];return(await Promise.all(l.map(p=>p.flush(u)))).every(p=>p)}return{send:s,flush:a}}}Jh.eventFromEnvelope=FN;Jh.makeMultiplexedTransport=mxe});var C3=c(kN=>{Object.defineProperty(kN,"__esModule",{value:!0});function Txe(t,e){let r=e&&e.getDsn(),n=e&&e.getOptions().tunnel;return Axe(t,r)||Sxe(t,n)}function Sxe(t,e){return e?N3(t)===N3(e):!1}function Axe(t,e){return e?t.includes(e.host):!1}function N3(t){return t[t.length-1]==="/"?t.slice(0,-1):t}kN.isSentryRequestUrl=Txe});var M3=c(WN=>{Object.defineProperty(WN,"__esModule",{value:!0});function Oxe(t,...e){let r=new String(String.raw(t,...e));return r.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=e,r}WN.parameterize=Oxe});var D3=c(YN=>{Object.defineProperty(YN,"__esModule",{value:!0});var L3=b();function Rxe(t,e,r=[e],n="npm"){let o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(i=>({name:`${n}:@sentry/${i}`,version:L3.SDK_VERSION})),version:L3.SDK_VERSION}),t._metadata=o}YN.applySdkMetadata=Rxe});var XN=c($h=>{Object.defineProperty($h,"__esModule",{value:!0});var pp=b(),Ixe=gu(),Pxe=ii(),G3=Te(),bxe=Au();ai();Re();var KN=Xe(),x3=Rn();function vxe(){if(!bxe.isEnabled())return{};let t=Pxe.getMainCarrier(),e=Ixe.getAsyncContextStrategy(t);if(e.getTraceData)return e.getTraceData();let r=G3.getClient(),n=G3.getCurrentScope(),o=KN.getActiveSpan(),{dsc:i,sampled:s,traceId:a}=n.getPropagationContext(),u=o&&KN.getRootSpan(o),l=o?KN.spanToTraceHeader(o):pp.generateSentryTraceHeader(a,void 0,s),d=u?x3.getDynamicSamplingContextFromSpan(u):i||(r?x3.getDynamicSamplingContextFromClient(a,r):void 0),p=pp.dynamicSamplingContextToSentryBaggageHeader(d);if(!pp.TRACEPARENT_REGEXP.test(l))return pp.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let f=U3(p);return f||pp.logger.warn('Invalid baggage data. Not returning "baggage" value'),{"sentry-trace":l,...f&&{baggage:p}}}function U3(t){if(!t||!t.length)return!1;let e="[-!#$%&'*+.^_`|~A-Za-z0-9]+",r="[!#-+-./0-9:<=>?@A-Z\\[\\]a-z{-}]+",n="\\s*";return new RegExp(`^${e}${n}=${n}${r}(${n},${n}${e}${n}=${n}${r})*$`).test(t)}$h.getTraceData=vxe;$h.isValidBaggageString=U3});var w3=c(ZN=>{Object.defineProperty(ZN,"__esModule",{value:!0});var yxe=XN();function Nxe(){return Object.entries(yxe.getTraceData()).map(([t,e])=>`<meta name="${t}" content="${e}"/>`).join(`
15
+ `)}ZN.getTraceMetaTags=Nxe});var JN=c(zN=>{Object.defineProperty(zN,"__esModule",{value:!0});var q3=b(),j3=Te(),Cxe=100;function Mxe(t,e){let r=j3.getClient(),n=j3.getIsolationScope();if(!r)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Cxe}=r.getOptions();if(i<=0)return;let a={timestamp:q3.dateTimestampInSeconds(),...t},u=o?q3.consoleSandbox(()=>o(a,e)):a;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,i))}zN.addBreadcrumb=Mxe});var H3=c($N=>{Object.defineProperty($N,"__esModule",{value:!0});var Lxe=b(),Dxe=Te(),Gxe=vt(),V3,xxe="FunctionToString",B3=new WeakMap,Uxe=()=>({name:xxe,setupOnce(){V3=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Lxe.getOriginalFunction(this),r=B3.has(Dxe.getClient())&&e!==void 0?e:this;return V3.apply(r,t)}}catch{}},setup(t){B3.set(t,!0)}}),wxe=Gxe.defineIntegration(Uxe);$N.functionToStringIntegration=wxe});var F3=c(QN=>{Object.defineProperty(QN,"__esModule",{value:!0});var Ze=b(),Zs=Re(),qxe=vt(),jxe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],Vxe="InboundFilters",Bxe=(t={})=>({name:Vxe,processEvent(e,r,n){let o=n.getOptions(),i=Fxe(t,o);return kxe(e,i)?null:e}}),Hxe=qxe.defineIntegration(Bxe);function Fxe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:jxe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function kxe(t,e){return e.ignoreInternal&&zxe(t)?(Zs.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being internal Sentry Error.
16
+ Event: ${Ze.getEventDescription(t)}`),!0):Wxe(t,e.ignoreErrors)?(Zs.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
17
+ Event: ${Ze.getEventDescription(t)}`),!0):$xe(t)?(Zs.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.
18
+ Event: ${Ze.getEventDescription(t)}`),!0):Yxe(t,e.ignoreTransactions)?(Zs.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
19
+ Event: ${Ze.getEventDescription(t)}`),!0):Kxe(t,e.denyUrls)?(Zs.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.
20
+ Event: ${Ze.getEventDescription(t)}.
21
+ Url: ${Qh(t)}`),!0):Xxe(t,e.allowUrls)?!1:(Zs.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.
22
+ Event: ${Ze.getEventDescription(t)}.
23
+ Url: ${Qh(t)}`),!0)}function Wxe(t,e){return t.type||!e||!e.length?!1:Zxe(t).some(r=>Ze.stringMatchesSomePattern(r,e))}function Yxe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let r=t.transaction;return r?Ze.stringMatchesSomePattern(r,e):!1}function Kxe(t,e){if(!e||!e.length)return!1;let r=Qh(t);return r?Ze.stringMatchesSomePattern(r,e):!1}function Xxe(t,e){if(!e||!e.length)return!0;let r=Qh(t);return r?Ze.stringMatchesSomePattern(r,e):!0}function Zxe(t){let e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function zxe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Jxe(t=[]){for(let e=t.length-1;e>=0;e--){let r=t[e];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function Qh(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Jxe(e):null}catch{return Zs.DEBUG_BUILD&&Ze.logger.error(`Cannot extract url for event ${Ze.getEventDescription(t)}`),null}}function $xe(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}QN.inboundFiltersIntegration=Hxe});var W3=c(eC=>{Object.defineProperty(eC,"__esModule",{value:!0});var k3=b(),Qxe=vt(),eUe="cause",tUe=5,rUe="LinkedErrors",nUe=(t={})=>{let e=t.limit||tUe,r=t.key||eUe;return{name:rUe,preprocessEvent(n,o,i){let s=i.getOptions();k3.applyAggregateErrorsToEvent(k3.exceptionFromError,s.stackParser,s.maxValueLength,r,e,n,o)}}},oUe=Qxe.defineIntegration(nUe);eC.linkedErrorsIntegration=oUe});var rC=c(_p=>{Object.defineProperty(_p,"__esModule",{value:!0});var tC=b(),K3=new Map,Y3=new Set;function iUe(t){if(tC.GLOBAL_OBJ._sentryModuleMetadata)for(let e of Object.keys(tC.GLOBAL_OBJ._sentryModuleMetadata)){let r=tC.GLOBAL_OBJ._sentryModuleMetadata[e];if(Y3.has(e))continue;Y3.add(e);let n=t(e);for(let o of n.reverse())if(o.filename){K3.set(o.filename,r);break}}}function X3(t,e){return iUe(t),K3.get(e)}function sUe(t,e){try{e.exception.values.forEach(r=>{if(r.stacktrace)for(let n of r.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;let o=X3(t,n.filename);o&&(n.module_metadata=o)}})}catch{}}function aUe(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(let r of e.stacktrace.frames||[])delete r.module_metadata})}catch{}}_p.addMetadataToStackFrames=sUe;_p.getMetadataForUrl=X3;_p.stripMetadataFromStackFrames=aUe});var z3=c(nC=>{Object.defineProperty(nC,"__esModule",{value:!0});var uUe=b(),cUe=vt(),Z3=rC(),lUe=cUe.defineIntegration(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",e=>{uUe.forEachEnvelopeItem(e,(r,n)=>{if(n==="event"){let o=Array.isArray(r)?r[1]:void 0;o&&(Z3.stripMetadataFromStackFrames(o),r[1]=o)}})}),t.on("applyFrameMetadata",e=>{if(e.type)return;let r=t.getOptions().stackParser;Z3.addMetadataToStackFrames(r,e)})}}));nC.moduleMetadataIntegration=lUe});var $3=c(iC=>{Object.defineProperty(iC,"__esModule",{value:!0});var J3=b(),dUe=vt(),oC={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},pUe="RequestData",_Ue=(t={})=>{let e={...oC,...t,include:{...oC.include,...t.include,user:t.include&&typeof t.include.user=="boolean"?t.include.user:{...oC.include.user,...(t.include||{}).user}}};return{name:pUe,processEvent(r){let{sdkProcessingMetadata:n={}}=r,{request:o,normalizedRequest:i}=n,s=gUe(e);if(i){let a=o?o.ip||o.socket&&o.socket.remoteAddress:void 0,u=o?o.user:void 0;return J3.addNormalizedRequestDataToEvent(r,i,{ipAddress:a,user:u},s),r}return o?J3.addRequestDataToEvent(r,o,s):r}}},fUe=dUe.defineIntegration(_Ue);function gUe(t){let{transactionNamingScheme:e,include:{ip:r,user:n,...o}}=t,i=["method"];for(let[a,u]of Object.entries(o))u&&i.push(a);let s;if(n===void 0)s=!0;else if(typeof n=="boolean")s=n;else{let a=[];for(let[u,l]of Object.entries(n))l&&a.push(u);s=a}return{include:{ip:r,user:s,request:i.length!==0?i:void 0,transaction:e}}}iC.requestDataIntegration=fUe});var e4=c(aC=>{Object.defineProperty(aC,"__esModule",{value:!0});var zs=b(),Q3=Te(),sC=Au(),hUe=vt(),EUe="CaptureConsole",mUe=(t={})=>{let e=t.levels||zs.CONSOLE_LEVELS;return{name:EUe,setup(r){"console"in zs.GLOBAL_OBJ&&zs.addConsoleInstrumentationHandler(({args:n,level:o})=>{Q3.getClient()!==r||!e.includes(o)||SUe(n,o)})}}},TUe=hUe.defineIntegration(mUe);function SUe(t,e){let r={level:zs.severityLevelFromString(e),extra:{arguments:t}};Q3.withScope(n=>{if(n.addEventProcessor(s=>(s.logger="console",zs.addExceptionMechanism(s,{handled:!1,type:"console"}),s)),e==="assert"){if(!t[0]){let s=`Assertion failed: ${zs.safeJoin(t.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",t.slice(1)),sC.captureMessage(s,r)}return}let o=t.find(s=>s instanceof Error);if(o){sC.captureException(o,r);return}let i=zs.safeJoin(t," ");sC.captureMessage(i,r)})}aC.captureConsoleIntegration=TUe});var t4=c(uC=>{Object.defineProperty(uC,"__esModule",{value:!0});var AUe=b(),OUe=vt(),RUe="Debug",IUe=(t={})=>{let e={debugger:!1,stringify:!1,...t};return{name:RUe,setup(r){r.on("beforeSendEvent",(n,o)=>{if(e.debugger)debugger;AUe.consoleSandbox(()=>{e.stringify?(console.log(JSON.stringify(n,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(n),o&&Object.keys(o).length&&console.log(o))})})}}},PUe=OUe.defineIntegration(IUe);uC.debugIntegration=PUe});var s4=c(eE=>{Object.defineProperty(eE,"__esModule",{value:!0});var cC=b(),bUe=vt(),vUe=Re(),yUe="Dedupe",NUe=()=>{let t;return{name:yUe,processEvent(e){if(e.type)return e;try{if(n4(e,t))return vUe.DEBUG_BUILD&&cC.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},CUe=bUe.defineIntegration(NUe);function n4(t,e){return e?!!(MUe(t,e)||LUe(t,e)):!1}function MUe(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!i4(t,e)||!o4(t,e))}function LUe(t,e){let r=r4(e),n=r4(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!i4(t,e)||!o4(t,e))}function o4(t,e){let r=cC.getFramesFromEvent(t),n=cC.getFramesFromEvent(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o<n.length;o++){let i=n[o],s=r[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function i4(t,e){let r=t.fingerprint,n=e.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function r4(t){return t.exception&&t.exception.values&&t.exception.values[0]}eE._shouldDropEvent=n4;eE.dedupeIntegration=CUe});var a4=c(lC=>{Object.defineProperty(lC,"__esModule",{value:!0});var Eo=b(),DUe=vt(),GUe=Re(),xUe="ExtraErrorData",UUe=(t={})=>{let{depth:e=3,captureErrorCause:r=!0}=t;return{name:xUe,processEvent(n,o,i){let{maxValueLength:s=250}=i.getOptions();return qUe(n,o,e,r,s)}}},wUe=DUe.defineIntegration(UUe);function qUe(t,e={},r,n,o){if(!e.originalException||!Eo.isError(e.originalException))return t;let i=e.originalException.name||e.originalException.constructor.name,s=jUe(e.originalException,n,o);if(s){let a={...t.contexts},u=Eo.normalize(s,r);return Eo.isPlainObject(u)&&(Eo.addNonEnumerableProperty(u,"__sentry_skip_normalization__",!0),a[i]=u),{...t,contexts:a}}return t}function jUe(t,e,r){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let i of Object.keys(t)){if(n.indexOf(i)!==-1)continue;let s=t[i];o[i]=Eo.isError(s)||typeof s=="string"?Eo.truncate(`${s}`,r):s}if(e&&t.cause!==void 0&&(o.cause=Eo.isError(t.cause)?t.cause.toString():t.cause),typeof t.toJSON=="function"){let i=t.toJSON();for(let s of Object.keys(i)){let a=i[s];o[s]=Eo.isError(a)?a.toString():a}}return o}catch(n){GUe.DEBUG_BUILD&&Eo.logger.error("Unable to extract extra data from the Error object:",n)}return null}lC.extraErrorDataIntegration=wUe});var c4=c(rE=>{Object.defineProperty(rE,"__esModule",{value:!0});var tE=b(),VUe=vt(),BUe="RewriteFrames",HUe=VUe.defineIntegration((t={})=>{let e=t.root,r=t.prefix||"app:///",n="window"in tE.GLOBAL_OBJ&&tE.GLOBAL_OBJ.window!==void 0,o=t.iteratee||u4({isBrowser:n,root:e,prefix:r});function i(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(u=>({...u,...u.stacktrace&&{stacktrace:s(u.stacktrace)}}))}}}catch{return a}}function s(a){return{...a,frames:a&&a.frames&&a.frames.map(u=>o(u))}}return{name:BUe,processEvent(a){let u=a;return a.exception&&Array.isArray(a.exception.values)&&(u=i(u)),u}}});function u4({isBrowser:t,root:e,prefix:r}){return n=>{if(!n.filename)return n;let o=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),i=/^\//.test(n.filename);if(t){if(e){let s=n.filename;s.indexOf(e)===0&&(n.filename=s.replace(e,r))}}else if(o||i){let s=o?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=e?tE.relative(e,s):tE.basename(s);n.filename=`${r}${a}`}return n}}rE.generateIteratee=u4;rE.rewriteFramesIntegration=HUe});var d4=c(dC=>{Object.defineProperty(dC,"__esModule",{value:!0});var l4=b(),FUe=vt(),kUe="SessionTiming",WUe=()=>{let t=l4.timestampInSeconds()*1e3;return{name:kUe,processEvent(e){let r=l4.timestampInSeconds()*1e3;return{...e,extra:{...e.extra,"session:start":t,"session:duration":r-t,"session:end":r}}}}},YUe=FUe.defineIntegration(WUe);dC.sessionTimingIntegration=YUe});var f4=c(nE=>{Object.defineProperty(nE,"__esModule",{value:!0});var p4=b(),KUe=vt(),XUe=10,ZUe="ZodErrors";function zUe(t){return p4.isError(t)&&t.name==="ZodError"&&Array.isArray(t.errors)}function JUe(t){return{...t,path:"path"in t&&Array.isArray(t.path)?t.path.join("."):void 0,keys:"keys"in t?JSON.stringify(t.keys):void 0,unionErrors:"unionErrors"in t?JSON.stringify(t.unionErrors):void 0}}function $Ue(t){let e=new Set;for(let n of t.issues)n.path&&n.path[0]&&e.add(n.path[0]);let r=Array.from(e);return`Failed to validate keys: ${p4.truncate(r.join(", "),100)}`}function _4(t,e,r){return!e.exception||!e.exception.values||!r||!r.originalException||!zUe(r.originalException)||r.originalException.issues.length===0?e:{...e,exception:{...e.exception,values:[{...e.exception.values[0],value:$Ue(r.originalException)},...e.exception.values.slice(1)]},extra:{...e.extra,"zoderror.issues":r.originalException.errors.slice(0,t).map(JUe)}}}var QUe=(t={})=>{let e=t.limit||XUe;return{name:ZUe,processEvent(r,n){return _4(e,r,n)}}},ewe=KUe.defineIntegration(QUe);nE.applyZodErrorsToEvent=_4;nE.zodErrorsIntegration=ewe});var m4=c(pC=>{Object.defineProperty(pC,"__esModule",{value:!0});var E4=b(),twe=vt(),g4=rC(),rwe=twe.defineIntegration(t=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",r=>{E4.forEachEnvelopeItem(r,(n,o)=>{if(o==="event"){let i=Array.isArray(n)?n[1]:void 0;i&&(g4.stripMetadataFromStackFrames(i),n[1]=i)}})}),e.on("applyFrameMetadata",r=>{if(r.type)return;let n=e.getOptions().stackParser;g4.addMetadataToStackFrames(n,r)})},processEvent(e){let r=nwe(e);if(r){let n=t.behaviour==="drop-error-if-contains-third-party-frames"||t.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(r[n](i=>!i.some(s=>t.filterKeys.includes(s)))){if(t.behaviour==="drop-error-if-contains-third-party-frames"||t.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;e.tags={...e.tags,third_party_code:!0}}}return e}}));function nwe(t){let e=E4.getFramesFromEvent(t);if(e)return e.filter(r=>!!r.filename).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(n=>n.startsWith(h4)).map(n=>n.slice(h4.length)):[])}var h4="_sentryBundlerPluginAppKey:";pC.thirdPartyErrorFilterIntegration=rwe});var fp=c(mo=>{Object.defineProperty(mo,"__esModule",{value:!0});var owe="c",iwe="g",swe="s",awe="d",uwe=5e3,cwe=1e4,lwe=1e4;mo.COUNTER_METRIC_TYPE=owe;mo.DEFAULT_BROWSER_FLUSH_INTERVAL=uwe;mo.DEFAULT_FLUSH_INTERVAL=cwe;mo.DISTRIBUTION_METRIC_TYPE=awe;mo.GAUGE_METRIC_TYPE=iwe;mo.MAX_WEIGHT=lwe;mo.SET_METRIC_TYPE=swe});var EC=c(hC=>{Object.defineProperty(hC,"__esModule",{value:!0});var oE=b(),dwe=Te(),pwe=Re();ai();var _C=Xe(),_we=mu(),fwe=vh(),iE=fp();function T4(t,e){let r=oE.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),n=r.get(t);if(n)return n;let o=new e(t);return t.on("flush",()=>o.flush()),t.on("close",()=>o.close()),r.set(t,o),o}function sE(t,e,r,n,o={}){let i=o.client||dwe.getClient();if(!i)return;let s=_C.getActiveSpan(),a=s?_C.getRootSpan(s):void 0,u=a&&_C.spanToJSON(a).description,{unit:l,tags:d,timestamp:p}=o,{release:_,environment:f}=i.getOptions(),g={};_&&(g.release=_),f&&(g.environment=f),u&&(g.transaction=u),pwe.DEBUG_BUILD&&oE.logger.log(`Adding value of ${n} to ${e} metric ${r}`),T4(i,t).add(e,r,n,l,{...g,...d},p)}function gwe(t,e,r=1,n){sE(t,iE.COUNTER_METRIC_TYPE,e,gC(r),n)}function fC(t,e,r,n){sE(t,iE.DISTRIBUTION_METRIC_TYPE,e,gC(r),n)}function hwe(t,e,r,n="second",o){if(typeof r=="function"){let i=oE.timestampInSeconds();return _we.startSpanManual({op:"metrics.timing",name:e,startTime:i,onlyIfParent:!0},s=>fwe.handleCallbackErrors(()=>r(),()=>{},()=>{let a=oE.timestampInSeconds(),u=a-i;fC(t,e,u,{...o,unit:"second"}),s.end(a)}))}fC(t,e,r,{...o,unit:n})}function Ewe(t,e,r,n){sE(t,iE.SET_METRIC_TYPE,e,r,n)}function mwe(t,e,r,n){sE(t,iE.GAUGE_METRIC_TYPE,e,gC(r),n)}var Twe={increment:gwe,distribution:fC,set:Ewe,gauge:mwe,timing:hwe,getMetricsAggregatorForClient:T4};function gC(t){return typeof t=="string"?parseInt(t):t}hC.metrics=Twe});var O4=c(mC=>{Object.defineProperty(mC,"__esModule",{value:!0});var Ou=b(),S4=Te(),Ru=Re();function A4(t){return!!t&&typeof t._profiler<"u"&&typeof t._profiler.start=="function"&&typeof t._profiler.stop=="function"}function Swe(){let t=S4.getClient();if(!t){Ru.DEBUG_BUILD&&Ou.logger.warn("No Sentry client available, profiling is not started");return}let e=t.getIntegrationByName("ProfilingIntegration");if(!e){Ru.DEBUG_BUILD&&Ou.logger.warn("ProfilingIntegration is not available");return}if(!A4(e)){Ru.DEBUG_BUILD&&Ou.logger.warn("Profiler is not available on profiling integration.");return}e._profiler.start()}function Awe(){let t=S4.getClient();if(!t){Ru.DEBUG_BUILD&&Ou.logger.warn("No Sentry client available, profiling is not started");return}let e=t.getIntegrationByName("ProfilingIntegration");if(!e){Ru.DEBUG_BUILD&&Ou.logger.warn("ProfilingIntegration is not available");return}if(!A4(e)){Ru.DEBUG_BUILD&&Ou.logger.warn("Profiler is not available on profiling integration.");return}e._profiler.stop()}var Owe={startProfiler:Swe,stopProfiler:Awe};mC.profiler=Owe});var gp=c(di=>{Object.defineProperty(di,"__esModule",{value:!0});var Rwe=b();function Iwe(t,e,r,n){let o=Object.entries(Rwe.dropUndefinedKeys(n)).sort((i,s)=>i[0].localeCompare(s[0]));return`${t}${e}${r}${o}`}function Pwe(t){let e=0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);e=(e<<5)-e+n,e&=e}return e>>>0}function bwe(t){let e="";for(let r of t){let n=Object.entries(r.tags),o=n.length>0?`|#${n.map(([i,s])=>`${i}:${s}`).join(",")}`:"";e+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${o}|T${r.timestamp}
24
+ `}return e}function vwe(t){return t.replace(/[^\w]+/gi,"_")}function ywe(t){return t.replace(/[^\w\-.]+/gi,"_")}function Nwe(t){return t.replace(/[^\w\-./]+/gi,"")}var Cwe=[[`
25
+ `,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Mwe(t){for(let[e,r]of Cwe)if(t===e)return r;return t}function Lwe(t){return[...t].reduce((e,r)=>e+Mwe(r),"")}function Dwe(t){let e={};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=Nwe(r);e[n]=Lwe(String(t[r]))}return e}di.getBucketKey=Iwe;di.sanitizeMetricKey=ywe;di.sanitizeTags=Dwe;di.sanitizeUnit=vwe;di.serializeMetricBuckets=bwe;di.simpleHash=Pwe});var SC=c(aE=>{Object.defineProperty(aE,"__esModule",{value:!0});var TC=b(),Gwe=gp();function xwe(t,e){TC.logger.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let r=t.getDsn(),n=t.getSdkMetadata(),o=t.getOptions().tunnel,i=R4(e,r,n,o);t.sendEnvelope(i)}function R4(t,e,r,n){let o={sent_at:new Date().toISOString()};r&&r.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&e&&(o.dsn=TC.dsnToString(e));let i=Uwe(t);return TC.createEnvelope(o,[i])}function Uwe(t){let e=Gwe.serializeMetricBuckets(t);return[{type:"statsd",length:e.length},e]}aE.captureAggregateMetrics=xwe;aE.createMetricEnvelope=R4});var AC=c(Js=>{Object.defineProperty(Js,"__esModule",{value:!0});var uE=fp(),wwe=gp(),cE=class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},lE=class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},dE=class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},pE=class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e=="string"?wwe.simpleHash(e):e).join(":")}},qwe={[uE.COUNTER_METRIC_TYPE]:cE,[uE.GAUGE_METRIC_TYPE]:lE,[uE.DISTRIBUTION_METRIC_TYPE]:dE,[uE.SET_METRIC_TYPE]:pE};Js.CounterMetric=cE;Js.DistributionMetric=dE;Js.GaugeMetric=lE;Js.METRIC_MAP=qwe;Js.SetMetric=pE});var P4=c(RC=>{Object.defineProperty(RC,"__esModule",{value:!0});var I4=b(),jwe=Xe(),hp=fp(),Vwe=SC(),Bwe=AC(),_E=gp(),OC=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),hp.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*hp.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,r,n,o="none",i={},s=I4.timestampInSeconds()){let a=Math.floor(s),u=_E.sanitizeMetricKey(r),l=_E.sanitizeTags(i),d=_E.sanitizeUnit(o),p=_E.getBucketKey(e,u,d,l),_=this._buckets.get(p),f=_&&e===hp.SET_METRIC_TYPE?_.metric.weight:0;_?(_.metric.add(n),_.timestamp<a&&(_.timestamp=a)):(_={metric:new Bwe.METRIC_MAP[e](n),timestamp:a,metricType:e,name:u,unit:d,tags:l},this._buckets.set(p,_));let g=typeof n=="string"?_.metric.weight-f:n;jwe.updateMetricSummaryOnActiveSpan(e,u,g,d,i,p),this._bucketsTotalWeight+=_.metric.weight,this._bucketsTotalWeight>=hp.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush){this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),this._buckets.clear();return}let e=Math.floor(I4.timestampInSeconds())-hp.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,r=new Map;for(let[n,o]of this._buckets)o.timestamp<=e&&(r.set(n,o),this._bucketsTotalWeight-=o.metric.weight);for(let[n]of r)this._buckets.delete(n);this._captureMetrics(r)}_captureMetrics(e){if(e.size>0){let r=Array.from(e).map(([,n])=>n);Vwe.captureAggregateMetrics(this._client,r)}}};RC.MetricsAggregator=OC});var b4=c(IC=>{Object.defineProperty(IC,"__esModule",{value:!0});var Iu=P4(),Pu=EC();function Hwe(t,e=1,r){Pu.metrics.increment(Iu.MetricsAggregator,t,e,r)}function Fwe(t,e,r){Pu.metrics.distribution(Iu.MetricsAggregator,t,e,r)}function kwe(t,e,r){Pu.metrics.set(Iu.MetricsAggregator,t,e,r)}function Wwe(t,e,r){Pu.metrics.gauge(Iu.MetricsAggregator,t,e,r)}function Ywe(t,e,r="second",n){return Pu.metrics.timing(Iu.MetricsAggregator,t,e,r,n)}function Kwe(t){return Pu.metrics.getMetricsAggregatorForClient(t,Iu.MetricsAggregator)}var Xwe={increment:Hwe,distribution:Fwe,set:kwe,gauge:Wwe,timing:Ywe,getMetricsAggregatorForClient:Kwe};IC.metricsDefault=Xwe});var y4=c(bC=>{Object.defineProperty(bC,"__esModule",{value:!0});var Zwe=b(),zwe=Xe(),v4=fp(),Jwe=SC(),$we=AC(),fE=gp(),PC=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),v4.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,r,n,o="none",i={},s=Zwe.timestampInSeconds()){let a=Math.floor(s),u=fE.sanitizeMetricKey(r),l=fE.sanitizeTags(i),d=fE.sanitizeUnit(o),p=fE.getBucketKey(e,u,d,l),_=this._buckets.get(p),f=_&&e===v4.SET_METRIC_TYPE?_.metric.weight:0;_?(_.metric.add(n),_.timestamp<a&&(_.timestamp=a)):(_={metric:new $we.METRIC_MAP[e](n),timestamp:a,metricType:e,name:u,unit:d,tags:l},this._buckets.set(p,_));let g=typeof n=="string"?_.metric.weight-f:n;zwe.updateMetricSummaryOnActiveSpan(e,u,g,d,i,p)}flush(){if(this._buckets.size===0)return;let e=Array.from(this._buckets.values());Jwe.captureAggregateMetrics(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}};bC.BrowserMetricsAggregator=PC});var x4=c(hE=>{Object.defineProperty(hE,"__esModule",{value:!0});var tn=b(),vC=Te(),N4=On();ai();Re();var C4=Xs(),D4=Xe(),Qwe=rp(),M4=Ws(),eqe=mu(),L4=Rn();function tqe(t,e,r,n,o="auto.http.browser"){if(!t.fetchData)return;let i=C4.hasTracingEnabled()&&e(t.fetchData.url);if(t.endTimestamp&&i){let g=t.fetchData.__span;if(!g)return;let h=n[g];h&&(nqe(h,t),delete n[g]);return}let s=vC.getCurrentScope(),a=vC.getClient(),{method:u,url:l}=t.fetchData,d=rqe(l),p=d?tn.parseUrl(d).host:void 0,_=!!D4.getActiveSpan(),f=i&&_?eqe.startInactiveSpan({name:`${u} ${l}`,attributes:{url:l,type:"fetch","http.method":u,"http.url":d,"server.address":p,[N4.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,[N4.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new Qwe.SentryNonRecordingSpan;if(t.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f,r(t.fetchData.url)&&a){let g=t.args[0];t.args[1]=t.args[1]||{};let h=t.args[1];h.headers=G4(g,a,s,h,C4.hasTracingEnabled()&&_?f:void 0)}return f}function G4(t,e,r,n,o){let i=vC.getIsolationScope(),{traceId:s,spanId:a,sampled:u,dsc:l}={...i.getPropagationContext(),...r.getPropagationContext()},d=o?D4.spanToTraceHeader(o):tn.generateSentryTraceHeader(s,a,u),p=tn.dynamicSamplingContextToSentryBaggageHeader(l||(o?L4.getDynamicSamplingContextFromSpan(o):L4.getDynamicSamplingContextFromClient(s,e))),_=n.headers||(typeof Request<"u"&&tn.isInstanceOf(t,Request)?t.headers:void 0);if(_)if(typeof Headers<"u"&&tn.isInstanceOf(_,Headers)){let f=new Headers(_);if(f.set("sentry-trace",d),p){let g=f.get(tn.BAGGAGE_HEADER_NAME);if(g){let h=gE(g);f.set(tn.BAGGAGE_HEADER_NAME,h?`${h},${p}`:p)}else f.set(tn.BAGGAGE_HEADER_NAME,p)}return f}else if(Array.isArray(_)){let f=[..._.filter(g=>!(Array.isArray(g)&&g[0]==="sentry-trace")).map(g=>{if(Array.isArray(g)&&g[0]===tn.BAGGAGE_HEADER_NAME&&typeof g[1]=="string"){let[h,T,...v]=g;return[h,gE(T),...v]}else return g}),["sentry-trace",d]];return p&&f.push([tn.BAGGAGE_HEADER_NAME,p]),f}else{let f="baggage"in _?_.baggage:void 0,g=[];return Array.isArray(f)?g=f.map(h=>typeof h=="string"?gE(h):h).filter(h=>h===""):f&&g.push(gE(f)),p&&g.push(p),{..._,"sentry-trace":d,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":d,baggage:p}}function rqe(t){try{return new URL(t).href}catch{return}}function nqe(t,e){if(e.response){M4.setHttpStatus(t,e.response.status);let r=e.response&&e.response.headers&&e.response.headers.get("content-length");if(r){let n=parseInt(r);n>0&&t.setAttribute("http.response_content_length",n)}}else e.error&&t.setStatus({code:M4.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function gE(t){return t.split(",").filter(e=>!e.split("=")[0].startsWith(tn.SENTRY_BAGGAGE_KEY_PREFIX)).join(",")}hE.addTracingHeadersToFetchRequest=G4;hE.instrumentFetchRequest=tqe});var B4=c(yC=>{Object.defineProperty(yC,"__esModule",{value:!0});var U4=b(),w4=Te(),j4=Au(),q4=On();ai();Re();var oqe=mu(),V4={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};function iqe(t){typeof t=="object"&&t!==null&&"ok"in t&&!t.ok&&"error"in t&&j4.captureException(t.error,V4)}function sqe(t={}){return async function(e){let{path:r,type:n,next:o,rawInput:i,getRawInput:s}=e,a=w4.getClient(),u=a&&a.getOptions(),l={procedure_path:r,procedure_type:n};if((t.attachRpcInput!==void 0?t.attachRpcInput:u&&u.sendDefaultPii)&&(i!==void 0&&(l.input=U4.normalize(i)),s!==void 0&&typeof s=="function"))try{let d=await s();l.input=U4.normalize(d)}catch{}return w4.withScope(d=>(d.setContext("trpc",l),oqe.startSpanManual({name:`trpc/${r}`,op:"rpc.server",attributes:{[q4.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[q4.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},async p=>{try{let _=await o();return iqe(_),p.end(),_}catch(_){throw j4.captureException(_,V4),p.end(),_}})))}}yC.trpcMiddleware=sqe});var F4=c(NC=>{Object.defineProperty(NC,"__esModule",{value:!0});var aqe=b(),H4=Te();function uqe(t,e={},r=H4.getCurrentScope()){let{message:n,name:o,email:i,url:s,source:a,associatedEventId:u,tags:l}=t,d={contexts:{feedback:aqe.dropUndefinedKeys({contact_email:i,name:o,message:n,url:s,source:a,associated_event_id:u})},type:"feedback",level:"info",tags:l},p=r&&r.getClient()||H4.getClient();return p&&p.emit("beforeSendFeedback",d,e),r.captureEvent(d,e)}NC.captureFeedback=uqe});var W4=c(EE=>{Object.defineProperty(EE,"__esModule",{value:!0});var cqe=JN(),Pn=Te(),In=Au();function k4(){return{bindClient(t){Pn.getCurrentScope().setClient(t)},withScope:Pn.withScope,getClient:()=>Pn.getClient(),getScope:Pn.getCurrentScope,getIsolationScope:Pn.getIsolationScope,captureException:(t,e)=>Pn.getCurrentScope().captureException(t,e),captureMessage:(t,e,r)=>Pn.getCurrentScope().captureMessage(t,e,r),captureEvent:In.captureEvent,addBreadcrumb:cqe.addBreadcrumb,setUser:In.setUser,setTags:In.setTags,setTag:In.setTag,setExtra:In.setExtra,setExtras:In.setExtras,setContext:In.setContext,getIntegration(t){let e=Pn.getClient();return e&&e.getIntegrationByName(t.id)||null},startSession:In.startSession,endSession:In.endSession,captureSession(t){if(t)return In.endSession();dqe()}}}var lqe=k4;function dqe(){let t=Pn.getCurrentScope(),e=Pn.getClient(),r=t.getSession();e&&r&&e.captureSession(r)}EE.getCurrentHub=lqe;EE.getCurrentHubShim=k4});var k=c(S=>{Object.defineProperty(S,"__esModule",{value:!0});var pqe=ai(),Y4=bh(),_qe=Lz(),K4=n3(),fqe=aN(),gqe=rp(),Ep=Ws(),$s=mu(),CC=Rn(),X4=iN(),hqe=oN(),Z4=Mh(),lr=On(),MC=Dh(),qe=Au(),bu=Te(),z4=wy(),Eqe=gu(),mqe=ii(),LC=ep(),Tqe=yN(),Sqe=_u(),Aqe=TN(),J4=kh(),Oqe=GN(),Rqe=m3(),$4=O3(),Iqe=b3(),Pqe=v3(),bqe=y3(),DC=vt(),Q4=AN(),vqe=Bh(),yqe=wN(),Nqe=Xs(),Cqe=C3(),Mqe=vh(),Lqe=M3(),bn=Xe(),Dqe=Lh(),Gqe=D3(),xqe=XN(),Uqe=w3(),wqe=np(),qqe=JN(),jqe=H3(),Vqe=F3(),Bqe=W3(),Hqe=z3(),Fqe=$3(),kqe=e4(),Wqe=t4(),Yqe=s4(),Kqe=a4(),Xqe=c4(),Zqe=d4(),zqe=f4(),Jqe=m4(),$qe=EC(),Qqe=O4(),eje=b4(),tje=y4(),rje=Ph(),eJ=x4(),nje=B4(),oje=F4(),tJ=W4(),ije=b();S.registerSpanErrorInstrumentation=pqe.registerSpanErrorInstrumentation;S.getCapturedScopesOnSpan=Y4.getCapturedScopesOnSpan;S.setCapturedScopesOnSpan=Y4.setCapturedScopesOnSpan;S.addTracingExtensions=_qe.addTracingExtensions;S.TRACING_DEFAULTS=K4.TRACING_DEFAULTS;S.startIdleSpan=K4.startIdleSpan;S.SentrySpan=fqe.SentrySpan;S.SentryNonRecordingSpan=gqe.SentryNonRecordingSpan;S.SPAN_STATUS_ERROR=Ep.SPAN_STATUS_ERROR;S.SPAN_STATUS_OK=Ep.SPAN_STATUS_OK;S.SPAN_STATUS_UNSET=Ep.SPAN_STATUS_UNSET;S.getSpanStatusFromHttpCode=Ep.getSpanStatusFromHttpCode;S.setHttpStatus=Ep.setHttpStatus;S.continueTrace=$s.continueTrace;S.startInactiveSpan=$s.startInactiveSpan;S.startNewTrace=$s.startNewTrace;S.startSpan=$s.startSpan;S.startSpanManual=$s.startSpanManual;S.suppressTracing=$s.suppressTracing;S.withActiveSpan=$s.withActiveSpan;S.getDynamicSamplingContextFromClient=CC.getDynamicSamplingContextFromClient;S.getDynamicSamplingContextFromSpan=CC.getDynamicSamplingContextFromSpan;S.spanToBaggageHeader=CC.spanToBaggageHeader;S.setMeasurement=X4.setMeasurement;S.timedEventsToMeasurements=X4.timedEventsToMeasurements;S.sampleSpan=hqe.sampleSpan;S.logSpanEnd=Z4.logSpanEnd;S.logSpanStart=Z4.logSpanStart;S.SEMANTIC_ATTRIBUTE_CACHE_HIT=lr.SEMANTIC_ATTRIBUTE_CACHE_HIT;S.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=lr.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE;S.SEMANTIC_ATTRIBUTE_CACHE_KEY=lr.SEMANTIC_ATTRIBUTE_CACHE_KEY;S.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=lr.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME;S.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=lr.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD;S.SEMANTIC_ATTRIBUTE_PROFILE_ID=lr.SEMANTIC_ATTRIBUTE_PROFILE_ID;S.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=lr.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON;S.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=lr.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT;S.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=lr.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE;S.SEMANTIC_ATTRIBUTE_SENTRY_OP=lr.SEMANTIC_ATTRIBUTE_SENTRY_OP;S.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=lr.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;S.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=lr.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;S.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=lr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;S.SEMANTIC_ATTRIBUTE_URL_FULL=lr.SEMANTIC_ATTRIBUTE_URL_FULL;S.createEventEnvelope=MC.createEventEnvelope;S.createSessionEnvelope=MC.createSessionEnvelope;S.createSpanEnvelope=MC.createSpanEnvelope;S.addEventProcessor=qe.addEventProcessor;S.captureCheckIn=qe.captureCheckIn;S.captureEvent=qe.captureEvent;S.captureException=qe.captureException;S.captureMessage=qe.captureMessage;S.captureSession=qe.captureSession;S.close=qe.close;S.endSession=qe.endSession;S.flush=qe.flush;S.isEnabled=qe.isEnabled;S.isInitialized=qe.isInitialized;S.lastEventId=qe.lastEventId;S.setContext=qe.setContext;S.setExtra=qe.setExtra;S.setExtras=qe.setExtras;S.setTag=qe.setTag;S.setTags=qe.setTags;S.setUser=qe.setUser;S.startSession=qe.startSession;S.withMonitor=qe.withMonitor;S.getClient=bu.getClient;S.getCurrentScope=bu.getCurrentScope;S.getGlobalScope=bu.getGlobalScope;S.getIsolationScope=bu.getIsolationScope;S.withIsolationScope=bu.withIsolationScope;S.withScope=bu.withScope;S.getDefaultCurrentScope=z4.getDefaultCurrentScope;S.getDefaultIsolationScope=z4.getDefaultIsolationScope;S.setAsyncContextStrategy=Eqe.setAsyncContextStrategy;S.getMainCarrier=mqe.getMainCarrier;S.closeSession=LC.closeSession;S.makeSession=LC.makeSession;S.updateSession=LC.updateSession;S.SessionFlusher=Tqe.SessionFlusher;S.Scope=Sqe.Scope;S.notifyEventProcessors=Aqe.notifyEventProcessors;S.getEnvelopeEndpointWithUrlEncodedAuth=J4.getEnvelopeEndpointWithUrlEncodedAuth;S.getReportDialogEndpoint=J4.getReportDialogEndpoint;S.BaseClient=Oqe.BaseClient;S.ServerRuntimeClient=Rqe.ServerRuntimeClient;S.initAndBind=$4.initAndBind;S.setCurrentClient=$4.setCurrentClient;S.createTransport=Iqe.createTransport;S.makeOfflineTransport=Pqe.makeOfflineTransport;S.makeMultiplexedTransport=bqe.makeMultiplexedTransport;S.addIntegration=DC.addIntegration;S.defineIntegration=DC.defineIntegration;S.getIntegrationsToSetup=DC.getIntegrationsToSetup;S.applyScopeDataToEvent=Q4.applyScopeDataToEvent;S.mergeScopeData=Q4.mergeScopeData;S.prepareEvent=vqe.prepareEvent;S.createCheckInEnvelope=yqe.createCheckInEnvelope;S.hasTracingEnabled=Nqe.hasTracingEnabled;S.isSentryRequestUrl=Cqe.isSentryRequestUrl;S.handleCallbackErrors=Mqe.handleCallbackErrors;S.parameterize=Lqe.parameterize;S.addChildSpanToSpan=bn.addChildSpanToSpan;S.getActiveSpan=bn.getActiveSpan;S.getRootSpan=bn.getRootSpan;S.getSpanDescendants=bn.getSpanDescendants;S.getStatusMessage=bn.getStatusMessage;S.spanIsSampled=bn.spanIsSampled;S.spanTimeInputToSeconds=bn.spanTimeInputToSeconds;S.spanToJSON=bn.spanToJSON;S.spanToTraceContext=bn.spanToTraceContext;S.spanToTraceHeader=bn.spanToTraceHeader;S.parseSampleRate=Dqe.parseSampleRate;S.applySdkMetadata=Gqe.applySdkMetadata;S.getTraceData=xqe.getTraceData;S.getTraceMetaTags=Uqe.getTraceMetaTags;S.DEFAULT_ENVIRONMENT=wqe.DEFAULT_ENVIRONMENT;S.addBreadcrumb=qqe.addBreadcrumb;S.functionToStringIntegration=jqe.functionToStringIntegration;S.inboundFiltersIntegration=Vqe.inboundFiltersIntegration;S.linkedErrorsIntegration=Bqe.linkedErrorsIntegration;S.moduleMetadataIntegration=Hqe.moduleMetadataIntegration;S.requestDataIntegration=Fqe.requestDataIntegration;S.captureConsoleIntegration=kqe.captureConsoleIntegration;S.debugIntegration=Wqe.debugIntegration;S.dedupeIntegration=Yqe.dedupeIntegration;S.extraErrorDataIntegration=Kqe.extraErrorDataIntegration;S.rewriteFramesIntegration=Xqe.rewriteFramesIntegration;S.sessionTimingIntegration=Zqe.sessionTimingIntegration;S.zodErrorsIntegration=zqe.zodErrorsIntegration;S.thirdPartyErrorFilterIntegration=Jqe.thirdPartyErrorFilterIntegration;S.metrics=$qe.metrics;S.profiler=Qqe.profiler;S.metricsDefault=eje.metricsDefault;S.BrowserMetricsAggregator=tje.BrowserMetricsAggregator;S.getMetricSummaryJsonForSpan=rje.getMetricSummaryJsonForSpan;S.addTracingHeadersToFetchRequest=eJ.addTracingHeadersToFetchRequest;S.instrumentFetchRequest=eJ.instrumentFetchRequest;S.trpcMiddleware=nje.trpcMiddleware;S.captureFeedback=oje.captureFeedback;S.getCurrentHub=tJ.getCurrentHub;S.getCurrentHubShim=tJ.getCurrentHubShim;S.SDK_VERSION=ije.SDK_VERSION});var mp=c(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.isTracingSuppressed=pi.unsuppressTracing=pi.suppressTracing=void 0;var sje=(P(),m(I)),GC=(0,sje.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function aje(t){return t.setValue(GC,!0)}pi.suppressTracing=aje;function uje(t){return t.deleteValue(GC)}pi.unsuppressTracing=uje;function cje(t){return t.getValue(GC)===!0}pi.isTracingSuppressed=cje});var xC=c(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.BAGGAGE_MAX_TOTAL_LENGTH=yt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=yt.BAGGAGE_MAX_NAME_VALUE_PAIRS=yt.BAGGAGE_HEADER=yt.BAGGAGE_ITEMS_SEPARATOR=yt.BAGGAGE_PROPERTIES_SEPARATOR=yt.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;yt.BAGGAGE_KEY_PAIR_SEPARATOR="=";yt.BAGGAGE_PROPERTIES_SEPARATOR=";";yt.BAGGAGE_ITEMS_SEPARATOR=",";yt.BAGGAGE_HEADER="baggage";yt.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;yt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;yt.BAGGAGE_MAX_TOTAL_LENGTH=8192});var UC=c(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.parseKeyPairsIntoRecord=vn.parsePairKeyValue=vn.getKeyPairs=vn.serializeKeyPairs=void 0;var lje=(P(),m(I)),Qs=xC();function dje(t){return t.reduce((e,r)=>{let n=`${e}${e!==""?Qs.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>Qs.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}vn.serializeKeyPairs=dje;function pje(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=Qs.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}vn.getKeyPairs=pje;function rJ(t){let e=t.split(Qs.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let n=r.indexOf(Qs.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return e.length>0&&(s=(0,lje.baggageEntryMetadataFromString)(e.join(Qs.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}vn.parsePairKeyValue=rJ;function _je(t){return typeof t!="string"||t.length===0?{}:t.split(Qs.BAGGAGE_ITEMS_SEPARATOR).map(e=>rJ(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,r)=>(e[r.key]=r.value,e),{})}vn.parseKeyPairsIntoRecord=_je});var nJ=c(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.W3CBaggagePropagator=void 0;var wC=(P(),m(I)),fje=mp(),ea=xC(),qC=UC(),jC=class{inject(e,r,n){let o=wC.propagation.getBaggage(e);if(!o||(0,fje.isTracingSuppressed)(e))return;let i=(0,qC.getKeyPairs)(o).filter(a=>a.length<=ea.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,ea.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,qC.serializeKeyPairs)(i);s.length>0&&n.set(r,ea.BAGGAGE_HEADER,s)}extract(e,r,n){let o=n.get(r,ea.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(ea.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return e;let s={};return i.length===0||(i.split(ea.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,qC.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),s[l.key]=d}}),Object.entries(s).length===0)?e:wC.propagation.setBaggage(e,wC.propagation.createBaggage(s))}fields(){return[ea.BAGGAGE_HEADER]}};mE.W3CBaggagePropagator=jC});var oJ=c(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.AnchoredClock=void 0;var VC=class{constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};TE.AnchoredClock=VC});var cJ=c(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.isAttributeValue=_i.isAttributeKey=_i.sanitizeAttributes=void 0;var iJ=(P(),m(I));function gje(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,n]of Object.entries(t)){if(!sJ(r)){iJ.diag.warn(`Invalid attribute key: ${r}`);continue}if(!aJ(n)){iJ.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}_i.sanitizeAttributes=gje;function sJ(t){return typeof t=="string"&&t.length>0}_i.isAttributeKey=sJ;function aJ(t){return t==null?!0:Array.isArray(t)?hje(t):uJ(t)}_i.isAttributeValue=aJ;function hje(t){let e;for(let r of t)if(r!=null){if(!e){if(uJ(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function uJ(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var BC=c(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.loggingErrorHandler=void 0;var Eje=(P(),m(I));function mje(){return t=>{Eje.diag.error(Tje(t))}}SE.loggingErrorHandler=mje;function Tje(t){return typeof t=="string"?t:JSON.stringify(Sje(t))}function Sje(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;let o=r[n];o&&(e[n]=String(o))}),r=Object.getPrototypeOf(r);return e}});var HC=c(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.globalErrorHandler=vu.setGlobalErrorHandler=void 0;var Aje=BC(),lJ=(0,Aje.loggingErrorHandler)();function Oje(t){lJ=t}vu.setGlobalErrorHandler=Oje;function Rje(t){try{lJ(t)}catch{}}vu.globalErrorHandler=Rje});var FC=c(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.TracesSamplerValues=void 0;var Ije;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(Ije=Tp.TracesSamplerValues||(Tp.TracesSamplerValues={}))});var kC=c(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.parseEnvironment=ve.DEFAULT_ENVIRONMENT=ve.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=ve.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=ve.DEFAULT_ATTRIBUTE_COUNT_LIMIT=ve.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var fi=(P(),m(I)),Pje=FC(),bje=",",vje=["OTEL_SDK_DISABLED"];function yje(t){return vje.indexOf(t)>-1}var Nje=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Cje(t){return Nje.indexOf(t)>-1}var Mje=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function Lje(t){return Mje.indexOf(t)>-1}ve.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;ve.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;ve.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;ve.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;ve.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:fi.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:ve.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:ve.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:ve.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:ve.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:ve.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:ve.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:ve.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:ve.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Pje.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Dje(t,e,r){if(typeof r[t]>"u")return;let n=String(r[t]);e[t]=n.toLowerCase()==="true"}function Gje(t,e,r,n=-1/0,o=1/0){if(typeof r[t]<"u"){let i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}function xje(t,e,r,n=bje){let o=r[t];typeof o=="string"&&(e[t]=o.split(n).map(i=>i.trim()))}var Uje={ALL:fi.DiagLogLevel.ALL,VERBOSE:fi.DiagLogLevel.VERBOSE,DEBUG:fi.DiagLogLevel.DEBUG,INFO:fi.DiagLogLevel.INFO,WARN:fi.DiagLogLevel.WARN,ERROR:fi.DiagLogLevel.ERROR,NONE:fi.DiagLogLevel.NONE};function wje(t,e,r){let n=r[t];if(typeof n=="string"){let o=Uje[n.toUpperCase()];o!=null&&(e[t]=o)}}function qje(t){let e={};for(let r in ve.DEFAULT_ENVIRONMENT){let n=r;switch(n){case"OTEL_LOG_LEVEL":wje(n,e,t);break;default:if(yje(n))Dje(n,e,t);else if(Cje(n))Gje(n,e,t);else if(Lje(n))xje(n,e,t);else{let o=t[n];typeof o<"u"&&o!==null&&(e[n]=String(o))}}}return e}ve.parseEnvironment=qje});var dJ=c(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.getEnvWithoutDefaults=yu.getEnv=void 0;var WC=kC();function jje(){let t=(0,WC.parseEnvironment)(process.env);return Object.assign({},WC.DEFAULT_ENVIRONMENT,t)}yu.getEnv=jje;function Vje(){return(0,WC.parseEnvironment)(process.env)}yu.getEnvWithoutDefaults=Vje});var pJ=c(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE._globalThis=void 0;AE._globalThis=typeof globalThis=="object"?globalThis:global});var YC=c(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.hexToBinary=void 0;function _J(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Bje(t){let e=new Uint8Array(t.length/2),r=0;for(let n=0;n<t.length;n+=2){let o=_J(t.charCodeAt(n)),i=_J(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}OE.hexToBinary=Bje});var fJ=c(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.hexToBase64=void 0;var Hje=YC();function Fje(t){return Buffer.from((0,Hje.hexToBinary)(t)).toString("base64")}RE.hexToBase64=Fje});var EJ=c(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.RandomIdGenerator=void 0;var kje=8,hJ=16,KC=class{constructor(){this.generateTraceId=gJ(hJ),this.generateSpanId=gJ(kje)}};PE.RandomIdGenerator=KC;var IE=Buffer.allocUnsafe(hJ);function gJ(t){return function(){for(let r=0;r<t/4;r++)IE.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(IE[r]>0);r++)r===t-1&&(IE[t-1]=1);return IE.toString("hex",0,t)}}});var mJ=c(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.otperformance=void 0;var Wje=require("perf_hooks");bE.otperformance=Wje.performance});var XC=c(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.VERSION=void 0;vE.VERSION="1.27.0"});var TJ=c(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.SDK_INFO=void 0;var Yje=XC(),Sp=($(),m(J));yE.SDK_INFO={[Sp.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Sp.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[Sp.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Sp.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[Sp.SEMRESATTRS_TELEMETRY_SDK_VERSION]:Yje.VERSION}});var SJ=c(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.unrefTimer=void 0;function Kje(t){t.unref()}NE.unrefTimer=Kje});var OJ=c(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.unrefTimer=ze.SDK_INFO=ze.otperformance=ze.RandomIdGenerator=ze.hexToBase64=ze._globalThis=ze.getEnv=ze.getEnvWithoutDefaults=void 0;var AJ=dJ();Object.defineProperty(ze,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return AJ.getEnvWithoutDefaults}});Object.defineProperty(ze,"getEnv",{enumerable:!0,get:function(){return AJ.getEnv}});var Xje=pJ();Object.defineProperty(ze,"_globalThis",{enumerable:!0,get:function(){return Xje._globalThis}});var Zje=fJ();Object.defineProperty(ze,"hexToBase64",{enumerable:!0,get:function(){return Zje.hexToBase64}});var zje=EJ();Object.defineProperty(ze,"RandomIdGenerator",{enumerable:!0,get:function(){return zje.RandomIdGenerator}});var Jje=mJ();Object.defineProperty(ze,"otperformance",{enumerable:!0,get:function(){return Jje.otperformance}});var $je=TJ();Object.defineProperty(ze,"SDK_INFO",{enumerable:!0,get:function(){return $je.SDK_INFO}});var Qje=SJ();Object.defineProperty(ze,"unrefTimer",{enumerable:!0,get:function(){return Qje.unrefTimer}})});var ZC=c(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.unrefTimer=Je.otperformance=Je.hexToBase64=Je.getEnvWithoutDefaults=Je.getEnv=Je._globalThis=Je.SDK_INFO=Je.RandomIdGenerator=void 0;var gi=OJ();Object.defineProperty(Je,"RandomIdGenerator",{enumerable:!0,get:function(){return gi.RandomIdGenerator}});Object.defineProperty(Je,"SDK_INFO",{enumerable:!0,get:function(){return gi.SDK_INFO}});Object.defineProperty(Je,"_globalThis",{enumerable:!0,get:function(){return gi._globalThis}});Object.defineProperty(Je,"getEnv",{enumerable:!0,get:function(){return gi.getEnv}});Object.defineProperty(Je,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return gi.getEnvWithoutDefaults}});Object.defineProperty(Je,"hexToBase64",{enumerable:!0,get:function(){return gi.hexToBase64}});Object.defineProperty(Je,"otperformance",{enumerable:!0,get:function(){return gi.otperformance}});Object.defineProperty(Je,"unrefTimer",{enumerable:!0,get:function(){return gi.unrefTimer}})});var bJ=c(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.addHrTimes=he.isTimeInput=he.isTimeInputHrTime=he.hrTimeToMicroseconds=he.hrTimeToMilliseconds=he.hrTimeToNanoseconds=he.hrTimeToTimeStamp=he.hrTimeDuration=he.timeInputToHrTime=he.hrTime=he.getTimeOrigin=he.millisToHrTime=void 0;var zC=ZC(),RJ=9,eVe=6,tVe=Math.pow(10,eVe),CE=Math.pow(10,RJ);function Ap(t){let e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*tVe);return[r,n]}he.millisToHrTime=Ap;function JC(){let t=zC.otperformance.timeOrigin;if(typeof t!="number"){let e=zC.otperformance;t=e.timing&&e.timing.fetchStart}return t}he.getTimeOrigin=JC;function IJ(t){let e=Ap(JC()),r=Ap(typeof t=="number"?t:zC.otperformance.now());return PJ(e,r)}he.hrTime=IJ;function rVe(t){if($C(t))return t;if(typeof t=="number")return t<JC()?IJ(t):Ap(t);if(t instanceof Date)return Ap(t.getTime());throw TypeError("Invalid input type")}he.timeInputToHrTime=rVe;function nVe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=CE),[r,n]}he.hrTimeDuration=nVe;function oVe(t){let e=RJ,r=`${"0".repeat(e)}${t[1]}Z`,n=r.substr(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",n)}he.hrTimeToTimeStamp=oVe;function iVe(t){return t[0]*CE+t[1]}he.hrTimeToNanoseconds=iVe;function sVe(t){return t[0]*1e3+t[1]/1e6}he.hrTimeToMilliseconds=sVe;function aVe(t){return t[0]*1e6+t[1]/1e3}he.hrTimeToMicroseconds=aVe;function $C(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}he.isTimeInputHrTime=$C;function uVe(t){return $C(t)||typeof t=="number"||t instanceof Date}he.isTimeInput=uVe;function PJ(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=CE&&(r[1]-=CE,r[0]+=1),r}he.addHrTimes=PJ});var vJ=c(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.ExportResultCode=void 0;var cVe;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(cVe=Op.ExportResultCode||(Op.ExportResultCode={}))});var NJ=c(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.CompositePropagator=void 0;var yJ=(P(),m(I)),QC=class{constructor(e={}){var r;this._propagators=(r=e.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,o)=>n.concat(o),[])))}inject(e,r,n){for(let o of this._propagators)try{o.inject(e,r,n)}catch(i){yJ.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(e,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){yJ.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${s.message}`)}return o},e)}fields(){return this._fields.slice()}};ME.CompositePropagator=QC});var CJ=c(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.validateValue=Nu.validateKey=void 0;var eM="[_0-9a-z-*/]",lVe=`[a-z]${eM}{0,255}`,dVe=`[a-z0-9]${eM}{0,240}@[a-z]${eM}{0,13}`,pVe=new RegExp(`^(?:${lVe}|${dVe})$`),_Ve=/^[ -~]{0,255}[!-~]$/,fVe=/,|=/;function gVe(t){return pVe.test(t)}Nu.validateKey=gVe;function hVe(t){return _Ve.test(t)&&!fVe.test(t)}Nu.validateValue=hVe});var rM=c(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.TraceState=void 0;var MJ=CJ(),LJ=32,EVe=512,DJ=",",GJ="=",tM=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,r){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+GJ+this.get(r)),e),[]).join(DJ)}_parse(e){e.length>EVe||(this._internalState=e.split(DJ).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(GJ);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);(0,MJ.validateKey)(s)&&(0,MJ.validateValue)(a)&&r.set(s,a)}return r},new Map),this._internalState.size>LJ&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,LJ))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};LE.TraceState=tM});var UJ=c(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.W3CTraceContextPropagator=Nt.parseTraceParent=Nt.TRACE_STATE_HEADER=Nt.TRACE_PARENT_HEADER=void 0;var DE=(P(),m(I)),mVe=mp(),TVe=rM();Nt.TRACE_PARENT_HEADER="traceparent";Nt.TRACE_STATE_HEADER="tracestate";var SVe="00",AVe="(?!ff)[\\da-f]{2}",OVe="(?![0]{32})[\\da-f]{32}",RVe="(?![0]{16})[\\da-f]{16}",IVe="[\\da-f]{2}",PVe=new RegExp(`^\\s?(${AVe})-(${OVe})-(${RVe})-(${IVe})(-.*)?\\s?$`);function xJ(t){let e=PVe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}Nt.parseTraceParent=xJ;var nM=class{inject(e,r,n){let o=DE.trace.getSpanContext(e);if(!o||(0,mVe.isTracingSuppressed)(e)||!(0,DE.isSpanContextValid)(o))return;let i=`${SVe}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||DE.TraceFlags.NONE).toString(16)}`;n.set(r,Nt.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,Nt.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,n){let o=n.get(r,Nt.TRACE_PARENT_HEADER);if(!o)return e;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;let s=xJ(i);if(!s)return e;s.isRemote=!0;let a=n.get(r,Nt.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;s.traceState=new TVe.TraceState(typeof u=="string"?u:void 0)}return DE.trace.setSpanContext(e,s)}fields(){return[Nt.TRACE_PARENT_HEADER,Nt.TRACE_STATE_HEADER]}};Nt.W3CTraceContextPropagator=nM});var wJ=c(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getRPCMetadata=rn.deleteRPCMetadata=rn.setRPCMetadata=rn.RPCType=void 0;var bVe=(P(),m(I)),oM=(0,bVe.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),vVe;(function(t){t.HTTP="http"})(vVe=rn.RPCType||(rn.RPCType={}));function yVe(t,e){return t.setValue(oM,e)}rn.setRPCMetadata=yVe;function NVe(t){return t.deleteValue(oM)}rn.deleteRPCMetadata=NVe;function CVe(t){return t.getValue(oM)}rn.getRPCMetadata=CVe});var sM=c(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.AlwaysOffSampler=void 0;var MVe=(P(),m(I)),iM=class{shouldSample(){return{decision:MVe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};GE.AlwaysOffSampler=iM});var uM=c(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.AlwaysOnSampler=void 0;var LVe=(P(),m(I)),aM=class{shouldSample(){return{decision:LVe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};xE.AlwaysOnSampler=aM});var jJ=c(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.ParentBasedSampler=void 0;var UE=(P(),m(I)),DVe=HC(),qJ=sM(),cM=uM(),lM=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,DVe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new cM.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new cM.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new qJ.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new cM.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new qJ.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=UE.trace.getSpanContext(e);return!a||!(0,UE.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&UE.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&UE.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};wE.ParentBasedSampler=lM});var VJ=c(qE=>{"use strict";Object.defineProperty(qE,"__esModule",{value:!0});qE.TraceIdRatioBasedSampler=void 0;var dM=(P(),m(I)),pM=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,dM.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?dM.SamplingDecision.RECORD_AND_SAMPLED:dM.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};qE.TraceIdRatioBasedSampler=pM});var WJ=c(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.isPlainObject=void 0;var GVe="[object Object]",xVe="[object Null]",UVe="[object Undefined]",wVe=Function.prototype,BJ=wVe.toString,qVe=BJ.call(Object),jVe=VVe(Object.getPrototypeOf,Object),HJ=Object.prototype,FJ=HJ.hasOwnProperty,ta=Symbol?Symbol.toStringTag:void 0,kJ=HJ.toString;function VVe(t,e){return function(r){return t(e(r))}}function BVe(t){if(!HVe(t)||FVe(t)!==GVe)return!1;let e=jVe(t);if(e===null)return!0;let r=FJ.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&BJ.call(r)===qVe}jE.isPlainObject=BVe;function HVe(t){return t!=null&&typeof t=="object"}function FVe(t){return t==null?t===void 0?UVe:xVe:ta&&ta in Object(t)?kVe(t):WVe(t)}function kVe(t){let e=FJ.call(t,ta),r=t[ta],n=!1;try{t[ta]=void 0,n=!0}catch{}let o=kJ.call(t);return n&&(e?t[ta]=r:delete t[ta]),o}function WVe(t){return kJ.call(t)}});var zJ=c(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.merge=void 0;var YJ=WJ(),YVe=20;function KVe(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=XJ(e,t.shift(),0,r);return e}HE.merge=KVe;function _M(t){return BE(t)?t.slice():t}function XJ(t,e,r=0,n){let o;if(!(r>YVe)){if(r++,VE(t)||VE(e)||ZJ(e))o=_M(e);else if(BE(t)){if(o=t.slice(),BE(e))for(let i=0,s=e.length;i<s;i++)o.push(_M(e[i]));else if(Rp(e)){let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s];o[u]=_M(e[u])}}}else if(Rp(t))if(Rp(e)){if(!XVe(t,e))return e;o=Object.assign({},t);let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s],l=e[u];if(VE(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(KJ(t,u,n)||KJ(e,u,n))delete o[u];else{if(Rp(d)&&Rp(p)){let _=n.get(d)||[],f=n.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),n.set(d,_),n.set(p,f)}o[u]=XJ(o[u],l,r,n)}}}}else o=e;return o}}function KJ(t,e,r){let n=r.get(t[e])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===e&&s.obj===t)return!0}return!1}function BE(t){return Array.isArray(t)}function ZJ(t){return typeof t=="function"}function Rp(t){return!VE(t)&&!BE(t)&&!ZJ(t)&&typeof t=="object"}function VE(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function XVe(t,e){return!(!(0,YJ.isPlainObject)(t)||!(0,YJ.isPlainObject)(e))}});var JJ=c(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.callWithTimeout=Cu.TimeoutError=void 0;var FE=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Cu.TimeoutError=FE;function ZVe(t,e){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new FE("Operation timed out."))},e)});return Promise.race([t,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}Cu.callWithTimeout=ZVe});var QJ=c(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.isUrlIgnored=Mu.urlMatches=void 0;function $J(t,e){return typeof e=="string"?t===e:!!t.match(e)}Mu.urlMatches=$J;function zVe(t,e){if(!e)return!1;for(let r of e)if($J(t,r))return!0;return!1}Mu.isUrlIgnored=zVe});var e$=c(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.isWrapped=void 0;function JVe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}kE.isWrapped=JVe});var t$=c(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});WE.Deferred=void 0;var fM=class{constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};WE.Deferred=fM});var r$=c(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.BindOnceFuture=void 0;var $Ve=t$(),gM=class{constructor(e,r){this._callback=e,this._that=r,this._isCalled=!1,this._deferred=new $Ve.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};YE.BindOnceFuture=gM});var o$=c(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE._export=void 0;var n$=(P(),m(I)),QVe=mp();function eBe(t,e){return new Promise(r=>{n$.context.with((0,QVe.suppressTracing)(n$.context.active()),()=>{t.export(e,n=>{r(n)})})})}KE._export=eBe});var ae=c(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=R.DEFAULT_ATTRIBUTE_COUNT_LIMIT=R.TraceState=R.unsuppressTracing=R.suppressTracing=R.isTracingSuppressed=R.TraceIdRatioBasedSampler=R.ParentBasedSampler=R.AlwaysOnSampler=R.AlwaysOffSampler=R.setRPCMetadata=R.getRPCMetadata=R.deleteRPCMetadata=R.RPCType=R.parseTraceParent=R.W3CTraceContextPropagator=R.TRACE_STATE_HEADER=R.TRACE_PARENT_HEADER=R.CompositePropagator=R.unrefTimer=R.otperformance=R.hexToBase64=R.getEnvWithoutDefaults=R.getEnv=R._globalThis=R.SDK_INFO=R.RandomIdGenerator=R.baggageUtils=R.ExportResultCode=R.hexToBinary=R.timeInputToHrTime=R.millisToHrTime=R.isTimeInputHrTime=R.isTimeInput=R.hrTimeToTimeStamp=R.hrTimeToNanoseconds=R.hrTimeToMilliseconds=R.hrTimeToMicroseconds=R.hrTimeDuration=R.hrTime=R.getTimeOrigin=R.addHrTimes=R.loggingErrorHandler=R.setGlobalErrorHandler=R.globalErrorHandler=R.sanitizeAttributes=R.isAttributeValue=R.isAttributeKey=R.AnchoredClock=R.W3CBaggagePropagator=void 0;R.internal=R.VERSION=R.BindOnceFuture=R.isWrapped=R.urlMatches=R.isUrlIgnored=R.callWithTimeout=R.TimeoutError=R.TracesSamplerValues=R.merge=R.parseEnvironment=R.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=R.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=R.DEFAULT_ENVIRONMENT=void 0;var tBe=nJ();Object.defineProperty(R,"W3CBaggagePropagator",{enumerable:!0,get:function(){return tBe.W3CBaggagePropagator}});var rBe=oJ();Object.defineProperty(R,"AnchoredClock",{enumerable:!0,get:function(){return rBe.AnchoredClock}});var hM=cJ();Object.defineProperty(R,"isAttributeKey",{enumerable:!0,get:function(){return hM.isAttributeKey}});Object.defineProperty(R,"isAttributeValue",{enumerable:!0,get:function(){return hM.isAttributeValue}});Object.defineProperty(R,"sanitizeAttributes",{enumerable:!0,get:function(){return hM.sanitizeAttributes}});var i$=HC();Object.defineProperty(R,"globalErrorHandler",{enumerable:!0,get:function(){return i$.globalErrorHandler}});Object.defineProperty(R,"setGlobalErrorHandler",{enumerable:!0,get:function(){return i$.setGlobalErrorHandler}});var nBe=BC();Object.defineProperty(R,"loggingErrorHandler",{enumerable:!0,get:function(){return nBe.loggingErrorHandler}});var Lr=bJ();Object.defineProperty(R,"addHrTimes",{enumerable:!0,get:function(){return Lr.addHrTimes}});Object.defineProperty(R,"getTimeOrigin",{enumerable:!0,get:function(){return Lr.getTimeOrigin}});Object.defineProperty(R,"hrTime",{enumerable:!0,get:function(){return Lr.hrTime}});Object.defineProperty(R,"hrTimeDuration",{enumerable:!0,get:function(){return Lr.hrTimeDuration}});Object.defineProperty(R,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Lr.hrTimeToMicroseconds}});Object.defineProperty(R,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Lr.hrTimeToMilliseconds}});Object.defineProperty(R,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Lr.hrTimeToNanoseconds}});Object.defineProperty(R,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Lr.hrTimeToTimeStamp}});Object.defineProperty(R,"isTimeInput",{enumerable:!0,get:function(){return Lr.isTimeInput}});Object.defineProperty(R,"isTimeInputHrTime",{enumerable:!0,get:function(){return Lr.isTimeInputHrTime}});Object.defineProperty(R,"millisToHrTime",{enumerable:!0,get:function(){return Lr.millisToHrTime}});Object.defineProperty(R,"timeInputToHrTime",{enumerable:!0,get:function(){return Lr.timeInputToHrTime}});var oBe=YC();Object.defineProperty(R,"hexToBinary",{enumerable:!0,get:function(){return oBe.hexToBinary}});var iBe=vJ();Object.defineProperty(R,"ExportResultCode",{enumerable:!0,get:function(){return iBe.ExportResultCode}});var XE=UC();R.baggageUtils={getKeyPairs:XE.getKeyPairs,serializeKeyPairs:XE.serializeKeyPairs,parseKeyPairsIntoRecord:XE.parseKeyPairsIntoRecord,parsePairKeyValue:XE.parsePairKeyValue};var hi=ZC();Object.defineProperty(R,"RandomIdGenerator",{enumerable:!0,get:function(){return hi.RandomIdGenerator}});Object.defineProperty(R,"SDK_INFO",{enumerable:!0,get:function(){return hi.SDK_INFO}});Object.defineProperty(R,"_globalThis",{enumerable:!0,get:function(){return hi._globalThis}});Object.defineProperty(R,"getEnv",{enumerable:!0,get:function(){return hi.getEnv}});Object.defineProperty(R,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return hi.getEnvWithoutDefaults}});Object.defineProperty(R,"hexToBase64",{enumerable:!0,get:function(){return hi.hexToBase64}});Object.defineProperty(R,"otperformance",{enumerable:!0,get:function(){return hi.otperformance}});Object.defineProperty(R,"unrefTimer",{enumerable:!0,get:function(){return hi.unrefTimer}});var sBe=NJ();Object.defineProperty(R,"CompositePropagator",{enumerable:!0,get:function(){return sBe.CompositePropagator}});var ZE=UJ();Object.defineProperty(R,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return ZE.TRACE_PARENT_HEADER}});Object.defineProperty(R,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return ZE.TRACE_STATE_HEADER}});Object.defineProperty(R,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return ZE.W3CTraceContextPropagator}});Object.defineProperty(R,"parseTraceParent",{enumerable:!0,get:function(){return ZE.parseTraceParent}});var zE=wJ();Object.defineProperty(R,"RPCType",{enumerable:!0,get:function(){return zE.RPCType}});Object.defineProperty(R,"deleteRPCMetadata",{enumerable:!0,get:function(){return zE.deleteRPCMetadata}});Object.defineProperty(R,"getRPCMetadata",{enumerable:!0,get:function(){return zE.getRPCMetadata}});Object.defineProperty(R,"setRPCMetadata",{enumerable:!0,get:function(){return zE.setRPCMetadata}});var aBe=sM();Object.defineProperty(R,"AlwaysOffSampler",{enumerable:!0,get:function(){return aBe.AlwaysOffSampler}});var uBe=uM();Object.defineProperty(R,"AlwaysOnSampler",{enumerable:!0,get:function(){return uBe.AlwaysOnSampler}});var cBe=jJ();Object.defineProperty(R,"ParentBasedSampler",{enumerable:!0,get:function(){return cBe.ParentBasedSampler}});var lBe=VJ();Object.defineProperty(R,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return lBe.TraceIdRatioBasedSampler}});var EM=mp();Object.defineProperty(R,"isTracingSuppressed",{enumerable:!0,get:function(){return EM.isTracingSuppressed}});Object.defineProperty(R,"suppressTracing",{enumerable:!0,get:function(){return EM.suppressTracing}});Object.defineProperty(R,"unsuppressTracing",{enumerable:!0,get:function(){return EM.unsuppressTracing}});var dBe=rM();Object.defineProperty(R,"TraceState",{enumerable:!0,get:function(){return dBe.TraceState}});var Lu=kC();Object.defineProperty(R,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return Lu.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(R,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return Lu.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(R,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return Lu.DEFAULT_ENVIRONMENT}});Object.defineProperty(R,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return Lu.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(R,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return Lu.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(R,"parseEnvironment",{enumerable:!0,get:function(){return Lu.parseEnvironment}});var pBe=zJ();Object.defineProperty(R,"merge",{enumerable:!0,get:function(){return pBe.merge}});var _Be=FC();Object.defineProperty(R,"TracesSamplerValues",{enumerable:!0,get:function(){return _Be.TracesSamplerValues}});var s$=JJ();Object.defineProperty(R,"TimeoutError",{enumerable:!0,get:function(){return s$.TimeoutError}});Object.defineProperty(R,"callWithTimeout",{enumerable:!0,get:function(){return s$.callWithTimeout}});var a$=QJ();Object.defineProperty(R,"isUrlIgnored",{enumerable:!0,get:function(){return a$.isUrlIgnored}});Object.defineProperty(R,"urlMatches",{enumerable:!0,get:function(){return a$.urlMatches}});var fBe=e$();Object.defineProperty(R,"isWrapped",{enumerable:!0,get:function(){return fBe.isWrapped}});var gBe=r$();Object.defineProperty(R,"BindOnceFuture",{enumerable:!0,get:function(){return gBe.BindOnceFuture}});var hBe=XC();Object.defineProperty(R,"VERSION",{enumerable:!0,get:function(){return hBe.VERSION}});var EBe=o$();R.internal={_export:EBe._export}});var u$=c(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.ExceptionEventName=void 0;JE.ExceptionEventName="exception"});var TM=c($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.Span=void 0;var Dr=(P(),m(I)),Ct=ae(),ra=($(),m(J)),mBe=u$(),mM=class{constructor(e,r,n,o,i,s,a=[],u,l,d){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Dr.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=s,this.kind=i,this.links=a;let p=Date.now();this._performanceStartTime=Ct.otperformance.now(),this._performanceOffset=p-(this._performanceStartTime+(0,Ct.getTimeOrigin)()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,d!=null&&this.setAttributes(d),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}spanContext(){return this._spanContext}setAttribute(e,r){return r==null||this._isSpanEnded()?this:e.length===0?(Dr.diag.warn(`Invalid attribute key: ${e}`),this):(0,Ct.isAttributeValue)(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this):(Dr.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return Dr.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&Dr.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Ct.isTimeInput)(r)&&((0,Ct.isTimeInput)(n)||(n=r),r=void 0);let o=(0,Ct.sanitizeAttributes)(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status=Object.assign({},e),this.status.message!=null&&typeof e.message!="string"&&(Dr.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){Dr.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(e),this._duration=(0,Ct.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(Dr.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&&Dr.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<Ct.otperformance.now())return(0,Ct.hrTime)(e+this._performanceOffset);if(typeof e=="number")return(0,Ct.millisToHrTime)(e);if(e instanceof Date)return(0,Ct.millisToHrTime)(e.getTime());if((0,Ct.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,Ct.millisToHrTime)(Date.now());let r=Ct.otperformance.now()-this._performanceStartTime;return(0,Ct.addHrTimes)(this.startTime,(0,Ct.millisToHrTime)(r))}isRecording(){return this._ended===!1}recordException(e,r){let n={};typeof e=="string"?n[ra.SEMATTRS_EXCEPTION_MESSAGE]=e:e&&(e.code?n[ra.SEMATTRS_EXCEPTION_TYPE]=e.code.toString():e.name&&(n[ra.SEMATTRS_EXCEPTION_TYPE]=e.name),e.message&&(n[ra.SEMATTRS_EXCEPTION_MESSAGE]=e.message),e.stack&&(n[ra.SEMATTRS_EXCEPTION_STACKTRACE]=e.stack)),n[ra.SEMATTRS_EXCEPTION_TYPE]||n[ra.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(mBe.ExceptionEventName,n,r):Dr.diag.warn(`Failed to record an exception ${e}`)}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(){return this._ended&&Dr.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substr(0,r)}_truncateToSize(e){let r=this._attributeValueLengthLimit;return r<=0?(Dr.diag.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}};$E.Span=mM});var Pp=c(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.SamplingDecision=void 0;var TBe;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(TBe=Ip.SamplingDecision||(Ip.SamplingDecision={}))});var em=c(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.AlwaysOffSampler=void 0;var SBe=Pp(),SM=class{shouldSample(){return{decision:SBe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};QE.AlwaysOffSampler=SM});var rm=c(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.AlwaysOnSampler=void 0;var ABe=Pp(),AM=class{shouldSample(){return{decision:ABe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};tm.AlwaysOnSampler=AM});var IM=c(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.ParentBasedSampler=void 0;var nm=(P(),m(I)),OBe=ae(),c$=em(),OM=rm(),RM=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,OBe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new OM.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new OM.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new c$.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new OM.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new c$.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=nm.trace.getSpanContext(e);return!a||!(0,nm.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&nm.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&nm.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};om.ParentBasedSampler=RM});var bM=c(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.TraceIdRatioBasedSampler=void 0;var RBe=(P(),m(I)),l$=Pp(),PM=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,RBe.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?l$.SamplingDecision.RECORD_AND_SAMPLED:l$.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};im.TraceIdRatioBasedSampler=PM});var NM=c(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.buildSamplerFromEnv=Gu.loadDefaultConfig=void 0;var sm=(P(),m(I)),yn=ae(),d$=em(),vM=rm(),yM=IM(),p$=bM(),IBe=(0,yn.getEnv)(),PBe=yn.TracesSamplerValues.AlwaysOn,Du=1;function bBe(){let t=(0,yn.getEnv)();return{sampler:f$(IBe),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}Gu.loadDefaultConfig=bBe;function f$(t=(0,yn.getEnv)()){switch(t.OTEL_TRACES_SAMPLER){case yn.TracesSamplerValues.AlwaysOn:return new vM.AlwaysOnSampler;case yn.TracesSamplerValues.AlwaysOff:return new d$.AlwaysOffSampler;case yn.TracesSamplerValues.ParentBasedAlwaysOn:return new yM.ParentBasedSampler({root:new vM.AlwaysOnSampler});case yn.TracesSamplerValues.ParentBasedAlwaysOff:return new yM.ParentBasedSampler({root:new d$.AlwaysOffSampler});case yn.TracesSamplerValues.TraceIdRatio:return new p$.TraceIdRatioBasedSampler(_$(t));case yn.TracesSamplerValues.ParentBasedTraceIdRatio:return new yM.ParentBasedSampler({root:new p$.TraceIdRatioBasedSampler(_$(t))});default:return sm.diag.error(`OTEL_TRACES_SAMPLER value "${t.OTEL_TRACES_SAMPLER} invalid, defaulting to ${PBe}".`),new vM.AlwaysOnSampler}}Gu.buildSamplerFromEnv=f$;function _$(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return sm.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Du}.`),Du;let e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(sm.diag.error(`OTEL_TRACES_SAMPLER_ARG=${t.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Du}.`),Du):e<0||e>1?(sm.diag.error(`OTEL_TRACES_SAMPLER_ARG=${t.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Du}.`),Du):e}});var MM=c(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.reconfigureLimits=xu.mergeConfig=void 0;var g$=NM(),CM=ae();function vBe(t){let e={sampler:(0,g$.buildSamplerFromEnv)()},r=(0,g$.loadDefaultConfig)(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}xu.mergeConfig=vBe;function yBe(t){var e,r,n,o,i,s,a,u,l,d,p,_;let f=Object.assign({},t.spanLimits),g=(0,CM.getEnvWithoutDefaults)();return f.attributeCountLimit=(s=(i=(o=(r=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&r!==void 0?r:(n=t.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&o!==void 0?o:g.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:g.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:CM.DEFAULT_ATTRIBUTE_COUNT_LIMIT,f.attributeValueLengthLimit=(_=(p=(d=(u=(a=t.spanLimits)===null||a===void 0?void 0:a.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&d!==void 0?d:g.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:g.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:CM.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},t,{spanLimits:f})}xu.reconfigureLimits=yBe});var h$=c(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.BatchSpanProcessorBase=void 0;var Uu=(P(),m(I)),na=ae(),LM=class{constructor(e,r){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,na.getEnv)();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new na.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Uu.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(e,r){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&Uu.TraceFlags.SAMPLED&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Uu.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Uu.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,s=o;i<s;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{let n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);Uu.context.with((0,na.suppressTracing)(Uu.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(o,a=>{var u;clearTimeout(n),a.code===na.ExportResultCode.SUCCESS?e():r((u=a.error)!==null&&u!==void 0?u:new Error("BatchSpanProcessor: span export failed"))}),s=null;for(let a=0,u=o.length;a<u;a++){let l=o[a];l.resource.asyncAttributesPending&&l.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(l.resource.waitForAsyncAttributes()))}s===null?i():Promise.all(s).then(i,a=>{(0,na.globalErrorHandler)(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,(0,na.globalErrorHandler)(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,na.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};am.BatchSpanProcessorBase=LM});var E$=c(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.BatchSpanProcessor=void 0;var NBe=h$(),DM=class extends NBe.BatchSpanProcessorBase{onShutdown(){}};um.BatchSpanProcessor=DM});var S$=c(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.RandomIdGenerator=void 0;var CBe=8,T$=16,GM=class{constructor(){this.generateTraceId=m$(T$),this.generateSpanId=m$(CBe)}};lm.RandomIdGenerator=GM;var cm=Buffer.allocUnsafe(T$);function m$(t){return function(){for(let r=0;r<t/4;r++)cm.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(cm[r]>0);r++)r===t-1&&(cm[t-1]=1);return cm.toString("hex",0,t)}}});var A$=c(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.RandomIdGenerator=wu.BatchSpanProcessor=void 0;var MBe=E$();Object.defineProperty(wu,"BatchSpanProcessor",{enumerable:!0,get:function(){return MBe.BatchSpanProcessor}});var LBe=S$();Object.defineProperty(wu,"RandomIdGenerator",{enumerable:!0,get:function(){return LBe.RandomIdGenerator}})});var dm=c(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.RandomIdGenerator=qu.BatchSpanProcessor=void 0;var O$=A$();Object.defineProperty(qu,"BatchSpanProcessor",{enumerable:!0,get:function(){return O$.BatchSpanProcessor}});Object.defineProperty(qu,"RandomIdGenerator",{enumerable:!0,get:function(){return O$.RandomIdGenerator}})});var R$=c(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.Tracer=void 0;var gt=(P(),m(I)),pm=ae(),DBe=TM(),GBe=MM(),xBe=dm(),xM=class{constructor(e,r,n){this._tracerProvider=n;let o=(0,GBe.mergeConfig)(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new xBe.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,r={},n=gt.context.active()){var o,i,s;r.root&&(n=gt.trace.deleteSpan(n));let a=gt.trace.getSpan(n);if((0,pm.isTracingSuppressed)(n))return gt.diag.debug("Instrumentation suppressed, returning Noop Span"),gt.trace.wrapSpanContext(gt.INVALID_SPAN_CONTEXT);let u=a?.spanContext(),l=this._idGenerator.generateSpanId(),d,p,_;!u||!gt.trace.isSpanContextValid(u)?d=this._idGenerator.generateTraceId():(d=u.traceId,p=u.traceState,_=u.spanId);let f=(o=r.kind)!==null&&o!==void 0?o:gt.SpanKind.INTERNAL,g=((i=r.links)!==null&&i!==void 0?i:[]).map(y=>({context:y.context,attributes:(0,pm.sanitizeAttributes)(y.attributes)})),h=(0,pm.sanitizeAttributes)(r.attributes),T=this._sampler.shouldSample(n,d,e,f,h,g);p=(s=T.traceState)!==null&&s!==void 0?s:p;let v=T.decision===gt.SamplingDecision.RECORD_AND_SAMPLED?gt.TraceFlags.SAMPLED:gt.TraceFlags.NONE,N={traceId:d,spanId:l,traceFlags:v,traceState:p};if(T.decision===gt.SamplingDecision.NOT_RECORD)return gt.diag.debug("Recording is off, propagating context in a non-recording span"),gt.trace.wrapSpanContext(N);let D=(0,pm.sanitizeAttributes)(Object.assign(h,T.attributes));return new DBe.Span(this,n,e,N,f,_,g,r.startTime,void 0,D)}startActiveSpan(e,r,n,o){let i,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);let u=s??gt.context.active(),l=this.startSpan(e,i,u),d=gt.trace.setSpan(u,l);return gt.context.with(d,a,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};_m.Tracer=xM});var I$=c(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.defaultServiceName=void 0;function UBe(){return`unknown_service:${process.argv0}`}fm.defaultServiceName=UBe});var P$=c(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.defaultServiceName=void 0;var wBe=I$();Object.defineProperty(gm,"defaultServiceName",{enumerable:!0,get:function(){return wBe.defaultServiceName}})});var UM=c(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.defaultServiceName=void 0;var qBe=P$();Object.defineProperty(hm,"defaultServiceName",{enumerable:!0,get:function(){return qBe.defaultServiceName}})});var To=c(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.Resource=void 0;var b$=(P(),m(I)),oa=($(),m(J)),wM=ae(),jBe=UM(),bp=class t{constructor(e,r){var n;this._attributes=e,this.asyncAttributesPending=r!=null,this._syncAttributes=(n=this._attributes)!==null&&n!==void 0?n:{},this._asyncAttributesPromise=r?.then(o=>(this._attributes=Object.assign({},this._attributes,o),this.asyncAttributesPending=!1,o),o=>(b$.diag.debug("a resource's async attributes promise rejected: %s",o),this.asyncAttributesPending=!1,{}))}static empty(){return t.EMPTY}static default(){return new t({[oa.SEMRESATTRS_SERVICE_NAME]:(0,jBe.defaultServiceName)(),[oa.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:wM.SDK_INFO[oa.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[oa.SEMRESATTRS_TELEMETRY_SDK_NAME]:wM.SDK_INFO[oa.SEMRESATTRS_TELEMETRY_SDK_NAME],[oa.SEMRESATTRS_TELEMETRY_SDK_VERSION]:wM.SDK_INFO[oa.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var e;return this.asyncAttributesPending&&b$.diag.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(e){var r;if(!e)return this;let n=Object.assign(Object.assign({},this._syncAttributes),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(n);let o=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(([i,s])=>{var a;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),i),(a=e._syncAttributes)!==null&&a!==void 0?a:e.attributes),s)});return new t(n,o)}};Em.Resource=bp;bp.EMPTY=new bp({})});var qM=c(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.normalizeType=ju.normalizeArch=void 0;var VBe=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};ju.normalizeArch=VBe;var BBe=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};ju.normalizeType=BBe});var Tm=c(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.execAsync=void 0;var HBe=require("child_process"),FBe=require("util");mm.execAsync=FBe.promisify(HBe.exec)});var v$=c(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.getMachineId=void 0;var kBe=Tm(),WBe=(P(),m(I));async function YBe(){try{let e=(await(0,kBe.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
26
+ `).find(n=>n.includes("IOPlatformUUID"));if(!e)return"";let r=e.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(t){WBe.diag.debug(`error reading machine id: ${t}`)}return""}Sm.getMachineId=YBe});var y$=c(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getMachineId=void 0;var KBe=require("fs"),XBe=(P(),m(I));async function ZBe(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await KBe.promises.readFile(e,{encoding:"utf8"})).trim()}catch(r){XBe.diag.debug(`error reading machine id: ${r}`)}return""}Am.getMachineId=ZBe});var C$=c(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.getMachineId=void 0;var zBe=require("fs"),JBe=Tm(),N$=(P(),m(I));async function $Be(){try{return(await zBe.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){N$.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,JBe.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){N$.diag.debug(`error reading machine id: ${t}`)}return""}Om.getMachineId=$Be});var L$=c(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.getMachineId=void 0;var M$=require("process"),QBe=Tm(),eHe=(P(),m(I));async function tHe(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";M$.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in M$.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let n=(await(0,QBe.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(n.length===2)return n[1].trim()}catch(r){eHe.diag.debug(`error reading machine id: ${r}`)}return""}Rm.getMachineId=tHe});var D$=c(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.getMachineId=void 0;var rHe=(P(),m(I));async function nHe(){return rHe.diag.debug("could not read machine-id: unsupported platform"),""}Im.getMachineId=nHe});var G$=c(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.getMachineId=void 0;var oHe=require("process"),Vu;So.getMachineId=Vu;switch(oHe.platform){case"darwin":So.getMachineId=Vu=v$().getMachineId;break;case"linux":So.getMachineId=Vu=y$().getMachineId;break;case"freebsd":So.getMachineId=Vu=C$().getMachineId;break;case"win32":So.getMachineId=Vu=L$().getMachineId;break;default:So.getMachineId=Vu=D$().getMachineId}});var BM=c(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.hostDetectorSync=void 0;var jM=($(),m(J)),iHe=To(),x$=require("os"),sHe=qM(),aHe=G$(),VM=class{detect(e){let r={[jM.SEMRESATTRS_HOST_NAME]:(0,x$.hostname)(),[jM.SEMRESATTRS_HOST_ARCH]:(0,sHe.normalizeArch)((0,x$.arch)())};return new iHe.Resource(r,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,aHe.getMachineId)().then(e=>{let r={};return e&&(r[jM.SEMRESATTRS_HOST_ID]=e),r})}};Pm.hostDetectorSync=new VM});var U$=c(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.hostDetector=void 0;var uHe=BM(),HM=class{detect(e){return Promise.resolve(uHe.hostDetectorSync.detect(e))}};bm.hostDetector=new HM});var kM=c(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.osDetectorSync=void 0;var w$=($(),m(J)),cHe=To(),q$=require("os"),lHe=qM(),FM=class{detect(e){let r={[w$.SEMRESATTRS_OS_TYPE]:(0,lHe.normalizeType)((0,q$.platform)()),[w$.SEMRESATTRS_OS_VERSION]:(0,q$.release)()};return new cHe.Resource(r)}};vm.osDetectorSync=new FM});var j$=c(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.osDetector=void 0;var dHe=kM(),WM=class{detect(e){return Promise.resolve(dHe.osDetectorSync.detect(e))}};ym.osDetector=new WM});var KM=c(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.processDetectorSync=void 0;var pHe=(P(),m(I)),Ao=($(),m(J)),_He=To(),fHe=require("os"),YM=class{detect(e){let r={[Ao.SEMRESATTRS_PROCESS_PID]:process.pid,[Ao.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[Ao.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[Ao.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[Ao.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[Ao.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"nodejs",[Ao.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(r[Ao.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let n=fHe.userInfo();r[Ao.SEMRESATTRS_PROCESS_OWNER]=n.username}catch(n){pHe.diag.debug(`error obtaining process owner: ${n}`)}return new _He.Resource(r)}};Nm.processDetectorSync=new YM});var V$=c(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.processDetector=void 0;var gHe=KM(),XM=class{detect(e){return Promise.resolve(gHe.processDetectorSync.detect(e))}};Cm.processDetector=new XM});var B$=c(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.serviceInstanceIdDetectorSync=void 0;var hHe=($(),m(J)),EHe=To(),mHe=require("crypto"),ZM=class{detect(e){let r={[hHe.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,mHe.randomUUID)()};return new EHe.Resource(r)}};Mm.serviceInstanceIdDetectorSync=new ZM});var H$=c(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.serviceInstanceIdDetectorSync=Mt.processDetectorSync=Mt.processDetector=Mt.osDetectorSync=Mt.osDetector=Mt.hostDetectorSync=Mt.hostDetector=void 0;var THe=U$();Object.defineProperty(Mt,"hostDetector",{enumerable:!0,get:function(){return THe.hostDetector}});var SHe=BM();Object.defineProperty(Mt,"hostDetectorSync",{enumerable:!0,get:function(){return SHe.hostDetectorSync}});var AHe=j$();Object.defineProperty(Mt,"osDetector",{enumerable:!0,get:function(){return AHe.osDetector}});var OHe=kM();Object.defineProperty(Mt,"osDetectorSync",{enumerable:!0,get:function(){return OHe.osDetectorSync}});var RHe=V$();Object.defineProperty(Mt,"processDetector",{enumerable:!0,get:function(){return RHe.processDetector}});var IHe=KM();Object.defineProperty(Mt,"processDetectorSync",{enumerable:!0,get:function(){return IHe.processDetectorSync}});var PHe=B$();Object.defineProperty(Mt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return PHe.serviceInstanceIdDetectorSync}})});var F$=c(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.serviceInstanceIdDetectorSync=Lt.processDetectorSync=Lt.processDetector=Lt.osDetectorSync=Lt.osDetector=Lt.hostDetectorSync=Lt.hostDetector=void 0;var ia=H$();Object.defineProperty(Lt,"hostDetector",{enumerable:!0,get:function(){return ia.hostDetector}});Object.defineProperty(Lt,"hostDetectorSync",{enumerable:!0,get:function(){return ia.hostDetectorSync}});Object.defineProperty(Lt,"osDetector",{enumerable:!0,get:function(){return ia.osDetector}});Object.defineProperty(Lt,"osDetectorSync",{enumerable:!0,get:function(){return ia.osDetectorSync}});Object.defineProperty(Lt,"processDetector",{enumerable:!0,get:function(){return ia.processDetector}});Object.defineProperty(Lt,"processDetectorSync",{enumerable:!0,get:function(){return ia.processDetectorSync}});Object.defineProperty(Lt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return ia.serviceInstanceIdDetectorSync}})});var $M=c(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.browserDetectorSync=void 0;var Lm=($(),m(J)),bHe=(P(),m(I)),zM=To(),JM=class{detect(e){var r,n,o;if(!(typeof navigator<"u"&&((n=(r=global.process)===null||r===void 0?void 0:r.versions)===null||n===void 0?void 0:n.node)===void 0&&((o=global.Bun)===null||o===void 0?void 0:o.version)===void 0))return zM.Resource.empty();let s={[Lm.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[Lm.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Web Browser",[Lm.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(s,e)}_getResourceAttributes(e,r){return e[Lm.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===""?(bHe.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),zM.Resource.empty()):new zM.Resource(Object.assign({},e))}};Dm.browserDetectorSync=new JM});var k$=c(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.browserDetector=void 0;var vHe=$M(),QM=class{detect(e){return Promise.resolve(vHe.browserDetectorSync.detect(e))}};Gm.browserDetector=new QM});var tL=c(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.envDetectorSync=void 0;var yHe=(P(),m(I)),NHe=ae(),CHe=($(),m(J)),MHe=To(),eL=class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}detect(e){let r={},n=(0,NHe.getEnv)(),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{let s=this._parseResourceAttributes(o);Object.assign(r,s)}catch(s){yHe.diag.debug(`EnvDetector failed: ${s.message}`)}return i&&(r[CHe.SEMRESATTRS_SERVICE_NAME]=i),new MHe.Resource(r)}_parseResourceAttributes(e){if(!e)return{};let r={},n=e.split(this._COMMA_SEPARATOR,-1);for(let o of n){let i=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(i.length!==2)continue;let[s,a]=i;if(s=s.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);r[s]=decodeURIComponent(a)}return r}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};xm.envDetectorSync=new eL});var W$=c(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.envDetector=void 0;var LHe=tL(),rL=class{detect(e){return Promise.resolve(LHe.envDetectorSync.detect(e))}};Um.envDetector=new rL});var Y$=c(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.envDetectorSync=Ie.browserDetectorSync=Ie.envDetector=Ie.browserDetector=Ie.serviceInstanceIdDetectorSync=Ie.processDetectorSync=Ie.processDetector=Ie.osDetectorSync=Ie.osDetector=Ie.hostDetectorSync=Ie.hostDetector=void 0;var sa=F$();Object.defineProperty(Ie,"hostDetector",{enumerable:!0,get:function(){return sa.hostDetector}});Object.defineProperty(Ie,"hostDetectorSync",{enumerable:!0,get:function(){return sa.hostDetectorSync}});Object.defineProperty(Ie,"osDetector",{enumerable:!0,get:function(){return sa.osDetector}});Object.defineProperty(Ie,"osDetectorSync",{enumerable:!0,get:function(){return sa.osDetectorSync}});Object.defineProperty(Ie,"processDetector",{enumerable:!0,get:function(){return sa.processDetector}});Object.defineProperty(Ie,"processDetectorSync",{enumerable:!0,get:function(){return sa.processDetectorSync}});Object.defineProperty(Ie,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return sa.serviceInstanceIdDetectorSync}});var DHe=k$();Object.defineProperty(Ie,"browserDetector",{enumerable:!0,get:function(){return DHe.browserDetector}});var GHe=W$();Object.defineProperty(Ie,"envDetector",{enumerable:!0,get:function(){return GHe.envDetector}});var xHe=$M();Object.defineProperty(Ie,"browserDetectorSync",{enumerable:!0,get:function(){return xHe.browserDetectorSync}});var UHe=tL();Object.defineProperty(Ie,"envDetectorSync",{enumerable:!0,get:function(){return UHe.envDetectorSync}})});var K$=c(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.isPromiseLike=void 0;var wHe=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";wm.isPromiseLike=wHe});var Z$=c(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.detectResourcesSync=Hu.detectResources=void 0;var vp=To(),Bu=(P(),m(I)),qHe=K$(),jHe=async(t={})=>{let e=await Promise.all((t.detectors||[]).map(async r=>{try{let n=await r.detect(t);return Bu.diag.debug(`${r.constructor.name} found resource.`,n),n}catch(n){return Bu.diag.debug(`${r.constructor.name} failed: ${n.message}`),vp.Resource.empty()}}));return X$(e),e.reduce((r,n)=>r.merge(n),vp.Resource.empty())};Hu.detectResources=jHe;var VHe=(t={})=>{var e;let r=((e=t.detectors)!==null&&e!==void 0?e:[]).map(o=>{try{let i=o.detect(t),s;if((0,qHe.isPromiseLike)(i)){let a=async()=>{var u;let l=await i;return await((u=l.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(l)),l.attributes};s=new vp.Resource({},a())}else s=i;return s.waitForAsyncAttributes?s.waitForAsyncAttributes().then(()=>Bu.diag.debug(`${o.constructor.name} found resource.`,s)):Bu.diag.debug(`${o.constructor.name} found resource.`,s),s}catch(i){return Bu.diag.error(`${o.constructor.name} failed: ${i.message}`),vp.Resource.empty()}}),n=r.reduce((o,i)=>o.merge(i),vp.Resource.empty());return n.waitForAsyncAttributes&&n.waitForAsyncAttributes().then(()=>{X$(r)}),n};Hu.detectResourcesSync=VHe;var X$=t=>{t.forEach(e=>{if(Object.keys(e.attributes).length>0){let r=JSON.stringify(e.attributes,null,4);Bu.diag.verbose(r)}})}});var nL=c(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.detectResources=te.detectResourcesSync=te.serviceInstanceIdDetectorSync=te.processDetectorSync=te.processDetector=te.osDetectorSync=te.osDetector=te.hostDetectorSync=te.hostDetector=te.envDetectorSync=te.envDetector=te.browserDetectorSync=te.browserDetector=te.defaultServiceName=te.Resource=void 0;var BHe=To();Object.defineProperty(te,"Resource",{enumerable:!0,get:function(){return BHe.Resource}});var HHe=UM();Object.defineProperty(te,"defaultServiceName",{enumerable:!0,get:function(){return HHe.defaultServiceName}});var nn=Y$();Object.defineProperty(te,"browserDetector",{enumerable:!0,get:function(){return nn.browserDetector}});Object.defineProperty(te,"browserDetectorSync",{enumerable:!0,get:function(){return nn.browserDetectorSync}});Object.defineProperty(te,"envDetector",{enumerable:!0,get:function(){return nn.envDetector}});Object.defineProperty(te,"envDetectorSync",{enumerable:!0,get:function(){return nn.envDetectorSync}});Object.defineProperty(te,"hostDetector",{enumerable:!0,get:function(){return nn.hostDetector}});Object.defineProperty(te,"hostDetectorSync",{enumerable:!0,get:function(){return nn.hostDetectorSync}});Object.defineProperty(te,"osDetector",{enumerable:!0,get:function(){return nn.osDetector}});Object.defineProperty(te,"osDetectorSync",{enumerable:!0,get:function(){return nn.osDetectorSync}});Object.defineProperty(te,"processDetector",{enumerable:!0,get:function(){return nn.processDetector}});Object.defineProperty(te,"processDetectorSync",{enumerable:!0,get:function(){return nn.processDetectorSync}});Object.defineProperty(te,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return nn.serviceInstanceIdDetectorSync}});var z$=Z$();Object.defineProperty(te,"detectResourcesSync",{enumerable:!0,get:function(){return z$.detectResourcesSync}});Object.defineProperty(te,"detectResources",{enumerable:!0,get:function(){return z$.detectResources}})});var J$=c(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.MultiSpanProcessor=void 0;var FHe=ae(),oL=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{(0,FHe.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(let n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(let r of this._spanProcessors)r.onEnd(e)}shutdown(){let e=[];for(let r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}};qm.MultiSpanProcessor=oL});var sL=c(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.NoopSpanProcessor=void 0;var iL=class{onStart(e,r){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};jm.NoopSpanProcessor=iL});var Q$=c(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.BasicTracerProvider=aa.ForceFlushState=void 0;var Fu=(P(),m(I)),Wu=ae(),$$=nL(),kHe=Np(),WHe=NM(),YHe=J$(),KHe=sL(),XHe=dm(),ZHe=MM(),ku;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(ku=aa.ForceFlushState||(aa.ForceFlushState={}));var yp=class{constructor(e={}){var r;this._registeredSpanProcessors=[],this._tracers=new Map;let n=(0,Wu.merge)({},(0,WHe.loadDefaultConfig)(),(0,ZHe.reconfigureLimits)(e));this.resource=(r=n.resource)!==null&&r!==void 0?r:$$.Resource.empty(),this.resource=$$.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let o=this._buildExporterFromEnv();if(o!==void 0){let i=new XHe.BatchSpanProcessor(o);this.activeSpanProcessor=i}else this.activeSpanProcessor=new KHe.NoopSpanProcessor}getTracer(e,r,n){let o=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new kHe.Tracer({name:e,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(o)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(r=>Fu.diag.error("Error while trying to shutdown current span processor",r)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new YHe.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){Fu.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&Fu.context.setGlobalContextManager(e.contextManager),e.propagator&&Fu.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(n=>new Promise(o=>{let i,s=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=ku.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),i!==ku.timeout&&(i=ku.resolved,o(i))}).catch(a=>{clearTimeout(s),i=ku.error,o(a)})}));return new Promise((n,o)=>{Promise.all(r).then(i=>{let s=i.filter(a=>a!==ku.resolved);s.length>0?o(s):n()}).catch(i=>o([i]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var r;return(r=this.constructor._registeredPropagators.get(e))===null||r===void 0?void 0:r()}_getSpanExporter(e){var r;return(r=this.constructor._registeredExporters.get(e))===null||r===void 0?void 0:r()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,Wu.getEnv)().OTEL_PROPAGATORS)),n=e.map(o=>{let i=this._getPropagator(o);return i||Fu.diag.warn(`Propagator "${o}" requested through environment variable is unavailable.`),i}).reduce((o,i)=>(i&&o.push(i),o),[]);if(n.length!==0)return e.length===1?n[0]:new Wu.CompositePropagator({propagators:n})}_buildExporterFromEnv(){let e=(0,Wu.getEnv)().OTEL_TRACES_EXPORTER;if(e==="none"||e==="")return;let r=this._getSpanExporter(e);return r||Fu.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),r}};aa.BasicTracerProvider=yp;yp._registeredPropagators=new Map([["tracecontext",()=>new Wu.W3CTraceContextPropagator],["baggage",()=>new Wu.W3CBaggagePropagator]]);yp._registeredExporters=new Map});var eQ=c(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.ConsoleSpanExporter=void 0;var aL=ae(),uL=class{export(e,r){return this._sendSpans(e,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){var r;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(r=e.spanContext().traceState)===null||r===void 0?void 0:r.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,aL.hrTimeToMicroseconds)(e.startTime),duration:(0,aL.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,r){for(let n of e)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:aL.ExportResultCode.SUCCESS})}};Vm.ConsoleSpanExporter=uL});var rQ=c(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.InMemorySpanExporter=void 0;var tQ=ae(),cL=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,r){if(this._stopped)return r({code:tQ.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout(()=>r({code:tQ.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};Bm.InMemorySpanExporter=cL});var nQ=c(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.SimpleSpanProcessor=void 0;var zHe=(P(),m(I)),Yu=ae(),lL=class{constructor(e){this._exporter=e,this._shutdownOnce=new Yu.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,r){}onEnd(e){var r,n;if(this._shutdownOnce.isCalled||!(e.spanContext().traceFlags&zHe.TraceFlags.SAMPLED))return;let o=()=>Yu.internal._export(this._exporter,[e]).then(i=>{var s;i.code!==Yu.ExportResultCode.SUCCESS&&(0,Yu.globalErrorHandler)((s=i.error)!==null&&s!==void 0?s:new Error(`SimpleSpanProcessor: span export failed (status ${i})`))}).catch(i=>{(0,Yu.globalErrorHandler)(i)});if(e.resource.asyncAttributesPending){let i=(n=(r=e.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(r).then(()=>(i!=null&&this._unresolvedExports.delete(i),o()),s=>(0,Yu.globalErrorHandler)(s));i!=null&&this._unresolvedExports.add(i)}else o()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};Hm.SimpleSpanProcessor=lL});var Np=c(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.Span=re.SamplingDecision=re.TraceIdRatioBasedSampler=re.ParentBasedSampler=re.AlwaysOnSampler=re.AlwaysOffSampler=re.NoopSpanProcessor=re.SimpleSpanProcessor=re.InMemorySpanExporter=re.ConsoleSpanExporter=re.RandomIdGenerator=re.BatchSpanProcessor=re.ForceFlushState=re.BasicTracerProvider=re.Tracer=void 0;var JHe=R$();Object.defineProperty(re,"Tracer",{enumerable:!0,get:function(){return JHe.Tracer}});var oQ=Q$();Object.defineProperty(re,"BasicTracerProvider",{enumerable:!0,get:function(){return oQ.BasicTracerProvider}});Object.defineProperty(re,"ForceFlushState",{enumerable:!0,get:function(){return oQ.ForceFlushState}});var iQ=dm();Object.defineProperty(re,"BatchSpanProcessor",{enumerable:!0,get:function(){return iQ.BatchSpanProcessor}});Object.defineProperty(re,"RandomIdGenerator",{enumerable:!0,get:function(){return iQ.RandomIdGenerator}});var $He=eQ();Object.defineProperty(re,"ConsoleSpanExporter",{enumerable:!0,get:function(){return $He.ConsoleSpanExporter}});var QHe=rQ();Object.defineProperty(re,"InMemorySpanExporter",{enumerable:!0,get:function(){return QHe.InMemorySpanExporter}});var eFe=nQ();Object.defineProperty(re,"SimpleSpanProcessor",{enumerable:!0,get:function(){return eFe.SimpleSpanProcessor}});var tFe=sL();Object.defineProperty(re,"NoopSpanProcessor",{enumerable:!0,get:function(){return tFe.NoopSpanProcessor}});var rFe=em();Object.defineProperty(re,"AlwaysOffSampler",{enumerable:!0,get:function(){return rFe.AlwaysOffSampler}});var nFe=rm();Object.defineProperty(re,"AlwaysOnSampler",{enumerable:!0,get:function(){return nFe.AlwaysOnSampler}});var oFe=IM();Object.defineProperty(re,"ParentBasedSampler",{enumerable:!0,get:function(){return oFe.ParentBasedSampler}});var iFe=bM();Object.defineProperty(re,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return iFe.TraceIdRatioBasedSampler}});var sFe=Pp();Object.defineProperty(re,"SamplingDecision",{enumerable:!0,get:function(){return sFe.SamplingDecision}});var aFe=TM();Object.defineProperty(re,"Span",{enumerable:!0,get:function(){return aFe.Span}})});var sQ=c(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.SeverityNumber=void 0;var uFe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(uFe=Cp.SeverityNumber||(Cp.SeverityNumber={}))});var km=c(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.NOOP_LOGGER=Ku.NoopLogger=void 0;var Fm=class{emit(e){}};Ku.NoopLogger=Fm;Ku.NOOP_LOGGER=new Fm});var Ym=c(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.NOOP_LOGGER_PROVIDER=Xu.NoopLoggerProvider=void 0;var cFe=km(),Wm=class{getLogger(e,r,n){return new cFe.NoopLogger}};Xu.NoopLoggerProvider=Wm;Xu.NOOP_LOGGER_PROVIDER=new Wm});var pL=c(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.ProxyLogger=void 0;var lFe=km(),dL=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):lFe.NOOP_LOGGER}};Km.ProxyLogger=dL});var fL=c(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.ProxyLoggerProvider=void 0;var dFe=Ym(),pFe=pL(),_L=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new pFe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:dFe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};Xm.ProxyLoggerProvider=_L});var aQ=c(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm._globalThis=void 0;Zm._globalThis=typeof globalThis=="object"?globalThis:global});var uQ=c(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm._globalThis=void 0;var _Fe=aQ();Object.defineProperty(zm,"_globalThis",{enumerable:!0,get:function(){return _Fe._globalThis}})});var cQ=c(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm._globalThis=void 0;var fFe=uQ();Object.defineProperty(Jm,"_globalThis",{enumerable:!0,get:function(){return fFe._globalThis}})});var lQ=c(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.API_BACKWARDS_COMPATIBILITY_VERSION=Nn.makeGetter=Nn._global=Nn.GLOBAL_LOGS_API_KEY=void 0;var gFe=cQ();Nn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Nn._global=gFe._globalThis;function hFe(t,e,r){return n=>n===t?e:r}Nn.makeGetter=hFe;Nn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var pQ=c($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.LogsAPI=void 0;var Gr=lQ(),EFe=Ym(),dQ=fL(),gL=class t{constructor(){this._proxyLoggerProvider=new dQ.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Gr._global[Gr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Gr._global[Gr.GLOBAL_LOGS_API_KEY]=(0,Gr.makeGetter)(Gr.API_BACKWARDS_COMPATIBILITY_VERSION,e,EFe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Gr._global[Gr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Gr._global,Gr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Gr._global[Gr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new dQ.ProxyLoggerProvider}};$m.LogsAPI=gL});var hL=c($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.logs=$e.ProxyLoggerProvider=$e.ProxyLogger=$e.NoopLoggerProvider=$e.NOOP_LOGGER_PROVIDER=$e.NoopLogger=$e.NOOP_LOGGER=$e.SeverityNumber=void 0;var mFe=sQ();Object.defineProperty($e,"SeverityNumber",{enumerable:!0,get:function(){return mFe.SeverityNumber}});var _Q=km();Object.defineProperty($e,"NOOP_LOGGER",{enumerable:!0,get:function(){return _Q.NOOP_LOGGER}});Object.defineProperty($e,"NoopLogger",{enumerable:!0,get:function(){return _Q.NoopLogger}});var fQ=Ym();Object.defineProperty($e,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return fQ.NOOP_LOGGER_PROVIDER}});Object.defineProperty($e,"NoopLoggerProvider",{enumerable:!0,get:function(){return fQ.NoopLoggerProvider}});var TFe=pL();Object.defineProperty($e,"ProxyLogger",{enumerable:!0,get:function(){return TFe.ProxyLogger}});var SFe=fL();Object.defineProperty($e,"ProxyLoggerProvider",{enumerable:!0,get:function(){return SFe.ProxyLoggerProvider}});var AFe=pQ();$e.logs=AFe.LogsAPI.getInstance()});var gQ=c(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.disableInstrumentations=Zu.enableInstrumentations=void 0;function OFe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Zu.enableInstrumentations=OFe;function RFe(t){t.forEach(e=>e.disable())}Zu.disableInstrumentations=RFe});var mQ=c(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.registerInstrumentations=void 0;var hQ=(P(),m(I)),IFe=hL(),EQ=gQ();function PFe(t){var e,r;let n=t.tracerProvider||hQ.trace.getTracerProvider(),o=t.meterProvider||hQ.metrics.getMeterProvider(),i=t.loggerProvider||IFe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,EQ.enableInstrumentations)(s,n,o,i),()=>{(0,EQ.disableInstrumentations)(s)}}Qm.registerInstrumentations=PFe});var TQ=c(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});tT.InstrumentationAbstract=void 0;var EL=(P(),m(I)),bFe=hL(),eT=le(),mL=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=eT.wrap,this._unwrap=eT.unwrap,this._massWrap=eT.massWrap,this._massUnwrap=eT.massUnwrap,this.setConfig(n),this._diag=EL.diag.createComponentLogger({namespace:e}),this._tracer=EL.trace.getTracer(e,r),this._meter=EL.metrics.getMeter(e,r),this._logger=bFe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};tT.InstrumentationAbstract=mL});var SQ=c(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.ModuleNameTrie=Ei.ModuleNameSeparator=void 0;Ei.ModuleNameSeparator="/";var rT=class{constructor(){this.hooks=[],this.children=new Map}},TL=class{constructor(){this._trie=new rT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Ei.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new rT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Ei.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Ei.ModuleNameTrie=TL});var OQ=c(nT=>{"use strict";Object.defineProperty(nT,"__esModule",{value:!0});nT.RequireInTheMiddleSingleton=void 0;var vFe=de(),AQ=require("path"),SL=SQ(),yFe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),AL=class t{constructor(){this._moduleNameTrie=new SL.ModuleNameTrie,this._initialize()}_initialize(){new vFe.Hook(null,{internals:!0},(e,r,n)=>{let o=NFe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return yFe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};nT.RequireInTheMiddleSingleton=AL;function NFe(t){return AQ.sep!==SL.ModuleNameSeparator?t.split(AQ.sep).join(SL.ModuleNameSeparator):t}});var OL=c(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.isWrapped=mi.safeExecuteInTheMiddleAsync=mi.safeExecuteInTheMiddle=void 0;function CFe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}mi.safeExecuteInTheMiddle=CFe;async function MFe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}mi.safeExecuteInTheMiddleAsync=MFe;function LFe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}mi.isWrapped=LFe});var PQ=c(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.InstrumentationBase=void 0;var Mp=require("path"),RQ=require("util"),DFe=Zt(),RL=le(),GFe=TQ(),xFe=OQ(),UFe=Jt(),Lp=(P(),m(I)),wFe=de(),qFe=require("fs"),jFe=OL(),IL=class extends GFe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=xFe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,jFe.isWrapped)(i[s])&&this._unwrap(i,s),RQ.types.isProxy(i)){let u=(0,RL.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,RL.wrap)(i,s,a)},this._unwrap=(i,s)=>RQ.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,RL.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Lp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Lp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Lp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Lp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,qFe.readFileSync)(Mp.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Lp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return IQ(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=Mp.normalize(n);return a.filter(d=>d.name===u).filter(d=>IQ(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>{if(!u&&Mp.isAbsolute(a)){let l=Mp.parse(a);a=l.name,u=l.dir}return this._onRequire(e,s,a,u)},n=(s,a,u)=>this._onRequire(e,s,a,u),o=Mp.isAbsolute(e.name)?new wFe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new UFe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};oT.InstrumentationBase=IL;function IQ(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,DFe.satisfies)(e,n,{includePrerelease:r}))}});var bQ=c(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.normalize=void 0;var VFe=require("path");Object.defineProperty(iT,"normalize",{enumerable:!0,get:function(){return VFe.normalize}})});var vQ=c(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.normalize=zu.InstrumentationBase=void 0;var BFe=PQ();Object.defineProperty(zu,"InstrumentationBase",{enumerable:!0,get:function(){return BFe.InstrumentationBase}});var HFe=bQ();Object.defineProperty(zu,"normalize",{enumerable:!0,get:function(){return HFe.normalize}})});var PL=c(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.normalize=Ju.InstrumentationBase=void 0;var yQ=vQ();Object.defineProperty(Ju,"InstrumentationBase",{enumerable:!0,get:function(){return yQ.InstrumentationBase}});Object.defineProperty(Ju,"normalize",{enumerable:!0,get:function(){return yQ.normalize}})});var NQ=c(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.InstrumentationNodeModuleDefinition=void 0;var bL=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};sT.InstrumentationNodeModuleDefinition=bL});var CQ=c(aT=>{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});aT.InstrumentationNodeModuleFile=void 0;var FFe=PL(),vL=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,FFe.normalize)(e)}};aT.InstrumentationNodeModuleFile=vL});var Dp=c(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.safeExecuteInTheMiddleAsync=Dt.safeExecuteInTheMiddle=Dt.isWrapped=Dt.InstrumentationNodeModuleFile=Dt.InstrumentationNodeModuleDefinition=Dt.InstrumentationBase=Dt.registerInstrumentations=void 0;var kFe=mQ();Object.defineProperty(Dt,"registerInstrumentations",{enumerable:!0,get:function(){return kFe.registerInstrumentations}});var WFe=PL();Object.defineProperty(Dt,"InstrumentationBase",{enumerable:!0,get:function(){return WFe.InstrumentationBase}});var YFe=NQ();Object.defineProperty(Dt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return YFe.InstrumentationNodeModuleDefinition}});var KFe=CQ();Object.defineProperty(Dt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return KFe.InstrumentationNodeModuleFile}});var yL=OL();Object.defineProperty(Dt,"isWrapped",{enumerable:!0,get:function(){return yL.isWrapped}});Object.defineProperty(Dt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return yL.safeExecuteInTheMiddle}});Object.defineProperty(Dt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return yL.safeExecuteInTheMiddleAsync}})});var Oo=c(ee=>{var{_optionalChain:uT}=b();Object.defineProperty(ee,"__esModule",{value:!0});var ue=($(),m(J)),ne=b(),U=(P(),m(I)),M=k(),Si=ae(),Gp=Np(),XFe=Dp(),BL="sentry.parentIsRemote",UQ="sentry.graphql.operation";function xp(t){let e=t;return!!e.attributes&&typeof e.attributes=="object"}function wQ(t){return typeof t.kind=="number"}function qQ(t){return!!t.status}function HL(t){return!!t.name}function jQ(t){return!!t.parentSpanId}function ZFe(t){let e=t;return Array.isArray(e.events)}function VQ(t){if(!xp(t))return{};let e=t.attributes[ue.ATTR_URL_FULL]||t.attributes[ue.SEMATTRS_HTTP_URL],r={url:e,"http.method":t.attributes[ue.ATTR_HTTP_REQUEST_METHOD]||t.attributes[ue.SEMATTRS_HTTP_METHOD]};!r["http.method"]&&r.url&&(r["http.method"]="GET");try{if(typeof e=="string"){let n=ne.parseUrl(e);r.url=ne.getSanitizedUrlString(n),n.search&&(r["http.query"]=n.search),n.hash&&(r["http.fragment"]=n.hash)}}catch{}return r}function zFe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function JFe(t){class e extends t{constructor(...n){super(...n)}get tracer(){if(this._tracer)return this._tracer;let n="@sentry/opentelemetry",o=M.SDK_VERSION,i=U.trace.getTracer(n,o);return this._tracer=i,i}async flush(n){let o=this.traceProvider,i=zFe([o,"optionalAccess",s=>s.activeSpanProcessor]);return i&&await i.forceFlush(),super.flush(n)}}return e}function BQ(t){return wQ(t)?t.kind:U.SpanKind.INTERNAL}var NL="sentry-trace",CL="baggage",FL="sentry.dsc",cT="sentry.parent_span_id",kL="sentry.sampled_not_recording",HQ="sentry.url",FQ=U.createContextKey("sentry_scopes"),ML=U.createContextKey("sentry_fork_isolation_scope"),LL=U.createContextKey("sentry_fork_set_scope"),DL=U.createContextKey("sentry_fork_set_isolation_scope"),kQ="_scopeContext";function la(t){return t.getValue(FQ)}function WQ(t,e){return t.setValue(FQ,e)}function $Fe(t,e){ne.addNonEnumerableProperty(t,kQ,e)}function QFe(t){return t[kQ]}function eke(t){if(!xp(t))return!1;let{attributes:e}=t,r=e[ue.SEMATTRS_HTTP_URL]||e[ue.ATTR_URL_FULL];return r?M.isSentryRequestUrl(r.toString(),M.getClient()):!1}function YQ(t,e,r){let n=e[ue.ATTR_HTTP_REQUEST_METHOD]||e[ue.SEMATTRS_HTTP_METHOD];if(n)return rke({attributes:e,name:t,kind:r},n);let o=e[ue.SEMATTRS_DB_SYSTEM],i=typeof e[M.SEMANTIC_ATTRIBUTE_SENTRY_OP]=="string"&&e[M.SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith("cache.");if(o&&!i)return tke({attributes:e,name:t});if(e[ue.SEMATTRS_RPC_SERVICE])return{op:"rpc",description:t,source:"route"};if(e[ue.SEMATTRS_MESSAGING_SYSTEM])return{op:"message",description:t,source:"route"};let u=e[ue.SEMATTRS_FAAS_TRIGGER];return u?{op:u.toString(),description:t,source:"route"}:{op:void 0,description:t,source:"custom"}}function KQ(t){let e=xp(t)?t.attributes:{},r=HL(t)?t.name:"<unknown>",n=BQ(t);return YQ(r,e,n)}function tke({attributes:t,name:e}){let r=t[ue.SEMATTRS_DB_STATEMENT];return{op:"db",description:r?r.toString():e,source:"task"}}function rke({name:t,kind:e,attributes:r},n){let o=["http"];switch(e){case U.SpanKind.CLIENT:o.push("client");break;case U.SpanKind.SERVER:o.push("server");break}r["sentry.http.prefetch"]&&o.push("prefetch");let{urlPath:i,url:s,query:a,fragment:u,hasRoute:l}=oke(r,e);if(!i)return{op:o.join("."),description:t,source:"custom"};let d=r[UQ],p=`${n} ${i}`,_=d?`${p} (${nke(d)})`:p,f=l||i==="/"?"route":"url",g={};s&&(g.url=s),a&&(g["http.query"]=a),u&&(g["http.fragment"]=u);let h=e===U.SpanKind.CLIENT||e===U.SpanKind.SERVER,v=!`${r[M.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]||"manual"}`.startsWith("auto"),N=h||!v;return{op:o.join("."),description:N?_:t,source:N?f:"custom",data:g}}function nke(t){if(Array.isArray(t)){let e=t.slice().sort();return e.length<=5?e.join(", "):`${e.slice(0,5).join(", ")}, +${e.length-5}`}return`${t}`}function oke(t,e){let r=t[ue.SEMATTRS_HTTP_TARGET],n=t[ue.SEMATTRS_HTTP_URL]||t[ue.ATTR_URL_FULL],o=t[ue.ATTR_HTTP_ROUTE],i=typeof n=="string"?ne.parseUrl(n):void 0,s=i?ne.getSanitizedUrlString(i):void 0,a=i&&i.search?i.search:void 0,u=i&&i.hash?i.hash:void 0;return typeof o=="string"?{urlPath:o,url:s,query:a,fragment:u,hasRoute:!0}:e===U.SpanKind.SERVER&&typeof r=="string"?{urlPath:ne.stripUrlQueryAndFragment(r),url:s,query:a,fragment:u,hasRoute:!1}:i?{urlPath:s,url:s,query:a,fragment:u,hasRoute:!1}:typeof r=="string"?{urlPath:ne.stripUrlQueryAndFragment(r),url:s,query:a,fragment:u,hasRoute:!1}:{urlPath:void 0,url:s,query:a,fragment:u,hasRoute:!1}}function ike(t){t.on("createDsc",(e,r)=>{if(r){let i=(M.spanToJSON(r).data||{})[M.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],{description:s}=HL(r)?KQ(r):{description:void 0};i!=="url"&&s&&(e.transaction=s)}})}function GL({parentSpanId:t,dsc:e,sampled:r}){let n=e?ne.dynamicSamplingContextToSentryBaggageHeader(e):void 0,o=new Si.TraceState().set(cT,t||""),i=n?o.set(FL,n):o;return r===!1?i.set(kL,"1"):i}function XQ(t){let e=GL({parentSpanId:t.parentSpanId,dsc:t.dsc,sampled:t.sampled});return{traceId:t.traceId,spanId:t.parentSpanId||"",isRemote:!0,traceFlags:t.sampled?U.TraceFlags.SAMPLED:U.TraceFlags.NONE,traceState:e}}function WL(){return U.trace.getActiveSpan()}var Ti=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function MQ(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function lT(t){let{traceFlags:e,traceState:r}=t,n=r?r.get(kL)==="1":!1;if(e===U.TraceFlags.SAMPLED)return!0;if(n)return!1;let o=r?r.get(FL):void 0,i=o?ne.baggageHeaderToDynamicSamplingContext(o):void 0;if(MQ([i,"optionalAccess",s=>s.sampled])==="true")return!0;if(MQ([i,"optionalAccess",s=>s.sampled])==="false")return!1}var ZQ=new Set;function ske(){return Array.from(ZQ)}function dT(t){ZQ.add(t)}function ca(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function YL(t){let e=t.spanContext(),{traceId:r,spanId:n,traceState:o}=e,i=o?o.get(FL):void 0,s=i?ne.baggageHeaderToDynamicSamplingContext(i):void 0,a=o&&o.get(cT)||void 0,u=lT(e),l=s||M.getDynamicSamplingContextFromSpan(M.getRootSpan(t));return{traceId:r,spanId:n,sampled:u,parentSpanId:a,dsc:l}}var xL=class extends Si.W3CBaggagePropagator{constructor(){super(),dT("SentryPropagator"),this._urlMatchesTargetsMap=new ne.LRUMap(100)}inject(e,r,n){if(Si.isTracingSuppressed(e)){Ti&&ne.logger.log("[Tracing] Not injecting trace data for url because tracing is suppressed.");return}let o=U.trace.getSpan(e),i=o&&lke(o),s=ca([M.getClient,"call",f=>f(),"optionalAccess",f=>f.getOptions,"call",f=>f(),"optionalAccess",f=>f.tracePropagationTargets]);if(typeof i=="string"&&s&&!this._shouldInjectTraceData(s,i)){Ti&&ne.logger.log("[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:",i);return}let a=cke(r),u=U.propagation.getBaggage(e)||U.propagation.createBaggage({}),{dynamicSamplingContext:l,traceId:d,spanId:p,sampled:_}=ake(e);if(a){let f=ne.parseBaggageHeader(a);f&&Object.entries(f).forEach(([g,h])=>{u=u.setEntry(g,{value:h})})}l&&(u=Object.entries(l).reduce((f,[g,h])=>h?f.setEntry(`${ne.SENTRY_BAGGAGE_KEY_PREFIX}${g}`,{value:h}):f,u)),d&&d!==U.INVALID_TRACEID&&n.set(r,NL,ne.generateSentryTraceHeader(d,p,_)),super.inject(U.propagation.setBaggage(e,u),r,n)}extract(e,r,n){let o=n.get(r,NL),i=n.get(r,CL),s=o?Array.isArray(o)?o[0]:o:void 0,a=ne.propagationContextFromHeaders(s,i),u=zQ(e,{sentryTrace:s,baggage:i}),l=la(u),d={scope:l?l.scope.clone():M.getCurrentScope().clone(),isolationScope:l?l.isolationScope:M.getIsolationScope()};return d.scope.setPropagationContext(a),WQ(u,d)}fields(){return[NL,CL]}_shouldInjectTraceData(e,r){if(e===void 0)return!0;let n=this._urlMatchesTargetsMap.get(r);if(n!==void 0)return n;let o=ne.stringMatchesSomePattern(r,e);return this._urlMatchesTargetsMap.set(r,o),o}};function ake(t){let e=U.trace.getSpan(t),r=ca([e,"optionalAccess",s=>s.spanContext,"call",s=>s(),"access",s=>s.isRemote]);if(e&&!r){let s=e.spanContext(),a=YL(e);return{dynamicSamplingContext:LQ(a,s.traceId),traceId:s.traceId,spanId:s.spanId,sampled:lT(s)}}let o=(ca([la,"call",s=>s(t),"optionalAccess",s=>s.scope])||M.getCurrentScope()).getPropagationContext();return{dynamicSamplingContext:LQ(o,o.traceId),traceId:o.traceId,spanId:o.spanId,sampled:o.sampled}}function LQ(t,e){if(ca([t,"optionalAccess",n=>n.dsc]))return t.dsc;let r=M.getClient();if(r)return M.getDynamicSamplingContextFromClient(e||t.traceId,r)}function zQ(t,{sentryTrace:e,baggage:r}){let n=ne.propagationContextFromHeaders(e,r),o=XQ(n);return U.trace.setSpanContext(t,o)}function uke(t,e,r){let n=zQ(t,e);return U.context.with(n,r)}function cke(t){try{let e=t[CL];return Array.isArray(e)?e.join(","):e}catch{return}}function lke(t){let e=M.spanToJSON(t).data,r=ca([e,"optionalAccess",o=>o[ue.SEMATTRS_HTTP_URL]])||ca([e,"optionalAccess",o=>o[ue.ATTR_URL_FULL]]);if(r)return r;let n=ca([t,"access",o=>o.spanContext,"call",o=>o(),"access",o=>o.traceState,"optionalAccess",o=>o.get,"call",o=>o(HQ)]);if(n)return n}function dke(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function JQ(t,e){let r=XL(),{name:n,parentSpan:o}=t;return JL(o)(()=>{let s=zL(t.scope,t.forceTransaction),u=t.onlyIfParent&&!U.trace.getSpan(s)?Si.suppressTracing(s):s,l=ZL(t);return r.startActiveSpan(n,l,u,d=>M.handleCallbackErrors(()=>e(d),()=>{M.spanToJSON(d).status===void 0&&d.setStatus({code:U.SpanStatusCode.ERROR})},()=>d.end()))})}function $Q(t,e){let r=XL(),{name:n,parentSpan:o}=t;return JL(o)(()=>{let s=zL(t.scope,t.forceTransaction),u=t.onlyIfParent&&!U.trace.getSpan(s)?Si.suppressTracing(s):s,l=ZL(t);return r.startActiveSpan(n,l,u,d=>M.handleCallbackErrors(()=>e(d,()=>d.end()),()=>{M.spanToJSON(d).status===void 0&&d.setStatus({code:U.SpanStatusCode.ERROR})}))})}function QQ(t){let e=XL(),{name:r,parentSpan:n}=t;return JL(n)(()=>{let i=zL(t.scope,t.forceTransaction),a=t.onlyIfParent&&!U.trace.getSpan(i)?Si.suppressTracing(i):i,u=ZL(t);return e.startSpan(r,u,a)})}function KL(t,e){let r=t?U.trace.setSpan(U.context.active(),t):U.trace.deleteSpan(U.context.active());return U.context.with(r,()=>e(M.getCurrentScope()))}function XL(){let t=M.getClient();return t&&t.tracer||U.trace.getTracer("@sentry/opentelemetry",M.SDK_VERSION)}function ZL(t){let{startTime:e,attributes:r,kind:n,op:o}=t,i=typeof e=="number"?pke(e):e;return{attributes:o?{[M.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,...r}:r,kind:n,startTime:i}}function pke(t){return t<9999999999?t*1e3:t}function zL(t,e){let r=_ke(t),n=dke([la,"call",g=>g(r),"optionalAccess",g=>g.scope]),o=U.trace.getSpan(r);if(!o){let g=M.getClient();if(n&&g){let h=n.getPropagationContext(),T=GL({parentSpanId:h.parentSpanId,dsc:void 0,sampled:h.sampled}),v={traceId:h.traceId,spanId:h.parentSpanId||h.spanId,isRemote:!0,traceFlags:h.sampled?U.TraceFlags.SAMPLED:U.TraceFlags.NONE,traceState:T};return U.trace.setSpanContext(r,v)}return r}if(!e)return r;let i=U.trace.deleteSpan(r),{spanId:s,traceId:a}=o.spanContext(),u=lT(o.spanContext()),l=M.getRootSpan(o),d=M.getDynamicSamplingContextFromSpan(l),p=GL({dsc:d,parentSpanId:s!==U.INVALID_SPANID?s:void 0,sampled:u}),_={traceId:a,spanId:s,isRemote:!0,traceFlags:u?U.TraceFlags.SAMPLED:U.TraceFlags.NONE,traceState:p};return U.trace.setSpanContext(i,_)}function _ke(t){if(t){let e=QFe(t);if(e)return e}return U.context.active()}function fke(t,e){return M.continueTrace(t,()=>uke(U.context.active(),t,e))}function JL(t){return t!==void 0?e=>KL(t,e):e=>e()}function e6(t){let e=Si.suppressTracing(U.context.active());return U.context.with(e,t)}function gke(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function hke(t){t.on("preprocessEvent",e=>{let r=WL();if(!r||e.type==="transaction")return;let n=r.spanContext(),o=gke([n,"access",a=>a.traceState,"optionalAccess",a=>a.get,"call",a=>a(cT)]),i=typeof o=="string"?o||void 0:jQ(r)?r.parentSpanId:void 0;e.contexts={trace:ne.dropUndefinedKeys({trace_id:n.traceId,span_id:n.spanId,parent_span_id:i}),...e.contexts};let s=M.getRootSpan(r);return e.sdkProcessingMetadata={dynamicSamplingContext:M.getDynamicSamplingContextFromSpan(s),...e.sdkProcessingMetadata},e})}function Eke(){let t={};return U.propagation.inject(U.context.active(),t),t["sentry-trace"]?ne.dropUndefinedKeys({"sentry-trace":t["sentry-trace"],baggage:t.baggage}):{}}function mke(){function t(){let a=U.context.active(),u=la(a);return u||{scope:M.getDefaultCurrentScope(),isolationScope:M.getDefaultIsolationScope()}}function e(a){let u=U.context.active();return U.context.with(u,()=>a(i()))}function r(a,u){let l=U.context.active();return U.context.with(l.setValue(LL,a),()=>u(a))}function n(a){let u=U.context.active();return U.context.with(u.setValue(ML,!0),()=>a(s()))}function o(a,u){let l=U.context.active();return U.context.with(l.setValue(DL,a),()=>u(s()))}function i(){return t().scope}function s(){return t().isolationScope}M.setAsyncContextStrategy({withScope:e,withSetScope:r,withSetIsolationScope:o,withIsolationScope:n,getCurrentScope:i,getIsolationScope:s,startSpan:JQ,startSpanManual:$Q,startInactiveSpan:QQ,getActiveSpan:WL,suppressTracing:e6,getTraceData:Eke,withActiveSpan:KL})}function DQ(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function Tke(t){class e extends t{constructor(...n){super(...n),dT("SentryContextManager")}with(n,o,i,...s){let a=la(n),u=DQ([a,"optionalAccess",N=>N.scope])||M.getCurrentScope(),l=DQ([a,"optionalAccess",N=>N.isolationScope])||M.getIsolationScope(),d=n.getValue(ML)===!0,p=n.getValue(LL),_=n.getValue(DL),f=p||u.clone(),g=_||(d?l.clone():l),v=WQ(n,{scope:f,isolationScope:g}).deleteValue(ML).deleteValue(LL).deleteValue(DL);return $Fe(f,v),super.with(v,o,i,...s)}}return e}function Ske(t){let e=new Map;for(let r of t)Ake(e,r);return Array.from(e,function([r,n]){return n})}function t6(t){return t.attributes[BL]===!0?void 0:t.parentSpanId}function Ake(t,e){let r=e.spanContext().spanId,n=t6(e);if(!n){UL(t,{id:r,span:e,children:[]});return}let o=Oke(t,n),i=UL(t,{id:r,span:e,parentNode:o,children:[]});o.children.push(i)}function Oke(t,e){let r=t.get(e);return r||UL(t,{id:e,children:[]})}function UL(t,e){let r=t.get(e.id);return r&&r.span?r:r&&!r.span?(r.span=e.span,r.parentNode=e.parentNode,r):(t.set(e.id,e),e)}var r6={1:"cancelled",2:"unknown_error",3:"invalid_argument",4:"deadline_exceeded",5:"not_found",6:"already_exists",7:"permission_denied",8:"resource_exhausted",9:"failed_precondition",10:"aborted",11:"out_of_range",12:"unimplemented",13:"internal_error",14:"unavailable",15:"data_loss",16:"unauthenticated"},Rke=t=>Object.values(r6).includes(t);function n6(t){let e=xp(t)?t.attributes:{},r=qQ(t)?t.status:void 0;if(r){if(r.code===U.SpanStatusCode.OK)return{code:M.SPAN_STATUS_OK};if(r.code===U.SpanStatusCode.ERROR){if(typeof r.message>"u"){let o=GQ(e);if(o)return o}return r.message&&Rke(r.message)?{code:M.SPAN_STATUS_ERROR,message:r.message}:{code:M.SPAN_STATUS_ERROR,message:"unknown_error"}}}let n=GQ(e);return n||(r&&r.code===U.SpanStatusCode.UNSET?{code:M.SPAN_STATUS_OK}:{code:M.SPAN_STATUS_ERROR,message:"unknown_error"})}function GQ(t){let e=t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]||t[ue.SEMATTRS_HTTP_STATUS_CODE],r=t[ue.SEMATTRS_RPC_GRPC_STATUS_CODE],n=typeof e=="number"?e:typeof e=="string"?parseInt(e):void 0;if(typeof n=="number")return M.getSpanStatusFromHttpCode(n);if(typeof r=="string")return{code:M.SPAN_STATUS_ERROR,message:r6[r]||"unknown_error"}}function o6(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}var xQ=1e3,Ike=300,wL=class{constructor(e){this._finishedSpans=[],this._timeout=o6([e,"optionalAccess",r=>r.timeout])||Ike}export(e){if(this._finishedSpans.push(e),t6(e)){let r=this._finishedSpans.length;Ti&&ne.logger.log(`SpanExporter has ${r} unsent spans remaining`),this._cleanupOldSpans();return}this._clearTimeout(),this._flushTimeout=setTimeout(()=>{this.flush()},1)}flush(){this._clearTimeout();let e=this._finishedSpans.length,r=Pke(this._finishedSpans),n=r.length,o=e-n;Ti&&ne.logger.log(`SpanExporter exported ${o} spans, ${n} unsent spans remaining`),this._cleanupOldSpans(r)}clear(){this._finishedSpans=[],this._clearTimeout()}_clearTimeout(){this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=void 0)}_cleanupOldSpans(e=this._finishedSpans){let r=Date.now()/1e3;this._finishedSpans=e.filter(n=>{let o=yke(n,r,this._timeout);return Ti&&o&&ne.logger.log(`SpanExporter dropping span ${n.name} (${n.spanContext().spanId}) because it is pending for more than 5 minutes.`),!o})}};function Pke(t){let e=Ske(t),r=new Set(e);return vke(e).forEach(o=>{r.delete(o);let i=o.span,s=Cke(i),a=s.spans||[];o.children.forEach(l=>{qL(l,a,r)}),s.spans=a.length>xQ?a.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,xQ):a;let u=M.timedEventsToMeasurements(i.events);u&&(s.measurements=u),M.captureEvent(s)}),Array.from(r).map(o=>o.span).filter(o=>!!o)}function bke(t){return!!t.span&&!t.parentNode}function vke(t){return t.filter(bke)}function yke(t,e,r){let n=e-r;return M.spanTimeInputToSeconds(t.startTime)<n}function Nke(t){let e=t.attributes,r=e[M.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],n=e[M.SEMANTIC_ATTRIBUTE_SENTRY_OP],o=e[M.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return{origin:r,op:n,source:o}}function Cke(t){let{op:e,description:r,data:n,origin:o="manual",source:i}=i6(t),s=M.getCapturedScopesOnSpan(t),a=t.attributes[M.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE],u=ne.dropUndefinedKeys({[M.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i,[M.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:a,[M.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e,[M.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,...n,...s6(t.attributes)}),{traceId:l,spanId:d}=t.spanContext(),p=o6([t,"access",T=>T.spanContext,"call",T=>T(),"access",T=>T.traceState,"optionalAccess",T=>T.get,"call",T=>T(cT)]),_=typeof p=="string"?p||void 0:t.parentSpanId,f=n6(t);return{contexts:{trace:ne.dropUndefinedKeys({parent_span_id:_,span_id:d,trace_id:l,data:u,origin:o,op:e,status:M.getStatusMessage(f)}),otel:{resource:t.resource.attributes}},spans:[],start_timestamp:M.spanTimeInputToSeconds(t.startTime),timestamp:M.spanTimeInputToSeconds(t.endTime),transaction:r,type:"transaction",sdkProcessingMetadata:{...ne.dropUndefinedKeys({capturedSpanScope:s.scope,capturedSpanIsolationScope:s.isolationScope,sampleRate:a,dynamicSamplingContext:M.getDynamicSamplingContextFromSpan(t)})},...i&&{transaction_info:{source:i}},_metrics_summary:M.getMetricSummaryJsonForSpan(t)}}function qL(t,e,r){r.delete(t);let n=t.span;if(!n){t.children.forEach(N=>{qL(N,e,r)});return}let i=n.spanContext().spanId,s=n.spanContext().traceId,{attributes:a,startTime:u,endTime:l,parentSpanId:d}=n,{op:p,description:_,data:f,origin:g="manual"}=i6(n),h=ne.dropUndefinedKeys({[M.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:g,[M.SEMANTIC_ATTRIBUTE_SENTRY_OP]:p,...s6(a),...f}),T=n6(n),v=ne.dropUndefinedKeys({span_id:i,trace_id:s,data:h,description:_,parent_span_id:d,start_timestamp:M.spanTimeInputToSeconds(u),timestamp:M.spanTimeInputToSeconds(l)||void 0,status:M.getStatusMessage(T),op:p,origin:g,_metrics_summary:M.getMetricSummaryJsonForSpan(n),measurements:M.timedEventsToMeasurements(n.events)});e.push(v),t.children.forEach(N=>{qL(N,e,r)})}function i6(t){let{op:e,source:r,origin:n}=Nke(t),{op:o,description:i,source:s,data:a}=KQ(t),u=e||o,l=r||s,d={...a,...Mke(t)};return{op:u,description:i,source:l,origin:n,data:d}}function s6(t){let e={...t};return delete e[M.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE],delete e[BL],e}function Mke(t){let e=t.attributes,r={};t.kind!==U.SpanKind.INTERNAL&&(r["otel.kind"]=U.SpanKind[t.kind]);let n=e[ue.SEMATTRS_HTTP_STATUS_CODE];n&&(r[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=n);let o=VQ(t);return o.url&&(r.url=o.url),o["http.query"]&&(r["http.query"]=o["http.query"].slice(1)),o["http.fragment"]&&(r["http.fragment"]=o["http.fragment"].slice(1)),r}function a6(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function Lke(t,e){let r=U.trace.getSpan(e),n=la(e);r&&!r.spanContext().isRemote&&M.addChildSpanToSpan(r,t),r&&r.spanContext().isRemote&&t.setAttribute(BL,!0),e===U.ROOT_CONTEXT&&(n={scope:M.getDefaultCurrentScope(),isolationScope:M.getDefaultIsolationScope()}),n&&M.setCapturedScopesOnSpan(t,n.scope,n.isolationScope),M.logSpanStart(t);let o=M.getClient();a6([o,"optionalAccess",i=>i.emit,"call",i=>i("spanStart",t)])}function Dke(t){M.logSpanEnd(t);let e=M.getClient();a6([e,"optionalAccess",r=>r.emit,"call",r=>r("spanEnd",t)])}var jL=class{constructor(e){dT("SentrySpanProcessor"),this._exporter=new wL(e)}async forceFlush(){this._exporter.flush()}async shutdown(){this._exporter.clear()}onStart(e,r){Lke(e,r)}onEnd(e){Dke(e),this._exporter.export(e)}},VL=class{constructor(e){this._client=e,dT("SentrySampler")}shouldSample(e,r,n,o,i,s){let a=this._client.getOptions(),u=U.trace.getSpan(e),l=uT([u,"optionalAccess",y=>y.spanContext,"call",y=>y()]);if(!M.hasTracingEnabled(a))return ua({decision:void 0,context:e,spanAttributes:i});let d=i[ue.SEMATTRS_HTTP_METHOD]||i[ue.ATTR_HTTP_REQUEST_METHOD];if(o===U.SpanKind.CLIENT&&d&&(!u||uT([l,"optionalAccess",y=>y.isRemote])))return ua({decision:void 0,context:e,spanAttributes:i});let p=u?xke(u,r,n):void 0,{description:_,data:f,op:g}=YQ(n,i,o),h={...f,...i};g&&(h[M.SEMANTIC_ATTRIBUTE_SENTRY_OP]=g);let T={decision:!0};if(this._client.emit("beforeSampling",{spanAttributes:h,spanName:_,parentSampled:p,parentContext:l},T),!T.decision)return ua({decision:void 0,context:e,spanAttributes:i});let[v,N]=M.sampleSpan(a,{name:_,attributes:h,transactionContext:{name:_,parentSampled:p},parentSampled:p}),D={[M.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:N},L=`${d}`.toUpperCase();return L==="OPTIONS"||L==="HEAD"?(Ti&&ne.logger.log(`[Tracing] Not sampling span because HTTP method is '${L}' for ${n}`),{...ua({decision:Gp.SamplingDecision.NOT_RECORD,context:e,spanAttributes:i}),attributes:D}):v?{...ua({decision:Gp.SamplingDecision.RECORD_AND_SAMPLED,context:e,spanAttributes:i}),attributes:D}:{...ua({decision:Gp.SamplingDecision.NOT_RECORD,context:e,spanAttributes:i}),attributes:D}}toString(){return"SentrySampler"}};function Gke(t){let e=t.spanContext().traceId,r=YL(t);return r&&e===r.traceId?r.sampled:void 0}function xke(t,e,r){let n=t.spanContext();if(U.isSpanContextValid(n)&&n.traceId===e){if(n.isRemote){let i=Gke(t);return Ti&&ne.logger.log(`[Tracing] Inheriting remote parent's sampled decision for ${r}: ${i}`),i}let o=lT(n);return Ti&&ne.logger.log(`[Tracing] Inheriting parent's sampled decision for ${r}: ${o}`),o}}function ua({decision:t,context:e,spanAttributes:r}){let n=Uke(e,r);return t==null?{decision:Gp.SamplingDecision.NOT_RECORD,traceState:n}:t===Gp.SamplingDecision.NOT_RECORD?{decision:t,traceState:n.set(kL,"1")}:{decision:t,traceState:n}}function Uke(t,e){let r=U.trace.getSpan(t),n=uT([r,"optionalAccess",s=>s.spanContext,"call",s=>s()]),o=uT([n,"optionalAccess",s=>s.traceState])||new Si.TraceState,i=e[ue.SEMATTRS_HTTP_URL]||e[ue.ATTR_URL_FULL];return i&&typeof i=="string"&&(o=o.set(HQ,i)),o}function wke(...t){XFe.registerInstrumentations({instrumentations:t})}ee.getClient=M.getClient;ee.getCurrentHubShim=M.getCurrentHubShim;ee.getDynamicSamplingContextFromSpan=M.getDynamicSamplingContextFromSpan;ee.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION=UQ;ee.SentryPropagator=xL;ee.SentrySampler=VL;ee.SentrySpanProcessor=jL;ee.addOpenTelemetryInstrumentation=wke;ee.continueTrace=fke;ee.enhanceDscWithOpenTelemetryRootSpanName=ike;ee.generateSpanContextForPropagationContext=XQ;ee.getActiveSpan=WL;ee.getPropagationContextFromSpan=YL;ee.getRequestSpanData=VQ;ee.getScopesFromContext=la;ee.getSpanKind=BQ;ee.isSentryRequestSpan=eke;ee.openTelemetrySetupCheck=ske;ee.setOpenTelemetryContextAsyncContextStrategy=mke;ee.setupEventContextTrace=hke;ee.spanHasAttributes=xp;ee.spanHasEvents=ZFe;ee.spanHasKind=wQ;ee.spanHasName=HL;ee.spanHasParentId=jQ;ee.spanHasStatus=qQ;ee.startInactiveSpan=QQ;ee.startSpan=JQ;ee.startSpanManual=$Q;ee.suppressTracing=e6;ee.withActiveSpan=KL;ee.wrapClientClass=JFe;ee.wrapContextManagerClass=Tke;ee.wrapSamplingDecision=ua});var Se=c(pT=>{Object.defineProperty(pT,"__esModule",{value:!0});var qke=Oo(),$L={};function jke(t,e){return Object.assign(r=>{let n=$L[t];if(n){r&&n.setConfig(r);return}let o=e(r);$L[t]=o,qke.addOpenTelemetryInstrumentation(o)},{id:t})}pT.INSTRUMENTED=$L;pT.generateInstrumentOnce=jke});var Cn=c(QL=>{Object.defineProperty(QL,"__esModule",{value:!0});var Vke=k();function Bke(t,e){t.setAttribute(Vke.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,e)}QL.addOriginToSpan=Bke});var t0=c(e0=>{Object.defineProperty(e0,"__esModule",{value:!0});function Hke(t){let e=t.protocol||"",r=t.hostname||t.host||"",n=!t.port||t.port===80||t.port===443||/^(.*):(\d+)$/.test(r)?"":`:${t.port}`,o=t.path?t.path:"/";return`${e}//${r}${n}${o}`}e0.getRequestUrl=Hke});var on=c(r0=>{Object.defineProperty(r0,"__esModule",{value:!0});var Fke=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;r0.DEBUG_BUILD=Fke});var l6=c(i0=>{Object.defineProperty(i0,"__esModule",{value:!0});var kke=ae(),n0=Dp(),Wke=My(),_T=k(),Qu=b(),c6=on(),Yke=t0(),u6=1024*1024,o0=class extends n0.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-http",kke.VERSION,e)}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new n0.InstrumentationNodeModuleDefinition("http",["*"],e=>{$u(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction());let r=$u(e,"request",this._getPatchOutgoingRequestFunction());return $u(e,"get",this._getPatchOutgoingGetFunction(r)),e},()=>{})}_getHttpsInstrumentation(){return new n0.InstrumentationNodeModuleDefinition("https",["*"],e=>{$u(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction());let r=$u(e,"request",this._getPatchOutgoingRequestFunction());return $u(e,"get",this._getPatchOutgoingGetFunction(r)),e},()=>{})}_getPatchIncomingRequestFunction(){let e=this;return r=>function(o,...i){if(o!=="request")return r.apply(this,[o,...i]);e._diag.debug("http instrumentation for incoming request");let s=i[0],a=_T.getIsolationScope().clone(),l=s.headers.host||"<no host>",d=s.socket&&s.socket.encrypted?"https":"http",p=s.url||"",_=p.startsWith(d)?p:`${d}://${l}${p}`,f=s.cookies,g={url:_,method:s.method,query_string:Jke(s),headers:$ke(s.headers),cookies:f};zke(s,g),a.setSDKProcessingMetadata({request:s,normalizedRequest:g});let h=_T.getClient();h&&h.getOptions().autoSessionTracking&&a.setRequestSession({status:"ok"});let T=(s.method||"GET").toUpperCase(),v=Qu.stripUrlQueryAndFragment(s.url||"/"),N=`${T} ${v}`;return a.setTransactionName(N),_T.withIsolationScope(a,()=>r.apply(this,[o,...i]))}}_getPatchOutgoingRequestFunction(){let e=this;return r=>function(...o){e._diag.debug("http instrumentation for outgoing requests");let i=[...o],s=i.shift(),a=typeof i[0]=="object"&&(typeof s=="string"||s instanceof URL)?i.shift():void 0,{optionsParsed:u}=Wke.getRequestInfo(s,a),l=r.apply(this,o);return l.prependListener("response",d=>{let p=e.getConfig().breadcrumbs,_=typeof p>"u"?!0:p,f=e.getConfig().ignoreOutgoingRequests,g=typeof f=="function"?!f(Yke.getRequestUrl(l),u):!0;_&&g&&Xke(l,d)}),l}}_getPatchOutgoingGetFunction(e){return r=>function(...o){let i=e(...o);return i.end(),i}}};function $u(t,e,r){let n=t[e],o=r(n);return Kke(t,e,o),o}function Kke(t,e,r){let n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function Xke(t,e){let r=Zke(t),n=e.statusCode,o=Qu.getBreadcrumbLogLevelFromHttpStatusCode(n);_T.addBreadcrumb({category:"http",data:{status_code:n,...r},type:"http",level:o},{event:"response",request:t,response:e})}function Zke(t){try{let e=t.getHeader("host")||t.host,r=new URL(t.path,`${t.protocol}//${e}`),n=Qu.parseUrl(r.toString()),o={url:Qu.getSanitizedUrlString(n),"http.method":t.method||"GET"};return n.search&&(o["http.query"]=n.search),n.hash&&(o["http.fragment"]=n.hash),o}catch{return{}}}function zke(t,e){let r=[];function n(){return r.reduce((i,s)=>i+s.byteLength,0)}let o=new WeakMap;try{t.on=new Proxy(t.on,{apply:(i,s,a)=>{let[u,l,...d]=a;if(u==="data"){let p=new Proxy(l,{apply:(_,f,g)=>{if(n()<u6){let h=g[0];r.push(h)}else c6.DEBUG_BUILD&&Qu.logger.log(`Dropping request body chunk because it maximum body length of ${u6}b is exceeded.`);return Reflect.apply(_,f,g)}});return o.set(l,p),Reflect.apply(i,s,[u,p,...d])}if(u==="end"){let p=new Proxy(l,{apply:(_,f,g)=>{try{let h=Buffer.concat(r).toString("utf-8");h&&(e.data=h)}catch{}return Reflect.apply(_,f,g)}});return o.set(l,p),Reflect.apply(i,s,[u,p,...d])}return Reflect.apply(i,s,a)}}),t.off=new Proxy(t.off,{apply:(i,s,a)=>{let[,u]=a,l=o.get(u);if(l){o.delete(u);let d=a.slice();return d[1]=l,Reflect.apply(i,s,d)}return Reflect.apply(i,s,a)}})}catch{}}function Jke(t){if(t.url)try{let e=new URL(t.url,"http://dogs.are.great").search.slice(1);return e.length?e:void 0}catch{return}}function $ke(t){let e=Object.create(null);try{Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(e[r]=n)})}catch{c6.DEBUG_BUILD&&Qu.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return e}i0.SentryHttpInstrumentation=o0});var fT=c(Up=>{var{_optionalChain:da}=b();Object.defineProperty(Up,"__esModule",{value:!0});var Qke=(P(),m(I)),eWe=My(),tWe=k(),rWe=Oo(),p6=Se(),nWe=Cn(),oWe=t0(),iWe=l6(),s0="Http",d6="@opentelemetry_sentry-patched/instrumentation-http",_6=p6.generateInstrumentOnce(`${s0}.sentry`,t=>new iWe.SentryHttpInstrumentation({breadcrumbs:da([t,"optionalAccess",e=>e.breadcrumbs]),ignoreOutgoingRequests:da([t,"optionalAccess",e=>e.ignoreOutgoingRequests])})),f6=p6.generateInstrumentOnce(s0,t=>{let e=new eWe.HttpInstrumentation(t);try{e._diag=Qke.diag.createComponentLogger({namespace:d6}),e.instrumentationName=d6}catch{}return e}),sWe=(t={})=>{if(t.spans!==!1){let e=dWe(t);f6(e)}_6(t)},aWe=(t={})=>({name:s0,setupOnce(){sWe(t)}}),uWe=tWe.defineIntegration(aWe);function cWe(t){return"outputData"in t&&"outputSize"in t&&!("client"in t)&&!("statusCode"in t)}function lWe(t){return t.headers["next-router-prefetch"]==="1"}function dWe(t={}){return{...da([t,"access",r=>r.instrumentation,"optionalAccess",r=>r._experimentalConfig]),disableIncomingRequestInstrumentation:t.disableIncomingRequestSpans,ignoreOutgoingRequestHook:r=>{let n=oWe.getRequestUrl(r);if(!n)return!1;let o=t.ignoreOutgoingRequests;return!!(o&&o(n,r))},ignoreIncomingRequestHook:r=>{let n=r.url,o=da([r,"access",s=>s.method,"optionalAccess",s=>s.toUpperCase,"call",s=>s()]);if(o==="OPTIONS"||o==="HEAD")return!0;let i=t.ignoreIncomingRequests;return!!(n&&i&&i(n,r))},requireParentforOutgoingSpans:!1,requireParentforIncomingSpans:!1,requestHook:(r,n)=>{nWe.addOriginToSpan(r,"auto.http.otel.http"),!cWe(n)&&lWe(n)&&r.setAttribute("sentry.http.prefetch",!0),da([t,"access",o=>o.instrumentation,"optionalAccess",o=>o.requestHook,"optionalCall",o=>o(r,n)])},responseHook:(r,n)=>{let o=rWe.getClient();o&&o.getOptions().autoSessionTracking&&setImmediate(()=>{o._captureRequestSession()}),da([t,"access",i=>i.instrumentation,"optionalAccess",i=>i.responseHook,"optionalCall",i=>i(r,n)])},applyCustomAttributesOnSpan:(r,n,o)=>{da([t,"access",i=>i.instrumentation,"optionalAccess",i=>i.applyCustomAttributesOnSpan,"optionalCall",i=>i(r,n,o)])}}}Up.httpIntegration=uWe;Up.instrumentOtelHttp=f6;Up.instrumentSentryHttp=_6});var g6=c(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.PACKAGE_NAME=ec.PACKAGE_VERSION=void 0;ec.PACKAGE_VERSION="0.6.0";ec.PACKAGE_NAME="@opentelemetry/instrumentation-undici"});var h6=c(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.SemanticAttributes=void 0;gT.SemanticAttributes={HTTP_CONNECTION_STATE:"http.connection.state",ERROR_TYPE:"error.type",HTTP_REQUEST_BODY_SIZE:"http.request.body.size",HTTP_REQUEST_METHOD:"http.request.method",HTTP_REQUEST_METHOD_ORIGINAL:"http.request.method_original",HTTP_REQUEST_RESEND_COUNT:"http.request.resend_count",HTTP_RESPONSE_BODY_SIZE:"http.response.body.size",HTTP_RESPONSE_STATUS_CODE:"http.response.status_code",HTTP_ROUTE:"http.route",NETWORK_PEER_ADDRESS:"network.peer.address",NETWORK_PEER_PORT:"network.peer.port",NETWORK_PROTOCOL_NAME:"network.protocol.name",NETWORK_PROTOCOL_VERSION:"network.protocol.version",SERVER_ADDRESS:"server.address",SERVER_PORT:"server.port",URL_FULL:"url.full",URL_PATH:"url.path",URL_QUERY:"url.query",URL_SCHEME:"url.scheme",USER_AGENT_ORIGINAL:"user_agent.original"}});var m6=c(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET.UndiciInstrumentation=void 0;var pWe=require("diagnostics_channel"),_We=require("url"),wp=Ke(),Ar=(P(),m(I)),E6=g6(),Be=h6(),hT=ae(),a0=class extends wp.InstrumentationBase{constructor(e={}){super(E6.PACKAGE_NAME,E6.PACKAGE_VERSION,e),this._recordFromReq=new WeakMap}init(){}disable(){super.disable(),this._channelSubs.forEach(e=>e.channel.unsubscribe(e.onMessage)),this._channelSubs.length=0}enable(){super.enable(),this._channelSubs=this._channelSubs||[],!(this._channelSubs.length>0)&&(this.subscribeToChannel("undici:request:create",this.onRequestCreated.bind(this)),this.subscribeToChannel("undici:client:sendHeaders",this.onRequestHeaders.bind(this)),this.subscribeToChannel("undici:request:headers",this.onResponseHeaders.bind(this)),this.subscribeToChannel("undici:request:trailers",this.onDone.bind(this)),this.subscribeToChannel("undici:request:error",this.onError.bind(this)))}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram("http.client.request.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"s",valueType:Ar.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}subscribeToChannel(e,r){let n=pWe.channel(e);n.subscribe(r),this._channelSubs.push({name:e,channel:n,onMessage:r})}onRequestCreated({request:e}){let r=this.getConfig(),n=r.enabled!==!1;if((0,wp.safeExecuteInTheMiddle)(()=>{var y;return!n||e.method==="CONNECT"||((y=r.ignoreRequestHook)===null||y===void 0?void 0:y.call(r,e))},y=>y&&this._diag.error("caught ignoreRequestHook error: ",y),!0))return;let i=(0,hT.hrTime)(),s=new _We.URL(e.origin+e.path),a=s.protocol.replace(":",""),u=this.getRequestMethod(e.method),l={[Be.SemanticAttributes.HTTP_REQUEST_METHOD]:u,[Be.SemanticAttributes.HTTP_REQUEST_METHOD_ORIGINAL]:e.method,[Be.SemanticAttributes.URL_FULL]:s.toString(),[Be.SemanticAttributes.URL_PATH]:s.pathname,[Be.SemanticAttributes.URL_QUERY]:s.search,[Be.SemanticAttributes.URL_SCHEME]:a},d={https:"443",http:"80"},p=s.hostname,_=s.port||d[a];l[Be.SemanticAttributes.SERVER_ADDRESS]=p,_&&!isNaN(Number(_))&&(l[Be.SemanticAttributes.SERVER_PORT]=Number(_));let f;if(Array.isArray(e.headers)){let y=e.headers.findIndex(C=>C.toLowerCase()==="user-agent");y>=0&&(f=e.headers[y+1])}else if(typeof e.headers=="string"){let C=e.headers.split(`\r
27
+ `).find(G=>G.toLowerCase().startsWith("user-agent"));f=C&&C.substring(C.indexOf(":")+1).trim()}f&&(l[Be.SemanticAttributes.USER_AGENT_ORIGINAL]=f);let g=(0,wp.safeExecuteInTheMiddle)(()=>{var y;return(y=r.startSpanHook)===null||y===void 0?void 0:y.call(r,e)},y=>y&&this._diag.error("caught startSpanHook error: ",y),!0);g&&Object.entries(g).forEach(([y,C])=>{l[y]=C});let h=Ar.context.active(),T=Ar.trace.getSpan(h),v;r.requireParentforSpans&&(!T||!Ar.trace.isSpanContextValid(T.spanContext()))?v=Ar.trace.wrapSpanContext(Ar.INVALID_SPAN_CONTEXT):v=this.tracer.startSpan(u==="_OTHER"?"HTTP":u,{kind:Ar.SpanKind.CLIENT,attributes:l},h),(0,wp.safeExecuteInTheMiddle)(()=>{var y;return(y=r.requestHook)===null||y===void 0?void 0:y.call(r,v,e)},y=>y&&this._diag.error("caught requestHook error: ",y),!0);let N=Ar.trace.setSpan(Ar.context.active(),v),D={};Ar.propagation.inject(N,D);let L=Object.entries(D);for(let y=0;y<L.length;y++){let[C,G]=L[y];typeof e.addHeader=="function"?e.addHeader(C,G):typeof e.headers=="string"?e.headers+=`${C}: ${G}\r
28
+ `:Array.isArray(e.headers)&&e.headers.push(C,G)}this._recordFromReq.set(e,{span:v,attributes:l,startTime:i})}onRequestHeaders({request:e,socket:r}){var n;let o=this._recordFromReq.get(e);if(!o)return;let i=this.getConfig(),{span:s}=o,{remoteAddress:a,remotePort:u}=r,l={[Be.SemanticAttributes.NETWORK_PEER_ADDRESS]:a,[Be.SemanticAttributes.NETWORK_PEER_PORT]:u};if(!((n=i.headersToSpanAttributes)===null||n===void 0)&&n.requestHeaders){let d=new Set(i.headersToSpanAttributes.requestHeaders.map(_=>_.toLowerCase())),p=Array.isArray(e.headers)?e.headers:e.headers.split(`\r
29
+ `);p.forEach((_,f)=>{let g=_.indexOf(":"),h=g!==-1,T=(h?_.substring(0,g):_).toLowerCase(),v=h?_.substring(g+1):p[f+1];d.has(T)&&(l[`http.request.header.${T}`]=v.trim())})}s.setAttributes(l)}onResponseHeaders({request:e,response:r}){var n,o;let i=this._recordFromReq.get(e);if(!i)return;let{span:s,attributes:a}=i,u={[Be.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE]:r.statusCode},l=this.getConfig();(0,wp.safeExecuteInTheMiddle)(()=>{var p;return(p=l.responseHook)===null||p===void 0?void 0:p.call(l,s,{request:e,response:r})},p=>p&&this._diag.error("caught responseHook error: ",p),!0);let d=new Set;!((n=l.headersToSpanAttributes)===null||n===void 0)&&n.responseHeaders&&((o=l.headersToSpanAttributes)===null||o===void 0||o.responseHeaders.forEach(p=>d.add(p.toLowerCase())));for(let p=0;p<r.headers.length;p=p+2){let _=r.headers[p].toString().toLowerCase(),f=r.headers[p+1];if(d.has(_)&&(u[`http.response.header.${_}`]=f.toString()),_==="content-length"){let g=Number(f.toString());isNaN(g)||(u["http.response.header.content-length"]=g)}}s.setAttributes(u),s.setStatus({code:r.statusCode>=400?Ar.SpanStatusCode.ERROR:Ar.SpanStatusCode.UNSET}),i.attributes=Object.assign(a,u)}onDone({request:e}){let r=this._recordFromReq.get(e);if(!r)return;let{span:n,attributes:o,startTime:i}=r;n.end(),this._recordFromReq.delete(e),this.recordRequestDuration(o,i)}onError({request:e,error:r}){let n=this._recordFromReq.get(e);if(!n)return;let{span:o,attributes:i,startTime:s}=n;o.recordException(r),o.setStatus({code:Ar.SpanStatusCode.ERROR,message:r.message}),o.end(),this._recordFromReq.delete(e),i[Be.SemanticAttributes.ERROR_TYPE]=r.message,this.recordRequestDuration(i,s)}recordRequestDuration(e,r){let n={};[Be.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE,Be.SemanticAttributes.HTTP_REQUEST_METHOD,Be.SemanticAttributes.SERVER_ADDRESS,Be.SemanticAttributes.SERVER_PORT,Be.SemanticAttributes.URL_SCHEME,Be.SemanticAttributes.ERROR_TYPE].forEach(s=>{s in e&&(n[s]=e[s])});let i=(0,hT.hrTimeToMilliseconds)((0,hT.hrTimeDuration)(r,(0,hT.hrTime)()))/1e3;this._httpClientDurationHistogram.record(i,n)}getRequestMethod(e){let r={CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0};return e.toUpperCase()in r?e.toUpperCase():"_OTHER"}};ET.UndiciInstrumentation=a0});var S6=c(T6=>{"use strict";Object.defineProperty(T6,"__esModule",{value:!0})});var O6=c(Ai=>{"use strict";var fWe=Ai&&Ai.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),A6=Ai&&Ai.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fWe(e,t,r)};Object.defineProperty(Ai,"__esModule",{value:!0});A6(m6(),Ai);A6(S6(),Ai)});var d0=c(l0=>{var{_optionalChain:gWe}=b();Object.defineProperty(l0,"__esModule",{value:!0});var mT=(P(),m(I)),hWe=O6(),qp=k(),u0=Oo(),c0=b(),EWe=(t={})=>{let e=typeof t.breadcrumbs>"u"?!0:t.breadcrumbs,r=t.ignoreOutgoingRequests;return{name:"NodeFetch",setupOnce(){let n=new hWe.UndiciInstrumentation({requireParentforSpans:!1,ignoreRequestHook:o=>{let i=AWe(o.origin,o.path);if(r&&i&&r(i))return!0;if(!qp.hasTracingEnabled()){let a=mT.context.active(),u={},l=mT.trace.getSpan(a),d=l?u0.getPropagationContextFromSpan(l):qp.getCurrentScope().getPropagationContext(),p=u0.generateSpanContextForPropagationContext(d);p.traceState=gWe([p,"access",g=>g.traceState,"optionalAccess",g=>g.set,"call",g=>g("sentry.url",i)]);let _=mT.trace.setSpanContext(a,p);mT.propagation.inject(_,u);let f=o.headers;return Array.isArray(f)?Object.entries(u).forEach(g=>f.push(...g)):o.headers+=Object.entries(u).map(([g,h])=>`${g}: ${h}\r
30
+ `).join(""),!0}return!1},startSpanHook:()=>({[qp.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.node_fetch"}),responseHook:(o,{request:i,response:s})=>{e&&TWe(i,s)}});u0.addOpenTelemetryInstrumentation(n)}}},mWe=qp.defineIntegration(EWe);function TWe(t,e){let r=SWe(t),n=e.statusCode,o=c0.getBreadcrumbLogLevelFromHttpStatusCode(n);qp.addBreadcrumb({category:"http",data:{status_code:n,...r},type:"http",level:o},{event:"response",request:t,response:e})}function SWe(t){try{let e=new URL(t.path,t.origin),r=c0.parseUrl(e.toString()),n={url:c0.getSanitizedUrlString(r),"http.method":t.method||"GET"};return r.search&&(n["http.query"]=r.search),r.hash&&(n["http.fragment"]=r.hash),n}catch{return{}}}function AWe(t,e="/"){let r=`${t}`;return r.endsWith("/")&&e.startsWith("/")?`${r}${e.slice(1)}`:!r.endsWith("/")&&!e.startsWith("/")?`${r}/${e.slice(1)}`:`${r}${e}`}l0.nativeNodeFetchIntegration=mWe});var R6=c(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.SeverityNumber=void 0;var OWe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(OWe=jp.SeverityNumber||(jp.SeverityNumber={}))});var ST=c(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.NOOP_LOGGER=tc.NoopLogger=void 0;var TT=class{emit(e){}};tc.NoopLogger=TT;tc.NOOP_LOGGER=new TT});var OT=c(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.NOOP_LOGGER_PROVIDER=rc.NoopLoggerProvider=void 0;var RWe=ST(),AT=class{getLogger(e,r,n){return new RWe.NoopLogger}};rc.NoopLoggerProvider=AT;rc.NOOP_LOGGER_PROVIDER=new AT});var _0=c(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.ProxyLogger=void 0;var IWe=ST(),p0=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):IWe.NOOP_LOGGER}};RT.ProxyLogger=p0});var g0=c(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.ProxyLoggerProvider=void 0;var PWe=OT(),bWe=_0(),f0=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new bWe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:PWe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};IT.ProxyLoggerProvider=f0});var I6=c(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT._globalThis=void 0;PT._globalThis=typeof globalThis=="object"?globalThis:global});var P6=c(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT._globalThis=void 0;var vWe=I6();Object.defineProperty(bT,"_globalThis",{enumerable:!0,get:function(){return vWe._globalThis}})});var b6=c(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});vT._globalThis=void 0;var yWe=P6();Object.defineProperty(vT,"_globalThis",{enumerable:!0,get:function(){return yWe._globalThis}})});var v6=c(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.API_BACKWARDS_COMPATIBILITY_VERSION=Mn.makeGetter=Mn._global=Mn.GLOBAL_LOGS_API_KEY=void 0;var NWe=b6();Mn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Mn._global=NWe._globalThis;function CWe(t,e,r){return n=>n===t?e:r}Mn.makeGetter=CWe;Mn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var N6=c(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.LogsAPI=void 0;var xr=v6(),MWe=OT(),y6=g0(),h0=class t{constructor(){this._proxyLoggerProvider=new y6.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return xr._global[xr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(xr._global[xr.GLOBAL_LOGS_API_KEY]=(0,xr.makeGetter)(xr.API_BACKWARDS_COMPATIBILITY_VERSION,e,MWe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=xr._global[xr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(xr._global,xr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete xr._global[xr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new y6.ProxyLoggerProvider}};yT.LogsAPI=h0});var E0=c(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.logs=Qe.ProxyLoggerProvider=Qe.ProxyLogger=Qe.NoopLoggerProvider=Qe.NOOP_LOGGER_PROVIDER=Qe.NoopLogger=Qe.NOOP_LOGGER=Qe.SeverityNumber=void 0;var LWe=R6();Object.defineProperty(Qe,"SeverityNumber",{enumerable:!0,get:function(){return LWe.SeverityNumber}});var C6=ST();Object.defineProperty(Qe,"NOOP_LOGGER",{enumerable:!0,get:function(){return C6.NOOP_LOGGER}});Object.defineProperty(Qe,"NoopLogger",{enumerable:!0,get:function(){return C6.NoopLogger}});var M6=OT();Object.defineProperty(Qe,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return M6.NOOP_LOGGER_PROVIDER}});Object.defineProperty(Qe,"NoopLoggerProvider",{enumerable:!0,get:function(){return M6.NoopLoggerProvider}});var DWe=_0();Object.defineProperty(Qe,"ProxyLogger",{enumerable:!0,get:function(){return DWe.ProxyLogger}});var GWe=g0();Object.defineProperty(Qe,"ProxyLoggerProvider",{enumerable:!0,get:function(){return GWe.ProxyLoggerProvider}});var xWe=N6();Qe.logs=xWe.LogsAPI.getInstance()});var L6=c(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.disableInstrumentations=nc.enableInstrumentations=void 0;function UWe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}nc.enableInstrumentations=UWe;function wWe(t){t.forEach(e=>e.disable())}nc.disableInstrumentations=wWe});var x6=c(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0});NT.registerInstrumentations=void 0;var D6=(P(),m(I)),qWe=E0(),G6=L6();function jWe(t){var e,r;let n=t.tracerProvider||D6.trace.getTracerProvider(),o=t.meterProvider||D6.metrics.getMeterProvider(),i=t.loggerProvider||qWe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,G6.enableInstrumentations)(s,n,o,i),()=>{(0,G6.disableInstrumentations)(s)}}NT.registerInstrumentations=jWe});var U6=c(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.InstrumentationAbstract=void 0;var m0=(P(),m(I)),VWe=E0(),CT=le(),T0=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=CT.wrap,this._unwrap=CT.unwrap,this._massWrap=CT.massWrap,this._massUnwrap=CT.massUnwrap,this.setConfig(n),this._diag=m0.diag.createComponentLogger({namespace:e}),this._tracer=m0.trace.getTracer(e,r),this._meter=m0.metrics.getMeter(e,r),this._logger=VWe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};MT.InstrumentationAbstract=T0});var w6=c(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.ModuleNameTrie=Oi.ModuleNameSeparator=void 0;Oi.ModuleNameSeparator="/";var LT=class{constructor(){this.hooks=[],this.children=new Map}},S0=class{constructor(){this._trie=new LT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Oi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new LT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Oi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Oi.ModuleNameTrie=S0});var j6=c(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.RequireInTheMiddleSingleton=void 0;var BWe=de(),q6=require("path"),A0=w6(),HWe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),O0=class t{constructor(){this._moduleNameTrie=new A0.ModuleNameTrie,this._initialize()}_initialize(){new BWe.Hook(null,{internals:!0},(e,r,n)=>{let o=FWe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return HWe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};DT.RequireInTheMiddleSingleton=O0;function FWe(t){return q6.sep!==A0.ModuleNameSeparator?t.split(q6.sep).join(A0.ModuleNameSeparator):t}});var R0=c(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.isWrapped=Ri.safeExecuteInTheMiddleAsync=Ri.safeExecuteInTheMiddle=void 0;function kWe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ri.safeExecuteInTheMiddle=kWe;async function WWe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ri.safeExecuteInTheMiddleAsync=WWe;function YWe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Ri.isWrapped=YWe});var H6=c(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.InstrumentationBase=void 0;var I0=require("path"),V6=require("util"),KWe=Zt(),P0=le(),XWe=U6(),ZWe=j6(),zWe=Jt(),Vp=(P(),m(I)),JWe=de(),$We=require("fs"),QWe=R0(),b0=class extends XWe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=ZWe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,QWe.isWrapped)(i[s])&&this._unwrap(i,s),V6.types.isProxy(i)){let u=(0,P0.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,P0.wrap)(i,s,a)},this._unwrap=(i,s)=>V6.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,P0.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Vp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Vp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Vp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Vp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,$We.readFileSync)(I0.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Vp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return B6(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=I0.normalize(n);return a.filter(d=>d.name===u).filter(d=>B6(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=I0.isAbsolute(e.name)?new JWe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new zWe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};GT.InstrumentationBase=b0;function B6(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,KWe.satisfies)(e,n,{includePrerelease:r}))}});var F6=c(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.normalize=void 0;var eYe=require("path");Object.defineProperty(xT,"normalize",{enumerable:!0,get:function(){return eYe.normalize}})});var k6=c(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.normalize=oc.InstrumentationBase=void 0;var tYe=H6();Object.defineProperty(oc,"InstrumentationBase",{enumerable:!0,get:function(){return tYe.InstrumentationBase}});var rYe=F6();Object.defineProperty(oc,"normalize",{enumerable:!0,get:function(){return rYe.normalize}})});var v0=c(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.normalize=ic.InstrumentationBase=void 0;var W6=k6();Object.defineProperty(ic,"InstrumentationBase",{enumerable:!0,get:function(){return W6.InstrumentationBase}});Object.defineProperty(ic,"normalize",{enumerable:!0,get:function(){return W6.normalize}})});var Y6=c(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.InstrumentationNodeModuleDefinition=void 0;var y0=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};UT.InstrumentationNodeModuleDefinition=y0});var K6=c(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.InstrumentationNodeModuleFile=void 0;var nYe=v0(),N0=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,nYe.normalize)(e)}};wT.InstrumentationNodeModuleFile=N0});var X6=c(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.safeExecuteInTheMiddleAsync=Gt.safeExecuteInTheMiddle=Gt.isWrapped=Gt.InstrumentationNodeModuleFile=Gt.InstrumentationNodeModuleDefinition=Gt.InstrumentationBase=Gt.registerInstrumentations=void 0;var oYe=x6();Object.defineProperty(Gt,"registerInstrumentations",{enumerable:!0,get:function(){return oYe.registerInstrumentations}});var iYe=v0();Object.defineProperty(Gt,"InstrumentationBase",{enumerable:!0,get:function(){return iYe.InstrumentationBase}});var sYe=Y6();Object.defineProperty(Gt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return sYe.InstrumentationNodeModuleDefinition}});var aYe=K6();Object.defineProperty(Gt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return aYe.InstrumentationNodeModuleFile}});var C0=R0();Object.defineProperty(Gt,"isWrapped",{enumerable:!0,get:function(){return C0.isWrapped}});Object.defineProperty(Gt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return C0.safeExecuteInTheMiddle}});Object.defineProperty(Gt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return C0.safeExecuteInTheMiddleAsync}})});var Z6=c(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.PACKAGE_NAME=sc.PACKAGE_VERSION=void 0;sc.PACKAGE_VERSION="0.16.0";sc.PACKAGE_NAME="@opentelemetry/instrumentation-fs"});var z6=c(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.SYNC_FUNCTIONS=Ii.CALLBACK_FUNCTIONS=Ii.PROMISE_FUNCTIONS=void 0;Ii.PROMISE_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"];Ii.CALLBACK_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","exists","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"];Ii.SYNC_FUNCTIONS=["accessSync","appendFileSync","chmodSync","chownSync","copyFileSync","cpSync","existsSync","lchownSync","linkSync","lstatSync","lutimesSync","mkdirSync","mkdtempSync","opendirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","writeFileSync"]});var $6=c(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.indexFs=ac.splitTwoLevels=void 0;function J6(t){let e=t.split(".");if(e.length>1){if(e.length!==2)throw Error(`Invalid member function name ${t}`);return e}else return[t]}ac.splitTwoLevels=J6;function uYe(t,e){if(!e)throw new Error(JSON.stringify({member:e}));let r=J6(e),[n,o]=r;return o?{objectToPatch:t[n],functionNameToPatch:o}:{objectToPatch:t,functionNameToPatch:n}}ac.indexFs=uYe});var e8=c(VT=>{"use strict";Object.defineProperty(VT,"__esModule",{value:!0});VT.FsInstrumentation=void 0;var Pe=(P(),m(I)),Ro=ae(),sn=X6(),Q6=Z6(),Pi=z6(),cYe=require("util"),qT=$6();function jT(t,e){return Object.assign(t,e)}var M0=class extends sn.InstrumentationBase{constructor(e={}){super(Q6.PACKAGE_NAME,Q6.PACKAGE_VERSION,e)}init(){return[new sn.InstrumentationNodeModuleDefinition("fs",["*"],e=>{for(let r of Pi.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,qT.indexFs)(e,r);(0,sn.isWrapped)(n[o])&&this._unwrap(n,o),this._wrap(n,o,this._patchSyncFunction.bind(this,r))}for(let r of Pi.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,qT.indexFs)(e,r);if((0,sn.isWrapped)(n[o])&&this._unwrap(n,o),r==="exists"){this._wrap(n,o,this._patchExistsCallbackFunction.bind(this,r));continue}this._wrap(n,o,this._patchCallbackFunction.bind(this,r))}for(let r of Pi.PROMISE_FUNCTIONS)(0,sn.isWrapped)(e.promises[r])&&this._unwrap(e.promises,r),this._wrap(e.promises,r,this._patchPromiseFunction.bind(this,r));return e},e=>{if(e!==void 0){for(let r of Pi.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,qT.indexFs)(e,r);(0,sn.isWrapped)(n[o])&&this._unwrap(n,o)}for(let r of Pi.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,qT.indexFs)(e,r);(0,sn.isWrapped)(n[o])&&this._unwrap(n,o)}for(let r of Pi.PROMISE_FUNCTIONS)(0,sn.isWrapped)(e.promises[r])&&this._unwrap(e.promises,r)}}),new sn.InstrumentationNodeModuleDefinition("fs/promises",["*"],e=>{for(let r of Pi.PROMISE_FUNCTIONS)(0,sn.isWrapped)(e[r])&&this._unwrap(e,r),this._wrap(e,r,this._patchPromiseFunction.bind(this,r));return e},e=>{if(e!==void 0)for(let r of Pi.PROMISE_FUNCTIONS)(0,sn.isWrapped)(e[r])&&this._unwrap(e,r)})]}_patchSyncFunction(e,r){let n=this;return jT(function(...i){let s=Pe.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Pe.context.with((0,Ro.suppressTracing)(s),r,this,...i);let a=n.tracer.startSpan(`fs ${e}`);try{let u=Pe.context.with((0,Ro.suppressTracing)(Pe.trace.setSpan(s,a)),r,this,...i);return n._runEndHook(e,{args:i,span:a}),u}catch(u){throw a.recordException(u),a.setStatus({message:u.message,code:Pe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:a,error:u}),u}finally{a.end()}},r)}_patchCallbackFunction(e,r){let n=this;return jT(function(...i){let s=Pe.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Pe.context.with((0,Ro.suppressTracing)(s),r,this,...i);let a=i.length-1,u=i[a];if(typeof u=="function"){let l=n.tracer.startSpan(`fs ${e}`);i[a]=Pe.context.bind(s,function(d){return d&&(l.recordException(d),l.setStatus({message:d.message,code:Pe.SpanStatusCode.ERROR})),n._runEndHook(e,{args:i,span:l,error:d}),l.end(),u.apply(this,arguments)});try{return Pe.context.with((0,Ro.suppressTracing)(Pe.trace.setSpan(s,l)),r,this,...i)}catch(d){throw l.recordException(d),l.setStatus({message:d.message,code:Pe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:l,error:d}),l.end(),d}}else return r.apply(this,i)},r)}_patchExistsCallbackFunction(e,r){let n=this,i=jT(function(...a){let u=Pe.context.active();if(!n._shouldTrace(u))return r.apply(this,a);if(n._runCreateHook(e,{args:a})===!1)return Pe.context.with((0,Ro.suppressTracing)(u),r,this,...a);let l=a.length-1,d=a[l];if(typeof d=="function"){let p=n.tracer.startSpan(`fs ${e}`);a[l]=Pe.context.bind(u,function(){return n._runEndHook(e,{args:a,span:p}),p.end(),d.apply(this,arguments)});try{return Pe.context.with((0,Ro.suppressTracing)(Pe.trace.setSpan(u,p)),r,this,...a)}catch(_){throw p.recordException(_),p.setStatus({message:_.message,code:Pe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:a,span:p,error:_}),p.end(),_}}else return r.apply(this,a)},r),s=function(a){return new Promise(u=>i(a,u))};return Object.defineProperty(s,"name",{value:e}),Object.defineProperty(i,cYe.promisify.custom,{value:s}),i}_patchPromiseFunction(e,r){let n=this;return jT(async function(...i){let s=Pe.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Pe.context.with((0,Ro.suppressTracing)(s),r,this,...i);let a=n.tracer.startSpan(`fs ${e}`);try{let u=await Pe.context.with((0,Ro.suppressTracing)(Pe.trace.setSpan(s,a)),r,this,...i);return n._runEndHook(e,{args:i,span:a}),u}catch(u){throw a.recordException(u),a.setStatus({message:u.message,code:Pe.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:a,error:u}),u}finally{a.end()}},r)}_runCreateHook(...e){let{createHook:r}=this.getConfig();if(typeof r=="function")try{return r(...e)}catch(n){this._diag.error("caught createHook error",n)}return!0}_runEndHook(...e){let{endHook:r}=this.getConfig();if(typeof r=="function")try{r(...e)}catch(n){this._diag.error("caught endHook error",n)}}_shouldTrace(e){if((0,Ro.isTracingSuppressed)(e))return!1;let{requireParentSpan:r}=this.getConfig();return!(r&&Pe.trace.getSpan(e)==null)}};VT.FsInstrumentation=M0});var r8=c(t8=>{"use strict";Object.defineProperty(t8,"__esModule",{value:!0})});var o8=c(bi=>{"use strict";var lYe=bi&&bi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),n8=bi&&bi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&lYe(e,t,r)};Object.defineProperty(bi,"__esModule",{value:!0});n8(e8(),bi);n8(r8(),bi)});var s8=c(D0=>{Object.defineProperty(D0,"__esModule",{value:!0});var dYe=o8(),L0=k(),pYe=Se(),i8="FileSystem",_Ye=L0.defineIntegration((t={})=>({name:i8,setupOnce(){pYe.generateInstrumentOnce(i8,()=>new dYe.FsInstrumentation({requireParentSpan:!0,endHook(e,{args:r,span:n,error:o}){n.updateName(`fs.${e}`),n.setAttributes({[L0.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"file",[L0.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.file.fs"}),t.recordErrorMessagesAsSpanAttributes&&(typeof r[0]=="string"&&TYe.includes(e)?n.setAttribute("path_argument",r[0]):typeof r[0]=="string"&&typeof r[1]=="string"&&mYe.includes(e)?(n.setAttribute("target_argument",r[0]),n.setAttribute("path_argument",r[1])):typeof r[0]=="string"&&EYe.includes(e)?n.setAttribute("prefix_argument",r[0]):typeof r[0]=="string"&&typeof r[1]=="string"&&hYe.includes(e)?(n.setAttribute("existing_path_argument",r[0]),n.setAttribute("new_path_argument",r[1])):typeof r[0]=="string"&&typeof r[1]=="string"&&gYe.includes(e)?(n.setAttribute("src_argument",r[0]),n.setAttribute("dest_argument",r[1])):typeof r[0]=="string"&&typeof r[1]=="string"&&fYe.includes(e)&&(n.setAttribute("old_path_argument",r[0]),n.setAttribute("new_path_argument",r[1]))),o&&t.recordErrorMessagesAsSpanAttributes&&n.setAttribute("fs_error",o.message)}}))()}})),fYe=["rename","renameSync"],gYe=["copyFile","cp","copyFileSync","cpSync"],hYe=["link","linkSync"],EYe=["mkdtemp","mkdtempSync"],mYe=["symlink","symlinkSync"],TYe=["access","appendFile","chmod","chown","exists","mkdir","lchown","lstat","lutimes","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rm","rmdir","stat","truncate","unlink","utimes","writeFile","accessSync","appendFileSync","chmodSync","chownSync","existsSync","lchownSync","lstatSync","lutimesSync","opendirSync","mkdirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","rmdirSync","rmSync","statSync","truncateSync","unlinkSync","utimesSync","writeFileSync"];D0.fsIntegration=_Ye});var w0=c(U0=>{Object.defineProperty(U0,"__esModule",{value:!0});var SYe=require("node:util"),G0=k(),x0=b(),AYe="Console",OYe=G0.defineIntegration(()=>({name:AYe,setup(t){x0.addConsoleInstrumentationHandler(({args:e,level:r})=>{G0.getClient()===t&&G0.addBreadcrumb({category:"console",level:x0.severityLevelFromString(r),message:x0.truncate(SYe.format.apply(void 0,e),2048)},{input:[...e],level:r})})}}));U0.consoleIntegration=OYe});var q0=c(pa=>{var{_optionalChain:an}=b();Object.defineProperty(pa,"__esModule",{value:!0});var RYe=require("node:child_process"),u8=require("node:fs"),Ur=require("node:os"),IYe=require("node:path"),c8=require("node:util"),PYe=k(),l8=c8.promisify(u8.readFile),d8=c8.promisify(u8.readdir),bYe="Context",vYe=(t={})=>{let e,r={app:!0,os:!0,device:!0,culture:!0,cloudResource:!0,...t};async function n(i){e===void 0&&(e=o());let s=NYe(await e);return i.contexts={...i.contexts,app:{...s.app,...an([i,"access",a=>a.contexts,"optionalAccess",a=>a.app])},os:{...s.os,...an([i,"access",a=>a.contexts,"optionalAccess",a=>a.os])},device:{...s.device,...an([i,"access",a=>a.contexts,"optionalAccess",a=>a.device])},culture:{...s.culture,...an([i,"access",a=>a.contexts,"optionalAccess",a=>a.culture])},cloud_resource:{...s.cloud_resource,...an([i,"access",a=>a.contexts,"optionalAccess",a=>a.cloud_resource])}},i}async function o(){let i={};if(r.os&&(i.os=await CYe()),r.app&&(i.app=p8()),r.device&&(i.device=_8(r.device)),r.culture){let s=MYe();s&&(i.culture=s)}return r.cloudResource&&(i.cloud_resource=wYe()),i}return{name:bYe,processEvent(i){return n(i)}}},yYe=PYe.defineIntegration(vYe);function NYe(t){if(an([t,"optionalAccess",e=>e.app,"optionalAccess",e=>e.app_memory])&&(t.app.app_memory=process.memoryUsage().rss),an([t,"optionalAccess",e=>e.app,"optionalAccess",e=>e.free_memory])&&typeof process.availableMemory=="function"){let e=an([process,"access",r=>r.availableMemory,"optionalCall",r=>r()]);e!=null&&(t.app.free_memory=e)}return an([t,"optionalAccess",e=>e.device,"optionalAccess",e=>e.free_memory])&&(t.device.free_memory=Ur.freemem()),t}async function CYe(){let t=Ur.platform();switch(t){case"darwin":return xYe();case"linux":return UYe();default:return{name:LYe[t]||t,version:Ur.release()}}}function MYe(){try{if(typeof process.versions.icu!="string")return;let t=new Date(9e8);if(new Intl.DateTimeFormat("es",{month:"long"}).format(t)==="enero"){let r=Intl.DateTimeFormat().resolvedOptions();return{locale:r.locale,timezone:r.timeZone}}}catch{}}function p8(){let t=process.memoryUsage().rss,r={app_start_time:new Date(Date.now()-process.uptime()*1e3).toISOString(),app_memory:t};if(typeof process.availableMemory=="function"){let n=an([process,"access",o=>o.availableMemory,"optionalCall",o=>o()]);n!=null&&(r.free_memory=n)}return r}function _8(t){let e={},r;try{r=Ur.uptime&&Ur.uptime()}catch{}if(typeof r=="number"&&(e.boot_time=new Date(Date.now()-r*1e3).toISOString()),e.arch=Ur.arch(),(t===!0||t.memory)&&(e.memory_size=Ur.totalmem(),e.free_memory=Ur.freemem()),t===!0||t.cpu){let n=Ur.cpus(),o=n&&n[0];o&&(e.processor_count=n.length,e.cpu_description=o.model,e.processor_frequency=o.speed)}return e}var LYe={aix:"IBM AIX",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",win32:"Windows"},DYe=[{name:"fedora-release",distros:["Fedora"]},{name:"redhat-release",distros:["Red Hat Linux","Centos"]},{name:"redhat_version",distros:["Red Hat Linux"]},{name:"SuSE-release",distros:["SUSE Linux"]},{name:"lsb-release",distros:["Ubuntu Linux","Arch Linux"]},{name:"debian_version",distros:["Debian"]},{name:"debian_release",distros:["Debian"]},{name:"arch-release",distros:["Arch Linux"]},{name:"gentoo-release",distros:["Gentoo Linux"]},{name:"novell-release",distros:["SUSE Linux"]},{name:"alpine-release",distros:["Alpine Linux"]}],GYe={alpine:t=>t,arch:t=>Ln(/distrib_release=(.*)/,t),centos:t=>Ln(/release ([^ ]+)/,t),debian:t=>t,fedora:t=>Ln(/release (..)/,t),mint:t=>Ln(/distrib_release=(.*)/,t),red:t=>Ln(/release ([^ ]+)/,t),suse:t=>Ln(/VERSION = (.*)\n/,t),ubuntu:t=>Ln(/distrib_release=(.*)/,t)};function Ln(t,e){let r=t.exec(e);return r?r[1]:void 0}async function xYe(){let t={kernel_version:Ur.release(),name:"Mac OS X",version:`10.${Number(Ur.release().split(".")[0])-4}`};try{let e=await new Promise((r,n)=>{RYe.execFile("/usr/bin/sw_vers",(o,i)=>{if(o){n(o);return}r(i)})});t.name=Ln(/^ProductName:\s+(.*)$/m,e),t.version=Ln(/^ProductVersion:\s+(.*)$/m,e),t.build=Ln(/^BuildVersion:\s+(.*)$/m,e)}catch{}return t}function a8(t){return t.split(" ")[0].toLowerCase()}async function UYe(){let t={kernel_version:Ur.release(),name:"Linux"};try{let e=await d8("/etc"),r=DYe.find(a=>e.includes(a.name));if(!r)return t;let n=IYe.join("/etc",r.name),o=(await l8(n,{encoding:"utf-8"})).toLowerCase(),{distros:i}=r;t.name=i.find(a=>o.indexOf(a8(a))>=0)||i[0];let s=a8(t.name);t.version=an([GYe,"access",a=>a[s],"optionalCall",a=>a(o)])}catch{}return t}function wYe(){return process.env.VERCEL?{"cloud.provider":"vercel","cloud.region":process.env.VERCEL_REGION}:process.env.AWS_REGION?{"cloud.provider":"aws","cloud.region":process.env.AWS_REGION,"cloud.platform":process.env.AWS_EXECUTION_ENV}:process.env.GCP_PROJECT?{"cloud.provider":"gcp"}:process.env.ALIYUN_REGION_ID?{"cloud.provider":"alibaba_cloud","cloud.region":process.env.ALIYUN_REGION_ID}:process.env.WEBSITE_SITE_NAME&&process.env.REGION_NAME?{"cloud.provider":"azure","cloud.region":process.env.REGION_NAME}:process.env.IBM_CLOUD_REGION?{"cloud.provider":"ibm_cloud","cloud.region":process.env.IBM_CLOUD_REGION}:process.env.TENCENTCLOUD_REGION?{"cloud.provider":"tencent_cloud","cloud.region":process.env.TENCENTCLOUD_REGION,"cloud.account.id":process.env.TENCENTCLOUD_APPID,"cloud.availability_zone":process.env.TENCENTCLOUD_ZONE}:process.env.NETLIFY?{"cloud.provider":"netlify"}:process.env.FLY_REGION?{"cloud.provider":"fly.io","cloud.region":process.env.FLY_REGION}:process.env.DYNO?{"cloud.provider":"heroku"}:void 0}pa.getAppContext=p8;pa.getDeviceContext=_8;pa.nodeContextIntegration=yYe;pa.readDirAsync=d8;pa.readFileAsync=l8});var V0=c(_a=>{var{_optionalChain:BT}=b();Object.defineProperty(_a,"__esModule",{value:!0});var qYe=require("node:fs"),jYe=require("node:readline"),VYe=k(),vi=b(),Bp=on(),j0=new vi.LRUMap(10),h8=new vi.LRUMap(20),BYe=7,HYe="ContextLines",E8=1e3,m8=1e4;function FYe(t,e,r){let n=t.get(e);return n===void 0?(t.set(e,r),r):n}function kYe(t){return!!(t.startsWith("node:")||t.endsWith(".min.js")||t.endsWith(".min.cjs")||t.endsWith(".min.mjs")||t.startsWith("data:"))}function WYe(t){return t.lineno!==void 0&&t.lineno>m8||t.colno!==void 0&&t.colno>E8}function YYe(t,e){let r=j0.get(t);if(r===void 0)return!1;for(let n=e[0];n<=e[1];n++)if(r[n]===void 0)return!1;return!0}function KYe(t,e){if(!t.length)return[];let r=0,n=t[0];if(typeof n!="number")return[];let o=g8(n,e),i=[];for(;;){if(r===t.length-1){i.push(o);break}let s=t[r+1];if(typeof s!="number")break;s<=o[1]?o[1]=s+e:(i.push(o),o=g8(s,e)),r++}return i}function XYe(t,e,r){return new Promise((n,o)=>{let i=qYe.createReadStream(t),s=jYe.createInterface({input:i}),a=0,u=0,l=e[u];if(l===void 0){n();return}let d=l[0],p=l[1];function _(f){h8.set(t,1),Bp.DEBUG_BUILD&&vi.logger.error(`Failed to read file: ${t}. Error: ${f}`),s.close(),s.removeAllListeners(),n()}i.on("error",_),s.on("error",_),s.on("close",n),s.on("line",f=>{if(a++,!(a<d)&&(r[a]=vi.snipLine(f,0),a>=p)){if(u===e.length-1){s.close(),s.removeAllListeners();return}u++;let g=e[u];if(g===void 0){s.close(),s.removeAllListeners();return}d=g[0],p=g[1]}})})}async function ZYe(t,e){let r={};if(e>0&&BT([t,"access",i=>i.exception,"optionalAccess",i=>i.values])){for(let i of t.exception.values)if(BT([i,"access",s=>s.stacktrace,"optionalAccess",s=>s.frames,"optionalAccess",s=>s.length]))for(let s=i.stacktrace.frames.length-1;s>=0;s--){let a=i.stacktrace.frames[s],u=BT([a,"optionalAccess",d=>d.filename]);if(!a||typeof u!="string"||typeof a.lineno!="number"||kYe(u)||WYe(a))continue;r[u]||(r[u]=[]),r[u].push(a.lineno)}}let n=Object.keys(r);if(n.length==0)return t;let o=[];for(let i of n){if(h8.get(i))continue;let s=r[i];if(!s)continue;s.sort((l,d)=>l-d);let a=KYe(s,e);if(a.every(l=>YYe(i,l)))continue;let u=FYe(j0,i,{});o.push(XYe(i,a,u))}if(await Promise.all(o).catch(()=>{Bp.DEBUG_BUILD&&vi.logger.log("Failed to read one or more source files and resolve context lines")}),e>0&&BT([t,"access",i=>i.exception,"optionalAccess",i=>i.values]))for(let i of t.exception.values)i.stacktrace&&i.stacktrace.frames&&i.stacktrace.frames.length>0&&zYe(i.stacktrace.frames,e,j0);return t}function zYe(t,e,r){for(let n of t)if(n.filename&&n.context_line===void 0&&typeof n.lineno=="number"){let o=r.get(n.filename);if(o===void 0)continue;T8(n.lineno,n,e,o)}}function f8(t){delete t.pre_context,delete t.context_line,delete t.post_context}function T8(t,e,r,n){if(e.lineno===void 0||n===void 0){Bp.DEBUG_BUILD&&vi.logger.error("Cannot resolve context for frame with no lineno or file contents");return}e.pre_context=[];for(let i=S8(t,r);i<t;i++){let s=n[i];if(s===void 0){f8(e),Bp.DEBUG_BUILD&&vi.logger.error(`Could not find line ${i} in file ${e.filename}`);return}e.pre_context.push(s)}if(n[t]===void 0){f8(e),Bp.DEBUG_BUILD&&vi.logger.error(`Could not find line ${t} in file ${e.filename}`);return}e.context_line=n[t];let o=A8(t,r);e.post_context=[];for(let i=t+1;i<=o;i++){let s=n[i];if(s===void 0)break;e.post_context.push(s)}}function S8(t,e){return Math.max(1,t-e)}function A8(t,e){return t+e}function g8(t,e){return[S8(t,e),A8(t,e)]}var O8=(t={})=>{let e=t.frameContextLines!==void 0?t.frameContextLines:BYe;return{name:HYe,processEvent(r){return ZYe(r,e)}}},JYe=VYe.defineIntegration(O8);_a.MAX_CONTEXTLINES_COLNO=E8;_a.MAX_CONTEXTLINES_LINENO=m8;_a._contextLinesIntegration=O8;_a.addContextToFrame=T8;_a.contextLinesIntegration=JYe});var FT=c(HT=>{Object.defineProperty(HT,"__esModule",{value:!0});var $Ye=b(),R8=$Ye.parseSemver(process.versions.node),QYe=R8.major;HT.NODE_MAJOR=QYe;HT.NODE_VERSION=R8});var H0=c(uc=>{Object.defineProperty(uc,"__esModule",{value:!0});var eKe="__SENTRY_ERROR_LOCAL_VARIABLES__";function tKe(t,e,r){let n=0,o=5,i=0;return setInterval(()=>{i===0?n>t&&(o*=2,r(o),o>86400&&(o=86400),i=o):(i-=1,i===0&&e()),n=0},1e3).unref(),()=>{n+=1}}function B0(t){return t!==void 0&&(t.length===0||t==="?"||t==="<anonymous>")}function rKe(t,e){return t===e||B0(t)&&B0(e)}uc.LOCAL_VARIABLES_KEY=eKe;uc.createRateLimiter=tKe;uc.functionNamesMatch=rKe;uc.isAnonymous=B0});var v8=c(WT=>{var{_optionalChain:I8}=b();Object.defineProperty(WT,"__esModule",{value:!0});var nKe=require("node:worker_threads"),oKe=k(),kT=b(),Hp=H0(),b8="LyohIEBzZW50cnkvbm9kZSA4LjM5LjAgKGM1MjQ3OGQpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyBlfWZyb20ibm9kZTppbnNwZWN0b3IvcHJvbWlzZXMiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIHR9ZnJvbSJub2RlOndvcmtlcl90aHJlYWRzIjtjb25zdCBuPSI4LjM5LjAiLG89Z2xvYmFsVGhpcztjb25zdCBpPSJ1bmRlZmluZWQiPT10eXBlb2YgX19TRU5UUllfREVCVUdfX3x8X19TRU5UUllfREVCVUdfXyxhPVsiZGVidWciLCJpbmZvIiwid2FybiIsImVycm9yIiwibG9nIiwiYXNzZXJ0IiwidHJhY2UiXSxzPXt9O2Z1bmN0aW9uIGMoZSl7aWYoISgiY29uc29sZSJpbiBvKSlyZXR1cm4gZSgpO2NvbnN0IHQ9by5jb25zb2xlLG49e30saT1PYmplY3Qua2V5cyhzKTtpLmZvckVhY2goKGU9Pntjb25zdCBvPXNbZV07bltlXT10W2VdLHRbZV09b30pKTt0cnl7cmV0dXJuIGUoKX1maW5hbGx5e2kuZm9yRWFjaCgoZT0+e3RbZV09bltlXX0pKX19IWZ1bmN0aW9uKGUsdCxpKXtjb25zdCBhPW8scz1hLl9fU0VOVFJZX189YS5fX1NFTlRSWV9ffHx7fSxjPXNbbl09c1tuXXx8e307Y1tlXXx8KGNbZV09dCgpKX0oImxvZ2dlciIsKGZ1bmN0aW9uKCl7bGV0IGU9ITE7Y29uc3QgdD17ZW5hYmxlOigpPT57ZT0hMH0sZGlzYWJsZTooKT0+e2U9ITF9LGlzRW5hYmxlZDooKT0+ZX07cmV0dXJuIGk/YS5mb3JFYWNoKChuPT57dFtuXT0oLi4udCk9PntlJiZjKCgoKT0+e28uY29uc29sZVtuXShgU2VudHJ5IExvZ2dlciBbJHtufV06YCwuLi50KX0pKX19KSk6YS5mb3JFYWNoKChlPT57dFtlXT0oKT0+e319KSksdH0pKTtjb25zdCByPSJfX1NFTlRSWV9FUlJPUl9MT0NBTF9WQVJJQUJMRVNfXyI7Y29uc3QgdT10O2Z1bmN0aW9uIGwoLi4uZSl7dS5kZWJ1ZyYmYygoKCk9PmNvbnNvbGUubG9nKCJbTG9jYWxWYXJpYWJsZXMgV29ya2VyXSIsLi4uZSkpKX1hc3luYyBmdW5jdGlvbiBmKGUsdCxuLG8pe2NvbnN0IGk9YXdhaXQgZS5wb3N0KCJSdW50aW1lLmdldFByb3BlcnRpZXMiLHtvYmplY3RJZDp0LG93blByb3BlcnRpZXM6ITB9KTtvW25dPWkucmVzdWx0LmZpbHRlcigoZT0+Imxlbmd0aCIhPT1lLm5hbWUmJiFpc05hTihwYXJzZUludChlLm5hbWUsMTApKSkpLnNvcnQoKChlLHQpPT5wYXJzZUludChlLm5hbWUsMTApLXBhcnNlSW50KHQubmFtZSwxMCkpKS5tYXAoKGU9PmUudmFsdWU/LnZhbHVlKSl9YXN5bmMgZnVuY3Rpb24gZyhlLHQsbixvKXtjb25zdCBpPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSk7b1tuXT1pLnJlc3VsdC5tYXAoKGU9PltlLm5hbWUsZS52YWx1ZT8udmFsdWVdKSkucmVkdWNlKCgoZSxbdCxuXSk9PihlW3RdPW4sZSkpLHt9KX1mdW5jdGlvbiBkKGUsdCl7ZS52YWx1ZSYmKCJ2YWx1ZSJpbiBlLnZhbHVlP3ZvaWQgMD09PWUudmFsdWUudmFsdWV8fG51bGw9PT1lLnZhbHVlLnZhbHVlP3RbZS5uYW1lXT1gPCR7ZS52YWx1ZS52YWx1ZX0+YDp0W2UubmFtZV09ZS52YWx1ZS52YWx1ZToiZGVzY3JpcHRpb24iaW4gZS52YWx1ZSYmImZ1bmN0aW9uIiE9PWUudmFsdWUudHlwZT90W2UubmFtZV09YDwke2UudmFsdWUuZGVzY3JpcHRpb259PmA6InVuZGVmaW5lZCI9PT1lLnZhbHVlLnR5cGUmJih0W2UubmFtZV09Ijx1bmRlZmluZWQ+IikpfWFzeW5jIGZ1bmN0aW9uIGIoZSx0KXtjb25zdCBuPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSksbz17fTtmb3IoY29uc3QgdCBvZiBuLnJlc3VsdClpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJBcnJheSI9PT10Py52YWx1ZS5jbGFzc05hbWUpe2NvbnN0IG49dC52YWx1ZS5vYmplY3RJZDthd2FpdCBmKGUsbix0Lm5hbWUsbyl9ZWxzZSBpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJPYmplY3QiPT09dD8udmFsdWU/LmNsYXNzTmFtZSl7Y29uc3Qgbj10LnZhbHVlLm9iamVjdElkO2F3YWl0IGcoZSxuLHQubmFtZSxvKX1lbHNlIHQ/LnZhbHVlJiZkKHQsbyk7cmV0dXJuIG99bGV0IHA7KGFzeW5jIGZ1bmN0aW9uKCl7Y29uc3QgdD1uZXcgZTt0LmNvbm5lY3RUb01haW5UaHJlYWQoKSxsKCJDb25uZWN0ZWQgdG8gbWFpbiB0aHJlYWQiKTtsZXQgbj0hMTt0Lm9uKCJEZWJ1Z2dlci5yZXN1bWVkIiwoKCk9PntuPSExfSkpLHQub24oIkRlYnVnZ2VyLnBhdXNlZCIsKGU9PntuPSEwLGFzeW5jIGZ1bmN0aW9uKGUse3JlYXNvbjp0LGRhdGE6e29iamVjdElkOm59LGNhbGxGcmFtZXM6b30pe2lmKCJleGNlcHRpb24iIT09dCYmInByb21pc2VSZWplY3Rpb24iIT09dClyZXR1cm47aWYocD8uKCksbnVsbD09bilyZXR1cm47Y29uc3QgaT1bXTtmb3IobGV0IHQ9MDt0PG8ubGVuZ3RoO3QrKyl7Y29uc3R7c2NvcGVDaGFpbjpuLGZ1bmN0aW9uTmFtZTphLHRoaXM6c309b1t0XSxjPW4uZmluZCgoZT0+ImxvY2FsIj09PWUudHlwZSkpLHI9Imdsb2JhbCIhPT1zLmNsYXNzTmFtZSYmcy5jbGFzc05hbWU/YCR7cy5jbGFzc05hbWV9LiR7YX1gOmE7aWYodm9pZCAwPT09Yz8ub2JqZWN0Lm9iamVjdElkKWlbdF09e2Z1bmN0aW9uOnJ9O2Vsc2V7Y29uc3Qgbj1hd2FpdCBiKGUsYy5vYmplY3Qub2JqZWN0SWQpO2lbdF09e2Z1bmN0aW9uOnIsdmFyczpufX19YXdhaXQgZS5wb3N0KCJSdW50aW1lLmNhbGxGdW5jdGlvbk9uIix7ZnVuY3Rpb25EZWNsYXJhdGlvbjpgZnVuY3Rpb24oKSB7IHRoaXMuJHtyfSA9IHRoaXMuJHtyfSB8fCAke0pTT04uc3RyaW5naWZ5KGkpfTsgfWAsc2lsZW50OiEwLG9iamVjdElkOm59KSxhd2FpdCBlLnBvc3QoIlJ1bnRpbWUucmVsZWFzZU9iamVjdCIse29iamVjdElkOm59KX0odCxlLnBhcmFtcykudGhlbigoYXN5bmMoKT0+e24mJmF3YWl0IHQucG9zdCgiRGVidWdnZXIucmVzdW1lIil9KSwoYXN5bmMgZT0+e24mJmF3YWl0IHQucG9zdCgiRGVidWdnZXIucmVzdW1lIil9KSl9KSksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5lbmFibGUiKTtjb25zdCBvPSExIT09dS5jYXB0dXJlQWxsRXhjZXB0aW9ucztpZihhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6bz8iYWxsIjoidW5jYXVnaHQifSksbyl7Y29uc3QgZT11Lm1heEV4Y2VwdGlvbnNQZXJTZWNvbmR8fDUwO3A9ZnVuY3Rpb24oZSx0LG4pe2xldCBvPTAsaT01LGE9MDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57MD09PWE/bz5lJiYoaSo9MixuKGkpLGk+ODY0MDAmJihpPTg2NDAwKSxhPWkpOihhLT0xLDA9PT1hJiZ0KCkpLG89MH0pLDFlMykudW5yZWYoKSwoKT0+e28rPTF9fShlLChhc3luYygpPT57bCgiUmF0ZS1saW1pdCBsaWZ0ZWQuIiksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5zZXRQYXVzZU9uRXhjZXB0aW9ucyIse3N0YXRlOiJhbGwifSl9KSwoYXN5bmMgZT0+e2woYFJhdGUtbGltaXQgZXhjZWVkZWQuIERpc2FibGluZyBjYXB0dXJpbmcgb2YgY2F1Z2h0IGV4Y2VwdGlvbnMgZm9yICR7ZX0gc2Vjb25kcy5gKSxhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6InVuY2F1Z2h0In0pfSkpfX0pKCkuY2F0Y2goKGU9PntsKCJGYWlsZWQgdG8gc3RhcnQgZGVidWdnZXIiLGUpfSkpLHNldEludGVydmFsKCgoKT0+e30pLDFlNCk7";function P8(...t){kT.logger.log("[LocalVariables]",...t)}var iKe=oKe.defineIntegration((t={})=>{function e(i,s){let a=(I8([i,"access",u=>u.stacktrace,"optionalAccess",u=>u.frames])||[]).filter(u=>u.function!=="new Promise");for(let u=0;u<a.length;u++){let l=a.length-u-1,d=s[u],p=a[l];if(!p||!d)break;d.vars===void 0||p.in_app===!1||!Hp.functionNamesMatch(p.function,d.function)||(p.vars=d.vars)}}function r(i,s){if(s.originalException&&typeof s.originalException=="object"&&Hp.LOCAL_VARIABLES_KEY in s.originalException&&Array.isArray(s.originalException[Hp.LOCAL_VARIABLES_KEY])){for(let a of I8([i,"access",u=>u.exception,"optionalAccess",u=>u.values])||[])e(a,s.originalException[Hp.LOCAL_VARIABLES_KEY]);s.originalException[Hp.LOCAL_VARIABLES_KEY]=void 0}return i}async function n(){let i=await import("node:inspector");i.url()||i.open(0)}function o(i){let s=new nKe.Worker(new URL(`data:application/javascript;base64,${b8}`),{workerData:i,execArgv:[]});process.on("exit",()=>{s.terminate()}),s.once("error",a=>{P8("Worker error",a)}),s.once("exit",a=>{P8("Worker exit",a)}),s.unref()}return{name:"LocalVariablesAsync",setup(i){if(!i.getOptions().includeLocalVariables)return;let a={...t,debug:kT.logger.isEnabled()};n().then(()=>{try{o(a)}catch(u){kT.logger.error("Failed to start worker",u)}},u=>{kT.logger.error("Failed to start inspector",u)})},processEvent(i,s){return r(i,s)}}});WT.base64WorkerScript=b8;WT.localVariablesAsyncIntegration=iKe});var M8=c(cc=>{var{_optionalChain:et}=b();Object.defineProperty(cc,"__esModule",{value:!0});var N8=k(),Fp=b(),sKe=FT(),y8=H0();function k0(t){if(t!==void 0)return t.slice(-10).reduce((e,r)=>`${e},${r.function},${r.lineno},${r.colno}`,"")}function C8(t,e){if(e!==void 0)return k0(t(e,1))}function W0(t){let e=[],r=!1;function n(s){e=[],!r&&(r=!0,t(s))}e.push(n);function o(s){e.push(s)}function i(s){let a=e.pop()||n;try{a(s)}catch{n(s)}}return{add:o,next:i}}var F0=class t{constructor(e){this._session=e}static async create(e){if(e)return e;let r=await import("node:inspector");return new t(new r.Session)}configureAndConnect(e,r){this._session.connect(),this._session.on("Debugger.paused",n=>{e(n,()=>{this._session.post("Debugger.resume")})}),this._session.post("Debugger.enable"),this._session.post("Debugger.setPauseOnExceptions",{state:r?"all":"uncaught"})}setPauseOnExceptions(e){this._session.post("Debugger.setPauseOnExceptions",{state:e?"all":"uncaught"})}getLocalVariables(e,r){this._getProperties(e,n=>{let{add:o,next:i}=W0(r);for(let s of n)if(et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.objectId])&&et([s,"optionalAccess",a=>a.value,"access",a=>a.className])==="Array"){let a=s.value.objectId;o(u=>this._unrollArray(a,s.name,u,i))}else if(et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.objectId])&&et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.className])==="Object"){let a=s.value.objectId;o(u=>this._unrollObject(a,s.name,u,i))}else et([s,"optionalAccess",a=>a.value])&&o(a=>this._unrollOther(s,a,i));i({})})}_getProperties(e,r){this._session.post("Runtime.getProperties",{objectId:e,ownProperties:!0},(n,o)=>{r(n?[]:o.result)})}_unrollArray(e,r,n,o){this._getProperties(e,i=>{n[r]=i.filter(s=>s.name!=="length"&&!isNaN(parseInt(s.name,10))).sort((s,a)=>parseInt(s.name,10)-parseInt(a.name,10)).map(s=>et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.value])),o(n)})}_unrollObject(e,r,n,o){this._getProperties(e,i=>{n[r]=i.map(s=>[s.name,et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.value])]).reduce((s,[a,u])=>(s[a]=u,s),{}),o(n)})}_unrollOther(e,r,n){e.value&&("value"in e.value?e.value.value===void 0||e.value.value===null?r[e.name]=`<${e.value.value}>`:r[e.name]=e.value.value:"description"in e.value&&e.value.type!=="function"?r[e.name]=`<${e.value.description}>`:e.value.type==="undefined"&&(r[e.name]="<undefined>")),n(r)}},aKe="LocalVariables",uKe=(t={},e)=>{let r=new Fp.LRUMap(20),n,o=!1;function i(a){let u=k0(et([a,"optionalAccess",p=>p.stacktrace,"optionalAccess",p=>p.frames]));if(u===void 0)return;let l=r.remove(u);if(l===void 0)return;let d=(et([a,"access",p=>p.stacktrace,"optionalAccess",p=>p.frames])||[]).filter(p=>p.function!=="new Promise");for(let p=0;p<d.length;p++){let _=d.length-p-1,f=l[p],g=d[_];if(!g||!f)break;f.vars===void 0||g.in_app===!1||!y8.functionNamesMatch(g.function,f.function)||(g.vars=f.vars)}}function s(a){for(let u of et([a,"optionalAccess",l=>l.exception,"optionalAccess",l=>l.values])||[])i(u);return a}return{name:aKe,setupOnce(){let a=N8.getClient(),u=et([a,"optionalAccess",d=>d.getOptions,"call",d=>d()]);if(!et([u,"optionalAccess",d=>d.includeLocalVariables]))return;if(sKe.NODE_MAJOR<18){Fp.logger.log("The `LocalVariables` integration is only supported on Node >= v18.");return}F0.create(e).then(d=>{function p(f,{params:{reason:g,data:h,callFrames:T}},v){if(g!=="exception"&&g!=="promiseRejection"){v();return}et([n,"optionalCall",y=>y()]);let N=C8(f,et([h,"optionalAccess",y=>y.description]));if(N==null){v();return}let{add:D,next:L}=W0(y=>{r.set(N,y),v()});for(let y=0;y<Math.min(T.length,5);y++){let{scopeChain:C,functionName:G,this:K}=T[y],Q=C.find(x=>x.type==="local"),Ue=K.className==="global"||!K.className?G:`${K.className}.${G}`;if(et([Q,"optionalAccess",x=>x.object,"access",x=>x.objectId])===void 0)D(x=>{x[y]={function:Ue},L(x)});else{let x=Q.object.objectId;D(V=>et([d,"optionalAccess",ie=>ie.getLocalVariables,"call",ie=>ie(x,z=>{V[y]={function:Ue,vars:z},L(V)})]))}}L([])}let _=t.captureAllExceptions!==!1;if(d.configureAndConnect((f,g)=>p(u.stackParser,f,g),_),_){let f=t.maxExceptionsPerSecond||50;n=y8.createRateLimiter(f,()=>{Fp.logger.log("Local variables rate-limit lifted."),et([d,"optionalAccess",g=>g.setPauseOnExceptions,"call",g=>g(!0)])},g=>{Fp.logger.log(`Local variables rate-limit exceeded. Disabling capturing of caught exceptions for ${g} seconds.`),et([d,"optionalAccess",h=>h.setPauseOnExceptions,"call",h=>h(!1)])})}o=!0},d=>{Fp.logger.log("The `LocalVariables` integration failed to start.",d)})},processEvent(a){return o?s(a):a},_getCachedFramesCount(){return r.size},_getFirstCachedFrame(){return r.values()[0]}}},cKe=N8.defineIntegration(uKe);cc.createCallbackList=W0;cc.hashFrames=k0;cc.hashFromStack=C8;cc.localVariablesSyncIntegration=cKe});var K0=c(Y0=>{Object.defineProperty(Y0,"__esModule",{value:!0});var lKe=FT(),dKe=v8(),pKe=M8(),_Ke=(t={})=>lKe.NODE_VERSION.major<19?pKe.localVariablesSyncIntegration(t):dKe.localVariablesAsyncIntegration(t);Y0.localVariablesIntegration=_Ke});var lc=c(X0=>{Object.defineProperty(X0,"__esModule",{value:!0});function fKe(){return typeof require<"u"}X0.isCjs=fKe});var J0=c(z0=>{Object.defineProperty(z0,"__esModule",{value:!0});var L8=require("node:fs"),D8=require("node:path"),gKe=k(),hKe=b(),EKe=on(),mKe=lc(),Z0,G8="Modules",TKe=()=>mKe.isCjs()?{name:G8,processEvent(t){return t.modules={...t.modules,...RKe()},t}}:(EKe.DEBUG_BUILD&&hKe.logger.warn("modulesIntegration only works in CommonJS (CJS) environments. Remove this integration if you are using ESM."),{name:G8}),SKe=gKe.defineIntegration(TKe);function AKe(){try{return require.cache?Object.keys(require.cache):[]}catch{return[]}}function OKe(){let t=require.main&&require.main.paths||[],e=AKe(),r={},n={};return e.forEach(o=>{let i=o,s=()=>{let a=i;if(i=D8.dirname(a),!i||a===i||n[a])return;if(t.indexOf(i)<0)return s();let u=D8.join(a,"package.json");if(n[a]=!0,!L8.existsSync(u))return s();try{let l=JSON.parse(L8.readFileSync(u,"utf8"));r[l.name]=l.version}catch{}};s()}),r}function RKe(){return Z0||(Z0=OKe()),Z0}z0.modulesIntegration=SKe});var e1=c(Q0=>{Object.defineProperty(Q0,"__esModule",{value:!0});var IKe=k(),YT=b(),$0=on(),PKe=2e3;function bKe(t){YT.consoleSandbox(()=>{console.error(t)});let e=IKe.getClient();if(e===void 0){$0.DEBUG_BUILD&&YT.logger.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1);return}let r=e.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||PKe;e.close(n).then(o=>{o||$0.DEBUG_BUILD&&YT.logger.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)},o=>{$0.DEBUG_BUILD&&YT.logger.error(o)})}Q0.logAndExitProcess=bKe});var r1=c(KT=>{Object.defineProperty(KT,"__esModule",{value:!0});var t1=k(),vKe=b(),yKe=on(),x8=e1(),NKe="OnUncaughtException",CKe=t1.defineIntegration((t={})=>{let e={exitEvenIfOtherHandlersAreRegistered:!1,...t};return{name:NKe,setup(r){global.process.on("uncaughtException",U8(r,e))}}});function U8(t,e){let n=!1,o=!1,i=!1,s,a=t.getOptions();return Object.assign(u=>{let l=x8.logAndExitProcess;e.onFatalError?l=e.onFatalError:a.onFatalError&&(l=a.onFatalError);let p=global.process.listeners("uncaughtException").filter(f=>f.name!=="domainUncaughtExceptionClear"&&f.tag!=="sentry_tracingErrorCallback"&&f._errorHandler!==!0).length===0,_=e.exitEvenIfOtherHandlersAreRegistered||p;n?_&&(i?(yKe.DEBUG_BUILD&&vKe.logger.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),x8.logAndExitProcess(u)):o||(o=!0,setTimeout(()=>{i||(i=!0,l(s,u))},2e3))):(s=u,n=!0,t1.getClient()===t&&t1.captureException(u,{originalException:u,captureContext:{level:"fatal"},mechanism:{handled:!1,type:"onuncaughtexception"}}),!i&&_&&(i=!0,l(u)))},{_errorHandler:!0})}KT.makeErrorHandler=U8;KT.onUncaughtExceptionIntegration=CKe});var o1=c(XT=>{Object.defineProperty(XT,"__esModule",{value:!0});var n1=k(),w8=b(),MKe=e1(),LKe="OnUnhandledRejection",DKe=(t={})=>{let e=t.mode||"warn";return{name:LKe,setup(r){global.process.on("unhandledRejection",q8(r,{mode:e}))}}},GKe=n1.defineIntegration(DKe);function q8(t,e){return function(n,o){n1.getClient()===t&&(n1.captureException(n,{originalException:o,captureContext:{extra:{unhandledPromiseRejection:!0}},mechanism:{handled:!1,type:"onunhandledrejection"}}),xKe(n,e))}}function xKe(t,e){let r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";e.mode==="warn"?w8.consoleSandbox(()=>{console.warn(r),console.error(t&&t.stack?t.stack:t)}):e.mode==="strict"&&(w8.consoleSandbox(()=>{console.warn(r)}),MKe.logAndExitProcess(t))}XT.makeUnhandledPromiseHandler=q8;XT.onUnhandledRejectionIntegration=GKe});var H8=c(ZT=>{var{_optionalChain:UKe,_optionalChainDelete:j8}=b();Object.defineProperty(ZT,"__esModule",{value:!0});var V8=require("node:diagnostics_channel"),wKe=require("node:worker_threads"),yi=k(),kp=b(),i1=FT(),B8="LyohIEBzZW50cnkvbm9kZSA4LjM5LjAgKGM1MjQ3OGQpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyB0fWZyb20ibm9kZTppbnNwZWN0b3IiO2ltcG9ydHtwYXJlbnRQb3J0IGFzIG4sd29ya2VyRGF0YSBhcyBlfWZyb20ibm9kZTp3b3JrZXJfdGhyZWFkcyI7aW1wb3J0e3Bvc2l4IGFzIHIsc2VwIGFzIG99ZnJvbSJub2RlOnBhdGgiO2ltcG9ydCphcyBzIGZyb20ibm9kZTpodHRwIjtpbXBvcnQqYXMgaSBmcm9tIm5vZGU6aHR0cHMiO2ltcG9ydHtSZWFkYWJsZSBhcyBjfWZyb20ibm9kZTpzdHJlYW0iO2ltcG9ydHtjcmVhdGVHemlwIGFzIHV9ZnJvbSJub2RlOnpsaWIiO2ltcG9ydCphcyBhIGZyb20ibm9kZTpuZXQiO2ltcG9ydCphcyBmIGZyb20ibm9kZTp0bHMiO2NvbnN0IGg9T2JqZWN0LnByb3RvdHlwZS50b1N0cmluZztmdW5jdGlvbiBwKHQsbil7cmV0dXJuIGguY2FsbCh0KT09PWBbb2JqZWN0ICR7bn1dYH1mdW5jdGlvbiBsKHQpe3JldHVybiBwKHQsIlN0cmluZyIpfWZ1bmN0aW9uIGQodCl7cmV0dXJuIHAodCwiT2JqZWN0Iil9ZnVuY3Rpb24gbSh0KXtyZXR1cm4gQm9vbGVhbih0JiZ0LnRoZW4mJiJmdW5jdGlvbiI9PXR5cGVvZiB0LnRoZW4pfWZ1bmN0aW9uIHkodCxuKXt0cnl7cmV0dXJuIHQgaW5zdGFuY2VvZiBufWNhdGNoKHQpe3JldHVybiExfX1jb25zdCBnPSI4LjM5LjAiLGI9Z2xvYmFsVGhpcztmdW5jdGlvbiBfKHQsbixlKXtjb25zdCByPWIsbz1yLl9fU0VOVFJZX189ci5fX1NFTlRSWV9ffHx7fSxzPW9bZ109b1tnXXx8e307cmV0dXJuIHNbdF18fChzW3RdPW4oKSl9Y29uc3Qgdj1iLHc9ODA7ZnVuY3Rpb24gUyh0LG4pe2NvbnN0IGU9dCxyPVtdO2lmKCFlfHwhZS50YWdOYW1lKXJldHVybiIiO2lmKHYuSFRNTEVsZW1lbnQmJmUgaW5zdGFuY2VvZiBIVE1MRWxlbWVudCYmZS5kYXRhc2V0KXtpZihlLmRhdGFzZXQuc2VudHJ5Q29tcG9uZW50KXJldHVybiBlLmRhdGFzZXQuc2VudHJ5Q29tcG9uZW50O2lmKGUuZGF0YXNldC5zZW50cnlFbGVtZW50KXJldHVybiBlLmRhdGFzZXQuc2VudHJ5RWxlbWVudH1yLnB1c2goZS50YWdOYW1lLnRvTG93ZXJDYXNlKCkpO2NvbnN0IG89biYmbi5sZW5ndGg/bi5maWx0ZXIoKHQ9PmUuZ2V0QXR0cmlidXRlKHQpKSkubWFwKCh0PT5bdCxlLmdldEF0dHJpYnV0ZSh0KV0pKTpudWxsO2lmKG8mJm8ubGVuZ3RoKW8uZm9yRWFjaCgodD0+e3IucHVzaChgWyR7dFswXX09IiR7dFsxXX0iXWApfSkpO2Vsc2V7ZS5pZCYmci5wdXNoKGAjJHtlLmlkfWApO2NvbnN0IHQ9ZS5jbGFzc05hbWU7aWYodCYmbCh0KSl7Y29uc3Qgbj10LnNwbGl0KC9ccysvKTtmb3IoY29uc3QgdCBvZiBuKXIucHVzaChgLiR7dH1gKX19Y29uc3Qgcz1bImFyaWEtbGFiZWwiLCJ0eXBlIiwibmFtZSIsInRpdGxlIiwiYWx0Il07Zm9yKGNvbnN0IHQgb2Ygcyl7Y29uc3Qgbj1lLmdldEF0dHJpYnV0ZSh0KTtuJiZyLnB1c2goYFske3R9PSIke259Il1gKX1yZXR1cm4gci5qb2luKCIiKX1jb25zdCAkPSJ1bmRlZmluZWQiPT10eXBlb2YgX19TRU5UUllfREVCVUdfX3x8X19TRU5UUllfREVCVUdfXyxFPVsiZGVidWciLCJpbmZvIiwid2FybiIsImVycm9yIiwibG9nIiwiYXNzZXJ0IiwidHJhY2UiXSx4PXt9O2Z1bmN0aW9uIE4odCl7aWYoISgiY29uc29sZSJpbiBiKSlyZXR1cm4gdCgpO2NvbnN0IG49Yi5jb25zb2xlLGU9e30scj1PYmplY3Qua2V5cyh4KTtyLmZvckVhY2goKHQ9Pntjb25zdCByPXhbdF07ZVt0XT1uW3RdLG5bdF09cn0pKTt0cnl7cmV0dXJuIHQoKX1maW5hbGx5e3IuZm9yRWFjaCgodD0+e25bdF09ZVt0XX0pKX19Y29uc3QgQz1fKCJsb2dnZXIiLChmdW5jdGlvbigpe2xldCB0PSExO2NvbnN0IG49e2VuYWJsZTooKT0+e3Q9ITB9LGRpc2FibGU6KCk9Pnt0PSExfSxpc0VuYWJsZWQ6KCk9PnR9O3JldHVybiAkP0UuZm9yRWFjaCgoZT0+e25bZV09KC4uLm4pPT57dCYmTigoKCk9PntiLmNvbnNvbGVbZV0oYFNlbnRyeSBMb2dnZXIgWyR7ZX1dOmAsLi4ubil9KSl9fSkpOkUuZm9yRWFjaCgodD0+e25bdF09KCk9Pnt9fSkpLG59KSk7ZnVuY3Rpb24gVCh0LG49ITEpe2NvbnN0e2hvc3Q6ZSxwYXRoOnIscGFzczpvLHBvcnQ6cyxwcm9qZWN0SWQ6aSxwcm90b2NvbDpjLHB1YmxpY0tleTp1fT10O3JldHVybmAke2N9Oi8vJHt1fSR7biYmbz9gOiR7b31gOiIifUAke2V9JHtzP2A6JHtzfWA6IiJ9LyR7cj9gJHtyfS9gOnJ9JHtpfWB9Y2xhc3MgayBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQsbj0id2FybiIpe3N1cGVyKHQpLHRoaXMubWVzc2FnZT10LHRoaXMubmFtZT1uZXcudGFyZ2V0LnByb3RvdHlwZS5jb25zdHJ1Y3Rvci5uYW1lLE9iamVjdC5zZXRQcm90b3R5cGVPZih0aGlzLG5ldy50YXJnZXQucHJvdG90eXBlKSx0aGlzLmxvZ0xldmVsPW59fWZ1bmN0aW9uIFIodCl7aWYoZnVuY3Rpb24odCl7c3dpdGNoKGguY2FsbCh0KSl7Y2FzZSJbb2JqZWN0IEVycm9yXSI6Y2FzZSJbb2JqZWN0IEV4Y2VwdGlvbl0iOmNhc2UiW29iamVjdCBET01FeGNlcHRpb25dIjpjYXNlIltvYmplY3QgV2ViQXNzZW1ibHkuRXhjZXB0aW9uXSI6cmV0dXJuITA7ZGVmYXVsdDpyZXR1cm4geSh0LEVycm9yKX19KHQpKXJldHVybnttZXNzYWdlOnQubWVzc2FnZSxuYW1lOnQubmFtZSxzdGFjazp0LnN0YWNrLC4uLkQodCl9O2lmKG49dCwidW5kZWZpbmVkIiE9dHlwZW9mIEV2ZW50JiZ5KG4sRXZlbnQpKXtjb25zdCBuPXt0eXBlOnQudHlwZSx0YXJnZXQ6aih0LnRhcmdldCksY3VycmVudFRhcmdldDpqKHQuY3VycmVudFRhcmdldCksLi4uRCh0KX07cmV0dXJuInVuZGVmaW5lZCIhPXR5cGVvZiBDdXN0b21FdmVudCYmeSh0LEN1c3RvbUV2ZW50KSYmKG4uZGV0YWlsPXQuZGV0YWlsKSxufXJldHVybiB0O3ZhciBufWZ1bmN0aW9uIGoodCl7dHJ5e3JldHVybiBuPXQsInVuZGVmaW5lZCIhPXR5cGVvZiBFbGVtZW50JiZ5KG4sRWxlbWVudCk/ZnVuY3Rpb24odCxuPXt9KXtpZighdClyZXR1cm4iPHVua25vd24+Ijt0cnl7bGV0IGU9dDtjb25zdCByPTUsbz1bXTtsZXQgcz0wLGk9MDtjb25zdCBjPSIgPiAiLHU9Yy5sZW5ndGg7bGV0IGE7Y29uc3QgZj1BcnJheS5pc0FycmF5KG4pP246bi5rZXlBdHRycyxoPSFBcnJheS5pc0FycmF5KG4pJiZuLm1heFN0cmluZ0xlbmd0aHx8dztmb3IoO2UmJnMrKzxyJiYoYT1TKGUsZiksISgiaHRtbCI9PT1hfHxzPjEmJmkrby5sZW5ndGgqdSthLmxlbmd0aD49aCkpOylvLnB1c2goYSksaSs9YS5sZW5ndGgsZT1lLnBhcmVudE5vZGU7cmV0dXJuIG8ucmV2ZXJzZSgpLmpvaW4oYyl9Y2F0Y2godCl7cmV0dXJuIjx1bmtub3duPiJ9fSh0KTpPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwodCl9Y2F0Y2godCl7cmV0dXJuIjx1bmtub3duPiJ9dmFyIG59ZnVuY3Rpb24gRCh0KXtpZigib2JqZWN0Ij09dHlwZW9mIHQmJm51bGwhPT10KXtjb25zdCBuPXt9O2Zvcihjb25zdCBlIGluIHQpT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHQsZSkmJihuW2VdPXRbZV0pO3JldHVybiBufXJldHVybnt9fWZ1bmN0aW9uIE8odCl7cmV0dXJuIEEodCxuZXcgTWFwKX1mdW5jdGlvbiBBKHQsbil7aWYoZnVuY3Rpb24odCl7aWYoIWQodCkpcmV0dXJuITE7dHJ5e2NvbnN0IG49T2JqZWN0LmdldFByb3RvdHlwZU9mKHQpLmNvbnN0cnVjdG9yLm5hbWU7cmV0dXJuIW58fCJPYmplY3QiPT09bn1jYXRjaCh0KXtyZXR1cm4hMH19KHQpKXtjb25zdCBlPW4uZ2V0KHQpO2lmKHZvaWQgMCE9PWUpcmV0dXJuIGU7Y29uc3Qgcj17fTtuLnNldCh0LHIpO2Zvcihjb25zdCBlIG9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzKHQpKXZvaWQgMCE9PXRbZV0mJihyW2VdPUEodFtlXSxuKSk7cmV0dXJuIHJ9aWYoQXJyYXkuaXNBcnJheSh0KSl7Y29uc3QgZT1uLmdldCh0KTtpZih2b2lkIDAhPT1lKXJldHVybiBlO2NvbnN0IHI9W107cmV0dXJuIG4uc2V0KHQsciksdC5mb3JFYWNoKCh0PT57ci5wdXNoKEEodCxuKSl9KSkscn1yZXR1cm4gdH1jb25zdCBJPTUwLFA9Ij8iLFU9L2NhcHR1cmVNZXNzYWdlfGNhcHR1cmVFeGNlcHRpb24vO2Z1bmN0aW9uIE0odCl7cmV0dXJuIHRbdC5sZW5ndGgtMV18fHt9fWNvbnN0IEw9Ijxhbm9ueW1vdXM+Ijtjb25zdCBCPTFlMztmdW5jdGlvbiBHKCl7cmV0dXJuIERhdGUubm93KCkvQn1jb25zdCBKPWZ1bmN0aW9uKCl7Y29uc3R7cGVyZm9ybWFuY2U6dH09YjtpZighdHx8IXQubm93KXJldHVybiBHO2NvbnN0IG49RGF0ZS5ub3coKS10Lm5vdygpLGU9bnVsbD09dC50aW1lT3JpZ2luP246dC50aW1lT3JpZ2luO3JldHVybigpPT4oZSt0Lm5vdygpKS9CfSgpO2Z1bmN0aW9uIFkoKXtjb25zdCB0PWIsbj10LmNyeXB0b3x8dC5tc0NyeXB0bztsZXQgZT0oKT0+MTYqTWF0aC5yYW5kb20oKTt0cnl7aWYobiYmbi5yYW5kb21VVUlEKXJldHVybiBuLnJhbmRvbVVVSUQoKS5yZXBsYWNlKC8tL2csIiIpO24mJm4uZ2V0UmFuZG9tVmFsdWVzJiYoZT0oKT0+e2NvbnN0IHQ9bmV3IFVpbnQ4QXJyYXkoMSk7cmV0dXJuIG4uZ2V0UmFuZG9tVmFsdWVzKHQpLHRbMF19KX1jYXRjaCh0KXt9cmV0dXJuKFsxZTddKzFlMys0ZTMrOGUzKzFlMTEpLnJlcGxhY2UoL1swMThdL2csKHQ9Pih0XigxNSZlKCkpPj50LzQpLnRvU3RyaW5nKDE2KSkpfWZ1bmN0aW9uIHoodCxuPTEwMCxlPTEvMCl7dHJ5e3JldHVybiBIKCIiLHQsbixlKX1jYXRjaCh0KXtyZXR1cm57RVJST1I6YCoqbm9uLXNlcmlhbGl6YWJsZSoqICgke3R9KWB9fX1mdW5jdGlvbiBIKHQsbixlPTEvMCxyPTEvMCxvPWZ1bmN0aW9uKCl7Y29uc3QgdD0iZnVuY3Rpb24iPT10eXBlb2YgV2Vha1NldCxuPXQ/bmV3IFdlYWtTZXQ6W107cmV0dXJuW2Z1bmN0aW9uKGUpe2lmKHQpcmV0dXJuISFuLmhhcyhlKXx8KG4uYWRkKGUpLCExKTtmb3IobGV0IHQ9MDt0PG4ubGVuZ3RoO3QrKylpZihuW3RdPT09ZSlyZXR1cm4hMDtyZXR1cm4gbi5wdXNoKGUpLCExfSxmdW5jdGlvbihlKXtpZih0KW4uZGVsZXRlKGUpO2Vsc2UgZm9yKGxldCB0PTA7dDxuLmxlbmd0aDt0KyspaWYoblt0XT09PWUpe24uc3BsaWNlKHQsMSk7YnJlYWt9fV19KCkpe2NvbnN0W3MsaV09bztpZihudWxsPT1ufHxbImJvb2xlYW4iLCJzdHJpbmciXS5pbmNsdWRlcyh0eXBlb2Ygbil8fCJudW1iZXIiPT10eXBlb2YgbiYmTnVtYmVyLmlzRmluaXRlKG4pKXJldHVybiBuO2NvbnN0IGM9ZnVuY3Rpb24odCxuKXt0cnl7aWYoImRvbWFpbiI9PT10JiZuJiYib2JqZWN0Ij09dHlwZW9mIG4mJm4udClyZXR1cm4iW0RvbWFpbl0iO2lmKCJkb21haW5FbWl0dGVyIj09PXQpcmV0dXJuIltEb21haW5FbWl0dGVyXSI7aWYoInVuZGVmaW5lZCIhPXR5cGVvZiBnbG9iYWwmJm49PT1nbG9iYWwpcmV0dXJuIltHbG9iYWxdIjtpZigidW5kZWZpbmVkIiE9dHlwZW9mIHdpbmRvdyYmbj09PXdpbmRvdylyZXR1cm4iW1dpbmRvd10iO2lmKCJ1bmRlZmluZWQiIT10eXBlb2YgZG9jdW1lbnQmJm49PT1kb2N1bWVudClyZXR1cm4iW0RvY3VtZW50XSI7aWYoIm9iamVjdCI9PXR5cGVvZihlPW4pJiZudWxsIT09ZSYmKGUuX19pc1Z1ZXx8ZS5vKSlyZXR1cm4iW1Z1ZVZpZXdNb2RlbF0iO2lmKGZ1bmN0aW9uKHQpe3JldHVybiBkKHQpJiYibmF0aXZlRXZlbnQiaW4gdCYmInByZXZlbnREZWZhdWx0ImluIHQmJiJzdG9wUHJvcGFnYXRpb24iaW4gdH0obikpcmV0dXJuIltTeW50aGV0aWNFdmVudF0iO2lmKCJudW1iZXIiPT10eXBlb2YgbiYmIU51bWJlci5pc0Zpbml0ZShuKSlyZXR1cm5gWyR7bn1dYDtpZigiZnVuY3Rpb24iPT10eXBlb2YgbilyZXR1cm5gW0Z1bmN0aW9uOiAke2Z1bmN0aW9uKHQpe3RyeXtyZXR1cm4gdCYmImZ1bmN0aW9uIj09dHlwZW9mIHQmJnQubmFtZXx8TH1jYXRjaCh0KXtyZXR1cm4gTH19KG4pfV1gO2lmKCJzeW1ib2wiPT10eXBlb2YgbilyZXR1cm5gWyR7U3RyaW5nKG4pfV1gO2lmKCJiaWdpbnQiPT10eXBlb2YgbilyZXR1cm5gW0JpZ0ludDogJHtTdHJpbmcobil9XWA7Y29uc3Qgcj1mdW5jdGlvbih0KXtjb25zdCBuPU9iamVjdC5nZXRQcm90b3R5cGVPZih0KTtyZXR1cm4gbj9uLmNvbnN0cnVjdG9yLm5hbWU6Im51bGwgcHJvdG90eXBlIn0obik7cmV0dXJuL15IVE1MKFx3KilFbGVtZW50JC8udGVzdChyKT9gW0hUTUxFbGVtZW50OiAke3J9XWA6YFtvYmplY3QgJHtyfV1gfWNhdGNoKHQpe3JldHVybmAqKm5vbi1zZXJpYWxpemFibGUqKiAoJHt0fSlgfXZhciBlfSh0LG4pO2lmKCFjLnN0YXJ0c1dpdGgoIltvYmplY3QgIikpcmV0dXJuIGM7aWYobi5fX3NlbnRyeV9za2lwX25vcm1hbGl6YXRpb25fXylyZXR1cm4gbjtjb25zdCB1PSJudW1iZXIiPT10eXBlb2Ygbi5fX3NlbnRyeV9vdmVycmlkZV9ub3JtYWxpemF0aW9uX2RlcHRoX18/bi5fX3NlbnRyeV9vdmVycmlkZV9ub3JtYWxpemF0aW9uX2RlcHRoX186ZTtpZigwPT09dSlyZXR1cm4gYy5yZXBsYWNlKCJvYmplY3QgIiwiIik7aWYocyhuKSlyZXR1cm4iW0NpcmN1bGFyIH5dIjtjb25zdCBhPW47aWYoYSYmImZ1bmN0aW9uIj09dHlwZW9mIGEudG9KU09OKXRyeXtyZXR1cm4gSCgiIixhLnRvSlNPTigpLHUtMSxyLG8pfWNhdGNoKHQpe31jb25zdCBmPUFycmF5LmlzQXJyYXkobik/W106e307bGV0IGg9MDtjb25zdCBwPVIobik7Zm9yKGNvbnN0IHQgaW4gcCl7aWYoIU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChwLHQpKWNvbnRpbnVlO2lmKGg+PXIpe2ZbdF09IltNYXhQcm9wZXJ0aWVzIH5dIjticmVha31jb25zdCBuPXBbdF07Zlt0XT1IKHQsbix1LTEscixvKSxoKyt9cmV0dXJuIGkobiksZn1mdW5jdGlvbiBXKHQsbil7Y29uc3QgZT1uLnJlcGxhY2UoL1xcL2csIi8iKS5yZXBsYWNlKC9bfFxce30oKVtcXV4kKyo/Ll0vZywiXFwkJiIpO2xldCByPXQ7dHJ5e3I9ZGVjb2RlVVJJKHQpfWNhdGNoKHQpe31yZXR1cm4gci5yZXBsYWNlKC9cXC9nLCIvIikucmVwbGFjZSgvd2VicGFjazpcLz8vZywiIikucmVwbGFjZShuZXcgUmVnRXhwKGAoZmlsZTovLyk/Lyoke2V9LypgLCJpZyIpLCJhcHA6Ly8vIil9KCgpPT57Y29uc3R7cGVyZm9ybWFuY2U6dH09YjtpZighdHx8IXQubm93KXJldHVybjtjb25zdCBuPTM2ZTUsZT10Lm5vdygpLHI9RGF0ZS5ub3coKSxvPXQudGltZU9yaWdpbj9NYXRoLmFicyh0LnRpbWVPcmlnaW4rZS1yKTpuLHM9bzxuLGk9dC50aW1pbmcmJnQudGltaW5nLm5hdmlnYXRpb25TdGFydCxjPSJudW1iZXIiPT10eXBlb2YgaT9NYXRoLmFicyhpK2Utcik6bjsoc3x8YzxuKSYmKG88PWMmJnQudGltZU9yaWdpbil9KSgpO2NvbnN0IEY9L14oXFMrOlxcfFwvPykoW1xzXFNdKj8pKCg/OlwuezEsMn18W14vXFxdKz98KShcLlteLi9cXF0qfCkpKD86Wy9cXF0qKSQvO2Z1bmN0aW9uIEsodCl7Y29uc3Qgbj1mdW5jdGlvbih0KXtjb25zdCBuPXQubGVuZ3RoPjEwMjQ/YDx0cnVuY2F0ZWQ+JHt0LnNsaWNlKC0xMDI0KX1gOnQsZT1GLmV4ZWMobik7cmV0dXJuIGU/ZS5zbGljZSgxKTpbXX0odCksZT1uWzBdfHwiIjtsZXQgcj1uWzFdO3JldHVybiBlfHxyPyhyJiYocj1yLnNsaWNlKDAsci5sZW5ndGgtMSkpLGUrcik6Ii4ifXZhciBWO2Z1bmN0aW9uIFoodCl7cmV0dXJuIG5ldyBxKChuPT57bih0KX0pKX0hZnVuY3Rpb24odCl7dFt0LlBFTkRJTkc9MF09IlBFTkRJTkciO3RbdC5SRVNPTFZFRD0xXT0iUkVTT0xWRUQiO3RbdC5SRUpFQ1RFRD0yXT0iUkVKRUNURUQifShWfHwoVj17fSkpO2NsYXNzIHF7Y29uc3RydWN0b3IodCl7cS5wcm90b3R5cGUuX19pbml0LmNhbGwodGhpcykscS5wcm90b3R5cGUuX19pbml0Mi5jYWxsKHRoaXMpLHEucHJvdG90eXBlLl9faW5pdDMuY2FsbCh0aGlzKSxxLnByb3RvdHlwZS5fX2luaXQ0LmNhbGwodGhpcyksdGhpcy5pPVYuUEVORElORyx0aGlzLnU9W107dHJ5e3QodGhpcy5oLHRoaXMucCl9Y2F0Y2godCl7dGhpcy5wKHQpfX10aGVuKHQsbil7cmV0dXJuIG5ldyBxKCgoZSxyKT0+e3RoaXMudS5wdXNoKFshMSxuPT57aWYodCl0cnl7ZSh0KG4pKX1jYXRjaCh0KXtyKHQpfWVsc2UgZShuKX0sdD0+e2lmKG4pdHJ5e2Uobih0KSl9Y2F0Y2godCl7cih0KX1lbHNlIHIodCl9XSksdGhpcy5sKCl9KSl9Y2F0Y2godCl7cmV0dXJuIHRoaXMudGhlbigodD0+dCksdCl9ZmluYWxseSh0KXtyZXR1cm4gbmV3IHEoKChuLGUpPT57bGV0IHIsbztyZXR1cm4gdGhpcy50aGVuKChuPT57bz0hMSxyPW4sdCYmdCgpfSksKG49PntvPSEwLHI9bix0JiZ0KCl9KSkudGhlbigoKCk9PntvP2Uocik6bihyKX0pKX0pKX1fX2luaXQoKXt0aGlzLmg9dD0+e3RoaXMubShWLlJFU09MVkVELHQpfX1fX2luaXQyKCl7dGhpcy5wPXQ9Pnt0aGlzLm0oVi5SRUpFQ1RFRCx0KX19X19pbml0Mygpe3RoaXMubT0odCxuKT0+e3RoaXMuaT09PVYuUEVORElORyYmKG0obik/bi50aGVuKHRoaXMuaCx0aGlzLnApOih0aGlzLmk9dCx0aGlzLl89bix0aGlzLmwoKSkpfX1fX2luaXQ0KCl7dGhpcy5sPSgpPT57aWYodGhpcy5pPT09Vi5QRU5ESU5HKXJldHVybjtjb25zdCB0PXRoaXMudS5zbGljZSgpO3RoaXMudT1bXSx0LmZvckVhY2goKHQ9Pnt0WzBdfHwodGhpcy5pPT09Vi5SRVNPTFZFRCYmdFsxXSh0aGlzLl8pLHRoaXMuaT09PVYuUkVKRUNURUQmJnRbMl0odGhpcy5fKSx0WzBdPSEwKX0pKX19fWZ1bmN0aW9uIFEodCl7Y29uc3Qgbj1bXTtmdW5jdGlvbiBlKHQpe3JldHVybiBuLnNwbGljZShuLmluZGV4T2YodCksMSlbMF18fFByb21pc2UucmVzb2x2ZSh2b2lkIDApfXJldHVybnskOm4sYWRkOmZ1bmN0aW9uKHIpe2lmKCEodm9pZCAwPT09dHx8bi5sZW5ndGg8dCkpcmV0dXJuIG89bmV3IGsoIk5vdCBhZGRpbmcgUHJvbWlzZSBiZWNhdXNlIGJ1ZmZlciBsaW1pdCB3YXMgcmVhY2hlZC4iKSxuZXcgcSgoKHQsbik9PntuKG8pfSkpO3ZhciBvO2NvbnN0IHM9cigpO3JldHVybi0xPT09bi5pbmRleE9mKHMpJiZuLnB1c2gocykscy50aGVuKCgoKT0+ZShzKSkpLnRoZW4obnVsbCwoKCk9PmUocykudGhlbihudWxsLCgoKT0+e30pKSkpLHN9LGRyYWluOmZ1bmN0aW9uKHQpe3JldHVybiBuZXcgcSgoKGUscik9PntsZXQgbz1uLmxlbmd0aDtpZighbylyZXR1cm4gZSghMCk7Y29uc3Qgcz1zZXRUaW1lb3V0KCgoKT0+e3QmJnQ+MCYmZSghMSl9KSx0KTtuLmZvckVhY2goKHQ9PntaKHQpLnRoZW4oKCgpPT57LS1vfHwoY2xlYXJUaW1lb3V0KHMpLGUoITApKX0pLHIpfSkpfSkpfX19ZnVuY3Rpb24gWCh0LG49ITEpe3JldHVybiEobnx8dCYmIXQuc3RhcnRzV2l0aCgiLyIpJiYhdC5tYXRjaCgvXltBLVpdOi8pJiYhdC5zdGFydHNXaXRoKCIuIikmJiF0Lm1hdGNoKC9eW2EtekEtWl0oW2EtekEtWjAtOS5cLStdKSo6XC9cLy8pKSYmdm9pZCAwIT09dCYmIXQuaW5jbHVkZXMoIm5vZGVfbW9kdWxlcy8iKX1jb25zdCB0dD0ic2VudHJ5LSIsbnQ9L15zZW50cnktLztmdW5jdGlvbiBldCh0KXtjb25zdCBuPWZ1bmN0aW9uKHQpe2lmKCF0fHwhbCh0KSYmIUFycmF5LmlzQXJyYXkodCkpcmV0dXJuO2lmKEFycmF5LmlzQXJyYXkodCkpcmV0dXJuIHQucmVkdWNlKCgodCxuKT0+e2NvbnN0IGU9cnQobik7cmV0dXJuIE9iamVjdC5lbnRyaWVzKGUpLmZvckVhY2goKChbbixlXSk9Pnt0W25dPWV9KSksdH0pLHt9KTtyZXR1cm4gcnQodCl9KHQpO2lmKCFuKXJldHVybjtjb25zdCBlPU9iamVjdC5lbnRyaWVzKG4pLnJlZHVjZSgoKHQsW24sZV0pPT57aWYobi5tYXRjaChudCkpe3Rbbi5zbGljZSh0dC5sZW5ndGgpXT1lfXJldHVybiB0fSkse30pO3JldHVybiBPYmplY3Qua2V5cyhlKS5sZW5ndGg+MD9lOnZvaWQgMH1mdW5jdGlvbiBydCh0KXtyZXR1cm4gdC5zcGxpdCgiLCIpLm1hcCgodD0+dC5zcGxpdCgiPSIpLm1hcCgodD0+ZGVjb2RlVVJJQ29tcG9uZW50KHQudHJpbSgpKSkpKSkucmVkdWNlKCgodCxbbixlXSk9PihuJiZlJiYodFtuXT1lKSx0KSkse30pfWZ1bmN0aW9uIG90KHQsbj1bXSl7cmV0dXJuW3Qsbl19ZnVuY3Rpb24gc3QodCxuKXtjb25zdCBlPXRbMV07Zm9yKGNvbnN0IHQgb2YgZSl7aWYobih0LHRbMF0udHlwZSkpcmV0dXJuITB9cmV0dXJuITF9ZnVuY3Rpb24gaXQodCl7cmV0dXJuIGIuX19TRU5UUllfXyYmYi5fX1NFTlRSWV9fLmVuY29kZVBvbHlmaWxsP2IuX19TRU5UUllfXy5lbmNvZGVQb2x5ZmlsbCh0KToobmV3IFRleHRFbmNvZGVyKS5lbmNvZGUodCl9ZnVuY3Rpb24gY3QodCl7Y29uc3RbbixlXT10O2xldCByPUpTT04uc3RyaW5naWZ5KG4pO2Z1bmN0aW9uIG8odCl7InN0cmluZyI9PXR5cGVvZiByP3I9InN0cmluZyI9PXR5cGVvZiB0P3IrdDpbaXQociksdF06ci5wdXNoKCJzdHJpbmciPT10eXBlb2YgdD9pdCh0KTp0KX1mb3IoY29uc3QgdCBvZiBlKXtjb25zdFtuLGVdPXQ7aWYobyhgXG4ke0pTT04uc3RyaW5naWZ5KG4pfVxuYCksInN0cmluZyI9PXR5cGVvZiBlfHxlIGluc3RhbmNlb2YgVWludDhBcnJheSlvKGUpO2Vsc2V7bGV0IHQ7dHJ5e3Q9SlNPTi5zdHJpbmdpZnkoZSl9Y2F0Y2gobil7dD1KU09OLnN0cmluZ2lmeSh6KGUpKX1vKHQpfX1yZXR1cm4ic3RyaW5nIj09dHlwZW9mIHI/cjpmdW5jdGlvbih0KXtjb25zdCBuPXQucmVkdWNlKCgodCxuKT0+dCtuLmxlbmd0aCksMCksZT1uZXcgVWludDhBcnJheShuKTtsZXQgcj0wO2Zvcihjb25zdCBuIG9mIHQpZS5zZXQobixyKSxyKz1uLmxlbmd0aDtyZXR1cm4gZX0ocil9Y29uc3QgdXQ9e3Nlc3Npb246InNlc3Npb24iLHNlc3Npb25zOiJzZXNzaW9uIixhdHRhY2htZW50OiJhdHRhY2htZW50Iix0cmFuc2FjdGlvbjoidHJhbnNhY3Rpb24iLGV2ZW50OiJlcnJvciIsY2xpZW50X3JlcG9ydDoiaW50ZXJuYWwiLHVzZXJfcmVwb3J0OiJkZWZhdWx0Iixwcm9maWxlOiJwcm9maWxlIixwcm9maWxlX2NodW5rOiJwcm9maWxlIixyZXBsYXlfZXZlbnQ6InJlcGxheSIscmVwbGF5X3JlY29yZGluZzoicmVwbGF5IixjaGVja19pbjoibW9uaXRvciIsZmVlZGJhY2s6ImZlZWRiYWNrIixzcGFuOiJzcGFuIixzdGF0c2Q6Im1ldHJpY19idWNrZXQifTtmdW5jdGlvbiBhdCh0KXtpZighdHx8IXQuc2RrKXJldHVybjtjb25zdHtuYW1lOm4sdmVyc2lvbjplfT10LnNkaztyZXR1cm57bmFtZTpuLHZlcnNpb246ZX19Y29uc3QgZnQ9NmU0O2Z1bmN0aW9uIGh0KHQse3N0YXR1c0NvZGU6bixoZWFkZXJzOmV9LHI9RGF0ZS5ub3coKSl7Y29uc3Qgbz17Li4udH0scz1lJiZlWyJ4LXNlbnRyeS1yYXRlLWxpbWl0cyJdLGk9ZSYmZVsicmV0cnktYWZ0ZXIiXTtpZihzKWZvcihjb25zdCB0IG9mIHMudHJpbSgpLnNwbGl0KCIsIikpe2NvbnN0W24sZSwsLHNdPXQuc3BsaXQoIjoiLDUpLGk9cGFyc2VJbnQobiwxMCksYz0xZTMqKGlzTmFOKGkpPzYwOmkpO2lmKGUpZm9yKGNvbnN0IHQgb2YgZS5zcGxpdCgiOyIpKSJtZXRyaWNfYnVja2V0Ij09PXQmJnMmJiFzLnNwbGl0KCI7IikuaW5jbHVkZXMoImN1c3RvbSIpfHwob1t0XT1yK2MpO2Vsc2Ugby5hbGw9citjfWVsc2UgaT9vLmFsbD1yK2Z1bmN0aW9uKHQsbj1EYXRlLm5vdygpKXtjb25zdCBlPXBhcnNlSW50KGAke3R9YCwxMCk7aWYoIWlzTmFOKGUpKXJldHVybiAxZTMqZTtjb25zdCByPURhdGUucGFyc2UoYCR7dH1gKTtyZXR1cm4gaXNOYU4ocik/ZnQ6ci1ufShpLHIpOjQyOT09PW4mJihvLmFsbD1yKzZlNCk7cmV0dXJuIG99ZnVuY3Rpb24gcHQoKXtyZXR1cm57dHJhY2VJZDpZKCksc3BhbklkOlkoKS5zdWJzdHJpbmcoMTYpfX1jb25zdCBsdD0idW5kZWZpbmVkIj09dHlwZW9mIF9fU0VOVFJZX0RFQlVHX198fF9fU0VOVFJZX0RFQlVHX187ZnVuY3Rpb24gZHQoKXtyZXR1cm4gbXQoYiksYn1mdW5jdGlvbiBtdCh0KXtjb25zdCBuPXQuX19TRU5UUllfXz10Ll9fU0VOVFJZX198fHt9O3JldHVybiBuLnZlcnNpb249bi52ZXJzaW9ufHxnLG5bZ109bltnXXx8e319ZnVuY3Rpb24geXQodCl7Y29uc3Qgbj1KKCksZT17c2lkOlkoKSxpbml0OiEwLHRpbWVzdGFtcDpuLHN0YXJ0ZWQ6bixkdXJhdGlvbjowLHN0YXR1czoib2siLGVycm9yczowLGlnbm9yZUR1cmF0aW9uOiExLHRvSlNPTjooKT0+ZnVuY3Rpb24odCl7cmV0dXJuIE8oe3NpZDpgJHt0LnNpZH1gLGluaXQ6dC5pbml0LHN0YXJ0ZWQ6bmV3IERhdGUoMWUzKnQuc3RhcnRlZCkudG9JU09TdHJpbmcoKSx0aW1lc3RhbXA6bmV3IERhdGUoMWUzKnQudGltZXN0YW1wKS50b0lTT1N0cmluZygpLHN0YXR1czp0LnN0YXR1cyxlcnJvcnM6dC5lcnJvcnMsZGlkOiJudW1iZXIiPT10eXBlb2YgdC5kaWR8fCJzdHJpbmciPT10eXBlb2YgdC5kaWQ/YCR7dC5kaWR9YDp2b2lkIDAsZHVyYXRpb246dC5kdXJhdGlvbixhYm5vcm1hbF9tZWNoYW5pc206dC5hYm5vcm1hbF9tZWNoYW5pc20sYXR0cnM6e3JlbGVhc2U6dC5yZWxlYXNlLGVudmlyb25tZW50OnQuZW52aXJvbm1lbnQsaXBfYWRkcmVzczp0LmlwQWRkcmVzcyx1c2VyX2FnZW50OnQudXNlckFnZW50fX0pfShlKX07cmV0dXJuIHQmJmd0KGUsdCksZX1mdW5jdGlvbiBndCh0LG49e30pe2lmKG4udXNlciYmKCF0LmlwQWRkcmVzcyYmbi51c2VyLmlwX2FkZHJlc3MmJih0LmlwQWRkcmVzcz1uLnVzZXIuaXBfYWRkcmVzcyksdC5kaWR8fG4uZGlkfHwodC5kaWQ9bi51c2VyLmlkfHxuLnVzZXIuZW1haWx8fG4udXNlci51c2VybmFtZSkpLHQudGltZXN0YW1wPW4udGltZXN0YW1wfHxKKCksbi5hYm5vcm1hbF9tZWNoYW5pc20mJih0LmFibm9ybWFsX21lY2hhbmlzbT1uLmFibm9ybWFsX21lY2hhbmlzbSksbi5pZ25vcmVEdXJhdGlvbiYmKHQuaWdub3JlRHVyYXRpb249bi5pZ25vcmVEdXJhdGlvbiksbi5zaWQmJih0LnNpZD0zMj09PW4uc2lkLmxlbmd0aD9uLnNpZDpZKCkpLHZvaWQgMCE9PW4uaW5pdCYmKHQuaW5pdD1uLmluaXQpLCF0LmRpZCYmbi5kaWQmJih0LmRpZD1gJHtuLmRpZH1gKSwibnVtYmVyIj09dHlwZW9mIG4uc3RhcnRlZCYmKHQuc3RhcnRlZD1uLnN0YXJ0ZWQpLHQuaWdub3JlRHVyYXRpb24pdC5kdXJhdGlvbj12b2lkIDA7ZWxzZSBpZigibnVtYmVyIj09dHlwZW9mIG4uZHVyYXRpb24pdC5kdXJhdGlvbj1uLmR1cmF0aW9uO2Vsc2V7Y29uc3Qgbj10LnRpbWVzdGFtcC10LnN0YXJ0ZWQ7dC5kdXJhdGlvbj1uPj0wP246MH1uLnJlbGVhc2UmJih0LnJlbGVhc2U9bi5yZWxlYXNlKSxuLmVudmlyb25tZW50JiYodC5lbnZpcm9ubWVudD1uLmVudmlyb25tZW50KSwhdC5pcEFkZHJlc3MmJm4uaXBBZGRyZXNzJiYodC5pcEFkZHJlc3M9bi5pcEFkZHJlc3MpLCF0LnVzZXJBZ2VudCYmbi51c2VyQWdlbnQmJih0LnVzZXJBZ2VudD1uLnVzZXJBZ2VudCksIm51bWJlciI9PXR5cGVvZiBuLmVycm9ycyYmKHQuZXJyb3JzPW4uZXJyb3JzKSxuLnN0YXR1cyYmKHQuc3RhdHVzPW4uc3RhdHVzKX1jb25zdCBidD0iX3NlbnRyeVNwYW4iO2Z1bmN0aW9uIF90KHQsbil7bj9mdW5jdGlvbih0LG4sZSl7dHJ5e09iamVjdC5kZWZpbmVQcm9wZXJ0eSh0LG4se3ZhbHVlOmUsd3JpdGFibGU6ITAsY29uZmlndXJhYmxlOiEwfSl9Y2F0Y2goZSl7JCYmQy5sb2coYEZhaWxlZCB0byBhZGQgbm9uLWVudW1lcmFibGUgcHJvcGVydHkgIiR7bn0iIHRvIG9iamVjdGAsdCl9fSh0LGJ0LG4pOmRlbGV0ZSB0W2J0XX1mdW5jdGlvbiB2dCh0KXtyZXR1cm4gdFtidF19Y2xhc3Mgd3R7Y29uc3RydWN0b3IoKXt0aGlzLnY9ITEsdGhpcy5TPVtdLHRoaXMuTj1bXSx0aGlzLkM9W10sdGhpcy5UPVtdLHRoaXMuaz17fSx0aGlzLlI9e30sdGhpcy5qPXt9LHRoaXMuRD17fSx0aGlzLk89e30sdGhpcy5BPXB0KCl9Y2xvbmUoKXtjb25zdCB0PW5ldyB3dDtyZXR1cm4gdC5DPVsuLi50aGlzLkNdLHQuUj17Li4udGhpcy5SfSx0Lmo9ey4uLnRoaXMuan0sdC5EPXsuLi50aGlzLkR9LHQuaz10aGlzLmssdC5JPXRoaXMuSSx0LlA9dGhpcy5QLHQuVT10aGlzLlUsdC5NPXRoaXMuTSx0Lk49Wy4uLnRoaXMuTl0sdC5MPXRoaXMuTCx0LlQ9Wy4uLnRoaXMuVF0sdC5PPXsuLi50aGlzLk99LHQuQT17Li4udGhpcy5BfSx0LkI9dGhpcy5CLHQuRz10aGlzLkcsX3QodCx2dCh0aGlzKSksdH1zZXRDbGllbnQodCl7dGhpcy5CPXR9c2V0TGFzdEV2ZW50SWQodCl7dGhpcy5HPXR9Z2V0Q2xpZW50KCl7cmV0dXJuIHRoaXMuQn1sYXN0RXZlbnRJZCgpe3JldHVybiB0aGlzLkd9YWRkU2NvcGVMaXN0ZW5lcih0KXt0aGlzLlMucHVzaCh0KX1hZGRFdmVudFByb2Nlc3Nvcih0KXtyZXR1cm4gdGhpcy5OLnB1c2godCksdGhpc31zZXRVc2VyKHQpe3JldHVybiB0aGlzLms9dHx8e2VtYWlsOnZvaWQgMCxpZDp2b2lkIDAsaXBfYWRkcmVzczp2b2lkIDAsdXNlcm5hbWU6dm9pZCAwfSx0aGlzLlAmJmd0KHRoaXMuUCx7dXNlcjp0fSksdGhpcy5KKCksdGhpc31nZXRVc2VyKCl7cmV0dXJuIHRoaXMua31nZXRSZXF1ZXN0U2Vzc2lvbigpe3JldHVybiB0aGlzLkx9c2V0UmVxdWVzdFNlc3Npb24odCl7cmV0dXJuIHRoaXMuTD10LHRoaXN9c2V0VGFncyh0KXtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsLi4udH0sdGhpcy5KKCksdGhpc31zZXRUYWcodCxuKXtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsW3RdOm59LHRoaXMuSigpLHRoaXN9c2V0RXh0cmFzKHQpe3JldHVybiB0aGlzLmo9ey4uLnRoaXMuaiwuLi50fSx0aGlzLkooKSx0aGlzfXNldEV4dHJhKHQsbil7cmV0dXJuIHRoaXMuaj17Li4udGhpcy5qLFt0XTpufSx0aGlzLkooKSx0aGlzfXNldEZpbmdlcnByaW50KHQpe3JldHVybiB0aGlzLk09dCx0aGlzLkooKSx0aGlzfXNldExldmVsKHQpe3JldHVybiB0aGlzLkk9dCx0aGlzLkooKSx0aGlzfXNldFRyYW5zYWN0aW9uTmFtZSh0KXtyZXR1cm4gdGhpcy5VPXQsdGhpcy5KKCksdGhpc31zZXRDb250ZXh0KHQsbil7cmV0dXJuIG51bGw9PT1uP2RlbGV0ZSB0aGlzLkRbdF06dGhpcy5EW3RdPW4sdGhpcy5KKCksdGhpc31zZXRTZXNzaW9uKHQpe3JldHVybiB0P3RoaXMuUD10OmRlbGV0ZSB0aGlzLlAsdGhpcy5KKCksdGhpc31nZXRTZXNzaW9uKCl7cmV0dXJuIHRoaXMuUH11cGRhdGUodCl7aWYoIXQpcmV0dXJuIHRoaXM7Y29uc3Qgbj0iZnVuY3Rpb24iPT10eXBlb2YgdD90KHRoaXMpOnQsW2Uscl09biBpbnN0YW5jZW9mIFN0P1tuLmdldFNjb3BlRGF0YSgpLG4uZ2V0UmVxdWVzdFNlc3Npb24oKV06ZChuKT9bdCx0LnJlcXVlc3RTZXNzaW9uXTpbXSx7dGFnczpvLGV4dHJhOnMsdXNlcjppLGNvbnRleHRzOmMsbGV2ZWw6dSxmaW5nZXJwcmludDphPVtdLHByb3BhZ2F0aW9uQ29udGV4dDpmfT1lfHx7fTtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsLi4ub30sdGhpcy5qPXsuLi50aGlzLmosLi4uc30sdGhpcy5EPXsuLi50aGlzLkQsLi4uY30saSYmT2JqZWN0LmtleXMoaSkubGVuZ3RoJiYodGhpcy5rPWkpLHUmJih0aGlzLkk9dSksYS5sZW5ndGgmJih0aGlzLk09YSksZiYmKHRoaXMuQT1mKSxyJiYodGhpcy5MPXIpLHRoaXN9Y2xlYXIoKXtyZXR1cm4gdGhpcy5DPVtdLHRoaXMuUj17fSx0aGlzLmo9e30sdGhpcy5rPXt9LHRoaXMuRD17fSx0aGlzLkk9dm9pZCAwLHRoaXMuVT12b2lkIDAsdGhpcy5NPXZvaWQgMCx0aGlzLkw9dm9pZCAwLHRoaXMuUD12b2lkIDAsX3QodGhpcyx2b2lkIDApLHRoaXMuVD1bXSx0aGlzLkE9cHQoKSx0aGlzLkooKSx0aGlzfWFkZEJyZWFkY3J1bWIodCxuKXtjb25zdCBlPSJudW1iZXIiPT10eXBlb2Ygbj9uOjEwMDtpZihlPD0wKXJldHVybiB0aGlzO2NvbnN0IHI9e3RpbWVzdGFtcDpHKCksLi4udH0sbz10aGlzLkM7cmV0dXJuIG8ucHVzaChyKSx0aGlzLkM9by5sZW5ndGg+ZT9vLnNsaWNlKC1lKTpvLHRoaXMuSigpLHRoaXN9Z2V0TGFzdEJyZWFkY3J1bWIoKXtyZXR1cm4gdGhpcy5DW3RoaXMuQy5sZW5ndGgtMV19Y2xlYXJCcmVhZGNydW1icygpe3JldHVybiB0aGlzLkM9W10sdGhpcy5KKCksdGhpc31hZGRBdHRhY2htZW50KHQpe3JldHVybiB0aGlzLlQucHVzaCh0KSx0aGlzfWNsZWFyQXR0YWNobWVudHMoKXtyZXR1cm4gdGhpcy5UPVtdLHRoaXN9Z2V0U2NvcGVEYXRhKCl7cmV0dXJue2JyZWFkY3J1bWJzOnRoaXMuQyxhdHRhY2htZW50czp0aGlzLlQsY29udGV4dHM6dGhpcy5ELHRhZ3M6dGhpcy5SLGV4dHJhOnRoaXMuaix1c2VyOnRoaXMuayxsZXZlbDp0aGlzLkksZmluZ2VycHJpbnQ6dGhpcy5NfHxbXSxldmVudFByb2Nlc3NvcnM6dGhpcy5OLHByb3BhZ2F0aW9uQ29udGV4dDp0aGlzLkEsc2RrUHJvY2Vzc2luZ01ldGFkYXRhOnRoaXMuTyx0cmFuc2FjdGlvbk5hbWU6dGhpcy5VLHNwYW46dnQodGhpcyl9fXNldFNES1Byb2Nlc3NpbmdNZXRhZGF0YSh0KXtyZXR1cm4gdGhpcy5PPXsuLi50aGlzLk8sLi4udH0sdGhpc31zZXRQcm9wYWdhdGlvbkNvbnRleHQodCl7cmV0dXJuIHRoaXMuQT10LHRoaXN9Z2V0UHJvcGFnYXRpb25Db250ZXh0KCl7cmV0dXJuIHRoaXMuQX1jYXB0dXJlRXhjZXB0aW9uKHQsbil7Y29uc3QgZT1uJiZuLmV2ZW50X2lkP24uZXZlbnRfaWQ6WSgpO2lmKCF0aGlzLkIpcmV0dXJuIEMud2FybigiTm8gY2xpZW50IGNvbmZpZ3VyZWQgb24gc2NvcGUgLSB3aWxsIG5vdCBjYXB0dXJlIGV4Y2VwdGlvbiEiKSxlO2NvbnN0IHI9bmV3IEVycm9yKCJTZW50cnkgc3ludGhldGljRXhjZXB0aW9uIik7cmV0dXJuIHRoaXMuQi5jYXB0dXJlRXhjZXB0aW9uKHQse29yaWdpbmFsRXhjZXB0aW9uOnQsc3ludGhldGljRXhjZXB0aW9uOnIsLi4ubixldmVudF9pZDplfSx0aGlzKSxlfWNhcHR1cmVNZXNzYWdlKHQsbixlKXtjb25zdCByPWUmJmUuZXZlbnRfaWQ/ZS5ldmVudF9pZDpZKCk7aWYoIXRoaXMuQilyZXR1cm4gQy53YXJuKCJObyBjbGllbnQgY29uZmlndXJlZCBvbiBzY29wZSAtIHdpbGwgbm90IGNhcHR1cmUgbWVzc2FnZSEiKSxyO2NvbnN0IG89bmV3IEVycm9yKHQpO3JldHVybiB0aGlzLkIuY2FwdHVyZU1lc3NhZ2UodCxuLHtvcmlnaW5hbEV4Y2VwdGlvbjp0LHN5bnRoZXRpY0V4Y2VwdGlvbjpvLC4uLmUsZXZlbnRfaWQ6cn0sdGhpcykscn1jYXB0dXJlRXZlbnQodCxuKXtjb25zdCBlPW4mJm4uZXZlbnRfaWQ/bi5ldmVudF9pZDpZKCk7cmV0dXJuIHRoaXMuQj8odGhpcy5CLmNhcHR1cmVFdmVudCh0LHsuLi5uLGV2ZW50X2lkOmV9LHRoaXMpLGUpOihDLndhcm4oIk5vIGNsaWVudCBjb25maWd1cmVkIG9uIHNjb3BlIC0gd2lsbCBub3QgY2FwdHVyZSBldmVudCEiKSxlKX1KKCl7dGhpcy52fHwodGhpcy52PSEwLHRoaXMuUy5mb3JFYWNoKCh0PT57dCh0aGlzKX0pKSx0aGlzLnY9ITEpfX1jb25zdCBTdD13dDtjbGFzcyAkdHtjb25zdHJ1Y3Rvcih0LG4pe2xldCBlLHI7ZT10fHxuZXcgU3Qscj1ufHxuZXcgU3QsdGhpcy5ZPVt7c2NvcGU6ZX1dLHRoaXMuSD1yfXdpdGhTY29wZSh0KXtjb25zdCBuPXRoaXMuVygpO2xldCBlO3RyeXtlPXQobil9Y2F0Y2godCl7dGhyb3cgdGhpcy5GKCksdH1yZXR1cm4gbShlKT9lLnRoZW4oKHQ9Pih0aGlzLkYoKSx0KSksKHQ9Pnt0aHJvdyB0aGlzLkYoKSx0fSkpOih0aGlzLkYoKSxlKX1nZXRDbGllbnQoKXtyZXR1cm4gdGhpcy5nZXRTdGFja1RvcCgpLmNsaWVudH1nZXRTY29wZSgpe3JldHVybiB0aGlzLmdldFN0YWNrVG9wKCkuc2NvcGV9Z2V0SXNvbGF0aW9uU2NvcGUoKXtyZXR1cm4gdGhpcy5IfWdldFN0YWNrVG9wKCl7cmV0dXJuIHRoaXMuWVt0aGlzLlkubGVuZ3RoLTFdfVcoKXtjb25zdCB0PXRoaXMuZ2V0U2NvcGUoKS5jbG9uZSgpO3JldHVybiB0aGlzLlkucHVzaCh7Y2xpZW50OnRoaXMuZ2V0Q2xpZW50KCksc2NvcGU6dH0pLHR9Rigpe3JldHVybiEodGhpcy5ZLmxlbmd0aDw9MSkmJiEhdGhpcy5ZLnBvcCgpfX1mdW5jdGlvbiBFdCgpe2NvbnN0IHQ9bXQoZHQoKSk7cmV0dXJuIHQuc3RhY2s9dC5zdGFja3x8bmV3ICR0KF8oImRlZmF1bHRDdXJyZW50U2NvcGUiLCgoKT0+bmV3IFN0KSksXygiZGVmYXVsdElzb2xhdGlvblNjb3BlIiwoKCk9Pm5ldyBTdCkpKX1mdW5jdGlvbiB4dCh0KXtyZXR1cm4gRXQoKS53aXRoU2NvcGUodCl9ZnVuY3Rpb24gTnQodCxuKXtjb25zdCBlPUV0KCk7cmV0dXJuIGUud2l0aFNjb3BlKCgoKT0+KGUuZ2V0U3RhY2tUb3AoKS5zY29wZT10LG4odCkpKSl9ZnVuY3Rpb24gQ3QodCl7cmV0dXJuIEV0KCkud2l0aFNjb3BlKCgoKT0+dChFdCgpLmdldElzb2xhdGlvblNjb3BlKCkpKSl9ZnVuY3Rpb24gVHQodCl7Y29uc3Qgbj1tdCh0KTtyZXR1cm4gbi5hY3M/bi5hY3M6e3dpdGhJc29sYXRpb25TY29wZTpDdCx3aXRoU2NvcGU6eHQsd2l0aFNldFNjb3BlOk50LHdpdGhTZXRJc29sYXRpb25TY29wZToodCxuKT0+Q3QobiksZ2V0Q3VycmVudFNjb3BlOigpPT5FdCgpLmdldFNjb3BlKCksZ2V0SXNvbGF0aW9uU2NvcGU6KCk9PkV0KCkuZ2V0SXNvbGF0aW9uU2NvcGUoKX19ZnVuY3Rpb24ga3QoKXtyZXR1cm4gVHQoZHQoKSkuZ2V0Q3VycmVudFNjb3BlKCkuZ2V0Q2xpZW50KCl9Y29uc3QgUnQ9Il9zZW50cnlNZXRyaWNzIjtmdW5jdGlvbiBqdCh0KXtjb25zdCBuPXRbUnRdO2lmKCFuKXJldHVybjtjb25zdCBlPXt9O2Zvcihjb25zdFssW3Qscl1db2Ygbil7KGVbdF18fChlW3RdPVtdKSkucHVzaChPKHIpKX1yZXR1cm4gZX1jb25zdCBEdD0ic2VudHJ5LnNvdXJjZSIsT3Q9InNlbnRyeS5zYW1wbGVfcmF0ZSIsQXQ9InNlbnRyeS5vcCIsSXQ9InNlbnRyeS5vcmlnaW4iLFB0PTAsVXQ9MSxNdD0xO2Z1bmN0aW9uIEx0KHQpe2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZX09dC5zcGFuQ29udGV4dCgpLHtwYXJlbnRfc3Bhbl9pZDpyfT1KdCh0KTtyZXR1cm4gTyh7cGFyZW50X3NwYW5faWQ6cixzcGFuX2lkOm4sdHJhY2VfaWQ6ZX0pfWZ1bmN0aW9uIEJ0KHQpe3JldHVybiJudW1iZXIiPT10eXBlb2YgdD9HdCh0KTpBcnJheS5pc0FycmF5KHQpP3RbMF0rdFsxXS8xZTk6dCBpbnN0YW5jZW9mIERhdGU/R3QodC5nZXRUaW1lKCkpOkooKX1mdW5jdGlvbiBHdCh0KXtyZXR1cm4gdD45OTk5OTk5OTk5P3QvMWUzOnR9ZnVuY3Rpb24gSnQodCl7aWYoZnVuY3Rpb24odCl7cmV0dXJuImZ1bmN0aW9uIj09dHlwZW9mIHQuZ2V0U3BhbkpTT059KHQpKXJldHVybiB0LmdldFNwYW5KU09OKCk7dHJ5e2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZX09dC5zcGFuQ29udGV4dCgpO2lmKGZ1bmN0aW9uKHQpe2NvbnN0IG49dDtyZXR1cm4hIShuLmF0dHJpYnV0ZXMmJm4uc3RhcnRUaW1lJiZuLm5hbWUmJm4uZW5kVGltZSYmbi5zdGF0dXMpfSh0KSl7Y29uc3R7YXR0cmlidXRlczpyLHN0YXJ0VGltZTpvLG5hbWU6cyxlbmRUaW1lOmkscGFyZW50U3BhbklkOmMsc3RhdHVzOnV9PXQ7cmV0dXJuIE8oe3NwYW5faWQ6bix0cmFjZV9pZDplLGRhdGE6cixkZXNjcmlwdGlvbjpzLHBhcmVudF9zcGFuX2lkOmMsc3RhcnRfdGltZXN0YW1wOkJ0KG8pLHRpbWVzdGFtcDpCdChpKXx8dm9pZCAwLHN0YXR1czpZdCh1KSxvcDpyW0F0XSxvcmlnaW46cltJdF0sX21ldHJpY3Nfc3VtbWFyeTpqdCh0KX0pfXJldHVybntzcGFuX2lkOm4sdHJhY2VfaWQ6ZX19Y2F0Y2godCl7cmV0dXJue319fWZ1bmN0aW9uIFl0KHQpe2lmKHQmJnQuY29kZSE9PVB0KXJldHVybiB0LmNvZGU9PT1VdD8ib2siOnQubWVzc2FnZXx8InVua25vd25fZXJyb3IifWNvbnN0IHp0PSJfc2VudHJ5Um9vdFNwYW4iO2Z1bmN0aW9uIEh0KHQpe3JldHVybiB0W3p0XXx8dH1jb25zdCBXdD0icHJvZHVjdGlvbiIsRnQ9Il9mcm96ZW5Ec2MiO2Z1bmN0aW9uIEt0KHQpe2NvbnN0IG49a3QoKTtpZighbilyZXR1cm57fTtjb25zdCBlPWZ1bmN0aW9uKHQsbil7Y29uc3QgZT1uLmdldE9wdGlvbnMoKSx7cHVibGljS2V5OnJ9PW4uZ2V0RHNuKCl8fHt9LG89Tyh7ZW52aXJvbm1lbnQ6ZS5lbnZpcm9ubWVudHx8V3QscmVsZWFzZTplLnJlbGVhc2UscHVibGljX2tleTpyLHRyYWNlX2lkOnR9KTtyZXR1cm4gbi5lbWl0KCJjcmVhdGVEc2MiLG8pLG99KEp0KHQpLnRyYWNlX2lkfHwiIixuKSxyPUh0KHQpLG89cltGdF07aWYobylyZXR1cm4gbztjb25zdCBzPXIuc3BhbkNvbnRleHQoKS50cmFjZVN0YXRlLGk9cyYmcy5nZXQoInNlbnRyeS5kc2MiKSxjPWkmJmV0KGkpO2lmKGMpcmV0dXJuIGM7Y29uc3QgdT1KdChyKSxhPXUuZGF0YXx8e30sZj1hW090XTtudWxsIT1mJiYoZS5zYW1wbGVfcmF0ZT1gJHtmfWApO2NvbnN0IGg9YVtEdF0scD11LmRlc2NyaXB0aW9uO3JldHVybiJ1cmwiIT09aCYmcCYmKGUudHJhbnNhY3Rpb249cCksZnVuY3Rpb24odCl7aWYoImJvb2xlYW4iPT10eXBlb2YgX19TRU5UUllfVFJBQ0lOR19fJiYhX19TRU5UUllfVFJBQ0lOR19fKXJldHVybiExO2NvbnN0IG49a3QoKSxlPW4mJm4uZ2V0T3B0aW9ucygpO3JldHVybiEhZSYmKGUuZW5hYmxlVHJhY2luZ3x8InRyYWNlc1NhbXBsZVJhdGUiaW4gZXx8InRyYWNlc1NhbXBsZXIiaW4gZSl9KCkmJihlLnNhbXBsZWQ9U3RyaW5nKGZ1bmN0aW9uKHQpe2NvbnN0e3RyYWNlRmxhZ3M6bn09dC5zcGFuQ29udGV4dCgpO3JldHVybiBuPT09TXR9KHIpKSksbi5lbWl0KCJjcmVhdGVEc2MiLGUsciksZX1mdW5jdGlvbiBWdCh0LG4sZSxyKXtjb25zdCBvPWF0KGUpLHM9dC50eXBlJiYicmVwbGF5X2V2ZW50IiE9PXQudHlwZT90LnR5cGU6ImV2ZW50IjshZnVuY3Rpb24odCxuKXtuJiYodC5zZGs9dC5zZGt8fHt9LHQuc2RrLm5hbWU9dC5zZGsubmFtZXx8bi5uYW1lLHQuc2RrLnZlcnNpb249dC5zZGsudmVyc2lvbnx8bi52ZXJzaW9uLHQuc2RrLmludGVncmF0aW9ucz1bLi4udC5zZGsuaW50ZWdyYXRpb25zfHxbXSwuLi5uLmludGVncmF0aW9uc3x8W11dLHQuc2RrLnBhY2thZ2VzPVsuLi50LnNkay5wYWNrYWdlc3x8W10sLi4ubi5wYWNrYWdlc3x8W11dKX0odCxlJiZlLnNkayk7Y29uc3QgaT1mdW5jdGlvbih0LG4sZSxyKXtjb25zdCBvPXQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhJiZ0LnNka1Byb2Nlc3NpbmdNZXRhZGF0YS5keW5hbWljU2FtcGxpbmdDb250ZXh0O3JldHVybntldmVudF9pZDp0LmV2ZW50X2lkLHNlbnRfYXQ6KG5ldyBEYXRlKS50b0lTT1N0cmluZygpLC4uLm4mJntzZGs6bn0sLi4uISFlJiZyJiZ7ZHNuOlQocil9LC4uLm8mJnt0cmFjZTpPKHsuLi5vfSl9fX0odCxvLHIsbik7ZGVsZXRlIHQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhO3JldHVybiBvdChpLFtbe3R5cGU6c30sdF1dKX1jb25zdCBadD0iX19TRU5UUllfU1VQUFJFU1NfVFJBQ0lOR19fIjtmdW5jdGlvbiBxdCh0KXtjb25zdCBuPVR0KGR0KCkpO3JldHVybiBuLnN1cHByZXNzVHJhY2luZz9uLnN1cHByZXNzVHJhY2luZyh0KTpmdW5jdGlvbiguLi50KXtjb25zdCBuPVR0KGR0KCkpO2lmKDI9PT10Lmxlbmd0aCl7Y29uc3RbZSxyXT10O3JldHVybiBlP24ud2l0aFNldFNjb3BlKGUscik6bi53aXRoU2NvcGUocil9cmV0dXJuIG4ud2l0aFNjb3BlKHRbMF0pfSgobj0+KG4uc2V0U0RLUHJvY2Vzc2luZ01ldGFkYXRhKHtbWnRdOiEwfSksdCgpKSkpfWZ1bmN0aW9uIFF0KHQsbil7Y29uc3R7ZmluZ2VycHJpbnQ6ZSxzcGFuOnIsYnJlYWRjcnVtYnM6byxzZGtQcm9jZXNzaW5nTWV0YWRhdGE6c309bjshZnVuY3Rpb24odCxuKXtjb25zdHtleHRyYTplLHRhZ3M6cix1c2VyOm8sY29udGV4dHM6cyxsZXZlbDppLHRyYW5zYWN0aW9uTmFtZTpjfT1uLHU9TyhlKTt1JiZPYmplY3Qua2V5cyh1KS5sZW5ndGgmJih0LmV4dHJhPXsuLi51LC4uLnQuZXh0cmF9KTtjb25zdCBhPU8ocik7YSYmT2JqZWN0LmtleXMoYSkubGVuZ3RoJiYodC50YWdzPXsuLi5hLC4uLnQudGFnc30pO2NvbnN0IGY9TyhvKTtmJiZPYmplY3Qua2V5cyhmKS5sZW5ndGgmJih0LnVzZXI9ey4uLmYsLi4udC51c2VyfSk7Y29uc3QgaD1PKHMpO2gmJk9iamVjdC5rZXlzKGgpLmxlbmd0aCYmKHQuY29udGV4dHM9ey4uLmgsLi4udC5jb250ZXh0c30pO2kmJih0LmxldmVsPWkpO2MmJiJ0cmFuc2FjdGlvbiIhPT10LnR5cGUmJih0LnRyYW5zYWN0aW9uPWMpfSh0LG4pLHImJmZ1bmN0aW9uKHQsbil7dC5jb250ZXh0cz17dHJhY2U6THQobiksLi4udC5jb250ZXh0c30sdC5zZGtQcm9jZXNzaW5nTWV0YWRhdGE9e2R5bmFtaWNTYW1wbGluZ0NvbnRleHQ6S3QobiksLi4udC5zZGtQcm9jZXNzaW5nTWV0YWRhdGF9O2NvbnN0IGU9SHQobikscj1KdChlKS5kZXNjcmlwdGlvbjtyJiYhdC50cmFuc2FjdGlvbiYmInRyYW5zYWN0aW9uIj09PXQudHlwZSYmKHQudHJhbnNhY3Rpb249cil9KHQsciksZnVuY3Rpb24odCxuKXt0LmZpbmdlcnByaW50PXQuZmluZ2VycHJpbnQ/ZnVuY3Rpb24odCl7cmV0dXJuIEFycmF5LmlzQXJyYXkodCk/dDpbdF19KHQuZmluZ2VycHJpbnQpOltdLG4mJih0LmZpbmdlcnByaW50PXQuZmluZ2VycHJpbnQuY29uY2F0KG4pKTt0LmZpbmdlcnByaW50JiYhdC5maW5nZXJwcmludC5sZW5ndGgmJmRlbGV0ZSB0LmZpbmdlcnByaW50fSh0LGUpLGZ1bmN0aW9uKHQsbil7Y29uc3QgZT1bLi4udC5icmVhZGNydW1ic3x8W10sLi4ubl07dC5icmVhZGNydW1icz1lLmxlbmd0aD9lOnZvaWQgMH0odCxvKSxmdW5jdGlvbih0LG4pe3Quc2RrUHJvY2Vzc2luZ01ldGFkYXRhPXsuLi50LnNka1Byb2Nlc3NpbmdNZXRhZGF0YSwuLi5ufX0odCxzKX1jb25zdCBYdD0iNyI7ZnVuY3Rpb24gdG4odCxuKXtyZXR1cm4gZT17c2VudHJ5X2tleTp0LnB1YmxpY0tleSxzZW50cnlfdmVyc2lvbjpYdCwuLi5uJiZ7c2VudHJ5X2NsaWVudDpgJHtuLm5hbWV9LyR7bi52ZXJzaW9ufWB9fSxPYmplY3Qua2V5cyhlKS5tYXAoKHQ9PmAke2VuY29kZVVSSUNvbXBvbmVudCh0KX09JHtlbmNvZGVVUklDb21wb25lbnQoZVt0XSl9YCkpLmpvaW4oIiYiKTt2YXIgZX1jb25zdCBubj02NDtmdW5jdGlvbiBlbih0LG4sZT1RKHQuYnVmZmVyU2l6ZXx8bm4pKXtsZXQgcj17fTtyZXR1cm57c2VuZDpmdW5jdGlvbih0KXtjb25zdCBvPVtdO2lmKHN0KHQsKCh0LG4pPT57Y29uc3QgZT1mdW5jdGlvbih0KXtyZXR1cm4gdXRbdF19KG4pOyhmdW5jdGlvbih0LG4sZT1EYXRlLm5vdygpKXtyZXR1cm4gZnVuY3Rpb24odCxuKXtyZXR1cm4gdFtuXXx8dC5hbGx8fDB9KHQsbik+ZX0pKHIsZSl8fG8ucHVzaCh0KX0pKSwwPT09by5sZW5ndGgpcmV0dXJuIFooe30pO2NvbnN0IHM9b3QodFswXSxvKSxpPXQ9PntzdChzLCgodCxuKT0+e30pKX07cmV0dXJuIGUuYWRkKCgoKT0+bih7Ym9keTpjdChzKX0pLnRoZW4oKHQ9Pih2b2lkIDAhPT10LnN0YXR1c0NvZGUmJih0LnN0YXR1c0NvZGU8MjAwfHx0LnN0YXR1c0NvZGU+PTMwMCkmJmx0JiZDLndhcm4oYFNlbnRyeSByZXNwb25kZWQgd2l0aCBzdGF0dXMgY29kZSAke3Quc3RhdHVzQ29kZX0gdG8gc2VudCBldmVudC5gKSxyPWh0KHIsdCksdCkpLCh0PT57dGhyb3cgaSgpLHR9KSkpKS50aGVuKCh0PT50KSwodD0+e2lmKHQgaW5zdGFuY2VvZiBrKXJldHVybiBsdCYmQy5lcnJvcigiU2tpcHBlZCBzZW5kaW5nIGV2ZW50IGJlY2F1c2UgYnVmZmVyIGlzIGZ1bGwuIiksaSgpLFooe30pO3Rocm93IHR9KSl9LGZsdXNoOnQ9PmUuZHJhaW4odCl9fWNvbnN0IHJuPVN5bWJvbCgiQWdlbnRCYXNlSW50ZXJuYWxTdGF0ZSIpO2NsYXNzIG9uIGV4dGVuZHMgcy5BZ2VudHtbcm5dO29wdGlvbnM7a2VlcEFsaXZlO2NvbnN0cnVjdG9yKHQpe3N1cGVyKHQpLHRoaXNbcm5dPXt9fWlzU2VjdXJlRW5kcG9pbnQodCl7aWYodCl7aWYoImJvb2xlYW4iPT10eXBlb2YgdC5zZWN1cmVFbmRwb2ludClyZXR1cm4gdC5zZWN1cmVFbmRwb2ludDtpZigic3RyaW5nIj09dHlwZW9mIHQucHJvdG9jb2wpcmV0dXJuImh0dHBzOiI9PT10LnByb3RvY29sfWNvbnN0e3N0YWNrOm59PW5ldyBFcnJvcjtyZXR1cm4ic3RyaW5nIj09dHlwZW9mIG4mJm4uc3BsaXQoIlxuIikuc29tZSgodD0+LTEhPT10LmluZGV4T2YoIihodHRwcy5qczoiKXx8LTEhPT10LmluZGV4T2YoIm5vZGU6aHR0cHM6IikpKX1jcmVhdGVTb2NrZXQodCxuLGUpe2NvbnN0IHI9ey4uLm4sc2VjdXJlRW5kcG9pbnQ6dGhpcy5pc1NlY3VyZUVuZHBvaW50KG4pfTtQcm9taXNlLnJlc29sdmUoKS50aGVuKCgoKT0+dGhpcy5jb25uZWN0KHQscikpKS50aGVuKChvPT57aWYobyBpbnN0YW5jZW9mIHMuQWdlbnQpcmV0dXJuIG8uYWRkUmVxdWVzdCh0LHIpO3RoaXNbcm5dLmN1cnJlbnRTb2NrZXQ9byxzdXBlci5jcmVhdGVTb2NrZXQodCxuLGUpfSksZSl9Y3JlYXRlQ29ubmVjdGlvbigpe2NvbnN0IHQ9dGhpc1tybl0uY3VycmVudFNvY2tldDtpZih0aGlzW3JuXS5jdXJyZW50U29ja2V0PXZvaWQgMCwhdCl0aHJvdyBuZXcgRXJyb3IoIk5vIHNvY2tldCB3YXMgcmV0dXJuZWQgaW4gdGhlIGBjb25uZWN0KClgIGZ1bmN0aW9uIik7cmV0dXJuIHR9Z2V0IGRlZmF1bHRQb3J0KCl7cmV0dXJuIHRoaXNbcm5dLmRlZmF1bHRQb3J0Pz8oImh0dHBzOiI9PT10aGlzLnByb3RvY29sPzQ0Mzo4MCl9c2V0IGRlZmF1bHRQb3J0KHQpe3RoaXNbcm5dJiYodGhpc1tybl0uZGVmYXVsdFBvcnQ9dCl9Z2V0IHByb3RvY29sKCl7cmV0dXJuIHRoaXNbcm5dLnByb3RvY29sPz8odGhpcy5pc1NlY3VyZUVuZHBvaW50KCk/Imh0dHBzOiI6Imh0dHA6Iil9c2V0IHByb3RvY29sKHQpe3RoaXNbcm5dJiYodGhpc1tybl0ucHJvdG9jb2w9dCl9fWZ1bmN0aW9uIHNuKC4uLnQpe0MubG9nKCJbaHR0cHMtcHJveHktYWdlbnQ6cGFyc2UtcHJveHktcmVzcG9uc2VdIiwuLi50KX1mdW5jdGlvbiBjbih0KXtyZXR1cm4gbmV3IFByb21pc2UoKChuLGUpPT57bGV0IHI9MDtjb25zdCBvPVtdO2Z1bmN0aW9uIHMoKXtjb25zdCBjPXQucmVhZCgpO2M/ZnVuY3Rpb24oYyl7by5wdXNoKGMpLHIrPWMubGVuZ3RoO2NvbnN0IHU9QnVmZmVyLmNvbmNhdChvLHIpLGE9dS5pbmRleE9mKCJcclxuXHJcbiIpO2lmKC0xPT09YSlyZXR1cm4gc24oImhhdmUgbm90IHJlY2VpdmVkIGVuZCBvZiBIVFRQIGhlYWRlcnMgeWV0Li4uIiksdm9pZCBzKCk7Y29uc3QgZj11LnNsaWNlKDAsYSkudG9TdHJpbmcoImFzY2lpIikuc3BsaXQoIlxyXG4iKSxoPWYuc2hpZnQoKTtpZighaClyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoIk5vIGhlYWRlciByZWNlaXZlZCBmcm9tIHByb3h5IENPTk5FQ1QgcmVzcG9uc2UiKSk7Y29uc3QgcD1oLnNwbGl0KCIgIiksbD0rKHBbMV18fDApLGQ9cC5zbGljZSgyKS5qb2luKCIgIiksbT17fTtmb3IoY29uc3QgbiBvZiBmKXtpZighbiljb250aW51ZTtjb25zdCByPW4uaW5kZXhPZigiOiIpO2lmKC0xPT09cilyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoYEludmFsaWQgaGVhZGVyIGZyb20gcHJveHkgQ09OTkVDVCByZXNwb25zZTogIiR7bn0iYCkpO2NvbnN0IG89bi5zbGljZSgwLHIpLnRvTG93ZXJDYXNlKCkscz1uLnNsaWNlKHIrMSkudHJpbVN0YXJ0KCksaT1tW29dOyJzdHJpbmciPT10eXBlb2YgaT9tW29dPVtpLHNdOkFycmF5LmlzQXJyYXkoaSk/aS5wdXNoKHMpOm1bb109c31zbigiZ290IHByb3h5IHNlcnZlciByZXNwb25zZTogJW8gJW8iLGgsbSksaSgpLG4oe2Nvbm5lY3Q6e3N0YXR1c0NvZGU6bCxzdGF0dXNUZXh0OmQsaGVhZGVyczptfSxidWZmZXJlZDp1fSl9KGMpOnQub25jZSgicmVhZGFibGUiLHMpfWZ1bmN0aW9uIGkoKXt0LnJlbW92ZUxpc3RlbmVyKCJlbmQiLGMpLHQucmVtb3ZlTGlzdGVuZXIoImVycm9yIix1KSx0LnJlbW92ZUxpc3RlbmVyKCJyZWFkYWJsZSIscyl9ZnVuY3Rpb24gYygpe2koKSxzbigib25lbmQiKSxlKG5ldyBFcnJvcigiUHJveHkgY29ubmVjdGlvbiBlbmRlZCBiZWZvcmUgcmVjZWl2aW5nIENPTk5FQ1QgcmVzcG9uc2UiKSl9ZnVuY3Rpb24gdSh0KXtpKCksc24oIm9uZXJyb3IgJW8iLHQpLGUodCl9dC5vbigiZXJyb3IiLHUpLHQub24oImVuZCIsYykscygpfSkpfWZ1bmN0aW9uIHVuKC4uLnQpe0MubG9nKCJbaHR0cHMtcHJveHktYWdlbnRdIiwuLi50KX1jbGFzcyBhbiBleHRlbmRzIG9ue3N0YXRpYyBwcm90b2NvbHM9WyJodHRwIiwiaHR0cHMiXTtwcm94eTtwcm94eUhlYWRlcnM7Y29ubmVjdE9wdHM7Y29uc3RydWN0b3IodCxuKXtzdXBlcihuKSx0aGlzLm9wdGlvbnM9e30sdGhpcy5wcm94eT0ic3RyaW5nIj09dHlwZW9mIHQ/bmV3IFVSTCh0KTp0LHRoaXMucHJveHlIZWFkZXJzPW4/LmhlYWRlcnM/P3t9LHVuKCJDcmVhdGluZyBuZXcgSHR0cHNQcm94eUFnZW50IGluc3RhbmNlOiAlbyIsdGhpcy5wcm94eS5ocmVmKTtjb25zdCBlPSh0aGlzLnByb3h5Lmhvc3RuYW1lfHx0aGlzLnByb3h5Lmhvc3QpLnJlcGxhY2UoL15cW3xcXSQvZywiIikscj10aGlzLnByb3h5LnBvcnQ/cGFyc2VJbnQodGhpcy5wcm94eS5wb3J0LDEwKToiaHR0cHM6Ij09PXRoaXMucHJveHkucHJvdG9jb2w/NDQzOjgwO3RoaXMuY29ubmVjdE9wdHM9e0FMUE5Qcm90b2NvbHM6WyJodHRwLzEuMSJdLC4uLm4/aG4obiwiaGVhZGVycyIpOm51bGwsaG9zdDplLHBvcnQ6cn19YXN5bmMgY29ubmVjdCh0LG4pe2NvbnN0e3Byb3h5OmV9PXRoaXM7aWYoIW4uaG9zdCl0aHJvdyBuZXcgVHlwZUVycm9yKCdObyAiaG9zdCIgcHJvdmlkZWQnKTtsZXQgcjtpZigiaHR0cHM6Ij09PWUucHJvdG9jb2wpe3VuKCJDcmVhdGluZyBgdGxzLlNvY2tldGA6ICVvIix0aGlzLmNvbm5lY3RPcHRzKTtjb25zdCB0PXRoaXMuY29ubmVjdE9wdHMuc2VydmVybmFtZXx8dGhpcy5jb25uZWN0T3B0cy5ob3N0O3I9Zi5jb25uZWN0KHsuLi50aGlzLmNvbm5lY3RPcHRzLHNlcnZlcm5hbWU6dCYmYS5pc0lQKHQpP3ZvaWQgMDp0fSl9ZWxzZSB1bigiQ3JlYXRpbmcgYG5ldC5Tb2NrZXRgOiAlbyIsdGhpcy5jb25uZWN0T3B0cykscj1hLmNvbm5lY3QodGhpcy5jb25uZWN0T3B0cyk7Y29uc3Qgbz0iZnVuY3Rpb24iPT10eXBlb2YgdGhpcy5wcm94eUhlYWRlcnM/dGhpcy5wcm94eUhlYWRlcnMoKTp7Li4udGhpcy5wcm94eUhlYWRlcnN9LHM9YS5pc0lQdjYobi5ob3N0KT9gWyR7bi5ob3N0fV1gOm4uaG9zdDtsZXQgaT1gQ09OTkVDVCAke3N9OiR7bi5wb3J0fSBIVFRQLzEuMVxyXG5gO2lmKGUudXNlcm5hbWV8fGUucGFzc3dvcmQpe2NvbnN0IHQ9YCR7ZGVjb2RlVVJJQ29tcG9uZW50KGUudXNlcm5hbWUpfToke2RlY29kZVVSSUNvbXBvbmVudChlLnBhc3N3b3JkKX1gO29bIlByb3h5LUF1dGhvcml6YXRpb24iXT1gQmFzaWMgJHtCdWZmZXIuZnJvbSh0KS50b1N0cmluZygiYmFzZTY0Iil9YH1vLkhvc3Q9YCR7c306JHtuLnBvcnR9YCxvWyJQcm94eS1Db25uZWN0aW9uIl18fChvWyJQcm94eS1Db25uZWN0aW9uIl09dGhpcy5rZWVwQWxpdmU/IktlZXAtQWxpdmUiOiJjbG9zZSIpO2Zvcihjb25zdCB0IG9mIE9iamVjdC5rZXlzKG8pKWkrPWAke3R9OiAke29bdF19XHJcbmA7Y29uc3QgYz1jbihyKTtyLndyaXRlKGAke2l9XHJcbmApO2NvbnN0e2Nvbm5lY3Q6dSxidWZmZXJlZDpofT1hd2FpdCBjO2lmKHQuZW1pdCgicHJveHlDb25uZWN0Iix1KSx0aGlzLmVtaXQoInByb3h5Q29ubmVjdCIsdSx0KSwyMDA9PT11LnN0YXR1c0NvZGUpe2lmKHQub25jZSgic29ja2V0Iixmbiksbi5zZWN1cmVFbmRwb2ludCl7dW4oIlVwZ3JhZGluZyBzb2NrZXQgY29ubmVjdGlvbiB0byBUTFMiKTtjb25zdCB0PW4uc2VydmVybmFtZXx8bi5ob3N0O3JldHVybiBmLmNvbm5lY3Qoey4uLmhuKG4sImhvc3QiLCJwYXRoIiwicG9ydCIpLHNvY2tldDpyLHNlcnZlcm5hbWU6YS5pc0lQKHQpP3ZvaWQgMDp0fSl9cmV0dXJuIHJ9ci5kZXN0cm95KCk7Y29uc3QgcD1uZXcgYS5Tb2NrZXQoe3dyaXRhYmxlOiExfSk7cmV0dXJuIHAucmVhZGFibGU9ITAsdC5vbmNlKCJzb2NrZXQiLCh0PT57dW4oIlJlcGxheWluZyBwcm94eSBidWZmZXIgZm9yIGZhaWxlZCByZXF1ZXN0IiksdC5wdXNoKGgpLHQucHVzaChudWxsKX0pKSxwfX1mdW5jdGlvbiBmbih0KXt0LnJlc3VtZSgpfWZ1bmN0aW9uIGhuKHQsLi4ubil7Y29uc3QgZT17fTtsZXQgcjtmb3IociBpbiB0KW4uaW5jbHVkZXMocil8fChlW3JdPXRbcl0pO3JldHVybiBlfWNvbnN0IHBuPTMyNzY4O2Z1bmN0aW9uIGxuKHQpe3JldHVybiB0LnJlcGxhY2UoL15bQS1aXTovLCIiKS5yZXBsYWNlKC9cXC9nLCIvIil9Y29uc3QgZG49ZTtsZXQgbW4seW49ITEsZ249e307ZnVuY3Rpb24gYm4odCl7ZG4uZGVidWcmJmNvbnNvbGUubG9nKGBbQU5SIFdvcmtlcl0gJHt0fWApfXZhciBfbix2bix3bjtjb25zdCBTbj1mdW5jdGlvbih0KXtsZXQgbjt0cnl7bj1uZXcgVVJMKHQudXJsKX1jYXRjaChuKXtyZXR1cm4gTigoKCk9Pntjb25zb2xlLndhcm4oIltAc2VudHJ5L25vZGVdOiBJbnZhbGlkIGRzbiBvciB0dW5uZWwgb3B0aW9uLCB3aWxsIG5vdCBzZW5kIGFueSBldmVudHMuIFRoZSB0dW5uZWwgb3B0aW9uIG11c3QgYmUgYSBmdWxsIFVSTCB3aGVuIHVzZWQuIil9KSksZW4odCwoKCk9PlByb21pc2UucmVzb2x2ZSh7fSkpKX1jb25zdCBlPSJodHRwczoiPT09bi5wcm90b2NvbCxyPWZ1bmN0aW9uKHQsbil7Y29uc3R7bm9fcHJveHk6ZX09cHJvY2Vzcy5lbnY7cmV0dXJuIGUmJmUuc3BsaXQoIiwiKS5zb21lKChuPT50Lmhvc3QuZW5kc1dpdGgobil8fHQuaG9zdG5hbWUuZW5kc1dpdGgobikpKT92b2lkIDA6bn0obix0LnByb3h5fHwoZT9wcm9jZXNzLmVudi5odHRwc19wcm94eTp2b2lkIDApfHxwcm9jZXNzLmVudi5odHRwX3Byb3h5KSxvPWU/aTpzLGE9dm9pZCAwIT09dC5rZWVwQWxpdmUmJnQua2VlcEFsaXZlLGY9cj9uZXcgYW4ocik6bmV3IG8uQWdlbnQoe2tlZXBBbGl2ZTphLG1heFNvY2tldHM6MzAsdGltZW91dDoyZTN9KSxoPWZ1bmN0aW9uKHQsbixlKXtjb25zdHtob3N0bmFtZTpyLHBhdGhuYW1lOm8scG9ydDpzLHByb3RvY29sOmksc2VhcmNoOmF9PW5ldyBVUkwodC51cmwpO3JldHVybiBmdW5jdGlvbihmKXtyZXR1cm4gbmV3IFByb21pc2UoKChoLHApPT57cXQoKCgpPT57bGV0IGw9ZnVuY3Rpb24odCl7cmV0dXJuIG5ldyBjKHtyZWFkKCl7dGhpcy5wdXNoKHQpLHRoaXMucHVzaChudWxsKX19KX0oZi5ib2R5KTtjb25zdCBkPXsuLi50LmhlYWRlcnN9O2YuYm9keS5sZW5ndGg+cG4mJihkWyJjb250ZW50LWVuY29kaW5nIl09Imd6aXAiLGw9bC5waXBlKHUoKSkpO2NvbnN0IG09bi5yZXF1ZXN0KHttZXRob2Q6IlBPU1QiLGFnZW50OmUsaGVhZGVyczpkLGhvc3RuYW1lOnIscGF0aDpgJHtvfSR7YX1gLHBvcnQ6cyxwcm90b2NvbDppLGNhOnQuY2FDZXJ0c30sKHQ9Pnt0Lm9uKCJkYXRhIiwoKCk9Pnt9KSksdC5vbigiZW5kIiwoKCk9Pnt9KSksdC5zZXRFbmNvZGluZygidXRmOCIpO2NvbnN0IG49dC5oZWFkZXJzWyJyZXRyeS1hZnRlciJdPz9udWxsLGU9dC5oZWFkZXJzWyJ4LXNlbnRyeS1yYXRlLWxpbWl0cyJdPz9udWxsO2goe3N0YXR1c0NvZGU6dC5zdGF0dXNDb2RlLGhlYWRlcnM6eyJyZXRyeS1hZnRlciI6biwieC1zZW50cnktcmF0ZS1saW1pdHMiOkFycmF5LmlzQXJyYXkoZSk/ZVswXXx8bnVsbDplfX0pfSkpO20ub24oImVycm9yIixwKSxsLnBpcGUobSl9KSl9KSl9fSh0LHQuaHR0cE1vZHVsZT8/byxmKTtyZXR1cm4gZW4odCxoKX0oe3VybDooX249ZG4uZHNuLHZuPWRuLnR1bm5lbCx3bj1kbi5zZGtNZXRhZGF0YS5zZGssdm58fGAke2Z1bmN0aW9uKHQpe3JldHVybmAke2Z1bmN0aW9uKHQpe2NvbnN0IG49dC5wcm90b2NvbD9gJHt0LnByb3RvY29sfTpgOiIiLGU9dC5wb3J0P2A6JHt0LnBvcnR9YDoiIjtyZXR1cm5gJHtufS8vJHt0Lmhvc3R9JHtlfSR7dC5wYXRoP2AvJHt0LnBhdGh9YDoiIn0vYXBpL2B9KHQpfSR7dC5wcm9qZWN0SWR9L2VudmVsb3BlL2B9KF9uKX0/JHt0bihfbix3bil9YCkscmVjb3JkRHJvcHBlZEV2ZW50OigpPT57fX0pO2FzeW5jIGZ1bmN0aW9uICRuKCl7aWYobW4pe2JuKCJTZW5kaW5nIGFibm9ybWFsIHNlc3Npb24iKSxndChtbix7c3RhdHVzOiJhYm5vcm1hbCIsYWJub3JtYWxfbWVjaGFuaXNtOiJhbnJfZm9yZWdyb3VuZCJ9KTtjb25zdCB0PWZ1bmN0aW9uKHQsbixlLHIpe2NvbnN0IG89YXQoZSk7cmV0dXJuIG90KHtzZW50X2F0OihuZXcgRGF0ZSkudG9JU09TdHJpbmcoKSwuLi5vJiZ7c2RrOm99LC4uLiEhciYmbiYme2RzbjpUKG4pfX0sWyJhZ2dyZWdhdGVzImluIHQ/W3t0eXBlOiJzZXNzaW9ucyJ9LHRdOlt7dHlwZToic2Vzc2lvbiJ9LHQudG9KU09OKCldXSl9KG1uLGRuLmRzbixkbi5zZGtNZXRhZGF0YSxkbi50dW5uZWwpO2JuKEpTT04uc3RyaW5naWZ5KHQpKSxhd2FpdCBTbi5zZW5kKHQpO3RyeXtuPy5wb3N0TWVzc2FnZSgic2Vzc2lvbi1lbmRlZCIpfWNhdGNoKHQpe319fWZ1bmN0aW9uIEVuKHQpe2lmKCF0KXJldHVybjtjb25zdCBuPWZ1bmN0aW9uKHQpe2lmKCF0Lmxlbmd0aClyZXR1cm5bXTtjb25zdCBuPUFycmF5LmZyb20odCk7cmV0dXJuL3NlbnRyeVdyYXBwZWQvLnRlc3QoTShuKS5mdW5jdGlvbnx8IiIpJiZuLnBvcCgpLG4ucmV2ZXJzZSgpLFUudGVzdChNKG4pLmZ1bmN0aW9ufHwiIikmJihuLnBvcCgpLFUudGVzdChNKG4pLmZ1bmN0aW9ufHwiIikmJm4ucG9wKCkpLG4uc2xpY2UoMCxJKS5tYXAoKHQ9Pih7Li4udCxmaWxlbmFtZTp0LmZpbGVuYW1lfHxNKG4pLmZpbGVuYW1lLGZ1bmN0aW9uOnQuZnVuY3Rpb258fFB9KSkpfSh0KTtpZihkbi5hcHBSb290UGF0aClmb3IoY29uc3QgdCBvZiBuKXQuZmlsZW5hbWUmJih0LmZpbGVuYW1lPVcodC5maWxlbmFtZSxkbi5hcHBSb290UGF0aCkpO3JldHVybiBufWFzeW5jIGZ1bmN0aW9uIHhuKHQsbil7aWYoeW4pcmV0dXJuO3luPSEwLGF3YWl0ICRuKCksYm4oIlNlbmRpbmcgZXZlbnQiKTtjb25zdCBlPXtldmVudF9pZDpZKCksY29udGV4dHM6ZG4uY29udGV4dHMscmVsZWFzZTpkbi5yZWxlYXNlLGVudmlyb25tZW50OmRuLmVudmlyb25tZW50LGRpc3Q6ZG4uZGlzdCxwbGF0Zm9ybToibm9kZSIsbGV2ZWw6ImVycm9yIixleGNlcHRpb246e3ZhbHVlczpbe3R5cGU6IkFwcGxpY2F0aW9uTm90UmVzcG9uZGluZyIsdmFsdWU6YEFwcGxpY2F0aW9uIE5vdCBSZXNwb25kaW5nIGZvciBhdCBsZWFzdCAke2RuLmFuclRocmVzaG9sZH0gbXNgLHN0YWNrdHJhY2U6e2ZyYW1lczpFbih0KX0sbWVjaGFuaXNtOnt0eXBlOiJBTlIifX1dfSx0YWdzOmRuLnN0YXRpY1RhZ3N9O24mJmZ1bmN0aW9uKHQsbil7aWYoUXQodCxuKSwhdC5jb250ZXh0cz8udHJhY2Upe2NvbnN0e3RyYWNlSWQ6ZSxzcGFuSWQ6cixwYXJlbnRTcGFuSWQ6b309bi5wcm9wYWdhdGlvbkNvbnRleHQ7dC5jb250ZXh0cz17dHJhY2U6e3RyYWNlX2lkOmUsc3Bhbl9pZDpyLHBhcmVudF9zcGFuX2lkOm99LC4uLnQuY29udGV4dHN9fX0oZSxuKSxmdW5jdGlvbih0KXtpZigwPT09T2JqZWN0LmtleXMoZ24pLmxlbmd0aClyZXR1cm47Y29uc3Qgbj1uZXcgTWFwO2Zvcihjb25zdCBlIG9mIHQuZXhjZXB0aW9uPy52YWx1ZXN8fFtdKWZvcihjb25zdCB0IG9mIGUuc3RhY2t0cmFjZT8uZnJhbWVzfHxbXSl7Y29uc3QgZT10LmFic19wYXRofHx0LmZpbGVuYW1lO2UmJmduW2VdJiZuLnNldChlLGduW2VdKX1pZihuLnNpemU+MCl7Y29uc3QgZT1bXTtmb3IoY29uc3RbdCxyXW9mIG4uZW50cmllcygpKWUucHVzaCh7dHlwZToic291cmNlbWFwIixjb2RlX2ZpbGU6dCxkZWJ1Z19pZDpyfSk7dC5kZWJ1Z19tZXRhPXtpbWFnZXM6ZX19fShlKTtjb25zdCByPVZ0KGUsZG4uZHNuLGRuLnNka01ldGFkYXRhLGRuLnR1bm5lbCk7Ym4oSlNPTi5zdHJpbmdpZnkocikpLGF3YWl0IFNuLnNlbmQociksYXdhaXQgU24uZmx1c2goMmUzKSxzZXRUaW1lb3V0KCgoKT0+e3Byb2Nlc3MuZXhpdCgwKX0pLDVlMyl9bGV0IE5uO2lmKGJuKCJTdGFydGVkIiksZG4uY2FwdHVyZVN0YWNrVHJhY2Upe2JuKCJDb25uZWN0aW5nIHRvIGRlYnVnZ2VyIik7Y29uc3Qgbj1uZXcgdDtuLmNvbm5lY3RUb01haW5UaHJlYWQoKSxibigiQ29ubmVjdGVkIHRvIGRlYnVnZ2VyIik7Y29uc3QgZT1uZXcgTWFwO24ub24oIkRlYnVnZ2VyLnNjcmlwdFBhcnNlZCIsKHQ9PntlLnNldCh0LnBhcmFtcy5zY3JpcHRJZCx0LnBhcmFtcy51cmwpfSkpLG4ub24oIkRlYnVnZ2VyLnBhdXNlZCIsKHQ9PntpZigib3RoZXIiPT09dC5wYXJhbXMucmVhc29uKXRyeXtibigiRGVidWdnZXIgcGF1c2VkIik7Y29uc3Qgcz1bLi4udC5wYXJhbXMuY2FsbEZyYW1lc10saT1kbi5hcHBSb290UGF0aD9mdW5jdGlvbih0PShwcm9jZXNzLmFyZ3ZbMV0/Syhwcm9jZXNzLmFyZ3ZbMV0pOnByb2Nlc3MuY3dkKCkpLG49IlxcIj09PW8pe2NvbnN0IGU9bj9sbih0KTp0O3JldHVybiB0PT57aWYoIXQpcmV0dXJuO2NvbnN0IG89bj9sbih0KTp0O2xldHtkaXI6cyxiYXNlOmksZXh0OmN9PXIucGFyc2Uobyk7Ii5qcyIhPT1jJiYiLm1qcyIhPT1jJiYiLmNqcyIhPT1jfHwoaT1pLnNsaWNlKDAsLTEqYy5sZW5ndGgpKSxzfHwocz0iLiIpO2NvbnN0IHU9cy5sYXN0SW5kZXhPZigiL25vZGVfbW9kdWxlcyIpO2lmKHU+LTEpcmV0dXJuYCR7cy5zbGljZSh1KzE0KS5yZXBsYWNlKC9cLy9nLCIuIil9OiR7aX1gO2lmKHMuc3RhcnRzV2l0aChlKSl7bGV0IHQ9cy5zbGljZShlLmxlbmd0aCsxKS5yZXBsYWNlKC9cLy9nLCIuIik7cmV0dXJuIHQmJih0Kz0iOiIpLHQrPWksdH1yZXR1cm4gaX19KGRuLmFwcFJvb3RQYXRoKTooKT0+e30sYz1zLm1hcCgodD0+ZnVuY3Rpb24odCxuLGUpe2NvbnN0IHI9bj9uLnJlcGxhY2UoL15maWxlOlwvXC8vLCIiKTp2b2lkIDAsbz10LmxvY2F0aW9uLmNvbHVtbk51bWJlcj90LmxvY2F0aW9uLmNvbHVtbk51bWJlcisxOnZvaWQgMCxzPXQubG9jYXRpb24ubGluZU51bWJlcj90LmxvY2F0aW9uLmxpbmVOdW1iZXIrMTp2b2lkIDA7cmV0dXJuIE8oe2ZpbGVuYW1lOnIsbW9kdWxlOmUociksZnVuY3Rpb246dC5mdW5jdGlvbk5hbWV8fFAsY29sbm86byxsaW5lbm86cyxpbl9hcHA6cj9YKHIpOnZvaWQgMH0pfSh0LGUuZ2V0KHQubG9jYXRpb24uc2NyaXB0SWQpLGkpKSksdT1zZXRUaW1lb3V0KCgoKT0+e3huKGMpLnRoZW4obnVsbCwoKCk9PntibigiU2VuZGluZyBBTlIgZXZlbnQgZmFpbGVkLiIpfSkpfSksNWUzKTtuLnBvc3QoIlJ1bnRpbWUuZXZhbHVhdGUiLHtleHByZXNzaW9uOiJnbG9iYWwuX19TRU5UUllfR0VUX1NDT1BFU19fKCk7IixzaWxlbnQ6ITAscmV0dXJuQnlWYWx1ZTohMH0sKCh0LGUpPT57dCYmYm4oYEVycm9yIGV4ZWN1dGluZyBzY3JpcHQ6ICcke3QubWVzc2FnZX0nYCksY2xlYXJUaW1lb3V0KHUpO2NvbnN0IHI9ZSYmZS5yZXN1bHQ/ZS5yZXN1bHQudmFsdWU6dm9pZCAwO24ucG9zdCgiRGVidWdnZXIucmVzdW1lIiksbi5wb3N0KCJEZWJ1Z2dlci5kaXNhYmxlIikseG4oYyxyKS50aGVuKG51bGwsKCgpPT57Ym4oIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZC4iKX0pKX0pKX1jYXRjaCh0KXt0aHJvdyBuLnBvc3QoIkRlYnVnZ2VyLnJlc3VtZSIpLG4ucG9zdCgiRGVidWdnZXIuZGlzYWJsZSIpLHR9fSkpLE5uPSgpPT57dHJ5e24ucG9zdCgiRGVidWdnZXIuZW5hYmxlIiwoKCk9PntuLnBvc3QoIkRlYnVnZ2VyLnBhdXNlIil9KSl9Y2F0Y2godCl7fX19Y29uc3R7cG9sbDpDbn09ZnVuY3Rpb24odCxuLGUscil7Y29uc3Qgbz10KCk7bGV0IHM9ITEsaT0hMDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57Y29uc3QgdD1vLmdldFRpbWVNcygpOyExPT09cyYmdD5uK2UmJihzPSEwLGkmJnIoKSksdDxuK2UmJihzPSExKX0pLDIwKSx7cG9sbDooKT0+e28ucmVzZXQoKX0sZW5hYmxlZDp0PT57aT10fX19KChmdW5jdGlvbigpe2xldCB0PXByb2Nlc3MuaHJ0aW1lKCk7cmV0dXJue2dldFRpbWVNczooKT0+e2NvbnN0W24sZV09cHJvY2Vzcy5ocnRpbWUodCk7cmV0dXJuIE1hdGguZmxvb3IoMWUzKm4rZS8xZTYpfSxyZXNldDooKT0+e3Q9cHJvY2Vzcy5ocnRpbWUoKX19fSksZG4ucG9sbEludGVydmFsLGRuLmFuclRocmVzaG9sZCwoZnVuY3Rpb24oKXtibigiV2F0Y2hkb2cgdGltZW91dCIpLE5uPyhibigiUGF1c2luZyBkZWJ1Z2dlciB0byBjYXB0dXJlIHN0YWNrIHRyYWNlIiksTm4oKSk6KGJuKCJDYXB0dXJpbmcgZXZlbnQgd2l0aG91dCBhIHN0YWNrIHRyYWNlIikseG4oKS50aGVuKG51bGwsKCgpPT57Ym4oIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZCBvbiB3YXRjaGRvZyB0aW1lb3V0LiIpfSkpKX0pKTtuPy5vbigibWVzc2FnZSIsKHQ9Pnt0LnNlc3Npb24mJihtbj15dCh0LnNlc3Npb24pKSx0LmRlYnVnSW1hZ2VzJiYoZ249dC5kZWJ1Z0ltYWdlcyksQ24oKX0pKTs=",qKe=50,jKe=5e3;function s1(t,...e){kp.logger.log(`[ANR] ${t}`,...e)}function VKe(){return kp.GLOBAL_OBJ}function BKe(){let t=yi.getGlobalScope().getScopeData();return yi.mergeScopeData(t,yi.getIsolationScope().getScopeData()),yi.mergeScopeData(t,yi.getCurrentScope().getScopeData()),t.attachments=[],t.eventProcessors=[],t}async function HKe(t){let e={message:"ANR"},r={};for(let n of t.getEventProcessors()){if(e===null)break;e=await n(e,r)}return UKe([e,"optionalAccess",n=>n.contexts])||{}}var FKe="Anr",kKe=(t={})=>{if(i1.NODE_VERSION.major<16||i1.NODE_VERSION.major===16&&i1.NODE_VERSION.minor<17)throw new Error("ANR detection requires Node 16.17.0 or later");let e,r,n=VKe();return n.__SENTRY_GET_SCOPES__=BKe,{name:FKe,startWorker:()=>{e||r&&(e=KKe(r,t))},stopWorker:()=>{e&&e.then(o=>{o(),e=void 0})},setup(o){r=o,setImmediate(()=>this.startWorker())}}},WKe=yi.defineIntegration(kKe);function YKe(t){V8.channel("module.require.end").subscribe(()=>t()),V8.channel("module.import.asyncEnd").subscribe(()=>t())}async function KKe(t,e){let r=t.getDsn();if(!r)return()=>{};let n=await HKe(t);j8([n,"access",d=>d.app,"optionalAccess",d=>delete d.app_memory]),j8([n,"access",d=>d.device,"optionalAccess",d=>delete d.free_memory]);let o=t.getOptions(),i=t.getSdkMetadata()||{};i.sdk&&(i.sdk.integrations=o.integrations.map(d=>d.name));let s={debug:kp.logger.isEnabled(),dsn:r,tunnel:o.tunnel,environment:o.environment||"production",release:o.release,dist:o.dist,sdkMetadata:i,appRootPath:e.appRootPath,pollInterval:e.pollInterval||qKe,anrThreshold:e.anrThreshold||jKe,captureStackTrace:!!e.captureStackTrace,staticTags:e.staticTags||{},contexts:n};if(s.captureStackTrace){let d=await import("node:inspector");d.url()||d.open(0)}let a=kp.getFilenameToDebugIdMap(o.stackParser);YKe(()=>{a=kp.getFilenameToDebugIdMap(o.stackParser)});let u=new wKe.Worker(new URL(`data:application/javascript;base64,${B8}`),{workerData:s,execArgv:[]});process.on("exit",()=>{u.terminate()});let l=setInterval(()=>{try{let d=yi.getCurrentScope().getSession(),p=d?{...d,toJSON:void 0}:void 0;u.postMessage({session:p,debugImages:a})}catch{}},s.pollInterval);return l.unref(),u.on("message",d=>{d==="session-ended"&&(s1("ANR event sent from ANR worker. Clearing session in this thread."),yi.getCurrentScope().setSession(void 0))}),u.once("error",d=>{clearInterval(l),s1("ANR worker error",d)}),u.once("exit",d=>{clearInterval(l),s1("ANR worker exit",d)}),u.unref(),()=>{u.terminate(),clearInterval(l)}}ZT.anrIntegration=WKe;ZT.base64WorkerScript=B8});var zT=c(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.ExpressLayerType=void 0;var XKe;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(XKe=Wp.ExpressLayerType||(Wp.ExpressLayerType={}))});var JT=c(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.AttributeNames=void 0;var ZKe;(function(t){t.EXPRESS_TYPE="express.type",t.EXPRESS_NAME="express.name"})(ZKe=Yp.AttributeNames||(Yp.AttributeNames={}))});var a1=c(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc._LAYERS_STORE_PROPERTY=dc.kLayerPatched=void 0;dc.kLayerPatched=Symbol("express-layer-patched");dc._LAYERS_STORE_PROPERTY="__ot_middlewares"});var k8=c(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.getLayerPath=xt.asErrorAndMessage=xt.isLayerIgnored=xt.getLayerMetadata=xt.getRouterPath=xt.storeLayerPath=void 0;var u1=zT(),pc=JT(),c1=a1(),zKe=(t,e)=>{Array.isArray(t[c1._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,c1._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e!==void 0&&t[c1._LAYERS_STORE_PROPERTY].push(e)};xt.storeLayerPath=zKe;var JKe=(t,e)=>{var r,n,o,i;let s=(n=(r=e.handle)===null||r===void 0?void 0:r.stack)===null||n===void 0?void 0:n[0];return!((o=s?.route)===null||o===void 0)&&o.path?`${t}${s.route.path}`:!((i=s?.handle)===null||i===void 0)&&i.stack?(0,xt.getRouterPath)(t,s):t};xt.getRouterPath=JKe;var $Ke=(t,e,r)=>{var n;if(e.name==="router"){let o=(0,xt.getRouterPath)("",e),i=o||r||t||"/";return{attributes:{[pc.AttributeNames.EXPRESS_NAME]:i,[pc.AttributeNames.EXPRESS_TYPE]:u1.ExpressLayerType.ROUTER},name:`router - ${i}`}}else return e.name==="bound dispatch"?{attributes:{[pc.AttributeNames.EXPRESS_NAME]:(n=t||r)!==null&&n!==void 0?n:"request handler",[pc.AttributeNames.EXPRESS_TYPE]:u1.ExpressLayerType.REQUEST_HANDLER},name:`request handler${e.path?` - ${t||r}`:""}`}:{attributes:{[pc.AttributeNames.EXPRESS_NAME]:e.name,[pc.AttributeNames.EXPRESS_TYPE]:u1.ExpressLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};xt.getLayerMetadata=$Ke;var QKe=(t,e)=>{if(typeof e=="string")return e===t;if(e instanceof RegExp)return e.test(t);if(typeof e=="function")return e(t);throw new TypeError("Pattern is in unsupported datatype")},e2e=(t,e,r)=>{var n;if(Array.isArray(r?.ignoreLayersType)&&(!((n=r?.ignoreLayersType)===null||n===void 0)&&n.includes(e)))return!0;if(Array.isArray(r?.ignoreLayers)===!1)return!1;try{for(let o of r.ignoreLayers)if(QKe(t,o))return!0}catch{}return!1};xt.isLayerIgnored=e2e;var t2e=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];xt.asErrorAndMessage=t2e;var r2e=t=>{let e=t[0];return Array.isArray(e)?e.map(r=>F8(r)||"").join(","):F8(e)};xt.getLayerPath=r2e;var F8=t=>{if(typeof t=="string")return t;if(t instanceof RegExp||typeof t=="number")return t.toString()}});var W8=c(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.PACKAGE_NAME=_c.PACKAGE_VERSION=void 0;_c.PACKAGE_VERSION="0.44.0";_c.PACKAGE_NAME="@opentelemetry/instrumentation-express"});var Y8=c(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.SeverityNumber=void 0;var n2e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(n2e=Kp.SeverityNumber||(Kp.SeverityNumber={}))});var QT=c(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.NOOP_LOGGER=fc.NoopLogger=void 0;var $T=class{emit(e){}};fc.NoopLogger=$T;fc.NOOP_LOGGER=new $T});var tS=c(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.NOOP_LOGGER_PROVIDER=gc.NoopLoggerProvider=void 0;var o2e=QT(),eS=class{getLogger(e,r,n){return new o2e.NoopLogger}};gc.NoopLoggerProvider=eS;gc.NOOP_LOGGER_PROVIDER=new eS});var d1=c(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0});rS.ProxyLogger=void 0;var i2e=QT(),l1=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):i2e.NOOP_LOGGER}};rS.ProxyLogger=l1});var _1=c(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.ProxyLoggerProvider=void 0;var s2e=tS(),a2e=d1(),p1=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new a2e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:s2e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};nS.ProxyLoggerProvider=p1});var K8=c(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});oS._globalThis=void 0;oS._globalThis=typeof globalThis=="object"?globalThis:global});var X8=c(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS._globalThis=void 0;var u2e=K8();Object.defineProperty(iS,"_globalThis",{enumerable:!0,get:function(){return u2e._globalThis}})});var Z8=c(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0});sS._globalThis=void 0;var c2e=X8();Object.defineProperty(sS,"_globalThis",{enumerable:!0,get:function(){return c2e._globalThis}})});var z8=c(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.API_BACKWARDS_COMPATIBILITY_VERSION=Dn.makeGetter=Dn._global=Dn.GLOBAL_LOGS_API_KEY=void 0;var l2e=Z8();Dn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Dn._global=l2e._globalThis;function d2e(t,e,r){return n=>n===t?e:r}Dn.makeGetter=d2e;Dn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var $8=c(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});aS.LogsAPI=void 0;var wr=z8(),p2e=tS(),J8=_1(),f1=class t{constructor(){this._proxyLoggerProvider=new J8.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return wr._global[wr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(wr._global[wr.GLOBAL_LOGS_API_KEY]=(0,wr.makeGetter)(wr.API_BACKWARDS_COMPATIBILITY_VERSION,e,p2e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=wr._global[wr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(wr._global,wr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete wr._global[wr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new J8.ProxyLoggerProvider}};aS.LogsAPI=f1});var g1=c(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.logs=tt.ProxyLoggerProvider=tt.ProxyLogger=tt.NoopLoggerProvider=tt.NOOP_LOGGER_PROVIDER=tt.NoopLogger=tt.NOOP_LOGGER=tt.SeverityNumber=void 0;var _2e=Y8();Object.defineProperty(tt,"SeverityNumber",{enumerable:!0,get:function(){return _2e.SeverityNumber}});var Q8=QT();Object.defineProperty(tt,"NOOP_LOGGER",{enumerable:!0,get:function(){return Q8.NOOP_LOGGER}});Object.defineProperty(tt,"NoopLogger",{enumerable:!0,get:function(){return Q8.NoopLogger}});var e7=tS();Object.defineProperty(tt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return e7.NOOP_LOGGER_PROVIDER}});Object.defineProperty(tt,"NoopLoggerProvider",{enumerable:!0,get:function(){return e7.NoopLoggerProvider}});var f2e=d1();Object.defineProperty(tt,"ProxyLogger",{enumerable:!0,get:function(){return f2e.ProxyLogger}});var g2e=_1();Object.defineProperty(tt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return g2e.ProxyLoggerProvider}});var h2e=$8();tt.logs=h2e.LogsAPI.getInstance()});var t7=c(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.disableInstrumentations=hc.enableInstrumentations=void 0;function E2e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}hc.enableInstrumentations=E2e;function m2e(t){t.forEach(e=>e.disable())}hc.disableInstrumentations=m2e});var o7=c(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.registerInstrumentations=void 0;var r7=(P(),m(I)),T2e=g1(),n7=t7();function S2e(t){var e,r;let n=t.tracerProvider||r7.trace.getTracerProvider(),o=t.meterProvider||r7.metrics.getMeterProvider(),i=t.loggerProvider||T2e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,n7.enableInstrumentations)(s,n,o,i),()=>{(0,n7.disableInstrumentations)(s)}}uS.registerInstrumentations=S2e});var i7=c(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.InstrumentationAbstract=void 0;var h1=(P(),m(I)),A2e=g1(),cS=le(),E1=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=cS.wrap,this._unwrap=cS.unwrap,this._massWrap=cS.massWrap,this._massUnwrap=cS.massUnwrap,this.setConfig(n),this._diag=h1.diag.createComponentLogger({namespace:e}),this._tracer=h1.trace.getTracer(e,r),this._meter=h1.metrics.getMeter(e,r),this._logger=A2e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};lS.InstrumentationAbstract=E1});var s7=c(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ModuleNameTrie=Ni.ModuleNameSeparator=void 0;Ni.ModuleNameSeparator="/";var dS=class{constructor(){this.hooks=[],this.children=new Map}},m1=class{constructor(){this._trie=new dS,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Ni.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new dS,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Ni.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Ni.ModuleNameTrie=m1});var u7=c(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.RequireInTheMiddleSingleton=void 0;var O2e=de(),a7=require("path"),T1=s7(),R2e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),S1=class t{constructor(){this._moduleNameTrie=new T1.ModuleNameTrie,this._initialize()}_initialize(){new O2e.Hook(null,{internals:!0},(e,r,n)=>{let o=I2e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return R2e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};pS.RequireInTheMiddleSingleton=S1;function I2e(t){return a7.sep!==T1.ModuleNameSeparator?t.split(a7.sep).join(T1.ModuleNameSeparator):t}});var A1=c(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.isWrapped=Ci.safeExecuteInTheMiddleAsync=Ci.safeExecuteInTheMiddle=void 0;function P2e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ci.safeExecuteInTheMiddle=P2e;async function b2e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ci.safeExecuteInTheMiddleAsync=b2e;function v2e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Ci.isWrapped=v2e});var d7=c(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});_S.InstrumentationBase=void 0;var O1=require("path"),c7=require("util"),y2e=Zt(),R1=le(),N2e=i7(),C2e=u7(),M2e=Jt(),Xp=(P(),m(I)),L2e=de(),D2e=require("fs"),G2e=A1(),I1=class extends N2e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=C2e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,G2e.isWrapped)(i[s])&&this._unwrap(i,s),c7.types.isProxy(i)){let u=(0,R1.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,R1.wrap)(i,s,a)},this._unwrap=(i,s)=>c7.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,R1.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Xp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Xp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Xp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Xp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,D2e.readFileSync)(O1.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Xp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return l7(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=O1.normalize(n);return a.filter(d=>d.name===u).filter(d=>l7(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=O1.isAbsolute(e.name)?new L2e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new M2e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};_S.InstrumentationBase=I1;function l7(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,y2e.satisfies)(e,n,{includePrerelease:r}))}});var p7=c(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.normalize=void 0;var x2e=require("path");Object.defineProperty(fS,"normalize",{enumerable:!0,get:function(){return x2e.normalize}})});var _7=c(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.normalize=Ec.InstrumentationBase=void 0;var U2e=d7();Object.defineProperty(Ec,"InstrumentationBase",{enumerable:!0,get:function(){return U2e.InstrumentationBase}});var w2e=p7();Object.defineProperty(Ec,"normalize",{enumerable:!0,get:function(){return w2e.normalize}})});var P1=c(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.normalize=mc.InstrumentationBase=void 0;var f7=_7();Object.defineProperty(mc,"InstrumentationBase",{enumerable:!0,get:function(){return f7.InstrumentationBase}});Object.defineProperty(mc,"normalize",{enumerable:!0,get:function(){return f7.normalize}})});var g7=c(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});gS.InstrumentationNodeModuleDefinition=void 0;var b1=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};gS.InstrumentationNodeModuleDefinition=b1});var h7=c(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});hS.InstrumentationNodeModuleFile=void 0;var q2e=P1(),v1=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,q2e.normalize)(e)}};hS.InstrumentationNodeModuleFile=v1});var E7=c(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.safeExecuteInTheMiddleAsync=Ut.safeExecuteInTheMiddle=Ut.isWrapped=Ut.InstrumentationNodeModuleFile=Ut.InstrumentationNodeModuleDefinition=Ut.InstrumentationBase=Ut.registerInstrumentations=void 0;var j2e=o7();Object.defineProperty(Ut,"registerInstrumentations",{enumerable:!0,get:function(){return j2e.registerInstrumentations}});var V2e=P1();Object.defineProperty(Ut,"InstrumentationBase",{enumerable:!0,get:function(){return V2e.InstrumentationBase}});var B2e=g7();Object.defineProperty(Ut,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return B2e.InstrumentationNodeModuleDefinition}});var H2e=h7();Object.defineProperty(Ut,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return H2e.InstrumentationNodeModuleFile}});var y1=A1();Object.defineProperty(Ut,"isWrapped",{enumerable:!0,get:function(){return y1.isWrapped}});Object.defineProperty(Ut,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return y1.safeExecuteInTheMiddle}});Object.defineProperty(Ut,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return y1.safeExecuteInTheMiddleAsync}})});var O7=c(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.ExpressInstrumentation=void 0;var m7=ae(),fa=(P(),m(I)),T7=zT(),S7=JT(),Mi=k8(),A7=W8(),Tc=E7(),F2e=($(),m(J)),Zp=a1(),N1=class extends Tc.InstrumentationBase{constructor(e={}){super(A7.PACKAGE_NAME,A7.PACKAGE_VERSION,e)}init(){return[new Tc.InstrumentationNodeModuleDefinition("express",[">=4.0.0 <5"],e=>{let r=e.Router;return(0,Tc.isWrapped)(r.route)&&this._unwrap(r,"route"),this._wrap(r,"route",this._getRoutePatch()),(0,Tc.isWrapped)(r.use)&&this._unwrap(r,"use"),this._wrap(r,"use",this._getRouterUsePatch()),(0,Tc.isWrapped)(e.application.use)&&this._unwrap(e.application,"use"),this._wrap(e.application,"use",this._getAppUsePatch()),e},e=>{if(e===void 0)return;let r=e.Router;this._unwrap(r,"route"),this._unwrap(r,"use"),this._unwrap(e.application,"use")})]}_getRoutePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this.stack[this.stack.length-1];return e._applyPatch(s,(0,Mi.getLayerPath)(o)),i}}}_getRouterUsePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this.stack[this.stack.length-1];return e._applyPatch(s,(0,Mi.getLayerPath)(o)),i}}}_getAppUsePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this._router.stack[this._router.stack.length-1];return e._applyPatch(s,(0,Mi.getLayerPath)(o)),i}}}_applyPatch(e,r){let n=this;e[Zp.kLayerPatched]!==!0&&(e[Zp.kLayerPatched]=!0,this._wrap(e,"handle",o=>{if(o.length===4)return o;let i=function(s,a){(0,Mi.storeLayerPath)(s,r);let u=s[Zp._LAYERS_STORE_PROPERTY].filter(L=>L!=="/"&&L!=="/*").join("").replace(/\/{2,}/g,"/"),l={[F2e.SEMATTRS_HTTP_ROUTE]:u.length>0?u:"/"},d=(0,Mi.getLayerMetadata)(u,e,r),p=d.attributes[S7.AttributeNames.EXPRESS_TYPE],_=(0,m7.getRPCMetadata)(fa.context.active());if(_?.type===m7.RPCType.HTTP&&(_.route=u||"/"),(0,Mi.isLayerIgnored)(d.name,p,n.getConfig()))return p===T7.ExpressLayerType.MIDDLEWARE&&s[Zp._LAYERS_STORE_PROPERTY].pop(),o.apply(this,arguments);if(fa.trace.getSpan(fa.context.active())===void 0)return o.apply(this,arguments);let f=n._getSpanName({request:s,layerType:p,route:u},d.name),g=n.tracer.startSpan(f,{attributes:Object.assign(l,d.attributes)}),{requestHook:h}=n.getConfig();h&&(0,Tc.safeExecuteInTheMiddle)(()=>h(g,{request:s,layerType:p,route:u}),L=>{L&&fa.diag.error("express instrumentation: request hook failed",L)},!0);let T=!1;d.attributes[S7.AttributeNames.EXPRESS_TYPE]!==T7.ExpressLayerType.MIDDLEWARE&&(g.end(),T=!0);let v=()=>{T===!1&&(T=!0,g.end())},N=Array.from(arguments),D=N.findIndex(L=>typeof L=="function");D>=0&&(arguments[D]=function(){var L;let y=arguments[0],C=![void 0,null,"route","router"].includes(y);if(!T&&C){let[K,Q]=(0,Mi.asErrorAndMessage)(y);g.recordException(K),g.setStatus({code:fa.SpanStatusCode.ERROR,message:Q})}return T===!1&&(T=!0,(L=s.res)===null||L===void 0||L.removeListener("finish",v),g.end()),s.route&&C||s[Zp._LAYERS_STORE_PROPERTY].pop(),N[D].apply(this,arguments)});try{return o.apply(this,arguments)}catch(L){let[y,C]=(0,Mi.asErrorAndMessage)(L);throw g.recordException(y),g.setStatus({code:fa.SpanStatusCode.ERROR,message:C}),L}finally{T||a.once("finish",v)}};for(let s in o)Object.defineProperty(i,s,{get(){return o[s]},set(a){o[s]=a}});return i}))}_getSpanName(e,r){var n;let{spanNameHook:o}=this.getConfig();if(!(o instanceof Function))return r;try{return(n=o(e,r))!==null&&n!==void 0?n:r}catch(i){return fa.diag.error("express instrumentation: error calling span name rewrite hook",i),r}}};ES.ExpressInstrumentation=N1});var I7=c(R7=>{"use strict";Object.defineProperty(R7,"__esModule",{value:!0})});var P7=c(Gn=>{"use strict";var k2e=Gn&&Gn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),mS=Gn&&Gn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&k2e(e,t,r)};Object.defineProperty(Gn,"__esModule",{value:!0});mS(O7(),Gn);mS(zT(),Gn);mS(JT(),Gn);mS(I7(),Gn)});var b7=c(C1=>{Object.defineProperty(C1,"__esModule",{value:!0});var W2e=lc(),Y2e=t=>({package:t,"javascript.is_cjs":W2e.isCjs()});C1.createMissingInstrumentationContext=Y2e});var Sc=c(M1=>{var{_optionalChain:K2e}=b();Object.defineProperty(M1,"__esModule",{value:!0});var X2e=ae(),TS=k(),Z2e=b(),z2e=lc(),J2e=b7();function $2e(t,e){let r=TS.getClient();!K2e([r,"optionalAccess",n=>n.getOptions,"call",n=>n(),"access",n=>n.disableInstrumentationWarnings])&&!X2e.isWrapped(t)&&TS.isEnabled()&&TS.hasTracingEnabled()&&(Z2e.consoleSandbox(()=>{z2e.isCjs()?console.warn(`[Sentry] ${e} is not instrumented. This is likely because you required/imported ${e} before calling \`Sentry.init()\`.`):console.warn(`[Sentry] ${e} is not instrumented. Please make sure to initialize Sentry in a separate file that you \`--import\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${e}/install/esm/.`)}),TS.getGlobalScope().setContext("missing_instrumentation",J2e.createMissingInstrumentationContext(e)))}M1.ensureIsWrapped=$2e});var L1=c(Ac=>{var{_optionalChain:Q2e}=b();Object.defineProperty(Ac,"__esModule",{value:!0});var eXe=P7(),Io=k(),tXe=b(),rXe=on(),nXe=Se(),oXe=Cn(),iXe=Sc(),v7="Express",y7=nXe.generateInstrumentOnce(v7,()=>new eXe.ExpressInstrumentation({requestHook(t){oXe.addOriginToSpan(t,"auto.http.otel.express");let e=Io.spanToJSON(t).data||{},r=e["express.type"];r&&t.setAttribute(Io.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.express`);let n=e["express.name"];typeof n=="string"&&t.updateName(n)},spanNameHook(t,e){if(Io.getIsolationScope()===Io.getDefaultIsolationScope())return rXe.DEBUG_BUILD&&tXe.logger.warn("Isolation scope is still default isolation scope - skipping setting transactionName"),e;if(t.layerType==="request_handler"){let r=t.request,n=r.method?r.method.toUpperCase():"GET";Io.getIsolationScope().setTransactionName(`${n} ${t.route}`)}return e}})),sXe=()=>({name:v7,setupOnce(){y7()}}),aXe=Io.defineIntegration(sXe);function N7(t){return function(r,n,o,i){if((Q2e([t,"optionalAccess",a=>a.shouldHandleError])||lXe)(r)){let a=Io.getClient();if(a&&a.getOptions().autoSessionTracking&&a._sessionFlusher!==void 0){let d=Io.getIsolationScope().getRequestSession();d&&d.status!==void 0&&(d.status="crashed")}let u=Io.captureException(r,{mechanism:{type:"middleware",handled:!1}});o.sentry=u,i(r);return}i(r)}}function uXe(t,e){t.use(N7(e)),iXe.ensureIsWrapped(t.use,"express")}function cXe(t){let e=t.status||t.statusCode||t.status_code||t.output&&t.output.statusCode;return e?parseInt(e,10):500}function lXe(t){return cXe(t)>=500}Ac.expressErrorHandler=N7;Ac.expressIntegration=aXe;Ac.instrumentExpress=y7;Ac.setupExpressErrorHandler=uXe});var D1=c(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.FastifyNames=un.FastifyTypes=un.AttributeNames=void 0;var dXe;(function(t){t.FASTIFY_NAME="fastify.name",t.FASTIFY_TYPE="fastify.type",t.HOOK_NAME="hook.name",t.PLUGIN_NAME="plugin.name"})(dXe=un.AttributeNames||(un.AttributeNames={}));var pXe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(pXe=un.FastifyTypes||(un.FastifyTypes={}));var _Xe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})(_Xe=un.FastifyNames||(un.FastifyNames={}))});var M7=c(C7=>{"use strict";Object.defineProperty(C7,"__esModule",{value:!0})});var L7=c(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.SeverityNumber=void 0;var fXe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(fXe=zp.SeverityNumber||(zp.SeverityNumber={}))});var AS=c(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.NOOP_LOGGER=Oc.NoopLogger=void 0;var SS=class{emit(e){}};Oc.NoopLogger=SS;Oc.NOOP_LOGGER=new SS});var RS=c(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.NOOP_LOGGER_PROVIDER=Rc.NoopLoggerProvider=void 0;var gXe=AS(),OS=class{getLogger(e,r,n){return new gXe.NoopLogger}};Rc.NoopLoggerProvider=OS;Rc.NOOP_LOGGER_PROVIDER=new OS});var x1=c(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.ProxyLogger=void 0;var hXe=AS(),G1=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):hXe.NOOP_LOGGER}};IS.ProxyLogger=G1});var w1=c(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});PS.ProxyLoggerProvider=void 0;var EXe=RS(),mXe=x1(),U1=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new mXe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:EXe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};PS.ProxyLoggerProvider=U1});var D7=c(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});bS._globalThis=void 0;bS._globalThis=typeof globalThis=="object"?globalThis:global});var G7=c(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});vS._globalThis=void 0;var TXe=D7();Object.defineProperty(vS,"_globalThis",{enumerable:!0,get:function(){return TXe._globalThis}})});var x7=c(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS._globalThis=void 0;var SXe=G7();Object.defineProperty(yS,"_globalThis",{enumerable:!0,get:function(){return SXe._globalThis}})});var U7=c(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.API_BACKWARDS_COMPATIBILITY_VERSION=xn.makeGetter=xn._global=xn.GLOBAL_LOGS_API_KEY=void 0;var AXe=x7();xn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");xn._global=AXe._globalThis;function OXe(t,e,r){return n=>n===t?e:r}xn.makeGetter=OXe;xn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var q7=c(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.LogsAPI=void 0;var qr=U7(),RXe=RS(),w7=w1(),q1=class t{constructor(){this._proxyLoggerProvider=new w7.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return qr._global[qr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(qr._global[qr.GLOBAL_LOGS_API_KEY]=(0,qr.makeGetter)(qr.API_BACKWARDS_COMPATIBILITY_VERSION,e,RXe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=qr._global[qr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(qr._global,qr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete qr._global[qr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new w7.ProxyLoggerProvider}};NS.LogsAPI=q1});var j1=c(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.logs=rt.ProxyLoggerProvider=rt.ProxyLogger=rt.NoopLoggerProvider=rt.NOOP_LOGGER_PROVIDER=rt.NoopLogger=rt.NOOP_LOGGER=rt.SeverityNumber=void 0;var IXe=L7();Object.defineProperty(rt,"SeverityNumber",{enumerable:!0,get:function(){return IXe.SeverityNumber}});var j7=AS();Object.defineProperty(rt,"NOOP_LOGGER",{enumerable:!0,get:function(){return j7.NOOP_LOGGER}});Object.defineProperty(rt,"NoopLogger",{enumerable:!0,get:function(){return j7.NoopLogger}});var V7=RS();Object.defineProperty(rt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return V7.NOOP_LOGGER_PROVIDER}});Object.defineProperty(rt,"NoopLoggerProvider",{enumerable:!0,get:function(){return V7.NoopLoggerProvider}});var PXe=x1();Object.defineProperty(rt,"ProxyLogger",{enumerable:!0,get:function(){return PXe.ProxyLogger}});var bXe=w1();Object.defineProperty(rt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return bXe.ProxyLoggerProvider}});var vXe=q7();rt.logs=vXe.LogsAPI.getInstance()});var B7=c(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.disableInstrumentations=Ic.enableInstrumentations=void 0;function yXe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Ic.enableInstrumentations=yXe;function NXe(t){t.forEach(e=>e.disable())}Ic.disableInstrumentations=NXe});var k7=c(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.registerInstrumentations=void 0;var H7=(P(),m(I)),CXe=j1(),F7=B7();function MXe(t){var e,r;let n=t.tracerProvider||H7.trace.getTracerProvider(),o=t.meterProvider||H7.metrics.getMeterProvider(),i=t.loggerProvider||CXe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,F7.enableInstrumentations)(s,n,o,i),()=>{(0,F7.disableInstrumentations)(s)}}CS.registerInstrumentations=MXe});var W7=c(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.InstrumentationAbstract=void 0;var V1=(P(),m(I)),LXe=j1(),MS=le(),B1=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=MS.wrap,this._unwrap=MS.unwrap,this._massWrap=MS.massWrap,this._massUnwrap=MS.massUnwrap,this.setConfig(n),this._diag=V1.diag.createComponentLogger({namespace:e}),this._tracer=V1.trace.getTracer(e,r),this._meter=V1.metrics.getMeter(e,r),this._logger=LXe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};LS.InstrumentationAbstract=B1});var Y7=c(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.ModuleNameTrie=Li.ModuleNameSeparator=void 0;Li.ModuleNameSeparator="/";var DS=class{constructor(){this.hooks=[],this.children=new Map}},H1=class{constructor(){this._trie=new DS,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Li.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new DS,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Li.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Li.ModuleNameTrie=H1});var X7=c(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS.RequireInTheMiddleSingleton=void 0;var DXe=de(),K7=require("path"),F1=Y7(),GXe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),k1=class t{constructor(){this._moduleNameTrie=new F1.ModuleNameTrie,this._initialize()}_initialize(){new DXe.Hook(null,{internals:!0},(e,r,n)=>{let o=xXe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return GXe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};GS.RequireInTheMiddleSingleton=k1;function xXe(t){return K7.sep!==F1.ModuleNameSeparator?t.split(K7.sep).join(F1.ModuleNameSeparator):t}});var W1=c(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.isWrapped=Di.safeExecuteInTheMiddleAsync=Di.safeExecuteInTheMiddle=void 0;function UXe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Di.safeExecuteInTheMiddle=UXe;async function wXe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Di.safeExecuteInTheMiddleAsync=wXe;function qXe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Di.isWrapped=qXe});var J7=c(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS.InstrumentationBase=void 0;var Y1=require("path"),Z7=require("util"),jXe=Zt(),K1=le(),VXe=W7(),BXe=X7(),HXe=Jt(),Jp=(P(),m(I)),FXe=de(),kXe=require("fs"),WXe=W1(),X1=class extends VXe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=BXe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,WXe.isWrapped)(i[s])&&this._unwrap(i,s),Z7.types.isProxy(i)){let u=(0,K1.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,K1.wrap)(i,s,a)},this._unwrap=(i,s)=>Z7.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,K1.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Jp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Jp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Jp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Jp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,kXe.readFileSync)(Y1.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Jp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return z7(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=Y1.normalize(n);return a.filter(d=>d.name===u).filter(d=>z7(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=Y1.isAbsolute(e.name)?new FXe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new HXe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};xS.InstrumentationBase=X1;function z7(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,jXe.satisfies)(e,n,{includePrerelease:r}))}});var $7=c(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US.normalize=void 0;var YXe=require("path");Object.defineProperty(US,"normalize",{enumerable:!0,get:function(){return YXe.normalize}})});var Q7=c(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.normalize=Pc.InstrumentationBase=void 0;var KXe=J7();Object.defineProperty(Pc,"InstrumentationBase",{enumerable:!0,get:function(){return KXe.InstrumentationBase}});var XXe=$7();Object.defineProperty(Pc,"normalize",{enumerable:!0,get:function(){return XXe.normalize}})});var Z1=c(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.normalize=bc.InstrumentationBase=void 0;var eee=Q7();Object.defineProperty(bc,"InstrumentationBase",{enumerable:!0,get:function(){return eee.InstrumentationBase}});Object.defineProperty(bc,"normalize",{enumerable:!0,get:function(){return eee.normalize}})});var tee=c(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.InstrumentationNodeModuleDefinition=void 0;var z1=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};wS.InstrumentationNodeModuleDefinition=z1});var ree=c(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.InstrumentationNodeModuleFile=void 0;var ZXe=Z1(),J1=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,ZXe.normalize)(e)}};qS.InstrumentationNodeModuleFile=J1});var nee=c(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.safeExecuteInTheMiddleAsync=wt.safeExecuteInTheMiddle=wt.isWrapped=wt.InstrumentationNodeModuleFile=wt.InstrumentationNodeModuleDefinition=wt.InstrumentationBase=wt.registerInstrumentations=void 0;var zXe=k7();Object.defineProperty(wt,"registerInstrumentations",{enumerable:!0,get:function(){return zXe.registerInstrumentations}});var JXe=Z1();Object.defineProperty(wt,"InstrumentationBase",{enumerable:!0,get:function(){return JXe.InstrumentationBase}});var $Xe=tee();Object.defineProperty(wt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return $Xe.InstrumentationNodeModuleDefinition}});var QXe=ree();Object.defineProperty(wt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return QXe.InstrumentationNodeModuleFile}});var $1=W1();Object.defineProperty(wt,"isWrapped",{enumerable:!0,get:function(){return $1.isWrapped}});Object.defineProperty(wt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return $1.safeExecuteInTheMiddle}});Object.defineProperty(wt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return $1.safeExecuteInTheMiddleAsync}})});var Q1=c(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.hooksNamesToWrap=vc.spanRequestSymbol=void 0;vc.spanRequestSymbol=Symbol("opentelemetry.instrumentation.fastify.request_active_span");vc.hooksNamesToWrap=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"])});var iee=c(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.safeExecuteInTheMiddleMaybePromise=Gi.endSpan=Gi.startSpan=void 0;var eZe=(P(),m(I)),jS=Q1();function tZe(t,e,r,n={}){let o=e.startSpan(r,{attributes:n}),i=t[jS.spanRequestSymbol]||[];return i.push(o),Object.defineProperty(t,jS.spanRequestSymbol,{enumerable:!1,configurable:!0,value:i}),o}Gi.startSpan=tZe;function rZe(t,e){let r=t[jS.spanRequestSymbol]||[];r.length&&(r.forEach(n=>{e&&(n.setStatus({code:eZe.SpanStatusCode.ERROR,message:e.message}),n.recordException(e)),n.end()}),delete t[jS.spanRequestSymbol])}Gi.endSpan=rZe;function nZe(t,e,r){let n,o;try{o=t(),oee(o)&&o.then(i=>e(void 0,i),i=>e(i))}catch(i){n=i}finally{if(!oee(o)&&(e(n,o),n&&!r))throw n;return o}}Gi.safeExecuteInTheMiddleMaybePromise=nZe;function oee(t){var e;return typeof t=="object"&&t&&typeof((e=Object.getOwnPropertyDescriptor(t,"then"))===null||e===void 0?void 0:e.value)=="function"||!1}});var see=c(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PACKAGE_NAME=yc.PACKAGE_VERSION=void 0;yc.PACKAGE_VERSION="0.41.0";yc.PACKAGE_NAME="@opentelemetry/instrumentation-fastify"});var cee=c(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.FastifyInstrumentation=Ui.ANONYMOUS_NAME=void 0;var xi=(P(),m(I)),aee=ae(),VS=nee(),oZe=($(),m(J)),iZe=Q1(),Un=D1(),Nc=iee(),uee=see();Ui.ANONYMOUS_NAME="anonymous";var eD=class extends VS.InstrumentationBase{constructor(e={}){super(uee.PACKAGE_NAME,uee.PACKAGE_VERSION,e)}init(){return[new VS.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <6"],e=>this._patchConstructor(e))]}_hookOnRequest(){let e=this;return function(n,o,i){if(!e.isEnabled())return i();e._wrap(o,"send",e._patchSend());let s=n,a=(0,aee.getRPCMetadata)(xi.context.active()),u=s.routeOptions?s.routeOptions.url:n.routerPath;u&&a?.type===aee.RPCType.HTTP&&(a.route=u),i()}}_wrapHandler(e,r,n,o){let i=this;return this._diag.debug("Patching fastify route.handler function"),function(...s){if(!i.isEnabled())return n.apply(this,s);let a=n.name||e||Ui.ANONYMOUS_NAME,u=`${Un.FastifyNames.MIDDLEWARE} - ${a}`,l=s[1],d=(0,Nc.startSpan)(l,i.tracer,u,{[Un.AttributeNames.FASTIFY_TYPE]:Un.FastifyTypes.MIDDLEWARE,[Un.AttributeNames.PLUGIN_NAME]:e,[Un.AttributeNames.HOOK_NAME]:r}),p=o&&s[s.length-1];return p&&(s[s.length-1]=function(..._){(0,Nc.endSpan)(l),p.apply(this,_)}),xi.context.with(xi.trace.setSpan(xi.context.active(),d),()=>(0,Nc.safeExecuteInTheMiddleMaybePromise)(()=>n.apply(this,s),_=>{_ instanceof Error&&(d.setStatus({code:xi.SpanStatusCode.ERROR,message:_.message}),d.recordException(_)),o||(0,Nc.endSpan)(l)}))}}_wrapAddHook(){let e=this;return this._diag.debug("Patching fastify server.addHook function"),function(r){return function(...o){let i=o[0],s=o[1],a=this.pluginName;if(!iZe.hooksNamesToWrap.has(i))return r.apply(this,o);let u=typeof o[o.length-1]=="function"&&s.constructor.name!=="AsyncFunction";return r.apply(this,[i,e._wrapHandler(a,i,s,u)])}}}_patchConstructor(e){let r=this;function n(...o){let i=e.fastify.apply(this,o);return i.addHook("onRequest",r._hookOnRequest()),i.addHook("preHandler",r._hookPreHandler()),r._wrap(i,"addHook",r._wrapAddHook()),i}return n.fastify=n,n.default=n,n}_patchSend(){let e=this;return this._diag.debug("Patching fastify reply.send function"),function(n){return function(...i){let s=i[0];return e.isEnabled()?(0,VS.safeExecuteInTheMiddle)(()=>n.apply(this,i),a=>{!a&&s instanceof Error&&(a=s),(0,Nc.endSpan)(this,a)}):n.apply(this,i)}}}_hookPreHandler(){let e=this;return this._diag.debug("Patching fastify preHandler function"),function(n,o,i){var s,a;if(!e.isEnabled())return i();let u=n,l=((s=u.routeOptions)===null||s===void 0?void 0:s.handler)||((a=u.context)===null||a===void 0?void 0:a.handler),d=l?.name.startsWith("bound ")?l.name.substr(6):l?.name,p=`${Un.FastifyNames.REQUEST_HANDLER} - ${d||this.pluginName||Ui.ANONYMOUS_NAME}`,_={[Un.AttributeNames.PLUGIN_NAME]:this.pluginName,[Un.AttributeNames.FASTIFY_TYPE]:Un.FastifyTypes.REQUEST_HANDLER,[oZe.SEMATTRS_HTTP_ROUTE]:u.routeOptions?u.routeOptions.url:n.routerPath};d&&(_[Un.AttributeNames.FASTIFY_NAME]=d);let f=(0,Nc.startSpan)(o,e.tracer,p,_),{requestHook:g}=e.getConfig();return g&&(0,VS.safeExecuteInTheMiddle)(()=>g(f,{request:n}),h=>{h&&e._diag.error("request hook failed",h)},!0),xi.context.with(xi.trace.setSpan(xi.context.active(),f),()=>{i()})}}};Ui.FastifyInstrumentation=eD});var lee=c(Po=>{"use strict";var sZe=Po&&Po.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),tD=Po&&Po.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&sZe(e,t,r)};Object.defineProperty(Po,"__esModule",{value:!0});tD(D1(),Po);tD(M7(),Po);tD(cee(),Po)});var rD=c($p=>{var{_optionalChain:dee}=b();Object.defineProperty($p,"__esModule",{value:!0});var aZe=lee(),wi=k(),uZe=Se(),cZe=Sc(),pee="Fastify",_ee=uZe.generateInstrumentOnce(pee,()=>new aZe.FastifyInstrumentation({requestHook(t){fee(t)}})),lZe=()=>({name:pee,setupOnce(){_ee()}}),dZe=wi.defineIntegration(lZe);function pZe(t){let e=Object.assign(function(n,o,i){n.addHook("onError",async(s,a,u)=>{wi.captureException(u)}),n.addHook("onRequest",async(s,a)=>{let u=s,l=dee([u,"access",p=>p.routeOptions,"optionalAccess",p=>p.url])||u.routerPath,d=dee([u,"access",p=>p.routeOptions,"optionalAccess",p=>p.method])||"GET";wi.getIsolationScope().setTransactionName(`${d} ${l}`)}),i()},{[Symbol.for("skip-override")]:!0,[Symbol.for("fastify.display-name")]:"sentry-fastify-error-handler"});t.register(e);let r=wi.getClient();r&&r.on("spanStart",n=>{fee(n)}),cZe.ensureIsWrapped(t.addHook,"fastify")}function fee(t){let e=wi.spanToJSON(t).data||{},r=e["fastify.type"];if(e[wi.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r)return;t.setAttributes({[wi.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.fastify",[wi.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.fastify`});let n=e["fastify.name"]||e["plugin.name"]||e["hook.name"];typeof n=="string"&&t.updateName(n.replace(/^fastify -> /,""))}$p.fastifyIntegration=dZe;$p.instrumentFastify=_ee;$p.setupFastifyErrorHandler=pZe});var gee=c(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.SeverityNumber=void 0;var _Ze;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(_Ze=Qp.SeverityNumber||(Qp.SeverityNumber={}))});var HS=c(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.NOOP_LOGGER=Cc.NoopLogger=void 0;var BS=class{emit(e){}};Cc.NoopLogger=BS;Cc.NOOP_LOGGER=new BS});var kS=c(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.NOOP_LOGGER_PROVIDER=Mc.NoopLoggerProvider=void 0;var fZe=HS(),FS=class{getLogger(e,r,n){return new fZe.NoopLogger}};Mc.NoopLoggerProvider=FS;Mc.NOOP_LOGGER_PROVIDER=new FS});var oD=c(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.ProxyLogger=void 0;var gZe=HS(),nD=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):gZe.NOOP_LOGGER}};WS.ProxyLogger=nD});var sD=c(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.ProxyLoggerProvider=void 0;var hZe=kS(),EZe=oD(),iD=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new EZe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:hZe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};YS.ProxyLoggerProvider=iD});var hee=c(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});KS._globalThis=void 0;KS._globalThis=typeof globalThis=="object"?globalThis:global});var Eee=c(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0});XS._globalThis=void 0;var mZe=hee();Object.defineProperty(XS,"_globalThis",{enumerable:!0,get:function(){return mZe._globalThis}})});var mee=c(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});ZS._globalThis=void 0;var TZe=Eee();Object.defineProperty(ZS,"_globalThis",{enumerable:!0,get:function(){return TZe._globalThis}})});var Tee=c(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.API_BACKWARDS_COMPATIBILITY_VERSION=wn.makeGetter=wn._global=wn.GLOBAL_LOGS_API_KEY=void 0;var SZe=mee();wn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");wn._global=SZe._globalThis;function AZe(t,e,r){return n=>n===t?e:r}wn.makeGetter=AZe;wn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var Aee=c(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.LogsAPI=void 0;var jr=Tee(),OZe=kS(),See=sD(),aD=class t{constructor(){this._proxyLoggerProvider=new See.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return jr._global[jr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(jr._global[jr.GLOBAL_LOGS_API_KEY]=(0,jr.makeGetter)(jr.API_BACKWARDS_COMPATIBILITY_VERSION,e,OZe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=jr._global[jr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(jr._global,jr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete jr._global[jr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new See.ProxyLoggerProvider}};zS.LogsAPI=aD});var uD=c(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.logs=nt.ProxyLoggerProvider=nt.ProxyLogger=nt.NoopLoggerProvider=nt.NOOP_LOGGER_PROVIDER=nt.NoopLogger=nt.NOOP_LOGGER=nt.SeverityNumber=void 0;var RZe=gee();Object.defineProperty(nt,"SeverityNumber",{enumerable:!0,get:function(){return RZe.SeverityNumber}});var Oee=HS();Object.defineProperty(nt,"NOOP_LOGGER",{enumerable:!0,get:function(){return Oee.NOOP_LOGGER}});Object.defineProperty(nt,"NoopLogger",{enumerable:!0,get:function(){return Oee.NoopLogger}});var Ree=kS();Object.defineProperty(nt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return Ree.NOOP_LOGGER_PROVIDER}});Object.defineProperty(nt,"NoopLoggerProvider",{enumerable:!0,get:function(){return Ree.NoopLoggerProvider}});var IZe=oD();Object.defineProperty(nt,"ProxyLogger",{enumerable:!0,get:function(){return IZe.ProxyLogger}});var PZe=sD();Object.defineProperty(nt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return PZe.ProxyLoggerProvider}});var bZe=Aee();nt.logs=bZe.LogsAPI.getInstance()});var Iee=c(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.disableInstrumentations=Lc.enableInstrumentations=void 0;function vZe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Lc.enableInstrumentations=vZe;function yZe(t){t.forEach(e=>e.disable())}Lc.disableInstrumentations=yZe});var vee=c(JS=>{"use strict";Object.defineProperty(JS,"__esModule",{value:!0});JS.registerInstrumentations=void 0;var Pee=(P(),m(I)),NZe=uD(),bee=Iee();function CZe(t){var e,r;let n=t.tracerProvider||Pee.trace.getTracerProvider(),o=t.meterProvider||Pee.metrics.getMeterProvider(),i=t.loggerProvider||NZe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,bee.enableInstrumentations)(s,n,o,i),()=>{(0,bee.disableInstrumentations)(s)}}JS.registerInstrumentations=CZe});var yee=c(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});QS.InstrumentationAbstract=void 0;var cD=(P(),m(I)),MZe=uD(),$S=le(),lD=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=$S.wrap,this._unwrap=$S.unwrap,this._massWrap=$S.massWrap,this._massUnwrap=$S.massUnwrap,this.setConfig(n),this._diag=cD.diag.createComponentLogger({namespace:e}),this._tracer=cD.trace.getTracer(e,r),this._meter=cD.metrics.getMeter(e,r),this._logger=MZe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};QS.InstrumentationAbstract=lD});var Nee=c(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.ModuleNameTrie=qi.ModuleNameSeparator=void 0;qi.ModuleNameSeparator="/";var eA=class{constructor(){this.hooks=[],this.children=new Map}},dD=class{constructor(){this._trie=new eA,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(qi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new eA,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(qi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};qi.ModuleNameTrie=dD});var Mee=c(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0});tA.RequireInTheMiddleSingleton=void 0;var LZe=de(),Cee=require("path"),pD=Nee(),DZe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),_D=class t{constructor(){this._moduleNameTrie=new pD.ModuleNameTrie,this._initialize()}_initialize(){new LZe.Hook(null,{internals:!0},(e,r,n)=>{let o=GZe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return DZe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};tA.RequireInTheMiddleSingleton=_D;function GZe(t){return Cee.sep!==pD.ModuleNameSeparator?t.split(Cee.sep).join(pD.ModuleNameSeparator):t}});var fD=c(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.isWrapped=ji.safeExecuteInTheMiddleAsync=ji.safeExecuteInTheMiddle=void 0;function xZe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ji.safeExecuteInTheMiddle=xZe;async function UZe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ji.safeExecuteInTheMiddleAsync=UZe;function wZe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ji.isWrapped=wZe});var Gee=c(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});rA.InstrumentationBase=void 0;var gD=require("path"),Lee=require("util"),qZe=Zt(),hD=le(),jZe=yee(),VZe=Mee(),BZe=Jt(),e_=(P(),m(I)),HZe=de(),FZe=require("fs"),kZe=fD(),ED=class extends jZe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=VZe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,kZe.isWrapped)(i[s])&&this._unwrap(i,s),Lee.types.isProxy(i)){let u=(0,hD.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,hD.wrap)(i,s,a)},this._unwrap=(i,s)=>Lee.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,hD.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{e_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){e_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{e_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){e_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,FZe.readFileSync)(gD.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{e_.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return Dee(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=gD.normalize(n);return a.filter(d=>d.name===u).filter(d=>Dee(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=gD.isAbsolute(e.name)?new HZe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new BZe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};rA.InstrumentationBase=ED;function Dee(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,qZe.satisfies)(e,n,{includePrerelease:r}))}});var xee=c(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.normalize=void 0;var WZe=require("path");Object.defineProperty(nA,"normalize",{enumerable:!0,get:function(){return WZe.normalize}})});var Uee=c(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.normalize=Dc.InstrumentationBase=void 0;var YZe=Gee();Object.defineProperty(Dc,"InstrumentationBase",{enumerable:!0,get:function(){return YZe.InstrumentationBase}});var KZe=xee();Object.defineProperty(Dc,"normalize",{enumerable:!0,get:function(){return KZe.normalize}})});var mD=c(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.normalize=Gc.InstrumentationBase=void 0;var wee=Uee();Object.defineProperty(Gc,"InstrumentationBase",{enumerable:!0,get:function(){return wee.InstrumentationBase}});Object.defineProperty(Gc,"normalize",{enumerable:!0,get:function(){return wee.normalize}})});var qee=c(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});oA.InstrumentationNodeModuleDefinition=void 0;var TD=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};oA.InstrumentationNodeModuleDefinition=TD});var jee=c(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});iA.InstrumentationNodeModuleFile=void 0;var XZe=mD(),SD=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,XZe.normalize)(e)}};iA.InstrumentationNodeModuleFile=SD});var Vee=c(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.safeExecuteInTheMiddleAsync=qt.safeExecuteInTheMiddle=qt.isWrapped=qt.InstrumentationNodeModuleFile=qt.InstrumentationNodeModuleDefinition=qt.InstrumentationBase=qt.registerInstrumentations=void 0;var ZZe=vee();Object.defineProperty(qt,"registerInstrumentations",{enumerable:!0,get:function(){return ZZe.registerInstrumentations}});var zZe=mD();Object.defineProperty(qt,"InstrumentationBase",{enumerable:!0,get:function(){return zZe.InstrumentationBase}});var JZe=qee();Object.defineProperty(qt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return JZe.InstrumentationNodeModuleDefinition}});var $Ze=jee();Object.defineProperty(qt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return $Ze.InstrumentationNodeModuleFile}});var AD=fD();Object.defineProperty(qt,"isWrapped",{enumerable:!0,get:function(){return AD.isWrapped}});Object.defineProperty(qt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return AD.safeExecuteInTheMiddle}});Object.defineProperty(qt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return AD.safeExecuteInTheMiddleAsync}})});var OD=c(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.SpanNames=cn.TokenKind=cn.AllowedOperationTypes=void 0;var QZe;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(QZe=cn.AllowedOperationTypes||(cn.AllowedOperationTypes={}));var e5e;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(e5e=cn.TokenKind||(cn.TokenKind={}));var t5e;(function(t){t.EXECUTE="graphql.execute",t.PARSE="graphql.parse",t.RESOLVE="graphql.resolve",t.VALIDATE="graphql.validate",t.SCHEMA_VALIDATE="graphql.validateSchema",t.SCHEMA_PARSE="graphql.parseSchema"})(t5e=cn.SpanNames||(cn.SpanNames={}))});var RD=c(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.AttributeNames=void 0;var r5e;(function(t){t.SOURCE="graphql.source",t.FIELD_NAME="graphql.field.name",t.FIELD_PATH="graphql.field.path",t.FIELD_TYPE="graphql.field.type",t.OPERATION_TYPE="graphql.operation.type",t.OPERATION_NAME="graphql.operation.name",t.VARIABLES="graphql.variables.",t.ERROR_VALIDATION_NAME="graphql.validation.error"})(r5e=t_.AttributeNames||(t_.AttributeNames={}))});var sA=c(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.OTEL_GRAPHQL_DATA_SYMBOL=xc.OTEL_PATCHED_SYMBOL=void 0;xc.OTEL_PATCHED_SYMBOL=Symbol.for("opentelemetry.patched");xc.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data")});var Bee=c(aA=>{"use strict";Object.defineProperty(aA,"__esModule",{value:!0});aA.OPERATION_NOT_SUPPORTED=void 0;var Egt=sA();aA.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported"});var Qee=c(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.wrapFieldResolver=He.wrapFields=He.getSourceFromLocation=He.getOperation=He.endSpan=He.addSpanSource=He.addInputVariableAttributes=He.isPromise=void 0;var wc=(P(),m(I)),Vi=OD(),Uc=RD(),bo=sA(),Hee=Object.values(Vi.AllowedOperationTypes),n5e=t=>typeof t?.then=="function";He.isPromise=n5e;var o5e=t=>typeof t=="object"&&t!==null;function ID(t,e,r){Array.isArray(r)?r.forEach((n,o)=>{ID(t,`${e}.${o}`,n)}):r instanceof Object?Object.entries(r).forEach(([n,o])=>{ID(t,`${e}.${n}`,o)}):t.setAttribute(`${Uc.AttributeNames.VARIABLES}${String(e)}`,r)}function i5e(t,e){Object.entries(e).forEach(([r,n])=>{ID(t,r,n)})}He.addInputVariableAttributes=i5e;function Yee(t,e,r,n,o){let i=zee(e,r,n,o);t.setAttribute(Uc.AttributeNames.SOURCE,i)}He.addSpanSource=Yee;function s5e(t,e,r,n,o){let i=Kee(r,o),s=!1;if(!i){s=!0;let a=Xee(r,o);i={parent:a,span:a5e(t,e,r,n,o,a.span),error:null},l5e(r,o,i)}return{spanAdded:s,field:i}}function a5e(t,e,r,n,o,i){var s,a;let u={[Uc.AttributeNames.FIELD_NAME]:n.fieldName,[Uc.AttributeNames.FIELD_PATH]:o.join("."),[Uc.AttributeNames.FIELD_TYPE]:n.returnType.toString()},l=t.startSpan(`${Vi.SpanNames.RESOLVE} ${u[Uc.AttributeNames.FIELD_PATH]}`,{attributes:u},i?wc.trace.setSpan(wc.context.active(),i):void 0),d=r[bo.OTEL_GRAPHQL_DATA_SYMBOL].source,p=n.fieldNodes.find(_=>_.kind==="Field");return p&&Yee(l,d.loc,e().allowValues,(s=p.loc)===null||s===void 0?void 0:s.start,(a=p.loc)===null||a===void 0?void 0:a.end),l}function u5e(t,e){e&&t.recordException(e),t.end()}He.endSpan=u5e;function c5e(t,e){if(!(!t||!Array.isArray(t.definitions)))return e?t.definitions.filter(r=>{var n;return Hee.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1}).find(r=>{var n,o;return e===((o=(n=r)===null||n===void 0?void 0:n.name)===null||o===void 0?void 0:o.value)}):t.definitions.find(r=>{var n;return Hee.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1})}He.getOperation=c5e;function l5e(t,e,r){return t[bo.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]=r}function Kee(t,e){return t[bo.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]}function Xee(t,e){for(let r=e.length-1;r>0;r--){let n=Kee(t,e.slice(0,r));if(n)return n}return{span:t[bo.OTEL_GRAPHQL_DATA_SYMBOL].span}}function d5e(t,e){let r=[],n=e;for(;n;){let o=n.key;t&&typeof o=="number"&&(o="*"),r.push(String(o)),n=n.prev}return r.reverse()}function p5e(t){return Zee(`
31
+ `,t)}function Fee(t){return Zee(" ",t)}function Zee(t,e){let r="";for(let n=0;n<e;n++)r+=t;return r}var _5e=[Vi.TokenKind.FLOAT,Vi.TokenKind.STRING,Vi.TokenKind.INT,Vi.TokenKind.BLOCK_STRING];function zee(t,e=!1,r,n){var o,i;let s="";if(t?.startToken){let a=typeof r=="number"?r:t.start,u=typeof n=="number"?n:t.end,l=t.startToken.next,d=1;for(;l;){if(l.start<a){l=l.next,d=l?.line;continue}if(l.end>u){l=l.next,d=l?.line;continue}let p=l.value||l.kind,_="";!e&&_5e.indexOf(l.kind)>=0&&(p="*"),l.kind===Vi.TokenKind.STRING&&(p=`"${p}"`),l.kind===Vi.TokenKind.EOF&&(p=""),l.line>d?(s+=p5e(l.line-d),d=l.line,_=Fee(l.column-1)):l.line===((o=l.prev)===null||o===void 0?void 0:o.line)&&(_=Fee(l.start-(((i=l.prev)===null||i===void 0?void 0:i.end)||0))),s+=_+p,l&&(l=l.next)}}return s}He.getSourceFromLocation=zee;function Jee(t,e,r){if(!t||typeof t.getFields!="function"||t[bo.OTEL_PATCHED_SYMBOL])return;let n=t.getFields();t[bo.OTEL_PATCHED_SYMBOL]=!0,Object.keys(n).forEach(o=>{let i=n[o];if(i&&(i.resolve&&(i.resolve=$ee(e,r,i.resolve)),i.type)){let s=i.type;for(;s.ofType;)s=s.ofType;Jee(s,e,r)}})}He.wrapFields=Jee;var kee=(t,e,r)=>{r&&(t.recordException(e),t.setStatus({code:wc.SpanStatusCode.ERROR,message:e.message}),t.end())},Wee=(t,e)=>{e&&t.end()};function $ee(t,e,r,n=!1){if(o[bo.OTEL_PATCHED_SYMBOL]||typeof r!="function")return r;function o(i,s,a,u){if(!r)return;let l=e();if(l.ignoreTrivialResolveSpans&&n&&(o5e(i)||typeof i=="function")&&typeof i[u.fieldName]!="function")return r.call(this,i,s,a,u);if(!a[bo.OTEL_GRAPHQL_DATA_SYMBOL])return r.call(this,i,s,a,u);let d=d5e(l.mergeItems,u&&u.path),p=d.filter(g=>typeof g=="string").length,_,f=!1;if(l.depth>=0&&l.depth<p)_=Xee(a,d);else{let g=s5e(t,e,a,u,d);_=g.field,f=g.spanAdded}return wc.context.with(wc.trace.setSpan(wc.context.active(),_.span),()=>{try{let g=r.call(this,i,s,a,u);return(0,He.isPromise)(g)?g.then(h=>(Wee(_.span,f),h),h=>{throw kee(_.span,h,f),h}):(Wee(_.span,f),g)}catch(g){throw kee(_.span,g,f),g}})}return o[bo.OTEL_PATCHED_SYMBOL]=!0,o}He.wrapFieldResolver=$ee});var ete=c(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.PACKAGE_NAME=qc.PACKAGE_VERSION=void 0;qc.PACKAGE_VERSION="0.44.0";qc.PACKAGE_NAME="@opentelemetry/instrumentation-graphql"});var nte=c(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.GraphQLInstrumentation=void 0;var vo=(P(),m(I)),Vr=Vee(),r_=OD(),uA=RD(),PD=sA(),f5e=Bee(),jt=Qee(),tte=ete(),rte={mergeItems:!1,depth:-1,allowValues:!1,ignoreResolveSpans:!1},cA=[">=14.0.0 <17"],bD=class extends Vr.InstrumentationBase{constructor(e={}){super(tte.PACKAGE_NAME,tte.PACKAGE_VERSION,Object.assign(Object.assign({},rte),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},rte),e))}init(){let e=new Vr.InstrumentationNodeModuleDefinition("graphql",cA);return e.files.push(this._addPatchingExecute()),e.files.push(this._addPatchingParser()),e.files.push(this._addPatchingValidate()),e}_addPatchingExecute(){return new Vr.InstrumentationNodeModuleFile("graphql/execution/execute.js",cA,e=>((0,Vr.isWrapped)(e.execute)&&this._unwrap(e,"execute"),this._wrap(e,"execute",this._patchExecute(e.defaultFieldResolver)),e),e=>{e&&this._unwrap(e,"execute")})}_addPatchingParser(){return new Vr.InstrumentationNodeModuleFile("graphql/language/parser.js",cA,e=>((0,Vr.isWrapped)(e.parse)&&this._unwrap(e,"parse"),this._wrap(e,"parse",this._patchParse()),e),e=>{e&&this._unwrap(e,"parse")})}_addPatchingValidate(){return new Vr.InstrumentationNodeModuleFile("graphql/validation/validate.js",cA,e=>((0,Vr.isWrapped)(e.validate)&&this._unwrap(e,"validate"),this._wrap(e,"validate",this._patchValidate()),e),e=>{e&&this._unwrap(e,"validate")})}_patchExecute(e){let r=this;return function(o){return function(){let s;if(arguments.length>=2){let l=arguments;s=r._wrapExecuteArgs(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],e)}else{let l=arguments[0];s=r._wrapExecuteArgs(l.schema,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.typeResolver,e)}let a=(0,jt.getOperation)(s.document,s.operationName),u=r._createExecuteSpan(a,s);return s.contextValue[PD.OTEL_GRAPHQL_DATA_SYMBOL]={source:s.document?s.document||s.document[PD.OTEL_GRAPHQL_DATA_SYMBOL]:void 0,span:u,fields:{}},vo.context.with(vo.trace.setSpan(vo.context.active(),u),()=>(0,Vr.safeExecuteInTheMiddle)(()=>o.apply(this,[s]),(l,d)=>{r._handleExecutionResult(u,l,d)}))}}}_handleExecutionResult(e,r,n){let o=this.getConfig();if(n===void 0||r){(0,jt.endSpan)(e,r);return}if((0,jt.isPromise)(n))n.then(i=>{if(typeof o.responseHook!="function"){(0,jt.endSpan)(e);return}this._executeResponseHook(e,i)},i=>{(0,jt.endSpan)(e,i)});else{if(typeof o.responseHook!="function"){(0,jt.endSpan)(e);return}this._executeResponseHook(e,n)}}_executeResponseHook(e,r){let{responseHook:n}=this.getConfig();n&&(0,Vr.safeExecuteInTheMiddle)(()=>{n(e,r)},o=>{o&&this._diag.error("Error running response hook",o),(0,jt.endSpan)(e,void 0)},!0)}_patchParse(){let e=this;return function(n){return function(i,s){return e._parse(this,n,i,s)}}}_patchValidate(){let e=this;return function(n){return function(i,s,a,u,l){return e._validate(this,n,i,s,a,l,u)}}}_parse(e,r,n,o){let i=this.getConfig(),s=this.tracer.startSpan(r_.SpanNames.PARSE);return vo.context.with(vo.trace.setSpan(vo.context.active(),s),()=>(0,Vr.safeExecuteInTheMiddle)(()=>r.call(e,n,o),(a,u)=>{u&&((0,jt.getOperation)(u)?u.loc&&(0,jt.addSpanSource)(s,u.loc,i.allowValues):s.updateName(r_.SpanNames.SCHEMA_PARSE)),(0,jt.endSpan)(s,a)}))}_validate(e,r,n,o,i,s,a){let u=this.tracer.startSpan(r_.SpanNames.VALIDATE,{});return vo.context.with(vo.trace.setSpan(vo.context.active(),u),()=>(0,Vr.safeExecuteInTheMiddle)(()=>r.call(e,n,o,i,a,s),(l,d)=>{o.loc||u.updateName(r_.SpanNames.SCHEMA_VALIDATE),d&&d.length&&u.recordException({name:uA.AttributeNames.ERROR_VALIDATION_NAME,message:JSON.stringify(d)}),(0,jt.endSpan)(u,l)}))}_createExecuteSpan(e,r){var n;let o=this.getConfig(),i=this.tracer.startSpan(r_.SpanNames.EXECUTE,{});if(e){let{operation:s,name:a}=e;i.setAttribute(uA.AttributeNames.OPERATION_TYPE,s);let u=a?.value;u?(i.setAttribute(uA.AttributeNames.OPERATION_NAME,u),i.updateName(`${s} ${u}`)):i.updateName(s)}else{let s=" ";r.operationName&&(s=` "${r.operationName}" `),s=f5e.OPERATION_NOT_SUPPORTED.replace("$operationName$",s),i.setAttribute(uA.AttributeNames.OPERATION_NAME,s)}return!((n=r.document)===null||n===void 0)&&n.loc&&(0,jt.addSpanSource)(i,r.document.loc,o.allowValues),r.variableValues&&o.allowValues&&(0,jt.addInputVariableAttributes)(i,r.variableValues),i}_wrapExecuteArgs(e,r,n,o,i,s,a,u,l){if(o||(o={}),o[PD.OTEL_GRAPHQL_DATA_SYMBOL]||this.getConfig().ignoreResolveSpans)return{schema:e,document:r,rootValue:n,contextValue:o,variableValues:i,operationName:s,fieldResolver:a,typeResolver:u};let d=a==null,p=a??l;return a=(0,jt.wrapFieldResolver)(this.tracer,()=>this.getConfig(),p,d),e&&((0,jt.wrapFields)(e.getQueryType(),this.tracer,()=>this.getConfig()),(0,jt.wrapFields)(e.getMutationType(),this.tracer,()=>this.getConfig())),{schema:e,document:r,rootValue:n,contextValue:o,variableValues:i,operationName:s,fieldResolver:a,typeResolver:u}}};lA.GraphQLInstrumentation=bD});var ite=c(ote=>{"use strict";Object.defineProperty(ote,"__esModule",{value:!0})});var ate=c(Bi=>{"use strict";var g5e=Bi&&Bi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ste=Bi&&Bi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&g5e(e,t,r)};Object.defineProperty(Bi,"__esModule",{value:!0});ste(nte(),Bi);ste(ite(),Bi)});var vD=c(_A=>{Object.defineProperty(_A,"__esModule",{value:!0});var h5e=ate(),pA=k(),dA=Oo(),E5e=Se(),m5e=Cn(),ute="Graphql",cte=E5e.generateInstrumentOnce(ute,(t={})=>{let e=lte(t);return new h5e.GraphQLInstrumentation({...e,responseHook(r){m5e.addOriginToSpan(r,"auto.graphql.otel.graphql");let n=pA.spanToJSON(r).data||{},o=n["graphql.operation.type"],i=n["graphql.operation.name"];if(e.useOperationNameForRootSpan&&o){let s=pA.getRootSpan(r),u=(pA.spanToJSON(s).data||{})[dA.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION]||[],l=i?`${o} ${i}`:`${o}`;Array.isArray(u)?(u.push(l),s.setAttribute(dA.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,u)):u?s.setAttribute(dA.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,[u,l]):s.setAttribute(dA.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,l)}}})}),T5e=(t={})=>({name:ute,setupOnce(){cte(lte(t))}}),S5e=pA.defineIntegration(T5e);function lte(t){return{ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...t}}_A.graphqlIntegration=S5e;_A.instrumentGraphql=cte});var dte=c(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.PACKAGE_NAME=jc.PACKAGE_VERSION=void 0;jc.PACKAGE_VERSION="0.4.0";jc.PACKAGE_NAME="@opentelemetry/instrumentation-kafkajs"});var pte=c(fA=>{"use strict";Object.defineProperty(fA,"__esModule",{value:!0});fA.bufferTextMapGetter=void 0;fA.bufferTextMapGetter={get(t,e){var r;if(!t)return;let n=Object.keys(t);for(let o of n)if(o===e||o.toLowerCase()===e)return(r=t[o])===null||r===void 0?void 0:r.toString()},keys(t){return t?Object.keys(t):[]}}});var _te=c(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});n_.SeverityNumber=void 0;var A5e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(A5e=n_.SeverityNumber||(n_.SeverityNumber={}))});var hA=c(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.NOOP_LOGGER=Vc.NoopLogger=void 0;var gA=class{emit(e){}};Vc.NoopLogger=gA;Vc.NOOP_LOGGER=new gA});var mA=c(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.NOOP_LOGGER_PROVIDER=Bc.NoopLoggerProvider=void 0;var O5e=hA(),EA=class{getLogger(e,r,n){return new O5e.NoopLogger}};Bc.NoopLoggerProvider=EA;Bc.NOOP_LOGGER_PROVIDER=new EA});var ND=c(TA=>{"use strict";Object.defineProperty(TA,"__esModule",{value:!0});TA.ProxyLogger=void 0;var R5e=hA(),yD=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):R5e.NOOP_LOGGER}};TA.ProxyLogger=yD});var MD=c(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0});SA.ProxyLoggerProvider=void 0;var I5e=mA(),P5e=ND(),CD=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new P5e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:I5e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};SA.ProxyLoggerProvider=CD});var fte=c(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0});AA._globalThis=void 0;AA._globalThis=typeof globalThis=="object"?globalThis:global});var gte=c(OA=>{"use strict";Object.defineProperty(OA,"__esModule",{value:!0});OA._globalThis=void 0;var b5e=fte();Object.defineProperty(OA,"_globalThis",{enumerable:!0,get:function(){return b5e._globalThis}})});var hte=c(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0});RA._globalThis=void 0;var v5e=gte();Object.defineProperty(RA,"_globalThis",{enumerable:!0,get:function(){return v5e._globalThis}})});var Ete=c(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.API_BACKWARDS_COMPATIBILITY_VERSION=qn.makeGetter=qn._global=qn.GLOBAL_LOGS_API_KEY=void 0;var y5e=hte();qn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");qn._global=y5e._globalThis;function N5e(t,e,r){return n=>n===t?e:r}qn.makeGetter=N5e;qn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var Tte=c(IA=>{"use strict";Object.defineProperty(IA,"__esModule",{value:!0});IA.LogsAPI=void 0;var Br=Ete(),C5e=mA(),mte=MD(),LD=class t{constructor(){this._proxyLoggerProvider=new mte.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Br._global[Br.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Br._global[Br.GLOBAL_LOGS_API_KEY]=(0,Br.makeGetter)(Br.API_BACKWARDS_COMPATIBILITY_VERSION,e,C5e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Br._global[Br.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Br._global,Br.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Br._global[Br.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new mte.ProxyLoggerProvider}};IA.LogsAPI=LD});var DD=c(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.logs=ot.ProxyLoggerProvider=ot.ProxyLogger=ot.NoopLoggerProvider=ot.NOOP_LOGGER_PROVIDER=ot.NoopLogger=ot.NOOP_LOGGER=ot.SeverityNumber=void 0;var M5e=_te();Object.defineProperty(ot,"SeverityNumber",{enumerable:!0,get:function(){return M5e.SeverityNumber}});var Ste=hA();Object.defineProperty(ot,"NOOP_LOGGER",{enumerable:!0,get:function(){return Ste.NOOP_LOGGER}});Object.defineProperty(ot,"NoopLogger",{enumerable:!0,get:function(){return Ste.NoopLogger}});var Ate=mA();Object.defineProperty(ot,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return Ate.NOOP_LOGGER_PROVIDER}});Object.defineProperty(ot,"NoopLoggerProvider",{enumerable:!0,get:function(){return Ate.NoopLoggerProvider}});var L5e=ND();Object.defineProperty(ot,"ProxyLogger",{enumerable:!0,get:function(){return L5e.ProxyLogger}});var D5e=MD();Object.defineProperty(ot,"ProxyLoggerProvider",{enumerable:!0,get:function(){return D5e.ProxyLoggerProvider}});var G5e=Tte();ot.logs=G5e.LogsAPI.getInstance()});var Ote=c(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.disableInstrumentations=Hc.enableInstrumentations=void 0;function x5e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Hc.enableInstrumentations=x5e;function U5e(t){t.forEach(e=>e.disable())}Hc.disableInstrumentations=U5e});var Pte=c(PA=>{"use strict";Object.defineProperty(PA,"__esModule",{value:!0});PA.registerInstrumentations=void 0;var Rte=(P(),m(I)),w5e=DD(),Ite=Ote();function q5e(t){var e,r;let n=t.tracerProvider||Rte.trace.getTracerProvider(),o=t.meterProvider||Rte.metrics.getMeterProvider(),i=t.loggerProvider||w5e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,Ite.enableInstrumentations)(s,n,o,i),()=>{(0,Ite.disableInstrumentations)(s)}}PA.registerInstrumentations=q5e});var bte=c(vA=>{"use strict";Object.defineProperty(vA,"__esModule",{value:!0});vA.InstrumentationAbstract=void 0;var GD=(P(),m(I)),j5e=DD(),bA=le(),xD=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=bA.wrap,this._unwrap=bA.unwrap,this._massWrap=bA.massWrap,this._massUnwrap=bA.massUnwrap,this.setConfig(n),this._diag=GD.diag.createComponentLogger({namespace:e}),this._tracer=GD.trace.getTracer(e,r),this._meter=GD.metrics.getMeter(e,r),this._logger=j5e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};vA.InstrumentationAbstract=xD});var vte=c(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.ModuleNameTrie=Hi.ModuleNameSeparator=void 0;Hi.ModuleNameSeparator="/";var yA=class{constructor(){this.hooks=[],this.children=new Map}},UD=class{constructor(){this._trie=new yA,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Hi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new yA,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Hi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Hi.ModuleNameTrie=UD});var Nte=c(NA=>{"use strict";Object.defineProperty(NA,"__esModule",{value:!0});NA.RequireInTheMiddleSingleton=void 0;var V5e=de(),yte=require("path"),wD=vte(),B5e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),qD=class t{constructor(){this._moduleNameTrie=new wD.ModuleNameTrie,this._initialize()}_initialize(){new V5e.Hook(null,{internals:!0},(e,r,n)=>{let o=H5e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return B5e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};NA.RequireInTheMiddleSingleton=qD;function H5e(t){return yte.sep!==wD.ModuleNameSeparator?t.split(yte.sep).join(wD.ModuleNameSeparator):t}});var jD=c(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.isWrapped=Fi.safeExecuteInTheMiddleAsync=Fi.safeExecuteInTheMiddle=void 0;function F5e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Fi.safeExecuteInTheMiddle=F5e;async function k5e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Fi.safeExecuteInTheMiddleAsync=k5e;function W5e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Fi.isWrapped=W5e});var Lte=c(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});CA.InstrumentationBase=void 0;var VD=require("path"),Cte=require("util"),Y5e=Zt(),BD=le(),K5e=bte(),X5e=Nte(),Z5e=Jt(),o_=(P(),m(I)),z5e=de(),J5e=require("fs"),$5e=jD(),HD=class extends K5e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=X5e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,$5e.isWrapped)(i[s])&&this._unwrap(i,s),Cte.types.isProxy(i)){let u=(0,BD.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,BD.wrap)(i,s,a)},this._unwrap=(i,s)=>Cte.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,BD.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{o_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){o_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{o_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){o_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,J5e.readFileSync)(VD.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{o_.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return Mte(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=VD.normalize(n);return a.filter(d=>d.name===u).filter(d=>Mte(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=VD.isAbsolute(e.name)?new z5e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new Z5e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};CA.InstrumentationBase=HD;function Mte(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,Y5e.satisfies)(e,n,{includePrerelease:r}))}});var Dte=c(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});MA.normalize=void 0;var Q5e=require("path");Object.defineProperty(MA,"normalize",{enumerable:!0,get:function(){return Q5e.normalize}})});var Gte=c(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.normalize=Fc.InstrumentationBase=void 0;var e9e=Lte();Object.defineProperty(Fc,"InstrumentationBase",{enumerable:!0,get:function(){return e9e.InstrumentationBase}});var t9e=Dte();Object.defineProperty(Fc,"normalize",{enumerable:!0,get:function(){return t9e.normalize}})});var FD=c(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.normalize=kc.InstrumentationBase=void 0;var xte=Gte();Object.defineProperty(kc,"InstrumentationBase",{enumerable:!0,get:function(){return xte.InstrumentationBase}});Object.defineProperty(kc,"normalize",{enumerable:!0,get:function(){return xte.normalize}})});var Ute=c(LA=>{"use strict";Object.defineProperty(LA,"__esModule",{value:!0});LA.InstrumentationNodeModuleDefinition=void 0;var kD=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};LA.InstrumentationNodeModuleDefinition=kD});var wte=c(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.InstrumentationNodeModuleFile=void 0;var r9e=FD(),WD=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,r9e.normalize)(e)}};DA.InstrumentationNodeModuleFile=WD});var qte=c(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.safeExecuteInTheMiddleAsync=Vt.safeExecuteInTheMiddle=Vt.isWrapped=Vt.InstrumentationNodeModuleFile=Vt.InstrumentationNodeModuleDefinition=Vt.InstrumentationBase=Vt.registerInstrumentations=void 0;var n9e=Pte();Object.defineProperty(Vt,"registerInstrumentations",{enumerable:!0,get:function(){return n9e.registerInstrumentations}});var o9e=FD();Object.defineProperty(Vt,"InstrumentationBase",{enumerable:!0,get:function(){return o9e.InstrumentationBase}});var i9e=Ute();Object.defineProperty(Vt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return i9e.InstrumentationNodeModuleDefinition}});var s9e=wte();Object.defineProperty(Vt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return s9e.InstrumentationNodeModuleFile}});var YD=jD();Object.defineProperty(Vt,"isWrapped",{enumerable:!0,get:function(){return YD.isWrapped}});Object.defineProperty(Vt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return YD.safeExecuteInTheMiddle}});Object.defineProperty(Vt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return YD.safeExecuteInTheMiddleAsync}})});var Bte=c(GA=>{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});GA.KafkaJsInstrumentation=void 0;var ht=(P(),m(I)),ki=($(),m(J)),jte=dte(),Vte=pte(),ln=qte(),KD=class extends ln.InstrumentationBase{constructor(e={}){super(jte.PACKAGE_NAME,jte.PACKAGE_VERSION,e)}init(){let e=n=>{var o,i;(0,ln.isWrapped)((o=n?.Kafka)===null||o===void 0?void 0:o.prototype.producer)&&this._unwrap(n.Kafka.prototype,"producer"),(0,ln.isWrapped)((i=n?.Kafka)===null||i===void 0?void 0:i.prototype.consumer)&&this._unwrap(n.Kafka.prototype,"consumer")};return new ln.InstrumentationNodeModuleDefinition("kafkajs",[">=0.1.0 <3"],n=>{var o,i;return e(n),this._wrap((o=n?.Kafka)===null||o===void 0?void 0:o.prototype,"producer",this._getProducerPatch()),this._wrap((i=n?.Kafka)===null||i===void 0?void 0:i.prototype,"consumer",this._getConsumerPatch()),n},e)}_getConsumerPatch(){let e=this;return r=>function(...o){let i=r.apply(this,o);return(0,ln.isWrapped)(i.run)&&e._unwrap(i,"run"),e._wrap(i,"run",e._getConsumerRunPatch()),i}}_getProducerPatch(){let e=this;return r=>function(...o){let i=r.apply(this,o);return(0,ln.isWrapped)(i.sendBatch)&&e._unwrap(i,"sendBatch"),e._wrap(i,"sendBatch",e._getProducerSendBatchPatch()),(0,ln.isWrapped)(i.send)&&e._unwrap(i,"send"),e._wrap(i,"send",e._getProducerSendPatch()),i}}_getConsumerRunPatch(){let e=this;return r=>function(...o){let i=o[0];return i?.eachMessage&&((0,ln.isWrapped)(i.eachMessage)&&e._unwrap(i,"eachMessage"),e._wrap(i,"eachMessage",e._getConsumerEachMessagePatch())),i?.eachBatch&&((0,ln.isWrapped)(i.eachBatch)&&e._unwrap(i,"eachBatch"),e._wrap(i,"eachBatch",e._getConsumerEachBatchPatch())),r.call(this,i)}}_getConsumerEachMessagePatch(){let e=this;return r=>function(...o){let i=o[0],s=ht.propagation.extract(ht.ROOT_CONTEXT,i.message.headers,Vte.bufferTextMapGetter),a=e._startConsumerSpan(i.topic,i.message,ki.MESSAGINGOPERATIONVALUES_PROCESS,s),u=ht.context.with(ht.trace.setSpan(s,a),()=>r.apply(this,o));return e._endSpansOnPromise([a],u)}}_getConsumerEachBatchPatch(){return e=>{let r=this;return function(...o){let i=o[0],s=r._startConsumerSpan(i.batch.topic,void 0,ki.MESSAGINGOPERATIONVALUES_RECEIVE,ht.ROOT_CONTEXT);return ht.context.with(ht.trace.setSpan(ht.context.active(),s),()=>{let a=i.batch.messages.map(l=>{var d;let p=ht.propagation.extract(ht.ROOT_CONTEXT,l.headers,Vte.bufferTextMapGetter),_=(d=ht.trace.getSpan(p))===null||d===void 0?void 0:d.spanContext(),f;return _&&(f={context:_}),r._startConsumerSpan(i.batch.topic,l,ki.MESSAGINGOPERATIONVALUES_PROCESS,void 0,f)}),u=e.apply(this,o);return a.unshift(s),r._endSpansOnPromise(a,u)})}}}_getProducerSendBatchPatch(){let e=this;return r=>function(...o){let a=(o[0].topicMessages||[]).map(l=>l.messages.map(d=>e._startProducerSpan(l.topic,d))).reduce((l,d)=>l.concat(d),[]),u=r.apply(this,o);return e._endSpansOnPromise(a,u)}}_getProducerSendPatch(){let e=this;return r=>function(...o){let i=o[0],s=i.messages.map(u=>e._startProducerSpan(i.topic,u)),a=r.apply(this,o);return e._endSpansOnPromise(s,a)}}_endSpansOnPromise(e,r){return Promise.resolve(r).catch(n=>{let o;throw typeof n=="string"?o=n:typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"message")&&(o=n.message),e.forEach(i=>i.setStatus({code:ht.SpanStatusCode.ERROR,message:o})),n}).finally(()=>{e.forEach(n=>n.end())})}_startConsumerSpan(e,r,n,o,i){let s=this.tracer.startSpan(e,{kind:ht.SpanKind.CONSUMER,attributes:{[ki.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[ki.SEMATTRS_MESSAGING_DESTINATION]:e,[ki.SEMATTRS_MESSAGING_OPERATION]:n},links:i?[i]:[]},o),{consumerHook:a}=this.getConfig();return a&&r&&(0,ln.safeExecuteInTheMiddle)(()=>a(s,{topic:e,message:r}),u=>{u&&this._diag.error("consumerHook error",u)},!0),s}_startProducerSpan(e,r){var n;let o=this.tracer.startSpan(e,{kind:ht.SpanKind.PRODUCER,attributes:{[ki.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[ki.SEMATTRS_MESSAGING_DESTINATION]:e}});r.headers=(n=r.headers)!==null&&n!==void 0?n:{},ht.propagation.inject(ht.trace.setSpan(ht.context.active(),o),r.headers);let{producerHook:i}=this.getConfig();return i&&(0,ln.safeExecuteInTheMiddle)(()=>i(o,{topic:e,message:r}),s=>{s&&this._diag.error("producerHook error",s)},!0),o}};GA.KafkaJsInstrumentation=KD});var Fte=c(Hte=>{"use strict";Object.defineProperty(Hte,"__esModule",{value:!0})});var Wte=c(Wi=>{"use strict";var a9e=Wi&&Wi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),kte=Wi&&Wi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&a9e(e,t,r)};Object.defineProperty(Wi,"__esModule",{value:!0});kte(Bte(),Wi);kte(Fte(),Wi)});var XD=c(xA=>{Object.defineProperty(xA,"__esModule",{value:!0});var u9e=Wte(),c9e=k(),l9e=Se(),Yte=Cn(),Kte="Kafka",Xte=l9e.generateInstrumentOnce(Kte,()=>new u9e.KafkaJsInstrumentation({consumerHook(t){Yte.addOriginToSpan(t,"auto.kafkajs.otel.consumer")},producerHook(t){Yte.addOriginToSpan(t,"auto.kafkajs.otel.producer")}})),d9e=()=>({name:Kte,setupOnce(){Xte()}}),p9e=c9e.defineIntegration(d9e);xA.instrumentKafka=Xte;xA.kafkaIntegration=p9e});var Zte=c(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.PACKAGE_NAME=Wc.PACKAGE_VERSION=void 0;Wc.PACKAGE_VERSION="0.40.0";Wc.PACKAGE_NAME="@opentelemetry/instrumentation-lru-memoizer"});var Qte=c(UA=>{"use strict";Object.defineProperty(UA,"__esModule",{value:!0});UA.LruMemoizerInstrumentation=void 0;var zte=(P(),m(I)),Jte=Ke(),$te=Zte(),ZD=class extends Jte.InstrumentationBase{constructor(e={}){super($te.PACKAGE_NAME,$te.PACKAGE_VERSION,e)}init(){return[new Jte.InstrumentationNodeModuleDefinition("lru-memoizer",[">=1.3 <3"],e=>{let r=function(){let n=e.apply(this,arguments);return function(){let o=[...arguments],i=o.pop(),s=typeof i=="function"?zte.context.bind(zte.context.active(),i):i;return o.push(s),n.apply(this,o)}};return r.sync=e.sync,r},void 0)]}};UA.LruMemoizerInstrumentation=ZD});var ere=c(ga=>{"use strict";var _9e=ga&&ga.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),f9e=ga&&ga.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_9e(e,t,r)};Object.defineProperty(ga,"__esModule",{value:!0});f9e(Qte(),ga)});var zD=c(wA=>{Object.defineProperty(wA,"__esModule",{value:!0});var g9e=ere(),h9e=k(),E9e=Se(),tre="LruMemoizer",rre=E9e.generateInstrumentOnce(tre,()=>new g9e.LruMemoizerInstrumentation),m9e=()=>({name:tre,setupOnce(){rre()}}),T9e=h9e.defineIntegration(m9e);wA.instrumentLruMemoizer=rre;wA.lruMemoizerIntegration=T9e});var nre=c(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.SeverityNumber=void 0;var S9e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(S9e=i_.SeverityNumber||(i_.SeverityNumber={}))});var jA=c(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.NOOP_LOGGER=Yc.NoopLogger=void 0;var qA=class{emit(e){}};Yc.NoopLogger=qA;Yc.NOOP_LOGGER=new qA});var BA=c(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.NOOP_LOGGER_PROVIDER=Kc.NoopLoggerProvider=void 0;var A9e=jA(),VA=class{getLogger(e,r,n){return new A9e.NoopLogger}};Kc.NoopLoggerProvider=VA;Kc.NOOP_LOGGER_PROVIDER=new VA});var $D=c(HA=>{"use strict";Object.defineProperty(HA,"__esModule",{value:!0});HA.ProxyLogger=void 0;var O9e=jA(),JD=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):O9e.NOOP_LOGGER}};HA.ProxyLogger=JD});var eG=c(FA=>{"use strict";Object.defineProperty(FA,"__esModule",{value:!0});FA.ProxyLoggerProvider=void 0;var R9e=BA(),I9e=$D(),QD=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new I9e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:R9e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};FA.ProxyLoggerProvider=QD});var ore=c(kA=>{"use strict";Object.defineProperty(kA,"__esModule",{value:!0});kA._globalThis=void 0;kA._globalThis=typeof globalThis=="object"?globalThis:global});var ire=c(WA=>{"use strict";Object.defineProperty(WA,"__esModule",{value:!0});WA._globalThis=void 0;var P9e=ore();Object.defineProperty(WA,"_globalThis",{enumerable:!0,get:function(){return P9e._globalThis}})});var sre=c(YA=>{"use strict";Object.defineProperty(YA,"__esModule",{value:!0});YA._globalThis=void 0;var b9e=ire();Object.defineProperty(YA,"_globalThis",{enumerable:!0,get:function(){return b9e._globalThis}})});var are=c(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.API_BACKWARDS_COMPATIBILITY_VERSION=jn.makeGetter=jn._global=jn.GLOBAL_LOGS_API_KEY=void 0;var v9e=sre();jn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");jn._global=v9e._globalThis;function y9e(t,e,r){return n=>n===t?e:r}jn.makeGetter=y9e;jn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var cre=c(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0});KA.LogsAPI=void 0;var Hr=are(),N9e=BA(),ure=eG(),tG=class t{constructor(){this._proxyLoggerProvider=new ure.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Hr._global[Hr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Hr._global[Hr.GLOBAL_LOGS_API_KEY]=(0,Hr.makeGetter)(Hr.API_BACKWARDS_COMPATIBILITY_VERSION,e,N9e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Hr._global[Hr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Hr._global,Hr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Hr._global[Hr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new ure.ProxyLoggerProvider}};KA.LogsAPI=tG});var rG=c(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.logs=it.ProxyLoggerProvider=it.ProxyLogger=it.NoopLoggerProvider=it.NOOP_LOGGER_PROVIDER=it.NoopLogger=it.NOOP_LOGGER=it.SeverityNumber=void 0;var C9e=nre();Object.defineProperty(it,"SeverityNumber",{enumerable:!0,get:function(){return C9e.SeverityNumber}});var lre=jA();Object.defineProperty(it,"NOOP_LOGGER",{enumerable:!0,get:function(){return lre.NOOP_LOGGER}});Object.defineProperty(it,"NoopLogger",{enumerable:!0,get:function(){return lre.NoopLogger}});var dre=BA();Object.defineProperty(it,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return dre.NOOP_LOGGER_PROVIDER}});Object.defineProperty(it,"NoopLoggerProvider",{enumerable:!0,get:function(){return dre.NoopLoggerProvider}});var M9e=$D();Object.defineProperty(it,"ProxyLogger",{enumerable:!0,get:function(){return M9e.ProxyLogger}});var L9e=eG();Object.defineProperty(it,"ProxyLoggerProvider",{enumerable:!0,get:function(){return L9e.ProxyLoggerProvider}});var D9e=cre();it.logs=D9e.LogsAPI.getInstance()});var pre=c(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.disableInstrumentations=Xc.enableInstrumentations=void 0;function G9e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Xc.enableInstrumentations=G9e;function x9e(t){t.forEach(e=>e.disable())}Xc.disableInstrumentations=x9e});var gre=c(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.registerInstrumentations=void 0;var _re=(P(),m(I)),U9e=rG(),fre=pre();function w9e(t){var e,r;let n=t.tracerProvider||_re.trace.getTracerProvider(),o=t.meterProvider||_re.metrics.getMeterProvider(),i=t.loggerProvider||U9e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,fre.enableInstrumentations)(s,n,o,i),()=>{(0,fre.disableInstrumentations)(s)}}XA.registerInstrumentations=w9e});var hre=c(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});zA.InstrumentationAbstract=void 0;var nG=(P(),m(I)),q9e=rG(),ZA=le(),oG=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=ZA.wrap,this._unwrap=ZA.unwrap,this._massWrap=ZA.massWrap,this._massUnwrap=ZA.massUnwrap,this.setConfig(n),this._diag=nG.diag.createComponentLogger({namespace:e}),this._tracer=nG.trace.getTracer(e,r),this._meter=nG.metrics.getMeter(e,r),this._logger=q9e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};zA.InstrumentationAbstract=oG});var Ere=c(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.ModuleNameTrie=Yi.ModuleNameSeparator=void 0;Yi.ModuleNameSeparator="/";var JA=class{constructor(){this.hooks=[],this.children=new Map}},iG=class{constructor(){this._trie=new JA,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Yi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new JA,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Yi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Yi.ModuleNameTrie=iG});var Tre=c($A=>{"use strict";Object.defineProperty($A,"__esModule",{value:!0});$A.RequireInTheMiddleSingleton=void 0;var j9e=de(),mre=require("path"),sG=Ere(),V9e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),aG=class t{constructor(){this._moduleNameTrie=new sG.ModuleNameTrie,this._initialize()}_initialize(){new j9e.Hook(null,{internals:!0},(e,r,n)=>{let o=B9e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return V9e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};$A.RequireInTheMiddleSingleton=aG;function B9e(t){return mre.sep!==sG.ModuleNameSeparator?t.split(mre.sep).join(sG.ModuleNameSeparator):t}});var uG=c(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.isWrapped=Ki.safeExecuteInTheMiddleAsync=Ki.safeExecuteInTheMiddle=void 0;function H9e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ki.safeExecuteInTheMiddle=H9e;async function F9e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ki.safeExecuteInTheMiddleAsync=F9e;function k9e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Ki.isWrapped=k9e});var Ore=c(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});QA.InstrumentationBase=void 0;var cG=require("path"),Sre=require("util"),W9e=Zt(),lG=le(),Y9e=hre(),K9e=Tre(),X9e=Jt(),s_=(P(),m(I)),Z9e=de(),z9e=require("fs"),J9e=uG(),dG=class extends Y9e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=K9e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,J9e.isWrapped)(i[s])&&this._unwrap(i,s),Sre.types.isProxy(i)){let u=(0,lG.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,lG.wrap)(i,s,a)},this._unwrap=(i,s)=>Sre.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,lG.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{s_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){s_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{s_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){s_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,z9e.readFileSync)(cG.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{s_.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return Are(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=cG.normalize(n);return a.filter(d=>d.name===u).filter(d=>Are(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=cG.isAbsolute(e.name)?new Z9e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new X9e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};QA.InstrumentationBase=dG;function Are(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,W9e.satisfies)(e,n,{includePrerelease:r}))}});var Rre=c(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0});eO.normalize=void 0;var $9e=require("path");Object.defineProperty(eO,"normalize",{enumerable:!0,get:function(){return $9e.normalize}})});var Ire=c(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.normalize=Zc.InstrumentationBase=void 0;var Q9e=Ore();Object.defineProperty(Zc,"InstrumentationBase",{enumerable:!0,get:function(){return Q9e.InstrumentationBase}});var eze=Rre();Object.defineProperty(Zc,"normalize",{enumerable:!0,get:function(){return eze.normalize}})});var pG=c(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.normalize=zc.InstrumentationBase=void 0;var Pre=Ire();Object.defineProperty(zc,"InstrumentationBase",{enumerable:!0,get:function(){return Pre.InstrumentationBase}});Object.defineProperty(zc,"normalize",{enumerable:!0,get:function(){return Pre.normalize}})});var bre=c(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0});tO.InstrumentationNodeModuleDefinition=void 0;var _G=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};tO.InstrumentationNodeModuleDefinition=_G});var vre=c(rO=>{"use strict";Object.defineProperty(rO,"__esModule",{value:!0});rO.InstrumentationNodeModuleFile=void 0;var tze=pG(),fG=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,tze.normalize)(e)}};rO.InstrumentationNodeModuleFile=fG});var yre=c(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.safeExecuteInTheMiddleAsync=Bt.safeExecuteInTheMiddle=Bt.isWrapped=Bt.InstrumentationNodeModuleFile=Bt.InstrumentationNodeModuleDefinition=Bt.InstrumentationBase=Bt.registerInstrumentations=void 0;var rze=gre();Object.defineProperty(Bt,"registerInstrumentations",{enumerable:!0,get:function(){return rze.registerInstrumentations}});var nze=pG();Object.defineProperty(Bt,"InstrumentationBase",{enumerable:!0,get:function(){return nze.InstrumentationBase}});var oze=bre();Object.defineProperty(Bt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return oze.InstrumentationNodeModuleDefinition}});var ize=vre();Object.defineProperty(Bt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return ize.InstrumentationNodeModuleFile}});var gG=uG();Object.defineProperty(Bt,"isWrapped",{enumerable:!0,get:function(){return gG.isWrapped}});Object.defineProperty(Bt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return gG.safeExecuteInTheMiddle}});Object.defineProperty(Bt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return gG.safeExecuteInTheMiddleAsync}})});var Nre=c(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.MongodbCommandType=void 0;var sze;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.AGGREGATE="aggregate",t.UNKNOWN="unknown"})(sze=a_.MongodbCommandType||(a_.MongodbCommandType={}))});var Cre=c(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.PACKAGE_NAME=Jc.PACKAGE_VERSION=void 0;Jc.PACKAGE_VERSION="0.48.0";Jc.PACKAGE_NAME="@opentelemetry/instrumentation-mongodb"});var Lre=c(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0});nO.MongoDBInstrumentation=void 0;var ye=(P(),m(I)),Ae=yre(),yo=($(),m(J)),Xi=Nre(),Mre=Cre(),hG=class t extends Ae.InstrumentationBase{constructor(e={}){super(Mre.PACKAGE_NAME,Mre.PACKAGE_VERSION,e)}_updateMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}init(){let{v3PatchConnection:e,v3UnpatchConnection:r}=this._getV3ConnectionPatches(),{v4PatchConnect:n,v4UnpatchConnect:o}=this._getV4ConnectPatches(),{v4PatchConnectionCallback:i,v4PatchConnectionPromise:s,v4UnpatchConnection:a}=this._getV4ConnectionPatches(),{v4PatchConnectionPool:u,v4UnpatchConnectionPool:l}=this._getV4ConnectionPoolPatches(),{v4PatchSessions:d,v4UnpatchSessions:p}=this._getV4SessionsPatches();return[new Ae.InstrumentationNodeModuleDefinition("mongodb",[">=3.3.0 <4"],void 0,void 0,[new Ae.InstrumentationNodeModuleFile("mongodb/lib/core/wireprotocol/index.js",[">=3.3.0 <4"],e,r)]),new Ae.InstrumentationNodeModuleDefinition("mongodb",[">=4.0.0 <7"],void 0,void 0,[new Ae.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=4.0.0 <6.4"],i,a),new Ae.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=6.4.0 <7"],s,a),new Ae.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection_pool.js",[">=4.0.0 <6.4"],u,l),new Ae.InstrumentationNodeModuleFile("mongodb/lib/cmap/connect.js",[">=4.0.0 <7"],n,o),new Ae.InstrumentationNodeModuleFile("mongodb/lib/sessions.js",[">=4.0.0 <7"],d,p)])]}_getV3ConnectionPatches(){return{v3PatchConnection:e=>((0,Ae.isWrapped)(e.insert)&&this._unwrap(e,"insert"),this._wrap(e,"insert",this._getV3PatchOperation("insert")),(0,Ae.isWrapped)(e.remove)&&this._unwrap(e,"remove"),this._wrap(e,"remove",this._getV3PatchOperation("remove")),(0,Ae.isWrapped)(e.update)&&this._unwrap(e,"update"),this._wrap(e,"update",this._getV3PatchOperation("update")),(0,Ae.isWrapped)(e.command)&&this._unwrap(e,"command"),this._wrap(e,"command",this._getV3PatchCommand()),(0,Ae.isWrapped)(e.query)&&this._unwrap(e,"query"),this._wrap(e,"query",this._getV3PatchFind()),(0,Ae.isWrapped)(e.getMore)&&this._unwrap(e,"getMore"),this._wrap(e,"getMore",this._getV3PatchCursor()),e),v3UnpatchConnection:e=>{e!==void 0&&(this._unwrap(e,"insert"),this._unwrap(e,"remove"),this._unwrap(e,"update"),this._unwrap(e,"command"),this._unwrap(e,"query"),this._unwrap(e,"getMore"))}}}_getV4SessionsPatches(){return{v4PatchSessions:e=>((0,Ae.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),this._wrap(e.ServerSessionPool.prototype,"acquire",this._getV4AcquireCommand()),(0,Ae.isWrapped)(e.release)&&this._unwrap(e,"release"),this._wrap(e.ServerSessionPool.prototype,"release",this._getV4ReleaseCommand()),e),v4UnpatchSessions:e=>{e!==void 0&&((0,Ae.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),(0,Ae.isWrapped)(e.release)&&this._unwrap(e,"release"))}}}_getV4AcquireCommand(){let e=this;return r=>function(){let o=this.sessions.length,i=r.call(this),s=this.sessions.length;return o===s?e._connectionsUsage.add(1,{state:"used","pool.name":e._poolName}):o-1===s&&(e._connectionsUsage.add(-1,{state:"idle","pool.name":e._poolName}),e._connectionsUsage.add(1,{state:"used","pool.name":e._poolName})),i}}_getV4ReleaseCommand(){let e=this;return r=>function(o){let i=r.call(this,o);return e._connectionsUsage.add(-1,{state:"used","pool.name":e._poolName}),e._connectionsUsage.add(1,{state:"idle","pool.name":e._poolName}),i}}_getV4ConnectionPoolPatches(){return{v4PatchConnectionPool:e=>{let r=e.ConnectionPool.prototype;return(0,Ae.isWrapped)(r.checkOut)&&this._unwrap(r,"checkOut"),this._wrap(r,"checkOut",this._getV4ConnectionPoolCheckOut()),e},v4UnpatchConnectionPool:e=>{e!==void 0&&this._unwrap(e.ConnectionPool.prototype,"checkOut")}}}_getV4ConnectPatches(){return{v4PatchConnect:e=>((0,Ae.isWrapped)(e.connect)&&this._unwrap(e,"connect"),this._wrap(e,"connect",this._getV4ConnectCommand()),e),v4UnpatchConnect:e=>{e!==void 0&&this._unwrap(e,"connect")}}}_getV4ConnectionPoolCheckOut(){return e=>function(n){let o=ye.context.bind(ye.context.active(),n);return e.call(this,o)}}_getV4ConnectCommand(){let e=this;return r=>function(o,i){if(r.length===1){let a=r.call(this,o);return a&&typeof a.then=="function"&&a.then(()=>e.setPoolName(o),()=>{}),a}let s=function(a,u){if(a||!u){i(a,u);return}e.setPoolName(o),i(a,u)};return r.call(this,o,s)}}_getV4ConnectionPatches(){return{v4PatchConnectionCallback:e=>((0,Ae.isWrapped)(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandCallback()),e),v4PatchConnectionPromise:e=>((0,Ae.isWrapped)(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandPromise()),e),v4UnpatchConnection:e=>{e!==void 0&&this._unwrap(e.Connection.prototype,"command")}}}_getV3PatchOperation(e){let r=this;return n=>function(i,s,a,u,l){let d=ye.trace.getSpan(ye.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function"||typeof a!="object")return typeof u=="function"?n.call(this,i,s,a,u):n.call(this,i,s,a,u,l);let _=r.tracer.startSpan(`mongodb.${e}`,{kind:ye.SpanKind.CLIENT});r._populateV3Attributes(_,s,i,a[0],e);let f=r._patchEnd(_,p);return typeof u=="function"?n.call(this,i,s,a,f):n.call(this,i,s,a,u,f)}}_getV3PatchCommand(){let e=this;return r=>function(o,i,s,a,u){let l=ye.trace.getSpan(ye.context.active()),d=typeof a=="function"?a:u;if(!l||typeof d!="function"||typeof s!="object")return typeof a=="function"?r.call(this,o,i,s,a):r.call(this,o,i,s,a,u);let p=t._getCommandType(s),_=p===Xi.MongodbCommandType.UNKNOWN?"command":p,f=e.tracer.startSpan(`mongodb.${_}`,{kind:ye.SpanKind.CLIENT}),g=p===Xi.MongodbCommandType.UNKNOWN?void 0:p;e._populateV3Attributes(f,i,o,s,g);let h=e._patchEnd(f,d);return typeof a=="function"?r.call(this,o,i,s,h):r.call(this,o,i,s,a,h)}}_getV4PatchCommandCallback(){let e=this;return r=>function(o,i,s,a){let u=ye.trace.getSpan(ye.context.active()),l=a,d=Object.keys(i)[0];if(typeof l!="function"||typeof i!="object"||i.ismaster||i.hello)return r.call(this,o,i,s,a);let p;u&&(p=e.tracer.startSpan(`mongodb.${d}`,{kind:ye.SpanKind.CLIENT}),e._populateV4Attributes(p,this,o,i,d));let _=e._patchEnd(p,l,this.id,d);return r.call(this,o,i,s,_)}}_getV4PatchCommandPromise(){let e=this;return r=>function(...o){let[i,s]=o,a=ye.trace.getSpan(ye.context.active()),u=Object.keys(s)[0],l=()=>{};if(typeof s!="object"||s.ismaster||s.hello)return r.apply(this,o);let d;a&&(d=e.tracer.startSpan(`mongodb.${u}`,{kind:ye.SpanKind.CLIENT}),e._populateV4Attributes(d,this,i,s,u));let p=e._patchEnd(d,l,this.id,u),_=r.apply(this,o);return _.then(f=>p(null,f),f=>p(f)),_}}_getV3PatchFind(){let e=this;return r=>function(o,i,s,a,u,l){let d=ye.trace.getSpan(ye.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function"||typeof s!="object")return typeof u=="function"?r.call(this,o,i,s,a,u):r.call(this,o,i,s,a,u,l);let _=e.tracer.startSpan("mongodb.find",{kind:ye.SpanKind.CLIENT});e._populateV3Attributes(_,i,o,s,"find");let f=e._patchEnd(_,p);return typeof u=="function"?r.call(this,o,i,s,a,f):r.call(this,o,i,s,a,u,f)}}_getV3PatchCursor(){let e=this;return r=>function(o,i,s,a,u,l){let d=ye.trace.getSpan(ye.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function")return typeof u=="function"?r.call(this,o,i,s,a,u):r.call(this,o,i,s,a,u,l);let _=e.tracer.startSpan("mongodb.getMore",{kind:ye.SpanKind.CLIENT});e._populateV3Attributes(_,i,o,s.cmd,"getMore");let f=e._patchEnd(_,p);return typeof u=="function"?r.call(this,o,i,s,a,f):r.call(this,o,i,s,a,u,f)}}static _getCommandType(e){return e.createIndexes!==void 0?Xi.MongodbCommandType.CREATE_INDEXES:e.findandmodify!==void 0?Xi.MongodbCommandType.FIND_AND_MODIFY:e.ismaster!==void 0?Xi.MongodbCommandType.IS_MASTER:e.count!==void 0?Xi.MongodbCommandType.COUNT:e.aggregate!==void 0?Xi.MongodbCommandType.AGGREGATE:Xi.MongodbCommandType.UNKNOWN}_populateV4Attributes(e,r,n,o,i){let s,a;if(r){let l=typeof r.address=="string"?r.address.split(":"):"";l.length===2&&(s=l[0],a=l[1])}let u;o?.documents&&o.documents[0]?u=o.documents[0]:o?.cursors?u=o.cursors:u=o,this._addAllSpanAttributes(e,n.db,n.collection,s,a,u,i)}_populateV3Attributes(e,r,n,o,i){var s,a,u,l,d,p,_,f;let g,h;if(n&&n.s&&(g=(a=(s=n.s.options)===null||s===void 0?void 0:s.host)!==null&&a!==void 0?a:n.s.host,h=(d=(l=(u=n.s.options)===null||u===void 0?void 0:u.port)!==null&&l!==void 0?l:n.s.port)===null||d===void 0?void 0:d.toString(),g==null||h==null)){let D=(p=n.description)===null||p===void 0?void 0:p.address;if(D){let L=D.split(":");g=L[0],h=L[1]}}let[T,v]=r.toString().split("."),N=(f=(_=o?.query)!==null&&_!==void 0?_:o?.q)!==null&&f!==void 0?f:o;this._addAllSpanAttributes(e,T,v,g,h,N,i)}_addAllSpanAttributes(e,r,n,o,i,s,a){if(e.setAttributes({[yo.SEMATTRS_DB_SYSTEM]:yo.DBSYSTEMVALUES_MONGODB,[yo.SEMATTRS_DB_NAME]:r,[yo.SEMATTRS_DB_MONGODB_COLLECTION]:n,[yo.SEMATTRS_DB_OPERATION]:a,[yo.SEMATTRS_DB_CONNECTION_STRING]:`mongodb://${o}:${i}/${r}`}),o&&i){e.setAttribute(yo.SEMATTRS_NET_PEER_NAME,o);let d=parseInt(i,10);isNaN(d)||e.setAttribute(yo.SEMATTRS_NET_PEER_PORT,d)}if(!s)return;let{dbStatementSerializer:u}=this.getConfig(),l=typeof u=="function"?u:this._defaultDbStatementSerializer.bind(this);(0,Ae.safeExecuteInTheMiddle)(()=>{let d=l(s);e.setAttribute(yo.SEMATTRS_DB_STATEMENT,d)},d=>{d&&this._diag.error("Error running dbStatementSerializer hook",d)},!0)}_defaultDbStatementSerializer(e){let{enhancedDatabaseReporting:r}=this.getConfig(),n=r?e:this._scrubStatement(e);return JSON.stringify(n)}_scrubStatement(e){return Array.isArray(e)?e.map(r=>this._scrubStatement(r)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([r,n])=>[r,this._scrubStatement(n)])):"?"}_handleExecutionResult(e,r){let{responseHook:n}=this.getConfig();typeof n=="function"&&(0,Ae.safeExecuteInTheMiddle)(()=>{n(e,{data:r})},o=>{o&&this._diag.error("Error running response hook",o)},!0)}_patchEnd(e,r,n,o){let i=ye.context.active(),s=this;return function(...u){let l=u[0];if(e){if(l instanceof Error)e?.setStatus({code:ye.SpanStatusCode.ERROR,message:l.message});else{let d=u[1];s._handleExecutionResult(e,d)}e.end()}return ye.context.with(i,()=>(o==="endSessions"&&s._connectionsUsage.add(-1,{state:"idle","pool.name":s._poolName}),r.apply(this,u)))}}setPoolName(e){var r,n;let o=(r=e.hostAddress)===null||r===void 0?void 0:r.host,i=(n=e.hostAddress)===null||n===void 0?void 0:n.port,s=e.dbName,a=`mongodb://${o}:${i}/${s}`;this._poolName=a}};nO.MongoDBInstrumentation=hG});var Dre=c(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.MongodbCommandType=void 0;var aze;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.UNKNOWN="unknown"})(aze=u_.MongodbCommandType||(u_.MongodbCommandType={}))});var xre=c(Zi=>{"use strict";var uze=Zi&&Zi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Gre=Zi&&Zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&uze(e,t,r)};Object.defineProperty(Zi,"__esModule",{value:!0});Gre(Lre(),Zi);Gre(Dre(),Zi)});var mG=c(c_=>{Object.defineProperty(c_,"__esModule",{value:!0});var cze=xre(),lze=k(),dze=Se(),pze=Cn(),Ure="Mongo",wre=dze.generateInstrumentOnce(Ure,()=>new cze.MongoDBInstrumentation({dbStatementSerializer:qre,responseHook(t){pze.addOriginToSpan(t,"auto.db.otel.mongo")}}));function qre(t){let e=EG(t);return JSON.stringify(e)}function EG(t){if(Array.isArray(t))return t.map(e=>EG(e));if(_ze(t)){let e={};return Object.entries(t).map(([r,n])=>[r,EG(n)]).reduce((r,n)=>(gze(n)&&(r[n[0]]=n[1]),r),e)}return"?"}function _ze(t){return typeof t=="object"&&t!==null&&!fze(t)}function fze(t){let e=!1;return typeof Buffer<"u"&&(e=Buffer.isBuffer(t)),e}function gze(t){return Array.isArray(t)}var hze=()=>({name:Ure,setupOnce(){wre()}}),Eze=lze.defineIntegration(hze);c_._defaultDbStatementSerializer=qre;c_.instrumentMongo=wre;c_.mongoIntegration=Eze});var Bre=c(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.handleCallbackResponse=zi.handlePromiseResponse=zi.getAttributesFromCollection=void 0;var jre=(P(),m(I)),mze=Ke(),l_=($(),m(J));function Tze(t){return{[l_.SEMATTRS_DB_MONGODB_COLLECTION]:t.name,[l_.SEMATTRS_DB_NAME]:t.conn.name,[l_.SEMATTRS_DB_USER]:t.conn.user,[l_.SEMATTRS_NET_PEER_NAME]:t.conn.host,[l_.SEMATTRS_NET_PEER_PORT]:t.conn.port}}zi.getAttributesFromCollection=Tze;function Vre(t,e={}){t.recordException(e),t.setStatus({code:jre.SpanStatusCode.ERROR,message:`${e.message} ${e.code?`
32
+ Mongoose Error Code: ${e.code}`:""}`})}function TG(t,e,r,n=void 0){r&&(0,mze.safeExecuteInTheMiddle)(()=>r(t,{moduleVersion:n,response:e}),o=>{o&&jre.diag.error("mongoose instrumentation: responseHook error",o)},!0)}function Sze(t,e,r,n=void 0){return t instanceof Promise?t.then(o=>(TG(e,o,r,n),o)).catch(o=>{throw Vre(e,o),o}).finally(()=>e.end()):(TG(e,t,r,n),e.end(),t)}zi.handlePromiseResponse=Sze;function Aze(t,e,r,n,o,i,s=void 0){let a=0;return o.length===2&&(a=1),o[a]=(u,l)=>(u?Vre(n,u):TG(n,l,i,s),n.end(),t(u,l)),e.apply(r,o)}zi.handleCallbackResponse=Aze});var Hre=c($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.PACKAGE_NAME=$c.PACKAGE_VERSION=void 0;$c.PACKAGE_VERSION="0.42.0";$c.PACKAGE_NAME="@opentelemetry/instrumentation-mongoose"});var Kre=c(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.MongooseInstrumentation=Vn._STORED_PARENT_SPAN=void 0;var $t=(P(),m(I)),Oze=ae(),SG=Bre(),Fre=Ke(),kre=Hre(),d_=($(),m(J)),oO=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],Rze=["remove","count","findOneAndRemove",...oO],Ize=["count","findOneAndRemove",...oO],Pze=[...oO];function Wre(t){return t?t.startsWith("6.")||t.startsWith("5.")?Rze:t.startsWith("7.")?Ize:Pze:oO}function Yre(t){return t&&(t.startsWith("5.")||t.startsWith("6."))||!1}Vn._STORED_PARENT_SPAN=Symbol("stored-parent-span");var AG=class extends Fre.InstrumentationBase{constructor(e={}){super(kre.PACKAGE_NAME,kre.PACKAGE_VERSION,e)}init(){return new Fre.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <9"],this.patch.bind(this),this.unpatch.bind(this))}patch(e,r){return this._wrap(e.Model.prototype,"save",this.patchOnModelMethods("save",r)),e.Model.prototype.$save=e.Model.prototype.save,Yre(r)&&this._wrap(e.Model.prototype,"remove",this.patchOnModelMethods("remove",r)),this._wrap(e.Query.prototype,"exec",this.patchQueryExec(r)),this._wrap(e.Aggregate.prototype,"exec",this.patchAggregateExec(r)),Wre(r).forEach(o=>{this._wrap(e.Query.prototype,o,this.patchAndCaptureSpanContext(o))}),this._wrap(e.Model,"aggregate",this.patchModelAggregate()),e}unpatch(e,r){let n=Wre(r);this._unwrap(e.Model.prototype,"save"),e.Model.prototype.$save=e.Model.prototype.save,Yre(r)&&this._unwrap(e.Model.prototype,"remove"),this._unwrap(e.Query.prototype,"exec"),this._unwrap(e.Aggregate.prototype,"exec"),n.forEach(o=>{this._unwrap(e.Query.prototype,o)}),this._unwrap(e.Model,"aggregate")}patchAggregateExec(e){let r=this;return n=>function(i){var s;if(r.getConfig().requireParentSpan&&$t.trace.getSpan($t.context.active())===void 0)return n.apply(this,arguments);let a=this[Vn._STORED_PARENT_SPAN],u={},{dbStatementSerializer:l}=r.getConfig();l&&(u[d_.SEMATTRS_DB_STATEMENT]=l("aggregate",{options:this.options,aggregatePipeline:this._pipeline}));let d=r._startSpan(this._model.collection,(s=this._model)===null||s===void 0?void 0:s.modelName,"aggregate",u,a);return r._handleResponse(d,n,this,arguments,i,e)}}patchQueryExec(e){let r=this;return n=>function(i){if(r.getConfig().requireParentSpan&&$t.trace.getSpan($t.context.active())===void 0)return n.apply(this,arguments);let s=this[Vn._STORED_PARENT_SPAN],a={},{dbStatementSerializer:u}=r.getConfig();u&&(a[d_.SEMATTRS_DB_STATEMENT]=u(this.op,{condition:this._conditions,updates:this._update,options:this.options,fields:this._fields}));let l=r._startSpan(this.mongooseCollection,this.model.modelName,this.op,a,s);return r._handleResponse(l,n,this,arguments,i,e)}}patchOnModelMethods(e,r){let n=this;return o=>function(s,a){if(n.getConfig().requireParentSpan&&$t.trace.getSpan($t.context.active())===void 0)return o.apply(this,arguments);let u={document:this};s&&!(s instanceof Function)&&(u.options=s);let l={},{dbStatementSerializer:d}=n.getConfig();d&&(l[d_.SEMATTRS_DB_STATEMENT]=d(e,u));let p=n._startSpan(this.constructor.collection,this.constructor.modelName,e,l);return s instanceof Function&&(a=s,s=void 0),n._handleResponse(p,o,this,arguments,a,r)}}patchModelAggregate(){let e=this;return r=>function(){let o=$t.trace.getSpan($t.context.active()),i=e._callOriginalFunction(()=>r.apply(this,arguments));return i&&(i[Vn._STORED_PARENT_SPAN]=o),i}}patchAndCaptureSpanContext(e){let r=this;return n=>function(){return this[Vn._STORED_PARENT_SPAN]=$t.trace.getSpan($t.context.active()),r._callOriginalFunction(()=>n.apply(this,arguments))}}_startSpan(e,r,n,o,i){return this.tracer.startSpan(`mongoose.${r}.${n}`,{kind:$t.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},o),(0,SG.getAttributesFromCollection)(e)),{[d_.SEMATTRS_DB_OPERATION]:n,[d_.SEMATTRS_DB_SYSTEM]:"mongoose"})},i?$t.trace.setSpan($t.context.active(),i):void 0)}_handleResponse(e,r,n,o,i,s=void 0){let a=this;if(i instanceof Function)return a._callOriginalFunction(()=>(0,SG.handleCallbackResponse)(i,r,n,e,o,a.getConfig().responseHook,s));{let u=a._callOriginalFunction(()=>r.apply(n,o));return(0,SG.handlePromiseResponse)(u,e,a.getConfig().responseHook,s)}}_callOriginalFunction(e){return this.getConfig().suppressInternalInstrumentation?$t.context.with((0,Oze.suppressTracing)($t.context.active()),e):e()}};Vn.MongooseInstrumentation=AG});var Zre=c(Xre=>{"use strict";Object.defineProperty(Xre,"__esModule",{value:!0})});var Jre=c(Ji=>{"use strict";var bze=Ji&&Ji.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),zre=Ji&&Ji.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&bze(e,t,r)};Object.defineProperty(Ji,"__esModule",{value:!0});zre(Kre(),Ji);zre(Zre(),Ji)});var OG=c(iO=>{Object.defineProperty(iO,"__esModule",{value:!0});var vze=Jre(),yze=k(),Nze=Se(),Cze=Cn(),$re="Mongoose",Qre=Nze.generateInstrumentOnce($re,()=>new vze.MongooseInstrumentation({responseHook(t){Cze.addOriginToSpan(t,"auto.db.otel.mongoose")}})),Mze=()=>({name:$re,setupOnce(){Qre()}}),Lze=yze.defineIntegration(Mze);iO.instrumentMongoose=Qre;iO.mongooseIntegration=Lze});var ene=c(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.AttributeNames=void 0;var Dze;(function(t){t.MYSQL_VALUES="db.mysql.values"})(Dze=p_.AttributeNames||(p_.AttributeNames={}))});var rne=c(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.getPoolName=dr.arrayStringifyHelper=dr.getSpanName=dr.getDbValues=dr.getDbStatement=dr.getConnectionAttributes=void 0;var No=($(),m(J));function Gze(t){let{host:e,port:r,database:n,user:o}=xze(t),i=parseInt(r,10);return isNaN(i)?{[No.SEMATTRS_NET_PEER_NAME]:e,[No.SEMATTRS_DB_CONNECTION_STRING]:tne(e,r,n),[No.SEMATTRS_DB_NAME]:n,[No.SEMATTRS_DB_USER]:o}:{[No.SEMATTRS_NET_PEER_NAME]:e,[No.SEMATTRS_NET_PEER_PORT]:i,[No.SEMATTRS_DB_CONNECTION_STRING]:tne(e,r,n),[No.SEMATTRS_DB_NAME]:n,[No.SEMATTRS_DB_USER]:o}}dr.getConnectionAttributes=Gze;function xze(t){let{host:e,port:r,database:n,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:r,database:n,user:o}}function tne(t,e,r){let n=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(n+=`:${e}`),typeof r=="string"&&(n+=`/${r}`),n}function Uze(t){return typeof t=="string"?t:t.sql}dr.getDbStatement=Uze;function wze(t,e){return RG(typeof t=="string"?e:e||t.values)}dr.getDbValues=wze;function qze(t){return typeof t=="object"?t.sql:t.split(" ")[0]}dr.getSpanName=qze;function RG(t){return t?`[${t.toString()}]`:""}dr.arrayStringifyHelper=RG;function jze(t){let e=t.config.connectionConfig,r="";return r+=e.host?`host: '${e.host}', `:"",r+=e.port?`port: ${e.port}, `:"",r+=e.database?`database: '${e.database}', `:"",r+=e.user?`user: '${e.user}'`:"",e.user||(r=r.substring(0,r.length-2)),r.trim()}dr.getPoolName=jze});var nne=c(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.PACKAGE_NAME=Qc.PACKAGE_VERSION=void 0;Qc.PACKAGE_VERSION="0.41.0";Qc.PACKAGE_NAME="@opentelemetry/instrumentation-mysql"});var ine=c(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0});aO.MySQLInstrumentation=void 0;var pr=(P(),m(I)),el=Ke(),IG=($(),m(J)),Vze=ene(),tl=rne(),one=nne(),sO=class t extends el.InstrumentationBase{constructor(e={}){super(one.PACKAGE_NAME,one.PACKAGE_VERSION,e),this._setMetricInstruments()}setMeterProvider(e){super.setMeterProvider(e),this._setMetricInstruments()}_setMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}init(){return[new el.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],e=>((0,el.isWrapped)(e.createConnection)&&this._unwrap(e,"createConnection"),this._wrap(e,"createConnection",this._patchCreateConnection()),(0,el.isWrapped)(e.createPool)&&this._unwrap(e,"createPool"),this._wrap(e,"createPool",this._patchCreatePool()),(0,el.isWrapped)(e.createPoolCluster)&&this._unwrap(e,"createPoolCluster"),this._wrap(e,"createPoolCluster",this._patchCreatePoolCluster()),e),e=>{e!==void 0&&(this._unwrap(e,"createConnection"),this._unwrap(e,"createPool"),this._unwrap(e,"createPoolCluster"))})]}_patchCreateConnection(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"query",r._patchQuery(i)),i}}}_patchCreatePool(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"query",r._patchQuery(i)),r._wrap(i,"getConnection",r._patchGetConnection(i)),r._wrap(i,"end",r._patchPoolEnd(i)),r._setPoolcallbacks(i,r,""),i}}}_patchPoolEnd(e){return r=>{let n=this;return function(i){let s=e._allConnections.length,a=e._freeConnections.length,u=s-a,l=(0,tl.getPoolName)(e);n._connectionsUsage.add(-u,{state:"used",name:l}),n._connectionsUsage.add(-a,{state:"idle",name:l}),r.apply(e,arguments)}}}_patchCreatePoolCluster(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"getConnection",r._patchGetConnection(i)),r._wrap(i,"add",r._patchAdd(i)),i}}}_patchAdd(e){return r=>{let n=this;return function(i,s){if(!n._enabled)return n._unwrap(e,"add"),r.apply(e,arguments);r.apply(e,arguments);let a=e._nodes;if(a){let u=typeof i=="object"?"CLUSTER::"+e._lastId:String(i),l=a[u].pool;n._setPoolcallbacks(l,n,i)}}}}_patchGetConnection(e){return r=>{let n=this;return function(i,s,a){if(!n._enabled)return n._unwrap(e,"getConnection"),r.apply(e,arguments);if(arguments.length===1&&typeof i=="function"){let u=n._getConnectionCallbackPatchFn(i);return r.call(e,u)}if(arguments.length===2&&typeof s=="function"){let u=n._getConnectionCallbackPatchFn(s);return r.call(e,i,u)}if(arguments.length===3&&typeof a=="function"){let u=n._getConnectionCallbackPatchFn(a);return r.call(e,i,s,u)}return r.apply(e,arguments)}}}_getConnectionCallbackPatchFn(e){let r=this,n=pr.context.active();return function(o,i){i&&((0,el.isWrapped)(i.query)||r._wrap(i,"query",r._patchQuery(i))),typeof e=="function"&&pr.context.with(n,e,this,o,i)}}_patchQuery(e){return r=>{let n=this;return function(o,i,s){if(!n._enabled)return n._unwrap(e,"query"),r.apply(e,arguments);let a=n.tracer.startSpan((0,tl.getSpanName)(o),{kind:pr.SpanKind.CLIENT,attributes:Object.assign(Object.assign({},t.COMMON_ATTRIBUTES),(0,tl.getConnectionAttributes)(e.config))});if(a.setAttribute(IG.SEMATTRS_DB_STATEMENT,(0,tl.getDbStatement)(o)),n.getConfig().enhancedDatabaseReporting){let d;Array.isArray(i)?d=i:arguments[2]&&(d=[i]),a.setAttribute(Vze.AttributeNames.MYSQL_VALUES,(0,tl.getDbValues)(o,d))}let u=Array.from(arguments).findIndex(d=>typeof d=="function"),l=pr.context.active();if(u===-1){let d=pr.context.with(pr.trace.setSpan(pr.context.active(),a),()=>r.apply(e,arguments));return pr.context.bind(l,d),d.on("error",p=>a.setStatus({code:pr.SpanStatusCode.ERROR,message:p.message})).on("end",()=>{a.end()})}else return n._wrap(arguments,u,n._patchCallbackQuery(a,l)),pr.context.with(pr.trace.setSpan(pr.context.active(),a),()=>r.apply(e,arguments))}}}_patchCallbackQuery(e,r){return n=>function(o,i,s){return o&&e.setStatus({code:pr.SpanStatusCode.ERROR,message:o.message}),e.end(),pr.context.with(r,()=>n(...arguments))}}_setPoolcallbacks(e,r,n){let o=n||(0,tl.getPoolName)(e);e.on("connection",i=>{r._connectionsUsage.add(1,{state:"idle",name:o})}),e.on("acquire",i=>{r._connectionsUsage.add(-1,{state:"idle",name:o}),r._connectionsUsage.add(1,{state:"used",name:o})}),e.on("release",i=>{r._connectionsUsage.add(-1,{state:"used",name:o}),r._connectionsUsage.add(1,{state:"idle",name:o})})}};aO.MySQLInstrumentation=sO;sO.COMMON_ATTRIBUTES={[IG.SEMATTRS_DB_SYSTEM]:IG.DBSYSTEMVALUES_MYSQL}});var ane=c(sne=>{"use strict";Object.defineProperty(sne,"__esModule",{value:!0})});var cne=c($i=>{"use strict";var Bze=$i&&$i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),une=$i&&$i.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Bze(e,t,r)};Object.defineProperty($i,"__esModule",{value:!0});une(ine(),$i);une(ane(),$i)});var PG=c(uO=>{Object.defineProperty(uO,"__esModule",{value:!0});var Hze=cne(),Fze=k(),kze=Se(),lne="Mysql",dne=kze.generateInstrumentOnce(lne,()=>new Hze.MySQLInstrumentation({})),Wze=()=>({name:lne,setupOnce(){dne()}}),Yze=Fze.defineIntegration(Wze);uO.instrumentMysql=dne;uO.mysqlIntegration=Yze});var vG=c(cO=>{"use strict";Object.defineProperty(cO,"__esModule",{value:!0});cO.addSqlCommenterComment=void 0;var bG=(P(),m(I)),Kze=ae();function Xze(t){let e=t.indexOf("--");if(e>=0)return!0;if(t.indexOf("/*")<0)return!1;let n=t.indexOf("*/");return e<n}function Zze(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}function zze(t,e){if(typeof e!="string"||e.length===0||Xze(e))return e;let r=new Kze.W3CTraceContextPropagator,n={};r.inject(bG.trace.setSpan(bG.ROOT_CONTEXT,t),n,bG.defaultTextMapSetter);let o=Object.keys(n).sort();if(o.length===0)return e;let i=o.map(s=>{let a=Zze(n[s]);return`${s}='${a}'`}).join(",");return`${e} /*${i}*/`}cO.addSqlCommenterComment=zze});var _ne=c(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.once=Bn.getSpanName=Bn.getDbStatement=Bn.getConnectionAttributes=void 0;var Co=($(),m(J));function Jze(t){let{host:e,port:r,database:n,user:o}=$ze(t),i=parseInt(r,10);return isNaN(i)?{[Co.SEMATTRS_NET_PEER_NAME]:e,[Co.SEMATTRS_DB_CONNECTION_STRING]:pne(e,r,n),[Co.SEMATTRS_DB_NAME]:n,[Co.SEMATTRS_DB_USER]:o}:{[Co.SEMATTRS_NET_PEER_NAME]:e,[Co.SEMATTRS_NET_PEER_PORT]:i,[Co.SEMATTRS_DB_CONNECTION_STRING]:pne(e,r,n),[Co.SEMATTRS_DB_NAME]:n,[Co.SEMATTRS_DB_USER]:o}}Bn.getConnectionAttributes=Jze;function $ze(t){let{host:e,port:r,database:n,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:r,database:n,user:o}}function pne(t,e,r){let n=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(n+=`:${e}`),typeof r=="string"&&(n+=`/${r}`),n}function Qze(t,e,r){return typeof t=="string"?r?e(t,r):t:r||t.values?e(t.sql,r||t.values):t.sql}Bn.getDbStatement=Qze;function e3e(t){var e;let r=typeof t=="object"?t.sql:t;return(e=r?.split(" "))===null||e===void 0?void 0:e[0]}Bn.getSpanName=e3e;var t3e=t=>{let e=!1;return(...r)=>{if(!e)return e=!0,t(...r)}};Bn.once=t3e});var fne=c(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.PACKAGE_NAME=rl.PACKAGE_VERSION=void 0;rl.PACKAGE_VERSION="0.41.0";rl.PACKAGE_NAME="@opentelemetry/instrumentation-mysql2"});var mne=c(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0});pO.MySQL2Instrumentation=void 0;var gne=(P(),m(I)),__=Ke(),yG=($(),m(J)),hne=vG(),lO=_ne(),Ene=fne(),dO=class t extends __.InstrumentationBase{constructor(e={}){super(Ene.PACKAGE_NAME,Ene.PACKAGE_VERSION,e)}init(){return[new __.InstrumentationNodeModuleDefinition("mysql2",[">=1.4.2 <4"],e=>{let r=e.Connection.prototype;return(0,__.isWrapped)(r.query)&&this._unwrap(r,"query"),this._wrap(r,"query",this._patchQuery(e.format,!1)),(0,__.isWrapped)(r.execute)&&this._unwrap(r,"execute"),this._wrap(r,"execute",this._patchQuery(e.format,!0)),e},e=>{if(e===void 0)return;let r=e.Connection.prototype;this._unwrap(r,"query"),this._unwrap(r,"execute")})]}_patchQuery(e,r){return n=>{let o=this;return function(i,s,a){let u;Array.isArray(s)?u=s:arguments[2]&&(u=[s]);let l=o.tracer.startSpan((0,lO.getSpanName)(i),{kind:gne.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},t.COMMON_ATTRIBUTES),(0,lO.getConnectionAttributes)(this.config)),{[yG.SEMATTRS_DB_STATEMENT]:(0,lO.getDbStatement)(i,e,u)})});!r&&o.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=i=typeof i=="string"?(0,hne.addSqlCommenterComment)(l,i):Object.assign(i,{sql:(0,hne.addSqlCommenterComment)(l,i.sql)}));let d=(0,lO.once)((p,_)=>{if(p)l.setStatus({code:gne.SpanStatusCode.ERROR,message:p.message});else{let{responseHook:f}=o.getConfig();typeof f=="function"&&(0,__.safeExecuteInTheMiddle)(()=>{f(l,{queryResults:_})},g=>{g&&o._diag.warn("Failed executing responseHook",g)},!0)}l.end()});if(arguments.length===1){typeof i.onResult=="function"&&o._wrap(i,"onResult",o._patchCallbackQuery(d));let p=n.apply(this,arguments);return p.once("error",_=>{d(_)}).once("result",_=>{d(void 0,_)}),p}return typeof arguments[1]=="function"?o._wrap(arguments,1,o._patchCallbackQuery(d)):typeof arguments[2]=="function"&&o._wrap(arguments,2,o._patchCallbackQuery(d)),n.apply(this,arguments)}}}_patchCallbackQuery(e){return r=>function(n,o,i){return e(n,o),r(...arguments)}}};pO.MySQL2Instrumentation=dO;dO.COMMON_ATTRIBUTES={[yG.SEMATTRS_DB_SYSTEM]:yG.DBSYSTEMVALUES_MYSQL}});var Sne=c(Tne=>{"use strict";Object.defineProperty(Tne,"__esModule",{value:!0})});var One=c(Qi=>{"use strict";var r3e=Qi&&Qi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ane=Qi&&Qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&r3e(e,t,r)};Object.defineProperty(Qi,"__esModule",{value:!0});Ane(mne(),Qi);Ane(Sne(),Qi)});var NG=c(_O=>{Object.defineProperty(_O,"__esModule",{value:!0});var n3e=One(),o3e=k(),i3e=Se(),s3e=Cn(),Rne="Mysql2",Ine=i3e.generateInstrumentOnce(Rne,()=>new n3e.MySQL2Instrumentation({responseHook(t){s3e.addOriginToSpan(t,"auto.db.otel.mysql2")}})),a3e=()=>({name:Rne,setupOnce(){Ine()}}),u3e=o3e.defineIntegration(a3e);_O.instrumentMysql2=Ine;_O.mysql2Integration=u3e});var Pne=c(fO=>{"use strict";Object.defineProperty(fO,"__esModule",{value:!0});fO.endSpan=void 0;var c3e=(P(),m(I)),l3e=(t,e)=>{e&&(t.recordException(e),t.setStatus({code:c3e.SpanStatusCode.ERROR,message:e.message})),t.end()};fO.endSpan=l3e});var CG=c(gO=>{"use strict";Object.defineProperty(gO,"__esModule",{value:!0});gO.defaultDbStatementSerializer=void 0;var d3e=[{regex:/^ECHO/i,args:0},{regex:/^(LPUSH|MSET|PFA|PUBLISH|RPUSH|SADD|SET|SPUBLISH|XADD|ZADD)/i,args:1},{regex:/^(HSET|HMSET|LSET|LINSERT)/i,args:2},{regex:/^(ACL|BIT|B[LRZ]|CLIENT|CLUSTER|CONFIG|COMMAND|DECR|DEL|EVAL|EX|FUNCTION|GEO|GET|HINCR|HMGET|HSCAN|INCR|L[TRLM]|MEMORY|P[EFISTU]|RPOP|S[CDIMORSU]|XACK|X[CDGILPRT]|Z[CDILMPRS])/i,args:-1}],p3e=(t,e)=>{var r,n;if(Array.isArray(e)&&e.length){let o=(n=(r=d3e.find(({regex:s})=>s.test(t)))===null||r===void 0?void 0:r.args)!==null&&n!==void 0?n:0,i=o>=0?e.slice(0,o):e;return e.length>i.length&&i.push(`[${e.length-o} other arguments]`),`${t} ${i.join(" ")}`}return t};gO.defaultDbStatementSerializer=p3e});var bne=c(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.PACKAGE_NAME=nl.PACKAGE_VERSION=void 0;nl.PACKAGE_VERSION="0.43.0";nl.PACKAGE_NAME="@opentelemetry/instrumentation-ioredis"});var Cne=c(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0});EO.IORedisInstrumentation=void 0;var es=(P(),m(I)),hO=Ke(),Fr=($(),m(J)),vne=Ke(),f_=Pne(),_3e=CG(),yne=bne(),Nne={requireParentSpan:!0},MG=class extends hO.InstrumentationBase{constructor(e={}){super(yne.PACKAGE_NAME,yne.PACKAGE_VERSION,Object.assign(Object.assign({},Nne),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},Nne),e))}init(){return[new hO.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <6"],(e,r)=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,hO.isWrapped)(n.prototype.sendCommand)&&this._unwrap(n.prototype,"sendCommand"),this._wrap(n.prototype,"sendCommand",this._patchSendCommand(r)),(0,hO.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._patchConnection()),e},e=>{if(e===void 0)return;let r=e[Symbol.toStringTag]==="Module"?e.default:e;this._unwrap(r.prototype,"sendCommand"),this._unwrap(r.prototype,"connect")})]}_patchSendCommand(e){return r=>this._traceSendCommand(r,e)}_patchConnection(){return e=>this._traceConnection(e)}_traceSendCommand(e,r){let n=this;return function(o){if(arguments.length<1||typeof o!="object")return e.apply(this,arguments);let i=n.getConfig(),s=i.dbStatementSerializer||_3e.defaultDbStatementSerializer,a=es.trace.getSpan(es.context.active())===void 0;if(i.requireParentSpan===!0&&a)return e.apply(this,arguments);let u=n.tracer.startSpan(o.name,{kind:es.SpanKind.CLIENT,attributes:{[Fr.SEMATTRS_DB_SYSTEM]:Fr.DBSYSTEMVALUES_REDIS,[Fr.SEMATTRS_DB_STATEMENT]:s(o.name,o.args)}}),{requestHook:l}=i;l&&(0,vne.safeExecuteInTheMiddle)(()=>l(u,{moduleVersion:r,cmdName:o.name,cmdArgs:o.args}),_=>{_&&es.diag.error("ioredis instrumentation: request hook failed",_)},!0);let{host:d,port:p}=this.options;u.setAttributes({[Fr.SEMATTRS_NET_PEER_NAME]:d,[Fr.SEMATTRS_NET_PEER_PORT]:p,[Fr.SEMATTRS_DB_CONNECTION_STRING]:`redis://${d}:${p}`});try{let _=e.apply(this,arguments),f=o.resolve;o.resolve=function(h){(0,vne.safeExecuteInTheMiddle)(()=>{var T;return(T=i.responseHook)===null||T===void 0?void 0:T.call(i,u,o.name,o.args,h)},T=>{T&&es.diag.error("ioredis instrumentation: response hook failed",T)},!0),(0,f_.endSpan)(u,null),f(h)};let g=o.reject;return o.reject=function(h){(0,f_.endSpan)(u,h),g(h)},_}catch(_){throw(0,f_.endSpan)(u,_),_}}}_traceConnection(e){let r=this;return function(){let n=es.trace.getSpan(es.context.active())===void 0;if(r.getConfig().requireParentSpan===!0&&n)return e.apply(this,arguments);let o=r.tracer.startSpan("connect",{kind:es.SpanKind.CLIENT,attributes:{[Fr.SEMATTRS_DB_SYSTEM]:Fr.DBSYSTEMVALUES_REDIS,[Fr.SEMATTRS_DB_STATEMENT]:"connect"}}),{host:i,port:s}=this.options;o.setAttributes({[Fr.SEMATTRS_NET_PEER_NAME]:i,[Fr.SEMATTRS_NET_PEER_PORT]:s,[Fr.SEMATTRS_DB_CONNECTION_STRING]:`redis://${i}:${s}`});try{let a=e.apply(this,arguments);return(0,f_.endSpan)(o,null),a}catch(a){throw(0,f_.endSpan)(o,a),a}}}};EO.IORedisInstrumentation=MG});var Lne=c(Mne=>{"use strict";Object.defineProperty(Mne,"__esModule",{value:!0})});var Gne=c(ts=>{"use strict";var f3e=ts&&ts.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Dne=ts&&ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&f3e(e,t,r)};Object.defineProperty(ts,"__esModule",{value:!0});Dne(Cne(),ts);Dne(Lne(),ts)});var xne=c(mO=>{"use strict";Object.defineProperty(mO,"__esModule",{value:!0});mO.getClientAttributes=void 0;var g_=($(),m(J));function g3e(t,e){var r,n;return{[g_.SEMATTRS_DB_SYSTEM]:g_.DBSYSTEMVALUES_REDIS,[g_.SEMATTRS_NET_PEER_NAME]:(r=e?.socket)===null||r===void 0?void 0:r.host,[g_.SEMATTRS_NET_PEER_PORT]:(n=e?.socket)===null||n===void 0?void 0:n.port,[g_.SEMATTRS_DB_CONNECTION_STRING]:h3e(t,e?.url)}}mO.getClientAttributes=g3e;function h3e(t,e){if(typeof e=="string")try{let r=new URL(e);return r.searchParams.delete("user_pwd"),r.username="",r.password="",r.href}catch(r){t.error("failed to sanitize redis connection url",r)}}});var Une=c(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.PACKAGE_NAME=ol.PACKAGE_VERSION=void 0;ol.PACKAGE_VERSION="0.42.0";ol.PACKAGE_NAME="@opentelemetry/instrumentation-redis-4"});var Bne=c(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0});SO.RedisInstrumentation=void 0;var kr=(P(),m(I)),st=Ke(),wne=xne(),E3e=CG(),qne=Une(),m3e=($(),m(J)),h_=Symbol("opentelemetry.instrumentation.redis.open_spans"),jne=Symbol("opentelemetry.instrumentation.redis.multi_command_options"),Vne={requireParentSpan:!1},TO=class t extends st.InstrumentationBase{constructor(e={}){super(qne.PACKAGE_NAME,qne.PACKAGE_VERSION,Object.assign(Object.assign({},Vne),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},Vne),e))}init(){return[this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(e){let r=new st.InstrumentationNodeModuleFile(`${e}/dist/lib/commander.js`,["^1.0.0"],(i,s)=>{let a=i.transformCommandArguments;if(!a)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),i;let u=s?.startsWith("1.0.")?"extendWithCommands":"attachCommands";return(0,st.isWrapped)(i?.[u])&&this._unwrap(i,u),this._wrap(i,u,this._getPatchExtendWithCommands(a)),i},i=>{(0,st.isWrapped)(i?.extendWithCommands)&&this._unwrap(i,"extendWithCommands"),(0,st.isWrapped)(i?.attachCommands)&&this._unwrap(i,"attachCommands")}),n=new st.InstrumentationNodeModuleFile(`${e}/dist/lib/client/multi-command.js`,["^1.0.0"],i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;return(0,st.isWrapped)(a?.exec)&&this._unwrap(a,"exec"),this._wrap(a,"exec",this._getPatchMultiCommandsExec()),(0,st.isWrapped)(a?.addCommand)&&this._unwrap(a,"addCommand"),this._wrap(a,"addCommand",this._getPatchMultiCommandsAddCommand()),i},i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;(0,st.isWrapped)(a?.exec)&&this._unwrap(a,"exec"),(0,st.isWrapped)(a?.addCommand)&&this._unwrap(a,"addCommand")}),o=new st.InstrumentationNodeModuleFile(`${e}/dist/lib/client/index.js`,["^1.0.0"],i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;return a?.multi&&((0,st.isWrapped)(a?.multi)&&this._unwrap(a,"multi"),this._wrap(a,"multi",this._getPatchRedisClientMulti())),a?.MULTI&&((0,st.isWrapped)(a?.MULTI)&&this._unwrap(a,"MULTI"),this._wrap(a,"MULTI",this._getPatchRedisClientMulti())),(0,st.isWrapped)(a?.sendCommand)&&this._unwrap(a,"sendCommand"),this._wrap(a,"sendCommand",this._getPatchRedisClientSendCommand()),this._wrap(a,"connect",this._getPatchedClientConnect()),i},i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;(0,st.isWrapped)(a?.multi)&&this._unwrap(a,"multi"),(0,st.isWrapped)(a?.MULTI)&&this._unwrap(a,"MULTI"),(0,st.isWrapped)(a?.sendCommand)&&this._unwrap(a,"sendCommand")});return new st.InstrumentationNodeModuleDefinition(e,["^1.0.0"],i=>i,()=>{},[r,n,o])}_getPatchExtendWithCommands(e){let r=this;return function(o){return function(s){var a;if(((a=s?.BaseClass)===null||a===void 0?void 0:a.name)!=="RedisClient")return o.apply(this,arguments);let u=s.executor;return s.executor=function(l,d){let p=e(l,d).args;return r._traceClientCommand(u,this,arguments,p)},o.apply(this,arguments)}}}_getPatchMultiCommandsExec(){let e=this;return function(n){return function(){let i=n.apply(this,arguments);return typeof i?.then!="function"?(e._diag.error("got non promise result when patching RedisClientMultiCommand.exec"),i):i.then(s=>{let a=this[h_];return e._endSpansWithRedisReplies(a,s),s}).catch(s=>{let a=this[h_];if(!a)e._diag.error("cannot find open spans to end for redis multi command");else{let u=s.constructor.name==="MultiErrorReply"?s.replies:new Array(a.length).fill(s);e._endSpansWithRedisReplies(a,u)}return Promise.reject(s)})}}}_getPatchMultiCommandsAddCommand(){let e=this;return function(n){return function(i){return e._traceClientCommand(n,this,arguments,i)}}}_getPatchRedisClientMulti(){return function(r){return function(){let o=r.apply(this,arguments);return o[jne]=this.options,o}}}_getPatchRedisClientSendCommand(){let e=this;return function(n){return function(i){return e._traceClientCommand(n,this,arguments,i)}}}_getPatchedClientConnect(){let e=this;return function(n){return function(){let i=this.options,s=(0,wne.getClientAttributes)(e._diag,i),a=e.tracer.startSpan(`${t.COMPONENT}-connect`,{kind:kr.SpanKind.CLIENT,attributes:s});return kr.context.with(kr.trace.setSpan(kr.context.active(),a),()=>n.apply(this)).then(l=>(a.end(),l)).catch(l=>(a.recordException(l),a.setStatus({code:kr.SpanStatusCode.ERROR,message:l.message}),a.end(),Promise.reject(l)))}}}_traceClientCommand(e,r,n,o){if(kr.trace.getSpan(kr.context.active())===void 0&&this.getConfig().requireParentSpan)return e.apply(r,n);let s=r.options||r[jne],a=o[0],u=o.slice(1),l=this.getConfig().dbStatementSerializer||E3e.defaultDbStatementSerializer,d=(0,wne.getClientAttributes)(this._diag,s);try{let f=l(a,u);f!=null&&(d[m3e.SEMATTRS_DB_STATEMENT]=f)}catch(f){this._diag.error("dbStatementSerializer throw an exception",f,{commandName:a})}let p=this.tracer.startSpan(`${t.COMPONENT}-${a}`,{kind:kr.SpanKind.CLIENT,attributes:d}),_=kr.context.with(kr.trace.setSpan(kr.context.active(),p),()=>e.apply(r,n));if(typeof _?.then=="function")_.then(f=>{this._endSpanWithResponse(p,a,u,f,void 0)},f=>{this._endSpanWithResponse(p,a,u,null,f)});else{let f=_;f[h_]=f[h_]||[],f[h_].push({span:p,commandName:a,commandArgs:u})}return _}_endSpansWithRedisReplies(e,r){if(!e)return this._diag.error("cannot find open spans to end for redis multi command");if(r.length!==e.length)return this._diag.error("number of multi command spans does not match response from redis");for(let n=0;n<e.length;n++){let{span:o,commandName:i,commandArgs:s}=e[n],a=r[n],[u,l]=a instanceof Error?[null,a]:[a,void 0];this._endSpanWithResponse(o,i,s,u,l)}}_endSpanWithResponse(e,r,n,o,i){let{responseHook:s}=this.getConfig();if(!i&&s)try{s(e,r,n,o)}catch(a){this._diag.error("responseHook throw an exception",a)}i&&(e.recordException(i),e.setStatus({code:kr.SpanStatusCode.ERROR,message:i?.message})),e.end()}};SO.RedisInstrumentation=TO;TO.COMPONENT="redis"});var Fne=c(Hne=>{"use strict";Object.defineProperty(Hne,"__esModule",{value:!0})});var Wne=c(rs=>{"use strict";var T3e=rs&&rs.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),kne=rs&&rs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&T3e(e,t,r)};Object.defineProperty(rs,"__esModule",{value:!0});kne(Bne(),rs);kne(Fne(),rs)});var zne=c(Mo=>{Object.defineProperty(Mo,"__esModule",{value:!0});var Yne=b(),S3e=["get","set","setex"],Kne=["get","mget"],Xne=["set","setex"];function AO(t,e){return t.includes(e.toLowerCase())}function Zne(t){return AO(Kne,t)?"cache.get":AO(Xne,t)?"cache.put":void 0}function A3e(t,e){return e.some(r=>t.startsWith(r))}function O3e(t,e){try{if(e.length===0)return;let r=o=>typeof o=="string"||typeof o=="number"||Buffer.isBuffer(o)?[o.toString()]:Array.isArray(o)?Yne.flatten(o.map(i=>r(i))):["<unknown>"],n=e[0];return AO(S3e,t)&&n!=null?r(n):Yne.flatten(e.map(o=>r(o)))}catch{return}}function R3e(t,e,r){if(!Zne(t))return!1;for(let n of e)if(A3e(n,r))return!0;return!1}function I3e(t){let e=r=>{try{return Buffer.isBuffer(r)?r.byteLength:typeof r=="string"?r.length:typeof r=="number"?r.toString().length:r==null?0:JSON.stringify(r).length}catch{return}};return Array.isArray(t)?t.reduce((r,n)=>{let o=e(n);return typeof o=="number"?r!==void 0?r+o:o:r},0):e(t)}Mo.GET_COMMANDS=Kne;Mo.SET_COMMANDS=Xne;Mo.calculateCacheItemSize=I3e;Mo.getCacheKeySafely=O3e;Mo.getCacheOperation=Zne;Mo.isInCommands=AO;Mo.shouldConsiderForCache=R3e});var GG=c(OO=>{var{_optionalChain:LG}=b();Object.defineProperty(OO,"__esModule",{value:!0});var P3e=Gne(),b3e=Wne(),ns=k(),v3e=b(),Jne=Se(),il=zne(),$ne="Redis",DG={},Qne=(t,e,r,n)=>{t.setAttribute(ns.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.redis");let o=il.getCacheKeySafely(e,r),i=il.getCacheOperation(e);if(!o||!i||!LG([DG,"optionalAccess",d=>d.cachePrefixes])||!il.shouldConsiderForCache(e,o,DG.cachePrefixes))return;let s=LG([ns.spanToJSON,"call",d=>d(t),"access",d=>d.data,"optionalAccess",d=>d["net.peer.name"]]),a=LG([ns.spanToJSON,"call",d=>d(t),"access",d=>d.data,"optionalAccess",d=>d["net.peer.port"]]);a&&s&&t.setAttributes({"network.peer.address":s,"network.peer.port":a});let u=il.calculateCacheItemSize(n);u&&t.setAttribute(ns.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,u),il.isInCommands(il.GET_COMMANDS,e)&&u!==void 0&&t.setAttribute(ns.SEMANTIC_ATTRIBUTE_CACHE_HIT,u>0),t.setAttributes({[ns.SEMANTIC_ATTRIBUTE_SENTRY_OP]:i,[ns.SEMANTIC_ATTRIBUTE_CACHE_KEY]:o});let l=o.join(", ");t.updateName(v3e.truncate(l,1024))},y3e=Jne.generateInstrumentOnce("IORedis",()=>new P3e.IORedisInstrumentation({responseHook:Qne})),N3e=Jne.generateInstrumentOnce("Redis-4",()=>new b3e.RedisInstrumentation({responseHook:Qne})),eoe=Object.assign(()=>{y3e(),N3e()},{id:$ne}),C3e=(t={})=>({name:$ne,setupOnce(){DG=t,eoe()}}),M3e=ns.defineIntegration(C3e);OO.instrumentRedis=eoe;OO.redisIntegration=M3e});var toe=c(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.PACKAGE_NAME=sl.PACKAGE_VERSION=void 0;sl.PACKAGE_VERSION="0.40.0";sl.PACKAGE_NAME="@opentelemetry/instrumentation-nestjs-core"});var xG=c(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.AttributeNames=void 0;var L3e;(function(t){t.VERSION="nestjs.version",t.TYPE="nestjs.type",t.MODULE="nestjs.module",t.CONTROLLER="nestjs.controller",t.CALLBACK="nestjs.callback",t.PIPES="nestjs.pipes",t.INTERCEPTORS="nestjs.interceptors",t.GUARDS="nestjs.guards"})(L3e=E_.AttributeNames||(E_.AttributeNames={}))});var roe=c(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.NestType=void 0;var D3e;(function(t){t.APP_CREATION="app_creation",t.REQUEST_CONTEXT="request_context",t.REQUEST_HANDLER="handler"})(D3e=m_.NestType||(m_.NestType={}))});var noe=c(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.NestType=al.AttributeNames=void 0;var G3e=xG();Object.defineProperty(al,"AttributeNames",{enumerable:!0,get:function(){return G3e.AttributeNames}});var x3e=roe();Object.defineProperty(al,"NestType",{enumerable:!0,get:function(){return x3e.NestType}})});var ioe=c(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0});RO.NestInstrumentation=void 0;var Hn=(P(),m(I)),T_=Ke(),ooe=toe(),UG=($(),m(J)),Or=noe(),wG=[">=4.0.0 <11"],Lo=class t extends T_.InstrumentationBase{constructor(e={}){super(ooe.PACKAGE_NAME,ooe.PACKAGE_VERSION,e)}init(){let e=new T_.InstrumentationNodeModuleDefinition(t.COMPONENT,wG);return e.files.push(this.getNestFactoryFileInstrumentation(wG),this.getRouterExecutionContextFileInstrumentation(wG)),e}getNestFactoryFileInstrumentation(e){return new T_.InstrumentationNodeModuleFile("@nestjs/core/nest-factory.js",e,(r,n)=>(this.ensureWrapped(r.NestFactoryStatic.prototype,"create",U3e(this.tracer,n)),r),r=>{this._unwrap(r.NestFactoryStatic.prototype,"create")})}getRouterExecutionContextFileInstrumentation(e){return new T_.InstrumentationNodeModuleFile("@nestjs/core/router/router-execution-context.js",e,(r,n)=>(this.ensureWrapped(r.RouterExecutionContext.prototype,"create",w3e(this.tracer,n)),r),r=>{this._unwrap(r.RouterExecutionContext.prototype,"create")})}ensureWrapped(e,r,n){(0,T_.isWrapped)(e[r])&&this._unwrap(e,r),this._wrap(e,r,n)}};RO.NestInstrumentation=Lo;Lo.COMPONENT="@nestjs/core";Lo.COMMON_ATTRIBUTES={component:Lo.COMPONENT};function U3e(t,e){return function(n){return function(i){let s=t.startSpan("Create Nest App",{attributes:Object.assign(Object.assign({},Lo.COMMON_ATTRIBUTES),{[Or.AttributeNames.TYPE]:Or.NestType.APP_CREATION,[Or.AttributeNames.VERSION]:e,[Or.AttributeNames.MODULE]:i.name})}),a=Hn.trace.setSpan(Hn.context.active(),s);return Hn.context.with(a,async()=>{try{return await n.apply(this,arguments)}catch(u){throw qG(s,u)}finally{s.end()}})}}}function w3e(t,e){return function(n){return function(i,s){arguments[1]=q3e(t,e,s);let a=n.apply(this,arguments),u=s.name,l=i.constructor&&i.constructor.name?i.constructor.name:"UnnamedInstance",d=u?`${l}.${u}`:l;return function(p,_,f){var g,h;let T=t.startSpan(d,{attributes:Object.assign(Object.assign({},Lo.COMMON_ATTRIBUTES),{[Or.AttributeNames.VERSION]:e,[Or.AttributeNames.TYPE]:Or.NestType.REQUEST_CONTEXT,[UG.SEMATTRS_HTTP_METHOD]:p.method,[UG.SEMATTRS_HTTP_URL]:p.originalUrl||p.url,[UG.SEMATTRS_HTTP_ROUTE]:((g=p.route)===null||g===void 0?void 0:g.path)||((h=p.routeOptions)===null||h===void 0?void 0:h.url)||p.routerPath,[Or.AttributeNames.CONTROLLER]:l,[Or.AttributeNames.CALLBACK]:u})}),v=Hn.trace.setSpan(Hn.context.active(),T);return Hn.context.with(v,async()=>{try{return await a.apply(this,arguments)}catch(N){throw qG(T,N)}finally{T.end()}})}}}}function q3e(t,e,r){let n=r.name||"anonymous nest handler",o={attributes:Object.assign(Object.assign({},Lo.COMMON_ATTRIBUTES),{[Or.AttributeNames.VERSION]:e,[Or.AttributeNames.TYPE]:Or.NestType.REQUEST_HANDLER,[Or.AttributeNames.CALLBACK]:r.name})},i=function(){let s=t.startSpan(n,o),a=Hn.trace.setSpan(Hn.context.active(),s);return Hn.context.with(a,async()=>{try{return await r.apply(this,arguments)}catch(u){throw qG(s,u)}finally{s.end()}})};return r.name&&Object.defineProperty(i,"name",{value:r.name}),Reflect.getMetadataKeys(r).forEach(s=>{Reflect.defineMetadata(s,Reflect.getMetadata(s,r),i)}),i}var qG=(t,e)=>(t.recordException(e),t.setStatus({code:Hn.SpanStatusCode.ERROR,message:e.message}),e)});var aoe=c(os=>{"use strict";var j3e=os&&os.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),soe=os&&os.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&j3e(e,t,r)};Object.defineProperty(os,"__esModule",{value:!0});soe(ioe(),os);soe(xG(),os)});var jG=c(ha=>{var{_nullishCoalesce:V3e}=b();Object.defineProperty(ha,"__esModule",{value:!0});var ul=k(),B3e=b(),H3e="sentryPatched";function F3e(t){return t.sentryPatched?!0:(B3e.addNonEnumerableProperty(t,H3e,!0),!1)}function k3e(t,e=void 0){return{name:V3e(e,()=>t.name),attributes:{[ul.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"middleware.nestjs",[ul.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.middleware.nestjs"}}}function W3e(t){return{name:`event ${t}`,attributes:{[ul.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"event.nestjs",[ul.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.event.nestjs"},forceTransaction:!0}}function Y3e(t,e){e&&(t.subscribe=new Proxy(t.subscribe,{apply:(r,n,o)=>ul.withActiveSpan(e,()=>{let i=r.apply(n,o);return i.add(()=>e.end()),i})}))}function K3e(t,e,r){return new Proxy(t,{apply:(n,o,i)=>(e.end(),r?ul.withActiveSpan(r,()=>Reflect.apply(n,o,i)):Reflect.apply(n,o,i))})}ha.getEventSpanOptions=W3e;ha.getMiddlewareSpanOptions=k3e;ha.getNextProxy=K3e;ha.instrumentObservable=Y3e;ha.isPatched=F3e});var loe=c(BG=>{Object.defineProperty(BG,"__esModule",{value:!0});var X3e=ae(),VG=Dp(),uoe=k(),Z3e=b(),z3e=jG(),coe=[">=2.0.0"],S_=class t extends VG.InstrumentationBase{static __initStatic(){this.COMPONENT="@nestjs/event-emitter"}static __initStatic2(){this.COMMON_ATTRIBUTES={component:t.COMPONENT}}constructor(e={}){super("sentry-nestjs-event",Z3e.SDK_VERSION,e)}init(){let e=new VG.InstrumentationNodeModuleDefinition(t.COMPONENT,coe);return e.files.push(this._getOnEventFileInstrumentation(coe)),e}_getOnEventFileInstrumentation(e){return new VG.InstrumentationNodeModuleFile("@nestjs/event-emitter/dist/decorators/on-event.decorator.js",e,r=>(X3e.isWrapped(r.OnEvent)&&this._unwrap(r,"OnEvent"),this._wrap(r,"OnEvent",this._createWrapOnEvent()),r),r=>{this._unwrap(r,"OnEvent")})}_createWrapOnEvent(){return function(r){return function(o,i){let s=Array.isArray(o)?o.join(","):typeof o=="string"||typeof o=="symbol"?o.toString():"<unknown_event>",a=r(o,i);return function(u,l,d){if(!d.value||typeof d.value!="function"||u.__SENTRY_INTERNAL__)return a(u,l,d);let p=d.value,_=p.name||l;return d.value=async function(...f){return uoe.startSpan(z3e.getEventSpanOptions(s),async()=>{try{return await p.apply(this,f)}catch(g){throw uoe.captureException(g),g}})},Object.defineProperty(d.value,"name",{value:_,configurable:!0}),a(u,l,d)}}}}};S_.__initStatic();S_.__initStatic2();BG.SentryNestEventInstrumentation=S_});var _oe=c(FG=>{var{_nullishCoalesce:doe,_optionalChain:IO}=b();Object.defineProperty(FG,"__esModule",{value:!0});var poe=ae(),PO=Dp(),Fn=k(),bO=b(),Qt=jG(),HG=[">=8.0.0 <11"],A_=class t extends PO.InstrumentationBase{static __initStatic(){this.COMPONENT="@nestjs/common"}static __initStatic2(){this.COMMON_ATTRIBUTES={component:t.COMPONENT}}constructor(e={}){super("sentry-nestjs",bO.SDK_VERSION,e)}init(){let e=new PO.InstrumentationNodeModuleDefinition(t.COMPONENT,HG);return e.files.push(this._getInjectableFileInstrumentation(HG),this._getCatchFileInstrumentation(HG)),e}_getInjectableFileInstrumentation(e){return new PO.InstrumentationNodeModuleFile("@nestjs/common/decorators/core/injectable.decorator.js",e,r=>(poe.isWrapped(r.Injectable)&&this._unwrap(r,"Injectable"),this._wrap(r,"Injectable",this._createWrapInjectable()),r),r=>{this._unwrap(r,"Injectable")})}_getCatchFileInstrumentation(e){return new PO.InstrumentationNodeModuleFile("@nestjs/common/decorators/core/catch.decorator.js",e,r=>(poe.isWrapped(r.Catch)&&this._unwrap(r,"Catch"),this._wrap(r,"Catch",this._createWrapCatch()),r),r=>{this._unwrap(r,"Catch")})}_createWrapInjectable(){return function(r){return function(o){return function(i){if(typeof i.prototype.use=="function"&&!i.__SENTRY_INTERNAL__){if(Qt.isPatched(i))return r(o)(i);i.prototype.use=new Proxy(i.prototype.use,{apply:(s,a,u)=>{let[l,d,p,..._]=u;if(!l||!d||!p||typeof p!="function")return s.apply(a,u);let f=Fn.getActiveSpan();return Fn.startSpanManual(Qt.getMiddlewareSpanOptions(i),g=>{let h=Qt.getNextProxy(p,g,f);return s.apply(a,[l,d,h,_])})}})}if(typeof i.prototype.canActivate=="function"&&!i.__SENTRY_INTERNAL__){if(Qt.isPatched(i))return r(o)(i);i.prototype.canActivate=new Proxy(i.prototype.canActivate,{apply:(s,a,u)=>u[0]?Fn.startSpan(Qt.getMiddlewareSpanOptions(i),()=>s.apply(a,u)):s.apply(a,u)})}if(typeof i.prototype.transform=="function"&&!i.__SENTRY_INTERNAL__){if(Qt.isPatched(i))return r(o)(i);i.prototype.transform=new Proxy(i.prototype.transform,{apply:(s,a,u)=>{let l=u[0],d=u[1];return!l||!d?s.apply(a,u):Fn.startSpan(Qt.getMiddlewareSpanOptions(i),()=>s.apply(a,u))}})}if(typeof i.prototype.intercept=="function"&&!i.__SENTRY_INTERNAL__){if(Qt.isPatched(i))return r(o)(i);i.prototype.intercept=new Proxy(i.prototype.intercept,{apply:(s,a,u)=>{let l=u[0],d=u[1],p=Fn.getActiveSpan(),_;return!l||!d||typeof d.handle!="function"?s.apply(a,u):Fn.startSpanManual(Qt.getMiddlewareSpanOptions(i),f=>{d.handle=new Proxy(d.handle,{apply:(h,T,v)=>{if(f.end(),p)return Fn.withActiveSpan(p,()=>{let N=Reflect.apply(h,T,v);return l._sentryInterceptorInstrumented||(bO.addNonEnumerableProperty(l,"_sentryInterceptorInstrumented",!0),_=Fn.startInactiveSpan(Qt.getMiddlewareSpanOptions(i,"Interceptors - After Route"))),N});{let N=Reflect.apply(h,T,v);return l._sentryInterceptorInstrumented||(bO.addNonEnumerableProperty(l,"_sentryInterceptorInstrumented",!0),_=Fn.startInactiveSpan(Qt.getMiddlewareSpanOptions(i,"Interceptors - After Route"))),N}}});let g;try{g=s.apply(a,u)}catch(h){throw IO([f,"optionalAccess",T=>T.end,"call",T=>T()]),IO([_,"optionalAccess",T=>T.end,"call",T=>T()]),h}return _?bO.isThenable(g)?g.then(h=>(Qt.instrumentObservable(h,doe(_,()=>p)),h),h=>{throw IO([f,"optionalAccess",T=>T.end,"call",T=>T()]),IO([_,"optionalAccess",T=>T.end,"call",T=>T()]),h}):(typeof g.subscribe=="function"&&Qt.instrumentObservable(g,doe(_,()=>p)),g):g})}})}return r(o)(i)}}}}_createWrapCatch(){return function(r){return function(...o){return function(i){if(typeof i.prototype.catch=="function"&&!i.__SENTRY_INTERNAL__){if(Qt.isPatched(i))return r(...o)(i);i.prototype.catch=new Proxy(i.prototype.catch,{apply:(s,a,u)=>{let l=u[0],d=u[1];return!l||!d?s.apply(a,u):Fn.startSpan(Qt.getMiddlewareSpanOptions(i),()=>s.apply(a,u))}})}return r(...o)(i)}}}}};A_.__initStatic();A_.__initStatic2();FG.SentryNestInstrumentation=A_});var WG=c(O_=>{var{_optionalChain:J3e}=b();Object.defineProperty(O_,"__esModule",{value:!0});var $3e=aoe(),kn=k(),Q3e=b(),kG=Se(),e4e=loe(),t4e=_oe(),foe="Nest",r4e=kG.generateInstrumentOnce("Nest-Core",()=>new $3e.NestInstrumentation),n4e=kG.generateInstrumentOnce("Nest-Common",()=>new t4e.SentryNestInstrumentation),o4e=kG.generateInstrumentOnce("Nest-Event",()=>new e4e.SentryNestEventInstrumentation),goe=Object.assign(()=>{r4e(),n4e(),o4e()},{id:foe}),i4e=()=>({name:foe,setupOnce(){goe()}}),s4e=kn.defineIntegration(i4e);function a4e(t,e){let r=kn.getClient();r&&r.on("spanStart",o=>{u4e(o)}),t.useGlobalInterceptors({intercept(o,i){if(kn.getIsolationScope()===kn.getDefaultIsolationScope())return Q3e.logger.warn("Isolation scope is still the default isolation scope, skipping setting transactionName."),i.handle();if(o.getType()==="http"){let s=o.switchToHttp().getRequest();s.route&&kn.getIsolationScope().setTransactionName(`${J3e([s,"access",a=>a.method,"optionalAccess",a=>a.toUpperCase,"call",a=>a()])||"GET"} ${s.route.path}`)}return i.handle()}});let n=new Proxy(e,{get(o,i,s){if(i==="catch"){let a=Reflect.get(o,i,s);return(u,l)=>{let d=typeof u=="object"&&u!==null,p=d&&"status"in u?u.status:null,_=d&&"error"in u?u.error:null;return p!==null||_!==null?a.apply(o,[u,l]):(kn.captureException(u),a.apply(o,[u,l]))}}return Reflect.get(o,i,s)}});t.useGlobalFilters(n)}function u4e(t){let e=kn.spanToJSON(t).data||{},r=e["nestjs.type"];e[kn.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r||t.setAttributes({[kn.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.nestjs",[kn.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.nestjs`})}O_.instrumentNest=goe;O_.nestIntegration=s4e;O_.setupNestErrorHandler=a4e});var YG=c(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.AttributeNames=void 0;var c4e;(function(t){t.PG_VALUES="db.postgresql.values",t.PG_PLAN="db.postgresql.plan",t.IDLE_TIMEOUT_MILLIS="db.postgresql.idle.timeout.millis",t.MAX_CLIENT="db.postgresql.max.client"})(c4e=R_.AttributeNames||(R_.AttributeNames={}))});var KG=c(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.SpanNames=void 0;var l4e;(function(t){t.QUERY_PREFIX="pg.query",t.CONNECT="pg.connect",t.POOL_CONNECT="pg-pool.connect"})(l4e=I_.SpanNames||(I_.SpanNames={}))});var Aoe=c(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.isObjectWithTextString=Ee.getErrorMessage=Ee.patchClientConnectCallback=Ee.patchCallbackPGPool=Ee.patchCallback=Ee.handleExecutionResult=Ee.handleConfigQuery=Ee.shouldSkipInstrumentation=Ee.getSemanticAttributesFromPool=Ee.getSemanticAttributesFromConnection=Ee.getConnectionString=Ee.getQuerySpanName=void 0;var is=(P(),m(I)),vO=YG(),er=($(),m(J)),d4e=Ke(),hoe=KG();function Eoe(t,e){if(!e)return hoe.SpanNames.QUERY_PREFIX;let r=typeof e.name=="string"&&e.name?e.name:p4e(e.text);return`${hoe.SpanNames.QUERY_PREFIX}:${r}${t?` ${t}`:""}`}Ee.getQuerySpanName=Eoe;function p4e(t){let e=t.indexOf(" "),r=e===-1?t:t.slice(0,e);return r=r.toUpperCase(),r.endsWith(";")?r.slice(0,-1):r}function XG(t){let e=t.host||"localhost",r=t.port||5432,n=t.database||"";return`postgresql://${e}:${r}/${n}`}Ee.getConnectionString=XG;function moe(t){if(Number.isInteger(t))return t}function Toe(t){return{[er.SEMATTRS_DB_SYSTEM]:er.DBSYSTEMVALUES_POSTGRESQL,[er.SEMATTRS_DB_NAME]:t.database,[er.SEMATTRS_DB_CONNECTION_STRING]:XG(t),[er.SEMATTRS_NET_PEER_NAME]:t.host,[er.SEMATTRS_NET_PEER_PORT]:moe(t.port),[er.SEMATTRS_DB_USER]:t.user}}Ee.getSemanticAttributesFromConnection=Toe;function _4e(t){return{[er.SEMATTRS_DB_SYSTEM]:er.DBSYSTEMVALUES_POSTGRESQL,[er.SEMATTRS_DB_NAME]:t.database,[er.SEMATTRS_DB_CONNECTION_STRING]:XG(t),[er.SEMATTRS_NET_PEER_NAME]:t.host,[er.SEMATTRS_NET_PEER_PORT]:moe(t.port),[er.SEMATTRS_DB_USER]:t.user,[vO.AttributeNames.IDLE_TIMEOUT_MILLIS]:t.idleTimeoutMillis,[vO.AttributeNames.MAX_CLIENT]:t.maxClient}}Ee.getSemanticAttributesFromPool=_4e;function f4e(t){return t.requireParentSpan===!0&&is.trace.getSpan(is.context.active())===void 0}Ee.shouldSkipInstrumentation=f4e;function g4e(t,e,r){let{connectionParameters:n}=this,o=n.database,i=Eoe(o,r),s=t.startSpan(i,{kind:is.SpanKind.CLIENT,attributes:Toe(n)});if(!r)return s;if(r.text&&s.setAttribute(er.SEMATTRS_DB_STATEMENT,r.text),e.enhancedDatabaseReporting&&Array.isArray(r.values))try{let a=r.values.map(u=>u==null?"null":u instanceof Buffer?u.toString():typeof u=="object"?typeof u.toPostgres=="function"?u.toPostgres():JSON.stringify(u):u.toString());s.setAttribute(vO.AttributeNames.PG_VALUES,a)}catch(a){is.diag.error("failed to stringify ",r.values,a)}return typeof r.name=="string"&&s.setAttribute(vO.AttributeNames.PG_PLAN,r.name),s}Ee.handleConfigQuery=g4e;function Soe(t,e,r){typeof t.responseHook=="function"&&(0,d4e.safeExecuteInTheMiddle)(()=>{t.responseHook(e,{data:r})},n=>{n&&is.diag.error("Error running response hook",n)},!0)}Ee.handleExecutionResult=Soe;function h4e(t,e,r){return function(o,i){o?e.setStatus({code:is.SpanStatusCode.ERROR,message:o.message}):Soe(t,e,i),e.end(),r.call(this,o,i)}}Ee.patchCallback=h4e;function E4e(t,e){return function(n,o,i){n&&t.setStatus({code:is.SpanStatusCode.ERROR,message:n.message}),t.end(),e.call(this,n,o,i)}}Ee.patchCallbackPGPool=E4e;function m4e(t,e){return function(n){n&&t.setStatus({code:is.SpanStatusCode.ERROR,message:n.message}),t.end(),e.apply(this,arguments)}}Ee.patchClientConnectCallback=m4e;function T4e(t){return typeof t=="object"&&t!==null&&"message"in t?String(t.message):void 0}Ee.getErrorMessage=T4e;function S4e(t){var e;return typeof t=="object"&&typeof((e=t)===null||e===void 0?void 0:e.text)=="string"}Ee.isObjectWithTextString=S4e});var Ooe=c(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.PACKAGE_NAME=cl.PACKAGE_VERSION=void 0;cl.PACKAGE_VERSION="0.44.0";cl.PACKAGE_NAME="@opentelemetry/instrumentation-pg"});var voe=c(yO=>{"use strict";Object.defineProperty(yO,"__esModule",{value:!0});yO.PgInstrumentation=void 0;var Do=Ke(),pe=(P(),m(I)),_r=Aoe(),Roe=vG(),Ioe=Ooe(),Poe=KG(),ZG=class extends Do.InstrumentationBase{constructor(e={}){super(Ioe.PACKAGE_NAME,Ioe.PACKAGE_VERSION,e)}init(){let e=new Do.InstrumentationNodeModuleDefinition("pg",[">=8.0.0 <9"],n=>{let o=n[Symbol.toStringTag]==="Module"?n.default:n;return(0,Do.isWrapped)(o.Client.prototype.query)&&this._unwrap(o.Client.prototype,"query"),(0,Do.isWrapped)(o.Client.prototype.connect)&&this._unwrap(o.Client.prototype,"connect"),this._wrap(o.Client.prototype,"query",this._getClientQueryPatch()),this._wrap(o.Client.prototype,"connect",this._getClientConnectPatch()),n},n=>{let o=n[Symbol.toStringTag]==="Module"?n.default:n;(0,Do.isWrapped)(o.Client.prototype.query)&&this._unwrap(o.Client.prototype,"query")}),r=new Do.InstrumentationNodeModuleDefinition("pg-pool",[">=2.0.0 <4"],n=>((0,Do.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._getPoolConnectPatch()),n),n=>{(0,Do.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect")});return[e,r]}_getClientConnectPatch(){let e=this;return r=>function(o){if(_r.shouldSkipInstrumentation(e.getConfig()))return r.call(this,o);let i=e.tracer.startSpan(Poe.SpanNames.CONNECT,{kind:pe.SpanKind.CLIENT,attributes:_r.getSemanticAttributesFromConnection(this)});if(o){let a=pe.trace.getSpan(pe.context.active());o=_r.patchClientConnectCallback(i,o),a&&(o=pe.context.bind(pe.context.active(),o))}let s=pe.context.with(pe.trace.setSpan(pe.context.active(),i),()=>r.call(this,o));return boe(i,s)}}_getClientQueryPatch(){let e=this;return r=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...o){if(_r.shouldSkipInstrumentation(e.getConfig()))return r.apply(this,o);let i=o[0],s=typeof i=="string",a=_r.isObjectWithTextString(i),u=s?{text:i,values:Array.isArray(o[1])?o[1]:void 0}:a?i:void 0,l=e.getConfig(),d=_r.handleConfigQuery.call(this,e.tracer,l,u);if(l.addSqlCommenterCommentToQueries&&(o[0]=s?(0,Roe.addSqlCommenterComment)(d,i):a?Object.assign(Object.assign({},i),{text:(0,Roe.addSqlCommenterComment)(d,i.text)}):o[0]),o.length>0){let f=pe.trace.getSpan(pe.context.active());if(typeof o[o.length-1]=="function")o[o.length-1]=_r.patchCallback(l,d,o[o.length-1]),f&&(o[o.length-1]=pe.context.bind(pe.context.active(),o[o.length-1]));else if(typeof u?.callback=="function"){let g=_r.patchCallback(e.getConfig(),d,u.callback);f&&(g=pe.context.bind(pe.context.active(),g)),o[0].callback=g}}let{requestHook:p}=l;typeof p=="function"&&u&&(0,Do.safeExecuteInTheMiddle)(()=>{let{database:f,host:g,port:h,user:T}=this.connectionParameters;p(d,{connection:{database:f,host:g,port:h,user:T},query:{text:u.text,values:u.values,name:u.name}})},f=>{f&&e._diag.error("Error running query hook",f)},!0);let _;try{_=r.apply(this,o)}catch(f){throw d.setStatus({code:pe.SpanStatusCode.ERROR,message:_r.getErrorMessage(f)}),d.end(),f}return _ instanceof Promise?_.then(f=>new Promise(g=>{_r.handleExecutionResult(e.getConfig(),d,f),d.end(),g(f)})).catch(f=>new Promise((g,h)=>{d.setStatus({code:pe.SpanStatusCode.ERROR,message:f.message}),d.end(),h(f)})):_})}_getPoolConnectPatch(){let e=this;return r=>function(o){if(_r.shouldSkipInstrumentation(e.getConfig()))return r.call(this,o);let i=e.tracer.startSpan(Poe.SpanNames.POOL_CONNECT,{kind:pe.SpanKind.CLIENT,attributes:_r.getSemanticAttributesFromPool(this.options)});if(o){let a=pe.trace.getSpan(pe.context.active());o=_r.patchCallbackPGPool(i,o),a&&(o=pe.context.bind(pe.context.active(),o))}let s=pe.context.with(pe.trace.setSpan(pe.context.active(),i),()=>r.call(this,o));return boe(i,s)}}};yO.PgInstrumentation=ZG;function boe(t,e){if(!(e instanceof Promise))return e;let r=e;return pe.context.bind(pe.context.active(),r.then(n=>(t.end(),n)).catch(n=>(t.setStatus({code:pe.SpanStatusCode.ERROR,message:_r.getErrorMessage(n)}),t.end(),Promise.reject(n))))}});var Noe=c(yoe=>{"use strict";Object.defineProperty(yoe,"__esModule",{value:!0})});var Coe=c(Go=>{"use strict";var A4e=Go&&Go.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),zG=Go&&Go.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&A4e(e,t,r)};Object.defineProperty(Go,"__esModule",{value:!0});zG(voe(),Go);zG(Noe(),Go);zG(YG(),Go)});var JG=c(NO=>{Object.defineProperty(NO,"__esModule",{value:!0});var O4e=Coe(),R4e=k(),I4e=Se(),P4e=Cn(),Moe="Postgres",Loe=I4e.generateInstrumentOnce(Moe,()=>new O4e.PgInstrumentation({requireParentSpan:!0,requestHook(t){P4e.addOriginToSpan(t,"auto.db.otel.postgres")}})),b4e=()=>({name:Moe,setupOnce(){Loe()}}),v4e=R4e.defineIntegration(b4e);NO.instrumentPostgres=Loe;NO.postgresIntegration=v4e});var QG=c((LEt,xoe)=>{"use strict";var $G=Object.defineProperty,y4e=Object.getOwnPropertyDescriptor,N4e=Object.getOwnPropertyNames,C4e=Object.prototype.hasOwnProperty,M4e=(t,e)=>{for(var r in e)$G(t,r,{get:e[r],enumerable:!0})},L4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of N4e(e))!C4e.call(t,o)&&o!==r&&$G(t,o,{get:()=>e[o],enumerable:!(n=y4e(e,o))||n.enumerable});return t},D4e=t=>L4e($G({},"__esModule",{value:!0}),t),Goe={};M4e(Goe,{ActiveTracingHelper:()=>w4e});xoe.exports=D4e(Goe);var xo=(P(),m(I)),G4e=Np(),x4e=process.env.PRISMA_SHOW_ALL_TRACES==="true",U4e="00-10-10-00",w4e=class{constructor({traceMiddleware:t}){this.traceMiddleware=t}isEnabled(){return!0}getTraceParent(t){let e=xo.trace.getSpanContext(t??xo.context.active());return e?`00-${e.traceId}-${e.spanId}-0${e.traceFlags}`:U4e}createEngineSpan(t){let e=xo.trace.getTracer("prisma");t.spans.forEach(r=>{let n={traceId:r.trace_id,spanId:r.span_id,traceFlags:xo.TraceFlags.SAMPLED},o=r.links?.map(s=>({context:{traceId:s.trace_id,spanId:s.span_id,traceFlags:xo.TraceFlags.SAMPLED}})),i=new G4e.Span(e,xo.ROOT_CONTEXT,r.name,n,xo.SpanKind.INTERNAL,r.parent_span_id,o,r.start_time);r.attributes&&i.setAttributes(r.attributes),i.end(r.end_time)})}getActiveContext(){return xo.context.active()}runInChildSpan(t,e){if(typeof t=="string"&&(t={name:t}),t.internal&&!x4e||t.middleware&&!this.traceMiddleware)return e();let r=xo.trace.getTracer("prisma"),n=t.context??this.getActiveContext(),o=`prisma:client:${t.name}`;if(t.active===!1){let i=r.startSpan(o,t,n);return Doe(i,e(i,n))}return r.startActiveSpan(o,t,i=>Doe(i,e(i,n)))}};function Doe(t,e){return q4e(e)?e.then(r=>(t.end(),r),r=>{throw t.end(),r}):(t.end(),e)}function q4e(t){return t!=null&&typeof t.then=="function"}});var tx=c((GEt,woe)=>{"use strict";var ex=Object.defineProperty,j4e=Object.getOwnPropertyDescriptor,V4e=Object.getOwnPropertyNames,B4e=Object.prototype.hasOwnProperty,H4e=(t,e)=>{for(var r in e)ex(t,r,{get:e[r],enumerable:!0})},F4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of V4e(e))!B4e.call(t,o)&&o!==r&&ex(t,o,{get:()=>e[o],enumerable:!(n=j4e(e,o))||n.enumerable});return t},k4e=t=>F4e(ex({},"__esModule",{value:!0}),t),Uoe={};H4e(Uoe,{__commonJS:()=>Y4e});woe.exports=k4e(Uoe);var W4e=Object.getOwnPropertyNames,Y4e=(t,e)=>function(){return e||(0,t[W4e(t)[0]])((e={exports:{}}).exports,e),e.exports}});var nx=c((xEt,joe)=>{"use strict";var rx=Object.defineProperty,K4e=Object.getOwnPropertyDescriptor,X4e=Object.getOwnPropertyNames,Z4e=Object.prototype.hasOwnProperty,z4e=(t,e)=>{for(var r in e)rx(t,r,{get:e[r],enumerable:!0})},J4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of X4e(e))!Z4e.call(t,o)&&o!==r&&rx(t,o,{get:()=>e[o],enumerable:!(n=K4e(e,o))||n.enumerable});return t},$4e=t=>J4e(rx({},"__esModule",{value:!0}),t),qoe={};z4e(qoe,{GLOBAL_KEY:()=>nJe,MODULE_NAME:()=>sJe,NAME:()=>iJe,VERSION:()=>oJe});joe.exports=$4e(qoe);var Q4e=tx(),eJe=(0,Q4e.__commonJS)({"package.json"(t,e){e.exports={name:"@prisma/instrumentation",version:"5.19.1",description:"OpenTelemetry compliant instrumentation for Prisma Client",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/instrumentation"},bugs:"https://github.com/prisma/prisma/issues",devDependencies:{"@prisma/internals":"workspace:*","@swc/core":"1.6.13","@types/jest":"29.5.12","@types/node":"18.19.31",jest:"29.7.0","jest-junit":"16.0.0",typescript:"5.4.5"},dependencies:{"@opentelemetry/api":"^1.8","@opentelemetry/instrumentation":"^0.49 || ^0.50 || ^0.51 || ^0.52.0","@opentelemetry/sdk-trace-base":"^1.22"},files:["dist"],keywords:["prisma","instrumentation","opentelemetry","otel"],scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",prepublishOnly:"pnpm run build",test:"jest"},sideEffects:!1}}}),{version:tJe,name:rJe}=eJe(),nJe="PRISMA_INSTRUMENTATION",oJe=tJe,iJe=rJe,sJe="prisma"});var Boe=c(Voe=>{"use strict";Object.defineProperty(Voe,"__esModule",{value:!0})});var Foe=c(Hoe=>{"use strict";Object.defineProperty(Hoe,"__esModule",{value:!0})});var koe=c(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.SeverityNumber=void 0;var aJe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(aJe=P_.SeverityNumber||(P_.SeverityNumber={}))});var Yoe=c(Woe=>{"use strict";Object.defineProperty(Woe,"__esModule",{value:!0})});var Xoe=c(Koe=>{"use strict";Object.defineProperty(Koe,"__esModule",{value:!0})});var ox=c(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.NOOP_LOGGER=ll.NoopLogger=void 0;var CO=class{emit(e){}};ll.NoopLogger=CO;ll.NOOP_LOGGER=new CO});var ix=c(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.NOOP_LOGGER_PROVIDER=dl.NoopLoggerProvider=void 0;var uJe=ox(),MO=class{getLogger(e,r,n){return new uJe.NoopLogger}};dl.NoopLoggerProvider=MO;dl.NOOP_LOGGER_PROVIDER=new MO});var Zoe=c(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0});LO._globalThis=void 0;LO._globalThis=typeof globalThis=="object"?globalThis:global});var zoe=c(Ea=>{"use strict";var cJe=Ea&&Ea.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),lJe=Ea&&Ea.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&cJe(e,t,r)};Object.defineProperty(Ea,"__esModule",{value:!0});lJe(Zoe(),Ea)});var Joe=c(ma=>{"use strict";var dJe=ma&&ma.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),pJe=ma&&ma.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dJe(e,t,r)};Object.defineProperty(ma,"__esModule",{value:!0});pJe(zoe(),ma)});var $oe=c(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.API_BACKWARDS_COMPATIBILITY_VERSION=Wn.makeGetter=Wn._global=Wn.GLOBAL_LOGS_API_KEY=void 0;var _Je=Joe();Wn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Wn._global=_Je._globalThis;function fJe(t,e,r){return n=>n===t?e:r}Wn.makeGetter=fJe;Wn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var eie=c(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0});DO.LogsAPI=void 0;var Wr=$oe(),Qoe=ix(),sx=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Wr._global[Wr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Wr._global[Wr.GLOBAL_LOGS_API_KEY]=(0,Wr.makeGetter)(Wr.API_BACKWARDS_COMPATIBILITY_VERSION,e,Qoe.NOOP_LOGGER_PROVIDER),e)}getLoggerProvider(){var e,r;return(r=(e=Wr._global[Wr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Wr._global,Wr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:Qoe.NOOP_LOGGER_PROVIDER}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Wr._global[Wr.GLOBAL_LOGS_API_KEY]}};DO.LogsAPI=sx});var ax=c(tr=>{"use strict";var gJe=tr&&tr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ta=tr&&tr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gJe(e,t,r)};Object.defineProperty(tr,"__esModule",{value:!0});tr.logs=void 0;Ta(Boe(),tr);Ta(Foe(),tr);Ta(koe(),tr);Ta(Yoe(),tr);Ta(Xoe(),tr);Ta(ox(),tr);Ta(ix(),tr);var hJe=eie();tr.logs=hJe.LogsAPI.getInstance()});var tie=c(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.disableInstrumentations=pl.enableInstrumentations=void 0;function EJe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}pl.enableInstrumentations=EJe;function mJe(t){t.forEach(e=>e.disable())}pl.disableInstrumentations=mJe});var oie=c(GO=>{"use strict";Object.defineProperty(GO,"__esModule",{value:!0});GO.registerInstrumentations=void 0;var rie=(P(),m(I)),TJe=ax(),nie=tie();function SJe(t){var e,r;let n=t.tracerProvider||rie.trace.getTracerProvider(),o=t.meterProvider||rie.metrics.getMeterProvider(),i=t.loggerProvider||TJe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,nie.enableInstrumentations)(s,n,o,i),()=>{(0,nie.disableInstrumentations)(s)}}GO.registerInstrumentations=SJe});var iie=c(UO=>{"use strict";Object.defineProperty(UO,"__esModule",{value:!0});UO.InstrumentationAbstract=void 0;var ux=(P(),m(I)),AJe=ax(),xO=le(),cx=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._wrap=xO.wrap,this._unwrap=xO.unwrap,this._massWrap=xO.massWrap,this._massUnwrap=xO.massUnwrap,this._config=Object.assign({enabled:!0},n),this._diag=ux.diag.createComponentLogger({namespace:e}),this._tracer=ux.trace.getTracer(e,r),this._meter=ux.metrics.getMeter(e,r),this._logger=AJe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};UO.InstrumentationAbstract=cx});var sie=c(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ModuleNameTrie=ss.ModuleNameSeparator=void 0;ss.ModuleNameSeparator="/";var wO=class{constructor(){this.hooks=[],this.children=new Map}},lx=class{constructor(){this._trie=new wO,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(ss.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new wO,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(ss.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};ss.ModuleNameTrie=lx});var uie=c(qO=>{"use strict";Object.defineProperty(qO,"__esModule",{value:!0});qO.RequireInTheMiddleSingleton=void 0;var OJe=de(),aie=require("path"),dx=sie(),RJe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),px=class t{constructor(){this._moduleNameTrie=new dx.ModuleNameTrie,this._initialize()}_initialize(){new OJe.Hook(null,{internals:!0},(e,r,n)=>{let o=IJe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return RJe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};qO.RequireInTheMiddleSingleton=px;function IJe(t){return aie.sep!==dx.ModuleNameSeparator?t.split(aie.sep).join(dx.ModuleNameSeparator):t}});var _x=c(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.isWrapped=as.safeExecuteInTheMiddleAsync=as.safeExecuteInTheMiddle=void 0;function PJe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}as.safeExecuteInTheMiddle=PJe;async function bJe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}as.safeExecuteInTheMiddleAsync=bJe;function vJe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}as.isWrapped=vJe});var die=c(jO=>{"use strict";Object.defineProperty(jO,"__esModule",{value:!0});jO.InstrumentationBase=void 0;var fx=require("path"),cie=require("util"),yJe=Zt(),gx=le(),NJe=iie(),CJe=uie(),MJe=Jt(),_l=(P(),m(I)),LJe=de(),DJe=require("fs"),GJe=_x(),hx=class extends NJe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=CJe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,GJe.isWrapped)(i[s])&&this._unwrap(i,s),cie.types.isProxy(i)){let u=(0,gx.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u})}else return(0,gx.wrap)(i,s,a)},this._unwrap=(i,s)=>cie.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,gx.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{_l.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){_l.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{_l.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){_l.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._modules.length===0&&_l.diag.debug(`No modules instrumentation has been defined for '${this.instrumentationName}@${this.instrumentationVersion}', nothing will be patched`),this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,DJe.readFileSync)(fx.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{_l.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return lie(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=fx.normalize(n);return a.filter(d=>d.name===u).filter(d=>lie(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=fx.isAbsolute(e.name)?new LJe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new MJe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};jO.InstrumentationBase=hx;function lie(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,yJe.satisfies)(e,n,{includePrerelease:r}))}});var pie=c(VO=>{"use strict";Object.defineProperty(VO,"__esModule",{value:!0});VO.normalize=void 0;var xJe=require("path");Object.defineProperty(VO,"normalize",{enumerable:!0,get:function(){return xJe.normalize}})});var _ie=c(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.normalize=fl.InstrumentationBase=void 0;var UJe=die();Object.defineProperty(fl,"InstrumentationBase",{enumerable:!0,get:function(){return UJe.InstrumentationBase}});var wJe=pie();Object.defineProperty(fl,"normalize",{enumerable:!0,get:function(){return wJe.normalize}})});var Ex=c(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.normalize=gl.InstrumentationBase=void 0;var fie=_ie();Object.defineProperty(gl,"InstrumentationBase",{enumerable:!0,get:function(){return fie.InstrumentationBase}});Object.defineProperty(gl,"normalize",{enumerable:!0,get:function(){return fie.normalize}})});var gie=c(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0});BO.InstrumentationNodeModuleDefinition=void 0;var mx=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};BO.InstrumentationNodeModuleDefinition=mx});var hie=c(HO=>{"use strict";Object.defineProperty(HO,"__esModule",{value:!0});HO.InstrumentationNodeModuleFile=void 0;var qJe=Ex(),Tx=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,qJe.normalize)(e)}};HO.InstrumentationNodeModuleFile=Tx});var mie=c(Eie=>{"use strict";Object.defineProperty(Eie,"__esModule",{value:!0})});var Sie=c(Tie=>{"use strict";Object.defineProperty(Tie,"__esModule",{value:!0})});var Aie=c(Et=>{"use strict";var jJe=Et&&Et.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Sx=Et&&Et.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jJe(e,t,r)};Object.defineProperty(Et,"__esModule",{value:!0});Et.InstrumentationNodeModuleFile=Et.InstrumentationNodeModuleDefinition=Et.InstrumentationBase=Et.registerInstrumentations=void 0;var VJe=oie();Object.defineProperty(Et,"registerInstrumentations",{enumerable:!0,get:function(){return VJe.registerInstrumentations}});var BJe=Ex();Object.defineProperty(Et,"InstrumentationBase",{enumerable:!0,get:function(){return BJe.InstrumentationBase}});var HJe=gie();Object.defineProperty(Et,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return HJe.InstrumentationNodeModuleDefinition}});var FJe=hie();Object.defineProperty(Et,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return FJe.InstrumentationNodeModuleFile}});Sx(mie(),Et);Sx(Sie(),Et);Sx(_x(),Et)});var Pie=c((lmt,Iie)=>{"use strict";var Ax=Object.defineProperty,kJe=Object.getOwnPropertyDescriptor,WJe=Object.getOwnPropertyNames,YJe=Object.prototype.hasOwnProperty,KJe=(t,e)=>{for(var r in e)Ax(t,r,{get:e[r],enumerable:!0})},XJe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of WJe(e))!YJe.call(t,o)&&o!==r&&Ax(t,o,{get:()=>e[o],enumerable:!(n=kJe(e,o))||n.enumerable});return t},ZJe=t=>XJe(Ax({},"__esModule",{value:!0}),t),Rie={};KJe(Rie,{PrismaInstrumentation:()=>JJe});Iie.exports=ZJe(Rie);var zJe=QG(),Sa=nx(),Oie=Aie(),JJe=class extends Oie.InstrumentationBase{constructor(t={}){super(Sa.NAME,Sa.VERSION,t)}init(){return[new Oie.InstrumentationNodeModuleDefinition(Sa.MODULE_NAME,[Sa.VERSION])]}enable(){let t=this._config,e={helper:new zJe.ActiveTracingHelper({traceMiddleware:t.middleware??!1})};global[Sa.GLOBAL_KEY]=e}disable(){delete global[Sa.GLOBAL_KEY]}isEnabled(){return!!global[Sa.GLOBAL_KEY]}}});var yie=c((gmt,vie)=>{"use strict";var Ox=Object.defineProperty,$Je=Object.getOwnPropertyDescriptor,QJe=Object.getOwnPropertyNames,e$e=Object.prototype.hasOwnProperty,t$e=(t,e)=>{for(var r in e)Ox(t,r,{get:e[r],enumerable:!0})},r$e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of QJe(e))!e$e.call(t,o)&&o!==r&&Ox(t,o,{get:()=>e[o],enumerable:!(n=$Je(e,o))||n.enumerable});return t},n$e=t=>r$e(Ox({},"__esModule",{value:!0}),t),bie={};t$e(bie,{PrismaInstrumentation:()=>o$e.PrismaInstrumentation});vie.exports=n$e(bie);var o$e=Pie(),pmt=QG(),_mt=nx(),fmt=tx()});var Die=c(FO=>{var{_optionalChain:Cie}=b();Object.defineProperty(FO,"__esModule",{value:!0});var Nie=yie(),Rx=k(),i$e=Se(),Mie="Prisma",Lie=i$e.generateInstrumentOnce(Mie,()=>{let t=Cie([Nie,"access",e=>e.default,"optionalAccess",e=>e.PrismaInstrumentation])||Nie.PrismaInstrumentation;return new t({})}),s$e=()=>({name:Mie,setupOnce(){Lie()},setup(t){t.on("spanStart",e=>{let r=Rx.spanToJSON(e);Cie([r,"access",n=>n.description,"optionalAccess",n=>n.startsWith,"call",n=>n("prisma:")])&&e.setAttribute(Rx.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.prisma"),r.description==="prisma:engine:db_query"&&e.setAttribute("db.system","prisma")})}}),a$e=Rx.defineIntegration(s$e);FO.instrumentPrisma=Lie;FO.prismaIntegration=a$e});var Gie=c(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.PACKAGE_NAME=hl.PACKAGE_VERSION=void 0;hl.PACKAGE_VERSION="0.41.0";hl.PACKAGE_NAME="@opentelemetry/instrumentation-hapi"});var Ix=c(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.HapiLifecycleMethodNames=Yn.HapiLayerType=Yn.handlerPatched=Yn.HapiComponentName=void 0;Yn.HapiComponentName="@hapi/hapi";Yn.handlerPatched=Symbol("hapi-handler-patched");Yn.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"};Yn.HapiLifecycleMethodNames=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"])});var Px=c(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});b_.AttributeNames=void 0;var u$e;(function(t){t.HAPI_TYPE="hapi.type",t.PLUGIN_NAME="hapi.plugin.name",t.EXT_TYPE="server.ext.type"})(u$e=b_.AttributeNames||(b_.AttributeNames={}))});var xie=c(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getPluginFromInput=je.getExtMetadata=je.getRouteMetadata=je.isPatchableExtMethod=je.isDirectExtInput=je.isLifecycleExtEventObj=je.isLifecycleExtType=je.getPluginName=void 0;var kO=($(),m(J)),v_=Ix(),us=Px();function c$e(t){return t.name?t.name:t.pkg.name}je.getPluginName=c$e;var l$e=t=>typeof t=="string"&&v_.HapiLifecycleMethodNames.has(t);je.isLifecycleExtType=l$e;var d$e=t=>{var e;let r=(e=t)===null||e===void 0?void 0:e.type;return r!==void 0&&(0,je.isLifecycleExtType)(r)};je.isLifecycleExtEventObj=d$e;var p$e=t=>Array.isArray(t)&&t.length<=3&&(0,je.isLifecycleExtType)(t[0])&&typeof t[1]=="function";je.isDirectExtInput=p$e;var _$e=t=>!Array.isArray(t);je.isPatchableExtMethod=_$e;var f$e=(t,e)=>e?{attributes:{[kO.SEMATTRS_HTTP_ROUTE]:t.path,[kO.SEMATTRS_HTTP_METHOD]:t.method,[us.AttributeNames.HAPI_TYPE]:v_.HapiLayerType.PLUGIN,[us.AttributeNames.PLUGIN_NAME]:e},name:`${e}: route - ${t.path}`}:{attributes:{[kO.SEMATTRS_HTTP_ROUTE]:t.path,[kO.SEMATTRS_HTTP_METHOD]:t.method,[us.AttributeNames.HAPI_TYPE]:v_.HapiLayerType.ROUTER},name:`route - ${t.path}`};je.getRouteMetadata=f$e;var g$e=(t,e)=>e?{attributes:{[us.AttributeNames.EXT_TYPE]:t,[us.AttributeNames.HAPI_TYPE]:v_.HapiLayerType.EXT,[us.AttributeNames.PLUGIN_NAME]:e},name:`${e}: ext - ${t}`}:{attributes:{[us.AttributeNames.EXT_TYPE]:t,[us.AttributeNames.HAPI_TYPE]:v_.HapiLayerType.EXT},name:`ext - ${t}`};je.getExtMetadata=g$e;var h$e=t=>"plugin"in t?"plugin"in t.plugin?t.plugin.plugin:t.plugin:t;je.getPluginFromInput=h$e});var qie=c(YO=>{"use strict";Object.defineProperty(YO,"__esModule",{value:!0});YO.HapiInstrumentation=void 0;var Rr=(P(),m(I)),Uie=ae(),WO=Ke(),wie=Gie(),y_=Ix(),Uo=xie(),bx=class extends WO.InstrumentationBase{constructor(e={}){super(wie.PACKAGE_NAME,wie.PACKAGE_VERSION,e)}init(){return new WO.InstrumentationNodeModuleDefinition(y_.HapiComponentName,[">=17.0.0 <22"],e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,WO.isWrapped)(r.server)||this._wrap(r,"server",this._getServerPatch.bind(this)),(0,WO.isWrapped)(r.Server)||this._wrap(r,"Server",this._getServerPatch.bind(this)),r},e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;this._massUnwrap([r],["server","Server"])})}_getServerPatch(e){let r=this,n=this;return function(i){let s=e.apply(this,[i]);return n._wrap(s,"route",a=>r._getServerRoutePatch.bind(r)(a)),n._wrap(s,"ext",a=>r._getServerExtPatch.bind(r)(a)),n._wrap(s,"register",r._getServerRegisterPatch.bind(r)),s}}_getServerRegisterPatch(e){let r=this;return function(o,i){if(Array.isArray(o))for(let s of o){let a=(0,Uo.getPluginFromInput)(s);r._wrapRegisterHandler(a)}else{let s=(0,Uo.getPluginFromInput)(o);r._wrapRegisterHandler(s)}return e.apply(this,[o,i])}}_getServerExtPatch(e,r){let n=this;return function(...i){if(Array.isArray(i[0])){let s=i[0];for(let a=0;a<s.length;a++){let u=s[a];if((0,Uo.isLifecycleExtType)(u.type)){let l=u,d=n._wrapExtMethods(l.method,u.type,r);l.method=d,s[a]=l}}return e.apply(this,i)}else if((0,Uo.isDirectExtInput)(i)){let s=i,a=s[1],u=n._wrapExtMethods(a,s[0],r);return e.apply(this,[s[0],u,s[2]])}else if((0,Uo.isLifecycleExtEventObj)(i[0])){let s=i[0],a=n._wrapExtMethods(s.method,s.type,r);return s.method=a,e.call(this,s)}return e.apply(this,i)}}_getServerRoutePatch(e,r){let n=this;return function(o){if(Array.isArray(o))for(let i=0;i<o.length;i++){let s=n._wrapRouteHandler.call(n,o[i],r);o[i]=s}else o=n._wrapRouteHandler.call(n,o,r);return e.apply(this,[o])}}_wrapRegisterHandler(e){let r=this,n=(0,Uo.getPluginName)(e),o=e.register,i=this,s=function(a,u){return i._wrap(a,"route",l=>r._getServerRoutePatch.bind(r)(l,n)),i._wrap(a,"ext",l=>r._getServerExtPatch.bind(r)(l,n)),o(a,u)};e.register=s}_wrapExtMethods(e,r,n){let o=this;if(e instanceof Array){for(let i=0;i<e.length;i++)e[i]=o._wrapExtMethods(e[i],r);return e}else if((0,Uo.isPatchableExtMethod)(e))return e[y_.handlerPatched]===!0?e:(e[y_.handlerPatched]=!0,async function(...s){if(Rr.trace.getSpan(Rr.context.active())===void 0)return await e.apply(this,s);let a=(0,Uo.getExtMetadata)(r,n),u=o.tracer.startSpan(a.name,{attributes:a.attributes});try{return await Rr.context.with(Rr.trace.setSpan(Rr.context.active(),u),e,void 0,...s)}catch(l){throw u.recordException(l),u.setStatus({code:Rr.SpanStatusCode.ERROR,message:l.message}),l}finally{u.end()}});return e}_wrapRouteHandler(e,r){var n;let o=this;if(e[y_.handlerPatched]===!0)return e;e[y_.handlerPatched]=!0;let i=s=>async function(...a){if(Rr.trace.getSpan(Rr.context.active())===void 0)return await s.call(this,...a);let u=(0,Uie.getRPCMetadata)(Rr.context.active());u?.type===Uie.RPCType.HTTP&&(u.route=e.path);let l=(0,Uo.getRouteMetadata)(e,r),d=o.tracer.startSpan(l.name,{attributes:l.attributes});try{return await Rr.context.with(Rr.trace.setSpan(Rr.context.active(),d),()=>s.call(this,...a))}catch(p){throw d.recordException(p),d.setStatus({code:Rr.SpanStatusCode.ERROR,message:p.message}),p}finally{d.end()}};if(typeof e.handler=="function")e.handler=i(e.handler);else if(typeof e.options=="function"){let s=e.options;e.options=function(a){let u=s(a);return typeof u.handler=="function"&&(u.handler=i(u.handler)),u}}else typeof((n=e.options)===null||n===void 0?void 0:n.handler)=="function"&&(e.options.handler=i(e.options.handler));return e}};YO.HapiInstrumentation=bx});var Vie=c(cs=>{"use strict";var E$e=cs&&cs.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),jie=cs&&cs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&E$e(e,t,r)};Object.defineProperty(cs,"__esModule",{value:!0});jie(qie(),cs);jie(Px(),cs)});var vx=c(El=>{var{_optionalChain:m$e}=b();Object.defineProperty(El,"__esModule",{value:!0});var T$e=Vie(),dn=k(),S$e=b(),A$e=on(),O$e=Se(),R$e=Sc(),Bie="Hapi",Hie=O$e.generateInstrumentOnce(Bie,()=>new T$e.HapiInstrumentation),I$e=()=>({name:Bie,setupOnce(){Hie()}}),P$e=dn.defineIntegration(I$e);function b$e(t){return t&&t.error!==void 0}function v$e(t){dn.captureException(t,{mechanism:{type:"hapi",handled:!1,data:{function:"hapiErrorPlugin"}}})}var Fie={name:"SentryHapiErrorPlugin",version:dn.SDK_VERSION,register:async function(t){t.events.on({name:"request",channels:["error"]},(r,n)=>{if(dn.getIsolationScope()!==dn.getDefaultIsolationScope()){let o=r.route;o&&o.path&&dn.getIsolationScope().setTransactionName(`${m$e([o,"access",i=>i.method,"optionalAccess",i=>i.toUpperCase,"call",i=>i()])||"GET"} ${o.path}`)}else A$e.DEBUG_BUILD&&S$e.logger.warn("Isolation scope is still the default isolation scope - skipping setting transactionName");b$e(n)&&v$e(n.error)})}};async function y$e(t){await t.register(Fie);let e=dn.getClient();e&&e.on("spanStart",r=>{N$e(r)}),R$e.ensureIsWrapped(t.register,"hapi")}function N$e(t){let e=dn.spanToJSON(t).data||{},r=e["hapi.type"];e[dn.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r||t.setAttributes({[dn.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.hapi",[dn.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.hapi`})}El.hapiErrorPlugin=Fie;El.hapiIntegration=P$e;El.instrumentHapi=Hie;El.setupHapiErrorHandler=y$e});var KO=c(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.KoaLayerType=void 0;var C$e;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware"})(C$e=N_.KoaLayerType||(N_.KoaLayerType={}))});var kie=c(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.PACKAGE_NAME=ml.PACKAGE_VERSION=void 0;ml.PACKAGE_VERSION="0.43.0";ml.PACKAGE_NAME="@opentelemetry/instrumentation-koa"});var yx=c(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.AttributeNames=void 0;var M$e;(function(t){t.KOA_TYPE="koa.type",t.KOA_NAME="koa.name"})(M$e=C_.AttributeNames||(C_.AttributeNames={}))});var Yie=c(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.isLayerIgnored=Tl.getMiddlewareMetadata=void 0;var Wie=KO(),XO=yx(),L$e=($(),m(J)),D$e=(t,e,r,n)=>{var o;return r?{attributes:{[XO.AttributeNames.KOA_NAME]:n?.toString(),[XO.AttributeNames.KOA_TYPE]:Wie.KoaLayerType.ROUTER,[L$e.SEMATTRS_HTTP_ROUTE]:n?.toString()},name:t._matchedRouteName||`router - ${n}`}:{attributes:{[XO.AttributeNames.KOA_NAME]:(o=e.name)!==null&&o!==void 0?o:"middleware",[XO.AttributeNames.KOA_TYPE]:Wie.KoaLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};Tl.getMiddlewareMetadata=D$e;var G$e=(t,e)=>{var r;return!!(Array.isArray(e?.ignoreLayersType)&&(!((r=e?.ignoreLayersType)===null||r===void 0)&&r.includes(t)))};Tl.isLayerIgnored=G$e});var Kie=c(ZO=>{"use strict";Object.defineProperty(ZO,"__esModule",{value:!0});ZO.kLayerPatched=void 0;ZO.kLayerPatched=Symbol("koa-layer-patched")});var Qie=c(zO=>{"use strict";Object.defineProperty(zO,"__esModule",{value:!0});zO.KoaInstrumentation=void 0;var Kn=(P(),m(I)),M_=Ke(),Xie=KO(),Zie=kie(),zie=Yie(),Jie=ae(),$ie=Kie(),Nx=class extends M_.InstrumentationBase{constructor(e={}){super(Zie.PACKAGE_NAME,Zie.PACKAGE_VERSION,e)}init(){return new M_.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <3"],e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return r==null?r:((0,M_.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use"),this._wrap(r.prototype,"use",this._getKoaUsePatch.bind(this)),e)},e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;(0,M_.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use")})}_getKoaUsePatch(e){let r=this;return function(o){let i;return o.router?i=r._patchRouterDispatch(o):i=r._patchLayer(o,!1),e.apply(this,[i])}}_patchRouterDispatch(e){var r;Kn.diag.debug("Patching @koa/router dispatch");let n=e.router,o=(r=n?.stack)!==null&&r!==void 0?r:[];for(let i of o){let s=i.path,a=i.stack;for(let u=0;u<a.length;u++){let l=a[u];a[u]=this._patchLayer(l,!0,s)}}return e}_patchLayer(e,r,n){let o=r?Xie.KoaLayerType.ROUTER:Xie.KoaLayerType.MIDDLEWARE;return e[$ie.kLayerPatched]===!0||(0,zie.isLayerIgnored)(o,this.getConfig())?e:e.constructor.name==="GeneratorFunction"||e.constructor.name==="AsyncGeneratorFunction"?(Kn.diag.debug("ignoring generator-based Koa middleware layer"),e):(e[$ie.kLayerPatched]=!0,Kn.diag.debug("patching Koa middleware layer"),async(i,s)=>{if(Kn.trace.getSpan(Kn.context.active())===void 0)return e(i,s);let u=(0,zie.getMiddlewareMetadata)(i,e,r,n),l=this.tracer.startSpan(u.name,{attributes:u.attributes}),d=(0,Jie.getRPCMetadata)(Kn.context.active());d?.type===Jie.RPCType.HTTP&&i._matchedRoute&&(d.route=i._matchedRoute.toString());let{requestHook:p}=this.getConfig();p&&(0,M_.safeExecuteInTheMiddle)(()=>p(l,{context:i,middlewareLayer:e,layerType:o}),f=>{f&&Kn.diag.error("koa instrumentation: request hook failed",f)},!0);let _=Kn.trace.setSpan(Kn.context.active(),l);return Kn.context.with(_,async()=>{try{return await e(i,s)}catch(f){throw l.recordException(f),f}finally{l.end()}})})}};zO.KoaInstrumentation=Nx});var ese=c(wo=>{"use strict";var x$e=wo&&wo.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Cx=wo&&wo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&x$e(e,t,r)};Object.defineProperty(wo,"__esModule",{value:!0});Cx(Qie(),wo);Cx(KO(),wo);Cx(yx(),wo)});var Mx=c(L_=>{var{_optionalChain:U$e}=b();Object.defineProperty(L_,"__esModule",{value:!0});var w$e=ese(),q$e=($(),m(J)),qo=k(),j$e=b(),V$e=on(),B$e=Se(),H$e=Sc(),tse="Koa",rse=B$e.generateInstrumentOnce(tse,()=>new w$e.KoaInstrumentation({requestHook(t,e){if(Y$e(t),qo.getIsolationScope()===qo.getDefaultIsolationScope()){V$e.DEBUG_BUILD&&j$e.logger.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let r=qo.spanToJSON(t).data,n=r&&r[q$e.ATTR_HTTP_ROUTE],o=U$e([e,"optionalAccess",i=>i.context,"optionalAccess",i=>i.request,"optionalAccess",i=>i.method,"optionalAccess",i=>i.toUpperCase,"call",i=>i()])||"GET";n&&qo.getIsolationScope().setTransactionName(`${o} ${n}`)}})),F$e=()=>({name:tse,setupOnce(){rse()}}),k$e=qo.defineIntegration(F$e),W$e=t=>{t.use(async(e,r)=>{try{await r()}catch(n){throw qo.captureException(n),n}}),H$e.ensureIsWrapped(t.use,"koa")};function Y$e(t){t.setAttribute(qo.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.otel.koa");let e=qo.spanToJSON(t).data||{},r=e["koa.type"];r&&t.setAttribute(qo.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.koa`);let n=e["koa.name"];typeof n=="string"&&t.updateName(n||"< unknown >")}L_.instrumentKoa=rse;L_.koaIntegration=k$e;L_.setupKoaErrorHandler=W$e});var Lx=c(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.ConnectNames=pn.ConnectTypes=pn.AttributeNames=void 0;var K$e;(function(t){t.CONNECT_TYPE="connect.type",t.CONNECT_NAME="connect.name"})(K$e=pn.AttributeNames||(pn.AttributeNames={}));var X$e;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(X$e=pn.ConnectTypes||(pn.ConnectTypes={}));var Z$e;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})(Z$e=pn.ConnectNames||(pn.ConnectNames={}))});var nse=c(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.PACKAGE_NAME=Sl.PACKAGE_VERSION=void 0;Sl.PACKAGE_VERSION="0.40.0";Sl.PACKAGE_NAME="@opentelemetry/instrumentation-connect"});var ose=c(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.SeverityNumber=void 0;var z$e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(z$e=D_.SeverityNumber||(D_.SeverityNumber={}))});var $O=c(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.NOOP_LOGGER=Al.NoopLogger=void 0;var JO=class{emit(e){}};Al.NoopLogger=JO;Al.NOOP_LOGGER=new JO});var eR=c(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.NOOP_LOGGER_PROVIDER=Ol.NoopLoggerProvider=void 0;var J$e=$O(),QO=class{getLogger(e,r,n){return new J$e.NoopLogger}};Ol.NoopLoggerProvider=QO;Ol.NOOP_LOGGER_PROVIDER=new QO});var Gx=c(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.ProxyLogger=void 0;var $$e=$O(),Dx=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):$$e.NOOP_LOGGER}};tR.ProxyLogger=Dx});var Ux=c(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0});rR.ProxyLoggerProvider=void 0;var Q$e=eR(),eQe=Gx(),xx=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new eQe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Q$e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};rR.ProxyLoggerProvider=xx});var ise=c(nR=>{"use strict";Object.defineProperty(nR,"__esModule",{value:!0});nR._globalThis=void 0;nR._globalThis=typeof globalThis=="object"?globalThis:global});var sse=c(oR=>{"use strict";Object.defineProperty(oR,"__esModule",{value:!0});oR._globalThis=void 0;var tQe=ise();Object.defineProperty(oR,"_globalThis",{enumerable:!0,get:function(){return tQe._globalThis}})});var ase=c(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});iR._globalThis=void 0;var rQe=sse();Object.defineProperty(iR,"_globalThis",{enumerable:!0,get:function(){return rQe._globalThis}})});var use=c(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.API_BACKWARDS_COMPATIBILITY_VERSION=Xn.makeGetter=Xn._global=Xn.GLOBAL_LOGS_API_KEY=void 0;var nQe=ase();Xn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Xn._global=nQe._globalThis;function oQe(t,e,r){return n=>n===t?e:r}Xn.makeGetter=oQe;Xn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var lse=c(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0});sR.LogsAPI=void 0;var Yr=use(),iQe=eR(),cse=Ux(),wx=class t{constructor(){this._proxyLoggerProvider=new cse.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Yr._global[Yr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Yr._global[Yr.GLOBAL_LOGS_API_KEY]=(0,Yr.makeGetter)(Yr.API_BACKWARDS_COMPATIBILITY_VERSION,e,iQe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Yr._global[Yr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Yr._global,Yr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Yr._global[Yr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new cse.ProxyLoggerProvider}};sR.LogsAPI=wx});var qx=c(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.logs=at.ProxyLoggerProvider=at.ProxyLogger=at.NoopLoggerProvider=at.NOOP_LOGGER_PROVIDER=at.NoopLogger=at.NOOP_LOGGER=at.SeverityNumber=void 0;var sQe=ose();Object.defineProperty(at,"SeverityNumber",{enumerable:!0,get:function(){return sQe.SeverityNumber}});var dse=$O();Object.defineProperty(at,"NOOP_LOGGER",{enumerable:!0,get:function(){return dse.NOOP_LOGGER}});Object.defineProperty(at,"NoopLogger",{enumerable:!0,get:function(){return dse.NoopLogger}});var pse=eR();Object.defineProperty(at,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return pse.NOOP_LOGGER_PROVIDER}});Object.defineProperty(at,"NoopLoggerProvider",{enumerable:!0,get:function(){return pse.NoopLoggerProvider}});var aQe=Gx();Object.defineProperty(at,"ProxyLogger",{enumerable:!0,get:function(){return aQe.ProxyLogger}});var uQe=Ux();Object.defineProperty(at,"ProxyLoggerProvider",{enumerable:!0,get:function(){return uQe.ProxyLoggerProvider}});var cQe=lse();at.logs=cQe.LogsAPI.getInstance()});var _se=c(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.disableInstrumentations=Rl.enableInstrumentations=void 0;function lQe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Rl.enableInstrumentations=lQe;function dQe(t){t.forEach(e=>e.disable())}Rl.disableInstrumentations=dQe});var hse=c(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});aR.registerInstrumentations=void 0;var fse=(P(),m(I)),pQe=qx(),gse=_se();function _Qe(t){var e,r;let n=t.tracerProvider||fse.trace.getTracerProvider(),o=t.meterProvider||fse.metrics.getMeterProvider(),i=t.loggerProvider||pQe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,gse.enableInstrumentations)(s,n,o,i),()=>{(0,gse.disableInstrumentations)(s)}}aR.registerInstrumentations=_Qe});var Ese=c(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});cR.InstrumentationAbstract=void 0;var jx=(P(),m(I)),fQe=qx(),uR=le(),Vx=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=uR.wrap,this._unwrap=uR.unwrap,this._massWrap=uR.massWrap,this._massUnwrap=uR.massUnwrap,this.setConfig(n),this._diag=jx.diag.createComponentLogger({namespace:e}),this._tracer=jx.trace.getTracer(e,r),this._meter=jx.metrics.getMeter(e,r),this._logger=fQe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};cR.InstrumentationAbstract=Vx});var mse=c(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.ModuleNameTrie=ls.ModuleNameSeparator=void 0;ls.ModuleNameSeparator="/";var lR=class{constructor(){this.hooks=[],this.children=new Map}},Bx=class{constructor(){this._trie=new lR,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(ls.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new lR,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(ls.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};ls.ModuleNameTrie=Bx});var Sse=c(dR=>{"use strict";Object.defineProperty(dR,"__esModule",{value:!0});dR.RequireInTheMiddleSingleton=void 0;var gQe=de(),Tse=require("path"),Hx=mse(),hQe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),Fx=class t{constructor(){this._moduleNameTrie=new Hx.ModuleNameTrie,this._initialize()}_initialize(){new gQe.Hook(null,{internals:!0},(e,r,n)=>{let o=EQe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return hQe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};dR.RequireInTheMiddleSingleton=Fx;function EQe(t){return Tse.sep!==Hx.ModuleNameSeparator?t.split(Tse.sep).join(Hx.ModuleNameSeparator):t}});var kx=c(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isWrapped=ds.safeExecuteInTheMiddleAsync=ds.safeExecuteInTheMiddle=void 0;function mQe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ds.safeExecuteInTheMiddle=mQe;async function TQe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ds.safeExecuteInTheMiddleAsync=TQe;function SQe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ds.isWrapped=SQe});var Rse=c(pR=>{"use strict";Object.defineProperty(pR,"__esModule",{value:!0});pR.InstrumentationBase=void 0;var Wx=require("path"),Ase=require("util"),AQe=Zt(),Yx=le(),OQe=Ese(),RQe=Sse(),IQe=Jt(),G_=(P(),m(I)),PQe=de(),bQe=require("fs"),vQe=kx(),Kx=class extends OQe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=RQe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,vQe.isWrapped)(i[s])&&this._unwrap(i,s),Ase.types.isProxy(i)){let u=(0,Yx.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,Yx.wrap)(i,s,a)},this._unwrap=(i,s)=>Ase.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,Yx.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{G_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){G_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{G_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){G_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,bQe.readFileSync)(Wx.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{G_.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return Ose(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=Wx.normalize(n);return a.filter(d=>d.name===u).filter(d=>Ose(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=Wx.isAbsolute(e.name)?new PQe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new IQe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};pR.InstrumentationBase=Kx;function Ose(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,AQe.satisfies)(e,n,{includePrerelease:r}))}});var Ise=c(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});_R.normalize=void 0;var yQe=require("path");Object.defineProperty(_R,"normalize",{enumerable:!0,get:function(){return yQe.normalize}})});var Pse=c(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.normalize=Il.InstrumentationBase=void 0;var NQe=Rse();Object.defineProperty(Il,"InstrumentationBase",{enumerable:!0,get:function(){return NQe.InstrumentationBase}});var CQe=Ise();Object.defineProperty(Il,"normalize",{enumerable:!0,get:function(){return CQe.normalize}})});var Xx=c(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.normalize=Pl.InstrumentationBase=void 0;var bse=Pse();Object.defineProperty(Pl,"InstrumentationBase",{enumerable:!0,get:function(){return bse.InstrumentationBase}});Object.defineProperty(Pl,"normalize",{enumerable:!0,get:function(){return bse.normalize}})});var vse=c(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});fR.InstrumentationNodeModuleDefinition=void 0;var Zx=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};fR.InstrumentationNodeModuleDefinition=Zx});var yse=c(gR=>{"use strict";Object.defineProperty(gR,"__esModule",{value:!0});gR.InstrumentationNodeModuleFile=void 0;var MQe=Xx(),zx=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,MQe.normalize)(e)}};gR.InstrumentationNodeModuleFile=zx});var Nse=c(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.safeExecuteInTheMiddleAsync=Ht.safeExecuteInTheMiddle=Ht.isWrapped=Ht.InstrumentationNodeModuleFile=Ht.InstrumentationNodeModuleDefinition=Ht.InstrumentationBase=Ht.registerInstrumentations=void 0;var LQe=hse();Object.defineProperty(Ht,"registerInstrumentations",{enumerable:!0,get:function(){return LQe.registerInstrumentations}});var DQe=Xx();Object.defineProperty(Ht,"InstrumentationBase",{enumerable:!0,get:function(){return DQe.InstrumentationBase}});var GQe=vse();Object.defineProperty(Ht,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return GQe.InstrumentationNodeModuleDefinition}});var xQe=yse();Object.defineProperty(Ht,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return xQe.InstrumentationNodeModuleFile}});var Jx=kx();Object.defineProperty(Ht,"isWrapped",{enumerable:!0,get:function(){return Jx.isWrapped}});Object.defineProperty(Ht,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return Jx.safeExecuteInTheMiddle}});Object.defineProperty(Ht,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return Jx.safeExecuteInTheMiddleAsync}})});var Cse=c(hR=>{"use strict";Object.defineProperty(hR,"__esModule",{value:!0});hR._LAYERS_STORE_PROPERTY=void 0;hR._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack")});var Mse=c(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.generateRoute=_s.replaceCurrentStackRoute=_s.addNewStackLayer=void 0;var UQe=(P(),m(I)),ps=Cse(),wQe=t=>{Array.isArray(t[ps._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,ps._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),t[ps._LAYERS_STORE_PROPERTY].push("/");let e=t[ps._LAYERS_STORE_PROPERTY].length;return()=>{e===t[ps._LAYERS_STORE_PROPERTY].length?t[ps._LAYERS_STORE_PROPERTY].pop():UQe.diag.warn("Connect: Trying to pop the stack multiple time")}};_s.addNewStackLayer=wQe;var qQe=(t,e)=>{e&&t[ps._LAYERS_STORE_PROPERTY].splice(-1,1,e)};_s.replaceCurrentStackRoute=qQe;var jQe=t=>t[ps._LAYERS_STORE_PROPERTY].reduce((e,r)=>e.replace(/\/+$/,"")+r);_s.generateRoute=jQe});var Gse=c(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.ConnectInstrumentation=fs.ANONYMOUS_NAME=void 0;var VQe=(P(),m(I)),Lse=ae(),bl=Lx(),Dse=nse(),ER=Nse(),BQe=($(),m(J)),$x=Mse();fs.ANONYMOUS_NAME="anonymous";var Qx=class extends ER.InstrumentationBase{constructor(e={}){super(Dse.PACKAGE_NAME,Dse.PACKAGE_VERSION,e)}init(){return[new ER.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_patchApp(e){(0,ER.isWrapped)(e.use)||this._wrap(e,"use",this._patchUse.bind(this)),(0,ER.isWrapped)(e.handle)||this._wrap(e,"handle",this._patchHandle.bind(this))}_patchConstructor(e){let r=this;return function(...n){let o=e.apply(this,n);return r._patchApp(o),o}}_patchNext(e,r){return function(o){let i=e.apply(this,[o]);return r(),i}}_startSpan(e,r){let n,o,i;e?(n=bl.ConnectTypes.REQUEST_HANDLER,i=bl.ConnectNames.REQUEST_HANDLER,o=e):(n=bl.ConnectTypes.MIDDLEWARE,i=bl.ConnectNames.MIDDLEWARE,o=r.name||fs.ANONYMOUS_NAME);let s=`${i} - ${o}`,a={attributes:{[BQe.SEMATTRS_HTTP_ROUTE]:e.length>0?e:"/",[bl.AttributeNames.CONNECT_TYPE]:n,[bl.AttributeNames.CONNECT_NAME]:o}};return this.tracer.startSpan(s,a)}_patchMiddleware(e,r){let n=this,o=r.length===4;function i(){if(!n.isEnabled())return r.apply(this,arguments);let[s,a,u]=o?[1,2,3]:[0,1,2],l=arguments[s],d=arguments[a],p=arguments[u];(0,$x.replaceCurrentStackRoute)(l,e);let _=(0,Lse.getRPCMetadata)(VQe.context.active());e&&_?.type===Lse.RPCType.HTTP&&(_.route=(0,$x.generateRoute)(l));let f="";e?f=`request handler - ${e}`:f=`middleware - ${r.name||fs.ANONYMOUS_NAME}`;let g=n._startSpan(e,r);n._diag.debug("start span",f);let h=!1;function T(){h?n._diag.debug(`span ${g.name} - already finished`):(h=!0,n._diag.debug(`finishing span ${g.name}`),g.end()),d.removeListener("close",T)}return d.addListener("close",T),arguments[u]=n._patchNext(p,T),r.apply(this,arguments)}return Object.defineProperty(i,"length",{value:r.length,writable:!1,configurable:!0}),i}_patchUse(e){let r=this;return function(...n){let o=n[n.length-1],i=n[n.length-2]||"";return n[n.length-1]=r._patchMiddleware(i,o),e.apply(this,n)}}_patchHandle(e){let r=this;return function(){let[n,o]=[0,2],i=arguments[n],s=arguments[o],a=(0,$x.addNewStackLayer)(i);return typeof s=="function"&&(arguments[o]=r._patchOut(s,a)),e.apply(this,arguments)}}_patchOut(e,r){return function(...o){return r(),Reflect.apply(e,this,o)}}};fs.ConnectInstrumentation=Qx});var Use=c(gs=>{"use strict";var HQe=gs&&gs.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),xse=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&HQe(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});xse(Lx(),gs);xse(Gse(),gs)});var eU=c(x_=>{Object.defineProperty(x_,"__esModule",{value:!0});var FQe=Use(),Aa=k(),kQe=Se(),WQe=Sc(),wse="Connect",qse=kQe.generateInstrumentOnce(wse,()=>new FQe.ConnectInstrumentation),YQe=()=>({name:wse,setupOnce(){qse()}}),KQe=Aa.defineIntegration(YQe);function XQe(t,e,r,n){Aa.captureException(t),n(t)}var ZQe=t=>{t.use(XQe);let e=Aa.getClient();e&&e.on("spanStart",r=>{zQe(r)}),WQe.ensureIsWrapped(t.use,"connect")};function zQe(t){let e=Aa.spanToJSON(t).data||{},r=e["connect.type"];if(e[Aa.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r)return;t.setAttributes({[Aa.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.connect",[Aa.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.connect`});let n=e["connect.name"];typeof n=="string"&&t.updateName(n)}x_.connectIntegration=KQe;x_.instrumentConnect=qse;x_.setupConnectErrorHandler=ZQe});var tU=c(w_=>{Object.defineProperty(w_,"__esModule",{value:!0});var JQe=require("node:http"),$Qe=k(),U_=b(),jse="Spotlight",QQe=(t={})=>{let e={sidecarUrl:t.sidecarUrl||"http://localhost:8969/stream"};return{name:jse,setup(r){typeof process=="object"&&process.env&&process.env.NODE_ENV!=="development"&&U_.logger.warn("[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?"),t6e(r,e)}}},e6e=$Qe.defineIntegration(QQe);function t6e(t,e){let r=r6e(e.sidecarUrl);if(!r)return;let n=0;t.on("beforeEnvelope",o=>{if(n>3){U_.logger.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests");return}let i=U_.serializeEnvelope(o),a=Vse()({method:"POST",path:r.pathname,hostname:r.hostname,port:r.port,headers:{"Content-Type":"application/x-sentry-envelope"}},u=>{u.statusCode&&u.statusCode>=200&&u.statusCode<400&&(n=0),u.on("data",()=>{}),u.on("end",()=>{}),u.setEncoding("utf8")});a.on("error",()=>{n++,U_.logger.warn("[Spotlight] Failed to send envelope to Spotlight Sidecar")}),a.write(i),a.end()})}function r6e(t){try{return new URL(`${t}`)}catch{U_.logger.warn(`[Spotlight] Invalid sidecar URL: ${t}`);return}}function Vse(){let{request:t}=JQe;return n6e(t)?t.__sentry_original__:t}function n6e(t){return"__sentry_original__"in t}w_.INTEGRATION_NAME=jse;w_.getNativeHttpRequest=Vse;w_.spotlightIntegration=e6e});var Bse=c(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.PACKAGE_NAME=vl.PACKAGE_VERSION=void 0;vl.PACKAGE_VERSION="0.41.0";vl.PACKAGE_NAME="@opentelemetry/instrumentation-knex"});var Hse=c(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.SUPPORTED_VERSIONS=yl.MODULE_NAME=void 0;yl.MODULE_NAME="knex";yl.SUPPORTED_VERSIONS=[">=0.22.0 <4",">=0.10.0 <0.18.0",">=0.19.0 <0.22.0",">=0.18.0 <0.19.0"]});var Fse=c(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.SeverityNumber=void 0;var o6e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(o6e=q_.SeverityNumber||(q_.SeverityNumber={}))});var TR=c(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.NOOP_LOGGER=Nl.NoopLogger=void 0;var mR=class{emit(e){}};Nl.NoopLogger=mR;Nl.NOOP_LOGGER=new mR});var AR=c(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.NOOP_LOGGER_PROVIDER=Cl.NoopLoggerProvider=void 0;var i6e=TR(),SR=class{getLogger(e,r,n){return new i6e.NoopLogger}};Cl.NoopLoggerProvider=SR;Cl.NOOP_LOGGER_PROVIDER=new SR});var nU=c(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.ProxyLogger=void 0;var s6e=TR(),rU=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):s6e.NOOP_LOGGER}};OR.ProxyLogger=rU});var iU=c(RR=>{"use strict";Object.defineProperty(RR,"__esModule",{value:!0});RR.ProxyLoggerProvider=void 0;var a6e=AR(),u6e=nU(),oU=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new u6e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:a6e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};RR.ProxyLoggerProvider=oU});var kse=c(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR._globalThis=void 0;IR._globalThis=typeof globalThis=="object"?globalThis:global});var Wse=c(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});PR._globalThis=void 0;var c6e=kse();Object.defineProperty(PR,"_globalThis",{enumerable:!0,get:function(){return c6e._globalThis}})});var Yse=c(bR=>{"use strict";Object.defineProperty(bR,"__esModule",{value:!0});bR._globalThis=void 0;var l6e=Wse();Object.defineProperty(bR,"_globalThis",{enumerable:!0,get:function(){return l6e._globalThis}})});var Kse=c(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.API_BACKWARDS_COMPATIBILITY_VERSION=Zn.makeGetter=Zn._global=Zn.GLOBAL_LOGS_API_KEY=void 0;var d6e=Yse();Zn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Zn._global=d6e._globalThis;function p6e(t,e,r){return n=>n===t?e:r}Zn.makeGetter=p6e;Zn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var Zse=c(vR=>{"use strict";Object.defineProperty(vR,"__esModule",{value:!0});vR.LogsAPI=void 0;var Kr=Kse(),_6e=AR(),Xse=iU(),sU=class t{constructor(){this._proxyLoggerProvider=new Xse.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Kr._global[Kr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Kr._global[Kr.GLOBAL_LOGS_API_KEY]=(0,Kr.makeGetter)(Kr.API_BACKWARDS_COMPATIBILITY_VERSION,e,_6e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Kr._global[Kr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Kr._global,Kr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Kr._global[Kr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new Xse.ProxyLoggerProvider}};vR.LogsAPI=sU});var aU=c(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.logs=ut.ProxyLoggerProvider=ut.ProxyLogger=ut.NoopLoggerProvider=ut.NOOP_LOGGER_PROVIDER=ut.NoopLogger=ut.NOOP_LOGGER=ut.SeverityNumber=void 0;var f6e=Fse();Object.defineProperty(ut,"SeverityNumber",{enumerable:!0,get:function(){return f6e.SeverityNumber}});var zse=TR();Object.defineProperty(ut,"NOOP_LOGGER",{enumerable:!0,get:function(){return zse.NOOP_LOGGER}});Object.defineProperty(ut,"NoopLogger",{enumerable:!0,get:function(){return zse.NoopLogger}});var Jse=AR();Object.defineProperty(ut,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return Jse.NOOP_LOGGER_PROVIDER}});Object.defineProperty(ut,"NoopLoggerProvider",{enumerable:!0,get:function(){return Jse.NoopLoggerProvider}});var g6e=nU();Object.defineProperty(ut,"ProxyLogger",{enumerable:!0,get:function(){return g6e.ProxyLogger}});var h6e=iU();Object.defineProperty(ut,"ProxyLoggerProvider",{enumerable:!0,get:function(){return h6e.ProxyLoggerProvider}});var E6e=Zse();ut.logs=E6e.LogsAPI.getInstance()});var $se=c(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.disableInstrumentations=Ml.enableInstrumentations=void 0;function m6e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Ml.enableInstrumentations=m6e;function T6e(t){t.forEach(e=>e.disable())}Ml.disableInstrumentations=T6e});var tae=c(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0});yR.registerInstrumentations=void 0;var Qse=(P(),m(I)),S6e=aU(),eae=$se();function A6e(t){var e,r;let n=t.tracerProvider||Qse.trace.getTracerProvider(),o=t.meterProvider||Qse.metrics.getMeterProvider(),i=t.loggerProvider||S6e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,eae.enableInstrumentations)(s,n,o,i),()=>{(0,eae.disableInstrumentations)(s)}}yR.registerInstrumentations=A6e});var rae=c(CR=>{"use strict";Object.defineProperty(CR,"__esModule",{value:!0});CR.InstrumentationAbstract=void 0;var uU=(P(),m(I)),O6e=aU(),NR=le(),cU=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=NR.wrap,this._unwrap=NR.unwrap,this._massWrap=NR.massWrap,this._massUnwrap=NR.massUnwrap,this.setConfig(n),this._diag=uU.diag.createComponentLogger({namespace:e}),this._tracer=uU.trace.getTracer(e,r),this._meter=uU.metrics.getMeter(e,r),this._logger=O6e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};CR.InstrumentationAbstract=cU});var nae=c(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.ModuleNameTrie=hs.ModuleNameSeparator=void 0;hs.ModuleNameSeparator="/";var MR=class{constructor(){this.hooks=[],this.children=new Map}},lU=class{constructor(){this._trie=new MR,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(hs.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new MR,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(hs.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};hs.ModuleNameTrie=lU});var iae=c(LR=>{"use strict";Object.defineProperty(LR,"__esModule",{value:!0});LR.RequireInTheMiddleSingleton=void 0;var R6e=de(),oae=require("path"),dU=nae(),I6e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),pU=class t{constructor(){this._moduleNameTrie=new dU.ModuleNameTrie,this._initialize()}_initialize(){new R6e.Hook(null,{internals:!0},(e,r,n)=>{let o=P6e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return I6e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};LR.RequireInTheMiddleSingleton=pU;function P6e(t){return oae.sep!==dU.ModuleNameSeparator?t.split(oae.sep).join(dU.ModuleNameSeparator):t}});var _U=c(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.isWrapped=Es.safeExecuteInTheMiddleAsync=Es.safeExecuteInTheMiddle=void 0;function b6e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Es.safeExecuteInTheMiddle=b6e;async function v6e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Es.safeExecuteInTheMiddleAsync=v6e;function y6e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Es.isWrapped=y6e});var uae=c(DR=>{"use strict";Object.defineProperty(DR,"__esModule",{value:!0});DR.InstrumentationBase=void 0;var j_=require("path"),sae=require("util"),N6e=Zt(),fU=le(),C6e=rae(),M6e=iae(),L6e=Jt(),V_=(P(),m(I)),D6e=de(),G6e=require("fs"),x6e=_U(),gU=class extends C6e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=M6e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,x6e.isWrapped)(i[s])&&this._unwrap(i,s),sae.types.isProxy(i)){let u=(0,fU.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,fU.wrap)(i,s,a)},this._unwrap=(i,s)=>sae.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,fU.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{V_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){V_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{V_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){V_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,G6e.readFileSync)(j_.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{V_.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return aae(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=j_.normalize(n);return a.filter(d=>d.name===u).filter(d=>aae(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>{if(!u&&j_.isAbsolute(a)){let l=j_.parse(a);a=l.name,u=l.dir}return this._onRequire(e,s,a,u)},n=(s,a,u)=>this._onRequire(e,s,a,u),o=j_.isAbsolute(e.name)?new D6e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new L6e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};DR.InstrumentationBase=gU;function aae(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,N6e.satisfies)(e,n,{includePrerelease:r}))}});var cae=c(GR=>{"use strict";Object.defineProperty(GR,"__esModule",{value:!0});GR.normalize=void 0;var U6e=require("path");Object.defineProperty(GR,"normalize",{enumerable:!0,get:function(){return U6e.normalize}})});var lae=c(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.normalize=Ll.InstrumentationBase=void 0;var w6e=uae();Object.defineProperty(Ll,"InstrumentationBase",{enumerable:!0,get:function(){return w6e.InstrumentationBase}});var q6e=cae();Object.defineProperty(Ll,"normalize",{enumerable:!0,get:function(){return q6e.normalize}})});var hU=c(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.normalize=Dl.InstrumentationBase=void 0;var dae=lae();Object.defineProperty(Dl,"InstrumentationBase",{enumerable:!0,get:function(){return dae.InstrumentationBase}});Object.defineProperty(Dl,"normalize",{enumerable:!0,get:function(){return dae.normalize}})});var pae=c(xR=>{"use strict";Object.defineProperty(xR,"__esModule",{value:!0});xR.InstrumentationNodeModuleDefinition=void 0;var EU=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};xR.InstrumentationNodeModuleDefinition=EU});var _ae=c(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0});UR.InstrumentationNodeModuleFile=void 0;var j6e=hU(),mU=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,j6e.normalize)(e)}};UR.InstrumentationNodeModuleFile=mU});var fae=c(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.safeExecuteInTheMiddleAsync=Ft.safeExecuteInTheMiddle=Ft.isWrapped=Ft.InstrumentationNodeModuleFile=Ft.InstrumentationNodeModuleDefinition=Ft.InstrumentationBase=Ft.registerInstrumentations=void 0;var V6e=tae();Object.defineProperty(Ft,"registerInstrumentations",{enumerable:!0,get:function(){return V6e.registerInstrumentations}});var B6e=hU();Object.defineProperty(Ft,"InstrumentationBase",{enumerable:!0,get:function(){return B6e.InstrumentationBase}});var H6e=pae();Object.defineProperty(Ft,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return H6e.InstrumentationNodeModuleDefinition}});var F6e=_ae();Object.defineProperty(Ft,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return F6e.InstrumentationNodeModuleFile}});var TU=_U();Object.defineProperty(Ft,"isWrapped",{enumerable:!0,get:function(){return TU.isWrapped}});Object.defineProperty(Ft,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return TU.safeExecuteInTheMiddle}});Object.defineProperty(Ft,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return TU.safeExecuteInTheMiddleAsync}})});var hae=c(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.extractTableName=rr.limitLength=rr.getName=rr.mapSystem=rr.cloneErrorWithNewMessage=rr.getFormatter=void 0;var gae=($(),m(J)),k6e=t=>{if(t){if(t.client){if(t.client._formatQuery)return t.client._formatQuery.bind(t.client);if(t.client.SqlString)return t.client.SqlString.format.bind(t.client.SqlString)}if(t.builder)return t.builder.toString.bind(t.builder)}return()=>"<noop formatter>"};rr.getFormatter=k6e;var W6e=(t,e)=>{if(t&&t instanceof Error){let r=new t.constructor(e);return r.code=t.code,r.stack=t.stack,r.errno=t.errno,r}return t};rr.cloneErrorWithNewMessage=W6e;var Y6e=new Map([["sqlite3",gae.DBSYSTEMVALUES_SQLITE],["pg",gae.DBSYSTEMVALUES_POSTGRESQL]]),K6e=t=>Y6e.get(t)||t;rr.mapSystem=K6e;var X6e=(t,e,r)=>e?r?`${e} ${t}.${r}`:`${e} ${t}`:t;rr.getName=X6e;var Z6e=(t,e)=>typeof t=="string"&&typeof e=="number"&&0<e&&e<t.length?t.substr(0,e)+"..":t;rr.limitLength=Z6e;var z6e=t=>{var e;let r=(e=t?._single)===null||e===void 0?void 0:e.table;return typeof r=="object"?(0,rr.extractTableName)(r):r};rr.extractTableName=z6e});var Sae=c(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.KnexInstrumentation=void 0;var jo=(P(),m(I)),Eae=Bse(),wR=Hse(),B_=fae(),Vo=($(),m(J)),Gl=hae(),mae=Symbol("opentelemetry.instrumentation-knex.context"),Tae={maxQueryLength:1022,requireParentSpan:!1},SU=class extends B_.InstrumentationBase{constructor(e={}){super(Eae.PACKAGE_NAME,Eae.PACKAGE_VERSION,Object.assign(Object.assign({},Tae),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},Tae),e))}init(){let e=new B_.InstrumentationNodeModuleDefinition(wR.MODULE_NAME,wR.SUPPORTED_VERSIONS);return e.files.push(this.getClientNodeModuleFileInstrumentation("src"),this.getClientNodeModuleFileInstrumentation("lib"),this.getRunnerNodeModuleFileInstrumentation("src"),this.getRunnerNodeModuleFileInstrumentation("lib"),this.getRunnerNodeModuleFileInstrumentation("lib/execution")),e}getRunnerNodeModuleFileInstrumentation(e){return new B_.InstrumentationNodeModuleFile(`knex/${e}/runner.js`,wR.SUPPORTED_VERSIONS,(r,n)=>(this.ensureWrapped(r.prototype,"query",this.createQueryWrapper(n)),r),(r,n)=>(this._unwrap(r.prototype,"query"),r))}getClientNodeModuleFileInstrumentation(e){return new B_.InstrumentationNodeModuleFile(`knex/${e}/client.js`,wR.SUPPORTED_VERSIONS,r=>(this.ensureWrapped(r.prototype,"queryBuilder",this.storeContext.bind(this)),this.ensureWrapped(r.prototype,"schemaBuilder",this.storeContext.bind(this)),this.ensureWrapped(r.prototype,"raw",this.storeContext.bind(this)),r),r=>(this._unwrap(r.prototype,"queryBuilder"),this._unwrap(r.prototype,"schemaBuilder"),this._unwrap(r.prototype,"raw"),r))}createQueryWrapper(e){let r=this;return function(o){return function(s){var a,u,l,d,p,_;let f=this.client.config,g=Gl.extractTableName(this.builder),h=s?.method,T=((a=f?.connection)===null||a===void 0?void 0:a.filename)||((u=f?.connection)===null||u===void 0?void 0:u.database),{maxQueryLength:v}=r.getConfig(),N={"knex.version":e,[Vo.SEMATTRS_DB_SYSTEM]:Gl.mapSystem(f.client),[Vo.SEMATTRS_DB_SQL_TABLE]:g,[Vo.SEMATTRS_DB_OPERATION]:h,[Vo.SEMATTRS_DB_USER]:(l=f?.connection)===null||l===void 0?void 0:l.user,[Vo.SEMATTRS_DB_NAME]:T,[Vo.SEMATTRS_NET_PEER_NAME]:(d=f?.connection)===null||d===void 0?void 0:d.host,[Vo.SEMATTRS_NET_PEER_PORT]:(p=f?.connection)===null||p===void 0?void 0:p.port,[Vo.SEMATTRS_NET_TRANSPORT]:((_=f?.connection)===null||_===void 0?void 0:_.filename)===":memory:"?"inproc":void 0};v&&(N[Vo.SEMATTRS_DB_STATEMENT]=Gl.limitLength(s?.sql,v));let D=this.builder[mae]||jo.context.active(),L=jo.trace.getSpan(D),y=L&&jo.trace.isSpanContextValid(L.spanContext());if(r._config.requireParentSpan&&!y)return o.bind(this)(...arguments);let C=r.tracer.startSpan(Gl.getName(T,h,g),{kind:jo.SpanKind.CLIENT,attributes:N},D),G=jo.trace.setSpan(jo.context.active(),C);return jo.context.with(G,o,this,...arguments).then(K=>(C.end(),K)).catch(K=>{let Ue=Gl.getFormatter(this)(s.sql,s.bindings||[]),x=K.message.replace(Ue+" - ",""),V=Gl.cloneErrorWithNewMessage(K,x);throw C.recordException(V),C.setStatus({code:jo.SpanStatusCode.ERROR,message:x}),C.end(),K})}}}storeContext(e){return function(){let n=e.apply(this,arguments);return Object.defineProperty(n,mae,{value:jo.context.active()}),n}}ensureWrapped(e,r,n){(0,B_.isWrapped)(e[r])&&this._unwrap(e,r),this._wrap(e,r,n)}};qR.KnexInstrumentation=SU});var Oae=c(Aae=>{"use strict";Object.defineProperty(Aae,"__esModule",{value:!0})});var Iae=c(ms=>{"use strict";var J6e=ms&&ms.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Rae=ms&&ms.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&J6e(e,t,r)};Object.defineProperty(ms,"__esModule",{value:!0});Rae(Sae(),ms);Rae(Oae(),ms)});var vae=c(jR=>{Object.defineProperty(jR,"__esModule",{value:!0});var $6e=Iae(),AU=k(),Q6e=Se(),Pae="Knex",bae=Q6e.generateInstrumentOnce(Pae,()=>new $6e.KnexInstrumentation({requireParentSpan:!0})),e8e=()=>({name:Pae,setupOnce(){bae()},setup(t){t.on("spanStart",e=>{let{data:r}=AU.spanToJSON(e);r&&"knex.version"in r&&e.setAttribute(AU.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.knex")})}}),t8e=AU.defineIntegration(e8e);jR.instrumentKnex=bae;jR.knexIntegration=t8e});var yae=c(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.SeverityNumber=void 0;var r8e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(r8e=H_.SeverityNumber||(H_.SeverityNumber={}))});var BR=c(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.NOOP_LOGGER=xl.NoopLogger=void 0;var VR=class{emit(e){}};xl.NoopLogger=VR;xl.NOOP_LOGGER=new VR});var FR=c(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.NOOP_LOGGER_PROVIDER=Ul.NoopLoggerProvider=void 0;var n8e=BR(),HR=class{getLogger(e,r,n){return new n8e.NoopLogger}};Ul.NoopLoggerProvider=HR;Ul.NOOP_LOGGER_PROVIDER=new HR});var RU=c(kR=>{"use strict";Object.defineProperty(kR,"__esModule",{value:!0});kR.ProxyLogger=void 0;var o8e=BR(),OU=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):o8e.NOOP_LOGGER}};kR.ProxyLogger=OU});var PU=c(WR=>{"use strict";Object.defineProperty(WR,"__esModule",{value:!0});WR.ProxyLoggerProvider=void 0;var i8e=FR(),s8e=RU(),IU=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new s8e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:i8e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};WR.ProxyLoggerProvider=IU});var Nae=c(YR=>{"use strict";Object.defineProperty(YR,"__esModule",{value:!0});YR._globalThis=void 0;YR._globalThis=typeof globalThis=="object"?globalThis:global});var Cae=c(KR=>{"use strict";Object.defineProperty(KR,"__esModule",{value:!0});KR._globalThis=void 0;var a8e=Nae();Object.defineProperty(KR,"_globalThis",{enumerable:!0,get:function(){return a8e._globalThis}})});var Mae=c(XR=>{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});XR._globalThis=void 0;var u8e=Cae();Object.defineProperty(XR,"_globalThis",{enumerable:!0,get:function(){return u8e._globalThis}})});var Lae=c(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.API_BACKWARDS_COMPATIBILITY_VERSION=zn.makeGetter=zn._global=zn.GLOBAL_LOGS_API_KEY=void 0;var c8e=Mae();zn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");zn._global=c8e._globalThis;function l8e(t,e,r){return n=>n===t?e:r}zn.makeGetter=l8e;zn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var Gae=c(ZR=>{"use strict";Object.defineProperty(ZR,"__esModule",{value:!0});ZR.LogsAPI=void 0;var Xr=Lae(),d8e=FR(),Dae=PU(),bU=class t{constructor(){this._proxyLoggerProvider=new Dae.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Xr._global[Xr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Xr._global[Xr.GLOBAL_LOGS_API_KEY]=(0,Xr.makeGetter)(Xr.API_BACKWARDS_COMPATIBILITY_VERSION,e,d8e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Xr._global[Xr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Xr._global,Xr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Xr._global[Xr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new Dae.ProxyLoggerProvider}};ZR.LogsAPI=bU});var vU=c(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.logs=ct.ProxyLoggerProvider=ct.ProxyLogger=ct.NoopLoggerProvider=ct.NOOP_LOGGER_PROVIDER=ct.NoopLogger=ct.NOOP_LOGGER=ct.SeverityNumber=void 0;var p8e=yae();Object.defineProperty(ct,"SeverityNumber",{enumerable:!0,get:function(){return p8e.SeverityNumber}});var xae=BR();Object.defineProperty(ct,"NOOP_LOGGER",{enumerable:!0,get:function(){return xae.NOOP_LOGGER}});Object.defineProperty(ct,"NoopLogger",{enumerable:!0,get:function(){return xae.NoopLogger}});var Uae=FR();Object.defineProperty(ct,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return Uae.NOOP_LOGGER_PROVIDER}});Object.defineProperty(ct,"NoopLoggerProvider",{enumerable:!0,get:function(){return Uae.NoopLoggerProvider}});var _8e=RU();Object.defineProperty(ct,"ProxyLogger",{enumerable:!0,get:function(){return _8e.ProxyLogger}});var f8e=PU();Object.defineProperty(ct,"ProxyLoggerProvider",{enumerable:!0,get:function(){return f8e.ProxyLoggerProvider}});var g8e=Gae();ct.logs=g8e.LogsAPI.getInstance()});var wae=c(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.disableInstrumentations=wl.enableInstrumentations=void 0;function h8e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}wl.enableInstrumentations=h8e;function E8e(t){t.forEach(e=>e.disable())}wl.disableInstrumentations=E8e});var Vae=c(zR=>{"use strict";Object.defineProperty(zR,"__esModule",{value:!0});zR.registerInstrumentations=void 0;var qae=(P(),m(I)),m8e=vU(),jae=wae();function T8e(t){var e,r;let n=t.tracerProvider||qae.trace.getTracerProvider(),o=t.meterProvider||qae.metrics.getMeterProvider(),i=t.loggerProvider||m8e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,jae.enableInstrumentations)(s,n,o,i),()=>{(0,jae.disableInstrumentations)(s)}}zR.registerInstrumentations=T8e});var Bae=c($R=>{"use strict";Object.defineProperty($R,"__esModule",{value:!0});$R.InstrumentationAbstract=void 0;var yU=(P(),m(I)),S8e=vU(),JR=le(),NU=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=JR.wrap,this._unwrap=JR.unwrap,this._massWrap=JR.massWrap,this._massUnwrap=JR.massUnwrap,this.setConfig(n),this._diag=yU.diag.createComponentLogger({namespace:e}),this._tracer=yU.trace.getTracer(e,r),this._meter=yU.metrics.getMeter(e,r),this._logger=S8e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};$R.InstrumentationAbstract=NU});var Hae=c(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ModuleNameTrie=Ts.ModuleNameSeparator=void 0;Ts.ModuleNameSeparator="/";var QR=class{constructor(){this.hooks=[],this.children=new Map}},CU=class{constructor(){this._trie=new QR,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Ts.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new QR,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Ts.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Ts.ModuleNameTrie=CU});var kae=c(eI=>{"use strict";Object.defineProperty(eI,"__esModule",{value:!0});eI.RequireInTheMiddleSingleton=void 0;var A8e=de(),Fae=require("path"),MU=Hae(),O8e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),LU=class t{constructor(){this._moduleNameTrie=new MU.ModuleNameTrie,this._initialize()}_initialize(){new A8e.Hook(null,{internals:!0},(e,r,n)=>{let o=R8e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return O8e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};eI.RequireInTheMiddleSingleton=LU;function R8e(t){return Fae.sep!==MU.ModuleNameSeparator?t.split(Fae.sep).join(MU.ModuleNameSeparator):t}});var DU=c(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isWrapped=Ss.safeExecuteInTheMiddleAsync=Ss.safeExecuteInTheMiddle=void 0;function I8e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ss.safeExecuteInTheMiddle=I8e;async function P8e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ss.safeExecuteInTheMiddleAsync=P8e;function b8e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Ss.isWrapped=b8e});var Kae=c(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.InstrumentationBase=void 0;var F_=require("path"),Wae=require("util"),v8e=Zt(),GU=le(),y8e=Bae(),N8e=kae(),C8e=Jt(),k_=(P(),m(I)),M8e=de(),L8e=require("fs"),D8e=DU(),xU=class extends y8e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=N8e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,D8e.isWrapped)(i[s])&&this._unwrap(i,s),Wae.types.isProxy(i)){let u=(0,GU.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,GU.wrap)(i,s,a)},this._unwrap=(i,s)=>Wae.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,GU.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{k_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){k_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{k_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){k_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,L8e.readFileSync)(F_.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{k_.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return Yae(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=F_.normalize(n);return a.filter(d=>d.name===u).filter(d=>Yae(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>{if(!u&&F_.isAbsolute(a)){let l=F_.parse(a);a=l.name,u=l.dir}return this._onRequire(e,s,a,u)},n=(s,a,u)=>this._onRequire(e,s,a,u),o=F_.isAbsolute(e.name)?new M8e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new C8e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};tI.InstrumentationBase=xU;function Yae(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,v8e.satisfies)(e,n,{includePrerelease:r}))}});var Xae=c(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.normalize=void 0;var G8e=require("path");Object.defineProperty(rI,"normalize",{enumerable:!0,get:function(){return G8e.normalize}})});var Zae=c(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.normalize=ql.InstrumentationBase=void 0;var x8e=Kae();Object.defineProperty(ql,"InstrumentationBase",{enumerable:!0,get:function(){return x8e.InstrumentationBase}});var U8e=Xae();Object.defineProperty(ql,"normalize",{enumerable:!0,get:function(){return U8e.normalize}})});var UU=c(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.normalize=jl.InstrumentationBase=void 0;var zae=Zae();Object.defineProperty(jl,"InstrumentationBase",{enumerable:!0,get:function(){return zae.InstrumentationBase}});Object.defineProperty(jl,"normalize",{enumerable:!0,get:function(){return zae.normalize}})});var Jae=c(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});nI.InstrumentationNodeModuleDefinition=void 0;var wU=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};nI.InstrumentationNodeModuleDefinition=wU});var $ae=c(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.InstrumentationNodeModuleFile=void 0;var w8e=UU(),qU=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,w8e.normalize)(e)}};oI.InstrumentationNodeModuleFile=qU});var Qae=c(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.safeExecuteInTheMiddleAsync=kt.safeExecuteInTheMiddle=kt.isWrapped=kt.InstrumentationNodeModuleFile=kt.InstrumentationNodeModuleDefinition=kt.InstrumentationBase=kt.registerInstrumentations=void 0;var q8e=Vae();Object.defineProperty(kt,"registerInstrumentations",{enumerable:!0,get:function(){return q8e.registerInstrumentations}});var j8e=UU();Object.defineProperty(kt,"InstrumentationBase",{enumerable:!0,get:function(){return j8e.InstrumentationBase}});var V8e=Jae();Object.defineProperty(kt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return V8e.InstrumentationNodeModuleDefinition}});var B8e=$ae();Object.defineProperty(kt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return B8e.InstrumentationNodeModuleFile}});var jU=DU();Object.defineProperty(kt,"isWrapped",{enumerable:!0,get:function(){return jU.isWrapped}});Object.defineProperty(kt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return jU.safeExecuteInTheMiddle}});Object.defineProperty(kt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return jU.safeExecuteInTheMiddleAsync}})});var eue=c(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.once=Vl.getSpanName=void 0;function H8e(t,e,r,n){return t==="execBulkLoad"&&n&&e?`${t} ${n} ${e}`:t==="callProcedure"?e?`${t} ${r} ${e}`:`${t} ${r}`:e?`${t} ${e}`:`${t}`}Vl.getSpanName=H8e;var F8e=t=>{let e=!1;return(...r)=>{if(!e)return e=!0,t(...r)}};Vl.once=F8e});var tue=c(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.PACKAGE_NAME=Bl.PACKAGE_VERSION=void 0;Bl.PACKAGE_VERSION="0.15.0";Bl.PACKAGE_NAME="@opentelemetry/instrumentation-tedious"});var sue=c(uI=>{"use strict";Object.defineProperty(uI,"__esModule",{value:!0});uI.TediousInstrumentation=void 0;var W_=(P(),m(I)),k8e=require("events"),iI=Qae(),As=($(),m(J)),rue=eue(),nue=tue(),iue=Symbol("opentelemetry.instrumentation-tedious.current-database"),oue=["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"];function sI(t){Object.defineProperty(this,iue,{value:t,writable:!0})}var aI=class t extends iI.InstrumentationBase{constructor(e={}){super(nue.PACKAGE_NAME,nue.PACKAGE_VERSION,e)}init(){return[new iI.InstrumentationNodeModuleDefinition(t.COMPONENT,[">=1.11.0 <20"],e=>{let r=e.Connection.prototype;for(let n of oue)(0,iI.isWrapped)(r[n])&&this._unwrap(r,n),this._wrap(r,n,this._patchQuery(n));return(0,iI.isWrapped)(r.connect)&&this._unwrap(r,"connect"),this._wrap(r,"connect",this._patchConnect),e},e=>{if(e===void 0)return;let r=e.Connection.prototype;for(let n of oue)this._unwrap(r,n);this._unwrap(r,"connect")})]}_patchConnect(e){return function(){var n,o;return sI.call(this,(o=(n=this.config)===null||n===void 0?void 0:n.options)===null||o===void 0?void 0:o.database),this.removeListener("databaseChange",sI),this.on("databaseChange",sI),this.once("end",()=>{this.removeListener("databaseChange",sI)}),e.apply(this,arguments)}}_patchQuery(e){return r=>{let n=this;function o(i){var s,a,u,l,d,p,_,f;if(!(i instanceof k8e.EventEmitter))return n._diag.warn(`Unexpected invocation of patched ${e} method. Span not recorded`),r.apply(this,arguments);let g=0,h=0,T=()=>h++,v=()=>g++,N=this[iue],D=(C=>{var G,K;return C.sqlTextOrProcedure==="sp_prepare"&&(!((K=(G=C.parametersByName)===null||G===void 0?void 0:G.stmt)===null||K===void 0)&&K.value)?C.parametersByName.stmt.value:C.sqlTextOrProcedure})(i),L=n.tracer.startSpan((0,rue.getSpanName)(e,N,D,i.table),{kind:W_.SpanKind.CLIENT,attributes:{[As.SEMATTRS_DB_SYSTEM]:As.DBSYSTEMVALUES_MSSQL,[As.SEMATTRS_DB_NAME]:N,[As.SEMATTRS_NET_PEER_PORT]:(a=(s=this.config)===null||s===void 0?void 0:s.options)===null||a===void 0?void 0:a.port,[As.SEMATTRS_NET_PEER_NAME]:(u=this.config)===null||u===void 0?void 0:u.server,[As.SEMATTRS_DB_USER]:(d=(l=this.config)===null||l===void 0?void 0:l.userName)!==null&&d!==void 0?d:(f=(_=(p=this.config)===null||p===void 0?void 0:p.authentication)===null||_===void 0?void 0:_.options)===null||f===void 0?void 0:f.userName,[As.SEMATTRS_DB_STATEMENT]:D,[As.SEMATTRS_DB_SQL_TABLE]:i.table}}),y=(0,rue.once)(C=>{i.removeListener("done",T),i.removeListener("doneInProc",T),i.removeListener("doneProc",v),i.removeListener("error",y),this.removeListener("end",y),L.setAttribute("tedious.procedure_count",g),L.setAttribute("tedious.statement_count",h),C&&L.setStatus({code:W_.SpanStatusCode.ERROR,message:C.message}),L.end()});return i.on("done",T),i.on("doneInProc",T),i.on("doneProc",v),i.once("error",y),this.on("end",y),typeof i.callback=="function"?n._wrap(i,"callback",n._patchCallbackQuery(y)):n._diag.error("Expected request.callback to be a function"),W_.context.with(W_.trace.setSpan(W_.context.active(),L),r,this,...arguments)}return Object.defineProperty(o,"length",{value:r.length,writable:!1}),o}}_patchCallbackQuery(e){return r=>function(n,o,i){return e(n),r.apply(this,arguments)}}};uI.TediousInstrumentation=aI;aI.COMPONENT="tedious"});var uue=c(aue=>{"use strict";Object.defineProperty(aue,"__esModule",{value:!0})});var lue=c(Os=>{"use strict";var W8e=Os&&Os.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cue=Os&&Os.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&W8e(e,t,r)};Object.defineProperty(Os,"__esModule",{value:!0});cue(sue(),Os);cue(uue(),Os)});var BU=c(cI=>{var{_optionalChain:due}=b();Object.defineProperty(cI,"__esModule",{value:!0});var Y8e=lue(),VU=k(),K8e=Se(),X8e=new Set(["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"]),pue="Tedious",_ue=K8e.generateInstrumentOnce(pue,()=>new Y8e.TediousInstrumentation({})),Z8e=()=>({name:pue,setupOnce(){_ue()},setup(t){t.on("spanStart",e=>{let{description:r,data:n}=VU.spanToJSON(e);if(!r||due([n,"optionalAccess",i=>i["db.system"]])!=="mssql")return;let o=due([r,"optionalAccess",i=>i.split,"call",i=>i(" "),"access",i=>i[0]])||"";X8e.has(o)&&e.setAttribute(VU.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.tedious")})}}),z8e=VU.defineIntegration(Z8e);cI.instrumentTedious=_ue;cI.tediousIntegration=z8e});var fue=c(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.PACKAGE_NAME=Hl.PACKAGE_VERSION=void 0;Hl.PACKAGE_VERSION="0.39.0";Hl.PACKAGE_NAME="@opentelemetry/instrumentation-generic-pool"});var hue=c(lI=>{"use strict";Object.defineProperty(lI,"__esModule",{value:!0});lI.GenericPoolInstrumentation=void 0;var Fl=(P(),m(I)),Oa=Ke(),gue=fue(),HU="generic-pool",FU=class extends Oa.InstrumentationBase{constructor(e={}){super(gue.PACKAGE_NAME,gue.PACKAGE_VERSION,e),this._isDisabled=!1}init(){return[new Oa.InstrumentationNodeModuleDefinition(HU,[">=3.0.0 <4"],e=>{let r=e.Pool;return(0,Oa.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquirePatcher.bind(this)),e},e=>{let r=e.Pool;return this._unwrap(r.prototype,"acquire"),e}),new Oa.InstrumentationNodeModuleDefinition(HU,[">=2.4.0 <3"],e=>{let r=e.Pool;return(0,Oa.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),e},e=>{let r=e.Pool;return this._unwrap(r.prototype,"acquire"),e}),new Oa.InstrumentationNodeModuleDefinition(HU,[">=2.0.0 <2.4"],e=>(this._isDisabled=!1,(0,Oa.isWrapped)(e.Pool)&&this._unwrap(e,"Pool"),this._wrap(e,"Pool",this._poolWrapper.bind(this)),e),e=>(this._isDisabled=!0,e))]}_acquirePatcher(e){let r=this;return function(...o){let i=Fl.context.active(),s=r.tracer.startSpan("generic-pool.acquire",{},i);return Fl.context.with(Fl.trace.setSpan(i,s),()=>e.call(this,...o).then(a=>(s.end(),a),a=>{throw s.recordException(a),s.end(),a}))}}_poolWrapper(e){let r=this;return function(){let o=e.apply(this,arguments);return r._wrap(o,"acquire",r._acquireWithCallbacksPatcher.bind(r)),o}}_acquireWithCallbacksPatcher(e){let r=this;return function(o,i){if(r._isDisabled)return e.call(this,o,i);let s=Fl.context.active(),a=r.tracer.startSpan("generic-pool.acquire",{},s);return Fl.context.with(Fl.trace.setSpan(s,a),()=>{e.call(this,(u,l)=>{if(a.end(),o)return o(u,l)},i)})}}};lI.GenericPoolInstrumentation=FU});var Eue=c(Ra=>{"use strict";var J8e=Ra&&Ra.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),$8e=Ra&&Ra.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&J8e(e,t,r)};Object.defineProperty(Ra,"__esModule",{value:!0});$8e(hue(),Ra)});var WU=c(dI=>{Object.defineProperty(dI,"__esModule",{value:!0});var Q8e=Eue(),kU=k(),e7e=Se(),mue="GenericPool",Tue=e7e.generateInstrumentOnce(mue,()=>new Q8e.GenericPoolInstrumentation({})),t7e=()=>({name:mue,setupOnce(){Tue()},setup(t){t.on("spanStart",e=>{let n=kU.spanToJSON(e).description;(n==="generic-pool.aquire"||n==="generic-pool.acquire")&&e.setAttribute(kU.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.generic_pool")})}}),r7e=kU.defineIntegration(t7e);dI.genericPoolIntegration=r7e;dI.instrumentGenericPool=Tue});var Aue=c(Sue=>{"use strict";Object.defineProperty(Sue,"__esModule",{value:!0})});var Oue=c(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.PACKAGE_NAME=kl.PACKAGE_VERSION=void 0;kl.PACKAGE_VERSION="0.12.0";kl.PACKAGE_NAME="@opentelemetry/instrumentation-dataloader"});var Iue=c(pI=>{"use strict";Object.defineProperty(pI,"__esModule",{value:!0});pI.DataloaderInstrumentation=void 0;var Ia=Ke(),nr=(P(),m(I)),Rue=Oue(),YU="dataloader",KU=class extends Ia.InstrumentationBase{constructor(e={}){super(Rue.PACKAGE_NAME,Rue.PACKAGE_VERSION,e)}init(){return[new Ia.InstrumentationNodeModuleDefinition(YU,[">=2.0.0 <3"],e=>(this._patchLoad(e.prototype),this._patchLoadMany(e.prototype),this._getPatchedConstructor(e)),e=>{(0,Ia.isWrapped)(e.prototype.load)&&this._unwrap(e.prototype,"load"),(0,Ia.isWrapped)(e.prototype.loadMany)&&this._unwrap(e.prototype,"loadMany")})]}shouldCreateSpans(){let e=this.getConfig();return nr.trace.getSpan(nr.context.active())!==void 0||!e.requireParentSpan}getSpanName(e,r){let n=e.name;return n==null?`${YU}.${r}`:`${YU}.${r} ${n}`}_getPatchedConstructor(e){let r=e.prototype,n=this;function o(...i){let s=new e(...i);return n.isEnabled()&&((0,Ia.isWrapped)(s._batchLoadFn)&&n._unwrap(s,"_batchLoadFn"),n._wrap(s,"_batchLoadFn",a=>function(...l){var d;if(!n.isEnabled()||!n.shouldCreateSpans())return a.call(this,...l);let p=nr.context.active(),_=n.tracer.startSpan(n.getSpanName(s,"batch"),{links:(d=this._batch)===null||d===void 0?void 0:d.spanLinks},p);return nr.context.with(nr.trace.setSpan(p,_),()=>a.apply(this,l).then(f=>(_.end(),f)).catch(f=>{throw _.recordException(f),_.setStatus({code:nr.SpanStatusCode.ERROR,message:f.message}),_.end(),f}))})),s}return o.prototype=r,o}_patchLoad(e){(0,Ia.isWrapped)(e.load)&&this._unwrap(e,"load"),this._wrap(e,"load",this._getPatchedLoad.bind(this))}_getPatchedLoad(e){let r=this;return function(...o){if(!r.shouldCreateSpans())return e.call(this,...o);let i=nr.context.active(),s=r.tracer.startSpan(r.getSpanName(this,"load"),{kind:nr.SpanKind.CLIENT},i);return nr.context.with(nr.trace.setSpan(i,s),()=>{let a=e.call(this,...o).then(l=>(s.end(),l)).catch(l=>{throw s.recordException(l),s.setStatus({code:nr.SpanStatusCode.ERROR,message:l.message}),s.end(),l}),u=this;return u._batch&&(u._batch.spanLinks||(u._batch.spanLinks=[]),u._batch.spanLinks.push({context:s.spanContext()})),a})}}_patchLoadMany(e){(0,Ia.isWrapped)(e.loadMany)&&this._unwrap(e,"loadMany"),this._wrap(e,"loadMany",this._getPatchedLoadMany.bind(this))}_getPatchedLoadMany(e){let r=this;return function(...o){if(!r.shouldCreateSpans())return e.call(this,...o);let i=nr.context.active(),s=r.tracer.startSpan(r.getSpanName(this,"loadMany"),{kind:nr.SpanKind.CLIENT},i);return nr.context.with(nr.trace.setSpan(i,s),()=>e.call(this,...o).then(a=>(s.end(),a)))}}};pI.DataloaderInstrumentation=KU});var bue=c(Rs=>{"use strict";var n7e=Rs&&Rs.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Pue=Rs&&Rs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&n7e(e,t,r)};Object.defineProperty(Rs,"__esModule",{value:!0});Pue(Aue(),Rs);Pue(Iue(),Rs)});var Nue=c(fI=>{var{_optionalChain:o7e}=b();Object.defineProperty(fI,"__esModule",{value:!0});var i7e=bue(),_I=k(),s7e=Se(),vue="Dataloader",yue=s7e.generateInstrumentOnce(vue,()=>new i7e.DataloaderInstrumentation({requireParentSpan:!0})),a7e=()=>({name:vue,setupOnce(){yue()},setup(t){t.on("spanStart",e=>{let r=_I.spanToJSON(e);o7e([r,"access",n=>n.description,"optionalAccess",n=>n.startsWith,"call",n=>n("dataloader")])&&e.setAttribute(_I.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.dataloader"),(r.description==="dataloader.load"||r.description==="dataloader.loadMany"||r.description==="dataloader.batch")&&e.setAttribute(_I.SEMANTIC_ATTRIBUTE_SENTRY_OP,"cache.get")})}}),u7e=_I.defineIntegration(a7e);fI.dataloaderIntegration=u7e;fI.instrumentDataloader=yue});var Cue=c(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.SeverityNumber=void 0;var c7e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(c7e=Y_.SeverityNumber||(Y_.SeverityNumber={}))});var hI=c(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.NOOP_LOGGER=Wl.NoopLogger=void 0;var gI=class{emit(e){}};Wl.NoopLogger=gI;Wl.NOOP_LOGGER=new gI});var mI=c(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.NOOP_LOGGER_PROVIDER=Yl.NoopLoggerProvider=void 0;var l7e=hI(),EI=class{getLogger(e,r,n){return new l7e.NoopLogger}};Yl.NoopLoggerProvider=EI;Yl.NOOP_LOGGER_PROVIDER=new EI});var ZU=c(TI=>{"use strict";Object.defineProperty(TI,"__esModule",{value:!0});TI.ProxyLogger=void 0;var d7e=hI(),XU=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):d7e.NOOP_LOGGER}};TI.ProxyLogger=XU});var JU=c(SI=>{"use strict";Object.defineProperty(SI,"__esModule",{value:!0});SI.ProxyLoggerProvider=void 0;var p7e=mI(),_7e=ZU(),zU=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new _7e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:p7e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};SI.ProxyLoggerProvider=zU});var Mue=c(AI=>{"use strict";Object.defineProperty(AI,"__esModule",{value:!0});AI._globalThis=void 0;AI._globalThis=typeof globalThis=="object"?globalThis:global});var Lue=c(OI=>{"use strict";Object.defineProperty(OI,"__esModule",{value:!0});OI._globalThis=void 0;var f7e=Mue();Object.defineProperty(OI,"_globalThis",{enumerable:!0,get:function(){return f7e._globalThis}})});var Due=c(RI=>{"use strict";Object.defineProperty(RI,"__esModule",{value:!0});RI._globalThis=void 0;var g7e=Lue();Object.defineProperty(RI,"_globalThis",{enumerable:!0,get:function(){return g7e._globalThis}})});var Gue=c(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.API_BACKWARDS_COMPATIBILITY_VERSION=Jn.makeGetter=Jn._global=Jn.GLOBAL_LOGS_API_KEY=void 0;var h7e=Due();Jn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Jn._global=h7e._globalThis;function E7e(t,e,r){return n=>n===t?e:r}Jn.makeGetter=E7e;Jn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var Uue=c(II=>{"use strict";Object.defineProperty(II,"__esModule",{value:!0});II.LogsAPI=void 0;var Zr=Gue(),m7e=mI(),xue=JU(),$U=class t{constructor(){this._proxyLoggerProvider=new xue.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Zr._global[Zr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Zr._global[Zr.GLOBAL_LOGS_API_KEY]=(0,Zr.makeGetter)(Zr.API_BACKWARDS_COMPATIBILITY_VERSION,e,m7e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Zr._global[Zr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Zr._global,Zr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Zr._global[Zr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new xue.ProxyLoggerProvider}};II.LogsAPI=$U});var QU=c(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.logs=lt.ProxyLoggerProvider=lt.ProxyLogger=lt.NoopLoggerProvider=lt.NOOP_LOGGER_PROVIDER=lt.NoopLogger=lt.NOOP_LOGGER=lt.SeverityNumber=void 0;var T7e=Cue();Object.defineProperty(lt,"SeverityNumber",{enumerable:!0,get:function(){return T7e.SeverityNumber}});var wue=hI();Object.defineProperty(lt,"NOOP_LOGGER",{enumerable:!0,get:function(){return wue.NOOP_LOGGER}});Object.defineProperty(lt,"NoopLogger",{enumerable:!0,get:function(){return wue.NoopLogger}});var que=mI();Object.defineProperty(lt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return que.NOOP_LOGGER_PROVIDER}});Object.defineProperty(lt,"NoopLoggerProvider",{enumerable:!0,get:function(){return que.NoopLoggerProvider}});var S7e=ZU();Object.defineProperty(lt,"ProxyLogger",{enumerable:!0,get:function(){return S7e.ProxyLogger}});var A7e=JU();Object.defineProperty(lt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return A7e.ProxyLoggerProvider}});var O7e=Uue();lt.logs=O7e.LogsAPI.getInstance()});var jue=c(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.disableInstrumentations=Kl.enableInstrumentations=void 0;function R7e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Kl.enableInstrumentations=R7e;function I7e(t){t.forEach(e=>e.disable())}Kl.disableInstrumentations=I7e});var Hue=c(PI=>{"use strict";Object.defineProperty(PI,"__esModule",{value:!0});PI.registerInstrumentations=void 0;var Vue=(P(),m(I)),P7e=QU(),Bue=jue();function b7e(t){var e,r;let n=t.tracerProvider||Vue.trace.getTracerProvider(),o=t.meterProvider||Vue.metrics.getMeterProvider(),i=t.loggerProvider||P7e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,Bue.enableInstrumentations)(s,n,o,i),()=>{(0,Bue.disableInstrumentations)(s)}}PI.registerInstrumentations=b7e});var Fue=c(vI=>{"use strict";Object.defineProperty(vI,"__esModule",{value:!0});vI.InstrumentationAbstract=void 0;var ew=(P(),m(I)),v7e=QU(),bI=le(),tw=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=bI.wrap,this._unwrap=bI.unwrap,this._massWrap=bI.massWrap,this._massUnwrap=bI.massUnwrap,this.setConfig(n),this._diag=ew.diag.createComponentLogger({namespace:e}),this._tracer=ew.trace.getTracer(e,r),this._meter=ew.metrics.getMeter(e,r),this._logger=v7e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};vI.InstrumentationAbstract=tw});var kue=c(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.ModuleNameTrie=Is.ModuleNameSeparator=void 0;Is.ModuleNameSeparator="/";var yI=class{constructor(){this.hooks=[],this.children=new Map}},rw=class{constructor(){this._trie=new yI,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Is.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new yI,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Is.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Is.ModuleNameTrie=rw});var Yue=c(NI=>{"use strict";Object.defineProperty(NI,"__esModule",{value:!0});NI.RequireInTheMiddleSingleton=void 0;var y7e=de(),Wue=require("path"),nw=kue(),N7e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),ow=class t{constructor(){this._moduleNameTrie=new nw.ModuleNameTrie,this._initialize()}_initialize(){new y7e.Hook(null,{internals:!0},(e,r,n)=>{let o=C7e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return N7e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};NI.RequireInTheMiddleSingleton=ow;function C7e(t){return Wue.sep!==nw.ModuleNameSeparator?t.split(Wue.sep).join(nw.ModuleNameSeparator):t}});var iw=c(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.isWrapped=Ps.safeExecuteInTheMiddleAsync=Ps.safeExecuteInTheMiddle=void 0;function M7e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ps.safeExecuteInTheMiddle=M7e;async function L7e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Ps.safeExecuteInTheMiddleAsync=L7e;function D7e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Ps.isWrapped=D7e});var Zue=c(CI=>{"use strict";Object.defineProperty(CI,"__esModule",{value:!0});CI.InstrumentationBase=void 0;var K_=require("path"),Kue=require("util"),G7e=Zt(),sw=le(),x7e=Fue(),U7e=Yue(),w7e=Jt(),X_=(P(),m(I)),q7e=de(),j7e=require("fs"),V7e=iw(),aw=class extends x7e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=U7e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,V7e.isWrapped)(i[s])&&this._unwrap(i,s),Kue.types.isProxy(i)){let u=(0,sw.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,sw.wrap)(i,s,a)},this._unwrap=(i,s)=>Kue.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,sw.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{X_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){X_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{X_.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){X_.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,j7e.readFileSync)(K_.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{X_.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return Xue(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=K_.normalize(n);return a.filter(d=>d.name===u).filter(d=>Xue(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>{if(!u&&K_.isAbsolute(a)){let l=K_.parse(a);a=l.name,u=l.dir}return this._onRequire(e,s,a,u)},n=(s,a,u)=>this._onRequire(e,s,a,u),o=K_.isAbsolute(e.name)?new q7e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new w7e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};CI.InstrumentationBase=aw;function Xue(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,G7e.satisfies)(e,n,{includePrerelease:r}))}});var zue=c(MI=>{"use strict";Object.defineProperty(MI,"__esModule",{value:!0});MI.normalize=void 0;var B7e=require("path");Object.defineProperty(MI,"normalize",{enumerable:!0,get:function(){return B7e.normalize}})});var Jue=c(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.normalize=Xl.InstrumentationBase=void 0;var H7e=Zue();Object.defineProperty(Xl,"InstrumentationBase",{enumerable:!0,get:function(){return H7e.InstrumentationBase}});var F7e=zue();Object.defineProperty(Xl,"normalize",{enumerable:!0,get:function(){return F7e.normalize}})});var uw=c(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.normalize=Zl.InstrumentationBase=void 0;var $ue=Jue();Object.defineProperty(Zl,"InstrumentationBase",{enumerable:!0,get:function(){return $ue.InstrumentationBase}});Object.defineProperty(Zl,"normalize",{enumerable:!0,get:function(){return $ue.normalize}})});var Que=c(LI=>{"use strict";Object.defineProperty(LI,"__esModule",{value:!0});LI.InstrumentationNodeModuleDefinition=void 0;var cw=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};LI.InstrumentationNodeModuleDefinition=cw});var ece=c(DI=>{"use strict";Object.defineProperty(DI,"__esModule",{value:!0});DI.InstrumentationNodeModuleFile=void 0;var k7e=uw(),lw=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,k7e.normalize)(e)}};DI.InstrumentationNodeModuleFile=lw});var tce=c(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.safeExecuteInTheMiddleAsync=Wt.safeExecuteInTheMiddle=Wt.isWrapped=Wt.InstrumentationNodeModuleFile=Wt.InstrumentationNodeModuleDefinition=Wt.InstrumentationBase=Wt.registerInstrumentations=void 0;var W7e=Hue();Object.defineProperty(Wt,"registerInstrumentations",{enumerable:!0,get:function(){return W7e.registerInstrumentations}});var Y7e=uw();Object.defineProperty(Wt,"InstrumentationBase",{enumerable:!0,get:function(){return Y7e.InstrumentationBase}});var K7e=Que();Object.defineProperty(Wt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return K7e.InstrumentationNodeModuleDefinition}});var X7e=ece();Object.defineProperty(Wt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return X7e.InstrumentationNodeModuleFile}});var dw=iw();Object.defineProperty(Wt,"isWrapped",{enumerable:!0,get:function(){return dw.isWrapped}});Object.defineProperty(Wt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return dw.safeExecuteInTheMiddle}});Object.defineProperty(Wt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return dw.safeExecuteInTheMiddleAsync}})});var pw=c(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.DEFAULT_CONFIG=Pa.EndOperation=void 0;var Z7e;(function(t){t.AutoAck="auto ack",t.Ack="ack",t.AckAll="ackAll",t.Reject="reject",t.Nack="nack",t.NackAll="nackAll",t.ChannelClosed="channel closed",t.ChannelError="channel error",t.InstrumentationTimeout="instrumentation timeout"})(Z7e=Pa.EndOperation||(Pa.EndOperation={}));Pa.DEFAULT_CONFIG={consumeTimeoutMs:1e3*60,useLinksForConsume:!1}});var ice=c(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.isConfirmChannelTracing=Me.unmarkConfirmChannelTracing=Me.markConfirmChannelTracing=Me.getConnectionAttributesFromUrl=Me.getConnectionAttributesFromServer=Me.normalizeExchange=Me.CONNECTION_ATTRIBUTES=Me.CHANNEL_CONSUME_TIMEOUT_TIMER=Me.CHANNEL_SPANS_NOT_ENDED=Me.MESSAGE_STORED_SPAN=void 0;var _w=(P(),m(I)),Bo=($(),m(J));Me.MESSAGE_STORED_SPAN=Symbol("opentelemetry.amqplib.message.stored-span");Me.CHANNEL_SPANS_NOT_ENDED=Symbol("opentelemetry.amqplib.channel.spans-not-ended");Me.CHANNEL_CONSUME_TIMEOUT_TIMER=Symbol("opentelemetry.amqplib.channel.consumer-timeout-timer");Me.CONNECTION_ATTRIBUTES=Symbol("opentelemetry.amqplib.connection.attributes");var fw=(0,_w.createContextKey)("opentelemetry.amqplib.channel.is-confirm-channel"),z7e=t=>t!==""?t:"<default>";Me.normalizeExchange=z7e;var J7e=t=>t.replace(/:[^:@/]*@/,":***@"),rce=(t,e)=>t||(e==="AMQP"?5672:5671),nce=t=>{let e=t||"amqp";return(e.endsWith(":")?e.substring(0,e.length-1):e).toUpperCase()},oce=t=>t||"localhost",zl=(t,e,r,n)=>r?{[e]:r}:(_w.diag.error(`amqplib instrumentation: could not extract connection attribute ${n} from user supplied url`,{url:t}),{}),$7e=t=>{var e,r;let n=(r=(e=t.serverProperties.product)===null||e===void 0?void 0:e.toLowerCase)===null||r===void 0?void 0:r.call(e);return n?{[Bo.SEMATTRS_MESSAGING_SYSTEM]:n}:{}};Me.getConnectionAttributesFromServer=$7e;var Q7e=t=>{let e={[Bo.SEMATTRS_MESSAGING_PROTOCOL_VERSION]:"0.9.1"};if(t=t||"amqp://localhost",typeof t=="object"){let r=t,n=nce(r?.protocol);Object.assign(e,Object.assign({},zl(t,Bo.SEMATTRS_MESSAGING_PROTOCOL,n,"protocol")));let o=oce(r?.hostname);Object.assign(e,Object.assign({},zl(t,Bo.SEMATTRS_NET_PEER_NAME,o,"hostname")));let i=rce(r.port,n);Object.assign(e,Object.assign({},zl(t,Bo.SEMATTRS_NET_PEER_PORT,i,"port")))}else{let r=J7e(t);e[Bo.SEMATTRS_MESSAGING_URL]=r;try{let n=new URL(r),o=nce(n.protocol);Object.assign(e,Object.assign({},zl(r,Bo.SEMATTRS_MESSAGING_PROTOCOL,o,"protocol")));let i=oce(n.hostname);Object.assign(e,Object.assign({},zl(r,Bo.SEMATTRS_NET_PEER_NAME,i,"hostname")));let s=rce(n.port?parseInt(n.port):void 0,o);Object.assign(e,Object.assign({},zl(r,Bo.SEMATTRS_NET_PEER_PORT,s,"port")))}catch(n){_w.diag.error("amqplib instrumentation: error while extracting connection details from connection url",{censoredUrl:r,err:n})}}return e};Me.getConnectionAttributesFromUrl=Q7e;var eet=t=>t.setValue(fw,!0);Me.markConfirmChannelTracing=eet;var tet=t=>t.deleteValue(fw);Me.unmarkConfirmChannelTracing=tet;var ret=t=>t.getValue(fw)===!0;Me.isConfirmChannelTracing=ret});var sce=c(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.PACKAGE_NAME=Jl.PACKAGE_VERSION=void 0;Jl.PACKAGE_VERSION="0.43.0";Jl.PACKAGE_NAME="@opentelemetry/instrumentation-amqplib"});var uce=c(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.AmqplibInstrumentation=void 0;var Ne=(P(),m(I)),GI=ae(),se=tce(),fr=($(),m(J)),or=pw(),Le=ice(),ace=sce(),xI=[">=0.5.5 <1"],gw=class extends se.InstrumentationBase{constructor(e={}){super(ace.PACKAGE_NAME,ace.PACKAGE_VERSION,Object.assign(Object.assign({},or.DEFAULT_CONFIG),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},or.DEFAULT_CONFIG),e))}init(){let e=new se.InstrumentationNodeModuleFile("amqplib/lib/channel_model.js",xI,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),r=new se.InstrumentationNodeModuleFile("amqplib/lib/callback_model.js",xI,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),n=new se.InstrumentationNodeModuleFile("amqplib/lib/connect.js",xI,this.patchConnect.bind(this),this.unpatchConnect.bind(this));return new se.InstrumentationNodeModuleDefinition("amqplib",xI,void 0,void 0,[e,n,r])}patchConnect(e){return e=this.unpatchConnect(e),(0,se.isWrapped)(e.connect)||this._wrap(e,"connect",this.getConnectPatch.bind(this)),e}unpatchConnect(e){return(0,se.isWrapped)(e.connect)&&this._unwrap(e,"connect"),e}patchChannelModel(e,r){return(0,se.isWrapped)(e.Channel.prototype.publish)||this._wrap(e.Channel.prototype,"publish",this.getPublishPatch.bind(this,r)),(0,se.isWrapped)(e.Channel.prototype.consume)||this._wrap(e.Channel.prototype,"consume",this.getConsumePatch.bind(this,r)),(0,se.isWrapped)(e.Channel.prototype.ack)||this._wrap(e.Channel.prototype,"ack",this.getAckPatch.bind(this,!1,or.EndOperation.Ack)),(0,se.isWrapped)(e.Channel.prototype.nack)||this._wrap(e.Channel.prototype,"nack",this.getAckPatch.bind(this,!0,or.EndOperation.Nack)),(0,se.isWrapped)(e.Channel.prototype.reject)||this._wrap(e.Channel.prototype,"reject",this.getAckPatch.bind(this,!0,or.EndOperation.Reject)),(0,se.isWrapped)(e.Channel.prototype.ackAll)||this._wrap(e.Channel.prototype,"ackAll",this.getAckAllPatch.bind(this,!1,or.EndOperation.AckAll)),(0,se.isWrapped)(e.Channel.prototype.nackAll)||this._wrap(e.Channel.prototype,"nackAll",this.getAckAllPatch.bind(this,!0,or.EndOperation.NackAll)),(0,se.isWrapped)(e.Channel.prototype.emit)||this._wrap(e.Channel.prototype,"emit",this.getChannelEmitPatch.bind(this)),(0,se.isWrapped)(e.ConfirmChannel.prototype.publish)||this._wrap(e.ConfirmChannel.prototype,"publish",this.getConfirmedPublishPatch.bind(this,r)),e}unpatchChannelModel(e){return(0,se.isWrapped)(e.Channel.prototype.publish)&&this._unwrap(e.Channel.prototype,"publish"),(0,se.isWrapped)(e.Channel.prototype.consume)&&this._unwrap(e.Channel.prototype,"consume"),(0,se.isWrapped)(e.Channel.prototype.ack)&&this._unwrap(e.Channel.prototype,"ack"),(0,se.isWrapped)(e.Channel.prototype.nack)&&this._unwrap(e.Channel.prototype,"nack"),(0,se.isWrapped)(e.Channel.prototype.reject)&&this._unwrap(e.Channel.prototype,"reject"),(0,se.isWrapped)(e.Channel.prototype.ackAll)&&this._unwrap(e.Channel.prototype,"ackAll"),(0,se.isWrapped)(e.Channel.prototype.nackAll)&&this._unwrap(e.Channel.prototype,"nackAll"),(0,se.isWrapped)(e.Channel.prototype.emit)&&this._unwrap(e.Channel.prototype,"emit"),(0,se.isWrapped)(e.ConfirmChannel.prototype.publish)&&this._unwrap(e.ConfirmChannel.prototype,"publish"),e}getConnectPatch(e){return function(n,o,i){return e.call(this,n,o,function(s,a){if(s==null){let u=(0,Le.getConnectionAttributesFromUrl)(n),l=(0,Le.getConnectionAttributesFromServer)(a);a[Le.CONNECTION_ATTRIBUTES]=Object.assign(Object.assign({},u),l)}i.apply(this,arguments)})}}getChannelEmitPatch(e){let r=this;return function(o){if(o==="close"){r.endAllSpansOnChannel(this,!0,or.EndOperation.ChannelClosed,void 0);let i=this[Le.CHANNEL_CONSUME_TIMEOUT_TIMER];i&&clearInterval(i),this[Le.CHANNEL_CONSUME_TIMEOUT_TIMER]=void 0}else o==="error"&&r.endAllSpansOnChannel(this,!0,or.EndOperation.ChannelError,void 0);return e.apply(this,arguments)}}getAckAllPatch(e,r,n){let o=this;return function(s){return o.endAllSpansOnChannel(this,e,r,s),n.apply(this,arguments)}}getAckPatch(e,r,n){let o=this;return function(s,a,u){var l;let d=this,p=r===or.EndOperation.Reject?a:u,_=(l=d[Le.CHANNEL_SPANS_NOT_ENDED])!==null&&l!==void 0?l:[],f=_.findIndex(g=>g.msg===s);if(f<0)o.endConsumerSpan(s,e,r,p);else if(r!==or.EndOperation.Reject&&a){for(let g=0;g<=f;g++)o.endConsumerSpan(_[g].msg,e,r,p);_.splice(0,f+1)}else o.endConsumerSpan(s,e,r,p),_.splice(f,1);return n.apply(this,arguments)}}getConsumePatch(e,r){let n=this;return function(i,s,a){let u=this;if(!Object.prototype.hasOwnProperty.call(u,Le.CHANNEL_SPANS_NOT_ENDED)){let{consumeTimeoutMs:d}=n.getConfig();if(d){let p=setInterval(()=>{n.checkConsumeTimeoutOnChannel(u)},d);p.unref(),u[Le.CHANNEL_CONSUME_TIMEOUT_TIMER]=p}u[Le.CHANNEL_SPANS_NOT_ENDED]=[]}let l=function(d){var p,_,f,g,h;if(!d)return s.call(this,d);let T=(p=d.properties.headers)!==null&&p!==void 0?p:{},v=Ne.propagation.extract(Ne.ROOT_CONTEXT,T),N=(_=d.fields)===null||_===void 0?void 0:_.exchange,D;if(n._config.useLinksForConsume){let G=v?(f=Ne.trace.getSpan(v))===null||f===void 0?void 0:f.spanContext():void 0;v=void 0,G&&(D=[{context:G}])}let L=n.tracer.startSpan(`${i} process`,{kind:Ne.SpanKind.CONSUMER,attributes:Object.assign(Object.assign({},(g=u?.connection)===null||g===void 0?void 0:g[Le.CONNECTION_ATTRIBUTES]),{[fr.SEMATTRS_MESSAGING_DESTINATION]:N,[fr.SEMATTRS_MESSAGING_DESTINATION_KIND]:fr.MESSAGINGDESTINATIONKINDVALUES_TOPIC,[fr.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY]:(h=d.fields)===null||h===void 0?void 0:h.routingKey,[fr.SEMATTRS_MESSAGING_OPERATION]:fr.MESSAGINGOPERATIONVALUES_PROCESS,[fr.SEMATTRS_MESSAGING_MESSAGE_ID]:d?.properties.messageId,[fr.SEMATTRS_MESSAGING_CONVERSATION_ID]:d?.properties.correlationId}),links:D},v),{consumeHook:y}=n.getConfig();y&&(0,se.safeExecuteInTheMiddle)(()=>y(L,{moduleVersion:e,msg:d}),G=>{G&&Ne.diag.error("amqplib instrumentation: consumerHook error",G)},!0),a?.noAck||(u[Le.CHANNEL_SPANS_NOT_ENDED].push({msg:d,timeOfConsume:(0,GI.hrTime)()}),d[Le.MESSAGE_STORED_SPAN]=L);let C=v||Ne.ROOT_CONTEXT;Ne.context.with(Ne.trace.setSpan(C,L),()=>{s.call(this,d)}),a?.noAck&&(n.callConsumeEndHook(L,d,!1,or.EndOperation.AutoAck),L.end())};return arguments[1]=l,r.apply(this,arguments)}}getConfirmedPublishPatch(e,r){let n=this;return function(i,s,a,u,l){let d=this,{span:p,modifiedOptions:_}=n.createPublishSpan(n,i,s,d,u),{publishHook:f}=n.getConfig();f&&(0,se.safeExecuteInTheMiddle)(()=>f(p,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:_,isConfirmChannel:!0}),v=>{v&&Ne.diag.error("amqplib instrumentation: publishHook error",v)},!0);let g=function(v,N){try{l?.call(this,v,N)}finally{let{publishConfirmHook:D}=n.getConfig();D&&(0,se.safeExecuteInTheMiddle)(()=>D(p,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:u,isConfirmChannel:!0,confirmError:v}),L=>{L&&Ne.diag.error("amqplib instrumentation: publishConfirmHook error",L)},!0),v&&p.setStatus({code:Ne.SpanStatusCode.ERROR,message:"message confirmation has been nack'ed"}),p.end()}},h=(0,Le.markConfirmChannelTracing)(Ne.context.active()),T=[...arguments];return T[3]=_,T[4]=Ne.context.bind((0,Le.unmarkConfirmChannelTracing)(Ne.trace.setSpan(h,p)),g),Ne.context.with(h,r.bind(this,...T))}}getPublishPatch(e,r){let n=this;return function(i,s,a,u){if((0,Le.isConfirmChannelTracing)(Ne.context.active()))return r.apply(this,arguments);{let l=this,{span:d,modifiedOptions:p}=n.createPublishSpan(n,i,s,l,u),{publishHook:_}=n.getConfig();_&&(0,se.safeExecuteInTheMiddle)(()=>_(d,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:p,isConfirmChannel:!1}),h=>{h&&Ne.diag.error("amqplib instrumentation: publishHook error",h)},!0);let f=[...arguments];f[3]=p;let g=r.apply(this,f);return d.end(),g}}}createPublishSpan(e,r,n,o,i){var s;let a=(0,Le.normalizeExchange)(r),u=e.tracer.startSpan(`publish ${a}`,{kind:Ne.SpanKind.PRODUCER,attributes:Object.assign(Object.assign({},o.connection[Le.CONNECTION_ATTRIBUTES]),{[fr.SEMATTRS_MESSAGING_DESTINATION]:r,[fr.SEMATTRS_MESSAGING_DESTINATION_KIND]:fr.MESSAGINGDESTINATIONKINDVALUES_TOPIC,[fr.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY]:n,[fr.SEMATTRS_MESSAGING_MESSAGE_ID]:i?.messageId,[fr.SEMATTRS_MESSAGING_CONVERSATION_ID]:i?.correlationId})}),l=i??{};return l.headers=(s=l.headers)!==null&&s!==void 0?s:{},Ne.propagation.inject(Ne.trace.setSpan(Ne.context.active(),u),l.headers),{span:u,modifiedOptions:l}}endConsumerSpan(e,r,n,o){let i=e[Le.MESSAGE_STORED_SPAN];i&&(r!==!1&&i.setStatus({code:Ne.SpanStatusCode.ERROR,message:n!==or.EndOperation.ChannelClosed&&n!==or.EndOperation.ChannelError?`${n} called on message${o===!0?" with requeue":o===!1?" without requeue":""}`:n}),this.callConsumeEndHook(i,e,r,n),i.end(),e[Le.MESSAGE_STORED_SPAN]=void 0)}endAllSpansOnChannel(e,r,n,o){var i;((i=e[Le.CHANNEL_SPANS_NOT_ENDED])!==null&&i!==void 0?i:[]).forEach(a=>{this.endConsumerSpan(a.msg,r,n,o)}),e[Le.CHANNEL_SPANS_NOT_ENDED]=[]}callConsumeEndHook(e,r,n,o){let{consumeEndHook:i}=this.getConfig();i&&(0,se.safeExecuteInTheMiddle)(()=>i(e,{msg:r,rejected:n,endOperation:o}),s=>{s&&Ne.diag.error("amqplib instrumentation: consumerEndHook error",s)},!0)}checkConsumeTimeoutOnChannel(e){var r;let n=(0,GI.hrTime)(),o=(r=e[Le.CHANNEL_SPANS_NOT_ENDED])!==null&&r!==void 0?r:[],i,{consumeTimeoutMs:s}=this.getConfig();for(i=0;i<o.length;i++){let a=o[i],u=(0,GI.hrTimeDuration)(a.timeOfConsume,n);if((0,GI.hrTimeToMilliseconds)(u)<s)break;this.endConsumerSpan(a.msg,null,or.EndOperation.InstrumentationTimeout,!0)}o.splice(0,i)}};UI.AmqplibInstrumentation=gw});var lce=c(bs=>{"use strict";var net=bs&&bs.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cce=bs&&bs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&net(e,t,r)};Object.defineProperty(bs,"__esModule",{value:!0});cce(uce(),bs);cce(pw(),bs)});var hw=c(wI=>{Object.defineProperty(wI,"__esModule",{value:!0});var oet=lce(),iet=k(),set=Se(),dce=Cn(),pce="Amqplib",aet={consumeEndHook:t=>{dce.addOriginToSpan(t,"auto.amqplib.otel.consumer")},publishHook:t=>{dce.addOriginToSpan(t,"auto.amqplib.otel.publisher")}},_ce=set.generateInstrumentOnce(pce,()=>new oet.AmqplibInstrumentation(aet)),uet=()=>({name:pce,setupOnce(){_ce()}}),cet=iet.defineIntegration(uet);wI.amqplibIntegration=cet;wI.instrumentAmqplib=_ce});var Ew=c(jI=>{Object.defineProperty(jI,"__esModule",{value:!0});var fce=require("node:diagnostics_channel"),qI=k(),det="ProcessAndThreadBreadcrumbs",gce=qI.defineIntegration((t={})=>({name:det,setup(e){fce.channel("child_process").subscribe(r=>{r&&typeof r=="object"&&"process"in r&&_et(r.process,t)}),fce.channel("worker_threads").subscribe(r=>{r&&typeof r=="object"&&"worker"in r&&fet(r.worker)})}})),pet=gce;function _et(t,e){let r=!1,n;t.on("spawn",()=>{if(t.spawnfile==="/usr/bin/sw_vers"){r=!0;return}n={spawnfile:t.spawnfile},e.includeChildProcessArgs&&(n.spawnargs=t.spawnargs)}).on("exit",o=>{r||(r=!0,o!==null&&o!==0&&qI.addBreadcrumb({category:"child_process",message:`Child process exited with code '${o}'`,level:"warning",data:n}))}).on("error",o=>{r||(r=!0,qI.addBreadcrumb({category:"child_process",message:`Child process errored with '${o.message}'`,level:"error",data:n}))})}function fet(t){let e;t.on("online",()=>{e=t.threadId}).on("error",r=>{qI.addBreadcrumb({category:"worker_thread",message:`Worker thread errored with '${r.message}'`,level:"error",data:{threadId:e}})})}jI.childProcessIntegration=gce;jI.processThreadBreadcrumbIntegration=pet});var Tw=c(VI=>{"use strict";Object.defineProperty(VI,"__esModule",{value:!0});VI.AbstractAsyncHooksContextManager=void 0;var get=require("events"),het=["addListener","on","once","prependListener","prependOnceListener"],mw=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,r){return r instanceof get.EventEmitter?this._bindEventEmitter(e,r):typeof r=="function"?this._bindFunction(e,r):r}_bindFunction(e,r){let n=this,o=function(...i){return n.with(e,()=>r.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}_bindEventEmitter(e,r){return this._getPatchMap(r)!==void 0||(this._createPatchMap(r),het.forEach(o=>{r[o]!==void 0&&(r[o]=this._patchAddListener(r,r[o],e))}),typeof r.removeListener=="function"&&(r.removeListener=this._patchRemoveListener(r,r.removeListener)),typeof r.off=="function"&&(r.off=this._patchRemoveListener(r,r.off)),typeof r.removeAllListeners=="function"&&(r.removeAllListeners=this._patchRemoveAllListeners(r,r.removeAllListeners))),r}_patchRemoveListener(e,r){let n=this;return function(o,i){var s;let a=(s=n._getPatchMap(e))===null||s===void 0?void 0:s[o];if(a===void 0)return r.call(this,o,i);let u=a.get(i);return r.call(this,o,u||i)}}_patchRemoveAllListeners(e,r){let n=this;return function(o){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[o]!==void 0&&delete i[o]),r.apply(this,arguments)}}_patchAddListener(e,r,n){let o=this;return function(i,s){if(o._wrapped)return r.call(this,i,s);let a=o._getPatchMap(e);a===void 0&&(a=o._createPatchMap(e));let u=a[i];u===void 0&&(u=new WeakMap,a[i]=u);let l=o.bind(n,s);u.set(s,l),o._wrapped=!0;try{return r.call(this,i,l)}finally{o._wrapped=!1}}}_createPatchMap(e){let r=Object.create(null);return e[this._kOtListeners]=r,r}_getPatchMap(e){return e[this._kOtListeners]}};VI.AbstractAsyncHooksContextManager=mw});var hce=c(BI=>{"use strict";Object.defineProperty(BI,"__esModule",{value:!0});BI.AsyncHooksContextManager=void 0;var Eet=(P(),m(I)),met=require("async_hooks"),Tet=Tw(),Sw=class extends Tet.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=met.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(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:Eet.ROOT_CONTEXT}with(e,r,n,...o){this._enterContext(e);try{return r.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,r){if(r==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let r=this._contexts.get(e);r!==void 0&&this._enterContext(r)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};BI.AsyncHooksContextManager=Sw});var Ece=c(HI=>{"use strict";Object.defineProperty(HI,"__esModule",{value:!0});HI.AsyncLocalStorageContextManager=void 0;var Aet=(P(),m(I)),Oet=require("async_hooks"),Ret=Tw(),Aw=class extends Ret.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Oet.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Aet.ROOT_CONTEXT}with(e,r,n,...o){let i=n==null?r:r.bind(n);return this._asyncLocalStorage.run(e,i,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};HI.AsyncLocalStorageContextManager=Aw});var mce=c($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.AsyncLocalStorageContextManager=$l.AsyncHooksContextManager=void 0;var Iet=hce();Object.defineProperty($l,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Iet.AsyncHooksContextManager}});var Pet=Ece();Object.defineProperty($l,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Pet.AsyncLocalStorageContextManager}})});var Rw=c(Ow=>{Object.defineProperty(Ow,"__esModule",{value:!0});var bet=mce(),vet=Oo(),yet=vet.wrapContextManagerClass(bet.AsyncLocalStorageContextManager);Ow.SentryContextManager=yet});var kI=c(FI=>{Object.defineProperty(FI,"__esModule",{value:!0});var Net=fT(),Tce=hw(),Sce=eU(),Ace=L1(),Oce=rD(),Rce=WU(),Ice=vD(),Iw=vx(),Pce=XD(),bce=Mx(),vce=zD(),yce=mG(),Nce=OG(),Cce=PG(),Mce=NG(),Lce=WG(),Dce=JG(),Gce=GG(),xce=BU();function Cet(){return[Ace.expressIntegration(),Oce.fastifyIntegration(),Ice.graphqlIntegration(),yce.mongoIntegration(),Nce.mongooseIntegration(),Cce.mysqlIntegration(),Mce.mysql2Integration(),Gce.redisIntegration(),Dce.postgresIntegration(),Lce.nestIntegration(),Iw.hapiIntegration(),bce.koaIntegration(),Sce.connectIntegration(),xce.tediousIntegration(),Rce.genericPoolIntegration(),Pce.kafkaIntegration(),Tce.amqplibIntegration(),vce.lruMemoizerIntegration()]}function Met(){return[Net.instrumentOtelHttp,Ace.instrumentExpress,Sce.instrumentConnect,Oce.instrumentFastify,Iw.instrumentHapi,Pce.instrumentKafka,bce.instrumentKoa,vce.instrumentLruMemoizer,Lce.instrumentNest,yce.instrumentMongo,Nce.instrumentMongoose,Cce.instrumentMysql,Mce.instrumentMysql2,Dce.instrumentPostgres,Iw.instrumentHapi,Ice.instrumentGraphql,Gce.instrumentRedis,xce.instrumentTedious,Rce.instrumentGenericPool,Tce.instrumentAmqplib]}FI.getAutoPerformanceIntegrations=Cet;FI.getOpenTelemetryInstrumentationToPreload=Met});var qce=c(bw=>{var{_nullishCoalesce:Uce}=b();Object.defineProperty(bw,"__esModule",{value:!0});var wce=require("node:http");require("node:https");var $n=Symbol("AgentBaseInternalState"),Pw=class extends wce.Agent{constructor(e){super(e),this[$n]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
33
+ `).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,o)).then(i=>{if(i instanceof wce.Agent)return i.addRequest(e,o);this[$n].currentSocket=i,super.createSocket(e,r,n)},n)}createConnection(){let e=this[$n].currentSocket;if(this[$n].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return Uce(this[$n].defaultPort,()=>this.protocol==="https:"?443:80)}set defaultPort(e){this[$n]&&(this[$n].defaultPort=e)}get protocol(){return Uce(this[$n].protocol,()=>this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[$n]&&(this[$n].protocol=e)}};bw.Agent=Pw});var jce=c(vw=>{Object.defineProperty(vw,"__esModule",{value:!0});var Let=b();function WI(...t){Let.logger.log("[https-proxy-agent:parse-proxy-response]",...t)}function Det(t){return new Promise((e,r)=>{let n=0,o=[];function i(){let d=t.read();d?l(d):t.once("readable",i)}function s(){t.removeListener("end",a),t.removeListener("error",u),t.removeListener("readable",i)}function a(){s(),WI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function u(d){s(),WI("onerror %o",d),r(d)}function l(d){o.push(d),n+=d.length;let p=Buffer.concat(o,n),_=p.indexOf(`\r
34
+ \r
35
+ `);if(_===-1){WI("have not received end of HTTP headers yet..."),i();return}let f=p.slice(0,_).toString("ascii").split(`\r
36
+ `),g=f.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=g.split(" "),T=+(h[1]||0),v=h.slice(2).join(" "),N={};for(let D of f){if(!D)continue;let L=D.indexOf(":");if(L===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${D}"`));let y=D.slice(0,L).toLowerCase(),C=D.slice(L+1).trimStart(),G=N[y];typeof G=="string"?N[y]=[G,C]:Array.isArray(G)?G.push(C):N[y]=C}WI("got proxy server response: %o %o",g,N),s(),e({connect:{statusCode:T,statusText:v,headers:N},buffered:p})}t.on("error",u),t.on("end",a),i()})}vw.parseProxyResponse=Det});var Hce=c(yw=>{var{_nullishCoalesce:Get,_optionalChain:xet}=b();Object.defineProperty(yw,"__esModule",{value:!0});var Z_=require("node:net"),Vce=require("node:tls"),Uet=b(),wet=qce(),qet=jce();function z_(...t){Uet.logger.log("[https-proxy-agent]",...t)}var YI=class extends wet.Agent{static __initStatic(){this.protocols=["http","https"]}constructor(e,r){super(r),this.options={},this.proxy=typeof e=="string"?new URL(e):e,this.proxyHeaders=Get(xet([r,"optionalAccess",i=>i.headers]),()=>({})),z_("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Bce(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;if(n.protocol==="https:"){z_("Creating `tls.Socket`: %o",this.connectOpts);let _=this.connectOpts.servername||this.connectOpts.host;o=Vce.connect({...this.connectOpts,servername:_&&Z_.isIP(_)?void 0:_})}else z_("Creating `net.Socket`: %o",this.connectOpts),o=Z_.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=Z_.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${s}:${r.port} HTTP/1.1\r
37
+ `;if(n.username||n.password){let _=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(_).toString("base64")}`}i.Host=`${s}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let _ of Object.keys(i))a+=`${_}: ${i[_]}\r
38
+ `;let u=qet.parseProxyResponse(o);o.write(`${a}\r
39
+ `);let{connect:l,buffered:d}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",jet),r.secureEndpoint){z_("Upgrading socket connection to TLS");let _=r.servername||r.host;return Vce.connect({...Bce(r,"host","path","port"),socket:o,servername:Z_.isIP(_)?void 0:_})}return o}o.destroy();let p=new Z_.Socket({writable:!1});return p.readable=!0,e.once("socket",_=>{z_("Replaying proxy buffer for failed request"),_.push(d),_.push(null)}),p}};YI.__initStatic();function jet(t){t.resume()}function Bce(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}yw.HttpsProxyAgent=YI});var Lw=c(Mw=>{var{_nullishCoalesce:Nw}=b();Object.defineProperty(Mw,"__esModule",{value:!0});var Vet=require("node:http"),Bet=require("node:https"),Het=require("node:stream"),Fet=require("node:zlib"),Cw=k(),ket=b(),Wet=Hce(),Yet=1024*32;function Ket(t){return new Het.Readable({read(){this.push(t),this.push(null)}})}function Xet(t){let e;try{e=new URL(t.url)}catch{return ket.consoleSandbox(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),Cw.createTransport(t,()=>Promise.resolve({}))}let r=e.protocol==="https:",n=Zet(e,t.proxy||(r?process.env.https_proxy:void 0)||process.env.http_proxy),o=r?Bet:Vet,i=t.keepAlive===void 0?!1:t.keepAlive,s=n?new Wet.HttpsProxyAgent(n):new o.Agent({keepAlive:i,maxSockets:30,timeout:2e3}),a=zet(t,Nw(t.httpModule,()=>o),s);return Cw.createTransport(t,a)}function Zet(t,e){let{no_proxy:r}=process.env;if(!(r&&r.split(",").some(o=>t.host.endsWith(o)||t.hostname.endsWith(o))))return e}function zet(t,e,r){let{hostname:n,pathname:o,port:i,protocol:s,search:a}=new URL(t.url);return function(l){return new Promise((d,p)=>{Cw.suppressTracing(()=>{let _=Ket(l.body),f={...t.headers};l.body.length>Yet&&(f["content-encoding"]="gzip",_=_.pipe(Fet.createGzip()));let g=e.request({method:"POST",agent:r,headers:f,hostname:n,path:`${o}${a}`,port:i,protocol:s,ca:t.caCerts},h=>{h.on("data",()=>{}),h.on("end",()=>{}),h.setEncoding("utf8");let T=Nw(h.headers["retry-after"],()=>null),v=Nw(h.headers["x-sentry-rate-limits"],()=>null);d({statusCode:h.statusCode,headers:{"retry-after":T,"x-sentry-rate-limits":Array.isArray(v)?v[0]||null:v}})});g.on("error",p),_.pipe(g)})})}}Mw.makeNodeTransport=Xet});var Wce=c(J_=>{Object.defineProperty(J_,"__esModule",{value:!0});var Fce=new Set(["false","f","n","no","off","0"]),kce=new Set(["true","t","y","yes","on","1"]);function Jet(t,e){let r=String(t).toLowerCase();return Fce.has(r)?!1:kce.has(r)?!0:e&&e.strict?null:!!t}J_.FALSY_ENV_VALUES=Fce;J_.TRUTHY_ENV_VALUES=kce;J_.envToBool=Jet});var Gw=c(Dw=>{Object.defineProperty(Dw,"__esModule",{value:!0});var Yce=require("node:path"),$et=b();function Kce(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function Qet(t=process.argv[1]?$et.dirname(process.argv[1]):process.cwd(),e=Yce.sep==="\\"){let r=e?Kce(t):t;return n=>{if(!n)return;let o=e?Kce(n):n,{dir:i,base:s,ext:a}=Yce.posix.parse(o);(a===".js"||a===".mjs"||a===".cjs")&&(s=s.slice(0,a.length*-1)),i||(i=".");let u=i.lastIndexOf("/node_modules");if(u>-1)return`${i.slice(u+14).replace(/\//g,".")}:${s}`;if(i.startsWith(r)){let l=i.slice(r.length+1).replace(/\//g,".");return l&&(l+=":"),l+=s,l}return s}}Dw.createGetModuleFromFilename=Qet});var xw=c(KI=>{Object.defineProperty(KI,"__esModule",{value:!0});var $_=b(),ett=Gw();function ttt(t){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;if($_.GLOBAL_OBJ.SENTRY_RELEASE&&$_.GLOBAL_OBJ.SENTRY_RELEASE.id)return $_.GLOBAL_OBJ.SENTRY_RELEASE.id;let e=process.env.GITHUB_SHA||process.env.CI_MERGE_REQUEST_SOURCE_BRANCH_SHA||process.env.CI_BUILD_REF||process.env.CI_COMMIT_SHA||process.env.BITBUCKET_COMMIT,r=process.env.APPVEYOR_PULL_REQUEST_HEAD_COMMIT||process.env.APPVEYOR_REPO_COMMIT||process.env.CODEBUILD_RESOLVED_SOURCE_VERSION||process.env.AWS_COMMIT_ID||process.env.BUILD_SOURCEVERSION||process.env.GIT_CLONE_COMMIT_HASH||process.env.BUDDY_EXECUTION_REVISION||process.env.BUILDKITE_COMMIT||process.env.CIRCLE_SHA1||process.env.CIRRUS_CHANGE_IN_REPO||process.env.CF_REVISION||process.env.CM_COMMIT||process.env.CF_PAGES_COMMIT_SHA||process.env.DRONE_COMMIT_SHA||process.env.FC_GIT_COMMIT_SHA||process.env.HEROKU_TEST_RUN_COMMIT_VERSION||process.env.HEROKU_SLUG_COMMIT||process.env.RENDER_GIT_COMMIT||process.env.SEMAPHORE_GIT_SHA||process.env.TRAVIS_PULL_REQUEST_SHA||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA,n=process.env.CI_COMMIT_ID||process.env.SOURCE_COMMIT||process.env.SOURCE_VERSION||process.env.GIT_COMMIT||process.env.COMMIT_REF||process.env.BUILD_VCS_NUMBER||process.env.CI_COMMIT_SHA;return e||r||n||t}var rtt=$_.createStackParser($_.nodeStackLineParser(ett.createGetModuleFromFilename()));KI.defaultStackParser=rtt;KI.getSentryRelease=ttt});var jw=c(qw=>{var{_nullishCoalesce:ntt,_optionalChain:ott}=b();Object.defineProperty(qw,"__esModule",{value:!0});var itt=require("node:os"),stt=(P(),m(I)),Uw=k(),Xce=b(),Zce=require("worker_threads"),att=on(),utt=6e4,ww=class extends Uw.ServerRuntimeClient{constructor(e){let r={...e,platform:"node",runtime:{name:"node",version:global.process.version},serverName:e.serverName||global.process.env.SENTRY_NAME||itt.hostname()};Uw.applySdkMetadata(r,"node"),Xce.logger.log(`Initializing Sentry: process: ${process.pid}, thread: ${Zce.isMainThread?"main":`worker-${Zce.threadId}`}.`),super(r)}get tracer(){if(this._tracer)return this._tracer;let e="@sentry/node",r=Uw.SDK_VERSION,n=stt.trace.getTracer(e,r);return this._tracer=n,n}async flush(e){let r=this.traceProvider,n=ott([r,"optionalAccess",o=>o.activeSpanProcessor]);return n&&await n.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(e)}close(e){return this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),super.close(e)}startClientReportTracking(){let e=this.getOptions();e.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes()},this._clientReportInterval=setInterval(()=>{att.DEBUG_BUILD&&Xce.logger.log("Flushing client reports based on interval."),this._flushOutcomes()},ntt(e.clientReportFlushInterval,()=>utt)).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener))}};qw.NodeClient=ww});var Fw=c(ed=>{var{_optionalChain:ctt}=b();Object.defineProperty(ed,"__esModule",{value:!0});var ltt=require("module"),Vw=(P(),m(I)),dtt=nL(),ptt=Np(),Bw=($(),m(J)),_tt=k(),Hw=Oo(),ba=b(),ftt=Jt(),gtt=kI(),htt=Rw(),Ett=lc(),Ql=typeof document<"u"?document.currentScript:null;function mtt(t){t.getOptions().debug&&$ce();let e=Jce(t);t.traceProvider=e}function Ttt(t){if(ctt([t,"optionalAccess",e=>e.onlyIncludeInstrumentedModules])){let{addHookMessagePort:e}=ftt.createAddHookMessageChannel();return{data:{addHookMessagePort:e,include:t.include||[]},transferList:[e]}}return{data:t}}function zce(t){let[e=0,r=0]=process.versions.node.split(".").map(Number);if(e>=22||e===20&&r>=6||e===18&&r>=19){let n=typeof(typeof document>"u"?require("url").pathToFileURL(__filename).href:Ql&&Ql.tagName.toUpperCase()==="SCRIPT"&&Ql.src||new URL("sdk/initOtel.js",document.baseURI).href)<"u"?typeof document>"u"?require("url").pathToFileURL(__filename).href:Ql&&Ql.tagName.toUpperCase()==="SCRIPT"&&Ql.src||new URL("sdk/initOtel.js",document.baseURI).href:void 0;if(!ba.GLOBAL_OBJ._sentryEsmLoaderHookRegistered&&n)try{ltt.default.register("import-in-the-middle/hook.mjs",n,Ttt(t)),ba.GLOBAL_OBJ._sentryEsmLoaderHookRegistered=!0}catch(o){ba.logger.warn("Failed to register ESM hook",o)}}else ba.consoleSandbox(()=>{console.warn('[Sentry] You are using Node.js in ESM mode ("import syntax"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS ("require() syntax"), or use version 7.x of the Sentry Node.js SDK.')})}function Stt(t={}){let{debug:e}=t;e&&(ba.logger.enable(),$ce()),Ett.isCjs()||zce(t.registerEsmLoaderHooks),Att(t.integrations).forEach(r=>{r(),e&&ba.logger.log(`[Sentry] Preloaded ${r.id} instrumentation`)})}function Att(t){let e=gtt.getOpenTelemetryInstrumentationToPreload();return t?e.filter(r=>t.includes(r.id)):e}function Jce(t){let e=new ptt.BasicTracerProvider({sampler:new Hw.SentrySampler(t),resource:new dtt.Resource({[Bw.ATTR_SERVICE_NAME]:"node",[Bw.SEMRESATTRS_SERVICE_NAMESPACE]:"sentry",[Bw.ATTR_SERVICE_VERSION]:_tt.SDK_VERSION}),forceFlushTimeoutMillis:500});return e.addSpanProcessor(new Hw.SentrySpanProcessor({timeout:t.getOptions().maxSpanWaitDuration})),e.register({propagator:new Hw.SentryPropagator,contextManager:new htt.SentryContextManager}),e}function $ce(){let t=new Proxy(ba.logger,{get(e,r,n){return Reflect.get(e,r==="verbose"?"debug":r,n)}});Vw.diag.disable(),Vw.diag.setLogger(t,Vw.DiagLogLevel.DEBUG)}ed.initOpenTelemetry=mtt;ed.maybeInitializeEsmLoader=zce;ed.preloadOpenTelemetry=Stt;ed.setupOtel=Jce});var ule=c(va=>{Object.defineProperty(va,"__esModule",{value:!0});var gr=k(),XI=Oo(),Ho=b(),tle=on(),Ott=w0(),Rtt=q0(),Itt=V0(),Ptt=Ew(),btt=fT(),vtt=K0(),ytt=J0(),Ntt=d0(),Ctt=r1(),Mtt=o1(),Qce=tU(),Ltt=kI(),Dtt=Lw(),kw=lc(),rle=Wce(),nle=xw(),Gtt=jw(),ele=Fw();function xtt(){return kw.isCjs()?[ytt.modulesIntegration()]:[]}function ole(){return[gr.inboundFiltersIntegration(),gr.functionToStringIntegration(),gr.linkedErrorsIntegration(),gr.requestDataIntegration(),Ott.consoleIntegration(),btt.httpIntegration(),Ntt.nativeNodeFetchIntegration(),Ctt.onUncaughtExceptionIntegration(),Mtt.onUnhandledRejectionIntegration(),Itt.contextLinesIntegration(),vtt.localVariablesIntegration(),Rtt.nodeContextIntegration(),Ptt.childProcessIntegration(),...xtt()]}function ile(t){return[...ole(),...Utt(t)?Ltt.getAutoPerformanceIntegrations():[]]}function Utt(t){return gr.hasTracingEnabled(t)?t.enableTracing||t.tracesSampleRate!=null||"tracesSampler"in t:!1}function wtt(t={}){return sle(t,ile)}function qtt(t={}){return sle(t,()=>[])}function sle(t={},e){let r=jtt(t,e);r.debug===!0&&(tle.DEBUG_BUILD?Ho.logger.enable():Ho.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),!kw.isCjs()&&r.registerEsmLoaderHooks!==!1&&ele.maybeInitializeEsmLoader(r.registerEsmLoaderHooks===!0?void 0:r.registerEsmLoaderHooks),XI.setOpenTelemetryContextAsyncContextStrategy(),gr.getCurrentScope().update(r.initialScope),r.spotlight&&!r.integrations.some(({name:i})=>i===Qce.INTEGRATION_NAME)&&r.integrations.push(Qce.spotlightIntegration({sidecarUrl:typeof r.spotlight=="string"?r.spotlight:void 0}));let o=new Gtt.NodeClient(r);return gr.getCurrentScope().setClient(o),o.init(),Ho.logger.log(`Running in ${kw.isCjs()?"CommonJS":"ESM"} mode.`),r.autoSessionTracking&&Ftt(),o.startClientReportTracking(),Htt(),r.skipOpenTelemetrySetup||(ele.initOpenTelemetry(o),ale()),XI.enhanceDscWithOpenTelemetryRootSpanName(o),XI.setupEventContextTrace(o),o}function ale(){if(!tle.DEBUG_BUILD)return;let t=XI.openTelemetrySetupCheck(),e=["SentryContextManager","SentryPropagator"];gr.hasTracingEnabled()&&e.push("SentrySpanProcessor");for(let r of e)t.includes(r)||Ho.logger.error(`You have to set up the ${r}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);t.includes("SentrySampler")||Ho.logger.warn("You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.")}function jtt(t,e){let r=Vtt(t.release),n=typeof r!="string"?!1:t.autoSessionTracking===void 0?!0:t.autoSessionTracking;if(t.spotlight==null){let l=rle.envToBool(process.env.SENTRY_SPOTLIGHT,{strict:!0});l==null?t.spotlight=process.env.SENTRY_SPOTLIGHT:t.spotlight=l}let o=Btt(t.tracesSampleRate),i=Ho.dropUndefinedKeys({transport:Dtt.makeNodeTransport,dsn:process.env.SENTRY_DSN,environment:process.env.SENTRY_ENVIRONMENT,sendClientReports:!0}),s=Ho.dropUndefinedKeys({release:r,autoSessionTracking:n,tracesSampleRate:o}),a={...i,...t,...s};return t.defaultIntegrations===void 0&&(t.defaultIntegrations=e(a)),{...a,stackParser:Ho.stackParserFromStackParserOptions(t.stackParser||nle.defaultStackParser),integrations:gr.getIntegrationsToSetup({defaultIntegrations:t.defaultIntegrations,integrations:t.integrations})}}function Vtt(t){if(t!==void 0)return t;let e=nle.getSentryRelease();if(e!==void 0)return e}function Btt(t){if(t!==void 0)return t;let e=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!e)return;let r=parseFloat(e);return isFinite(r)?r:void 0}function Htt(){if(rle.envToBool(process.env.SENTRY_USE_ENVIRONMENT)!==!1){let t=process.env.SENTRY_TRACE,e=process.env.SENTRY_BAGGAGE,r=Ho.propagationContextFromHeaders(t,e);gr.getCurrentScope().setPropagationContext(r)}}function Ftt(){let t=gr.getClient();t&&t.getOptions().autoSessionTracking&&t.initSessionFlusher(),gr.startSession(),process.on("beforeExit",()=>{let e=gr.getIsolationScope().getSession();e&&e.status!=="ok"&&gr.endSession()})}va.getDefaultIntegrations=ile;va.getDefaultIntegrationsWithoutPerformance=ole;va.init=wtt;va.initWithoutDefaultIntegrations=qtt;va.validateOpenTelemetrySetup=ale});var ZI=c(Ww=>{Object.defineProperty(Ww,"__esModule",{value:!0});var ktt=[["january","1"],["february","2"],["march","3"],["april","4"],["may","5"],["june","6"],["july","7"],["august","8"],["september","9"],["october","10"],["november","11"],["december","12"],["jan","1"],["feb","2"],["mar","3"],["apr","4"],["may","5"],["jun","6"],["jul","7"],["aug","8"],["sep","9"],["oct","10"],["nov","11"],["dec","12"],["sunday","0"],["monday","1"],["tuesday","2"],["wednesday","3"],["thursday","4"],["friday","5"],["saturday","6"],["sun","0"],["mon","1"],["tue","2"],["wed","3"],["thu","4"],["fri","5"],["sat","6"]];function Wtt(t){return ktt.reduce((e,[r,n])=>e.replace(new RegExp(r,"gi"),n),t)}Ww.replaceCronNames=Wtt});var dle=c(Yw=>{Object.defineProperty(Yw,"__esModule",{value:!0});var zI=k(),cle=ZI(),lle="Automatic instrumentation of CronJob only supports crontab string";function Ytt(t,e){let r=!1;return new Proxy(t,{construct(n,o){let[i,s,a,u,l,...d]=o;if(typeof i!="string")throw new Error(lle);if(r)throw new Error(`A job named '${e}' has already been scheduled`);r=!0;let p=cle.replaceCronNames(i);async function _(f,g){return zI.withMonitor(e,async()=>{try{await s(f,g)}catch(h){throw zI.captureException(h),h}},{schedule:{type:"crontab",value:p},timezone:l||void 0})}return new n(i,_,a,u,l,...d)},get(n,o){return o==="from"?i=>{let{cronTime:s,onTick:a,timeZone:u}=i;if(typeof s!="string")throw new Error(lle);if(r)throw new Error(`A job named '${e}' has already been scheduled`);r=!0;let l=cle.replaceCronNames(s);return i.onTick=async(d,p)=>zI.withMonitor(e,async()=>{try{await a(d,p)}catch(_){throw zI.captureException(_),_}},{schedule:{type:"crontab",value:l},timezone:u||void 0}),n.from(i)}:n[o]}})}Yw.instrumentCron=Ytt});var fle=c(Kw=>{var{_optionalChain:ple}=b();Object.defineProperty(Kw,"__esModule",{value:!0});var _le=k(),Ktt=ZI();function Xtt(t){return new Proxy(t,{get(e,r){return r==="schedule"&&e.schedule?new Proxy(e.schedule,{apply(n,o,i){let[s,a,u]=i;if(!ple([u,"optionalAccess",d=>d.name]))throw new Error('Missing "name" for scheduled job. A name is required for Sentry check-in monitoring.');async function l(){return _le.withMonitor(u.name,async()=>{try{return await a()}catch(d){throw _le.captureException(d),d}},{schedule:{type:"crontab",value:Ktt.replaceCronNames(s)},timezone:ple([u,"optionalAccess",d=>d.timezone])})}return n.apply(o,[s,l,u])}}):e[r]}})}Kw.instrumentNodeCron=Xtt});var gle=c(Xw=>{var{_optionalChain:Ztt}=b();Object.defineProperty(Xw,"__esModule",{value:!0});var ztt=k(),Jtt=ZI();function $tt(t){return new Proxy(t,{get(e,r){return r==="scheduleJob"?new Proxy(e.scheduleJob,{apply(n,o,i){let[s,a,u]=i;if(typeof s!="string"||typeof a!="string"||typeof u!="function")throw new Error("Automatic instrumentation of 'node-schedule' requires the first parameter of 'scheduleJob' to be a job name string and the second parameter to be a crontab string");let l=s,d=a;async function p(){return ztt.withMonitor(l,async()=>{await Ztt([u,"optionalCall",_=>_()])},{schedule:{type:"crontab",value:Jtt.replaceCronNames(d)}})}return n.apply(o,[l,d,p])}}):e[r]}})}Xw.instrumentNodeSchedule=$tt});var hle=c(Zw=>{Object.defineProperty(Zw,"__esModule",{value:!0});var Qtt=dle(),ert=fle(),trt=gle(),rrt={instrumentCron:Qtt.instrumentCron,instrumentNodeCron:ert.instrumentNodeCron,instrumentNodeSchedule:trt.instrumentNodeSchedule};Zw.cron=rrt});var Ple=c(A=>{Object.defineProperty(A,"__esModule",{value:!0});var nrt=fT(),ort=d0(),irt=s8(),srt=w0(),art=q0(),urt=V0(),crt=K0(),lrt=J0(),drt=r1(),prt=o1(),_rt=H8(),zw=L1(),Ele=rD(),frt=vD(),grt=XD(),hrt=zD(),Ert=mG(),mrt=OG(),Trt=PG(),Srt=NG(),Art=GG(),mle=WG(),Ort=JG(),Rrt=Die(),Tle=vx(),Sle=Mx(),Ale=eU(),Irt=tU(),Prt=vae(),brt=BU(),vrt=WU(),yrt=Nue(),Nrt=hw(),Ole=Ew(),Crt=Rw(),Mrt=Se(),Q_=ule(),Rle=Fw(),Lrt=kI(),Ile=xw(),Drt=Gw(),Grt=Lw(),xrt=jw(),Urt=hle(),Jw=b(),$w=Oo(),w=k();A.httpIntegration=nrt.httpIntegration;A.nativeNodeFetchIntegration=ort.nativeNodeFetchIntegration;A.fsIntegration=irt.fsIntegration;A.consoleIntegration=srt.consoleIntegration;A.nodeContextIntegration=art.nodeContextIntegration;A.contextLinesIntegration=urt.contextLinesIntegration;A.localVariablesIntegration=crt.localVariablesIntegration;A.modulesIntegration=lrt.modulesIntegration;A.onUncaughtExceptionIntegration=drt.onUncaughtExceptionIntegration;A.onUnhandledRejectionIntegration=prt.onUnhandledRejectionIntegration;A.anrIntegration=_rt.anrIntegration;A.expressErrorHandler=zw.expressErrorHandler;A.expressIntegration=zw.expressIntegration;A.setupExpressErrorHandler=zw.setupExpressErrorHandler;A.fastifyIntegration=Ele.fastifyIntegration;A.setupFastifyErrorHandler=Ele.setupFastifyErrorHandler;A.graphqlIntegration=frt.graphqlIntegration;A.kafkaIntegration=grt.kafkaIntegration;A.lruMemoizerIntegration=hrt.lruMemoizerIntegration;A.mongoIntegration=Ert.mongoIntegration;A.mongooseIntegration=mrt.mongooseIntegration;A.mysqlIntegration=Trt.mysqlIntegration;A.mysql2Integration=Srt.mysql2Integration;A.redisIntegration=Art.redisIntegration;A.nestIntegration=mle.nestIntegration;A.setupNestErrorHandler=mle.setupNestErrorHandler;A.postgresIntegration=Ort.postgresIntegration;A.prismaIntegration=Rrt.prismaIntegration;A.hapiIntegration=Tle.hapiIntegration;A.setupHapiErrorHandler=Tle.setupHapiErrorHandler;A.koaIntegration=Sle.koaIntegration;A.setupKoaErrorHandler=Sle.setupKoaErrorHandler;A.connectIntegration=Ale.connectIntegration;A.setupConnectErrorHandler=Ale.setupConnectErrorHandler;A.spotlightIntegration=Irt.spotlightIntegration;A.knexIntegration=Prt.knexIntegration;A.tediousIntegration=brt.tediousIntegration;A.genericPoolIntegration=vrt.genericPoolIntegration;A.dataloaderIntegration=yrt.dataloaderIntegration;A.amqplibIntegration=Nrt.amqplibIntegration;A.childProcessIntegration=Ole.childProcessIntegration;A.processThreadBreadcrumbIntegration=Ole.processThreadBreadcrumbIntegration;A.SentryContextManager=Crt.SentryContextManager;A.generateInstrumentOnce=Mrt.generateInstrumentOnce;A.getDefaultIntegrations=Q_.getDefaultIntegrations;A.getDefaultIntegrationsWithoutPerformance=Q_.getDefaultIntegrationsWithoutPerformance;A.init=Q_.init;A.initWithoutDefaultIntegrations=Q_.initWithoutDefaultIntegrations;A.validateOpenTelemetrySetup=Q_.validateOpenTelemetrySetup;A.initOpenTelemetry=Rle.initOpenTelemetry;A.preloadOpenTelemetry=Rle.preloadOpenTelemetry;A.getAutoPerformanceIntegrations=Lrt.getAutoPerformanceIntegrations;A.defaultStackParser=Ile.defaultStackParser;A.getSentryRelease=Ile.getSentryRelease;A.createGetModuleFromFilename=Drt.createGetModuleFromFilename;A.makeNodeTransport=Grt.makeNodeTransport;A.NodeClient=xrt.NodeClient;A.cron=Urt.cron;A.DEFAULT_USER_INCLUDES=Jw.DEFAULT_USER_INCLUDES;A.addRequestDataToEvent=Jw.addRequestDataToEvent;A.extractRequestData=Jw.extractRequestData;A.addOpenTelemetryInstrumentation=$w.addOpenTelemetryInstrumentation;A.continueTrace=$w.continueTrace;A.setNodeAsyncContextStrategy=$w.setOpenTelemetryContextAsyncContextStrategy;A.SDK_VERSION=w.SDK_VERSION;A.SEMANTIC_ATTRIBUTE_SENTRY_OP=w.SEMANTIC_ATTRIBUTE_SENTRY_OP;A.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=w.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;A.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=w.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;A.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=w.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;A.Scope=w.Scope;A.addBreadcrumb=w.addBreadcrumb;A.addEventProcessor=w.addEventProcessor;A.addIntegration=w.addIntegration;A.captureCheckIn=w.captureCheckIn;A.captureConsoleIntegration=w.captureConsoleIntegration;A.captureEvent=w.captureEvent;A.captureException=w.captureException;A.captureFeedback=w.captureFeedback;A.captureMessage=w.captureMessage;A.captureSession=w.captureSession;A.close=w.close;A.createTransport=w.createTransport;A.debugIntegration=w.debugIntegration;A.dedupeIntegration=w.dedupeIntegration;A.endSession=w.endSession;A.extraErrorDataIntegration=w.extraErrorDataIntegration;A.flush=w.flush;A.functionToStringIntegration=w.functionToStringIntegration;A.getActiveSpan=w.getActiveSpan;A.getClient=w.getClient;A.getCurrentHub=w.getCurrentHub;A.getCurrentScope=w.getCurrentScope;A.getGlobalScope=w.getGlobalScope;A.getIsolationScope=w.getIsolationScope;A.getRootSpan=w.getRootSpan;A.getSpanDescendants=w.getSpanDescendants;A.getSpanStatusFromHttpCode=w.getSpanStatusFromHttpCode;A.getTraceData=w.getTraceData;A.getTraceMetaTags=w.getTraceMetaTags;A.inboundFiltersIntegration=w.inboundFiltersIntegration;A.isInitialized=w.isInitialized;A.lastEventId=w.lastEventId;A.linkedErrorsIntegration=w.linkedErrorsIntegration;A.metrics=w.metricsDefault;A.parameterize=w.parameterize;A.profiler=w.profiler;A.requestDataIntegration=w.requestDataIntegration;A.rewriteFramesIntegration=w.rewriteFramesIntegration;A.sessionTimingIntegration=w.sessionTimingIntegration;A.setContext=w.setContext;A.setCurrentClient=w.setCurrentClient;A.setExtra=w.setExtra;A.setExtras=w.setExtras;A.setHttpStatus=w.setHttpStatus;A.setMeasurement=w.setMeasurement;A.setTag=w.setTag;A.setTags=w.setTags;A.setUser=w.setUser;A.spanToBaggageHeader=w.spanToBaggageHeader;A.spanToJSON=w.spanToJSON;A.spanToTraceHeader=w.spanToTraceHeader;A.startInactiveSpan=w.startInactiveSpan;A.startNewTrace=w.startNewTrace;A.startSession=w.startSession;A.startSpan=w.startSpan;A.startSpanManual=w.startSpanManual;A.suppressTracing=w.suppressTracing;A.trpcMiddleware=w.trpcMiddleware;A.withActiveSpan=w.withActiveSpan;A.withIsolationScope=w.withIsolationScope;A.withMonitor=w.withMonitor;A.withScope=w.withScope;A.zodErrorsIntegration=w.zodErrorsIntegration});var wrt=require("node:os");process.env.HOME||(process.env.HOME=wrt.tmpdir());var td=Ple(),ef=require("homey"),Qw=class t{_capturedMessages=[];_capturedExceptions=[];constructor({homey:e,options:r}){if(typeof e>"u")return t._error("Error: missing `homey` constructor parameter");if(!ef.env)return t._error("Error: could not access `Homey.env`");if(typeof ef.env.HOMEY_LOG_URL!="string")return t._error("Error: expected `HOMEY_LOG_URL` env variable, homey-log is disabled");let n=process.env.DEBUG==="1"&&!t._isLogForced();n&&t._log("App is running in debug mode, not enabling Sentry logging"),this._manifest=ef.manifest,this._homeyVersion=e.version,this._managerCloud=e.cloud,this._homeyPlatform=e.platform,this._homeyPlatformVersion=e.platformVersion,this.init(ef.env.HOMEY_LOG_URL,{enabled:!n,...r})}init(e,r){return td.initWithoutDefaultIntegrations({dsn:e,integrations:[...td.getDefaultIntegrationsWithoutPerformance()],...r}),this.setTags({appId:this._manifest.id,appVersion:this._manifest.version,homeyVersion:this._homeyVersion,homeyPlatform:this._homeyPlatform,homeyPlatformVersion:this._homeyPlatformVersion}),this._managerCloud.getHomeyId().then(n=>this.setTags({homeyId:n})).catch(n=>t._error("Error: could not get `homeyId`",n)),t._log(`App ${this._manifest.id} v${this._manifest.version} logging on Homey v${this._homeyVersion}...`),this}setTags(e){return td.setTags(e),this}setUser(e){return td.setUser(e),this}async captureMessage(e){if(t._log("captureMessage:",e),this._capturedMessages.indexOf(e)>-1){t._log("Prevented sending a duplicate message");return}return this._capturedMessages.push(e),new Promise((r,n)=>{try{r(td.captureMessage(e))}catch(o){n(o)}})}async captureException(e){if(t._log("captureException:",e),this._capturedExceptions.indexOf(e)>-1){t._log("Prevented sending a duplicate log");return}return this._capturedExceptions.push(e),new Promise((r,n)=>{try{r(td.captureException(e))}catch(o){n(o)}})}static _log(){console.log.bind(null,t._logTime(),"[homey-log]").apply(null,arguments)}static _error(){console.error.bind(null,t._logTime(),"[homey-log]").apply(null,arguments)}static _logTime(){return`\x1B[35m${new Date().toISOString()}\x1B[0m`}static _isLogForced(){switch(ef.env.HOMEY_LOG_FORCE){case"1":case"true":return!0;default:return!1}}};module.exports={Log:Qw};