@tanagram/lore 0.1.31 → 0.1.32
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/dist/index.js +15 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
3
|
-
var XJ=Object.create;var Im=Object.defineProperty;var ZJ=Object.getOwnPropertyDescriptor;var eX=Object.getOwnPropertyNames;var tX=Object.getPrototypeOf,nX=Object.prototype.hasOwnProperty;var U=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var K=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ea=(t,e)=>{for(var n in e)Im(t,n,{get:e[n],enumerable:!0})},f1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of eX(e))!nX.call(t,o)&&o!==n&&Im(t,o,{get:()=>e[o],enumerable:!(r=ZJ(e,o))||r.enumerable});return t};var Q=(t,e,n)=>(n=t!=null?XJ(tX(t)):{},f1(e||!t||!t.__esModule?Im(n,"default",{value:t,enumerable:!0}):n,t)),N=t=>f1(Im({},"__esModule",{value:!0}),t);var Xo,oA=K(()=>{Xo="1.9.1"});function rX(t){let e=new Set([t]),n=new Set,r=t.match(m1);if(!r)return()=>!1;let o={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(o.prerelease!=null)return function(u){return u===t};function s(a){return n.add(a),!1}function i(a){return e.add(a),!0}return function(u){if(e.has(u))return!0;if(n.has(u))return!1;let l=u.match(m1);if(!l)return s(u);let d={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return d.prerelease!=null||o.major!==d.major?s(u):o.major===0?o.minor===d.minor&&o.patch<=d.patch?i(u):s(u):o.minor<=d.minor?i(u):s(u)}}var m1,_1,h1=K(()=>{oA();m1=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;_1=rX(Xo)});function ao(t,e,n,r=!1){var o;let s=Id[Rd]=(o=Id[Rd])!==null&&o!==void 0?o:{version:Xo};if(!r&&s[t]){let i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return n.error(i.stack||i.message),!1}if(s.version!==Xo){let i=new Error(`@opentelemetry/api: Registration of version v${s.version} for ${t} does not match previously registered API v${Xo}`);return n.error(i.stack||i.message),!1}return s[t]=e,n.debug(`@opentelemetry/api: Registered a global for ${t} v${Xo}.`),!0}function zn(t){var e,n;let r=(e=Id[Rd])===null||e===void 0?void 0:e.version;if(!(!r||!_1(r)))return(n=Id[Rd])===null||n===void 0?void 0:n[t]}function uo(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${Xo}.`);let n=Id[Rd];n&&delete n[t]}var oX,Rd,Id,ta=K(()=>{oA();h1();oX=Xo.split(".")[0],Rd=Symbol.for(`opentelemetry.js.api.${oX}`),Id=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});function Od(t,e,n){let r=zn("diag");if(r)return r[t](e,...n)}var Om,g1=K(()=>{ta();Om=class{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return Od("debug",this._namespace,e)}error(...e){return Od("error",this._namespace,e)}info(...e){return Od("info",this._namespace,e)}warn(...e){return Od("warn",this._namespace,e)}verbose(...e){return Od("verbose",this._namespace,e)}}});var Et,Cm=K(()=>{(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"})(Et||(Et={}))});function T1(t,e){t<Et.NONE?t=Et.NONE:t>Et.ALL&&(t=Et.ALL),e=e||{};function n(r,o){let s=e[r];return typeof s=="function"&&t>=o?s.bind(e):function(){}}return{error:n("error",Et.ERROR),warn:n("warn",Et.WARN),info:n("info",Et.INFO),debug:n("debug",Et.DEBUG),verbose:n("verbose",Et.VERBOSE)}}var E1=K(()=>{Cm()});var sX,It,na=K(()=>{g1();E1();Cm();ta();sX="diag",It=class t{static instance(){return this._instance||(this._instance=new t),this._instance}constructor(){function e(o){return function(...s){let i=zn("diag");if(i)return i[o](...s)}}let n=this,r=(o,s={logLevel:Et.INFO})=>{var i,a,u;if(o===n){let p=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((i=p.stack)!==null&&i!==void 0?i:p.message),!1}typeof s=="number"&&(s={logLevel:s});let l=zn("diag"),d=T1((a=s.logLevel)!==null&&a!==void 0?a:Et.INFO,o);if(l&&!s.suppressOverrideMessage){let p=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";l.warn(`Current logger will be overwritten from ${p}`),d.warn(`Current logger will overwrite one already registered from ${p}`)}return ao("diag",d,n,!0)};n.setLogger=r,n.disable=()=>{uo(sX,n)},n.createComponentLogger=o=>new Om(o),n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}}});var Nm,S1=K(()=>{Nm=class t{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let n=this._entries.get(e);if(n)return Object.assign({},n)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,n){let r=new t(this._entries);return r._entries.set(e,n),r}removeEntry(e){let n=new t(this._entries);return n._entries.delete(e),n}removeEntries(...e){let n=new t(this._entries);for(let r of e)n._entries.delete(r);return n}clear(){return new t}}});var A1,y1=K(()=>{A1=Symbol("BaggageEntryMetadata")});function b1(t={}){return new Nm(new Map(Object.entries(t)))}function R1(t){return typeof t!="string"&&(iX.error(`Cannot create baggage metadata from unknown type: ${typeof t}`),t=""),{__TYPE__:A1,toString(){return t}}}var iX,sA=K(()=>{na();S1();y1();iX=It.instance()});function Yn(t){return Symbol.for(t)}var iA,wu,Cd=K(()=>{iA=class t{constructor(e){let n=this;n._currentContext=e?new Map(e):new Map,n.getValue=r=>n._currentContext.get(r),n.setValue=(r,o)=>{let s=new t(n._currentContext);return s._currentContext.set(r,o),s},n.deleteValue=r=>{let o=new t(n._currentContext);return o._currentContext.delete(r),o}}},wu=new iA});var aA,uA,xm,I1=K(()=>{aA=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],uA={};if(typeof console<"u"){let t=["error","warn","info","debug","trace","log"];for(let e of t)typeof console[e]=="function"&&(uA[e]=console[e])}xm=class{constructor(){function e(n){return function(...r){let o=uA[n];if(typeof o!="function"&&(o=uA.log),typeof o!="function"&&console&&(o=console[n],typeof o!="function"&&(o=console.log)),typeof o=="function")return o.apply(console,r)}}for(let n=0;n<aA.length;n++)this[aA[n].n]=e(aA[n].c)}}});function O1(){return gA}var cA,Du,lA,dA,pA,fA,Nd,mA,_A,hA,gA,aX,uX,cX,lX,dX,pX,fX,TA=K(()=>{cA=class{constructor(){}createGauge(e,n){return uX}createHistogram(e,n){return cX}createCounter(e,n){return aX}createUpDownCounter(e,n){return lX}createObservableGauge(e,n){return pX}createObservableCounter(e,n){return dX}createObservableUpDownCounter(e,n){return fX}addBatchObservableCallback(e,n){}removeBatchObservableCallback(e){}},Du=class{},lA=class extends Du{add(e,n){}},dA=class extends Du{add(e,n){}},pA=class extends Du{record(e,n){}},fA=class extends Du{record(e,n){}},Nd=class{addCallback(e){}removeCallback(e){}},mA=class extends Nd{},_A=class extends Nd{},hA=class extends Nd{},gA=new cA,aX=new lA,uX=new pA,cX=new fA,lX=new dA,dX=new mA,pX=new _A,fX=new hA});var Pm,C1=K(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(Pm||(Pm={}))});var Mm,vm,EA=K(()=>{Mm={get(t,e){if(t!=null)return t[e]},keys(t){return t==null?[]:Object.keys(t)}},vm={set(t,e,n){t!=null&&(t[e]=n)}}});var km,N1=K(()=>{Cd();km=class{active(){return wu}with(e,n,r,...o){return n.call(r,...o)}bind(e,n){return n}enable(){return this}disable(){return this}}});var SA,mX,co,xd=K(()=>{N1();ta();na();SA="context",mX=new km,co=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalContextManager(e){return ao(SA,e,It.instance())}active(){return this._getContextManager().active()}with(e,n,r,...o){return this._getContextManager().with(e,n,r,...o)}bind(e,n){return this._getContextManager().bind(e,n)}_getContextManager(){return zn(SA)||mX}disable(){this._getContextManager().disable(),uo(SA,It.instance())}}});var Zt,AA=K(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Zt||(Zt={}))});var Pd,ra,Lm,wm=K(()=>{AA();Pd="0000000000000000",ra="00000000000000000000000000000000",Lm={traceId:ra,spanId:Pd,traceFlags:Zt.NONE}});var lo,Dm=K(()=>{wm();lo=class{constructor(e=Lm){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,n){return this}setAttributes(e){return this}addEvent(e,n){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,n){}}});function Um(t){return t.getValue(yA)||void 0}function x1(){return Um(co.getInstance().active())}function Md(t,e){return t.setValue(yA,e)}function P1(t){return t.deleteValue(yA)}function M1(t,e){return Md(t,new lo(e))}function Bm(t){var e;return(e=Um(t))===null||e===void 0?void 0:e.spanContext()}var yA,bA=K(()=>{Cd();Dm();xd();yA=Yn("OpenTelemetry Context Key SPAN")});function v1(t,e){if(typeof t!="string"||t.length!==e)return!1;let n=0;for(let r=0;r<t.length;r+=4)n+=(Fm[t.charCodeAt(r)]|0)+(Fm[t.charCodeAt(r+1)]|0)+(Fm[t.charCodeAt(r+2)]|0)+(Fm[t.charCodeAt(r+3)]|0);return n===e}function RA(t){return v1(t,32)&&t!==ra}function IA(t){return v1(t,16)&&t!==Pd}function Zo(t){return RA(t.traceId)&&IA(t.spanId)}function k1(t){return new lo(t)}var Fm,Gm=K(()=>{wm();Dm();Fm=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1])});function _X(t){return t!==null&&typeof t=="object"&&"spanId"in t&&typeof t.spanId=="string"&&"traceId"in t&&typeof t.traceId=="string"&&"traceFlags"in t&&typeof t.traceFlags=="number"}var OA,Uu,CA=K(()=>{xd();bA();Dm();Gm();OA=co.getInstance(),Uu=class{startSpan(e,n,r=OA.active()){if(!!n?.root)return new lo;let s=r&&Bm(r);return _X(s)&&Zo(s)?new lo(s):new lo}startActiveSpan(e,n,r,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(s=n,a=r):(s=n,i=r,a=o);let u=i??OA.active(),l=this.startSpan(e,s,u),d=Md(u,l);return OA.with(d,a,void 0,l)}}});var hX,Bu,NA=K(()=>{CA();hX=new Uu,Bu=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,this.options=o}startSpan(e,n,r){return this._getTracer().startSpan(e,n,r)}startActiveSpan(e,n,r,o){let s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):hX}}});var jm,L1=K(()=>{CA();jm=class{getTracer(e,n,r){return new Uu}}});var gX,oa,xA=K(()=>{NA();L1();gX=new jm,oa=class{getTracer(e,n,r){var o;return(o=this.getDelegateTracer(e,n,r))!==null&&o!==void 0?o:new Bu(this,e,n,r)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:gX}setDelegate(e){this._delegate=e}getDelegateTracer(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,n,r)}}});var Hm,w1=K(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Hm||(Hm={}))});var Pe,D1=K(()=>{(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"})(Pe||(Pe={}))});var qe,U1=K(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(qe||(qe={}))});function B1(t){return SX.test(t)}function F1(t){return AX.test(t)&&!yX.test(t)}var PA,TX,EX,SX,AX,yX,G1=K(()=>{PA="[_0-9a-z-*/]",TX=`[a-z]${PA}{0,255}`,EX=`[a-z0-9]${PA}{0,240}@[a-z]${PA}{0,13}`,SX=new RegExp(`^(?:${TX}|${EX})$`),AX=/^[ -~]{0,255}[!-~]$/,yX=/,|=/});var j1,bX,H1,V1,Vm,q1=K(()=>{G1();j1=32,bX=512,H1=",",V1="=",Vm=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,n){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){let n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return Array.from(this._internalState.keys()).reduceRight((e,n)=>(e.push(n+V1+this.get(n)),e),[]).join(H1)}_parse(e){e.length>bX||(this._internalState=e.split(H1).reduceRight((n,r)=>{let o=r.trim(),s=o.indexOf(V1);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,r.length);B1(i)&&F1(a)&&n.set(i,a)}return n},new Map),this._internalState.size>j1&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,j1))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}}});function $1(t){return new Vm(t)}var z1=K(()=>{q1()});var v,Y1=K(()=>{xd();v=co.getInstance()});var Wn,W1=K(()=>{na();Wn=It.instance()});var MA,K1,Q1=K(()=>{TA();MA=class{getMeter(e,n,r){return gA}},K1=new MA});var vA,qm,J1=K(()=>{Q1();ta();na();vA="metrics",qm=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalMeterProvider(e){return ao(vA,e,It.instance())}getMeterProvider(){return zn(vA)||K1}getMeter(e,n,r){return this.getMeterProvider().getMeter(e,n,r)}disable(){uo(vA,It.instance())}}});var kA,X1=K(()=>{J1();kA=qm.getInstance()});var $m,Z1=K(()=>{$m=class{inject(e,n){}extract(e,n){return e}fields(){return[]}}});function wA(t){return t.getValue(LA)||void 0}function eM(){return wA(co.getInstance().active())}function tM(t,e){return t.setValue(LA,e)}function nM(t){return t.deleteValue(LA)}var LA,rM=K(()=>{xd();Cd();LA=Yn("OpenTelemetry Baggage Key")});var DA,RX,zm,oM=K(()=>{ta();Z1();EA();rM();sA();na();DA="propagation",RX=new $m,zm=class t{constructor(){this.createBaggage=b1,this.getBaggage=wA,this.getActiveBaggage=eM,this.setBaggage=tM,this.deleteBaggage=nM}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalPropagator(e){return ao(DA,e,It.instance())}inject(e,n,r=vm){return this._getGlobalPropagator().inject(e,n,r)}extract(e,n,r=Mm){return this._getGlobalPropagator().extract(e,n,r)}fields(){return this._getGlobalPropagator().fields()}disable(){uo(DA,It.instance())}_getGlobalPropagator(){return zn(DA)||RX}}});var Br,sM=K(()=>{oM();Br=zm.getInstance()});var UA,Ym,iM=K(()=>{ta();xA();Gm();bA();na();UA="trace",Ym=class t{constructor(){this._proxyTracerProvider=new oa,this.wrapSpanContext=k1,this.isSpanContextValid=Zo,this.deleteSpan=P1,this.getSpan=Um,this.getActiveSpan=x1,this.getSpanContext=Bm,this.setSpan=Md,this.setSpanContext=M1}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalTracerProvider(e){let n=ao(UA,this._proxyTracerProvider,It.instance());return n&&this._proxyTracerProvider.setDelegate(e),n}getTracerProvider(){return zn(UA)||this._proxyTracerProvider}getTracer(e,n){return this.getTracerProvider().getTracer(e,n)}disable(){uo(UA,It.instance()),this._proxyTracerProvider=new oa}}});var X,aM=K(()=>{iM();X=Ym.getInstance()});var L={};ea(L,{DiagConsoleLogger:()=>xm,DiagLogLevel:()=>Et,INVALID_SPANID:()=>Pd,INVALID_SPAN_CONTEXT:()=>Lm,INVALID_TRACEID:()=>ra,ProxyTracer:()=>Bu,ProxyTracerProvider:()=>oa,ROOT_CONTEXT:()=>wu,SamplingDecision:()=>Hm,SpanKind:()=>Pe,SpanStatusCode:()=>qe,TraceFlags:()=>Zt,ValueType:()=>Pm,baggageEntryMetadataFromString:()=>R1,context:()=>v,createContextKey:()=>Yn,createNoopMeter:()=>O1,createTraceState:()=>$1,default:()=>IX,defaultTextMapGetter:()=>Mm,defaultTextMapSetter:()=>vm,diag:()=>Wn,isSpanContextValid:()=>Zo,isValidSpanId:()=>IA,isValidTraceId:()=>RA,metrics:()=>kA,propagation:()=>Br,trace:()=>X});var IX,P=K(()=>{sA();Cd();I1();Cm();TA();C1();EA();NA();xA();w1();D1();U1();AA();z1();Gm();wm();Y1();W1();X1();sM();aM();IX={context:v,diag:Wn,metrics:kA,propagation:Br,trace:X}});var vd=T(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.isTracingSuppressed=Us.unsuppressTracing=Us.suppressTracing=void 0;var OX=(P(),N(L)),BA=(0,OX.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function CX(t){return t.setValue(BA,!0)}Us.suppressTracing=CX;function NX(t){return t.deleteValue(BA)}Us.unsuppressTracing=NX;function xX(t){return t.getValue(BA)===!0}Us.isTracingSuppressed=xX});var FA=T(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.BAGGAGE_MAX_TOTAL_LENGTH=en.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=en.BAGGAGE_MAX_NAME_VALUE_PAIRS=en.BAGGAGE_HEADER=en.BAGGAGE_ITEMS_SEPARATOR=en.BAGGAGE_PROPERTIES_SEPARATOR=en.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;en.BAGGAGE_KEY_PAIR_SEPARATOR="=";en.BAGGAGE_PROPERTIES_SEPARATOR=";";en.BAGGAGE_ITEMS_SEPARATOR=",";en.BAGGAGE_HEADER="baggage";en.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;en.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;en.BAGGAGE_MAX_TOTAL_LENGTH=8192});var GA=T(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.parseKeyPairsIntoRecord=po.parsePairKeyValue=po.getKeyPairs=po.serializeKeyPairs=void 0;var PX=(P(),N(L)),Fu=FA();function MX(t){return t.reduce((e,n)=>{let r=`${e}${e!==""?Fu.BAGGAGE_ITEMS_SEPARATOR:""}${n}`;return r.length>Fu.BAGGAGE_MAX_TOTAL_LENGTH?e:r},"")}po.serializeKeyPairs=MX;function vX(t){return t.getAllEntries().map(([e,n])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=Fu.BAGGAGE_PROPERTIES_SEPARATOR+n.metadata.toString()),r})}po.getKeyPairs=vX;function uM(t){if(!t)return;let e=t.indexOf(Fu.BAGGAGE_PROPERTIES_SEPARATOR),n=e===-1?t:t.substring(0,e),r=n.indexOf(Fu.BAGGAGE_KEY_PAIR_SEPARATOR);if(r<=0)return;let o=n.substring(0,r).trim(),s=n.substring(r+1).trim();if(!o||!s)return;let i,a;try{i=decodeURIComponent(o),a=decodeURIComponent(s)}catch{return}let u;if(e!==-1&&e<t.length-1){let l=t.substring(e+1);u=(0,PX.baggageEntryMetadataFromString)(l)}return{key:i,value:a,metadata:u}}po.parsePairKeyValue=uM;function kX(t){let e={};return typeof t=="string"&&t.length>0&&t.split(Fu.BAGGAGE_ITEMS_SEPARATOR).forEach(n=>{let r=uM(n);r!==void 0&&r.value.length>0&&(e[r.key]=r.value)}),e}po.parseKeyPairsIntoRecord=kX});var cM=T(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.W3CBaggagePropagator=void 0;var jA=(P(),N(L)),LX=vd(),sa=FA(),HA=GA(),VA=class{inject(e,n,r){let o=jA.propagation.getBaggage(e);if(!o||(0,LX.isTracingSuppressed)(e))return;let s=(0,HA.getKeyPairs)(o).filter(a=>a.length<=sa.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,sa.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,HA.serializeKeyPairs)(s);i.length>0&&r.set(n,sa.BAGGAGE_HEADER,i)}extract(e,n,r){let o=r.get(n,sa.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(sa.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return e;let i={};return s.length===0||(s.split(sa.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,HA.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),i[l.key]=d}}),Object.entries(i).length===0)?e:jA.propagation.setBaggage(e,jA.propagation.createBaggage(i))}fields(){return[sa.BAGGAGE_HEADER]}};Wm.W3CBaggagePropagator=VA});var lM=T(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.AnchoredClock=void 0;var qA=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};Km.AnchoredClock=qA});var _M=T(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.isAttributeValue=Bs.isAttributeKey=Bs.sanitizeAttributes=void 0;var dM=(P(),N(L));function wX(t){let e={};if(typeof t!="object"||t==null)return e;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if(!pM(n)){dM.diag.warn(`Invalid attribute key: ${n}`);continue}let r=t[n];if(!fM(r)){dM.diag.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?e[n]=r.slice():e[n]=r}return e}Bs.sanitizeAttributes=wX;function pM(t){return typeof t=="string"&&t!==""}Bs.isAttributeKey=pM;function fM(t){return t==null?!0:Array.isArray(t)?DX(t):mM(typeof t)}Bs.isAttributeValue=fM;function DX(t){let e;for(let n of t){if(n==null)continue;let r=typeof n;if(r!==e){if(!e){if(mM(r)){e=r;continue}return!1}return!1}}return!0}function mM(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}});var $A=T(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.loggingErrorHandler=void 0;var UX=(P(),N(L));function BX(){return t=>{UX.diag.error(FX(t))}}Qm.loggingErrorHandler=BX;function FX(t){return typeof t=="string"?t:JSON.stringify(GX(t))}function GX(t){let e={},n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(e[r])return;let o=n[r];o&&(e[r]=String(o))}),n=Object.getPrototypeOf(n);return e}});var gM=T(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.globalErrorHandler=Gu.setGlobalErrorHandler=void 0;var jX=$A(),hM=(0,jX.loggingErrorHandler)();function HX(t){hM=t}Gu.setGlobalErrorHandler=HX;function VX(t){try{hM(t)}catch{}}Gu.globalErrorHandler=VX});var AM=T(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.getStringListFromEnv=fo.getBooleanFromEnv=fo.getStringFromEnv=fo.getNumberFromEnv=void 0;var TM=(P(),N(L)),EM=U("util");function qX(t){let e=process.env[t];if(e==null||e.trim()==="")return;let n=Number(e);if(isNaN(n)){TM.diag.warn(`Unknown value ${(0,EM.inspect)(e)} for ${t}, expected a number, using defaults`);return}return n}fo.getNumberFromEnv=qX;function SM(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}fo.getStringFromEnv=SM;function $X(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||TM.diag.warn(`Unknown value ${(0,EM.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}fo.getBooleanFromEnv=$X;function zX(t){return SM(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}fo.getStringListFromEnv=zX});var yM=T(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm._globalThis=void 0;Jm._globalThis=globalThis});var bM=T(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.VERSION=void 0;Xm.VERSION="2.6.1"});function Ze(t){let e={},n=t.length;for(let r=0;r<n;r++){let o=t[r];o&&(e[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return e}var zA=K(()=>{});var RM,IM,OM,CM,NM,xM,PM,MM,vM,kM,LM,wM,DM,UM,BM,FM,GM,jM,HM,VM,qM,$M,zM,YM,WM,KM,QM,JM,XM,ZM,ev,tv,nv,rv,ov,sv,iv,av,uv,cv,lv,dv,pv,fv,mv,_v,hv,gv,Tv,Ev,Sv,Av,yv,bv,Rv,Iv,Ov,Cv,Nv,xv,Pv,Mv,vv,kv,Lv,wv,Dv,Uv,Bv,Fv,Gv,jv,Hv,Vv,qv,$v,zv,Yv,Wv,Kv,Qv,Jv,Xv,Zv,ek,tk,nk,rk,ok,sk,ik,ak,uk,ck,lk,dk,pk,fk,mk,_k,hk,gk,Tk,Ek,Sk,Ak,yk,bk,Rk,Ik,Ok,Ck,Nk,xk,Pk,Mk,vk,kk,Lk,wk,Dk,Uk,Bk,Fk,Gk,jk,Hk,Vk,YX,YA,WX,KX,QX,JX,WA,XX,ZX,eZ,tZ,nZ,rZ,oZ,sZ,iZ,aZ,uZ,cZ,lZ,dZ,pZ,fZ,mZ,_Z,KA,hZ,gZ,TZ,EZ,SZ,AZ,yZ,bZ,RZ,IZ,OZ,CZ,QA,NZ,xZ,JA,XA,PZ,MZ,vZ,kZ,LZ,wZ,DZ,UZ,BZ,FZ,GZ,jZ,HZ,VZ,qZ,$Z,zZ,kd,ju,ZA,YZ,WZ,ia,KZ,QZ,JZ,XZ,ey,ty,ZZ,ny,eee,tee,nee,ree,oee,see,iee,aee,uee,cee,lee,dee,pee,fee,mee,_ee,hee,gee,Tee,Eee,See,Aee,yee,ry,bee,Ree,Iee,Oee,Cee,Nee,xee,Pee,Mee,vee,kee,Lee,wee,Dee,Uee,Bee,Fee,Gee,jee,oy,Hee,sy,Vee,qee,$ee,zee,Yee,Wee,Kee,Qee,Jee,qk,$k,zk,Yk,Wk,Kk,Qk,Jk,Xk,Zk,eL,tL,nL,rL,oL,sL,iL,aL,uL,cL,lL,dL,pL,fL,mL,_L,hL,gL,TL,EL,SL,AL,yL,bL,RL,IL,OL,CL,NL,xL,PL,ML,vL,kL,LL,wL,DL,Xee,Zee,ete,tte,nte,rte,ote,ste,ite,ate,ute,cte,lte,dte,pte,fte,mte,_te,hte,gte,Tte,Ete,Ste,Ate,yte,bte,Rte,Ite,Ote,Cte,Nte,xte,Pte,Mte,vte,kte,Lte,wte,Dte,Ute,Bte,Fte,Gte,jte,Hte,Vte,qte,$te,UL,BL,FL,GL,jL,HL,VL,qL,$L,zL,YL,zte,Yte,Wte,Kte,Qte,Jte,Xte,Zte,ene,tne,nne,rne,WL,KL,QL,JL,XL,one,sne,ine,ane,une,cne,ZL,ew,tw,lne,dne,pne,fne,nw,rw,ow,sw,mne,_ne,hne,gne,Tne,iw,aw,uw,cw,lw,dw,pw,Ene,Sne,Ane,yne,bne,Rne,Ine,One,fw,mw,_w,hw,gw,Cne,Nne,xne,Pne,Mne,vne,Tw,Ew,Sw,Aw,yw,bw,Rw,Iw,Ow,Cw,Nw,xw,Pw,Mw,vw,kw,Lw,ww,Dw,Uw,Bw,kne,Lne,wne,Dne,Une,Bne,Fne,Gne,jne,Hne,Vne,qne,$ne,zne,Yne,Wne,Kne,Qne,Jne,Xne,Zne,ere,Fw,Gw,jw,Hw,Vw,tre,nre,rre,ore,sre,ire,qw,$w,are,ure,cre,zw,Yw,lre,dre,pre,Ww,Kw,Qw,Jw,Xw,Zw,eD,tD,nD,rD,oD,sD,iD,aD,uD,cD,lD,fre,mre,_re,hre,gre,Tre,Ere,Sre,Are,yre,bre,Rre,Ire,Ore,Cre,Nre,xre,Pre,dD,pD,Mre,vre,kre,fD=K(()=>{zA();RM="aws.lambda.invoked_arn",IM="db.system",OM="db.connection_string",CM="db.user",NM="db.jdbc.driver_classname",xM="db.name",PM="db.statement",MM="db.operation",vM="db.mssql.instance_name",kM="db.cassandra.keyspace",LM="db.cassandra.page_size",wM="db.cassandra.consistency_level",DM="db.cassandra.table",UM="db.cassandra.idempotence",BM="db.cassandra.speculative_execution_count",FM="db.cassandra.coordinator.id",GM="db.cassandra.coordinator.dc",jM="db.hbase.namespace",HM="db.redis.database_index",VM="db.mongodb.collection",qM="db.sql.table",$M="exception.type",zM="exception.message",YM="exception.stacktrace",WM="exception.escaped",KM="faas.trigger",QM="faas.execution",JM="faas.document.collection",XM="faas.document.operation",ZM="faas.document.time",ev="faas.document.name",tv="faas.time",nv="faas.cron",rv="faas.coldstart",ov="faas.invoked_name",sv="faas.invoked_provider",iv="faas.invoked_region",av="net.transport",uv="net.peer.ip",cv="net.peer.port",lv="net.peer.name",dv="net.host.ip",pv="net.host.port",fv="net.host.name",mv="net.host.connection.type",_v="net.host.connection.subtype",hv="net.host.carrier.name",gv="net.host.carrier.mcc",Tv="net.host.carrier.mnc",Ev="net.host.carrier.icc",Sv="peer.service",Av="enduser.id",yv="enduser.role",bv="enduser.scope",Rv="thread.id",Iv="thread.name",Ov="code.function",Cv="code.namespace",Nv="code.filepath",xv="code.lineno",Pv="http.method",Mv="http.url",vv="http.target",kv="http.host",Lv="http.scheme",wv="http.status_code",Dv="http.flavor",Uv="http.user_agent",Bv="http.request_content_length",Fv="http.request_content_length_uncompressed",Gv="http.response_content_length",jv="http.response_content_length_uncompressed",Hv="http.server_name",Vv="http.route",qv="http.client_ip",$v="aws.dynamodb.table_names",zv="aws.dynamodb.consumed_capacity",Yv="aws.dynamodb.item_collection_metrics",Wv="aws.dynamodb.provisioned_read_capacity",Kv="aws.dynamodb.provisioned_write_capacity",Qv="aws.dynamodb.consistent_read",Jv="aws.dynamodb.projection",Xv="aws.dynamodb.limit",Zv="aws.dynamodb.attributes_to_get",ek="aws.dynamodb.index_name",tk="aws.dynamodb.select",nk="aws.dynamodb.global_secondary_indexes",rk="aws.dynamodb.local_secondary_indexes",ok="aws.dynamodb.exclusive_start_table",sk="aws.dynamodb.table_count",ik="aws.dynamodb.scan_forward",ak="aws.dynamodb.segment",uk="aws.dynamodb.total_segments",ck="aws.dynamodb.count",lk="aws.dynamodb.scanned_count",dk="aws.dynamodb.attribute_definitions",pk="aws.dynamodb.global_secondary_index_updates",fk="messaging.system",mk="messaging.destination",_k="messaging.destination_kind",hk="messaging.temp_destination",gk="messaging.protocol",Tk="messaging.protocol_version",Ek="messaging.url",Sk="messaging.message_id",Ak="messaging.conversation_id",yk="messaging.message_payload_size_bytes",bk="messaging.message_payload_compressed_size_bytes",Rk="messaging.operation",Ik="messaging.consumer_id",Ok="messaging.rabbitmq.routing_key",Ck="messaging.kafka.message_key",Nk="messaging.kafka.consumer_group",xk="messaging.kafka.client_id",Pk="messaging.kafka.partition",Mk="messaging.kafka.tombstone",vk="rpc.system",kk="rpc.service",Lk="rpc.method",wk="rpc.grpc.status_code",Dk="rpc.jsonrpc.version",Uk="rpc.jsonrpc.request_id",Bk="rpc.jsonrpc.error_code",Fk="rpc.jsonrpc.error_message",Gk="message.type",jk="message.id",Hk="message.compressed_size",Vk="message.uncompressed_size",YX=RM,YA=IM,WX=OM,KX=CM,QX=NM,JX=xM,WA=PM,XX=MM,ZX=vM,eZ=kM,tZ=LM,nZ=wM,rZ=DM,oZ=UM,sZ=BM,iZ=FM,aZ=GM,uZ=jM,cZ=HM,lZ=VM,dZ=qM,pZ=$M,fZ=zM,mZ=YM,_Z=WM,KA=KM,hZ=QM,gZ=JM,TZ=XM,EZ=ZM,SZ=ev,AZ=tv,yZ=nv,bZ=rv,RZ=ov,IZ=sv,OZ=iv,CZ=av,QA=uv,NZ=cv,xZ=lv,JA=dv,XA=pv,PZ=fv,MZ=mv,vZ=_v,kZ=hv,LZ=gv,wZ=Tv,DZ=Ev,UZ=Sv,BZ=Av,FZ=yv,GZ=bv,jZ=Rv,HZ=Iv,VZ=Ov,qZ=Cv,$Z=Nv,zZ=xv,kd=Pv,ju=Mv,ZA=vv,YZ=kv,WZ=Lv,ia=wv,KZ=Dv,QZ=Uv,JZ=Bv,XZ=Fv,ey=Gv,ty=jv,ZZ=Hv,ny=Vv,eee=qv,tee=$v,nee=zv,ree=Yv,oee=Wv,see=Kv,iee=Qv,aee=Jv,uee=Xv,cee=Zv,lee=ek,dee=tk,pee=nk,fee=rk,mee=ok,_ee=sk,hee=ik,gee=ak,Tee=uk,Eee=ck,See=lk,Aee=dk,yee=pk,ry=fk,bee=mk,Ree=_k,Iee=hk,Oee=gk,Cee=Tk,Nee=Ek,xee=Sk,Pee=Ak,Mee=yk,vee=bk,kee=Rk,Lee=Ik,wee=Ok,Dee=Ck,Uee=Nk,Bee=xk,Fee=Pk,Gee=Mk,jee=vk,oy=kk,Hee=Lk,sy=wk,Vee=Dk,qee=Uk,$ee=Bk,zee=Fk,Yee=Gk,Wee=jk,Kee=Hk,Qee=Vk,Jee=Ze([RM,IM,OM,CM,NM,xM,PM,MM,vM,kM,LM,wM,DM,UM,BM,FM,GM,jM,HM,VM,qM,$M,zM,YM,WM,KM,QM,JM,XM,ZM,ev,tv,nv,rv,ov,sv,iv,av,uv,cv,lv,dv,pv,fv,mv,_v,hv,gv,Tv,Ev,Sv,Av,yv,bv,Rv,Iv,Ov,Cv,Nv,xv,Pv,Mv,vv,kv,Lv,wv,Dv,Uv,Bv,Fv,Gv,jv,Hv,Vv,qv,$v,zv,Yv,Wv,Kv,Qv,Jv,Xv,Zv,ek,tk,nk,rk,ok,sk,ik,ak,uk,ck,lk,dk,pk,fk,mk,_k,hk,gk,Tk,Ek,Sk,Ak,yk,bk,Rk,Ik,Ok,Ck,Nk,xk,Pk,Mk,vk,kk,Lk,wk,Dk,Uk,Bk,Fk,Gk,jk,Hk,Vk]),qk="other_sql",$k="mssql",zk="mysql",Yk="oracle",Wk="db2",Kk="postgresql",Qk="redshift",Jk="hive",Xk="cloudscape",Zk="hsqldb",eL="progress",tL="maxdb",nL="hanadb",rL="ingres",oL="firstsql",sL="edb",iL="cache",aL="adabas",uL="firebird",cL="derby",lL="filemaker",dL="informix",pL="instantdb",fL="interbase",mL="mariadb",_L="netezza",hL="pervasive",gL="pointbase",TL="sqlite",EL="sybase",SL="teradata",AL="vertica",yL="h2",bL="coldfusion",RL="cassandra",IL="hbase",OL="mongodb",CL="redis",NL="couchbase",xL="couchdb",PL="cosmosdb",ML="dynamodb",vL="neo4j",kL="geode",LL="elasticsearch",wL="memcached",DL="cockroachdb",Xee=qk,Zee=$k,ete=zk,tte=Yk,nte=Wk,rte=Kk,ote=Qk,ste=Jk,ite=Xk,ate=Zk,ute=eL,cte=tL,lte=nL,dte=rL,pte=oL,fte=sL,mte=iL,_te=aL,hte=uL,gte=cL,Tte=lL,Ete=dL,Ste=pL,Ate=fL,yte=mL,bte=_L,Rte=hL,Ite=gL,Ote=TL,Cte=EL,Nte=SL,xte=AL,Pte=yL,Mte=bL,vte=RL,kte=IL,Lte=OL,wte=CL,Dte=NL,Ute=xL,Bte=PL,Fte=ML,Gte=vL,jte=kL,Hte=LL,Vte=wL,qte=DL,$te=Ze([qk,$k,zk,Yk,Wk,Kk,Qk,Jk,Xk,Zk,eL,tL,nL,rL,oL,sL,iL,aL,uL,cL,lL,dL,pL,fL,mL,_L,hL,gL,TL,EL,SL,AL,yL,bL,RL,IL,OL,CL,NL,xL,PL,ML,vL,kL,LL,wL,DL]),UL="all",BL="each_quorum",FL="quorum",GL="local_quorum",jL="one",HL="two",VL="three",qL="local_one",$L="any",zL="serial",YL="local_serial",zte=UL,Yte=BL,Wte=FL,Kte=GL,Qte=jL,Jte=HL,Xte=VL,Zte=qL,ene=$L,tne=zL,nne=YL,rne=Ze([UL,BL,FL,GL,jL,HL,VL,qL,$L,zL,YL]),WL="datasource",KL="http",QL="pubsub",JL="timer",XL="other",one=WL,sne=KL,ine=QL,ane=JL,une=XL,cne=Ze([WL,KL,QL,JL,XL]),ZL="insert",ew="edit",tw="delete",lne=ZL,dne=ew,pne=tw,fne=Ze([ZL,ew,tw]),nw="alibaba_cloud",rw="aws",ow="azure",sw="gcp",mne=nw,_ne=rw,hne=ow,gne=sw,Tne=Ze([nw,rw,ow,sw]),iw="ip_tcp",aw="ip_udp",uw="ip",cw="unix",lw="pipe",dw="inproc",pw="other",Ene=iw,Sne=aw,Ane=uw,yne=cw,bne=lw,Rne=dw,Ine=pw,One=Ze([iw,aw,uw,cw,lw,dw,pw]),fw="wifi",mw="wired",_w="cell",hw="unavailable",gw="unknown",Cne=fw,Nne=mw,xne=_w,Pne=hw,Mne=gw,vne=Ze([fw,mw,_w,hw,gw]),Tw="gprs",Ew="edge",Sw="umts",Aw="cdma",yw="evdo_0",bw="evdo_a",Rw="cdma2000_1xrtt",Iw="hsdpa",Ow="hsupa",Cw="hspa",Nw="iden",xw="evdo_b",Pw="lte",Mw="ehrpd",vw="hspap",kw="gsm",Lw="td_scdma",ww="iwlan",Dw="nr",Uw="nrnsa",Bw="lte_ca",kne=Tw,Lne=Ew,wne=Sw,Dne=Aw,Une=yw,Bne=bw,Fne=Rw,Gne=Iw,jne=Ow,Hne=Cw,Vne=Nw,qne=xw,$ne=Pw,zne=Mw,Yne=vw,Wne=kw,Kne=Lw,Qne=ww,Jne=Dw,Xne=Uw,Zne=Bw,ere=Ze([Tw,Ew,Sw,Aw,yw,bw,Rw,Iw,Ow,Cw,Nw,xw,Pw,Mw,vw,kw,Lw,ww,Dw,Uw,Bw]),Fw="1.0",Gw="1.1",jw="2.0",Hw="SPDY",Vw="QUIC",tre=Fw,nre=Gw,rre=jw,ore=Hw,sre=Vw,ire={HTTP_1_0:Fw,HTTP_1_1:Gw,HTTP_2_0:jw,SPDY:Hw,QUIC:Vw},qw="queue",$w="topic",are=qw,ure=$w,cre=Ze([qw,$w]),zw="receive",Yw="process",lre=zw,dre=Yw,pre=Ze([zw,Yw]),Ww=0,Kw=1,Qw=2,Jw=3,Xw=4,Zw=5,eD=6,tD=7,nD=8,rD=9,oD=10,sD=11,iD=12,aD=13,uD=14,cD=15,lD=16,fre=Ww,mre=Kw,_re=Qw,hre=Jw,gre=Xw,Tre=Zw,Ere=eD,Sre=tD,Are=nD,yre=rD,bre=oD,Rre=sD,Ire=iD,Ore=aD,Cre=uD,Nre=cD,xre=lD,Pre={OK:Ww,CANCELLED:Kw,UNKNOWN:Qw,INVALID_ARGUMENT:Jw,DEADLINE_EXCEEDED:Xw,NOT_FOUND:Zw,ALREADY_EXISTS:eD,PERMISSION_DENIED:tD,RESOURCE_EXHAUSTED:nD,FAILED_PRECONDITION:rD,ABORTED:oD,OUT_OF_RANGE:sD,UNIMPLEMENTED:iD,INTERNAL:aD,UNAVAILABLE:uD,DATA_LOSS:cD,UNAUTHENTICATED:lD},dD="SENT",pD="RECEIVED",Mre=dD,vre=pD,kre=Ze([dD,pD])});var mD=K(()=>{fD()});var _D,hD,gD,TD,ED,SD,AD,yD,bD,RD,ID,OD,CD,ND,xD,PD,MD,vD,kD,LD,wD,DD,UD,BD,FD,GD,jD,HD,VD,qD,$D,zD,YD,WD,KD,QD,JD,XD,ZD,e2,t2,n2,r2,o2,s2,i2,a2,u2,c2,l2,d2,p2,f2,m2,_2,h2,g2,T2,E2,S2,A2,y2,b2,R2,I2,O2,C2,N2,x2,P2,M2,v2,k2,L2,w2,D2,U2,B2,F2,G2,j2,Lre,wre,Dre,Ure,Bre,Fre,Gre,jre,Hre,Vre,qre,$re,zre,Yre,Wre,Kre,Qre,Jre,Xre,Zre,eoe,toe,noe,roe,ooe,soe,ioe,aoe,uoe,coe,loe,doe,poe,foe,moe,_oe,hoe,goe,Toe,Eoe,Soe,Aoe,yoe,boe,Roe,Ioe,Ooe,Coe,Noe,xoe,Poe,Moe,voe,koe,Loe,woe,Doe,Uoe,Boe,Foe,Goe,joe,Hoe,Voe,qoe,$oe,zoe,Yoe,Woe,Koe,Qoe,iy,Joe,Xoe,Zoe,ese,tse,nse,rse,ose,sse,ise,H2,V2,q2,$2,ase,use,cse,lse,dse,z2,Y2,W2,K2,Q2,J2,X2,Z2,eU,tU,nU,rU,oU,sU,iU,aU,uU,pse,fse,mse,_se,hse,gse,Tse,Ese,Sse,Ase,yse,bse,Rse,Ise,Ose,Cse,Nse,xse,cU,lU,Pse,Mse,vse,dU,pU,fU,mU,_U,hU,gU,kse,Lse,wse,Dse,Use,Bse,Fse,Gse,TU,EU,SU,AU,yU,bU,RU,IU,OU,CU,NU,jse,Hse,Vse,qse,$se,zse,Yse,Wse,Kse,Qse,Jse,Xse,xU,PU,MU,vU,kU,LU,wU,DU,UU,BU,Zse,eie,tie,nie,rie,oie,sie,iie,aie,uie,cie,FU=K(()=>{zA();_D="cloud.provider",hD="cloud.account.id",gD="cloud.region",TD="cloud.availability_zone",ED="cloud.platform",SD="aws.ecs.container.arn",AD="aws.ecs.cluster.arn",yD="aws.ecs.launchtype",bD="aws.ecs.task.arn",RD="aws.ecs.task.family",ID="aws.ecs.task.revision",OD="aws.eks.cluster.arn",CD="aws.log.group.names",ND="aws.log.group.arns",xD="aws.log.stream.names",PD="aws.log.stream.arns",MD="container.name",vD="container.id",kD="container.runtime",LD="container.image.name",wD="container.image.tag",DD="deployment.environment",UD="device.id",BD="device.model.identifier",FD="device.model.name",GD="faas.name",jD="faas.id",HD="faas.version",VD="faas.instance",qD="faas.max_memory",$D="host.id",zD="host.name",YD="host.type",WD="host.arch",KD="host.image.name",QD="host.image.id",JD="host.image.version",XD="k8s.cluster.name",ZD="k8s.node.name",e2="k8s.node.uid",t2="k8s.namespace.name",n2="k8s.pod.uid",r2="k8s.pod.name",o2="k8s.container.name",s2="k8s.replicaset.uid",i2="k8s.replicaset.name",a2="k8s.deployment.uid",u2="k8s.deployment.name",c2="k8s.statefulset.uid",l2="k8s.statefulset.name",d2="k8s.daemonset.uid",p2="k8s.daemonset.name",f2="k8s.job.uid",m2="k8s.job.name",_2="k8s.cronjob.uid",h2="k8s.cronjob.name",g2="os.type",T2="os.description",E2="os.name",S2="os.version",A2="process.pid",y2="process.executable.name",b2="process.executable.path",R2="process.command",I2="process.command_line",O2="process.command_args",C2="process.owner",N2="process.runtime.name",x2="process.runtime.version",P2="process.runtime.description",M2="service.name",v2="service.namespace",k2="service.instance.id",L2="service.version",w2="telemetry.sdk.name",D2="telemetry.sdk.language",U2="telemetry.sdk.version",B2="telemetry.auto.version",F2="webengine.name",G2="webengine.version",j2="webengine.description",Lre=_D,wre=hD,Dre=gD,Ure=TD,Bre=ED,Fre=SD,Gre=AD,jre=yD,Hre=bD,Vre=RD,qre=ID,$re=OD,zre=CD,Yre=ND,Wre=xD,Kre=PD,Qre=MD,Jre=vD,Xre=kD,Zre=LD,eoe=wD,toe=DD,noe=UD,roe=BD,ooe=FD,soe=GD,ioe=jD,aoe=HD,uoe=VD,coe=qD,loe=$D,doe=zD,poe=YD,foe=WD,moe=KD,_oe=QD,hoe=JD,goe=XD,Toe=ZD,Eoe=e2,Soe=t2,Aoe=n2,yoe=r2,boe=o2,Roe=s2,Ioe=i2,Ooe=a2,Coe=u2,Noe=c2,xoe=l2,Poe=d2,Moe=p2,voe=f2,koe=m2,Loe=_2,woe=h2,Doe=g2,Uoe=T2,Boe=E2,Foe=S2,Goe=A2,joe=y2,Hoe=b2,Voe=R2,qoe=I2,$oe=O2,zoe=C2,Yoe=N2,Woe=x2,Koe=P2,Qoe=M2,iy=v2,Joe=k2,Xoe=L2,Zoe=w2,ese=D2,tse=U2,nse=B2,rse=F2,ose=G2,sse=j2,ise=Ze([_D,hD,gD,TD,ED,SD,AD,yD,bD,RD,ID,OD,CD,ND,xD,PD,MD,vD,kD,LD,wD,DD,UD,BD,FD,GD,jD,HD,VD,qD,$D,zD,YD,WD,KD,QD,JD,XD,ZD,e2,t2,n2,r2,o2,s2,i2,a2,u2,c2,l2,d2,p2,f2,m2,_2,h2,g2,T2,E2,S2,A2,y2,b2,R2,I2,O2,C2,N2,x2,P2,M2,v2,k2,L2,w2,D2,U2,B2,F2,G2,j2]),H2="alibaba_cloud",V2="aws",q2="azure",$2="gcp",ase=H2,use=V2,cse=q2,lse=$2,dse=Ze([H2,V2,q2,$2]),z2="alibaba_cloud_ecs",Y2="alibaba_cloud_fc",W2="aws_ec2",K2="aws_ecs",Q2="aws_eks",J2="aws_lambda",X2="aws_elastic_beanstalk",Z2="azure_vm",eU="azure_container_instances",tU="azure_aks",nU="azure_functions",rU="azure_app_service",oU="gcp_compute_engine",sU="gcp_cloud_run",iU="gcp_kubernetes_engine",aU="gcp_cloud_functions",uU="gcp_app_engine",pse=z2,fse=Y2,mse=W2,_se=K2,hse=Q2,gse=J2,Tse=X2,Ese=Z2,Sse=eU,Ase=tU,yse=nU,bse=rU,Rse=oU,Ise=sU,Ose=iU,Cse=aU,Nse=uU,xse=Ze([z2,Y2,W2,K2,Q2,J2,X2,Z2,eU,tU,nU,rU,oU,sU,iU,aU,uU]),cU="ec2",lU="fargate",Pse=cU,Mse=lU,vse=Ze([cU,lU]),dU="amd64",pU="arm32",fU="arm64",mU="ia64",_U="ppc32",hU="ppc64",gU="x86",kse=dU,Lse=pU,wse=fU,Dse=mU,Use=_U,Bse=hU,Fse=gU,Gse=Ze([dU,pU,fU,mU,_U,hU,gU]),TU="windows",EU="linux",SU="darwin",AU="freebsd",yU="netbsd",bU="openbsd",RU="dragonflybsd",IU="hpux",OU="aix",CU="solaris",NU="z_os",jse=TU,Hse=EU,Vse=SU,qse=AU,$se=yU,zse=bU,Yse=RU,Wse=IU,Kse=OU,Qse=CU,Jse=NU,Xse=Ze([TU,EU,SU,AU,yU,bU,RU,IU,OU,CU,NU]),xU="cpp",PU="dotnet",MU="erlang",vU="go",kU="java",LU="nodejs",wU="php",DU="python",UU="ruby",BU="webjs",Zse=xU,eie=PU,tie=MU,nie=vU,rie=kU,oie=LU,sie=wU,iie=DU,aie=UU,uie=BU,cie=Ze([xU,PU,MU,vU,kU,LU,wU,DU,UU,BU])});var GU=K(()=>{FU()});var lie,die,pie,fie,mie,_ie,hie,gie,Tie,Eie,Sie,Aie,yie,bie,Rie,Iie,Oie,Cie,Nie,xie,Pie,Mie,vie,kie,Lie,ay,uy,wie,Hu,Die,cy,ly,Uie,aa,Bie,Fie,Gie,jie,Hie,Vie,qie,$ie,zie,Yie,dy,Wie,Kie,Qie,Jie,Xie,Zie,ua,eae,tae,nae,rae,oae,sae,iae,aae,uae,cae,lae,dae,pae,es,ts,fae,mae,_ae,hae,gae,Tae,Eae,Sae,Aae,yae,bae,Rae,Iae,Oae,Cae,Nae,py,fy,xae,my,_y,Pae,Mae,vae,kae,Lae,wae,Dae,Uae,Bae,Fae,Gae,jae,Hae,Vae,hy,gy,qae,Ty,$ae,Ey,zae,Yae,Wae,Kae,Qae,Jae,Xae,Zae,eue,tue,nue,rue,oue,sue,iue,aue,uue,cue,lue,due,pue,fue,mue,_ue,Fs,hue,gue,Tue,Sy,jU=K(()=>{lie="aspnetcore.diagnostics.exception.result",die="aborted",pie="handled",fie="skipped",mie="unhandled",_ie="aspnetcore.diagnostics.handler.type",hie="aspnetcore.rate_limiting.policy",gie="aspnetcore.rate_limiting.result",Tie="acquired",Eie="endpoint_limiter",Sie="global_limiter",Aie="request_canceled",yie="aspnetcore.request.is_unhandled",bie="aspnetcore.routing.is_fallback",Rie="aspnetcore.routing.match_status",Iie="failure",Oie="success",Cie="aspnetcore.user.is_authenticated",Nie="client.address",xie="client.port",Pie="code.column.number",Mie="code.file.path",vie="code.function.name",kie="code.line.number",Lie="code.stacktrace",ay="db.collection.name",uy="db.namespace",wie="db.operation.batch.size",Hu="db.operation.name",Die="db.query.summary",cy="db.query.text",ly="db.response.status_code",Uie="db.stored_procedure.name",aa="db.system.name",Bie="mariadb",Fie="microsoft.sql_server",Gie="mysql",jie="postgresql",Hie="dotnet.gc.heap.generation",Vie="gen0",qie="gen1",$ie="gen2",zie="loh",Yie="poh",dy="error.type",Wie="_OTHER",Kie="exception.escaped",Qie="exception.message",Jie="exception.stacktrace",Xie="exception.type",Zie=t=>`http.request.header.${t}`,ua="http.request.method",eae="_OTHER",tae="CONNECT",nae="DELETE",rae="GET",oae="HEAD",sae="OPTIONS",iae="PATCH",aae="POST",uae="PUT",cae="TRACE",lae="http.request.method_original",dae="http.request.resend_count",pae=t=>`http.response.header.${t}`,es="http.response.status_code",ts="http.route",fae="jvm.gc.action",mae="jvm.gc.name",_ae="jvm.memory.pool.name",hae="jvm.memory.type",gae="heap",Tae="non_heap",Eae="jvm.thread.daemon",Sae="jvm.thread.state",Aae="blocked",yae="new",bae="runnable",Rae="terminated",Iae="timed_waiting",Oae="waiting",Cae="network.local.address",Nae="network.local.port",py="network.peer.address",fy="network.peer.port",xae="network.protocol.name",my="network.protocol.version",_y="network.transport",Pae="pipe",Mae="quic",vae="tcp",kae="udp",Lae="unix",wae="network.type",Dae="ipv4",Uae="ipv6",Bae="otel.scope.name",Fae="otel.scope.version",Gae="otel.status_code",jae="ERROR",Hae="OK",Vae="otel.status_description",hy="server.address",gy="server.port",qae="service.instance.id",Ty="service.name",$ae="service.namespace",Ey="service.version",zae="signalr.connection.status",Yae="app_shutdown",Wae="normal_closure",Kae="timeout",Qae="signalr.transport",Jae="long_polling",Xae="server_sent_events",Zae="web_sockets",eue="telemetry.sdk.language",tue="cpp",nue="dotnet",rue="erlang",oue="go",sue="java",iue="nodejs",aue="php",uue="python",cue="ruby",lue="rust",due="swift",pue="webjs",fue="telemetry.sdk.name",mue="telemetry.sdk.version",_ue="url.fragment",Fs="url.full",hue="url.path",gue="url.query",Tue="url.scheme",Sy="user_agent.original"});var Eue,Sue,Aue,yue,bue,Rue,Iue,Oue,Cue,Nue,xue,Pue,Mue,vue,kue,Lue,wue,Due,Uue,Bue,Fue,Gue,jue,Hue,Vue,que,$ue,zue,Yue,Wue,Kue,Que,Jue,Xue,Zue,ece,tce,nce,rce,oce,sce,ice,ace,uce,cce,lce,dce,pce,fce,mce,_ce,HU=K(()=>{Eue="aspnetcore.diagnostics.exceptions",Sue="aspnetcore.rate_limiting.active_request_leases",Aue="aspnetcore.rate_limiting.queued_requests",yue="aspnetcore.rate_limiting.request.time_in_queue",bue="aspnetcore.rate_limiting.request_lease.duration",Rue="aspnetcore.rate_limiting.requests",Iue="aspnetcore.routing.match_attempts",Oue="db.client.operation.duration",Cue="dotnet.assembly.count",Nue="dotnet.exceptions",xue="dotnet.gc.collections",Pue="dotnet.gc.heap.total_allocated",Mue="dotnet.gc.last_collection.heap.fragmentation.size",vue="dotnet.gc.last_collection.heap.size",kue="dotnet.gc.last_collection.memory.committed_size",Lue="dotnet.gc.pause.time",wue="dotnet.jit.compilation.time",Due="dotnet.jit.compiled_il.size",Uue="dotnet.jit.compiled_methods",Bue="dotnet.monitor.lock_contentions",Fue="dotnet.process.cpu.count",Gue="dotnet.process.cpu.time",jue="dotnet.process.memory.working_set",Hue="dotnet.thread_pool.queue.length",Vue="dotnet.thread_pool.thread.count",que="dotnet.thread_pool.work_item.count",$ue="dotnet.timer.count",zue="http.client.request.duration",Yue="http.server.request.duration",Wue="jvm.class.count",Kue="jvm.class.loaded",Que="jvm.class.unloaded",Jue="jvm.cpu.count",Xue="jvm.cpu.recent_utilization",Zue="jvm.cpu.time",ece="jvm.gc.duration",tce="jvm.memory.committed",nce="jvm.memory.limit",rce="jvm.memory.used",oce="jvm.memory.used_after_last_gc",sce="jvm.thread.count",ice="kestrel.active_connections",ace="kestrel.active_tls_handshakes",uce="kestrel.connection.duration",cce="kestrel.queued_connections",lce="kestrel.queued_requests",dce="kestrel.rejected_connections",pce="kestrel.tls_handshake.duration",fce="kestrel.upgraded_connections",mce="signalr.server.active_connections",_ce="signalr.server.connection.duration"});var hce,VU=K(()=>{hce="exception"});var Ie={};ea(Ie,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>die,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>pie,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>fie,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>mie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Tie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>Eie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>Sie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>Aie,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>Iie,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Oie,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>lie,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>_ie,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>hie,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>gie,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>yie,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>bie,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Rie,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>Cie,ATTR_CLIENT_ADDRESS:()=>Nie,ATTR_CLIENT_PORT:()=>xie,ATTR_CODE_COLUMN_NUMBER:()=>Pie,ATTR_CODE_FILE_PATH:()=>Mie,ATTR_CODE_FUNCTION_NAME:()=>vie,ATTR_CODE_LINE_NUMBER:()=>kie,ATTR_CODE_STACKTRACE:()=>Lie,ATTR_DB_COLLECTION_NAME:()=>ay,ATTR_DB_NAMESPACE:()=>uy,ATTR_DB_OPERATION_BATCH_SIZE:()=>wie,ATTR_DB_OPERATION_NAME:()=>Hu,ATTR_DB_QUERY_SUMMARY:()=>Die,ATTR_DB_QUERY_TEXT:()=>cy,ATTR_DB_RESPONSE_STATUS_CODE:()=>ly,ATTR_DB_STORED_PROCEDURE_NAME:()=>Uie,ATTR_DB_SYSTEM_NAME:()=>aa,ATTR_DOTNET_GC_HEAP_GENERATION:()=>Hie,ATTR_ERROR_TYPE:()=>dy,ATTR_EXCEPTION_ESCAPED:()=>Kie,ATTR_EXCEPTION_MESSAGE:()=>Qie,ATTR_EXCEPTION_STACKTRACE:()=>Jie,ATTR_EXCEPTION_TYPE:()=>Xie,ATTR_HTTP_REQUEST_HEADER:()=>Zie,ATTR_HTTP_REQUEST_METHOD:()=>ua,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>lae,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>dae,ATTR_HTTP_RESPONSE_HEADER:()=>pae,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>es,ATTR_HTTP_ROUTE:()=>ts,ATTR_JVM_GC_ACTION:()=>fae,ATTR_JVM_GC_NAME:()=>mae,ATTR_JVM_MEMORY_POOL_NAME:()=>_ae,ATTR_JVM_MEMORY_TYPE:()=>hae,ATTR_JVM_THREAD_DAEMON:()=>Eae,ATTR_JVM_THREAD_STATE:()=>Sae,ATTR_NETWORK_LOCAL_ADDRESS:()=>Cae,ATTR_NETWORK_LOCAL_PORT:()=>Nae,ATTR_NETWORK_PEER_ADDRESS:()=>py,ATTR_NETWORK_PEER_PORT:()=>fy,ATTR_NETWORK_PROTOCOL_NAME:()=>xae,ATTR_NETWORK_PROTOCOL_VERSION:()=>my,ATTR_NETWORK_TRANSPORT:()=>_y,ATTR_NETWORK_TYPE:()=>wae,ATTR_OTEL_SCOPE_NAME:()=>Bae,ATTR_OTEL_SCOPE_VERSION:()=>Fae,ATTR_OTEL_STATUS_CODE:()=>Gae,ATTR_OTEL_STATUS_DESCRIPTION:()=>Vae,ATTR_SERVER_ADDRESS:()=>hy,ATTR_SERVER_PORT:()=>gy,ATTR_SERVICE_INSTANCE_ID:()=>qae,ATTR_SERVICE_NAME:()=>Ty,ATTR_SERVICE_NAMESPACE:()=>$ae,ATTR_SERVICE_VERSION:()=>Ey,ATTR_SIGNALR_CONNECTION_STATUS:()=>zae,ATTR_SIGNALR_TRANSPORT:()=>Qae,ATTR_TELEMETRY_SDK_LANGUAGE:()=>eue,ATTR_TELEMETRY_SDK_NAME:()=>fue,ATTR_TELEMETRY_SDK_VERSION:()=>mue,ATTR_URL_FRAGMENT:()=>_ue,ATTR_URL_FULL:()=>Fs,ATTR_URL_PATH:()=>hue,ATTR_URL_QUERY:()=>gue,ATTR_URL_SCHEME:()=>Tue,ATTR_USER_AGENT_ORIGINAL:()=>Sy,AWSECSLAUNCHTYPEVALUES_EC2:()=>Pse,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Mse,AwsEcsLaunchtypeValues:()=>vse,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>pse,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>fse,CLOUDPLATFORMVALUES_AWS_EC2:()=>mse,CLOUDPLATFORMVALUES_AWS_ECS:()=>_se,CLOUDPLATFORMVALUES_AWS_EKS:()=>hse,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Tse,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>gse,CLOUDPLATFORMVALUES_AZURE_AKS:()=>Ase,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>bse,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Sse,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>yse,CLOUDPLATFORMVALUES_AZURE_VM:()=>Ese,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Nse,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Cse,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>Ise,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Rse,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Ose,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>ase,CLOUDPROVIDERVALUES_AWS:()=>use,CLOUDPROVIDERVALUES_AZURE:()=>cse,CLOUDPROVIDERVALUES_GCP:()=>lse,CloudPlatformValues:()=>xse,CloudProviderValues:()=>dse,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>zte,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>ene,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Yte,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>Zte,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Kte,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>nne,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>Qte,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>Wte,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>tne,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Xte,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Jte,DBSYSTEMVALUES_ADABAS:()=>_te,DBSYSTEMVALUES_CACHE:()=>mte,DBSYSTEMVALUES_CASSANDRA:()=>vte,DBSYSTEMVALUES_CLOUDSCAPE:()=>ite,DBSYSTEMVALUES_COCKROACHDB:()=>qte,DBSYSTEMVALUES_COLDFUSION:()=>Mte,DBSYSTEMVALUES_COSMOSDB:()=>Bte,DBSYSTEMVALUES_COUCHBASE:()=>Dte,DBSYSTEMVALUES_COUCHDB:()=>Ute,DBSYSTEMVALUES_DB2:()=>nte,DBSYSTEMVALUES_DERBY:()=>gte,DBSYSTEMVALUES_DYNAMODB:()=>Fte,DBSYSTEMVALUES_EDB:()=>fte,DBSYSTEMVALUES_ELASTICSEARCH:()=>Hte,DBSYSTEMVALUES_FILEMAKER:()=>Tte,DBSYSTEMVALUES_FIREBIRD:()=>hte,DBSYSTEMVALUES_FIRSTSQL:()=>pte,DBSYSTEMVALUES_GEODE:()=>jte,DBSYSTEMVALUES_H2:()=>Pte,DBSYSTEMVALUES_HANADB:()=>lte,DBSYSTEMVALUES_HBASE:()=>kte,DBSYSTEMVALUES_HIVE:()=>ste,DBSYSTEMVALUES_HSQLDB:()=>ate,DBSYSTEMVALUES_INFORMIX:()=>Ete,DBSYSTEMVALUES_INGRES:()=>dte,DBSYSTEMVALUES_INSTANTDB:()=>Ste,DBSYSTEMVALUES_INTERBASE:()=>Ate,DBSYSTEMVALUES_MARIADB:()=>yte,DBSYSTEMVALUES_MAXDB:()=>cte,DBSYSTEMVALUES_MEMCACHED:()=>Vte,DBSYSTEMVALUES_MONGODB:()=>Lte,DBSYSTEMVALUES_MSSQL:()=>Zee,DBSYSTEMVALUES_MYSQL:()=>ete,DBSYSTEMVALUES_NEO4J:()=>Gte,DBSYSTEMVALUES_NETEZZA:()=>bte,DBSYSTEMVALUES_ORACLE:()=>tte,DBSYSTEMVALUES_OTHER_SQL:()=>Xee,DBSYSTEMVALUES_PERVASIVE:()=>Rte,DBSYSTEMVALUES_POINTBASE:()=>Ite,DBSYSTEMVALUES_POSTGRESQL:()=>rte,DBSYSTEMVALUES_PROGRESS:()=>ute,DBSYSTEMVALUES_REDIS:()=>wte,DBSYSTEMVALUES_REDSHIFT:()=>ote,DBSYSTEMVALUES_SQLITE:()=>Ote,DBSYSTEMVALUES_SYBASE:()=>Cte,DBSYSTEMVALUES_TERADATA:()=>Nte,DBSYSTEMVALUES_VERTICA:()=>xte,DB_SYSTEM_NAME_VALUE_MARIADB:()=>Bie,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>Fie,DB_SYSTEM_NAME_VALUE_MYSQL:()=>Gie,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>jie,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>Vie,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>qie,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>$ie,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>zie,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>Yie,DbCassandraConsistencyLevelValues:()=>rne,DbSystemValues:()=>$te,ERROR_TYPE_VALUE_OTHER:()=>Wie,EVENT_EXCEPTION:()=>hce,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>pne,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>dne,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>lne,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>mne,FAASINVOKEDPROVIDERVALUES_AWS:()=>_ne,FAASINVOKEDPROVIDERVALUES_AZURE:()=>hne,FAASINVOKEDPROVIDERVALUES_GCP:()=>gne,FAASTRIGGERVALUES_DATASOURCE:()=>one,FAASTRIGGERVALUES_HTTP:()=>sne,FAASTRIGGERVALUES_OTHER:()=>une,FAASTRIGGERVALUES_PUBSUB:()=>ine,FAASTRIGGERVALUES_TIMER:()=>ane,FaasDocumentOperationValues:()=>fne,FaasInvokedProviderValues:()=>Tne,FaasTriggerValues:()=>cne,HOSTARCHVALUES_AMD64:()=>kse,HOSTARCHVALUES_ARM32:()=>Lse,HOSTARCHVALUES_ARM64:()=>wse,HOSTARCHVALUES_IA64:()=>Dse,HOSTARCHVALUES_PPC32:()=>Use,HOSTARCHVALUES_PPC64:()=>Bse,HOSTARCHVALUES_X86:()=>Fse,HTTPFLAVORVALUES_HTTP_1_0:()=>tre,HTTPFLAVORVALUES_HTTP_1_1:()=>nre,HTTPFLAVORVALUES_HTTP_2_0:()=>rre,HTTPFLAVORVALUES_QUIC:()=>sre,HTTPFLAVORVALUES_SPDY:()=>ore,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>tae,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>nae,HTTP_REQUEST_METHOD_VALUE_GET:()=>rae,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>oae,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>sae,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>eae,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>iae,HTTP_REQUEST_METHOD_VALUE_POST:()=>aae,HTTP_REQUEST_METHOD_VALUE_PUT:()=>uae,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>cae,HostArchValues:()=>Gse,HttpFlavorValues:()=>ire,JVM_MEMORY_TYPE_VALUE_HEAP:()=>gae,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>Tae,JVM_THREAD_STATE_VALUE_BLOCKED:()=>Aae,JVM_THREAD_STATE_VALUE_NEW:()=>yae,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>bae,JVM_THREAD_STATE_VALUE_TERMINATED:()=>Rae,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>Iae,JVM_THREAD_STATE_VALUE_WAITING:()=>Oae,MESSAGETYPEVALUES_RECEIVED:()=>vre,MESSAGETYPEVALUES_SENT:()=>Mre,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>are,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>ure,MESSAGINGOPERATIONVALUES_PROCESS:()=>dre,MESSAGINGOPERATIONVALUES_RECEIVE:()=>lre,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>Eue,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Sue,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>Aue,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Rue,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>bue,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>yue,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>Iue,METRIC_DB_CLIENT_OPERATION_DURATION:()=>Oue,METRIC_DOTNET_ASSEMBLY_COUNT:()=>Cue,METRIC_DOTNET_EXCEPTIONS:()=>Nue,METRIC_DOTNET_GC_COLLECTIONS:()=>xue,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>Pue,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>Mue,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>vue,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>kue,METRIC_DOTNET_GC_PAUSE_TIME:()=>Lue,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>wue,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>Due,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>Uue,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>Bue,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>Fue,METRIC_DOTNET_PROCESS_CPU_TIME:()=>Gue,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>jue,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>Hue,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>Vue,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>que,METRIC_DOTNET_TIMER_COUNT:()=>$ue,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>zue,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>Yue,METRIC_JVM_CLASS_COUNT:()=>Wue,METRIC_JVM_CLASS_LOADED:()=>Kue,METRIC_JVM_CLASS_UNLOADED:()=>Que,METRIC_JVM_CPU_COUNT:()=>Jue,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>Xue,METRIC_JVM_CPU_TIME:()=>Zue,METRIC_JVM_GC_DURATION:()=>ece,METRIC_JVM_MEMORY_COMMITTED:()=>tce,METRIC_JVM_MEMORY_LIMIT:()=>nce,METRIC_JVM_MEMORY_USED:()=>rce,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>oce,METRIC_JVM_THREAD_COUNT:()=>sce,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>ice,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>ace,METRIC_KESTREL_CONNECTION_DURATION:()=>uce,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>cce,METRIC_KESTREL_QUEUED_REQUESTS:()=>lce,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>dce,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>pce,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>fce,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>mce,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>_ce,MessageTypeValues:()=>kre,MessagingDestinationKindValues:()=>cre,MessagingOperationValues:()=>pre,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Dne,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Fne,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Lne,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>zne,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Une,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Bne,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>qne,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>kne,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Wne,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Gne,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Hne,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Yne,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>jne,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Vne,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Qne,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>$ne,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Zne,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Jne,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Xne,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Kne,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>wne,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>xne,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Pne,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Mne,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Cne,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Nne,NETTRANSPORTVALUES_INPROC:()=>Rne,NETTRANSPORTVALUES_IP:()=>Ane,NETTRANSPORTVALUES_IP_TCP:()=>Ene,NETTRANSPORTVALUES_IP_UDP:()=>Sne,NETTRANSPORTVALUES_OTHER:()=>Ine,NETTRANSPORTVALUES_PIPE:()=>bne,NETTRANSPORTVALUES_UNIX:()=>yne,NETWORK_TRANSPORT_VALUE_PIPE:()=>Pae,NETWORK_TRANSPORT_VALUE_QUIC:()=>Mae,NETWORK_TRANSPORT_VALUE_TCP:()=>vae,NETWORK_TRANSPORT_VALUE_UDP:()=>kae,NETWORK_TRANSPORT_VALUE_UNIX:()=>Lae,NETWORK_TYPE_VALUE_IPV4:()=>Dae,NETWORK_TYPE_VALUE_IPV6:()=>Uae,NetHostConnectionSubtypeValues:()=>ere,NetHostConnectionTypeValues:()=>vne,NetTransportValues:()=>One,OSTYPEVALUES_AIX:()=>Kse,OSTYPEVALUES_DARWIN:()=>Vse,OSTYPEVALUES_DRAGONFLYBSD:()=>Yse,OSTYPEVALUES_FREEBSD:()=>qse,OSTYPEVALUES_HPUX:()=>Wse,OSTYPEVALUES_LINUX:()=>Hse,OSTYPEVALUES_NETBSD:()=>$se,OSTYPEVALUES_OPENBSD:()=>zse,OSTYPEVALUES_SOLARIS:()=>Qse,OSTYPEVALUES_WINDOWS:()=>jse,OSTYPEVALUES_Z_OS:()=>Jse,OTEL_STATUS_CODE_VALUE_ERROR:()=>jae,OTEL_STATUS_CODE_VALUE_OK:()=>Hae,OsTypeValues:()=>Xse,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>bre,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Ere,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>mre,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Nre,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>gre,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>yre,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>Ore,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>hre,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Tre,RPCGRPCSTATUSCODEVALUES_OK:()=>fre,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>Rre,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>Sre,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>Are,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>xre,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Cre,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Ire,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>_re,RpcGrpcStatusCodeValues:()=>Pre,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>cee,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Aee,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>iee,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>nee,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Eee,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>mee,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>pee,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>yee,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>lee,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>ree,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>uee,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>fee,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>aee,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>oee,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>see,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>See,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>hee,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>gee,SEMATTRS_AWS_DYNAMODB_SELECT:()=>dee,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>_ee,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>tee,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Tee,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>YX,SEMATTRS_CODE_FILEPATH:()=>$Z,SEMATTRS_CODE_FUNCTION:()=>VZ,SEMATTRS_CODE_LINENO:()=>zZ,SEMATTRS_CODE_NAMESPACE:()=>qZ,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>nZ,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>aZ,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>iZ,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>oZ,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>eZ,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>tZ,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>sZ,SEMATTRS_DB_CASSANDRA_TABLE:()=>rZ,SEMATTRS_DB_CONNECTION_STRING:()=>WX,SEMATTRS_DB_HBASE_NAMESPACE:()=>uZ,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>QX,SEMATTRS_DB_MONGODB_COLLECTION:()=>lZ,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>ZX,SEMATTRS_DB_NAME:()=>JX,SEMATTRS_DB_OPERATION:()=>XX,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>cZ,SEMATTRS_DB_SQL_TABLE:()=>dZ,SEMATTRS_DB_STATEMENT:()=>WA,SEMATTRS_DB_SYSTEM:()=>YA,SEMATTRS_DB_USER:()=>KX,SEMATTRS_ENDUSER_ID:()=>BZ,SEMATTRS_ENDUSER_ROLE:()=>FZ,SEMATTRS_ENDUSER_SCOPE:()=>GZ,SEMATTRS_EXCEPTION_ESCAPED:()=>_Z,SEMATTRS_EXCEPTION_MESSAGE:()=>fZ,SEMATTRS_EXCEPTION_STACKTRACE:()=>mZ,SEMATTRS_EXCEPTION_TYPE:()=>pZ,SEMATTRS_FAAS_COLDSTART:()=>bZ,SEMATTRS_FAAS_CRON:()=>yZ,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>gZ,SEMATTRS_FAAS_DOCUMENT_NAME:()=>SZ,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>TZ,SEMATTRS_FAAS_DOCUMENT_TIME:()=>EZ,SEMATTRS_FAAS_EXECUTION:()=>hZ,SEMATTRS_FAAS_INVOKED_NAME:()=>RZ,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>IZ,SEMATTRS_FAAS_INVOKED_REGION:()=>OZ,SEMATTRS_FAAS_TIME:()=>AZ,SEMATTRS_FAAS_TRIGGER:()=>KA,SEMATTRS_HTTP_CLIENT_IP:()=>eee,SEMATTRS_HTTP_FLAVOR:()=>KZ,SEMATTRS_HTTP_HOST:()=>YZ,SEMATTRS_HTTP_METHOD:()=>kd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>JZ,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>XZ,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>ey,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>ty,SEMATTRS_HTTP_ROUTE:()=>ny,SEMATTRS_HTTP_SCHEME:()=>WZ,SEMATTRS_HTTP_SERVER_NAME:()=>ZZ,SEMATTRS_HTTP_STATUS_CODE:()=>ia,SEMATTRS_HTTP_TARGET:()=>ZA,SEMATTRS_HTTP_URL:()=>ju,SEMATTRS_HTTP_USER_AGENT:()=>QZ,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>Kee,SEMATTRS_MESSAGE_ID:()=>Wee,SEMATTRS_MESSAGE_TYPE:()=>Yee,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>Qee,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Lee,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Pee,SEMATTRS_MESSAGING_DESTINATION:()=>bee,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>Ree,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Bee,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Uee,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Dee,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>Fee,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Gee,SEMATTRS_MESSAGING_MESSAGE_ID:()=>xee,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>vee,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Mee,SEMATTRS_MESSAGING_OPERATION:()=>kee,SEMATTRS_MESSAGING_PROTOCOL:()=>Oee,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Cee,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>wee,SEMATTRS_MESSAGING_SYSTEM:()=>ry,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Iee,SEMATTRS_MESSAGING_URL:()=>Nee,SEMATTRS_NET_HOST_CARRIER_ICC:()=>DZ,SEMATTRS_NET_HOST_CARRIER_MCC:()=>LZ,SEMATTRS_NET_HOST_CARRIER_MNC:()=>wZ,SEMATTRS_NET_HOST_CARRIER_NAME:()=>kZ,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>vZ,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>MZ,SEMATTRS_NET_HOST_IP:()=>JA,SEMATTRS_NET_HOST_NAME:()=>PZ,SEMATTRS_NET_HOST_PORT:()=>XA,SEMATTRS_NET_PEER_IP:()=>QA,SEMATTRS_NET_PEER_NAME:()=>xZ,SEMATTRS_NET_PEER_PORT:()=>NZ,SEMATTRS_NET_TRANSPORT:()=>CZ,SEMATTRS_PEER_SERVICE:()=>UZ,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>sy,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>$ee,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>zee,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>qee,SEMATTRS_RPC_JSONRPC_VERSION:()=>Vee,SEMATTRS_RPC_METHOD:()=>Hee,SEMATTRS_RPC_SERVICE:()=>oy,SEMATTRS_RPC_SYSTEM:()=>jee,SEMATTRS_THREAD_ID:()=>jZ,SEMATTRS_THREAD_NAME:()=>HZ,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Gre,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Fre,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>jre,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Hre,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Vre,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>qre,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>$re,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Yre,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>zre,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>Kre,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Wre,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>wre,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>Ure,SEMRESATTRS_CLOUD_PLATFORM:()=>Bre,SEMRESATTRS_CLOUD_PROVIDER:()=>Lre,SEMRESATTRS_CLOUD_REGION:()=>Dre,SEMRESATTRS_CONTAINER_ID:()=>Jre,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>Zre,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>eoe,SEMRESATTRS_CONTAINER_NAME:()=>Qre,SEMRESATTRS_CONTAINER_RUNTIME:()=>Xre,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>toe,SEMRESATTRS_DEVICE_ID:()=>noe,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>roe,SEMRESATTRS_DEVICE_MODEL_NAME:()=>ooe,SEMRESATTRS_FAAS_ID:()=>ioe,SEMRESATTRS_FAAS_INSTANCE:()=>uoe,SEMRESATTRS_FAAS_MAX_MEMORY:()=>coe,SEMRESATTRS_FAAS_NAME:()=>soe,SEMRESATTRS_FAAS_VERSION:()=>aoe,SEMRESATTRS_HOST_ARCH:()=>foe,SEMRESATTRS_HOST_ID:()=>loe,SEMRESATTRS_HOST_IMAGE_ID:()=>_oe,SEMRESATTRS_HOST_IMAGE_NAME:()=>moe,SEMRESATTRS_HOST_IMAGE_VERSION:()=>hoe,SEMRESATTRS_HOST_NAME:()=>doe,SEMRESATTRS_HOST_TYPE:()=>poe,SEMRESATTRS_K8S_CLUSTER_NAME:()=>goe,SEMRESATTRS_K8S_CONTAINER_NAME:()=>boe,SEMRESATTRS_K8S_CRONJOB_NAME:()=>woe,SEMRESATTRS_K8S_CRONJOB_UID:()=>Loe,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Moe,SEMRESATTRS_K8S_DAEMONSET_UID:()=>Poe,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>Coe,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>Ooe,SEMRESATTRS_K8S_JOB_NAME:()=>koe,SEMRESATTRS_K8S_JOB_UID:()=>voe,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Soe,SEMRESATTRS_K8S_NODE_NAME:()=>Toe,SEMRESATTRS_K8S_NODE_UID:()=>Eoe,SEMRESATTRS_K8S_POD_NAME:()=>yoe,SEMRESATTRS_K8S_POD_UID:()=>Aoe,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Ioe,SEMRESATTRS_K8S_REPLICASET_UID:()=>Roe,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>xoe,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Noe,SEMRESATTRS_OS_DESCRIPTION:()=>Uoe,SEMRESATTRS_OS_NAME:()=>Boe,SEMRESATTRS_OS_TYPE:()=>Doe,SEMRESATTRS_OS_VERSION:()=>Foe,SEMRESATTRS_PROCESS_COMMAND:()=>Voe,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>$oe,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>qoe,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>joe,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Hoe,SEMRESATTRS_PROCESS_OWNER:()=>zoe,SEMRESATTRS_PROCESS_PID:()=>Goe,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Koe,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Yoe,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Woe,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Joe,SEMRESATTRS_SERVICE_NAME:()=>Qoe,SEMRESATTRS_SERVICE_NAMESPACE:()=>iy,SEMRESATTRS_SERVICE_VERSION:()=>Xoe,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>nse,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>ese,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Zoe,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>tse,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>sse,SEMRESATTRS_WEBENGINE_NAME:()=>rse,SEMRESATTRS_WEBENGINE_VERSION:()=>ose,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>Yae,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Wae,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>Kae,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>Jae,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Xae,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>Zae,SemanticAttributes:()=>Jee,SemanticResourceAttributes:()=>ise,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>Zse,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>eie,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>tie,TELEMETRYSDKLANGUAGEVALUES_GO:()=>nie,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>rie,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>oie,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>sie,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>iie,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>aie,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>uie,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>tue,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>nue,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>rue,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>oue,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>sue,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>iue,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>aue,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>uue,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>cue,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>lue,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>due,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>pue,TelemetrySdkLanguageValues:()=>cie});var de=K(()=>{mD();GU();jU();HU();VU()});var qU=T(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.ATTR_PROCESS_RUNTIME_NAME=void 0;Zm.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var $U=T(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.SDK_INFO=void 0;var gce=bM(),e_=(de(),N(Ie)),Tce=qU();t_.SDK_INFO={[e_.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[Tce.ATTR_PROCESS_RUNTIME_NAME]:"node",[e_.ATTR_TELEMETRY_SDK_LANGUAGE]:e_.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[e_.ATTR_TELEMETRY_SDK_VERSION]:gce.VERSION}});var zU=T(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.otperformance=tn.SDK_INFO=tn._globalThis=tn.getStringListFromEnv=tn.getNumberFromEnv=tn.getBooleanFromEnv=tn.getStringFromEnv=void 0;var n_=AM();Object.defineProperty(tn,"getStringFromEnv",{enumerable:!0,get:function(){return n_.getStringFromEnv}});Object.defineProperty(tn,"getBooleanFromEnv",{enumerable:!0,get:function(){return n_.getBooleanFromEnv}});Object.defineProperty(tn,"getNumberFromEnv",{enumerable:!0,get:function(){return n_.getNumberFromEnv}});Object.defineProperty(tn,"getStringListFromEnv",{enumerable:!0,get:function(){return n_.getStringListFromEnv}});var Ece=yM();Object.defineProperty(tn,"_globalThis",{enumerable:!0,get:function(){return Ece._globalThis}});var Sce=$U();Object.defineProperty(tn,"SDK_INFO",{enumerable:!0,get:function(){return Sce.SDK_INFO}});tn.otperformance=performance});var Ay=T(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.getStringListFromEnv=nn.getNumberFromEnv=nn.getStringFromEnv=nn.getBooleanFromEnv=nn.otperformance=nn._globalThis=nn.SDK_INFO=void 0;var ca=zU();Object.defineProperty(nn,"SDK_INFO",{enumerable:!0,get:function(){return ca.SDK_INFO}});Object.defineProperty(nn,"_globalThis",{enumerable:!0,get:function(){return ca._globalThis}});Object.defineProperty(nn,"otperformance",{enumerable:!0,get:function(){return ca.otperformance}});Object.defineProperty(nn,"getBooleanFromEnv",{enumerable:!0,get:function(){return ca.getBooleanFromEnv}});Object.defineProperty(nn,"getStringFromEnv",{enumerable:!0,get:function(){return ca.getStringFromEnv}});Object.defineProperty(nn,"getNumberFromEnv",{enumerable:!0,get:function(){return ca.getNumberFromEnv}});Object.defineProperty(nn,"getStringListFromEnv",{enumerable:!0,get:function(){return ca.getStringListFromEnv}})});var QU=T(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.addHrTimes=Me.isTimeInput=Me.isTimeInputHrTime=Me.hrTimeToMicroseconds=Me.hrTimeToMilliseconds=Me.hrTimeToNanoseconds=Me.hrTimeToTimeStamp=Me.hrTimeDuration=Me.timeInputToHrTime=Me.hrTime=Me.getTimeOrigin=Me.millisToHrTime=void 0;var r_=Ay(),YU=9,Ace=6,yce=Math.pow(10,Ace),o_=Math.pow(10,YU);function Ld(t){let e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*yce);return[n,r]}Me.millisToHrTime=Ld;function bce(){return r_.otperformance.timeOrigin}Me.getTimeOrigin=bce;function WU(t){let e=Ld(r_.otperformance.timeOrigin),n=Ld(typeof t=="number"?t:r_.otperformance.now());return KU(e,n)}Me.hrTime=WU;function Rce(t){if(yy(t))return t;if(typeof t=="number")return t<r_.otperformance.timeOrigin?WU(t):Ld(t);if(t instanceof Date)return Ld(t.getTime());throw TypeError("Invalid input type")}Me.timeInputToHrTime=Rce;function Ice(t,e){let n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=o_),[n,r]}Me.hrTimeDuration=Ice;function Oce(t){let e=YU,n=`${"0".repeat(e)}${t[1]}Z`,r=n.substring(n.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",r)}Me.hrTimeToTimeStamp=Oce;function Cce(t){return t[0]*o_+t[1]}Me.hrTimeToNanoseconds=Cce;function Nce(t){return t[0]*1e3+t[1]/1e6}Me.hrTimeToMilliseconds=Nce;function xce(t){return t[0]*1e6+t[1]/1e3}Me.hrTimeToMicroseconds=xce;function yy(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Me.isTimeInputHrTime=yy;function Pce(t){return yy(t)||typeof t=="number"||t instanceof Date}Me.isTimeInput=Pce;function KU(t,e){let n=[t[0]+e[0],t[1]+e[1]];return n[1]>=o_&&(n[1]-=o_,n[0]+=1),n}Me.addHrTimes=KU});var JU=T(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.unrefTimer=void 0;function Mce(t){typeof t!="number"&&t.unref()}s_.unrefTimer=Mce});var XU=T(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.ExportResultCode=void 0;var vce;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(vce=wd.ExportResultCode||(wd.ExportResultCode={}))});var eB=T(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.CompositePropagator=void 0;var ZU=(P(),N(L)),by=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(e,n,r){for(let o of this._propagators)try{o.inject(e,n,r)}catch(s){ZU.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${s.message}`)}}extract(e,n,r){return this._propagators.reduce((o,s)=>{try{return s.extract(o,n,r)}catch(i){ZU.diag.warn(`Failed to extract with ${s.constructor.name}. Err: ${i.message}`)}return o},e)}fields(){return this._fields.slice()}};i_.CompositePropagator=by});var tB=T(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.validateValue=Vu.validateKey=void 0;var Ry="[_0-9a-z-*/]",kce=`[a-z]${Ry}{0,255}`,Lce=`[a-z0-9]${Ry}{0,240}@[a-z]${Ry}{0,13}`,wce=new RegExp(`^(?:${kce}|${Lce})$`),Dce=/^[ -~]{0,255}[!-~]$/,Uce=/,|=/;function Bce(t){return wce.test(t)}Vu.validateKey=Bce;function Fce(t){return Dce.test(t)&&!Uce.test(t)}Vu.validateValue=Fce});var Oy=T(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.TraceState=void 0;var nB=tB(),rB=32,Gce=512,oB=",",sB="=",Iy=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,n){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){let n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+sB+this.get(n)),e),[]).join(oB)}_parse(e){e.length>Gce||(this._internalState=e.split(oB).reverse().reduce((n,r)=>{let o=r.trim(),s=o.indexOf(sB);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,r.length);(0,nB.validateKey)(i)&&(0,nB.validateValue)(a)&&n.set(i,a)}return n},new Map),this._internalState.size>rB&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,rB))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};a_.TraceState=Iy});var aB=T(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.W3CTraceContextPropagator=rn.parseTraceParent=rn.TRACE_STATE_HEADER=rn.TRACE_PARENT_HEADER=void 0;var u_=(P(),N(L)),jce=vd(),Hce=Oy();rn.TRACE_PARENT_HEADER="traceparent";rn.TRACE_STATE_HEADER="tracestate";var Vce="00",qce="(?!ff)[\\da-f]{2}",$ce="(?![0]{32})[\\da-f]{32}",zce="(?![0]{16})[\\da-f]{16}",Yce="[\\da-f]{2}",Wce=new RegExp(`^\\s?(${qce})-(${$ce})-(${zce})-(${Yce})(-.*)?\\s?$`);function iB(t){let e=Wce.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}rn.parseTraceParent=iB;var Cy=class{inject(e,n,r){let o=u_.trace.getSpanContext(e);if(!o||(0,jce.isTracingSuppressed)(e)||!(0,u_.isSpanContextValid)(o))return;let s=`${Vce}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||u_.TraceFlags.NONE).toString(16)}`;r.set(n,rn.TRACE_PARENT_HEADER,s),o.traceState&&r.set(n,rn.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,n,r){let o=r.get(n,rn.TRACE_PARENT_HEADER);if(!o)return e;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return e;let i=iB(s);if(!i)return e;i.isRemote=!0;let a=r.get(n,rn.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;i.traceState=new Hce.TraceState(typeof u=="string"?u:void 0)}return u_.trace.setSpanContext(e,i)}fields(){return[rn.TRACE_PARENT_HEADER,rn.TRACE_STATE_HEADER]}};rn.W3CTraceContextPropagator=Cy});var uB=T(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.getRPCMetadata=Fr.deleteRPCMetadata=Fr.setRPCMetadata=Fr.RPCType=void 0;var Kce=(P(),N(L)),Ny=(0,Kce.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Qce;(function(t){t.HTTP="http"})(Qce=Fr.RPCType||(Fr.RPCType={}));function Jce(t,e){return t.setValue(Ny,e)}Fr.setRPCMetadata=Jce;function Xce(t){return t.deleteValue(Ny)}Fr.deleteRPCMetadata=Xce;function Zce(t){return t.getValue(Ny)}Fr.getRPCMetadata=Zce});var fB=T(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.isPlainObject=void 0;var ele="[object Object]",tle="[object Null]",nle="[object Undefined]",rle=Function.prototype,cB=rle.toString,ole=cB.call(Object),sle=Object.getPrototypeOf,lB=Object.prototype,dB=lB.hasOwnProperty,la=Symbol?Symbol.toStringTag:void 0,pB=lB.toString;function ile(t){if(!ale(t)||ule(t)!==ele)return!1;let e=sle(t);if(e===null)return!0;let n=dB.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&cB.call(n)===ole}c_.isPlainObject=ile;function ale(t){return t!=null&&typeof t=="object"}function ule(t){return t==null?t===void 0?nle:tle:la&&la in Object(t)?cle(t):lle(t)}function cle(t){let e=dB.call(t,la),n=t[la],r=!1;try{t[la]=void 0,r=!0}catch{}let o=pB.call(t);return r&&(e?t[la]=n:delete t[la]),o}function lle(t){return pB.call(t)}});var TB=T(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.merge=void 0;var mB=fB(),dle=20;function ple(...t){let e=t.shift(),n=new WeakMap;for(;t.length>0;)e=hB(e,t.shift(),0,n);return e}p_.merge=ple;function xy(t){return d_(t)?t.slice():t}function hB(t,e,n=0,r){let o;if(!(n>dle)){if(n++,l_(t)||l_(e)||gB(e))o=xy(e);else if(d_(t)){if(o=t.slice(),d_(e))for(let s=0,i=e.length;s<i;s++)o.push(xy(e[s]));else if(Dd(e)){let s=Object.keys(e);for(let i=0,a=s.length;i<a;i++){let u=s[i];o[u]=xy(e[u])}}}else if(Dd(t))if(Dd(e)){if(!fle(t,e))return e;o=Object.assign({},t);let s=Object.keys(e);for(let i=0,a=s.length;i<a;i++){let u=s[i],l=e[u];if(l_(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(_B(t,u,r)||_B(e,u,r))delete o[u];else{if(Dd(d)&&Dd(p)){let f=r.get(d)||[],m=r.get(p)||[];f.push({obj:t,key:u}),m.push({obj:e,key:u}),r.set(d,f),r.set(p,m)}o[u]=hB(o[u],l,n,r)}}}}else o=e;return o}}function _B(t,e,n){let r=n.get(t[e])||[];for(let o=0,s=r.length;o<s;o++){let i=r[o];if(i.key===e&&i.obj===t)return!0}return!1}function d_(t){return Array.isArray(t)}function gB(t){return typeof t=="function"}function Dd(t){return!l_(t)&&!d_(t)&&!gB(t)&&typeof t=="object"}function l_(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function fle(t,e){return!(!(0,mB.isPlainObject)(t)||!(0,mB.isPlainObject)(e))}});var EB=T(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.callWithTimeout=qu.TimeoutError=void 0;var f_=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};qu.TimeoutError=f_;function mle(t,e){let n,r=new Promise(function(s,i){n=setTimeout(function(){i(new f_("Operation timed out."))},e)});return Promise.race([t,r]).then(o=>(clearTimeout(n),o),o=>{throw clearTimeout(n),o})}qu.callWithTimeout=mle});var AB=T($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.isUrlIgnored=$u.urlMatches=void 0;function SB(t,e){return typeof e=="string"?t===e:!!t.match(e)}$u.urlMatches=SB;function _le(t,e){if(!e)return!1;for(let n of e)if(SB(t,n))return!0;return!1}$u.isUrlIgnored=_le});var yB=T(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.Deferred=void 0;var Py=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};m_.Deferred=Py});var bB=T(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.BindOnceFuture=void 0;var hle=yB(),My=class{_isCalled=!1;_deferred=new hle.Deferred;_callback;_that;constructor(e,n){this._callback=e,this._that=n}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(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}};__.BindOnceFuture=My});var IB=T(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.diagLogLevelFromString=void 0;var ns=(P(),N(L)),RB={ALL:ns.DiagLogLevel.ALL,VERBOSE:ns.DiagLogLevel.VERBOSE,DEBUG:ns.DiagLogLevel.DEBUG,INFO:ns.DiagLogLevel.INFO,WARN:ns.DiagLogLevel.WARN,ERROR:ns.DiagLogLevel.ERROR,NONE:ns.DiagLogLevel.NONE};function gle(t){if(t==null)return;let e=RB[t.toUpperCase()];return e??(ns.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(RB)}, using default`),ns.DiagLogLevel.INFO)}h_.diagLogLevelFromString=gle});var CB=T(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_._export=void 0;var OB=(P(),N(L)),Tle=vd();function Ele(t,e){return new Promise(n=>{OB.context.with((0,Tle.suppressTracing)(OB.context.active()),()=>{t.export(e,n)})})}g_._export=Ele});var Ae=T(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.internal=O.diagLogLevelFromString=O.BindOnceFuture=O.urlMatches=O.isUrlIgnored=O.callWithTimeout=O.TimeoutError=O.merge=O.TraceState=O.unsuppressTracing=O.suppressTracing=O.isTracingSuppressed=O.setRPCMetadata=O.getRPCMetadata=O.deleteRPCMetadata=O.RPCType=O.parseTraceParent=O.W3CTraceContextPropagator=O.TRACE_STATE_HEADER=O.TRACE_PARENT_HEADER=O.CompositePropagator=O.otperformance=O.getStringListFromEnv=O.getNumberFromEnv=O.getBooleanFromEnv=O.getStringFromEnv=O._globalThis=O.SDK_INFO=O.parseKeyPairsIntoRecord=O.ExportResultCode=O.unrefTimer=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.AnchoredClock=O.W3CBaggagePropagator=void 0;var Sle=cM();Object.defineProperty(O,"W3CBaggagePropagator",{enumerable:!0,get:function(){return Sle.W3CBaggagePropagator}});var Ale=lM();Object.defineProperty(O,"AnchoredClock",{enumerable:!0,get:function(){return Ale.AnchoredClock}});var NB=_M();Object.defineProperty(O,"isAttributeValue",{enumerable:!0,get:function(){return NB.isAttributeValue}});Object.defineProperty(O,"sanitizeAttributes",{enumerable:!0,get:function(){return NB.sanitizeAttributes}});var xB=gM();Object.defineProperty(O,"globalErrorHandler",{enumerable:!0,get:function(){return xB.globalErrorHandler}});Object.defineProperty(O,"setGlobalErrorHandler",{enumerable:!0,get:function(){return xB.setGlobalErrorHandler}});var yle=$A();Object.defineProperty(O,"loggingErrorHandler",{enumerable:!0,get:function(){return yle.loggingErrorHandler}});var pr=QU();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 ble=JU();Object.defineProperty(O,"unrefTimer",{enumerable:!0,get:function(){return ble.unrefTimer}});var Rle=XU();Object.defineProperty(O,"ExportResultCode",{enumerable:!0,get:function(){return Rle.ExportResultCode}});var Ile=GA();Object.defineProperty(O,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return Ile.parseKeyPairsIntoRecord}});var da=Ay();Object.defineProperty(O,"SDK_INFO",{enumerable:!0,get:function(){return da.SDK_INFO}});Object.defineProperty(O,"_globalThis",{enumerable:!0,get:function(){return da._globalThis}});Object.defineProperty(O,"getStringFromEnv",{enumerable:!0,get:function(){return da.getStringFromEnv}});Object.defineProperty(O,"getBooleanFromEnv",{enumerable:!0,get:function(){return da.getBooleanFromEnv}});Object.defineProperty(O,"getNumberFromEnv",{enumerable:!0,get:function(){return da.getNumberFromEnv}});Object.defineProperty(O,"getStringListFromEnv",{enumerable:!0,get:function(){return da.getStringListFromEnv}});Object.defineProperty(O,"otperformance",{enumerable:!0,get:function(){return da.otperformance}});var Ole=eB();Object.defineProperty(O,"CompositePropagator",{enumerable:!0,get:function(){return Ole.CompositePropagator}});var T_=aB();Object.defineProperty(O,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return T_.TRACE_PARENT_HEADER}});Object.defineProperty(O,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return T_.TRACE_STATE_HEADER}});Object.defineProperty(O,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return T_.W3CTraceContextPropagator}});Object.defineProperty(O,"parseTraceParent",{enumerable:!0,get:function(){return T_.parseTraceParent}});var E_=uB();Object.defineProperty(O,"RPCType",{enumerable:!0,get:function(){return E_.RPCType}});Object.defineProperty(O,"deleteRPCMetadata",{enumerable:!0,get:function(){return E_.deleteRPCMetadata}});Object.defineProperty(O,"getRPCMetadata",{enumerable:!0,get:function(){return E_.getRPCMetadata}});Object.defineProperty(O,"setRPCMetadata",{enumerable:!0,get:function(){return E_.setRPCMetadata}});var vy=vd();Object.defineProperty(O,"isTracingSuppressed",{enumerable:!0,get:function(){return vy.isTracingSuppressed}});Object.defineProperty(O,"suppressTracing",{enumerable:!0,get:function(){return vy.suppressTracing}});Object.defineProperty(O,"unsuppressTracing",{enumerable:!0,get:function(){return vy.unsuppressTracing}});var Cle=Oy();Object.defineProperty(O,"TraceState",{enumerable:!0,get:function(){return Cle.TraceState}});var Nle=TB();Object.defineProperty(O,"merge",{enumerable:!0,get:function(){return Nle.merge}});var PB=EB();Object.defineProperty(O,"TimeoutError",{enumerable:!0,get:function(){return PB.TimeoutError}});Object.defineProperty(O,"callWithTimeout",{enumerable:!0,get:function(){return PB.callWithTimeout}});var MB=AB();Object.defineProperty(O,"isUrlIgnored",{enumerable:!0,get:function(){return MB.isUrlIgnored}});Object.defineProperty(O,"urlMatches",{enumerable:!0,get:function(){return MB.urlMatches}});var xle=bB();Object.defineProperty(O,"BindOnceFuture",{enumerable:!0,get:function(){return xle.BindOnceFuture}});var Ple=IB();Object.defineProperty(O,"diagLogLevelFromString",{enumerable:!0,get:function(){return Ple.diagLogLevelFromString}});var Mle=CB();O.internal={_export:Mle._export}});var vB=T(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.VERSION=void 0;S_.VERSION="0.214.0"});var kB=T(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.SeverityNumber=void 0;var vle;(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"})(vle=Ud.SeverityNumber||(Ud.SeverityNumber={}))});var y_=T(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.NOOP_LOGGER=zu.NoopLogger=void 0;var A_=class{emit(e){}};zu.NoopLogger=A_;zu.NOOP_LOGGER=new A_});var LB=T(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.API_BACKWARDS_COMPATIBILITY_VERSION=mo.makeGetter=mo._global=mo.GLOBAL_LOGS_API_KEY=void 0;mo.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");mo._global=globalThis;function kle(t,e,n){return r=>r===t?e:n}mo.makeGetter=kle;mo.API_BACKWARDS_COMPATIBILITY_VERSION=1});var ky=T(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.NOOP_LOGGER_PROVIDER=Yu.NoopLoggerProvider=void 0;var Lle=y_(),b_=class{getLogger(e,n,r){return new Lle.NoopLogger}};Yu.NoopLoggerProvider=b_;Yu.NOOP_LOGGER_PROVIDER=new b_});var wB=T(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.ProxyLogger=void 0;var wle=y_(),Ly=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,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):wle.NOOP_LOGGER}};R_.ProxyLogger=Ly});var DB=T(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.ProxyLoggerProvider=void 0;var Dle=ky(),Ule=wB(),wy=class{getLogger(e,n,r){var o;return(o=this._getDelegateLogger(e,n,r))!==null&&o!==void 0?o:new Ule.ProxyLogger(this,e,n,r)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Dle.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,n,r)}};I_.ProxyLoggerProvider=wy});var BB=T(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.LogsAPI=void 0;var fr=LB(),Ble=ky(),UB=DB(),Dy=class t{constructor(){this._proxyLoggerProvider=new UB.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return fr._global[fr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(fr._global[fr.GLOBAL_LOGS_API_KEY]=(0,fr.makeGetter)(fr.API_BACKWARDS_COMPATIBILITY_VERSION,e,Ble.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=fr._global[fr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(fr._global,fr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete fr._global[fr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new UB.ProxyLoggerProvider}};O_.LogsAPI=Dy});var Uy=T(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.logs=_o.NoopLogger=_o.NOOP_LOGGER=_o.SeverityNumber=void 0;var Fle=kB();Object.defineProperty(_o,"SeverityNumber",{enumerable:!0,get:function(){return Fle.SeverityNumber}});var FB=y_();Object.defineProperty(_o,"NOOP_LOGGER",{enumerable:!0,get:function(){return FB.NOOP_LOGGER}});Object.defineProperty(_o,"NoopLogger",{enumerable:!0,get:function(){return FB.NoopLogger}});var Gle=BB();_o.logs=Gle.LogsAPI.getInstance()});var GB=T(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.disableInstrumentations=Wu.enableInstrumentations=void 0;function jle(t,e,n,r){for(let o=0,s=t.length;o<s;o++){let i=t[o];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}Wu.enableInstrumentations=jle;function Hle(t){t.forEach(e=>e.disable())}Wu.disableInstrumentations=Hle});var VB=T(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.registerInstrumentations=void 0;var jB=(P(),N(L)),Vle=Uy(),HB=GB();function qle(t){let e=t.tracerProvider||jB.trace.getTracerProvider(),n=t.meterProvider||jB.metrics.getMeterProvider(),r=t.loggerProvider||Vle.logs.getLoggerProvider(),o=t.instrumentations?.flat()??[];return(0,HB.enableInstrumentations)(o,e,n,r),()=>{(0,HB.disableInstrumentations)(o)}}C_.registerInstrumentations=qle});var XB=T(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.satisfies=void 0;var jy=(P(),N(L)),WB=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,$le=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,zle={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function Yle(t,e,n){if(!Wle(t))return jy.diag.error(`Invalid version: ${t}`),!1;if(!e)return!0;e=e.replace(/([<>=~^]+)\s+/g,"$1");let r=Xle(t);if(!r)return!1;let o=[],s=KB(r,e,o,n);return s&&!n?.includePrerelease?Qle(r,o):s}N_.satisfies=Yle;function Wle(t){return typeof t=="string"&&WB.test(t)}function KB(t,e,n,r){if(e.includes("||")){let o=e.trim().split("||");for(let s of o)if(By(t,s,n,r))return!0;return!1}else if(e.includes(" - "))e=Ede(e,r);else if(e.includes(" ")){let o=e.trim().replace(/\s{2,}/g," ").split(" ");for(let s of o)if(!By(t,s,n,r))return!1;return!0}return By(t,e,n,r)}function By(t,e,n,r){if(e=Jle(e,r),e.includes(" "))return KB(t,e,n,r);{let o=Zle(e);return n.push(o),Kle(t,o)}}function Kle(t,e){if(e.invalid)return!1;if(!e.version||Gy(e.version))return!0;let n=$B(t.versionSegments||[],e.versionSegments||[]);if(n===0){let r=t.prereleaseSegments||[],o=e.prereleaseSegments||[];!r.length&&!o.length?n=0:!r.length&&o.length?n=1:r.length&&!o.length?n=-1:n=$B(r,o)}return zle[e.op]?.includes(n)}function Qle(t,e){return t.prerelease?e.some(n=>n.prerelease&&n.version===t.version):!0}function Jle(t,e){return t=t.trim(),t=gde(t,e),t=hde(t),t=Tde(t,e),t=t.trim(),t}function hn(t){return!t||t.toLowerCase()==="x"||t==="*"}function Xle(t){let e=t.match(WB);if(!e){jy.diag.error(`Invalid version: ${t}`);return}let n=e.groups.version,r=e.groups.prerelease,o=e.groups.build,s=n.split("."),i=r?.split(".");return{op:void 0,version:n,versionSegments:s,versionSegmentCount:s.length,prerelease:r,prereleaseSegments:i,prereleaseSegmentCount:i?i.length:0,build:o}}function Zle(t){if(!t)return{};let e=t.match($le);if(!e)return jy.diag.error(`Invalid range: ${t}`),{invalid:!0};let n=e.groups.op,r=e.groups.version,o=e.groups.prerelease,s=e.groups.build,i=r.split("."),a=o?.split(".");return n==="=="&&(n="="),{op:n||"=",version:r,versionSegments:i,versionSegmentCount:i.length,prerelease:o,prereleaseSegments:a,prereleaseSegmentCount:a?a.length:0,build:s}}function Gy(t){return t==="*"||t==="x"||t==="X"}function qB(t){let e=parseInt(t,10);return isNaN(e)?t:e}function ede(t,e){if(typeof t==typeof e){if(typeof t=="number")return[t,e];if(typeof t=="string")return[t,e];throw new Error("Version segments can only be strings or numbers")}else return[String(t),String(e)]}function tde(t,e){if(Gy(t)||Gy(e))return 0;let[n,r]=ede(qB(t),qB(e));return n>r?1:n<r?-1:0}function $B(t,e){for(let n=0;n<Math.max(t.length,e.length);n++){let r=tde(t[n]||"0",e[n]||"0");if(r!==0)return r}return 0}var QB="[a-zA-Z0-9-]",JB="0|[1-9]\\d*",nde=`\\d*[a-zA-Z-]${QB}*`,rde="((?:<|>)?=?)",zB=`(?:${JB}|${nde})`,ode=`(?:-(${zB}(?:\\.${zB})*))`,YB=`${QB}+`,sde=`(?:\\+(${YB}(?:\\.${YB})*))`,Fy=`${JB}|x|X|\\*`,Bd=`[v=\\s]*(${Fy})(?:\\.(${Fy})(?:\\.(${Fy})(?:${ode})?${sde}?)?)?`,ide=`^${rde}\\s*${Bd}$`,ade=new RegExp(ide),ude=`^\\s*(${Bd})\\s+-\\s+(${Bd})\\s*$`,cde=new RegExp(ude),lde="(?:~>?)",dde=`^${lde}${Bd}$`,pde=new RegExp(dde),fde="(?:\\^)",mde=`^${fde}${Bd}$`,_de=new RegExp(mde);function hde(t){let e=pde;return t.replace(e,(n,r,o,s,i)=>{let a;return hn(r)?a="":hn(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:hn(s)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:i?a=`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:a=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,a})}function gde(t,e){let n=_de,r=e?.includePrerelease?"-0":"";return t.replace(n,(o,s,i,a,u)=>{let l;return hn(s)?l="":hn(i)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:hn(a)?s==="0"?l=`>=${s}.${i}.0${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${r} <${+s+1}.0.0-0`:u?s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${u} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${u} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${u} <${+s+1}.0.0-0`:s==="0"?i==="0"?l=`>=${s}.${i}.${a}${r} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`,l})}function Tde(t,e){let n=ade;return t.replace(n,(r,o,s,i,a,u)=>{let l=hn(s),d=l||hn(i),p=d||hn(a),f=p;return o==="="&&f&&(o=""),u=e?.includePrerelease?"-0":"",l?o===">"||o==="<"?r="<0.0.0-0":r="*":o&&f?(d&&(i=0),a=0,o===">"?(o=">=",d?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",d?s=+s+1:i=+i+1),o==="<"&&(u="-0"),r=`${o+s}.${i}.${a}${u}`):d?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${u} <${s}.${+i+1}.0-0`),r})}function Ede(t,e){let n=cde;return t.replace(n,(r,o,s,i,a,u,l,d,p,f,m,_)=>(hn(s)?o="":hn(i)?o=`>=${s}.0.0${e?.includePrerelease?"-0":""}`:hn(a)?o=`>=${s}.${i}.0${e?.includePrerelease?"-0":""}`:u?o=`>=${o}`:o=`>=${o}${e?.includePrerelease?"-0":""}`,hn(p)?d="":hn(f)?d=`<${+p+1}.0.0-0`:hn(m)?d=`<${p}.${+f+1}.0-0`:_?d=`<=${p}.${f}.${m}-${_}`:e?.includePrerelease?d=`<${p}.${f}.${+m+1}-0`:d=`<=${d}`,`${o} ${d}`.trim()))}});var Hy=T(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.massUnwrap=jt.unwrap=jt.massWrap=jt.wrap=void 0;var gn=console.error.bind(console);function Fd(t,e,n){let r=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}var Sde=(t,e,n)=>{if(!t||!t[e]){gn("no original function "+String(e)+" to wrap");return}if(!n){gn("no wrapper function"),gn(new Error().stack);return}let r=t[e];if(typeof r!="function"||typeof n!="function"){gn("original object and wrapper must be functions");return}let o=n(r,e);return Fd(o,"__original",r),Fd(o,"__unwrap",()=>{t[e]===o&&Fd(t,e,r)}),Fd(o,"__wrapped",!0),Fd(t,e,o),o};jt.wrap=Sde;var Ade=(t,e,n)=>{if(t)Array.isArray(t)||(t=[t]);else{gn("must provide one or more modules to patch"),gn(new Error().stack);return}if(!(e&&Array.isArray(e))){gn("must provide one or more functions to wrap on modules");return}t.forEach(r=>{e.forEach(o=>{(0,jt.wrap)(r,o,n)})})};jt.massWrap=Ade;var yde=(t,e)=>{if(!t||!t[e]){gn("no function to unwrap."),gn(new Error().stack);return}let n=t[e];if(!n.__unwrap)gn("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{n.__unwrap();return}};jt.unwrap=yde;var bde=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{gn("must provide one or more modules to patch"),gn(new Error().stack);return}if(!(e&&Array.isArray(e))){gn("must provide one or more functions to unwrap on modules");return}t.forEach(n=>{e.forEach(r=>{(0,jt.unwrap)(n,r)})})};jt.massUnwrap=bde;function Gd(t){t&&t.logger&&(typeof t.logger!="function"?gn("new logger isn't a function, not replacing"):gn=t.logger)}jt.default=Gd;Gd.wrap=jt.wrap;Gd.massWrap=jt.massWrap;Gd.unwrap=jt.unwrap;Gd.massUnwrap=jt.massUnwrap});var ZB=T(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.InstrumentationAbstract=void 0;var Vy=(P(),N(L)),Rde=Uy(),x_=Hy(),qy=class{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,n,r){this.instrumentationName=e,this.instrumentationVersion=n,this.setConfig(r),this._diag=Vy.diag.createComponentLogger({namespace:e}),this._tracer=Vy.trace.getTracer(e,n),this._meter=Vy.metrics.getMeter(e,n),this._logger=Rde.logs.getLogger(e,n),this._updateMetricInstruments()}_wrap=x_.wrap;_unwrap=x_.unwrap;_massWrap=x_.massWrap;_massUnwrap=x_.massUnwrap;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(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,n,r,o){if(e)try{e(r,o)}catch(s){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},s)}}};P_.InstrumentationAbstract=qy});var t3=T((g4e,e3)=>{var Ku=1e3,Qu=Ku*60,Ju=Qu*60,pa=Ju*24,Ide=pa*7,Ode=pa*365.25;e3.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return Cde(t);if(n==="number"&&isFinite(t))return e.long?xde(t):Nde(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Cde(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 n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*Ode;case"weeks":case"week":case"w":return n*Ide;case"days":case"day":case"d":return n*pa;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ju;case"minutes":case"minute":case"mins":case"min":case"m":return n*Qu;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ku;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function Nde(t){var e=Math.abs(t);return e>=pa?Math.round(t/pa)+"d":e>=Ju?Math.round(t/Ju)+"h":e>=Qu?Math.round(t/Qu)+"m":e>=Ku?Math.round(t/Ku)+"s":t+"ms"}function xde(t){var e=Math.abs(t);return e>=pa?M_(t,e,pa,"day"):e>=Ju?M_(t,e,Ju,"hour"):e>=Qu?M_(t,e,Qu,"minute"):e>=Ku?M_(t,e,Ku,"second"):t+" ms"}function M_(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var $y=T((T4e,n3)=>{function Pde(t){n.debug=n,n.default=n,n.coerce=u,n.disable=i,n.enable=o,n.enabled=a,n.humanize=t3(),n.destroy=l,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function e(d){let p=0;for(let f=0;f<d.length;f++)p=(p<<5)-p+d.charCodeAt(f),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=e;function n(d){let p,f=null,m,_;function h(...g){if(!h.enabled)return;let E=h,S=Number(new Date),b=S-(p||S);E.diff=b,E.prev=p,E.curr=S,p=S,g[0]=n.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let R=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(C,H)=>{if(C==="%%")return"%";R++;let _e=n.formatters[H];if(typeof _e=="function"){let De=g[R];C=_e.call(E,De),g.splice(R,1),R--}return C}),n.formatArgs.call(E,g),(E.log||n.log).apply(E,g)}return h.namespace=d,h.useColors=n.useColors(),h.color=n.selectColor(d),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(m!==n.namespaces&&(m=n.namespaces,_=n.enabled(d)),_),set:g=>{f=g}}),typeof n.init=="function"&&n.init(h),h}function r(d,p){let f=n(this.namespace+(typeof p>"u"?":":p)+d);return f.log=this.log,f}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let p=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of p)f[0]==="-"?n.skips.push(f.slice(1)):n.names.push(f)}function s(d,p){let f=0,m=0,_=-1,h=0;for(;f<d.length;)if(m<p.length&&(p[m]===d[f]||p[m]==="*"))p[m]==="*"?(_=m,h=f,m++):(f++,m++);else if(_!==-1)m=_+1,h++,f=h;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function i(){let d=[...n.names,...n.skips.map(p=>"-"+p)].join(",");return n.enable(""),d}function a(d){for(let p of n.skips)if(s(d,p))return!1;for(let p of n.names)if(s(d,p))return!0;return!1}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 n.enable(n.load()),n}n3.exports=Pde});var r3=T((Pn,v_)=>{Pn.formatArgs=vde;Pn.save=kde;Pn.load=Lde;Pn.useColors=Mde;Pn.storage=wde();Pn.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`."))}})();Pn.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 Mde(){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 vde(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+v_.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}Pn.log=console.debug||console.log||(()=>{});function kde(t){try{t?Pn.storage.setItem("debug",t):Pn.storage.removeItem("debug")}catch{}}function Lde(){let t;try{t=Pn.storage.getItem("debug")||Pn.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function wde(){try{return localStorage}catch{}}v_.exports=$y()(Pn);var{formatters:Dde}=v_.exports;Dde.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var s3=T((E4e,o3)=>{"use strict";o3.exports=(t,e=process.argv)=>{let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),o=e.indexOf("--");return r!==-1&&(o===-1||r<o)}});var u3=T((S4e,a3)=>{"use strict";var Ude=U("os"),i3=U("tty"),mr=s3(),{env:Ot}=process,Gs;mr("no-color")||mr("no-colors")||mr("color=false")||mr("color=never")?Gs=0:(mr("color")||mr("colors")||mr("color=true")||mr("color=always"))&&(Gs=1);"FORCE_COLOR"in Ot&&(Ot.FORCE_COLOR==="true"?Gs=1:Ot.FORCE_COLOR==="false"?Gs=0:Gs=Ot.FORCE_COLOR.length===0?1:Math.min(parseInt(Ot.FORCE_COLOR,10),3));function zy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Yy(t,e){if(Gs===0)return 0;if(mr("color=16m")||mr("color=full")||mr("color=truecolor"))return 3;if(mr("color=256"))return 2;if(t&&!e&&Gs===void 0)return 0;let n=Gs||0;if(Ot.TERM==="dumb")return n;if(process.platform==="win32"){let r=Ude.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Ot)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in Ot)||Ot.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Ot)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ot.TEAMCITY_VERSION)?1:0;if(Ot.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ot){let r=parseInt((Ot.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ot.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ot.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ot.TERM)||"COLORTERM"in Ot?1:n}function Bde(t){let e=Yy(t,t&&t.isTTY);return zy(e)}a3.exports={supportsColor:Bde,stdout:zy(Yy(!0,i3.isatty(1))),stderr:zy(Yy(!0,i3.isatty(2)))}});var l3=T((Ct,L_)=>{var Fde=U("tty"),k_=U("util");Ct.init=zde;Ct.log=Vde;Ct.formatArgs=jde;Ct.save=qde;Ct.load=$de;Ct.useColors=Gde;Ct.destroy=k_.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ct.colors=[6,2,3,4,5,1];try{let t=u3();t&&(t.stderr||t).level>=2&&(Ct.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{}Ct.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[n]=r,t},{});function Gde(){return"colors"in Ct.inspectOpts?!!Ct.inspectOpts.colors:Fde.isatty(process.stderr.fd)}function jde(t){let{namespace:e,useColors:n}=this;if(n){let r=this.color,o="\x1B[3"+(r<8?r:"8;5;"+r),s=` ${o};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
3
|
+
var XJ=Object.create;var Im=Object.defineProperty;var ZJ=Object.getOwnPropertyDescriptor;var eX=Object.getOwnPropertyNames;var tX=Object.getPrototypeOf,nX=Object.prototype.hasOwnProperty;var U=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var K=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ea=(t,e)=>{for(var n in e)Im(t,n,{get:e[n],enumerable:!0})},f1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of eX(e))!nX.call(t,o)&&o!==n&&Im(t,o,{get:()=>e[o],enumerable:!(r=ZJ(e,o))||r.enumerable});return t};var Q=(t,e,n)=>(n=t!=null?XJ(tX(t)):{},f1(e||!t||!t.__esModule?Im(n,"default",{value:t,enumerable:!0}):n,t)),N=t=>f1(Im({},"__esModule",{value:!0}),t);var Xo,oA=K(()=>{Xo="1.9.1"});function rX(t){let e=new Set([t]),n=new Set,r=t.match(m1);if(!r)return()=>!1;let o={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(o.prerelease!=null)return function(u){return u===t};function s(a){return n.add(a),!1}function i(a){return e.add(a),!0}return function(u){if(e.has(u))return!0;if(n.has(u))return!1;let l=u.match(m1);if(!l)return s(u);let d={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return d.prerelease!=null||o.major!==d.major?s(u):o.major===0?o.minor===d.minor&&o.patch<=d.patch?i(u):s(u):o.minor<=d.minor?i(u):s(u)}}var m1,_1,h1=K(()=>{oA();m1=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;_1=rX(Xo)});function ao(t,e,n,r=!1){var o;let s=Id[Rd]=(o=Id[Rd])!==null&&o!==void 0?o:{version:Xo};if(!r&&s[t]){let i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return n.error(i.stack||i.message),!1}if(s.version!==Xo){let i=new Error(`@opentelemetry/api: Registration of version v${s.version} for ${t} does not match previously registered API v${Xo}`);return n.error(i.stack||i.message),!1}return s[t]=e,n.debug(`@opentelemetry/api: Registered a global for ${t} v${Xo}.`),!0}function zn(t){var e,n;let r=(e=Id[Rd])===null||e===void 0?void 0:e.version;if(!(!r||!_1(r)))return(n=Id[Rd])===null||n===void 0?void 0:n[t]}function uo(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${Xo}.`);let n=Id[Rd];n&&delete n[t]}var oX,Rd,Id,ta=K(()=>{oA();h1();oX=Xo.split(".")[0],Rd=Symbol.for(`opentelemetry.js.api.${oX}`),Id=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});function Od(t,e,n){let r=zn("diag");if(r)return r[t](e,...n)}var Om,g1=K(()=>{ta();Om=class{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return Od("debug",this._namespace,e)}error(...e){return Od("error",this._namespace,e)}info(...e){return Od("info",this._namespace,e)}warn(...e){return Od("warn",this._namespace,e)}verbose(...e){return Od("verbose",this._namespace,e)}}});var Et,Cm=K(()=>{(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"})(Et||(Et={}))});function T1(t,e){t<Et.NONE?t=Et.NONE:t>Et.ALL&&(t=Et.ALL),e=e||{};function n(r,o){let s=e[r];return typeof s=="function"&&t>=o?s.bind(e):function(){}}return{error:n("error",Et.ERROR),warn:n("warn",Et.WARN),info:n("info",Et.INFO),debug:n("debug",Et.DEBUG),verbose:n("verbose",Et.VERBOSE)}}var E1=K(()=>{Cm()});var sX,It,na=K(()=>{g1();E1();Cm();ta();sX="diag",It=class t{static instance(){return this._instance||(this._instance=new t),this._instance}constructor(){function e(o){return function(...s){let i=zn("diag");if(i)return i[o](...s)}}let n=this,r=(o,s={logLevel:Et.INFO})=>{var i,a,u;if(o===n){let p=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((i=p.stack)!==null&&i!==void 0?i:p.message),!1}typeof s=="number"&&(s={logLevel:s});let l=zn("diag"),d=T1((a=s.logLevel)!==null&&a!==void 0?a:Et.INFO,o);if(l&&!s.suppressOverrideMessage){let p=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";l.warn(`Current logger will be overwritten from ${p}`),d.warn(`Current logger will overwrite one already registered from ${p}`)}return ao("diag",d,n,!0)};n.setLogger=r,n.disable=()=>{uo(sX,n)},n.createComponentLogger=o=>new Om(o),n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}}});var Nm,S1=K(()=>{Nm=class t{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let n=this._entries.get(e);if(n)return Object.assign({},n)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,n){let r=new t(this._entries);return r._entries.set(e,n),r}removeEntry(e){let n=new t(this._entries);return n._entries.delete(e),n}removeEntries(...e){let n=new t(this._entries);for(let r of e)n._entries.delete(r);return n}clear(){return new t}}});var A1,y1=K(()=>{A1=Symbol("BaggageEntryMetadata")});function b1(t={}){return new Nm(new Map(Object.entries(t)))}function R1(t){return typeof t!="string"&&(iX.error(`Cannot create baggage metadata from unknown type: ${typeof t}`),t=""),{__TYPE__:A1,toString(){return t}}}var iX,sA=K(()=>{na();S1();y1();iX=It.instance()});function Yn(t){return Symbol.for(t)}var iA,wu,Cd=K(()=>{iA=class t{constructor(e){let n=this;n._currentContext=e?new Map(e):new Map,n.getValue=r=>n._currentContext.get(r),n.setValue=(r,o)=>{let s=new t(n._currentContext);return s._currentContext.set(r,o),s},n.deleteValue=r=>{let o=new t(n._currentContext);return o._currentContext.delete(r),o}}},wu=new iA});var aA,uA,xm,I1=K(()=>{aA=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],uA={};if(typeof console<"u"){let t=["error","warn","info","debug","trace","log"];for(let e of t)typeof console[e]=="function"&&(uA[e]=console[e])}xm=class{constructor(){function e(n){return function(...r){let o=uA[n];if(typeof o!="function"&&(o=uA.log),typeof o!="function"&&console&&(o=console[n],typeof o!="function"&&(o=console.log)),typeof o=="function")return o.apply(console,r)}}for(let n=0;n<aA.length;n++)this[aA[n].n]=e(aA[n].c)}}});function O1(){return gA}var cA,Du,lA,dA,pA,fA,Nd,mA,_A,hA,gA,aX,uX,cX,lX,dX,pX,fX,TA=K(()=>{cA=class{constructor(){}createGauge(e,n){return uX}createHistogram(e,n){return cX}createCounter(e,n){return aX}createUpDownCounter(e,n){return lX}createObservableGauge(e,n){return pX}createObservableCounter(e,n){return dX}createObservableUpDownCounter(e,n){return fX}addBatchObservableCallback(e,n){}removeBatchObservableCallback(e){}},Du=class{},lA=class extends Du{add(e,n){}},dA=class extends Du{add(e,n){}},pA=class extends Du{record(e,n){}},fA=class extends Du{record(e,n){}},Nd=class{addCallback(e){}removeCallback(e){}},mA=class extends Nd{},_A=class extends Nd{},hA=class extends Nd{},gA=new cA,aX=new lA,uX=new pA,cX=new fA,lX=new dA,dX=new mA,pX=new _A,fX=new hA});var Pm,C1=K(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(Pm||(Pm={}))});var Mm,vm,EA=K(()=>{Mm={get(t,e){if(t!=null)return t[e]},keys(t){return t==null?[]:Object.keys(t)}},vm={set(t,e,n){t!=null&&(t[e]=n)}}});var km,N1=K(()=>{Cd();km=class{active(){return wu}with(e,n,r,...o){return n.call(r,...o)}bind(e,n){return n}enable(){return this}disable(){return this}}});var SA,mX,co,xd=K(()=>{N1();ta();na();SA="context",mX=new km,co=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalContextManager(e){return ao(SA,e,It.instance())}active(){return this._getContextManager().active()}with(e,n,r,...o){return this._getContextManager().with(e,n,r,...o)}bind(e,n){return this._getContextManager().bind(e,n)}_getContextManager(){return zn(SA)||mX}disable(){this._getContextManager().disable(),uo(SA,It.instance())}}});var Zt,AA=K(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Zt||(Zt={}))});var Pd,ra,Lm,wm=K(()=>{AA();Pd="0000000000000000",ra="00000000000000000000000000000000",Lm={traceId:ra,spanId:Pd,traceFlags:Zt.NONE}});var lo,Dm=K(()=>{wm();lo=class{constructor(e=Lm){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,n){return this}setAttributes(e){return this}addEvent(e,n){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,n){}}});function Um(t){return t.getValue(yA)||void 0}function x1(){return Um(co.getInstance().active())}function Md(t,e){return t.setValue(yA,e)}function P1(t){return t.deleteValue(yA)}function M1(t,e){return Md(t,new lo(e))}function Bm(t){var e;return(e=Um(t))===null||e===void 0?void 0:e.spanContext()}var yA,bA=K(()=>{Cd();Dm();xd();yA=Yn("OpenTelemetry Context Key SPAN")});function v1(t,e){if(typeof t!="string"||t.length!==e)return!1;let n=0;for(let r=0;r<t.length;r+=4)n+=(Fm[t.charCodeAt(r)]|0)+(Fm[t.charCodeAt(r+1)]|0)+(Fm[t.charCodeAt(r+2)]|0)+(Fm[t.charCodeAt(r+3)]|0);return n===e}function RA(t){return v1(t,32)&&t!==ra}function IA(t){return v1(t,16)&&t!==Pd}function Zo(t){return RA(t.traceId)&&IA(t.spanId)}function k1(t){return new lo(t)}var Fm,Gm=K(()=>{wm();Dm();Fm=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1])});function _X(t){return t!==null&&typeof t=="object"&&"spanId"in t&&typeof t.spanId=="string"&&"traceId"in t&&typeof t.traceId=="string"&&"traceFlags"in t&&typeof t.traceFlags=="number"}var OA,Uu,CA=K(()=>{xd();bA();Dm();Gm();OA=co.getInstance(),Uu=class{startSpan(e,n,r=OA.active()){if(!!n?.root)return new lo;let s=r&&Bm(r);return _X(s)&&Zo(s)?new lo(s):new lo}startActiveSpan(e,n,r,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(s=n,a=r):(s=n,i=r,a=o);let u=i??OA.active(),l=this.startSpan(e,s,u),d=Md(u,l);return OA.with(d,a,void 0,l)}}});var hX,Bu,NA=K(()=>{CA();hX=new Uu,Bu=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,this.options=o}startSpan(e,n,r){return this._getTracer().startSpan(e,n,r)}startActiveSpan(e,n,r,o){let s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):hX}}});var jm,L1=K(()=>{CA();jm=class{getTracer(e,n,r){return new Uu}}});var gX,oa,xA=K(()=>{NA();L1();gX=new jm,oa=class{getTracer(e,n,r){var o;return(o=this.getDelegateTracer(e,n,r))!==null&&o!==void 0?o:new Bu(this,e,n,r)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:gX}setDelegate(e){this._delegate=e}getDelegateTracer(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,n,r)}}});var Hm,w1=K(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Hm||(Hm={}))});var Pe,D1=K(()=>{(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"})(Pe||(Pe={}))});var qe,U1=K(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(qe||(qe={}))});function B1(t){return SX.test(t)}function F1(t){return AX.test(t)&&!yX.test(t)}var PA,TX,EX,SX,AX,yX,G1=K(()=>{PA="[_0-9a-z-*/]",TX=`[a-z]${PA}{0,255}`,EX=`[a-z0-9]${PA}{0,240}@[a-z]${PA}{0,13}`,SX=new RegExp(`^(?:${TX}|${EX})$`),AX=/^[ -~]{0,255}[!-~]$/,yX=/,|=/});var j1,bX,H1,V1,Vm,q1=K(()=>{G1();j1=32,bX=512,H1=",",V1="=",Vm=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,n){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){let n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return Array.from(this._internalState.keys()).reduceRight((e,n)=>(e.push(n+V1+this.get(n)),e),[]).join(H1)}_parse(e){e.length>bX||(this._internalState=e.split(H1).reduceRight((n,r)=>{let o=r.trim(),s=o.indexOf(V1);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,r.length);B1(i)&&F1(a)&&n.set(i,a)}return n},new Map),this._internalState.size>j1&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,j1))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}}});function $1(t){return new Vm(t)}var z1=K(()=>{q1()});var v,Y1=K(()=>{xd();v=co.getInstance()});var Wn,W1=K(()=>{na();Wn=It.instance()});var MA,K1,Q1=K(()=>{TA();MA=class{getMeter(e,n,r){return gA}},K1=new MA});var vA,qm,J1=K(()=>{Q1();ta();na();vA="metrics",qm=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalMeterProvider(e){return ao(vA,e,It.instance())}getMeterProvider(){return zn(vA)||K1}getMeter(e,n,r){return this.getMeterProvider().getMeter(e,n,r)}disable(){uo(vA,It.instance())}}});var kA,X1=K(()=>{J1();kA=qm.getInstance()});var $m,Z1=K(()=>{$m=class{inject(e,n){}extract(e,n){return e}fields(){return[]}}});function wA(t){return t.getValue(LA)||void 0}function eM(){return wA(co.getInstance().active())}function tM(t,e){return t.setValue(LA,e)}function nM(t){return t.deleteValue(LA)}var LA,rM=K(()=>{xd();Cd();LA=Yn("OpenTelemetry Baggage Key")});var DA,RX,zm,oM=K(()=>{ta();Z1();EA();rM();sA();na();DA="propagation",RX=new $m,zm=class t{constructor(){this.createBaggage=b1,this.getBaggage=wA,this.getActiveBaggage=eM,this.setBaggage=tM,this.deleteBaggage=nM}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalPropagator(e){return ao(DA,e,It.instance())}inject(e,n,r=vm){return this._getGlobalPropagator().inject(e,n,r)}extract(e,n,r=Mm){return this._getGlobalPropagator().extract(e,n,r)}fields(){return this._getGlobalPropagator().fields()}disable(){uo(DA,It.instance())}_getGlobalPropagator(){return zn(DA)||RX}}});var Br,sM=K(()=>{oM();Br=zm.getInstance()});var UA,Ym,iM=K(()=>{ta();xA();Gm();bA();na();UA="trace",Ym=class t{constructor(){this._proxyTracerProvider=new oa,this.wrapSpanContext=k1,this.isSpanContextValid=Zo,this.deleteSpan=P1,this.getSpan=Um,this.getActiveSpan=x1,this.getSpanContext=Bm,this.setSpan=Md,this.setSpanContext=M1}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalTracerProvider(e){let n=ao(UA,this._proxyTracerProvider,It.instance());return n&&this._proxyTracerProvider.setDelegate(e),n}getTracerProvider(){return zn(UA)||this._proxyTracerProvider}getTracer(e,n){return this.getTracerProvider().getTracer(e,n)}disable(){uo(UA,It.instance()),this._proxyTracerProvider=new oa}}});var X,aM=K(()=>{iM();X=Ym.getInstance()});var L={};ea(L,{DiagConsoleLogger:()=>xm,DiagLogLevel:()=>Et,INVALID_SPANID:()=>Pd,INVALID_SPAN_CONTEXT:()=>Lm,INVALID_TRACEID:()=>ra,ProxyTracer:()=>Bu,ProxyTracerProvider:()=>oa,ROOT_CONTEXT:()=>wu,SamplingDecision:()=>Hm,SpanKind:()=>Pe,SpanStatusCode:()=>qe,TraceFlags:()=>Zt,ValueType:()=>Pm,baggageEntryMetadataFromString:()=>R1,context:()=>v,createContextKey:()=>Yn,createNoopMeter:()=>O1,createTraceState:()=>$1,default:()=>IX,defaultTextMapGetter:()=>Mm,defaultTextMapSetter:()=>vm,diag:()=>Wn,isSpanContextValid:()=>Zo,isValidSpanId:()=>IA,isValidTraceId:()=>RA,metrics:()=>kA,propagation:()=>Br,trace:()=>X});var IX,P=K(()=>{sA();Cd();I1();Cm();TA();C1();EA();NA();xA();w1();D1();U1();AA();z1();Gm();wm();Y1();W1();X1();sM();aM();IX={context:v,diag:Wn,metrics:kA,propagation:Br,trace:X}});var vd=T(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.isTracingSuppressed=Us.unsuppressTracing=Us.suppressTracing=void 0;var OX=(P(),N(L)),BA=(0,OX.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function CX(t){return t.setValue(BA,!0)}Us.suppressTracing=CX;function NX(t){return t.deleteValue(BA)}Us.unsuppressTracing=NX;function xX(t){return t.getValue(BA)===!0}Us.isTracingSuppressed=xX});var FA=T(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.BAGGAGE_MAX_TOTAL_LENGTH=en.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=en.BAGGAGE_MAX_NAME_VALUE_PAIRS=en.BAGGAGE_HEADER=en.BAGGAGE_ITEMS_SEPARATOR=en.BAGGAGE_PROPERTIES_SEPARATOR=en.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;en.BAGGAGE_KEY_PAIR_SEPARATOR="=";en.BAGGAGE_PROPERTIES_SEPARATOR=";";en.BAGGAGE_ITEMS_SEPARATOR=",";en.BAGGAGE_HEADER="baggage";en.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;en.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;en.BAGGAGE_MAX_TOTAL_LENGTH=8192});var GA=T(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.parseKeyPairsIntoRecord=po.parsePairKeyValue=po.getKeyPairs=po.serializeKeyPairs=void 0;var PX=(P(),N(L)),Fu=FA();function MX(t){return t.reduce((e,n)=>{let r=`${e}${e!==""?Fu.BAGGAGE_ITEMS_SEPARATOR:""}${n}`;return r.length>Fu.BAGGAGE_MAX_TOTAL_LENGTH?e:r},"")}po.serializeKeyPairs=MX;function vX(t){return t.getAllEntries().map(([e,n])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=Fu.BAGGAGE_PROPERTIES_SEPARATOR+n.metadata.toString()),r})}po.getKeyPairs=vX;function uM(t){if(!t)return;let e=t.indexOf(Fu.BAGGAGE_PROPERTIES_SEPARATOR),n=e===-1?t:t.substring(0,e),r=n.indexOf(Fu.BAGGAGE_KEY_PAIR_SEPARATOR);if(r<=0)return;let o=n.substring(0,r).trim(),s=n.substring(r+1).trim();if(!o||!s)return;let i,a;try{i=decodeURIComponent(o),a=decodeURIComponent(s)}catch{return}let u;if(e!==-1&&e<t.length-1){let l=t.substring(e+1);u=(0,PX.baggageEntryMetadataFromString)(l)}return{key:i,value:a,metadata:u}}po.parsePairKeyValue=uM;function kX(t){let e={};return typeof t=="string"&&t.length>0&&t.split(Fu.BAGGAGE_ITEMS_SEPARATOR).forEach(n=>{let r=uM(n);r!==void 0&&r.value.length>0&&(e[r.key]=r.value)}),e}po.parseKeyPairsIntoRecord=kX});var cM=T(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.W3CBaggagePropagator=void 0;var jA=(P(),N(L)),LX=vd(),sa=FA(),HA=GA(),VA=class{inject(e,n,r){let o=jA.propagation.getBaggage(e);if(!o||(0,LX.isTracingSuppressed)(e))return;let s=(0,HA.getKeyPairs)(o).filter(a=>a.length<=sa.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,sa.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,HA.serializeKeyPairs)(s);i.length>0&&r.set(n,sa.BAGGAGE_HEADER,i)}extract(e,n,r){let o=r.get(n,sa.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(sa.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return e;let i={};return s.length===0||(s.split(sa.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,HA.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),i[l.key]=d}}),Object.entries(i).length===0)?e:jA.propagation.setBaggage(e,jA.propagation.createBaggage(i))}fields(){return[sa.BAGGAGE_HEADER]}};Wm.W3CBaggagePropagator=VA});var lM=T(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.AnchoredClock=void 0;var qA=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};Km.AnchoredClock=qA});var _M=T(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.isAttributeValue=Bs.isAttributeKey=Bs.sanitizeAttributes=void 0;var dM=(P(),N(L));function wX(t){let e={};if(typeof t!="object"||t==null)return e;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if(!pM(n)){dM.diag.warn(`Invalid attribute key: ${n}`);continue}let r=t[n];if(!fM(r)){dM.diag.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?e[n]=r.slice():e[n]=r}return e}Bs.sanitizeAttributes=wX;function pM(t){return typeof t=="string"&&t!==""}Bs.isAttributeKey=pM;function fM(t){return t==null?!0:Array.isArray(t)?DX(t):mM(typeof t)}Bs.isAttributeValue=fM;function DX(t){let e;for(let n of t){if(n==null)continue;let r=typeof n;if(r!==e){if(!e){if(mM(r)){e=r;continue}return!1}return!1}}return!0}function mM(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}});var $A=T(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.loggingErrorHandler=void 0;var UX=(P(),N(L));function BX(){return t=>{UX.diag.error(FX(t))}}Qm.loggingErrorHandler=BX;function FX(t){return typeof t=="string"?t:JSON.stringify(GX(t))}function GX(t){let e={},n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(e[r])return;let o=n[r];o&&(e[r]=String(o))}),n=Object.getPrototypeOf(n);return e}});var gM=T(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.globalErrorHandler=Gu.setGlobalErrorHandler=void 0;var jX=$A(),hM=(0,jX.loggingErrorHandler)();function HX(t){hM=t}Gu.setGlobalErrorHandler=HX;function VX(t){try{hM(t)}catch{}}Gu.globalErrorHandler=VX});var AM=T(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.getStringListFromEnv=fo.getBooleanFromEnv=fo.getStringFromEnv=fo.getNumberFromEnv=void 0;var TM=(P(),N(L)),EM=U("util");function qX(t){let e=process.env[t];if(e==null||e.trim()==="")return;let n=Number(e);if(isNaN(n)){TM.diag.warn(`Unknown value ${(0,EM.inspect)(e)} for ${t}, expected a number, using defaults`);return}return n}fo.getNumberFromEnv=qX;function SM(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}fo.getStringFromEnv=SM;function $X(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||TM.diag.warn(`Unknown value ${(0,EM.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}fo.getBooleanFromEnv=$X;function zX(t){return SM(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}fo.getStringListFromEnv=zX});var yM=T(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm._globalThis=void 0;Jm._globalThis=globalThis});var bM=T(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.VERSION=void 0;Xm.VERSION="2.6.1"});function Ze(t){let e={},n=t.length;for(let r=0;r<n;r++){let o=t[r];o&&(e[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return e}var zA=K(()=>{});var RM,IM,OM,CM,NM,xM,PM,MM,vM,kM,LM,wM,DM,UM,BM,FM,GM,jM,HM,VM,qM,$M,zM,YM,WM,KM,QM,JM,XM,ZM,ev,tv,nv,rv,ov,sv,iv,av,uv,cv,lv,dv,pv,fv,mv,_v,hv,gv,Tv,Ev,Sv,Av,yv,bv,Rv,Iv,Ov,Cv,Nv,xv,Pv,Mv,vv,kv,Lv,wv,Dv,Uv,Bv,Fv,Gv,jv,Hv,Vv,qv,$v,zv,Yv,Wv,Kv,Qv,Jv,Xv,Zv,ek,tk,nk,rk,ok,sk,ik,ak,uk,ck,lk,dk,pk,fk,mk,_k,hk,gk,Tk,Ek,Sk,Ak,yk,bk,Rk,Ik,Ok,Ck,Nk,xk,Pk,Mk,vk,kk,Lk,wk,Dk,Uk,Bk,Fk,Gk,jk,Hk,Vk,YX,YA,WX,KX,QX,JX,WA,XX,ZX,eZ,tZ,nZ,rZ,oZ,sZ,iZ,aZ,uZ,cZ,lZ,dZ,pZ,fZ,mZ,_Z,KA,hZ,gZ,TZ,EZ,SZ,AZ,yZ,bZ,RZ,IZ,OZ,CZ,QA,NZ,xZ,JA,XA,PZ,MZ,vZ,kZ,LZ,wZ,DZ,UZ,BZ,FZ,GZ,jZ,HZ,VZ,qZ,$Z,zZ,kd,ju,ZA,YZ,WZ,ia,KZ,QZ,JZ,XZ,ey,ty,ZZ,ny,eee,tee,nee,ree,oee,see,iee,aee,uee,cee,lee,dee,pee,fee,mee,_ee,hee,gee,Tee,Eee,See,Aee,yee,ry,bee,Ree,Iee,Oee,Cee,Nee,xee,Pee,Mee,vee,kee,Lee,wee,Dee,Uee,Bee,Fee,Gee,jee,oy,Hee,sy,Vee,qee,$ee,zee,Yee,Wee,Kee,Qee,Jee,qk,$k,zk,Yk,Wk,Kk,Qk,Jk,Xk,Zk,eL,tL,nL,rL,oL,sL,iL,aL,uL,cL,lL,dL,pL,fL,mL,_L,hL,gL,TL,EL,SL,AL,yL,bL,RL,IL,OL,CL,NL,xL,PL,ML,vL,kL,LL,wL,DL,Xee,Zee,ete,tte,nte,rte,ote,ste,ite,ate,ute,cte,lte,dte,pte,fte,mte,_te,hte,gte,Tte,Ete,Ste,Ate,yte,bte,Rte,Ite,Ote,Cte,Nte,xte,Pte,Mte,vte,kte,Lte,wte,Dte,Ute,Bte,Fte,Gte,jte,Hte,Vte,qte,$te,UL,BL,FL,GL,jL,HL,VL,qL,$L,zL,YL,zte,Yte,Wte,Kte,Qte,Jte,Xte,Zte,ene,tne,nne,rne,WL,KL,QL,JL,XL,one,sne,ine,ane,une,cne,ZL,ew,tw,lne,dne,pne,fne,nw,rw,ow,sw,mne,_ne,hne,gne,Tne,iw,aw,uw,cw,lw,dw,pw,Ene,Sne,Ane,yne,bne,Rne,Ine,One,fw,mw,_w,hw,gw,Cne,Nne,xne,Pne,Mne,vne,Tw,Ew,Sw,Aw,yw,bw,Rw,Iw,Ow,Cw,Nw,xw,Pw,Mw,vw,kw,Lw,ww,Dw,Uw,Bw,kne,Lne,wne,Dne,Une,Bne,Fne,Gne,jne,Hne,Vne,qne,$ne,zne,Yne,Wne,Kne,Qne,Jne,Xne,Zne,ere,Fw,Gw,jw,Hw,Vw,tre,nre,rre,ore,sre,ire,qw,$w,are,ure,cre,zw,Yw,lre,dre,pre,Ww,Kw,Qw,Jw,Xw,Zw,eD,tD,nD,rD,oD,sD,iD,aD,uD,cD,lD,fre,mre,_re,hre,gre,Tre,Ere,Sre,Are,yre,bre,Rre,Ire,Ore,Cre,Nre,xre,Pre,dD,pD,Mre,vre,kre,fD=K(()=>{zA();RM="aws.lambda.invoked_arn",IM="db.system",OM="db.connection_string",CM="db.user",NM="db.jdbc.driver_classname",xM="db.name",PM="db.statement",MM="db.operation",vM="db.mssql.instance_name",kM="db.cassandra.keyspace",LM="db.cassandra.page_size",wM="db.cassandra.consistency_level",DM="db.cassandra.table",UM="db.cassandra.idempotence",BM="db.cassandra.speculative_execution_count",FM="db.cassandra.coordinator.id",GM="db.cassandra.coordinator.dc",jM="db.hbase.namespace",HM="db.redis.database_index",VM="db.mongodb.collection",qM="db.sql.table",$M="exception.type",zM="exception.message",YM="exception.stacktrace",WM="exception.escaped",KM="faas.trigger",QM="faas.execution",JM="faas.document.collection",XM="faas.document.operation",ZM="faas.document.time",ev="faas.document.name",tv="faas.time",nv="faas.cron",rv="faas.coldstart",ov="faas.invoked_name",sv="faas.invoked_provider",iv="faas.invoked_region",av="net.transport",uv="net.peer.ip",cv="net.peer.port",lv="net.peer.name",dv="net.host.ip",pv="net.host.port",fv="net.host.name",mv="net.host.connection.type",_v="net.host.connection.subtype",hv="net.host.carrier.name",gv="net.host.carrier.mcc",Tv="net.host.carrier.mnc",Ev="net.host.carrier.icc",Sv="peer.service",Av="enduser.id",yv="enduser.role",bv="enduser.scope",Rv="thread.id",Iv="thread.name",Ov="code.function",Cv="code.namespace",Nv="code.filepath",xv="code.lineno",Pv="http.method",Mv="http.url",vv="http.target",kv="http.host",Lv="http.scheme",wv="http.status_code",Dv="http.flavor",Uv="http.user_agent",Bv="http.request_content_length",Fv="http.request_content_length_uncompressed",Gv="http.response_content_length",jv="http.response_content_length_uncompressed",Hv="http.server_name",Vv="http.route",qv="http.client_ip",$v="aws.dynamodb.table_names",zv="aws.dynamodb.consumed_capacity",Yv="aws.dynamodb.item_collection_metrics",Wv="aws.dynamodb.provisioned_read_capacity",Kv="aws.dynamodb.provisioned_write_capacity",Qv="aws.dynamodb.consistent_read",Jv="aws.dynamodb.projection",Xv="aws.dynamodb.limit",Zv="aws.dynamodb.attributes_to_get",ek="aws.dynamodb.index_name",tk="aws.dynamodb.select",nk="aws.dynamodb.global_secondary_indexes",rk="aws.dynamodb.local_secondary_indexes",ok="aws.dynamodb.exclusive_start_table",sk="aws.dynamodb.table_count",ik="aws.dynamodb.scan_forward",ak="aws.dynamodb.segment",uk="aws.dynamodb.total_segments",ck="aws.dynamodb.count",lk="aws.dynamodb.scanned_count",dk="aws.dynamodb.attribute_definitions",pk="aws.dynamodb.global_secondary_index_updates",fk="messaging.system",mk="messaging.destination",_k="messaging.destination_kind",hk="messaging.temp_destination",gk="messaging.protocol",Tk="messaging.protocol_version",Ek="messaging.url",Sk="messaging.message_id",Ak="messaging.conversation_id",yk="messaging.message_payload_size_bytes",bk="messaging.message_payload_compressed_size_bytes",Rk="messaging.operation",Ik="messaging.consumer_id",Ok="messaging.rabbitmq.routing_key",Ck="messaging.kafka.message_key",Nk="messaging.kafka.consumer_group",xk="messaging.kafka.client_id",Pk="messaging.kafka.partition",Mk="messaging.kafka.tombstone",vk="rpc.system",kk="rpc.service",Lk="rpc.method",wk="rpc.grpc.status_code",Dk="rpc.jsonrpc.version",Uk="rpc.jsonrpc.request_id",Bk="rpc.jsonrpc.error_code",Fk="rpc.jsonrpc.error_message",Gk="message.type",jk="message.id",Hk="message.compressed_size",Vk="message.uncompressed_size",YX=RM,YA=IM,WX=OM,KX=CM,QX=NM,JX=xM,WA=PM,XX=MM,ZX=vM,eZ=kM,tZ=LM,nZ=wM,rZ=DM,oZ=UM,sZ=BM,iZ=FM,aZ=GM,uZ=jM,cZ=HM,lZ=VM,dZ=qM,pZ=$M,fZ=zM,mZ=YM,_Z=WM,KA=KM,hZ=QM,gZ=JM,TZ=XM,EZ=ZM,SZ=ev,AZ=tv,yZ=nv,bZ=rv,RZ=ov,IZ=sv,OZ=iv,CZ=av,QA=uv,NZ=cv,xZ=lv,JA=dv,XA=pv,PZ=fv,MZ=mv,vZ=_v,kZ=hv,LZ=gv,wZ=Tv,DZ=Ev,UZ=Sv,BZ=Av,FZ=yv,GZ=bv,jZ=Rv,HZ=Iv,VZ=Ov,qZ=Cv,$Z=Nv,zZ=xv,kd=Pv,ju=Mv,ZA=vv,YZ=kv,WZ=Lv,ia=wv,KZ=Dv,QZ=Uv,JZ=Bv,XZ=Fv,ey=Gv,ty=jv,ZZ=Hv,ny=Vv,eee=qv,tee=$v,nee=zv,ree=Yv,oee=Wv,see=Kv,iee=Qv,aee=Jv,uee=Xv,cee=Zv,lee=ek,dee=tk,pee=nk,fee=rk,mee=ok,_ee=sk,hee=ik,gee=ak,Tee=uk,Eee=ck,See=lk,Aee=dk,yee=pk,ry=fk,bee=mk,Ree=_k,Iee=hk,Oee=gk,Cee=Tk,Nee=Ek,xee=Sk,Pee=Ak,Mee=yk,vee=bk,kee=Rk,Lee=Ik,wee=Ok,Dee=Ck,Uee=Nk,Bee=xk,Fee=Pk,Gee=Mk,jee=vk,oy=kk,Hee=Lk,sy=wk,Vee=Dk,qee=Uk,$ee=Bk,zee=Fk,Yee=Gk,Wee=jk,Kee=Hk,Qee=Vk,Jee=Ze([RM,IM,OM,CM,NM,xM,PM,MM,vM,kM,LM,wM,DM,UM,BM,FM,GM,jM,HM,VM,qM,$M,zM,YM,WM,KM,QM,JM,XM,ZM,ev,tv,nv,rv,ov,sv,iv,av,uv,cv,lv,dv,pv,fv,mv,_v,hv,gv,Tv,Ev,Sv,Av,yv,bv,Rv,Iv,Ov,Cv,Nv,xv,Pv,Mv,vv,kv,Lv,wv,Dv,Uv,Bv,Fv,Gv,jv,Hv,Vv,qv,$v,zv,Yv,Wv,Kv,Qv,Jv,Xv,Zv,ek,tk,nk,rk,ok,sk,ik,ak,uk,ck,lk,dk,pk,fk,mk,_k,hk,gk,Tk,Ek,Sk,Ak,yk,bk,Rk,Ik,Ok,Ck,Nk,xk,Pk,Mk,vk,kk,Lk,wk,Dk,Uk,Bk,Fk,Gk,jk,Hk,Vk]),qk="other_sql",$k="mssql",zk="mysql",Yk="oracle",Wk="db2",Kk="postgresql",Qk="redshift",Jk="hive",Xk="cloudscape",Zk="hsqldb",eL="progress",tL="maxdb",nL="hanadb",rL="ingres",oL="firstsql",sL="edb",iL="cache",aL="adabas",uL="firebird",cL="derby",lL="filemaker",dL="informix",pL="instantdb",fL="interbase",mL="mariadb",_L="netezza",hL="pervasive",gL="pointbase",TL="sqlite",EL="sybase",SL="teradata",AL="vertica",yL="h2",bL="coldfusion",RL="cassandra",IL="hbase",OL="mongodb",CL="redis",NL="couchbase",xL="couchdb",PL="cosmosdb",ML="dynamodb",vL="neo4j",kL="geode",LL="elasticsearch",wL="memcached",DL="cockroachdb",Xee=qk,Zee=$k,ete=zk,tte=Yk,nte=Wk,rte=Kk,ote=Qk,ste=Jk,ite=Xk,ate=Zk,ute=eL,cte=tL,lte=nL,dte=rL,pte=oL,fte=sL,mte=iL,_te=aL,hte=uL,gte=cL,Tte=lL,Ete=dL,Ste=pL,Ate=fL,yte=mL,bte=_L,Rte=hL,Ite=gL,Ote=TL,Cte=EL,Nte=SL,xte=AL,Pte=yL,Mte=bL,vte=RL,kte=IL,Lte=OL,wte=CL,Dte=NL,Ute=xL,Bte=PL,Fte=ML,Gte=vL,jte=kL,Hte=LL,Vte=wL,qte=DL,$te=Ze([qk,$k,zk,Yk,Wk,Kk,Qk,Jk,Xk,Zk,eL,tL,nL,rL,oL,sL,iL,aL,uL,cL,lL,dL,pL,fL,mL,_L,hL,gL,TL,EL,SL,AL,yL,bL,RL,IL,OL,CL,NL,xL,PL,ML,vL,kL,LL,wL,DL]),UL="all",BL="each_quorum",FL="quorum",GL="local_quorum",jL="one",HL="two",VL="three",qL="local_one",$L="any",zL="serial",YL="local_serial",zte=UL,Yte=BL,Wte=FL,Kte=GL,Qte=jL,Jte=HL,Xte=VL,Zte=qL,ene=$L,tne=zL,nne=YL,rne=Ze([UL,BL,FL,GL,jL,HL,VL,qL,$L,zL,YL]),WL="datasource",KL="http",QL="pubsub",JL="timer",XL="other",one=WL,sne=KL,ine=QL,ane=JL,une=XL,cne=Ze([WL,KL,QL,JL,XL]),ZL="insert",ew="edit",tw="delete",lne=ZL,dne=ew,pne=tw,fne=Ze([ZL,ew,tw]),nw="alibaba_cloud",rw="aws",ow="azure",sw="gcp",mne=nw,_ne=rw,hne=ow,gne=sw,Tne=Ze([nw,rw,ow,sw]),iw="ip_tcp",aw="ip_udp",uw="ip",cw="unix",lw="pipe",dw="inproc",pw="other",Ene=iw,Sne=aw,Ane=uw,yne=cw,bne=lw,Rne=dw,Ine=pw,One=Ze([iw,aw,uw,cw,lw,dw,pw]),fw="wifi",mw="wired",_w="cell",hw="unavailable",gw="unknown",Cne=fw,Nne=mw,xne=_w,Pne=hw,Mne=gw,vne=Ze([fw,mw,_w,hw,gw]),Tw="gprs",Ew="edge",Sw="umts",Aw="cdma",yw="evdo_0",bw="evdo_a",Rw="cdma2000_1xrtt",Iw="hsdpa",Ow="hsupa",Cw="hspa",Nw="iden",xw="evdo_b",Pw="lte",Mw="ehrpd",vw="hspap",kw="gsm",Lw="td_scdma",ww="iwlan",Dw="nr",Uw="nrnsa",Bw="lte_ca",kne=Tw,Lne=Ew,wne=Sw,Dne=Aw,Une=yw,Bne=bw,Fne=Rw,Gne=Iw,jne=Ow,Hne=Cw,Vne=Nw,qne=xw,$ne=Pw,zne=Mw,Yne=vw,Wne=kw,Kne=Lw,Qne=ww,Jne=Dw,Xne=Uw,Zne=Bw,ere=Ze([Tw,Ew,Sw,Aw,yw,bw,Rw,Iw,Ow,Cw,Nw,xw,Pw,Mw,vw,kw,Lw,ww,Dw,Uw,Bw]),Fw="1.0",Gw="1.1",jw="2.0",Hw="SPDY",Vw="QUIC",tre=Fw,nre=Gw,rre=jw,ore=Hw,sre=Vw,ire={HTTP_1_0:Fw,HTTP_1_1:Gw,HTTP_2_0:jw,SPDY:Hw,QUIC:Vw},qw="queue",$w="topic",are=qw,ure=$w,cre=Ze([qw,$w]),zw="receive",Yw="process",lre=zw,dre=Yw,pre=Ze([zw,Yw]),Ww=0,Kw=1,Qw=2,Jw=3,Xw=4,Zw=5,eD=6,tD=7,nD=8,rD=9,oD=10,sD=11,iD=12,aD=13,uD=14,cD=15,lD=16,fre=Ww,mre=Kw,_re=Qw,hre=Jw,gre=Xw,Tre=Zw,Ere=eD,Sre=tD,Are=nD,yre=rD,bre=oD,Rre=sD,Ire=iD,Ore=aD,Cre=uD,Nre=cD,xre=lD,Pre={OK:Ww,CANCELLED:Kw,UNKNOWN:Qw,INVALID_ARGUMENT:Jw,DEADLINE_EXCEEDED:Xw,NOT_FOUND:Zw,ALREADY_EXISTS:eD,PERMISSION_DENIED:tD,RESOURCE_EXHAUSTED:nD,FAILED_PRECONDITION:rD,ABORTED:oD,OUT_OF_RANGE:sD,UNIMPLEMENTED:iD,INTERNAL:aD,UNAVAILABLE:uD,DATA_LOSS:cD,UNAUTHENTICATED:lD},dD="SENT",pD="RECEIVED",Mre=dD,vre=pD,kre=Ze([dD,pD])});var mD=K(()=>{fD()});var _D,hD,gD,TD,ED,SD,AD,yD,bD,RD,ID,OD,CD,ND,xD,PD,MD,vD,kD,LD,wD,DD,UD,BD,FD,GD,jD,HD,VD,qD,$D,zD,YD,WD,KD,QD,JD,XD,ZD,e2,t2,n2,r2,o2,s2,i2,a2,u2,c2,l2,d2,p2,f2,m2,_2,h2,g2,T2,E2,S2,A2,y2,b2,R2,I2,O2,C2,N2,x2,P2,M2,v2,k2,L2,w2,D2,U2,B2,F2,G2,j2,Lre,wre,Dre,Ure,Bre,Fre,Gre,jre,Hre,Vre,qre,$re,zre,Yre,Wre,Kre,Qre,Jre,Xre,Zre,eoe,toe,noe,roe,ooe,soe,ioe,aoe,uoe,coe,loe,doe,poe,foe,moe,_oe,hoe,goe,Toe,Eoe,Soe,Aoe,yoe,boe,Roe,Ioe,Ooe,Coe,Noe,xoe,Poe,Moe,voe,koe,Loe,woe,Doe,Uoe,Boe,Foe,Goe,joe,Hoe,Voe,qoe,$oe,zoe,Yoe,Woe,Koe,Qoe,iy,Joe,Xoe,Zoe,ese,tse,nse,rse,ose,sse,ise,H2,V2,q2,$2,ase,use,cse,lse,dse,z2,Y2,W2,K2,Q2,J2,X2,Z2,eU,tU,nU,rU,oU,sU,iU,aU,uU,pse,fse,mse,_se,hse,gse,Tse,Ese,Sse,Ase,yse,bse,Rse,Ise,Ose,Cse,Nse,xse,cU,lU,Pse,Mse,vse,dU,pU,fU,mU,_U,hU,gU,kse,Lse,wse,Dse,Use,Bse,Fse,Gse,TU,EU,SU,AU,yU,bU,RU,IU,OU,CU,NU,jse,Hse,Vse,qse,$se,zse,Yse,Wse,Kse,Qse,Jse,Xse,xU,PU,MU,vU,kU,LU,wU,DU,UU,BU,Zse,eie,tie,nie,rie,oie,sie,iie,aie,uie,cie,FU=K(()=>{zA();_D="cloud.provider",hD="cloud.account.id",gD="cloud.region",TD="cloud.availability_zone",ED="cloud.platform",SD="aws.ecs.container.arn",AD="aws.ecs.cluster.arn",yD="aws.ecs.launchtype",bD="aws.ecs.task.arn",RD="aws.ecs.task.family",ID="aws.ecs.task.revision",OD="aws.eks.cluster.arn",CD="aws.log.group.names",ND="aws.log.group.arns",xD="aws.log.stream.names",PD="aws.log.stream.arns",MD="container.name",vD="container.id",kD="container.runtime",LD="container.image.name",wD="container.image.tag",DD="deployment.environment",UD="device.id",BD="device.model.identifier",FD="device.model.name",GD="faas.name",jD="faas.id",HD="faas.version",VD="faas.instance",qD="faas.max_memory",$D="host.id",zD="host.name",YD="host.type",WD="host.arch",KD="host.image.name",QD="host.image.id",JD="host.image.version",XD="k8s.cluster.name",ZD="k8s.node.name",e2="k8s.node.uid",t2="k8s.namespace.name",n2="k8s.pod.uid",r2="k8s.pod.name",o2="k8s.container.name",s2="k8s.replicaset.uid",i2="k8s.replicaset.name",a2="k8s.deployment.uid",u2="k8s.deployment.name",c2="k8s.statefulset.uid",l2="k8s.statefulset.name",d2="k8s.daemonset.uid",p2="k8s.daemonset.name",f2="k8s.job.uid",m2="k8s.job.name",_2="k8s.cronjob.uid",h2="k8s.cronjob.name",g2="os.type",T2="os.description",E2="os.name",S2="os.version",A2="process.pid",y2="process.executable.name",b2="process.executable.path",R2="process.command",I2="process.command_line",O2="process.command_args",C2="process.owner",N2="process.runtime.name",x2="process.runtime.version",P2="process.runtime.description",M2="service.name",v2="service.namespace",k2="service.instance.id",L2="service.version",w2="telemetry.sdk.name",D2="telemetry.sdk.language",U2="telemetry.sdk.version",B2="telemetry.auto.version",F2="webengine.name",G2="webengine.version",j2="webengine.description",Lre=_D,wre=hD,Dre=gD,Ure=TD,Bre=ED,Fre=SD,Gre=AD,jre=yD,Hre=bD,Vre=RD,qre=ID,$re=OD,zre=CD,Yre=ND,Wre=xD,Kre=PD,Qre=MD,Jre=vD,Xre=kD,Zre=LD,eoe=wD,toe=DD,noe=UD,roe=BD,ooe=FD,soe=GD,ioe=jD,aoe=HD,uoe=VD,coe=qD,loe=$D,doe=zD,poe=YD,foe=WD,moe=KD,_oe=QD,hoe=JD,goe=XD,Toe=ZD,Eoe=e2,Soe=t2,Aoe=n2,yoe=r2,boe=o2,Roe=s2,Ioe=i2,Ooe=a2,Coe=u2,Noe=c2,xoe=l2,Poe=d2,Moe=p2,voe=f2,koe=m2,Loe=_2,woe=h2,Doe=g2,Uoe=T2,Boe=E2,Foe=S2,Goe=A2,joe=y2,Hoe=b2,Voe=R2,qoe=I2,$oe=O2,zoe=C2,Yoe=N2,Woe=x2,Koe=P2,Qoe=M2,iy=v2,Joe=k2,Xoe=L2,Zoe=w2,ese=D2,tse=U2,nse=B2,rse=F2,ose=G2,sse=j2,ise=Ze([_D,hD,gD,TD,ED,SD,AD,yD,bD,RD,ID,OD,CD,ND,xD,PD,MD,vD,kD,LD,wD,DD,UD,BD,FD,GD,jD,HD,VD,qD,$D,zD,YD,WD,KD,QD,JD,XD,ZD,e2,t2,n2,r2,o2,s2,i2,a2,u2,c2,l2,d2,p2,f2,m2,_2,h2,g2,T2,E2,S2,A2,y2,b2,R2,I2,O2,C2,N2,x2,P2,M2,v2,k2,L2,w2,D2,U2,B2,F2,G2,j2]),H2="alibaba_cloud",V2="aws",q2="azure",$2="gcp",ase=H2,use=V2,cse=q2,lse=$2,dse=Ze([H2,V2,q2,$2]),z2="alibaba_cloud_ecs",Y2="alibaba_cloud_fc",W2="aws_ec2",K2="aws_ecs",Q2="aws_eks",J2="aws_lambda",X2="aws_elastic_beanstalk",Z2="azure_vm",eU="azure_container_instances",tU="azure_aks",nU="azure_functions",rU="azure_app_service",oU="gcp_compute_engine",sU="gcp_cloud_run",iU="gcp_kubernetes_engine",aU="gcp_cloud_functions",uU="gcp_app_engine",pse=z2,fse=Y2,mse=W2,_se=K2,hse=Q2,gse=J2,Tse=X2,Ese=Z2,Sse=eU,Ase=tU,yse=nU,bse=rU,Rse=oU,Ise=sU,Ose=iU,Cse=aU,Nse=uU,xse=Ze([z2,Y2,W2,K2,Q2,J2,X2,Z2,eU,tU,nU,rU,oU,sU,iU,aU,uU]),cU="ec2",lU="fargate",Pse=cU,Mse=lU,vse=Ze([cU,lU]),dU="amd64",pU="arm32",fU="arm64",mU="ia64",_U="ppc32",hU="ppc64",gU="x86",kse=dU,Lse=pU,wse=fU,Dse=mU,Use=_U,Bse=hU,Fse=gU,Gse=Ze([dU,pU,fU,mU,_U,hU,gU]),TU="windows",EU="linux",SU="darwin",AU="freebsd",yU="netbsd",bU="openbsd",RU="dragonflybsd",IU="hpux",OU="aix",CU="solaris",NU="z_os",jse=TU,Hse=EU,Vse=SU,qse=AU,$se=yU,zse=bU,Yse=RU,Wse=IU,Kse=OU,Qse=CU,Jse=NU,Xse=Ze([TU,EU,SU,AU,yU,bU,RU,IU,OU,CU,NU]),xU="cpp",PU="dotnet",MU="erlang",vU="go",kU="java",LU="nodejs",wU="php",DU="python",UU="ruby",BU="webjs",Zse=xU,eie=PU,tie=MU,nie=vU,rie=kU,oie=LU,sie=wU,iie=DU,aie=UU,uie=BU,cie=Ze([xU,PU,MU,vU,kU,LU,wU,DU,UU,BU])});var GU=K(()=>{FU()});var lie,die,pie,fie,mie,_ie,hie,gie,Tie,Eie,Sie,Aie,yie,bie,Rie,Iie,Oie,Cie,Nie,xie,Pie,Mie,vie,kie,Lie,ay,uy,wie,Hu,Die,cy,ly,Uie,aa,Bie,Fie,Gie,jie,Hie,Vie,qie,$ie,zie,Yie,dy,Wie,Kie,Qie,Jie,Xie,Zie,ua,eae,tae,nae,rae,oae,sae,iae,aae,uae,cae,lae,dae,pae,es,ts,fae,mae,_ae,hae,gae,Tae,Eae,Sae,Aae,yae,bae,Rae,Iae,Oae,Cae,Nae,py,fy,xae,my,_y,Pae,Mae,vae,kae,Lae,wae,Dae,Uae,Bae,Fae,Gae,jae,Hae,Vae,hy,gy,qae,Ty,$ae,Ey,zae,Yae,Wae,Kae,Qae,Jae,Xae,Zae,eue,tue,nue,rue,oue,sue,iue,aue,uue,cue,lue,due,pue,fue,mue,_ue,Fs,hue,gue,Tue,Sy,jU=K(()=>{lie="aspnetcore.diagnostics.exception.result",die="aborted",pie="handled",fie="skipped",mie="unhandled",_ie="aspnetcore.diagnostics.handler.type",hie="aspnetcore.rate_limiting.policy",gie="aspnetcore.rate_limiting.result",Tie="acquired",Eie="endpoint_limiter",Sie="global_limiter",Aie="request_canceled",yie="aspnetcore.request.is_unhandled",bie="aspnetcore.routing.is_fallback",Rie="aspnetcore.routing.match_status",Iie="failure",Oie="success",Cie="aspnetcore.user.is_authenticated",Nie="client.address",xie="client.port",Pie="code.column.number",Mie="code.file.path",vie="code.function.name",kie="code.line.number",Lie="code.stacktrace",ay="db.collection.name",uy="db.namespace",wie="db.operation.batch.size",Hu="db.operation.name",Die="db.query.summary",cy="db.query.text",ly="db.response.status_code",Uie="db.stored_procedure.name",aa="db.system.name",Bie="mariadb",Fie="microsoft.sql_server",Gie="mysql",jie="postgresql",Hie="dotnet.gc.heap.generation",Vie="gen0",qie="gen1",$ie="gen2",zie="loh",Yie="poh",dy="error.type",Wie="_OTHER",Kie="exception.escaped",Qie="exception.message",Jie="exception.stacktrace",Xie="exception.type",Zie=t=>`http.request.header.${t}`,ua="http.request.method",eae="_OTHER",tae="CONNECT",nae="DELETE",rae="GET",oae="HEAD",sae="OPTIONS",iae="PATCH",aae="POST",uae="PUT",cae="TRACE",lae="http.request.method_original",dae="http.request.resend_count",pae=t=>`http.response.header.${t}`,es="http.response.status_code",ts="http.route",fae="jvm.gc.action",mae="jvm.gc.name",_ae="jvm.memory.pool.name",hae="jvm.memory.type",gae="heap",Tae="non_heap",Eae="jvm.thread.daemon",Sae="jvm.thread.state",Aae="blocked",yae="new",bae="runnable",Rae="terminated",Iae="timed_waiting",Oae="waiting",Cae="network.local.address",Nae="network.local.port",py="network.peer.address",fy="network.peer.port",xae="network.protocol.name",my="network.protocol.version",_y="network.transport",Pae="pipe",Mae="quic",vae="tcp",kae="udp",Lae="unix",wae="network.type",Dae="ipv4",Uae="ipv6",Bae="otel.scope.name",Fae="otel.scope.version",Gae="otel.status_code",jae="ERROR",Hae="OK",Vae="otel.status_description",hy="server.address",gy="server.port",qae="service.instance.id",Ty="service.name",$ae="service.namespace",Ey="service.version",zae="signalr.connection.status",Yae="app_shutdown",Wae="normal_closure",Kae="timeout",Qae="signalr.transport",Jae="long_polling",Xae="server_sent_events",Zae="web_sockets",eue="telemetry.sdk.language",tue="cpp",nue="dotnet",rue="erlang",oue="go",sue="java",iue="nodejs",aue="php",uue="python",cue="ruby",lue="rust",due="swift",pue="webjs",fue="telemetry.sdk.name",mue="telemetry.sdk.version",_ue="url.fragment",Fs="url.full",hue="url.path",gue="url.query",Tue="url.scheme",Sy="user_agent.original"});var Eue,Sue,Aue,yue,bue,Rue,Iue,Oue,Cue,Nue,xue,Pue,Mue,vue,kue,Lue,wue,Due,Uue,Bue,Fue,Gue,jue,Hue,Vue,que,$ue,zue,Yue,Wue,Kue,Que,Jue,Xue,Zue,ece,tce,nce,rce,oce,sce,ice,ace,uce,cce,lce,dce,pce,fce,mce,_ce,HU=K(()=>{Eue="aspnetcore.diagnostics.exceptions",Sue="aspnetcore.rate_limiting.active_request_leases",Aue="aspnetcore.rate_limiting.queued_requests",yue="aspnetcore.rate_limiting.request.time_in_queue",bue="aspnetcore.rate_limiting.request_lease.duration",Rue="aspnetcore.rate_limiting.requests",Iue="aspnetcore.routing.match_attempts",Oue="db.client.operation.duration",Cue="dotnet.assembly.count",Nue="dotnet.exceptions",xue="dotnet.gc.collections",Pue="dotnet.gc.heap.total_allocated",Mue="dotnet.gc.last_collection.heap.fragmentation.size",vue="dotnet.gc.last_collection.heap.size",kue="dotnet.gc.last_collection.memory.committed_size",Lue="dotnet.gc.pause.time",wue="dotnet.jit.compilation.time",Due="dotnet.jit.compiled_il.size",Uue="dotnet.jit.compiled_methods",Bue="dotnet.monitor.lock_contentions",Fue="dotnet.process.cpu.count",Gue="dotnet.process.cpu.time",jue="dotnet.process.memory.working_set",Hue="dotnet.thread_pool.queue.length",Vue="dotnet.thread_pool.thread.count",que="dotnet.thread_pool.work_item.count",$ue="dotnet.timer.count",zue="http.client.request.duration",Yue="http.server.request.duration",Wue="jvm.class.count",Kue="jvm.class.loaded",Que="jvm.class.unloaded",Jue="jvm.cpu.count",Xue="jvm.cpu.recent_utilization",Zue="jvm.cpu.time",ece="jvm.gc.duration",tce="jvm.memory.committed",nce="jvm.memory.limit",rce="jvm.memory.used",oce="jvm.memory.used_after_last_gc",sce="jvm.thread.count",ice="kestrel.active_connections",ace="kestrel.active_tls_handshakes",uce="kestrel.connection.duration",cce="kestrel.queued_connections",lce="kestrel.queued_requests",dce="kestrel.rejected_connections",pce="kestrel.tls_handshake.duration",fce="kestrel.upgraded_connections",mce="signalr.server.active_connections",_ce="signalr.server.connection.duration"});var hce,VU=K(()=>{hce="exception"});var Ie={};ea(Ie,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>die,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>pie,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>fie,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>mie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Tie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>Eie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>Sie,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>Aie,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>Iie,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Oie,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>lie,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>_ie,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>hie,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>gie,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>yie,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>bie,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Rie,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>Cie,ATTR_CLIENT_ADDRESS:()=>Nie,ATTR_CLIENT_PORT:()=>xie,ATTR_CODE_COLUMN_NUMBER:()=>Pie,ATTR_CODE_FILE_PATH:()=>Mie,ATTR_CODE_FUNCTION_NAME:()=>vie,ATTR_CODE_LINE_NUMBER:()=>kie,ATTR_CODE_STACKTRACE:()=>Lie,ATTR_DB_COLLECTION_NAME:()=>ay,ATTR_DB_NAMESPACE:()=>uy,ATTR_DB_OPERATION_BATCH_SIZE:()=>wie,ATTR_DB_OPERATION_NAME:()=>Hu,ATTR_DB_QUERY_SUMMARY:()=>Die,ATTR_DB_QUERY_TEXT:()=>cy,ATTR_DB_RESPONSE_STATUS_CODE:()=>ly,ATTR_DB_STORED_PROCEDURE_NAME:()=>Uie,ATTR_DB_SYSTEM_NAME:()=>aa,ATTR_DOTNET_GC_HEAP_GENERATION:()=>Hie,ATTR_ERROR_TYPE:()=>dy,ATTR_EXCEPTION_ESCAPED:()=>Kie,ATTR_EXCEPTION_MESSAGE:()=>Qie,ATTR_EXCEPTION_STACKTRACE:()=>Jie,ATTR_EXCEPTION_TYPE:()=>Xie,ATTR_HTTP_REQUEST_HEADER:()=>Zie,ATTR_HTTP_REQUEST_METHOD:()=>ua,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>lae,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>dae,ATTR_HTTP_RESPONSE_HEADER:()=>pae,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>es,ATTR_HTTP_ROUTE:()=>ts,ATTR_JVM_GC_ACTION:()=>fae,ATTR_JVM_GC_NAME:()=>mae,ATTR_JVM_MEMORY_POOL_NAME:()=>_ae,ATTR_JVM_MEMORY_TYPE:()=>hae,ATTR_JVM_THREAD_DAEMON:()=>Eae,ATTR_JVM_THREAD_STATE:()=>Sae,ATTR_NETWORK_LOCAL_ADDRESS:()=>Cae,ATTR_NETWORK_LOCAL_PORT:()=>Nae,ATTR_NETWORK_PEER_ADDRESS:()=>py,ATTR_NETWORK_PEER_PORT:()=>fy,ATTR_NETWORK_PROTOCOL_NAME:()=>xae,ATTR_NETWORK_PROTOCOL_VERSION:()=>my,ATTR_NETWORK_TRANSPORT:()=>_y,ATTR_NETWORK_TYPE:()=>wae,ATTR_OTEL_SCOPE_NAME:()=>Bae,ATTR_OTEL_SCOPE_VERSION:()=>Fae,ATTR_OTEL_STATUS_CODE:()=>Gae,ATTR_OTEL_STATUS_DESCRIPTION:()=>Vae,ATTR_SERVER_ADDRESS:()=>hy,ATTR_SERVER_PORT:()=>gy,ATTR_SERVICE_INSTANCE_ID:()=>qae,ATTR_SERVICE_NAME:()=>Ty,ATTR_SERVICE_NAMESPACE:()=>$ae,ATTR_SERVICE_VERSION:()=>Ey,ATTR_SIGNALR_CONNECTION_STATUS:()=>zae,ATTR_SIGNALR_TRANSPORT:()=>Qae,ATTR_TELEMETRY_SDK_LANGUAGE:()=>eue,ATTR_TELEMETRY_SDK_NAME:()=>fue,ATTR_TELEMETRY_SDK_VERSION:()=>mue,ATTR_URL_FRAGMENT:()=>_ue,ATTR_URL_FULL:()=>Fs,ATTR_URL_PATH:()=>hue,ATTR_URL_QUERY:()=>gue,ATTR_URL_SCHEME:()=>Tue,ATTR_USER_AGENT_ORIGINAL:()=>Sy,AWSECSLAUNCHTYPEVALUES_EC2:()=>Pse,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Mse,AwsEcsLaunchtypeValues:()=>vse,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>pse,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>fse,CLOUDPLATFORMVALUES_AWS_EC2:()=>mse,CLOUDPLATFORMVALUES_AWS_ECS:()=>_se,CLOUDPLATFORMVALUES_AWS_EKS:()=>hse,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Tse,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>gse,CLOUDPLATFORMVALUES_AZURE_AKS:()=>Ase,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>bse,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Sse,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>yse,CLOUDPLATFORMVALUES_AZURE_VM:()=>Ese,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Nse,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Cse,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>Ise,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Rse,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Ose,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>ase,CLOUDPROVIDERVALUES_AWS:()=>use,CLOUDPROVIDERVALUES_AZURE:()=>cse,CLOUDPROVIDERVALUES_GCP:()=>lse,CloudPlatformValues:()=>xse,CloudProviderValues:()=>dse,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>zte,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>ene,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Yte,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>Zte,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Kte,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>nne,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>Qte,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>Wte,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>tne,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Xte,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Jte,DBSYSTEMVALUES_ADABAS:()=>_te,DBSYSTEMVALUES_CACHE:()=>mte,DBSYSTEMVALUES_CASSANDRA:()=>vte,DBSYSTEMVALUES_CLOUDSCAPE:()=>ite,DBSYSTEMVALUES_COCKROACHDB:()=>qte,DBSYSTEMVALUES_COLDFUSION:()=>Mte,DBSYSTEMVALUES_COSMOSDB:()=>Bte,DBSYSTEMVALUES_COUCHBASE:()=>Dte,DBSYSTEMVALUES_COUCHDB:()=>Ute,DBSYSTEMVALUES_DB2:()=>nte,DBSYSTEMVALUES_DERBY:()=>gte,DBSYSTEMVALUES_DYNAMODB:()=>Fte,DBSYSTEMVALUES_EDB:()=>fte,DBSYSTEMVALUES_ELASTICSEARCH:()=>Hte,DBSYSTEMVALUES_FILEMAKER:()=>Tte,DBSYSTEMVALUES_FIREBIRD:()=>hte,DBSYSTEMVALUES_FIRSTSQL:()=>pte,DBSYSTEMVALUES_GEODE:()=>jte,DBSYSTEMVALUES_H2:()=>Pte,DBSYSTEMVALUES_HANADB:()=>lte,DBSYSTEMVALUES_HBASE:()=>kte,DBSYSTEMVALUES_HIVE:()=>ste,DBSYSTEMVALUES_HSQLDB:()=>ate,DBSYSTEMVALUES_INFORMIX:()=>Ete,DBSYSTEMVALUES_INGRES:()=>dte,DBSYSTEMVALUES_INSTANTDB:()=>Ste,DBSYSTEMVALUES_INTERBASE:()=>Ate,DBSYSTEMVALUES_MARIADB:()=>yte,DBSYSTEMVALUES_MAXDB:()=>cte,DBSYSTEMVALUES_MEMCACHED:()=>Vte,DBSYSTEMVALUES_MONGODB:()=>Lte,DBSYSTEMVALUES_MSSQL:()=>Zee,DBSYSTEMVALUES_MYSQL:()=>ete,DBSYSTEMVALUES_NEO4J:()=>Gte,DBSYSTEMVALUES_NETEZZA:()=>bte,DBSYSTEMVALUES_ORACLE:()=>tte,DBSYSTEMVALUES_OTHER_SQL:()=>Xee,DBSYSTEMVALUES_PERVASIVE:()=>Rte,DBSYSTEMVALUES_POINTBASE:()=>Ite,DBSYSTEMVALUES_POSTGRESQL:()=>rte,DBSYSTEMVALUES_PROGRESS:()=>ute,DBSYSTEMVALUES_REDIS:()=>wte,DBSYSTEMVALUES_REDSHIFT:()=>ote,DBSYSTEMVALUES_SQLITE:()=>Ote,DBSYSTEMVALUES_SYBASE:()=>Cte,DBSYSTEMVALUES_TERADATA:()=>Nte,DBSYSTEMVALUES_VERTICA:()=>xte,DB_SYSTEM_NAME_VALUE_MARIADB:()=>Bie,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>Fie,DB_SYSTEM_NAME_VALUE_MYSQL:()=>Gie,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>jie,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>Vie,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>qie,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>$ie,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>zie,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>Yie,DbCassandraConsistencyLevelValues:()=>rne,DbSystemValues:()=>$te,ERROR_TYPE_VALUE_OTHER:()=>Wie,EVENT_EXCEPTION:()=>hce,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>pne,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>dne,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>lne,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>mne,FAASINVOKEDPROVIDERVALUES_AWS:()=>_ne,FAASINVOKEDPROVIDERVALUES_AZURE:()=>hne,FAASINVOKEDPROVIDERVALUES_GCP:()=>gne,FAASTRIGGERVALUES_DATASOURCE:()=>one,FAASTRIGGERVALUES_HTTP:()=>sne,FAASTRIGGERVALUES_OTHER:()=>une,FAASTRIGGERVALUES_PUBSUB:()=>ine,FAASTRIGGERVALUES_TIMER:()=>ane,FaasDocumentOperationValues:()=>fne,FaasInvokedProviderValues:()=>Tne,FaasTriggerValues:()=>cne,HOSTARCHVALUES_AMD64:()=>kse,HOSTARCHVALUES_ARM32:()=>Lse,HOSTARCHVALUES_ARM64:()=>wse,HOSTARCHVALUES_IA64:()=>Dse,HOSTARCHVALUES_PPC32:()=>Use,HOSTARCHVALUES_PPC64:()=>Bse,HOSTARCHVALUES_X86:()=>Fse,HTTPFLAVORVALUES_HTTP_1_0:()=>tre,HTTPFLAVORVALUES_HTTP_1_1:()=>nre,HTTPFLAVORVALUES_HTTP_2_0:()=>rre,HTTPFLAVORVALUES_QUIC:()=>sre,HTTPFLAVORVALUES_SPDY:()=>ore,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>tae,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>nae,HTTP_REQUEST_METHOD_VALUE_GET:()=>rae,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>oae,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>sae,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>eae,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>iae,HTTP_REQUEST_METHOD_VALUE_POST:()=>aae,HTTP_REQUEST_METHOD_VALUE_PUT:()=>uae,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>cae,HostArchValues:()=>Gse,HttpFlavorValues:()=>ire,JVM_MEMORY_TYPE_VALUE_HEAP:()=>gae,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>Tae,JVM_THREAD_STATE_VALUE_BLOCKED:()=>Aae,JVM_THREAD_STATE_VALUE_NEW:()=>yae,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>bae,JVM_THREAD_STATE_VALUE_TERMINATED:()=>Rae,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>Iae,JVM_THREAD_STATE_VALUE_WAITING:()=>Oae,MESSAGETYPEVALUES_RECEIVED:()=>vre,MESSAGETYPEVALUES_SENT:()=>Mre,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>are,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>ure,MESSAGINGOPERATIONVALUES_PROCESS:()=>dre,MESSAGINGOPERATIONVALUES_RECEIVE:()=>lre,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>Eue,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>Sue,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>Aue,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>Rue,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>bue,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>yue,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>Iue,METRIC_DB_CLIENT_OPERATION_DURATION:()=>Oue,METRIC_DOTNET_ASSEMBLY_COUNT:()=>Cue,METRIC_DOTNET_EXCEPTIONS:()=>Nue,METRIC_DOTNET_GC_COLLECTIONS:()=>xue,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>Pue,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>Mue,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>vue,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>kue,METRIC_DOTNET_GC_PAUSE_TIME:()=>Lue,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>wue,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>Due,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>Uue,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>Bue,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>Fue,METRIC_DOTNET_PROCESS_CPU_TIME:()=>Gue,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>jue,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>Hue,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>Vue,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>que,METRIC_DOTNET_TIMER_COUNT:()=>$ue,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>zue,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>Yue,METRIC_JVM_CLASS_COUNT:()=>Wue,METRIC_JVM_CLASS_LOADED:()=>Kue,METRIC_JVM_CLASS_UNLOADED:()=>Que,METRIC_JVM_CPU_COUNT:()=>Jue,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>Xue,METRIC_JVM_CPU_TIME:()=>Zue,METRIC_JVM_GC_DURATION:()=>ece,METRIC_JVM_MEMORY_COMMITTED:()=>tce,METRIC_JVM_MEMORY_LIMIT:()=>nce,METRIC_JVM_MEMORY_USED:()=>rce,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>oce,METRIC_JVM_THREAD_COUNT:()=>sce,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>ice,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>ace,METRIC_KESTREL_CONNECTION_DURATION:()=>uce,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>cce,METRIC_KESTREL_QUEUED_REQUESTS:()=>lce,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>dce,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>pce,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>fce,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>mce,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>_ce,MessageTypeValues:()=>kre,MessagingDestinationKindValues:()=>cre,MessagingOperationValues:()=>pre,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Dne,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Fne,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Lne,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>zne,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Une,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Bne,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>qne,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>kne,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Wne,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Gne,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Hne,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Yne,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>jne,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Vne,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Qne,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>$ne,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Zne,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Jne,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Xne,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Kne,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>wne,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>xne,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Pne,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Mne,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Cne,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Nne,NETTRANSPORTVALUES_INPROC:()=>Rne,NETTRANSPORTVALUES_IP:()=>Ane,NETTRANSPORTVALUES_IP_TCP:()=>Ene,NETTRANSPORTVALUES_IP_UDP:()=>Sne,NETTRANSPORTVALUES_OTHER:()=>Ine,NETTRANSPORTVALUES_PIPE:()=>bne,NETTRANSPORTVALUES_UNIX:()=>yne,NETWORK_TRANSPORT_VALUE_PIPE:()=>Pae,NETWORK_TRANSPORT_VALUE_QUIC:()=>Mae,NETWORK_TRANSPORT_VALUE_TCP:()=>vae,NETWORK_TRANSPORT_VALUE_UDP:()=>kae,NETWORK_TRANSPORT_VALUE_UNIX:()=>Lae,NETWORK_TYPE_VALUE_IPV4:()=>Dae,NETWORK_TYPE_VALUE_IPV6:()=>Uae,NetHostConnectionSubtypeValues:()=>ere,NetHostConnectionTypeValues:()=>vne,NetTransportValues:()=>One,OSTYPEVALUES_AIX:()=>Kse,OSTYPEVALUES_DARWIN:()=>Vse,OSTYPEVALUES_DRAGONFLYBSD:()=>Yse,OSTYPEVALUES_FREEBSD:()=>qse,OSTYPEVALUES_HPUX:()=>Wse,OSTYPEVALUES_LINUX:()=>Hse,OSTYPEVALUES_NETBSD:()=>$se,OSTYPEVALUES_OPENBSD:()=>zse,OSTYPEVALUES_SOLARIS:()=>Qse,OSTYPEVALUES_WINDOWS:()=>jse,OSTYPEVALUES_Z_OS:()=>Jse,OTEL_STATUS_CODE_VALUE_ERROR:()=>jae,OTEL_STATUS_CODE_VALUE_OK:()=>Hae,OsTypeValues:()=>Xse,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>bre,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Ere,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>mre,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Nre,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>gre,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>yre,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>Ore,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>hre,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Tre,RPCGRPCSTATUSCODEVALUES_OK:()=>fre,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>Rre,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>Sre,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>Are,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>xre,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Cre,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Ire,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>_re,RpcGrpcStatusCodeValues:()=>Pre,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>cee,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Aee,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>iee,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>nee,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Eee,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>mee,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>pee,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>yee,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>lee,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>ree,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>uee,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>fee,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>aee,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>oee,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>see,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>See,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>hee,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>gee,SEMATTRS_AWS_DYNAMODB_SELECT:()=>dee,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>_ee,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>tee,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Tee,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>YX,SEMATTRS_CODE_FILEPATH:()=>$Z,SEMATTRS_CODE_FUNCTION:()=>VZ,SEMATTRS_CODE_LINENO:()=>zZ,SEMATTRS_CODE_NAMESPACE:()=>qZ,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>nZ,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>aZ,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>iZ,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>oZ,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>eZ,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>tZ,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>sZ,SEMATTRS_DB_CASSANDRA_TABLE:()=>rZ,SEMATTRS_DB_CONNECTION_STRING:()=>WX,SEMATTRS_DB_HBASE_NAMESPACE:()=>uZ,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>QX,SEMATTRS_DB_MONGODB_COLLECTION:()=>lZ,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>ZX,SEMATTRS_DB_NAME:()=>JX,SEMATTRS_DB_OPERATION:()=>XX,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>cZ,SEMATTRS_DB_SQL_TABLE:()=>dZ,SEMATTRS_DB_STATEMENT:()=>WA,SEMATTRS_DB_SYSTEM:()=>YA,SEMATTRS_DB_USER:()=>KX,SEMATTRS_ENDUSER_ID:()=>BZ,SEMATTRS_ENDUSER_ROLE:()=>FZ,SEMATTRS_ENDUSER_SCOPE:()=>GZ,SEMATTRS_EXCEPTION_ESCAPED:()=>_Z,SEMATTRS_EXCEPTION_MESSAGE:()=>fZ,SEMATTRS_EXCEPTION_STACKTRACE:()=>mZ,SEMATTRS_EXCEPTION_TYPE:()=>pZ,SEMATTRS_FAAS_COLDSTART:()=>bZ,SEMATTRS_FAAS_CRON:()=>yZ,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>gZ,SEMATTRS_FAAS_DOCUMENT_NAME:()=>SZ,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>TZ,SEMATTRS_FAAS_DOCUMENT_TIME:()=>EZ,SEMATTRS_FAAS_EXECUTION:()=>hZ,SEMATTRS_FAAS_INVOKED_NAME:()=>RZ,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>IZ,SEMATTRS_FAAS_INVOKED_REGION:()=>OZ,SEMATTRS_FAAS_TIME:()=>AZ,SEMATTRS_FAAS_TRIGGER:()=>KA,SEMATTRS_HTTP_CLIENT_IP:()=>eee,SEMATTRS_HTTP_FLAVOR:()=>KZ,SEMATTRS_HTTP_HOST:()=>YZ,SEMATTRS_HTTP_METHOD:()=>kd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>JZ,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>XZ,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>ey,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>ty,SEMATTRS_HTTP_ROUTE:()=>ny,SEMATTRS_HTTP_SCHEME:()=>WZ,SEMATTRS_HTTP_SERVER_NAME:()=>ZZ,SEMATTRS_HTTP_STATUS_CODE:()=>ia,SEMATTRS_HTTP_TARGET:()=>ZA,SEMATTRS_HTTP_URL:()=>ju,SEMATTRS_HTTP_USER_AGENT:()=>QZ,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>Kee,SEMATTRS_MESSAGE_ID:()=>Wee,SEMATTRS_MESSAGE_TYPE:()=>Yee,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>Qee,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Lee,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Pee,SEMATTRS_MESSAGING_DESTINATION:()=>bee,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>Ree,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Bee,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Uee,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Dee,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>Fee,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Gee,SEMATTRS_MESSAGING_MESSAGE_ID:()=>xee,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>vee,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Mee,SEMATTRS_MESSAGING_OPERATION:()=>kee,SEMATTRS_MESSAGING_PROTOCOL:()=>Oee,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Cee,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>wee,SEMATTRS_MESSAGING_SYSTEM:()=>ry,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Iee,SEMATTRS_MESSAGING_URL:()=>Nee,SEMATTRS_NET_HOST_CARRIER_ICC:()=>DZ,SEMATTRS_NET_HOST_CARRIER_MCC:()=>LZ,SEMATTRS_NET_HOST_CARRIER_MNC:()=>wZ,SEMATTRS_NET_HOST_CARRIER_NAME:()=>kZ,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>vZ,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>MZ,SEMATTRS_NET_HOST_IP:()=>JA,SEMATTRS_NET_HOST_NAME:()=>PZ,SEMATTRS_NET_HOST_PORT:()=>XA,SEMATTRS_NET_PEER_IP:()=>QA,SEMATTRS_NET_PEER_NAME:()=>xZ,SEMATTRS_NET_PEER_PORT:()=>NZ,SEMATTRS_NET_TRANSPORT:()=>CZ,SEMATTRS_PEER_SERVICE:()=>UZ,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>sy,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>$ee,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>zee,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>qee,SEMATTRS_RPC_JSONRPC_VERSION:()=>Vee,SEMATTRS_RPC_METHOD:()=>Hee,SEMATTRS_RPC_SERVICE:()=>oy,SEMATTRS_RPC_SYSTEM:()=>jee,SEMATTRS_THREAD_ID:()=>jZ,SEMATTRS_THREAD_NAME:()=>HZ,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Gre,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Fre,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>jre,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Hre,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Vre,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>qre,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>$re,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Yre,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>zre,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>Kre,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Wre,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>wre,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>Ure,SEMRESATTRS_CLOUD_PLATFORM:()=>Bre,SEMRESATTRS_CLOUD_PROVIDER:()=>Lre,SEMRESATTRS_CLOUD_REGION:()=>Dre,SEMRESATTRS_CONTAINER_ID:()=>Jre,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>Zre,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>eoe,SEMRESATTRS_CONTAINER_NAME:()=>Qre,SEMRESATTRS_CONTAINER_RUNTIME:()=>Xre,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>toe,SEMRESATTRS_DEVICE_ID:()=>noe,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>roe,SEMRESATTRS_DEVICE_MODEL_NAME:()=>ooe,SEMRESATTRS_FAAS_ID:()=>ioe,SEMRESATTRS_FAAS_INSTANCE:()=>uoe,SEMRESATTRS_FAAS_MAX_MEMORY:()=>coe,SEMRESATTRS_FAAS_NAME:()=>soe,SEMRESATTRS_FAAS_VERSION:()=>aoe,SEMRESATTRS_HOST_ARCH:()=>foe,SEMRESATTRS_HOST_ID:()=>loe,SEMRESATTRS_HOST_IMAGE_ID:()=>_oe,SEMRESATTRS_HOST_IMAGE_NAME:()=>moe,SEMRESATTRS_HOST_IMAGE_VERSION:()=>hoe,SEMRESATTRS_HOST_NAME:()=>doe,SEMRESATTRS_HOST_TYPE:()=>poe,SEMRESATTRS_K8S_CLUSTER_NAME:()=>goe,SEMRESATTRS_K8S_CONTAINER_NAME:()=>boe,SEMRESATTRS_K8S_CRONJOB_NAME:()=>woe,SEMRESATTRS_K8S_CRONJOB_UID:()=>Loe,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Moe,SEMRESATTRS_K8S_DAEMONSET_UID:()=>Poe,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>Coe,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>Ooe,SEMRESATTRS_K8S_JOB_NAME:()=>koe,SEMRESATTRS_K8S_JOB_UID:()=>voe,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Soe,SEMRESATTRS_K8S_NODE_NAME:()=>Toe,SEMRESATTRS_K8S_NODE_UID:()=>Eoe,SEMRESATTRS_K8S_POD_NAME:()=>yoe,SEMRESATTRS_K8S_POD_UID:()=>Aoe,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Ioe,SEMRESATTRS_K8S_REPLICASET_UID:()=>Roe,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>xoe,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Noe,SEMRESATTRS_OS_DESCRIPTION:()=>Uoe,SEMRESATTRS_OS_NAME:()=>Boe,SEMRESATTRS_OS_TYPE:()=>Doe,SEMRESATTRS_OS_VERSION:()=>Foe,SEMRESATTRS_PROCESS_COMMAND:()=>Voe,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>$oe,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>qoe,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>joe,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Hoe,SEMRESATTRS_PROCESS_OWNER:()=>zoe,SEMRESATTRS_PROCESS_PID:()=>Goe,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Koe,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Yoe,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Woe,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Joe,SEMRESATTRS_SERVICE_NAME:()=>Qoe,SEMRESATTRS_SERVICE_NAMESPACE:()=>iy,SEMRESATTRS_SERVICE_VERSION:()=>Xoe,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>nse,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>ese,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Zoe,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>tse,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>sse,SEMRESATTRS_WEBENGINE_NAME:()=>rse,SEMRESATTRS_WEBENGINE_VERSION:()=>ose,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>Yae,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Wae,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>Kae,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>Jae,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Xae,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>Zae,SemanticAttributes:()=>Jee,SemanticResourceAttributes:()=>ise,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>Zse,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>eie,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>tie,TELEMETRYSDKLANGUAGEVALUES_GO:()=>nie,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>rie,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>oie,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>sie,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>iie,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>aie,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>uie,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>tue,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>nue,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>rue,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>oue,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>sue,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>iue,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>aue,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>uue,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>cue,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>lue,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>due,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>pue,TelemetrySdkLanguageValues:()=>cie});var de=K(()=>{mD();GU();jU();HU();VU()});var qU=T(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.ATTR_PROCESS_RUNTIME_NAME=void 0;Zm.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var $U=T(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.SDK_INFO=void 0;var gce=bM(),e_=(de(),N(Ie)),Tce=qU();t_.SDK_INFO={[e_.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[Tce.ATTR_PROCESS_RUNTIME_NAME]:"node",[e_.ATTR_TELEMETRY_SDK_LANGUAGE]:e_.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[e_.ATTR_TELEMETRY_SDK_VERSION]:gce.VERSION}});var zU=T(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.otperformance=tn.SDK_INFO=tn._globalThis=tn.getStringListFromEnv=tn.getNumberFromEnv=tn.getBooleanFromEnv=tn.getStringFromEnv=void 0;var n_=AM();Object.defineProperty(tn,"getStringFromEnv",{enumerable:!0,get:function(){return n_.getStringFromEnv}});Object.defineProperty(tn,"getBooleanFromEnv",{enumerable:!0,get:function(){return n_.getBooleanFromEnv}});Object.defineProperty(tn,"getNumberFromEnv",{enumerable:!0,get:function(){return n_.getNumberFromEnv}});Object.defineProperty(tn,"getStringListFromEnv",{enumerable:!0,get:function(){return n_.getStringListFromEnv}});var Ece=yM();Object.defineProperty(tn,"_globalThis",{enumerable:!0,get:function(){return Ece._globalThis}});var Sce=$U();Object.defineProperty(tn,"SDK_INFO",{enumerable:!0,get:function(){return Sce.SDK_INFO}});tn.otperformance=performance});var Ay=T(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.getStringListFromEnv=nn.getNumberFromEnv=nn.getStringFromEnv=nn.getBooleanFromEnv=nn.otperformance=nn._globalThis=nn.SDK_INFO=void 0;var ca=zU();Object.defineProperty(nn,"SDK_INFO",{enumerable:!0,get:function(){return ca.SDK_INFO}});Object.defineProperty(nn,"_globalThis",{enumerable:!0,get:function(){return ca._globalThis}});Object.defineProperty(nn,"otperformance",{enumerable:!0,get:function(){return ca.otperformance}});Object.defineProperty(nn,"getBooleanFromEnv",{enumerable:!0,get:function(){return ca.getBooleanFromEnv}});Object.defineProperty(nn,"getStringFromEnv",{enumerable:!0,get:function(){return ca.getStringFromEnv}});Object.defineProperty(nn,"getNumberFromEnv",{enumerable:!0,get:function(){return ca.getNumberFromEnv}});Object.defineProperty(nn,"getStringListFromEnv",{enumerable:!0,get:function(){return ca.getStringListFromEnv}})});var QU=T(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.addHrTimes=Me.isTimeInput=Me.isTimeInputHrTime=Me.hrTimeToMicroseconds=Me.hrTimeToMilliseconds=Me.hrTimeToNanoseconds=Me.hrTimeToTimeStamp=Me.hrTimeDuration=Me.timeInputToHrTime=Me.hrTime=Me.getTimeOrigin=Me.millisToHrTime=void 0;var r_=Ay(),YU=9,Ace=6,yce=Math.pow(10,Ace),o_=Math.pow(10,YU);function Ld(t){let e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*yce);return[n,r]}Me.millisToHrTime=Ld;function bce(){return r_.otperformance.timeOrigin}Me.getTimeOrigin=bce;function WU(t){let e=Ld(r_.otperformance.timeOrigin),n=Ld(typeof t=="number"?t:r_.otperformance.now());return KU(e,n)}Me.hrTime=WU;function Rce(t){if(yy(t))return t;if(typeof t=="number")return t<r_.otperformance.timeOrigin?WU(t):Ld(t);if(t instanceof Date)return Ld(t.getTime());throw TypeError("Invalid input type")}Me.timeInputToHrTime=Rce;function Ice(t,e){let n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=o_),[n,r]}Me.hrTimeDuration=Ice;function Oce(t){let e=YU,n=`${"0".repeat(e)}${t[1]}Z`,r=n.substring(n.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",r)}Me.hrTimeToTimeStamp=Oce;function Cce(t){return t[0]*o_+t[1]}Me.hrTimeToNanoseconds=Cce;function Nce(t){return t[0]*1e3+t[1]/1e6}Me.hrTimeToMilliseconds=Nce;function xce(t){return t[0]*1e6+t[1]/1e3}Me.hrTimeToMicroseconds=xce;function yy(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Me.isTimeInputHrTime=yy;function Pce(t){return yy(t)||typeof t=="number"||t instanceof Date}Me.isTimeInput=Pce;function KU(t,e){let n=[t[0]+e[0],t[1]+e[1]];return n[1]>=o_&&(n[1]-=o_,n[0]+=1),n}Me.addHrTimes=KU});var JU=T(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.unrefTimer=void 0;function Mce(t){typeof t!="number"&&t.unref()}s_.unrefTimer=Mce});var XU=T(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.ExportResultCode=void 0;var vce;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(vce=wd.ExportResultCode||(wd.ExportResultCode={}))});var eB=T(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.CompositePropagator=void 0;var ZU=(P(),N(L)),by=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(e,n,r){for(let o of this._propagators)try{o.inject(e,n,r)}catch(s){ZU.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${s.message}`)}}extract(e,n,r){return this._propagators.reduce((o,s)=>{try{return s.extract(o,n,r)}catch(i){ZU.diag.warn(`Failed to extract with ${s.constructor.name}. Err: ${i.message}`)}return o},e)}fields(){return this._fields.slice()}};i_.CompositePropagator=by});var tB=T(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.validateValue=Vu.validateKey=void 0;var Ry="[_0-9a-z-*/]",kce=`[a-z]${Ry}{0,255}`,Lce=`[a-z0-9]${Ry}{0,240}@[a-z]${Ry}{0,13}`,wce=new RegExp(`^(?:${kce}|${Lce})$`),Dce=/^[ -~]{0,255}[!-~]$/,Uce=/,|=/;function Bce(t){return wce.test(t)}Vu.validateKey=Bce;function Fce(t){return Dce.test(t)&&!Uce.test(t)}Vu.validateValue=Fce});var Oy=T(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.TraceState=void 0;var nB=tB(),rB=32,Gce=512,oB=",",sB="=",Iy=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,n){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){let n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+sB+this.get(n)),e),[]).join(oB)}_parse(e){e.length>Gce||(this._internalState=e.split(oB).reverse().reduce((n,r)=>{let o=r.trim(),s=o.indexOf(sB);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,r.length);(0,nB.validateKey)(i)&&(0,nB.validateValue)(a)&&n.set(i,a)}return n},new Map),this._internalState.size>rB&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,rB))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};a_.TraceState=Iy});var aB=T(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.W3CTraceContextPropagator=rn.parseTraceParent=rn.TRACE_STATE_HEADER=rn.TRACE_PARENT_HEADER=void 0;var u_=(P(),N(L)),jce=vd(),Hce=Oy();rn.TRACE_PARENT_HEADER="traceparent";rn.TRACE_STATE_HEADER="tracestate";var Vce="00",qce="(?!ff)[\\da-f]{2}",$ce="(?![0]{32})[\\da-f]{32}",zce="(?![0]{16})[\\da-f]{16}",Yce="[\\da-f]{2}",Wce=new RegExp(`^\\s?(${qce})-(${$ce})-(${zce})-(${Yce})(-.*)?\\s?$`);function iB(t){let e=Wce.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}rn.parseTraceParent=iB;var Cy=class{inject(e,n,r){let o=u_.trace.getSpanContext(e);if(!o||(0,jce.isTracingSuppressed)(e)||!(0,u_.isSpanContextValid)(o))return;let s=`${Vce}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||u_.TraceFlags.NONE).toString(16)}`;r.set(n,rn.TRACE_PARENT_HEADER,s),o.traceState&&r.set(n,rn.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,n,r){let o=r.get(n,rn.TRACE_PARENT_HEADER);if(!o)return e;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return e;let i=iB(s);if(!i)return e;i.isRemote=!0;let a=r.get(n,rn.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;i.traceState=new Hce.TraceState(typeof u=="string"?u:void 0)}return u_.trace.setSpanContext(e,i)}fields(){return[rn.TRACE_PARENT_HEADER,rn.TRACE_STATE_HEADER]}};rn.W3CTraceContextPropagator=Cy});var uB=T(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.getRPCMetadata=Fr.deleteRPCMetadata=Fr.setRPCMetadata=Fr.RPCType=void 0;var Kce=(P(),N(L)),Ny=(0,Kce.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Qce;(function(t){t.HTTP="http"})(Qce=Fr.RPCType||(Fr.RPCType={}));function Jce(t,e){return t.setValue(Ny,e)}Fr.setRPCMetadata=Jce;function Xce(t){return t.deleteValue(Ny)}Fr.deleteRPCMetadata=Xce;function Zce(t){return t.getValue(Ny)}Fr.getRPCMetadata=Zce});var fB=T(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.isPlainObject=void 0;var ele="[object Object]",tle="[object Null]",nle="[object Undefined]",rle=Function.prototype,cB=rle.toString,ole=cB.call(Object),sle=Object.getPrototypeOf,lB=Object.prototype,dB=lB.hasOwnProperty,la=Symbol?Symbol.toStringTag:void 0,pB=lB.toString;function ile(t){if(!ale(t)||ule(t)!==ele)return!1;let e=sle(t);if(e===null)return!0;let n=dB.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&cB.call(n)===ole}c_.isPlainObject=ile;function ale(t){return t!=null&&typeof t=="object"}function ule(t){return t==null?t===void 0?nle:tle:la&&la in Object(t)?cle(t):lle(t)}function cle(t){let e=dB.call(t,la),n=t[la],r=!1;try{t[la]=void 0,r=!0}catch{}let o=pB.call(t);return r&&(e?t[la]=n:delete t[la]),o}function lle(t){return pB.call(t)}});var TB=T(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.merge=void 0;var mB=fB(),dle=20;function ple(...t){let e=t.shift(),n=new WeakMap;for(;t.length>0;)e=hB(e,t.shift(),0,n);return e}p_.merge=ple;function xy(t){return d_(t)?t.slice():t}function hB(t,e,n=0,r){let o;if(!(n>dle)){if(n++,l_(t)||l_(e)||gB(e))o=xy(e);else if(d_(t)){if(o=t.slice(),d_(e))for(let s=0,i=e.length;s<i;s++)o.push(xy(e[s]));else if(Dd(e)){let s=Object.keys(e);for(let i=0,a=s.length;i<a;i++){let u=s[i];o[u]=xy(e[u])}}}else if(Dd(t))if(Dd(e)){if(!fle(t,e))return e;o=Object.assign({},t);let s=Object.keys(e);for(let i=0,a=s.length;i<a;i++){let u=s[i],l=e[u];if(l_(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(_B(t,u,r)||_B(e,u,r))delete o[u];else{if(Dd(d)&&Dd(p)){let f=r.get(d)||[],m=r.get(p)||[];f.push({obj:t,key:u}),m.push({obj:e,key:u}),r.set(d,f),r.set(p,m)}o[u]=hB(o[u],l,n,r)}}}}else o=e;return o}}function _B(t,e,n){let r=n.get(t[e])||[];for(let o=0,s=r.length;o<s;o++){let i=r[o];if(i.key===e&&i.obj===t)return!0}return!1}function d_(t){return Array.isArray(t)}function gB(t){return typeof t=="function"}function Dd(t){return!l_(t)&&!d_(t)&&!gB(t)&&typeof t=="object"}function l_(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function fle(t,e){return!(!(0,mB.isPlainObject)(t)||!(0,mB.isPlainObject)(e))}});var EB=T(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.callWithTimeout=qu.TimeoutError=void 0;var f_=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};qu.TimeoutError=f_;function mle(t,e){let n,r=new Promise(function(s,i){n=setTimeout(function(){i(new f_("Operation timed out."))},e)});return Promise.race([t,r]).then(o=>(clearTimeout(n),o),o=>{throw clearTimeout(n),o})}qu.callWithTimeout=mle});var AB=T($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.isUrlIgnored=$u.urlMatches=void 0;function SB(t,e){return typeof e=="string"?t===e:!!t.match(e)}$u.urlMatches=SB;function _le(t,e){if(!e)return!1;for(let n of e)if(SB(t,n))return!0;return!1}$u.isUrlIgnored=_le});var yB=T(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.Deferred=void 0;var Py=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};m_.Deferred=Py});var bB=T(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.BindOnceFuture=void 0;var hle=yB(),My=class{_isCalled=!1;_deferred=new hle.Deferred;_callback;_that;constructor(e,n){this._callback=e,this._that=n}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(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}};__.BindOnceFuture=My});var IB=T(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.diagLogLevelFromString=void 0;var ns=(P(),N(L)),RB={ALL:ns.DiagLogLevel.ALL,VERBOSE:ns.DiagLogLevel.VERBOSE,DEBUG:ns.DiagLogLevel.DEBUG,INFO:ns.DiagLogLevel.INFO,WARN:ns.DiagLogLevel.WARN,ERROR:ns.DiagLogLevel.ERROR,NONE:ns.DiagLogLevel.NONE};function gle(t){if(t==null)return;let e=RB[t.toUpperCase()];return e??(ns.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(RB)}, using default`),ns.DiagLogLevel.INFO)}h_.diagLogLevelFromString=gle});var CB=T(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_._export=void 0;var OB=(P(),N(L)),Tle=vd();function Ele(t,e){return new Promise(n=>{OB.context.with((0,Tle.suppressTracing)(OB.context.active()),()=>{t.export(e,n)})})}g_._export=Ele});var Ae=T(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.internal=O.diagLogLevelFromString=O.BindOnceFuture=O.urlMatches=O.isUrlIgnored=O.callWithTimeout=O.TimeoutError=O.merge=O.TraceState=O.unsuppressTracing=O.suppressTracing=O.isTracingSuppressed=O.setRPCMetadata=O.getRPCMetadata=O.deleteRPCMetadata=O.RPCType=O.parseTraceParent=O.W3CTraceContextPropagator=O.TRACE_STATE_HEADER=O.TRACE_PARENT_HEADER=O.CompositePropagator=O.otperformance=O.getStringListFromEnv=O.getNumberFromEnv=O.getBooleanFromEnv=O.getStringFromEnv=O._globalThis=O.SDK_INFO=O.parseKeyPairsIntoRecord=O.ExportResultCode=O.unrefTimer=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.AnchoredClock=O.W3CBaggagePropagator=void 0;var Sle=cM();Object.defineProperty(O,"W3CBaggagePropagator",{enumerable:!0,get:function(){return Sle.W3CBaggagePropagator}});var Ale=lM();Object.defineProperty(O,"AnchoredClock",{enumerable:!0,get:function(){return Ale.AnchoredClock}});var NB=_M();Object.defineProperty(O,"isAttributeValue",{enumerable:!0,get:function(){return NB.isAttributeValue}});Object.defineProperty(O,"sanitizeAttributes",{enumerable:!0,get:function(){return NB.sanitizeAttributes}});var xB=gM();Object.defineProperty(O,"globalErrorHandler",{enumerable:!0,get:function(){return xB.globalErrorHandler}});Object.defineProperty(O,"setGlobalErrorHandler",{enumerable:!0,get:function(){return xB.setGlobalErrorHandler}});var yle=$A();Object.defineProperty(O,"loggingErrorHandler",{enumerable:!0,get:function(){return yle.loggingErrorHandler}});var pr=QU();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 ble=JU();Object.defineProperty(O,"unrefTimer",{enumerable:!0,get:function(){return ble.unrefTimer}});var Rle=XU();Object.defineProperty(O,"ExportResultCode",{enumerable:!0,get:function(){return Rle.ExportResultCode}});var Ile=GA();Object.defineProperty(O,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return Ile.parseKeyPairsIntoRecord}});var da=Ay();Object.defineProperty(O,"SDK_INFO",{enumerable:!0,get:function(){return da.SDK_INFO}});Object.defineProperty(O,"_globalThis",{enumerable:!0,get:function(){return da._globalThis}});Object.defineProperty(O,"getStringFromEnv",{enumerable:!0,get:function(){return da.getStringFromEnv}});Object.defineProperty(O,"getBooleanFromEnv",{enumerable:!0,get:function(){return da.getBooleanFromEnv}});Object.defineProperty(O,"getNumberFromEnv",{enumerable:!0,get:function(){return da.getNumberFromEnv}});Object.defineProperty(O,"getStringListFromEnv",{enumerable:!0,get:function(){return da.getStringListFromEnv}});Object.defineProperty(O,"otperformance",{enumerable:!0,get:function(){return da.otperformance}});var Ole=eB();Object.defineProperty(O,"CompositePropagator",{enumerable:!0,get:function(){return Ole.CompositePropagator}});var T_=aB();Object.defineProperty(O,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return T_.TRACE_PARENT_HEADER}});Object.defineProperty(O,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return T_.TRACE_STATE_HEADER}});Object.defineProperty(O,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return T_.W3CTraceContextPropagator}});Object.defineProperty(O,"parseTraceParent",{enumerable:!0,get:function(){return T_.parseTraceParent}});var E_=uB();Object.defineProperty(O,"RPCType",{enumerable:!0,get:function(){return E_.RPCType}});Object.defineProperty(O,"deleteRPCMetadata",{enumerable:!0,get:function(){return E_.deleteRPCMetadata}});Object.defineProperty(O,"getRPCMetadata",{enumerable:!0,get:function(){return E_.getRPCMetadata}});Object.defineProperty(O,"setRPCMetadata",{enumerable:!0,get:function(){return E_.setRPCMetadata}});var vy=vd();Object.defineProperty(O,"isTracingSuppressed",{enumerable:!0,get:function(){return vy.isTracingSuppressed}});Object.defineProperty(O,"suppressTracing",{enumerable:!0,get:function(){return vy.suppressTracing}});Object.defineProperty(O,"unsuppressTracing",{enumerable:!0,get:function(){return vy.unsuppressTracing}});var Cle=Oy();Object.defineProperty(O,"TraceState",{enumerable:!0,get:function(){return Cle.TraceState}});var Nle=TB();Object.defineProperty(O,"merge",{enumerable:!0,get:function(){return Nle.merge}});var PB=EB();Object.defineProperty(O,"TimeoutError",{enumerable:!0,get:function(){return PB.TimeoutError}});Object.defineProperty(O,"callWithTimeout",{enumerable:!0,get:function(){return PB.callWithTimeout}});var MB=AB();Object.defineProperty(O,"isUrlIgnored",{enumerable:!0,get:function(){return MB.isUrlIgnored}});Object.defineProperty(O,"urlMatches",{enumerable:!0,get:function(){return MB.urlMatches}});var xle=bB();Object.defineProperty(O,"BindOnceFuture",{enumerable:!0,get:function(){return xle.BindOnceFuture}});var Ple=IB();Object.defineProperty(O,"diagLogLevelFromString",{enumerable:!0,get:function(){return Ple.diagLogLevelFromString}});var Mle=CB();O.internal={_export:Mle._export}});var vB=T(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.VERSION=void 0;S_.VERSION="0.214.0"});var kB=T(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.SeverityNumber=void 0;var vle;(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"})(vle=Ud.SeverityNumber||(Ud.SeverityNumber={}))});var y_=T(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.NOOP_LOGGER=zu.NoopLogger=void 0;var A_=class{emit(e){}};zu.NoopLogger=A_;zu.NOOP_LOGGER=new A_});var LB=T(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.API_BACKWARDS_COMPATIBILITY_VERSION=mo.makeGetter=mo._global=mo.GLOBAL_LOGS_API_KEY=void 0;mo.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");mo._global=globalThis;function kle(t,e,n){return r=>r===t?e:n}mo.makeGetter=kle;mo.API_BACKWARDS_COMPATIBILITY_VERSION=1});var ky=T(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.NOOP_LOGGER_PROVIDER=Yu.NoopLoggerProvider=void 0;var Lle=y_(),b_=class{getLogger(e,n,r){return new Lle.NoopLogger}};Yu.NoopLoggerProvider=b_;Yu.NOOP_LOGGER_PROVIDER=new b_});var wB=T(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.ProxyLogger=void 0;var wle=y_(),Ly=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,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):wle.NOOP_LOGGER}};R_.ProxyLogger=Ly});var DB=T(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.ProxyLoggerProvider=void 0;var Dle=ky(),Ule=wB(),wy=class{getLogger(e,n,r){var o;return(o=this._getDelegateLogger(e,n,r))!==null&&o!==void 0?o:new Ule.ProxyLogger(this,e,n,r)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Dle.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,n,r)}};I_.ProxyLoggerProvider=wy});var BB=T(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.LogsAPI=void 0;var fr=LB(),Ble=ky(),UB=DB(),Dy=class t{constructor(){this._proxyLoggerProvider=new UB.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return fr._global[fr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(fr._global[fr.GLOBAL_LOGS_API_KEY]=(0,fr.makeGetter)(fr.API_BACKWARDS_COMPATIBILITY_VERSION,e,Ble.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=fr._global[fr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(fr._global,fr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete fr._global[fr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new UB.ProxyLoggerProvider}};O_.LogsAPI=Dy});var Uy=T(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.logs=_o.NoopLogger=_o.NOOP_LOGGER=_o.SeverityNumber=void 0;var Fle=kB();Object.defineProperty(_o,"SeverityNumber",{enumerable:!0,get:function(){return Fle.SeverityNumber}});var FB=y_();Object.defineProperty(_o,"NOOP_LOGGER",{enumerable:!0,get:function(){return FB.NOOP_LOGGER}});Object.defineProperty(_o,"NoopLogger",{enumerable:!0,get:function(){return FB.NoopLogger}});var Gle=BB();_o.logs=Gle.LogsAPI.getInstance()});var GB=T(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.disableInstrumentations=Wu.enableInstrumentations=void 0;function jle(t,e,n,r){for(let o=0,s=t.length;o<s;o++){let i=t[o];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}Wu.enableInstrumentations=jle;function Hle(t){t.forEach(e=>e.disable())}Wu.disableInstrumentations=Hle});var VB=T(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.registerInstrumentations=void 0;var jB=(P(),N(L)),Vle=Uy(),HB=GB();function qle(t){let e=t.tracerProvider||jB.trace.getTracerProvider(),n=t.meterProvider||jB.metrics.getMeterProvider(),r=t.loggerProvider||Vle.logs.getLoggerProvider(),o=t.instrumentations?.flat()??[];return(0,HB.enableInstrumentations)(o,e,n,r),()=>{(0,HB.disableInstrumentations)(o)}}C_.registerInstrumentations=qle});var XB=T(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.satisfies=void 0;var jy=(P(),N(L)),WB=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,$le=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,zle={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function Yle(t,e,n){if(!Wle(t))return jy.diag.error(`Invalid version: ${t}`),!1;if(!e)return!0;e=e.replace(/([<>=~^]+)\s+/g,"$1");let r=Xle(t);if(!r)return!1;let o=[],s=KB(r,e,o,n);return s&&!n?.includePrerelease?Qle(r,o):s}N_.satisfies=Yle;function Wle(t){return typeof t=="string"&&WB.test(t)}function KB(t,e,n,r){if(e.includes("||")){let o=e.trim().split("||");for(let s of o)if(By(t,s,n,r))return!0;return!1}else if(e.includes(" - "))e=Ede(e,r);else if(e.includes(" ")){let o=e.trim().replace(/\s{2,}/g," ").split(" ");for(let s of o)if(!By(t,s,n,r))return!1;return!0}return By(t,e,n,r)}function By(t,e,n,r){if(e=Jle(e,r),e.includes(" "))return KB(t,e,n,r);{let o=Zle(e);return n.push(o),Kle(t,o)}}function Kle(t,e){if(e.invalid)return!1;if(!e.version||Gy(e.version))return!0;let n=$B(t.versionSegments||[],e.versionSegments||[]);if(n===0){let r=t.prereleaseSegments||[],o=e.prereleaseSegments||[];!r.length&&!o.length?n=0:!r.length&&o.length?n=1:r.length&&!o.length?n=-1:n=$B(r,o)}return zle[e.op]?.includes(n)}function Qle(t,e){return t.prerelease?e.some(n=>n.prerelease&&n.version===t.version):!0}function Jle(t,e){return t=t.trim(),t=gde(t,e),t=hde(t),t=Tde(t,e),t=t.trim(),t}function hn(t){return!t||t.toLowerCase()==="x"||t==="*"}function Xle(t){let e=t.match(WB);if(!e){jy.diag.error(`Invalid version: ${t}`);return}let n=e.groups.version,r=e.groups.prerelease,o=e.groups.build,s=n.split("."),i=r?.split(".");return{op:void 0,version:n,versionSegments:s,versionSegmentCount:s.length,prerelease:r,prereleaseSegments:i,prereleaseSegmentCount:i?i.length:0,build:o}}function Zle(t){if(!t)return{};let e=t.match($le);if(!e)return jy.diag.error(`Invalid range: ${t}`),{invalid:!0};let n=e.groups.op,r=e.groups.version,o=e.groups.prerelease,s=e.groups.build,i=r.split("."),a=o?.split(".");return n==="=="&&(n="="),{op:n||"=",version:r,versionSegments:i,versionSegmentCount:i.length,prerelease:o,prereleaseSegments:a,prereleaseSegmentCount:a?a.length:0,build:s}}function Gy(t){return t==="*"||t==="x"||t==="X"}function qB(t){let e=parseInt(t,10);return isNaN(e)?t:e}function ede(t,e){if(typeof t==typeof e){if(typeof t=="number")return[t,e];if(typeof t=="string")return[t,e];throw new Error("Version segments can only be strings or numbers")}else return[String(t),String(e)]}function tde(t,e){if(Gy(t)||Gy(e))return 0;let[n,r]=ede(qB(t),qB(e));return n>r?1:n<r?-1:0}function $B(t,e){for(let n=0;n<Math.max(t.length,e.length);n++){let r=tde(t[n]||"0",e[n]||"0");if(r!==0)return r}return 0}var QB="[a-zA-Z0-9-]",JB="0|[1-9]\\d*",nde=`\\d*[a-zA-Z-]${QB}*`,rde="((?:<|>)?=?)",zB=`(?:${JB}|${nde})`,ode=`(?:-(${zB}(?:\\.${zB})*))`,YB=`${QB}+`,sde=`(?:\\+(${YB}(?:\\.${YB})*))`,Fy=`${JB}|x|X|\\*`,Bd=`[v=\\s]*(${Fy})(?:\\.(${Fy})(?:\\.(${Fy})(?:${ode})?${sde}?)?)?`,ide=`^${rde}\\s*${Bd}$`,ade=new RegExp(ide),ude=`^\\s*(${Bd})\\s+-\\s+(${Bd})\\s*$`,cde=new RegExp(ude),lde="(?:~>?)",dde=`^${lde}${Bd}$`,pde=new RegExp(dde),fde="(?:\\^)",mde=`^${fde}${Bd}$`,_de=new RegExp(mde);function hde(t){let e=pde;return t.replace(e,(n,r,o,s,i)=>{let a;return hn(r)?a="":hn(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:hn(s)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:i?a=`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:a=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,a})}function gde(t,e){let n=_de,r=e?.includePrerelease?"-0":"";return t.replace(n,(o,s,i,a,u)=>{let l;return hn(s)?l="":hn(i)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:hn(a)?s==="0"?l=`>=${s}.${i}.0${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${r} <${+s+1}.0.0-0`:u?s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${u} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${u} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${u} <${+s+1}.0.0-0`:s==="0"?i==="0"?l=`>=${s}.${i}.${a}${r} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`,l})}function Tde(t,e){let n=ade;return t.replace(n,(r,o,s,i,a,u)=>{let l=hn(s),d=l||hn(i),p=d||hn(a),f=p;return o==="="&&f&&(o=""),u=e?.includePrerelease?"-0":"",l?o===">"||o==="<"?r="<0.0.0-0":r="*":o&&f?(d&&(i=0),a=0,o===">"?(o=">=",d?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",d?s=+s+1:i=+i+1),o==="<"&&(u="-0"),r=`${o+s}.${i}.${a}${u}`):d?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${u} <${s}.${+i+1}.0-0`),r})}function Ede(t,e){let n=cde;return t.replace(n,(r,o,s,i,a,u,l,d,p,f,m,_)=>(hn(s)?o="":hn(i)?o=`>=${s}.0.0${e?.includePrerelease?"-0":""}`:hn(a)?o=`>=${s}.${i}.0${e?.includePrerelease?"-0":""}`:u?o=`>=${o}`:o=`>=${o}${e?.includePrerelease?"-0":""}`,hn(p)?d="":hn(f)?d=`<${+p+1}.0.0-0`:hn(m)?d=`<${p}.${+f+1}.0-0`:_?d=`<=${p}.${f}.${m}-${_}`:e?.includePrerelease?d=`<${p}.${f}.${+m+1}-0`:d=`<=${d}`,`${o} ${d}`.trim()))}});var Hy=T(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.massUnwrap=jt.unwrap=jt.massWrap=jt.wrap=void 0;var gn=console.error.bind(console);function Fd(t,e,n){let r=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}var Sde=(t,e,n)=>{if(!t||!t[e]){gn("no original function "+String(e)+" to wrap");return}if(!n){gn("no wrapper function"),gn(new Error().stack);return}let r=t[e];if(typeof r!="function"||typeof n!="function"){gn("original object and wrapper must be functions");return}let o=n(r,e);return Fd(o,"__original",r),Fd(o,"__unwrap",()=>{t[e]===o&&Fd(t,e,r)}),Fd(o,"__wrapped",!0),Fd(t,e,o),o};jt.wrap=Sde;var Ade=(t,e,n)=>{if(t)Array.isArray(t)||(t=[t]);else{gn("must provide one or more modules to patch"),gn(new Error().stack);return}if(!(e&&Array.isArray(e))){gn("must provide one or more functions to wrap on modules");return}t.forEach(r=>{e.forEach(o=>{(0,jt.wrap)(r,o,n)})})};jt.massWrap=Ade;var yde=(t,e)=>{if(!t||!t[e]){gn("no function to unwrap."),gn(new Error().stack);return}let n=t[e];if(!n.__unwrap)gn("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{n.__unwrap();return}};jt.unwrap=yde;var bde=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{gn("must provide one or more modules to patch"),gn(new Error().stack);return}if(!(e&&Array.isArray(e))){gn("must provide one or more functions to unwrap on modules");return}t.forEach(n=>{e.forEach(r=>{(0,jt.unwrap)(n,r)})})};jt.massUnwrap=bde;function Gd(t){t&&t.logger&&(typeof t.logger!="function"?gn("new logger isn't a function, not replacing"):gn=t.logger)}jt.default=Gd;Gd.wrap=jt.wrap;Gd.massWrap=jt.massWrap;Gd.unwrap=jt.unwrap;Gd.massUnwrap=jt.massUnwrap});var ZB=T(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.InstrumentationAbstract=void 0;var Vy=(P(),N(L)),Rde=Uy(),x_=Hy(),qy=class{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,n,r){this.instrumentationName=e,this.instrumentationVersion=n,this.setConfig(r),this._diag=Vy.diag.createComponentLogger({namespace:e}),this._tracer=Vy.trace.getTracer(e,n),this._meter=Vy.metrics.getMeter(e,n),this._logger=Rde.logs.getLogger(e,n),this._updateMetricInstruments()}_wrap=x_.wrap;_unwrap=x_.unwrap;_massWrap=x_.massWrap;_massUnwrap=x_.massUnwrap;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(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,n,r,o){if(e)try{e(r,o)}catch(s){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},s)}}};P_.InstrumentationAbstract=qy});var t3=T((h4e,e3)=>{var Ku=1e3,Qu=Ku*60,Ju=Qu*60,pa=Ju*24,Ide=pa*7,Ode=pa*365.25;e3.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return Cde(t);if(n==="number"&&isFinite(t))return e.long?xde(t):Nde(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Cde(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 n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*Ode;case"weeks":case"week":case"w":return n*Ide;case"days":case"day":case"d":return n*pa;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ju;case"minutes":case"minute":case"mins":case"min":case"m":return n*Qu;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ku;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function Nde(t){var e=Math.abs(t);return e>=pa?Math.round(t/pa)+"d":e>=Ju?Math.round(t/Ju)+"h":e>=Qu?Math.round(t/Qu)+"m":e>=Ku?Math.round(t/Ku)+"s":t+"ms"}function xde(t){var e=Math.abs(t);return e>=pa?M_(t,e,pa,"day"):e>=Ju?M_(t,e,Ju,"hour"):e>=Qu?M_(t,e,Qu,"minute"):e>=Ku?M_(t,e,Ku,"second"):t+" ms"}function M_(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var $y=T((g4e,n3)=>{function Pde(t){n.debug=n,n.default=n,n.coerce=u,n.disable=i,n.enable=o,n.enabled=a,n.humanize=t3(),n.destroy=l,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function e(d){let p=0;for(let f=0;f<d.length;f++)p=(p<<5)-p+d.charCodeAt(f),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=e;function n(d){let p,f=null,m,_;function h(...g){if(!h.enabled)return;let E=h,S=Number(new Date),b=S-(p||S);E.diff=b,E.prev=p,E.curr=S,p=S,g[0]=n.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let R=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(C,H)=>{if(C==="%%")return"%";R++;let _e=n.formatters[H];if(typeof _e=="function"){let De=g[R];C=_e.call(E,De),g.splice(R,1),R--}return C}),n.formatArgs.call(E,g),(E.log||n.log).apply(E,g)}return h.namespace=d,h.useColors=n.useColors(),h.color=n.selectColor(d),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(m!==n.namespaces&&(m=n.namespaces,_=n.enabled(d)),_),set:g=>{f=g}}),typeof n.init=="function"&&n.init(h),h}function r(d,p){let f=n(this.namespace+(typeof p>"u"?":":p)+d);return f.log=this.log,f}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let p=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of p)f[0]==="-"?n.skips.push(f.slice(1)):n.names.push(f)}function s(d,p){let f=0,m=0,_=-1,h=0;for(;f<d.length;)if(m<p.length&&(p[m]===d[f]||p[m]==="*"))p[m]==="*"?(_=m,h=f,m++):(f++,m++);else if(_!==-1)m=_+1,h++,f=h;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function i(){let d=[...n.names,...n.skips.map(p=>"-"+p)].join(",");return n.enable(""),d}function a(d){for(let p of n.skips)if(s(d,p))return!1;for(let p of n.names)if(s(d,p))return!0;return!1}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 n.enable(n.load()),n}n3.exports=Pde});var r3=T((Pn,v_)=>{Pn.formatArgs=vde;Pn.save=kde;Pn.load=Lde;Pn.useColors=Mde;Pn.storage=wde();Pn.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`."))}})();Pn.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 Mde(){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 vde(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+v_.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}Pn.log=console.debug||console.log||(()=>{});function kde(t){try{t?Pn.storage.setItem("debug",t):Pn.storage.removeItem("debug")}catch{}}function Lde(){let t;try{t=Pn.storage.getItem("debug")||Pn.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function wde(){try{return localStorage}catch{}}v_.exports=$y()(Pn);var{formatters:Dde}=v_.exports;Dde.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var s3=T((T4e,o3)=>{"use strict";o3.exports=(t,e=process.argv)=>{let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),o=e.indexOf("--");return r!==-1&&(o===-1||r<o)}});var u3=T((E4e,a3)=>{"use strict";var Ude=U("os"),i3=U("tty"),mr=s3(),{env:Ot}=process,Gs;mr("no-color")||mr("no-colors")||mr("color=false")||mr("color=never")?Gs=0:(mr("color")||mr("colors")||mr("color=true")||mr("color=always"))&&(Gs=1);"FORCE_COLOR"in Ot&&(Ot.FORCE_COLOR==="true"?Gs=1:Ot.FORCE_COLOR==="false"?Gs=0:Gs=Ot.FORCE_COLOR.length===0?1:Math.min(parseInt(Ot.FORCE_COLOR,10),3));function zy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Yy(t,e){if(Gs===0)return 0;if(mr("color=16m")||mr("color=full")||mr("color=truecolor"))return 3;if(mr("color=256"))return 2;if(t&&!e&&Gs===void 0)return 0;let n=Gs||0;if(Ot.TERM==="dumb")return n;if(process.platform==="win32"){let r=Ude.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Ot)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in Ot)||Ot.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Ot)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ot.TEAMCITY_VERSION)?1:0;if(Ot.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ot){let r=parseInt((Ot.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ot.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ot.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ot.TERM)||"COLORTERM"in Ot?1:n}function Bde(t){let e=Yy(t,t&&t.isTTY);return zy(e)}a3.exports={supportsColor:Bde,stdout:zy(Yy(!0,i3.isatty(1))),stderr:zy(Yy(!0,i3.isatty(2)))}});var l3=T((Ct,L_)=>{var Fde=U("tty"),k_=U("util");Ct.init=zde;Ct.log=Vde;Ct.formatArgs=jde;Ct.save=qde;Ct.load=$de;Ct.useColors=Gde;Ct.destroy=k_.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ct.colors=[6,2,3,4,5,1];try{let t=u3();t&&(t.stderr||t).level>=2&&(Ct.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{}Ct.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[n]=r,t},{});function Gde(){return"colors"in Ct.inspectOpts?!!Ct.inspectOpts.colors:Fde.isatty(process.stderr.fd)}function jde(t){let{namespace:e,useColors:n}=this;if(n){let r=this.color,o="\x1B[3"+(r<8?r:"8;5;"+r),s=` ${o};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
4
4
|
`).join(`
|
|
5
5
|
`+s),t.push(o+"m+"+L_.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Hde()+e+" "+t[0]}function Hde(){return Ct.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Vde(...t){return process.stderr.write(k_.formatWithOptions(Ct.inspectOpts,...t)+`
|
|
6
6
|
`)}function qde(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $de(){return process.env.DEBUG}function zde(t){t.inspectOpts={};let e=Object.keys(Ct.inspectOpts);for(let n=0;n<e.length;n++)t.inspectOpts[e[n]]=Ct.inspectOpts[e[n]]}L_.exports=$y()(Ct);var{formatters:c3}=L_.exports;c3.o=function(t){return this.inspectOpts.colors=this.useColors,k_.inspect(t,this.inspectOpts).split(`
|
|
7
|
-
`).map(e=>e.trim()).join(" ")};c3.O=function(t){return this.inspectOpts.colors=this.useColors,k_.inspect(t,this.inspectOpts)}});var d3=T((A4e,Wy)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Wy.exports=r3():Wy.exports=l3()});var w_=T((y4e,p3)=>{"use strict";var Ky=U("path").sep;p3.exports=function(t){var e=t.split(Ky),n=e.lastIndexOf("node_modules");if(n!==-1&&e[n+1]){for(var r=e[n+1][0]==="@",o=r?e[n+1]+"/"+e[n+2]:e[n+1],s=r?3:2,i="",a=n+s-1,u=0;u<=a;u++)u===a?i+=e[u]:i+=e[u]+Ky;for(var l="",d=e.length-1,p=n+s;p<=d;p++)p===d?l+=e[p]:l+=e[p]+Ky;return{name:o,basedir:i,path:l}}}});var fa=T((b4e,Xy)=>{"use strict";var Xu=U("path"),Gr=U("module"),et=d3()("require-in-the-middle"),Yde=w_();Xy.exports=jd;Xy.exports.Hook=jd;var Qy,D_;if(Gr.isBuiltin)D_=Gr.isBuiltin;else if(Gr.builtinModules)D_=t=>t.startsWith("node:")?!0:(Qy===void 0&&(Qy=new Set(Gr.builtinModules)),Qy.has(t));else throw new Error("'require-in-the-middle' requires Node.js >=v9.3.0 or >=v8.10.0");var Wde=/([/\\]index)?(\.js)?$/,Jy=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol("RitmExports")}has(e,n){if(this._localCache.has(e))return!0;if(n)return!1;{let r=U.cache[e];return!!(r&&this._kRitmExports in r)}}get(e,n){let r=this._localCache.get(e);if(r!==void 0)return r;if(!n){let o=U.cache[e];return o&&o[this._kRitmExports]}}set(e,n,r){r?this._localCache.set(e,n):e in U.cache?U.cache[e][this._kRitmExports]=n:(et('non-core module is unexpectedly not in require.cache: "%s"',e),this._localCache.set(e,n))}};function jd(t,e,n){if(!(this instanceof jd))return new jd(t,e,n);if(typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),typeof Gr._resolveFilename!="function"){console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!",typeof Gr._resolveFilename),console.error("Please report this error as an issue related to Node.js %s at https://github.com/nodejs/require-in-the-middle/issues",process.version);return}this._cache=new Jy,this._unhooked=!1,this._origRequire=Gr.prototype.require;let r=this,o=new Set,s=e?e.internals===!0:!1,i=Array.isArray(t);et("registering require hook"),this._require=Gr.prototype.require=function(u){return r._unhooked===!0?(et("ignoring require call - module is soft-unhooked"),r._origRequire.apply(this,arguments)):a.call(this,arguments,!1)},typeof process.getBuiltinModule=="function"&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(u){return r._unhooked===!0?(et("ignoring process.getBuiltinModule call - module is soft-unhooked"),r._origGetBuiltinModule.apply(this,arguments)):a.call(this,arguments,!0)});function a(u,l){let d=u[0],p=D_(d),f;if(p){if(f=d,d.startsWith("node:")){let S=d.slice(5);D_(S)&&(f=S)}}else{if(l)return et("call to process.getBuiltinModule with unknown built-in id"),r._origGetBuiltinModule.apply(this,u);try{f=Gr._resolveFilename(d,this)}catch(S){return et('Module._resolveFilename("%s") threw %j, calling original Module.require',d,S.message),r._origRequire.apply(this,u)}}let m,_;if(et("processing %s module require('%s'): %s",p===!0?"core":"non-core",d,f),r._cache.has(f,p)===!0)return et("returning already patched cached module: %s",f),r._cache.get(f,p);let h=o.has(f);h===!1&&o.add(f);let g=l?r._origGetBuiltinModule.apply(this,u):r._origRequire.apply(this,u);if(h===!0)return et("module is in the process of being patched already - ignoring: %s",f),g;if(o.delete(f),p===!0){if(i===!0&&t.includes(f)===!1)return et("ignoring core module not on whitelist: %s",f),g;m=f}else if(i===!0&&t.includes(f)){let S=Xu.parse(f);m=S.name,_=S.dir}else{let S=Yde(f);if(S===void 0)return et("could not parse filename: %s",f),g;m=S.name,_=S.basedir;let b=Kde(S);et("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)",m,d,b,_);let R=!1;if(i){if(!d.startsWith(".")&&t.includes(d)&&(m=d,R=!0),!t.includes(m)&&!t.includes(b))return g;t.includes(b)&&b!==m&&(m=b,R=!0)}if(!R){let I;try{I=U.resolve(m,{paths:[_]})}catch{return et("could not resolve module: %s",m),r._cache.set(f,g,p),g}if(I!==f)if(s===!0)m=m+Xu.sep+Xu.relative(_,f),et("preparing to process require of internal file: %s",m);else return et("ignoring require of non-main module file: %s",I),r._cache.set(f,g,p),g}}r._cache.set(f,g,p),et("calling require hook: %s",m);let E=n(g,m,_);return r._cache.set(f,E,p),et("returning module: %s",m),E}}jd.prototype.unhook=function(){this._unhooked=!0,this._require===Gr.prototype.require?(Gr.prototype.require=this._origRequire,et("require unhook successful")):et("require unhook unsuccessful"),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,et("process.getBuiltinModule unhook successful")):et("process.getBuiltinModule unhook unsuccessful"))};function Kde(t){let e=Xu.sep!=="/"?t.path.split(Xu.sep).join("/"):t.path;return Xu.posix.join(t.name,e).replace(Wde,"")}});var f3=T(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ModuleNameTrie=js.ModuleNameSeparator=void 0;js.ModuleNameSeparator="/";var U_=class{hooks=[];children=new Map},Zy=class{_trie=new U_;_counter=0;insert(e){let n=this._trie;for(let r of e.moduleName.split(js.ModuleNameSeparator)){let o=n.children.get(r);o||(o=new U_,n.children.set(r,o)),n=o}n.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:n,fullOnly:r}={}){let o=this._trie,s=[],i=!0;for(let a of e.split(js.ModuleNameSeparator)){let u=o.children.get(a);if(!u){i=!1;break}r||s.push(...u.hooks),o=u}return r&&i&&s.push(...o.hooks),s.length===0?[]:s.length===1?[s[0].hook]:(n&&s.sort((a,u)=>a.insertedId-u.insertedId),s.map(({hook:a})=>a))}};js.ModuleNameTrie=Zy});var _3=T(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0});B_.RequireInTheMiddleSingleton=void 0;var Qde=fa(),m3=U("path"),eb=f3(),Jde=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),tb=class t{_moduleNameTrie=new eb.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new Qde.Hook(null,{internals:!0},(e,n,r)=>{let o=Xde(n),s=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:r===void 0});for(let{onRequire:i}of s)e=i(e,n,r);return e})}register(e,n){let r={moduleName:e,onRequire:n};return this._moduleNameTrie.insert(r),r}static getInstance(){return Jde?new t:this._instance=this._instance??new t}};B_.RequireInTheMiddleSingleton=tb;function Xde(t){return m3.sep!==eb.ModuleNameSeparator?t.split(m3.sep).join(eb.ModuleNameSeparator):t}});var S3=T(Hd=>{var h3=[],nb=new WeakMap,g3=new WeakMap,T3=new Map,E3=[],Zde={set(t,e,n){let r=nb.get(t),o=r&&r[e];return typeof o=="function"?o(n):!0},get(t,e){if(e===Symbol.toStringTag)return"Module";let n=g3.get(t)[e];if(typeof n=="function")return n()},defineProperty(t,e,n){if(!("value"in n))throw new Error("Getters/setters are not supported for exports property descriptors.");let r=nb.get(t),o=r&&r[e];return typeof o=="function"?o(n.value):!0}};function epe(t,e,n,r,o){T3.set(t,o),nb.set(e,n),g3.set(e,r);let s=new Proxy(e,Zde);h3.forEach(i=>i(t,s,o)),E3.push([t,s,o])}Hd.register=epe;Hd.importHooks=h3;Hd.specifiers=T3;Hd.toHook=E3});var ib=T((N4e,ec)=>{var A3=U("path"),tpe=w_(),{fileURLToPath:npe}=U("url"),{MessageChannel:rpe}=U("worker_threads"),{isBuiltin:rb}=U("module");rb||(rb=()=>!0);var{importHooks:ob,specifiers:ope,toHook:spe}=S3();function y3(t){ob.push(t),spe.forEach(([e,n,r])=>t(e,n,r))}function b3(t){let e=ob.indexOf(t);e>-1&&ob.splice(e,1)}function Zu(t,e,n,r){let o=t(e,n,r);o&&o!==e&&"default"in e&&(e.default=o)}var sb;function ipe(){let{port1:t,port2:e}=new rpe,n=0,r;sb=a=>{n++,t.postMessage(a)},t.on("message",()=>{n--,r&&n<=0&&r()}).unref();function o(){let a=setInterval(()=>{},1e3),u=new Promise(l=>{r=l}).then(()=>{clearInterval(a)});return n===0&&r(),u}let s=e;return{registerOptions:{data:{addHookMessagePort:s,include:[]},transferList:[s]},addHookMessagePort:s,waitForAllMessagesAcknowledged:o}}function Vd(t,e,n){if(!(this instanceof Vd))return new Vd(t,e,n);typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null);let r=e?e.internals===!0:!1;sb&&Array.isArray(t)&&sb(t),this._iitmHook=(o,s,i)=>{let a=o,u=a.startsWith("node:"),l,d;if(u){let p=o.slice(5);rb(p)&&(o=p)}else if(a.startsWith("file://")){let p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{l=npe(o),o=l}catch{}if(Error.stackTraceLimit=p,l){let f=tpe(l);f&&(o=f.name,d=f.basedir)}}if(t)for(let p of t)if(l&&p===l)Zu(n,s,l,void 0);else if(p===o){if(!d)Zu(n,s,o,d);else if(d.endsWith(ope.get(a)))Zu(n,s,o,d);else if(r){let f=o+A3.sep+A3.relative(d,l);Zu(n,s,f,d)}}else p===i&&Zu(n,s,i,d);else Zu(n,s,o,d)},y3(this._iitmHook)}Vd.prototype.unhook=function(){b3(this._iitmHook)};ec.exports=Vd;ec.exports.Hook=Vd;ec.exports.addHook=y3;ec.exports.removeHook=b3;ec.exports.createAddHookMessageChannel=ipe});var ab=T(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.isWrapped=Hs.safeExecuteInTheMiddleAsync=Hs.safeExecuteInTheMiddle=void 0;function ape(t,e,n){let r,o;try{o=t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}Hs.safeExecuteInTheMiddle=ape;async function upe(t,e,n){let r,o;try{o=await t()}catch(s){r=s}finally{if(await e(r,o),r&&!n)throw r;return o}}Hs.safeExecuteInTheMiddleAsync=upe;function cpe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Hs.isWrapped=cpe});var O3=T(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.InstrumentationBase=void 0;var qd=U("path"),R3=U("util"),lpe=XB(),ub=Hy(),dpe=ZB(),ppe=_3(),fpe=ib(),$d=(P(),N(L)),mpe=fa(),_pe=U("fs"),hpe=ab(),cb=class extends dpe.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=ppe.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,n,r){super(e,n,r);let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_wrap=(e,n,r)=>{if((0,hpe.isWrapped)(e[n])&&this._unwrap(e,n),R3.types.isProxy(e)){let o=(0,ub.wrap)(Object.assign({},e),n,r);return Object.defineProperty(e,n,{value:o}),o}else return(0,ub.wrap)(e,n,r)};_unwrap=(e,n)=>R3.types.isProxy(e)?Object.defineProperty(e,n,{value:e[n]}):(0,ub.unwrap)(e,n);_massWrap=(e,n,r)=>{if(e)Array.isArray(e)||(e=[e]);else{$d.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){$d.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(o=>{n.forEach(s=>{this._wrap(o,s,r)})})};_massUnwrap=(e,n)=>{if(e)Array.isArray(e)||(e=[e]);else{$d.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){$d.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(r=>{n.forEach(o=>{this._unwrap(r,o)})})};_warnOnPreloadedModules(){let e=globalThis.require;!e?.resolve||!e?.cache||this._modules.forEach(n=>{let{name:r}=n;try{let o=e.resolve(r);e.cache[o]?.loaded&&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 n=(0,_pe.readFileSync)(qd.join(e,"package.json"),{encoding:"utf8"}),r=JSON.parse(n).version;return typeof r=="string"?r:void 0}catch{$d.diag.warn("Failed extracting version",e)}}_onRequire(e,n,r,o){if(!o)return typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(n)):n;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===r)return I3(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(n,e.moduleVersion)):n;let i=e.files??[],a=qd.normalize(r);return i.filter(l=>l.name===a&&I3(l.supportedVersions,s,e.includePrerelease)).reduce((l,d)=>(d.moduleExports=l,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:d.name,baseDir:o}),d.patch(l,e.moduleVersion)):l),n)}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 n of e.files)n.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.patch(n.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let n=(i,a,u)=>{if(!u&&qd.isAbsolute(a)){let l=qd.parse(a);a=l.name,u=l.dir}return this._onRequire(e,i,a,u)},r=(i,a,u)=>this._onRequire(e,i,a,u),o=qd.isAbsolute(e.name)?new mpe.Hook([e.name],{internals:!0},r):this._requireInTheMiddleSingleton.register(e.name,r);this._hooks.push(o);let s=new fpe.Hook([e.name],{internals:!0},n);this._hooks.push(s)}}}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 n of e.files)n.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.unpatch(n.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};F_.InstrumentationBase=cb;function I3(t,e,n){return typeof e>"u"?t.includes("*"):t.some(r=>(0,lpe.satisfies)(e,r,{includePrerelease:n}))}});var C3=T(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.normalize=void 0;var gpe=U("path");Object.defineProperty(G_,"normalize",{enumerable:!0,get:function(){return gpe.normalize}})});var N3=T(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.normalize=tc.InstrumentationBase=void 0;var Tpe=O3();Object.defineProperty(tc,"InstrumentationBase",{enumerable:!0,get:function(){return Tpe.InstrumentationBase}});var Epe=C3();Object.defineProperty(tc,"normalize",{enumerable:!0,get:function(){return Epe.normalize}})});var lb=T(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.normalize=nc.InstrumentationBase=void 0;var x3=N3();Object.defineProperty(nc,"InstrumentationBase",{enumerable:!0,get:function(){return x3.InstrumentationBase}});Object.defineProperty(nc,"normalize",{enumerable:!0,get:function(){return x3.normalize}})});var P3=T(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.InstrumentationNodeModuleDefinition=void 0;var db=class{files;name;supportedVersions;patch;unpatch;constructor(e,n,r,o,s){this.files=s||[],this.name=e,this.supportedVersions=n,this.patch=r,this.unpatch=o}};j_.InstrumentationNodeModuleDefinition=db});var M3=T(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.InstrumentationNodeModuleFile=void 0;var Spe=lb(),pb=class{name;supportedVersions;patch;unpatch;constructor(e,n,r,o){this.name=(0,Spe.normalize)(e),this.supportedVersions=n,this.patch=r,this.unpatch=o}};H_.InstrumentationNodeModuleFile=pb});var v3=T(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.semconvStabilityFromStr=ma.SemconvStability=void 0;var V_;(function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"})(V_=ma.SemconvStability||(ma.SemconvStability={}));function Ape(t,e){let n=V_.OLD,r=e?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(let o of r??[])if(o.toLowerCase()===t+"/dup"){n=V_.DUPLICATE;break}else o.toLowerCase()===t&&(n=V_.STABLE);return n}ma.semconvStabilityFromStr=Ape});var re=T(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.semconvStabilityFromStr=ct.SemconvStability=ct.safeExecuteInTheMiddleAsync=ct.safeExecuteInTheMiddle=ct.isWrapped=ct.InstrumentationNodeModuleFile=ct.InstrumentationNodeModuleDefinition=ct.InstrumentationBase=ct.registerInstrumentations=void 0;var ype=VB();Object.defineProperty(ct,"registerInstrumentations",{enumerable:!0,get:function(){return ype.registerInstrumentations}});var bpe=lb();Object.defineProperty(ct,"InstrumentationBase",{enumerable:!0,get:function(){return bpe.InstrumentationBase}});var Rpe=P3();Object.defineProperty(ct,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return Rpe.InstrumentationNodeModuleDefinition}});var Ipe=M3();Object.defineProperty(ct,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return Ipe.InstrumentationNodeModuleFile}});var fb=ab();Object.defineProperty(ct,"isWrapped",{enumerable:!0,get:function(){return fb.isWrapped}});Object.defineProperty(ct,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return fb.safeExecuteInTheMiddle}});Object.defineProperty(ct,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return fb.safeExecuteInTheMiddleAsync}});var k3=v3();Object.defineProperty(ct,"SemconvStability",{enumerable:!0,get:function(){return k3.SemconvStability}});Object.defineProperty(ct,"semconvStabilityFromStr",{enumerable:!0,get:function(){return k3.semconvStabilityFromStr}})});var L3=T($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.HTTP_FLAVOR_VALUE_HTTP_1_1=$.NET_TRANSPORT_VALUE_IP_UDP=$.NET_TRANSPORT_VALUE_IP_TCP=$.ATTR_NET_TRANSPORT=$.ATTR_NET_PEER_PORT=$.ATTR_NET_PEER_NAME=$.ATTR_NET_PEER_IP=$.ATTR_NET_HOST_PORT=$.ATTR_NET_HOST_NAME=$.ATTR_NET_HOST_IP=$.ATTR_HTTP_USER_AGENT=$.ATTR_HTTP_URL=$.ATTR_HTTP_TARGET=$.ATTR_HTTP_STATUS_CODE=$.ATTR_HTTP_SERVER_NAME=$.ATTR_HTTP_SCHEME=$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=$.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=$.ATTR_HTTP_REQUEST_CONTENT_LENGTH=$.ATTR_HTTP_METHOD=$.ATTR_HTTP_HOST=$.ATTR_HTTP_FLAVOR=$.ATTR_HTTP_CLIENT_IP=$.USER_AGENT_SYNTHETIC_TYPE_VALUE_TEST=$.USER_AGENT_SYNTHETIC_TYPE_VALUE_BOT=$.ATTR_USER_AGENT_SYNTHETIC_TYPE=void 0;$.ATTR_USER_AGENT_SYNTHETIC_TYPE="user_agent.synthetic.type";$.USER_AGENT_SYNTHETIC_TYPE_VALUE_BOT="bot";$.USER_AGENT_SYNTHETIC_TYPE_VALUE_TEST="test";$.ATTR_HTTP_CLIENT_IP="http.client_ip";$.ATTR_HTTP_FLAVOR="http.flavor";$.ATTR_HTTP_HOST="http.host";$.ATTR_HTTP_METHOD="http.method";$.ATTR_HTTP_REQUEST_CONTENT_LENGTH="http.request_content_length";$.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed";$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length";$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED="http.response_content_length_uncompressed";$.ATTR_HTTP_SCHEME="http.scheme";$.ATTR_HTTP_SERVER_NAME="http.server_name";$.ATTR_HTTP_STATUS_CODE="http.status_code";$.ATTR_HTTP_TARGET="http.target";$.ATTR_HTTP_URL="http.url";$.ATTR_HTTP_USER_AGENT="http.user_agent";$.ATTR_NET_HOST_IP="net.host.ip";$.ATTR_NET_HOST_NAME="net.host.name";$.ATTR_NET_HOST_PORT="net.host.port";$.ATTR_NET_PEER_IP="net.peer.ip";$.ATTR_NET_PEER_NAME="net.peer.name";$.ATTR_NET_PEER_PORT="net.peer.port";$.ATTR_NET_TRANSPORT="net.transport";$.NET_TRANSPORT_VALUE_IP_TCP="ip_tcp";$.NET_TRANSPORT_VALUE_IP_UDP="ip_udp";$.HTTP_FLAVOR_VALUE_HTTP_1_1="1.1"});var w3=T(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.AttributeNames=void 0;var Ope;(function(t){t.HTTP_ERROR_NAME="http.error_name",t.HTTP_ERROR_MESSAGE="http.error_message",t.HTTP_STATUS_TEXT="http.status_text"})(Ope=zd.AttributeNames||(zd.AttributeNames={}))});var mb=T(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DEFAULT_QUERY_STRINGS_TO_REDACT=ho.STR_REDACTED=ho.SYNTHETIC_BOT_NAMES=ho.SYNTHETIC_TEST_NAMES=void 0;ho.SYNTHETIC_TEST_NAMES=["alwayson"];ho.SYNTHETIC_BOT_NAMES=["googlebot","bingbot"];ho.STR_REDACTED="REDACTED";ho.DEFAULT_QUERY_STRINGS_TO_REDACT=["sig","Signature","AWSAccessKeyId","X-Goog-Signature"]});var U3=T((j4e,D3)=>{"use strict";var Cpe=U("util");function _b(t,e){Error.captureStackTrace(this,_b),this.name=this.constructor.name,this.message=t,this.input=e}Cpe.inherits(_b,Error);D3.exports=_b});var F3=T((H4e,B3)=>{"use strict";function Npe(t){return t===34||t===40||t===41||t===44||t===47||t>=58&&t<=64||t>=91&&t<=93||t===123||t===125}function xpe(t){return t===33||t>=35&&t<=39||t===42||t===43||t===45||t===46||t>=48&&t<=57||t>=65&&t<=90||t>=94&&t<=122||t===124||t===126}function Ppe(t){return t>=32&&t<=126}function Mpe(t){return t>=128&&t<=255}B3.exports={isDelimiter:Npe,isTokenChar:xpe,isExtended:Mpe,isPrint:Ppe}});var q3=T((V4e,V3)=>{"use strict";var vpe=U("util"),rc=U3(),q_=F3(),kpe=q_.isDelimiter,G3=q_.isTokenChar,j3=q_.isExtended,Lpe=q_.isPrint;function H3(t){return t.replace(/\\(.)/g,"$1")}function Yd(t,e){return vpe.format("Unexpected character '%s' at index %d",t.charAt(e),e)}function wpe(t){for(var e=!1,n=!1,r=!1,o={},s=[],i=-1,a=-1,u,l,d=0;d<t.length;d++)if(l=t.charCodeAt(d),u===void 0){if(d!==0&&i===-1&&(l===32||l===9))continue;if(G3(l))i===-1&&(i=d);else if(l===61&&i!==-1)u=t.slice(i,d).toLowerCase(),i=-1;else throw new rc(Yd(t,d),t)}else if(n&&(l===9||Lpe(l)||j3(l)))n=!1;else if(G3(l)){if(a!==-1)throw new rc(Yd(t,d),t);i===-1&&(i=d)}else if(kpe(l)||j3(l))if(r)l===34?(r=!1,a=d):l===92?(i===-1&&(i=d),n=e=!0):i===-1&&(i=d);else if(l===34&&t.charCodeAt(d-1)===61)r=!0;else if((l===44||l===59)&&(i!==-1||a!==-1))i!==-1?(a===-1&&(a=d),o[u]=e?H3(t.slice(i,a)):t.slice(i,a)):o[u]="",l===44&&(s.push(o),o={}),u=void 0,i=a=-1;else throw new rc(Yd(t,d),t);else if(l===32||l===9){if(a!==-1)continue;if(r)i===-1&&(i=d);else if(i!==-1)a=d;else throw new rc(Yd(t,d),t)}else throw new rc(Yd(t,d),t);if(u===void 0||r||i===-1&&a===-1||l===32||l===9)throw new rc("Unexpected end of input",t);return i!==-1?(a===-1&&(a=d),o[u]=e?H3(t.slice(i,a)):t.slice(i,a)):o[u]="",s.push(o),s}V3.exports=wpe});var Z3=T(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.headerCapture=z.getIncomingStableRequestMetricAttributesOnResponse=z.getIncomingRequestMetricAttributesOnResponse=z.getIncomingRequestAttributesOnResponse=z.getIncomingRequestMetricAttributes=z.getIncomingRequestAttributes=z.getRemoteClientAddress=z.getOutgoingStableRequestMetricAttributesOnResponse=z.getOutgoingRequestMetricAttributesOnResponse=z.getOutgoingRequestAttributesOnResponse=z.setAttributesFromHttpKind=z.getOutgoingRequestMetricAttributes=z.getOutgoingRequestAttributes=z.extractHostnameAndPort=z.isValidOptionsType=z.getRequestInfo=z.isCompressed=z.setResponseContentLengthAttribute=z.setRequestContentLengthAttribute=z.setSpanWithError=z.satisfiesPattern=z.parseResponseStatus=z.getAbsoluteUrl=void 0;var Wd=(P(),N(L)),ue=(de(),N(Ie)),q=L3(),$3=Ae(),Kn=re(),Dpe=U("url"),z_=w3(),z3=mb(),$_=mb(),Upe=q3(),Bpe=(t,e,n="http:",r=Array.from($_.DEFAULT_QUERY_STRINGS_TO_REDACT))=>{let o=t||{},s=o.protocol||n,i=(o.port||"").toString(),a=o.path||"/",u=o.host||o.hostname||e.host||"localhost";if(u.indexOf(":")===-1&&i&&i!=="80"&&i!=="443"&&(u+=`:${i}`),a.includes("?"))try{let d=new URL(a,"http://localhost"),p=r||[];for(let f of p)d.searchParams.get(f)&&d.searchParams.set(f,$_.STR_REDACTED);a=`${d.pathname}${d.search}`}catch{}let l=o.auth?`${$_.STR_REDACTED}:${$_.STR_REDACTED}@`:"";return`${s}//${l}${u}${a}`};z.getAbsoluteUrl=Bpe;var Fpe=(t,e)=>{let n=t===Wd.SpanKind.CLIENT?400:500;return e&&e>=100&&e<n?Wd.SpanStatusCode.UNSET:Wd.SpanStatusCode.ERROR};z.parseResponseStatus=Fpe;var Gpe=(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")};z.satisfiesPattern=Gpe;var jpe=(t,e,n)=>{let r=e.message;n&Kn.SemconvStability.OLD&&(t.setAttribute(z_.AttributeNames.HTTP_ERROR_NAME,e.name),t.setAttribute(z_.AttributeNames.HTTP_ERROR_MESSAGE,r)),n&Kn.SemconvStability.STABLE&&t.setAttribute(ue.ATTR_ERROR_TYPE,e.name),t.setStatus({code:Wd.SpanStatusCode.ERROR,message:r}),t.recordException(e)};z.setSpanWithError=jpe;var Hpe=(t,e)=>{let n=W3(t.headers);n!==null&&((0,z.isCompressed)(t.headers)?e[q.ATTR_HTTP_REQUEST_CONTENT_LENGTH]=n:e[q.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]=n)};z.setRequestContentLengthAttribute=Hpe;var Vpe=(t,e)=>{let n=W3(t.headers);n!==null&&((0,z.isCompressed)(t.headers)?e[q.ATTR_HTTP_RESPONSE_CONTENT_LENGTH]=n:e[q.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]=n)};z.setResponseContentLengthAttribute=Vpe;function W3(t){let e=t["content-length"];if(e===void 0)return null;let n=parseInt(e,10);return isNaN(n)?null:n}var qpe=t=>{let e=t["content-encoding"];return!!e&&e!=="identity"};z.isCompressed=qpe;function $pe(t){let{hostname:e,pathname:n,port:r,username:o,password:s,search:i,protocol:a,hash:u,href:l,origin:d,host:p}=new URL(t),f={protocol:a,hostname:e&&e[0]==="["?e.slice(1,-1):e,hash:u,search:i,pathname:n,path:`${n||""}${i||""}`,href:l,origin:d,host:p};return r!==""&&(f.port=Number(r)),(o||s)&&(f.auth=`${decodeURIComponent(o)}:${decodeURIComponent(s)}`),f}var zpe=(t,e,n)=>{let r,o,s,i=!1;if(typeof e=="string"){try{let u=$pe(e);s=u,r=u.pathname||"/"}catch(u){i=!0,t.verbose("Unable to parse URL provided to HTTP request, using fallback to determine path. Original error:",u),s={path:e},r=s.path||"/"}o=`${s.protocol||"http:"}//${s.host}`,n!==void 0&&Object.assign(s,n)}else if(e instanceof Dpe.URL)s={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,path:`${e.pathname||""}${e.search||""}`},e.port!==""&&(s.port=Number(e.port)),(e.username||e.password)&&(s.auth=`${e.username}:${e.password}`),r=e.pathname,o=e.origin,n!==void 0&&Object.assign(s,n);else{s=Object.assign({protocol:e.host?"http:":void 0},e);let u=s.host||(s.port!=null?`${s.hostname}${s.port}`:s.hostname);if(o=`${s.protocol||"http:"}//${u}`,r=e.pathname,!r&&s.path)try{r=new URL(s.path,o).pathname||"/"}catch{r="/"}}let a=s.method?s.method.toUpperCase():"GET";return{origin:o,pathname:r,method:a,optionsParsed:s,invalidUrl:i}};z.getRequestInfo=zpe;var Ype=t=>{if(!t)return!1;let e=typeof t;return e==="string"||e==="object"&&!Array.isArray(t)};z.isValidOptionsType=Ype;var Wpe=t=>{if(t.hostname&&t.port)return{hostname:t.hostname,port:t.port};let e=t.host?.match(/^([^:/ ]+)(:\d{1,5})?/)||null,n=t.hostname||(e===null?"localhost":e[1]),r=t.port;return r||(e&&e[2]?r=e[2].substring(1):r=t.protocol==="https:"?"443":"80"),{hostname:n,port:r}};z.extractHostnameAndPort=Wpe;var Kpe=(t,e,n,r)=>{let o=e.hostname,s=e.port,i=t.method??"GET",a=J3(i),u=t.headers||{},l=u["user-agent"],d=(0,z.getAbsoluteUrl)(t,u,`${e.component}:`,e.redactedQueryParams),p={[q.ATTR_HTTP_URL]:d,[q.ATTR_HTTP_METHOD]:i,[q.ATTR_HTTP_TARGET]:t.path||"/",[q.ATTR_NET_PEER_NAME]:o,[q.ATTR_HTTP_HOST]:u.host??`${o}:${s}`},f={[ue.ATTR_HTTP_REQUEST_METHOD]:a,[ue.ATTR_SERVER_ADDRESS]:o,[ue.ATTR_SERVER_PORT]:Number(s),[ue.ATTR_URL_FULL]:d,[ue.ATTR_USER_AGENT_ORIGINAL]:l};switch(i!==a&&(f[ue.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=i),r&&l&&(f[q.ATTR_USER_AGENT_SYNTHETIC_TYPE]=K3(l)),l!==void 0&&(p[q.ATTR_HTTP_USER_AGENT]=l),n){case Kn.SemconvStability.STABLE:return Object.assign(f,e.hookAttributes);case Kn.SemconvStability.OLD:return Object.assign(p,e.hookAttributes)}return Object.assign(p,f,e.hookAttributes)};z.getOutgoingRequestAttributes=Kpe;var Qpe=t=>{let e={};return e[q.ATTR_HTTP_METHOD]=t[q.ATTR_HTTP_METHOD],e[q.ATTR_NET_PEER_NAME]=t[q.ATTR_NET_PEER_NAME],e};z.getOutgoingRequestMetricAttributes=Qpe;var Jpe=(t,e)=>{t&&(e[q.ATTR_HTTP_FLAVOR]=t,t.toUpperCase()!=="QUIC"?e[q.ATTR_NET_TRANSPORT]=q.NET_TRANSPORT_VALUE_IP_TCP:e[q.ATTR_NET_TRANSPORT]=q.NET_TRANSPORT_VALUE_IP_UDP)};z.setAttributesFromHttpKind=Jpe;var K3=t=>{let e=String(t).toLowerCase();for(let n of z3.SYNTHETIC_TEST_NAMES)if(e.includes(n))return q.USER_AGENT_SYNTHETIC_TYPE_VALUE_TEST;for(let n of z3.SYNTHETIC_BOT_NAMES)if(e.includes(n))return q.USER_AGENT_SYNTHETIC_TYPE_VALUE_BOT},Xpe=(t,e)=>{let{statusCode:n,statusMessage:r,httpVersion:o,socket:s}=t,i={},a={};if(n!=null&&(a[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=n),s){let{remoteAddress:u,remotePort:l}=s;i[q.ATTR_NET_PEER_IP]=u,i[q.ATTR_NET_PEER_PORT]=l,a[ue.ATTR_NETWORK_PEER_ADDRESS]=u,a[ue.ATTR_NETWORK_PEER_PORT]=l,a[ue.ATTR_NETWORK_PROTOCOL_VERSION]=t.httpVersion}switch((0,z.setResponseContentLengthAttribute)(t,i),n&&(i[q.ATTR_HTTP_STATUS_CODE]=n,i[z_.AttributeNames.HTTP_STATUS_TEXT]=(r||"").toUpperCase()),(0,z.setAttributesFromHttpKind)(o,i),e){case Kn.SemconvStability.STABLE:return a;case Kn.SemconvStability.OLD:return i}return Object.assign(i,a)};z.getOutgoingRequestAttributesOnResponse=Xpe;var Zpe=t=>{let e={};return e[q.ATTR_NET_PEER_PORT]=t[q.ATTR_NET_PEER_PORT],e[q.ATTR_HTTP_STATUS_CODE]=t[q.ATTR_HTTP_STATUS_CODE],e[q.ATTR_HTTP_FLAVOR]=t[q.ATTR_HTTP_FLAVOR],e};z.getOutgoingRequestMetricAttributesOnResponse=Zpe;var efe=t=>{let e={};return t[ue.ATTR_NETWORK_PROTOCOL_VERSION]&&(e[ue.ATTR_NETWORK_PROTOCOL_VERSION]=t[ue.ATTR_NETWORK_PROTOCOL_VERSION]),t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]&&(e[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]),e};z.getOutgoingStableRequestMetricAttributesOnResponse=efe;function Vs(t,e){let n=t.split(":");if(n.length===1)return e==="http"?{host:n[0],port:"80"}:e==="https"?{host:n[0],port:"443"}:{host:n[0]};if(n.length===2)return{host:n[0],port:n[1]};if(n[0].startsWith("[")){if(n[n.length-1].endsWith("]")){if(e==="http")return{host:t,port:"80"};if(e==="https")return{host:t,port:"443"}}else if(n[n.length-2].endsWith("]"))return{host:n.slice(0,-1).join(":"),port:n[n.length-1]}}return{host:t}}function tfe(t,e){let n=t.headers.forwarded;if(n){for(let s of X3(n))if(s.host)return Vs(s.host,s.proto)}let r=t.headers["x-forwarded-host"];if(typeof r=="string")return typeof t.headers["x-forwarded-proto"]=="string"?Vs(r,t.headers["x-forwarded-proto"]):Array.isArray(t.headers["x-forwarded-proto"])?Vs(r,t.headers["x-forwarded-proto"][0]):Vs(r);if(Array.isArray(r)&&typeof r[0]=="string"&&r[0].length>0)return typeof t.headers["x-forwarded-proto"]=="string"?Vs(r[0],t.headers["x-forwarded-proto"]):Array.isArray(t.headers["x-forwarded-proto"])?Vs(r[0],t.headers["x-forwarded-proto"][0]):Vs(r[0]);let o=t.headers.host;return typeof o=="string"&&o.length>0?Vs(o,e):null}function Q3(t){let e=t.headers.forwarded;if(e){for(let o of X3(e))if(o.for)return Y3(o.for)}let n=t.headers["x-forwarded-for"];if(n){let o;if(typeof n=="string"?o=n:Array.isArray(n)&&(o=n[0]),typeof o=="string")return o=o.split(",")[0].trim(),Y3(o)}let r=t.socket.remoteAddress;return r||null}z.getRemoteClientAddress=Q3;function Y3(t){try{let{hostname:e}=new URL(`http://${t}`);return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e}catch{return t}}function nfe(t,e,n){try{if(e.headers.host)return new URL(e.url??"/",`${t}://${e.headers.host}`);{let r=new URL(e.url??"/",`${t}://localhost`);return{pathname:r.pathname,search:r.search,toString:function(){return r.pathname+r.search}}}}catch(r){return n.verbose("Unable to get URL from request",r),{}}}var rfe=(t,e,n)=>{let{component:r,enableSyntheticSourceDetection:o,hookAttributes:s,semconvStability:i,serverName:a}=e,{headers:u,httpVersion:l,method:d}=t,{host:p,"user-agent":f,"x-forwarded-for":m}=u,_=nfe(r,t,n),h,g;if(i!==Kn.SemconvStability.OLD){let E=J3(d),S=tfe(t,r),b=Q3(t);h={[ue.ATTR_HTTP_REQUEST_METHOD]:E,[ue.ATTR_URL_SCHEME]:r,[ue.ATTR_SERVER_ADDRESS]:S?.host,[ue.ATTR_NETWORK_PEER_ADDRESS]:t.socket.remoteAddress,[ue.ATTR_NETWORK_PEER_PORT]:t.socket.remotePort,[ue.ATTR_NETWORK_PROTOCOL_VERSION]:t.httpVersion,[ue.ATTR_USER_AGENT_ORIGINAL]:f},_.pathname!=null&&(h[ue.ATTR_URL_PATH]=_.pathname),_.search&&(h[ue.ATTR_URL_QUERY]=_.search.slice(1)),b!=null&&(h[ue.ATTR_CLIENT_ADDRESS]=b),S?.port!=null&&(h[ue.ATTR_SERVER_PORT]=Number(S.port)),d!==E&&(h[ue.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=d),o&&f&&(h[q.ATTR_USER_AGENT_SYNTHETIC_TYPE]=K3(f))}if(i!==Kn.SemconvStability.STABLE){let E=p?.replace(/^(.*)(:[0-9]{1,5})/,"$1")||"localhost";g={[q.ATTR_HTTP_URL]:_.toString(),[q.ATTR_HTTP_HOST]:p,[q.ATTR_NET_HOST_NAME]:E,[q.ATTR_HTTP_METHOD]:d,[q.ATTR_HTTP_SCHEME]:r},typeof m=="string"&&(g[q.ATTR_HTTP_CLIENT_IP]=m.split(",")[0]),typeof a=="string"&&(g[q.ATTR_HTTP_SERVER_NAME]=a),_.pathname&&(g[q.ATTR_HTTP_TARGET]=_.pathname+_.search||"/"),f!==void 0&&(g[q.ATTR_HTTP_USER_AGENT]=f),(0,z.setRequestContentLengthAttribute)(t,g),(0,z.setAttributesFromHttpKind)(l,g)}switch(i){case Kn.SemconvStability.STABLE:return Object.assign(h,s);case Kn.SemconvStability.OLD:return Object.assign(g,s);default:return Object.assign(g,h,s)}};z.getIncomingRequestAttributes=rfe;var ofe=t=>{let e={};return e[q.ATTR_HTTP_SCHEME]=t[q.ATTR_HTTP_SCHEME],e[q.ATTR_HTTP_METHOD]=t[q.ATTR_HTTP_METHOD],e[q.ATTR_NET_HOST_NAME]=t[q.ATTR_NET_HOST_NAME],e[q.ATTR_HTTP_FLAVOR]=t[q.ATTR_HTTP_FLAVOR],e};z.getIncomingRequestMetricAttributes=ofe;var sfe=(t,e,n)=>{let{socket:r}=t,{statusCode:o,statusMessage:s}=e,i={[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]:o},a=(0,$3.getRPCMetadata)(Wd.context.active()),u={};if(r){let{localAddress:l,localPort:d,remoteAddress:p,remotePort:f}=r;u[q.ATTR_NET_HOST_IP]=l,u[q.ATTR_NET_HOST_PORT]=d,u[q.ATTR_NET_PEER_IP]=p,u[q.ATTR_NET_PEER_PORT]=f}switch(u[q.ATTR_HTTP_STATUS_CODE]=o,u[z_.AttributeNames.HTTP_STATUS_TEXT]=(s||"").toUpperCase(),a?.type===$3.RPCType.HTTP&&a.route!==void 0&&(u[ue.ATTR_HTTP_ROUTE]=a.route,i[ue.ATTR_HTTP_ROUTE]=a.route),n){case Kn.SemconvStability.STABLE:return i;case Kn.SemconvStability.OLD:return u}return Object.assign(u,i)};z.getIncomingRequestAttributesOnResponse=sfe;var ife=t=>{let e={};return e[q.ATTR_HTTP_STATUS_CODE]=t[q.ATTR_HTTP_STATUS_CODE],e[q.ATTR_NET_HOST_PORT]=t[q.ATTR_NET_HOST_PORT],t[ue.ATTR_HTTP_ROUTE]!==void 0&&(e[ue.ATTR_HTTP_ROUTE]=t[ue.ATTR_HTTP_ROUTE]),e};z.getIncomingRequestMetricAttributesOnResponse=ife;var afe=t=>{let e={};return t[ue.ATTR_HTTP_ROUTE]!==void 0&&(e[ue.ATTR_HTTP_ROUTE]=t[ue.ATTR_HTTP_ROUTE]),t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]&&(e[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]),e};z.getIncomingStableRequestMetricAttributesOnResponse=afe;function ufe(t,e,n){let r=new Map;for(let o=0,s=e.length;o<s;o++){let i=e[o].toLowerCase();n&Kn.SemconvStability.STABLE?r.set(i,i):r.set(i,i.replaceAll("-","_"))}return o=>{let s={};for(let i of r.keys()){let a=o(i);if(a===void 0)continue;let u=r.get(i),l=`http.${t}.header.${u}`;typeof a=="string"?s[l]=[a]:Array.isArray(a)?s[l]=a:s[l]=[a]}return s}}z.headerCapture=ufe;var cfe=new Set(["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH","QUERY"]);function J3(t){if(t==null)return"GET";let e=t.toUpperCase();return cfe.has(e)?e:"_OTHER"}function X3(t){try{return Upe(t)}catch{return[]}}});var eF=T(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.HttpInstrumentation=void 0;var se=(P(),N(L)),qs=Ae(),lfe=U("url"),dfe=vB(),Nt=re(),hb=U("events"),Ue=(de(),N(Ie)),tt=Z3(),gb=class extends Nt.InstrumentationBase{_spanNotEnded=new WeakSet;_headerCapture;_httpPatched=!1;_httpsPatched=!1;_semconvStability=Nt.SemconvStability.OLD;constructor(e={}){super("@opentelemetry/instrumentation-http",dfe.VERSION,e),this._semconvStability=(0,Nt.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._headerCapture=this._createHeaderCapture(this._semconvStability)}_updateMetricInstruments(){this._oldHttpServerDurationHistogram=this.meter.createHistogram("http.server.duration",{description:"Measures the duration of inbound HTTP requests.",unit:"ms",valueType:se.ValueType.DOUBLE}),this._oldHttpClientDurationHistogram=this.meter.createHistogram("http.client.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"ms",valueType:se.ValueType.DOUBLE}),this._stableHttpServerDurationHistogram=this.meter.createHistogram(Ue.METRIC_HTTP_SERVER_REQUEST_DURATION,{description:"Duration of HTTP server requests.",unit:"s",valueType:se.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}}),this._stableHttpClientDurationHistogram=this.meter.createHistogram(Ue.METRIC_HTTP_CLIENT_REQUEST_DURATION,{description:"Duration of HTTP client requests.",unit:"s",valueType:se.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}_recordServerDuration(e,n,r){this._semconvStability&Nt.SemconvStability.OLD&&this._oldHttpServerDurationHistogram.record(e,n),this._semconvStability&Nt.SemconvStability.STABLE&&this._stableHttpServerDurationHistogram.record(e/1e3,r)}_recordClientDuration(e,n,r){this._semconvStability&Nt.SemconvStability.OLD&&this._oldHttpClientDurationHistogram.record(e,n),this._semconvStability&Nt.SemconvStability.STABLE&&this._stableHttpClientDurationHistogram.record(e/1e3,r)}setConfig(e={}){super.setConfig(e),this._headerCapture=this._createHeaderCapture(this._semconvStability)}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new Nt.InstrumentationNodeModuleDefinition("http",["*"],e=>{if(this._httpPatched)return e;this._httpPatched=!0;let n=e[Symbol.toStringTag]==="Module";if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchOutgoingRequestFunction("http")),o=this._wrap(e,"get",this._getPatchOutgoingGetFunction(r));n&&(e.default.request=r,e.default.get=o)}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("http")),e},e=>{this._httpPatched=!1,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 Nt.InstrumentationNodeModuleDefinition("https",["*"],e=>{if(this._httpsPatched)return e;this._httpsPatched=!0;let n=e[Symbol.toStringTag]==="Module";if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchHttpsOutgoingRequestFunction("https")),o=this._wrap(e,"get",this._getPatchHttpsOutgoingGetFunction(r));n&&(e.default.request=r,e.default.get=o)}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("https")),e},e=>{this._httpsPatched=!1,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 n=>this._incomingRequestFunction(e,n)}_getPatchOutgoingRequestFunction(e){return n=>this._outgoingRequestFunction(e,n)}_getPatchOutgoingGetFunction(e){return n=>function(o,...s){let i=e(o,...s);return i.end(),i}}_getPatchHttpsOutgoingRequestFunction(e){return n=>{let r=this;return function(s,...i){return e==="https"&&typeof s=="object"&&s?.constructor?.name!=="URL"&&(s=Object.assign({},s),r._setDefaultOptions(s)),r._getPatchOutgoingRequestFunction(e)(n)(s,...i)}}}_setDefaultOptions(e){e.protocol=e.protocol||"https:",e.port=e.port||443}_getPatchHttpsOutgoingGetFunction(e){return n=>{let r=this;return function(s,...i){return r._getPatchOutgoingGetFunction(e)(n)(s,...i)}}}_traceClientRequest(e,n,r,o,s){this.getConfig().requestHook&&this._callRequestHook(n,e);let i=!1;return e.prependListener("response",a=>{this._diag.debug("outgoingRequest on response()"),e.listenerCount("response")<=1&&a.resume();let u=(0,tt.getOutgoingRequestAttributesOnResponse)(a,this._semconvStability);n.setAttributes(u),o=Object.assign(o,(0,tt.getOutgoingRequestMetricAttributesOnResponse)(u)),s=Object.assign(s,(0,tt.getOutgoingStableRequestMetricAttributesOnResponse)(u)),this.getConfig().responseHook&&this._callResponseHook(n,a),n.setAttributes(this._headerCapture.client.captureRequestHeaders(d=>e.getHeader(d))),n.setAttributes(this._headerCapture.client.captureResponseHeaders(d=>a.headers[d])),se.context.bind(se.context.active(),a);let l=()=>{if(this._diag.debug("outgoingRequest on end()"),i)return;i=!0;let d;a.aborted&&!a.complete?d={code:se.SpanStatusCode.ERROR}:d={code:(0,tt.parseResponseStatus)(se.SpanKind.CLIENT,a.statusCode)},n.setStatus(d),this.getConfig().applyCustomAttributesOnSpan&&(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(n,e,a),()=>{},!0),this._closeHttpSpan(n,se.SpanKind.CLIENT,r,o,s)};a.on("end",l),a.on(hb.errorMonitor,d=>{this._diag.debug("outgoingRequest on error()",d),!i&&(i=!0,this._onOutgoingRequestError(n,o,s,r,d))})}),e.on("close",()=>{this._diag.debug("outgoingRequest on request close()"),!(e.aborted||i)&&(i=!0,this._closeHttpSpan(n,se.SpanKind.CLIENT,r,o,s))}),e.on(hb.errorMonitor,a=>{this._diag.debug("outgoingRequest on request error()",a),!i&&(i=!0,this._onOutgoingRequestError(n,o,s,r,a))}),this._diag.debug("http.ClientRequest return request"),e}_incomingRequestFunction(e,n){let r=this;return function(s,...i){if(s!=="request")return n.apply(this,[s,...i]);let a=i[0],u=i[1],l=a.method||"GET";if(r._diag.debug(`${e} instrumentation incomingRequest`),(0,Nt.safeExecuteInTheMiddle)(()=>r.getConfig().ignoreIncomingRequestHook?.(a),b=>{b!=null&&r._diag.error("caught ignoreIncomingRequestHook error: ",b)},!0))return se.context.with((0,qs.suppressTracing)(se.context.active()),()=>(se.context.bind(se.context.active(),a),se.context.bind(se.context.active(),u),n.apply(this,[s,...i])));let d=a.headers,p=(0,tt.getIncomingRequestAttributes)(a,{component:e,serverName:r.getConfig().serverName,hookAttributes:r._callStartSpanHook(a,r.getConfig().startIncomingSpanHook),semconvStability:r._semconvStability,enableSyntheticSourceDetection:r.getConfig().enableSyntheticSourceDetection||!1},r._diag);Object.assign(p,r._headerCapture.server.captureRequestHeaders(b=>a.headers[b]));let f={kind:se.SpanKind.SERVER,attributes:p},m=(0,qs.hrTime)(),_=(0,tt.getIncomingRequestMetricAttributes)(p),h={[Ue.ATTR_HTTP_REQUEST_METHOD]:p[Ue.ATTR_HTTP_REQUEST_METHOD],[Ue.ATTR_URL_SCHEME]:p[Ue.ATTR_URL_SCHEME]};p[Ue.ATTR_NETWORK_PROTOCOL_VERSION]&&(h[Ue.ATTR_NETWORK_PROTOCOL_VERSION]=p[Ue.ATTR_NETWORK_PROTOCOL_VERSION]);let g=se.propagation.extract(se.ROOT_CONTEXT,d),E=r._startHttpSpan(l,f,g),S={type:qs.RPCType.HTTP,span:E};return se.context.with((0,qs.setRPCMetadata)(se.trace.setSpan(g,E),S),()=>{se.context.bind(se.context.active(),a),se.context.bind(se.context.active(),u),r.getConfig().requestHook&&r._callRequestHook(E,a),r.getConfig().responseHook&&r._callResponseHook(E,u);let b=!1;return u.on("close",()=>{b||r._onServerResponseFinish(a,u,E,_,h,m)}),u.on(hb.errorMonitor,R=>{b=!0,r._onServerResponseError(E,_,h,m,R)}),(0,Nt.safeExecuteInTheMiddle)(()=>n.apply(this,[s,...i]),R=>{if(R)throw r._onServerResponseError(E,_,h,m,R),R})})}}_outgoingRequestFunction(e,n){let r=this;return function(s,...i){if(!(0,tt.isValidOptionsType)(s))return n.apply(this,[s,...i]);let a=typeof i[0]=="object"&&(typeof s=="string"||s instanceof lfe.URL)?i.shift():void 0,{method:u,invalidUrl:l,optionsParsed:d}=(0,tt.getRequestInfo)(r._diag,s,a);if((0,Nt.safeExecuteInTheMiddle)(()=>r.getConfig().ignoreOutgoingRequestHook?.(d),I=>{I!=null&&r._diag.error("caught ignoreOutgoingRequestHook error: ",I)},!0))return n.apply(this,[d,...i]);let{hostname:p,port:f}=(0,tt.extractHostnameAndPort)(d),m=(0,tt.getOutgoingRequestAttributes)(d,{component:e,port:f,hostname:p,hookAttributes:r._callStartSpanHook(d,r.getConfig().startOutgoingSpanHook),redactedQueryParams:r.getConfig().redactedQueryParams},r._semconvStability,r.getConfig().enableSyntheticSourceDetection||!1),_=(0,qs.hrTime)(),h=(0,tt.getOutgoingRequestMetricAttributes)(m),g={[Ue.ATTR_HTTP_REQUEST_METHOD]:m[Ue.ATTR_HTTP_REQUEST_METHOD],[Ue.ATTR_SERVER_ADDRESS]:m[Ue.ATTR_SERVER_ADDRESS],[Ue.ATTR_SERVER_PORT]:m[Ue.ATTR_SERVER_PORT]};m[Ue.ATTR_HTTP_RESPONSE_STATUS_CODE]&&(g[Ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=m[Ue.ATTR_HTTP_RESPONSE_STATUS_CODE]),m[Ue.ATTR_NETWORK_PROTOCOL_VERSION]&&(g[Ue.ATTR_NETWORK_PROTOCOL_VERSION]=m[Ue.ATTR_NETWORK_PROTOCOL_VERSION]);let E={kind:se.SpanKind.CLIENT,attributes:m},S=r._startHttpSpan(u,E),b=se.context.active(),R=se.trace.setSpan(b,S);return d.headers?d.headers=Object.assign({},d.headers):d.headers={},se.propagation.inject(R,d.headers),se.context.with(R,()=>{let I=i[i.length-1];typeof I=="function"&&(i[i.length-1]=se.context.bind(b,I));let C=(0,Nt.safeExecuteInTheMiddle)(()=>l?n.apply(this,[s,...i]):n.apply(this,[d,...i]),H=>{if(H)throw r._onOutgoingRequestError(S,h,g,_,H),H});return r._diag.debug(`${e} instrumentation outgoingRequest`),se.context.bind(b,C),r._traceClientRequest(C,S,_,h,g)})}}_onServerResponseFinish(e,n,r,o,s,i){let a=(0,tt.getIncomingRequestAttributesOnResponse)(e,n,this._semconvStability);o=Object.assign(o,(0,tt.getIncomingRequestMetricAttributesOnResponse)(a)),s=Object.assign(s,(0,tt.getIncomingStableRequestMetricAttributesOnResponse)(a)),r.setAttributes(this._headerCapture.server.captureResponseHeaders(l=>n.getHeader(l))),r.setAttributes(a).setStatus({code:(0,tt.parseResponseStatus)(se.SpanKind.SERVER,n.statusCode)});let u=a[Ue.ATTR_HTTP_ROUTE];u&&r.updateName(`${e.method||"GET"} ${u}`),this.getConfig().applyCustomAttributesOnSpan&&(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(r,e,n),()=>{},!0),this._closeHttpSpan(r,se.SpanKind.SERVER,i,o,s)}_onOutgoingRequestError(e,n,r,o,s){(0,tt.setSpanWithError)(e,s,this._semconvStability),r[Ue.ATTR_ERROR_TYPE]=s.name,this._closeHttpSpan(e,se.SpanKind.CLIENT,o,n,r)}_onServerResponseError(e,n,r,o,s){(0,tt.setSpanWithError)(e,s,this._semconvStability),r[Ue.ATTR_ERROR_TYPE]=s.name,this._closeHttpSpan(e,se.SpanKind.SERVER,o,n,r)}_startHttpSpan(e,n,r=se.context.active()){let o=n.kind===se.SpanKind.CLIENT?this.getConfig().requireParentforOutgoingSpans:this.getConfig().requireParentforIncomingSpans,s,i=se.trace.getSpan(r);return o===!0&&(!i||!se.trace.isSpanContextValid(i.spanContext()))?s=se.trace.wrapSpanContext(se.INVALID_SPAN_CONTEXT):o===!0&&i?.spanContext().isRemote?s=i:s=this.tracer.startSpan(e,n,r),this._spanNotEnded.add(s),s}_closeHttpSpan(e,n,r,o,s){if(!this._spanNotEnded.has(e))return;e.end(),this._spanNotEnded.delete(e);let i=(0,qs.hrTimeToMilliseconds)((0,qs.hrTimeDuration)(r,(0,qs.hrTime)()));n===se.SpanKind.SERVER?this._recordServerDuration(i,o,s):n===se.SpanKind.CLIENT&&this._recordClientDuration(i,o,s)}_callResponseHook(e,n){(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().responseHook(e,n),()=>{},!0)}_callRequestHook(e,n){(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().requestHook(e,n),()=>{},!0)}_callStartSpanHook(e,n){if(typeof n=="function")return(0,Nt.safeExecuteInTheMiddle)(()=>n(e),()=>{},!0)}_createHeaderCapture(e){let n=this.getConfig();return{client:{captureRequestHeaders:(0,tt.headerCapture)("request",n.headersToSpanAttributes?.client?.requestHeaders??[],e),captureResponseHeaders:(0,tt.headerCapture)("response",n.headersToSpanAttributes?.client?.responseHeaders??[],e)},server:{captureRequestHeaders:(0,tt.headerCapture)("request",n.headersToSpanAttributes?.server?.requestHeaders??[],e),captureResponseHeaders:(0,tt.headerCapture)("response",n.headersToSpanAttributes?.server?.responseHeaders??[],e)}}}};Y_.HttpInstrumentation=gb});var tF=T(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.HttpInstrumentation=void 0;var pfe=eF();Object.defineProperty(W_,"HttpInstrumentation",{enumerable:!0,get:function(){return pfe.HttpInstrumentation}})});var hI=T(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.AbstractAsyncHooksContextManager=void 0;var Yge=U("events"),Wge=["addListener","on","once","prependListener","prependOnceListener"],_I=class{bind(e,n){return n instanceof Yge.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let r=this,o=function(...s){return r.with(e,()=>n.apply(this,s))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),o}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),Wge.forEach(o=>{n[o]!==void 0&&(n[o]=this._patchAddListener(n,n[o],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let r=this;return function(o,s){let i=r._getPatchMap(e)?.[o];if(i===void 0)return n.call(this,o,s);let a=i.get(s);return n.call(this,o,a||s)}}_patchRemoveAllListeners(e,n){let r=this;return function(o){let s=r._getPatchMap(e);return s!==void 0&&(arguments.length===0?r._createPatchMap(e):s[o]!==void 0&&delete s[o]),n.apply(this,arguments)}}_patchAddListener(e,n,r){let o=this;return function(s,i){if(o._wrapped)return n.call(this,s,i);let a=o._getPatchMap(e);a===void 0&&(a=o._createPatchMap(e));let u=a[s];u===void 0&&(u=new WeakMap,a[s]=u);let l=o.bind(r,i);u.set(i,l),o._wrapped=!0;try{return n.call(this,s,l)}finally{o._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};ig.AbstractAsyncHooksContextManager=_I});var s6=T(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.AsyncHooksContextManager=void 0;var Kge=(P(),N(L)),Qge=U("async_hooks"),Jge=hI(),gI=class extends Jge.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=Qge.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??Kge.ROOT_CONTEXT}with(e,n,r,...o){this._enterContext(e);try{return n.call(r,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let r=this._stack[this._stack.length-1];r!==void 0&&this._contexts.set(e,r)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};ag.AsyncHooksContextManager=gI});var i6=T(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});ug.AsyncLocalStorageContextManager=void 0;var Xge=(P(),N(L)),Zge=U("async_hooks"),eTe=hI(),TI=class extends eTe.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new Zge.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??Xge.ROOT_CONTEXT}with(e,n,r,...o){let s=r==null?n:n.bind(r);return this._asyncLocalStorage.run(e,s,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};ug.AsyncLocalStorageContextManager=TI});var a6=T(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.AsyncLocalStorageContextManager=Uc.AsyncHooksContextManager=void 0;var tTe=s6();Object.defineProperty(Uc,"AsyncHooksContextManager",{enumerable:!0,get:function(){return tTe.AsyncHooksContextManager}});var nTe=i6();Object.defineProperty(Uc,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return nTe.AsyncLocalStorageContextManager}})});var EI=T(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc._clearDefaultServiceNameCache=Bc.defaultServiceName=void 0;var Dp;function rTe(){if(Dp===void 0)try{let t=globalThis.process.argv0;Dp=t?`unknown_service:${t}`:"unknown_service"}catch{Dp="unknown_service"}return Dp}Bc.defaultServiceName=rTe;function oTe(){Dp=void 0}Bc._clearDefaultServiceNameCache=oTe});var u6=T(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});cg.isPromiseLike=void 0;var sTe=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";cg.isPromiseLike=sTe});var yI=T(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.defaultResource=bo.emptyResource=bo.resourceFromDetectedResource=bo.resourceFromAttributes=void 0;var Bp=(P(),N(L)),SI=Ae(),Da=(de(),N(Ie)),iTe=EI(),Up=u6(),lg=class t{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,n){let r=new t({},n);return r._rawAttributes=c6(e),r._asyncAttributesPending=e.filter(([o,s])=>(0,Up.isPromiseLike)(s)).length>0,r}constructor(e,n){let r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([o,s])=>((0,Up.isPromiseLike)(s)&&(this._asyncAttributesPending=!0),[o,s])),this._rawAttributes=c6(this._rawAttributes),this._schemaUrl=lTe(n?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[n,r]=this._rawAttributes[e];this._rawAttributes[e]=[n,(0,Up.isPromiseLike)(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Bp.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[n,r]of this._rawAttributes){if((0,Up.isPromiseLike)(r)){Bp.diag.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(e[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;let n=dTe(this,e),r=n?{schemaUrl:n}:void 0;return t.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],r)}};function AI(t,e){return lg.FromAttributeList(Object.entries(t),e)}bo.resourceFromAttributes=AI;function aTe(t,e){return new lg(t,e)}bo.resourceFromDetectedResource=aTe;function uTe(){return AI({})}bo.emptyResource=uTe;function cTe(){return AI({[Da.ATTR_SERVICE_NAME]:(0,iTe.defaultServiceName)(),[Da.ATTR_TELEMETRY_SDK_LANGUAGE]:SI.SDK_INFO[Da.ATTR_TELEMETRY_SDK_LANGUAGE],[Da.ATTR_TELEMETRY_SDK_NAME]:SI.SDK_INFO[Da.ATTR_TELEMETRY_SDK_NAME],[Da.ATTR_TELEMETRY_SDK_VERSION]:SI.SDK_INFO[Da.ATTR_TELEMETRY_SDK_VERSION]})}bo.defaultResource=cTe;function c6(t){return t.map(([e,n])=>(0,Up.isPromiseLike)(n)?[e,n.catch(r=>{Bp.diag.debug("promise rejection for resource attribute: %s - %s",e,r)})]:[e,n])}function lTe(t){if(typeof t=="string"||t===void 0)return t;Bp.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function dTe(t,e){let n=t?.schemaUrl,r=e?.schemaUrl,o=n===void 0||n==="",s=r===void 0||r==="";if(o)return r;if(s||n===r)return n;Bp.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,r)}});var d6=T(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.detectResources=void 0;var l6=(P(),N(L)),bI=yI(),pTe=(t={})=>(t.detectors||[]).map(n=>{try{let r=(0,bI.resourceFromDetectedResource)(n.detect(t));return l6.diag.debug(`${n.constructor.name} found resource.`,r),r}catch(r){return l6.diag.debug(`${n.constructor.name} failed: ${r.message}`),(0,bI.emptyResource)()}}).reduce((n,r)=>n.merge(r),(0,bI.emptyResource)());dg.detectResources=pTe});var f6=T(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.envDetector=void 0;var fTe=(P(),N(L)),mTe=(de(),N(Ie)),p6=Ae(),RI=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(e){let n={},r=(0,p6.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),o=(0,p6.getStringFromEnv)("OTEL_SERVICE_NAME");if(r)try{let s=this._parseResourceAttributes(r);Object.assign(n,s)}catch(s){fTe.diag.debug(`EnvDetector failed: ${s instanceof Error?s.message:s}`)}return o&&(n[mTe.ATTR_SERVICE_NAME]=o),{attributes:n}}_parseResourceAttributes(e){if(!e)return{};let n={},r=e.split(this._COMMA_SEPARATOR);for(let o of r){let s=o.split(this._LABEL_KEY_VALUE_SPLITTER);if(s.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${o}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[i,a]=s,u=i.trim(),l=a.trim();if(u.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${o}".`);let d,p;try{d=decodeURIComponent(u),p=decodeURIComponent(l)}catch(f){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${o}": ${f instanceof Error?f.message:f}`)}if(d.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${d}".`);if(p.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${d}".`);n[d]=p}return n}};pg.envDetector=new RI});var Fp=T(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.ATTR_WEBENGINE_VERSION=w.ATTR_WEBENGINE_NAME=w.ATTR_WEBENGINE_DESCRIPTION=w.ATTR_SERVICE_NAMESPACE=w.ATTR_SERVICE_INSTANCE_ID=w.ATTR_PROCESS_RUNTIME_VERSION=w.ATTR_PROCESS_RUNTIME_NAME=w.ATTR_PROCESS_RUNTIME_DESCRIPTION=w.ATTR_PROCESS_PID=w.ATTR_PROCESS_OWNER=w.ATTR_PROCESS_EXECUTABLE_PATH=w.ATTR_PROCESS_EXECUTABLE_NAME=w.ATTR_PROCESS_COMMAND_ARGS=w.ATTR_PROCESS_COMMAND=w.ATTR_OS_VERSION=w.ATTR_OS_TYPE=w.ATTR_K8S_POD_NAME=w.ATTR_K8S_NAMESPACE_NAME=w.ATTR_K8S_DEPLOYMENT_NAME=w.ATTR_K8S_CLUSTER_NAME=w.ATTR_HOST_TYPE=w.ATTR_HOST_NAME=w.ATTR_HOST_IMAGE_VERSION=w.ATTR_HOST_IMAGE_NAME=w.ATTR_HOST_IMAGE_ID=w.ATTR_HOST_ID=w.ATTR_HOST_ARCH=w.ATTR_CONTAINER_NAME=w.ATTR_CONTAINER_IMAGE_TAGS=w.ATTR_CONTAINER_IMAGE_NAME=w.ATTR_CONTAINER_ID=w.ATTR_CLOUD_REGION=w.ATTR_CLOUD_PROVIDER=w.ATTR_CLOUD_AVAILABILITY_ZONE=w.ATTR_CLOUD_ACCOUNT_ID=void 0;w.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";w.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";w.ATTR_CLOUD_PROVIDER="cloud.provider";w.ATTR_CLOUD_REGION="cloud.region";w.ATTR_CONTAINER_ID="container.id";w.ATTR_CONTAINER_IMAGE_NAME="container.image.name";w.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";w.ATTR_CONTAINER_NAME="container.name";w.ATTR_HOST_ARCH="host.arch";w.ATTR_HOST_ID="host.id";w.ATTR_HOST_IMAGE_ID="host.image.id";w.ATTR_HOST_IMAGE_NAME="host.image.name";w.ATTR_HOST_IMAGE_VERSION="host.image.version";w.ATTR_HOST_NAME="host.name";w.ATTR_HOST_TYPE="host.type";w.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";w.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";w.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";w.ATTR_K8S_POD_NAME="k8s.pod.name";w.ATTR_OS_TYPE="os.type";w.ATTR_OS_VERSION="os.version";w.ATTR_PROCESS_COMMAND="process.command";w.ATTR_PROCESS_COMMAND_ARGS="process.command_args";w.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";w.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";w.ATTR_PROCESS_OWNER="process.owner";w.ATTR_PROCESS_PID="process.pid";w.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";w.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";w.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";w.ATTR_SERVICE_INSTANCE_ID="service.instance.id";w.ATTR_SERVICE_NAMESPACE="service.namespace";w.ATTR_WEBENGINE_DESCRIPTION="webengine.description";w.ATTR_WEBENGINE_NAME="webengine.name";w.ATTR_WEBENGINE_VERSION="webengine.version"});var mg=T(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.execAsync=void 0;var _Te=U("child_process"),hTe=U("util");fg.execAsync=hTe.promisify(_Te.exec)});var m6=T(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.getMachineId=void 0;var gTe=mg(),TTe=(P(),N(L));async function ETe(){try{let e=(await(0,gTe.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
7
|
+
`).map(e=>e.trim()).join(" ")};c3.O=function(t){return this.inspectOpts.colors=this.useColors,k_.inspect(t,this.inspectOpts)}});var d3=T((S4e,Wy)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Wy.exports=r3():Wy.exports=l3()});var w_=T((A4e,p3)=>{"use strict";var Ky=U("path").sep;p3.exports=function(t){var e=t.split(Ky),n=e.lastIndexOf("node_modules");if(n!==-1&&e[n+1]){for(var r=e[n+1][0]==="@",o=r?e[n+1]+"/"+e[n+2]:e[n+1],s=r?3:2,i="",a=n+s-1,u=0;u<=a;u++)u===a?i+=e[u]:i+=e[u]+Ky;for(var l="",d=e.length-1,p=n+s;p<=d;p++)p===d?l+=e[p]:l+=e[p]+Ky;return{name:o,basedir:i,path:l}}}});var fa=T((y4e,Xy)=>{"use strict";var Xu=U("path"),Gr=U("module"),et=d3()("require-in-the-middle"),Yde=w_();Xy.exports=jd;Xy.exports.Hook=jd;var Qy,D_;if(Gr.isBuiltin)D_=Gr.isBuiltin;else if(Gr.builtinModules)D_=t=>t.startsWith("node:")?!0:(Qy===void 0&&(Qy=new Set(Gr.builtinModules)),Qy.has(t));else throw new Error("'require-in-the-middle' requires Node.js >=v9.3.0 or >=v8.10.0");var Wde=/([/\\]index)?(\.js)?$/,Jy=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol("RitmExports")}has(e,n){if(this._localCache.has(e))return!0;if(n)return!1;{let r=U.cache[e];return!!(r&&this._kRitmExports in r)}}get(e,n){let r=this._localCache.get(e);if(r!==void 0)return r;if(!n){let o=U.cache[e];return o&&o[this._kRitmExports]}}set(e,n,r){r?this._localCache.set(e,n):e in U.cache?U.cache[e][this._kRitmExports]=n:(et('non-core module is unexpectedly not in require.cache: "%s"',e),this._localCache.set(e,n))}};function jd(t,e,n){if(!(this instanceof jd))return new jd(t,e,n);if(typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),typeof Gr._resolveFilename!="function"){console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!",typeof Gr._resolveFilename),console.error("Please report this error as an issue related to Node.js %s at https://github.com/nodejs/require-in-the-middle/issues",process.version);return}this._cache=new Jy,this._unhooked=!1,this._origRequire=Gr.prototype.require;let r=this,o=new Set,s=e?e.internals===!0:!1,i=Array.isArray(t);et("registering require hook"),this._require=Gr.prototype.require=function(u){return r._unhooked===!0?(et("ignoring require call - module is soft-unhooked"),r._origRequire.apply(this,arguments)):a.call(this,arguments,!1)},typeof process.getBuiltinModule=="function"&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(u){return r._unhooked===!0?(et("ignoring process.getBuiltinModule call - module is soft-unhooked"),r._origGetBuiltinModule.apply(this,arguments)):a.call(this,arguments,!0)});function a(u,l){let d=u[0],p=D_(d),f;if(p){if(f=d,d.startsWith("node:")){let S=d.slice(5);D_(S)&&(f=S)}}else{if(l)return et("call to process.getBuiltinModule with unknown built-in id"),r._origGetBuiltinModule.apply(this,u);try{f=Gr._resolveFilename(d,this)}catch(S){return et('Module._resolveFilename("%s") threw %j, calling original Module.require',d,S.message),r._origRequire.apply(this,u)}}let m,_;if(et("processing %s module require('%s'): %s",p===!0?"core":"non-core",d,f),r._cache.has(f,p)===!0)return et("returning already patched cached module: %s",f),r._cache.get(f,p);let h=o.has(f);h===!1&&o.add(f);let g=l?r._origGetBuiltinModule.apply(this,u):r._origRequire.apply(this,u);if(h===!0)return et("module is in the process of being patched already - ignoring: %s",f),g;if(o.delete(f),p===!0){if(i===!0&&t.includes(f)===!1)return et("ignoring core module not on whitelist: %s",f),g;m=f}else if(i===!0&&t.includes(f)){let S=Xu.parse(f);m=S.name,_=S.dir}else{let S=Yde(f);if(S===void 0)return et("could not parse filename: %s",f),g;m=S.name,_=S.basedir;let b=Kde(S);et("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)",m,d,b,_);let R=!1;if(i){if(!d.startsWith(".")&&t.includes(d)&&(m=d,R=!0),!t.includes(m)&&!t.includes(b))return g;t.includes(b)&&b!==m&&(m=b,R=!0)}if(!R){let I;try{I=U.resolve(m,{paths:[_]})}catch{return et("could not resolve module: %s",m),r._cache.set(f,g,p),g}if(I!==f)if(s===!0)m=m+Xu.sep+Xu.relative(_,f),et("preparing to process require of internal file: %s",m);else return et("ignoring require of non-main module file: %s",I),r._cache.set(f,g,p),g}}r._cache.set(f,g,p),et("calling require hook: %s",m);let E=n(g,m,_);return r._cache.set(f,E,p),et("returning module: %s",m),E}}jd.prototype.unhook=function(){this._unhooked=!0,this._require===Gr.prototype.require?(Gr.prototype.require=this._origRequire,et("require unhook successful")):et("require unhook unsuccessful"),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,et("process.getBuiltinModule unhook successful")):et("process.getBuiltinModule unhook unsuccessful"))};function Kde(t){let e=Xu.sep!=="/"?t.path.split(Xu.sep).join("/"):t.path;return Xu.posix.join(t.name,e).replace(Wde,"")}});var f3=T(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ModuleNameTrie=js.ModuleNameSeparator=void 0;js.ModuleNameSeparator="/";var U_=class{hooks=[];children=new Map},Zy=class{_trie=new U_;_counter=0;insert(e){let n=this._trie;for(let r of e.moduleName.split(js.ModuleNameSeparator)){let o=n.children.get(r);o||(o=new U_,n.children.set(r,o)),n=o}n.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:n,fullOnly:r}={}){let o=this._trie,s=[],i=!0;for(let a of e.split(js.ModuleNameSeparator)){let u=o.children.get(a);if(!u){i=!1;break}r||s.push(...u.hooks),o=u}return r&&i&&s.push(...o.hooks),s.length===0?[]:s.length===1?[s[0].hook]:(n&&s.sort((a,u)=>a.insertedId-u.insertedId),s.map(({hook:a})=>a))}};js.ModuleNameTrie=Zy});var _3=T(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0});B_.RequireInTheMiddleSingleton=void 0;var Qde=fa(),m3=U("path"),eb=f3(),Jde=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),tb=class t{_moduleNameTrie=new eb.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new Qde.Hook(null,{internals:!0},(e,n,r)=>{let o=Xde(n),s=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:r===void 0});for(let{onRequire:i}of s)e=i(e,n,r);return e})}register(e,n){let r={moduleName:e,onRequire:n};return this._moduleNameTrie.insert(r),r}static getInstance(){return Jde?new t:this._instance=this._instance??new t}};B_.RequireInTheMiddleSingleton=tb;function Xde(t){return m3.sep!==eb.ModuleNameSeparator?t.split(m3.sep).join(eb.ModuleNameSeparator):t}});var S3=T(Hd=>{var h3=[],nb=new WeakMap,g3=new WeakMap,T3=new Map,E3=[],Zde={set(t,e,n){let r=nb.get(t),o=r&&r[e];return typeof o=="function"?o(n):!0},get(t,e){if(e===Symbol.toStringTag)return"Module";let n=g3.get(t)[e];if(typeof n=="function")return n()},defineProperty(t,e,n){if(!("value"in n))throw new Error("Getters/setters are not supported for exports property descriptors.");let r=nb.get(t),o=r&&r[e];return typeof o=="function"?o(n.value):!0}};function epe(t,e,n,r,o){T3.set(t,o),nb.set(e,n),g3.set(e,r);let s=new Proxy(e,Zde);h3.forEach(i=>i(t,s,o)),E3.push([t,s,o])}Hd.register=epe;Hd.importHooks=h3;Hd.specifiers=T3;Hd.toHook=E3});var ib=T((C4e,ec)=>{var A3=U("path"),tpe=w_(),{fileURLToPath:npe}=U("url"),{MessageChannel:rpe}=U("worker_threads"),{isBuiltin:rb}=U("module");rb||(rb=()=>!0);var{importHooks:ob,specifiers:ope,toHook:spe}=S3();function y3(t){ob.push(t),spe.forEach(([e,n,r])=>t(e,n,r))}function b3(t){let e=ob.indexOf(t);e>-1&&ob.splice(e,1)}function Zu(t,e,n,r){let o=t(e,n,r);o&&o!==e&&"default"in e&&(e.default=o)}var sb;function ipe(){let{port1:t,port2:e}=new rpe,n=0,r;sb=a=>{n++,t.postMessage(a)},t.on("message",()=>{n--,r&&n<=0&&r()}).unref();function o(){let a=setInterval(()=>{},1e3),u=new Promise(l=>{r=l}).then(()=>{clearInterval(a)});return n===0&&r(),u}let s=e;return{registerOptions:{data:{addHookMessagePort:s,include:[]},transferList:[s]},addHookMessagePort:s,waitForAllMessagesAcknowledged:o}}function Vd(t,e,n){if(!(this instanceof Vd))return new Vd(t,e,n);typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null);let r=e?e.internals===!0:!1;sb&&Array.isArray(t)&&sb(t),this._iitmHook=(o,s,i)=>{let a=o,u=a.startsWith("node:"),l,d;if(u){let p=o.slice(5);rb(p)&&(o=p)}else if(a.startsWith("file://")){let p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{l=npe(o),o=l}catch{}if(Error.stackTraceLimit=p,l){let f=tpe(l);f&&(o=f.name,d=f.basedir)}}if(t)for(let p of t)if(l&&p===l)Zu(n,s,l,void 0);else if(p===o){if(!d)Zu(n,s,o,d);else if(d.endsWith(ope.get(a)))Zu(n,s,o,d);else if(r){let f=o+A3.sep+A3.relative(d,l);Zu(n,s,f,d)}}else p===i&&Zu(n,s,i,d);else Zu(n,s,o,d)},y3(this._iitmHook)}Vd.prototype.unhook=function(){b3(this._iitmHook)};ec.exports=Vd;ec.exports.Hook=Vd;ec.exports.addHook=y3;ec.exports.removeHook=b3;ec.exports.createAddHookMessageChannel=ipe});var ab=T(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.isWrapped=Hs.safeExecuteInTheMiddleAsync=Hs.safeExecuteInTheMiddle=void 0;function ape(t,e,n){let r,o;try{o=t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}Hs.safeExecuteInTheMiddle=ape;async function upe(t,e,n){let r,o;try{o=await t()}catch(s){r=s}finally{if(await e(r,o),r&&!n)throw r;return o}}Hs.safeExecuteInTheMiddleAsync=upe;function cpe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Hs.isWrapped=cpe});var O3=T(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.InstrumentationBase=void 0;var qd=U("path"),R3=U("util"),lpe=XB(),ub=Hy(),dpe=ZB(),ppe=_3(),fpe=ib(),$d=(P(),N(L)),mpe=fa(),_pe=U("fs"),hpe=ab(),cb=class extends dpe.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=ppe.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,n,r){super(e,n,r);let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_wrap=(e,n,r)=>{if((0,hpe.isWrapped)(e[n])&&this._unwrap(e,n),R3.types.isProxy(e)){let o=(0,ub.wrap)(Object.assign({},e),n,r);return Object.defineProperty(e,n,{value:o}),o}else return(0,ub.wrap)(e,n,r)};_unwrap=(e,n)=>R3.types.isProxy(e)?Object.defineProperty(e,n,{value:e[n]}):(0,ub.unwrap)(e,n);_massWrap=(e,n,r)=>{if(e)Array.isArray(e)||(e=[e]);else{$d.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){$d.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(o=>{n.forEach(s=>{this._wrap(o,s,r)})})};_massUnwrap=(e,n)=>{if(e)Array.isArray(e)||(e=[e]);else{$d.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){$d.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(r=>{n.forEach(o=>{this._unwrap(r,o)})})};_warnOnPreloadedModules(){let e=globalThis.require;!e?.resolve||!e?.cache||this._modules.forEach(n=>{let{name:r}=n;try{let o=e.resolve(r);e.cache[o]?.loaded&&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 n=(0,_pe.readFileSync)(qd.join(e,"package.json"),{encoding:"utf8"}),r=JSON.parse(n).version;return typeof r=="string"?r:void 0}catch{$d.diag.warn("Failed extracting version",e)}}_onRequire(e,n,r,o){if(!o)return typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(n)):n;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===r)return I3(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(n,e.moduleVersion)):n;let i=e.files??[],a=qd.normalize(r);return i.filter(l=>l.name===a&&I3(l.supportedVersions,s,e.includePrerelease)).reduce((l,d)=>(d.moduleExports=l,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:d.name,baseDir:o}),d.patch(l,e.moduleVersion)):l),n)}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 n of e.files)n.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.patch(n.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let n=(i,a,u)=>{if(!u&&qd.isAbsolute(a)){let l=qd.parse(a);a=l.name,u=l.dir}return this._onRequire(e,i,a,u)},r=(i,a,u)=>this._onRequire(e,i,a,u),o=qd.isAbsolute(e.name)?new mpe.Hook([e.name],{internals:!0},r):this._requireInTheMiddleSingleton.register(e.name,r);this._hooks.push(o);let s=new fpe.Hook([e.name],{internals:!0},n);this._hooks.push(s)}}}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 n of e.files)n.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.unpatch(n.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};F_.InstrumentationBase=cb;function I3(t,e,n){return typeof e>"u"?t.includes("*"):t.some(r=>(0,lpe.satisfies)(e,r,{includePrerelease:n}))}});var C3=T(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.normalize=void 0;var gpe=U("path");Object.defineProperty(G_,"normalize",{enumerable:!0,get:function(){return gpe.normalize}})});var N3=T(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.normalize=tc.InstrumentationBase=void 0;var Tpe=O3();Object.defineProperty(tc,"InstrumentationBase",{enumerable:!0,get:function(){return Tpe.InstrumentationBase}});var Epe=C3();Object.defineProperty(tc,"normalize",{enumerable:!0,get:function(){return Epe.normalize}})});var lb=T(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.normalize=nc.InstrumentationBase=void 0;var x3=N3();Object.defineProperty(nc,"InstrumentationBase",{enumerable:!0,get:function(){return x3.InstrumentationBase}});Object.defineProperty(nc,"normalize",{enumerable:!0,get:function(){return x3.normalize}})});var P3=T(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.InstrumentationNodeModuleDefinition=void 0;var db=class{files;name;supportedVersions;patch;unpatch;constructor(e,n,r,o,s){this.files=s||[],this.name=e,this.supportedVersions=n,this.patch=r,this.unpatch=o}};j_.InstrumentationNodeModuleDefinition=db});var M3=T(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.InstrumentationNodeModuleFile=void 0;var Spe=lb(),pb=class{name;supportedVersions;patch;unpatch;constructor(e,n,r,o){this.name=(0,Spe.normalize)(e),this.supportedVersions=n,this.patch=r,this.unpatch=o}};H_.InstrumentationNodeModuleFile=pb});var v3=T(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.semconvStabilityFromStr=ma.SemconvStability=void 0;var V_;(function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"})(V_=ma.SemconvStability||(ma.SemconvStability={}));function Ape(t,e){let n=V_.OLD,r=e?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(let o of r??[])if(o.toLowerCase()===t+"/dup"){n=V_.DUPLICATE;break}else o.toLowerCase()===t&&(n=V_.STABLE);return n}ma.semconvStabilityFromStr=Ape});var re=T(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.semconvStabilityFromStr=ct.SemconvStability=ct.safeExecuteInTheMiddleAsync=ct.safeExecuteInTheMiddle=ct.isWrapped=ct.InstrumentationNodeModuleFile=ct.InstrumentationNodeModuleDefinition=ct.InstrumentationBase=ct.registerInstrumentations=void 0;var ype=VB();Object.defineProperty(ct,"registerInstrumentations",{enumerable:!0,get:function(){return ype.registerInstrumentations}});var bpe=lb();Object.defineProperty(ct,"InstrumentationBase",{enumerable:!0,get:function(){return bpe.InstrumentationBase}});var Rpe=P3();Object.defineProperty(ct,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return Rpe.InstrumentationNodeModuleDefinition}});var Ipe=M3();Object.defineProperty(ct,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return Ipe.InstrumentationNodeModuleFile}});var fb=ab();Object.defineProperty(ct,"isWrapped",{enumerable:!0,get:function(){return fb.isWrapped}});Object.defineProperty(ct,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return fb.safeExecuteInTheMiddle}});Object.defineProperty(ct,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return fb.safeExecuteInTheMiddleAsync}});var k3=v3();Object.defineProperty(ct,"SemconvStability",{enumerable:!0,get:function(){return k3.SemconvStability}});Object.defineProperty(ct,"semconvStabilityFromStr",{enumerable:!0,get:function(){return k3.semconvStabilityFromStr}})});var L3=T($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.HTTP_FLAVOR_VALUE_HTTP_1_1=$.NET_TRANSPORT_VALUE_IP_UDP=$.NET_TRANSPORT_VALUE_IP_TCP=$.ATTR_NET_TRANSPORT=$.ATTR_NET_PEER_PORT=$.ATTR_NET_PEER_NAME=$.ATTR_NET_PEER_IP=$.ATTR_NET_HOST_PORT=$.ATTR_NET_HOST_NAME=$.ATTR_NET_HOST_IP=$.ATTR_HTTP_USER_AGENT=$.ATTR_HTTP_URL=$.ATTR_HTTP_TARGET=$.ATTR_HTTP_STATUS_CODE=$.ATTR_HTTP_SERVER_NAME=$.ATTR_HTTP_SCHEME=$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=$.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=$.ATTR_HTTP_REQUEST_CONTENT_LENGTH=$.ATTR_HTTP_METHOD=$.ATTR_HTTP_HOST=$.ATTR_HTTP_FLAVOR=$.ATTR_HTTP_CLIENT_IP=$.USER_AGENT_SYNTHETIC_TYPE_VALUE_TEST=$.USER_AGENT_SYNTHETIC_TYPE_VALUE_BOT=$.ATTR_USER_AGENT_SYNTHETIC_TYPE=void 0;$.ATTR_USER_AGENT_SYNTHETIC_TYPE="user_agent.synthetic.type";$.USER_AGENT_SYNTHETIC_TYPE_VALUE_BOT="bot";$.USER_AGENT_SYNTHETIC_TYPE_VALUE_TEST="test";$.ATTR_HTTP_CLIENT_IP="http.client_ip";$.ATTR_HTTP_FLAVOR="http.flavor";$.ATTR_HTTP_HOST="http.host";$.ATTR_HTTP_METHOD="http.method";$.ATTR_HTTP_REQUEST_CONTENT_LENGTH="http.request_content_length";$.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed";$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length";$.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED="http.response_content_length_uncompressed";$.ATTR_HTTP_SCHEME="http.scheme";$.ATTR_HTTP_SERVER_NAME="http.server_name";$.ATTR_HTTP_STATUS_CODE="http.status_code";$.ATTR_HTTP_TARGET="http.target";$.ATTR_HTTP_URL="http.url";$.ATTR_HTTP_USER_AGENT="http.user_agent";$.ATTR_NET_HOST_IP="net.host.ip";$.ATTR_NET_HOST_NAME="net.host.name";$.ATTR_NET_HOST_PORT="net.host.port";$.ATTR_NET_PEER_IP="net.peer.ip";$.ATTR_NET_PEER_NAME="net.peer.name";$.ATTR_NET_PEER_PORT="net.peer.port";$.ATTR_NET_TRANSPORT="net.transport";$.NET_TRANSPORT_VALUE_IP_TCP="ip_tcp";$.NET_TRANSPORT_VALUE_IP_UDP="ip_udp";$.HTTP_FLAVOR_VALUE_HTTP_1_1="1.1"});var w3=T(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.AttributeNames=void 0;var Ope;(function(t){t.HTTP_ERROR_NAME="http.error_name",t.HTTP_ERROR_MESSAGE="http.error_message",t.HTTP_STATUS_TEXT="http.status_text"})(Ope=zd.AttributeNames||(zd.AttributeNames={}))});var mb=T(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DEFAULT_QUERY_STRINGS_TO_REDACT=ho.STR_REDACTED=ho.SYNTHETIC_BOT_NAMES=ho.SYNTHETIC_TEST_NAMES=void 0;ho.SYNTHETIC_TEST_NAMES=["alwayson"];ho.SYNTHETIC_BOT_NAMES=["googlebot","bingbot"];ho.STR_REDACTED="REDACTED";ho.DEFAULT_QUERY_STRINGS_TO_REDACT=["sig","Signature","AWSAccessKeyId","X-Goog-Signature"]});var U3=T((G4e,D3)=>{"use strict";var Cpe=U("util");function _b(t,e){Error.captureStackTrace(this,_b),this.name=this.constructor.name,this.message=t,this.input=e}Cpe.inherits(_b,Error);D3.exports=_b});var F3=T((j4e,B3)=>{"use strict";function Npe(t){return t===34||t===40||t===41||t===44||t===47||t>=58&&t<=64||t>=91&&t<=93||t===123||t===125}function xpe(t){return t===33||t>=35&&t<=39||t===42||t===43||t===45||t===46||t>=48&&t<=57||t>=65&&t<=90||t>=94&&t<=122||t===124||t===126}function Ppe(t){return t>=32&&t<=126}function Mpe(t){return t>=128&&t<=255}B3.exports={isDelimiter:Npe,isTokenChar:xpe,isExtended:Mpe,isPrint:Ppe}});var q3=T((H4e,V3)=>{"use strict";var vpe=U("util"),rc=U3(),q_=F3(),kpe=q_.isDelimiter,G3=q_.isTokenChar,j3=q_.isExtended,Lpe=q_.isPrint;function H3(t){return t.replace(/\\(.)/g,"$1")}function Yd(t,e){return vpe.format("Unexpected character '%s' at index %d",t.charAt(e),e)}function wpe(t){for(var e=!1,n=!1,r=!1,o={},s=[],i=-1,a=-1,u,l,d=0;d<t.length;d++)if(l=t.charCodeAt(d),u===void 0){if(d!==0&&i===-1&&(l===32||l===9))continue;if(G3(l))i===-1&&(i=d);else if(l===61&&i!==-1)u=t.slice(i,d).toLowerCase(),i=-1;else throw new rc(Yd(t,d),t)}else if(n&&(l===9||Lpe(l)||j3(l)))n=!1;else if(G3(l)){if(a!==-1)throw new rc(Yd(t,d),t);i===-1&&(i=d)}else if(kpe(l)||j3(l))if(r)l===34?(r=!1,a=d):l===92?(i===-1&&(i=d),n=e=!0):i===-1&&(i=d);else if(l===34&&t.charCodeAt(d-1)===61)r=!0;else if((l===44||l===59)&&(i!==-1||a!==-1))i!==-1?(a===-1&&(a=d),o[u]=e?H3(t.slice(i,a)):t.slice(i,a)):o[u]="",l===44&&(s.push(o),o={}),u=void 0,i=a=-1;else throw new rc(Yd(t,d),t);else if(l===32||l===9){if(a!==-1)continue;if(r)i===-1&&(i=d);else if(i!==-1)a=d;else throw new rc(Yd(t,d),t)}else throw new rc(Yd(t,d),t);if(u===void 0||r||i===-1&&a===-1||l===32||l===9)throw new rc("Unexpected end of input",t);return i!==-1?(a===-1&&(a=d),o[u]=e?H3(t.slice(i,a)):t.slice(i,a)):o[u]="",s.push(o),s}V3.exports=wpe});var Z3=T(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.headerCapture=z.getIncomingStableRequestMetricAttributesOnResponse=z.getIncomingRequestMetricAttributesOnResponse=z.getIncomingRequestAttributesOnResponse=z.getIncomingRequestMetricAttributes=z.getIncomingRequestAttributes=z.getRemoteClientAddress=z.getOutgoingStableRequestMetricAttributesOnResponse=z.getOutgoingRequestMetricAttributesOnResponse=z.getOutgoingRequestAttributesOnResponse=z.setAttributesFromHttpKind=z.getOutgoingRequestMetricAttributes=z.getOutgoingRequestAttributes=z.extractHostnameAndPort=z.isValidOptionsType=z.getRequestInfo=z.isCompressed=z.setResponseContentLengthAttribute=z.setRequestContentLengthAttribute=z.setSpanWithError=z.satisfiesPattern=z.parseResponseStatus=z.getAbsoluteUrl=void 0;var Wd=(P(),N(L)),ue=(de(),N(Ie)),q=L3(),$3=Ae(),Kn=re(),Dpe=U("url"),z_=w3(),z3=mb(),$_=mb(),Upe=q3(),Bpe=(t,e,n="http:",r=Array.from($_.DEFAULT_QUERY_STRINGS_TO_REDACT))=>{let o=t||{},s=o.protocol||n,i=(o.port||"").toString(),a=o.path||"/",u=o.host||o.hostname||e.host||"localhost";if(u.indexOf(":")===-1&&i&&i!=="80"&&i!=="443"&&(u+=`:${i}`),a.includes("?"))try{let d=new URL(a,"http://localhost"),p=r||[];for(let f of p)d.searchParams.get(f)&&d.searchParams.set(f,$_.STR_REDACTED);a=`${d.pathname}${d.search}`}catch{}let l=o.auth?`${$_.STR_REDACTED}:${$_.STR_REDACTED}@`:"";return`${s}//${l}${u}${a}`};z.getAbsoluteUrl=Bpe;var Fpe=(t,e)=>{let n=t===Wd.SpanKind.CLIENT?400:500;return e&&e>=100&&e<n?Wd.SpanStatusCode.UNSET:Wd.SpanStatusCode.ERROR};z.parseResponseStatus=Fpe;var Gpe=(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")};z.satisfiesPattern=Gpe;var jpe=(t,e,n)=>{let r=e.message;n&Kn.SemconvStability.OLD&&(t.setAttribute(z_.AttributeNames.HTTP_ERROR_NAME,e.name),t.setAttribute(z_.AttributeNames.HTTP_ERROR_MESSAGE,r)),n&Kn.SemconvStability.STABLE&&t.setAttribute(ue.ATTR_ERROR_TYPE,e.name),t.setStatus({code:Wd.SpanStatusCode.ERROR,message:r}),t.recordException(e)};z.setSpanWithError=jpe;var Hpe=(t,e)=>{let n=W3(t.headers);n!==null&&((0,z.isCompressed)(t.headers)?e[q.ATTR_HTTP_REQUEST_CONTENT_LENGTH]=n:e[q.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]=n)};z.setRequestContentLengthAttribute=Hpe;var Vpe=(t,e)=>{let n=W3(t.headers);n!==null&&((0,z.isCompressed)(t.headers)?e[q.ATTR_HTTP_RESPONSE_CONTENT_LENGTH]=n:e[q.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]=n)};z.setResponseContentLengthAttribute=Vpe;function W3(t){let e=t["content-length"];if(e===void 0)return null;let n=parseInt(e,10);return isNaN(n)?null:n}var qpe=t=>{let e=t["content-encoding"];return!!e&&e!=="identity"};z.isCompressed=qpe;function $pe(t){let{hostname:e,pathname:n,port:r,username:o,password:s,search:i,protocol:a,hash:u,href:l,origin:d,host:p}=new URL(t),f={protocol:a,hostname:e&&e[0]==="["?e.slice(1,-1):e,hash:u,search:i,pathname:n,path:`${n||""}${i||""}`,href:l,origin:d,host:p};return r!==""&&(f.port=Number(r)),(o||s)&&(f.auth=`${decodeURIComponent(o)}:${decodeURIComponent(s)}`),f}var zpe=(t,e,n)=>{let r,o,s,i=!1;if(typeof e=="string"){try{let u=$pe(e);s=u,r=u.pathname||"/"}catch(u){i=!0,t.verbose("Unable to parse URL provided to HTTP request, using fallback to determine path. Original error:",u),s={path:e},r=s.path||"/"}o=`${s.protocol||"http:"}//${s.host}`,n!==void 0&&Object.assign(s,n)}else if(e instanceof Dpe.URL)s={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,path:`${e.pathname||""}${e.search||""}`},e.port!==""&&(s.port=Number(e.port)),(e.username||e.password)&&(s.auth=`${e.username}:${e.password}`),r=e.pathname,o=e.origin,n!==void 0&&Object.assign(s,n);else{s=Object.assign({protocol:e.host?"http:":void 0},e);let u=s.host||(s.port!=null?`${s.hostname}${s.port}`:s.hostname);if(o=`${s.protocol||"http:"}//${u}`,r=e.pathname,!r&&s.path)try{r=new URL(s.path,o).pathname||"/"}catch{r="/"}}let a=s.method?s.method.toUpperCase():"GET";return{origin:o,pathname:r,method:a,optionsParsed:s,invalidUrl:i}};z.getRequestInfo=zpe;var Ype=t=>{if(!t)return!1;let e=typeof t;return e==="string"||e==="object"&&!Array.isArray(t)};z.isValidOptionsType=Ype;var Wpe=t=>{if(t.hostname&&t.port)return{hostname:t.hostname,port:t.port};let e=t.host?.match(/^([^:/ ]+)(:\d{1,5})?/)||null,n=t.hostname||(e===null?"localhost":e[1]),r=t.port;return r||(e&&e[2]?r=e[2].substring(1):r=t.protocol==="https:"?"443":"80"),{hostname:n,port:r}};z.extractHostnameAndPort=Wpe;var Kpe=(t,e,n,r)=>{let o=e.hostname,s=e.port,i=t.method??"GET",a=J3(i),u=t.headers||{},l=u["user-agent"],d=(0,z.getAbsoluteUrl)(t,u,`${e.component}:`,e.redactedQueryParams),p={[q.ATTR_HTTP_URL]:d,[q.ATTR_HTTP_METHOD]:i,[q.ATTR_HTTP_TARGET]:t.path||"/",[q.ATTR_NET_PEER_NAME]:o,[q.ATTR_HTTP_HOST]:u.host??`${o}:${s}`},f={[ue.ATTR_HTTP_REQUEST_METHOD]:a,[ue.ATTR_SERVER_ADDRESS]:o,[ue.ATTR_SERVER_PORT]:Number(s),[ue.ATTR_URL_FULL]:d,[ue.ATTR_USER_AGENT_ORIGINAL]:l};switch(i!==a&&(f[ue.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=i),r&&l&&(f[q.ATTR_USER_AGENT_SYNTHETIC_TYPE]=K3(l)),l!==void 0&&(p[q.ATTR_HTTP_USER_AGENT]=l),n){case Kn.SemconvStability.STABLE:return Object.assign(f,e.hookAttributes);case Kn.SemconvStability.OLD:return Object.assign(p,e.hookAttributes)}return Object.assign(p,f,e.hookAttributes)};z.getOutgoingRequestAttributes=Kpe;var Qpe=t=>{let e={};return e[q.ATTR_HTTP_METHOD]=t[q.ATTR_HTTP_METHOD],e[q.ATTR_NET_PEER_NAME]=t[q.ATTR_NET_PEER_NAME],e};z.getOutgoingRequestMetricAttributes=Qpe;var Jpe=(t,e)=>{t&&(e[q.ATTR_HTTP_FLAVOR]=t,t.toUpperCase()!=="QUIC"?e[q.ATTR_NET_TRANSPORT]=q.NET_TRANSPORT_VALUE_IP_TCP:e[q.ATTR_NET_TRANSPORT]=q.NET_TRANSPORT_VALUE_IP_UDP)};z.setAttributesFromHttpKind=Jpe;var K3=t=>{let e=String(t).toLowerCase();for(let n of z3.SYNTHETIC_TEST_NAMES)if(e.includes(n))return q.USER_AGENT_SYNTHETIC_TYPE_VALUE_TEST;for(let n of z3.SYNTHETIC_BOT_NAMES)if(e.includes(n))return q.USER_AGENT_SYNTHETIC_TYPE_VALUE_BOT},Xpe=(t,e)=>{let{statusCode:n,statusMessage:r,httpVersion:o,socket:s}=t,i={},a={};if(n!=null&&(a[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=n),s){let{remoteAddress:u,remotePort:l}=s;i[q.ATTR_NET_PEER_IP]=u,i[q.ATTR_NET_PEER_PORT]=l,a[ue.ATTR_NETWORK_PEER_ADDRESS]=u,a[ue.ATTR_NETWORK_PEER_PORT]=l,a[ue.ATTR_NETWORK_PROTOCOL_VERSION]=t.httpVersion}switch((0,z.setResponseContentLengthAttribute)(t,i),n&&(i[q.ATTR_HTTP_STATUS_CODE]=n,i[z_.AttributeNames.HTTP_STATUS_TEXT]=(r||"").toUpperCase()),(0,z.setAttributesFromHttpKind)(o,i),e){case Kn.SemconvStability.STABLE:return a;case Kn.SemconvStability.OLD:return i}return Object.assign(i,a)};z.getOutgoingRequestAttributesOnResponse=Xpe;var Zpe=t=>{let e={};return e[q.ATTR_NET_PEER_PORT]=t[q.ATTR_NET_PEER_PORT],e[q.ATTR_HTTP_STATUS_CODE]=t[q.ATTR_HTTP_STATUS_CODE],e[q.ATTR_HTTP_FLAVOR]=t[q.ATTR_HTTP_FLAVOR],e};z.getOutgoingRequestMetricAttributesOnResponse=Zpe;var efe=t=>{let e={};return t[ue.ATTR_NETWORK_PROTOCOL_VERSION]&&(e[ue.ATTR_NETWORK_PROTOCOL_VERSION]=t[ue.ATTR_NETWORK_PROTOCOL_VERSION]),t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]&&(e[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]),e};z.getOutgoingStableRequestMetricAttributesOnResponse=efe;function Vs(t,e){let n=t.split(":");if(n.length===1)return e==="http"?{host:n[0],port:"80"}:e==="https"?{host:n[0],port:"443"}:{host:n[0]};if(n.length===2)return{host:n[0],port:n[1]};if(n[0].startsWith("[")){if(n[n.length-1].endsWith("]")){if(e==="http")return{host:t,port:"80"};if(e==="https")return{host:t,port:"443"}}else if(n[n.length-2].endsWith("]"))return{host:n.slice(0,-1).join(":"),port:n[n.length-1]}}return{host:t}}function tfe(t,e){let n=t.headers.forwarded;if(n){for(let s of X3(n))if(s.host)return Vs(s.host,s.proto)}let r=t.headers["x-forwarded-host"];if(typeof r=="string")return typeof t.headers["x-forwarded-proto"]=="string"?Vs(r,t.headers["x-forwarded-proto"]):Array.isArray(t.headers["x-forwarded-proto"])?Vs(r,t.headers["x-forwarded-proto"][0]):Vs(r);if(Array.isArray(r)&&typeof r[0]=="string"&&r[0].length>0)return typeof t.headers["x-forwarded-proto"]=="string"?Vs(r[0],t.headers["x-forwarded-proto"]):Array.isArray(t.headers["x-forwarded-proto"])?Vs(r[0],t.headers["x-forwarded-proto"][0]):Vs(r[0]);let o=t.headers.host;return typeof o=="string"&&o.length>0?Vs(o,e):null}function Q3(t){let e=t.headers.forwarded;if(e){for(let o of X3(e))if(o.for)return Y3(o.for)}let n=t.headers["x-forwarded-for"];if(n){let o;if(typeof n=="string"?o=n:Array.isArray(n)&&(o=n[0]),typeof o=="string")return o=o.split(",")[0].trim(),Y3(o)}let r=t.socket.remoteAddress;return r||null}z.getRemoteClientAddress=Q3;function Y3(t){try{let{hostname:e}=new URL(`http://${t}`);return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e}catch{return t}}function nfe(t,e,n){try{if(e.headers.host)return new URL(e.url??"/",`${t}://${e.headers.host}`);{let r=new URL(e.url??"/",`${t}://localhost`);return{pathname:r.pathname,search:r.search,toString:function(){return r.pathname+r.search}}}}catch(r){return n.verbose("Unable to get URL from request",r),{}}}var rfe=(t,e,n)=>{let{component:r,enableSyntheticSourceDetection:o,hookAttributes:s,semconvStability:i,serverName:a}=e,{headers:u,httpVersion:l,method:d}=t,{host:p,"user-agent":f,"x-forwarded-for":m}=u,_=nfe(r,t,n),h,g;if(i!==Kn.SemconvStability.OLD){let E=J3(d),S=tfe(t,r),b=Q3(t);h={[ue.ATTR_HTTP_REQUEST_METHOD]:E,[ue.ATTR_URL_SCHEME]:r,[ue.ATTR_SERVER_ADDRESS]:S?.host,[ue.ATTR_NETWORK_PEER_ADDRESS]:t.socket.remoteAddress,[ue.ATTR_NETWORK_PEER_PORT]:t.socket.remotePort,[ue.ATTR_NETWORK_PROTOCOL_VERSION]:t.httpVersion,[ue.ATTR_USER_AGENT_ORIGINAL]:f},_.pathname!=null&&(h[ue.ATTR_URL_PATH]=_.pathname),_.search&&(h[ue.ATTR_URL_QUERY]=_.search.slice(1)),b!=null&&(h[ue.ATTR_CLIENT_ADDRESS]=b),S?.port!=null&&(h[ue.ATTR_SERVER_PORT]=Number(S.port)),d!==E&&(h[ue.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=d),o&&f&&(h[q.ATTR_USER_AGENT_SYNTHETIC_TYPE]=K3(f))}if(i!==Kn.SemconvStability.STABLE){let E=p?.replace(/^(.*)(:[0-9]{1,5})/,"$1")||"localhost";g={[q.ATTR_HTTP_URL]:_.toString(),[q.ATTR_HTTP_HOST]:p,[q.ATTR_NET_HOST_NAME]:E,[q.ATTR_HTTP_METHOD]:d,[q.ATTR_HTTP_SCHEME]:r},typeof m=="string"&&(g[q.ATTR_HTTP_CLIENT_IP]=m.split(",")[0]),typeof a=="string"&&(g[q.ATTR_HTTP_SERVER_NAME]=a),_.pathname&&(g[q.ATTR_HTTP_TARGET]=_.pathname+_.search||"/"),f!==void 0&&(g[q.ATTR_HTTP_USER_AGENT]=f),(0,z.setRequestContentLengthAttribute)(t,g),(0,z.setAttributesFromHttpKind)(l,g)}switch(i){case Kn.SemconvStability.STABLE:return Object.assign(h,s);case Kn.SemconvStability.OLD:return Object.assign(g,s);default:return Object.assign(g,h,s)}};z.getIncomingRequestAttributes=rfe;var ofe=t=>{let e={};return e[q.ATTR_HTTP_SCHEME]=t[q.ATTR_HTTP_SCHEME],e[q.ATTR_HTTP_METHOD]=t[q.ATTR_HTTP_METHOD],e[q.ATTR_NET_HOST_NAME]=t[q.ATTR_NET_HOST_NAME],e[q.ATTR_HTTP_FLAVOR]=t[q.ATTR_HTTP_FLAVOR],e};z.getIncomingRequestMetricAttributes=ofe;var sfe=(t,e,n)=>{let{socket:r}=t,{statusCode:o,statusMessage:s}=e,i={[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]:o},a=(0,$3.getRPCMetadata)(Wd.context.active()),u={};if(r){let{localAddress:l,localPort:d,remoteAddress:p,remotePort:f}=r;u[q.ATTR_NET_HOST_IP]=l,u[q.ATTR_NET_HOST_PORT]=d,u[q.ATTR_NET_PEER_IP]=p,u[q.ATTR_NET_PEER_PORT]=f}switch(u[q.ATTR_HTTP_STATUS_CODE]=o,u[z_.AttributeNames.HTTP_STATUS_TEXT]=(s||"").toUpperCase(),a?.type===$3.RPCType.HTTP&&a.route!==void 0&&(u[ue.ATTR_HTTP_ROUTE]=a.route,i[ue.ATTR_HTTP_ROUTE]=a.route),n){case Kn.SemconvStability.STABLE:return i;case Kn.SemconvStability.OLD:return u}return Object.assign(u,i)};z.getIncomingRequestAttributesOnResponse=sfe;var ife=t=>{let e={};return e[q.ATTR_HTTP_STATUS_CODE]=t[q.ATTR_HTTP_STATUS_CODE],e[q.ATTR_NET_HOST_PORT]=t[q.ATTR_NET_HOST_PORT],t[ue.ATTR_HTTP_ROUTE]!==void 0&&(e[ue.ATTR_HTTP_ROUTE]=t[ue.ATTR_HTTP_ROUTE]),e};z.getIncomingRequestMetricAttributesOnResponse=ife;var afe=t=>{let e={};return t[ue.ATTR_HTTP_ROUTE]!==void 0&&(e[ue.ATTR_HTTP_ROUTE]=t[ue.ATTR_HTTP_ROUTE]),t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]&&(e[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]),e};z.getIncomingStableRequestMetricAttributesOnResponse=afe;function ufe(t,e,n){let r=new Map;for(let o=0,s=e.length;o<s;o++){let i=e[o].toLowerCase();n&Kn.SemconvStability.STABLE?r.set(i,i):r.set(i,i.replaceAll("-","_"))}return o=>{let s={};for(let i of r.keys()){let a=o(i);if(a===void 0)continue;let u=r.get(i),l=`http.${t}.header.${u}`;typeof a=="string"?s[l]=[a]:Array.isArray(a)?s[l]=a:s[l]=[a]}return s}}z.headerCapture=ufe;var cfe=new Set(["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH","QUERY"]);function J3(t){if(t==null)return"GET";let e=t.toUpperCase();return cfe.has(e)?e:"_OTHER"}function X3(t){try{return Upe(t)}catch{return[]}}});var eF=T(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.HttpInstrumentation=void 0;var se=(P(),N(L)),qs=Ae(),lfe=U("url"),dfe=vB(),Nt=re(),hb=U("events"),Ue=(de(),N(Ie)),tt=Z3(),gb=class extends Nt.InstrumentationBase{_spanNotEnded=new WeakSet;_headerCapture;_httpPatched=!1;_httpsPatched=!1;_semconvStability=Nt.SemconvStability.OLD;constructor(e={}){super("@opentelemetry/instrumentation-http",dfe.VERSION,e),this._semconvStability=(0,Nt.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._headerCapture=this._createHeaderCapture(this._semconvStability)}_updateMetricInstruments(){this._oldHttpServerDurationHistogram=this.meter.createHistogram("http.server.duration",{description:"Measures the duration of inbound HTTP requests.",unit:"ms",valueType:se.ValueType.DOUBLE}),this._oldHttpClientDurationHistogram=this.meter.createHistogram("http.client.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"ms",valueType:se.ValueType.DOUBLE}),this._stableHttpServerDurationHistogram=this.meter.createHistogram(Ue.METRIC_HTTP_SERVER_REQUEST_DURATION,{description:"Duration of HTTP server requests.",unit:"s",valueType:se.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}}),this._stableHttpClientDurationHistogram=this.meter.createHistogram(Ue.METRIC_HTTP_CLIENT_REQUEST_DURATION,{description:"Duration of HTTP client requests.",unit:"s",valueType:se.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}_recordServerDuration(e,n,r){this._semconvStability&Nt.SemconvStability.OLD&&this._oldHttpServerDurationHistogram.record(e,n),this._semconvStability&Nt.SemconvStability.STABLE&&this._stableHttpServerDurationHistogram.record(e/1e3,r)}_recordClientDuration(e,n,r){this._semconvStability&Nt.SemconvStability.OLD&&this._oldHttpClientDurationHistogram.record(e,n),this._semconvStability&Nt.SemconvStability.STABLE&&this._stableHttpClientDurationHistogram.record(e/1e3,r)}setConfig(e={}){super.setConfig(e),this._headerCapture=this._createHeaderCapture(this._semconvStability)}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new Nt.InstrumentationNodeModuleDefinition("http",["*"],e=>{if(this._httpPatched)return e;this._httpPatched=!0;let n=e[Symbol.toStringTag]==="Module";if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchOutgoingRequestFunction("http")),o=this._wrap(e,"get",this._getPatchOutgoingGetFunction(r));n&&(e.default.request=r,e.default.get=o)}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("http")),e},e=>{this._httpPatched=!1,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 Nt.InstrumentationNodeModuleDefinition("https",["*"],e=>{if(this._httpsPatched)return e;this._httpsPatched=!0;let n=e[Symbol.toStringTag]==="Module";if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchHttpsOutgoingRequestFunction("https")),o=this._wrap(e,"get",this._getPatchHttpsOutgoingGetFunction(r));n&&(e.default.request=r,e.default.get=o)}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("https")),e},e=>{this._httpsPatched=!1,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 n=>this._incomingRequestFunction(e,n)}_getPatchOutgoingRequestFunction(e){return n=>this._outgoingRequestFunction(e,n)}_getPatchOutgoingGetFunction(e){return n=>function(o,...s){let i=e(o,...s);return i.end(),i}}_getPatchHttpsOutgoingRequestFunction(e){return n=>{let r=this;return function(s,...i){return e==="https"&&typeof s=="object"&&s?.constructor?.name!=="URL"&&(s=Object.assign({},s),r._setDefaultOptions(s)),r._getPatchOutgoingRequestFunction(e)(n)(s,...i)}}}_setDefaultOptions(e){e.protocol=e.protocol||"https:",e.port=e.port||443}_getPatchHttpsOutgoingGetFunction(e){return n=>{let r=this;return function(s,...i){return r._getPatchOutgoingGetFunction(e)(n)(s,...i)}}}_traceClientRequest(e,n,r,o,s){this.getConfig().requestHook&&this._callRequestHook(n,e);let i=!1;return e.prependListener("response",a=>{this._diag.debug("outgoingRequest on response()"),e.listenerCount("response")<=1&&a.resume();let u=(0,tt.getOutgoingRequestAttributesOnResponse)(a,this._semconvStability);n.setAttributes(u),o=Object.assign(o,(0,tt.getOutgoingRequestMetricAttributesOnResponse)(u)),s=Object.assign(s,(0,tt.getOutgoingStableRequestMetricAttributesOnResponse)(u)),this.getConfig().responseHook&&this._callResponseHook(n,a),n.setAttributes(this._headerCapture.client.captureRequestHeaders(d=>e.getHeader(d))),n.setAttributes(this._headerCapture.client.captureResponseHeaders(d=>a.headers[d])),se.context.bind(se.context.active(),a);let l=()=>{if(this._diag.debug("outgoingRequest on end()"),i)return;i=!0;let d;a.aborted&&!a.complete?d={code:se.SpanStatusCode.ERROR}:d={code:(0,tt.parseResponseStatus)(se.SpanKind.CLIENT,a.statusCode)},n.setStatus(d),this.getConfig().applyCustomAttributesOnSpan&&(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(n,e,a),()=>{},!0),this._closeHttpSpan(n,se.SpanKind.CLIENT,r,o,s)};a.on("end",l),a.on(hb.errorMonitor,d=>{this._diag.debug("outgoingRequest on error()",d),!i&&(i=!0,this._onOutgoingRequestError(n,o,s,r,d))})}),e.on("close",()=>{this._diag.debug("outgoingRequest on request close()"),!(e.aborted||i)&&(i=!0,this._closeHttpSpan(n,se.SpanKind.CLIENT,r,o,s))}),e.on(hb.errorMonitor,a=>{this._diag.debug("outgoingRequest on request error()",a),!i&&(i=!0,this._onOutgoingRequestError(n,o,s,r,a))}),this._diag.debug("http.ClientRequest return request"),e}_incomingRequestFunction(e,n){let r=this;return function(s,...i){if(s!=="request")return n.apply(this,[s,...i]);let a=i[0],u=i[1],l=a.method||"GET";if(r._diag.debug(`${e} instrumentation incomingRequest`),(0,Nt.safeExecuteInTheMiddle)(()=>r.getConfig().ignoreIncomingRequestHook?.(a),b=>{b!=null&&r._diag.error("caught ignoreIncomingRequestHook error: ",b)},!0))return se.context.with((0,qs.suppressTracing)(se.context.active()),()=>(se.context.bind(se.context.active(),a),se.context.bind(se.context.active(),u),n.apply(this,[s,...i])));let d=a.headers,p=(0,tt.getIncomingRequestAttributes)(a,{component:e,serverName:r.getConfig().serverName,hookAttributes:r._callStartSpanHook(a,r.getConfig().startIncomingSpanHook),semconvStability:r._semconvStability,enableSyntheticSourceDetection:r.getConfig().enableSyntheticSourceDetection||!1},r._diag);Object.assign(p,r._headerCapture.server.captureRequestHeaders(b=>a.headers[b]));let f={kind:se.SpanKind.SERVER,attributes:p},m=(0,qs.hrTime)(),_=(0,tt.getIncomingRequestMetricAttributes)(p),h={[Ue.ATTR_HTTP_REQUEST_METHOD]:p[Ue.ATTR_HTTP_REQUEST_METHOD],[Ue.ATTR_URL_SCHEME]:p[Ue.ATTR_URL_SCHEME]};p[Ue.ATTR_NETWORK_PROTOCOL_VERSION]&&(h[Ue.ATTR_NETWORK_PROTOCOL_VERSION]=p[Ue.ATTR_NETWORK_PROTOCOL_VERSION]);let g=se.propagation.extract(se.ROOT_CONTEXT,d),E=r._startHttpSpan(l,f,g),S={type:qs.RPCType.HTTP,span:E};return se.context.with((0,qs.setRPCMetadata)(se.trace.setSpan(g,E),S),()=>{se.context.bind(se.context.active(),a),se.context.bind(se.context.active(),u),r.getConfig().requestHook&&r._callRequestHook(E,a),r.getConfig().responseHook&&r._callResponseHook(E,u);let b=!1;return u.on("close",()=>{b||r._onServerResponseFinish(a,u,E,_,h,m)}),u.on(hb.errorMonitor,R=>{b=!0,r._onServerResponseError(E,_,h,m,R)}),(0,Nt.safeExecuteInTheMiddle)(()=>n.apply(this,[s,...i]),R=>{if(R)throw r._onServerResponseError(E,_,h,m,R),R})})}}_outgoingRequestFunction(e,n){let r=this;return function(s,...i){if(!(0,tt.isValidOptionsType)(s))return n.apply(this,[s,...i]);let a=typeof i[0]=="object"&&(typeof s=="string"||s instanceof lfe.URL)?i.shift():void 0,{method:u,invalidUrl:l,optionsParsed:d}=(0,tt.getRequestInfo)(r._diag,s,a);if((0,Nt.safeExecuteInTheMiddle)(()=>r.getConfig().ignoreOutgoingRequestHook?.(d),I=>{I!=null&&r._diag.error("caught ignoreOutgoingRequestHook error: ",I)},!0))return n.apply(this,[d,...i]);let{hostname:p,port:f}=(0,tt.extractHostnameAndPort)(d),m=(0,tt.getOutgoingRequestAttributes)(d,{component:e,port:f,hostname:p,hookAttributes:r._callStartSpanHook(d,r.getConfig().startOutgoingSpanHook),redactedQueryParams:r.getConfig().redactedQueryParams},r._semconvStability,r.getConfig().enableSyntheticSourceDetection||!1),_=(0,qs.hrTime)(),h=(0,tt.getOutgoingRequestMetricAttributes)(m),g={[Ue.ATTR_HTTP_REQUEST_METHOD]:m[Ue.ATTR_HTTP_REQUEST_METHOD],[Ue.ATTR_SERVER_ADDRESS]:m[Ue.ATTR_SERVER_ADDRESS],[Ue.ATTR_SERVER_PORT]:m[Ue.ATTR_SERVER_PORT]};m[Ue.ATTR_HTTP_RESPONSE_STATUS_CODE]&&(g[Ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=m[Ue.ATTR_HTTP_RESPONSE_STATUS_CODE]),m[Ue.ATTR_NETWORK_PROTOCOL_VERSION]&&(g[Ue.ATTR_NETWORK_PROTOCOL_VERSION]=m[Ue.ATTR_NETWORK_PROTOCOL_VERSION]);let E={kind:se.SpanKind.CLIENT,attributes:m},S=r._startHttpSpan(u,E),b=se.context.active(),R=se.trace.setSpan(b,S);return d.headers?d.headers=Object.assign({},d.headers):d.headers={},se.propagation.inject(R,d.headers),se.context.with(R,()=>{let I=i[i.length-1];typeof I=="function"&&(i[i.length-1]=se.context.bind(b,I));let C=(0,Nt.safeExecuteInTheMiddle)(()=>l?n.apply(this,[s,...i]):n.apply(this,[d,...i]),H=>{if(H)throw r._onOutgoingRequestError(S,h,g,_,H),H});return r._diag.debug(`${e} instrumentation outgoingRequest`),se.context.bind(b,C),r._traceClientRequest(C,S,_,h,g)})}}_onServerResponseFinish(e,n,r,o,s,i){let a=(0,tt.getIncomingRequestAttributesOnResponse)(e,n,this._semconvStability);o=Object.assign(o,(0,tt.getIncomingRequestMetricAttributesOnResponse)(a)),s=Object.assign(s,(0,tt.getIncomingStableRequestMetricAttributesOnResponse)(a)),r.setAttributes(this._headerCapture.server.captureResponseHeaders(l=>n.getHeader(l))),r.setAttributes(a).setStatus({code:(0,tt.parseResponseStatus)(se.SpanKind.SERVER,n.statusCode)});let u=a[Ue.ATTR_HTTP_ROUTE];u&&r.updateName(`${e.method||"GET"} ${u}`),this.getConfig().applyCustomAttributesOnSpan&&(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(r,e,n),()=>{},!0),this._closeHttpSpan(r,se.SpanKind.SERVER,i,o,s)}_onOutgoingRequestError(e,n,r,o,s){(0,tt.setSpanWithError)(e,s,this._semconvStability),r[Ue.ATTR_ERROR_TYPE]=s.name,this._closeHttpSpan(e,se.SpanKind.CLIENT,o,n,r)}_onServerResponseError(e,n,r,o,s){(0,tt.setSpanWithError)(e,s,this._semconvStability),r[Ue.ATTR_ERROR_TYPE]=s.name,this._closeHttpSpan(e,se.SpanKind.SERVER,o,n,r)}_startHttpSpan(e,n,r=se.context.active()){let o=n.kind===se.SpanKind.CLIENT?this.getConfig().requireParentforOutgoingSpans:this.getConfig().requireParentforIncomingSpans,s,i=se.trace.getSpan(r);return o===!0&&(!i||!se.trace.isSpanContextValid(i.spanContext()))?s=se.trace.wrapSpanContext(se.INVALID_SPAN_CONTEXT):o===!0&&i?.spanContext().isRemote?s=i:s=this.tracer.startSpan(e,n,r),this._spanNotEnded.add(s),s}_closeHttpSpan(e,n,r,o,s){if(!this._spanNotEnded.has(e))return;e.end(),this._spanNotEnded.delete(e);let i=(0,qs.hrTimeToMilliseconds)((0,qs.hrTimeDuration)(r,(0,qs.hrTime)()));n===se.SpanKind.SERVER?this._recordServerDuration(i,o,s):n===se.SpanKind.CLIENT&&this._recordClientDuration(i,o,s)}_callResponseHook(e,n){(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().responseHook(e,n),()=>{},!0)}_callRequestHook(e,n){(0,Nt.safeExecuteInTheMiddle)(()=>this.getConfig().requestHook(e,n),()=>{},!0)}_callStartSpanHook(e,n){if(typeof n=="function")return(0,Nt.safeExecuteInTheMiddle)(()=>n(e),()=>{},!0)}_createHeaderCapture(e){let n=this.getConfig();return{client:{captureRequestHeaders:(0,tt.headerCapture)("request",n.headersToSpanAttributes?.client?.requestHeaders??[],e),captureResponseHeaders:(0,tt.headerCapture)("response",n.headersToSpanAttributes?.client?.responseHeaders??[],e)},server:{captureRequestHeaders:(0,tt.headerCapture)("request",n.headersToSpanAttributes?.server?.requestHeaders??[],e),captureResponseHeaders:(0,tt.headerCapture)("response",n.headersToSpanAttributes?.server?.responseHeaders??[],e)}}}};Y_.HttpInstrumentation=gb});var tF=T(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.HttpInstrumentation=void 0;var pfe=eF();Object.defineProperty(W_,"HttpInstrumentation",{enumerable:!0,get:function(){return pfe.HttpInstrumentation}})});var hI=T(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.AbstractAsyncHooksContextManager=void 0;var Yge=U("events"),Wge=["addListener","on","once","prependListener","prependOnceListener"],_I=class{bind(e,n){return n instanceof Yge.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let r=this,o=function(...s){return r.with(e,()=>n.apply(this,s))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),o}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),Wge.forEach(o=>{n[o]!==void 0&&(n[o]=this._patchAddListener(n,n[o],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let r=this;return function(o,s){let i=r._getPatchMap(e)?.[o];if(i===void 0)return n.call(this,o,s);let a=i.get(s);return n.call(this,o,a||s)}}_patchRemoveAllListeners(e,n){let r=this;return function(o){let s=r._getPatchMap(e);return s!==void 0&&(arguments.length===0?r._createPatchMap(e):s[o]!==void 0&&delete s[o]),n.apply(this,arguments)}}_patchAddListener(e,n,r){let o=this;return function(s,i){if(o._wrapped)return n.call(this,s,i);let a=o._getPatchMap(e);a===void 0&&(a=o._createPatchMap(e));let u=a[s];u===void 0&&(u=new WeakMap,a[s]=u);let l=o.bind(r,i);u.set(i,l),o._wrapped=!0;try{return n.call(this,s,l)}finally{o._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};ig.AbstractAsyncHooksContextManager=_I});var s6=T(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.AsyncHooksContextManager=void 0;var Kge=(P(),N(L)),Qge=U("async_hooks"),Jge=hI(),gI=class extends Jge.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=Qge.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??Kge.ROOT_CONTEXT}with(e,n,r,...o){this._enterContext(e);try{return n.call(r,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let r=this._stack[this._stack.length-1];r!==void 0&&this._contexts.set(e,r)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};ag.AsyncHooksContextManager=gI});var i6=T(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});ug.AsyncLocalStorageContextManager=void 0;var Xge=(P(),N(L)),Zge=U("async_hooks"),eTe=hI(),TI=class extends eTe.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new Zge.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??Xge.ROOT_CONTEXT}with(e,n,r,...o){let s=r==null?n:n.bind(r);return this._asyncLocalStorage.run(e,s,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};ug.AsyncLocalStorageContextManager=TI});var a6=T(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.AsyncLocalStorageContextManager=Uc.AsyncHooksContextManager=void 0;var tTe=s6();Object.defineProperty(Uc,"AsyncHooksContextManager",{enumerable:!0,get:function(){return tTe.AsyncHooksContextManager}});var nTe=i6();Object.defineProperty(Uc,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return nTe.AsyncLocalStorageContextManager}})});var EI=T(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc._clearDefaultServiceNameCache=Bc.defaultServiceName=void 0;var Dp;function rTe(){if(Dp===void 0)try{let t=globalThis.process.argv0;Dp=t?`unknown_service:${t}`:"unknown_service"}catch{Dp="unknown_service"}return Dp}Bc.defaultServiceName=rTe;function oTe(){Dp=void 0}Bc._clearDefaultServiceNameCache=oTe});var u6=T(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});cg.isPromiseLike=void 0;var sTe=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";cg.isPromiseLike=sTe});var yI=T(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.defaultResource=bo.emptyResource=bo.resourceFromDetectedResource=bo.resourceFromAttributes=void 0;var Bp=(P(),N(L)),SI=Ae(),Da=(de(),N(Ie)),iTe=EI(),Up=u6(),lg=class t{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,n){let r=new t({},n);return r._rawAttributes=c6(e),r._asyncAttributesPending=e.filter(([o,s])=>(0,Up.isPromiseLike)(s)).length>0,r}constructor(e,n){let r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([o,s])=>((0,Up.isPromiseLike)(s)&&(this._asyncAttributesPending=!0),[o,s])),this._rawAttributes=c6(this._rawAttributes),this._schemaUrl=lTe(n?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[n,r]=this._rawAttributes[e];this._rawAttributes[e]=[n,(0,Up.isPromiseLike)(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Bp.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[n,r]of this._rawAttributes){if((0,Up.isPromiseLike)(r)){Bp.diag.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(e[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;let n=dTe(this,e),r=n?{schemaUrl:n}:void 0;return t.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],r)}};function AI(t,e){return lg.FromAttributeList(Object.entries(t),e)}bo.resourceFromAttributes=AI;function aTe(t,e){return new lg(t,e)}bo.resourceFromDetectedResource=aTe;function uTe(){return AI({})}bo.emptyResource=uTe;function cTe(){return AI({[Da.ATTR_SERVICE_NAME]:(0,iTe.defaultServiceName)(),[Da.ATTR_TELEMETRY_SDK_LANGUAGE]:SI.SDK_INFO[Da.ATTR_TELEMETRY_SDK_LANGUAGE],[Da.ATTR_TELEMETRY_SDK_NAME]:SI.SDK_INFO[Da.ATTR_TELEMETRY_SDK_NAME],[Da.ATTR_TELEMETRY_SDK_VERSION]:SI.SDK_INFO[Da.ATTR_TELEMETRY_SDK_VERSION]})}bo.defaultResource=cTe;function c6(t){return t.map(([e,n])=>(0,Up.isPromiseLike)(n)?[e,n.catch(r=>{Bp.diag.debug("promise rejection for resource attribute: %s - %s",e,r)})]:[e,n])}function lTe(t){if(typeof t=="string"||t===void 0)return t;Bp.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function dTe(t,e){let n=t?.schemaUrl,r=e?.schemaUrl,o=n===void 0||n==="",s=r===void 0||r==="";if(o)return r;if(s||n===r)return n;Bp.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,r)}});var d6=T(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.detectResources=void 0;var l6=(P(),N(L)),bI=yI(),pTe=(t={})=>(t.detectors||[]).map(n=>{try{let r=(0,bI.resourceFromDetectedResource)(n.detect(t));return l6.diag.debug(`${n.constructor.name} found resource.`,r),r}catch(r){return l6.diag.debug(`${n.constructor.name} failed: ${r.message}`),(0,bI.emptyResource)()}}).reduce((n,r)=>n.merge(r),(0,bI.emptyResource)());dg.detectResources=pTe});var f6=T(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.envDetector=void 0;var fTe=(P(),N(L)),mTe=(de(),N(Ie)),p6=Ae(),RI=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(e){let n={},r=(0,p6.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),o=(0,p6.getStringFromEnv)("OTEL_SERVICE_NAME");if(r)try{let s=this._parseResourceAttributes(r);Object.assign(n,s)}catch(s){fTe.diag.debug(`EnvDetector failed: ${s instanceof Error?s.message:s}`)}return o&&(n[mTe.ATTR_SERVICE_NAME]=o),{attributes:n}}_parseResourceAttributes(e){if(!e)return{};let n={},r=e.split(this._COMMA_SEPARATOR);for(let o of r){let s=o.split(this._LABEL_KEY_VALUE_SPLITTER);if(s.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${o}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[i,a]=s,u=i.trim(),l=a.trim();if(u.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${o}".`);let d,p;try{d=decodeURIComponent(u),p=decodeURIComponent(l)}catch(f){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${o}": ${f instanceof Error?f.message:f}`)}if(d.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${d}".`);if(p.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${d}".`);n[d]=p}return n}};pg.envDetector=new RI});var Fp=T(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.ATTR_WEBENGINE_VERSION=w.ATTR_WEBENGINE_NAME=w.ATTR_WEBENGINE_DESCRIPTION=w.ATTR_SERVICE_NAMESPACE=w.ATTR_SERVICE_INSTANCE_ID=w.ATTR_PROCESS_RUNTIME_VERSION=w.ATTR_PROCESS_RUNTIME_NAME=w.ATTR_PROCESS_RUNTIME_DESCRIPTION=w.ATTR_PROCESS_PID=w.ATTR_PROCESS_OWNER=w.ATTR_PROCESS_EXECUTABLE_PATH=w.ATTR_PROCESS_EXECUTABLE_NAME=w.ATTR_PROCESS_COMMAND_ARGS=w.ATTR_PROCESS_COMMAND=w.ATTR_OS_VERSION=w.ATTR_OS_TYPE=w.ATTR_K8S_POD_NAME=w.ATTR_K8S_NAMESPACE_NAME=w.ATTR_K8S_DEPLOYMENT_NAME=w.ATTR_K8S_CLUSTER_NAME=w.ATTR_HOST_TYPE=w.ATTR_HOST_NAME=w.ATTR_HOST_IMAGE_VERSION=w.ATTR_HOST_IMAGE_NAME=w.ATTR_HOST_IMAGE_ID=w.ATTR_HOST_ID=w.ATTR_HOST_ARCH=w.ATTR_CONTAINER_NAME=w.ATTR_CONTAINER_IMAGE_TAGS=w.ATTR_CONTAINER_IMAGE_NAME=w.ATTR_CONTAINER_ID=w.ATTR_CLOUD_REGION=w.ATTR_CLOUD_PROVIDER=w.ATTR_CLOUD_AVAILABILITY_ZONE=w.ATTR_CLOUD_ACCOUNT_ID=void 0;w.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";w.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";w.ATTR_CLOUD_PROVIDER="cloud.provider";w.ATTR_CLOUD_REGION="cloud.region";w.ATTR_CONTAINER_ID="container.id";w.ATTR_CONTAINER_IMAGE_NAME="container.image.name";w.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";w.ATTR_CONTAINER_NAME="container.name";w.ATTR_HOST_ARCH="host.arch";w.ATTR_HOST_ID="host.id";w.ATTR_HOST_IMAGE_ID="host.image.id";w.ATTR_HOST_IMAGE_NAME="host.image.name";w.ATTR_HOST_IMAGE_VERSION="host.image.version";w.ATTR_HOST_NAME="host.name";w.ATTR_HOST_TYPE="host.type";w.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";w.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";w.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";w.ATTR_K8S_POD_NAME="k8s.pod.name";w.ATTR_OS_TYPE="os.type";w.ATTR_OS_VERSION="os.version";w.ATTR_PROCESS_COMMAND="process.command";w.ATTR_PROCESS_COMMAND_ARGS="process.command_args";w.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";w.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";w.ATTR_PROCESS_OWNER="process.owner";w.ATTR_PROCESS_PID="process.pid";w.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";w.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";w.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";w.ATTR_SERVICE_INSTANCE_ID="service.instance.id";w.ATTR_SERVICE_NAMESPACE="service.namespace";w.ATTR_WEBENGINE_DESCRIPTION="webengine.description";w.ATTR_WEBENGINE_NAME="webengine.name";w.ATTR_WEBENGINE_VERSION="webengine.version"});var mg=T(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.execAsync=void 0;var _Te=U("child_process"),hTe=U("util");fg.execAsync=hTe.promisify(_Te.exec)});var m6=T(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.getMachineId=void 0;var gTe=mg(),TTe=(P(),N(L));async function ETe(){try{let e=(await(0,gTe.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
8
8
|
`).find(r=>r.includes("IOPlatformUUID"));if(!e)return;let n=e.split('" = "');if(n.length===2)return n[1].slice(0,-1)}catch(t){TTe.diag.debug(`error reading machine id: ${t}`)}}_g.getMachineId=ETe});var _6=T(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.getMachineId=void 0;var STe=U("fs"),ATe=(P(),N(L));async function yTe(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await STe.promises.readFile(e,{encoding:"utf8"})).trim()}catch(n){ATe.diag.debug(`error reading machine id: ${n}`)}}hg.getMachineId=yTe});var g6=T(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.getMachineId=void 0;var bTe=U("fs"),RTe=mg(),h6=(P(),N(L));async function ITe(){try{return(await bTe.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){h6.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,RTe.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){h6.diag.debug(`error reading machine id: ${t}`)}}gg.getMachineId=ITe});var E6=T(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});Tg.getMachineId=void 0;var T6=U("process"),OTe=mg(),CTe=(P(),N(L));async function NTe(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";T6.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in T6.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let r=(await(0,OTe.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(r.length===2)return r[1].trim()}catch(n){CTe.diag.debug(`error reading machine id: ${n}`)}}Tg.getMachineId=NTe});var S6=T(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getMachineId=void 0;var xTe=(P(),N(L));async function PTe(){xTe.diag.debug("could not read machine-id: unsupported platform")}Eg.getMachineId=PTe});var A6=T(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.getMachineId=void 0;var MTe=U("process"),Ua;async function vTe(){if(!Ua)switch(MTe.platform){case"darwin":Ua=(await Promise.resolve().then(()=>Q(m6()))).getMachineId;break;case"linux":Ua=(await Promise.resolve().then(()=>Q(_6()))).getMachineId;break;case"freebsd":Ua=(await Promise.resolve().then(()=>Q(g6()))).getMachineId;break;case"win32":Ua=(await Promise.resolve().then(()=>Q(E6()))).getMachineId;break;default:Ua=(await Promise.resolve().then(()=>Q(S6()))).getMachineId;break}return Ua()}Sg.getMachineId=vTe});var II=T(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.normalizeType=Fc.normalizeArch=void 0;var kTe=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};Fc.normalizeArch=kTe;var LTe=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};Fc.normalizeType=LTe});var b6=T(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.hostDetector=void 0;var OI=Fp(),y6=U("os"),wTe=A6(),DTe=II(),CI=class{detect(e){return{attributes:{[OI.ATTR_HOST_NAME]:(0,y6.hostname)(),[OI.ATTR_HOST_ARCH]:(0,DTe.normalizeArch)((0,y6.arch)()),[OI.ATTR_HOST_ID]:(0,wTe.getMachineId)()}}}};Ag.hostDetector=new CI});var O6=T(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.osDetector=void 0;var R6=Fp(),I6=U("os"),UTe=II(),NI=class{detect(e){return{attributes:{[R6.ATTR_OS_TYPE]:(0,UTe.normalizeType)((0,I6.platform)()),[R6.ATTR_OS_VERSION]:(0,I6.release)()}}}};yg.osDetector=new NI});var C6=T(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.processDetector=void 0;var BTe=(P(),N(L)),ms=Fp(),FTe=U("os"),xI=class{detect(e){let n={[ms.ATTR_PROCESS_PID]:process.pid,[ms.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[ms.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[ms.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[ms.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[ms.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[ms.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(n[ms.ATTR_PROCESS_COMMAND]=process.argv[1]);try{let r=FTe.userInfo();n[ms.ATTR_PROCESS_OWNER]=r.username}catch(r){BTe.diag.debug(`error obtaining process owner: ${r}`)}return{attributes:n}}};bg.processDetector=new xI});var N6=T(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});Rg.serviceInstanceIdDetector=void 0;var GTe=Fp(),jTe=U("crypto"),PI=class{detect(e){return{attributes:{[GTe.ATTR_SERVICE_INSTANCE_ID]:(0,jTe.randomUUID)()}}}};Rg.serviceInstanceIdDetector=new PI});var x6=T(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.serviceInstanceIdDetector=Ro.processDetector=Ro.osDetector=Ro.hostDetector=void 0;var HTe=b6();Object.defineProperty(Ro,"hostDetector",{enumerable:!0,get:function(){return HTe.hostDetector}});var VTe=O6();Object.defineProperty(Ro,"osDetector",{enumerable:!0,get:function(){return VTe.osDetector}});var qTe=C6();Object.defineProperty(Ro,"processDetector",{enumerable:!0,get:function(){return qTe.processDetector}});var $Te=N6();Object.defineProperty(Ro,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return $Te.serviceInstanceIdDetector}})});var P6=T(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.serviceInstanceIdDetector=Io.processDetector=Io.osDetector=Io.hostDetector=void 0;var Ig=x6();Object.defineProperty(Io,"hostDetector",{enumerable:!0,get:function(){return Ig.hostDetector}});Object.defineProperty(Io,"osDetector",{enumerable:!0,get:function(){return Ig.osDetector}});Object.defineProperty(Io,"processDetector",{enumerable:!0,get:function(){return Ig.processDetector}});Object.defineProperty(Io,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return Ig.serviceInstanceIdDetector}})});var M6=T(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.noopDetector=Gc.NoopDetector=void 0;var Og=class{detect(){return{attributes:{}}}};Gc.NoopDetector=Og;Gc.noopDetector=new Og});var v6=T(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.noopDetector=wn.serviceInstanceIdDetector=wn.processDetector=wn.osDetector=wn.hostDetector=wn.envDetector=void 0;var zTe=f6();Object.defineProperty(wn,"envDetector",{enumerable:!0,get:function(){return zTe.envDetector}});var Cg=P6();Object.defineProperty(wn,"hostDetector",{enumerable:!0,get:function(){return Cg.hostDetector}});Object.defineProperty(wn,"osDetector",{enumerable:!0,get:function(){return Cg.osDetector}});Object.defineProperty(wn,"processDetector",{enumerable:!0,get:function(){return Cg.processDetector}});Object.defineProperty(wn,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return Cg.serviceInstanceIdDetector}});var YTe=M6();Object.defineProperty(wn,"noopDetector",{enumerable:!0,get:function(){return YTe.noopDetector}})});var vI=T(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.defaultServiceName=Ye.emptyResource=Ye.defaultResource=Ye.resourceFromAttributes=Ye.serviceInstanceIdDetector=Ye.processDetector=Ye.osDetector=Ye.hostDetector=Ye.envDetector=Ye.detectResources=void 0;var WTe=d6();Object.defineProperty(Ye,"detectResources",{enumerable:!0,get:function(){return WTe.detectResources}});var Gp=v6();Object.defineProperty(Ye,"envDetector",{enumerable:!0,get:function(){return Gp.envDetector}});Object.defineProperty(Ye,"hostDetector",{enumerable:!0,get:function(){return Gp.hostDetector}});Object.defineProperty(Ye,"osDetector",{enumerable:!0,get:function(){return Gp.osDetector}});Object.defineProperty(Ye,"processDetector",{enumerable:!0,get:function(){return Gp.processDetector}});Object.defineProperty(Ye,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return Gp.serviceInstanceIdDetector}});var MI=yI();Object.defineProperty(Ye,"resourceFromAttributes",{enumerable:!0,get:function(){return MI.resourceFromAttributes}});Object.defineProperty(Ye,"defaultResource",{enumerable:!0,get:function(){return MI.defaultResource}});Object.defineProperty(Ye,"emptyResource",{enumerable:!0,get:function(){return MI.emptyResource}});var KTe=EI();Object.defineProperty(Ye,"defaultServiceName",{enumerable:!0,get:function(){return KTe.defaultServiceName}})});var k6=T(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng.ExceptionEventName=void 0;Ng.ExceptionEventName="exception"});var L6=T(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.SpanImpl=void 0;var zt=(P(),N(L)),Yt=Ae(),Ba=(de(),N(Ie)),QTe=k6(),kI=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:zt.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){let n=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=Yt.otperformance.now(),this._performanceOffset=n-(this._performanceStartTime+Yt.otperformance.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let r of e.links)this.addLink(r);this.startTime=this._getTime(e.startTime??n),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,n){if(n==null||this._isSpanEnded())return this;if(e.length===0)return zt.diag.warn(`Invalid attribute key: ${e}`),this;if(!(0,Yt.isAttributeValue)(n))return zt.diag.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:r}=this._spanLimits,o=!Object.prototype.hasOwnProperty.call(this.attributes,e);return r!==void 0&&this._attributesCount>=r&&o?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),o&&this._attributesCount++,this)}setAttributes(e){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.setAttribute(n,e[n]);return this}addEvent(e,n,r){if(this._isSpanEnded())return this;let{eventCountLimit:o}=this._spanLimits;if(o===0)return zt.diag.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&zt.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Yt.isTimeInput)(n)&&((0,Yt.isTimeInput)(r)||(r=n),n=void 0);let s=(0,Yt.sanitizeAttributes)(n),{attributePerEventCountLimit:i}=this._spanLimits,a={},u=0,l=0;for(let d in s){if(!Object.prototype.hasOwnProperty.call(s,d))continue;let p=s[d];if(i!==void 0&&l>=i){u++;continue}a[d]=this._truncateToSize(p),l++}return this.events.push({name:e,attributes:a,time:this._getTime(r),droppedAttributesCount:u}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:n}=this._spanLimits;if(n===0)return this._droppedLinksCount++,this;n!==void 0&&this.links.length>=n&&(this._droppedLinksCount===0&&zt.diag.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:r}=this._spanLimits,o=(0,Yt.sanitizeAttributes)(e.attributes),s={},i=0,a=0;for(let l in o){if(!Object.prototype.hasOwnProperty.call(o,l))continue;let d=o[l];if(r!==void 0&&a>=r){i++;continue}s[l]=this._truncateToSize(d),a++}let u={context:e.context};return a>0&&(u.attributes=s),i>0&&(u.droppedAttributesCount=i),this.links.push(u),this}addLinks(e){for(let n of e)this.addLink(n);return this}setStatus(e){if(this._isSpanEnded())return this;if(e.code===zt.SpanStatusCode.UNSET)return this;if(this.status.code===zt.SpanStatusCode.OK)return this;let n={code:e.code};return e.code===zt.SpanStatusCode.ERROR&&(typeof e.message=="string"?n.message=e.message:e.message!=null&&zt.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=n,this}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){zt.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(e),this._duration=(0,Yt.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(zt.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&&zt.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&zt.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Yt.otperformance.now())return(0,Yt.hrTime)(e+this._performanceOffset);if(typeof e=="number")return(0,Yt.millisToHrTime)(e);if(e instanceof Date)return(0,Yt.millisToHrTime)(e.getTime());if((0,Yt.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,Yt.millisToHrTime)(Date.now());let n=Yt.otperformance.now()-this._performanceStartTime;return(0,Yt.addHrTimes)(this.startTime,(0,Yt.millisToHrTime)(n))}isRecording(){return this._ended===!1}recordException(e,n){let r={};typeof e=="string"?r[Ba.ATTR_EXCEPTION_MESSAGE]=e:e&&(e.code?r[Ba.ATTR_EXCEPTION_TYPE]=e.code.toString():e.name&&(r[Ba.ATTR_EXCEPTION_TYPE]=e.name),e.message&&(r[Ba.ATTR_EXCEPTION_MESSAGE]=e.message),e.stack&&(r[Ba.ATTR_EXCEPTION_STACKTRACE]=e.stack)),r[Ba.ATTR_EXCEPTION_TYPE]||r[Ba.ATTR_EXCEPTION_MESSAGE]?this.addEvent(QTe.ExceptionEventName,r,n):zt.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(){if(this._ended){let e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);zt.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,n){return e.length<=n?e:e.substring(0,n)}_truncateToSize(e){let n=this._attributeValueLengthLimit;return n<=0?(zt.diag.warn(`Attribute value limit must be positive, got ${n}`),e):typeof e=="string"?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):e}};xg.SpanImpl=kI});var jc=T(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.SamplingDecision=void 0;var JTe;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(JTe=jp.SamplingDecision||(jp.SamplingDecision={}))});var Mg=T(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.AlwaysOffSampler=void 0;var XTe=jc(),LI=class{shouldSample(){return{decision:XTe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Pg.AlwaysOffSampler=LI});var kg=T(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.AlwaysOnSampler=void 0;var ZTe=jc(),wI=class{shouldSample(){return{decision:ZTe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};vg.AlwaysOnSampler=wI});var BI=T(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.ParentBasedSampler=void 0;var Lg=(P(),N(L)),eEe=Ae(),w6=Mg(),DI=kg(),UI=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||((0,eEe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new DI.AlwaysOnSampler),this._remoteParentSampled=e.remoteParentSampled??new DI.AlwaysOnSampler,this._remoteParentNotSampled=e.remoteParentNotSampled??new w6.AlwaysOffSampler,this._localParentSampled=e.localParentSampled??new DI.AlwaysOnSampler,this._localParentNotSampled=e.localParentNotSampled??new w6.AlwaysOffSampler}shouldSample(e,n,r,o,s,i){let a=Lg.trace.getSpanContext(e);return!a||!(0,Lg.isSpanContextValid)(a)?this._root.shouldSample(e,n,r,o,s,i):a.isRemote?a.traceFlags&Lg.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,o,s,i):this._remoteParentNotSampled.shouldSample(e,n,r,o,s,i):a.traceFlags&Lg.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,n,r,o,s,i):this._localParentNotSampled.shouldSample(e,n,r,o,s,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};wg.ParentBasedSampler=UI});var GI=T(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.TraceIdRatioBasedSampler=void 0;var tEe=(P(),N(L)),D6=jc(),FI=class{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,n){return{decision:(0,tEe.isValidTraceId)(n)&&this._accumulate(n)<this._upperBound?D6.SamplingDecision.RECORD_AND_SAMPLED:D6.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 n=0;for(let r=0;r<e.length/8;r++){let o=r*8,s=parseInt(e.slice(o,o+8),16);n=(n^s)>>>0}return n}};Dg.TraceIdRatioBasedSampler=FI});var VI=T(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.buildSamplerFromEnv=Hc.loadDefaultConfig=void 0;var HI=(P(),N(L)),Oo=Ae(),U6=Mg(),jI=kg(),Ug=BI(),B6=GI(),Co;(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"})(Co||(Co={}));var Bg=1;function nEe(){return{sampler:G6(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,Oo.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,Oo.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,Oo.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,Oo.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,Oo.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,Oo.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,Oo.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,Oo.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}Hc.loadDefaultConfig=nEe;function G6(){let t=(0,Oo.getStringFromEnv)("OTEL_TRACES_SAMPLER")??Co.ParentBasedAlwaysOn;switch(t){case Co.AlwaysOn:return new jI.AlwaysOnSampler;case Co.AlwaysOff:return new U6.AlwaysOffSampler;case Co.ParentBasedAlwaysOn:return new Ug.ParentBasedSampler({root:new jI.AlwaysOnSampler});case Co.ParentBasedAlwaysOff:return new Ug.ParentBasedSampler({root:new U6.AlwaysOffSampler});case Co.TraceIdRatio:return new B6.TraceIdRatioBasedSampler(F6());case Co.ParentBasedTraceIdRatio:return new Ug.ParentBasedSampler({root:new B6.TraceIdRatioBasedSampler(F6())});default:return HI.diag.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "${Co.ParentBasedAlwaysOn}".`),new Ug.ParentBasedSampler({root:new jI.AlwaysOnSampler})}}Hc.buildSamplerFromEnv=G6;function F6(){let t=(0,Oo.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return t==null?(HI.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Bg}.`),Bg):t<0||t>1?(HI.diag.error(`OTEL_TRACES_SAMPLER_ARG=${t} was given, but it is out of range ([0..1]), defaulting to ${Bg}.`),Bg):t}});var qI=T(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.reconfigureLimits=yr.mergeConfig=yr.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=yr.DEFAULT_ATTRIBUTE_COUNT_LIMIT=void 0;var j6=VI(),Fg=Ae();yr.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;yr.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;function rEe(t){let e={sampler:(0,j6.buildSamplerFromEnv)()},n=(0,j6.loadDefaultConfig)(),r=Object.assign({},n,e,t);return r.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),r}yr.mergeConfig=rEe;function oEe(t){let e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??(0,Fg.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,Fg.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??yr.DEFAULT_ATTRIBUTE_COUNT_LIMIT,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??(0,Fg.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,Fg.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??yr.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},t,{spanLimits:e})}yr.reconfigureLimits=oEe});var H6=T(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.BatchSpanProcessorBase=void 0;var Vc=(P(),N(L)),_s=Ae(),$I=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,n){this._exporter=e,this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:(0,_s.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:(0,_s.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:(0,_s.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:(0,_s.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new _s.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Vc.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,n){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&Vc.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&&Vc.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Vc.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,n)=>{let r=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let s=0,i=o;s<i;s++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,n)=>{let r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);Vc.context.with((0,_s.suppressTracing)(Vc.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let s=()=>this._exporter.export(o,a=>{clearTimeout(r),a.code===_s.ExportResultCode.SUCCESS?e():n(a.error??new Error("BatchSpanProcessor: span export failed"))}),i=null;for(let a=0,u=o.length;a<u;a++){let l=o[a];l.resource.asyncAttributesPending&&l.resource.waitForAsyncAttributes&&(i??=[],i.push(l.resource.waitForAsyncAttributes()))}i===null?s():Promise.all(i).then(s,a=>{(0,_s.globalErrorHandler)(a),n(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(n=>{this._isExporting=!1,(0,_s.globalErrorHandler)(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};Gg.BatchSpanProcessorBase=$I});var V6=T(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});jg.BatchSpanProcessor=void 0;var sEe=H6(),zI=class extends sEe.BatchSpanProcessorBase{onShutdown(){}};jg.BatchSpanProcessor=zI});var z6=T(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.RandomIdGenerator=void 0;var iEe=8,$6=16,YI=class{generateTraceId=q6($6);generateSpanId=q6(iEe)};Vg.RandomIdGenerator=YI;var Hg=Buffer.allocUnsafe($6);function q6(t){return function(){for(let n=0;n<t/4;n++)Hg.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<t&&!(Hg[n]>0);n++)n===t-1&&(Hg[t-1]=1);return Hg.toString("hex",0,t)}}});var Y6=T(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.RandomIdGenerator=qc.BatchSpanProcessor=void 0;var aEe=V6();Object.defineProperty(qc,"BatchSpanProcessor",{enumerable:!0,get:function(){return aEe.BatchSpanProcessor}});var uEe=z6();Object.defineProperty(qc,"RandomIdGenerator",{enumerable:!0,get:function(){return uEe.RandomIdGenerator}})});var WI=T($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.RandomIdGenerator=$c.BatchSpanProcessor=void 0;var W6=Y6();Object.defineProperty($c,"BatchSpanProcessor",{enumerable:!0,get:function(){return W6.BatchSpanProcessor}});Object.defineProperty($c,"RandomIdGenerator",{enumerable:!0,get:function(){return W6.RandomIdGenerator}})});var K6=T(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.METRIC_OTEL_SDK_SPAN_STARTED=No.METRIC_OTEL_SDK_SPAN_LIVE=No.ATTR_OTEL_SPAN_SAMPLING_RESULT=No.ATTR_OTEL_SPAN_PARENT_ORIGIN=void 0;No.ATTR_OTEL_SPAN_PARENT_ORIGIN="otel.span.parent.origin";No.ATTR_OTEL_SPAN_SAMPLING_RESULT="otel.span.sampling_result";No.METRIC_OTEL_SDK_SPAN_LIVE="otel.sdk.span.live";No.METRIC_OTEL_SDK_SPAN_STARTED="otel.sdk.span.started"});var Q6=T($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.TracerMetrics=void 0;var qg=jc(),Hp=K6(),KI=class{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(Hp.METRIC_OTEL_SDK_SPAN_STARTED,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=e.createUpDownCounter(Hp.METRIC_OTEL_SDK_SPAN_LIVE,{unit:"{span}",description:"The number of currently live spans."})}startSpan(e,n){let r=lEe(n);if(this.startedSpans.add(1,{[Hp.ATTR_OTEL_SPAN_PARENT_ORIGIN]:cEe(e),[Hp.ATTR_OTEL_SPAN_SAMPLING_RESULT]:r}),n===qg.SamplingDecision.NOT_RECORD)return()=>{};let o={[Hp.ATTR_OTEL_SPAN_SAMPLING_RESULT]:r};return this.liveSpans.add(1,o),()=>{this.liveSpans.add(-1,o)}}};$g.TracerMetrics=KI;function cEe(t){return t?t.isRemote?"remote":"local":"none"}function lEe(t){switch(t){case qg.SamplingDecision.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case qg.SamplingDecision.RECORD:return"RECORD_ONLY";case qg.SamplingDecision.NOT_RECORD:return"DROP"}}});var J6=T(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg.VERSION=void 0;zg.VERSION="2.6.1"});var X6=T(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});Wg.Tracer=void 0;var vt=(P(),N(L)),Yg=Ae(),dEe=L6(),pEe=qI(),fEe=WI(),mEe=Q6(),_Ee=J6(),QI=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,n,r,o){let s=(0,pEe.mergeConfig)(n);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=n.idGenerator||new fEe.RandomIdGenerator,this._resource=r,this._spanProcessor=o,this.instrumentationScope=e;let i=s.meterProvider?s.meterProvider.getMeter("@opentelemetry/sdk-trace",_Ee.VERSION):vt.createNoopMeter();this._tracerMetrics=new mEe.TracerMetrics(i)}startSpan(e,n={},r=vt.context.active()){n.root&&(r=vt.trace.deleteSpan(r));let o=vt.trace.getSpan(r);if((0,Yg.isTracingSuppressed)(r))return vt.diag.debug("Instrumentation suppressed, returning Noop Span"),vt.trace.wrapSpanContext(vt.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),i=this._idGenerator.generateSpanId(),a,u,l;!s||!vt.trace.isSpanContextValid(s)?u=this._idGenerator.generateTraceId():(u=s.traceId,l=s.traceState,a=s);let d=n.kind??vt.SpanKind.INTERNAL,p=(n.links??[]).map(b=>({context:b.context,attributes:(0,Yg.sanitizeAttributes)(b.attributes)})),f=(0,Yg.sanitizeAttributes)(n.attributes),m=this._sampler.shouldSample(r,u,e,d,f,p),_=this._tracerMetrics.startSpan(s,m.decision);l=m.traceState??l;let h=m.decision===vt.SamplingDecision.RECORD_AND_SAMPLED?vt.TraceFlags.SAMPLED:vt.TraceFlags.NONE,g={traceId:u,spanId:i,traceFlags:h,traceState:l};if(m.decision===vt.SamplingDecision.NOT_RECORD)return vt.diag.debug("Recording is off, propagating context in a non-recording span"),vt.trace.wrapSpanContext(g);let E=(0,Yg.sanitizeAttributes)(Object.assign(f,m.attributes));return new dEe.SpanImpl({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:g,name:e,kind:d,links:p,parentSpanContext:a,attributes:E,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:_})}startActiveSpan(e,n,r,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(s=n,a=r):(s=n,i=r,a=o);let u=i??vt.context.active(),l=this.startSpan(e,s,u),d=vt.trace.setSpan(u,l);return vt.context.with(d,a,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};Wg.Tracer=QI});var Z6=T(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.MultiSpanProcessor=void 0;var hEe=Ae(),JI=class{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let n of this._spanProcessors)e.push(n.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(r=>{(0,hEe.globalErrorHandler)(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(e,n){for(let r of this._spanProcessors)r.onStart(e,n)}onEnding(e){for(let n of this._spanProcessors)n.onEnding&&n.onEnding(e)}onEnd(e){for(let n of this._spanProcessors)n.onEnd(e)}shutdown(){let e=[];for(let n of this._spanProcessors)e.push(n.shutdown());return new Promise((n,r)=>{Promise.all(e).then(()=>{n()},r)})}};Kg.MultiSpanProcessor=JI});var eH=T(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.BasicTracerProvider=Fa.ForceFlushState=void 0;var gEe=Ae(),TEe=vI(),EEe=X6(),SEe=VI(),AEe=Z6(),yEe=qI(),zc;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(zc=Fa.ForceFlushState||(Fa.ForceFlushState={}));var XI=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){let n=(0,gEe.merge)({},(0,SEe.loadDefaultConfig)(),(0,yEe.reconfigureLimits)(e));this._resource=n.resource??(0,TEe.defaultResource)(),this._config=Object.assign({},n,{resource:this._resource});let r=[];e.spanProcessors?.length&&r.push(...e.spanProcessors),this._activeSpanProcessor=new AEe.MultiSpanProcessor(r)}getTracer(e,n,r){let o=`${e}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new EEe.Tracer({name:e,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(o=>{let s,i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${e} ms`)),s=zc.timeout},e);r.forceFlush().then(()=>{clearTimeout(i),s!==zc.timeout&&(s=zc.resolved,o(s))}).catch(a=>{clearTimeout(i),s=zc.error,o(a)})}));return new Promise((r,o)=>{Promise.all(n).then(s=>{let i=s.filter(a=>a!==zc.resolved);i.length>0?o(i):r()}).catch(s=>o([s]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};Fa.BasicTracerProvider=XI});var tH=T(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});Qg.ConsoleSpanExporter=void 0;var ZI=Ae(),eO=class{export(e,n){return this._sendSpans(e,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationScope,traceId:e.spanContext().traceId,parentSpanContext:e.parentSpanContext,traceState:e.spanContext().traceState?.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,ZI.hrTimeToMicroseconds)(e.startTime),duration:(0,ZI.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,n){for(let r of e)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:ZI.ExportResultCode.SUCCESS})}};Qg.ConsoleSpanExporter=eO});var rH=T(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.InMemorySpanExporter=void 0;var nH=Ae(),tO=class{_finishedSpans=[];_stopped=!1;export(e,n){if(this._stopped)return n({code:nH.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout(()=>n({code:nH.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};Jg.InMemorySpanExporter=tO});var oH=T(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.SimpleSpanProcessor=void 0;var bEe=(P(),N(L)),Xg=Ae(),nO=class{_exporter;_shutdownOnce;_pendingExports;constructor(e){this._exporter=e,this._shutdownOnce=new Xg.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,n){}onEnd(e){if(this._shutdownOnce.isCalled||!(e.spanContext().traceFlags&bEe.TraceFlags.SAMPLED))return;let n=this._doExport(e).catch(r=>(0,Xg.globalErrorHandler)(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(e){e.resource.asyncAttributesPending&&await e.resource.waitForAsyncAttributes?.();let n=await Xg.internal._export(this._exporter,[e]);if(n.code!==Xg.ExportResultCode.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};Zg.SimpleSpanProcessor=nO});var sH=T(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.NoopSpanProcessor=void 0;var rO=class{onStart(e,n){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};eT.NoopSpanProcessor=rO});var oO=T(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.SamplingDecision=ve.TraceIdRatioBasedSampler=ve.ParentBasedSampler=ve.AlwaysOnSampler=ve.AlwaysOffSampler=ve.NoopSpanProcessor=ve.SimpleSpanProcessor=ve.InMemorySpanExporter=ve.ConsoleSpanExporter=ve.RandomIdGenerator=ve.BatchSpanProcessor=ve.BasicTracerProvider=void 0;var REe=eH();Object.defineProperty(ve,"BasicTracerProvider",{enumerable:!0,get:function(){return REe.BasicTracerProvider}});var iH=WI();Object.defineProperty(ve,"BatchSpanProcessor",{enumerable:!0,get:function(){return iH.BatchSpanProcessor}});Object.defineProperty(ve,"RandomIdGenerator",{enumerable:!0,get:function(){return iH.RandomIdGenerator}});var IEe=tH();Object.defineProperty(ve,"ConsoleSpanExporter",{enumerable:!0,get:function(){return IEe.ConsoleSpanExporter}});var OEe=rH();Object.defineProperty(ve,"InMemorySpanExporter",{enumerable:!0,get:function(){return OEe.InMemorySpanExporter}});var CEe=oH();Object.defineProperty(ve,"SimpleSpanProcessor",{enumerable:!0,get:function(){return CEe.SimpleSpanProcessor}});var NEe=sH();Object.defineProperty(ve,"NoopSpanProcessor",{enumerable:!0,get:function(){return NEe.NoopSpanProcessor}});var xEe=Mg();Object.defineProperty(ve,"AlwaysOffSampler",{enumerable:!0,get:function(){return xEe.AlwaysOffSampler}});var PEe=kg();Object.defineProperty(ve,"AlwaysOnSampler",{enumerable:!0,get:function(){return PEe.AlwaysOnSampler}});var MEe=BI();Object.defineProperty(ve,"ParentBasedSampler",{enumerable:!0,get:function(){return MEe.ParentBasedSampler}});var vEe=GI();Object.defineProperty(ve,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return vEe.TraceIdRatioBasedSampler}});var kEe=jc();Object.defineProperty(ve,"SamplingDecision",{enumerable:!0,get:function(){return kEe.SamplingDecision}})});var kV=T(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.PACKAGE_NAME=Jc.PACKAGE_VERSION=void 0;Jc.PACKAGE_VERSION="0.24.0";Jc.PACKAGE_NAME="@opentelemetry/instrumentation-undici"});var wV=T(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});_T.UndiciInstrumentation=void 0;var vO=U("diagnostics_channel"),nAe=U("url"),Jp=re(),nr=(P(),N(L)),mT=Ae(),pt=(de(),N(Ie)),LV=kV(),kO=class extends Jp.InstrumentationBase{_recordFromReq=new WeakMap;constructor(e={}){super(LV.PACKAGE_NAME,LV.PACKAGE_VERSION,e)}init(){}disable(){super.disable(),this._channelSubs.forEach(e=>e.unsubscribe()),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(pt.METRIC_HTTP_CLIENT_REQUEST_DURATION,{description:"Measures the duration of outbound HTTP requests.",unit:"s",valueType:nr.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}subscribeToChannel(e,n){let[r,o]=process.version.replace("v","").split(".").map(a=>Number(a)),s=r>18||r===18&&o>=19,i;if(s)vO.subscribe?.(e,n),i=()=>vO.unsubscribe?.(e,n);else{let a=vO.channel(e);a.subscribe(n),i=()=>a.unsubscribe(n)}this._channelSubs.push({name:e,unsubscribe:i})}parseRequestHeaders(e){let n=new Map;if(Array.isArray(e.headers))for(let r=0;r<e.headers.length;r+=2){let o=e.headers[r],s=e.headers[r+1];typeof o=="string"&&n.set(o.toLowerCase(),s)}else if(typeof e.headers=="string"){let r=e.headers.split(`\r
|
|
9
9
|
`);for(let o of r){if(!o)continue;let s=o.indexOf(":");if(s===-1)continue;let i=o.substring(0,s).toLowerCase(),a=o.substring(s+1).trim(),u=n.get(i);u&&Array.isArray(u)?u.push(a):u?n.set(i,[u,a]):n.set(i,a)}}return n}onRequestCreated({request:e}){let n=this.getConfig(),r=n.enabled!==!1;if((0,Jp.safeExecuteInTheMiddle)(()=>!r||e.method==="CONNECT"||n.ignoreRequestHook?.(e),C=>C&&this._diag.error("caught ignoreRequestHook error: ",C),!0))return;let s=(0,mT.hrTime)(),i;try{i=new nAe.URL(e.path,e.origin)}catch(C){this._diag.warn("could not determine url.full:",C);return}let a=i.protocol.replace(":",""),u=this.getRequestMethod(e.method),l={[pt.ATTR_HTTP_REQUEST_METHOD]:u,[pt.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]:e.method,[pt.ATTR_URL_FULL]:i.toString(),[pt.ATTR_URL_PATH]:i.pathname,[pt.ATTR_URL_QUERY]:i.search,[pt.ATTR_URL_SCHEME]:a},d={https:"443",http:"80"},p=i.hostname,f=i.port||d[a];l[pt.ATTR_SERVER_ADDRESS]=p,f&&!isNaN(Number(f))&&(l[pt.ATTR_SERVER_PORT]=Number(f));let _=this.parseRequestHeaders(e).get("user-agent");if(_){let C=Array.isArray(_)?_[_.length-1]:_;l[pt.ATTR_USER_AGENT_ORIGINAL]=C}let h=(0,Jp.safeExecuteInTheMiddle)(()=>n.startSpanHook?.(e),C=>C&&this._diag.error("caught startSpanHook error: ",C),!0);h&&Object.entries(h).forEach(([C,H])=>{l[C]=H});let g=nr.context.active(),E=nr.trace.getSpan(g),S;n.requireParentforSpans&&(!E||!nr.trace.isSpanContextValid(E.spanContext()))?S=nr.trace.wrapSpanContext(nr.INVALID_SPAN_CONTEXT):S=this.tracer.startSpan(u==="_OTHER"?"HTTP":u,{kind:nr.SpanKind.CLIENT,attributes:l},g),(0,Jp.safeExecuteInTheMiddle)(()=>n.requestHook?.(S,e),C=>C&&this._diag.error("caught requestHook error: ",C),!0);let b=nr.trace.setSpan(nr.context.active(),S),R={};nr.propagation.inject(b,R);let I=Object.entries(R);for(let C=0;C<I.length;C++){let[H,_e]=I[C];typeof e.addHeader=="function"?e.addHeader(H,_e):typeof e.headers=="string"?e.headers+=`${H}: ${_e}\r
|
|
10
|
-
`:Array.isArray(e.headers)&&e.headers.push(H,_e)}this._recordFromReq.set(e,{span:S,attributes:l,startTime:s})}onRequestHeaders({request:e,socket:n}){let r=this._recordFromReq.get(e);if(!r)return;let o=this.getConfig(),{span:s}=r,{remoteAddress:i,remotePort:a}=n,u={[pt.ATTR_NETWORK_PEER_ADDRESS]:i,[pt.ATTR_NETWORK_PEER_PORT]:a};if(o.headersToSpanAttributes?.requestHeaders){let l=new Set(o.headersToSpanAttributes.requestHeaders.map(p=>p.toLowerCase())),d=this.parseRequestHeaders(e);for(let[p,f]of d.entries())if(l.has(p)){let m=Array.isArray(f)?f:[f];u[`http.request.header.${p}`]=m}}s.setAttributes(u)}onResponseHeaders({request:e,response:n}){let r=this._recordFromReq.get(e);if(!r)return;let{span:o,attributes:s}=r,i={[pt.ATTR_HTTP_RESPONSE_STATUS_CODE]:n.statusCode},a=this.getConfig();if((0,Jp.safeExecuteInTheMiddle)(()=>a.responseHook?.(o,{request:e,response:n}),u=>u&&this._diag.error("caught responseHook error: ",u),!0),a.headersToSpanAttributes?.responseHeaders){let u=new Set;a.headersToSpanAttributes?.responseHeaders.forEach(l=>u.add(l.toLowerCase()));for(let l=0;l<n.headers.length;l=l+2){let d=n.headers[l].toString().toLowerCase(),p=n.headers[l+1];if(u.has(d)){let f=`http.response.header.${d}`;Object.hasOwn(i,f)?i[f].push(p.toString()):i[f]=[p.toString()]}}}o.setAttributes(i),o.setStatus({code:n.statusCode>=400?nr.SpanStatusCode.ERROR:nr.SpanStatusCode.UNSET}),r.attributes=Object.assign(s,i)}onDone({request:e}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:o,startTime:s}=n;r.end(),this._recordFromReq.delete(e),this.recordRequestDuration(o,s)}onError({request:e,error:n}){let r=this._recordFromReq.get(e);if(!r)return;let{span:o,attributes:s,startTime:i}=r;o.recordException(n),o.setStatus({code:nr.SpanStatusCode.ERROR,message:n.message}),o.end(),this._recordFromReq.delete(e),s[pt.ATTR_ERROR_TYPE]=n.message,this.recordRequestDuration(s,i)}recordRequestDuration(e,n){let r={};[pt.ATTR_HTTP_RESPONSE_STATUS_CODE,pt.ATTR_HTTP_REQUEST_METHOD,pt.ATTR_SERVER_ADDRESS,pt.ATTR_SERVER_PORT,pt.ATTR_URL_SCHEME,pt.ATTR_ERROR_TYPE].forEach(i=>{i in e&&(r[i]=e[i])});let s=(0,mT.hrTimeToMilliseconds)((0,mT.hrTimeDuration)(n,(0,mT.hrTime)()))/1e3;this._httpClientDurationHistogram.record(s,r)}getRequestMethod(e){let n={CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0,QUERY:!0};return e.toUpperCase()in n?e.toUpperCase():"_OTHER"}};_T.UndiciInstrumentation=kO});var DV=T(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.UndiciInstrumentation=void 0;var rAe=wV();Object.defineProperty(hT,"UndiciInstrumentation",{enumerable:!0,get:function(){return rAe.UndiciInstrumentation}})});var gT=T(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.ExpressLayerType=void 0;var cAe;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(cAe=Xp.ExpressLayerType||(Xp.ExpressLayerType={}))});var TT=T(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.AttributeNames=void 0;var lAe;(function(t){t.EXPRESS_TYPE="express.type",t.EXPRESS_NAME="express.name"})(lAe=Zp.AttributeNames||(Zp.AttributeNames={}))});var LO=T(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc._LAYERS_STORE_PROPERTY=Xc.kLayerPatched=void 0;Xc.kLayerPatched=Symbol("express-layer-patched");Xc._LAYERS_STORE_PROPERTY="__ot_middlewares"});var VV=T(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.getActualMatchedRoute=ft.getConstructedRoute=ft.getLayerPath=ft.asErrorAndMessage=ft.isLayerIgnored=ft.getLayerMetadata=ft.getRouterPath=ft.storeLayerPath=void 0;var wO=gT(),Zc=TT(),Ga=LO(),dAe=(t,e)=>(Array.isArray(t[Ga._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,Ga._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e===void 0?{isLayerPathStored:!1}:(t[Ga._LAYERS_STORE_PROPERTY].push(e),{isLayerPathStored:!0}));ft.storeLayerPath=dAe;var pAe=(t,e)=>{let n=e.handle?.stack?.[0];return n?.route?.path?`${t}${n.route.path}`:n?.handle?.stack?(0,ft.getRouterPath)(t,n):t};ft.getRouterPath=pAe;var fAe=(t,e,n)=>{if(e.name==="router"){let r=(0,ft.getRouterPath)("",e),o=r||n||t||"/";return{attributes:{[Zc.AttributeNames.EXPRESS_NAME]:o,[Zc.AttributeNames.EXPRESS_TYPE]:wO.ExpressLayerType.ROUTER},name:`router - ${o}`}}else return e.name==="bound dispatch"||e.name==="handle"?{attributes:{[Zc.AttributeNames.EXPRESS_NAME]:(t||n)??"request handler",[Zc.AttributeNames.EXPRESS_TYPE]:wO.ExpressLayerType.REQUEST_HANDLER},name:`request handler${e.path?` - ${t||n}`:""}`}:{attributes:{[Zc.AttributeNames.EXPRESS_NAME]:e.name,[Zc.AttributeNames.EXPRESS_TYPE]:wO.ExpressLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};ft.getLayerMetadata=fAe;var mAe=(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")},_Ae=(t,e,n)=>{if(Array.isArray(n?.ignoreLayersType)&&n?.ignoreLayersType?.includes(e))return!0;if(Array.isArray(n?.ignoreLayers)===!1)return!1;try{for(let r of n.ignoreLayers)if(mAe(t,r))return!0}catch{}return!1};ft.isLayerIgnored=_Ae;var hAe=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];ft.asErrorAndMessage=hAe;var gAe=t=>{let e=t[0];return Array.isArray(e)?e.map(n=>jV(n)||"").join(","):jV(e)};ft.getLayerPath=gAe;var jV=t=>{if(typeof t=="string")return t;if(t instanceof RegExp||typeof t=="number")return t.toString()};function HV(t){let n=(Array.isArray(t[Ga._LAYERS_STORE_PROPERTY])?t[Ga._LAYERS_STORE_PROPERTY]:[]).filter(r=>r!=="/"&&r!=="/*");return n.length===1&&n[0]==="*"?"*":n.join("").replace(/\/{2,}/g,"/")}ft.getConstructedRoute=HV;function TAe(t){let e=Array.isArray(t[Ga._LAYERS_STORE_PROPERTY])?t[Ga._LAYERS_STORE_PROPERTY]:[];if(e.length===0)return;if(e.every(s=>s==="/"))return t.originalUrl==="/"?"/":void 0;let n=HV(t);if(n==="*"||n.includes("/")&&(n.includes(",")||n.includes("\\")||n.includes("*")||n.includes("[")))return n;let r=n.startsWith("/")?n:`/${n}`;return r.length>0&&(t.originalUrl===r||t.originalUrl.startsWith(r)||EAe(r))?r:void 0}ft.getActualMatchedRoute=TAe;function EAe(t){return t.includes(":")||t.includes("*")}});var qV=T(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.PACKAGE_NAME=el.PACKAGE_VERSION=void 0;el.PACKAGE_VERSION="0.62.0";el.PACKAGE_NAME="@opentelemetry/instrumentation-express"});var KV=T(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.ExpressInstrumentation=void 0;var $V=Ae(),Dn=(P(),N(L)),zV=gT(),YV=TT(),Mo=VV(),WV=qV(),tl=re(),SAe=(de(),N(Ie)),ET=LO(),DO=class extends tl.InstrumentationBase{constructor(e={}){super(WV.PACKAGE_NAME,WV.PACKAGE_VERSION,e)}init(){return[new tl.InstrumentationNodeModuleDefinition("express",[">=4.0.0 <6"],e=>{let n=typeof e?.Router?.prototype?.route=="function",r=n?e.Router.prototype:e.Router;return(0,tl.isWrapped)(r.route)&&this._unwrap(r,"route"),this._wrap(r,"route",this._getRoutePatch()),(0,tl.isWrapped)(r.use)&&this._unwrap(r,"use"),this._wrap(r,"use",this._getRouterUsePatch()),(0,tl.isWrapped)(e.application.use)&&this._unwrap(e.application,"use"),this._wrap(e.application,"use",this._getAppUsePatch(n)),e},e=>{if(e===void 0)return;let r=typeof e?.Router?.prototype?.route=="function"?e.Router.prototype:e.Router;this._unwrap(r,"route"),this._unwrap(r,"use"),this._unwrap(e.application,"use")})]}_getRoutePatch(){let e=this;return function(n){return function(...o){let s=n.apply(this,o),i=this.stack[this.stack.length-1];return e._applyPatch(i,(0,Mo.getLayerPath)(o)),s}}}_getRouterUsePatch(){let e=this;return function(n){return function(...o){let s=n.apply(this,o),i=this.stack[this.stack.length-1];return e._applyPatch(i,(0,Mo.getLayerPath)(o)),s}}}_getAppUsePatch(e){let n=this;return function(r){return function(...s){let i=e?this.router:this._router,a=r.apply(this,s);if(i){let u=i.stack[i.stack.length-1];n._applyPatch(u,(0,Mo.getLayerPath)(s))}return a}}}_applyPatch(e,n){let r=this;e[ET.kLayerPatched]!==!0&&(e[ET.kLayerPatched]=!0,this._wrap(e,"handle",o=>{if(o.length===4)return o;let s=function(i,a){let{isLayerPathStored:u}=(0,Mo.storeLayerPath)(i,n),l=(0,Mo.getConstructedRoute)(i),d=(0,Mo.getActualMatchedRoute)(i),p={[SAe.ATTR_HTTP_ROUTE]:d},f=(0,Mo.getLayerMetadata)(l,e,n),m=f.attributes[YV.AttributeNames.EXPRESS_TYPE],_=(0,$V.getRPCMetadata)(Dn.context.active());if(_?.type===$V.RPCType.HTTP&&(_.route=d),(0,Mo.isLayerIgnored)(f.name,m,r.getConfig()))return m===zV.ExpressLayerType.MIDDLEWARE&&i[ET._LAYERS_STORE_PROPERTY].pop(),o.apply(this,arguments);if(Dn.trace.getSpan(Dn.context.active())===void 0)return o.apply(this,arguments);let h=r._getSpanName({request:i,layerType:m,route:l},f.name),g=r.tracer.startSpan(h,{attributes:Object.assign(p,f.attributes)}),E=Dn.context.active(),S=Dn.trace.setSpan(E,g),{requestHook:b}=r.getConfig();b&&(0,tl.safeExecuteInTheMiddle)(()=>b(g,{request:i,layerType:m,route:l}),_e=>{_e&&Dn.diag.error("express instrumentation: request hook failed",_e)},!0);let R=!1;f.attributes[YV.AttributeNames.EXPRESS_TYPE]===zV.ExpressLayerType.ROUTER&&(g.end(),R=!0,S=E);let I=()=>{R===!1&&(R=!0,g.end())},C=Array.from(arguments),H=C.findIndex(_e=>typeof _e=="function");H>=0&&(arguments[H]=function(){let _e=arguments[0],De=![void 0,null,"route","router"].includes(_e);if(!R&&De){let[Jo,$n]=(0,Mo.asErrorAndMessage)(_e);g.recordException(Jo),g.setStatus({code:Dn.SpanStatusCode.ERROR,message:$n})}R===!1&&(R=!0,i.res?.removeListener("finish",I),g.end()),!(i.route&&De)&&u&&i[ET._LAYERS_STORE_PROPERTY].pop();let _n=C[H],dr=Dn.context.active(),Qo=Dn.trace.getSpan(E),ut=Qo?Dn.trace.setSpan(dr,Qo):dr;return Dn.context.bind(ut,_n).apply(this,arguments)});try{return Dn.context.bind(S,o).apply(this,arguments)}catch(_e){let[De,_n]=(0,Mo.asErrorAndMessage)(_e);throw g.recordException(De),g.setStatus({code:Dn.SpanStatusCode.ERROR,message:_n}),_e}finally{R||a.once("finish",I)}};for(let i in o)Object.defineProperty(s,i,{get(){return o[i]},set(a){o[i]=a}});return s}))}_getSpanName(e,n){let{spanNameHook:r}=this.getConfig();if(!(r instanceof Function))return n;try{return r(e,n)??n}catch(o){return Dn.diag.error("express instrumentation: error calling span name rewrite hook",o),n}}};ST.ExpressInstrumentation=DO});var QV=T(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.AttributeNames=Ti.ExpressLayerType=Ti.ExpressInstrumentation=void 0;var AAe=KV();Object.defineProperty(Ti,"ExpressInstrumentation",{enumerable:!0,get:function(){return AAe.ExpressInstrumentation}});var yAe=gT();Object.defineProperty(Ti,"ExpressLayerType",{enumerable:!0,get:function(){return yAe.ExpressLayerType}});var bAe=TT();Object.defineProperty(Ti,"AttributeNames",{enumerable:!0,get:function(){return bAe.AttributeNames}})});var t8=T(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.SeverityNumber=void 0;var CAe;(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"})(CAe=ef.SeverityNumber||(ef.SeverityNumber={}))});var bT=T(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.NOOP_LOGGER=nl.NoopLogger=void 0;var yT=class{emit(e){}};nl.NoopLogger=yT;nl.NOOP_LOGGER=new yT});var n8=T(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.API_BACKWARDS_COMPATIBILITY_VERSION=vo.makeGetter=vo._global=vo.GLOBAL_LOGS_API_KEY=void 0;vo.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");vo._global=globalThis;function NAe(t,e,n){return r=>r===t?e:n}vo.makeGetter=NAe;vo.API_BACKWARDS_COMPATIBILITY_VERSION=1});var UO=T(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.NOOP_LOGGER_PROVIDER=rl.NoopLoggerProvider=void 0;var xAe=bT(),RT=class{getLogger(e,n,r){return new xAe.NoopLogger}};rl.NoopLoggerProvider=RT;rl.NOOP_LOGGER_PROVIDER=new RT});var r8=T(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.ProxyLogger=void 0;var PAe=bT(),BO=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,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):PAe.NOOP_LOGGER}};IT.ProxyLogger=BO});var o8=T(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0});OT.ProxyLoggerProvider=void 0;var MAe=UO(),vAe=r8(),FO=class{getLogger(e,n,r){var o;return(o=this._getDelegateLogger(e,n,r))!==null&&o!==void 0?o:new vAe.ProxyLogger(this,e,n,r)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:MAe.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,n,r)}};OT.ProxyLoggerProvider=FO});var i8=T(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.LogsAPI=void 0;var br=n8(),kAe=UO(),s8=o8(),GO=class t{constructor(){this._proxyLoggerProvider=new s8.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,kAe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=br._global[br.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(br._global,br.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete br._global[br.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new s8.ProxyLoggerProvider}};CT.LogsAPI=GO});var jO=T(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.logs=ko.NoopLogger=ko.NOOP_LOGGER=ko.SeverityNumber=void 0;var LAe=t8();Object.defineProperty(ko,"SeverityNumber",{enumerable:!0,get:function(){return LAe.SeverityNumber}});var a8=bT();Object.defineProperty(ko,"NOOP_LOGGER",{enumerable:!0,get:function(){return a8.NOOP_LOGGER}});Object.defineProperty(ko,"NoopLogger",{enumerable:!0,get:function(){return a8.NoopLogger}});var wAe=i8();ko.logs=wAe.LogsAPI.getInstance()});var u8=T(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.disableInstrumentations=ol.enableInstrumentations=void 0;function DAe(t,e,n,r){for(let o=0,s=t.length;o<s;o++){let i=t[o];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}ol.enableInstrumentations=DAe;function UAe(t){t.forEach(e=>e.disable())}ol.disableInstrumentations=UAe});var d8=T(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0});NT.registerInstrumentations=void 0;var c8=(P(),N(L)),BAe=jO(),l8=u8();function FAe(t){let e=t.tracerProvider||c8.trace.getTracerProvider(),n=t.meterProvider||c8.metrics.getMeterProvider(),r=t.loggerProvider||BAe.logs.getLoggerProvider(),o=t.instrumentations?.flat()??[];return(0,l8.enableInstrumentations)(o,e,n,r),()=>{(0,l8.disableInstrumentations)(o)}}NT.registerInstrumentations=FAe});var S8=T(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.satisfies=void 0;var $O=(P(),N(L)),h8=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,GAe=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,jAe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function HAe(t,e,n){if(!VAe(t))return $O.diag.error(`Invalid version: ${t}`),!1;if(!e)return!0;e=e.replace(/([<>=~^]+)\s+/g,"$1");let r=YAe(t);if(!r)return!1;let o=[],s=g8(r,e,o,n);return s&&!n?.includePrerelease?$Ae(r,o):s}xT.satisfies=HAe;function VAe(t){return typeof t=="string"&&h8.test(t)}function g8(t,e,n,r){if(e.includes("||")){let o=e.trim().split("||");for(let s of o)if(HO(t,s,n,r))return!0;return!1}else if(e.includes(" - "))e=mye(e,r);else if(e.includes(" ")){let o=e.trim().replace(/\s{2,}/g," ").split(" ");for(let s of o)if(!HO(t,s,n,r))return!1;return!0}return HO(t,e,n,r)}function HO(t,e,n,r){if(e=zAe(e,r),e.includes(" "))return g8(t,e,n,r);{let o=WAe(e);return n.push(o),qAe(t,o)}}function qAe(t,e){if(e.invalid)return!1;if(!e.version||qO(e.version))return!0;let n=f8(t.versionSegments||[],e.versionSegments||[]);if(n===0){let r=t.prereleaseSegments||[],o=e.prereleaseSegments||[];!r.length&&!o.length?n=0:!r.length&&o.length?n=1:r.length&&!o.length?n=-1:n=f8(r,o)}return jAe[e.op]?.includes(n)}function $Ae(t,e){return t.prerelease?e.some(n=>n.prerelease&&n.version===t.version):!0}function zAe(t,e){return t=t.trim(),t=pye(t,e),t=dye(t),t=fye(t,e),t=t.trim(),t}function bn(t){return!t||t.toLowerCase()==="x"||t==="*"}function YAe(t){let e=t.match(h8);if(!e){$O.diag.error(`Invalid version: ${t}`);return}let n=e.groups.version,r=e.groups.prerelease,o=e.groups.build,s=n.split("."),i=r?.split(".");return{op:void 0,version:n,versionSegments:s,versionSegmentCount:s.length,prerelease:r,prereleaseSegments:i,prereleaseSegmentCount:i?i.length:0,build:o}}function WAe(t){if(!t)return{};let e=t.match(GAe);if(!e)return $O.diag.error(`Invalid range: ${t}`),{invalid:!0};let n=e.groups.op,r=e.groups.version,o=e.groups.prerelease,s=e.groups.build,i=r.split("."),a=o?.split(".");return n==="=="&&(n="="),{op:n||"=",version:r,versionSegments:i,versionSegmentCount:i.length,prerelease:o,prereleaseSegments:a,prereleaseSegmentCount:a?a.length:0,build:s}}function qO(t){return t==="*"||t==="x"||t==="X"}function p8(t){let e=parseInt(t,10);return isNaN(e)?t:e}function KAe(t,e){if(typeof t==typeof e){if(typeof t=="number")return[t,e];if(typeof t=="string")return[t,e];throw new Error("Version segments can only be strings or numbers")}else return[String(t),String(e)]}function QAe(t,e){if(qO(t)||qO(e))return 0;let[n,r]=KAe(p8(t),p8(e));return n>r?1:n<r?-1:0}function f8(t,e){for(let n=0;n<Math.max(t.length,e.length);n++){let r=QAe(t[n]||"0",e[n]||"0");if(r!==0)return r}return 0}var T8="[a-zA-Z0-9-]",E8="0|[1-9]\\d*",JAe=`\\d*[a-zA-Z-]${T8}*`,XAe="((?:<|>)?=?)",m8=`(?:${E8}|${JAe})`,ZAe=`(?:-(${m8}(?:\\.${m8})*))`,_8=`${T8}+`,eye=`(?:\\+(${_8}(?:\\.${_8})*))`,VO=`${E8}|x|X|\\*`,tf=`[v=\\s]*(${VO})(?:\\.(${VO})(?:\\.(${VO})(?:${ZAe})?${eye}?)?)?`,tye=`^${XAe}\\s*${tf}$`,nye=new RegExp(tye),rye=`^\\s*(${tf})\\s+-\\s+(${tf})\\s*$`,oye=new RegExp(rye),sye="(?:~>?)",iye=`^${sye}${tf}$`,aye=new RegExp(iye),uye="(?:\\^)",cye=`^${uye}${tf}$`,lye=new RegExp(cye);function dye(t){let e=aye;return t.replace(e,(n,r,o,s,i)=>{let a;return bn(r)?a="":bn(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:bn(s)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:i?a=`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:a=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,a})}function pye(t,e){let n=lye,r=e?.includePrerelease?"-0":"";return t.replace(n,(o,s,i,a,u)=>{let l;return bn(s)?l="":bn(i)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:bn(a)?s==="0"?l=`>=${s}.${i}.0${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${r} <${+s+1}.0.0-0`:u?s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${u} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${u} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${u} <${+s+1}.0.0-0`:s==="0"?i==="0"?l=`>=${s}.${i}.${a}${r} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`,l})}function fye(t,e){let n=nye;return t.replace(n,(r,o,s,i,a,u)=>{let l=bn(s),d=l||bn(i),p=d||bn(a),f=p;return o==="="&&f&&(o=""),u=e?.includePrerelease?"-0":"",l?o===">"||o==="<"?r="<0.0.0-0":r="*":o&&f?(d&&(i=0),a=0,o===">"?(o=">=",d?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",d?s=+s+1:i=+i+1),o==="<"&&(u="-0"),r=`${o+s}.${i}.${a}${u}`):d?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${u} <${s}.${+i+1}.0-0`),r})}function mye(t,e){let n=oye;return t.replace(n,(r,o,s,i,a,u,l,d,p,f,m,_)=>(bn(s)?o="":bn(i)?o=`>=${s}.0.0${e?.includePrerelease?"-0":""}`:bn(a)?o=`>=${s}.${i}.0${e?.includePrerelease?"-0":""}`:u?o=`>=${o}`:o=`>=${o}${e?.includePrerelease?"-0":""}`,bn(p)?d="":bn(f)?d=`<${+p+1}.0.0-0`:bn(m)?d=`<${p}.${+f+1}.0-0`:_?d=`<=${p}.${f}.${m}-${_}`:e?.includePrerelease?d=`<${p}.${f}.${+m+1}-0`:d=`<=${d}`,`${o} ${d}`.trim()))}});var zO=T(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.massUnwrap=Wt.unwrap=Wt.massWrap=Wt.wrap=void 0;var Rn=console.error.bind(console);function nf(t,e,n){let r=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}var _ye=(t,e,n)=>{if(!t||!t[e]){Rn("no original function "+String(e)+" to wrap");return}if(!n){Rn("no wrapper function"),Rn(new Error().stack);return}let r=t[e];if(typeof r!="function"||typeof n!="function"){Rn("original object and wrapper must be functions");return}let o=n(r,e);return nf(o,"__original",r),nf(o,"__unwrap",()=>{t[e]===o&&nf(t,e,r)}),nf(o,"__wrapped",!0),nf(t,e,o),o};Wt.wrap=_ye;var hye=(t,e,n)=>{if(t)Array.isArray(t)||(t=[t]);else{Rn("must provide one or more modules to patch"),Rn(new Error().stack);return}if(!(e&&Array.isArray(e))){Rn("must provide one or more functions to wrap on modules");return}t.forEach(r=>{e.forEach(o=>{(0,Wt.wrap)(r,o,n)})})};Wt.massWrap=hye;var gye=(t,e)=>{if(!t||!t[e]){Rn("no function to unwrap."),Rn(new Error().stack);return}let n=t[e];if(!n.__unwrap)Rn("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{n.__unwrap();return}};Wt.unwrap=gye;var Tye=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Rn("must provide one or more modules to patch"),Rn(new Error().stack);return}if(!(e&&Array.isArray(e))){Rn("must provide one or more functions to unwrap on modules");return}t.forEach(n=>{e.forEach(r=>{(0,Wt.unwrap)(n,r)})})};Wt.massUnwrap=Tye;function rf(t){t&&t.logger&&(typeof t.logger!="function"?Rn("new logger isn't a function, not replacing"):Rn=t.logger)}Wt.default=rf;rf.wrap=Wt.wrap;rf.massWrap=Wt.massWrap;rf.unwrap=Wt.unwrap;rf.massUnwrap=Wt.massUnwrap});var A8=T(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.InstrumentationAbstract=void 0;var YO=(P(),N(L)),Eye=jO(),PT=zO(),WO=class{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,n,r){this.instrumentationName=e,this.instrumentationVersion=n,this.setConfig(r),this._diag=YO.diag.createComponentLogger({namespace:e}),this._tracer=YO.trace.getTracer(e,n),this._meter=YO.metrics.getMeter(e,n),this._logger=Eye.logs.getLogger(e,n),this._updateMetricInstruments()}_wrap=PT.wrap;_unwrap=PT.unwrap;_massWrap=PT.massWrap;_massUnwrap=PT.massUnwrap;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(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,n,r,o){if(e)try{e(r,o)}catch(s){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},s)}}};MT.InstrumentationAbstract=WO});var y8=T(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.ModuleNameTrie=Ei.ModuleNameSeparator=void 0;Ei.ModuleNameSeparator="/";var vT=class{hooks=[];children=new Map},KO=class{_trie=new vT;_counter=0;insert(e){let n=this._trie;for(let r of e.moduleName.split(Ei.ModuleNameSeparator)){let o=n.children.get(r);o||(o=new vT,n.children.set(r,o)),n=o}n.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:n,fullOnly:r}={}){let o=this._trie,s=[],i=!0;for(let a of e.split(Ei.ModuleNameSeparator)){let u=o.children.get(a);if(!u){i=!1;break}r||s.push(...u.hooks),o=u}return r&&i&&s.push(...o.hooks),s.length===0?[]:s.length===1?[s[0].hook]:(n&&s.sort((a,u)=>a.insertedId-u.insertedId),s.map(({hook:a})=>a))}};Ei.ModuleNameTrie=KO});var R8=T(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.RequireInTheMiddleSingleton=void 0;var Sye=fa(),b8=U("path"),QO=y8(),Aye=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),JO=class t{_moduleNameTrie=new QO.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new Sye.Hook(null,{internals:!0},(e,n,r)=>{let o=yye(n),s=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:r===void 0});for(let{onRequire:i}of s)e=i(e,n,r);return e})}register(e,n){let r={moduleName:e,onRequire:n};return this._moduleNameTrie.insert(r),r}static getInstance(){return Aye?new t:this._instance=this._instance??new t}};kT.RequireInTheMiddleSingleton=JO;function yye(t){return b8.sep!==QO.ModuleNameSeparator?t.split(b8.sep).join(QO.ModuleNameSeparator):t}});var x8=T(of=>{var I8=[],XO=new WeakMap,O8=new WeakMap,C8=new Map,N8=[],bye={set(t,e,n){let r=XO.get(t),o=r&&r[e];return typeof o=="function"?o(n):!0},get(t,e){if(e===Symbol.toStringTag)return"Module";let n=O8.get(t)[e];if(typeof n=="function")return n()},defineProperty(t,e,n){if(!("value"in n))throw new Error("Getters/setters are not supported for exports property descriptors.");let r=XO.get(t),o=r&&r[e];return typeof o=="function"?o(n.value):!0}};function Rye(t,e,n,r,o){C8.set(t,o),XO.set(e,n),O8.set(e,r);let s=new Proxy(e,bye);I8.forEach(i=>i(t,s,o)),N8.push([t,s,o])}of.register=Rye;of.importHooks=I8;of.specifiers=C8;of.toHook=N8});var nC=T((YJe,il)=>{var P8=U("path"),Iye=w_(),{fileURLToPath:Oye}=U("url"),{MessageChannel:Cye}=U("worker_threads"),{isBuiltin:ZO}=U("module");ZO||(ZO=()=>!0);var{importHooks:eC,specifiers:Nye,toHook:xye}=x8();function M8(t){eC.push(t),xye.forEach(([e,n,r])=>t(e,n,r))}function v8(t){let e=eC.indexOf(t);e>-1&&eC.splice(e,1)}function sl(t,e,n,r){let o=t(e,n,r);o&&o!==e&&"default"in e&&(e.default=o)}var tC;function Pye(){let{port1:t,port2:e}=new Cye,n=0,r;tC=a=>{n++,t.postMessage(a)},t.on("message",()=>{n--,r&&n<=0&&r()}).unref();function o(){let a=setInterval(()=>{},1e3),u=new Promise(l=>{r=l}).then(()=>{clearInterval(a)});return n===0&&r(),u}let s=e;return{registerOptions:{data:{addHookMessagePort:s,include:[]},transferList:[s]},addHookMessagePort:s,waitForAllMessagesAcknowledged:o}}function sf(t,e,n){if(!(this instanceof sf))return new sf(t,e,n);typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null);let r=e?e.internals===!0:!1;tC&&Array.isArray(t)&&tC(t),this._iitmHook=(o,s,i)=>{let a=o,u=a.startsWith("node:"),l,d;if(u){let p=o.slice(5);ZO(p)&&(o=p)}else if(a.startsWith("file://")){let p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{l=Oye(o),o=l}catch{}if(Error.stackTraceLimit=p,l){let f=Iye(l);f&&(o=f.name,d=f.basedir)}}if(t)for(let p of t)if(l&&p===l)sl(n,s,l,void 0);else if(p===o){if(!d)sl(n,s,o,d);else if(d.endsWith(Nye.get(a)))sl(n,s,o,d);else if(r){let f=o+P8.sep+P8.relative(d,l);sl(n,s,f,d)}}else p===i&&sl(n,s,i,d);else sl(n,s,o,d)},M8(this._iitmHook)}sf.prototype.unhook=function(){v8(this._iitmHook)};il.exports=sf;il.exports.Hook=sf;il.exports.addHook=M8;il.exports.removeHook=v8;il.exports.createAddHookMessageChannel=Pye});var rC=T(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.isWrapped=Si.safeExecuteInTheMiddleAsync=Si.safeExecuteInTheMiddle=void 0;function Mye(t,e,n){let r,o;try{o=t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}Si.safeExecuteInTheMiddle=Mye;async function vye(t,e,n){let r,o;try{o=await t()}catch(s){r=s}finally{if(await e(r,o),r&&!n)throw r;return o}}Si.safeExecuteInTheMiddleAsync=vye;function kye(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Si.isWrapped=kye});var w8=T(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.InstrumentationBase=void 0;var af=U("path"),k8=U("util"),Lye=S8(),oC=zO(),wye=A8(),Dye=R8(),Uye=nC(),uf=(P(),N(L)),Bye=fa(),Fye=U("fs"),Gye=rC(),sC=class extends wye.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=Dye.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,n,r){super(e,n,r);let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_wrap=(e,n,r)=>{if((0,Gye.isWrapped)(e[n])&&this._unwrap(e,n),k8.types.isProxy(e)){let o=(0,oC.wrap)(Object.assign({},e),n,r);return Object.defineProperty(e,n,{value:o}),o}else return(0,oC.wrap)(e,n,r)};_unwrap=(e,n)=>k8.types.isProxy(e)?Object.defineProperty(e,n,{value:e[n]}):(0,oC.unwrap)(e,n);_massWrap=(e,n,r)=>{if(e)Array.isArray(e)||(e=[e]);else{uf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){uf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(o=>{n.forEach(s=>{this._wrap(o,s,r)})})};_massUnwrap=(e,n)=>{if(e)Array.isArray(e)||(e=[e]);else{uf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){uf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(r=>{n.forEach(o=>{this._unwrap(r,o)})})};_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:n}=e;try{let r=U.resolve(n);U.cache[r]&&this._diag.warn(`Module ${n} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${n}`)}catch{}})}_extractPackageVersion(e){try{let n=(0,Fye.readFileSync)(af.join(e,"package.json"),{encoding:"utf8"}),r=JSON.parse(n).version;return typeof r=="string"?r:void 0}catch{uf.diag.warn("Failed extracting version",e)}}_onRequire(e,n,r,o){if(!o)return typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(n)):n;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===r)return L8(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(n,e.moduleVersion)):n;let i=e.files??[],a=af.normalize(r);return i.filter(l=>l.name===a&&L8(l.supportedVersions,s,e.includePrerelease)).reduce((l,d)=>(d.moduleExports=l,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:d.name,baseDir:o}),d.patch(l,e.moduleVersion)):l),n)}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 n of e.files)n.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.patch(n.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let n=(i,a,u)=>{if(!u&&af.isAbsolute(a)){let l=af.parse(a);a=l.name,u=l.dir}return this._onRequire(e,i,a,u)},r=(i,a,u)=>this._onRequire(e,i,a,u),o=af.isAbsolute(e.name)?new Bye.Hook([e.name],{internals:!0},r):this._requireInTheMiddleSingleton.register(e.name,r);this._hooks.push(o);let s=new Uye.Hook([e.name],{internals:!0},n);this._hooks.push(s)}}}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 n of e.files)n.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.unpatch(n.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};LT.InstrumentationBase=sC;function L8(t,e,n){return typeof e>"u"?t.includes("*"):t.some(r=>(0,Lye.satisfies)(e,r,{includePrerelease:n}))}});var D8=T(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.normalize=void 0;var jye=U("path");Object.defineProperty(wT,"normalize",{enumerable:!0,get:function(){return jye.normalize}})});var U8=T(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.normalize=al.InstrumentationBase=void 0;var Hye=w8();Object.defineProperty(al,"InstrumentationBase",{enumerable:!0,get:function(){return Hye.InstrumentationBase}});var Vye=D8();Object.defineProperty(al,"normalize",{enumerable:!0,get:function(){return Vye.normalize}})});var iC=T(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.normalize=ul.InstrumentationBase=void 0;var B8=U8();Object.defineProperty(ul,"InstrumentationBase",{enumerable:!0,get:function(){return B8.InstrumentationBase}});Object.defineProperty(ul,"normalize",{enumerable:!0,get:function(){return B8.normalize}})});var F8=T(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.InstrumentationNodeModuleDefinition=void 0;var aC=class{files;name;supportedVersions;patch;unpatch;constructor(e,n,r,o,s){this.files=s||[],this.name=e,this.supportedVersions=n,this.patch=r,this.unpatch=o}};DT.InstrumentationNodeModuleDefinition=aC});var G8=T(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.InstrumentationNodeModuleFile=void 0;var qye=iC(),uC=class{name;supportedVersions;patch;unpatch;constructor(e,n,r,o){this.name=(0,qye.normalize)(e),this.supportedVersions=n,this.patch=r,this.unpatch=o}};UT.InstrumentationNodeModuleFile=uC});var j8=T(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.semconvStabilityFromStr=ja.SemconvStability=void 0;var BT;(function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"})(BT=ja.SemconvStability||(ja.SemconvStability={}));function $ye(t,e){let n=BT.OLD,r=e?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(let o of r??[])if(o.toLowerCase()===t+"/dup"){n=BT.DUPLICATE;break}else o.toLowerCase()===t&&(n=BT.STABLE);return n}ja.semconvStabilityFromStr=$ye});var V8=T(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.semconvStabilityFromStr=mt.SemconvStability=mt.safeExecuteInTheMiddleAsync=mt.safeExecuteInTheMiddle=mt.isWrapped=mt.InstrumentationNodeModuleFile=mt.InstrumentationNodeModuleDefinition=mt.InstrumentationBase=mt.registerInstrumentations=void 0;var zye=d8();Object.defineProperty(mt,"registerInstrumentations",{enumerable:!0,get:function(){return zye.registerInstrumentations}});var Yye=iC();Object.defineProperty(mt,"InstrumentationBase",{enumerable:!0,get:function(){return Yye.InstrumentationBase}});var Wye=F8();Object.defineProperty(mt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return Wye.InstrumentationNodeModuleDefinition}});var Kye=G8();Object.defineProperty(mt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return Kye.InstrumentationNodeModuleFile}});var cC=rC();Object.defineProperty(mt,"isWrapped",{enumerable:!0,get:function(){return cC.isWrapped}});Object.defineProperty(mt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return cC.safeExecuteInTheMiddle}});Object.defineProperty(mt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return cC.safeExecuteInTheMiddleAsync}});var H8=j8();Object.defineProperty(mt,"SemconvStability",{enumerable:!0,get:function(){return H8.SemconvStability}});Object.defineProperty(mt,"semconvStabilityFromStr",{enumerable:!0,get:function(){return H8.semconvStabilityFromStr}})});var q8=T((oXe,Qye)=>{Qye.exports={name:"@fastify/otel",version:"0.18.0",description:"Official Fastify OpenTelemetry Instrumentation",main:"index.js",type:"commonjs",types:"types/index.d.ts",scripts:{lint:"eslint","lint:fix":"eslint --fix",test:"npm run test:all && npm run test:typescript","test:unit":"c8 --100 node --test","test:all":"npm run test:v4 && npm run test:v5","test:v4":"cross-env FASTIFY_VERSION=fastifyv4 npm run test:unit","test:v5":"cross-env FASTIFY_VERSION=fastify npm run test:unit","test:coverage":"c8 node --test && c8 report --reporter=html","test:typescript":"tsd"},repository:{type:"git",url:"git+https://github.com/fastify/otel.git"},keywords:["plugin","helper","fastify","instrumentation","otel","opentelemetry"],author:"Carlos Fuentes - @metcoder95 (https://metcoder.dev)",license:"MIT",bugs:{url:"https://github.com/fastify/otel/issues"},homepage:"https://github.com/fastify/otel#readme",funding:[{type:"github",url:"https://github.com/sponsors/fastify"},{type:"opencollective",url:"https://opencollective.com/fastify"}],devDependencies:{"@fastify/type-provider-typebox":"^6.1.0","@opentelemetry/context-async-hooks":"^2.0.0","@opentelemetry/contrib-test-utils":"^0.59.0","@opentelemetry/instrumentation-http":"^0.212.0","@opentelemetry/propagator-jaeger":"^2.0.0","@opentelemetry/sdk-trace-base":"^2.0.0","@opentelemetry/sdk-trace-node":"^2.2.0","@types/node":"^25.0.3",c8:"^11.0.0","cross-env":"^10.0.0",eslint:"^9.16.0",fastify:"^5.1.0","fastify-plugin":"^5.1.0",fastifyv4:"npm:fastify@^4.0.0",neostandard:"^0.12.0",tsd:"^0.33.0"},dependencies:{"@opentelemetry/core":"^2.0.0","@opentelemetry/instrumentation":"^0.212.0","@opentelemetry/semantic-conventions":"^1.28.0",minimatch:"^10.2.4"},peerDependencies:{"@opentelemetry/api":"^1.9.0"},tsd:{directory:"types"}}});var z8=T(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.range=Ha.balanced=void 0;var Jye=(t,e,n)=>{let r=t instanceof RegExp?$8(t,n):t,o=e instanceof RegExp?$8(e,n):e,s=r!==null&&o!=null&&(0,Ha.range)(r,o,n);return s&&{start:s[0],end:s[1],pre:n.slice(0,s[0]),body:n.slice(s[0]+r.length,s[1]),post:n.slice(s[1]+o.length)}};Ha.balanced=Jye;var $8=(t,e)=>{let n=e.match(t);return n?n[0]:null},Xye=(t,e,n)=>{let r,o,s,i,a,u=n.indexOf(t),l=n.indexOf(e,u+1),d=u;if(u>=0&&l>0){if(t===e)return[u,l];for(r=[],s=n.length;d>=0&&!a;){if(d===u)r.push(d),u=n.indexOf(t,d+1);else if(r.length===1){let p=r.pop();p!==void 0&&(a=[p,l])}else o=r.pop(),o!==void 0&&o<s&&(s=o,i=l),l=n.indexOf(e,d+1);d=u<l&&u>=0?u:l}r.length&&i!==void 0&&(a=[s,i])}return a};Ha.range=Xye});var Z8=T(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.EXPANSION_MAX=void 0;cl.expand=dbe;var Y8=z8(),W8="\0SLASH"+Math.random()+"\0",K8="\0OPEN"+Math.random()+"\0",dC="\0CLOSE"+Math.random()+"\0",Q8="\0COMMA"+Math.random()+"\0",J8="\0PERIOD"+Math.random()+"\0",Zye=new RegExp(W8,"g"),ebe=new RegExp(K8,"g"),tbe=new RegExp(dC,"g"),nbe=new RegExp(Q8,"g"),rbe=new RegExp(J8,"g"),obe=/\\\\/g,sbe=/\\{/g,ibe=/\\}/g,abe=/\\,/g,ube=/\\\./g;cl.EXPANSION_MAX=1e5;function lC(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function cbe(t){return t.replace(obe,W8).replace(sbe,K8).replace(ibe,dC).replace(abe,Q8).replace(ube,J8)}function lbe(t){return t.replace(Zye,"\\").replace(ebe,"{").replace(tbe,"}").replace(nbe,",").replace(rbe,".")}function X8(t){if(!t)return[""];let e=[],n=(0,Y8.balanced)("{","}",t);if(!n)return t.split(",");let{pre:r,body:o,post:s}=n,i=r.split(",");i[i.length-1]+="{"+o+"}";let a=X8(s);return s.length&&(i[i.length-1]+=a.shift(),i.push.apply(i,a)),e.push.apply(e,i),e}function dbe(t,e={}){if(!t)return[];let{max:n=cl.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),cf(cbe(t),n,!0).map(lbe)}function pbe(t){return"{"+t+"}"}function fbe(t){return/^-?0\d/.test(t)}function mbe(t,e){return t<=e}function _be(t,e){return t>=e}function cf(t,e,n){let r=[],o=(0,Y8.balanced)("{","}",t);if(!o)return[t];let s=o.pre,i=o.post.length?cf(o.post,e,!1):[""];if(/\$$/.test(o.pre))for(let a=0;a<i.length&&a<e;a++){let u=s+"{"+o.body+"}"+i[a];r.push(u)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),l=a||u,d=o.body.indexOf(",")>=0;if(!l&&!d)return o.post.match(/,(?!,).*\}/)?(t=o.pre+"{"+o.body+dC+o.post,cf(t,e,!0)):[t];let p;if(l)p=o.body.split(/\.\./);else if(p=X8(o.body),p.length===1&&p[0]!==void 0&&(p=cf(p[0],e,!1).map(pbe),p.length===1))return i.map(m=>o.pre+p[0]+m);let f;if(l&&p[0]!==void 0&&p[1]!==void 0){let m=lC(p[0]),_=lC(p[1]),h=Math.max(p[0].length,p[1].length),g=p.length===3&&p[2]!==void 0?Math.abs(lC(p[2])):1,E=mbe;_<m&&(g*=-1,E=_be);let b=p.some(fbe);f=[];for(let R=m;E(R,_);R+=g){let I;if(u)I=String.fromCharCode(R),I==="\\"&&(I="");else if(I=String(R),b){let C=h-I.length;if(C>0){let H=new Array(C+1).join("0");R<0?I="-"+H+I.slice(1):I=H+I}}f.push(I)}}else{f=[];for(let m=0;m<p.length;m++)f.push.apply(f,cf(p[m],e,!1))}for(let m=0;m<f.length;m++)for(let _=0;_<i.length&&r.length<e;_++){let h=s+f[m]+i[_];(!n||l||h)&&r.push(h)}}return r}});var eq=T(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.assertValidPattern=void 0;var hbe=1024*64,gbe=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>hbe)throw new TypeError("pattern is too long")};FT.assertValidPattern=gbe});var nq=T(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.parseClass=void 0;var Tbe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},lf=t=>t.replace(/[[\]\\-]/g,"\\$&"),Ebe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tq=t=>t.join(""),Sbe=(t,e)=>{let n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");let r=[],o=[],s=n+1,i=!1,a=!1,u=!1,l=!1,d=n,p="";e:for(;s<t.length;){let h=t.charAt(s);if((h==="!"||h==="^")&&s===n+1){l=!0,s++;continue}if(h==="]"&&i&&!u){d=s+1;break}if(i=!0,h==="\\"&&!u){u=!0,s++;continue}if(h==="["&&!u){for(let[g,[E,S,b]]of Object.entries(Tbe))if(t.startsWith(g,s)){if(p)return["$.",!1,t.length-n,!0];s+=g.length,b?o.push(E):r.push(E),a=a||S;continue e}}if(u=!1,p){h>p?r.push(lf(p)+"-"+lf(h)):h===p&&r.push(lf(h)),p="",s++;continue}if(t.startsWith("-]",s+1)){r.push(lf(h+"-")),s+=2;continue}if(t.startsWith("-",s+1)){p=h,s+=2;continue}r.push(lf(h)),s++}if(d<s)return["",!1,0,!1];if(!r.length&&!o.length)return["$.",!1,t.length-n,!0];if(o.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l){let h=r[0].length===2?r[0].slice(-1):r[0];return[Ebe(h),!1,d-n,!1]}let f="["+(l?"^":"")+tq(r)+"]",m="["+(l?"":"^")+tq(o)+"]";return[r.length&&o.length?"("+f+"|"+m+")":r.length?f:m,a,d-n,!0]};GT.parseClass=Sbe});var HT=T(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.unescape=void 0;var Abe=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!0}={})=>n?e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):e?t.replace(/\[([^\/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");jT.unescape=Abe});var mC=T(zT=>{"use strict";var Un;Object.defineProperty(zT,"__esModule",{value:!0});zT.AST=void 0;var ybe=nq(),VT=HT(),bbe=new Set(["!","?","+","*","@"]),pC=t=>bbe.has(t),rq=t=>pC(t.type),Rbe=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Ibe=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Obe=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),oq=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Cbe="(?!(?:^|/)\\.\\.?(?:$|/))",qT="(?!\\.)",Nbe=new Set(["[","."]),xbe=new Set(["..","."]),Pbe=new Set("().*{}+?[]^$\\!"),Mbe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fC="[^/]",sq=fC+"*?",iq=fC+"+?",vbe=0,$T=class{type;#n;#r;#o=!1;#e=[];#t;#a;#c;#u=!1;#s;#i;#l=!1;id=++vbe;get depth(){return(this.#t?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#n.id,parent:this.#t?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(e,n,r={}){this.type=e,e&&(this.#r=!0),this.#t=n,this.#n=this.#t?this.#t.#n:this,this.#s=this.#n===this?r:this.#n.#s,this.#c=this.#n===this?[]:this.#n.#c,e==="!"&&!this.#n.#u&&this.#c.push(this),this.#a=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#i!==void 0?this.#i:this.type?this.#i=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#i=this.#e.map(e=>String(e)).join("")}#g(){if(this!==this.#n)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let n=e,r=n.#t;for(;r;){for(let o=n.#a+1;!r.type&&o<r.#e.length;o++)for(let s of e.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#e[o])}n=r,r=n.#t}}return this}push(...e){for(let n of e)if(n!==""){if(typeof n!="string"&&!(n instanceof Un&&n.#t===this))throw new Error("invalid part: "+n);this.#e.push(n)}}toJSON(){let e=this.type===null?this.#e.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#e.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#u&&this.#t?.type==="!")&&e.push({}),e}isStart(){if(this.#n===this)return!0;if(!this.#t?.isStart())return!1;if(this.#a===0)return!0;let e=this.#t;for(let n=0;n<this.#a;n++){let r=e.#e[n];if(!(r instanceof Un&&r.type==="!"))return!1}return!0}isEnd(){if(this.#n===this||this.#t?.type==="!")return!0;if(!this.#t?.isEnd())return!1;if(!this.type)return this.#t?.isEnd();let e=this.#t?this.#t.#e.length:0;return this.#a===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let n=new Un(this.type,e);for(let r of this.#e)n.copyIn(r);return n}static#d(e,n,r,o,s){let i=o.maxExtglobRecursion??2,a=!1,u=!1,l=-1,d=!1;if(n.type===null){let h=r,g="";for(;h<e.length;){let E=e.charAt(h++);if(a||E==="\\"){a=!a,g+=E;continue}if(u){h===l+1?(E==="^"||E==="!")&&(d=!0):E==="]"&&!(h===l+2&&d)&&(u=!1),g+=E;continue}else if(E==="["){u=!0,l=h,d=!1,g+=E;continue}if(!o.noext&&pC(E)&&e.charAt(h)==="("&&s<=i){n.push(g),g="";let b=new Un(E,n);h=Un.#d(e,b,h,o,s+1),n.push(b);continue}g+=E}return n.push(g),h}let p=r+1,f=new Un(null,n),m=[],_="";for(;p<e.length;){let h=e.charAt(p++);if(a||h==="\\"){a=!a,_+=h;continue}if(u){p===l+1?(h==="^"||h==="!")&&(d=!0):h==="]"&&!(p===l+2&&d)&&(u=!1),_+=h;continue}else if(h==="["){u=!0,l=p,d=!1,_+=h;continue}if(!o.noext&&pC(h)&&e.charAt(p)==="("&&(s<=i||n&&n.#p(h))){let E=n&&n.#p(h)?0:1;f.push(_),_="";let S=new Un(h,f);f.push(S),p=Un.#d(e,S,p,o,s+E);continue}if(h==="|"){f.push(_),_="",m.push(f),f=new Un(null,n);continue}if(h===")")return _===""&&n.#e.length===0&&(n.#l=!0),f.push(_),_="",n.push(...m,f),p;_+=h}return n.type=null,n.#r=void 0,n.#e=[e.substring(r-1)],p}#T(e){return this.#m(e,Ibe)}#m(e,n=Rbe){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let r=e.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#p(r.type,n)}#p(e,n=Obe){return!!n.get(this.type)?.includes(e)}#E(e,n){let r=e.#e[0],o=new Un(null,r,this.options);o.#e.push(""),r.push(o),this.#_(e,n)}#_(e,n){let r=e.#e[0];this.#e.splice(n,1,...r.#e);for(let o of r.#e)typeof o=="object"&&(o.#t=this);this.#i=void 0}#S(e){return!!oq.get(this.type)?.has(e)}#A(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let n=e.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#S(n.type)}#y(e){let n=oq.get(this.type),r=e.#e[0],o=n?.get(r.type);if(!o)return!1;this.#e=r.#e;for(let s of this.#e)typeof s=="object"&&(s.#t=this);this.type=o,this.#i=void 0,this.#l=!1}static fromGlob(e,n={}){let r=new Un(null,void 0,n);return Un.#d(e,r,0,n,0),r}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();let e=this.toString(),[n,r,o,s]=this.toRegExpSource();if(!(o||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:e})}get options(){return this.#s}toRegExpSource(e){let n=e??!!this.#s.dot;if(this.#n===this&&(this.#f(),this.#g()),!rq(this)){let u=this.isStart()&&this.isEnd()&&!this.#e.some(m=>typeof m!="string"),l=this.#e.map(m=>{let[_,h,g,E]=typeof m=="string"?Un.#b(m,this.#r,u):m.toRegExpSource(e);return this.#r=this.#r||g,this.#o=this.#o||E,_}).join(""),d="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&xbe.has(this.#e[0]))){let _=Nbe,h=n&&_.has(l.charAt(0))||l.startsWith("\\.")&&_.has(l.charAt(2))||l.startsWith("\\.\\.")&&_.has(l.charAt(4)),g=!n&&!e&&_.has(l.charAt(0));d=h?Cbe:g?qT:""}let p="";return this.isEnd()&&this.#n.#u&&this.#t?.type==="!"&&(p="(?:$|\\/)"),[d+l+p,(0,VT.unescape)(l),this.#r=!!this.#r,this.#o]}let r=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString(),l=this;return l.#e=[u],l.type=null,l.#r=void 0,[u,(0,VT.unescape)(this.toString()),!1,!1]}let i=!r||e||n||!qT?"":this.#h(!0);i===s&&(i=""),i&&(s=`(?:${s})(?:${i})*?`);let a="";if(this.type==="!"&&this.#l)a=(this.isStart()&&!n?qT:"")+iq;else{let u=this.type==="!"?"))"+(this.isStart()&&!n&&!e?qT:"")+sq+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&i?")":this.type==="*"&&i?")?":`)${this.type}`;a=o+s+u}return[a,(0,VT.unescape)(s),this.#r=!!this.#r,this.#o]}#f(){if(rq(this)){let e=0,n=!1;do{n=!0;for(let r=0;r<this.#e.length;r++){let o=this.#e[r];typeof o=="object"&&(o.#f(),this.#m(o)?(n=!1,this.#_(o,r)):this.#T(o)?(n=!1,this.#E(o,r)):this.#A(o)&&(n=!1,this.#y(o)))}}while(!n&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#f();this.#i=void 0}#h(e){return this.#e.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[r,o,s,i]=n.toRegExpSource(e);return this.#o=this.#o||i,r}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#b(e,n,r=!1){let o=!1,s="",i=!1,a=!1;for(let u=0;u<e.length;u++){let l=e.charAt(u);if(o){o=!1,s+=(Pbe.has(l)?"\\":"")+l;continue}if(l==="*"){if(a)continue;a=!0,s+=r&&/^[*]+$/.test(e)?iq:sq,n=!0;continue}else a=!1;if(l==="\\"){u===e.length-1?s+="\\\\":o=!0;continue}if(l==="["){let[d,p,f,m]=(0,ybe.parseClass)(e,u);if(f){s+=d,i=i||p,u+=f-1,n=n||m;continue}}if(l==="?"){s+=fC,n=!0;continue}s+=Mbe(l)}return[s,(0,VT.unescape)(e),!!n,i]}};zT.AST=$T;Un=$T});var _C=T(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.escape=void 0;var kbe=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!1}={})=>n?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");YT.escape=kbe});var fq=T(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.unescape=F.escape=F.AST=F.Minimatch=F.match=F.makeRe=F.braceExpand=F.defaults=F.filter=F.GLOBSTAR=F.sep=F.minimatch=void 0;var Lbe=Z8(),WT=eq(),cq=mC(),wbe=_C(),Dbe=HT(),Ube=(t,e,n={})=>((0,WT.assertValidPattern)(e),!n.nocomment&&e.charAt(0)==="#"?!1:new Va(e,n).match(t));F.minimatch=Ube;var Bbe=/^\*+([^+@!?\*\[\(]*)$/,Fbe=t=>e=>!e.startsWith(".")&&e.endsWith(t),Gbe=t=>e=>e.endsWith(t),jbe=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Hbe=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Vbe=/^\*+\.\*+$/,qbe=t=>!t.startsWith(".")&&t.includes("."),$be=t=>t!=="."&&t!==".."&&t.includes("."),zbe=/^\.\*+$/,Ybe=t=>t!=="."&&t!==".."&&t.startsWith("."),Wbe=/^\*+$/,Kbe=t=>t.length!==0&&!t.startsWith("."),Qbe=t=>t.length!==0&&t!=="."&&t!=="..",Jbe=/^\?+([^+@!?\*\[\(]*)?$/,Xbe=([t,e=""])=>{let n=lq([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},Zbe=([t,e=""])=>{let n=dq([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},eRe=([t,e=""])=>{let n=dq([t]);return e?r=>n(r)&&r.endsWith(e):n},tRe=([t,e=""])=>{let n=lq([t]);return e?r=>n(r)&&r.endsWith(e):n},lq=([t])=>{let e=t.length;return n=>n.length===e&&!n.startsWith(".")},dq=([t])=>{let e=t.length;return n=>n.length===e&&n!=="."&&n!==".."},pq=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",aq={win32:{sep:"\\"},posix:{sep:"/"}};F.sep=pq==="win32"?aq.win32.sep:aq.posix.sep;F.minimatch.sep=F.sep;F.GLOBSTAR=Symbol("globstar **");F.minimatch.GLOBSTAR=F.GLOBSTAR;var nRe="[^/]",rRe=nRe+"*?",oRe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",sRe="(?:(?!(?:\\/|^)\\.).)*?",iRe=(t,e={})=>n=>(0,F.minimatch)(n,t,e);F.filter=iRe;F.minimatch.filter=F.filter;var Rr=(t,e={})=>Object.assign({},t,e),aRe=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return F.minimatch;let e=F.minimatch;return Object.assign((r,o,s={})=>e(r,o,Rr(t,s)),{Minimatch:class extends e.Minimatch{constructor(o,s={}){super(o,Rr(t,s))}static defaults(o){return e.defaults(Rr(t,o)).Minimatch}},AST:class extends e.AST{constructor(o,s,i={}){super(o,s,Rr(t,i))}static fromGlob(o,s={}){return e.AST.fromGlob(o,Rr(t,s))}},unescape:(r,o={})=>e.unescape(r,Rr(t,o)),escape:(r,o={})=>e.escape(r,Rr(t,o)),filter:(r,o={})=>e.filter(r,Rr(t,o)),defaults:r=>e.defaults(Rr(t,r)),makeRe:(r,o={})=>e.makeRe(r,Rr(t,o)),braceExpand:(r,o={})=>e.braceExpand(r,Rr(t,o)),match:(r,o,s={})=>e.match(r,o,Rr(t,s)),sep:e.sep,GLOBSTAR:F.GLOBSTAR})};F.defaults=aRe;F.minimatch.defaults=F.defaults;var uRe=(t,e={})=>((0,WT.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Lbe.expand)(t,{max:e.braceExpandMax}));F.braceExpand=uRe;F.minimatch.braceExpand=F.braceExpand;var cRe=(t,e={})=>new Va(t,e).makeRe();F.makeRe=cRe;F.minimatch.makeRe=F.makeRe;var lRe=(t,e,n={})=>{let r=new Va(e,n);return t=t.filter(o=>r.match(o)),r.options.nonull&&!t.length&&t.push(e),t};F.match=lRe;F.minimatch.match=F.match;var uq=/[?*]|[+@!]\(.*?\)|\[|\]/,dRe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Va=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,n={}){(0,WT.assertValidPattern)(e),n=n||{},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=e,this.platform=n.platform||pq,this.isWindows=this.platform==="win32";let r="allowWindowsEscape";this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n[r]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let n of e)if(typeof n!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let o=this.globParts.map((s,i,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=s[0]===""&&s[1]===""&&(s[2]==="?"||!uq.test(s[2]))&&!uq.test(s[3]),l=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(l)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let i=this.set[s];i[0]===""&&i[1]===""&&this.globParts[s][2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3])&&(i[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let o=0;o<e[r].length;o++)e[r][o]==="**"&&(e[r][o]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):n>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let o=r;for(;n[o+1]==="**";)o++;o!==r&&n.splice(r,o-r)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((r,o)=>{let s=r[r.length-1];return o==="**"&&s==="**"?r:o===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(o),r)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let o=1;o<e.length-1;o++){let s=e[o];o===1&&s===""&&e[0]===""||(s==="."||s==="")&&(n=!0,e.splice(o,1),o--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(n=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let o=e[r-1];o&&o!=="."&&o!==".."&&o!=="**"&&(n=!0,e.splice(r-1,2),r-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let r of e){let o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let i=o;for(;r[i+1]==="**";)i++;i>o&&r.splice(o+1,i-o);let a=r[o+1],u=r[o+2],l=r[o+3];if(a!==".."||!u||u==="."||u===".."||!l||l==="."||l==="..")continue;n=!0,r.splice(o,1);let d=r.slice(0);d[o]="**",e.push(d),o--}if(!this.preserveMultipleSlashes){for(let i=1;i<r.length-1;i++){let a=r[i];i===1&&a===""&&r[0]===""||(a==="."||a==="")&&(n=!0,r.splice(i,1),i--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let i=r[s-1];if(i&&i!=="."&&i!==".."&&i!=="**"){n=!0;let u=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...u),r.length===0&&r.push(""),s-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let r=n+1;r<e.length;r++){let o=this.partsMatch(e[n],e[r],!this.preserveMultipleSlashes);if(o){e[n]=[],e[r]=o;break}}return e.filter(n=>n.length)}partsMatch(e,n,r=!1){let o=0,s=0,i=[],a="";for(;o<e.length&&s<n.length;)if(e[o]===n[s])i.push(a==="b"?n[s]:e[o]),o++,s++;else if(r&&e[o]==="**"&&n[s]===e[o+1])i.push(e[o]),o++;else if(r&&n[s]==="**"&&e[o]===n[s+1])i.push(n[s]),s++;else if(e[o]==="*"&&n[s]&&(this.options.dot||!n[s].startsWith("."))&&n[s]!=="**"){if(a==="b")return!1;a="a",i.push(e[o]),o++,s++}else if(n[s]==="*"&&e[o]&&(this.options.dot||!e[o].startsWith("."))&&e[o]!=="**"){if(a==="a")return!1;a="b",i.push(n[s]),o++,s++}else return!1;return e.length===n.length&&i}parseNegate(){if(this.nonegate)return;let e=this.pattern,n=!1,r=0;for(let o=0;o<e.length&&e.charAt(o)==="!";o++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n,r=!1){let o=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),l=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),d=!l&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),p=u?3:a?0:void 0,f=d?3:l?0:void 0;if(typeof p=="number"&&typeof f=="number"){let[m,_]=[e[p],n[f]];m.toLowerCase()===_.toLowerCase()&&(n[f]=m,s=f,o=p)}}let{optimizationLevel:i=1}=this.options;return i>=2&&(e=this.levelTwoFileOptimize(e)),n.includes(F.GLOBSTAR)?this.#n(e,n,r,o,s):this.#o(e,n,r,o,s)}#n(e,n,r,o,s){let i=n.indexOf(F.GLOBSTAR,s),a=n.lastIndexOf(F.GLOBSTAR),[u,l,d]=r?[n.slice(s,i),n.slice(i+1),[]]:[n.slice(s,i),n.slice(i+1,a),n.slice(a+1)];if(u.length){let S=e.slice(o,o+u.length);if(!this.#o(S,u,r,0,0))return!1;o+=u.length,s+=u.length}let p=0;if(d.length){if(d.length+o>e.length)return!1;let S=e.length-d.length;if(this.#o(e,d,r,S,0))p=d.length;else{if(e[e.length-1]!==""||o+d.length===e.length||(S--,!this.#o(e,d,r,S,0)))return!1;p=d.length+1}}if(!l.length){let S=!!p;for(let b=o;b<e.length-p;b++){let R=String(e[b]);if(S=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return r||S}let f=[[[],0]],m=f[0],_=0,h=[0];for(let S of l)S===F.GLOBSTAR?(h.push(_),m=[[],0],f.push(m)):(m[0].push(S),_++);let g=f.length-1,E=e.length-p;for(let S of f)S[1]=E-(h[g--]+S[0].length);return!!this.#r(e,f,o,0,r,0,!!p)}#r(e,n,r,o,s,i,a){let u=n[o];if(!u){for(let p=r;p<e.length;p++){a=!0;let f=e[p];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1}return a}let[l,d]=u;for(;r<=d;){if(this.#o(e.slice(0,r+l.length),l,s,r,0)&&i<this.maxGlobstarRecursion){let m=this.#r(e,n,r+l.length,o+1,s,i+1,a);if(m!==!1)return m}let f=e[r];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1;r++}return s||null}#o(e,n,r,o,s){let i,a,u,l;for(i=o,a=s,l=e.length,u=n.length;i<l&&a<u;i++,a++){this.debug("matchOne loop");let d=n[a],p=e[i];if(this.debug(n,d,p),d===!1||d===F.GLOBSTAR)return!1;let f;if(typeof d=="string"?(f=p===d,this.debug("string match",d,p,f)):(f=d.test(p),this.debug("pattern match",d,p,f)),!f)return!1}if(i===l&&a===u)return!0;if(i===l)return r;if(a===u)return i===l-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return(0,F.braceExpand)(this.pattern,this.options)}parse(e){(0,WT.assertValidPattern)(e);let n=this.options;if(e==="**")return F.GLOBSTAR;if(e==="")return"";let r,o=null;(r=e.match(Wbe))?o=n.dot?Qbe:Kbe:(r=e.match(Bbe))?o=(n.nocase?n.dot?Hbe:jbe:n.dot?Gbe:Fbe)(r[1]):(r=e.match(Jbe))?o=(n.nocase?n.dot?Zbe:Xbe:n.dot?eRe:tRe)(r):(r=e.match(Vbe))?o=n.dot?$be:qbe:(r=e.match(zbe))&&(o=Ybe);let s=cq.AST.fromGlob(e,this.options).toMMPattern();return o&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:o}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?rRe:n.dot?oRe:sRe,o=new Set(n.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(p=>{if(p instanceof RegExp)for(let f of p.flags.split(""))o.add(f);return typeof p=="string"?dRe(p):p===F.GLOBSTAR?F.GLOBSTAR:p._src});l.forEach((p,f)=>{let m=l[f+1],_=l[f-1];p!==F.GLOBSTAR||_===F.GLOBSTAR||(_===void 0?m!==void 0&&m!==F.GLOBSTAR?l[f+1]="(?:\\/|"+r+"\\/)?"+m:l[f]=r:m===void 0?l[f-1]=_+"(?:\\/|\\/"+r+")?":m!==F.GLOBSTAR&&(l[f-1]=_+"(?:\\/|\\/"+r+"\\/)"+m,l[f+1]=F.GLOBSTAR))});let d=l.filter(p=>p!==F.GLOBSTAR);if(this.partial&&d.length>=1){let p=[];for(let f=1;f<=d.length;f++)p.push(d.slice(0,f).join("/"));return"(?:"+p.join("|")+")"}return d.join("/")}).join("|"),[i,a]=e.length>1?["(?:",")"]:["",""];s="^"+i+s+a+"$",this.partial&&(s="^(?:\\/|"+i+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let o=this.slashSplit(e);this.debug(this.pattern,"split",o);let s=this.set;this.debug(this.pattern,"set",s);let i=o[o.length-1];if(!i)for(let a=o.length-2;!i&&a>=0;a--)i=o[a];for(let a=0;a<s.length;a++){let u=s[a],l=o;if(r.matchBase&&u.length===1&&(l=[i]),this.matchOne(l,u,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return F.minimatch.defaults(e).Minimatch}};F.Minimatch=Va;var pRe=mC();Object.defineProperty(F,"AST",{enumerable:!0,get:function(){return pRe.AST}});var fRe=_C();Object.defineProperty(F,"escape",{enumerable:!0,get:function(){return fRe.escape}});var mRe=HT();Object.defineProperty(F,"unescape",{enumerable:!0,get:function(){return mRe.unescape}});F.minimatch.AST=cq.AST;F.minimatch.Minimatch=Va;F.minimatch.escape=wbe.escape;F.minimatch.unescape=Dbe.unescape});var Sq=T((_Xe,TC)=>{"use strict";var mq=U("node:diagnostics_channel"),{context:KT,trace:hC,SpanStatusCode:QT,propagation:gC,diag:_Re}=(P(),N(L)),{getRPCMetadata:hRe,RPCType:gRe}=Ae(),{ATTR_HTTP_ROUTE:JT,ATTR_HTTP_RESPONSE_STATUS_CODE:_q,ATTR_HTTP_REQUEST_METHOD:TRe,ATTR_URL_PATH:ERe}=(de(),N(Ie)),{InstrumentationBase:SRe}=V8(),{version:ARe,name:hq}=q8(),yRe=">=4.0.0 <6",gq=["onRequest","preParsing","preValidation","preHandler","preSerialization","onSend","onResponse","onError"],Le={HOOK_NAME:"hook.name",FASTIFY_TYPE:"fastify.type",HOOK_CALLBACK_NAME:"hook.callback.name",ROOT:"fastify.root"},Ai={ROUTE:"route-hook",INSTANCE:"hook",HANDLER:"request-handler"},gs="anonymous",yi=Symbol("fastify otel instance"),bi=Symbol("fastify otel request spans"),df=Symbol("fastify otel request context"),Tq=Symbol("fastify otel addhook original"),Eq=Symbol("fastify otel setnotfound original"),pf=Symbol("fastify otel ignore path"),ff=Symbol("fastify otel record exceptions"),XT=class extends SRe{logger=null;_requestHook=null;_lifecycleHook=null;constructor(e){if(super(hq,ARe,e),this.logger=_Re.createComponentLogger({namespace:hq}),this[pf]=null,this[ff]=!0,e?.recordExceptions!=null){if(typeof e.recordExceptions!="boolean")throw new TypeError("recordExceptions must be a boolean");this[ff]=e.recordExceptions}if(typeof e?.requestHook=="function"&&(this._requestHook=e.requestHook),typeof e?.lifecycleHook=="function"&&(this._lifecycleHook=e.lifecycleHook),e?.ignorePaths!=null||process.env.OTEL_FASTIFY_IGNORE_PATHS!=null){let n=e?.ignorePaths??process.env.OTEL_FASTIFY_IGNORE_PATHS;if((typeof n!="string"||n.length===0)&&typeof n!="function")throw new TypeError("ignorePaths must be a string or a function");let r=null;this[pf]=o=>typeof n=="function"?n(o):(r==null&&(r=fq().minimatch),r(o.url,n))}}enable(){return this._handleInitialization===void 0&&this.getConfig().registerOnInitialization&&(this._handleInitialization=e=>{this.plugin()(e.fastify,void 0,()=>{});let n=(r,o,s)=>{s()};n[Symbol.for("skip-override")]=!0,n[Symbol.for("fastify.display-name")]="@fastify/otel",e.fastify.register(n)},mq.subscribe("fastify.initialization",this._handleInitialization)),super.enable()}disable(){return this._handleInitialization&&(mq.unsubscribe("fastify.initialization",this._handleInitialization),this._handleInitialization=void 0),super.disable()}init(){return[]}plugin(){let e=this;return n[Symbol.for("skip-override")]=!0,n[Symbol.for("fastify.display-name")]="@fastify/otel",n[Symbol.for("plugin-meta")]={fastify:yRe,name:"@fastify/otel"},n;function n(r,o,s){r.decorate(yi,e),r.decorate(Tq,r.addHook),r.decorate(Eq,r.setNotFoundHandler),r.decorateRequest("opentelemetry",function(){let m=this[df],_=this[bi];return{enabled:this.routeOptions.config?.otel!==!1,span:_,tracer:e.tracer,context:m,inject:(h,g)=>gC.inject(m,h,g),extract:(h,g)=>gC.extract(m,h,g)}}),r.decorateRequest(bi,null),r.decorateRequest(df,null),r.addHook("onRoute",function(m){if(e[pf]?.(m)===!0){e.logger.debug(`Ignoring route instrumentation ${m.method} ${m.url} because it matches the ignore path`);return}if(m.config?.otel===!1){e.logger.debug(`Ignoring route instrumentation ${m.method} ${m.url} because it is disabled`);return}for(let _ of gq)if(m[_]!=null){let h=m[_];if(typeof h=="function")m[_]=p(h,_,{[Le.HOOK_NAME]:`${this.pluginName} - route -> ${_}`,[Le.FASTIFY_TYPE]:Ai.ROUTE,[JT]:m.url,[Le.HOOK_CALLBACK_NAME]:h.name?.length>0?h.name:gs});else if(Array.isArray(h)){let g=[];for(let E of h)g.push(p(E,_,{[Le.HOOK_NAME]:`${this.pluginName} - route -> ${_}`,[Le.FASTIFY_TYPE]:Ai.ROUTE,[JT]:m.url,[Le.HOOK_CALLBACK_NAME]:E.name?.length>0?E.name:gs}));m[_]=g}}m.onSend!=null?m.onSend=Array.isArray(m.onSend)?[...m.onSend,i]:[m.onSend,i]:m.onSend=i,m.onError!=null?m.onError=Array.isArray(m.onError)?[...m.onError,a]:[m.onError,a]:m.onError=a,m.handler=p(m.handler,"handler",{[Le.HOOK_NAME]:`${this.pluginName} - route-handler`,[Le.FASTIFY_TYPE]:Ai.HANDLER,[JT]:m.url,[Le.HOOK_CALLBACK_NAME]:m.handler.name.length>0?m.handler.name:gs})}),r.addHook("onRequest",function(m,_,h){if(this[yi].isEnabled()===!1||m.routeOptions.config?.otel===!1)return h();if(this[yi][pf]?.({url:m.url,method:m.method})===!0)return this[yi].logger.debug(`Ignoring request ${m.method} ${m.url} because it matches the ignore path`),h();let g=KT.active();hC.getSpan(g)==null&&(g=gC.extract(g,m.headers));let E=hRe(g);m.routeOptions.url!=null&&E?.type===gRe.HTTP&&(E.route=m.routeOptions.url);let S={[Le.ROOT]:"@fastify/otel",[TRe]:m.method,[ERe]:m.url};m.routeOptions.url!=null&&(S[JT]=m.routeOptions.url);let b=this[yi].tracer.startSpan("request",{attributes:S},g);try{this[yi]._requestHook?.(b,m)}catch(R){this[yi].logger.error({err:R},"requestHook threw")}m[df]=hC.setSpan(g,b),m[bi]=b,KT.with(m[df],()=>{h()})}),r.addHook("onResponse",function(m,_,h){let g=m[bi];g!=null&&(g.setAttributes({[_q]:_.statusCode}),g.end()),m[bi]=null,h()}),r.addHook=u,r.setNotFoundHandler=l,s();function i(f,m,_,h){let g=f[bi];g!=null&&(m.statusCode>=500&&g.setStatus({code:QT.ERROR}),g.setAttributes({[_q]:m.statusCode}),g.end()),f[bi]=null,h(null,_)}function a(f,m,_,h){let g=f[bi];g!=null&&(g.setStatus({code:QT.ERROR,message:_.message}),e[ff]!==!1&&g.recordException(_)),h()}function u(f,m){let _=this[Tq];return gq.includes(f)?_.call(this,f,p(m,f,{[Le.HOOK_NAME]:`${this.pluginName} - ${f}`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:m.name?.length>0?m.name:gs})):_.call(this,f,m)}function l(f,m){let _=this[Eq];typeof f=="function"?(m=p(f,"notFoundHandler",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:f.name?.length>0?f.name:gs}),_.call(this,m)):(f.preValidation!=null&&(f.preValidation=p(f.preValidation,"notFoundHandler - preValidation",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler - preValidation`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:f.preValidation.name?.length>0?f.preValidation.name:gs})),f.preHandler!=null&&(f.preHandler=p(f.preHandler,"notFoundHandler - preHandler",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler - preHandler`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:f.preHandler.name?.length>0?f.preHandler.name:gs})),m=p(m,"notFoundHandler",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:m.name?.length>0?m.name:gs}),_.call(this,f,m))}function d(f){for(let m of f)if(m?.routeOptions&&m.url&&m.method)return m;return null}function p(f,m,_={}){return function(...g){let E=this[yi],S=d(g);if(S===null)return E.logger.debug(`Ignoring route instrumentation because ${m} was called without a Fastify request argument`),f.call(this,...g);if(E.isEnabled()===!1||S.routeOptions.config?.otel===!1)return E.logger.debug(`Ignoring route instrumentation ${S.routeOptions.method} ${S.routeOptions.url} because it is disabled`),f.call(this,...g);if(E[pf]?.({url:S.url,method:S.method})===!0)return E.logger.debug(`Ignoring route instrumentation ${S.routeOptions.method} ${S.routeOptions.url} because it matches the ignore path`),f.call(this,...g);let b=S[df]??KT.active(),R=f.name?.length>0?f.name:this.pluginName??gs,I=E.tracer.startSpan(`${m} - ${R}`,{attributes:_},b);if(E._lifecycleHook!=null)try{E._lifecycleHook(I,{hookName:m,request:S,handler:R})}catch(C){E.logger.error({err:C},"Execution of lifecycleHook failed")}return KT.with(hC.setSpan(b,I),function(){try{let C=f.call(this,...g);return typeof C?.then=="function"?C.then(H=>(I.end(),H),H=>(I.setStatus({code:QT.ERROR,message:H.message}),E[ff]!==!1&&I.recordException(H),I.end(),Promise.reject(H))):(I.end(),C)}catch(C){throw I.setStatus({code:QT.ERROR,message:C.message}),E[ff]!==!1&&I.recordException(C),I.end(),C}},this)}}}}};TC.exports=XT;TC.exports.FastifyOtelInstrumentation=XT});var AC=T(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.SpanNames=Jr.TokenKind=Jr.AllowedOperationTypes=void 0;var MRe;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(MRe=Jr.AllowedOperationTypes||(Jr.AllowedOperationTypes={}));var vRe;(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"})(vRe=Jr.TokenKind||(Jr.TokenKind={}));var kRe;(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"})(kRe=Jr.SpanNames||(Jr.SpanNames={}))});var yC=T(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.AttributeNames=void 0;var LRe;(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.PARENT_NAME="graphql.parent.name",t.OPERATION_TYPE="graphql.operation.type",t.OPERATION_NAME="graphql.operation.name",t.VARIABLES="graphql.variables.",t.ERROR_VALIDATION_NAME="graphql.validation.error"})(LRe=gf.AttributeNames||(gf.AttributeNames={}))});var rE=T(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.OTEL_GRAPHQL_DATA_SYMBOL=ll.OTEL_PATCHED_SYMBOL=void 0;ll.OTEL_PATCHED_SYMBOL=Symbol.for("opentelemetry.patched");ll.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data")});var vq=T(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.OPERATION_NOT_SUPPORTED=void 0;var wXe=rE();oE.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported"});var zq=T(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.wrapFieldResolver=bt.wrapFields=bt.getSourceFromLocation=bt.getOperation=bt.endSpan=bt.addSpanSource=bt.addInputVariableAttributes=bt.isPromise=void 0;var dl=(P(),N(L)),Ri=AC(),$a=yC(),Es=rE(),kq=Object.values(Ri.AllowedOperationTypes),wRe=t=>typeof t?.then=="function";bt.isPromise=wRe;var DRe=t=>typeof t=="object"&&t!==null;function bC(t,e,n){Array.isArray(n)?n.forEach((r,o)=>{bC(t,`${e}.${o}`,r)}):n instanceof Object?Object.entries(n).forEach(([r,o])=>{bC(t,`${e}.${r}`,o)}):t.setAttribute(`${$a.AttributeNames.VARIABLES}${String(e)}`,n)}function URe(t,e){Object.entries(e).forEach(([n,r])=>{bC(t,n,r)})}bt.addInputVariableAttributes=URe;function Uq(t,e,n,r,o){let s=Hq(e,n,r,o);t.setAttribute($a.AttributeNames.SOURCE,s)}bt.addSpanSource=Uq;function BRe(t,e,n,r,o){let s=Bq(n,o);if(s)return{field:s,spanAdded:!1};let a=e().flatResolveSpans?Gq(n):Fq(n,o);return s={span:FRe(t,e,n,r,o,a)},HRe(n,o,s),{field:s,spanAdded:!0}}function FRe(t,e,n,r,o,s){let i={[$a.AttributeNames.FIELD_NAME]:r.fieldName,[$a.AttributeNames.FIELD_PATH]:o.join("."),[$a.AttributeNames.FIELD_TYPE]:r.returnType.toString(),[$a.AttributeNames.PARENT_NAME]:r.parentType.name},a=t.startSpan(`${Ri.SpanNames.RESOLVE} ${i[$a.AttributeNames.FIELD_PATH]}`,{attributes:i},s?dl.trace.setSpan(dl.context.active(),s):void 0),u=n[Es.OTEL_GRAPHQL_DATA_SYMBOL].source,l=r.fieldNodes.find(d=>d.kind==="Field");return l&&Uq(a,u.loc,e().allowValues,l.loc?.start,l.loc?.end),a}function GRe(t,e){e&&t.recordException(e),t.end()}bt.endSpan=GRe;function jRe(t,e){if(!(!t||!Array.isArray(t.definitions)))return e?t.definitions.filter(n=>kq.indexOf(n?.operation)!==-1).find(n=>e===n?.name?.value):t.definitions.find(n=>kq.indexOf(n?.operation)!==-1)}bt.getOperation=jRe;function HRe(t,e,n){return t[Es.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]=n}function Bq(t,e){return t[Es.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]}function Fq(t,e){for(let n=e.length-1;n>0;n--){let r=Bq(t,e.slice(0,n));if(r)return r.span}return Gq(t)}function Gq(t){return t[Es.OTEL_GRAPHQL_DATA_SYMBOL].span}function VRe(t,e){let n=[],r=e;for(;r;){let o=r.key;t&&typeof o=="number"&&(o="*"),n.push(String(o)),r=r.prev}return n.reverse()}function qRe(t){return jq(`
|
|
10
|
+
`:Array.isArray(e.headers)&&e.headers.push(H,_e)}this._recordFromReq.set(e,{span:S,attributes:l,startTime:s})}onRequestHeaders({request:e,socket:n}){let r=this._recordFromReq.get(e);if(!r)return;let o=this.getConfig(),{span:s}=r,{remoteAddress:i,remotePort:a}=n,u={[pt.ATTR_NETWORK_PEER_ADDRESS]:i,[pt.ATTR_NETWORK_PEER_PORT]:a};if(o.headersToSpanAttributes?.requestHeaders){let l=new Set(o.headersToSpanAttributes.requestHeaders.map(p=>p.toLowerCase())),d=this.parseRequestHeaders(e);for(let[p,f]of d.entries())if(l.has(p)){let m=Array.isArray(f)?f:[f];u[`http.request.header.${p}`]=m}}s.setAttributes(u)}onResponseHeaders({request:e,response:n}){let r=this._recordFromReq.get(e);if(!r)return;let{span:o,attributes:s}=r,i={[pt.ATTR_HTTP_RESPONSE_STATUS_CODE]:n.statusCode},a=this.getConfig();if((0,Jp.safeExecuteInTheMiddle)(()=>a.responseHook?.(o,{request:e,response:n}),u=>u&&this._diag.error("caught responseHook error: ",u),!0),a.headersToSpanAttributes?.responseHeaders){let u=new Set;a.headersToSpanAttributes?.responseHeaders.forEach(l=>u.add(l.toLowerCase()));for(let l=0;l<n.headers.length;l=l+2){let d=n.headers[l].toString().toLowerCase(),p=n.headers[l+1];if(u.has(d)){let f=`http.response.header.${d}`;Object.hasOwn(i,f)?i[f].push(p.toString()):i[f]=[p.toString()]}}}o.setAttributes(i),o.setStatus({code:n.statusCode>=400?nr.SpanStatusCode.ERROR:nr.SpanStatusCode.UNSET}),r.attributes=Object.assign(s,i)}onDone({request:e}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:o,startTime:s}=n;r.end(),this._recordFromReq.delete(e),this.recordRequestDuration(o,s)}onError({request:e,error:n}){let r=this._recordFromReq.get(e);if(!r)return;let{span:o,attributes:s,startTime:i}=r;o.recordException(n),o.setStatus({code:nr.SpanStatusCode.ERROR,message:n.message}),o.end(),this._recordFromReq.delete(e),s[pt.ATTR_ERROR_TYPE]=n.message,this.recordRequestDuration(s,i)}recordRequestDuration(e,n){let r={};[pt.ATTR_HTTP_RESPONSE_STATUS_CODE,pt.ATTR_HTTP_REQUEST_METHOD,pt.ATTR_SERVER_ADDRESS,pt.ATTR_SERVER_PORT,pt.ATTR_URL_SCHEME,pt.ATTR_ERROR_TYPE].forEach(i=>{i in e&&(r[i]=e[i])});let s=(0,mT.hrTimeToMilliseconds)((0,mT.hrTimeDuration)(n,(0,mT.hrTime)()))/1e3;this._httpClientDurationHistogram.record(s,r)}getRequestMethod(e){let n={CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0,QUERY:!0};return e.toUpperCase()in n?e.toUpperCase():"_OTHER"}};_T.UndiciInstrumentation=kO});var DV=T(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.UndiciInstrumentation=void 0;var rAe=wV();Object.defineProperty(hT,"UndiciInstrumentation",{enumerable:!0,get:function(){return rAe.UndiciInstrumentation}})});var gT=T(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.ExpressLayerType=void 0;var cAe;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(cAe=Xp.ExpressLayerType||(Xp.ExpressLayerType={}))});var TT=T(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.AttributeNames=void 0;var lAe;(function(t){t.EXPRESS_TYPE="express.type",t.EXPRESS_NAME="express.name"})(lAe=Zp.AttributeNames||(Zp.AttributeNames={}))});var LO=T(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc._LAYERS_STORE_PROPERTY=Xc.kLayerPatched=void 0;Xc.kLayerPatched=Symbol("express-layer-patched");Xc._LAYERS_STORE_PROPERTY="__ot_middlewares"});var VV=T(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.getActualMatchedRoute=ft.getConstructedRoute=ft.getLayerPath=ft.asErrorAndMessage=ft.isLayerIgnored=ft.getLayerMetadata=ft.getRouterPath=ft.storeLayerPath=void 0;var wO=gT(),Zc=TT(),Ga=LO(),dAe=(t,e)=>(Array.isArray(t[Ga._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,Ga._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e===void 0?{isLayerPathStored:!1}:(t[Ga._LAYERS_STORE_PROPERTY].push(e),{isLayerPathStored:!0}));ft.storeLayerPath=dAe;var pAe=(t,e)=>{let n=e.handle?.stack?.[0];return n?.route?.path?`${t}${n.route.path}`:n?.handle?.stack?(0,ft.getRouterPath)(t,n):t};ft.getRouterPath=pAe;var fAe=(t,e,n)=>{if(e.name==="router"){let r=(0,ft.getRouterPath)("",e),o=r||n||t||"/";return{attributes:{[Zc.AttributeNames.EXPRESS_NAME]:o,[Zc.AttributeNames.EXPRESS_TYPE]:wO.ExpressLayerType.ROUTER},name:`router - ${o}`}}else return e.name==="bound dispatch"||e.name==="handle"?{attributes:{[Zc.AttributeNames.EXPRESS_NAME]:(t||n)??"request handler",[Zc.AttributeNames.EXPRESS_TYPE]:wO.ExpressLayerType.REQUEST_HANDLER},name:`request handler${e.path?` - ${t||n}`:""}`}:{attributes:{[Zc.AttributeNames.EXPRESS_NAME]:e.name,[Zc.AttributeNames.EXPRESS_TYPE]:wO.ExpressLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};ft.getLayerMetadata=fAe;var mAe=(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")},_Ae=(t,e,n)=>{if(Array.isArray(n?.ignoreLayersType)&&n?.ignoreLayersType?.includes(e))return!0;if(Array.isArray(n?.ignoreLayers)===!1)return!1;try{for(let r of n.ignoreLayers)if(mAe(t,r))return!0}catch{}return!1};ft.isLayerIgnored=_Ae;var hAe=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];ft.asErrorAndMessage=hAe;var gAe=t=>{let e=t[0];return Array.isArray(e)?e.map(n=>jV(n)||"").join(","):jV(e)};ft.getLayerPath=gAe;var jV=t=>{if(typeof t=="string")return t;if(t instanceof RegExp||typeof t=="number")return t.toString()};function HV(t){let n=(Array.isArray(t[Ga._LAYERS_STORE_PROPERTY])?t[Ga._LAYERS_STORE_PROPERTY]:[]).filter(r=>r!=="/"&&r!=="/*");return n.length===1&&n[0]==="*"?"*":n.join("").replace(/\/{2,}/g,"/")}ft.getConstructedRoute=HV;function TAe(t){let e=Array.isArray(t[Ga._LAYERS_STORE_PROPERTY])?t[Ga._LAYERS_STORE_PROPERTY]:[];if(e.length===0)return;if(e.every(s=>s==="/"))return t.originalUrl==="/"?"/":void 0;let n=HV(t);if(n==="*"||n.includes("/")&&(n.includes(",")||n.includes("\\")||n.includes("*")||n.includes("[")))return n;let r=n.startsWith("/")?n:`/${n}`;return r.length>0&&(t.originalUrl===r||t.originalUrl.startsWith(r)||EAe(r))?r:void 0}ft.getActualMatchedRoute=TAe;function EAe(t){return t.includes(":")||t.includes("*")}});var qV=T(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.PACKAGE_NAME=el.PACKAGE_VERSION=void 0;el.PACKAGE_VERSION="0.62.0";el.PACKAGE_NAME="@opentelemetry/instrumentation-express"});var KV=T(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.ExpressInstrumentation=void 0;var $V=Ae(),Dn=(P(),N(L)),zV=gT(),YV=TT(),Mo=VV(),WV=qV(),tl=re(),SAe=(de(),N(Ie)),ET=LO(),DO=class extends tl.InstrumentationBase{constructor(e={}){super(WV.PACKAGE_NAME,WV.PACKAGE_VERSION,e)}init(){return[new tl.InstrumentationNodeModuleDefinition("express",[">=4.0.0 <6"],e=>{let n=typeof e?.Router?.prototype?.route=="function",r=n?e.Router.prototype:e.Router;return(0,tl.isWrapped)(r.route)&&this._unwrap(r,"route"),this._wrap(r,"route",this._getRoutePatch()),(0,tl.isWrapped)(r.use)&&this._unwrap(r,"use"),this._wrap(r,"use",this._getRouterUsePatch()),(0,tl.isWrapped)(e.application.use)&&this._unwrap(e.application,"use"),this._wrap(e.application,"use",this._getAppUsePatch(n)),e},e=>{if(e===void 0)return;let r=typeof e?.Router?.prototype?.route=="function"?e.Router.prototype:e.Router;this._unwrap(r,"route"),this._unwrap(r,"use"),this._unwrap(e.application,"use")})]}_getRoutePatch(){let e=this;return function(n){return function(...o){let s=n.apply(this,o),i=this.stack[this.stack.length-1];return e._applyPatch(i,(0,Mo.getLayerPath)(o)),s}}}_getRouterUsePatch(){let e=this;return function(n){return function(...o){let s=n.apply(this,o),i=this.stack[this.stack.length-1];return e._applyPatch(i,(0,Mo.getLayerPath)(o)),s}}}_getAppUsePatch(e){let n=this;return function(r){return function(...s){let i=e?this.router:this._router,a=r.apply(this,s);if(i){let u=i.stack[i.stack.length-1];n._applyPatch(u,(0,Mo.getLayerPath)(s))}return a}}}_applyPatch(e,n){let r=this;e[ET.kLayerPatched]!==!0&&(e[ET.kLayerPatched]=!0,this._wrap(e,"handle",o=>{if(o.length===4)return o;let s=function(i,a){let{isLayerPathStored:u}=(0,Mo.storeLayerPath)(i,n),l=(0,Mo.getConstructedRoute)(i),d=(0,Mo.getActualMatchedRoute)(i),p={[SAe.ATTR_HTTP_ROUTE]:d},f=(0,Mo.getLayerMetadata)(l,e,n),m=f.attributes[YV.AttributeNames.EXPRESS_TYPE],_=(0,$V.getRPCMetadata)(Dn.context.active());if(_?.type===$V.RPCType.HTTP&&(_.route=d),(0,Mo.isLayerIgnored)(f.name,m,r.getConfig()))return m===zV.ExpressLayerType.MIDDLEWARE&&i[ET._LAYERS_STORE_PROPERTY].pop(),o.apply(this,arguments);if(Dn.trace.getSpan(Dn.context.active())===void 0)return o.apply(this,arguments);let h=r._getSpanName({request:i,layerType:m,route:l},f.name),g=r.tracer.startSpan(h,{attributes:Object.assign(p,f.attributes)}),E=Dn.context.active(),S=Dn.trace.setSpan(E,g),{requestHook:b}=r.getConfig();b&&(0,tl.safeExecuteInTheMiddle)(()=>b(g,{request:i,layerType:m,route:l}),_e=>{_e&&Dn.diag.error("express instrumentation: request hook failed",_e)},!0);let R=!1;f.attributes[YV.AttributeNames.EXPRESS_TYPE]===zV.ExpressLayerType.ROUTER&&(g.end(),R=!0,S=E);let I=()=>{R===!1&&(R=!0,g.end())},C=Array.from(arguments),H=C.findIndex(_e=>typeof _e=="function");H>=0&&(arguments[H]=function(){let _e=arguments[0],De=![void 0,null,"route","router"].includes(_e);if(!R&&De){let[Jo,$n]=(0,Mo.asErrorAndMessage)(_e);g.recordException(Jo),g.setStatus({code:Dn.SpanStatusCode.ERROR,message:$n})}R===!1&&(R=!0,i.res?.removeListener("finish",I),g.end()),!(i.route&&De)&&u&&i[ET._LAYERS_STORE_PROPERTY].pop();let _n=C[H],dr=Dn.context.active(),Qo=Dn.trace.getSpan(E),ut=Qo?Dn.trace.setSpan(dr,Qo):dr;return Dn.context.bind(ut,_n).apply(this,arguments)});try{return Dn.context.bind(S,o).apply(this,arguments)}catch(_e){let[De,_n]=(0,Mo.asErrorAndMessage)(_e);throw g.recordException(De),g.setStatus({code:Dn.SpanStatusCode.ERROR,message:_n}),_e}finally{R||a.once("finish",I)}};for(let i in o)Object.defineProperty(s,i,{get(){return o[i]},set(a){o[i]=a}});return s}))}_getSpanName(e,n){let{spanNameHook:r}=this.getConfig();if(!(r instanceof Function))return n;try{return r(e,n)??n}catch(o){return Dn.diag.error("express instrumentation: error calling span name rewrite hook",o),n}}};ST.ExpressInstrumentation=DO});var QV=T(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.AttributeNames=Ti.ExpressLayerType=Ti.ExpressInstrumentation=void 0;var AAe=KV();Object.defineProperty(Ti,"ExpressInstrumentation",{enumerable:!0,get:function(){return AAe.ExpressInstrumentation}});var yAe=gT();Object.defineProperty(Ti,"ExpressLayerType",{enumerable:!0,get:function(){return yAe.ExpressLayerType}});var bAe=TT();Object.defineProperty(Ti,"AttributeNames",{enumerable:!0,get:function(){return bAe.AttributeNames}})});var t8=T(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.SeverityNumber=void 0;var CAe;(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"})(CAe=ef.SeverityNumber||(ef.SeverityNumber={}))});var bT=T(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.NOOP_LOGGER=nl.NoopLogger=void 0;var yT=class{emit(e){}};nl.NoopLogger=yT;nl.NOOP_LOGGER=new yT});var n8=T(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.API_BACKWARDS_COMPATIBILITY_VERSION=vo.makeGetter=vo._global=vo.GLOBAL_LOGS_API_KEY=void 0;vo.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");vo._global=globalThis;function NAe(t,e,n){return r=>r===t?e:n}vo.makeGetter=NAe;vo.API_BACKWARDS_COMPATIBILITY_VERSION=1});var UO=T(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.NOOP_LOGGER_PROVIDER=rl.NoopLoggerProvider=void 0;var xAe=bT(),RT=class{getLogger(e,n,r){return new xAe.NoopLogger}};rl.NoopLoggerProvider=RT;rl.NOOP_LOGGER_PROVIDER=new RT});var r8=T(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.ProxyLogger=void 0;var PAe=bT(),BO=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,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):PAe.NOOP_LOGGER}};IT.ProxyLogger=BO});var o8=T(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0});OT.ProxyLoggerProvider=void 0;var MAe=UO(),vAe=r8(),FO=class{getLogger(e,n,r){var o;return(o=this._getDelegateLogger(e,n,r))!==null&&o!==void 0?o:new vAe.ProxyLogger(this,e,n,r)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:MAe.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,n,r)}};OT.ProxyLoggerProvider=FO});var i8=T(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.LogsAPI=void 0;var br=n8(),kAe=UO(),s8=o8(),GO=class t{constructor(){this._proxyLoggerProvider=new s8.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,kAe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=br._global[br.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(br._global,br.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete br._global[br.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new s8.ProxyLoggerProvider}};CT.LogsAPI=GO});var jO=T(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.logs=ko.NoopLogger=ko.NOOP_LOGGER=ko.SeverityNumber=void 0;var LAe=t8();Object.defineProperty(ko,"SeverityNumber",{enumerable:!0,get:function(){return LAe.SeverityNumber}});var a8=bT();Object.defineProperty(ko,"NOOP_LOGGER",{enumerable:!0,get:function(){return a8.NOOP_LOGGER}});Object.defineProperty(ko,"NoopLogger",{enumerable:!0,get:function(){return a8.NoopLogger}});var wAe=i8();ko.logs=wAe.LogsAPI.getInstance()});var u8=T(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.disableInstrumentations=ol.enableInstrumentations=void 0;function DAe(t,e,n,r){for(let o=0,s=t.length;o<s;o++){let i=t[o];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}ol.enableInstrumentations=DAe;function UAe(t){t.forEach(e=>e.disable())}ol.disableInstrumentations=UAe});var d8=T(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0});NT.registerInstrumentations=void 0;var c8=(P(),N(L)),BAe=jO(),l8=u8();function FAe(t){let e=t.tracerProvider||c8.trace.getTracerProvider(),n=t.meterProvider||c8.metrics.getMeterProvider(),r=t.loggerProvider||BAe.logs.getLoggerProvider(),o=t.instrumentations?.flat()??[];return(0,l8.enableInstrumentations)(o,e,n,r),()=>{(0,l8.disableInstrumentations)(o)}}NT.registerInstrumentations=FAe});var S8=T(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.satisfies=void 0;var $O=(P(),N(L)),h8=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,GAe=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,jAe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function HAe(t,e,n){if(!VAe(t))return $O.diag.error(`Invalid version: ${t}`),!1;if(!e)return!0;e=e.replace(/([<>=~^]+)\s+/g,"$1");let r=YAe(t);if(!r)return!1;let o=[],s=g8(r,e,o,n);return s&&!n?.includePrerelease?$Ae(r,o):s}xT.satisfies=HAe;function VAe(t){return typeof t=="string"&&h8.test(t)}function g8(t,e,n,r){if(e.includes("||")){let o=e.trim().split("||");for(let s of o)if(HO(t,s,n,r))return!0;return!1}else if(e.includes(" - "))e=mye(e,r);else if(e.includes(" ")){let o=e.trim().replace(/\s{2,}/g," ").split(" ");for(let s of o)if(!HO(t,s,n,r))return!1;return!0}return HO(t,e,n,r)}function HO(t,e,n,r){if(e=zAe(e,r),e.includes(" "))return g8(t,e,n,r);{let o=WAe(e);return n.push(o),qAe(t,o)}}function qAe(t,e){if(e.invalid)return!1;if(!e.version||qO(e.version))return!0;let n=f8(t.versionSegments||[],e.versionSegments||[]);if(n===0){let r=t.prereleaseSegments||[],o=e.prereleaseSegments||[];!r.length&&!o.length?n=0:!r.length&&o.length?n=1:r.length&&!o.length?n=-1:n=f8(r,o)}return jAe[e.op]?.includes(n)}function $Ae(t,e){return t.prerelease?e.some(n=>n.prerelease&&n.version===t.version):!0}function zAe(t,e){return t=t.trim(),t=pye(t,e),t=dye(t),t=fye(t,e),t=t.trim(),t}function bn(t){return!t||t.toLowerCase()==="x"||t==="*"}function YAe(t){let e=t.match(h8);if(!e){$O.diag.error(`Invalid version: ${t}`);return}let n=e.groups.version,r=e.groups.prerelease,o=e.groups.build,s=n.split("."),i=r?.split(".");return{op:void 0,version:n,versionSegments:s,versionSegmentCount:s.length,prerelease:r,prereleaseSegments:i,prereleaseSegmentCount:i?i.length:0,build:o}}function WAe(t){if(!t)return{};let e=t.match(GAe);if(!e)return $O.diag.error(`Invalid range: ${t}`),{invalid:!0};let n=e.groups.op,r=e.groups.version,o=e.groups.prerelease,s=e.groups.build,i=r.split("."),a=o?.split(".");return n==="=="&&(n="="),{op:n||"=",version:r,versionSegments:i,versionSegmentCount:i.length,prerelease:o,prereleaseSegments:a,prereleaseSegmentCount:a?a.length:0,build:s}}function qO(t){return t==="*"||t==="x"||t==="X"}function p8(t){let e=parseInt(t,10);return isNaN(e)?t:e}function KAe(t,e){if(typeof t==typeof e){if(typeof t=="number")return[t,e];if(typeof t=="string")return[t,e];throw new Error("Version segments can only be strings or numbers")}else return[String(t),String(e)]}function QAe(t,e){if(qO(t)||qO(e))return 0;let[n,r]=KAe(p8(t),p8(e));return n>r?1:n<r?-1:0}function f8(t,e){for(let n=0;n<Math.max(t.length,e.length);n++){let r=QAe(t[n]||"0",e[n]||"0");if(r!==0)return r}return 0}var T8="[a-zA-Z0-9-]",E8="0|[1-9]\\d*",JAe=`\\d*[a-zA-Z-]${T8}*`,XAe="((?:<|>)?=?)",m8=`(?:${E8}|${JAe})`,ZAe=`(?:-(${m8}(?:\\.${m8})*))`,_8=`${T8}+`,eye=`(?:\\+(${_8}(?:\\.${_8})*))`,VO=`${E8}|x|X|\\*`,tf=`[v=\\s]*(${VO})(?:\\.(${VO})(?:\\.(${VO})(?:${ZAe})?${eye}?)?)?`,tye=`^${XAe}\\s*${tf}$`,nye=new RegExp(tye),rye=`^\\s*(${tf})\\s+-\\s+(${tf})\\s*$`,oye=new RegExp(rye),sye="(?:~>?)",iye=`^${sye}${tf}$`,aye=new RegExp(iye),uye="(?:\\^)",cye=`^${uye}${tf}$`,lye=new RegExp(cye);function dye(t){let e=aye;return t.replace(e,(n,r,o,s,i)=>{let a;return bn(r)?a="":bn(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:bn(s)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:i?a=`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:a=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,a})}function pye(t,e){let n=lye,r=e?.includePrerelease?"-0":"";return t.replace(n,(o,s,i,a,u)=>{let l;return bn(s)?l="":bn(i)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:bn(a)?s==="0"?l=`>=${s}.${i}.0${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${r} <${+s+1}.0.0-0`:u?s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${u} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${u} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${u} <${+s+1}.0.0-0`:s==="0"?i==="0"?l=`>=${s}.${i}.${a}${r} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`,l})}function fye(t,e){let n=nye;return t.replace(n,(r,o,s,i,a,u)=>{let l=bn(s),d=l||bn(i),p=d||bn(a),f=p;return o==="="&&f&&(o=""),u=e?.includePrerelease?"-0":"",l?o===">"||o==="<"?r="<0.0.0-0":r="*":o&&f?(d&&(i=0),a=0,o===">"?(o=">=",d?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",d?s=+s+1:i=+i+1),o==="<"&&(u="-0"),r=`${o+s}.${i}.${a}${u}`):d?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${u} <${s}.${+i+1}.0-0`),r})}function mye(t,e){let n=oye;return t.replace(n,(r,o,s,i,a,u,l,d,p,f,m,_)=>(bn(s)?o="":bn(i)?o=`>=${s}.0.0${e?.includePrerelease?"-0":""}`:bn(a)?o=`>=${s}.${i}.0${e?.includePrerelease?"-0":""}`:u?o=`>=${o}`:o=`>=${o}${e?.includePrerelease?"-0":""}`,bn(p)?d="":bn(f)?d=`<${+p+1}.0.0-0`:bn(m)?d=`<${p}.${+f+1}.0-0`:_?d=`<=${p}.${f}.${m}-${_}`:e?.includePrerelease?d=`<${p}.${f}.${+m+1}-0`:d=`<=${d}`,`${o} ${d}`.trim()))}});var zO=T(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.massUnwrap=Wt.unwrap=Wt.massWrap=Wt.wrap=void 0;var Rn=console.error.bind(console);function nf(t,e,n){let r=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}var _ye=(t,e,n)=>{if(!t||!t[e]){Rn("no original function "+String(e)+" to wrap");return}if(!n){Rn("no wrapper function"),Rn(new Error().stack);return}let r=t[e];if(typeof r!="function"||typeof n!="function"){Rn("original object and wrapper must be functions");return}let o=n(r,e);return nf(o,"__original",r),nf(o,"__unwrap",()=>{t[e]===o&&nf(t,e,r)}),nf(o,"__wrapped",!0),nf(t,e,o),o};Wt.wrap=_ye;var hye=(t,e,n)=>{if(t)Array.isArray(t)||(t=[t]);else{Rn("must provide one or more modules to patch"),Rn(new Error().stack);return}if(!(e&&Array.isArray(e))){Rn("must provide one or more functions to wrap on modules");return}t.forEach(r=>{e.forEach(o=>{(0,Wt.wrap)(r,o,n)})})};Wt.massWrap=hye;var gye=(t,e)=>{if(!t||!t[e]){Rn("no function to unwrap."),Rn(new Error().stack);return}let n=t[e];if(!n.__unwrap)Rn("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{n.__unwrap();return}};Wt.unwrap=gye;var Tye=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Rn("must provide one or more modules to patch"),Rn(new Error().stack);return}if(!(e&&Array.isArray(e))){Rn("must provide one or more functions to unwrap on modules");return}t.forEach(n=>{e.forEach(r=>{(0,Wt.unwrap)(n,r)})})};Wt.massUnwrap=Tye;function rf(t){t&&t.logger&&(typeof t.logger!="function"?Rn("new logger isn't a function, not replacing"):Rn=t.logger)}Wt.default=rf;rf.wrap=Wt.wrap;rf.massWrap=Wt.massWrap;rf.unwrap=Wt.unwrap;rf.massUnwrap=Wt.massUnwrap});var A8=T(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.InstrumentationAbstract=void 0;var YO=(P(),N(L)),Eye=jO(),PT=zO(),WO=class{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,n,r){this.instrumentationName=e,this.instrumentationVersion=n,this.setConfig(r),this._diag=YO.diag.createComponentLogger({namespace:e}),this._tracer=YO.trace.getTracer(e,n),this._meter=YO.metrics.getMeter(e,n),this._logger=Eye.logs.getLogger(e,n),this._updateMetricInstruments()}_wrap=PT.wrap;_unwrap=PT.unwrap;_massWrap=PT.massWrap;_massUnwrap=PT.massUnwrap;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(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,n,r,o){if(e)try{e(r,o)}catch(s){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},s)}}};MT.InstrumentationAbstract=WO});var y8=T(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.ModuleNameTrie=Ei.ModuleNameSeparator=void 0;Ei.ModuleNameSeparator="/";var vT=class{hooks=[];children=new Map},KO=class{_trie=new vT;_counter=0;insert(e){let n=this._trie;for(let r of e.moduleName.split(Ei.ModuleNameSeparator)){let o=n.children.get(r);o||(o=new vT,n.children.set(r,o)),n=o}n.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:n,fullOnly:r}={}){let o=this._trie,s=[],i=!0;for(let a of e.split(Ei.ModuleNameSeparator)){let u=o.children.get(a);if(!u){i=!1;break}r||s.push(...u.hooks),o=u}return r&&i&&s.push(...o.hooks),s.length===0?[]:s.length===1?[s[0].hook]:(n&&s.sort((a,u)=>a.insertedId-u.insertedId),s.map(({hook:a})=>a))}};Ei.ModuleNameTrie=KO});var R8=T(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.RequireInTheMiddleSingleton=void 0;var Sye=fa(),b8=U("path"),QO=y8(),Aye=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),JO=class t{_moduleNameTrie=new QO.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new Sye.Hook(null,{internals:!0},(e,n,r)=>{let o=yye(n),s=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:r===void 0});for(let{onRequire:i}of s)e=i(e,n,r);return e})}register(e,n){let r={moduleName:e,onRequire:n};return this._moduleNameTrie.insert(r),r}static getInstance(){return Aye?new t:this._instance=this._instance??new t}};kT.RequireInTheMiddleSingleton=JO;function yye(t){return b8.sep!==QO.ModuleNameSeparator?t.split(b8.sep).join(QO.ModuleNameSeparator):t}});var x8=T(of=>{var I8=[],XO=new WeakMap,O8=new WeakMap,C8=new Map,N8=[],bye={set(t,e,n){let r=XO.get(t),o=r&&r[e];return typeof o=="function"?o(n):!0},get(t,e){if(e===Symbol.toStringTag)return"Module";let n=O8.get(t)[e];if(typeof n=="function")return n()},defineProperty(t,e,n){if(!("value"in n))throw new Error("Getters/setters are not supported for exports property descriptors.");let r=XO.get(t),o=r&&r[e];return typeof o=="function"?o(n.value):!0}};function Rye(t,e,n,r,o){C8.set(t,o),XO.set(e,n),O8.set(e,r);let s=new Proxy(e,bye);I8.forEach(i=>i(t,s,o)),N8.push([t,s,o])}of.register=Rye;of.importHooks=I8;of.specifiers=C8;of.toHook=N8});var nC=T((zJe,il)=>{var P8=U("path"),Iye=w_(),{fileURLToPath:Oye}=U("url"),{MessageChannel:Cye}=U("worker_threads"),{isBuiltin:ZO}=U("module");ZO||(ZO=()=>!0);var{importHooks:eC,specifiers:Nye,toHook:xye}=x8();function M8(t){eC.push(t),xye.forEach(([e,n,r])=>t(e,n,r))}function v8(t){let e=eC.indexOf(t);e>-1&&eC.splice(e,1)}function sl(t,e,n,r){let o=t(e,n,r);o&&o!==e&&"default"in e&&(e.default=o)}var tC;function Pye(){let{port1:t,port2:e}=new Cye,n=0,r;tC=a=>{n++,t.postMessage(a)},t.on("message",()=>{n--,r&&n<=0&&r()}).unref();function o(){let a=setInterval(()=>{},1e3),u=new Promise(l=>{r=l}).then(()=>{clearInterval(a)});return n===0&&r(),u}let s=e;return{registerOptions:{data:{addHookMessagePort:s,include:[]},transferList:[s]},addHookMessagePort:s,waitForAllMessagesAcknowledged:o}}function sf(t,e,n){if(!(this instanceof sf))return new sf(t,e,n);typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null);let r=e?e.internals===!0:!1;tC&&Array.isArray(t)&&tC(t),this._iitmHook=(o,s,i)=>{let a=o,u=a.startsWith("node:"),l,d;if(u){let p=o.slice(5);ZO(p)&&(o=p)}else if(a.startsWith("file://")){let p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{l=Oye(o),o=l}catch{}if(Error.stackTraceLimit=p,l){let f=Iye(l);f&&(o=f.name,d=f.basedir)}}if(t)for(let p of t)if(l&&p===l)sl(n,s,l,void 0);else if(p===o){if(!d)sl(n,s,o,d);else if(d.endsWith(Nye.get(a)))sl(n,s,o,d);else if(r){let f=o+P8.sep+P8.relative(d,l);sl(n,s,f,d)}}else p===i&&sl(n,s,i,d);else sl(n,s,o,d)},M8(this._iitmHook)}sf.prototype.unhook=function(){v8(this._iitmHook)};il.exports=sf;il.exports.Hook=sf;il.exports.addHook=M8;il.exports.removeHook=v8;il.exports.createAddHookMessageChannel=Pye});var rC=T(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.isWrapped=Si.safeExecuteInTheMiddleAsync=Si.safeExecuteInTheMiddle=void 0;function Mye(t,e,n){let r,o;try{o=t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}Si.safeExecuteInTheMiddle=Mye;async function vye(t,e,n){let r,o;try{o=await t()}catch(s){r=s}finally{if(await e(r,o),r&&!n)throw r;return o}}Si.safeExecuteInTheMiddleAsync=vye;function kye(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Si.isWrapped=kye});var w8=T(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.InstrumentationBase=void 0;var af=U("path"),k8=U("util"),Lye=S8(),oC=zO(),wye=A8(),Dye=R8(),Uye=nC(),uf=(P(),N(L)),Bye=fa(),Fye=U("fs"),Gye=rC(),sC=class extends wye.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=Dye.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,n,r){super(e,n,r);let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_wrap=(e,n,r)=>{if((0,Gye.isWrapped)(e[n])&&this._unwrap(e,n),k8.types.isProxy(e)){let o=(0,oC.wrap)(Object.assign({},e),n,r);return Object.defineProperty(e,n,{value:o}),o}else return(0,oC.wrap)(e,n,r)};_unwrap=(e,n)=>k8.types.isProxy(e)?Object.defineProperty(e,n,{value:e[n]}):(0,oC.unwrap)(e,n);_massWrap=(e,n,r)=>{if(e)Array.isArray(e)||(e=[e]);else{uf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){uf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(o=>{n.forEach(s=>{this._wrap(o,s,r)})})};_massUnwrap=(e,n)=>{if(e)Array.isArray(e)||(e=[e]);else{uf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){uf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(r=>{n.forEach(o=>{this._unwrap(r,o)})})};_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:n}=e;try{let r=U.resolve(n);U.cache[r]&&this._diag.warn(`Module ${n} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${n}`)}catch{}})}_extractPackageVersion(e){try{let n=(0,Fye.readFileSync)(af.join(e,"package.json"),{encoding:"utf8"}),r=JSON.parse(n).version;return typeof r=="string"?r:void 0}catch{uf.diag.warn("Failed extracting version",e)}}_onRequire(e,n,r,o){if(!o)return typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(n)):n;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===r)return L8(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(n,e.moduleVersion)):n;let i=e.files??[],a=af.normalize(r);return i.filter(l=>l.name===a&&L8(l.supportedVersions,s,e.includePrerelease)).reduce((l,d)=>(d.moduleExports=l,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:d.name,baseDir:o}),d.patch(l,e.moduleVersion)):l),n)}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 n of e.files)n.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.patch(n.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let n=(i,a,u)=>{if(!u&&af.isAbsolute(a)){let l=af.parse(a);a=l.name,u=l.dir}return this._onRequire(e,i,a,u)},r=(i,a,u)=>this._onRequire(e,i,a,u),o=af.isAbsolute(e.name)?new Bye.Hook([e.name],{internals:!0},r):this._requireInTheMiddleSingleton.register(e.name,r);this._hooks.push(o);let s=new Uye.Hook([e.name],{internals:!0},n);this._hooks.push(s)}}}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 n of e.files)n.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.unpatch(n.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};LT.InstrumentationBase=sC;function L8(t,e,n){return typeof e>"u"?t.includes("*"):t.some(r=>(0,Lye.satisfies)(e,r,{includePrerelease:n}))}});var D8=T(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.normalize=void 0;var jye=U("path");Object.defineProperty(wT,"normalize",{enumerable:!0,get:function(){return jye.normalize}})});var U8=T(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.normalize=al.InstrumentationBase=void 0;var Hye=w8();Object.defineProperty(al,"InstrumentationBase",{enumerable:!0,get:function(){return Hye.InstrumentationBase}});var Vye=D8();Object.defineProperty(al,"normalize",{enumerable:!0,get:function(){return Vye.normalize}})});var iC=T(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.normalize=ul.InstrumentationBase=void 0;var B8=U8();Object.defineProperty(ul,"InstrumentationBase",{enumerable:!0,get:function(){return B8.InstrumentationBase}});Object.defineProperty(ul,"normalize",{enumerable:!0,get:function(){return B8.normalize}})});var F8=T(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.InstrumentationNodeModuleDefinition=void 0;var aC=class{files;name;supportedVersions;patch;unpatch;constructor(e,n,r,o,s){this.files=s||[],this.name=e,this.supportedVersions=n,this.patch=r,this.unpatch=o}};DT.InstrumentationNodeModuleDefinition=aC});var G8=T(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.InstrumentationNodeModuleFile=void 0;var qye=iC(),uC=class{name;supportedVersions;patch;unpatch;constructor(e,n,r,o){this.name=(0,qye.normalize)(e),this.supportedVersions=n,this.patch=r,this.unpatch=o}};UT.InstrumentationNodeModuleFile=uC});var j8=T(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.semconvStabilityFromStr=ja.SemconvStability=void 0;var BT;(function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"})(BT=ja.SemconvStability||(ja.SemconvStability={}));function $ye(t,e){let n=BT.OLD,r=e?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(let o of r??[])if(o.toLowerCase()===t+"/dup"){n=BT.DUPLICATE;break}else o.toLowerCase()===t&&(n=BT.STABLE);return n}ja.semconvStabilityFromStr=$ye});var V8=T(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.semconvStabilityFromStr=mt.SemconvStability=mt.safeExecuteInTheMiddleAsync=mt.safeExecuteInTheMiddle=mt.isWrapped=mt.InstrumentationNodeModuleFile=mt.InstrumentationNodeModuleDefinition=mt.InstrumentationBase=mt.registerInstrumentations=void 0;var zye=d8();Object.defineProperty(mt,"registerInstrumentations",{enumerable:!0,get:function(){return zye.registerInstrumentations}});var Yye=iC();Object.defineProperty(mt,"InstrumentationBase",{enumerable:!0,get:function(){return Yye.InstrumentationBase}});var Wye=F8();Object.defineProperty(mt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return Wye.InstrumentationNodeModuleDefinition}});var Kye=G8();Object.defineProperty(mt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return Kye.InstrumentationNodeModuleFile}});var cC=rC();Object.defineProperty(mt,"isWrapped",{enumerable:!0,get:function(){return cC.isWrapped}});Object.defineProperty(mt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return cC.safeExecuteInTheMiddle}});Object.defineProperty(mt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return cC.safeExecuteInTheMiddleAsync}});var H8=j8();Object.defineProperty(mt,"SemconvStability",{enumerable:!0,get:function(){return H8.SemconvStability}});Object.defineProperty(mt,"semconvStabilityFromStr",{enumerable:!0,get:function(){return H8.semconvStabilityFromStr}})});var q8=T((rXe,Qye)=>{Qye.exports={name:"@fastify/otel",version:"0.18.0",description:"Official Fastify OpenTelemetry Instrumentation",main:"index.js",type:"commonjs",types:"types/index.d.ts",scripts:{lint:"eslint","lint:fix":"eslint --fix",test:"npm run test:all && npm run test:typescript","test:unit":"c8 --100 node --test","test:all":"npm run test:v4 && npm run test:v5","test:v4":"cross-env FASTIFY_VERSION=fastifyv4 npm run test:unit","test:v5":"cross-env FASTIFY_VERSION=fastify npm run test:unit","test:coverage":"c8 node --test && c8 report --reporter=html","test:typescript":"tsd"},repository:{type:"git",url:"git+https://github.com/fastify/otel.git"},keywords:["plugin","helper","fastify","instrumentation","otel","opentelemetry"],author:"Carlos Fuentes - @metcoder95 (https://metcoder.dev)",license:"MIT",bugs:{url:"https://github.com/fastify/otel/issues"},homepage:"https://github.com/fastify/otel#readme",funding:[{type:"github",url:"https://github.com/sponsors/fastify"},{type:"opencollective",url:"https://opencollective.com/fastify"}],devDependencies:{"@fastify/type-provider-typebox":"^6.1.0","@opentelemetry/context-async-hooks":"^2.0.0","@opentelemetry/contrib-test-utils":"^0.59.0","@opentelemetry/instrumentation-http":"^0.212.0","@opentelemetry/propagator-jaeger":"^2.0.0","@opentelemetry/sdk-trace-base":"^2.0.0","@opentelemetry/sdk-trace-node":"^2.2.0","@types/node":"^25.0.3",c8:"^11.0.0","cross-env":"^10.0.0",eslint:"^9.16.0",fastify:"^5.1.0","fastify-plugin":"^5.1.0",fastifyv4:"npm:fastify@^4.0.0",neostandard:"^0.12.0",tsd:"^0.33.0"},dependencies:{"@opentelemetry/core":"^2.0.0","@opentelemetry/instrumentation":"^0.212.0","@opentelemetry/semantic-conventions":"^1.28.0",minimatch:"^10.2.4"},peerDependencies:{"@opentelemetry/api":"^1.9.0"},tsd:{directory:"types"}}});var z8=T(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.range=Ha.balanced=void 0;var Jye=(t,e,n)=>{let r=t instanceof RegExp?$8(t,n):t,o=e instanceof RegExp?$8(e,n):e,s=r!==null&&o!=null&&(0,Ha.range)(r,o,n);return s&&{start:s[0],end:s[1],pre:n.slice(0,s[0]),body:n.slice(s[0]+r.length,s[1]),post:n.slice(s[1]+o.length)}};Ha.balanced=Jye;var $8=(t,e)=>{let n=e.match(t);return n?n[0]:null},Xye=(t,e,n)=>{let r,o,s,i,a,u=n.indexOf(t),l=n.indexOf(e,u+1),d=u;if(u>=0&&l>0){if(t===e)return[u,l];for(r=[],s=n.length;d>=0&&!a;){if(d===u)r.push(d),u=n.indexOf(t,d+1);else if(r.length===1){let p=r.pop();p!==void 0&&(a=[p,l])}else o=r.pop(),o!==void 0&&o<s&&(s=o,i=l),l=n.indexOf(e,d+1);d=u<l&&u>=0?u:l}r.length&&i!==void 0&&(a=[s,i])}return a};Ha.range=Xye});var Z8=T(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.EXPANSION_MAX=void 0;cl.expand=dbe;var Y8=z8(),W8="\0SLASH"+Math.random()+"\0",K8="\0OPEN"+Math.random()+"\0",dC="\0CLOSE"+Math.random()+"\0",Q8="\0COMMA"+Math.random()+"\0",J8="\0PERIOD"+Math.random()+"\0",Zye=new RegExp(W8,"g"),ebe=new RegExp(K8,"g"),tbe=new RegExp(dC,"g"),nbe=new RegExp(Q8,"g"),rbe=new RegExp(J8,"g"),obe=/\\\\/g,sbe=/\\{/g,ibe=/\\}/g,abe=/\\,/g,ube=/\\\./g;cl.EXPANSION_MAX=1e5;function lC(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function cbe(t){return t.replace(obe,W8).replace(sbe,K8).replace(ibe,dC).replace(abe,Q8).replace(ube,J8)}function lbe(t){return t.replace(Zye,"\\").replace(ebe,"{").replace(tbe,"}").replace(nbe,",").replace(rbe,".")}function X8(t){if(!t)return[""];let e=[],n=(0,Y8.balanced)("{","}",t);if(!n)return t.split(",");let{pre:r,body:o,post:s}=n,i=r.split(",");i[i.length-1]+="{"+o+"}";let a=X8(s);return s.length&&(i[i.length-1]+=a.shift(),i.push.apply(i,a)),e.push.apply(e,i),e}function dbe(t,e={}){if(!t)return[];let{max:n=cl.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),cf(cbe(t),n,!0).map(lbe)}function pbe(t){return"{"+t+"}"}function fbe(t){return/^-?0\d/.test(t)}function mbe(t,e){return t<=e}function _be(t,e){return t>=e}function cf(t,e,n){let r=[],o=(0,Y8.balanced)("{","}",t);if(!o)return[t];let s=o.pre,i=o.post.length?cf(o.post,e,!1):[""];if(/\$$/.test(o.pre))for(let a=0;a<i.length&&a<e;a++){let u=s+"{"+o.body+"}"+i[a];r.push(u)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),l=a||u,d=o.body.indexOf(",")>=0;if(!l&&!d)return o.post.match(/,(?!,).*\}/)?(t=o.pre+"{"+o.body+dC+o.post,cf(t,e,!0)):[t];let p;if(l)p=o.body.split(/\.\./);else if(p=X8(o.body),p.length===1&&p[0]!==void 0&&(p=cf(p[0],e,!1).map(pbe),p.length===1))return i.map(m=>o.pre+p[0]+m);let f;if(l&&p[0]!==void 0&&p[1]!==void 0){let m=lC(p[0]),_=lC(p[1]),h=Math.max(p[0].length,p[1].length),g=p.length===3&&p[2]!==void 0?Math.abs(lC(p[2])):1,E=mbe;_<m&&(g*=-1,E=_be);let b=p.some(fbe);f=[];for(let R=m;E(R,_);R+=g){let I;if(u)I=String.fromCharCode(R),I==="\\"&&(I="");else if(I=String(R),b){let C=h-I.length;if(C>0){let H=new Array(C+1).join("0");R<0?I="-"+H+I.slice(1):I=H+I}}f.push(I)}}else{f=[];for(let m=0;m<p.length;m++)f.push.apply(f,cf(p[m],e,!1))}for(let m=0;m<f.length;m++)for(let _=0;_<i.length&&r.length<e;_++){let h=s+f[m]+i[_];(!n||l||h)&&r.push(h)}}return r}});var eq=T(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.assertValidPattern=void 0;var hbe=1024*64,gbe=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>hbe)throw new TypeError("pattern is too long")};FT.assertValidPattern=gbe});var nq=T(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.parseClass=void 0;var Tbe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},lf=t=>t.replace(/[[\]\\-]/g,"\\$&"),Ebe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tq=t=>t.join(""),Sbe=(t,e)=>{let n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");let r=[],o=[],s=n+1,i=!1,a=!1,u=!1,l=!1,d=n,p="";e:for(;s<t.length;){let h=t.charAt(s);if((h==="!"||h==="^")&&s===n+1){l=!0,s++;continue}if(h==="]"&&i&&!u){d=s+1;break}if(i=!0,h==="\\"&&!u){u=!0,s++;continue}if(h==="["&&!u){for(let[g,[E,S,b]]of Object.entries(Tbe))if(t.startsWith(g,s)){if(p)return["$.",!1,t.length-n,!0];s+=g.length,b?o.push(E):r.push(E),a=a||S;continue e}}if(u=!1,p){h>p?r.push(lf(p)+"-"+lf(h)):h===p&&r.push(lf(h)),p="",s++;continue}if(t.startsWith("-]",s+1)){r.push(lf(h+"-")),s+=2;continue}if(t.startsWith("-",s+1)){p=h,s+=2;continue}r.push(lf(h)),s++}if(d<s)return["",!1,0,!1];if(!r.length&&!o.length)return["$.",!1,t.length-n,!0];if(o.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l){let h=r[0].length===2?r[0].slice(-1):r[0];return[Ebe(h),!1,d-n,!1]}let f="["+(l?"^":"")+tq(r)+"]",m="["+(l?"":"^")+tq(o)+"]";return[r.length&&o.length?"("+f+"|"+m+")":r.length?f:m,a,d-n,!0]};GT.parseClass=Sbe});var HT=T(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.unescape=void 0;var Abe=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!0}={})=>n?e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):e?t.replace(/\[([^\/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");jT.unescape=Abe});var mC=T(zT=>{"use strict";var Un;Object.defineProperty(zT,"__esModule",{value:!0});zT.AST=void 0;var ybe=nq(),VT=HT(),bbe=new Set(["!","?","+","*","@"]),pC=t=>bbe.has(t),rq=t=>pC(t.type),Rbe=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Ibe=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Obe=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),oq=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Cbe="(?!(?:^|/)\\.\\.?(?:$|/))",qT="(?!\\.)",Nbe=new Set(["[","."]),xbe=new Set(["..","."]),Pbe=new Set("().*{}+?[]^$\\!"),Mbe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fC="[^/]",sq=fC+"*?",iq=fC+"+?",vbe=0,$T=class{type;#n;#r;#o=!1;#e=[];#t;#a;#c;#u=!1;#s;#i;#l=!1;id=++vbe;get depth(){return(this.#t?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#n.id,parent:this.#t?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(e,n,r={}){this.type=e,e&&(this.#r=!0),this.#t=n,this.#n=this.#t?this.#t.#n:this,this.#s=this.#n===this?r:this.#n.#s,this.#c=this.#n===this?[]:this.#n.#c,e==="!"&&!this.#n.#u&&this.#c.push(this),this.#a=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#i!==void 0?this.#i:this.type?this.#i=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#i=this.#e.map(e=>String(e)).join("")}#g(){if(this!==this.#n)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let n=e,r=n.#t;for(;r;){for(let o=n.#a+1;!r.type&&o<r.#e.length;o++)for(let s of e.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#e[o])}n=r,r=n.#t}}return this}push(...e){for(let n of e)if(n!==""){if(typeof n!="string"&&!(n instanceof Un&&n.#t===this))throw new Error("invalid part: "+n);this.#e.push(n)}}toJSON(){let e=this.type===null?this.#e.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#e.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#u&&this.#t?.type==="!")&&e.push({}),e}isStart(){if(this.#n===this)return!0;if(!this.#t?.isStart())return!1;if(this.#a===0)return!0;let e=this.#t;for(let n=0;n<this.#a;n++){let r=e.#e[n];if(!(r instanceof Un&&r.type==="!"))return!1}return!0}isEnd(){if(this.#n===this||this.#t?.type==="!")return!0;if(!this.#t?.isEnd())return!1;if(!this.type)return this.#t?.isEnd();let e=this.#t?this.#t.#e.length:0;return this.#a===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let n=new Un(this.type,e);for(let r of this.#e)n.copyIn(r);return n}static#d(e,n,r,o,s){let i=o.maxExtglobRecursion??2,a=!1,u=!1,l=-1,d=!1;if(n.type===null){let h=r,g="";for(;h<e.length;){let E=e.charAt(h++);if(a||E==="\\"){a=!a,g+=E;continue}if(u){h===l+1?(E==="^"||E==="!")&&(d=!0):E==="]"&&!(h===l+2&&d)&&(u=!1),g+=E;continue}else if(E==="["){u=!0,l=h,d=!1,g+=E;continue}if(!o.noext&&pC(E)&&e.charAt(h)==="("&&s<=i){n.push(g),g="";let b=new Un(E,n);h=Un.#d(e,b,h,o,s+1),n.push(b);continue}g+=E}return n.push(g),h}let p=r+1,f=new Un(null,n),m=[],_="";for(;p<e.length;){let h=e.charAt(p++);if(a||h==="\\"){a=!a,_+=h;continue}if(u){p===l+1?(h==="^"||h==="!")&&(d=!0):h==="]"&&!(p===l+2&&d)&&(u=!1),_+=h;continue}else if(h==="["){u=!0,l=p,d=!1,_+=h;continue}if(!o.noext&&pC(h)&&e.charAt(p)==="("&&(s<=i||n&&n.#p(h))){let E=n&&n.#p(h)?0:1;f.push(_),_="";let S=new Un(h,f);f.push(S),p=Un.#d(e,S,p,o,s+E);continue}if(h==="|"){f.push(_),_="",m.push(f),f=new Un(null,n);continue}if(h===")")return _===""&&n.#e.length===0&&(n.#l=!0),f.push(_),_="",n.push(...m,f),p;_+=h}return n.type=null,n.#r=void 0,n.#e=[e.substring(r-1)],p}#T(e){return this.#m(e,Ibe)}#m(e,n=Rbe){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let r=e.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#p(r.type,n)}#p(e,n=Obe){return!!n.get(this.type)?.includes(e)}#E(e,n){let r=e.#e[0],o=new Un(null,r,this.options);o.#e.push(""),r.push(o),this.#_(e,n)}#_(e,n){let r=e.#e[0];this.#e.splice(n,1,...r.#e);for(let o of r.#e)typeof o=="object"&&(o.#t=this);this.#i=void 0}#S(e){return!!oq.get(this.type)?.has(e)}#A(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let n=e.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#S(n.type)}#y(e){let n=oq.get(this.type),r=e.#e[0],o=n?.get(r.type);if(!o)return!1;this.#e=r.#e;for(let s of this.#e)typeof s=="object"&&(s.#t=this);this.type=o,this.#i=void 0,this.#l=!1}static fromGlob(e,n={}){let r=new Un(null,void 0,n);return Un.#d(e,r,0,n,0),r}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();let e=this.toString(),[n,r,o,s]=this.toRegExpSource();if(!(o||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:e})}get options(){return this.#s}toRegExpSource(e){let n=e??!!this.#s.dot;if(this.#n===this&&(this.#f(),this.#g()),!rq(this)){let u=this.isStart()&&this.isEnd()&&!this.#e.some(m=>typeof m!="string"),l=this.#e.map(m=>{let[_,h,g,E]=typeof m=="string"?Un.#b(m,this.#r,u):m.toRegExpSource(e);return this.#r=this.#r||g,this.#o=this.#o||E,_}).join(""),d="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&xbe.has(this.#e[0]))){let _=Nbe,h=n&&_.has(l.charAt(0))||l.startsWith("\\.")&&_.has(l.charAt(2))||l.startsWith("\\.\\.")&&_.has(l.charAt(4)),g=!n&&!e&&_.has(l.charAt(0));d=h?Cbe:g?qT:""}let p="";return this.isEnd()&&this.#n.#u&&this.#t?.type==="!"&&(p="(?:$|\\/)"),[d+l+p,(0,VT.unescape)(l),this.#r=!!this.#r,this.#o]}let r=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString(),l=this;return l.#e=[u],l.type=null,l.#r=void 0,[u,(0,VT.unescape)(this.toString()),!1,!1]}let i=!r||e||n||!qT?"":this.#h(!0);i===s&&(i=""),i&&(s=`(?:${s})(?:${i})*?`);let a="";if(this.type==="!"&&this.#l)a=(this.isStart()&&!n?qT:"")+iq;else{let u=this.type==="!"?"))"+(this.isStart()&&!n&&!e?qT:"")+sq+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&i?")":this.type==="*"&&i?")?":`)${this.type}`;a=o+s+u}return[a,(0,VT.unescape)(s),this.#r=!!this.#r,this.#o]}#f(){if(rq(this)){let e=0,n=!1;do{n=!0;for(let r=0;r<this.#e.length;r++){let o=this.#e[r];typeof o=="object"&&(o.#f(),this.#m(o)?(n=!1,this.#_(o,r)):this.#T(o)?(n=!1,this.#E(o,r)):this.#A(o)&&(n=!1,this.#y(o)))}}while(!n&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#f();this.#i=void 0}#h(e){return this.#e.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[r,o,s,i]=n.toRegExpSource(e);return this.#o=this.#o||i,r}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#b(e,n,r=!1){let o=!1,s="",i=!1,a=!1;for(let u=0;u<e.length;u++){let l=e.charAt(u);if(o){o=!1,s+=(Pbe.has(l)?"\\":"")+l;continue}if(l==="*"){if(a)continue;a=!0,s+=r&&/^[*]+$/.test(e)?iq:sq,n=!0;continue}else a=!1;if(l==="\\"){u===e.length-1?s+="\\\\":o=!0;continue}if(l==="["){let[d,p,f,m]=(0,ybe.parseClass)(e,u);if(f){s+=d,i=i||p,u+=f-1,n=n||m;continue}}if(l==="?"){s+=fC,n=!0;continue}s+=Mbe(l)}return[s,(0,VT.unescape)(e),!!n,i]}};zT.AST=$T;Un=$T});var _C=T(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.escape=void 0;var kbe=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!1}={})=>n?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");YT.escape=kbe});var fq=T(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.unescape=F.escape=F.AST=F.Minimatch=F.match=F.makeRe=F.braceExpand=F.defaults=F.filter=F.GLOBSTAR=F.sep=F.minimatch=void 0;var Lbe=Z8(),WT=eq(),cq=mC(),wbe=_C(),Dbe=HT(),Ube=(t,e,n={})=>((0,WT.assertValidPattern)(e),!n.nocomment&&e.charAt(0)==="#"?!1:new Va(e,n).match(t));F.minimatch=Ube;var Bbe=/^\*+([^+@!?\*\[\(]*)$/,Fbe=t=>e=>!e.startsWith(".")&&e.endsWith(t),Gbe=t=>e=>e.endsWith(t),jbe=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Hbe=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Vbe=/^\*+\.\*+$/,qbe=t=>!t.startsWith(".")&&t.includes("."),$be=t=>t!=="."&&t!==".."&&t.includes("."),zbe=/^\.\*+$/,Ybe=t=>t!=="."&&t!==".."&&t.startsWith("."),Wbe=/^\*+$/,Kbe=t=>t.length!==0&&!t.startsWith("."),Qbe=t=>t.length!==0&&t!=="."&&t!=="..",Jbe=/^\?+([^+@!?\*\[\(]*)?$/,Xbe=([t,e=""])=>{let n=lq([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},Zbe=([t,e=""])=>{let n=dq([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},eRe=([t,e=""])=>{let n=dq([t]);return e?r=>n(r)&&r.endsWith(e):n},tRe=([t,e=""])=>{let n=lq([t]);return e?r=>n(r)&&r.endsWith(e):n},lq=([t])=>{let e=t.length;return n=>n.length===e&&!n.startsWith(".")},dq=([t])=>{let e=t.length;return n=>n.length===e&&n!=="."&&n!==".."},pq=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",aq={win32:{sep:"\\"},posix:{sep:"/"}};F.sep=pq==="win32"?aq.win32.sep:aq.posix.sep;F.minimatch.sep=F.sep;F.GLOBSTAR=Symbol("globstar **");F.minimatch.GLOBSTAR=F.GLOBSTAR;var nRe="[^/]",rRe=nRe+"*?",oRe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",sRe="(?:(?!(?:\\/|^)\\.).)*?",iRe=(t,e={})=>n=>(0,F.minimatch)(n,t,e);F.filter=iRe;F.minimatch.filter=F.filter;var Rr=(t,e={})=>Object.assign({},t,e),aRe=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return F.minimatch;let e=F.minimatch;return Object.assign((r,o,s={})=>e(r,o,Rr(t,s)),{Minimatch:class extends e.Minimatch{constructor(o,s={}){super(o,Rr(t,s))}static defaults(o){return e.defaults(Rr(t,o)).Minimatch}},AST:class extends e.AST{constructor(o,s,i={}){super(o,s,Rr(t,i))}static fromGlob(o,s={}){return e.AST.fromGlob(o,Rr(t,s))}},unescape:(r,o={})=>e.unescape(r,Rr(t,o)),escape:(r,o={})=>e.escape(r,Rr(t,o)),filter:(r,o={})=>e.filter(r,Rr(t,o)),defaults:r=>e.defaults(Rr(t,r)),makeRe:(r,o={})=>e.makeRe(r,Rr(t,o)),braceExpand:(r,o={})=>e.braceExpand(r,Rr(t,o)),match:(r,o,s={})=>e.match(r,o,Rr(t,s)),sep:e.sep,GLOBSTAR:F.GLOBSTAR})};F.defaults=aRe;F.minimatch.defaults=F.defaults;var uRe=(t,e={})=>((0,WT.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Lbe.expand)(t,{max:e.braceExpandMax}));F.braceExpand=uRe;F.minimatch.braceExpand=F.braceExpand;var cRe=(t,e={})=>new Va(t,e).makeRe();F.makeRe=cRe;F.minimatch.makeRe=F.makeRe;var lRe=(t,e,n={})=>{let r=new Va(e,n);return t=t.filter(o=>r.match(o)),r.options.nonull&&!t.length&&t.push(e),t};F.match=lRe;F.minimatch.match=F.match;var uq=/[?*]|[+@!]\(.*?\)|\[|\]/,dRe=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Va=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,n={}){(0,WT.assertValidPattern)(e),n=n||{},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=e,this.platform=n.platform||pq,this.isWindows=this.platform==="win32";let r="allowWindowsEscape";this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n[r]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let n of e)if(typeof n!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let o=this.globParts.map((s,i,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=s[0]===""&&s[1]===""&&(s[2]==="?"||!uq.test(s[2]))&&!uq.test(s[3]),l=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(l)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let i=this.set[s];i[0]===""&&i[1]===""&&this.globParts[s][2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3])&&(i[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let o=0;o<e[r].length;o++)e[r][o]==="**"&&(e[r][o]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):n>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let o=r;for(;n[o+1]==="**";)o++;o!==r&&n.splice(r,o-r)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((r,o)=>{let s=r[r.length-1];return o==="**"&&s==="**"?r:o===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(o),r)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let o=1;o<e.length-1;o++){let s=e[o];o===1&&s===""&&e[0]===""||(s==="."||s==="")&&(n=!0,e.splice(o,1),o--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(n=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let o=e[r-1];o&&o!=="."&&o!==".."&&o!=="**"&&(n=!0,e.splice(r-1,2),r-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let r of e){let o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let i=o;for(;r[i+1]==="**";)i++;i>o&&r.splice(o+1,i-o);let a=r[o+1],u=r[o+2],l=r[o+3];if(a!==".."||!u||u==="."||u===".."||!l||l==="."||l==="..")continue;n=!0,r.splice(o,1);let d=r.slice(0);d[o]="**",e.push(d),o--}if(!this.preserveMultipleSlashes){for(let i=1;i<r.length-1;i++){let a=r[i];i===1&&a===""&&r[0]===""||(a==="."||a==="")&&(n=!0,r.splice(i,1),i--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let i=r[s-1];if(i&&i!=="."&&i!==".."&&i!=="**"){n=!0;let u=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...u),r.length===0&&r.push(""),s-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let r=n+1;r<e.length;r++){let o=this.partsMatch(e[n],e[r],!this.preserveMultipleSlashes);if(o){e[n]=[],e[r]=o;break}}return e.filter(n=>n.length)}partsMatch(e,n,r=!1){let o=0,s=0,i=[],a="";for(;o<e.length&&s<n.length;)if(e[o]===n[s])i.push(a==="b"?n[s]:e[o]),o++,s++;else if(r&&e[o]==="**"&&n[s]===e[o+1])i.push(e[o]),o++;else if(r&&n[s]==="**"&&e[o]===n[s+1])i.push(n[s]),s++;else if(e[o]==="*"&&n[s]&&(this.options.dot||!n[s].startsWith("."))&&n[s]!=="**"){if(a==="b")return!1;a="a",i.push(e[o]),o++,s++}else if(n[s]==="*"&&e[o]&&(this.options.dot||!e[o].startsWith("."))&&e[o]!=="**"){if(a==="a")return!1;a="b",i.push(n[s]),o++,s++}else return!1;return e.length===n.length&&i}parseNegate(){if(this.nonegate)return;let e=this.pattern,n=!1,r=0;for(let o=0;o<e.length&&e.charAt(o)==="!";o++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n,r=!1){let o=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),l=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),d=!l&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),p=u?3:a?0:void 0,f=d?3:l?0:void 0;if(typeof p=="number"&&typeof f=="number"){let[m,_]=[e[p],n[f]];m.toLowerCase()===_.toLowerCase()&&(n[f]=m,s=f,o=p)}}let{optimizationLevel:i=1}=this.options;return i>=2&&(e=this.levelTwoFileOptimize(e)),n.includes(F.GLOBSTAR)?this.#n(e,n,r,o,s):this.#o(e,n,r,o,s)}#n(e,n,r,o,s){let i=n.indexOf(F.GLOBSTAR,s),a=n.lastIndexOf(F.GLOBSTAR),[u,l,d]=r?[n.slice(s,i),n.slice(i+1),[]]:[n.slice(s,i),n.slice(i+1,a),n.slice(a+1)];if(u.length){let S=e.slice(o,o+u.length);if(!this.#o(S,u,r,0,0))return!1;o+=u.length,s+=u.length}let p=0;if(d.length){if(d.length+o>e.length)return!1;let S=e.length-d.length;if(this.#o(e,d,r,S,0))p=d.length;else{if(e[e.length-1]!==""||o+d.length===e.length||(S--,!this.#o(e,d,r,S,0)))return!1;p=d.length+1}}if(!l.length){let S=!!p;for(let b=o;b<e.length-p;b++){let R=String(e[b]);if(S=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return r||S}let f=[[[],0]],m=f[0],_=0,h=[0];for(let S of l)S===F.GLOBSTAR?(h.push(_),m=[[],0],f.push(m)):(m[0].push(S),_++);let g=f.length-1,E=e.length-p;for(let S of f)S[1]=E-(h[g--]+S[0].length);return!!this.#r(e,f,o,0,r,0,!!p)}#r(e,n,r,o,s,i,a){let u=n[o];if(!u){for(let p=r;p<e.length;p++){a=!0;let f=e[p];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1}return a}let[l,d]=u;for(;r<=d;){if(this.#o(e.slice(0,r+l.length),l,s,r,0)&&i<this.maxGlobstarRecursion){let m=this.#r(e,n,r+l.length,o+1,s,i+1,a);if(m!==!1)return m}let f=e[r];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1;r++}return s||null}#o(e,n,r,o,s){let i,a,u,l;for(i=o,a=s,l=e.length,u=n.length;i<l&&a<u;i++,a++){this.debug("matchOne loop");let d=n[a],p=e[i];if(this.debug(n,d,p),d===!1||d===F.GLOBSTAR)return!1;let f;if(typeof d=="string"?(f=p===d,this.debug("string match",d,p,f)):(f=d.test(p),this.debug("pattern match",d,p,f)),!f)return!1}if(i===l&&a===u)return!0;if(i===l)return r;if(a===u)return i===l-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return(0,F.braceExpand)(this.pattern,this.options)}parse(e){(0,WT.assertValidPattern)(e);let n=this.options;if(e==="**")return F.GLOBSTAR;if(e==="")return"";let r,o=null;(r=e.match(Wbe))?o=n.dot?Qbe:Kbe:(r=e.match(Bbe))?o=(n.nocase?n.dot?Hbe:jbe:n.dot?Gbe:Fbe)(r[1]):(r=e.match(Jbe))?o=(n.nocase?n.dot?Zbe:Xbe:n.dot?eRe:tRe)(r):(r=e.match(Vbe))?o=n.dot?$be:qbe:(r=e.match(zbe))&&(o=Ybe);let s=cq.AST.fromGlob(e,this.options).toMMPattern();return o&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:o}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?rRe:n.dot?oRe:sRe,o=new Set(n.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(p=>{if(p instanceof RegExp)for(let f of p.flags.split(""))o.add(f);return typeof p=="string"?dRe(p):p===F.GLOBSTAR?F.GLOBSTAR:p._src});l.forEach((p,f)=>{let m=l[f+1],_=l[f-1];p!==F.GLOBSTAR||_===F.GLOBSTAR||(_===void 0?m!==void 0&&m!==F.GLOBSTAR?l[f+1]="(?:\\/|"+r+"\\/)?"+m:l[f]=r:m===void 0?l[f-1]=_+"(?:\\/|\\/"+r+")?":m!==F.GLOBSTAR&&(l[f-1]=_+"(?:\\/|\\/"+r+"\\/)"+m,l[f+1]=F.GLOBSTAR))});let d=l.filter(p=>p!==F.GLOBSTAR);if(this.partial&&d.length>=1){let p=[];for(let f=1;f<=d.length;f++)p.push(d.slice(0,f).join("/"));return"(?:"+p.join("|")+")"}return d.join("/")}).join("|"),[i,a]=e.length>1?["(?:",")"]:["",""];s="^"+i+s+a+"$",this.partial&&(s="^(?:\\/|"+i+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let o=this.slashSplit(e);this.debug(this.pattern,"split",o);let s=this.set;this.debug(this.pattern,"set",s);let i=o[o.length-1];if(!i)for(let a=o.length-2;!i&&a>=0;a--)i=o[a];for(let a=0;a<s.length;a++){let u=s[a],l=o;if(r.matchBase&&u.length===1&&(l=[i]),this.matchOne(l,u,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return F.minimatch.defaults(e).Minimatch}};F.Minimatch=Va;var pRe=mC();Object.defineProperty(F,"AST",{enumerable:!0,get:function(){return pRe.AST}});var fRe=_C();Object.defineProperty(F,"escape",{enumerable:!0,get:function(){return fRe.escape}});var mRe=HT();Object.defineProperty(F,"unescape",{enumerable:!0,get:function(){return mRe.unescape}});F.minimatch.AST=cq.AST;F.minimatch.Minimatch=Va;F.minimatch.escape=wbe.escape;F.minimatch.unescape=Dbe.unescape});var Sq=T((mXe,TC)=>{"use strict";var mq=U("node:diagnostics_channel"),{context:KT,trace:hC,SpanStatusCode:QT,propagation:gC,diag:_Re}=(P(),N(L)),{getRPCMetadata:hRe,RPCType:gRe}=Ae(),{ATTR_HTTP_ROUTE:JT,ATTR_HTTP_RESPONSE_STATUS_CODE:_q,ATTR_HTTP_REQUEST_METHOD:TRe,ATTR_URL_PATH:ERe}=(de(),N(Ie)),{InstrumentationBase:SRe}=V8(),{version:ARe,name:hq}=q8(),yRe=">=4.0.0 <6",gq=["onRequest","preParsing","preValidation","preHandler","preSerialization","onSend","onResponse","onError"],Le={HOOK_NAME:"hook.name",FASTIFY_TYPE:"fastify.type",HOOK_CALLBACK_NAME:"hook.callback.name",ROOT:"fastify.root"},Ai={ROUTE:"route-hook",INSTANCE:"hook",HANDLER:"request-handler"},gs="anonymous",yi=Symbol("fastify otel instance"),bi=Symbol("fastify otel request spans"),df=Symbol("fastify otel request context"),Tq=Symbol("fastify otel addhook original"),Eq=Symbol("fastify otel setnotfound original"),pf=Symbol("fastify otel ignore path"),ff=Symbol("fastify otel record exceptions"),XT=class extends SRe{logger=null;_requestHook=null;_lifecycleHook=null;constructor(e){if(super(hq,ARe,e),this.logger=_Re.createComponentLogger({namespace:hq}),this[pf]=null,this[ff]=!0,e?.recordExceptions!=null){if(typeof e.recordExceptions!="boolean")throw new TypeError("recordExceptions must be a boolean");this[ff]=e.recordExceptions}if(typeof e?.requestHook=="function"&&(this._requestHook=e.requestHook),typeof e?.lifecycleHook=="function"&&(this._lifecycleHook=e.lifecycleHook),e?.ignorePaths!=null||process.env.OTEL_FASTIFY_IGNORE_PATHS!=null){let n=e?.ignorePaths??process.env.OTEL_FASTIFY_IGNORE_PATHS;if((typeof n!="string"||n.length===0)&&typeof n!="function")throw new TypeError("ignorePaths must be a string or a function");let r=null;this[pf]=o=>typeof n=="function"?n(o):(r==null&&(r=fq().minimatch),r(o.url,n))}}enable(){return this._handleInitialization===void 0&&this.getConfig().registerOnInitialization&&(this._handleInitialization=e=>{this.plugin()(e.fastify,void 0,()=>{});let n=(r,o,s)=>{s()};n[Symbol.for("skip-override")]=!0,n[Symbol.for("fastify.display-name")]="@fastify/otel",e.fastify.register(n)},mq.subscribe("fastify.initialization",this._handleInitialization)),super.enable()}disable(){return this._handleInitialization&&(mq.unsubscribe("fastify.initialization",this._handleInitialization),this._handleInitialization=void 0),super.disable()}init(){return[]}plugin(){let e=this;return n[Symbol.for("skip-override")]=!0,n[Symbol.for("fastify.display-name")]="@fastify/otel",n[Symbol.for("plugin-meta")]={fastify:yRe,name:"@fastify/otel"},n;function n(r,o,s){r.decorate(yi,e),r.decorate(Tq,r.addHook),r.decorate(Eq,r.setNotFoundHandler),r.decorateRequest("opentelemetry",function(){let m=this[df],_=this[bi];return{enabled:this.routeOptions.config?.otel!==!1,span:_,tracer:e.tracer,context:m,inject:(h,g)=>gC.inject(m,h,g),extract:(h,g)=>gC.extract(m,h,g)}}),r.decorateRequest(bi,null),r.decorateRequest(df,null),r.addHook("onRoute",function(m){if(e[pf]?.(m)===!0){e.logger.debug(`Ignoring route instrumentation ${m.method} ${m.url} because it matches the ignore path`);return}if(m.config?.otel===!1){e.logger.debug(`Ignoring route instrumentation ${m.method} ${m.url} because it is disabled`);return}for(let _ of gq)if(m[_]!=null){let h=m[_];if(typeof h=="function")m[_]=p(h,_,{[Le.HOOK_NAME]:`${this.pluginName} - route -> ${_}`,[Le.FASTIFY_TYPE]:Ai.ROUTE,[JT]:m.url,[Le.HOOK_CALLBACK_NAME]:h.name?.length>0?h.name:gs});else if(Array.isArray(h)){let g=[];for(let E of h)g.push(p(E,_,{[Le.HOOK_NAME]:`${this.pluginName} - route -> ${_}`,[Le.FASTIFY_TYPE]:Ai.ROUTE,[JT]:m.url,[Le.HOOK_CALLBACK_NAME]:E.name?.length>0?E.name:gs}));m[_]=g}}m.onSend!=null?m.onSend=Array.isArray(m.onSend)?[...m.onSend,i]:[m.onSend,i]:m.onSend=i,m.onError!=null?m.onError=Array.isArray(m.onError)?[...m.onError,a]:[m.onError,a]:m.onError=a,m.handler=p(m.handler,"handler",{[Le.HOOK_NAME]:`${this.pluginName} - route-handler`,[Le.FASTIFY_TYPE]:Ai.HANDLER,[JT]:m.url,[Le.HOOK_CALLBACK_NAME]:m.handler.name.length>0?m.handler.name:gs})}),r.addHook("onRequest",function(m,_,h){if(this[yi].isEnabled()===!1||m.routeOptions.config?.otel===!1)return h();if(this[yi][pf]?.({url:m.url,method:m.method})===!0)return this[yi].logger.debug(`Ignoring request ${m.method} ${m.url} because it matches the ignore path`),h();let g=KT.active();hC.getSpan(g)==null&&(g=gC.extract(g,m.headers));let E=hRe(g);m.routeOptions.url!=null&&E?.type===gRe.HTTP&&(E.route=m.routeOptions.url);let S={[Le.ROOT]:"@fastify/otel",[TRe]:m.method,[ERe]:m.url};m.routeOptions.url!=null&&(S[JT]=m.routeOptions.url);let b=this[yi].tracer.startSpan("request",{attributes:S},g);try{this[yi]._requestHook?.(b,m)}catch(R){this[yi].logger.error({err:R},"requestHook threw")}m[df]=hC.setSpan(g,b),m[bi]=b,KT.with(m[df],()=>{h()})}),r.addHook("onResponse",function(m,_,h){let g=m[bi];g!=null&&(g.setAttributes({[_q]:_.statusCode}),g.end()),m[bi]=null,h()}),r.addHook=u,r.setNotFoundHandler=l,s();function i(f,m,_,h){let g=f[bi];g!=null&&(m.statusCode>=500&&g.setStatus({code:QT.ERROR}),g.setAttributes({[_q]:m.statusCode}),g.end()),f[bi]=null,h(null,_)}function a(f,m,_,h){let g=f[bi];g!=null&&(g.setStatus({code:QT.ERROR,message:_.message}),e[ff]!==!1&&g.recordException(_)),h()}function u(f,m){let _=this[Tq];return gq.includes(f)?_.call(this,f,p(m,f,{[Le.HOOK_NAME]:`${this.pluginName} - ${f}`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:m.name?.length>0?m.name:gs})):_.call(this,f,m)}function l(f,m){let _=this[Eq];typeof f=="function"?(m=p(f,"notFoundHandler",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:f.name?.length>0?f.name:gs}),_.call(this,m)):(f.preValidation!=null&&(f.preValidation=p(f.preValidation,"notFoundHandler - preValidation",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler - preValidation`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:f.preValidation.name?.length>0?f.preValidation.name:gs})),f.preHandler!=null&&(f.preHandler=p(f.preHandler,"notFoundHandler - preHandler",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler - preHandler`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:f.preHandler.name?.length>0?f.preHandler.name:gs})),m=p(m,"notFoundHandler",{[Le.HOOK_NAME]:`${this.pluginName} - not-found-handler`,[Le.FASTIFY_TYPE]:Ai.INSTANCE,[Le.HOOK_CALLBACK_NAME]:m.name?.length>0?m.name:gs}),_.call(this,f,m))}function d(f){for(let m of f)if(m?.routeOptions&&m.url&&m.method)return m;return null}function p(f,m,_={}){return function(...g){let E=this[yi],S=d(g);if(S===null)return E.logger.debug(`Ignoring route instrumentation because ${m} was called without a Fastify request argument`),f.call(this,...g);if(E.isEnabled()===!1||S.routeOptions.config?.otel===!1)return E.logger.debug(`Ignoring route instrumentation ${S.routeOptions.method} ${S.routeOptions.url} because it is disabled`),f.call(this,...g);if(E[pf]?.({url:S.url,method:S.method})===!0)return E.logger.debug(`Ignoring route instrumentation ${S.routeOptions.method} ${S.routeOptions.url} because it matches the ignore path`),f.call(this,...g);let b=S[df]??KT.active(),R=f.name?.length>0?f.name:this.pluginName??gs,I=E.tracer.startSpan(`${m} - ${R}`,{attributes:_},b);if(E._lifecycleHook!=null)try{E._lifecycleHook(I,{hookName:m,request:S,handler:R})}catch(C){E.logger.error({err:C},"Execution of lifecycleHook failed")}return KT.with(hC.setSpan(b,I),function(){try{let C=f.call(this,...g);return typeof C?.then=="function"?C.then(H=>(I.end(),H),H=>(I.setStatus({code:QT.ERROR,message:H.message}),E[ff]!==!1&&I.recordException(H),I.end(),Promise.reject(H))):(I.end(),C)}catch(C){throw I.setStatus({code:QT.ERROR,message:C.message}),E[ff]!==!1&&I.recordException(C),I.end(),C}},this)}}}}};TC.exports=XT;TC.exports.FastifyOtelInstrumentation=XT});var AC=T(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.SpanNames=Jr.TokenKind=Jr.AllowedOperationTypes=void 0;var MRe;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(MRe=Jr.AllowedOperationTypes||(Jr.AllowedOperationTypes={}));var vRe;(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"})(vRe=Jr.TokenKind||(Jr.TokenKind={}));var kRe;(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"})(kRe=Jr.SpanNames||(Jr.SpanNames={}))});var yC=T(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.AttributeNames=void 0;var LRe;(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.PARENT_NAME="graphql.parent.name",t.OPERATION_TYPE="graphql.operation.type",t.OPERATION_NAME="graphql.operation.name",t.VARIABLES="graphql.variables.",t.ERROR_VALIDATION_NAME="graphql.validation.error"})(LRe=gf.AttributeNames||(gf.AttributeNames={}))});var rE=T(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.OTEL_GRAPHQL_DATA_SYMBOL=ll.OTEL_PATCHED_SYMBOL=void 0;ll.OTEL_PATCHED_SYMBOL=Symbol.for("opentelemetry.patched");ll.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data")});var vq=T(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.OPERATION_NOT_SUPPORTED=void 0;var LXe=rE();oE.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported"});var zq=T(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.wrapFieldResolver=bt.wrapFields=bt.getSourceFromLocation=bt.getOperation=bt.endSpan=bt.addSpanSource=bt.addInputVariableAttributes=bt.isPromise=void 0;var dl=(P(),N(L)),Ri=AC(),$a=yC(),Es=rE(),kq=Object.values(Ri.AllowedOperationTypes),wRe=t=>typeof t?.then=="function";bt.isPromise=wRe;var DRe=t=>typeof t=="object"&&t!==null;function bC(t,e,n){Array.isArray(n)?n.forEach((r,o)=>{bC(t,`${e}.${o}`,r)}):n instanceof Object?Object.entries(n).forEach(([r,o])=>{bC(t,`${e}.${r}`,o)}):t.setAttribute(`${$a.AttributeNames.VARIABLES}${String(e)}`,n)}function URe(t,e){Object.entries(e).forEach(([n,r])=>{bC(t,n,r)})}bt.addInputVariableAttributes=URe;function Uq(t,e,n,r,o){let s=Hq(e,n,r,o);t.setAttribute($a.AttributeNames.SOURCE,s)}bt.addSpanSource=Uq;function BRe(t,e,n,r,o){let s=Bq(n,o);if(s)return{field:s,spanAdded:!1};let a=e().flatResolveSpans?Gq(n):Fq(n,o);return s={span:FRe(t,e,n,r,o,a)},HRe(n,o,s),{field:s,spanAdded:!0}}function FRe(t,e,n,r,o,s){let i={[$a.AttributeNames.FIELD_NAME]:r.fieldName,[$a.AttributeNames.FIELD_PATH]:o.join("."),[$a.AttributeNames.FIELD_TYPE]:r.returnType.toString(),[$a.AttributeNames.PARENT_NAME]:r.parentType.name},a=t.startSpan(`${Ri.SpanNames.RESOLVE} ${i[$a.AttributeNames.FIELD_PATH]}`,{attributes:i},s?dl.trace.setSpan(dl.context.active(),s):void 0),u=n[Es.OTEL_GRAPHQL_DATA_SYMBOL].source,l=r.fieldNodes.find(d=>d.kind==="Field");return l&&Uq(a,u.loc,e().allowValues,l.loc?.start,l.loc?.end),a}function GRe(t,e){e&&t.recordException(e),t.end()}bt.endSpan=GRe;function jRe(t,e){if(!(!t||!Array.isArray(t.definitions)))return e?t.definitions.filter(n=>kq.indexOf(n?.operation)!==-1).find(n=>e===n?.name?.value):t.definitions.find(n=>kq.indexOf(n?.operation)!==-1)}bt.getOperation=jRe;function HRe(t,e,n){return t[Es.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]=n}function Bq(t,e){return t[Es.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]}function Fq(t,e){for(let n=e.length-1;n>0;n--){let r=Bq(t,e.slice(0,n));if(r)return r.span}return Gq(t)}function Gq(t){return t[Es.OTEL_GRAPHQL_DATA_SYMBOL].span}function VRe(t,e){let n=[],r=e;for(;r;){let o=r.key;t&&typeof o=="number"&&(o="*"),n.push(String(o)),r=r.prev}return n.reverse()}function qRe(t){return jq(`
|
|
11
11
|
`,t)}function Lq(t){return jq(" ",t)}function jq(t,e){let n="";for(let r=0;r<e;r++)n+=t;return n}var $Re=[Ri.TokenKind.FLOAT,Ri.TokenKind.STRING,Ri.TokenKind.INT,Ri.TokenKind.BLOCK_STRING];function Hq(t,e=!1,n,r){let o="";if(t?.startToken){let s=typeof n=="number"?n:t.start,i=typeof r=="number"?r:t.end,a=t.startToken.next,u=1;for(;a;){if(a.start<s){a=a.next,u=a?.line;continue}if(a.end>i){a=a.next,u=a?.line;continue}let l=a.value||a.kind,d="";!e&&$Re.indexOf(a.kind)>=0&&(l="*"),a.kind===Ri.TokenKind.STRING&&(l=`"${l}"`),a.kind===Ri.TokenKind.EOF&&(l=""),a.line>u?(o+=qRe(a.line-u),u=a.line,d=Lq(a.column-1)):a.line===a.prev?.line&&(d=Lq(a.start-(a.prev?.end||0))),o+=d+l,a&&(a=a.next)}}return o}bt.getSourceFromLocation=Hq;function Vq(t,e,n){if(!t||t[Es.OTEL_PATCHED_SYMBOL])return;let r=t.getFields();t[Es.OTEL_PATCHED_SYMBOL]=!0,Object.keys(r).forEach(o=>{let s=r[o];if(s&&(s.resolve&&(s.resolve=$q(e,n,s.resolve)),s.type)){let i=qq(s.type);for(let a of i)Vq(a,e,n)}})}bt.wrapFields=Vq;function qq(t){return"ofType"in t?qq(t.ofType):zRe(t)?t.getTypes():YRe(t)?[t]:[]}function zRe(t){return"getTypes"in t&&typeof t.getTypes=="function"}function YRe(t){return"getFields"in t&&typeof t.getFields=="function"}var wq=(t,e,n)=>{n&&(t.recordException(e),t.setStatus({code:dl.SpanStatusCode.ERROR,message:e.message}),t.end())},Dq=(t,e)=>{e&&t.end()};function $q(t,e,n,r=!1){if(o[Es.OTEL_PATCHED_SYMBOL]||typeof n!="function")return n;function o(s,i,a,u){if(!n)return;let l=e();if(l.ignoreTrivialResolveSpans&&r&&(DRe(s)||typeof s=="function")&&typeof s[u.fieldName]!="function")return n.call(this,s,i,a,u);if(!a[Es.OTEL_GRAPHQL_DATA_SYMBOL])return n.call(this,s,i,a,u);let d=VRe(l.mergeItems,u&&u.path),p=d.filter(_=>typeof _=="string").length,f,m=!1;if(l.depth>=0&&l.depth<p)f=Fq(a,d);else{let{field:_,spanAdded:h}=BRe(t,e,a,u,d);f=_.span,m=h}return dl.context.with(dl.trace.setSpan(dl.context.active(),f),()=>{try{let _=n.call(this,s,i,a,u);return(0,bt.isPromise)(_)?_.then(h=>(Dq(f,m),h),h=>{throw wq(f,h,m),h}):(Dq(f,m),_)}catch(_){throw wq(f,_,m),_}})}return o[Es.OTEL_PATCHED_SYMBOL]=!0,o}bt.wrapFieldResolver=$q});var Yq=T(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.PACKAGE_NAME=pl.PACKAGE_VERSION=void 0;pl.PACKAGE_VERSION="0.62.0";pl.PACKAGE_NAME="@opentelemetry/instrumentation-graphql"});var Qq=T(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.GraphQLInstrumentation=void 0;var Ss=(P(),N(L)),Ir=re(),Tf=AC(),sE=yC(),RC=rE(),WRe=vq(),an=zq(),Wq=Yq(),Kq={mergeItems:!1,depth:-1,allowValues:!1,ignoreResolveSpans:!1},iE=[">=14.0.0 <17"],IC=class extends Ir.InstrumentationBase{constructor(e={}){super(Wq.PACKAGE_NAME,Wq.PACKAGE_VERSION,{...Kq,...e})}setConfig(e={}){super.setConfig({...Kq,...e})}init(){let e=new Ir.InstrumentationNodeModuleDefinition("graphql",iE);return e.files.push(this._addPatchingExecute()),e.files.push(this._addPatchingParser()),e.files.push(this._addPatchingValidate()),e}_addPatchingExecute(){return new Ir.InstrumentationNodeModuleFile("graphql/execution/execute.js",iE,e=>((0,Ir.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 Ir.InstrumentationNodeModuleFile("graphql/language/parser.js",iE,e=>((0,Ir.isWrapped)(e.parse)&&this._unwrap(e,"parse"),this._wrap(e,"parse",this._patchParse()),e),e=>{e&&this._unwrap(e,"parse")})}_addPatchingValidate(){return new Ir.InstrumentationNodeModuleFile("graphql/validation/validate.js",iE,e=>((0,Ir.isWrapped)(e.validate)&&this._unwrap(e,"validate"),this._wrap(e,"validate",this._patchValidate()),e),e=>{e&&this._unwrap(e,"validate")})}_patchExecute(e){let n=this;return function(o){return function(){let i;if(arguments.length>=2){let l=arguments;i=n._wrapExecuteArgs(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],e)}else{let l=arguments[0];i=n._wrapExecuteArgs(l.schema,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.typeResolver,e)}let a=(0,an.getOperation)(i.document,i.operationName),u=n._createExecuteSpan(a,i);return i.contextValue[RC.OTEL_GRAPHQL_DATA_SYMBOL]={source:i.document?i.document||i.document[RC.OTEL_GRAPHQL_DATA_SYMBOL]:void 0,span:u,fields:{}},Ss.context.with(Ss.trace.setSpan(Ss.context.active(),u),()=>(0,Ir.safeExecuteInTheMiddle)(()=>o.apply(this,[i]),(l,d)=>{n._handleExecutionResult(u,l,d)}))}}}_handleExecutionResult(e,n,r){let o=this.getConfig();if(r===void 0||n){(0,an.endSpan)(e,n);return}if((0,an.isPromise)(r))r.then(s=>{if(typeof o.responseHook!="function"){(0,an.endSpan)(e);return}this._executeResponseHook(e,s)},s=>{(0,an.endSpan)(e,s)});else{if(typeof o.responseHook!="function"){(0,an.endSpan)(e);return}this._executeResponseHook(e,r)}}_executeResponseHook(e,n){let{responseHook:r}=this.getConfig();r&&(0,Ir.safeExecuteInTheMiddle)(()=>{r(e,n)},o=>{o&&this._diag.error("Error running response hook",o),(0,an.endSpan)(e,void 0)},!0)}_patchParse(){let e=this;return function(r){return function(s,i){return e._parse(this,r,s,i)}}}_patchValidate(){let e=this;return function(r){return function(s,i,a,u,l){return e._validate(this,r,s,i,a,l,u)}}}_parse(e,n,r,o){let s=this.getConfig(),i=this.tracer.startSpan(Tf.SpanNames.PARSE);return Ss.context.with(Ss.trace.setSpan(Ss.context.active(),i),()=>(0,Ir.safeExecuteInTheMiddle)(()=>n.call(e,r,o),(a,u)=>{u&&((0,an.getOperation)(u)?u.loc&&(0,an.addSpanSource)(i,u.loc,s.allowValues):i.updateName(Tf.SpanNames.SCHEMA_PARSE)),(0,an.endSpan)(i,a)}))}_validate(e,n,r,o,s,i,a){let u=this.tracer.startSpan(Tf.SpanNames.VALIDATE,{});return Ss.context.with(Ss.trace.setSpan(Ss.context.active(),u),()=>(0,Ir.safeExecuteInTheMiddle)(()=>n.call(e,r,o,s,a,i),(l,d)=>{o.loc||u.updateName(Tf.SpanNames.SCHEMA_VALIDATE),d&&d.length&&u.recordException({name:sE.AttributeNames.ERROR_VALIDATION_NAME,message:JSON.stringify(d)}),(0,an.endSpan)(u,l)}))}_createExecuteSpan(e,n){let r=this.getConfig(),o=this.tracer.startSpan(Tf.SpanNames.EXECUTE,{});if(e){let{operation:s,name:i}=e;o.setAttribute(sE.AttributeNames.OPERATION_TYPE,s);let a=i?.value;a?(o.setAttribute(sE.AttributeNames.OPERATION_NAME,a),o.updateName(`${s} ${a}`)):o.updateName(s)}else{let s=" ";n.operationName&&(s=` "${n.operationName}" `),s=WRe.OPERATION_NOT_SUPPORTED.replace("$operationName$",s),o.setAttribute(sE.AttributeNames.OPERATION_NAME,s)}return n.document?.loc&&(0,an.addSpanSource)(o,n.document.loc,r.allowValues),n.variableValues&&r.allowValues&&(0,an.addInputVariableAttributes)(o,n.variableValues),o}_wrapExecuteArgs(e,n,r,o,s,i,a,u,l){if(o||(o={}),o[RC.OTEL_GRAPHQL_DATA_SYMBOL]||this.getConfig().ignoreResolveSpans)return{schema:e,document:n,rootValue:r,contextValue:o,variableValues:s,operationName:i,fieldResolver:a,typeResolver:u};let d=a==null,p=a??l;return a=(0,an.wrapFieldResolver)(this.tracer,()=>this.getConfig(),p,d),e&&((0,an.wrapFields)(e.getQueryType(),this.tracer,()=>this.getConfig()),(0,an.wrapFields)(e.getMutationType(),this.tracer,()=>this.getConfig())),{schema:e,document:n,rootValue:r,contextValue:o,variableValues:s,operationName:i,fieldResolver:a,typeResolver:u}}};aE.GraphQLInstrumentation=IC});var Jq=T(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.GraphQLInstrumentation=void 0;var KRe=Qq();Object.defineProperty(uE,"GraphQLInstrumentation",{enumerable:!0,get:function(){return KRe.GraphQLInstrumentation}})});var r5=T(cE=>{"use strict";Object.defineProperty(cE,"__esModule",{value:!0});cE.EVENT_LISTENERS_SET=void 0;cE.EVENT_LISTENERS_SET=Symbol("opentelemetry.instrumentation.kafkajs.eventListenersSet")});var o5=T(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});lE.bufferTextMapGetter=void 0;lE.bufferTextMapGetter={get(t,e){if(!t)return;let n=Object.keys(t);for(let r of n)if(r===e||r.toLowerCase()===e)return t[r]?.toString()},keys(t){return t?Object.keys(t):[]}}});var s5=T(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.METRIC_MESSAGING_PROCESS_DURATION=he.METRIC_MESSAGING_CLIENT_SENT_MESSAGES=he.METRIC_MESSAGING_CLIENT_OPERATION_DURATION=he.METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES=he.MESSAGING_SYSTEM_VALUE_KAFKA=he.MESSAGING_OPERATION_TYPE_VALUE_SEND=he.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE=he.MESSAGING_OPERATION_TYPE_VALUE_PROCESS=he.ATTR_MESSAGING_SYSTEM=he.ATTR_MESSAGING_OPERATION_TYPE=he.ATTR_MESSAGING_OPERATION_NAME=he.ATTR_MESSAGING_KAFKA_OFFSET=he.ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE=he.ATTR_MESSAGING_KAFKA_MESSAGE_KEY=he.ATTR_MESSAGING_DESTINATION_PARTITION_ID=he.ATTR_MESSAGING_DESTINATION_NAME=he.ATTR_MESSAGING_BATCH_MESSAGE_COUNT=void 0;he.ATTR_MESSAGING_BATCH_MESSAGE_COUNT="messaging.batch.message_count";he.ATTR_MESSAGING_DESTINATION_NAME="messaging.destination.name";he.ATTR_MESSAGING_DESTINATION_PARTITION_ID="messaging.destination.partition.id";he.ATTR_MESSAGING_KAFKA_MESSAGE_KEY="messaging.kafka.message.key";he.ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE="messaging.kafka.message.tombstone";he.ATTR_MESSAGING_KAFKA_OFFSET="messaging.kafka.offset";he.ATTR_MESSAGING_OPERATION_NAME="messaging.operation.name";he.ATTR_MESSAGING_OPERATION_TYPE="messaging.operation.type";he.ATTR_MESSAGING_SYSTEM="messaging.system";he.MESSAGING_OPERATION_TYPE_VALUE_PROCESS="process";he.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE="receive";he.MESSAGING_OPERATION_TYPE_VALUE_SEND="send";he.MESSAGING_SYSTEM_VALUE_KAFKA="kafka";he.METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES="messaging.client.consumed.messages";he.METRIC_MESSAGING_CLIENT_OPERATION_DURATION="messaging.client.operation.duration";he.METRIC_MESSAGING_CLIENT_SENT_MESSAGES="messaging.client.sent.messages";he.METRIC_MESSAGING_PROCESS_DURATION="messaging.process.duration"});var i5=T(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.PACKAGE_NAME=fl.PACKAGE_VERSION=void 0;fl.PACKAGE_VERSION="0.23.0";fl.PACKAGE_NAME="@opentelemetry/instrumentation-kafkajs"});var p5=T(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.KafkaJsInstrumentation=void 0;var Ce=(P(),N(L)),Or=re(),ml=(de(),N(Ie)),a5=r5(),u5=o5(),G=s5(),c5=i5();function dE(t,e,n){return r=>{t.add(e,{...n,...r?{[ml.ATTR_ERROR_TYPE]:r}:{}})}}function l5(t,e,n){return r=>{t.record((Date.now()-e)/1e3,{...n,...r?{[ml.ATTR_ERROR_TYPE]:r}:{}})}}var d5=[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10],OC=class extends Or.InstrumentationBase{constructor(e={}){super(c5.PACKAGE_NAME,c5.PACKAGE_VERSION,e)}_updateMetricInstruments(){this._clientDuration=this.meter.createHistogram(G.METRIC_MESSAGING_CLIENT_OPERATION_DURATION,{advice:{explicitBucketBoundaries:d5}}),this._sentMessages=this.meter.createCounter(G.METRIC_MESSAGING_CLIENT_SENT_MESSAGES),this._consumedMessages=this.meter.createCounter(G.METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES),this._processDuration=this.meter.createHistogram(G.METRIC_MESSAGING_PROCESS_DURATION,{advice:{explicitBucketBoundaries:d5}})}init(){let e=r=>{(0,Or.isWrapped)(r?.Kafka?.prototype.producer)&&this._unwrap(r.Kafka.prototype,"producer"),(0,Or.isWrapped)(r?.Kafka?.prototype.consumer)&&this._unwrap(r.Kafka.prototype,"consumer")};return new Or.InstrumentationNodeModuleDefinition("kafkajs",[">=0.3.0 <3"],r=>(e(r),this._wrap(r?.Kafka?.prototype,"producer",this._getProducerPatch()),this._wrap(r?.Kafka?.prototype,"consumer",this._getConsumerPatch()),r),e)}_getConsumerPatch(){let e=this;return n=>function(...o){let s=n.apply(this,o);return(0,Or.isWrapped)(s.run)&&e._unwrap(s,"run"),e._wrap(s,"run",e._getConsumerRunPatch()),e._setKafkaEventListeners(s),s}}_setKafkaEventListeners(e){e[a5.EVENT_LISTENERS_SET]||(e.events?.REQUEST&&e.on(e.events.REQUEST,this._recordClientDurationMetric.bind(this)),e[a5.EVENT_LISTENERS_SET]=!0)}_recordClientDurationMetric(e){let[n,r]=e.payload.broker.split(":");this._clientDuration.record(e.payload.duration/1e3,{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_OPERATION_NAME]:`${e.payload.apiName}`,[ml.ATTR_SERVER_ADDRESS]:n,[ml.ATTR_SERVER_PORT]:Number.parseInt(r,10)})}_getProducerPatch(){let e=this;return n=>function(...o){let s=n.apply(this,o);return(0,Or.isWrapped)(s.sendBatch)&&e._unwrap(s,"sendBatch"),e._wrap(s,"sendBatch",e._getSendBatchPatch()),(0,Or.isWrapped)(s.send)&&e._unwrap(s,"send"),e._wrap(s,"send",e._getSendPatch()),(0,Or.isWrapped)(s.transaction)&&e._unwrap(s,"transaction"),e._wrap(s,"transaction",e._getProducerTransactionPatch()),e._setKafkaEventListeners(s),s}}_getConsumerRunPatch(){let e=this;return n=>function(...o){let s=o[0];return s?.eachMessage&&((0,Or.isWrapped)(s.eachMessage)&&e._unwrap(s,"eachMessage"),e._wrap(s,"eachMessage",e._getConsumerEachMessagePatch())),s?.eachBatch&&((0,Or.isWrapped)(s.eachBatch)&&e._unwrap(s,"eachBatch"),e._wrap(s,"eachBatch",e._getConsumerEachBatchPatch())),n.call(this,s)}}_getConsumerEachMessagePatch(){let e=this;return n=>function(...o){let s=o[0],i=Ce.propagation.extract(Ce.ROOT_CONTEXT,s.message.headers,u5.bufferTextMapGetter),a=e._startConsumerSpan({topic:s.topic,message:s.message,operationType:G.MESSAGING_OPERATION_TYPE_VALUE_PROCESS,ctx:i,attributes:{[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(s.partition)}}),u=[l5(e._processDuration,Date.now(),{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_OPERATION_NAME]:"process",[G.ATTR_MESSAGING_DESTINATION_NAME]:s.topic,[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(s.partition)}),dE(e._consumedMessages,1,{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_OPERATION_NAME]:"process",[G.ATTR_MESSAGING_DESTINATION_NAME]:s.topic,[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(s.partition)})],l=Ce.context.with(Ce.trace.setSpan(i,a),()=>n.apply(this,o));return e._endSpansOnPromise([a],u,l)}}_getConsumerEachBatchPatch(){return e=>{let n=this;return function(...o){let s=o[0],i=n._startConsumerSpan({topic:s.batch.topic,message:void 0,operationType:G.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE,ctx:Ce.ROOT_CONTEXT,attributes:{[G.ATTR_MESSAGING_BATCH_MESSAGE_COUNT]:s.batch.messages.length,[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(s.batch.partition)}});return Ce.context.with(Ce.trace.setSpan(Ce.context.active(),i),()=>{let a=Date.now(),u=[],l=[dE(n._consumedMessages,s.batch.messages.length,{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_OPERATION_NAME]:"process",[G.ATTR_MESSAGING_DESTINATION_NAME]:s.batch.topic,[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(s.batch.partition)})];s.batch.messages.forEach(p=>{let f=Ce.propagation.extract(Ce.ROOT_CONTEXT,p.headers,u5.bufferTextMapGetter),m=Ce.trace.getSpan(f)?.spanContext(),_;m&&(_={context:m}),u.push(n._startConsumerSpan({topic:s.batch.topic,message:p,operationType:G.MESSAGING_OPERATION_TYPE_VALUE_PROCESS,link:_,attributes:{[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(s.batch.partition)}})),l.push(l5(n._processDuration,a,{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_OPERATION_NAME]:"process",[G.ATTR_MESSAGING_DESTINATION_NAME]:s.batch.topic,[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(s.batch.partition)}))});let d=e.apply(this,o);return u.unshift(i),n._endSpansOnPromise(u,l,d)})}}}_getProducerTransactionPatch(){let e=this;return n=>function(...o){let s=e.tracer.startSpan("transaction"),i=n.apply(this,o);return i.then(a=>{let u=a.send;a.send=function(...m){return Ce.context.with(Ce.trace.setSpan(Ce.context.active(),s),()=>e._getSendPatch()(u).apply(this,m).catch(h=>{throw s.setStatus({code:Ce.SpanStatusCode.ERROR,message:h?.message}),s.recordException(h),h}))};let l=a.sendBatch;a.sendBatch=function(...m){return Ce.context.with(Ce.trace.setSpan(Ce.context.active(),s),()=>e._getSendBatchPatch()(l).apply(this,m).catch(h=>{throw s.setStatus({code:Ce.SpanStatusCode.ERROR,message:h?.message}),s.recordException(h),h}))};let d=a.commit;a.commit=function(...m){let _=d.apply(this,m).then(()=>{s.setStatus({code:Ce.SpanStatusCode.OK})});return e._endSpansOnPromise([s],[],_)};let p=a.abort;a.abort=function(...m){let _=p.apply(this,m);return e._endSpansOnPromise([s],[],_)}}).catch(a=>{s.setStatus({code:Ce.SpanStatusCode.ERROR,message:a?.message}),s.recordException(a),s.end()}),i}}_getSendBatchPatch(){let e=this;return n=>function(...o){let i=o[0].topicMessages||[],a=[],u=[];i.forEach(d=>{d.messages.forEach(p=>{a.push(e._startProducerSpan(d.topic,p)),u.push(dE(e._sentMessages,1,{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_OPERATION_NAME]:"send",[G.ATTR_MESSAGING_DESTINATION_NAME]:d.topic,...p.partition!==void 0?{[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(p.partition)}:{}}))})});let l=n.apply(this,o);return e._endSpansOnPromise(a,u,l)}}_getSendPatch(){let e=this;return n=>function(...o){let s=o[0],i=s.messages.map(l=>e._startProducerSpan(s.topic,l)),a=s.messages.map(l=>dE(e._sentMessages,1,{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_OPERATION_NAME]:"send",[G.ATTR_MESSAGING_DESTINATION_NAME]:s.topic,...l.partition!==void 0?{[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(l.partition)}:{}})),u=n.apply(this,o);return e._endSpansOnPromise(i,a,u)}}_endSpansOnPromise(e,n,r){return Promise.resolve(r).then(o=>(n.forEach(s=>s()),o)).catch(o=>{let s,i=ml.ERROR_TYPE_VALUE_OTHER;throw typeof o=="string"||o===void 0?s=o:typeof o=="object"&&Object.prototype.hasOwnProperty.call(o,"message")&&(s=o.message,i=o.constructor.name),n.forEach(a=>a(i)),e.forEach(a=>{a.setAttribute(ml.ATTR_ERROR_TYPE,i),a.setStatus({code:Ce.SpanStatusCode.ERROR,message:s})}),o}).finally(()=>{e.forEach(o=>o.end())})}_startConsumerSpan({topic:e,message:n,operationType:r,ctx:o,link:s,attributes:i}){let a=r===G.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE?"poll":r,u=this.tracer.startSpan(`${a} ${e}`,{kind:r===G.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE?Ce.SpanKind.CLIENT:Ce.SpanKind.CONSUMER,attributes:{...i,[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_DESTINATION_NAME]:e,[G.ATTR_MESSAGING_OPERATION_TYPE]:r,[G.ATTR_MESSAGING_OPERATION_NAME]:a,[G.ATTR_MESSAGING_KAFKA_MESSAGE_KEY]:n?.key?String(n.key):void 0,[G.ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE]:n?.key&&n.value===null?!0:void 0,[G.ATTR_MESSAGING_KAFKA_OFFSET]:n?.offset},links:s?[s]:[]},o),{consumerHook:l}=this.getConfig();return l&&n&&(0,Or.safeExecuteInTheMiddle)(()=>l(u,{topic:e,message:n}),d=>{d&&this._diag.error("consumerHook error",d)},!0),u}_startProducerSpan(e,n){let r=this.tracer.startSpan(`send ${e}`,{kind:Ce.SpanKind.PRODUCER,attributes:{[G.ATTR_MESSAGING_SYSTEM]:G.MESSAGING_SYSTEM_VALUE_KAFKA,[G.ATTR_MESSAGING_DESTINATION_NAME]:e,[G.ATTR_MESSAGING_KAFKA_MESSAGE_KEY]:n.key?String(n.key):void 0,[G.ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE]:n.key&&n.value===null?!0:void 0,[G.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:n.partition!==void 0?String(n.partition):void 0,[G.ATTR_MESSAGING_OPERATION_NAME]:"send",[G.ATTR_MESSAGING_OPERATION_TYPE]:G.MESSAGING_OPERATION_TYPE_VALUE_SEND}});n.headers=n.headers??{},Ce.propagation.inject(Ce.trace.setSpan(Ce.context.active(),r),n.headers);let{producerHook:o}=this.getConfig();return o&&(0,Or.safeExecuteInTheMiddle)(()=>o(r,{topic:e,message:n}),s=>{s&&this._diag.error("producerHook error",s)},!0),r}};pE.KafkaJsInstrumentation=OC});var f5=T(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.KafkaJsInstrumentation=void 0;var XRe=p5();Object.defineProperty(fE,"KafkaJsInstrumentation",{enumerable:!0,get:function(){return XRe.KafkaJsInstrumentation}})});var T5=T(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.PACKAGE_NAME=_l.PACKAGE_VERSION=void 0;_l.PACKAGE_VERSION="0.58.0";_l.PACKAGE_NAME="@opentelemetry/instrumentation-lru-memoizer"});var y5=T(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.LruMemoizerInstrumentation=void 0;var E5=(P(),N(L)),S5=re(),A5=T5(),CC=class extends S5.InstrumentationBase{constructor(e={}){super(A5.PACKAGE_NAME,A5.PACKAGE_VERSION,e)}init(){return[new S5.InstrumentationNodeModuleDefinition("lru-memoizer",[">=1.3 <4"],e=>{let n=function(){let r=e.apply(this,arguments);return function(){let o=[...arguments],s=o.pop(),i=typeof s=="function"?E5.context.bind(E5.context.active(),s):s;return o.push(i),r.apply(this,o)}};return n.sync=e.sync,n},void 0)]}};mE.LruMemoizerInstrumentation=CC});var b5=T(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.LruMemoizerInstrumentation=void 0;var eIe=y5();Object.defineProperty(_E,"LruMemoizerInstrumentation",{enumerable:!0,get:function(){return eIe.LruMemoizerInstrumentation}})});var N5=T(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.METRIC_DB_CLIENT_CONNECTIONS_USAGE=Be.DB_SYSTEM_VALUE_MONGODB=Be.DB_SYSTEM_NAME_VALUE_MONGODB=Be.ATTR_NET_PEER_PORT=Be.ATTR_NET_PEER_NAME=Be.ATTR_DB_SYSTEM=Be.ATTR_DB_STATEMENT=Be.ATTR_DB_OPERATION=Be.ATTR_DB_NAME=Be.ATTR_DB_MONGODB_COLLECTION=Be.ATTR_DB_CONNECTION_STRING=void 0;Be.ATTR_DB_CONNECTION_STRING="db.connection_string";Be.ATTR_DB_MONGODB_COLLECTION="db.mongodb.collection";Be.ATTR_DB_NAME="db.name";Be.ATTR_DB_OPERATION="db.operation";Be.ATTR_DB_STATEMENT="db.statement";Be.ATTR_DB_SYSTEM="db.system";Be.ATTR_NET_PEER_NAME="net.peer.name";Be.ATTR_NET_PEER_PORT="net.peer.port";Be.DB_SYSTEM_NAME_VALUE_MONGODB="mongodb";Be.DB_SYSTEM_VALUE_MONGODB="mongodb";Be.METRIC_DB_CLIENT_CONNECTIONS_USAGE="db.client.connections.usage"});var x5=T(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.MongodbCommandType=void 0;var nIe;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.AGGREGATE="aggregate",t.UNKNOWN="unknown"})(nIe=Ef.MongodbCommandType||(Ef.MongodbCommandType={}))});var P5=T(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.PACKAGE_NAME=hl.PACKAGE_VERSION=void 0;hl.PACKAGE_VERSION="0.67.0";hl.PACKAGE_NAME="@opentelemetry/instrumentation-mongodb"});var k5=T(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.MongoDBInstrumentation=void 0;var Ge=(P(),N(L)),ge=re(),As=(de(),N(Ie)),rr=N5(),za=x5(),M5=P5(),v5={requireParentSpan:!0},NC=class t extends ge.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(M5.PACKAGE_NAME,M5.PACKAGE_VERSION,{...v5,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,ge.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,ge.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...v5,...e})}_updateMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter(rr.METRIC_DB_CLIENT_CONNECTIONS_USAGE,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}_connCountAdd(e,n,r){this._connectionsUsage?.add(e,{"pool.name":n,state:r})}init(){let{v3PatchConnection:e,v3UnpatchConnection:n}=this._getV3ConnectionPatches(),{v4PatchConnect:r,v4UnpatchConnect:o}=this._getV4ConnectPatches(),{v4PatchConnectionCallback:s,v4PatchConnectionPromise:i,v4UnpatchConnection:a}=this._getV4ConnectionPatches(),{v4PatchConnectionPool:u,v4UnpatchConnectionPool:l}=this._getV4ConnectionPoolPatches(),{v4PatchSessions:d,v4UnpatchSessions:p}=this._getV4SessionsPatches();return[new ge.InstrumentationNodeModuleDefinition("mongodb",[">=3.3.0 <4"],void 0,void 0,[new ge.InstrumentationNodeModuleFile("mongodb/lib/core/wireprotocol/index.js",[">=3.3.0 <4"],e,n)]),new ge.InstrumentationNodeModuleDefinition("mongodb",[">=4.0.0 <8"],void 0,void 0,[new ge.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=4.0.0 <6.4"],s,a),new ge.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=6.4.0 <8"],i,a),new ge.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection_pool.js",[">=4.0.0 <6.4"],u,l),new ge.InstrumentationNodeModuleFile("mongodb/lib/cmap/connect.js",[">=4.0.0 <8"],r,o),new ge.InstrumentationNodeModuleFile("mongodb/lib/sessions.js",[">=4.0.0 <8"],d,p)])]}_getV3ConnectionPatches(){return{v3PatchConnection:e=>((0,ge.isWrapped)(e.insert)&&this._unwrap(e,"insert"),this._wrap(e,"insert",this._getV3PatchOperation("insert")),(0,ge.isWrapped)(e.remove)&&this._unwrap(e,"remove"),this._wrap(e,"remove",this._getV3PatchOperation("remove")),(0,ge.isWrapped)(e.update)&&this._unwrap(e,"update"),this._wrap(e,"update",this._getV3PatchOperation("update")),(0,ge.isWrapped)(e.command)&&this._unwrap(e,"command"),this._wrap(e,"command",this._getV3PatchCommand()),(0,ge.isWrapped)(e.query)&&this._unwrap(e,"query"),this._wrap(e,"query",this._getV3PatchFind()),(0,ge.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,ge.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),this._wrap(e.ServerSessionPool.prototype,"acquire",this._getV4AcquireCommand()),(0,ge.isWrapped)(e.release)&&this._unwrap(e,"release"),this._wrap(e.ServerSessionPool.prototype,"release",this._getV4ReleaseCommand()),e),v4UnpatchSessions:e=>{e!==void 0&&((0,ge.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),(0,ge.isWrapped)(e.release)&&this._unwrap(e,"release"))}}}_getV4AcquireCommand(){let e=this;return n=>function(){let o=this.sessions.length,s=n.call(this),i=this.sessions.length;return o===i?e._connCountAdd(1,e._poolName,"used"):o-1===i&&(e._connCountAdd(-1,e._poolName,"idle"),e._connCountAdd(1,e._poolName,"used")),s}}_getV4ReleaseCommand(){let e=this;return n=>function(o){let s=n.call(this,o);return e._connCountAdd(-1,e._poolName,"used"),e._connCountAdd(1,e._poolName,"idle"),s}}_getV4ConnectionPoolPatches(){return{v4PatchConnectionPool:e=>{let n=e.ConnectionPool.prototype;return(0,ge.isWrapped)(n.checkOut)&&this._unwrap(n,"checkOut"),this._wrap(n,"checkOut",this._getV4ConnectionPoolCheckOut()),e},v4UnpatchConnectionPool:e=>{e!==void 0&&this._unwrap(e.ConnectionPool.prototype,"checkOut")}}}_getV4ConnectPatches(){return{v4PatchConnect:e=>((0,ge.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(r){let o=Ge.context.bind(Ge.context.active(),r);return e.call(this,o)}}_getV4ConnectCommand(){let e=this;return n=>function(o,s){if(n.length===1){let a=n.call(this,o);return a&&typeof a.then=="function"&&a.then(()=>e.setPoolName(o),()=>{}),a}let i=function(a,u){if(a||!u){s(a,u);return}e.setPoolName(o),s(a,u)};return n.call(this,o,i)}}_getV4ConnectionPatches(){return{v4PatchConnectionCallback:e=>((0,ge.isWrapped)(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandCallback()),e),v4PatchConnectionPromise:e=>((0,ge.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 n=this;return r=>function(s,i,a,u,l){let d=Ge.trace.getSpan(Ge.context.active()),p=n._checkSkipInstrumentation(d),f=typeof u=="function"?u:l;if(p||typeof f!="function"||typeof a!="object")return typeof u=="function"?r.call(this,s,i,a,u):r.call(this,s,i,a,u,l);let m=n._getV3SpanAttributes(i,s,a[0],e),_=n._spanNameFromAttrs(m),h=n.tracer.startSpan(_,{kind:Ge.SpanKind.CLIENT,attributes:m}),g=n._patchEnd(h,f);return typeof u=="function"?r.call(this,s,i,a,g):r.call(this,s,i,a,u,g)}}_getV3PatchCommand(){let e=this;return n=>function(o,s,i,a,u){let l=Ge.trace.getSpan(Ge.context.active()),d=e._checkSkipInstrumentation(l),p=typeof a=="function"?a:u;if(d||typeof p!="function"||typeof i!="object")return typeof a=="function"?n.call(this,o,s,i,a):n.call(this,o,s,i,a,u);let f=t._getCommandType(i),m=f===za.MongodbCommandType.UNKNOWN?void 0:f,_=e._getV3SpanAttributes(s,o,i,m),h=e._spanNameFromAttrs(_),g=e.tracer.startSpan(h,{kind:Ge.SpanKind.CLIENT,attributes:_}),E=e._patchEnd(g,p);return typeof a=="function"?n.call(this,o,s,i,E):n.call(this,o,s,i,a,E)}}_getV4PatchCommandCallback(){let e=this;return n=>function(o,s,i,a){let u=Ge.trace.getSpan(Ge.context.active()),l=e._checkSkipInstrumentation(u),d=a,p=Object.keys(s)[0];if(typeof s!="object"||s.ismaster||s.hello)return n.call(this,o,s,i,a);let f;if(!l){let _=e._getV4SpanAttributes(this,o,s,p),h=e._spanNameFromAttrs(_);f=e.tracer.startSpan(h,{kind:Ge.SpanKind.CLIENT,attributes:_})}let m=e._patchEnd(f,d,this.id,p);return n.call(this,o,s,i,m)}}_getV4PatchCommandPromise(){let e=this;return n=>function(...o){let[s,i]=o,a=Ge.trace.getSpan(Ge.context.active()),u=e._checkSkipInstrumentation(a),l=Object.keys(i)[0],d=()=>{};if(typeof i!="object"||i.ismaster||i.hello)return n.apply(this,o);let p;if(!u){let _=e._getV4SpanAttributes(this,s,i,l),h=e._spanNameFromAttrs(_);p=e.tracer.startSpan(h,{kind:Ge.SpanKind.CLIENT,attributes:_})}let f=e._patchEnd(p,d,this.id,l),m=n.apply(this,o);return m.then(_=>f(null,_),_=>f(_)),m}}_getV3PatchFind(){let e=this;return n=>function(o,s,i,a,u,l){let d=Ge.trace.getSpan(Ge.context.active()),p=e._checkSkipInstrumentation(d),f=typeof u=="function"?u:l;if(p||typeof f!="function"||typeof i!="object")return typeof u=="function"?n.call(this,o,s,i,a,u):n.call(this,o,s,i,a,u,l);let m=e._getV3SpanAttributes(s,o,i,"find"),_=e._spanNameFromAttrs(m),h=e.tracer.startSpan(_,{kind:Ge.SpanKind.CLIENT,attributes:m}),g=e._patchEnd(h,f);return typeof u=="function"?n.call(this,o,s,i,a,g):n.call(this,o,s,i,a,u,g)}}_getV3PatchCursor(){let e=this;return n=>function(o,s,i,a,u,l){let d=Ge.trace.getSpan(Ge.context.active()),p=e._checkSkipInstrumentation(d),f=typeof u=="function"?u:l;if(p||typeof f!="function")return typeof u=="function"?n.call(this,o,s,i,a,u):n.call(this,o,s,i,a,u,l);let m=e._getV3SpanAttributes(s,o,i.cmd,"getMore"),_=e._spanNameFromAttrs(m),h=e.tracer.startSpan(_,{kind:Ge.SpanKind.CLIENT,attributes:m}),g=e._patchEnd(h,f);return typeof u=="function"?n.call(this,o,s,i,a,g):n.call(this,o,s,i,a,u,g)}}static _getCommandType(e){return e.createIndexes!==void 0?za.MongodbCommandType.CREATE_INDEXES:e.findandmodify!==void 0?za.MongodbCommandType.FIND_AND_MODIFY:e.ismaster!==void 0?za.MongodbCommandType.IS_MASTER:e.count!==void 0?za.MongodbCommandType.COUNT:e.aggregate!==void 0?za.MongodbCommandType.AGGREGATE:za.MongodbCommandType.UNKNOWN}_getV4SpanAttributes(e,n,r,o){let s,i;if(e){let u=typeof e.address=="string"?e.address.split(":"):"";u.length===2&&(s=u[0],i=u[1])}let a;return r?.documents&&r.documents[0]?a=r.documents[0]:r?.cursors?a=r.cursors:a=r,this._getSpanAttributes(n.db,n.collection,s,i,a,o)}_getV3SpanAttributes(e,n,r,o){let s,i;if(n&&n.s&&(s=n.s.options?.host??n.s.host,i=(n.s.options?.port??n.s.port)?.toString(),s==null||i==null)){let d=n.description?.address;if(d){let p=d.split(":");s=p[0],i=p[1]}}let[a,u]=e.toString().split("."),l=r?.query??r?.q??r;return this._getSpanAttributes(a,u,s,i,l,o)}_getSpanAttributes(e,n,r,o,s,i){let a={};if(this._dbSemconvStability&ge.SemconvStability.OLD&&(a[rr.ATTR_DB_SYSTEM]=rr.DB_SYSTEM_VALUE_MONGODB,a[rr.ATTR_DB_NAME]=e,a[rr.ATTR_DB_MONGODB_COLLECTION]=n,a[rr.ATTR_DB_OPERATION]=i,a[rr.ATTR_DB_CONNECTION_STRING]=`mongodb://${r}:${o}/${e}`),this._dbSemconvStability&ge.SemconvStability.STABLE&&(a[As.ATTR_DB_SYSTEM_NAME]=rr.DB_SYSTEM_NAME_VALUE_MONGODB,a[As.ATTR_DB_NAMESPACE]=e,a[As.ATTR_DB_OPERATION_NAME]=i,a[As.ATTR_DB_COLLECTION_NAME]=n),r&&o){this._netSemconvStability&ge.SemconvStability.OLD&&(a[rr.ATTR_NET_PEER_NAME]=r),this._netSemconvStability&ge.SemconvStability.STABLE&&(a[As.ATTR_SERVER_ADDRESS]=r);let u=parseInt(o,10);isNaN(u)||(this._netSemconvStability&ge.SemconvStability.OLD&&(a[rr.ATTR_NET_PEER_PORT]=u),this._netSemconvStability&ge.SemconvStability.STABLE&&(a[As.ATTR_SERVER_PORT]=u))}if(s){let{dbStatementSerializer:u}=this.getConfig(),l=typeof u=="function"?u:this._defaultDbStatementSerializer.bind(this);(0,ge.safeExecuteInTheMiddle)(()=>{let d=l(s);this._dbSemconvStability&ge.SemconvStability.OLD&&(a[rr.ATTR_DB_STATEMENT]=d),this._dbSemconvStability&ge.SemconvStability.STABLE&&(a[As.ATTR_DB_QUERY_TEXT]=d)},d=>{d&&this._diag.error("Error running dbStatementSerializer hook",d)},!0)}return a}_spanNameFromAttrs(e){let n;return this._dbSemconvStability&ge.SemconvStability.STABLE?n=[e[As.ATTR_DB_OPERATION_NAME],e[As.ATTR_DB_COLLECTION_NAME]].filter(r=>r).join(" ")||rr.DB_SYSTEM_NAME_VALUE_MONGODB:n=`mongodb.${e[rr.ATTR_DB_OPERATION]||"command"}`,n}_getDefaultDbStatementReplacer(){let e=new WeakSet;return(n,r)=>typeof r!="object"||!r?"?":e.has(r)?"[Circular]":(e.add(r),r)}_defaultDbStatementSerializer(e){let{enhancedDatabaseReporting:n}=this.getConfig();return n?JSON.stringify(e):JSON.stringify(e,this._getDefaultDbStatementReplacer())}_handleExecutionResult(e,n){let{responseHook:r}=this.getConfig();typeof r=="function"&&(0,ge.safeExecuteInTheMiddle)(()=>{r(e,{data:n})},o=>{o&&this._diag.error("Error running response hook",o)},!0)}_patchEnd(e,n,r,o){let s=Ge.context.active(),i=this,a=!1;return function(...l){if(!a){a=!0;let d=l[0];if(e){if(d instanceof Error)e.setStatus({code:Ge.SpanStatusCode.ERROR,message:d.message});else{let p=l[1];i._handleExecutionResult(e,p)}e.end()}o==="endSessions"&&i._connCountAdd(-1,i._poolName,"idle")}return Ge.context.with(s,()=>n.apply(this,l))}}setPoolName(e){let n=e.hostAddress?.host,r=e.hostAddress?.port,o=e.dbName,s=`mongodb://${n}:${r}/${o}`;this._poolName=s}_checkSkipInstrumentation(e){return this.getConfig().requireParentSpan===!0&&e===void 0}};hE.MongoDBInstrumentation=NC});var L5=T(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.MongodbCommandType=void 0;var rIe;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.UNKNOWN="unknown"})(rIe=Sf.MongodbCommandType||(Sf.MongodbCommandType={}))});var w5=T(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.MongodbCommandType=gl.MongoDBInstrumentation=void 0;var oIe=k5();Object.defineProperty(gl,"MongoDBInstrumentation",{enumerable:!0,get:function(){return oIe.MongoDBInstrumentation}});var sIe=L5();Object.defineProperty(gl,"MongodbCommandType",{enumerable:!0,get:function(){return sIe.MongodbCommandType}})});var PC=T(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.DB_SYSTEM_NAME_VALUE_MONGODB=_t.ATTR_NET_PEER_PORT=_t.ATTR_NET_PEER_NAME=_t.ATTR_DB_USER=_t.ATTR_DB_SYSTEM=_t.ATTR_DB_STATEMENT=_t.ATTR_DB_OPERATION=_t.ATTR_DB_NAME=_t.ATTR_DB_MONGODB_COLLECTION=void 0;_t.ATTR_DB_MONGODB_COLLECTION="db.mongodb.collection";_t.ATTR_DB_NAME="db.name";_t.ATTR_DB_OPERATION="db.operation";_t.ATTR_DB_STATEMENT="db.statement";_t.ATTR_DB_SYSTEM="db.system";_t.ATTR_DB_USER="db.user";_t.ATTR_NET_PEER_NAME="net.peer.name";_t.ATTR_NET_PEER_PORT="net.peer.port";_t.DB_SYSTEM_NAME_VALUE_MONGODB="mongodb"});var H5=T(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.handleCallbackResponse=Ii.handlePromiseResponse=Ii.getAttributesFromCollection=void 0;var G5=(P(),N(L)),yf=re(),Af=PC(),gE=(de(),N(Ie));function dIe(t,e,n){let r={};return e&yf.SemconvStability.OLD&&(r[Af.ATTR_DB_MONGODB_COLLECTION]=t.name,r[Af.ATTR_DB_NAME]=t.conn.name,r[Af.ATTR_DB_USER]=t.conn.user),e&yf.SemconvStability.STABLE&&(r[gE.ATTR_DB_COLLECTION_NAME]=t.name,r[gE.ATTR_DB_NAMESPACE]=t.conn.name),n&yf.SemconvStability.OLD&&(r[Af.ATTR_NET_PEER_NAME]=t.conn.host,r[Af.ATTR_NET_PEER_PORT]=t.conn.port),n&yf.SemconvStability.STABLE&&(r[gE.ATTR_SERVER_ADDRESS]=t.conn.host,r[gE.ATTR_SERVER_PORT]=t.conn.port),r}Ii.getAttributesFromCollection=dIe;function j5(t,e={}){t.recordException(e),t.setStatus({code:G5.SpanStatusCode.ERROR,message:`${e.message} ${e.code?`
|
|
12
|
-
Mongoose Error Code: ${e.code}`:""}`})}function MC(t,e,n,r=void 0){n&&(0,yf.safeExecuteInTheMiddle)(()=>n(t,{moduleVersion:r,response:e}),o=>{o&&G5.diag.error("mongoose instrumentation: responseHook error",o)},!0)}function pIe(t,e,n,r=void 0){return t instanceof Promise?t.then(o=>(MC(e,o,n,r),o)).catch(o=>{throw j5(e,o),o}).finally(()=>e.end()):(MC(e,t,n,r),e.end(),t)}Ii.handlePromiseResponse=pIe;function fIe(t,e,n,r,o,s,i=void 0){let a=0;return o.length===2?a=1:o.length===3&&(a=2),o[a]=(u,l)=>(u?j5(r,u):MC(r,l,s,i),r.end(),t(u,l)),e.apply(n,o)}Ii.handleCallbackResponse=fIe});var V5=T(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.PACKAGE_NAME=Tl.PACKAGE_VERSION=void 0;Tl.PACKAGE_VERSION="0.60.0";Tl.PACKAGE_NAME="@opentelemetry/instrumentation-mongoose"});var W5=T(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.MongooseInstrumentation=Bn._ALREADY_INSTRUMENTED=Bn._STORED_PARENT_SPAN=void 0;var Rt=(P(),N(L)),mIe=Ae(),vC=H5(),Kt=re(),q5=V5(),Oi=PC(),Ya=(de(),N(Ie)),TE=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],_Ie=["remove","count","findOneAndRemove",...TE],hIe=["count","findOneAndRemove",...TE],gIe=[...TE];function $5(t){return t?t.startsWith("6.")||t.startsWith("5.")?_Ie:t.startsWith("7.")?hIe:gIe:TE}function z5(t){return t&&(t.startsWith("5.")||t.startsWith("6."))||!1}function Y5(t){return!t||!t.startsWith("8.")?!1:parseInt(t.split(".")[1],10)>=21}Bn._STORED_PARENT_SPAN=Symbol("stored-parent-span");Bn._ALREADY_INSTRUMENTED=Symbol("already-instrumented");var kC=class extends Kt.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(q5.PACKAGE_NAME,q5.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Kt.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Kt.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new Kt.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <10"],this.patch.bind(this),this.unpatch.bind(this))}patch(e,n){let r=e[Symbol.toStringTag]==="Module"?e.default:e;return this._wrap(r.Model.prototype,"save",this.patchOnModelMethods("save",n)),r.Model.prototype.$save=r.Model.prototype.save,z5(n)&&this._wrap(r.Model.prototype,"remove",this.patchOnModelMethods("remove",n)),Y5(n)&&(this._wrap(r.Model.prototype,"updateOne",this._patchDocumentUpdateMethods("updateOne",n)),this._wrap(r.Model.prototype,"deleteOne",this._patchDocumentUpdateMethods("deleteOne",n))),this._wrap(r.Query.prototype,"exec",this.patchQueryExec(n)),this._wrap(r.Aggregate.prototype,"exec",this.patchAggregateExec(n)),$5(n).forEach(s=>{this._wrap(r.Query.prototype,s,this.patchAndCaptureSpanContext(s))}),this._wrap(r.Model,"aggregate",this.patchModelAggregate()),this._wrap(r.Model,"insertMany",this.patchModelStatic("insertMany",n)),this._wrap(r.Model,"bulkWrite",this.patchModelStatic("bulkWrite",n)),r}unpatch(e,n){let r=e[Symbol.toStringTag]==="Module"?e.default:e,o=$5(n);this._unwrap(r.Model.prototype,"save"),r.Model.prototype.$save=r.Model.prototype.save,z5(n)&&this._unwrap(r.Model.prototype,"remove"),Y5(n)&&(this._unwrap(r.Model.prototype,"updateOne"),this._unwrap(r.Model.prototype,"deleteOne")),this._unwrap(r.Query.prototype,"exec"),this._unwrap(r.Aggregate.prototype,"exec"),o.forEach(s=>{this._unwrap(r.Query.prototype,s)}),this._unwrap(r.Model,"aggregate"),this._unwrap(r.Model,"insertMany"),this._unwrap(r.Model,"bulkWrite")}patchAggregateExec(e){let n=this;return r=>function(s){if(n.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return r.apply(this,arguments);let i=this[Bn._STORED_PARENT_SPAN],a={},{dbStatementSerializer:u}=n.getConfig();if(u){let d=u("aggregate",{options:this.options,aggregatePipeline:this._pipeline});n._dbSemconvStability&Kt.SemconvStability.OLD&&(a[Oi.ATTR_DB_STATEMENT]=d),n._dbSemconvStability&Kt.SemconvStability.STABLE&&(a[Ya.ATTR_DB_QUERY_TEXT]=d)}let l=n._startSpan(this._model.collection,this._model?.modelName,"aggregate",a,i);return n._handleResponse(l,r,this,arguments,s,e)}}patchQueryExec(e){let n=this;return r=>function(s){if(this[Bn._ALREADY_INSTRUMENTED])return r.apply(this,arguments);if(n.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return r.apply(this,arguments);let i=this[Bn._STORED_PARENT_SPAN],a={},{dbStatementSerializer:u}=n.getConfig();if(u){let d=u(this.op,{condition:this.getFilter?.()??this._conditions,updates:this._update,options:this.getOptions?.()??this.options,fields:this._fields});n._dbSemconvStability&Kt.SemconvStability.OLD&&(a[Oi.ATTR_DB_STATEMENT]=d),n._dbSemconvStability&Kt.SemconvStability.STABLE&&(a[Ya.ATTR_DB_QUERY_TEXT]=d)}let l=n._startSpan(this.mongooseCollection,this.model.modelName,this.op,a,i);return n._handleResponse(l,r,this,arguments,s,e)}}patchOnModelMethods(e,n){let r=this;return o=>function(i,a){if(r.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return o.apply(this,arguments);let u={document:this};i&&!(i instanceof Function)&&(u.options=i);let l={},{dbStatementSerializer:d}=r.getConfig();if(d){let f=d(e,u);r._dbSemconvStability&Kt.SemconvStability.OLD&&(l[Oi.ATTR_DB_STATEMENT]=f),r._dbSemconvStability&Kt.SemconvStability.STABLE&&(l[Ya.ATTR_DB_QUERY_TEXT]=f)}let p=r._startSpan(this.constructor.collection,this.constructor.modelName,e,l);return i instanceof Function&&(a=i,i=void 0),r._handleResponse(p,o,this,arguments,a,n)}}_patchDocumentUpdateMethods(e,n){let r=this;return o=>function(i,a,u){if(r.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return o.apply(this,arguments);let l=u,d=i,p=a;typeof i=="function"?(l=i,d=void 0,p=void 0):typeof a=="function"&&(l=a,p=void 0);let f={},m=r.getConfig().dbStatementSerializer;if(m){let g=m(e,{condition:{_id:this._id},updates:d,options:p});r._dbSemconvStability&Kt.SemconvStability.OLD&&(f[Oi.ATTR_DB_STATEMENT]=g),r._dbSemconvStability&Kt.SemconvStability.STABLE&&(f[Ya.ATTR_DB_QUERY_TEXT]=g)}let _=r._startSpan(this.constructor.collection,this.constructor.modelName,e,f),h=r._handleResponse(_,o,this,arguments,l,n);return h&&typeof h=="object"&&(h[Bn._ALREADY_INSTRUMENTED]=!0),h}}patchModelStatic(e,n){let r=this;return o=>function(i,a,u){if(r.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return o.apply(this,arguments);typeof a=="function"&&(u=a,a=void 0);let l={};switch(e){case"insertMany":l.documents=i;break;case"bulkWrite":l.operations=i;break;default:l.document=i;break}a!==void 0&&(l.options=a);let d={},{dbStatementSerializer:p}=r.getConfig();if(p){let m=p(e,l);r._dbSemconvStability&Kt.SemconvStability.OLD&&(d[Oi.ATTR_DB_STATEMENT]=m),r._dbSemconvStability&Kt.SemconvStability.STABLE&&(d[Ya.ATTR_DB_QUERY_TEXT]=m)}let f=r._startSpan(this.collection,this.modelName,e,d);return r._handleResponse(f,o,this,arguments,u,n)}}patchModelAggregate(){let e=this;return n=>function(){let o=Rt.trace.getSpan(Rt.context.active()),s=e._callOriginalFunction(()=>n.apply(this,arguments));return s&&(s[Bn._STORED_PARENT_SPAN]=o),s}}patchAndCaptureSpanContext(e){let n=this;return r=>function(){return this[Bn._STORED_PARENT_SPAN]=Rt.trace.getSpan(Rt.context.active()),n._callOriginalFunction(()=>r.apply(this,arguments))}}_startSpan(e,n,r,o,s){let i={...o,...(0,vC.getAttributesFromCollection)(e,this._dbSemconvStability,this._netSemconvStability)};this._dbSemconvStability&Kt.SemconvStability.OLD&&(i[Oi.ATTR_DB_OPERATION]=r,i[Oi.ATTR_DB_SYSTEM]="mongoose"),this._dbSemconvStability&Kt.SemconvStability.STABLE&&(i[Ya.ATTR_DB_OPERATION_NAME]=r,i[Ya.ATTR_DB_SYSTEM_NAME]=Oi.DB_SYSTEM_NAME_VALUE_MONGODB);let a=this._dbSemconvStability&Kt.SemconvStability.STABLE?`${r} ${e.name}`:`mongoose.${n}.${r}`;return this.tracer.startSpan(a,{kind:Rt.SpanKind.CLIENT,attributes:i},s?Rt.trace.setSpan(Rt.context.active(),s):void 0)}_handleResponse(e,n,r,o,s,i=void 0){let a=this;if(s instanceof Function)return a._callOriginalFunction(()=>(0,vC.handleCallbackResponse)(s,n,r,e,o,a.getConfig().responseHook,i));{let u=a._callOriginalFunction(()=>n.apply(r,o));return(0,vC.handlePromiseResponse)(u,e,a.getConfig().responseHook,i)}}_callOriginalFunction(e){return this.getConfig().suppressInternalInstrumentation?Rt.context.with((0,mIe.suppressTracing)(Rt.context.active()),e):e()}};Bn.MongooseInstrumentation=kC});var K5=T(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.MongooseInstrumentation=void 0;var TIe=W5();Object.defineProperty(EE,"MongooseInstrumentation",{enumerable:!0,get:function(){return TIe.MongooseInstrumentation}})});var e9=T(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.METRIC_DB_CLIENT_CONNECTIONS_USAGE=ht.DB_SYSTEM_VALUE_MYSQL=ht.ATTR_NET_PEER_PORT=ht.ATTR_NET_PEER_NAME=ht.ATTR_DB_USER=ht.ATTR_DB_SYSTEM=ht.ATTR_DB_STATEMENT=ht.ATTR_DB_NAME=ht.ATTR_DB_CONNECTION_STRING=void 0;ht.ATTR_DB_CONNECTION_STRING="db.connection_string";ht.ATTR_DB_NAME="db.name";ht.ATTR_DB_STATEMENT="db.statement";ht.ATTR_DB_SYSTEM="db.system";ht.ATTR_DB_USER="db.user";ht.ATTR_NET_PEER_NAME="net.peer.name";ht.ATTR_NET_PEER_PORT="net.peer.port";ht.DB_SYSTEM_VALUE_MYSQL="mysql";ht.METRIC_DB_CLIENT_CONNECTIONS_USAGE="db.client.connections.usage"});var t9=T(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.AttributeNames=void 0;var SIe;(function(t){t.MYSQL_VALUES="db.mysql.values"})(SIe=bf.AttributeNames||(bf.AttributeNames={}))});var n9=T(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getPoolNameOld=un.arrayStringifyHelper=un.getSpanName=un.getDbValues=un.getDbQueryText=un.getJDBCString=un.getConfig=void 0;function AIe(t){let{host:e,port:n,database:r,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:n,database:r,user:o}}un.getConfig=AIe;function yIe(t,e,n){let r=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(r+=`:${e}`),typeof n=="string"&&(r+=`/${n}`),r}un.getJDBCString=yIe;function bIe(t){return typeof t=="string"?t:t.sql}un.getDbQueryText=bIe;function RIe(t,e){return LC(typeof t=="string"?e:e||t.values)}un.getDbValues=RIe;function IIe(t){let e=typeof t=="object"?t.sql:t,n=e?.indexOf(" ");return typeof n=="number"&&n!==-1?e?.substring(0,n):e}un.getSpanName=IIe;function LC(t){return t?`[${t.toString()}]`:""}un.arrayStringifyHelper=LC;function OIe(t){let e=t.config.connectionConfig,n="";return n+=e.host?`host: '${e.host}', `:"",n+=e.port?`port: ${e.port}, `:"",n+=e.database?`database: '${e.database}', `:"",n+=e.user?`user: '${e.user}'`:"",e.user||(n=n.substring(0,n.length-2)),n.trim()}un.getPoolNameOld=OIe});var r9=T(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.PACKAGE_NAME=El.PACKAGE_VERSION=void 0;El.PACKAGE_VERSION="0.60.0";El.PACKAGE_NAME="@opentelemetry/instrumentation-mysql"});var s9=T(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.MySQLInstrumentation=void 0;var Fn=(P(),N(L)),Cr=re(),Sl=(de(),N(Ie)),ys=e9(),CIe=t9(),Wa=n9(),o9=r9(),wC=class extends Cr.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(o9.PACKAGE_NAME,o9.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Cr.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Cr.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._connectionsUsageOld=this.meter.createUpDownCounter(ys.METRIC_DB_CLIENT_CONNECTIONS_USAGE,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}_connCountAdd(e,n,r){this._connectionsUsageOld?.add(e,{state:r,name:n})}init(){return[new Cr.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],e=>((0,Cr.isWrapped)(e.createConnection)&&this._unwrap(e,"createConnection"),this._wrap(e,"createConnection",this._patchCreateConnection()),(0,Cr.isWrapped)(e.createPool)&&this._unwrap(e,"createPool"),this._wrap(e,"createPool",this._patchCreatePool()),(0,Cr.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 n=this;return function(o){let s=e(...arguments);return n._wrap(s,"query",n._patchQuery(s)),s}}}_patchCreatePool(){return e=>{let n=this;return function(o){let s=e(...arguments);return n._wrap(s,"query",n._patchQuery(s)),n._wrap(s,"getConnection",n._patchGetConnection(s)),n._wrap(s,"end",n._patchPoolEnd(s)),n._setPoolCallbacks(s,""),s}}}_patchPoolEnd(e){return n=>{let r=this;return function(s){let i=e._allConnections.length,a=e._freeConnections.length,u=i-a,l=(0,Wa.getPoolNameOld)(e);r._connCountAdd(-u,l,"used"),r._connCountAdd(-a,l,"idle"),n.apply(e,arguments)}}}_patchCreatePoolCluster(){return e=>{let n=this;return function(o){let s=e(...arguments);return n._wrap(s,"getConnection",n._patchGetConnection(s)),n._wrap(s,"add",n._patchAdd(s)),s}}}_patchAdd(e){return n=>{let r=this;return function(s,i){if(!r._enabled)return r._unwrap(e,"add"),n.apply(e,arguments);n.apply(e,arguments);let a=e._nodes;if(a){let u=typeof s=="object"?"CLUSTER::"+e._lastId:String(s),l=a[u].pool;r._setPoolCallbacks(l,s)}}}}_patchGetConnection(e){return n=>{let r=this;return function(s,i,a){if(!r._enabled)return r._unwrap(e,"getConnection"),n.apply(e,arguments);if(arguments.length===1&&typeof s=="function"){let u=r._getConnectionCallbackPatchFn(s);return n.call(e,u)}if(arguments.length===2&&typeof i=="function"){let u=r._getConnectionCallbackPatchFn(i);return n.call(e,s,u)}if(arguments.length===3&&typeof a=="function"){let u=r._getConnectionCallbackPatchFn(a);return n.call(e,s,i,u)}return n.apply(e,arguments)}}}_getConnectionCallbackPatchFn(e){let n=this,r=Fn.context.active();return function(o,s){s&&((0,Cr.isWrapped)(s.query)||n._wrap(s,"query",n._patchQuery(s))),typeof e=="function"&&Fn.context.with(r,e,this,o,s)}}_patchQuery(e){return n=>{let r=this;return function(o,s,i){if(!r._enabled)return r._unwrap(e,"query"),n.apply(e,arguments);let a={},{host:u,port:l,database:d,user:p}=(0,Wa.getConfig)(e.config),f=parseInt(l,10),m=(0,Wa.getDbQueryText)(o);r._dbSemconvStability&Cr.SemconvStability.OLD&&(a[ys.ATTR_DB_SYSTEM]=ys.DB_SYSTEM_VALUE_MYSQL,a[ys.ATTR_DB_CONNECTION_STRING]=(0,Wa.getJDBCString)(u,l,d),a[ys.ATTR_DB_NAME]=d,a[ys.ATTR_DB_USER]=p,a[ys.ATTR_DB_STATEMENT]=m),r._dbSemconvStability&Cr.SemconvStability.STABLE&&(a[Sl.ATTR_DB_SYSTEM_NAME]=Sl.DB_SYSTEM_NAME_VALUE_MYSQL,a[Sl.ATTR_DB_NAMESPACE]=d,a[Sl.ATTR_DB_QUERY_TEXT]=m),r._netSemconvStability&Cr.SemconvStability.OLD&&(a[ys.ATTR_NET_PEER_NAME]=u,isNaN(f)||(a[ys.ATTR_NET_PEER_PORT]=f)),r._netSemconvStability&Cr.SemconvStability.STABLE&&(a[Sl.ATTR_SERVER_ADDRESS]=u,isNaN(f)||(a[Sl.ATTR_SERVER_PORT]=f));let _=r.tracer.startSpan((0,Wa.getSpanName)(o),{kind:Fn.SpanKind.CLIENT,attributes:a});if(r.getConfig().enhancedDatabaseReporting){let E;Array.isArray(s)?E=s:arguments[2]&&(E=[s]),_.setAttribute(CIe.AttributeNames.MYSQL_VALUES,(0,Wa.getDbValues)(o,E))}let h=Array.from(arguments).findIndex(E=>typeof E=="function"),g=Fn.context.active();if(h===-1){let E=Fn.context.with(Fn.trace.setSpan(Fn.context.active(),_),()=>n.apply(e,arguments));return Fn.context.bind(g,E),E.on("error",S=>_.setStatus({code:Fn.SpanStatusCode.ERROR,message:S.message})).on("end",()=>{_.end()})}else return r._wrap(arguments,h,r._patchCallbackQuery(_,g)),Fn.context.with(Fn.trace.setSpan(Fn.context.active(),_),()=>n.apply(e,arguments))}}}_patchCallbackQuery(e,n){return r=>function(o,s,i){return o&&e.setStatus({code:Fn.SpanStatusCode.ERROR,message:o.message}),e.end(),Fn.context.with(n,()=>r(...arguments))}}_setPoolCallbacks(e,n){let r=n||(0,Wa.getPoolNameOld)(e);e.on("connection",o=>{this._connCountAdd(1,r,"idle")}),e.on("acquire",o=>{this._connCountAdd(-1,r,"idle"),this._connCountAdd(1,r,"used")}),e.on("release",o=>{this._connCountAdd(1,r,"idle"),this._connCountAdd(-1,r,"used")})}};SE.MySQLInstrumentation=wC});var i9=T(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.MySQLInstrumentation=void 0;var NIe=s9();Object.defineProperty(AE,"MySQLInstrumentation",{enumerable:!0,get:function(){return NIe.MySQLInstrumentation}})});var DC=T(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.DB_SYSTEM_VALUE_MYSQL=Lt.ATTR_NET_PEER_PORT=Lt.ATTR_NET_PEER_NAME=Lt.ATTR_DB_USER=Lt.ATTR_DB_SYSTEM=Lt.ATTR_DB_STATEMENT=Lt.ATTR_DB_NAME=Lt.ATTR_DB_CONNECTION_STRING=void 0;Lt.ATTR_DB_CONNECTION_STRING="db.connection_string";Lt.ATTR_DB_NAME="db.name";Lt.ATTR_DB_STATEMENT="db.statement";Lt.ATTR_DB_SYSTEM="db.system";Lt.ATTR_DB_USER="db.user";Lt.ATTR_NET_PEER_NAME="net.peer.name";Lt.ATTR_NET_PEER_PORT="net.peer.port";Lt.DB_SYSTEM_VALUE_MYSQL="mysql"});var BC=T(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.addSqlCommenterComment=void 0;var UC=(P(),N(L)),PIe=Ae();function MIe(t){let e=t.indexOf("--");if(e>=0)return!0;if(t.indexOf("/*")<0)return!1;let r=t.indexOf("*/");return e<r}function vIe(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}function kIe(t,e){if(typeof e!="string"||e.length===0||MIe(e))return e;let n=new PIe.W3CTraceContextPropagator,r={};n.inject(UC.trace.setSpan(UC.ROOT_CONTEXT,t),r,UC.defaultTextMapSetter);let o=Object.keys(r).sort();if(o.length===0)return e;let s=o.map(i=>{let a=vIe(r[i]);return`${i}='${a}'`}).join(",");return`${e} /*${s}*/`}yE.addSqlCommenterComment=kIe});var d9=T(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.getConnectionPrototypeToInstrument=Nr.once=Nr.getSpanName=Nr.getQueryText=Nr.getConnectionAttributes=void 0;var Rf=DC(),bE=re(),FC=(de(),N(Ie));function LIe(t,e,n){let{host:r,port:o,database:s,user:i}=wIe(t),a={};e&bE.SemconvStability.OLD&&(a[Rf.ATTR_DB_CONNECTION_STRING]=DIe(r,o,s),a[Rf.ATTR_DB_NAME]=s,a[Rf.ATTR_DB_USER]=i),e&bE.SemconvStability.STABLE&&(a[FC.ATTR_DB_NAMESPACE]=s);let u=parseInt(o,10);return n&bE.SemconvStability.OLD&&(a[Rf.ATTR_NET_PEER_NAME]=r,isNaN(u)||(a[Rf.ATTR_NET_PEER_PORT]=u)),n&bE.SemconvStability.STABLE&&(a[FC.ATTR_SERVER_ADDRESS]=r,isNaN(u)||(a[FC.ATTR_SERVER_PORT]=u)),a}Nr.getConnectionAttributes=LIe;function wIe(t){let{host:e,port:n,database:r,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:n,database:r,user:o}}function DIe(t,e,n){let r=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(r+=`:${e}`),typeof n=="string"&&(r+=`/${n}`),r}function UIe(t,e,n,r=!1,o=BIe){let[s,i]=typeof t=="string"?[t,n]:[t.sql,FIe(t)?n||t.values:n];try{return r?o(s):e&&i?e(s,i):s}catch{return"Could not determine the query due to an error in masking or formatting"}}Nr.getQueryText=UIe;function BIe(t){return t.replace(/\b\d+\b/g,"?").replace(/(["'])(?:(?=(\\?))\2.)*?\1/g,"?")}function FIe(t){return"values"in t}function GIe(t){let e=typeof t=="object"?t.sql:t,n=e?.indexOf(" ");return typeof n=="number"&&n!==-1?e?.substring(0,n):e}Nr.getSpanName=GIe;var jIe=t=>{let e=!1;return(...n)=>{if(!e)return e=!0,t(...n)}};Nr.once=jIe;function HIe(t){let e=t.prototype,n=Object.getPrototypeOf(e);return typeof n?.query=="function"&&typeof n?.execute=="function"?n:e}Nr.getConnectionPrototypeToInstrument=HIe});var p9=T(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.PACKAGE_NAME=Al.PACKAGE_VERSION=void 0;Al.PACKAGE_VERSION="0.60.0";Al.PACKAGE_NAME="@opentelemetry/instrumentation-mysql2"});var h9=T(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.MySQL2Instrumentation=void 0;var f9=(P(),N(L)),Xr=re(),GC=DC(),m9=BC(),yl=d9(),_9=p9(),jC=(de(),N(Ie)),HC=[">=1.4.2 <4"],VC=class extends Xr.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(_9.PACKAGE_NAME,_9.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Xr.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Xr.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){let e;function n(s){!e&&s.format&&(e=s.format)}let r=s=>{(0,Xr.isWrapped)(s.query)&&this._unwrap(s,"query"),this._wrap(s,"query",this._patchQuery(e,!1)),(0,Xr.isWrapped)(s.execute)&&this._unwrap(s,"execute"),this._wrap(s,"execute",this._patchQuery(e,!0))},o=s=>{this._unwrap(s,"query"),this._unwrap(s,"execute")};return[new Xr.InstrumentationNodeModuleDefinition("mysql2",HC,s=>(n(s),s),()=>{},[new Xr.InstrumentationNodeModuleFile("mysql2/promise.js",HC,s=>(n(s),s),()=>{}),new Xr.InstrumentationNodeModuleFile("mysql2/lib/connection.js",HC,s=>{let i=(0,yl.getConnectionPrototypeToInstrument)(s);return r(i),s},s=>{if(s===void 0)return;let i=(0,yl.getConnectionPrototypeToInstrument)(s);o(i)})])]}_patchQuery(e,n){return r=>{let o=this;return function(s,i,a){let u;Array.isArray(i)?u=i:arguments[2]&&(u=[i]);let{maskStatement:l,maskStatementHook:d,responseHook:p}=o.getConfig(),f=(0,yl.getConnectionAttributes)(this.config,o._dbSemconvStability,o._netSemconvStability),m=(0,yl.getQueryText)(s,e,u,l,d);o._dbSemconvStability&Xr.SemconvStability.OLD&&(f[GC.ATTR_DB_SYSTEM]=GC.DB_SYSTEM_VALUE_MYSQL,f[GC.ATTR_DB_STATEMENT]=m),o._dbSemconvStability&Xr.SemconvStability.STABLE&&(f[jC.ATTR_DB_SYSTEM_NAME]=jC.DB_SYSTEM_NAME_VALUE_MYSQL,f[jC.ATTR_DB_QUERY_TEXT]=m);let _=o.tracer.startSpan((0,yl.getSpanName)(s),{kind:f9.SpanKind.CLIENT,attributes:f});!n&&o.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=s=typeof s=="string"?(0,m9.addSqlCommenterComment)(_,s):Object.assign(s,{sql:(0,m9.addSqlCommenterComment)(_,s.sql)}));let h=(0,yl.once)((g,E)=>{g?_.setStatus({code:f9.SpanStatusCode.ERROR,message:g.message}):typeof p=="function"&&(0,Xr.safeExecuteInTheMiddle)(()=>{p(_,{queryResults:E})},S=>{S&&o._diag.warn("Failed executing responseHook",S)},!0),_.end()});if(arguments.length===1){typeof s.onResult=="function"&&o._wrap(s,"onResult",o._patchCallbackQuery(h));let g=r.apply(this,arguments);return g.once("error",E=>{h(E)}).once("result",E=>{h(void 0,E)}),g}return typeof arguments[1]=="function"?o._wrap(arguments,1,o._patchCallbackQuery(h)):typeof arguments[2]=="function"&&o._wrap(arguments,2,o._patchCallbackQuery(h)),r.apply(this,arguments)}}}_patchCallbackQuery(e){return n=>function(r,o,s){return e(r,o),n(...arguments)}}};RE.MySQL2Instrumentation=VC});var g9=T(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.MySQL2Instrumentation=void 0;var VIe=h9();Object.defineProperty(IE,"MySQL2Instrumentation",{enumerable:!0,get:function(){return VIe.MySQL2Instrumentation}})});var y9=T(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.DB_SYSTEM_VALUE_REDIS=cn.DB_SYSTEM_NAME_VALUE_REDIS=cn.ATTR_NET_PEER_PORT=cn.ATTR_NET_PEER_NAME=cn.ATTR_DB_SYSTEM=cn.ATTR_DB_STATEMENT=cn.ATTR_DB_CONNECTION_STRING=void 0;cn.ATTR_DB_CONNECTION_STRING="db.connection_string";cn.ATTR_DB_STATEMENT="db.statement";cn.ATTR_DB_SYSTEM="db.system";cn.ATTR_NET_PEER_NAME="net.peer.name";cn.ATTR_NET_PEER_PORT="net.peer.port";cn.DB_SYSTEM_NAME_VALUE_REDIS="redis";cn.DB_SYSTEM_VALUE_REDIS="redis"});var b9=T(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.endSpan=void 0;var $Ie=(P(),N(L)),zIe=(t,e)=>{e&&(t.recordException(e),t.setStatus({code:$Ie.SpanStatusCode.ERROR,message:e.message})),t.end()};OE.endSpan=zIe});var NE=T(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.defaultDbStatementSerializer=void 0;var YIe=[{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}],WIe=(t,e)=>{if(Array.isArray(e)&&e.length){let n=YIe.find(({regex:o})=>o.test(t))?.args??0,r=n>=0?e.slice(0,n):e;return e.length>r.length&&r.push(`[${e.length-n} other arguments]`),`${t} ${r.join(" ")}`}return t};CE.defaultDbStatementSerializer=WIe});var R9=T(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.PACKAGE_NAME=bl.PACKAGE_VERSION=void 0;bl.PACKAGE_VERSION="0.62.0";bl.PACKAGE_NAME="@opentelemetry/instrumentation-ioredis"});var N9=T(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.IORedisInstrumentation=void 0;var Ci=(P(),N(L)),Gn=re(),Ni=(de(),N(Ie)),jn=y9(),I9=re(),If=b9(),KIe=NE(),O9=R9(),C9={requireParentSpan:!0},qC=class extends Gn.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(O9.PACKAGE_NAME,O9.PACKAGE_VERSION,{...C9,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Gn.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Gn.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...C9,...e})}init(){return[new Gn.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <6"],(e,n)=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,Gn.isWrapped)(r.prototype.sendCommand)&&this._unwrap(r.prototype,"sendCommand"),this._wrap(r.prototype,"sendCommand",this._patchSendCommand(n)),(0,Gn.isWrapped)(r.prototype.connect)&&this._unwrap(r.prototype,"connect"),this._wrap(r.prototype,"connect",this._patchConnection()),e},e=>{if(e===void 0)return;let n=e[Symbol.toStringTag]==="Module"?e.default:e;this._unwrap(n.prototype,"sendCommand"),this._unwrap(n.prototype,"connect")})]}_patchSendCommand(e){return n=>this._traceSendCommand(n,e)}_patchConnection(){return e=>this._traceConnection(e)}_traceSendCommand(e,n){let r=this;return function(o){if(arguments.length<1||typeof o!="object")return e.apply(this,arguments);let s=r.getConfig(),i=s.dbStatementSerializer||KIe.defaultDbStatementSerializer,a=Ci.trace.getSpan(Ci.context.active())===void 0;if(s.requireParentSpan===!0&&a)return e.apply(this,arguments);let u={},{host:l,port:d}=this.options,p=i(o.name,o.args);r._dbSemconvStability&Gn.SemconvStability.OLD&&(u[jn.ATTR_DB_SYSTEM]=jn.DB_SYSTEM_VALUE_REDIS,u[jn.ATTR_DB_STATEMENT]=p,u[jn.ATTR_DB_CONNECTION_STRING]=`redis://${l}:${d}`),r._dbSemconvStability&Gn.SemconvStability.STABLE&&(u[Ni.ATTR_DB_SYSTEM_NAME]=jn.DB_SYSTEM_NAME_VALUE_REDIS,u[Ni.ATTR_DB_QUERY_TEXT]=p),r._netSemconvStability&Gn.SemconvStability.OLD&&(u[jn.ATTR_NET_PEER_NAME]=l,u[jn.ATTR_NET_PEER_PORT]=d),r._netSemconvStability&Gn.SemconvStability.STABLE&&(u[Ni.ATTR_SERVER_ADDRESS]=l,u[Ni.ATTR_SERVER_PORT]=d);let f=r.tracer.startSpan(o.name,{kind:Ci.SpanKind.CLIENT,attributes:u}),{requestHook:m}=s;m&&(0,I9.safeExecuteInTheMiddle)(()=>m(f,{moduleVersion:n,cmdName:o.name,cmdArgs:o.args}),_=>{_&&Ci.diag.error("ioredis instrumentation: request hook failed",_)},!0);try{let _=e.apply(this,arguments),h=o.resolve;o.resolve=function(E){(0,I9.safeExecuteInTheMiddle)(()=>s.responseHook?.(f,o.name,o.args,E),S=>{S&&Ci.diag.error("ioredis instrumentation: response hook failed",S)},!0),(0,If.endSpan)(f,null),h(E)};let g=o.reject;return o.reject=function(E){(0,If.endSpan)(f,E),g(E)},_}catch(_){throw(0,If.endSpan)(f,_),_}}}_traceConnection(e){let n=this;return function(){let r=Ci.trace.getSpan(Ci.context.active())===void 0;if(n.getConfig().requireParentSpan===!0&&r)return e.apply(this,arguments);let o={},{host:s,port:i}=this.options;n._dbSemconvStability&Gn.SemconvStability.OLD&&(o[jn.ATTR_DB_SYSTEM]=jn.DB_SYSTEM_VALUE_REDIS,o[jn.ATTR_DB_STATEMENT]="connect",o[jn.ATTR_DB_CONNECTION_STRING]=`redis://${s}:${i}`),n._dbSemconvStability&Gn.SemconvStability.STABLE&&(o[Ni.ATTR_DB_SYSTEM_NAME]=jn.DB_SYSTEM_NAME_VALUE_REDIS,o[Ni.ATTR_DB_QUERY_TEXT]="connect"),n._netSemconvStability&Gn.SemconvStability.OLD&&(o[jn.ATTR_NET_PEER_NAME]=s,o[jn.ATTR_NET_PEER_PORT]=i),n._netSemconvStability&Gn.SemconvStability.STABLE&&(o[Ni.ATTR_SERVER_ADDRESS]=s,o[Ni.ATTR_SERVER_PORT]=i);let a=n.tracer.startSpan("connect",{kind:Ci.SpanKind.CLIENT,attributes:o});try{let u=e.apply(this,arguments);return(0,If.endSpan)(a,null),u}catch(u){throw(0,If.endSpan)(a,u),u}}}};xE.IORedisInstrumentation=qC});var x9=T(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.IORedisInstrumentation=void 0;var QIe=N9();Object.defineProperty(PE,"IORedisInstrumentation",{enumerable:!0,get:function(){return QIe.IORedisInstrumentation}})});var ME=T(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.PACKAGE_NAME=Rl.PACKAGE_VERSION=void 0;Rl.PACKAGE_VERSION="0.62.0";Rl.PACKAGE_NAME="@opentelemetry/instrumentation-redis"});var P9=T(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.getTracedCreateStreamTrace=xi.getTracedCreateClient=xi.endSpan=void 0;var Of=(P(),N(L)),JIe=(t,e)=>{e&&t.setStatus({code:Of.SpanStatusCode.ERROR,message:e.message}),t.end()};xi.endSpan=JIe;var XIe=t=>function(){let n=t.apply(this,arguments);return Of.context.bind(Of.context.active(),n)};xi.getTracedCreateClient=XIe;var ZIe=t=>function(){return Object.prototype.hasOwnProperty.call(this,"stream")||Object.defineProperty(this,"stream",{get(){return this._patched_redis_stream},set(n){Of.context.bind(Of.context.active(),n),this._patched_redis_stream=n}}),t.apply(this,arguments)};xi.getTracedCreateStreamTrace=ZIe});var vE=T(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.DB_SYSTEM_VALUE_REDIS=ln.DB_SYSTEM_NAME_VALUE_REDIS=ln.ATTR_NET_PEER_PORT=ln.ATTR_NET_PEER_NAME=ln.ATTR_DB_SYSTEM=ln.ATTR_DB_STATEMENT=ln.ATTR_DB_CONNECTION_STRING=void 0;ln.ATTR_DB_CONNECTION_STRING="db.connection_string";ln.ATTR_DB_STATEMENT="db.statement";ln.ATTR_DB_SYSTEM="db.system";ln.ATTR_NET_PEER_NAME="net.peer.name";ln.ATTR_NET_PEER_PORT="net.peer.port";ln.DB_SYSTEM_NAME_VALUE_REDIS="redis";ln.DB_SYSTEM_VALUE_REDIS="redis"});var v9=T(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.RedisInstrumentationV2_V3=void 0;var or=re(),kE=P9(),M9=ME(),Cf=(P(),N(L)),Nf=(de(),N(Ie)),Ka=vE(),eOe=NE(),$C=class t extends or.InstrumentationBase{static COMPONENT="redis";_semconvStability;constructor(e={}){super(M9.PACKAGE_NAME,M9.PACKAGE_VERSION,e),this._semconvStability=e.semconvStability?e.semconvStability:(0,or.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:(0,or.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new or.InstrumentationNodeModuleDefinition("redis",[">=2.6.0 <4"],e=>((0,or.isWrapped)(e.RedisClient.prototype.internal_send_command)&&this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._wrap(e.RedisClient.prototype,"internal_send_command",this._getPatchInternalSendCommand()),(0,or.isWrapped)(e.RedisClient.prototype.create_stream)&&this._unwrap(e.RedisClient.prototype,"create_stream"),this._wrap(e.RedisClient.prototype,"create_stream",this._getPatchCreateStream()),(0,or.isWrapped)(e.createClient)&&this._unwrap(e,"createClient"),this._wrap(e,"createClient",this._getPatchCreateClient()),e),e=>{e!==void 0&&(this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._unwrap(e.RedisClient.prototype,"create_stream"),this._unwrap(e,"createClient"))})]}_getPatchInternalSendCommand(){let e=this;return function(r){return function(s){if(arguments.length!==1||typeof s!="object")return r.apply(this,arguments);let i=e.getConfig(),a=Cf.trace.getSpan(Cf.context.active())===void 0;if(i.requireParentSpan===!0&&a)return r.apply(this,arguments);let u=i?.dbStatementSerializer||eOe.defaultDbStatementSerializer,l={};e._semconvStability&or.SemconvStability.OLD&&Object.assign(l,{[Ka.ATTR_DB_SYSTEM]:Ka.DB_SYSTEM_VALUE_REDIS,[Ka.ATTR_DB_STATEMENT]:u(s.command,s.args)}),e._semconvStability&or.SemconvStability.STABLE&&Object.assign(l,{[Nf.ATTR_DB_SYSTEM_NAME]:Ka.DB_SYSTEM_NAME_VALUE_REDIS,[Nf.ATTR_DB_OPERATION_NAME]:s.command,[Nf.ATTR_DB_QUERY_TEXT]:u(s.command,s.args)});let d=e.tracer.startSpan(`${t.COMPONENT}-${s.command}`,{kind:Cf.SpanKind.CLIENT,attributes:l});if(this.connection_options){let f={};e._semconvStability&or.SemconvStability.OLD&&Object.assign(f,{[Ka.ATTR_NET_PEER_NAME]:this.connection_options.host,[Ka.ATTR_NET_PEER_PORT]:this.connection_options.port}),e._semconvStability&or.SemconvStability.STABLE&&Object.assign(f,{[Nf.ATTR_SERVER_ADDRESS]:this.connection_options.host,[Nf.ATTR_SERVER_PORT]:this.connection_options.port}),d.setAttributes(f)}this.address&&e._semconvStability&or.SemconvStability.OLD&&d.setAttribute(Ka.ATTR_DB_CONNECTION_STRING,`redis://${this.address}`);let p=arguments[0].callback;if(p){let f=Cf.context.active();arguments[0].callback=function(_,h){if(i?.responseHook){let g=i.responseHook;(0,or.safeExecuteInTheMiddle)(()=>{g(d,s.command,s.args,h)},E=>{E&&e._diag.error("Error executing responseHook",E)},!0)}return(0,kE.endSpan)(d,_),Cf.context.with(f,p,this,...arguments)}}try{return r.apply(this,arguments)}catch(f){throw(0,kE.endSpan)(d,f),f}}}}_getPatchCreateClient(){return function(n){return(0,kE.getTracedCreateClient)(n)}}_getPatchCreateStream(){return function(n){return(0,kE.getTracedCreateStreamTrace)(n)}}};LE.RedisInstrumentationV2_V3=$C});var L9=T(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.getClientAttributes=void 0;var zC=(de(),N(Ie)),Il=vE(),k9=re();function tOe(t,e,n){let r={};return n&k9.SemconvStability.OLD&&Object.assign(r,{[Il.ATTR_DB_SYSTEM]:Il.DB_SYSTEM_VALUE_REDIS,[Il.ATTR_NET_PEER_NAME]:e?.socket?.host,[Il.ATTR_NET_PEER_PORT]:e?.socket?.port,[Il.ATTR_DB_CONNECTION_STRING]:nOe(t,e?.url)}),n&k9.SemconvStability.STABLE&&Object.assign(r,{[zC.ATTR_DB_SYSTEM_NAME]:Il.DB_SYSTEM_NAME_VALUE_REDIS,[zC.ATTR_SERVER_ADDRESS]:e?.socket?.host,[zC.ATTR_SERVER_PORT]:e?.socket?.port}),r}wE.getClientAttributes=tOe;function nOe(t,e){if(!(typeof e!="string"||!e))try{let n=new URL(e);return n.searchParams.delete("user_pwd"),n.username="",n.password="",n.href}catch(n){t.error("failed to sanitize redis connection url",n)}}});var B9=T(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.RedisInstrumentationV4_V5=void 0;var xr=(P(),N(L)),we=re(),w9=L9(),rOe=NE(),D9=ME(),YC=(de(),N(Ie)),oOe=vE(),xf=Symbol("opentelemetry.instrumentation.redis.open_spans"),U9=Symbol("opentelemetry.instrumentation.redis.multi_command_options"),WC=class t extends we.InstrumentationBase{static COMPONENT="redis";_semconvStability;constructor(e={}){super(D9.PACKAGE_NAME,D9.PACKAGE_VERSION,e),this._semconvStability=e.semconvStability?e.semconvStability:(0,we.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:(0,we.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(e){let n=new we.InstrumentationNodeModuleFile(`${e}/dist/lib/commander.js`,["^1.0.0"],(s,i)=>{let a=s.transformCommandArguments;if(!a)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),s;let u=i?.startsWith("1.0.")?"extendWithCommands":"attachCommands";return(0,we.isWrapped)(s?.[u])&&this._unwrap(s,u),this._wrap(s,u,this._getPatchExtendWithCommands(a)),s},s=>{(0,we.isWrapped)(s?.extendWithCommands)&&this._unwrap(s,"extendWithCommands"),(0,we.isWrapped)(s?.attachCommands)&&this._unwrap(s,"attachCommands")}),r=new we.InstrumentationNodeModuleFile(`${e}/dist/lib/client/multi-command.js`,["^1.0.0","^5.0.0"],s=>{let i=s?.default?.prototype;return(0,we.isWrapped)(i?.exec)&&this._unwrap(i,"exec"),this._wrap(i,"exec",this._getPatchMultiCommandsExec(!1)),(0,we.isWrapped)(i?.execAsPipeline)&&this._unwrap(i,"execAsPipeline"),this._wrap(i,"execAsPipeline",this._getPatchMultiCommandsExec(!0)),(0,we.isWrapped)(i?.addCommand)&&this._unwrap(i,"addCommand"),this._wrap(i,"addCommand",this._getPatchMultiCommandsAddCommand()),s},s=>{let i=s?.default?.prototype;(0,we.isWrapped)(i?.exec)&&this._unwrap(i,"exec"),(0,we.isWrapped)(i?.addCommand)&&this._unwrap(i,"addCommand")}),o=new we.InstrumentationNodeModuleFile(`${e}/dist/lib/client/index.js`,["^1.0.0","^5.0.0"],s=>{let i=s?.default?.prototype;return i?.multi&&((0,we.isWrapped)(i?.multi)&&this._unwrap(i,"multi"),this._wrap(i,"multi",this._getPatchRedisClientMulti())),i?.MULTI&&((0,we.isWrapped)(i?.MULTI)&&this._unwrap(i,"MULTI"),this._wrap(i,"MULTI",this._getPatchRedisClientMulti())),(0,we.isWrapped)(i?.sendCommand)&&this._unwrap(i,"sendCommand"),this._wrap(i,"sendCommand",this._getPatchRedisClientSendCommand()),this._wrap(i,"connect",this._getPatchedClientConnect()),s},s=>{let i=s?.default?.prototype;(0,we.isWrapped)(i?.multi)&&this._unwrap(i,"multi"),(0,we.isWrapped)(i?.MULTI)&&this._unwrap(i,"MULTI"),(0,we.isWrapped)(i?.sendCommand)&&this._unwrap(i,"sendCommand")});return new we.InstrumentationNodeModuleDefinition(e,["^1.0.0","^5.0.0"],s=>s,()=>{},[n,r,o])}_getPatchExtendWithCommands(e){let n=this;return function(o){return function(i){if(i?.BaseClass?.name!=="RedisClient")return o.apply(this,arguments);let a=i.executor;return i.executor=function(u,l){let d=e(u,l).args;return n._traceClientCommand(a,this,arguments,d)},o.apply(this,arguments)}}}_getPatchMultiCommandsExec(e){let n=this;return function(o){return function(){let i=o.apply(this,arguments);return typeof i?.then!="function"?(n._diag.error("non-promise result when patching exec/execAsPipeline"),i):i.then(a=>{let u=this[xf];return n._endSpansWithRedisReplies(u,a,e),a}).catch(a=>{let u=this[xf];if(!u)n._diag.error("cannot find open spans to end for multi/pipeline");else{let l=a.constructor.name==="MultiErrorReply"?a.replies:new Array(u.length).fill(a);n._endSpansWithRedisReplies(u,l,e)}return Promise.reject(a)})}}}_getPatchMultiCommandsAddCommand(){let e=this;return function(r){return function(s){return e._traceClientCommand(r,this,arguments,s)}}}_getPatchRedisClientMulti(){return function(n){return function(){let o=n.apply(this,arguments);return o[U9]=this.options,o}}}_getPatchRedisClientSendCommand(){let e=this;return function(r){return function(s){return e._traceClientCommand(r,this,arguments,s)}}}_getPatchedClientConnect(){let e=this;return function(r){return function(){let s=this.options,i=(0,w9.getClientAttributes)(e._diag,s,e._semconvStability),a=e.tracer.startSpan(`${t.COMPONENT}-connect`,{kind:xr.SpanKind.CLIENT,attributes:i});return xr.context.with(xr.trace.setSpan(xr.context.active(),a),()=>r.apply(this)).then(l=>(a.end(),l)).catch(l=>(a.recordException(l),a.setStatus({code:xr.SpanStatusCode.ERROR,message:l.message}),a.end(),Promise.reject(l)))}}}_traceClientCommand(e,n,r,o){if(xr.trace.getSpan(xr.context.active())===void 0&&this.getConfig().requireParentSpan)return e.apply(n,r);let i=n.options||n[U9],a=o[0],u=o.slice(1),l=this.getConfig().dbStatementSerializer||rOe.defaultDbStatementSerializer,d=(0,w9.getClientAttributes)(this._diag,i,this._semconvStability);this._semconvStability&we.SemconvStability.STABLE&&(d[YC.ATTR_DB_OPERATION_NAME]=a);try{let m=l(a,u);m!=null&&(this._semconvStability&we.SemconvStability.OLD&&(d[oOe.ATTR_DB_STATEMENT]=m),this._semconvStability&we.SemconvStability.STABLE&&(d[YC.ATTR_DB_QUERY_TEXT]=m))}catch(m){this._diag.error("dbStatementSerializer throw an exception",m,{commandName:a})}let p=this.tracer.startSpan(`${t.COMPONENT}-${a}`,{kind:xr.SpanKind.CLIENT,attributes:d}),f=xr.context.with(xr.trace.setSpan(xr.context.active(),p),()=>e.apply(n,r));if(typeof f?.then=="function")f.then(m=>{this._endSpanWithResponse(p,a,u,m,void 0)},m=>{this._endSpanWithResponse(p,a,u,null,m)});else{let m=f;m[xf]=m[xf]||[],m[xf].push({span:p,commandName:a,commandArgs:u})}return f}_endSpansWithRedisReplies(e,n,r=!1){if(!e)return this._diag.error("cannot find open spans to end for redis multi/pipeline");if(n.length!==e.length)return this._diag.error("number of multi command spans does not match response from redis");let o=e.map(a=>a.commandName),i=o.every(a=>a===o[0])?(r?"PIPELINE ":"MULTI ")+o[0]:r?"PIPELINE":"MULTI";for(let a=0;a<e.length;a++){let{span:u,commandArgs:l}=e[a],d=n[a],[p,f]=d instanceof Error?[null,d]:[d,void 0];this._semconvStability&we.SemconvStability.STABLE&&u.setAttribute(YC.ATTR_DB_OPERATION_NAME,i),this._endSpanWithResponse(u,o[a],l,p,f)}}_endSpanWithResponse(e,n,r,o,s){let{responseHook:i}=this.getConfig();if(!s&&i)try{i(e,n,r,o)}catch(a){this._diag.error("responseHook throw an exception",a)}s&&(e.recordException(s),e.setStatus({code:xr.SpanStatusCode.ERROR,message:s?.message})),e.end()}};DE.RedisInstrumentationV4_V5=WC});var j9=T(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE.RedisInstrumentation=void 0;var sOe=re(),F9=ME(),iOe=v9(),aOe=B9(),G9={requireParentSpan:!1},KC=class extends sOe.InstrumentationBase{instrumentationV2_V3;instrumentationV4_V5;initialized=!1;constructor(e={}){let n={...G9,...e};super(F9.PACKAGE_NAME,F9.PACKAGE_VERSION,n),this.instrumentationV2_V3=new iOe.RedisInstrumentationV2_V3(this.getConfig()),this.instrumentationV4_V5=new aOe.RedisInstrumentationV4_V5(this.getConfig()),this.initialized=!0}setConfig(e={}){let n={...G9,...e};super.setConfig(n),this.initialized&&(this.instrumentationV2_V3.setConfig(n),this.instrumentationV4_V5.setConfig(n))}init(){}getModuleDefinitions(){return[...this.instrumentationV2_V3.getModuleDefinitions(),...this.instrumentationV4_V5.getModuleDefinitions()]}setTracerProvider(e){super.setTracerProvider(e),this.initialized&&(this.instrumentationV2_V3.setTracerProvider(e),this.instrumentationV4_V5.setTracerProvider(e))}enable(){super.enable(),this.initialized&&(this.instrumentationV2_V3.enable(),this.instrumentationV4_V5.enable())}disable(){super.disable(),this.initialized&&(this.instrumentationV2_V3.disable(),this.instrumentationV4_V5.disable())}};UE.RedisInstrumentation=KC});var H9=T(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.RedisInstrumentation=void 0;var uOe=j9();Object.defineProperty(BE,"RedisInstrumentation",{enumerable:!0,get:function(){return uOe.RedisInstrumentation}})});var X9=T(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.EVENT_LISTENERS_SET=void 0;GE.EVENT_LISTENERS_SET=Symbol("opentelemetry.instrumentation.pg.eventListenersSet")});var XC=T(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.AttributeNames=void 0;var _Oe;(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"})(_Oe=vf.AttributeNames||(vf.AttributeNames={}))});var ZC=T(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS=be.METRIC_DB_CLIENT_CONNECTION_COUNT=be.DB_SYSTEM_VALUE_POSTGRESQL=be.DB_CLIENT_CONNECTION_STATE_VALUE_USED=be.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE=be.ATTR_NET_PEER_PORT=be.ATTR_NET_PEER_NAME=be.ATTR_DB_USER=be.ATTR_DB_SYSTEM=be.ATTR_DB_STATEMENT=be.ATTR_DB_NAME=be.ATTR_DB_CONNECTION_STRING=be.ATTR_DB_CLIENT_CONNECTION_STATE=be.ATTR_DB_CLIENT_CONNECTION_POOL_NAME=void 0;be.ATTR_DB_CLIENT_CONNECTION_POOL_NAME="db.client.connection.pool.name";be.ATTR_DB_CLIENT_CONNECTION_STATE="db.client.connection.state";be.ATTR_DB_CONNECTION_STRING="db.connection_string";be.ATTR_DB_NAME="db.name";be.ATTR_DB_STATEMENT="db.statement";be.ATTR_DB_SYSTEM="db.system";be.ATTR_DB_USER="db.user";be.ATTR_NET_PEER_NAME="net.peer.name";be.ATTR_NET_PEER_PORT="net.peer.port";be.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE="idle";be.DB_CLIENT_CONNECTION_STATE_VALUE_USED="used";be.DB_SYSTEM_VALUE_POSTGRESQL="postgresql";be.METRIC_DB_CLIENT_CONNECTION_COUNT="db.client.connection.count";be.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS="db.client.connection.pending_requests"});var eN=T(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.SpanNames=void 0;var hOe;(function(t){t.QUERY_PREFIX="pg.query",t.CONNECT="pg.connect",t.POOL_CONNECT="pg-pool.connect"})(hOe=kf.SpanNames||(kf.SpanNames={}))});var s$=T(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.sanitizedErrorMessage=Te.isObjectWithTextString=Te.getErrorMessage=Te.patchClientConnectCallback=Te.patchCallbackPGPool=Te.updateCounter=Te.getPoolName=Te.patchCallback=Te.handleExecutionResult=Te.handleConfigQuery=Te.shouldSkipInstrumentation=Te.getSemanticAttributesFromPoolConnection=Te.getSemanticAttributesFromConnection=Te.getConnectionString=Te.parseAndMaskConnectionString=Te.parseNormalizedOperationName=Te.getQuerySpanName=void 0;var Pi=(P(),N(L)),jE=XC(),Pr=(de(),N(Ie)),We=ZC(),Qa=re(),Z9=eN();function e$(t,e){if(!e)return Z9.SpanNames.QUERY_PREFIX;let n=typeof e.name=="string"&&e.name?e.name:t$(e.text);return`${Z9.SpanNames.QUERY_PREFIX}:${n}${t?` ${t}`:""}`}Te.getQuerySpanName=e$;function t$(t){let e=t.trim(),n=e.indexOf(" "),r=n===-1?e:e.slice(0,n);return r=r.toUpperCase(),r.endsWith(";")?r.slice(0,-1):r}Te.parseNormalizedOperationName=t$;function n$(t){try{let e=new URL(t);return e.username="",e.password="",e.toString()}catch{return"postgresql://localhost:5432/"}}Te.parseAndMaskConnectionString=n$;function tN(t){if("connectionString"in t&&t.connectionString)return n$(t.connectionString);let e=t.host||"localhost",n=t.port||5432,r=t.database||"";return`postgresql://${e}:${n}/${r}`}Te.getConnectionString=tN;function HE(t){if(Number.isInteger(t))return t}function r$(t,e){let n={};return e&Qa.SemconvStability.OLD&&(n={...n,[We.ATTR_DB_SYSTEM]:We.DB_SYSTEM_VALUE_POSTGRESQL,[We.ATTR_DB_NAME]:t.database,[We.ATTR_DB_CONNECTION_STRING]:tN(t),[We.ATTR_DB_USER]:t.user,[We.ATTR_NET_PEER_NAME]:t.host,[We.ATTR_NET_PEER_PORT]:HE(t.port)}),e&Qa.SemconvStability.STABLE&&(n={...n,[Pr.ATTR_DB_SYSTEM_NAME]:Pr.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[Pr.ATTR_DB_NAMESPACE]:t.namespace,[Pr.ATTR_SERVER_ADDRESS]:t.host,[Pr.ATTR_SERVER_PORT]:HE(t.port)}),n}Te.getSemanticAttributesFromConnection=r$;function gOe(t,e){let n;try{n=t.connectionString?new URL(t.connectionString):void 0}catch{n=void 0}let r={[jE.AttributeNames.IDLE_TIMEOUT_MILLIS]:t.idleTimeoutMillis,[jE.AttributeNames.MAX_CLIENT]:t.maxClient};return e&Qa.SemconvStability.OLD&&(r={...r,[We.ATTR_DB_SYSTEM]:We.DB_SYSTEM_VALUE_POSTGRESQL,[We.ATTR_DB_NAME]:n?.pathname.slice(1)??t.database,[We.ATTR_DB_CONNECTION_STRING]:tN(t),[We.ATTR_NET_PEER_NAME]:n?.hostname??t.host,[We.ATTR_NET_PEER_PORT]:Number(n?.port)||HE(t.port),[We.ATTR_DB_USER]:n?.username??t.user}),e&Qa.SemconvStability.STABLE&&(r={...r,[Pr.ATTR_DB_SYSTEM_NAME]:Pr.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[Pr.ATTR_DB_NAMESPACE]:t.namespace,[Pr.ATTR_SERVER_ADDRESS]:n?.hostname??t.host,[Pr.ATTR_SERVER_PORT]:Number(n?.port)||HE(t.port)}),r}Te.getSemanticAttributesFromPoolConnection=gOe;function TOe(t){return t.requireParentSpan===!0&&Pi.trace.getSpan(Pi.context.active())===void 0}Te.shouldSkipInstrumentation=TOe;function EOe(t,e,n,r){let{connectionParameters:o}=this,s=o.database,i=e$(s,r),a=t.startSpan(i,{kind:Pi.SpanKind.CLIENT,attributes:r$(o,n)});if(!r)return a;if(r.text&&(n&Qa.SemconvStability.OLD&&a.setAttribute(We.ATTR_DB_STATEMENT,r.text),n&Qa.SemconvStability.STABLE&&a.setAttribute(Pr.ATTR_DB_QUERY_TEXT,r.text)),e.enhancedDatabaseReporting&&Array.isArray(r.values))try{let u=r.values.map(l=>l==null?"null":l instanceof Buffer?l.toString():typeof l=="object"?typeof l.toPostgres=="function"?l.toPostgres():JSON.stringify(l):l.toString());a.setAttribute(jE.AttributeNames.PG_VALUES,u)}catch(u){Pi.diag.error("failed to stringify ",r.values,u)}return typeof r.name=="string"&&a.setAttribute(jE.AttributeNames.PG_PLAN,r.name),a}Te.handleConfigQuery=EOe;function o$(t,e,n){typeof t.responseHook=="function"&&(0,Qa.safeExecuteInTheMiddle)(()=>{t.responseHook(e,{data:n})},r=>{r&&Pi.diag.error("Error running response hook",r)},!0)}Te.handleExecutionResult=o$;function SOe(t,e,n,r,o){return function(i,a){i?(Object.prototype.hasOwnProperty.call(i,"code")&&(r[Pr.ATTR_ERROR_TYPE]=i.code),i instanceof Error&&e.recordException(VE(i)),e.setStatus({code:Pi.SpanStatusCode.ERROR,message:i.message})):o$(t,e,a),o(),e.end(),n.call(this,i,a)}}Te.patchCallback=SOe;function AOe(t){let e="";return e+=(t?.host?`${t.host}`:"unknown_host")+":",e+=(t?.port?`${t.port}`:"unknown_port")+"/",e+=t?.database?`${t.database}`:"unknown_database",e.trim()}Te.getPoolName=AOe;function yOe(t,e,n,r,o){let s=e.totalCount,i=e.waitingCount,a=e.idleCount,u=s-a;return n.add(u-o.used,{[We.ATTR_DB_CLIENT_CONNECTION_STATE]:We.DB_CLIENT_CONNECTION_STATE_VALUE_USED,[We.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:t}),n.add(a-o.idle,{[We.ATTR_DB_CLIENT_CONNECTION_STATE]:We.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE,[We.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:t}),r.add(i-o.pending,{[We.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:t}),{used:u,idle:a,pending:i}}Te.updateCounter=yOe;function bOe(t,e){return function(r,o,s){r&&(r instanceof Error&&t.recordException(VE(r)),t.setStatus({code:Pi.SpanStatusCode.ERROR,message:r.message})),t.end(),e.call(this,r,o,s)}}Te.patchCallbackPGPool=bOe;function ROe(t,e){return function(r){r&&(r instanceof Error&&t.recordException(VE(r)),t.setStatus({code:Pi.SpanStatusCode.ERROR,message:r.message})),t.end(),e.apply(this,arguments)}}Te.patchClientConnectCallback=ROe;function IOe(t){return typeof t=="object"&&t!==null&&"message"in t?String(t.message):void 0}Te.getErrorMessage=IOe;function OOe(t){return typeof t=="object"&&typeof t?.text=="string"}Te.isObjectWithTextString=OOe;function VE(t){let e=t?.name??"PostgreSQLError",n=t?.code??"UNKNOWN";return`PostgreSQL error of type '${e}' occurred (code: ${n})`}Te.sanitizedErrorMessage=VE});var i$=T(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.PACKAGE_NAME=Ol.PACKAGE_VERSION=void 0;Ol.PACKAGE_VERSION="0.66.0";Ol.PACKAGE_NAME="@opentelemetry/instrumentation-pg"});var p$=T($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.PgInstrumentation=void 0;var In=re(),Ne=(P(),N(L)),a$=X9(),je=s$(),u$=BC(),c$=i$(),l$=eN(),qE=Ae(),Zr=(de(),N(Ie)),Lf=ZC();function Cl(t){return t[Symbol.toStringTag]==="Module"?t.default:t}var nN=class extends In.InstrumentationBase{_connectionsCounter={used:0,idle:0,pending:0};_semconvStability;constructor(e={}){super(c$.PACKAGE_NAME,c$.PACKAGE_VERSION,e),this._semconvStability=(0,In.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._operationDuration=this.meter.createHistogram(Zr.METRIC_DB_CLIENT_OPERATION_DURATION,{description:"Duration of database client operations.",unit:"s",valueType:Ne.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.001,.005,.01,.05,.1,.5,1,5,10]}}),this._connectionsCounter={idle:0,pending:0,used:0},this._connectionsCount=this.meter.createUpDownCounter(Lf.METRIC_DB_CLIENT_CONNECTION_COUNT,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"}),this._connectionPendingRequests=this.meter.createUpDownCounter(Lf.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS,{description:"The number of current pending requests for an open connection.",unit:"{connection}"})}init(){let e=[">=8.0.3 <9"],n=[">=2.0.0 <4"],r=new In.InstrumentationNodeModuleFile("pg/lib/native/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this)),o=new In.InstrumentationNodeModuleFile("pg/lib/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this)),s=new In.InstrumentationNodeModuleDefinition("pg",e,a=>{let u=Cl(a);return this._patchPgClient(u.Client),a},a=>{let u=Cl(a);return this._unpatchPgClient(u.Client),a},[o,r]),i=new In.InstrumentationNodeModuleDefinition("pg-pool",n,a=>{let u=Cl(a);return(0,In.isWrapped)(u.prototype.connect)&&this._unwrap(u.prototype,"connect"),this._wrap(u.prototype,"connect",this._getPoolConnectPatch()),u},a=>{let u=Cl(a);(0,In.isWrapped)(u.prototype.connect)&&this._unwrap(u.prototype,"connect")});return[s,i]}_patchPgClient(e){if(!e)return;let n=Cl(e);return(0,In.isWrapped)(n.prototype.query)&&this._unwrap(n.prototype,"query"),(0,In.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"query",this._getClientQueryPatch()),this._wrap(n.prototype,"connect",this._getClientConnectPatch()),e}_unpatchPgClient(e){let n=Cl(e);return(0,In.isWrapped)(n.prototype.query)&&this._unwrap(n.prototype,"query"),(0,In.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),e}_getClientConnectPatch(){let e=this;return n=>function(o){let s=e.getConfig();if(je.shouldSkipInstrumentation(s)||s.ignoreConnectSpans)return n.call(this,o);let i=e.tracer.startSpan(l$.SpanNames.CONNECT,{kind:Ne.SpanKind.CLIENT,attributes:je.getSemanticAttributesFromConnection(this,e._semconvStability)});if(o){let u=Ne.trace.getSpan(Ne.context.active());o=je.patchClientConnectCallback(i,o),u&&(o=Ne.context.bind(Ne.context.active(),o))}let a=Ne.context.with(Ne.trace.setSpan(Ne.context.active(),i),()=>n.call(this,o));return d$(i,a)}}recordOperationDuration(e,n){let r={},o=[Zr.ATTR_DB_NAMESPACE,Zr.ATTR_ERROR_TYPE,Zr.ATTR_SERVER_PORT,Zr.ATTR_SERVER_ADDRESS,Zr.ATTR_DB_OPERATION_NAME];this._semconvStability&In.SemconvStability.OLD&&o.push(Lf.ATTR_DB_SYSTEM),this._semconvStability&In.SemconvStability.STABLE&&o.push(Zr.ATTR_DB_SYSTEM_NAME),o.forEach(i=>{i in e&&(r[i]=e[i])});let s=(0,qE.hrTimeToMilliseconds)((0,qE.hrTimeDuration)(n,(0,qE.hrTime)()))/1e3;this._operationDuration.record(s,r)}_getClientQueryPatch(){let e=this;return n=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...o){if(je.shouldSkipInstrumentation(e.getConfig()))return n.apply(this,o);let s=(0,qE.hrTime)(),i=o[0],a=typeof i=="string",u=je.isObjectWithTextString(i),l=a?{text:i,values:Array.isArray(o[1])?o[1]:void 0}:u?{...i,name:i.name,text:i.text,values:i.values??(Array.isArray(o[1])?o[1]:void 0)}:void 0,d={[Lf.ATTR_DB_SYSTEM]:Lf.DB_SYSTEM_VALUE_POSTGRESQL,[Zr.ATTR_DB_NAMESPACE]:this.database,[Zr.ATTR_SERVER_PORT]:this.connectionParameters.port,[Zr.ATTR_SERVER_ADDRESS]:this.connectionParameters.host};l?.text&&(d[Zr.ATTR_DB_OPERATION_NAME]=je.parseNormalizedOperationName(l?.text));let p=()=>{e.recordOperationDuration(d,s)},f=e.getConfig(),m=je.handleConfigQuery.call(this,e.tracer,f,e._semconvStability,l);if(f.addSqlCommenterCommentToQueries&&(a?o[0]=(0,u$.addSqlCommenterComment)(m,i):u&&!("name"in i)&&(o[0]={...i,text:(0,u$.addSqlCommenterComment)(m,i.text)})),o.length>0){let g=Ne.trace.getSpan(Ne.context.active());if(typeof o[o.length-1]=="function")o[o.length-1]=je.patchCallback(f,m,o[o.length-1],d,p),g&&(o[o.length-1]=Ne.context.bind(Ne.context.active(),o[o.length-1]));else if(typeof l?.callback=="function"){let E=je.patchCallback(e.getConfig(),m,l.callback,d,p);g&&(E=Ne.context.bind(Ne.context.active(),E)),o[0].callback=E}}let{requestHook:_}=f;typeof _=="function"&&l&&(0,In.safeExecuteInTheMiddle)(()=>{let{database:g,host:E,port:S,user:b}=this.connectionParameters;_(m,{connection:{database:g,host:E,port:S,user:b},query:{text:l.text,values:l.values,name:l.name}})},g=>{g&&e._diag.error("Error running query hook",g)},!0);let h;try{h=n.apply(this,o)}catch(g){throw g instanceof Error&&m.recordException(je.sanitizedErrorMessage(g)),m.setStatus({code:Ne.SpanStatusCode.ERROR,message:je.getErrorMessage(g)}),m.end(),g}return h instanceof Promise?h.then(g=>new Promise(E=>{je.handleExecutionResult(e.getConfig(),m,g),p(),m.end(),E(g)})).catch(g=>new Promise((E,S)=>{g instanceof Error&&m.recordException(je.sanitizedErrorMessage(g)),m.setStatus({code:Ne.SpanStatusCode.ERROR,message:g.message}),p(),m.end(),S(g)})):h})}_setPoolConnectEventListeners(e){if(e[a$.EVENT_LISTENERS_SET])return;let n=je.getPoolName(e.options);e.on("connect",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("acquire",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("remove",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("release",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e[a$.EVENT_LISTENERS_SET]=!0}_getPoolConnectPatch(){let e=this;return n=>function(o){let s=e.getConfig();if(je.shouldSkipInstrumentation(s))return n.call(this,o);if(e._setPoolConnectEventListeners(this),s.ignoreConnectSpans)return n.call(this,o);let i=e.tracer.startSpan(l$.SpanNames.POOL_CONNECT,{kind:Ne.SpanKind.CLIENT,attributes:je.getSemanticAttributesFromPoolConnection(this.options,e._semconvStability)});if(o){let u=Ne.trace.getSpan(Ne.context.active());o=je.patchCallbackPGPool(i,o),u&&(o=Ne.context.bind(Ne.context.active(),o))}let a=Ne.context.with(Ne.trace.setSpan(Ne.context.active(),i),()=>n.call(this,o));return d$(i,a)}}};$E.PgInstrumentation=nN;function d$(t,e){if(!(e instanceof Promise))return e;let n=e;return Ne.context.bind(Ne.context.active(),n.then(r=>(t.end(),r)).catch(r=>(r instanceof Error&&t.recordException(je.sanitizedErrorMessage(r)),t.setStatus({code:Ne.SpanStatusCode.ERROR,message:je.getErrorMessage(r)}),t.end(),Promise.reject(r))))}});var f$=T(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.AttributeNames=Nl.PgInstrumentation=void 0;var COe=p$();Object.defineProperty(Nl,"PgInstrumentation",{enumerable:!0,get:function(){return COe.PgInstrumentation}});var NOe=XC();Object.defineProperty(Nl,"AttributeNames",{enumerable:!0,get:function(){return NOe.AttributeNames}})});var A$=T(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.SeverityNumber=void 0;var kOe;(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"})(kOe=wf.SeverityNumber||(wf.SeverityNumber={}))});var YE=T(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.NOOP_LOGGER=xl.NoopLogger=void 0;var zE=class{emit(e){}};xl.NoopLogger=zE;xl.NOOP_LOGGER=new zE});var KE=T(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.NOOP_LOGGER_PROVIDER=Pl.NoopLoggerProvider=void 0;var LOe=YE(),WE=class{getLogger(e,n,r){return new LOe.NoopLogger}};Pl.NoopLoggerProvider=WE;Pl.NOOP_LOGGER_PROVIDER=new WE});var iN=T(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.ProxyLogger=void 0;var wOe=YE(),sN=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,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):wOe.NOOP_LOGGER}};QE.ProxyLogger=sN});var uN=T(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.ProxyLoggerProvider=void 0;var DOe=KE(),UOe=iN(),aN=class{getLogger(e,n,r){var o;return(o=this._getDelegateLogger(e,n,r))!==null&&o!==void 0?o:new UOe.ProxyLogger(this,e,n,r)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:DOe.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,n,r)}};JE.ProxyLoggerProvider=aN});var y$=T(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE._globalThis=void 0;XE._globalThis=typeof globalThis=="object"?globalThis:global});var b$=T(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE._globalThis=void 0;var BOe=y$();Object.defineProperty(ZE,"_globalThis",{enumerable:!0,get:function(){return BOe._globalThis}})});var R$=T(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS._globalThis=void 0;var FOe=b$();Object.defineProperty(eS,"_globalThis",{enumerable:!0,get:function(){return FOe._globalThis}})});var I$=T(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.API_BACKWARDS_COMPATIBILITY_VERSION=Lo.makeGetter=Lo._global=Lo.GLOBAL_LOGS_API_KEY=void 0;var GOe=R$();Lo.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Lo._global=GOe._globalThis;function jOe(t,e,n){return r=>r===t?e:n}Lo.makeGetter=jOe;Lo.API_BACKWARDS_COMPATIBILITY_VERSION=1});var C$=T(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});tS.LogsAPI=void 0;var Mr=I$(),HOe=KE(),O$=uN(),cN=class t{constructor(){this._proxyLoggerProvider=new O$.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Mr._global[Mr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Mr._global[Mr.GLOBAL_LOGS_API_KEY]=(0,Mr.makeGetter)(Mr.API_BACKWARDS_COMPATIBILITY_VERSION,e,HOe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=Mr._global[Mr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Mr._global,Mr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete Mr._global[Mr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new O$.ProxyLoggerProvider}};tS.LogsAPI=cN});var lN=T(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.logs=wt.ProxyLoggerProvider=wt.ProxyLogger=wt.NoopLoggerProvider=wt.NOOP_LOGGER_PROVIDER=wt.NoopLogger=wt.NOOP_LOGGER=wt.SeverityNumber=void 0;var VOe=A$();Object.defineProperty(wt,"SeverityNumber",{enumerable:!0,get:function(){return VOe.SeverityNumber}});var N$=YE();Object.defineProperty(wt,"NOOP_LOGGER",{enumerable:!0,get:function(){return N$.NOOP_LOGGER}});Object.defineProperty(wt,"NoopLogger",{enumerable:!0,get:function(){return N$.NoopLogger}});var x$=KE();Object.defineProperty(wt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return x$.NOOP_LOGGER_PROVIDER}});Object.defineProperty(wt,"NoopLoggerProvider",{enumerable:!0,get:function(){return x$.NoopLoggerProvider}});var qOe=iN();Object.defineProperty(wt,"ProxyLogger",{enumerable:!0,get:function(){return qOe.ProxyLogger}});var $Oe=uN();Object.defineProperty(wt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return $Oe.ProxyLoggerProvider}});var zOe=C$();wt.logs=zOe.LogsAPI.getInstance()});var P$=T(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.disableInstrumentations=Ml.enableInstrumentations=void 0;function YOe(t,e,n,r){for(let o=0,s=t.length;o<s;o++){let i=t[o];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}Ml.enableInstrumentations=YOe;function WOe(t){t.forEach(e=>e.disable())}Ml.disableInstrumentations=WOe});var k$=T(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.registerInstrumentations=void 0;var M$=(P(),N(L)),KOe=lN(),v$=P$();function QOe(t){let e=t.tracerProvider||M$.trace.getTracerProvider(),n=t.meterProvider||M$.metrics.getMeterProvider(),r=t.loggerProvider||KOe.logs.getLoggerProvider(),o=t.instrumentations?.flat()??[];return(0,v$.enableInstrumentations)(o,e,n,r),()=>{(0,v$.disableInstrumentations)(o)}}nS.registerInstrumentations=QOe});var H$=T(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0});rS.satisfies=void 0;var mN=(P(),N(L)),B$=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,JOe=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,XOe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function ZOe(t,e,n){if(!eCe(t))return mN.diag.error(`Invalid version: ${t}`),!1;if(!e)return!0;e=e.replace(/([<>=~^]+)\s+/g,"$1");let r=oCe(t);if(!r)return!1;let o=[],s=F$(r,e,o,n);return s&&!n?.includePrerelease?nCe(r,o):s}rS.satisfies=ZOe;function eCe(t){return typeof t=="string"&&B$.test(t)}function F$(t,e,n,r){if(e.includes("||")){let o=e.trim().split("||");for(let s of o)if(dN(t,s,n,r))return!0;return!1}else if(e.includes(" - "))e=ICe(e,r);else if(e.includes(" ")){let o=e.trim().replace(/\s{2,}/g," ").split(" ");for(let s of o)if(!dN(t,s,n,r))return!1;return!0}return dN(t,e,n,r)}function dN(t,e,n,r){if(e=rCe(e,r),e.includes(" "))return F$(t,e,n,r);{let o=sCe(e);return n.push(o),tCe(t,o)}}function tCe(t,e){if(e.invalid)return!1;if(!e.version||fN(e.version))return!0;let n=w$(t.versionSegments||[],e.versionSegments||[]);if(n===0){let r=t.prereleaseSegments||[],o=e.prereleaseSegments||[];!r.length&&!o.length?n=0:!r.length&&o.length?n=1:r.length&&!o.length?n=-1:n=w$(r,o)}return XOe[e.op]?.includes(n)}function nCe(t,e){return t.prerelease?e.some(n=>n.prerelease&&n.version===t.version):!0}function rCe(t,e){return t=t.trim(),t=bCe(t,e),t=yCe(t),t=RCe(t,e),t=t.trim(),t}function On(t){return!t||t.toLowerCase()==="x"||t==="*"}function oCe(t){let e=t.match(B$);if(!e){mN.diag.error(`Invalid version: ${t}`);return}let n=e.groups.version,r=e.groups.prerelease,o=e.groups.build,s=n.split("."),i=r?.split(".");return{op:void 0,version:n,versionSegments:s,versionSegmentCount:s.length,prerelease:r,prereleaseSegments:i,prereleaseSegmentCount:i?i.length:0,build:o}}function sCe(t){if(!t)return{};let e=t.match(JOe);if(!e)return mN.diag.error(`Invalid range: ${t}`),{invalid:!0};let n=e.groups.op,r=e.groups.version,o=e.groups.prerelease,s=e.groups.build,i=r.split("."),a=o?.split(".");return n==="=="&&(n="="),{op:n||"=",version:r,versionSegments:i,versionSegmentCount:i.length,prerelease:o,prereleaseSegments:a,prereleaseSegmentCount:a?a.length:0,build:s}}function fN(t){return t==="*"||t==="x"||t==="X"}function L$(t){let e=parseInt(t,10);return isNaN(e)?t:e}function iCe(t,e){if(typeof t==typeof e){if(typeof t=="number")return[t,e];if(typeof t=="string")return[t,e];throw new Error("Version segments can only be strings or numbers")}else return[String(t),String(e)]}function aCe(t,e){if(fN(t)||fN(e))return 0;let[n,r]=iCe(L$(t),L$(e));return n>r?1:n<r?-1:0}function w$(t,e){for(let n=0;n<Math.max(t.length,e.length);n++){let r=aCe(t[n]||"0",e[n]||"0");if(r!==0)return r}return 0}var G$="[a-zA-Z0-9-]",j$="0|[1-9]\\d*",uCe=`\\d*[a-zA-Z-]${G$}*`,cCe="((?:<|>)?=?)",D$=`(?:${j$}|${uCe})`,lCe=`(?:-(${D$}(?:\\.${D$})*))`,U$=`${G$}+`,dCe=`(?:\\+(${U$}(?:\\.${U$})*))`,pN=`${j$}|x|X|\\*`,Df=`[v=\\s]*(${pN})(?:\\.(${pN})(?:\\.(${pN})(?:${lCe})?${dCe}?)?)?`,pCe=`^${cCe}\\s*${Df}$`,fCe=new RegExp(pCe),mCe=`^\\s*(${Df})\\s+-\\s+(${Df})\\s*$`,_Ce=new RegExp(mCe),hCe="(?:~>?)",gCe=`^${hCe}${Df}$`,TCe=new RegExp(gCe),ECe="(?:\\^)",SCe=`^${ECe}${Df}$`,ACe=new RegExp(SCe);function yCe(t){let e=TCe;return t.replace(e,(n,r,o,s,i)=>{let a;return On(r)?a="":On(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:On(s)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:i?a=`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:a=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,a})}function bCe(t,e){let n=ACe,r=e?.includePrerelease?"-0":"";return t.replace(n,(o,s,i,a,u)=>{let l;return On(s)?l="":On(i)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:On(a)?s==="0"?l=`>=${s}.${i}.0${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${r} <${+s+1}.0.0-0`:u?s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${u} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${u} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${u} <${+s+1}.0.0-0`:s==="0"?i==="0"?l=`>=${s}.${i}.${a}${r} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`,l})}function RCe(t,e){let n=fCe;return t.replace(n,(r,o,s,i,a,u)=>{let l=On(s),d=l||On(i),p=d||On(a),f=p;return o==="="&&f&&(o=""),u=e?.includePrerelease?"-0":"",l?o===">"||o==="<"?r="<0.0.0-0":r="*":o&&f?(d&&(i=0),a=0,o===">"?(o=">=",d?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",d?s=+s+1:i=+i+1),o==="<"&&(u="-0"),r=`${o+s}.${i}.${a}${u}`):d?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${u} <${s}.${+i+1}.0-0`),r})}function ICe(t,e){let n=_Ce;return t.replace(n,(r,o,s,i,a,u,l,d,p,f,m,_)=>(On(s)?o="":On(i)?o=`>=${s}.0.0${e?.includePrerelease?"-0":""}`:On(a)?o=`>=${s}.${i}.0${e?.includePrerelease?"-0":""}`:u?o=`>=${o}`:o=`>=${o}${e?.includePrerelease?"-0":""}`,On(p)?d="":On(f)?d=`<${+p+1}.0.0-0`:On(m)?d=`<${p}.${+f+1}.0-0`:_?d=`<=${p}.${f}.${m}-${_}`:e?.includePrerelease?d=`<${p}.${f}.${+m+1}-0`:d=`<=${d}`,`${o} ${d}`.trim()))}});var _N=T(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.massUnwrap=Qt.unwrap=Qt.massWrap=Qt.wrap=void 0;var Cn=console.error.bind(console);function Uf(t,e,n){let r=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}var OCe=(t,e,n)=>{if(!t||!t[e]){Cn("no original function "+String(e)+" to wrap");return}if(!n){Cn("no wrapper function"),Cn(new Error().stack);return}let r=t[e];if(typeof r!="function"||typeof n!="function"){Cn("original object and wrapper must be functions");return}let o=n(r,e);return Uf(o,"__original",r),Uf(o,"__unwrap",()=>{t[e]===o&&Uf(t,e,r)}),Uf(o,"__wrapped",!0),Uf(t,e,o),o};Qt.wrap=OCe;var CCe=(t,e,n)=>{if(t)Array.isArray(t)||(t=[t]);else{Cn("must provide one or more modules to patch"),Cn(new Error().stack);return}if(!(e&&Array.isArray(e))){Cn("must provide one or more functions to wrap on modules");return}t.forEach(r=>{e.forEach(o=>{(0,Qt.wrap)(r,o,n)})})};Qt.massWrap=CCe;var NCe=(t,e)=>{if(!t||!t[e]){Cn("no function to unwrap."),Cn(new Error().stack);return}let n=t[e];if(!n.__unwrap)Cn("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{n.__unwrap();return}};Qt.unwrap=NCe;var xCe=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Cn("must provide one or more modules to patch"),Cn(new Error().stack);return}if(!(e&&Array.isArray(e))){Cn("must provide one or more functions to unwrap on modules");return}t.forEach(n=>{e.forEach(r=>{(0,Qt.unwrap)(n,r)})})};Qt.massUnwrap=xCe;function Bf(t){t&&t.logger&&(typeof t.logger!="function"?Cn("new logger isn't a function, not replacing"):Cn=t.logger)}Qt.default=Bf;Bf.wrap=Qt.wrap;Bf.massWrap=Qt.massWrap;Bf.unwrap=Qt.unwrap;Bf.massUnwrap=Qt.massUnwrap});var V$=T(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0});sS.InstrumentationAbstract=void 0;var hN=(P(),N(L)),PCe=lN(),oS=_N(),gN=class{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,n,r){this.instrumentationName=e,this.instrumentationVersion=n,this.setConfig(r),this._diag=hN.diag.createComponentLogger({namespace:e}),this._tracer=hN.trace.getTracer(e,n),this._meter=hN.metrics.getMeter(e,n),this._logger=PCe.logs.getLogger(e,n),this._updateMetricInstruments()}_wrap=oS.wrap;_unwrap=oS.unwrap;_massWrap=oS.massWrap;_massUnwrap=oS.massUnwrap;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(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,n,r,o){if(e)try{e(r,o)}catch(s){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},s)}}};sS.InstrumentationAbstract=gN});var q$=T(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.ModuleNameTrie=vi.ModuleNameSeparator=void 0;vi.ModuleNameSeparator="/";var iS=class{hooks=[];children=new Map},TN=class{_trie=new iS;_counter=0;insert(e){let n=this._trie;for(let r of e.moduleName.split(vi.ModuleNameSeparator)){let o=n.children.get(r);o||(o=new iS,n.children.set(r,o)),n=o}n.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:n,fullOnly:r}={}){let o=this._trie,s=[],i=!0;for(let a of e.split(vi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){i=!1;break}r||s.push(...u.hooks),o=u}return r&&i&&s.push(...o.hooks),s.length===0?[]:s.length===1?[s[0].hook]:(n&&s.sort((a,u)=>a.insertedId-u.insertedId),s.map(({hook:a})=>a))}};vi.ModuleNameTrie=TN});var z$=T(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});aS.RequireInTheMiddleSingleton=void 0;var MCe=fa(),$$=U("path"),EN=q$(),vCe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),SN=class t{_moduleNameTrie=new EN.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new MCe.Hook(null,{internals:!0},(e,n,r)=>{let o=kCe(n),s=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:r===void 0});for(let{onRequire:i}of s)e=i(e,n,r);return e})}register(e,n){let r={moduleName:e,onRequire:n};return this._moduleNameTrie.insert(r),r}static getInstance(){return vCe?new t:this._instance=this._instance??new t}};aS.RequireInTheMiddleSingleton=SN;function kCe(t){return $$.sep!==EN.ModuleNameSeparator?t.split($$.sep).join(EN.ModuleNameSeparator):t}});var AN=T(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.isWrapped=ki.safeExecuteInTheMiddleAsync=ki.safeExecuteInTheMiddle=void 0;function LCe(t,e,n){let r,o;try{o=t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}ki.safeExecuteInTheMiddle=LCe;async function wCe(t,e,n){let r,o;try{o=await t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}ki.safeExecuteInTheMiddleAsync=wCe;function DCe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ki.isWrapped=DCe});var K$=T(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.InstrumentationBase=void 0;var Ff=U("path"),Y$=U("util"),UCe=H$(),yN=_N(),BCe=V$(),FCe=z$(),GCe=nC(),Gf=(P(),N(L)),jCe=fa(),HCe=U("fs"),VCe=AN(),bN=class extends BCe.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=FCe.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,n,r){super(e,n,r);let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_wrap=(e,n,r)=>{if((0,VCe.isWrapped)(e[n])&&this._unwrap(e,n),Y$.types.isProxy(e)){let o=(0,yN.wrap)(Object.assign({},e),n,r);return Object.defineProperty(e,n,{value:o}),o}else return(0,yN.wrap)(e,n,r)};_unwrap=(e,n)=>Y$.types.isProxy(e)?Object.defineProperty(e,n,{value:e[n]}):(0,yN.unwrap)(e,n);_massWrap=(e,n,r)=>{if(e)Array.isArray(e)||(e=[e]);else{Gf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){Gf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(o=>{n.forEach(s=>{this._wrap(o,s,r)})})};_massUnwrap=(e,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Gf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){Gf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(r=>{n.forEach(o=>{this._unwrap(r,o)})})};_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:n}=e;try{let r=U.resolve(n);U.cache[r]&&this._diag.warn(`Module ${n} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${n}`)}catch{}})}_extractPackageVersion(e){try{let n=(0,HCe.readFileSync)(Ff.join(e,"package.json"),{encoding:"utf8"}),r=JSON.parse(n).version;return typeof r=="string"?r:void 0}catch{Gf.diag.warn("Failed extracting version",e)}}_onRequire(e,n,r,o){if(!o)return typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(n)):n;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===r)return W$(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(n,e.moduleVersion)):n;let i=e.files??[],a=Ff.normalize(r);return i.filter(l=>l.name===a).filter(l=>W$(l.supportedVersions,s,e.includePrerelease)).reduce((l,d)=>(d.moduleExports=l,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:d.name,baseDir:o}),d.patch(l,e.moduleVersion)):l),n)}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 n of e.files)n.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.patch(n.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let n=(i,a,u)=>{if(!u&&Ff.isAbsolute(a)){let l=Ff.parse(a);a=l.name,u=l.dir}return this._onRequire(e,i,a,u)},r=(i,a,u)=>this._onRequire(e,i,a,u),o=Ff.isAbsolute(e.name)?new jCe.Hook([e.name],{internals:!0},r):this._requireInTheMiddleSingleton.register(e.name,r);this._hooks.push(o);let s=new GCe.Hook([e.name],{internals:!1},n);this._hooks.push(s)}}}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 n of e.files)n.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.unpatch(n.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};uS.InstrumentationBase=bN;function W$(t,e,n){return typeof e>"u"?t.includes("*"):t.some(r=>(0,UCe.satisfies)(e,r,{includePrerelease:n}))}});var Q$=T(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.normalize=void 0;var qCe=U("path");Object.defineProperty(cS,"normalize",{enumerable:!0,get:function(){return qCe.normalize}})});var J$=T(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.normalize=vl.InstrumentationBase=void 0;var $Ce=K$();Object.defineProperty(vl,"InstrumentationBase",{enumerable:!0,get:function(){return $Ce.InstrumentationBase}});var zCe=Q$();Object.defineProperty(vl,"normalize",{enumerable:!0,get:function(){return zCe.normalize}})});var RN=T(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.normalize=kl.InstrumentationBase=void 0;var X$=J$();Object.defineProperty(kl,"InstrumentationBase",{enumerable:!0,get:function(){return X$.InstrumentationBase}});Object.defineProperty(kl,"normalize",{enumerable:!0,get:function(){return X$.normalize}})});var Z$=T(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.InstrumentationNodeModuleDefinition=void 0;var IN=class{name;supportedVersions;patch;unpatch;files;constructor(e,n,r,o,s){this.name=e,this.supportedVersions=n,this.patch=r,this.unpatch=o,this.files=s||[]}};lS.InstrumentationNodeModuleDefinition=IN});var ez=T(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.InstrumentationNodeModuleFile=void 0;var YCe=RN(),ON=class{supportedVersions;patch;unpatch;name;constructor(e,n,r,o){this.supportedVersions=n,this.patch=r,this.unpatch=o,this.name=(0,YCe.normalize)(e)}};dS.InstrumentationNodeModuleFile=ON});var tz=T(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.semconvStabilityFromStr=Ja.SemconvStability=void 0;var pS;(function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"})(pS=Ja.SemconvStability||(Ja.SemconvStability={}));function WCe(t,e){let n=pS.OLD,r=e?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(let o of r??[])if(o.toLowerCase()===t+"/dup"){n=pS.DUPLICATE;break}else o.toLowerCase()===t&&(n=pS.STABLE);return n}Ja.semconvStabilityFromStr=WCe});var rz=T(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.semconvStabilityFromStr=gt.SemconvStability=gt.safeExecuteInTheMiddleAsync=gt.safeExecuteInTheMiddle=gt.isWrapped=gt.InstrumentationNodeModuleFile=gt.InstrumentationNodeModuleDefinition=gt.InstrumentationBase=gt.registerInstrumentations=void 0;var KCe=k$();Object.defineProperty(gt,"registerInstrumentations",{enumerable:!0,get:function(){return KCe.registerInstrumentations}});var QCe=RN();Object.defineProperty(gt,"InstrumentationBase",{enumerable:!0,get:function(){return QCe.InstrumentationBase}});var JCe=Z$();Object.defineProperty(gt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return JCe.InstrumentationNodeModuleDefinition}});var XCe=ez();Object.defineProperty(gt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return XCe.InstrumentationNodeModuleFile}});var CN=AN();Object.defineProperty(gt,"isWrapped",{enumerable:!0,get:function(){return CN.isWrapped}});Object.defineProperty(gt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return CN.safeExecuteInTheMiddle}});Object.defineProperty(gt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return CN.safeExecuteInTheMiddleAsync}});var nz=tz();Object.defineProperty(gt,"SemconvStability",{enumerable:!0,get:function(){return nz.SemconvStability}});Object.defineProperty(gt,"semconvStabilityFromStr",{enumerable:!0,get:function(){return nz.semconvStabilityFromStr}})});var fz=T(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.PACKAGE_NAME=wl.PACKAGE_VERSION=void 0;wl.PACKAGE_VERSION="0.60.0";wl.PACKAGE_NAME="@opentelemetry/instrumentation-hapi"});var MN=T(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.HapiLifecycleMethodNames=wo.HapiLayerType=wo.handlerPatched=wo.HapiComponentName=void 0;wo.HapiComponentName="@hapi/hapi";wo.handlerPatched=Symbol("hapi-handler-patched");wo.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"};wo.HapiLifecycleMethodNames=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"])});var mz=T(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.ATTR_HTTP_METHOD=void 0;mS.ATTR_HTTP_METHOD="http.method"});var vN=T(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.AttributeNames=void 0;var mNe;(function(t){t.HAPI_TYPE="hapi.type",t.PLUGIN_NAME="hapi.plugin.name",t.EXT_TYPE="server.ext.type"})(mNe=jf.AttributeNames||(jf.AttributeNames={}))});var gz=T(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getPluginFromInput=Tt.getExtMetadata=Tt.getRouteMetadata=Tt.isPatchableExtMethod=Tt.isDirectExtInput=Tt.isLifecycleExtEventObj=Tt.isLifecycleExtType=Tt.getPluginName=void 0;var _z=(de(),N(Ie)),_Ne=mz(),Hf=MN(),Li=vN(),hz=re();function hNe(t){return t.name?t.name:t.pkg.name}Tt.getPluginName=hNe;var gNe=t=>typeof t=="string"&&Hf.HapiLifecycleMethodNames.has(t);Tt.isLifecycleExtType=gNe;var TNe=t=>{let e=t?.type;return e!==void 0&&(0,Tt.isLifecycleExtType)(e)};Tt.isLifecycleExtEventObj=TNe;var ENe=t=>Array.isArray(t)&&t.length<=3&&(0,Tt.isLifecycleExtType)(t[0])&&typeof t[1]=="function";Tt.isDirectExtInput=ENe;var SNe=t=>!Array.isArray(t);Tt.isPatchableExtMethod=SNe;var ANe=(t,e,n)=>{let r={[_z.ATTR_HTTP_ROUTE]:t.path};e&hz.SemconvStability.OLD&&(r[_Ne.ATTR_HTTP_METHOD]=t.method),e&hz.SemconvStability.STABLE&&(r[_z.ATTR_HTTP_REQUEST_METHOD]=t.method);let o;return n?(r[Li.AttributeNames.HAPI_TYPE]=Hf.HapiLayerType.PLUGIN,r[Li.AttributeNames.PLUGIN_NAME]=n,o=`${n}: route - ${t.path}`):(r[Li.AttributeNames.HAPI_TYPE]=Hf.HapiLayerType.ROUTER,o=`route - ${t.path}`),{attributes:r,name:o}};Tt.getRouteMetadata=ANe;var yNe=(t,e,n)=>{let r=`ext - ${t}`;return n&&n!=="method"&&(r=`ext - ${t} - ${n}`),e?{attributes:{[Li.AttributeNames.EXT_TYPE]:t,[Li.AttributeNames.HAPI_TYPE]:Hf.HapiLayerType.EXT,[Li.AttributeNames.PLUGIN_NAME]:e},name:`${e}: ${r}`}:{attributes:{[Li.AttributeNames.EXT_TYPE]:t,[Li.AttributeNames.HAPI_TYPE]:Hf.HapiLayerType.EXT},name:r}};Tt.getExtMetadata=yNe;var bNe=t=>"plugin"in t?"plugin"in t.plugin?t.plugin.plugin:t.plugin:t;Tt.getPluginFromInput=bNe});var Sz=T(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});_S.HapiInstrumentation=void 0;var sr=(P(),N(L)),Tz=Ae(),Vf=re(),Ez=fz(),qf=MN(),bs=gz(),kN=class extends Vf.InstrumentationBase{_semconvStability;constructor(e={}){super(Ez.PACKAGE_NAME,Ez.PACKAGE_VERSION,e),this._semconvStability=(0,Vf.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new Vf.InstrumentationNodeModuleDefinition(qf.HapiComponentName,[">=17.0.0 <22"],e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,Vf.isWrapped)(n.server)||this._wrap(n,"server",this._getServerPatch.bind(this)),(0,Vf.isWrapped)(n.Server)||this._wrap(n,"Server",this._getServerPatch.bind(this)),n},e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;this._massUnwrap([n],["server","Server"])})}_getServerPatch(e){let n=this,r=this;return function(s){let i=e.apply(this,[s]);return r._wrap(i,"route",a=>n._getServerRoutePatch.bind(n)(a)),r._wrap(i,"ext",a=>n._getServerExtPatch.bind(n)(a)),r._wrap(i,"register",n._getServerRegisterPatch.bind(n)),i}}_getServerRegisterPatch(e){let n=this;return function(o,s){if(Array.isArray(o))for(let i of o){let a=(0,bs.getPluginFromInput)(i);n._wrapRegisterHandler(a)}else{let i=(0,bs.getPluginFromInput)(o);n._wrapRegisterHandler(i)}return e.apply(this,[o,s])}}_getServerExtPatch(e,n){let r=this;return function(...s){if(Array.isArray(s[0])){let i=s[0];for(let a=0;a<i.length;a++){let u=i[a];if((0,bs.isLifecycleExtType)(u.type)){let l=u,d=r._wrapExtMethods(l.method,u.type,n);l.method=d,i[a]=l}}return e.apply(this,s)}else if((0,bs.isDirectExtInput)(s)){let i=s,a=i[1],u=r._wrapExtMethods(a,i[0],n);return e.apply(this,[i[0],u,i[2]])}else if((0,bs.isLifecycleExtEventObj)(s[0])){let i=s[0],a=r._wrapExtMethods(i.method,i.type,n);return i.method=a,e.call(this,i)}return e.apply(this,s)}}_getServerRoutePatch(e,n){let r=this;return function(o){if(Array.isArray(o))for(let s=0;s<o.length;s++){let i=r._wrapRouteHandler.call(r,o[s],n);o[s]=i}else o=r._wrapRouteHandler.call(r,o,n);return e.apply(this,[o])}}_wrapRegisterHandler(e){let n=this,r=(0,bs.getPluginName)(e),o=e.register,s=this,i=function(a,u){return s._wrap(a,"route",l=>n._getServerRoutePatch.bind(n)(l,r)),s._wrap(a,"ext",l=>n._getServerExtPatch.bind(n)(l,r)),o.call(this,a,u)};e.register=i}_wrapExtMethods(e,n,r){let o=this;if(e instanceof Array){for(let s=0;s<e.length;s++)e[s]=o._wrapExtMethods(e[s],n);return e}else if((0,bs.isPatchableExtMethod)(e))return e[qf.handlerPatched]===!0?e:(e[qf.handlerPatched]=!0,async function(...i){if(sr.trace.getSpan(sr.context.active())===void 0)return await e.apply(this,i);let a=(0,bs.getExtMetadata)(n,r,e.name),u=o.tracer.startSpan(a.name,{attributes:a.attributes});try{return await sr.context.with(sr.trace.setSpan(sr.context.active(),u),e,void 0,...i)}catch(l){throw u.recordException(l),u.setStatus({code:sr.SpanStatusCode.ERROR,message:l.message}),l}finally{u.end()}});return e}_wrapRouteHandler(e,n){let r=this;if(e[qf.handlerPatched]===!0)return e;e[qf.handlerPatched]=!0;let o=s=>async function(...i){if(sr.trace.getSpan(sr.context.active())===void 0)return await s.call(this,...i);let a=(0,Tz.getRPCMetadata)(sr.context.active());a?.type===Tz.RPCType.HTTP&&(a.route=e.path);let u=(0,bs.getRouteMetadata)(e,r._semconvStability,n),l=r.tracer.startSpan(u.name,{attributes:u.attributes});try{return await sr.context.with(sr.trace.setSpan(sr.context.active(),l),()=>s.call(this,...i))}catch(d){throw l.recordException(d),l.setStatus({code:sr.SpanStatusCode.ERROR,message:d.message}),d}finally{l.end()}};if(typeof e.handler=="function")e.handler=o(e.handler);else if(typeof e.options=="function"){let s=e.options;e.options=function(i){let a=s(i);return typeof a.handler=="function"&&(a.handler=o(a.handler)),a}}else typeof e.options?.handler=="function"&&(e.options.handler=o(e.options.handler));return e}};_S.HapiInstrumentation=kN});var Az=T(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.AttributeNames=Dl.HapiInstrumentation=void 0;var RNe=Sz();Object.defineProperty(Dl,"HapiInstrumentation",{enumerable:!0,get:function(){return RNe.HapiInstrumentation}});var INe=vN();Object.defineProperty(Dl,"AttributeNames",{enumerable:!0,get:function(){return INe.AttributeNames}})});var TS=T(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.KoaLayerType=void 0;var MNe;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware"})(MNe=zf.KoaLayerType||(zf.KoaLayerType={}))});var xz=T(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.PACKAGE_NAME=Ul.PACKAGE_VERSION=void 0;Ul.PACKAGE_VERSION="0.62.0";Ul.PACKAGE_NAME="@opentelemetry/instrumentation-koa"});var LN=T(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.AttributeNames=void 0;var vNe;(function(t){t.KOA_TYPE="koa.type",t.KOA_NAME="koa.name"})(vNe=Yf.AttributeNames||(Yf.AttributeNames={}))});var Mz=T(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isLayerIgnored=Bl.getMiddlewareMetadata=void 0;var Pz=TS(),ES=LN(),kNe=(de(),N(Ie)),LNe=(t,e,n,r)=>n?{attributes:{[ES.AttributeNames.KOA_NAME]:r?.toString(),[ES.AttributeNames.KOA_TYPE]:Pz.KoaLayerType.ROUTER,[kNe.ATTR_HTTP_ROUTE]:r?.toString()},name:t._matchedRouteName||`router - ${r}`}:{attributes:{[ES.AttributeNames.KOA_NAME]:e.name??"middleware",[ES.AttributeNames.KOA_TYPE]:Pz.KoaLayerType.MIDDLEWARE},name:`middleware - ${e.name}`};Bl.getMiddlewareMetadata=LNe;var wNe=(t,e)=>!!(Array.isArray(e?.ignoreLayersType)&&e?.ignoreLayersType?.includes(t));Bl.isLayerIgnored=wNe});var vz=T(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.kLayerPatched=void 0;SS.kLayerPatched=Symbol("koa-layer-patched")});var Bz=T(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.KoaInstrumentation=void 0;var Do=(P(),N(L)),Wf=re(),kz=TS(),Lz=xz(),wz=Mz(),Dz=Ae(),Uz=vz(),wN=class extends Wf.InstrumentationBase{constructor(e={}){super(Lz.PACKAGE_NAME,Lz.PACKAGE_VERSION,e)}init(){return new Wf.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <4"],e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;return n==null?n:((0,Wf.isWrapped)(n.prototype.use)&&this._unwrap(n.prototype,"use"),this._wrap(n.prototype,"use",this._getKoaUsePatch.bind(this)),e)},e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;(0,Wf.isWrapped)(n.prototype.use)&&this._unwrap(n.prototype,"use")})}_getKoaUsePatch(e){let n=this;return function(o){let s;return o.router?s=n._patchRouterDispatch(o):s=n._patchLayer(o,!1),e.apply(this,[s])}}_patchRouterDispatch(e){Do.diag.debug("Patching @koa/router dispatch");let r=e.router?.stack??[];for(let o of r){let s=o.path,i=o.stack;for(let a=0;a<i.length;a++){let u=i[a];i[a]=this._patchLayer(u,!0,s)}}return e}_patchLayer(e,n,r){let o=n?kz.KoaLayerType.ROUTER:kz.KoaLayerType.MIDDLEWARE;return e[Uz.kLayerPatched]===!0||(0,wz.isLayerIgnored)(o,this.getConfig())?e:e.constructor.name==="GeneratorFunction"||e.constructor.name==="AsyncGeneratorFunction"?(Do.diag.debug("ignoring generator-based Koa middleware layer"),e):(e[Uz.kLayerPatched]=!0,Do.diag.debug("patching Koa middleware layer"),async(s,i)=>{if(Do.trace.getSpan(Do.context.active())===void 0)return e(s,i);let u=(0,wz.getMiddlewareMetadata)(s,e,n,r),l=this.tracer.startSpan(u.name,{attributes:u.attributes}),d=(0,Dz.getRPCMetadata)(Do.context.active());d?.type===Dz.RPCType.HTTP&&s._matchedRoute&&(d.route=s._matchedRoute.toString());let{requestHook:p}=this.getConfig();p&&(0,Wf.safeExecuteInTheMiddle)(()=>p(l,{context:s,middlewareLayer:e,layerType:o}),m=>{m&&Do.diag.error("koa instrumentation: request hook failed",m)},!0);let f=Do.trace.setSpan(Do.context.active(),l);return Do.context.with(f,async()=>{try{return await e(s,i)}catch(m){throw l.recordException(m),m}finally{l.end()}})})}};AS.KoaInstrumentation=wN});var Fz=T(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.KoaLayerType=Di.AttributeNames=Di.KoaInstrumentation=void 0;var DNe=Bz();Object.defineProperty(Di,"KoaInstrumentation",{enumerable:!0,get:function(){return DNe.KoaInstrumentation}});var UNe=LN();Object.defineProperty(Di,"AttributeNames",{enumerable:!0,get:function(){return UNe.AttributeNames}});var BNe=TS();Object.defineProperty(Di,"KoaLayerType",{enumerable:!0,get:function(){return BNe.KoaLayerType}})});var DN=T(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.ConnectNames=eo.ConnectTypes=eo.AttributeNames=void 0;var GNe;(function(t){t.CONNECT_TYPE="connect.type",t.CONNECT_NAME="connect.name"})(GNe=eo.AttributeNames||(eo.AttributeNames={}));var jNe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(jNe=eo.ConnectTypes||(eo.ConnectTypes={}));var HNe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})(HNe=eo.ConnectNames||(eo.ConnectNames={}))});var qz=T(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.PACKAGE_NAME=Fl.PACKAGE_VERSION=void 0;Fl.PACKAGE_VERSION="0.57.0";Fl.PACKAGE_NAME="@opentelemetry/instrumentation-connect"});var $z=T(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS._LAYERS_STORE_PROPERTY=void 0;yS._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack")});var zz=T(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.generateRoute=Bi.replaceCurrentStackRoute=Bi.addNewStackLayer=void 0;var VNe=(P(),N(L)),Ui=$z(),qNe=t=>{Array.isArray(t[Ui._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,Ui._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),t[Ui._LAYERS_STORE_PROPERTY].push("/");let e=t[Ui._LAYERS_STORE_PROPERTY].length;return()=>{e===t[Ui._LAYERS_STORE_PROPERTY].length?t[Ui._LAYERS_STORE_PROPERTY].pop():VNe.diag.warn("Connect: Trying to pop the stack multiple time")}};Bi.addNewStackLayer=qNe;var $Ne=(t,e)=>{e&&t[Ui._LAYERS_STORE_PROPERTY].splice(-1,1,e)};Bi.replaceCurrentStackRoute=$Ne;var zNe=t=>t[Ui._LAYERS_STORE_PROPERTY].reduce((e,n)=>e.replace(/\/+$/,"")+n);Bi.generateRoute=zNe});var Kz=T(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.ConnectInstrumentation=Fi.ANONYMOUS_NAME=void 0;var YNe=(P(),N(L)),Yz=Ae(),Gl=DN(),Wz=qz(),bS=re(),WNe=(de(),N(Ie)),UN=zz();Fi.ANONYMOUS_NAME="anonymous";var BN=class extends bS.InstrumentationBase{constructor(e={}){super(Wz.PACKAGE_NAME,Wz.PACKAGE_VERSION,e)}init(){return[new bS.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_patchApp(e){(0,bS.isWrapped)(e.use)||this._wrap(e,"use",this._patchUse.bind(this)),(0,bS.isWrapped)(e.handle)||this._wrap(e,"handle",this._patchHandle.bind(this))}_patchConstructor(e){let n=this;return function(...r){let o=e.apply(this,r);return n._patchApp(o),o}}_patchNext(e,n){return function(o){let s=e.apply(this,[o]);return n(),s}}_startSpan(e,n){let r,o,s;e?(r=Gl.ConnectTypes.REQUEST_HANDLER,s=Gl.ConnectNames.REQUEST_HANDLER,o=e):(r=Gl.ConnectTypes.MIDDLEWARE,s=Gl.ConnectNames.MIDDLEWARE,o=n.name||Fi.ANONYMOUS_NAME);let i=`${s} - ${o}`,a={attributes:{[WNe.ATTR_HTTP_ROUTE]:e.length>0?e:"/",[Gl.AttributeNames.CONNECT_TYPE]:r,[Gl.AttributeNames.CONNECT_NAME]:o}};return this.tracer.startSpan(i,a)}_patchMiddleware(e,n){let r=this,o=n.length===4;function s(){if(!r.isEnabled())return n.apply(this,arguments);let[i,a,u]=o?[1,2,3]:[0,1,2],l=arguments[i],d=arguments[a],p=arguments[u];(0,UN.replaceCurrentStackRoute)(l,e);let f=(0,Yz.getRPCMetadata)(YNe.context.active());e&&f?.type===Yz.RPCType.HTTP&&(f.route=(0,UN.generateRoute)(l));let m="";e?m=`request handler - ${e}`:m=`middleware - ${n.name||Fi.ANONYMOUS_NAME}`;let _=r._startSpan(e,n);r._diag.debug("start span",m);let h=!1;function g(){h?r._diag.debug(`span ${_.name} - already finished`):(h=!0,r._diag.debug(`finishing span ${_.name}`),_.end()),d.removeListener("close",g)}return d.addListener("close",g),arguments[u]=r._patchNext(p,g),n.apply(this,arguments)}return Object.defineProperty(s,"length",{value:n.length,writable:!1,configurable:!0}),s}_patchUse(e){let n=this;return function(...r){let o=r[r.length-1],s=r[r.length-2]||"";return r[r.length-1]=n._patchMiddleware(s,o),e.apply(this,r)}}_patchHandle(e){let n=this;return function(){let[r,o]=[0,2],s=arguments[r],i=arguments[o],a=(0,UN.addNewStackLayer)(s);return typeof i=="function"&&(arguments[o]=n._patchOut(i,a)),e.apply(this,arguments)}}_patchOut(e,n){return function(...o){return n(),Reflect.apply(e,this,o)}}};Fi.ConnectInstrumentation=BN});var Jz=T(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.ConnectTypes=vr.ConnectNames=vr.AttributeNames=vr.ANONYMOUS_NAME=vr.ConnectInstrumentation=void 0;var Qz=Kz();Object.defineProperty(vr,"ConnectInstrumentation",{enumerable:!0,get:function(){return Qz.ConnectInstrumentation}});Object.defineProperty(vr,"ANONYMOUS_NAME",{enumerable:!0,get:function(){return Qz.ANONYMOUS_NAME}});var FN=DN();Object.defineProperty(vr,"AttributeNames",{enumerable:!0,get:function(){return FN.AttributeNames}});Object.defineProperty(vr,"ConnectNames",{enumerable:!0,get:function(){return FN.ConnectNames}});Object.defineProperty(vr,"ConnectTypes",{enumerable:!0,get:function(){return FN.ConnectTypes}})});var nY=T(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.DB_SYSTEM_VALUE_MSSQL=Dt.ATTR_NET_PEER_PORT=Dt.ATTR_NET_PEER_NAME=Dt.ATTR_DB_USER=Dt.ATTR_DB_SYSTEM=Dt.ATTR_DB_STATEMENT=Dt.ATTR_DB_SQL_TABLE=Dt.ATTR_DB_NAME=void 0;Dt.ATTR_DB_NAME="db.name";Dt.ATTR_DB_SQL_TABLE="db.sql.table";Dt.ATTR_DB_STATEMENT="db.statement";Dt.ATTR_DB_SYSTEM="db.system";Dt.ATTR_DB_USER="db.user";Dt.ATTR_NET_PEER_NAME="net.peer.name";Dt.ATTR_NET_PEER_PORT="net.peer.port";Dt.DB_SYSTEM_VALUE_MSSQL="mssql"});var rY=T(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.once=jl.getSpanName=void 0;function QNe(t,e,n,r){return t==="execBulkLoad"&&r&&e?`${t} ${r} ${e}`:t==="callProcedure"?e?`${t} ${n} ${e}`:`${t} ${n}`:e?`${t} ${e}`:`${t}`}jl.getSpanName=QNe;var JNe=t=>{let e=!1;return(...n)=>{if(!e)return e=!0,t(...n)}};jl.once=JNe});var oY=T(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.PACKAGE_NAME=Hl.PACKAGE_VERSION=void 0;Hl.PACKAGE_VERSION="0.33.0";Hl.PACKAGE_NAME="@opentelemetry/instrumentation-tedious"});var cY=T(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.TediousInstrumentation=ji.INJECTED_CTX=void 0;var Vl=(P(),N(L)),XNe=U("events"),Uo=re(),Xa=(de(),N(Ie)),Gi=nY(),sY=rY(),iY=oY(),uY=Symbol("opentelemetry.instrumentation-tedious.current-database");ji.INJECTED_CTX=Symbol("opentelemetry.instrumentation-tedious.context-info-injected");var aY=["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"];function RS(t){Object.defineProperty(this,uY,{value:t,writable:!0})}var GN=class t extends Uo.InstrumentationBase{static COMPONENT="tedious";_netSemconvStability;_dbSemconvStability;constructor(e={}){super(iY.PACKAGE_NAME,iY.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Uo.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Uo.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new Uo.InstrumentationNodeModuleDefinition(t.COMPONENT,[">=1.11.0 <20"],e=>{let n=e.Connection.prototype;for(let r of aY)(0,Uo.isWrapped)(n[r])&&this._unwrap(n,r),this._wrap(n,r,this._patchQuery(r,e));return(0,Uo.isWrapped)(n.connect)&&this._unwrap(n,"connect"),this._wrap(n,"connect",this._patchConnect),e},e=>{if(e===void 0)return;let n=e.Connection.prototype;for(let r of aY)this._unwrap(n,r);this._unwrap(n,"connect")})]}_patchConnect(e){return function(){return RS.call(this,this.config?.options?.database),this.removeListener("databaseChange",RS),this.on("databaseChange",RS),this.once("end",()=>{this.removeListener("databaseChange",RS)}),e.apply(this,arguments)}}_buildTraceparent(e){let n=e.spanContext();return`00-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||Vl.TraceFlags.NONE).toString(16)}`}_injectContextInfo(e,n,r){return new Promise(o=>{try{let s="set context_info @opentelemetry_traceparent",i=new n.Request(s,u=>{o()});Object.defineProperty(i,ji.INJECTED_CTX,{value:!0});let a=Buffer.from(r,"utf8");i.addParameter("opentelemetry_traceparent",n.TYPES.VarBinary,a,{length:a.length}),e.execSql(i)}catch{o()}})}_shouldInjectFor(e){return e==="execSql"||e==="execSqlBatch"||e==="callProcedure"||e==="execute"}_patchQuery(e,n){return r=>{let o=this;function s(i){if(i?.[ji.INJECTED_CTX])return r.apply(this,arguments);if(!(i instanceof XNe.EventEmitter))return o._diag.warn(`Unexpected invocation of patched ${e} method. Span not recorded`),r.apply(this,arguments);let a=0,u=0,l=()=>u++,d=()=>a++,p=this[uY],f=(R=>R.sqlTextOrProcedure==="sp_prepare"&&R.parametersByName?.stmt?.value?R.parametersByName.stmt.value:R.sqlTextOrProcedure)(i),m={};o._dbSemconvStability&Uo.SemconvStability.OLD&&(m[Gi.ATTR_DB_SYSTEM]=Gi.DB_SYSTEM_VALUE_MSSQL,m[Gi.ATTR_DB_NAME]=p,m[Gi.ATTR_DB_USER]=this.config?.userName??this.config?.authentication?.options?.userName,m[Gi.ATTR_DB_STATEMENT]=f,m[Gi.ATTR_DB_SQL_TABLE]=i.table),o._dbSemconvStability&Uo.SemconvStability.STABLE&&(m[Xa.ATTR_DB_NAMESPACE]=p,m[Xa.ATTR_DB_SYSTEM_NAME]=Xa.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER,m[Xa.ATTR_DB_QUERY_TEXT]=f,m[Xa.ATTR_DB_COLLECTION_NAME]=i.table),o._netSemconvStability&Uo.SemconvStability.OLD&&(m[Gi.ATTR_NET_PEER_NAME]=this.config?.server,m[Gi.ATTR_NET_PEER_PORT]=this.config?.options?.port),o._netSemconvStability&Uo.SemconvStability.STABLE&&(m[Xa.ATTR_SERVER_ADDRESS]=this.config?.server,m[Xa.ATTR_SERVER_PORT]=this.config?.options?.port);let _=o.tracer.startSpan((0,sY.getSpanName)(e,p,f,i.table),{kind:Vl.SpanKind.CLIENT,attributes:m}),h=(0,sY.once)(R=>{i.removeListener("done",l),i.removeListener("doneInProc",l),i.removeListener("doneProc",d),i.removeListener("error",h),this.removeListener("end",h),_.setAttribute("tedious.procedure_count",a),_.setAttribute("tedious.statement_count",u),R&&_.setStatus({code:Vl.SpanStatusCode.ERROR,message:R.message}),_.end()});i.on("done",l),i.on("doneInProc",l),i.on("doneProc",d),i.once("error",h),this.on("end",h),typeof i.callback=="function"?o._wrap(i,"callback",o._patchCallbackQuery(h)):o._diag.error("Expected request.callback to be a function");let g=()=>Vl.context.with(Vl.trace.setSpan(Vl.context.active(),_),r,this,...arguments);if(!(o.getConfig().enableTraceContextPropagation&&o._shouldInjectFor(e)))return g();let b=o._buildTraceparent(_);o._injectContextInfo(this,n,b).finally(g)}return Object.defineProperty(s,"length",{value:r.length,writable:!1}),s}}_patchCallbackQuery(e){return n=>function(r,o,s){return e(r),n.apply(this,arguments)}}};ji.TediousInstrumentation=GN});var lY=T(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.TediousInstrumentation=void 0;var ZNe=cY();Object.defineProperty(IS,"TediousInstrumentation",{enumerable:!0,get:function(){return ZNe.TediousInstrumentation}})});var _Y=T(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.PACKAGE_NAME=ql.PACKAGE_VERSION=void 0;ql.PACKAGE_VERSION="0.57.0";ql.PACKAGE_NAME="@opentelemetry/instrumentation-generic-pool"});var gY=T(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});OS.GenericPoolInstrumentation=void 0;var $l=(P(),N(L)),Za=re(),hY=_Y(),jN="generic-pool",HN=class extends Za.InstrumentationBase{_isDisabled=!1;constructor(e={}){super(hY.PACKAGE_NAME,hY.PACKAGE_VERSION,e)}init(){return[new Za.InstrumentationNodeModuleDefinition(jN,[">=3.0.0 <4"],e=>{let n=e.Pool;return(0,Za.isWrapped)(n.prototype.acquire)&&this._unwrap(n.prototype,"acquire"),this._wrap(n.prototype,"acquire",this._acquirePatcher.bind(this)),e},e=>{let n=e.Pool;return this._unwrap(n.prototype,"acquire"),e}),new Za.InstrumentationNodeModuleDefinition(jN,[">=2.4.0 <3"],e=>{let n=e.Pool;return(0,Za.isWrapped)(n.prototype.acquire)&&this._unwrap(n.prototype,"acquire"),this._wrap(n.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),e},e=>{let n=e.Pool;return this._unwrap(n.prototype,"acquire"),e}),new Za.InstrumentationNodeModuleDefinition(jN,[">=2.0.0 <2.4"],e=>(this._isDisabled=!1,(0,Za.isWrapped)(e.Pool)&&this._unwrap(e,"Pool"),this._wrap(e,"Pool",this._poolWrapper.bind(this)),e),e=>(this._isDisabled=!0,e))]}_acquirePatcher(e){let n=this;return function(...o){let s=$l.context.active(),i=n.tracer.startSpan("generic-pool.acquire",{},s);return $l.context.with($l.trace.setSpan(s,i),()=>e.call(this,...o).then(a=>(i.end(),a),a=>{throw i.recordException(a),i.end(),a}))}}_poolWrapper(e){let n=this;return function(){let o=e.apply(this,arguments);return n._wrap(o,"acquire",n._acquireWithCallbacksPatcher.bind(n)),o}}_acquireWithCallbacksPatcher(e){let n=this;return function(o,s){if(n._isDisabled)return e.call(this,o,s);let i=$l.context.active(),a=n.tracer.startSpan("generic-pool.acquire",{},i);return $l.context.with($l.trace.setSpan(i,a),()=>{e.call(this,(u,l)=>{if(a.end(),o)return o(u,l)},s)})}}};OS.GenericPoolInstrumentation=HN});var TY=T(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.GenericPoolInstrumentation=void 0;var nxe=gY();Object.defineProperty(CS,"GenericPoolInstrumentation",{enumerable:!0,get:function(){return nxe.GenericPoolInstrumentation}})});var VN=T(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ATTR_NET_PEER_PORT=Bo.ATTR_NET_PEER_NAME=Bo.ATTR_MESSAGING_SYSTEM=Bo.ATTR_MESSAGING_OPERATION=void 0;Bo.ATTR_MESSAGING_OPERATION="messaging.operation";Bo.ATTR_MESSAGING_SYSTEM="messaging.system";Bo.ATTR_NET_PEER_NAME="net.peer.name";Bo.ATTR_NET_PEER_PORT="net.peer.port"});var qN=T(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ATTR_MESSAGING_CONVERSATION_ID=Ke.OLD_ATTR_MESSAGING_MESSAGE_ID=Ke.MESSAGING_DESTINATION_KIND_VALUE_TOPIC=Ke.ATTR_MESSAGING_URL=Ke.ATTR_MESSAGING_PROTOCOL_VERSION=Ke.ATTR_MESSAGING_PROTOCOL=Ke.MESSAGING_OPERATION_VALUE_PROCESS=Ke.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY=Ke.ATTR_MESSAGING_DESTINATION_KIND=Ke.ATTR_MESSAGING_DESTINATION=void 0;Ke.ATTR_MESSAGING_DESTINATION="messaging.destination";Ke.ATTR_MESSAGING_DESTINATION_KIND="messaging.destination_kind";Ke.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY="messaging.rabbitmq.routing_key";Ke.MESSAGING_OPERATION_VALUE_PROCESS="process";Ke.ATTR_MESSAGING_PROTOCOL="messaging.protocol";Ke.ATTR_MESSAGING_PROTOCOL_VERSION="messaging.protocol_version";Ke.ATTR_MESSAGING_URL="messaging.url";Ke.MESSAGING_DESTINATION_KIND_VALUE_TOPIC="topic";Ke.OLD_ATTR_MESSAGING_MESSAGE_ID="messaging.message_id";Ke.ATTR_MESSAGING_CONVERSATION_ID="messaging.conversation_id"});var $N=T(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.DEFAULT_CONFIG=eu.EndOperation=void 0;var oxe;(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"})(oxe=eu.EndOperation||(eu.EndOperation={}));eu.DEFAULT_CONFIG={consumeTimeoutMs:1e3*60,useLinksForConsume:!1}});var OY=T(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.isConfirmChannelTracing=Qe.unmarkConfirmChannelTracing=Qe.markConfirmChannelTracing=Qe.getConnectionAttributesFromUrl=Qe.getConnectionAttributesFromServer=Qe.normalizeExchange=Qe.CONNECTION_ATTRIBUTES=Qe.CHANNEL_CONSUME_TIMEOUT_TIMER=Qe.CHANNEL_SPANS_NOT_ENDED=Qe.MESSAGE_STORED_SPAN=void 0;var zN=(P(),N(L)),Hi=re(),NS=(de(),N(Ie)),Kf=VN(),xS=qN();Qe.MESSAGE_STORED_SPAN=Symbol("opentelemetry.amqplib.message.stored-span");Qe.CHANNEL_SPANS_NOT_ENDED=Symbol("opentelemetry.amqplib.channel.spans-not-ended");Qe.CHANNEL_CONSUME_TIMEOUT_TIMER=Symbol("opentelemetry.amqplib.channel.consumer-timeout-timer");Qe.CONNECTION_ATTRIBUTES=Symbol("opentelemetry.amqplib.connection.attributes");var YN=(0,zN.createContextKey)("opentelemetry.amqplib.channel.is-confirm-channel"),sxe=t=>t!==""?t:"<default>";Qe.normalizeExchange=sxe;var ixe=t=>t.replace(/:[^:@/]*@/,":***@"),bY=(t,e)=>t||(e==="AMQP"?5672:5671),RY=t=>{let e=t||"amqp";return(e.endsWith(":")?e.substring(0,e.length-1):e).toUpperCase()},IY=t=>t||"localhost",Fo=(t,e,n,r)=>n?{[e]:n}:(zN.diag.error(`amqplib instrumentation: could not extract connection attribute ${r} from user supplied url`,{url:t}),{}),axe=t=>{let e=t.serverProperties.product?.toLowerCase?.();return e?{[Kf.ATTR_MESSAGING_SYSTEM]:e}:{}};Qe.getConnectionAttributesFromServer=axe;var uxe=(t,e)=>{let n={[xS.ATTR_MESSAGING_PROTOCOL_VERSION]:"0.9.1"};if(t=t||"amqp://localhost",typeof t=="object"){let r=t,o=RY(r?.protocol);Object.assign(n,{...Fo(t,xS.ATTR_MESSAGING_PROTOCOL,o,"protocol")});let s=IY(r?.hostname);e&Hi.SemconvStability.OLD&&Object.assign(n,{...Fo(t,Kf.ATTR_NET_PEER_NAME,s,"hostname")}),e&Hi.SemconvStability.STABLE&&Object.assign(n,{...Fo(t,NS.ATTR_SERVER_ADDRESS,s,"hostname")});let i=bY(r.port,o);e&Hi.SemconvStability.OLD&&Object.assign(n,Fo(t,Kf.ATTR_NET_PEER_PORT,i,"port")),e&Hi.SemconvStability.STABLE&&Object.assign(n,Fo(t,NS.ATTR_SERVER_PORT,i,"port"))}else{let r=ixe(t);n[xS.ATTR_MESSAGING_URL]=r;try{let o=new URL(r),s=RY(o.protocol);Object.assign(n,{...Fo(r,xS.ATTR_MESSAGING_PROTOCOL,s,"protocol")});let i=IY(o.hostname);e&Hi.SemconvStability.OLD&&Object.assign(n,{...Fo(r,Kf.ATTR_NET_PEER_NAME,i,"hostname")}),e&Hi.SemconvStability.STABLE&&Object.assign(n,{...Fo(r,NS.ATTR_SERVER_ADDRESS,i,"hostname")});let a=bY(o.port?parseInt(o.port):void 0,s);e&Hi.SemconvStability.OLD&&Object.assign(n,Fo(r,Kf.ATTR_NET_PEER_PORT,a,"port")),e&Hi.SemconvStability.STABLE&&Object.assign(n,Fo(r,NS.ATTR_SERVER_PORT,a,"port"))}catch(o){zN.diag.error("amqplib instrumentation: error while extracting connection details from connection url",{censoredUrl:r,err:o})}}return n};Qe.getConnectionAttributesFromUrl=uxe;var cxe=t=>t.setValue(YN,!0);Qe.markConfirmChannelTracing=cxe;var lxe=t=>t.deleteValue(YN);Qe.unmarkConfirmChannelTracing=lxe;var dxe=t=>t.getValue(YN)===!0;Qe.isConfirmChannelTracing=dxe});var CY=T(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.PACKAGE_NAME=zl.PACKAGE_VERSION=void 0;zl.PACKAGE_VERSION="0.61.0";zl.PACKAGE_NAME="@opentelemetry/instrumentation-amqplib"});var xY=T(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});vS.AmqplibInstrumentation=void 0;var He=(P(),N(L)),PS=Ae(),ye=re(),pxe=VN(),ir=qN(),Nn=$N(),Je=OY(),NY=CY(),MS=[">=0.5.5 <1"],WN=class extends ye.InstrumentationBase{_netSemconvStability;constructor(e={}){super(NY.PACKAGE_NAME,NY.PACKAGE_VERSION,{...Nn.DEFAULT_CONFIG,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,ye.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...Nn.DEFAULT_CONFIG,...e})}init(){let e=new ye.InstrumentationNodeModuleFile("amqplib/lib/channel_model.js",MS,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),n=new ye.InstrumentationNodeModuleFile("amqplib/lib/callback_model.js",MS,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),r=new ye.InstrumentationNodeModuleFile("amqplib/lib/connect.js",MS,this.patchConnect.bind(this),this.unpatchConnect.bind(this));return new ye.InstrumentationNodeModuleDefinition("amqplib",MS,void 0,void 0,[e,r,n])}patchConnect(e){return e=this.unpatchConnect(e),(0,ye.isWrapped)(e.connect)||this._wrap(e,"connect",this.getConnectPatch.bind(this)),e}unpatchConnect(e){return(0,ye.isWrapped)(e.connect)&&this._unwrap(e,"connect"),e}patchChannelModel(e,n){return(0,ye.isWrapped)(e.Channel.prototype.publish)||this._wrap(e.Channel.prototype,"publish",this.getPublishPatch.bind(this,n)),(0,ye.isWrapped)(e.Channel.prototype.consume)||this._wrap(e.Channel.prototype,"consume",this.getConsumePatch.bind(this,n)),(0,ye.isWrapped)(e.Channel.prototype.ack)||this._wrap(e.Channel.prototype,"ack",this.getAckPatch.bind(this,!1,Nn.EndOperation.Ack)),(0,ye.isWrapped)(e.Channel.prototype.nack)||this._wrap(e.Channel.prototype,"nack",this.getAckPatch.bind(this,!0,Nn.EndOperation.Nack)),(0,ye.isWrapped)(e.Channel.prototype.reject)||this._wrap(e.Channel.prototype,"reject",this.getAckPatch.bind(this,!0,Nn.EndOperation.Reject)),(0,ye.isWrapped)(e.Channel.prototype.ackAll)||this._wrap(e.Channel.prototype,"ackAll",this.getAckAllPatch.bind(this,!1,Nn.EndOperation.AckAll)),(0,ye.isWrapped)(e.Channel.prototype.nackAll)||this._wrap(e.Channel.prototype,"nackAll",this.getAckAllPatch.bind(this,!0,Nn.EndOperation.NackAll)),(0,ye.isWrapped)(e.Channel.prototype.emit)||this._wrap(e.Channel.prototype,"emit",this.getChannelEmitPatch.bind(this)),(0,ye.isWrapped)(e.ConfirmChannel.prototype.publish)||this._wrap(e.ConfirmChannel.prototype,"publish",this.getConfirmedPublishPatch.bind(this,n)),e}unpatchChannelModel(e){return(0,ye.isWrapped)(e.Channel.prototype.publish)&&this._unwrap(e.Channel.prototype,"publish"),(0,ye.isWrapped)(e.Channel.prototype.consume)&&this._unwrap(e.Channel.prototype,"consume"),(0,ye.isWrapped)(e.Channel.prototype.ack)&&this._unwrap(e.Channel.prototype,"ack"),(0,ye.isWrapped)(e.Channel.prototype.nack)&&this._unwrap(e.Channel.prototype,"nack"),(0,ye.isWrapped)(e.Channel.prototype.reject)&&this._unwrap(e.Channel.prototype,"reject"),(0,ye.isWrapped)(e.Channel.prototype.ackAll)&&this._unwrap(e.Channel.prototype,"ackAll"),(0,ye.isWrapped)(e.Channel.prototype.nackAll)&&this._unwrap(e.Channel.prototype,"nackAll"),(0,ye.isWrapped)(e.Channel.prototype.emit)&&this._unwrap(e.Channel.prototype,"emit"),(0,ye.isWrapped)(e.ConfirmChannel.prototype.publish)&&this._unwrap(e.ConfirmChannel.prototype,"publish"),e}getConnectPatch(e){let n=this;return function(o,s,i){return e.call(this,o,s,function(a,u){if(a==null){let l=(0,Je.getConnectionAttributesFromUrl)(o,n._netSemconvStability),d=(0,Je.getConnectionAttributesFromServer)(u);u[Je.CONNECTION_ATTRIBUTES]={...l,...d}}i.apply(this,arguments)})}}getChannelEmitPatch(e){let n=this;return function(o){if(o==="close"){n.endAllSpansOnChannel(this,!0,Nn.EndOperation.ChannelClosed,void 0);let s=this[Je.CHANNEL_CONSUME_TIMEOUT_TIMER];s&&clearInterval(s),this[Je.CHANNEL_CONSUME_TIMEOUT_TIMER]=void 0}else o==="error"&&n.endAllSpansOnChannel(this,!0,Nn.EndOperation.ChannelError,void 0);return e.apply(this,arguments)}}getAckAllPatch(e,n,r){let o=this;return function(i){return o.endAllSpansOnChannel(this,e,n,i),r.apply(this,arguments)}}getAckPatch(e,n,r){let o=this;return function(i,a,u){let l=this,d=n===Nn.EndOperation.Reject?a:u,p=l[Je.CHANNEL_SPANS_NOT_ENDED]??[],f=p.findIndex(m=>m.msg===i);if(f<0)o.endConsumerSpan(i,e,n,d);else if(n!==Nn.EndOperation.Reject&&a){for(let m=0;m<=f;m++)o.endConsumerSpan(p[m].msg,e,n,d);p.splice(0,f+1)}else o.endConsumerSpan(i,e,n,d),p.splice(f,1);return r.apply(this,arguments)}}getConsumePatch(e,n){let r=this;return function(s,i,a){let u=this;if(!Object.prototype.hasOwnProperty.call(u,Je.CHANNEL_SPANS_NOT_ENDED)){let{consumeTimeoutMs:d}=r.getConfig();if(d){let p=setInterval(()=>{r.checkConsumeTimeoutOnChannel(u)},d);p.unref(),u[Je.CHANNEL_CONSUME_TIMEOUT_TIMER]=p}u[Je.CHANNEL_SPANS_NOT_ENDED]=[]}let l=function(d){if(!d)return i.call(this,d);let p=d.properties.headers??{},f=He.propagation.extract(He.ROOT_CONTEXT,p),m=d.fields?.exchange,_;if(r._config.useLinksForConsume){let S=f?He.trace.getSpan(f)?.spanContext():void 0;f=void 0,S&&(_=[{context:S}])}let h=r.tracer.startSpan(`${s} process`,{kind:He.SpanKind.CONSUMER,attributes:{...u?.connection?.[Je.CONNECTION_ATTRIBUTES],[ir.ATTR_MESSAGING_DESTINATION]:m,[ir.ATTR_MESSAGING_DESTINATION_KIND]:ir.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[ir.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:d.fields?.routingKey,[pxe.ATTR_MESSAGING_OPERATION]:ir.MESSAGING_OPERATION_VALUE_PROCESS,[ir.OLD_ATTR_MESSAGING_MESSAGE_ID]:d?.properties.messageId,[ir.ATTR_MESSAGING_CONVERSATION_ID]:d?.properties.correlationId},links:_},f),{consumeHook:g}=r.getConfig();g&&(0,ye.safeExecuteInTheMiddle)(()=>g(h,{moduleVersion:e,msg:d}),S=>{S&&He.diag.error("amqplib instrumentation: consumerHook error",S)},!0),a?.noAck||(u[Je.CHANNEL_SPANS_NOT_ENDED].push({msg:d,timeOfConsume:(0,PS.hrTime)()}),d[Je.MESSAGE_STORED_SPAN]=h);let E=f||He.ROOT_CONTEXT;He.context.with(He.trace.setSpan(E,h),()=>{i.call(this,d)}),a?.noAck&&(r.callConsumeEndHook(h,d,!1,Nn.EndOperation.AutoAck),h.end())};return arguments[1]=l,n.apply(this,arguments)}}getConfirmedPublishPatch(e,n){let r=this;return function(s,i,a,u,l){let d=this,{span:p,modifiedOptions:f}=r.createPublishSpan(r,s,i,d,u),{publishHook:m}=r.getConfig();m&&(0,ye.safeExecuteInTheMiddle)(()=>m(p,{moduleVersion:e,exchange:s,routingKey:i,content:a,options:f,isConfirmChannel:!0}),E=>{E&&He.diag.error("amqplib instrumentation: publishHook error",E)},!0);let _=function(E,S){try{l?.call(this,E,S)}finally{let{publishConfirmHook:b}=r.getConfig();b&&(0,ye.safeExecuteInTheMiddle)(()=>b(p,{moduleVersion:e,exchange:s,routingKey:i,content:a,options:u,isConfirmChannel:!0,confirmError:E}),R=>{R&&He.diag.error("amqplib instrumentation: publishConfirmHook error",R)},!0),E&&p.setStatus({code:He.SpanStatusCode.ERROR,message:"message confirmation has been nack'ed"}),p.end()}},h=(0,Je.markConfirmChannelTracing)(He.context.active()),g=[...arguments];return g[3]=f,g[4]=He.context.bind((0,Je.unmarkConfirmChannelTracing)(He.trace.setSpan(h,p)),_),He.context.with(h,n.bind(this,...g))}}getPublishPatch(e,n){let r=this;return function(s,i,a,u){if((0,Je.isConfirmChannelTracing)(He.context.active()))return n.apply(this,arguments);{let l=this,{span:d,modifiedOptions:p}=r.createPublishSpan(r,s,i,l,u),{publishHook:f}=r.getConfig();f&&(0,ye.safeExecuteInTheMiddle)(()=>f(d,{moduleVersion:e,exchange:s,routingKey:i,content:a,options:p,isConfirmChannel:!1}),h=>{h&&He.diag.error("amqplib instrumentation: publishHook error",h)},!0);let m=[...arguments];m[3]=p;let _=n.apply(this,m);return d.end(),_}}}createPublishSpan(e,n,r,o,s){let i=(0,Je.normalizeExchange)(n),a=e.tracer.startSpan(`publish ${i}`,{kind:He.SpanKind.PRODUCER,attributes:{...o.connection[Je.CONNECTION_ATTRIBUTES],[ir.ATTR_MESSAGING_DESTINATION]:n,[ir.ATTR_MESSAGING_DESTINATION_KIND]:ir.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[ir.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:r,[ir.OLD_ATTR_MESSAGING_MESSAGE_ID]:s?.messageId,[ir.ATTR_MESSAGING_CONVERSATION_ID]:s?.correlationId}}),u=s??{};return u.headers=u.headers??{},He.propagation.inject(He.trace.setSpan(He.context.active(),a),u.headers),{span:a,modifiedOptions:u}}endConsumerSpan(e,n,r,o){let s=e[Je.MESSAGE_STORED_SPAN];s&&(n!==!1&&s.setStatus({code:He.SpanStatusCode.ERROR,message:r!==Nn.EndOperation.ChannelClosed&&r!==Nn.EndOperation.ChannelError?`${r} called on message${o===!0?" with requeue":o===!1?" without requeue":""}`:r}),this.callConsumeEndHook(s,e,n,r),s.end(),e[Je.MESSAGE_STORED_SPAN]=void 0)}endAllSpansOnChannel(e,n,r,o){(e[Je.CHANNEL_SPANS_NOT_ENDED]??[]).forEach(i=>{this.endConsumerSpan(i.msg,n,r,o)}),e[Je.CHANNEL_SPANS_NOT_ENDED]=[]}callConsumeEndHook(e,n,r,o){let{consumeEndHook:s}=this.getConfig();s&&(0,ye.safeExecuteInTheMiddle)(()=>s(e,{msg:n,rejected:r,endOperation:o}),i=>{i&&He.diag.error("amqplib instrumentation: consumerEndHook error",i)},!0)}checkConsumeTimeoutOnChannel(e){let n=(0,PS.hrTime)(),r=e[Je.CHANNEL_SPANS_NOT_ENDED]??[],o,{consumeTimeoutMs:s}=this.getConfig();for(o=0;o<r.length;o++){let i=r[o],a=(0,PS.hrTimeDuration)(i.timeOfConsume,n);if((0,PS.hrTimeToMilliseconds)(a)<s)break;this.endConsumerSpan(i.msg,null,Nn.EndOperation.InstrumentationTimeout,!0)}r.splice(0,o)}};vS.AmqplibInstrumentation=WN});var MY=T(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.EndOperation=Vi.DEFAULT_CONFIG=Vi.AmqplibInstrumentation=void 0;var fxe=xY();Object.defineProperty(Vi,"AmqplibInstrumentation",{enumerable:!0,get:function(){return fxe.AmqplibInstrumentation}});var PY=$N();Object.defineProperty(Vi,"DEFAULT_CONFIG",{enumerable:!0,get:function(){return PY.DEFAULT_CONFIG}});Object.defineProperty(Vi,"EndOperation",{enumerable:!0,get:function(){return PY.EndOperation}})});var iQ=T((zct,sQ)=>{"use strict";var ZK="-",HDe=/^xn--/,VDe=/[^\0-\x7F]/,qDe=/[\x2E\u3002\uFF0E\uFF61]/g,$De={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wP=35,Ko=Math.floor,DP=String.fromCharCode;function Xi(t){throw new RangeError($De[t])}function zDe(t,e){let n=[],r=t.length;for(;r--;)n[r]=e(t[r]);return n}function eQ(t,e){let n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(qDe,".");let o=t.split("."),s=zDe(o,e).join(".");return r+s}function tQ(t){let e=[],n=0,r=t.length;for(;n<r;){let o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){let s=t.charCodeAt(n++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),n--)}else e.push(o)}return e}var YDe=t=>String.fromCodePoint(...t),WDe=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},XK=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},nQ=function(t,e,n){let r=0;for(t=n?Ko(t/700):t>>1,t+=Ko(t/e);t>wP*26>>1;r+=36)t=Ko(t/wP);return Ko(r+(wP+1)*t/(t+38))},rQ=function(t){let e=[],n=t.length,r=0,o=128,s=72,i=t.lastIndexOf(ZK);i<0&&(i=0);for(let a=0;a<i;++a)t.charCodeAt(a)>=128&&Xi("not-basic"),e.push(t.charCodeAt(a));for(let a=i>0?i+1:0;a<n;){let u=r;for(let d=1,p=36;;p+=36){a>=n&&Xi("invalid-input");let f=WDe(t.charCodeAt(a++));f>=36&&Xi("invalid-input"),f>Ko((2147483647-r)/d)&&Xi("overflow"),r+=f*d;let m=p<=s?1:p>=s+26?26:p-s;if(f<m)break;let _=36-m;d>Ko(2147483647/_)&&Xi("overflow"),d*=_}let l=e.length+1;s=nQ(r-u,l,u==0),Ko(r/l)>2147483647-o&&Xi("overflow"),o+=Ko(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},oQ=function(t){let e=[];t=tQ(t);let n=t.length,r=128,o=0,s=72;for(let u of t)u<128&&e.push(DP(u));let i=e.length,a=i;for(i&&e.push(ZK);a<n;){let u=2147483647;for(let d of t)d>=r&&d<u&&(u=d);let l=a+1;u-r>Ko((2147483647-o)/l)&&Xi("overflow"),o+=(u-r)*l,r=u;for(let d of t)if(d<r&&++o>2147483647&&Xi("overflow"),d===r){let p=o;for(let f=36;;f+=36){let m=f<=s?1:f>=s+26?26:f-s;if(p<m)break;let _=p-m,h=36-m;e.push(DP(XK(m+_%h,0))),p=Ko(_/h)}e.push(DP(XK(p,0))),s=nQ(o,l,a===i),o=0,++a}++o,++r}return e.join("")},KDe=function(t){return eQ(t,function(e){return HDe.test(e)?rQ(e.slice(4).toLowerCase()):e})},QDe=function(t){return eQ(t,function(e){return VDe.test(e)?"xn--"+oQ(e):e})},JDe={version:"2.3.1",ucs2:{decode:tQ,encode:YDe},decode:rQ,encode:oQ,toASCII:QDe,toUnicode:KDe};sQ.exports=JDe});P();var MV=Q(tF(),1);var M=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Z=globalThis;var pe="10.47.0";function Tn(){return $s(Z),Z}function $s(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||pe,e[pe]=e[pe]||{}}function jr(t,e,n=Z){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[pe]=r[pe]||{};return o[t]||(o[t]=e())}var Kd=["debug","info","warn","error","log","assert","trace"],ffe="Sentry Logger ",oc={};function nt(t){if(!("console"in Z))return t();let e=Z.console,n={},r=Object.keys(oc);r.forEach(o=>{let s=oc[o];n[o]=e[o],e[o]=s});try{return t()}finally{r.forEach(o=>{e[o]=n[o]})}}function mfe(){Eb().enabled=!0}function _fe(){Eb().enabled=!1}function nF(){return Eb().enabled}function hfe(...t){Tb("log",...t)}function gfe(...t){Tb("warn",...t)}function Tfe(...t){Tb("error",...t)}function Tb(t,...e){M&&nF()&&nt(()=>{Z.console[t](`${ffe}[${t}]:`,...e)})}function Eb(){return M?jr("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var y={enable:mfe,disable:_fe,isEnabled:nF,log:hfe,warn:gfe,error:Tfe};var Q_="?",rF=/\(error: (.*)\)/,oF=/captureMessage|captureException/;function J_(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let s=[],i=n.split(`
|
|
12
|
+
Mongoose Error Code: ${e.code}`:""}`})}function MC(t,e,n,r=void 0){n&&(0,yf.safeExecuteInTheMiddle)(()=>n(t,{moduleVersion:r,response:e}),o=>{o&&G5.diag.error("mongoose instrumentation: responseHook error",o)},!0)}function pIe(t,e,n,r=void 0){return t instanceof Promise?t.then(o=>(MC(e,o,n,r),o)).catch(o=>{throw j5(e,o),o}).finally(()=>e.end()):(MC(e,t,n,r),e.end(),t)}Ii.handlePromiseResponse=pIe;function fIe(t,e,n,r,o,s,i=void 0){let a=0;return o.length===2?a=1:o.length===3&&(a=2),o[a]=(u,l)=>(u?j5(r,u):MC(r,l,s,i),r.end(),t(u,l)),e.apply(n,o)}Ii.handleCallbackResponse=fIe});var V5=T(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.PACKAGE_NAME=Tl.PACKAGE_VERSION=void 0;Tl.PACKAGE_VERSION="0.60.0";Tl.PACKAGE_NAME="@opentelemetry/instrumentation-mongoose"});var W5=T(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.MongooseInstrumentation=Bn._ALREADY_INSTRUMENTED=Bn._STORED_PARENT_SPAN=void 0;var Rt=(P(),N(L)),mIe=Ae(),vC=H5(),Kt=re(),q5=V5(),Oi=PC(),Ya=(de(),N(Ie)),TE=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],_Ie=["remove","count","findOneAndRemove",...TE],hIe=["count","findOneAndRemove",...TE],gIe=[...TE];function $5(t){return t?t.startsWith("6.")||t.startsWith("5.")?_Ie:t.startsWith("7.")?hIe:gIe:TE}function z5(t){return t&&(t.startsWith("5.")||t.startsWith("6."))||!1}function Y5(t){return!t||!t.startsWith("8.")?!1:parseInt(t.split(".")[1],10)>=21}Bn._STORED_PARENT_SPAN=Symbol("stored-parent-span");Bn._ALREADY_INSTRUMENTED=Symbol("already-instrumented");var kC=class extends Kt.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(q5.PACKAGE_NAME,q5.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Kt.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Kt.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new Kt.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <10"],this.patch.bind(this),this.unpatch.bind(this))}patch(e,n){let r=e[Symbol.toStringTag]==="Module"?e.default:e;return this._wrap(r.Model.prototype,"save",this.patchOnModelMethods("save",n)),r.Model.prototype.$save=r.Model.prototype.save,z5(n)&&this._wrap(r.Model.prototype,"remove",this.patchOnModelMethods("remove",n)),Y5(n)&&(this._wrap(r.Model.prototype,"updateOne",this._patchDocumentUpdateMethods("updateOne",n)),this._wrap(r.Model.prototype,"deleteOne",this._patchDocumentUpdateMethods("deleteOne",n))),this._wrap(r.Query.prototype,"exec",this.patchQueryExec(n)),this._wrap(r.Aggregate.prototype,"exec",this.patchAggregateExec(n)),$5(n).forEach(s=>{this._wrap(r.Query.prototype,s,this.patchAndCaptureSpanContext(s))}),this._wrap(r.Model,"aggregate",this.patchModelAggregate()),this._wrap(r.Model,"insertMany",this.patchModelStatic("insertMany",n)),this._wrap(r.Model,"bulkWrite",this.patchModelStatic("bulkWrite",n)),r}unpatch(e,n){let r=e[Symbol.toStringTag]==="Module"?e.default:e,o=$5(n);this._unwrap(r.Model.prototype,"save"),r.Model.prototype.$save=r.Model.prototype.save,z5(n)&&this._unwrap(r.Model.prototype,"remove"),Y5(n)&&(this._unwrap(r.Model.prototype,"updateOne"),this._unwrap(r.Model.prototype,"deleteOne")),this._unwrap(r.Query.prototype,"exec"),this._unwrap(r.Aggregate.prototype,"exec"),o.forEach(s=>{this._unwrap(r.Query.prototype,s)}),this._unwrap(r.Model,"aggregate"),this._unwrap(r.Model,"insertMany"),this._unwrap(r.Model,"bulkWrite")}patchAggregateExec(e){let n=this;return r=>function(s){if(n.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return r.apply(this,arguments);let i=this[Bn._STORED_PARENT_SPAN],a={},{dbStatementSerializer:u}=n.getConfig();if(u){let d=u("aggregate",{options:this.options,aggregatePipeline:this._pipeline});n._dbSemconvStability&Kt.SemconvStability.OLD&&(a[Oi.ATTR_DB_STATEMENT]=d),n._dbSemconvStability&Kt.SemconvStability.STABLE&&(a[Ya.ATTR_DB_QUERY_TEXT]=d)}let l=n._startSpan(this._model.collection,this._model?.modelName,"aggregate",a,i);return n._handleResponse(l,r,this,arguments,s,e)}}patchQueryExec(e){let n=this;return r=>function(s){if(this[Bn._ALREADY_INSTRUMENTED])return r.apply(this,arguments);if(n.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return r.apply(this,arguments);let i=this[Bn._STORED_PARENT_SPAN],a={},{dbStatementSerializer:u}=n.getConfig();if(u){let d=u(this.op,{condition:this.getFilter?.()??this._conditions,updates:this._update,options:this.getOptions?.()??this.options,fields:this._fields});n._dbSemconvStability&Kt.SemconvStability.OLD&&(a[Oi.ATTR_DB_STATEMENT]=d),n._dbSemconvStability&Kt.SemconvStability.STABLE&&(a[Ya.ATTR_DB_QUERY_TEXT]=d)}let l=n._startSpan(this.mongooseCollection,this.model.modelName,this.op,a,i);return n._handleResponse(l,r,this,arguments,s,e)}}patchOnModelMethods(e,n){let r=this;return o=>function(i,a){if(r.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return o.apply(this,arguments);let u={document:this};i&&!(i instanceof Function)&&(u.options=i);let l={},{dbStatementSerializer:d}=r.getConfig();if(d){let f=d(e,u);r._dbSemconvStability&Kt.SemconvStability.OLD&&(l[Oi.ATTR_DB_STATEMENT]=f),r._dbSemconvStability&Kt.SemconvStability.STABLE&&(l[Ya.ATTR_DB_QUERY_TEXT]=f)}let p=r._startSpan(this.constructor.collection,this.constructor.modelName,e,l);return i instanceof Function&&(a=i,i=void 0),r._handleResponse(p,o,this,arguments,a,n)}}_patchDocumentUpdateMethods(e,n){let r=this;return o=>function(i,a,u){if(r.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return o.apply(this,arguments);let l=u,d=i,p=a;typeof i=="function"?(l=i,d=void 0,p=void 0):typeof a=="function"&&(l=a,p=void 0);let f={},m=r.getConfig().dbStatementSerializer;if(m){let g=m(e,{condition:{_id:this._id},updates:d,options:p});r._dbSemconvStability&Kt.SemconvStability.OLD&&(f[Oi.ATTR_DB_STATEMENT]=g),r._dbSemconvStability&Kt.SemconvStability.STABLE&&(f[Ya.ATTR_DB_QUERY_TEXT]=g)}let _=r._startSpan(this.constructor.collection,this.constructor.modelName,e,f),h=r._handleResponse(_,o,this,arguments,l,n);return h&&typeof h=="object"&&(h[Bn._ALREADY_INSTRUMENTED]=!0),h}}patchModelStatic(e,n){let r=this;return o=>function(i,a,u){if(r.getConfig().requireParentSpan&&Rt.trace.getSpan(Rt.context.active())===void 0)return o.apply(this,arguments);typeof a=="function"&&(u=a,a=void 0);let l={};switch(e){case"insertMany":l.documents=i;break;case"bulkWrite":l.operations=i;break;default:l.document=i;break}a!==void 0&&(l.options=a);let d={},{dbStatementSerializer:p}=r.getConfig();if(p){let m=p(e,l);r._dbSemconvStability&Kt.SemconvStability.OLD&&(d[Oi.ATTR_DB_STATEMENT]=m),r._dbSemconvStability&Kt.SemconvStability.STABLE&&(d[Ya.ATTR_DB_QUERY_TEXT]=m)}let f=r._startSpan(this.collection,this.modelName,e,d);return r._handleResponse(f,o,this,arguments,u,n)}}patchModelAggregate(){let e=this;return n=>function(){let o=Rt.trace.getSpan(Rt.context.active()),s=e._callOriginalFunction(()=>n.apply(this,arguments));return s&&(s[Bn._STORED_PARENT_SPAN]=o),s}}patchAndCaptureSpanContext(e){let n=this;return r=>function(){return this[Bn._STORED_PARENT_SPAN]=Rt.trace.getSpan(Rt.context.active()),n._callOriginalFunction(()=>r.apply(this,arguments))}}_startSpan(e,n,r,o,s){let i={...o,...(0,vC.getAttributesFromCollection)(e,this._dbSemconvStability,this._netSemconvStability)};this._dbSemconvStability&Kt.SemconvStability.OLD&&(i[Oi.ATTR_DB_OPERATION]=r,i[Oi.ATTR_DB_SYSTEM]="mongoose"),this._dbSemconvStability&Kt.SemconvStability.STABLE&&(i[Ya.ATTR_DB_OPERATION_NAME]=r,i[Ya.ATTR_DB_SYSTEM_NAME]=Oi.DB_SYSTEM_NAME_VALUE_MONGODB);let a=this._dbSemconvStability&Kt.SemconvStability.STABLE?`${r} ${e.name}`:`mongoose.${n}.${r}`;return this.tracer.startSpan(a,{kind:Rt.SpanKind.CLIENT,attributes:i},s?Rt.trace.setSpan(Rt.context.active(),s):void 0)}_handleResponse(e,n,r,o,s,i=void 0){let a=this;if(s instanceof Function)return a._callOriginalFunction(()=>(0,vC.handleCallbackResponse)(s,n,r,e,o,a.getConfig().responseHook,i));{let u=a._callOriginalFunction(()=>n.apply(r,o));return(0,vC.handlePromiseResponse)(u,e,a.getConfig().responseHook,i)}}_callOriginalFunction(e){return this.getConfig().suppressInternalInstrumentation?Rt.context.with((0,mIe.suppressTracing)(Rt.context.active()),e):e()}};Bn.MongooseInstrumentation=kC});var K5=T(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.MongooseInstrumentation=void 0;var TIe=W5();Object.defineProperty(EE,"MongooseInstrumentation",{enumerable:!0,get:function(){return TIe.MongooseInstrumentation}})});var e9=T(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.METRIC_DB_CLIENT_CONNECTIONS_USAGE=ht.DB_SYSTEM_VALUE_MYSQL=ht.ATTR_NET_PEER_PORT=ht.ATTR_NET_PEER_NAME=ht.ATTR_DB_USER=ht.ATTR_DB_SYSTEM=ht.ATTR_DB_STATEMENT=ht.ATTR_DB_NAME=ht.ATTR_DB_CONNECTION_STRING=void 0;ht.ATTR_DB_CONNECTION_STRING="db.connection_string";ht.ATTR_DB_NAME="db.name";ht.ATTR_DB_STATEMENT="db.statement";ht.ATTR_DB_SYSTEM="db.system";ht.ATTR_DB_USER="db.user";ht.ATTR_NET_PEER_NAME="net.peer.name";ht.ATTR_NET_PEER_PORT="net.peer.port";ht.DB_SYSTEM_VALUE_MYSQL="mysql";ht.METRIC_DB_CLIENT_CONNECTIONS_USAGE="db.client.connections.usage"});var t9=T(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.AttributeNames=void 0;var SIe;(function(t){t.MYSQL_VALUES="db.mysql.values"})(SIe=bf.AttributeNames||(bf.AttributeNames={}))});var n9=T(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getPoolNameOld=un.arrayStringifyHelper=un.getSpanName=un.getDbValues=un.getDbQueryText=un.getJDBCString=un.getConfig=void 0;function AIe(t){let{host:e,port:n,database:r,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:n,database:r,user:o}}un.getConfig=AIe;function yIe(t,e,n){let r=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(r+=`:${e}`),typeof n=="string"&&(r+=`/${n}`),r}un.getJDBCString=yIe;function bIe(t){return typeof t=="string"?t:t.sql}un.getDbQueryText=bIe;function RIe(t,e){return LC(typeof t=="string"?e:e||t.values)}un.getDbValues=RIe;function IIe(t){let e=typeof t=="object"?t.sql:t,n=e?.indexOf(" ");return typeof n=="number"&&n!==-1?e?.substring(0,n):e}un.getSpanName=IIe;function LC(t){return t?`[${t.toString()}]`:""}un.arrayStringifyHelper=LC;function OIe(t){let e=t.config.connectionConfig,n="";return n+=e.host?`host: '${e.host}', `:"",n+=e.port?`port: ${e.port}, `:"",n+=e.database?`database: '${e.database}', `:"",n+=e.user?`user: '${e.user}'`:"",e.user||(n=n.substring(0,n.length-2)),n.trim()}un.getPoolNameOld=OIe});var r9=T(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.PACKAGE_NAME=El.PACKAGE_VERSION=void 0;El.PACKAGE_VERSION="0.60.0";El.PACKAGE_NAME="@opentelemetry/instrumentation-mysql"});var s9=T(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.MySQLInstrumentation=void 0;var Fn=(P(),N(L)),Cr=re(),Sl=(de(),N(Ie)),ys=e9(),CIe=t9(),Wa=n9(),o9=r9(),wC=class extends Cr.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(o9.PACKAGE_NAME,o9.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Cr.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Cr.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._connectionsUsageOld=this.meter.createUpDownCounter(ys.METRIC_DB_CLIENT_CONNECTIONS_USAGE,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}_connCountAdd(e,n,r){this._connectionsUsageOld?.add(e,{state:r,name:n})}init(){return[new Cr.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],e=>((0,Cr.isWrapped)(e.createConnection)&&this._unwrap(e,"createConnection"),this._wrap(e,"createConnection",this._patchCreateConnection()),(0,Cr.isWrapped)(e.createPool)&&this._unwrap(e,"createPool"),this._wrap(e,"createPool",this._patchCreatePool()),(0,Cr.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 n=this;return function(o){let s=e(...arguments);return n._wrap(s,"query",n._patchQuery(s)),s}}}_patchCreatePool(){return e=>{let n=this;return function(o){let s=e(...arguments);return n._wrap(s,"query",n._patchQuery(s)),n._wrap(s,"getConnection",n._patchGetConnection(s)),n._wrap(s,"end",n._patchPoolEnd(s)),n._setPoolCallbacks(s,""),s}}}_patchPoolEnd(e){return n=>{let r=this;return function(s){let i=e._allConnections.length,a=e._freeConnections.length,u=i-a,l=(0,Wa.getPoolNameOld)(e);r._connCountAdd(-u,l,"used"),r._connCountAdd(-a,l,"idle"),n.apply(e,arguments)}}}_patchCreatePoolCluster(){return e=>{let n=this;return function(o){let s=e(...arguments);return n._wrap(s,"getConnection",n._patchGetConnection(s)),n._wrap(s,"add",n._patchAdd(s)),s}}}_patchAdd(e){return n=>{let r=this;return function(s,i){if(!r._enabled)return r._unwrap(e,"add"),n.apply(e,arguments);n.apply(e,arguments);let a=e._nodes;if(a){let u=typeof s=="object"?"CLUSTER::"+e._lastId:String(s),l=a[u].pool;r._setPoolCallbacks(l,s)}}}}_patchGetConnection(e){return n=>{let r=this;return function(s,i,a){if(!r._enabled)return r._unwrap(e,"getConnection"),n.apply(e,arguments);if(arguments.length===1&&typeof s=="function"){let u=r._getConnectionCallbackPatchFn(s);return n.call(e,u)}if(arguments.length===2&&typeof i=="function"){let u=r._getConnectionCallbackPatchFn(i);return n.call(e,s,u)}if(arguments.length===3&&typeof a=="function"){let u=r._getConnectionCallbackPatchFn(a);return n.call(e,s,i,u)}return n.apply(e,arguments)}}}_getConnectionCallbackPatchFn(e){let n=this,r=Fn.context.active();return function(o,s){s&&((0,Cr.isWrapped)(s.query)||n._wrap(s,"query",n._patchQuery(s))),typeof e=="function"&&Fn.context.with(r,e,this,o,s)}}_patchQuery(e){return n=>{let r=this;return function(o,s,i){if(!r._enabled)return r._unwrap(e,"query"),n.apply(e,arguments);let a={},{host:u,port:l,database:d,user:p}=(0,Wa.getConfig)(e.config),f=parseInt(l,10),m=(0,Wa.getDbQueryText)(o);r._dbSemconvStability&Cr.SemconvStability.OLD&&(a[ys.ATTR_DB_SYSTEM]=ys.DB_SYSTEM_VALUE_MYSQL,a[ys.ATTR_DB_CONNECTION_STRING]=(0,Wa.getJDBCString)(u,l,d),a[ys.ATTR_DB_NAME]=d,a[ys.ATTR_DB_USER]=p,a[ys.ATTR_DB_STATEMENT]=m),r._dbSemconvStability&Cr.SemconvStability.STABLE&&(a[Sl.ATTR_DB_SYSTEM_NAME]=Sl.DB_SYSTEM_NAME_VALUE_MYSQL,a[Sl.ATTR_DB_NAMESPACE]=d,a[Sl.ATTR_DB_QUERY_TEXT]=m),r._netSemconvStability&Cr.SemconvStability.OLD&&(a[ys.ATTR_NET_PEER_NAME]=u,isNaN(f)||(a[ys.ATTR_NET_PEER_PORT]=f)),r._netSemconvStability&Cr.SemconvStability.STABLE&&(a[Sl.ATTR_SERVER_ADDRESS]=u,isNaN(f)||(a[Sl.ATTR_SERVER_PORT]=f));let _=r.tracer.startSpan((0,Wa.getSpanName)(o),{kind:Fn.SpanKind.CLIENT,attributes:a});if(r.getConfig().enhancedDatabaseReporting){let E;Array.isArray(s)?E=s:arguments[2]&&(E=[s]),_.setAttribute(CIe.AttributeNames.MYSQL_VALUES,(0,Wa.getDbValues)(o,E))}let h=Array.from(arguments).findIndex(E=>typeof E=="function"),g=Fn.context.active();if(h===-1){let E=Fn.context.with(Fn.trace.setSpan(Fn.context.active(),_),()=>n.apply(e,arguments));return Fn.context.bind(g,E),E.on("error",S=>_.setStatus({code:Fn.SpanStatusCode.ERROR,message:S.message})).on("end",()=>{_.end()})}else return r._wrap(arguments,h,r._patchCallbackQuery(_,g)),Fn.context.with(Fn.trace.setSpan(Fn.context.active(),_),()=>n.apply(e,arguments))}}}_patchCallbackQuery(e,n){return r=>function(o,s,i){return o&&e.setStatus({code:Fn.SpanStatusCode.ERROR,message:o.message}),e.end(),Fn.context.with(n,()=>r(...arguments))}}_setPoolCallbacks(e,n){let r=n||(0,Wa.getPoolNameOld)(e);e.on("connection",o=>{this._connCountAdd(1,r,"idle")}),e.on("acquire",o=>{this._connCountAdd(-1,r,"idle"),this._connCountAdd(1,r,"used")}),e.on("release",o=>{this._connCountAdd(1,r,"idle"),this._connCountAdd(-1,r,"used")})}};SE.MySQLInstrumentation=wC});var i9=T(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.MySQLInstrumentation=void 0;var NIe=s9();Object.defineProperty(AE,"MySQLInstrumentation",{enumerable:!0,get:function(){return NIe.MySQLInstrumentation}})});var DC=T(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.DB_SYSTEM_VALUE_MYSQL=Lt.ATTR_NET_PEER_PORT=Lt.ATTR_NET_PEER_NAME=Lt.ATTR_DB_USER=Lt.ATTR_DB_SYSTEM=Lt.ATTR_DB_STATEMENT=Lt.ATTR_DB_NAME=Lt.ATTR_DB_CONNECTION_STRING=void 0;Lt.ATTR_DB_CONNECTION_STRING="db.connection_string";Lt.ATTR_DB_NAME="db.name";Lt.ATTR_DB_STATEMENT="db.statement";Lt.ATTR_DB_SYSTEM="db.system";Lt.ATTR_DB_USER="db.user";Lt.ATTR_NET_PEER_NAME="net.peer.name";Lt.ATTR_NET_PEER_PORT="net.peer.port";Lt.DB_SYSTEM_VALUE_MYSQL="mysql"});var BC=T(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.addSqlCommenterComment=void 0;var UC=(P(),N(L)),PIe=Ae();function MIe(t){let e=t.indexOf("--");if(e>=0)return!0;if(t.indexOf("/*")<0)return!1;let r=t.indexOf("*/");return e<r}function vIe(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}function kIe(t,e){if(typeof e!="string"||e.length===0||MIe(e))return e;let n=new PIe.W3CTraceContextPropagator,r={};n.inject(UC.trace.setSpan(UC.ROOT_CONTEXT,t),r,UC.defaultTextMapSetter);let o=Object.keys(r).sort();if(o.length===0)return e;let s=o.map(i=>{let a=vIe(r[i]);return`${i}='${a}'`}).join(",");return`${e} /*${s}*/`}yE.addSqlCommenterComment=kIe});var d9=T(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.getConnectionPrototypeToInstrument=Nr.once=Nr.getSpanName=Nr.getQueryText=Nr.getConnectionAttributes=void 0;var Rf=DC(),bE=re(),FC=(de(),N(Ie));function LIe(t,e,n){let{host:r,port:o,database:s,user:i}=wIe(t),a={};e&bE.SemconvStability.OLD&&(a[Rf.ATTR_DB_CONNECTION_STRING]=DIe(r,o,s),a[Rf.ATTR_DB_NAME]=s,a[Rf.ATTR_DB_USER]=i),e&bE.SemconvStability.STABLE&&(a[FC.ATTR_DB_NAMESPACE]=s);let u=parseInt(o,10);return n&bE.SemconvStability.OLD&&(a[Rf.ATTR_NET_PEER_NAME]=r,isNaN(u)||(a[Rf.ATTR_NET_PEER_PORT]=u)),n&bE.SemconvStability.STABLE&&(a[FC.ATTR_SERVER_ADDRESS]=r,isNaN(u)||(a[FC.ATTR_SERVER_PORT]=u)),a}Nr.getConnectionAttributes=LIe;function wIe(t){let{host:e,port:n,database:r,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:n,database:r,user:o}}function DIe(t,e,n){let r=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(r+=`:${e}`),typeof n=="string"&&(r+=`/${n}`),r}function UIe(t,e,n,r=!1,o=BIe){let[s,i]=typeof t=="string"?[t,n]:[t.sql,FIe(t)?n||t.values:n];try{return r?o(s):e&&i?e(s,i):s}catch{return"Could not determine the query due to an error in masking or formatting"}}Nr.getQueryText=UIe;function BIe(t){return t.replace(/\b\d+\b/g,"?").replace(/(["'])(?:(?=(\\?))\2.)*?\1/g,"?")}function FIe(t){return"values"in t}function GIe(t){let e=typeof t=="object"?t.sql:t,n=e?.indexOf(" ");return typeof n=="number"&&n!==-1?e?.substring(0,n):e}Nr.getSpanName=GIe;var jIe=t=>{let e=!1;return(...n)=>{if(!e)return e=!0,t(...n)}};Nr.once=jIe;function HIe(t){let e=t.prototype,n=Object.getPrototypeOf(e);return typeof n?.query=="function"&&typeof n?.execute=="function"?n:e}Nr.getConnectionPrototypeToInstrument=HIe});var p9=T(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.PACKAGE_NAME=Al.PACKAGE_VERSION=void 0;Al.PACKAGE_VERSION="0.60.0";Al.PACKAGE_NAME="@opentelemetry/instrumentation-mysql2"});var h9=T(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.MySQL2Instrumentation=void 0;var f9=(P(),N(L)),Xr=re(),GC=DC(),m9=BC(),yl=d9(),_9=p9(),jC=(de(),N(Ie)),HC=[">=1.4.2 <4"],VC=class extends Xr.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(_9.PACKAGE_NAME,_9.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Xr.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Xr.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){let e;function n(s){!e&&s.format&&(e=s.format)}let r=s=>{(0,Xr.isWrapped)(s.query)&&this._unwrap(s,"query"),this._wrap(s,"query",this._patchQuery(e,!1)),(0,Xr.isWrapped)(s.execute)&&this._unwrap(s,"execute"),this._wrap(s,"execute",this._patchQuery(e,!0))},o=s=>{this._unwrap(s,"query"),this._unwrap(s,"execute")};return[new Xr.InstrumentationNodeModuleDefinition("mysql2",HC,s=>(n(s),s),()=>{},[new Xr.InstrumentationNodeModuleFile("mysql2/promise.js",HC,s=>(n(s),s),()=>{}),new Xr.InstrumentationNodeModuleFile("mysql2/lib/connection.js",HC,s=>{let i=(0,yl.getConnectionPrototypeToInstrument)(s);return r(i),s},s=>{if(s===void 0)return;let i=(0,yl.getConnectionPrototypeToInstrument)(s);o(i)})])]}_patchQuery(e,n){return r=>{let o=this;return function(s,i,a){let u;Array.isArray(i)?u=i:arguments[2]&&(u=[i]);let{maskStatement:l,maskStatementHook:d,responseHook:p}=o.getConfig(),f=(0,yl.getConnectionAttributes)(this.config,o._dbSemconvStability,o._netSemconvStability),m=(0,yl.getQueryText)(s,e,u,l,d);o._dbSemconvStability&Xr.SemconvStability.OLD&&(f[GC.ATTR_DB_SYSTEM]=GC.DB_SYSTEM_VALUE_MYSQL,f[GC.ATTR_DB_STATEMENT]=m),o._dbSemconvStability&Xr.SemconvStability.STABLE&&(f[jC.ATTR_DB_SYSTEM_NAME]=jC.DB_SYSTEM_NAME_VALUE_MYSQL,f[jC.ATTR_DB_QUERY_TEXT]=m);let _=o.tracer.startSpan((0,yl.getSpanName)(s),{kind:f9.SpanKind.CLIENT,attributes:f});!n&&o.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=s=typeof s=="string"?(0,m9.addSqlCommenterComment)(_,s):Object.assign(s,{sql:(0,m9.addSqlCommenterComment)(_,s.sql)}));let h=(0,yl.once)((g,E)=>{g?_.setStatus({code:f9.SpanStatusCode.ERROR,message:g.message}):typeof p=="function"&&(0,Xr.safeExecuteInTheMiddle)(()=>{p(_,{queryResults:E})},S=>{S&&o._diag.warn("Failed executing responseHook",S)},!0),_.end()});if(arguments.length===1){typeof s.onResult=="function"&&o._wrap(s,"onResult",o._patchCallbackQuery(h));let g=r.apply(this,arguments);return g.once("error",E=>{h(E)}).once("result",E=>{h(void 0,E)}),g}return typeof arguments[1]=="function"?o._wrap(arguments,1,o._patchCallbackQuery(h)):typeof arguments[2]=="function"&&o._wrap(arguments,2,o._patchCallbackQuery(h)),r.apply(this,arguments)}}}_patchCallbackQuery(e){return n=>function(r,o,s){return e(r,o),n(...arguments)}}};RE.MySQL2Instrumentation=VC});var g9=T(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.MySQL2Instrumentation=void 0;var VIe=h9();Object.defineProperty(IE,"MySQL2Instrumentation",{enumerable:!0,get:function(){return VIe.MySQL2Instrumentation}})});var y9=T(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.DB_SYSTEM_VALUE_REDIS=cn.DB_SYSTEM_NAME_VALUE_REDIS=cn.ATTR_NET_PEER_PORT=cn.ATTR_NET_PEER_NAME=cn.ATTR_DB_SYSTEM=cn.ATTR_DB_STATEMENT=cn.ATTR_DB_CONNECTION_STRING=void 0;cn.ATTR_DB_CONNECTION_STRING="db.connection_string";cn.ATTR_DB_STATEMENT="db.statement";cn.ATTR_DB_SYSTEM="db.system";cn.ATTR_NET_PEER_NAME="net.peer.name";cn.ATTR_NET_PEER_PORT="net.peer.port";cn.DB_SYSTEM_NAME_VALUE_REDIS="redis";cn.DB_SYSTEM_VALUE_REDIS="redis"});var b9=T(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.endSpan=void 0;var $Ie=(P(),N(L)),zIe=(t,e)=>{e&&(t.recordException(e),t.setStatus({code:$Ie.SpanStatusCode.ERROR,message:e.message})),t.end()};OE.endSpan=zIe});var NE=T(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.defaultDbStatementSerializer=void 0;var YIe=[{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}],WIe=(t,e)=>{if(Array.isArray(e)&&e.length){let n=YIe.find(({regex:o})=>o.test(t))?.args??0,r=n>=0?e.slice(0,n):e;return e.length>r.length&&r.push(`[${e.length-n} other arguments]`),`${t} ${r.join(" ")}`}return t};CE.defaultDbStatementSerializer=WIe});var R9=T(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.PACKAGE_NAME=bl.PACKAGE_VERSION=void 0;bl.PACKAGE_VERSION="0.62.0";bl.PACKAGE_NAME="@opentelemetry/instrumentation-ioredis"});var N9=T(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.IORedisInstrumentation=void 0;var Ci=(P(),N(L)),Gn=re(),Ni=(de(),N(Ie)),jn=y9(),I9=re(),If=b9(),KIe=NE(),O9=R9(),C9={requireParentSpan:!0},qC=class extends Gn.InstrumentationBase{_netSemconvStability;_dbSemconvStability;constructor(e={}){super(O9.PACKAGE_NAME,O9.PACKAGE_VERSION,{...C9,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Gn.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Gn.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...C9,...e})}init(){return[new Gn.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <6"],(e,n)=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,Gn.isWrapped)(r.prototype.sendCommand)&&this._unwrap(r.prototype,"sendCommand"),this._wrap(r.prototype,"sendCommand",this._patchSendCommand(n)),(0,Gn.isWrapped)(r.prototype.connect)&&this._unwrap(r.prototype,"connect"),this._wrap(r.prototype,"connect",this._patchConnection()),e},e=>{if(e===void 0)return;let n=e[Symbol.toStringTag]==="Module"?e.default:e;this._unwrap(n.prototype,"sendCommand"),this._unwrap(n.prototype,"connect")})]}_patchSendCommand(e){return n=>this._traceSendCommand(n,e)}_patchConnection(){return e=>this._traceConnection(e)}_traceSendCommand(e,n){let r=this;return function(o){if(arguments.length<1||typeof o!="object")return e.apply(this,arguments);let s=r.getConfig(),i=s.dbStatementSerializer||KIe.defaultDbStatementSerializer,a=Ci.trace.getSpan(Ci.context.active())===void 0;if(s.requireParentSpan===!0&&a)return e.apply(this,arguments);let u={},{host:l,port:d}=this.options,p=i(o.name,o.args);r._dbSemconvStability&Gn.SemconvStability.OLD&&(u[jn.ATTR_DB_SYSTEM]=jn.DB_SYSTEM_VALUE_REDIS,u[jn.ATTR_DB_STATEMENT]=p,u[jn.ATTR_DB_CONNECTION_STRING]=`redis://${l}:${d}`),r._dbSemconvStability&Gn.SemconvStability.STABLE&&(u[Ni.ATTR_DB_SYSTEM_NAME]=jn.DB_SYSTEM_NAME_VALUE_REDIS,u[Ni.ATTR_DB_QUERY_TEXT]=p),r._netSemconvStability&Gn.SemconvStability.OLD&&(u[jn.ATTR_NET_PEER_NAME]=l,u[jn.ATTR_NET_PEER_PORT]=d),r._netSemconvStability&Gn.SemconvStability.STABLE&&(u[Ni.ATTR_SERVER_ADDRESS]=l,u[Ni.ATTR_SERVER_PORT]=d);let f=r.tracer.startSpan(o.name,{kind:Ci.SpanKind.CLIENT,attributes:u}),{requestHook:m}=s;m&&(0,I9.safeExecuteInTheMiddle)(()=>m(f,{moduleVersion:n,cmdName:o.name,cmdArgs:o.args}),_=>{_&&Ci.diag.error("ioredis instrumentation: request hook failed",_)},!0);try{let _=e.apply(this,arguments),h=o.resolve;o.resolve=function(E){(0,I9.safeExecuteInTheMiddle)(()=>s.responseHook?.(f,o.name,o.args,E),S=>{S&&Ci.diag.error("ioredis instrumentation: response hook failed",S)},!0),(0,If.endSpan)(f,null),h(E)};let g=o.reject;return o.reject=function(E){(0,If.endSpan)(f,E),g(E)},_}catch(_){throw(0,If.endSpan)(f,_),_}}}_traceConnection(e){let n=this;return function(){let r=Ci.trace.getSpan(Ci.context.active())===void 0;if(n.getConfig().requireParentSpan===!0&&r)return e.apply(this,arguments);let o={},{host:s,port:i}=this.options;n._dbSemconvStability&Gn.SemconvStability.OLD&&(o[jn.ATTR_DB_SYSTEM]=jn.DB_SYSTEM_VALUE_REDIS,o[jn.ATTR_DB_STATEMENT]="connect",o[jn.ATTR_DB_CONNECTION_STRING]=`redis://${s}:${i}`),n._dbSemconvStability&Gn.SemconvStability.STABLE&&(o[Ni.ATTR_DB_SYSTEM_NAME]=jn.DB_SYSTEM_NAME_VALUE_REDIS,o[Ni.ATTR_DB_QUERY_TEXT]="connect"),n._netSemconvStability&Gn.SemconvStability.OLD&&(o[jn.ATTR_NET_PEER_NAME]=s,o[jn.ATTR_NET_PEER_PORT]=i),n._netSemconvStability&Gn.SemconvStability.STABLE&&(o[Ni.ATTR_SERVER_ADDRESS]=s,o[Ni.ATTR_SERVER_PORT]=i);let a=n.tracer.startSpan("connect",{kind:Ci.SpanKind.CLIENT,attributes:o});try{let u=e.apply(this,arguments);return(0,If.endSpan)(a,null),u}catch(u){throw(0,If.endSpan)(a,u),u}}}};xE.IORedisInstrumentation=qC});var x9=T(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.IORedisInstrumentation=void 0;var QIe=N9();Object.defineProperty(PE,"IORedisInstrumentation",{enumerable:!0,get:function(){return QIe.IORedisInstrumentation}})});var ME=T(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.PACKAGE_NAME=Rl.PACKAGE_VERSION=void 0;Rl.PACKAGE_VERSION="0.62.0";Rl.PACKAGE_NAME="@opentelemetry/instrumentation-redis"});var P9=T(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.getTracedCreateStreamTrace=xi.getTracedCreateClient=xi.endSpan=void 0;var Of=(P(),N(L)),JIe=(t,e)=>{e&&t.setStatus({code:Of.SpanStatusCode.ERROR,message:e.message}),t.end()};xi.endSpan=JIe;var XIe=t=>function(){let n=t.apply(this,arguments);return Of.context.bind(Of.context.active(),n)};xi.getTracedCreateClient=XIe;var ZIe=t=>function(){return Object.prototype.hasOwnProperty.call(this,"stream")||Object.defineProperty(this,"stream",{get(){return this._patched_redis_stream},set(n){Of.context.bind(Of.context.active(),n),this._patched_redis_stream=n}}),t.apply(this,arguments)};xi.getTracedCreateStreamTrace=ZIe});var vE=T(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.DB_SYSTEM_VALUE_REDIS=ln.DB_SYSTEM_NAME_VALUE_REDIS=ln.ATTR_NET_PEER_PORT=ln.ATTR_NET_PEER_NAME=ln.ATTR_DB_SYSTEM=ln.ATTR_DB_STATEMENT=ln.ATTR_DB_CONNECTION_STRING=void 0;ln.ATTR_DB_CONNECTION_STRING="db.connection_string";ln.ATTR_DB_STATEMENT="db.statement";ln.ATTR_DB_SYSTEM="db.system";ln.ATTR_NET_PEER_NAME="net.peer.name";ln.ATTR_NET_PEER_PORT="net.peer.port";ln.DB_SYSTEM_NAME_VALUE_REDIS="redis";ln.DB_SYSTEM_VALUE_REDIS="redis"});var v9=T(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.RedisInstrumentationV2_V3=void 0;var or=re(),kE=P9(),M9=ME(),Cf=(P(),N(L)),Nf=(de(),N(Ie)),Ka=vE(),eOe=NE(),$C=class t extends or.InstrumentationBase{static COMPONENT="redis";_semconvStability;constructor(e={}){super(M9.PACKAGE_NAME,M9.PACKAGE_VERSION,e),this._semconvStability=e.semconvStability?e.semconvStability:(0,or.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:(0,or.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new or.InstrumentationNodeModuleDefinition("redis",[">=2.6.0 <4"],e=>((0,or.isWrapped)(e.RedisClient.prototype.internal_send_command)&&this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._wrap(e.RedisClient.prototype,"internal_send_command",this._getPatchInternalSendCommand()),(0,or.isWrapped)(e.RedisClient.prototype.create_stream)&&this._unwrap(e.RedisClient.prototype,"create_stream"),this._wrap(e.RedisClient.prototype,"create_stream",this._getPatchCreateStream()),(0,or.isWrapped)(e.createClient)&&this._unwrap(e,"createClient"),this._wrap(e,"createClient",this._getPatchCreateClient()),e),e=>{e!==void 0&&(this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._unwrap(e.RedisClient.prototype,"create_stream"),this._unwrap(e,"createClient"))})]}_getPatchInternalSendCommand(){let e=this;return function(r){return function(s){if(arguments.length!==1||typeof s!="object")return r.apply(this,arguments);let i=e.getConfig(),a=Cf.trace.getSpan(Cf.context.active())===void 0;if(i.requireParentSpan===!0&&a)return r.apply(this,arguments);let u=i?.dbStatementSerializer||eOe.defaultDbStatementSerializer,l={};e._semconvStability&or.SemconvStability.OLD&&Object.assign(l,{[Ka.ATTR_DB_SYSTEM]:Ka.DB_SYSTEM_VALUE_REDIS,[Ka.ATTR_DB_STATEMENT]:u(s.command,s.args)}),e._semconvStability&or.SemconvStability.STABLE&&Object.assign(l,{[Nf.ATTR_DB_SYSTEM_NAME]:Ka.DB_SYSTEM_NAME_VALUE_REDIS,[Nf.ATTR_DB_OPERATION_NAME]:s.command,[Nf.ATTR_DB_QUERY_TEXT]:u(s.command,s.args)});let d=e.tracer.startSpan(`${t.COMPONENT}-${s.command}`,{kind:Cf.SpanKind.CLIENT,attributes:l});if(this.connection_options){let f={};e._semconvStability&or.SemconvStability.OLD&&Object.assign(f,{[Ka.ATTR_NET_PEER_NAME]:this.connection_options.host,[Ka.ATTR_NET_PEER_PORT]:this.connection_options.port}),e._semconvStability&or.SemconvStability.STABLE&&Object.assign(f,{[Nf.ATTR_SERVER_ADDRESS]:this.connection_options.host,[Nf.ATTR_SERVER_PORT]:this.connection_options.port}),d.setAttributes(f)}this.address&&e._semconvStability&or.SemconvStability.OLD&&d.setAttribute(Ka.ATTR_DB_CONNECTION_STRING,`redis://${this.address}`);let p=arguments[0].callback;if(p){let f=Cf.context.active();arguments[0].callback=function(_,h){if(i?.responseHook){let g=i.responseHook;(0,or.safeExecuteInTheMiddle)(()=>{g(d,s.command,s.args,h)},E=>{E&&e._diag.error("Error executing responseHook",E)},!0)}return(0,kE.endSpan)(d,_),Cf.context.with(f,p,this,...arguments)}}try{return r.apply(this,arguments)}catch(f){throw(0,kE.endSpan)(d,f),f}}}}_getPatchCreateClient(){return function(n){return(0,kE.getTracedCreateClient)(n)}}_getPatchCreateStream(){return function(n){return(0,kE.getTracedCreateStreamTrace)(n)}}};LE.RedisInstrumentationV2_V3=$C});var L9=T(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.getClientAttributes=void 0;var zC=(de(),N(Ie)),Il=vE(),k9=re();function tOe(t,e,n){let r={};return n&k9.SemconvStability.OLD&&Object.assign(r,{[Il.ATTR_DB_SYSTEM]:Il.DB_SYSTEM_VALUE_REDIS,[Il.ATTR_NET_PEER_NAME]:e?.socket?.host,[Il.ATTR_NET_PEER_PORT]:e?.socket?.port,[Il.ATTR_DB_CONNECTION_STRING]:nOe(t,e?.url)}),n&k9.SemconvStability.STABLE&&Object.assign(r,{[zC.ATTR_DB_SYSTEM_NAME]:Il.DB_SYSTEM_NAME_VALUE_REDIS,[zC.ATTR_SERVER_ADDRESS]:e?.socket?.host,[zC.ATTR_SERVER_PORT]:e?.socket?.port}),r}wE.getClientAttributes=tOe;function nOe(t,e){if(!(typeof e!="string"||!e))try{let n=new URL(e);return n.searchParams.delete("user_pwd"),n.username="",n.password="",n.href}catch(n){t.error("failed to sanitize redis connection url",n)}}});var B9=T(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.RedisInstrumentationV4_V5=void 0;var xr=(P(),N(L)),we=re(),w9=L9(),rOe=NE(),D9=ME(),YC=(de(),N(Ie)),oOe=vE(),xf=Symbol("opentelemetry.instrumentation.redis.open_spans"),U9=Symbol("opentelemetry.instrumentation.redis.multi_command_options"),WC=class t extends we.InstrumentationBase{static COMPONENT="redis";_semconvStability;constructor(e={}){super(D9.PACKAGE_NAME,D9.PACKAGE_VERSION,e),this._semconvStability=e.semconvStability?e.semconvStability:(0,we.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:(0,we.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(e){let n=new we.InstrumentationNodeModuleFile(`${e}/dist/lib/commander.js`,["^1.0.0"],(s,i)=>{let a=s.transformCommandArguments;if(!a)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),s;let u=i?.startsWith("1.0.")?"extendWithCommands":"attachCommands";return(0,we.isWrapped)(s?.[u])&&this._unwrap(s,u),this._wrap(s,u,this._getPatchExtendWithCommands(a)),s},s=>{(0,we.isWrapped)(s?.extendWithCommands)&&this._unwrap(s,"extendWithCommands"),(0,we.isWrapped)(s?.attachCommands)&&this._unwrap(s,"attachCommands")}),r=new we.InstrumentationNodeModuleFile(`${e}/dist/lib/client/multi-command.js`,["^1.0.0","^5.0.0"],s=>{let i=s?.default?.prototype;return(0,we.isWrapped)(i?.exec)&&this._unwrap(i,"exec"),this._wrap(i,"exec",this._getPatchMultiCommandsExec(!1)),(0,we.isWrapped)(i?.execAsPipeline)&&this._unwrap(i,"execAsPipeline"),this._wrap(i,"execAsPipeline",this._getPatchMultiCommandsExec(!0)),(0,we.isWrapped)(i?.addCommand)&&this._unwrap(i,"addCommand"),this._wrap(i,"addCommand",this._getPatchMultiCommandsAddCommand()),s},s=>{let i=s?.default?.prototype;(0,we.isWrapped)(i?.exec)&&this._unwrap(i,"exec"),(0,we.isWrapped)(i?.addCommand)&&this._unwrap(i,"addCommand")}),o=new we.InstrumentationNodeModuleFile(`${e}/dist/lib/client/index.js`,["^1.0.0","^5.0.0"],s=>{let i=s?.default?.prototype;return i?.multi&&((0,we.isWrapped)(i?.multi)&&this._unwrap(i,"multi"),this._wrap(i,"multi",this._getPatchRedisClientMulti())),i?.MULTI&&((0,we.isWrapped)(i?.MULTI)&&this._unwrap(i,"MULTI"),this._wrap(i,"MULTI",this._getPatchRedisClientMulti())),(0,we.isWrapped)(i?.sendCommand)&&this._unwrap(i,"sendCommand"),this._wrap(i,"sendCommand",this._getPatchRedisClientSendCommand()),this._wrap(i,"connect",this._getPatchedClientConnect()),s},s=>{let i=s?.default?.prototype;(0,we.isWrapped)(i?.multi)&&this._unwrap(i,"multi"),(0,we.isWrapped)(i?.MULTI)&&this._unwrap(i,"MULTI"),(0,we.isWrapped)(i?.sendCommand)&&this._unwrap(i,"sendCommand")});return new we.InstrumentationNodeModuleDefinition(e,["^1.0.0","^5.0.0"],s=>s,()=>{},[n,r,o])}_getPatchExtendWithCommands(e){let n=this;return function(o){return function(i){if(i?.BaseClass?.name!=="RedisClient")return o.apply(this,arguments);let a=i.executor;return i.executor=function(u,l){let d=e(u,l).args;return n._traceClientCommand(a,this,arguments,d)},o.apply(this,arguments)}}}_getPatchMultiCommandsExec(e){let n=this;return function(o){return function(){let i=o.apply(this,arguments);return typeof i?.then!="function"?(n._diag.error("non-promise result when patching exec/execAsPipeline"),i):i.then(a=>{let u=this[xf];return n._endSpansWithRedisReplies(u,a,e),a}).catch(a=>{let u=this[xf];if(!u)n._diag.error("cannot find open spans to end for multi/pipeline");else{let l=a.constructor.name==="MultiErrorReply"?a.replies:new Array(u.length).fill(a);n._endSpansWithRedisReplies(u,l,e)}return Promise.reject(a)})}}}_getPatchMultiCommandsAddCommand(){let e=this;return function(r){return function(s){return e._traceClientCommand(r,this,arguments,s)}}}_getPatchRedisClientMulti(){return function(n){return function(){let o=n.apply(this,arguments);return o[U9]=this.options,o}}}_getPatchRedisClientSendCommand(){let e=this;return function(r){return function(s){return e._traceClientCommand(r,this,arguments,s)}}}_getPatchedClientConnect(){let e=this;return function(r){return function(){let s=this.options,i=(0,w9.getClientAttributes)(e._diag,s,e._semconvStability),a=e.tracer.startSpan(`${t.COMPONENT}-connect`,{kind:xr.SpanKind.CLIENT,attributes:i});return xr.context.with(xr.trace.setSpan(xr.context.active(),a),()=>r.apply(this)).then(l=>(a.end(),l)).catch(l=>(a.recordException(l),a.setStatus({code:xr.SpanStatusCode.ERROR,message:l.message}),a.end(),Promise.reject(l)))}}}_traceClientCommand(e,n,r,o){if(xr.trace.getSpan(xr.context.active())===void 0&&this.getConfig().requireParentSpan)return e.apply(n,r);let i=n.options||n[U9],a=o[0],u=o.slice(1),l=this.getConfig().dbStatementSerializer||rOe.defaultDbStatementSerializer,d=(0,w9.getClientAttributes)(this._diag,i,this._semconvStability);this._semconvStability&we.SemconvStability.STABLE&&(d[YC.ATTR_DB_OPERATION_NAME]=a);try{let m=l(a,u);m!=null&&(this._semconvStability&we.SemconvStability.OLD&&(d[oOe.ATTR_DB_STATEMENT]=m),this._semconvStability&we.SemconvStability.STABLE&&(d[YC.ATTR_DB_QUERY_TEXT]=m))}catch(m){this._diag.error("dbStatementSerializer throw an exception",m,{commandName:a})}let p=this.tracer.startSpan(`${t.COMPONENT}-${a}`,{kind:xr.SpanKind.CLIENT,attributes:d}),f=xr.context.with(xr.trace.setSpan(xr.context.active(),p),()=>e.apply(n,r));if(typeof f?.then=="function")f.then(m=>{this._endSpanWithResponse(p,a,u,m,void 0)},m=>{this._endSpanWithResponse(p,a,u,null,m)});else{let m=f;m[xf]=m[xf]||[],m[xf].push({span:p,commandName:a,commandArgs:u})}return f}_endSpansWithRedisReplies(e,n,r=!1){if(!e)return this._diag.error("cannot find open spans to end for redis multi/pipeline");if(n.length!==e.length)return this._diag.error("number of multi command spans does not match response from redis");let o=e.map(a=>a.commandName),i=o.every(a=>a===o[0])?(r?"PIPELINE ":"MULTI ")+o[0]:r?"PIPELINE":"MULTI";for(let a=0;a<e.length;a++){let{span:u,commandArgs:l}=e[a],d=n[a],[p,f]=d instanceof Error?[null,d]:[d,void 0];this._semconvStability&we.SemconvStability.STABLE&&u.setAttribute(YC.ATTR_DB_OPERATION_NAME,i),this._endSpanWithResponse(u,o[a],l,p,f)}}_endSpanWithResponse(e,n,r,o,s){let{responseHook:i}=this.getConfig();if(!s&&i)try{i(e,n,r,o)}catch(a){this._diag.error("responseHook throw an exception",a)}s&&(e.recordException(s),e.setStatus({code:xr.SpanStatusCode.ERROR,message:s?.message})),e.end()}};DE.RedisInstrumentationV4_V5=WC});var j9=T(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE.RedisInstrumentation=void 0;var sOe=re(),F9=ME(),iOe=v9(),aOe=B9(),G9={requireParentSpan:!1},KC=class extends sOe.InstrumentationBase{instrumentationV2_V3;instrumentationV4_V5;initialized=!1;constructor(e={}){let n={...G9,...e};super(F9.PACKAGE_NAME,F9.PACKAGE_VERSION,n),this.instrumentationV2_V3=new iOe.RedisInstrumentationV2_V3(this.getConfig()),this.instrumentationV4_V5=new aOe.RedisInstrumentationV4_V5(this.getConfig()),this.initialized=!0}setConfig(e={}){let n={...G9,...e};super.setConfig(n),this.initialized&&(this.instrumentationV2_V3.setConfig(n),this.instrumentationV4_V5.setConfig(n))}init(){}getModuleDefinitions(){return[...this.instrumentationV2_V3.getModuleDefinitions(),...this.instrumentationV4_V5.getModuleDefinitions()]}setTracerProvider(e){super.setTracerProvider(e),this.initialized&&(this.instrumentationV2_V3.setTracerProvider(e),this.instrumentationV4_V5.setTracerProvider(e))}enable(){super.enable(),this.initialized&&(this.instrumentationV2_V3.enable(),this.instrumentationV4_V5.enable())}disable(){super.disable(),this.initialized&&(this.instrumentationV2_V3.disable(),this.instrumentationV4_V5.disable())}};UE.RedisInstrumentation=KC});var H9=T(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.RedisInstrumentation=void 0;var uOe=j9();Object.defineProperty(BE,"RedisInstrumentation",{enumerable:!0,get:function(){return uOe.RedisInstrumentation}})});var X9=T(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.EVENT_LISTENERS_SET=void 0;GE.EVENT_LISTENERS_SET=Symbol("opentelemetry.instrumentation.pg.eventListenersSet")});var XC=T(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.AttributeNames=void 0;var _Oe;(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"})(_Oe=vf.AttributeNames||(vf.AttributeNames={}))});var ZC=T(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS=be.METRIC_DB_CLIENT_CONNECTION_COUNT=be.DB_SYSTEM_VALUE_POSTGRESQL=be.DB_CLIENT_CONNECTION_STATE_VALUE_USED=be.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE=be.ATTR_NET_PEER_PORT=be.ATTR_NET_PEER_NAME=be.ATTR_DB_USER=be.ATTR_DB_SYSTEM=be.ATTR_DB_STATEMENT=be.ATTR_DB_NAME=be.ATTR_DB_CONNECTION_STRING=be.ATTR_DB_CLIENT_CONNECTION_STATE=be.ATTR_DB_CLIENT_CONNECTION_POOL_NAME=void 0;be.ATTR_DB_CLIENT_CONNECTION_POOL_NAME="db.client.connection.pool.name";be.ATTR_DB_CLIENT_CONNECTION_STATE="db.client.connection.state";be.ATTR_DB_CONNECTION_STRING="db.connection_string";be.ATTR_DB_NAME="db.name";be.ATTR_DB_STATEMENT="db.statement";be.ATTR_DB_SYSTEM="db.system";be.ATTR_DB_USER="db.user";be.ATTR_NET_PEER_NAME="net.peer.name";be.ATTR_NET_PEER_PORT="net.peer.port";be.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE="idle";be.DB_CLIENT_CONNECTION_STATE_VALUE_USED="used";be.DB_SYSTEM_VALUE_POSTGRESQL="postgresql";be.METRIC_DB_CLIENT_CONNECTION_COUNT="db.client.connection.count";be.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS="db.client.connection.pending_requests"});var eN=T(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.SpanNames=void 0;var hOe;(function(t){t.QUERY_PREFIX="pg.query",t.CONNECT="pg.connect",t.POOL_CONNECT="pg-pool.connect"})(hOe=kf.SpanNames||(kf.SpanNames={}))});var s$=T(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.sanitizedErrorMessage=Te.isObjectWithTextString=Te.getErrorMessage=Te.patchClientConnectCallback=Te.patchCallbackPGPool=Te.updateCounter=Te.getPoolName=Te.patchCallback=Te.handleExecutionResult=Te.handleConfigQuery=Te.shouldSkipInstrumentation=Te.getSemanticAttributesFromPoolConnection=Te.getSemanticAttributesFromConnection=Te.getConnectionString=Te.parseAndMaskConnectionString=Te.parseNormalizedOperationName=Te.getQuerySpanName=void 0;var Pi=(P(),N(L)),jE=XC(),Pr=(de(),N(Ie)),We=ZC(),Qa=re(),Z9=eN();function e$(t,e){if(!e)return Z9.SpanNames.QUERY_PREFIX;let n=typeof e.name=="string"&&e.name?e.name:t$(e.text);return`${Z9.SpanNames.QUERY_PREFIX}:${n}${t?` ${t}`:""}`}Te.getQuerySpanName=e$;function t$(t){let e=t.trim(),n=e.indexOf(" "),r=n===-1?e:e.slice(0,n);return r=r.toUpperCase(),r.endsWith(";")?r.slice(0,-1):r}Te.parseNormalizedOperationName=t$;function n$(t){try{let e=new URL(t);return e.username="",e.password="",e.toString()}catch{return"postgresql://localhost:5432/"}}Te.parseAndMaskConnectionString=n$;function tN(t){if("connectionString"in t&&t.connectionString)return n$(t.connectionString);let e=t.host||"localhost",n=t.port||5432,r=t.database||"";return`postgresql://${e}:${n}/${r}`}Te.getConnectionString=tN;function HE(t){if(Number.isInteger(t))return t}function r$(t,e){let n={};return e&Qa.SemconvStability.OLD&&(n={...n,[We.ATTR_DB_SYSTEM]:We.DB_SYSTEM_VALUE_POSTGRESQL,[We.ATTR_DB_NAME]:t.database,[We.ATTR_DB_CONNECTION_STRING]:tN(t),[We.ATTR_DB_USER]:t.user,[We.ATTR_NET_PEER_NAME]:t.host,[We.ATTR_NET_PEER_PORT]:HE(t.port)}),e&Qa.SemconvStability.STABLE&&(n={...n,[Pr.ATTR_DB_SYSTEM_NAME]:Pr.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[Pr.ATTR_DB_NAMESPACE]:t.namespace,[Pr.ATTR_SERVER_ADDRESS]:t.host,[Pr.ATTR_SERVER_PORT]:HE(t.port)}),n}Te.getSemanticAttributesFromConnection=r$;function gOe(t,e){let n;try{n=t.connectionString?new URL(t.connectionString):void 0}catch{n=void 0}let r={[jE.AttributeNames.IDLE_TIMEOUT_MILLIS]:t.idleTimeoutMillis,[jE.AttributeNames.MAX_CLIENT]:t.maxClient};return e&Qa.SemconvStability.OLD&&(r={...r,[We.ATTR_DB_SYSTEM]:We.DB_SYSTEM_VALUE_POSTGRESQL,[We.ATTR_DB_NAME]:n?.pathname.slice(1)??t.database,[We.ATTR_DB_CONNECTION_STRING]:tN(t),[We.ATTR_NET_PEER_NAME]:n?.hostname??t.host,[We.ATTR_NET_PEER_PORT]:Number(n?.port)||HE(t.port),[We.ATTR_DB_USER]:n?.username??t.user}),e&Qa.SemconvStability.STABLE&&(r={...r,[Pr.ATTR_DB_SYSTEM_NAME]:Pr.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[Pr.ATTR_DB_NAMESPACE]:t.namespace,[Pr.ATTR_SERVER_ADDRESS]:n?.hostname??t.host,[Pr.ATTR_SERVER_PORT]:Number(n?.port)||HE(t.port)}),r}Te.getSemanticAttributesFromPoolConnection=gOe;function TOe(t){return t.requireParentSpan===!0&&Pi.trace.getSpan(Pi.context.active())===void 0}Te.shouldSkipInstrumentation=TOe;function EOe(t,e,n,r){let{connectionParameters:o}=this,s=o.database,i=e$(s,r),a=t.startSpan(i,{kind:Pi.SpanKind.CLIENT,attributes:r$(o,n)});if(!r)return a;if(r.text&&(n&Qa.SemconvStability.OLD&&a.setAttribute(We.ATTR_DB_STATEMENT,r.text),n&Qa.SemconvStability.STABLE&&a.setAttribute(Pr.ATTR_DB_QUERY_TEXT,r.text)),e.enhancedDatabaseReporting&&Array.isArray(r.values))try{let u=r.values.map(l=>l==null?"null":l instanceof Buffer?l.toString():typeof l=="object"?typeof l.toPostgres=="function"?l.toPostgres():JSON.stringify(l):l.toString());a.setAttribute(jE.AttributeNames.PG_VALUES,u)}catch(u){Pi.diag.error("failed to stringify ",r.values,u)}return typeof r.name=="string"&&a.setAttribute(jE.AttributeNames.PG_PLAN,r.name),a}Te.handleConfigQuery=EOe;function o$(t,e,n){typeof t.responseHook=="function"&&(0,Qa.safeExecuteInTheMiddle)(()=>{t.responseHook(e,{data:n})},r=>{r&&Pi.diag.error("Error running response hook",r)},!0)}Te.handleExecutionResult=o$;function SOe(t,e,n,r,o){return function(i,a){i?(Object.prototype.hasOwnProperty.call(i,"code")&&(r[Pr.ATTR_ERROR_TYPE]=i.code),i instanceof Error&&e.recordException(VE(i)),e.setStatus({code:Pi.SpanStatusCode.ERROR,message:i.message})):o$(t,e,a),o(),e.end(),n.call(this,i,a)}}Te.patchCallback=SOe;function AOe(t){let e="";return e+=(t?.host?`${t.host}`:"unknown_host")+":",e+=(t?.port?`${t.port}`:"unknown_port")+"/",e+=t?.database?`${t.database}`:"unknown_database",e.trim()}Te.getPoolName=AOe;function yOe(t,e,n,r,o){let s=e.totalCount,i=e.waitingCount,a=e.idleCount,u=s-a;return n.add(u-o.used,{[We.ATTR_DB_CLIENT_CONNECTION_STATE]:We.DB_CLIENT_CONNECTION_STATE_VALUE_USED,[We.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:t}),n.add(a-o.idle,{[We.ATTR_DB_CLIENT_CONNECTION_STATE]:We.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE,[We.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:t}),r.add(i-o.pending,{[We.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:t}),{used:u,idle:a,pending:i}}Te.updateCounter=yOe;function bOe(t,e){return function(r,o,s){r&&(r instanceof Error&&t.recordException(VE(r)),t.setStatus({code:Pi.SpanStatusCode.ERROR,message:r.message})),t.end(),e.call(this,r,o,s)}}Te.patchCallbackPGPool=bOe;function ROe(t,e){return function(r){r&&(r instanceof Error&&t.recordException(VE(r)),t.setStatus({code:Pi.SpanStatusCode.ERROR,message:r.message})),t.end(),e.apply(this,arguments)}}Te.patchClientConnectCallback=ROe;function IOe(t){return typeof t=="object"&&t!==null&&"message"in t?String(t.message):void 0}Te.getErrorMessage=IOe;function OOe(t){return typeof t=="object"&&typeof t?.text=="string"}Te.isObjectWithTextString=OOe;function VE(t){let e=t?.name??"PostgreSQLError",n=t?.code??"UNKNOWN";return`PostgreSQL error of type '${e}' occurred (code: ${n})`}Te.sanitizedErrorMessage=VE});var i$=T(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.PACKAGE_NAME=Ol.PACKAGE_VERSION=void 0;Ol.PACKAGE_VERSION="0.66.0";Ol.PACKAGE_NAME="@opentelemetry/instrumentation-pg"});var p$=T($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.PgInstrumentation=void 0;var In=re(),Ne=(P(),N(L)),a$=X9(),je=s$(),u$=BC(),c$=i$(),l$=eN(),qE=Ae(),Zr=(de(),N(Ie)),Lf=ZC();function Cl(t){return t[Symbol.toStringTag]==="Module"?t.default:t}var nN=class extends In.InstrumentationBase{_connectionsCounter={used:0,idle:0,pending:0};_semconvStability;constructor(e={}){super(c$.PACKAGE_NAME,c$.PACKAGE_VERSION,e),this._semconvStability=(0,In.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._operationDuration=this.meter.createHistogram(Zr.METRIC_DB_CLIENT_OPERATION_DURATION,{description:"Duration of database client operations.",unit:"s",valueType:Ne.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.001,.005,.01,.05,.1,.5,1,5,10]}}),this._connectionsCounter={idle:0,pending:0,used:0},this._connectionsCount=this.meter.createUpDownCounter(Lf.METRIC_DB_CLIENT_CONNECTION_COUNT,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"}),this._connectionPendingRequests=this.meter.createUpDownCounter(Lf.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS,{description:"The number of current pending requests for an open connection.",unit:"{connection}"})}init(){let e=[">=8.0.3 <9"],n=[">=2.0.0 <4"],r=new In.InstrumentationNodeModuleFile("pg/lib/native/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this)),o=new In.InstrumentationNodeModuleFile("pg/lib/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this)),s=new In.InstrumentationNodeModuleDefinition("pg",e,a=>{let u=Cl(a);return this._patchPgClient(u.Client),a},a=>{let u=Cl(a);return this._unpatchPgClient(u.Client),a},[o,r]),i=new In.InstrumentationNodeModuleDefinition("pg-pool",n,a=>{let u=Cl(a);return(0,In.isWrapped)(u.prototype.connect)&&this._unwrap(u.prototype,"connect"),this._wrap(u.prototype,"connect",this._getPoolConnectPatch()),u},a=>{let u=Cl(a);(0,In.isWrapped)(u.prototype.connect)&&this._unwrap(u.prototype,"connect")});return[s,i]}_patchPgClient(e){if(!e)return;let n=Cl(e);return(0,In.isWrapped)(n.prototype.query)&&this._unwrap(n.prototype,"query"),(0,In.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"query",this._getClientQueryPatch()),this._wrap(n.prototype,"connect",this._getClientConnectPatch()),e}_unpatchPgClient(e){let n=Cl(e);return(0,In.isWrapped)(n.prototype.query)&&this._unwrap(n.prototype,"query"),(0,In.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),e}_getClientConnectPatch(){let e=this;return n=>function(o){let s=e.getConfig();if(je.shouldSkipInstrumentation(s)||s.ignoreConnectSpans)return n.call(this,o);let i=e.tracer.startSpan(l$.SpanNames.CONNECT,{kind:Ne.SpanKind.CLIENT,attributes:je.getSemanticAttributesFromConnection(this,e._semconvStability)});if(o){let u=Ne.trace.getSpan(Ne.context.active());o=je.patchClientConnectCallback(i,o),u&&(o=Ne.context.bind(Ne.context.active(),o))}let a=Ne.context.with(Ne.trace.setSpan(Ne.context.active(),i),()=>n.call(this,o));return d$(i,a)}}recordOperationDuration(e,n){let r={},o=[Zr.ATTR_DB_NAMESPACE,Zr.ATTR_ERROR_TYPE,Zr.ATTR_SERVER_PORT,Zr.ATTR_SERVER_ADDRESS,Zr.ATTR_DB_OPERATION_NAME];this._semconvStability&In.SemconvStability.OLD&&o.push(Lf.ATTR_DB_SYSTEM),this._semconvStability&In.SemconvStability.STABLE&&o.push(Zr.ATTR_DB_SYSTEM_NAME),o.forEach(i=>{i in e&&(r[i]=e[i])});let s=(0,qE.hrTimeToMilliseconds)((0,qE.hrTimeDuration)(n,(0,qE.hrTime)()))/1e3;this._operationDuration.record(s,r)}_getClientQueryPatch(){let e=this;return n=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...o){if(je.shouldSkipInstrumentation(e.getConfig()))return n.apply(this,o);let s=(0,qE.hrTime)(),i=o[0],a=typeof i=="string",u=je.isObjectWithTextString(i),l=a?{text:i,values:Array.isArray(o[1])?o[1]:void 0}:u?{...i,name:i.name,text:i.text,values:i.values??(Array.isArray(o[1])?o[1]:void 0)}:void 0,d={[Lf.ATTR_DB_SYSTEM]:Lf.DB_SYSTEM_VALUE_POSTGRESQL,[Zr.ATTR_DB_NAMESPACE]:this.database,[Zr.ATTR_SERVER_PORT]:this.connectionParameters.port,[Zr.ATTR_SERVER_ADDRESS]:this.connectionParameters.host};l?.text&&(d[Zr.ATTR_DB_OPERATION_NAME]=je.parseNormalizedOperationName(l?.text));let p=()=>{e.recordOperationDuration(d,s)},f=e.getConfig(),m=je.handleConfigQuery.call(this,e.tracer,f,e._semconvStability,l);if(f.addSqlCommenterCommentToQueries&&(a?o[0]=(0,u$.addSqlCommenterComment)(m,i):u&&!("name"in i)&&(o[0]={...i,text:(0,u$.addSqlCommenterComment)(m,i.text)})),o.length>0){let g=Ne.trace.getSpan(Ne.context.active());if(typeof o[o.length-1]=="function")o[o.length-1]=je.patchCallback(f,m,o[o.length-1],d,p),g&&(o[o.length-1]=Ne.context.bind(Ne.context.active(),o[o.length-1]));else if(typeof l?.callback=="function"){let E=je.patchCallback(e.getConfig(),m,l.callback,d,p);g&&(E=Ne.context.bind(Ne.context.active(),E)),o[0].callback=E}}let{requestHook:_}=f;typeof _=="function"&&l&&(0,In.safeExecuteInTheMiddle)(()=>{let{database:g,host:E,port:S,user:b}=this.connectionParameters;_(m,{connection:{database:g,host:E,port:S,user:b},query:{text:l.text,values:l.values,name:l.name}})},g=>{g&&e._diag.error("Error running query hook",g)},!0);let h;try{h=n.apply(this,o)}catch(g){throw g instanceof Error&&m.recordException(je.sanitizedErrorMessage(g)),m.setStatus({code:Ne.SpanStatusCode.ERROR,message:je.getErrorMessage(g)}),m.end(),g}return h instanceof Promise?h.then(g=>new Promise(E=>{je.handleExecutionResult(e.getConfig(),m,g),p(),m.end(),E(g)})).catch(g=>new Promise((E,S)=>{g instanceof Error&&m.recordException(je.sanitizedErrorMessage(g)),m.setStatus({code:Ne.SpanStatusCode.ERROR,message:g.message}),p(),m.end(),S(g)})):h})}_setPoolConnectEventListeners(e){if(e[a$.EVENT_LISTENERS_SET])return;let n=je.getPoolName(e.options);e.on("connect",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("acquire",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("remove",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("release",()=>{this._connectionsCounter=je.updateCounter(n,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e[a$.EVENT_LISTENERS_SET]=!0}_getPoolConnectPatch(){let e=this;return n=>function(o){let s=e.getConfig();if(je.shouldSkipInstrumentation(s))return n.call(this,o);if(e._setPoolConnectEventListeners(this),s.ignoreConnectSpans)return n.call(this,o);let i=e.tracer.startSpan(l$.SpanNames.POOL_CONNECT,{kind:Ne.SpanKind.CLIENT,attributes:je.getSemanticAttributesFromPoolConnection(this.options,e._semconvStability)});if(o){let u=Ne.trace.getSpan(Ne.context.active());o=je.patchCallbackPGPool(i,o),u&&(o=Ne.context.bind(Ne.context.active(),o))}let a=Ne.context.with(Ne.trace.setSpan(Ne.context.active(),i),()=>n.call(this,o));return d$(i,a)}}};$E.PgInstrumentation=nN;function d$(t,e){if(!(e instanceof Promise))return e;let n=e;return Ne.context.bind(Ne.context.active(),n.then(r=>(t.end(),r)).catch(r=>(r instanceof Error&&t.recordException(je.sanitizedErrorMessage(r)),t.setStatus({code:Ne.SpanStatusCode.ERROR,message:je.getErrorMessage(r)}),t.end(),Promise.reject(r))))}});var f$=T(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.AttributeNames=Nl.PgInstrumentation=void 0;var COe=p$();Object.defineProperty(Nl,"PgInstrumentation",{enumerable:!0,get:function(){return COe.PgInstrumentation}});var NOe=XC();Object.defineProperty(Nl,"AttributeNames",{enumerable:!0,get:function(){return NOe.AttributeNames}})});var A$=T(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.SeverityNumber=void 0;var kOe;(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"})(kOe=wf.SeverityNumber||(wf.SeverityNumber={}))});var YE=T(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.NOOP_LOGGER=xl.NoopLogger=void 0;var zE=class{emit(e){}};xl.NoopLogger=zE;xl.NOOP_LOGGER=new zE});var KE=T(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.NOOP_LOGGER_PROVIDER=Pl.NoopLoggerProvider=void 0;var LOe=YE(),WE=class{getLogger(e,n,r){return new LOe.NoopLogger}};Pl.NoopLoggerProvider=WE;Pl.NOOP_LOGGER_PROVIDER=new WE});var iN=T(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.ProxyLogger=void 0;var wOe=YE(),sN=class{constructor(e,n,r,o){this._provider=e,this.name=n,this.version=r,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):wOe.NOOP_LOGGER}};QE.ProxyLogger=sN});var uN=T(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.ProxyLoggerProvider=void 0;var DOe=KE(),UOe=iN(),aN=class{getLogger(e,n,r){var o;return(o=this._getDelegateLogger(e,n,r))!==null&&o!==void 0?o:new UOe.ProxyLogger(this,e,n,r)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:DOe.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,n,r)}};JE.ProxyLoggerProvider=aN});var y$=T(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE._globalThis=void 0;XE._globalThis=typeof globalThis=="object"?globalThis:global});var b$=T(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE._globalThis=void 0;var BOe=y$();Object.defineProperty(ZE,"_globalThis",{enumerable:!0,get:function(){return BOe._globalThis}})});var R$=T(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS._globalThis=void 0;var FOe=b$();Object.defineProperty(eS,"_globalThis",{enumerable:!0,get:function(){return FOe._globalThis}})});var I$=T(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.API_BACKWARDS_COMPATIBILITY_VERSION=Lo.makeGetter=Lo._global=Lo.GLOBAL_LOGS_API_KEY=void 0;var GOe=R$();Lo.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Lo._global=GOe._globalThis;function jOe(t,e,n){return r=>r===t?e:n}Lo.makeGetter=jOe;Lo.API_BACKWARDS_COMPATIBILITY_VERSION=1});var C$=T(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});tS.LogsAPI=void 0;var Mr=I$(),HOe=KE(),O$=uN(),cN=class t{constructor(){this._proxyLoggerProvider=new O$.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Mr._global[Mr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Mr._global[Mr.GLOBAL_LOGS_API_KEY]=(0,Mr.makeGetter)(Mr.API_BACKWARDS_COMPATIBILITY_VERSION,e,HOe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,n;return(n=(e=Mr._global[Mr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Mr._global,Mr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(e,n,r){return this.getLoggerProvider().getLogger(e,n,r)}disable(){delete Mr._global[Mr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new O$.ProxyLoggerProvider}};tS.LogsAPI=cN});var lN=T(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.logs=wt.ProxyLoggerProvider=wt.ProxyLogger=wt.NoopLoggerProvider=wt.NOOP_LOGGER_PROVIDER=wt.NoopLogger=wt.NOOP_LOGGER=wt.SeverityNumber=void 0;var VOe=A$();Object.defineProperty(wt,"SeverityNumber",{enumerable:!0,get:function(){return VOe.SeverityNumber}});var N$=YE();Object.defineProperty(wt,"NOOP_LOGGER",{enumerable:!0,get:function(){return N$.NOOP_LOGGER}});Object.defineProperty(wt,"NoopLogger",{enumerable:!0,get:function(){return N$.NoopLogger}});var x$=KE();Object.defineProperty(wt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return x$.NOOP_LOGGER_PROVIDER}});Object.defineProperty(wt,"NoopLoggerProvider",{enumerable:!0,get:function(){return x$.NoopLoggerProvider}});var qOe=iN();Object.defineProperty(wt,"ProxyLogger",{enumerable:!0,get:function(){return qOe.ProxyLogger}});var $Oe=uN();Object.defineProperty(wt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return $Oe.ProxyLoggerProvider}});var zOe=C$();wt.logs=zOe.LogsAPI.getInstance()});var P$=T(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.disableInstrumentations=Ml.enableInstrumentations=void 0;function YOe(t,e,n,r){for(let o=0,s=t.length;o<s;o++){let i=t[o];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}Ml.enableInstrumentations=YOe;function WOe(t){t.forEach(e=>e.disable())}Ml.disableInstrumentations=WOe});var k$=T(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.registerInstrumentations=void 0;var M$=(P(),N(L)),KOe=lN(),v$=P$();function QOe(t){let e=t.tracerProvider||M$.trace.getTracerProvider(),n=t.meterProvider||M$.metrics.getMeterProvider(),r=t.loggerProvider||KOe.logs.getLoggerProvider(),o=t.instrumentations?.flat()??[];return(0,v$.enableInstrumentations)(o,e,n,r),()=>{(0,v$.disableInstrumentations)(o)}}nS.registerInstrumentations=QOe});var H$=T(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0});rS.satisfies=void 0;var mN=(P(),N(L)),B$=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,JOe=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,XOe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function ZOe(t,e,n){if(!eCe(t))return mN.diag.error(`Invalid version: ${t}`),!1;if(!e)return!0;e=e.replace(/([<>=~^]+)\s+/g,"$1");let r=oCe(t);if(!r)return!1;let o=[],s=F$(r,e,o,n);return s&&!n?.includePrerelease?nCe(r,o):s}rS.satisfies=ZOe;function eCe(t){return typeof t=="string"&&B$.test(t)}function F$(t,e,n,r){if(e.includes("||")){let o=e.trim().split("||");for(let s of o)if(dN(t,s,n,r))return!0;return!1}else if(e.includes(" - "))e=ICe(e,r);else if(e.includes(" ")){let o=e.trim().replace(/\s{2,}/g," ").split(" ");for(let s of o)if(!dN(t,s,n,r))return!1;return!0}return dN(t,e,n,r)}function dN(t,e,n,r){if(e=rCe(e,r),e.includes(" "))return F$(t,e,n,r);{let o=sCe(e);return n.push(o),tCe(t,o)}}function tCe(t,e){if(e.invalid)return!1;if(!e.version||fN(e.version))return!0;let n=w$(t.versionSegments||[],e.versionSegments||[]);if(n===0){let r=t.prereleaseSegments||[],o=e.prereleaseSegments||[];!r.length&&!o.length?n=0:!r.length&&o.length?n=1:r.length&&!o.length?n=-1:n=w$(r,o)}return XOe[e.op]?.includes(n)}function nCe(t,e){return t.prerelease?e.some(n=>n.prerelease&&n.version===t.version):!0}function rCe(t,e){return t=t.trim(),t=bCe(t,e),t=yCe(t),t=RCe(t,e),t=t.trim(),t}function On(t){return!t||t.toLowerCase()==="x"||t==="*"}function oCe(t){let e=t.match(B$);if(!e){mN.diag.error(`Invalid version: ${t}`);return}let n=e.groups.version,r=e.groups.prerelease,o=e.groups.build,s=n.split("."),i=r?.split(".");return{op:void 0,version:n,versionSegments:s,versionSegmentCount:s.length,prerelease:r,prereleaseSegments:i,prereleaseSegmentCount:i?i.length:0,build:o}}function sCe(t){if(!t)return{};let e=t.match(JOe);if(!e)return mN.diag.error(`Invalid range: ${t}`),{invalid:!0};let n=e.groups.op,r=e.groups.version,o=e.groups.prerelease,s=e.groups.build,i=r.split("."),a=o?.split(".");return n==="=="&&(n="="),{op:n||"=",version:r,versionSegments:i,versionSegmentCount:i.length,prerelease:o,prereleaseSegments:a,prereleaseSegmentCount:a?a.length:0,build:s}}function fN(t){return t==="*"||t==="x"||t==="X"}function L$(t){let e=parseInt(t,10);return isNaN(e)?t:e}function iCe(t,e){if(typeof t==typeof e){if(typeof t=="number")return[t,e];if(typeof t=="string")return[t,e];throw new Error("Version segments can only be strings or numbers")}else return[String(t),String(e)]}function aCe(t,e){if(fN(t)||fN(e))return 0;let[n,r]=iCe(L$(t),L$(e));return n>r?1:n<r?-1:0}function w$(t,e){for(let n=0;n<Math.max(t.length,e.length);n++){let r=aCe(t[n]||"0",e[n]||"0");if(r!==0)return r}return 0}var G$="[a-zA-Z0-9-]",j$="0|[1-9]\\d*",uCe=`\\d*[a-zA-Z-]${G$}*`,cCe="((?:<|>)?=?)",D$=`(?:${j$}|${uCe})`,lCe=`(?:-(${D$}(?:\\.${D$})*))`,U$=`${G$}+`,dCe=`(?:\\+(${U$}(?:\\.${U$})*))`,pN=`${j$}|x|X|\\*`,Df=`[v=\\s]*(${pN})(?:\\.(${pN})(?:\\.(${pN})(?:${lCe})?${dCe}?)?)?`,pCe=`^${cCe}\\s*${Df}$`,fCe=new RegExp(pCe),mCe=`^\\s*(${Df})\\s+-\\s+(${Df})\\s*$`,_Ce=new RegExp(mCe),hCe="(?:~>?)",gCe=`^${hCe}${Df}$`,TCe=new RegExp(gCe),ECe="(?:\\^)",SCe=`^${ECe}${Df}$`,ACe=new RegExp(SCe);function yCe(t){let e=TCe;return t.replace(e,(n,r,o,s,i)=>{let a;return On(r)?a="":On(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:On(s)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:i?a=`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:a=`>=${r}.${o}.${s} <${r}.${+o+1}.0-0`,a})}function bCe(t,e){let n=ACe,r=e?.includePrerelease?"-0":"";return t.replace(n,(o,s,i,a,u)=>{let l;return On(s)?l="":On(i)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:On(a)?s==="0"?l=`>=${s}.${i}.0${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${r} <${+s+1}.0.0-0`:u?s==="0"?i==="0"?l=`>=${s}.${i}.${a}-${u} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}-${u} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a}-${u} <${+s+1}.0.0-0`:s==="0"?i==="0"?l=`>=${s}.${i}.${a}${r} <${s}.${i}.${+a+1}-0`:l=`>=${s}.${i}.${a}${r} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${a} <${+s+1}.0.0-0`,l})}function RCe(t,e){let n=fCe;return t.replace(n,(r,o,s,i,a,u)=>{let l=On(s),d=l||On(i),p=d||On(a),f=p;return o==="="&&f&&(o=""),u=e?.includePrerelease?"-0":"",l?o===">"||o==="<"?r="<0.0.0-0":r="*":o&&f?(d&&(i=0),a=0,o===">"?(o=">=",d?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):o==="<="&&(o="<",d?s=+s+1:i=+i+1),o==="<"&&(u="-0"),r=`${o+s}.${i}.${a}${u}`):d?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${u} <${s}.${+i+1}.0-0`),r})}function ICe(t,e){let n=_Ce;return t.replace(n,(r,o,s,i,a,u,l,d,p,f,m,_)=>(On(s)?o="":On(i)?o=`>=${s}.0.0${e?.includePrerelease?"-0":""}`:On(a)?o=`>=${s}.${i}.0${e?.includePrerelease?"-0":""}`:u?o=`>=${o}`:o=`>=${o}${e?.includePrerelease?"-0":""}`,On(p)?d="":On(f)?d=`<${+p+1}.0.0-0`:On(m)?d=`<${p}.${+f+1}.0-0`:_?d=`<=${p}.${f}.${m}-${_}`:e?.includePrerelease?d=`<${p}.${f}.${+m+1}-0`:d=`<=${d}`,`${o} ${d}`.trim()))}});var _N=T(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.massUnwrap=Qt.unwrap=Qt.massWrap=Qt.wrap=void 0;var Cn=console.error.bind(console);function Uf(t,e,n){let r=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}var OCe=(t,e,n)=>{if(!t||!t[e]){Cn("no original function "+String(e)+" to wrap");return}if(!n){Cn("no wrapper function"),Cn(new Error().stack);return}let r=t[e];if(typeof r!="function"||typeof n!="function"){Cn("original object and wrapper must be functions");return}let o=n(r,e);return Uf(o,"__original",r),Uf(o,"__unwrap",()=>{t[e]===o&&Uf(t,e,r)}),Uf(o,"__wrapped",!0),Uf(t,e,o),o};Qt.wrap=OCe;var CCe=(t,e,n)=>{if(t)Array.isArray(t)||(t=[t]);else{Cn("must provide one or more modules to patch"),Cn(new Error().stack);return}if(!(e&&Array.isArray(e))){Cn("must provide one or more functions to wrap on modules");return}t.forEach(r=>{e.forEach(o=>{(0,Qt.wrap)(r,o,n)})})};Qt.massWrap=CCe;var NCe=(t,e)=>{if(!t||!t[e]){Cn("no function to unwrap."),Cn(new Error().stack);return}let n=t[e];if(!n.__unwrap)Cn("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{n.__unwrap();return}};Qt.unwrap=NCe;var xCe=(t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{Cn("must provide one or more modules to patch"),Cn(new Error().stack);return}if(!(e&&Array.isArray(e))){Cn("must provide one or more functions to unwrap on modules");return}t.forEach(n=>{e.forEach(r=>{(0,Qt.unwrap)(n,r)})})};Qt.massUnwrap=xCe;function Bf(t){t&&t.logger&&(typeof t.logger!="function"?Cn("new logger isn't a function, not replacing"):Cn=t.logger)}Qt.default=Bf;Bf.wrap=Qt.wrap;Bf.massWrap=Qt.massWrap;Bf.unwrap=Qt.unwrap;Bf.massUnwrap=Qt.massUnwrap});var V$=T(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0});sS.InstrumentationAbstract=void 0;var hN=(P(),N(L)),PCe=lN(),oS=_N(),gN=class{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,n,r){this.instrumentationName=e,this.instrumentationVersion=n,this.setConfig(r),this._diag=hN.diag.createComponentLogger({namespace:e}),this._tracer=hN.trace.getTracer(e,n),this._meter=hN.metrics.getMeter(e,n),this._logger=PCe.logs.getLogger(e,n),this._updateMetricInstruments()}_wrap=oS.wrap;_unwrap=oS.unwrap;_massWrap=oS.massWrap;_massUnwrap=oS.massUnwrap;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(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,n,r,o){if(e)try{e(r,o)}catch(s){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},s)}}};sS.InstrumentationAbstract=gN});var q$=T(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.ModuleNameTrie=vi.ModuleNameSeparator=void 0;vi.ModuleNameSeparator="/";var iS=class{hooks=[];children=new Map},TN=class{_trie=new iS;_counter=0;insert(e){let n=this._trie;for(let r of e.moduleName.split(vi.ModuleNameSeparator)){let o=n.children.get(r);o||(o=new iS,n.children.set(r,o)),n=o}n.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:n,fullOnly:r}={}){let o=this._trie,s=[],i=!0;for(let a of e.split(vi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){i=!1;break}r||s.push(...u.hooks),o=u}return r&&i&&s.push(...o.hooks),s.length===0?[]:s.length===1?[s[0].hook]:(n&&s.sort((a,u)=>a.insertedId-u.insertedId),s.map(({hook:a})=>a))}};vi.ModuleNameTrie=TN});var z$=T(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});aS.RequireInTheMiddleSingleton=void 0;var MCe=fa(),$$=U("path"),EN=q$(),vCe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),SN=class t{_moduleNameTrie=new EN.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new MCe.Hook(null,{internals:!0},(e,n,r)=>{let o=kCe(n),s=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:r===void 0});for(let{onRequire:i}of s)e=i(e,n,r);return e})}register(e,n){let r={moduleName:e,onRequire:n};return this._moduleNameTrie.insert(r),r}static getInstance(){return vCe?new t:this._instance=this._instance??new t}};aS.RequireInTheMiddleSingleton=SN;function kCe(t){return $$.sep!==EN.ModuleNameSeparator?t.split($$.sep).join(EN.ModuleNameSeparator):t}});var AN=T(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.isWrapped=ki.safeExecuteInTheMiddleAsync=ki.safeExecuteInTheMiddle=void 0;function LCe(t,e,n){let r,o;try{o=t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}ki.safeExecuteInTheMiddle=LCe;async function wCe(t,e,n){let r,o;try{o=await t()}catch(s){r=s}finally{if(e(r,o),r&&!n)throw r;return o}}ki.safeExecuteInTheMiddleAsync=wCe;function DCe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ki.isWrapped=DCe});var K$=T(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.InstrumentationBase=void 0;var Ff=U("path"),Y$=U("util"),UCe=H$(),yN=_N(),BCe=V$(),FCe=z$(),GCe=nC(),Gf=(P(),N(L)),jCe=fa(),HCe=U("fs"),VCe=AN(),bN=class extends BCe.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=FCe.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,n,r){super(e,n,r);let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_wrap=(e,n,r)=>{if((0,VCe.isWrapped)(e[n])&&this._unwrap(e,n),Y$.types.isProxy(e)){let o=(0,yN.wrap)(Object.assign({},e),n,r);return Object.defineProperty(e,n,{value:o}),o}else return(0,yN.wrap)(e,n,r)};_unwrap=(e,n)=>Y$.types.isProxy(e)?Object.defineProperty(e,n,{value:e[n]}):(0,yN.unwrap)(e,n);_massWrap=(e,n,r)=>{if(e)Array.isArray(e)||(e=[e]);else{Gf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){Gf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(o=>{n.forEach(s=>{this._wrap(o,s,r)})})};_massUnwrap=(e,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Gf.diag.error("must provide one or more modules to patch");return}if(!(n&&Array.isArray(n))){Gf.diag.error("must provide one or more functions to wrap on modules");return}e.forEach(r=>{n.forEach(o=>{this._unwrap(r,o)})})};_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:n}=e;try{let r=U.resolve(n);U.cache[r]&&this._diag.warn(`Module ${n} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${n}`)}catch{}})}_extractPackageVersion(e){try{let n=(0,HCe.readFileSync)(Ff.join(e,"package.json"),{encoding:"utf8"}),r=JSON.parse(n).version;return typeof r=="string"?r:void 0}catch{Gf.diag.warn("Failed extracting version",e)}}_onRequire(e,n,r,o){if(!o)return typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(n)):n;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===r)return W$(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(n,e.moduleVersion)):n;let i=e.files??[],a=Ff.normalize(r);return i.filter(l=>l.name===a).filter(l=>W$(l.supportedVersions,s,e.includePrerelease)).reduce((l,d)=>(d.moduleExports=l,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:d.name,baseDir:o}),d.patch(l,e.moduleVersion)):l),n)}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 n of e.files)n.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.patch(n.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let n=(i,a,u)=>{if(!u&&Ff.isAbsolute(a)){let l=Ff.parse(a);a=l.name,u=l.dir}return this._onRequire(e,i,a,u)},r=(i,a,u)=>this._onRequire(e,i,a,u),o=Ff.isAbsolute(e.name)?new jCe.Hook([e.name],{internals:!0},r):this._requireInTheMiddleSingleton.register(e.name,r);this._hooks.push(o);let s=new GCe.Hook([e.name],{internals:!1},n);this._hooks.push(s)}}}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 n of e.files)n.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:n.name}),n.unpatch(n.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};uS.InstrumentationBase=bN;function W$(t,e,n){return typeof e>"u"?t.includes("*"):t.some(r=>(0,UCe.satisfies)(e,r,{includePrerelease:n}))}});var Q$=T(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.normalize=void 0;var qCe=U("path");Object.defineProperty(cS,"normalize",{enumerable:!0,get:function(){return qCe.normalize}})});var J$=T(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.normalize=vl.InstrumentationBase=void 0;var $Ce=K$();Object.defineProperty(vl,"InstrumentationBase",{enumerable:!0,get:function(){return $Ce.InstrumentationBase}});var zCe=Q$();Object.defineProperty(vl,"normalize",{enumerable:!0,get:function(){return zCe.normalize}})});var RN=T(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.normalize=kl.InstrumentationBase=void 0;var X$=J$();Object.defineProperty(kl,"InstrumentationBase",{enumerable:!0,get:function(){return X$.InstrumentationBase}});Object.defineProperty(kl,"normalize",{enumerable:!0,get:function(){return X$.normalize}})});var Z$=T(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.InstrumentationNodeModuleDefinition=void 0;var IN=class{name;supportedVersions;patch;unpatch;files;constructor(e,n,r,o,s){this.name=e,this.supportedVersions=n,this.patch=r,this.unpatch=o,this.files=s||[]}};lS.InstrumentationNodeModuleDefinition=IN});var ez=T(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.InstrumentationNodeModuleFile=void 0;var YCe=RN(),ON=class{supportedVersions;patch;unpatch;name;constructor(e,n,r,o){this.supportedVersions=n,this.patch=r,this.unpatch=o,this.name=(0,YCe.normalize)(e)}};dS.InstrumentationNodeModuleFile=ON});var tz=T(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.semconvStabilityFromStr=Ja.SemconvStability=void 0;var pS;(function(t){t[t.STABLE=1]="STABLE",t[t.OLD=2]="OLD",t[t.DUPLICATE=3]="DUPLICATE"})(pS=Ja.SemconvStability||(Ja.SemconvStability={}));function WCe(t,e){let n=pS.OLD,r=e?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(let o of r??[])if(o.toLowerCase()===t+"/dup"){n=pS.DUPLICATE;break}else o.toLowerCase()===t&&(n=pS.STABLE);return n}Ja.semconvStabilityFromStr=WCe});var rz=T(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.semconvStabilityFromStr=gt.SemconvStability=gt.safeExecuteInTheMiddleAsync=gt.safeExecuteInTheMiddle=gt.isWrapped=gt.InstrumentationNodeModuleFile=gt.InstrumentationNodeModuleDefinition=gt.InstrumentationBase=gt.registerInstrumentations=void 0;var KCe=k$();Object.defineProperty(gt,"registerInstrumentations",{enumerable:!0,get:function(){return KCe.registerInstrumentations}});var QCe=RN();Object.defineProperty(gt,"InstrumentationBase",{enumerable:!0,get:function(){return QCe.InstrumentationBase}});var JCe=Z$();Object.defineProperty(gt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return JCe.InstrumentationNodeModuleDefinition}});var XCe=ez();Object.defineProperty(gt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return XCe.InstrumentationNodeModuleFile}});var CN=AN();Object.defineProperty(gt,"isWrapped",{enumerable:!0,get:function(){return CN.isWrapped}});Object.defineProperty(gt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return CN.safeExecuteInTheMiddle}});Object.defineProperty(gt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return CN.safeExecuteInTheMiddleAsync}});var nz=tz();Object.defineProperty(gt,"SemconvStability",{enumerable:!0,get:function(){return nz.SemconvStability}});Object.defineProperty(gt,"semconvStabilityFromStr",{enumerable:!0,get:function(){return nz.semconvStabilityFromStr}})});var fz=T(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.PACKAGE_NAME=wl.PACKAGE_VERSION=void 0;wl.PACKAGE_VERSION="0.60.0";wl.PACKAGE_NAME="@opentelemetry/instrumentation-hapi"});var MN=T(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.HapiLifecycleMethodNames=wo.HapiLayerType=wo.handlerPatched=wo.HapiComponentName=void 0;wo.HapiComponentName="@hapi/hapi";wo.handlerPatched=Symbol("hapi-handler-patched");wo.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"};wo.HapiLifecycleMethodNames=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"])});var mz=T(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.ATTR_HTTP_METHOD=void 0;mS.ATTR_HTTP_METHOD="http.method"});var vN=T(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.AttributeNames=void 0;var mNe;(function(t){t.HAPI_TYPE="hapi.type",t.PLUGIN_NAME="hapi.plugin.name",t.EXT_TYPE="server.ext.type"})(mNe=jf.AttributeNames||(jf.AttributeNames={}))});var gz=T(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getPluginFromInput=Tt.getExtMetadata=Tt.getRouteMetadata=Tt.isPatchableExtMethod=Tt.isDirectExtInput=Tt.isLifecycleExtEventObj=Tt.isLifecycleExtType=Tt.getPluginName=void 0;var _z=(de(),N(Ie)),_Ne=mz(),Hf=MN(),Li=vN(),hz=re();function hNe(t){return t.name?t.name:t.pkg.name}Tt.getPluginName=hNe;var gNe=t=>typeof t=="string"&&Hf.HapiLifecycleMethodNames.has(t);Tt.isLifecycleExtType=gNe;var TNe=t=>{let e=t?.type;return e!==void 0&&(0,Tt.isLifecycleExtType)(e)};Tt.isLifecycleExtEventObj=TNe;var ENe=t=>Array.isArray(t)&&t.length<=3&&(0,Tt.isLifecycleExtType)(t[0])&&typeof t[1]=="function";Tt.isDirectExtInput=ENe;var SNe=t=>!Array.isArray(t);Tt.isPatchableExtMethod=SNe;var ANe=(t,e,n)=>{let r={[_z.ATTR_HTTP_ROUTE]:t.path};e&hz.SemconvStability.OLD&&(r[_Ne.ATTR_HTTP_METHOD]=t.method),e&hz.SemconvStability.STABLE&&(r[_z.ATTR_HTTP_REQUEST_METHOD]=t.method);let o;return n?(r[Li.AttributeNames.HAPI_TYPE]=Hf.HapiLayerType.PLUGIN,r[Li.AttributeNames.PLUGIN_NAME]=n,o=`${n}: route - ${t.path}`):(r[Li.AttributeNames.HAPI_TYPE]=Hf.HapiLayerType.ROUTER,o=`route - ${t.path}`),{attributes:r,name:o}};Tt.getRouteMetadata=ANe;var yNe=(t,e,n)=>{let r=`ext - ${t}`;return n&&n!=="method"&&(r=`ext - ${t} - ${n}`),e?{attributes:{[Li.AttributeNames.EXT_TYPE]:t,[Li.AttributeNames.HAPI_TYPE]:Hf.HapiLayerType.EXT,[Li.AttributeNames.PLUGIN_NAME]:e},name:`${e}: ${r}`}:{attributes:{[Li.AttributeNames.EXT_TYPE]:t,[Li.AttributeNames.HAPI_TYPE]:Hf.HapiLayerType.EXT},name:r}};Tt.getExtMetadata=yNe;var bNe=t=>"plugin"in t?"plugin"in t.plugin?t.plugin.plugin:t.plugin:t;Tt.getPluginFromInput=bNe});var Sz=T(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});_S.HapiInstrumentation=void 0;var sr=(P(),N(L)),Tz=Ae(),Vf=re(),Ez=fz(),qf=MN(),bs=gz(),kN=class extends Vf.InstrumentationBase{_semconvStability;constructor(e={}){super(Ez.PACKAGE_NAME,Ez.PACKAGE_VERSION,e),this._semconvStability=(0,Vf.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new Vf.InstrumentationNodeModuleDefinition(qf.HapiComponentName,[">=17.0.0 <22"],e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,Vf.isWrapped)(n.server)||this._wrap(n,"server",this._getServerPatch.bind(this)),(0,Vf.isWrapped)(n.Server)||this._wrap(n,"Server",this._getServerPatch.bind(this)),n},e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;this._massUnwrap([n],["server","Server"])})}_getServerPatch(e){let n=this,r=this;return function(s){let i=e.apply(this,[s]);return r._wrap(i,"route",a=>n._getServerRoutePatch.bind(n)(a)),r._wrap(i,"ext",a=>n._getServerExtPatch.bind(n)(a)),r._wrap(i,"register",n._getServerRegisterPatch.bind(n)),i}}_getServerRegisterPatch(e){let n=this;return function(o,s){if(Array.isArray(o))for(let i of o){let a=(0,bs.getPluginFromInput)(i);n._wrapRegisterHandler(a)}else{let i=(0,bs.getPluginFromInput)(o);n._wrapRegisterHandler(i)}return e.apply(this,[o,s])}}_getServerExtPatch(e,n){let r=this;return function(...s){if(Array.isArray(s[0])){let i=s[0];for(let a=0;a<i.length;a++){let u=i[a];if((0,bs.isLifecycleExtType)(u.type)){let l=u,d=r._wrapExtMethods(l.method,u.type,n);l.method=d,i[a]=l}}return e.apply(this,s)}else if((0,bs.isDirectExtInput)(s)){let i=s,a=i[1],u=r._wrapExtMethods(a,i[0],n);return e.apply(this,[i[0],u,i[2]])}else if((0,bs.isLifecycleExtEventObj)(s[0])){let i=s[0],a=r._wrapExtMethods(i.method,i.type,n);return i.method=a,e.call(this,i)}return e.apply(this,s)}}_getServerRoutePatch(e,n){let r=this;return function(o){if(Array.isArray(o))for(let s=0;s<o.length;s++){let i=r._wrapRouteHandler.call(r,o[s],n);o[s]=i}else o=r._wrapRouteHandler.call(r,o,n);return e.apply(this,[o])}}_wrapRegisterHandler(e){let n=this,r=(0,bs.getPluginName)(e),o=e.register,s=this,i=function(a,u){return s._wrap(a,"route",l=>n._getServerRoutePatch.bind(n)(l,r)),s._wrap(a,"ext",l=>n._getServerExtPatch.bind(n)(l,r)),o.call(this,a,u)};e.register=i}_wrapExtMethods(e,n,r){let o=this;if(e instanceof Array){for(let s=0;s<e.length;s++)e[s]=o._wrapExtMethods(e[s],n);return e}else if((0,bs.isPatchableExtMethod)(e))return e[qf.handlerPatched]===!0?e:(e[qf.handlerPatched]=!0,async function(...i){if(sr.trace.getSpan(sr.context.active())===void 0)return await e.apply(this,i);let a=(0,bs.getExtMetadata)(n,r,e.name),u=o.tracer.startSpan(a.name,{attributes:a.attributes});try{return await sr.context.with(sr.trace.setSpan(sr.context.active(),u),e,void 0,...i)}catch(l){throw u.recordException(l),u.setStatus({code:sr.SpanStatusCode.ERROR,message:l.message}),l}finally{u.end()}});return e}_wrapRouteHandler(e,n){let r=this;if(e[qf.handlerPatched]===!0)return e;e[qf.handlerPatched]=!0;let o=s=>async function(...i){if(sr.trace.getSpan(sr.context.active())===void 0)return await s.call(this,...i);let a=(0,Tz.getRPCMetadata)(sr.context.active());a?.type===Tz.RPCType.HTTP&&(a.route=e.path);let u=(0,bs.getRouteMetadata)(e,r._semconvStability,n),l=r.tracer.startSpan(u.name,{attributes:u.attributes});try{return await sr.context.with(sr.trace.setSpan(sr.context.active(),l),()=>s.call(this,...i))}catch(d){throw l.recordException(d),l.setStatus({code:sr.SpanStatusCode.ERROR,message:d.message}),d}finally{l.end()}};if(typeof e.handler=="function")e.handler=o(e.handler);else if(typeof e.options=="function"){let s=e.options;e.options=function(i){let a=s(i);return typeof a.handler=="function"&&(a.handler=o(a.handler)),a}}else typeof e.options?.handler=="function"&&(e.options.handler=o(e.options.handler));return e}};_S.HapiInstrumentation=kN});var Az=T(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.AttributeNames=Dl.HapiInstrumentation=void 0;var RNe=Sz();Object.defineProperty(Dl,"HapiInstrumentation",{enumerable:!0,get:function(){return RNe.HapiInstrumentation}});var INe=vN();Object.defineProperty(Dl,"AttributeNames",{enumerable:!0,get:function(){return INe.AttributeNames}})});var TS=T(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.KoaLayerType=void 0;var MNe;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware"})(MNe=zf.KoaLayerType||(zf.KoaLayerType={}))});var xz=T(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.PACKAGE_NAME=Ul.PACKAGE_VERSION=void 0;Ul.PACKAGE_VERSION="0.62.0";Ul.PACKAGE_NAME="@opentelemetry/instrumentation-koa"});var LN=T(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.AttributeNames=void 0;var vNe;(function(t){t.KOA_TYPE="koa.type",t.KOA_NAME="koa.name"})(vNe=Yf.AttributeNames||(Yf.AttributeNames={}))});var Mz=T(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isLayerIgnored=Bl.getMiddlewareMetadata=void 0;var Pz=TS(),ES=LN(),kNe=(de(),N(Ie)),LNe=(t,e,n,r)=>n?{attributes:{[ES.AttributeNames.KOA_NAME]:r?.toString(),[ES.AttributeNames.KOA_TYPE]:Pz.KoaLayerType.ROUTER,[kNe.ATTR_HTTP_ROUTE]:r?.toString()},name:t._matchedRouteName||`router - ${r}`}:{attributes:{[ES.AttributeNames.KOA_NAME]:e.name??"middleware",[ES.AttributeNames.KOA_TYPE]:Pz.KoaLayerType.MIDDLEWARE},name:`middleware - ${e.name}`};Bl.getMiddlewareMetadata=LNe;var wNe=(t,e)=>!!(Array.isArray(e?.ignoreLayersType)&&e?.ignoreLayersType?.includes(t));Bl.isLayerIgnored=wNe});var vz=T(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.kLayerPatched=void 0;SS.kLayerPatched=Symbol("koa-layer-patched")});var Bz=T(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.KoaInstrumentation=void 0;var Do=(P(),N(L)),Wf=re(),kz=TS(),Lz=xz(),wz=Mz(),Dz=Ae(),Uz=vz(),wN=class extends Wf.InstrumentationBase{constructor(e={}){super(Lz.PACKAGE_NAME,Lz.PACKAGE_VERSION,e)}init(){return new Wf.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <4"],e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;return n==null?n:((0,Wf.isWrapped)(n.prototype.use)&&this._unwrap(n.prototype,"use"),this._wrap(n.prototype,"use",this._getKoaUsePatch.bind(this)),e)},e=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;(0,Wf.isWrapped)(n.prototype.use)&&this._unwrap(n.prototype,"use")})}_getKoaUsePatch(e){let n=this;return function(o){let s;return o.router?s=n._patchRouterDispatch(o):s=n._patchLayer(o,!1),e.apply(this,[s])}}_patchRouterDispatch(e){Do.diag.debug("Patching @koa/router dispatch");let r=e.router?.stack??[];for(let o of r){let s=o.path,i=o.stack;for(let a=0;a<i.length;a++){let u=i[a];i[a]=this._patchLayer(u,!0,s)}}return e}_patchLayer(e,n,r){let o=n?kz.KoaLayerType.ROUTER:kz.KoaLayerType.MIDDLEWARE;return e[Uz.kLayerPatched]===!0||(0,wz.isLayerIgnored)(o,this.getConfig())?e:e.constructor.name==="GeneratorFunction"||e.constructor.name==="AsyncGeneratorFunction"?(Do.diag.debug("ignoring generator-based Koa middleware layer"),e):(e[Uz.kLayerPatched]=!0,Do.diag.debug("patching Koa middleware layer"),async(s,i)=>{if(Do.trace.getSpan(Do.context.active())===void 0)return e(s,i);let u=(0,wz.getMiddlewareMetadata)(s,e,n,r),l=this.tracer.startSpan(u.name,{attributes:u.attributes}),d=(0,Dz.getRPCMetadata)(Do.context.active());d?.type===Dz.RPCType.HTTP&&s._matchedRoute&&(d.route=s._matchedRoute.toString());let{requestHook:p}=this.getConfig();p&&(0,Wf.safeExecuteInTheMiddle)(()=>p(l,{context:s,middlewareLayer:e,layerType:o}),m=>{m&&Do.diag.error("koa instrumentation: request hook failed",m)},!0);let f=Do.trace.setSpan(Do.context.active(),l);return Do.context.with(f,async()=>{try{return await e(s,i)}catch(m){throw l.recordException(m),m}finally{l.end()}})})}};AS.KoaInstrumentation=wN});var Fz=T(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.KoaLayerType=Di.AttributeNames=Di.KoaInstrumentation=void 0;var DNe=Bz();Object.defineProperty(Di,"KoaInstrumentation",{enumerable:!0,get:function(){return DNe.KoaInstrumentation}});var UNe=LN();Object.defineProperty(Di,"AttributeNames",{enumerable:!0,get:function(){return UNe.AttributeNames}});var BNe=TS();Object.defineProperty(Di,"KoaLayerType",{enumerable:!0,get:function(){return BNe.KoaLayerType}})});var DN=T(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.ConnectNames=eo.ConnectTypes=eo.AttributeNames=void 0;var GNe;(function(t){t.CONNECT_TYPE="connect.type",t.CONNECT_NAME="connect.name"})(GNe=eo.AttributeNames||(eo.AttributeNames={}));var jNe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(jNe=eo.ConnectTypes||(eo.ConnectTypes={}));var HNe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})(HNe=eo.ConnectNames||(eo.ConnectNames={}))});var qz=T(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.PACKAGE_NAME=Fl.PACKAGE_VERSION=void 0;Fl.PACKAGE_VERSION="0.57.0";Fl.PACKAGE_NAME="@opentelemetry/instrumentation-connect"});var $z=T(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS._LAYERS_STORE_PROPERTY=void 0;yS._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack")});var zz=T(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.generateRoute=Bi.replaceCurrentStackRoute=Bi.addNewStackLayer=void 0;var VNe=(P(),N(L)),Ui=$z(),qNe=t=>{Array.isArray(t[Ui._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,Ui._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),t[Ui._LAYERS_STORE_PROPERTY].push("/");let e=t[Ui._LAYERS_STORE_PROPERTY].length;return()=>{e===t[Ui._LAYERS_STORE_PROPERTY].length?t[Ui._LAYERS_STORE_PROPERTY].pop():VNe.diag.warn("Connect: Trying to pop the stack multiple time")}};Bi.addNewStackLayer=qNe;var $Ne=(t,e)=>{e&&t[Ui._LAYERS_STORE_PROPERTY].splice(-1,1,e)};Bi.replaceCurrentStackRoute=$Ne;var zNe=t=>t[Ui._LAYERS_STORE_PROPERTY].reduce((e,n)=>e.replace(/\/+$/,"")+n);Bi.generateRoute=zNe});var Kz=T(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.ConnectInstrumentation=Fi.ANONYMOUS_NAME=void 0;var YNe=(P(),N(L)),Yz=Ae(),Gl=DN(),Wz=qz(),bS=re(),WNe=(de(),N(Ie)),UN=zz();Fi.ANONYMOUS_NAME="anonymous";var BN=class extends bS.InstrumentationBase{constructor(e={}){super(Wz.PACKAGE_NAME,Wz.PACKAGE_VERSION,e)}init(){return[new bS.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_patchApp(e){(0,bS.isWrapped)(e.use)||this._wrap(e,"use",this._patchUse.bind(this)),(0,bS.isWrapped)(e.handle)||this._wrap(e,"handle",this._patchHandle.bind(this))}_patchConstructor(e){let n=this;return function(...r){let o=e.apply(this,r);return n._patchApp(o),o}}_patchNext(e,n){return function(o){let s=e.apply(this,[o]);return n(),s}}_startSpan(e,n){let r,o,s;e?(r=Gl.ConnectTypes.REQUEST_HANDLER,s=Gl.ConnectNames.REQUEST_HANDLER,o=e):(r=Gl.ConnectTypes.MIDDLEWARE,s=Gl.ConnectNames.MIDDLEWARE,o=n.name||Fi.ANONYMOUS_NAME);let i=`${s} - ${o}`,a={attributes:{[WNe.ATTR_HTTP_ROUTE]:e.length>0?e:"/",[Gl.AttributeNames.CONNECT_TYPE]:r,[Gl.AttributeNames.CONNECT_NAME]:o}};return this.tracer.startSpan(i,a)}_patchMiddleware(e,n){let r=this,o=n.length===4;function s(){if(!r.isEnabled())return n.apply(this,arguments);let[i,a,u]=o?[1,2,3]:[0,1,2],l=arguments[i],d=arguments[a],p=arguments[u];(0,UN.replaceCurrentStackRoute)(l,e);let f=(0,Yz.getRPCMetadata)(YNe.context.active());e&&f?.type===Yz.RPCType.HTTP&&(f.route=(0,UN.generateRoute)(l));let m="";e?m=`request handler - ${e}`:m=`middleware - ${n.name||Fi.ANONYMOUS_NAME}`;let _=r._startSpan(e,n);r._diag.debug("start span",m);let h=!1;function g(){h?r._diag.debug(`span ${_.name} - already finished`):(h=!0,r._diag.debug(`finishing span ${_.name}`),_.end()),d.removeListener("close",g)}return d.addListener("close",g),arguments[u]=r._patchNext(p,g),n.apply(this,arguments)}return Object.defineProperty(s,"length",{value:n.length,writable:!1,configurable:!0}),s}_patchUse(e){let n=this;return function(...r){let o=r[r.length-1],s=r[r.length-2]||"";return r[r.length-1]=n._patchMiddleware(s,o),e.apply(this,r)}}_patchHandle(e){let n=this;return function(){let[r,o]=[0,2],s=arguments[r],i=arguments[o],a=(0,UN.addNewStackLayer)(s);return typeof i=="function"&&(arguments[o]=n._patchOut(i,a)),e.apply(this,arguments)}}_patchOut(e,n){return function(...o){return n(),Reflect.apply(e,this,o)}}};Fi.ConnectInstrumentation=BN});var Jz=T(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.ConnectTypes=vr.ConnectNames=vr.AttributeNames=vr.ANONYMOUS_NAME=vr.ConnectInstrumentation=void 0;var Qz=Kz();Object.defineProperty(vr,"ConnectInstrumentation",{enumerable:!0,get:function(){return Qz.ConnectInstrumentation}});Object.defineProperty(vr,"ANONYMOUS_NAME",{enumerable:!0,get:function(){return Qz.ANONYMOUS_NAME}});var FN=DN();Object.defineProperty(vr,"AttributeNames",{enumerable:!0,get:function(){return FN.AttributeNames}});Object.defineProperty(vr,"ConnectNames",{enumerable:!0,get:function(){return FN.ConnectNames}});Object.defineProperty(vr,"ConnectTypes",{enumerable:!0,get:function(){return FN.ConnectTypes}})});var nY=T(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.DB_SYSTEM_VALUE_MSSQL=Dt.ATTR_NET_PEER_PORT=Dt.ATTR_NET_PEER_NAME=Dt.ATTR_DB_USER=Dt.ATTR_DB_SYSTEM=Dt.ATTR_DB_STATEMENT=Dt.ATTR_DB_SQL_TABLE=Dt.ATTR_DB_NAME=void 0;Dt.ATTR_DB_NAME="db.name";Dt.ATTR_DB_SQL_TABLE="db.sql.table";Dt.ATTR_DB_STATEMENT="db.statement";Dt.ATTR_DB_SYSTEM="db.system";Dt.ATTR_DB_USER="db.user";Dt.ATTR_NET_PEER_NAME="net.peer.name";Dt.ATTR_NET_PEER_PORT="net.peer.port";Dt.DB_SYSTEM_VALUE_MSSQL="mssql"});var rY=T(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.once=jl.getSpanName=void 0;function QNe(t,e,n,r){return t==="execBulkLoad"&&r&&e?`${t} ${r} ${e}`:t==="callProcedure"?e?`${t} ${n} ${e}`:`${t} ${n}`:e?`${t} ${e}`:`${t}`}jl.getSpanName=QNe;var JNe=t=>{let e=!1;return(...n)=>{if(!e)return e=!0,t(...n)}};jl.once=JNe});var oY=T(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.PACKAGE_NAME=Hl.PACKAGE_VERSION=void 0;Hl.PACKAGE_VERSION="0.33.0";Hl.PACKAGE_NAME="@opentelemetry/instrumentation-tedious"});var cY=T(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.TediousInstrumentation=ji.INJECTED_CTX=void 0;var Vl=(P(),N(L)),XNe=U("events"),Uo=re(),Xa=(de(),N(Ie)),Gi=nY(),sY=rY(),iY=oY(),uY=Symbol("opentelemetry.instrumentation-tedious.current-database");ji.INJECTED_CTX=Symbol("opentelemetry.instrumentation-tedious.context-info-injected");var aY=["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"];function RS(t){Object.defineProperty(this,uY,{value:t,writable:!0})}var GN=class t extends Uo.InstrumentationBase{static COMPONENT="tedious";_netSemconvStability;_dbSemconvStability;constructor(e={}){super(iY.PACKAGE_NAME,iY.PACKAGE_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,Uo.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=(0,Uo.semconvStabilityFromStr)("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new Uo.InstrumentationNodeModuleDefinition(t.COMPONENT,[">=1.11.0 <20"],e=>{let n=e.Connection.prototype;for(let r of aY)(0,Uo.isWrapped)(n[r])&&this._unwrap(n,r),this._wrap(n,r,this._patchQuery(r,e));return(0,Uo.isWrapped)(n.connect)&&this._unwrap(n,"connect"),this._wrap(n,"connect",this._patchConnect),e},e=>{if(e===void 0)return;let n=e.Connection.prototype;for(let r of aY)this._unwrap(n,r);this._unwrap(n,"connect")})]}_patchConnect(e){return function(){return RS.call(this,this.config?.options?.database),this.removeListener("databaseChange",RS),this.on("databaseChange",RS),this.once("end",()=>{this.removeListener("databaseChange",RS)}),e.apply(this,arguments)}}_buildTraceparent(e){let n=e.spanContext();return`00-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||Vl.TraceFlags.NONE).toString(16)}`}_injectContextInfo(e,n,r){return new Promise(o=>{try{let s="set context_info @opentelemetry_traceparent",i=new n.Request(s,u=>{o()});Object.defineProperty(i,ji.INJECTED_CTX,{value:!0});let a=Buffer.from(r,"utf8");i.addParameter("opentelemetry_traceparent",n.TYPES.VarBinary,a,{length:a.length}),e.execSql(i)}catch{o()}})}_shouldInjectFor(e){return e==="execSql"||e==="execSqlBatch"||e==="callProcedure"||e==="execute"}_patchQuery(e,n){return r=>{let o=this;function s(i){if(i?.[ji.INJECTED_CTX])return r.apply(this,arguments);if(!(i instanceof XNe.EventEmitter))return o._diag.warn(`Unexpected invocation of patched ${e} method. Span not recorded`),r.apply(this,arguments);let a=0,u=0,l=()=>u++,d=()=>a++,p=this[uY],f=(R=>R.sqlTextOrProcedure==="sp_prepare"&&R.parametersByName?.stmt?.value?R.parametersByName.stmt.value:R.sqlTextOrProcedure)(i),m={};o._dbSemconvStability&Uo.SemconvStability.OLD&&(m[Gi.ATTR_DB_SYSTEM]=Gi.DB_SYSTEM_VALUE_MSSQL,m[Gi.ATTR_DB_NAME]=p,m[Gi.ATTR_DB_USER]=this.config?.userName??this.config?.authentication?.options?.userName,m[Gi.ATTR_DB_STATEMENT]=f,m[Gi.ATTR_DB_SQL_TABLE]=i.table),o._dbSemconvStability&Uo.SemconvStability.STABLE&&(m[Xa.ATTR_DB_NAMESPACE]=p,m[Xa.ATTR_DB_SYSTEM_NAME]=Xa.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER,m[Xa.ATTR_DB_QUERY_TEXT]=f,m[Xa.ATTR_DB_COLLECTION_NAME]=i.table),o._netSemconvStability&Uo.SemconvStability.OLD&&(m[Gi.ATTR_NET_PEER_NAME]=this.config?.server,m[Gi.ATTR_NET_PEER_PORT]=this.config?.options?.port),o._netSemconvStability&Uo.SemconvStability.STABLE&&(m[Xa.ATTR_SERVER_ADDRESS]=this.config?.server,m[Xa.ATTR_SERVER_PORT]=this.config?.options?.port);let _=o.tracer.startSpan((0,sY.getSpanName)(e,p,f,i.table),{kind:Vl.SpanKind.CLIENT,attributes:m}),h=(0,sY.once)(R=>{i.removeListener("done",l),i.removeListener("doneInProc",l),i.removeListener("doneProc",d),i.removeListener("error",h),this.removeListener("end",h),_.setAttribute("tedious.procedure_count",a),_.setAttribute("tedious.statement_count",u),R&&_.setStatus({code:Vl.SpanStatusCode.ERROR,message:R.message}),_.end()});i.on("done",l),i.on("doneInProc",l),i.on("doneProc",d),i.once("error",h),this.on("end",h),typeof i.callback=="function"?o._wrap(i,"callback",o._patchCallbackQuery(h)):o._diag.error("Expected request.callback to be a function");let g=()=>Vl.context.with(Vl.trace.setSpan(Vl.context.active(),_),r,this,...arguments);if(!(o.getConfig().enableTraceContextPropagation&&o._shouldInjectFor(e)))return g();let b=o._buildTraceparent(_);o._injectContextInfo(this,n,b).finally(g)}return Object.defineProperty(s,"length",{value:r.length,writable:!1}),s}}_patchCallbackQuery(e){return n=>function(r,o,s){return e(r),n.apply(this,arguments)}}};ji.TediousInstrumentation=GN});var lY=T(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.TediousInstrumentation=void 0;var ZNe=cY();Object.defineProperty(IS,"TediousInstrumentation",{enumerable:!0,get:function(){return ZNe.TediousInstrumentation}})});var _Y=T(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.PACKAGE_NAME=ql.PACKAGE_VERSION=void 0;ql.PACKAGE_VERSION="0.57.0";ql.PACKAGE_NAME="@opentelemetry/instrumentation-generic-pool"});var gY=T(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});OS.GenericPoolInstrumentation=void 0;var $l=(P(),N(L)),Za=re(),hY=_Y(),jN="generic-pool",HN=class extends Za.InstrumentationBase{_isDisabled=!1;constructor(e={}){super(hY.PACKAGE_NAME,hY.PACKAGE_VERSION,e)}init(){return[new Za.InstrumentationNodeModuleDefinition(jN,[">=3.0.0 <4"],e=>{let n=e.Pool;return(0,Za.isWrapped)(n.prototype.acquire)&&this._unwrap(n.prototype,"acquire"),this._wrap(n.prototype,"acquire",this._acquirePatcher.bind(this)),e},e=>{let n=e.Pool;return this._unwrap(n.prototype,"acquire"),e}),new Za.InstrumentationNodeModuleDefinition(jN,[">=2.4.0 <3"],e=>{let n=e.Pool;return(0,Za.isWrapped)(n.prototype.acquire)&&this._unwrap(n.prototype,"acquire"),this._wrap(n.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),e},e=>{let n=e.Pool;return this._unwrap(n.prototype,"acquire"),e}),new Za.InstrumentationNodeModuleDefinition(jN,[">=2.0.0 <2.4"],e=>(this._isDisabled=!1,(0,Za.isWrapped)(e.Pool)&&this._unwrap(e,"Pool"),this._wrap(e,"Pool",this._poolWrapper.bind(this)),e),e=>(this._isDisabled=!0,e))]}_acquirePatcher(e){let n=this;return function(...o){let s=$l.context.active(),i=n.tracer.startSpan("generic-pool.acquire",{},s);return $l.context.with($l.trace.setSpan(s,i),()=>e.call(this,...o).then(a=>(i.end(),a),a=>{throw i.recordException(a),i.end(),a}))}}_poolWrapper(e){let n=this;return function(){let o=e.apply(this,arguments);return n._wrap(o,"acquire",n._acquireWithCallbacksPatcher.bind(n)),o}}_acquireWithCallbacksPatcher(e){let n=this;return function(o,s){if(n._isDisabled)return e.call(this,o,s);let i=$l.context.active(),a=n.tracer.startSpan("generic-pool.acquire",{},i);return $l.context.with($l.trace.setSpan(i,a),()=>{e.call(this,(u,l)=>{if(a.end(),o)return o(u,l)},s)})}}};OS.GenericPoolInstrumentation=HN});var TY=T(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.GenericPoolInstrumentation=void 0;var nxe=gY();Object.defineProperty(CS,"GenericPoolInstrumentation",{enumerable:!0,get:function(){return nxe.GenericPoolInstrumentation}})});var VN=T(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ATTR_NET_PEER_PORT=Bo.ATTR_NET_PEER_NAME=Bo.ATTR_MESSAGING_SYSTEM=Bo.ATTR_MESSAGING_OPERATION=void 0;Bo.ATTR_MESSAGING_OPERATION="messaging.operation";Bo.ATTR_MESSAGING_SYSTEM="messaging.system";Bo.ATTR_NET_PEER_NAME="net.peer.name";Bo.ATTR_NET_PEER_PORT="net.peer.port"});var qN=T(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ATTR_MESSAGING_CONVERSATION_ID=Ke.OLD_ATTR_MESSAGING_MESSAGE_ID=Ke.MESSAGING_DESTINATION_KIND_VALUE_TOPIC=Ke.ATTR_MESSAGING_URL=Ke.ATTR_MESSAGING_PROTOCOL_VERSION=Ke.ATTR_MESSAGING_PROTOCOL=Ke.MESSAGING_OPERATION_VALUE_PROCESS=Ke.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY=Ke.ATTR_MESSAGING_DESTINATION_KIND=Ke.ATTR_MESSAGING_DESTINATION=void 0;Ke.ATTR_MESSAGING_DESTINATION="messaging.destination";Ke.ATTR_MESSAGING_DESTINATION_KIND="messaging.destination_kind";Ke.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY="messaging.rabbitmq.routing_key";Ke.MESSAGING_OPERATION_VALUE_PROCESS="process";Ke.ATTR_MESSAGING_PROTOCOL="messaging.protocol";Ke.ATTR_MESSAGING_PROTOCOL_VERSION="messaging.protocol_version";Ke.ATTR_MESSAGING_URL="messaging.url";Ke.MESSAGING_DESTINATION_KIND_VALUE_TOPIC="topic";Ke.OLD_ATTR_MESSAGING_MESSAGE_ID="messaging.message_id";Ke.ATTR_MESSAGING_CONVERSATION_ID="messaging.conversation_id"});var $N=T(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.DEFAULT_CONFIG=eu.EndOperation=void 0;var oxe;(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"})(oxe=eu.EndOperation||(eu.EndOperation={}));eu.DEFAULT_CONFIG={consumeTimeoutMs:1e3*60,useLinksForConsume:!1}});var OY=T(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.isConfirmChannelTracing=Qe.unmarkConfirmChannelTracing=Qe.markConfirmChannelTracing=Qe.getConnectionAttributesFromUrl=Qe.getConnectionAttributesFromServer=Qe.normalizeExchange=Qe.CONNECTION_ATTRIBUTES=Qe.CHANNEL_CONSUME_TIMEOUT_TIMER=Qe.CHANNEL_SPANS_NOT_ENDED=Qe.MESSAGE_STORED_SPAN=void 0;var zN=(P(),N(L)),Hi=re(),NS=(de(),N(Ie)),Kf=VN(),xS=qN();Qe.MESSAGE_STORED_SPAN=Symbol("opentelemetry.amqplib.message.stored-span");Qe.CHANNEL_SPANS_NOT_ENDED=Symbol("opentelemetry.amqplib.channel.spans-not-ended");Qe.CHANNEL_CONSUME_TIMEOUT_TIMER=Symbol("opentelemetry.amqplib.channel.consumer-timeout-timer");Qe.CONNECTION_ATTRIBUTES=Symbol("opentelemetry.amqplib.connection.attributes");var YN=(0,zN.createContextKey)("opentelemetry.amqplib.channel.is-confirm-channel"),sxe=t=>t!==""?t:"<default>";Qe.normalizeExchange=sxe;var ixe=t=>t.replace(/:[^:@/]*@/,":***@"),bY=(t,e)=>t||(e==="AMQP"?5672:5671),RY=t=>{let e=t||"amqp";return(e.endsWith(":")?e.substring(0,e.length-1):e).toUpperCase()},IY=t=>t||"localhost",Fo=(t,e,n,r)=>n?{[e]:n}:(zN.diag.error(`amqplib instrumentation: could not extract connection attribute ${r} from user supplied url`,{url:t}),{}),axe=t=>{let e=t.serverProperties.product?.toLowerCase?.();return e?{[Kf.ATTR_MESSAGING_SYSTEM]:e}:{}};Qe.getConnectionAttributesFromServer=axe;var uxe=(t,e)=>{let n={[xS.ATTR_MESSAGING_PROTOCOL_VERSION]:"0.9.1"};if(t=t||"amqp://localhost",typeof t=="object"){let r=t,o=RY(r?.protocol);Object.assign(n,{...Fo(t,xS.ATTR_MESSAGING_PROTOCOL,o,"protocol")});let s=IY(r?.hostname);e&Hi.SemconvStability.OLD&&Object.assign(n,{...Fo(t,Kf.ATTR_NET_PEER_NAME,s,"hostname")}),e&Hi.SemconvStability.STABLE&&Object.assign(n,{...Fo(t,NS.ATTR_SERVER_ADDRESS,s,"hostname")});let i=bY(r.port,o);e&Hi.SemconvStability.OLD&&Object.assign(n,Fo(t,Kf.ATTR_NET_PEER_PORT,i,"port")),e&Hi.SemconvStability.STABLE&&Object.assign(n,Fo(t,NS.ATTR_SERVER_PORT,i,"port"))}else{let r=ixe(t);n[xS.ATTR_MESSAGING_URL]=r;try{let o=new URL(r),s=RY(o.protocol);Object.assign(n,{...Fo(r,xS.ATTR_MESSAGING_PROTOCOL,s,"protocol")});let i=IY(o.hostname);e&Hi.SemconvStability.OLD&&Object.assign(n,{...Fo(r,Kf.ATTR_NET_PEER_NAME,i,"hostname")}),e&Hi.SemconvStability.STABLE&&Object.assign(n,{...Fo(r,NS.ATTR_SERVER_ADDRESS,i,"hostname")});let a=bY(o.port?parseInt(o.port):void 0,s);e&Hi.SemconvStability.OLD&&Object.assign(n,Fo(r,Kf.ATTR_NET_PEER_PORT,a,"port")),e&Hi.SemconvStability.STABLE&&Object.assign(n,Fo(r,NS.ATTR_SERVER_PORT,a,"port"))}catch(o){zN.diag.error("amqplib instrumentation: error while extracting connection details from connection url",{censoredUrl:r,err:o})}}return n};Qe.getConnectionAttributesFromUrl=uxe;var cxe=t=>t.setValue(YN,!0);Qe.markConfirmChannelTracing=cxe;var lxe=t=>t.deleteValue(YN);Qe.unmarkConfirmChannelTracing=lxe;var dxe=t=>t.getValue(YN)===!0;Qe.isConfirmChannelTracing=dxe});var CY=T(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.PACKAGE_NAME=zl.PACKAGE_VERSION=void 0;zl.PACKAGE_VERSION="0.61.0";zl.PACKAGE_NAME="@opentelemetry/instrumentation-amqplib"});var xY=T(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});vS.AmqplibInstrumentation=void 0;var He=(P(),N(L)),PS=Ae(),ye=re(),pxe=VN(),ir=qN(),Nn=$N(),Je=OY(),NY=CY(),MS=[">=0.5.5 <1"],WN=class extends ye.InstrumentationBase{_netSemconvStability;constructor(e={}){super(NY.PACKAGE_NAME,NY.PACKAGE_VERSION,{...Nn.DEFAULT_CONFIG,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=(0,ye.semconvStabilityFromStr)("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...Nn.DEFAULT_CONFIG,...e})}init(){let e=new ye.InstrumentationNodeModuleFile("amqplib/lib/channel_model.js",MS,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),n=new ye.InstrumentationNodeModuleFile("amqplib/lib/callback_model.js",MS,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),r=new ye.InstrumentationNodeModuleFile("amqplib/lib/connect.js",MS,this.patchConnect.bind(this),this.unpatchConnect.bind(this));return new ye.InstrumentationNodeModuleDefinition("amqplib",MS,void 0,void 0,[e,r,n])}patchConnect(e){return e=this.unpatchConnect(e),(0,ye.isWrapped)(e.connect)||this._wrap(e,"connect",this.getConnectPatch.bind(this)),e}unpatchConnect(e){return(0,ye.isWrapped)(e.connect)&&this._unwrap(e,"connect"),e}patchChannelModel(e,n){return(0,ye.isWrapped)(e.Channel.prototype.publish)||this._wrap(e.Channel.prototype,"publish",this.getPublishPatch.bind(this,n)),(0,ye.isWrapped)(e.Channel.prototype.consume)||this._wrap(e.Channel.prototype,"consume",this.getConsumePatch.bind(this,n)),(0,ye.isWrapped)(e.Channel.prototype.ack)||this._wrap(e.Channel.prototype,"ack",this.getAckPatch.bind(this,!1,Nn.EndOperation.Ack)),(0,ye.isWrapped)(e.Channel.prototype.nack)||this._wrap(e.Channel.prototype,"nack",this.getAckPatch.bind(this,!0,Nn.EndOperation.Nack)),(0,ye.isWrapped)(e.Channel.prototype.reject)||this._wrap(e.Channel.prototype,"reject",this.getAckPatch.bind(this,!0,Nn.EndOperation.Reject)),(0,ye.isWrapped)(e.Channel.prototype.ackAll)||this._wrap(e.Channel.prototype,"ackAll",this.getAckAllPatch.bind(this,!1,Nn.EndOperation.AckAll)),(0,ye.isWrapped)(e.Channel.prototype.nackAll)||this._wrap(e.Channel.prototype,"nackAll",this.getAckAllPatch.bind(this,!0,Nn.EndOperation.NackAll)),(0,ye.isWrapped)(e.Channel.prototype.emit)||this._wrap(e.Channel.prototype,"emit",this.getChannelEmitPatch.bind(this)),(0,ye.isWrapped)(e.ConfirmChannel.prototype.publish)||this._wrap(e.ConfirmChannel.prototype,"publish",this.getConfirmedPublishPatch.bind(this,n)),e}unpatchChannelModel(e){return(0,ye.isWrapped)(e.Channel.prototype.publish)&&this._unwrap(e.Channel.prototype,"publish"),(0,ye.isWrapped)(e.Channel.prototype.consume)&&this._unwrap(e.Channel.prototype,"consume"),(0,ye.isWrapped)(e.Channel.prototype.ack)&&this._unwrap(e.Channel.prototype,"ack"),(0,ye.isWrapped)(e.Channel.prototype.nack)&&this._unwrap(e.Channel.prototype,"nack"),(0,ye.isWrapped)(e.Channel.prototype.reject)&&this._unwrap(e.Channel.prototype,"reject"),(0,ye.isWrapped)(e.Channel.prototype.ackAll)&&this._unwrap(e.Channel.prototype,"ackAll"),(0,ye.isWrapped)(e.Channel.prototype.nackAll)&&this._unwrap(e.Channel.prototype,"nackAll"),(0,ye.isWrapped)(e.Channel.prototype.emit)&&this._unwrap(e.Channel.prototype,"emit"),(0,ye.isWrapped)(e.ConfirmChannel.prototype.publish)&&this._unwrap(e.ConfirmChannel.prototype,"publish"),e}getConnectPatch(e){let n=this;return function(o,s,i){return e.call(this,o,s,function(a,u){if(a==null){let l=(0,Je.getConnectionAttributesFromUrl)(o,n._netSemconvStability),d=(0,Je.getConnectionAttributesFromServer)(u);u[Je.CONNECTION_ATTRIBUTES]={...l,...d}}i.apply(this,arguments)})}}getChannelEmitPatch(e){let n=this;return function(o){if(o==="close"){n.endAllSpansOnChannel(this,!0,Nn.EndOperation.ChannelClosed,void 0);let s=this[Je.CHANNEL_CONSUME_TIMEOUT_TIMER];s&&clearInterval(s),this[Je.CHANNEL_CONSUME_TIMEOUT_TIMER]=void 0}else o==="error"&&n.endAllSpansOnChannel(this,!0,Nn.EndOperation.ChannelError,void 0);return e.apply(this,arguments)}}getAckAllPatch(e,n,r){let o=this;return function(i){return o.endAllSpansOnChannel(this,e,n,i),r.apply(this,arguments)}}getAckPatch(e,n,r){let o=this;return function(i,a,u){let l=this,d=n===Nn.EndOperation.Reject?a:u,p=l[Je.CHANNEL_SPANS_NOT_ENDED]??[],f=p.findIndex(m=>m.msg===i);if(f<0)o.endConsumerSpan(i,e,n,d);else if(n!==Nn.EndOperation.Reject&&a){for(let m=0;m<=f;m++)o.endConsumerSpan(p[m].msg,e,n,d);p.splice(0,f+1)}else o.endConsumerSpan(i,e,n,d),p.splice(f,1);return r.apply(this,arguments)}}getConsumePatch(e,n){let r=this;return function(s,i,a){let u=this;if(!Object.prototype.hasOwnProperty.call(u,Je.CHANNEL_SPANS_NOT_ENDED)){let{consumeTimeoutMs:d}=r.getConfig();if(d){let p=setInterval(()=>{r.checkConsumeTimeoutOnChannel(u)},d);p.unref(),u[Je.CHANNEL_CONSUME_TIMEOUT_TIMER]=p}u[Je.CHANNEL_SPANS_NOT_ENDED]=[]}let l=function(d){if(!d)return i.call(this,d);let p=d.properties.headers??{},f=He.propagation.extract(He.ROOT_CONTEXT,p),m=d.fields?.exchange,_;if(r._config.useLinksForConsume){let S=f?He.trace.getSpan(f)?.spanContext():void 0;f=void 0,S&&(_=[{context:S}])}let h=r.tracer.startSpan(`${s} process`,{kind:He.SpanKind.CONSUMER,attributes:{...u?.connection?.[Je.CONNECTION_ATTRIBUTES],[ir.ATTR_MESSAGING_DESTINATION]:m,[ir.ATTR_MESSAGING_DESTINATION_KIND]:ir.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[ir.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:d.fields?.routingKey,[pxe.ATTR_MESSAGING_OPERATION]:ir.MESSAGING_OPERATION_VALUE_PROCESS,[ir.OLD_ATTR_MESSAGING_MESSAGE_ID]:d?.properties.messageId,[ir.ATTR_MESSAGING_CONVERSATION_ID]:d?.properties.correlationId},links:_},f),{consumeHook:g}=r.getConfig();g&&(0,ye.safeExecuteInTheMiddle)(()=>g(h,{moduleVersion:e,msg:d}),S=>{S&&He.diag.error("amqplib instrumentation: consumerHook error",S)},!0),a?.noAck||(u[Je.CHANNEL_SPANS_NOT_ENDED].push({msg:d,timeOfConsume:(0,PS.hrTime)()}),d[Je.MESSAGE_STORED_SPAN]=h);let E=f||He.ROOT_CONTEXT;He.context.with(He.trace.setSpan(E,h),()=>{i.call(this,d)}),a?.noAck&&(r.callConsumeEndHook(h,d,!1,Nn.EndOperation.AutoAck),h.end())};return arguments[1]=l,n.apply(this,arguments)}}getConfirmedPublishPatch(e,n){let r=this;return function(s,i,a,u,l){let d=this,{span:p,modifiedOptions:f}=r.createPublishSpan(r,s,i,d,u),{publishHook:m}=r.getConfig();m&&(0,ye.safeExecuteInTheMiddle)(()=>m(p,{moduleVersion:e,exchange:s,routingKey:i,content:a,options:f,isConfirmChannel:!0}),E=>{E&&He.diag.error("amqplib instrumentation: publishHook error",E)},!0);let _=function(E,S){try{l?.call(this,E,S)}finally{let{publishConfirmHook:b}=r.getConfig();b&&(0,ye.safeExecuteInTheMiddle)(()=>b(p,{moduleVersion:e,exchange:s,routingKey:i,content:a,options:u,isConfirmChannel:!0,confirmError:E}),R=>{R&&He.diag.error("amqplib instrumentation: publishConfirmHook error",R)},!0),E&&p.setStatus({code:He.SpanStatusCode.ERROR,message:"message confirmation has been nack'ed"}),p.end()}},h=(0,Je.markConfirmChannelTracing)(He.context.active()),g=[...arguments];return g[3]=f,g[4]=He.context.bind((0,Je.unmarkConfirmChannelTracing)(He.trace.setSpan(h,p)),_),He.context.with(h,n.bind(this,...g))}}getPublishPatch(e,n){let r=this;return function(s,i,a,u){if((0,Je.isConfirmChannelTracing)(He.context.active()))return n.apply(this,arguments);{let l=this,{span:d,modifiedOptions:p}=r.createPublishSpan(r,s,i,l,u),{publishHook:f}=r.getConfig();f&&(0,ye.safeExecuteInTheMiddle)(()=>f(d,{moduleVersion:e,exchange:s,routingKey:i,content:a,options:p,isConfirmChannel:!1}),h=>{h&&He.diag.error("amqplib instrumentation: publishHook error",h)},!0);let m=[...arguments];m[3]=p;let _=n.apply(this,m);return d.end(),_}}}createPublishSpan(e,n,r,o,s){let i=(0,Je.normalizeExchange)(n),a=e.tracer.startSpan(`publish ${i}`,{kind:He.SpanKind.PRODUCER,attributes:{...o.connection[Je.CONNECTION_ATTRIBUTES],[ir.ATTR_MESSAGING_DESTINATION]:n,[ir.ATTR_MESSAGING_DESTINATION_KIND]:ir.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[ir.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:r,[ir.OLD_ATTR_MESSAGING_MESSAGE_ID]:s?.messageId,[ir.ATTR_MESSAGING_CONVERSATION_ID]:s?.correlationId}}),u=s??{};return u.headers=u.headers??{},He.propagation.inject(He.trace.setSpan(He.context.active(),a),u.headers),{span:a,modifiedOptions:u}}endConsumerSpan(e,n,r,o){let s=e[Je.MESSAGE_STORED_SPAN];s&&(n!==!1&&s.setStatus({code:He.SpanStatusCode.ERROR,message:r!==Nn.EndOperation.ChannelClosed&&r!==Nn.EndOperation.ChannelError?`${r} called on message${o===!0?" with requeue":o===!1?" without requeue":""}`:r}),this.callConsumeEndHook(s,e,n,r),s.end(),e[Je.MESSAGE_STORED_SPAN]=void 0)}endAllSpansOnChannel(e,n,r,o){(e[Je.CHANNEL_SPANS_NOT_ENDED]??[]).forEach(i=>{this.endConsumerSpan(i.msg,n,r,o)}),e[Je.CHANNEL_SPANS_NOT_ENDED]=[]}callConsumeEndHook(e,n,r,o){let{consumeEndHook:s}=this.getConfig();s&&(0,ye.safeExecuteInTheMiddle)(()=>s(e,{msg:n,rejected:r,endOperation:o}),i=>{i&&He.diag.error("amqplib instrumentation: consumerEndHook error",i)},!0)}checkConsumeTimeoutOnChannel(e){let n=(0,PS.hrTime)(),r=e[Je.CHANNEL_SPANS_NOT_ENDED]??[],o,{consumeTimeoutMs:s}=this.getConfig();for(o=0;o<r.length;o++){let i=r[o],a=(0,PS.hrTimeDuration)(i.timeOfConsume,n);if((0,PS.hrTimeToMilliseconds)(a)<s)break;this.endConsumerSpan(i.msg,null,Nn.EndOperation.InstrumentationTimeout,!0)}r.splice(0,o)}};vS.AmqplibInstrumentation=WN});var MY=T(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.EndOperation=Vi.DEFAULT_CONFIG=Vi.AmqplibInstrumentation=void 0;var fxe=xY();Object.defineProperty(Vi,"AmqplibInstrumentation",{enumerable:!0,get:function(){return fxe.AmqplibInstrumentation}});var PY=$N();Object.defineProperty(Vi,"DEFAULT_CONFIG",{enumerable:!0,get:function(){return PY.DEFAULT_CONFIG}});Object.defineProperty(Vi,"EndOperation",{enumerable:!0,get:function(){return PY.EndOperation}})});var iQ=T(($ct,sQ)=>{"use strict";var ZK="-",HDe=/^xn--/,VDe=/[^\0-\x7F]/,qDe=/[\x2E\u3002\uFF0E\uFF61]/g,$De={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wP=35,Ko=Math.floor,DP=String.fromCharCode;function Xi(t){throw new RangeError($De[t])}function zDe(t,e){let n=[],r=t.length;for(;r--;)n[r]=e(t[r]);return n}function eQ(t,e){let n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(qDe,".");let o=t.split("."),s=zDe(o,e).join(".");return r+s}function tQ(t){let e=[],n=0,r=t.length;for(;n<r;){let o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){let s=t.charCodeAt(n++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),n--)}else e.push(o)}return e}var YDe=t=>String.fromCodePoint(...t),WDe=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},XK=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},nQ=function(t,e,n){let r=0;for(t=n?Ko(t/700):t>>1,t+=Ko(t/e);t>wP*26>>1;r+=36)t=Ko(t/wP);return Ko(r+(wP+1)*t/(t+38))},rQ=function(t){let e=[],n=t.length,r=0,o=128,s=72,i=t.lastIndexOf(ZK);i<0&&(i=0);for(let a=0;a<i;++a)t.charCodeAt(a)>=128&&Xi("not-basic"),e.push(t.charCodeAt(a));for(let a=i>0?i+1:0;a<n;){let u=r;for(let d=1,p=36;;p+=36){a>=n&&Xi("invalid-input");let f=WDe(t.charCodeAt(a++));f>=36&&Xi("invalid-input"),f>Ko((2147483647-r)/d)&&Xi("overflow"),r+=f*d;let m=p<=s?1:p>=s+26?26:p-s;if(f<m)break;let _=36-m;d>Ko(2147483647/_)&&Xi("overflow"),d*=_}let l=e.length+1;s=nQ(r-u,l,u==0),Ko(r/l)>2147483647-o&&Xi("overflow"),o+=Ko(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},oQ=function(t){let e=[];t=tQ(t);let n=t.length,r=128,o=0,s=72;for(let u of t)u<128&&e.push(DP(u));let i=e.length,a=i;for(i&&e.push(ZK);a<n;){let u=2147483647;for(let d of t)d>=r&&d<u&&(u=d);let l=a+1;u-r>Ko((2147483647-o)/l)&&Xi("overflow"),o+=(u-r)*l,r=u;for(let d of t)if(d<r&&++o>2147483647&&Xi("overflow"),d===r){let p=o;for(let f=36;;f+=36){let m=f<=s?1:f>=s+26?26:f-s;if(p<m)break;let _=p-m,h=36-m;e.push(DP(XK(m+_%h,0))),p=Ko(_/h)}e.push(DP(XK(p,0))),s=nQ(o,l,a===i),o=0,++a}++o,++r}return e.join("")},KDe=function(t){return eQ(t,function(e){return HDe.test(e)?rQ(e.slice(4).toLowerCase()):e})},QDe=function(t){return eQ(t,function(e){return VDe.test(e)?"xn--"+oQ(e):e})},JDe={version:"2.3.1",ucs2:{decode:tQ,encode:YDe},decode:rQ,encode:oQ,toASCII:QDe,toUnicode:KDe};sQ.exports=JDe});P();var MV=Q(tF(),1);var M=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Z=globalThis;var pe="10.47.0";function Tn(){return $s(Z),Z}function $s(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||pe,e[pe]=e[pe]||{}}function jr(t,e,n=Z){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[pe]=r[pe]||{};return o[t]||(o[t]=e())}var Kd=["debug","info","warn","error","log","assert","trace"],ffe="Sentry Logger ",oc={};function nt(t){if(!("console"in Z))return t();let e=Z.console,n={},r=Object.keys(oc);r.forEach(o=>{let s=oc[o];n[o]=e[o],e[o]=s});try{return t()}finally{r.forEach(o=>{e[o]=n[o]})}}function mfe(){Eb().enabled=!0}function _fe(){Eb().enabled=!1}function nF(){return Eb().enabled}function hfe(...t){Tb("log",...t)}function gfe(...t){Tb("warn",...t)}function Tfe(...t){Tb("error",...t)}function Tb(t,...e){M&&nF()&&nt(()=>{Z.console[t](`${ffe}[${t}]:`,...e)})}function Eb(){return M?jr("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var y={enable:mfe,disable:_fe,isEnabled:nF,log:hfe,warn:gfe,error:Tfe};var Q_="?",rF=/\(error: (.*)\)/,oF=/captureMessage|captureException/;function J_(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let s=[],i=n.split(`
|
|
13
13
|
`);for(let a=r;a<i.length;a++){let u=i[a];u.length>1024&&(u=u.slice(0,1024));let l=rF.test(u)?u.replace(rF,"$1"):u;if(!l.match(/\S*Error: /)){for(let d of e){let p=d(l);if(p){s.push(p);break}}if(s.length>=50+o)break}}return sF(s.slice(o))}}function Ab(t){return Array.isArray(t)?J_(...t):t}function sF(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(K_(e).function||"")&&e.pop(),e.reverse(),oF.test(K_(e).function||"")&&(e.pop(),oF.test(K_(e).function||"")&&e.pop()),e.slice(0,50).map(n=>({...n,filename:n.filename||K_(e).filename,function:n.function||Q_}))}function K_(t){return t[t.length-1]||{}}var Sb="<anonymous>";function Qd(t){try{return!t||typeof t!="function"?Sb:t.name||Sb}catch{return Sb}}function X_(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function iF(t){let e=t?.startsWith("file://")?t.slice(7):t;return e?.match(/\/[A-Z]:/)&&(e=e.slice(1)),e}var Z_={},aF={};function sc(t,e){Z_[t]=Z_[t]||[],Z_[t].push(e)}function ic(t,e){if(!aF[t]){aF[t]=!0;try{e()}catch(n){M&&y.error(`Error while instrumenting ${t}`,n)}}}function ac(t,e){let n=t&&Z_[t];if(n)for(let r of n)try{r(e)}catch(o){M&&y.error(`Error while triggering instrumentation handler.
|
|
14
14
|
Type: ${t}
|
|
15
15
|
Name: ${Qd(r)}
|
|
@@ -35,9 +35,9 @@ Url: ${vh(t)}`),!0}return!1}function o_e(t,e){return e?.length?Ch(t).some(n=>Ws(
|
|
|
35
35
|
`),_=m.shift();if(!_)return t.destroy(),n(new Error("No header received from proxy CONNECT response"));let h=_.split(" "),g=+(h[1]||0),E=h.slice(2).join(" "),S={};for(let b of m){if(!b)continue;let R=b.indexOf(":");if(R===-1)return t.destroy(),n(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let I=b.slice(0,R).toLowerCase(),C=b.slice(R+1).trimStart(),H=S[I];typeof H=="string"?S[I]=[H,C]:Array.isArray(H)?H.push(C):S[I]=C}lT("got proxy server response: %o %o",_,S),i(),e({connect:{statusCode:g,statusText:E,headers:S},buffered:p})}t.on("error",u),t.on("end",a),s()})}function Wp(...t){y.log("[https-proxy-agent]",...t)}var Kp=class extends cT{static __initStatic(){this.protocols=["http","https"]}constructor(e,n){super(n),this.options={},this.proxy=typeof e=="string"?new URL(e):e,this.proxyHeaders=n?.headers??{},Wp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let r=(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"],...n?EV(n,"headers"):null,host:r,port:o}}async connect(e,n){let{proxy:r}=this;if(!n.host)throw new TypeError('No "host" provided');let o;if(r.protocol==="https:"){Wp("Creating `tls.Socket`: %o",this.connectOpts);let f=this.connectOpts.servername||this.connectOpts.host;o=CO.connect({...this.connectOpts,servername:f&&hs.isIP(f)?void 0:f})}else Wp("Creating `net.Socket`: %o",this.connectOpts),o=hs.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=hs.isIPv6(n.host)?`[${n.host}]`:n.host,a=`CONNECT ${i}:${n.port} HTTP/1.1\r
|
|
36
36
|
`;if(r.username||r.password){let f=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}s.Host=`${i}:${n.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(s))a+=`${f}: ${s[f]}\r
|
|
37
37
|
`;let u=TV(o);o.write(`${a}\r
|
|
38
|
-
`);let{connect:l,buffered:d}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",k0e),n.secureEndpoint){Wp("Upgrading socket connection to TLS");let f=n.servername||n.host;return CO.connect({...EV(n,"host","path","port"),socket:o,servername:hs.isIP(f)?void 0:f})}return o}o.destroy();let p=new hs.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{Wp("Replaying proxy buffer for failed request"),f.push(d),f.push(null)}),p}};Kp.__initStatic();function k0e(t){t.resume()}function EV(t,...e){let n={},r;for(r in t)e.includes(r)||(n[r]=t[r]);return n}var B0e=1024*32;function F0e(t){return new D0e({read(){this.push(t),this.push(null)}})}function SV(t){let e;try{e=new URL(t.url)}catch{return nt(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),_p(t,()=>Promise.resolve({}))}let n=e.protocol==="https:",r=G0e(e,t.proxy||(n?process.env.https_proxy:void 0)||process.env.http_proxy),o=n?w0e:L0e,s=t.keepAlive===void 0?!1:t.keepAlive,i=r?new Kp(r):new o.Agent({keepAlive:s,maxSockets:30,timeout:2e3}),a=j0e(t,t.httpModule??o,i);return _p(t,a)}function G0e(t,e){let{no_proxy:n}=process.env;if(!n?.split(",").some(o=>t.host.endsWith(o)||t.hostname.endsWith(o)))return e}function j0e(t,e,n){let{hostname:r,pathname:o,port:s,protocol:i,search:a}=new URL(t.url);return function(l){return new Promise((d,p)=>{Ec(()=>{let f=F0e(l.body),m={...t.headers};l.body.length>B0e&&(m["content-encoding"]="gzip",f=f.pipe(U0e()));let _=r.startsWith("["),h=e.request({method:"POST",agent:n,headers:m,hostname:_?r.slice(1,-1):r,path:`${o}${a}`,port:s,protocol:i,ca:t.caCerts},g=>{g.on("data",()=>{}),g.on("end",()=>{}),g.setEncoding("utf8");let E=g.headers["retry-after"]??null,S=g.headers["x-sentry-rate-limits"]??null;d({statusCode:g.statusCode,headers:{"retry-after":E,"x-sentry-rate-limits":Array.isArray(S)?S[0]||null:S}})});h.on("error",p),f.pipe(h)})})}}function AV(t){if(t===!1)return!1;if(typeof t=="string")return t;let e=bc(process.env.SENTRY_SPOTLIGHT,{strict:!0}),n=e===null&&process.env.SENTRY_SPOTLIGHT?process.env.SENTRY_SPOTLIGHT:void 0;return t===!0?n??!0:e??n}import{posix as H0e,sep as V0e}from"node:path";function yV(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function bV(t=process.argv[1]?NR(process.argv[1]):process.cwd(),e=V0e==="\\"){let n=e?yV(t):t;return r=>{if(!r)return;let o=e?yV(r):r,{dir:s,base:i,ext:a}=H0e.parse(o);(a===".js"||a===".mjs"||a===".cjs")&&(i=i.slice(0,a.length*-1));let u=decodeURIComponent(i);s||(s=".");let l=s.lastIndexOf("/node_modules");if(l>-1)return`${s.slice(l+14).replace(/\//g,".")}:${u}`;if(s.startsWith(n)){let d=s.slice(n.length+1).replace(/\//g,".");return d?`${d}:${u}`:u}return u}}function RV(t){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;if(Z.SENTRY_RELEASE?.id)return Z.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,n=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_BUILD_COMMIT||process.env.HEROKU_SLUG_COMMIT||process.env.RAILWAY_GIT_COMMIT_SHA||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,r=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||n||r||t}var IV=J_(iI(bV()));P();var CV=Q(re(),1);import*as OV from"node:os";import{threadId as q0e,isMainThread as $0e}from"worker_threads";var z0e=6e4,dT=class extends hp{constructor(e){let n=e.includeServerName===!1?void 0:e.serverName||global.process.env.SENTRY_NAME||OV.hostname(),r={...e,platform:"node",runtime:e.runtime||{name:"node",version:global.process.version},serverName:n};e.openTelemetryInstrumentations&&(0,CV.registerInstrumentations)({instrumentations:e.openTelemetryInstrumentations}),Oa(r,"node"),y.log(`Initializing Sentry: process: ${process.pid}, thread: ${$0e?"main":`worker-${q0e}`}.`),super(r),this.getOptions().enableLogs&&(this._logOnExitFlushListener=()=>{Ac(this)},n&&this.on("beforeCaptureLog",o=>{o.attributes={...o.attributes,"server.address":n}}),process.on("beforeExit",this._logOnExitFlushListener))}get tracer(){if(this._tracer)return this._tracer;let e="@sentry/node",n=pe,r=X.getTracer(e,n);return this._tracer=r,r}async flush(e){return await this.traceProvider?.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(e)}async close(e){this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),this._logOnExitFlushListener&&process.off("beforeExit",this._logOnExitFlushListener);let n=await super.close(e);return this.traceProvider&&await this.traceProvider.shutdown(),n}startClientReportTracking(){let e=this.getOptions();e.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes()},this._clientReportInterval=setInterval(()=>{oe&&y.log("Flushing client reports based on interval."),this._flushOutcomes()},e.clientReportFlushInterval??z0e).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener))}_setupIntegrations(){AR(),super._setupIntegrations()}_getTraceInfoFromScope(e){return e?PH(this,e):[void 0,void 0]}};var NV=Q(ib(),1);import*as xV from"module";function NO(){if(iV()&&!Z._sentryEsmLoaderHookRegistered){Z._sentryEsmLoaderHookRegistered=!0;try{let{addHookMessagePort:t}=(0,NV.createAddHookMessageChannel)();xV.register("import-in-the-middle/hook.mjs",import.meta.url,{data:{addHookMessagePort:t,include:[]},transferList:[t]})}catch(t){y.warn("Failed to register 'import-in-the-middle' hook",t)}}}function pT(){return[kh(),Mh(),Lh(),wh(),gV(),vR(),Uh(),Zj(),o6(),dV(),pV(),QH(),oV(),qH(),jH(),fV(),lV()]}function xO(t={}){return Y0e(t,pT)}function Y0e(t={},e){let n=W0e(t,e);n.debug===!0&&(oe?y.enable():nt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),n.registerEsmLoaderHooks!==!1&&NO(),kH(),Ee().update(n.initialScope),n.spotlight&&!n.integrations.some(({name:s})=>s===IO)&&n.integrations.push(_V({sidecarUrl:typeof n.spotlight=="string"?n.spotlight:void 0})),Oa(n,"node-core");let o=new dT(n);return Ee().setClient(o),o.init(),y.log(`SDK initialized from ${zp()?"CommonJS":"ESM"}`),o.startClientReportTracking(),J0e(),hH(o),vH(o),process.env.VERCEL&&process.on("SIGTERM",async()=>{await o.flush(200)}),o}function PO(){if(!oe)return;let t=SH(),e=["SentryContextManager","SentryPropagator"];rt()&&e.push("SentrySpanProcessor");for(let n of e)t.includes(n)||y.error(`You have to set up the ${n}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);t.includes("SentrySampler")||y.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 W0e(t,e){let n=K0e(t.release),r=AV(t.spotlight),o=Q0e(t.tracesSampleRate),s={...t,dsn:t.dsn??process.env.SENTRY_DSN,environment:t.environment??process.env.SENTRY_ENVIRONMENT,sendClientReports:t.sendClientReports??!0,transport:t.transport??SV,stackParser:Ab(t.stackParser||IV),release:n,tracesSampleRate:o,spotlight:r,debug:bc(t.debug??process.env.SENTRY_DEBUG)},i=t.integrations,a=t.defaultIntegrations??e(s);return{...s,integrations:fR({defaultIntegrations:a,integrations:i})}}function K0e(t){if(t!==void 0)return t;let e=RV();if(e!==void 0)return e}function Q0e(t){if(t!==void 0)return t;let e=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!e)return;let n=parseFloat(e);return isFinite(n)?n:void 0}function J0e(){if(bc(process.env.SENTRY_USE_ENVIRONMENT)!==!1){let t=process.env.SENTRY_TRACE,e=process.env.SENTRY_BAGGAGE,n=tp(t,e);Ee().setPropagationContext(n)}}function Oe(t,e){t.setAttribute(W,e)}function Qp(t){let e=t.protocol||"",n=t.hostname||t.host||"",r=!t.port||t.port===80||t.port===443||/^(.*):(\d+)$/.test(n)?"":`:${t.port}`,o=t.path?t.path:"/";return`${e}//${n}${r}${o}`}var MO="Http",PV="@opentelemetry_sentry-patched/instrumentation-http",fT=Qr.major===22&&Qr.minor>=12||Qr.major===23&&Qr.minor>=2||Qr.major>=24,X0e=B(`${MO}.sentry`,t=>new La(t)),Z0e=B(MO,t=>{let e=new MV.HttpInstrumentation({...t,disableIncomingRequestInstrumentation:!0});try{e._diag=Wn.createComponentLogger({namespace:PV}),e.instrumentationName=PV}catch{}try{let n={get:()=>!1,set:()=>{}};Object.defineProperty(e,"_httpPatched",n),Object.defineProperty(e,"_httpsPatched",n)}catch{}return e});function eAe(t,e={}){return typeof t.spans=="boolean"?t.spans:!(e.skipOpenTelemetrySetup||!rt(e)&&fT)}var vV=(t={})=>{let e=t.spans??!0,n=t.disableIncomingRequestSpans,r={sessions:t.trackIncomingRequestsAsSessions,sessionFlushingDelayMS:t.sessionFlushingDelayMS,ignoreRequestBody:t.ignoreIncomingRequestBody,maxRequestBodySize:t.maxIncomingRequestBodySize},o={ignoreIncomingRequests:t.ignoreIncomingRequests,ignoreStaticAssets:t.ignoreStaticAssets,ignoreStatusCodes:t.dropSpansForIncomingRequestStatusCodes,instrumentation:t.instrumentation,onSpanCreated:t.incomingRequestSpanHook},s=Mp(r),i=vp(o),a=e&&!n;return{name:MO,setup(u){let l=u.getOptions();a&&rt(l)&&i.setup(u)},setupOnce(){let u=V()?.getOptions()||{},l=eAe(t,u);s.setupOnce();let d={breadcrumbs:t.breadcrumbs,propagateTraceInOutgoingRequests:typeof t.tracePropagation=="boolean"?t.tracePropagation:fT||!l,createSpansForOutgoingRequests:fT,spans:t.spans,ignoreOutgoingRequests:t.ignoreOutgoingRequests,outgoingRequestHook:(p,f)=>{let m=Qp(f);if(m.startsWith("data:")){let _=Rc(m);p.setAttribute("http.url",_),p.setAttribute(Xs,_),p.updateName(`${f.method||"GET"} ${_}`)}t.instrumentation?.requestHook?.(p,f)},outgoingResponseHook:t.instrumentation?.responseHook,outgoingRequestApplyCustomAttributes:t.instrumentation?.applyCustomAttributesOnSpan};if(X0e(d),l){let p=tAe(t);Z0e(p)}},processEvent(u){return i.processEvent(u)}}};function tAe(t={}){return{disableOutgoingRequestInstrumentation:fT,ignoreOutgoingRequestHook:n=>{let r=Qp(n);if(!r)return!1;let o=t.ignoreOutgoingRequests;return!!o?.(r,n)},requireParentforOutgoingSpans:!1,requestHook:(n,r)=>{Oe(n,"auto.http.otel.http");let o=Qp(r);if(o.startsWith("data:")){let s=Rc(o);n.setAttribute("http.url",s),n.setAttribute(Xs,s),n.updateName(`${r.method||"GET"} ${s}`)}t.instrumentation?.requestHook?.(n,r)},responseHook:(n,r)=>{t.instrumentation?.responseHook?.(n,r)},applyCustomAttributesOnSpan:(n,r,o)=>{t.instrumentation?.applyCustomAttributesOnSpan?.(n,r,o)}}}var BV=Q(DV(),1);var FV="NodeFetch",oAe=B(FV,BV.UndiciInstrumentation,t=>uAe(t)),sAe=B(`${FV}.sentry`,wa,t=>t),iAe=(t={})=>({name:"NodeFetch",setupOnce(){aAe(t,V()?.getOptions())&&oAe(t),sAe(t)}}),GV=iAe;function UV(t,e="/"){let n=`${t}`;return n.endsWith("/")&&e.startsWith("/")?`${n}${e.slice(1)}`:!n.endsWith("/")&&!e.startsWith("/")?`${n}/${e}`:`${n}${e}`}function aAe(t,e={}){return typeof t.spans=="boolean"?t.spans:!e.skipOpenTelemetrySetup&&rt(e)}function uAe(t={}){return{requireParentforSpans:!1,ignoreRequestHook:n=>{let r=UV(n.origin,n.path),o=t.ignoreOutgoingRequests;return!!(o&&r&&o(r))},startSpanHook:n=>{let r=UV(n.origin,n.path);if(r.startsWith("data:")){let o=Rc(r);return{[W]:"auto.http.otel.node_fetch","http.url":o,[Xs]:o,[gr]:`${n.method||"GET"} ${o}`}}return{[W]:"auto.http.otel.node_fetch"}},requestHook:t.requestHook,responseHook:t.responseHook,headersToSpanAttributes:t.headersToSpanAttributes}}var JV=Q(QV(),1);var yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var XV="Express";function RAe(t){Oe(t,"auto.http.otel.express");let e=Y(t).data,n=e["express.type"];n&&t.setAttribute(te,`${n}.express`);let r=e["express.name"];typeof r=="string"&&t.updateName(r)}function IAe(t,e){if(le()===hr())return yt&&y.warn("Isolation scope is still default isolation scope - skipping setting transactionName"),e;if(t.layerType==="request_handler"){let n=t.request,r=n.method?n.method.toUpperCase():"GET";le().setTransactionName(`${r} ${t.route}`)}return e}var ZV=B(XV,()=>new JV.ExpressInstrumentation({requestHook:t=>RAe(t),spanNameHook:(t,e)=>IAe(t,e)})),OAe=()=>({name:XV,setupOnce(){ZV()}}),e8=OAe;var Oq=Q(Sq(),1);import*as SC from"node:diagnostics_channel";P();var tE=Q(Ae(),1),qa=Q(re(),1);de();var Ts;(function(t){let e="fastify.name";t.FASTIFY_NAME=e;let n="fastify.type";t.FASTIFY_TYPE=n;let r="hook.name";t.HOOK_NAME=r;let o="plugin.name";t.PLUGIN_NAME=o})(Ts||(Ts={}));var mf;(function(t){let e="middleware";t.MIDDLEWARE=e;let n="request_handler";t.REQUEST_HANDLER=n})(mf||(mf={}));var _f;(function(t){let e="middleware";t.MIDDLEWARE=e;let n="request handler";t.REQUEST_HANDLER=n})(_f||(_f={}));P();var hf=Symbol("opentelemetry.instrumentation.fastify.request_active_span");function EC(t,e,n,r={}){let o=e.startSpan(n,{attributes:r}),s=t[hf]||[];return s.push(o),Object.defineProperty(t,hf,{enumerable:!1,configurable:!0,value:s}),o}function ZT(t,e){let n=t[hf]||[];n.length&&(n.forEach(r=>{e&&(r.setStatus({code:qe.ERROR,message:e.message}),r.recordException(e)),r.end()}),delete t[hf])}function yq(t,e,n){let r,o;try{o=t(),Aq(o)&&o.then(s=>e(void 0,s),s=>e(s))}catch(s){r=s}finally{if(!Aq(o)&&(e(r,o),r))throw r;return o}}function Aq(t){return typeof t=="object"&&t&&typeof Object.getOwnPropertyDescriptor(t,"then")?.value=="function"||!1}var bRe="0.1.0",RRe="@sentry/instrumentation-fastify-v3",bq="anonymous",IRe=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"]),eE=class extends qa.InstrumentationBase{constructor(e={}){super(RRe,bRe,e)}init(){return[new qa.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_hookOnRequest(){let e=this;return function(r,o,s){if(!e.isEnabled())return s();e._wrap(o,"send",e._patchSend());let i=r,a=(0,tE.getRPCMetadata)(v.active()),u=i.routeOptions?i.routeOptions.url:r.routerPath;u&&a?.type===tE.RPCType.HTTP&&(a.route=u);let l=r.method||"GET";le().setTransactionName(`${l} ${u}`),s()}}_wrapHandler(e,n,r,o){let s=this;return this._diag.debug("Patching fastify route.handler function"),function(...i){if(!s.isEnabled())return r.apply(this,i);let a=r.name||e||bq,u=`${_f.MIDDLEWARE} - ${a}`,l=i[1],d=EC(l,s.tracer,u,{[Ts.FASTIFY_TYPE]:mf.MIDDLEWARE,[Ts.PLUGIN_NAME]:e,[Ts.HOOK_NAME]:n}),p=o&&i[i.length-1];return p&&(i[i.length-1]=function(...f){ZT(l),p.apply(this,f)}),v.with(X.setSpan(v.active(),d),()=>yq(()=>r.apply(this,i),f=>{f instanceof Error&&(d.setStatus({code:qe.ERROR,message:f.message}),d.recordException(f)),o||ZT(l)}))}}_wrapAddHook(){let e=this;return this._diag.debug("Patching fastify server.addHook function"),function(n){return function(...o){let s=o[0],i=o[1],a=this.pluginName;if(!IRe.has(s))return n.apply(this,o);let u=typeof o[o.length-1]=="function"&&i.constructor.name!=="AsyncFunction";return n.apply(this,[s,e._wrapHandler(a,s,i,u)])}}}_patchConstructor(e){let n=this;function r(...o){let s=e.fastify.apply(this,o);return s.addHook("onRequest",n._hookOnRequest()),s.addHook("preHandler",n._hookPreHandler()),ORe(),n._wrap(s,"addHook",n._wrapAddHook()),s}return e.errorCodes!==void 0&&(r.errorCodes=e.errorCodes),r.fastify=r,r.default=r,r}_patchSend(){let e=this;return this._diag.debug("Patching fastify reply.send function"),function(r){return function(...s){let i=s[0];return e.isEnabled()?(0,qa.safeExecuteInTheMiddle)(()=>r.apply(this,s),a=>{!a&&i instanceof Error&&(a=i),ZT(this,a)}):r.apply(this,s)}}}_hookPreHandler(){let e=this;return this._diag.debug("Patching fastify preHandler function"),function(r,o,s){if(!e.isEnabled())return s();let i=r,a=i.routeOptions?.handler||i.context?.handler,u=a?.name.startsWith("bound ")?a.name.substring(6):a?.name,l=`${_f.REQUEST_HANDLER} - ${u||this.pluginName||bq}`,d={[Ts.PLUGIN_NAME]:this.pluginName,[Ts.FASTIFY_TYPE]:mf.REQUEST_HANDLER,[ny]:i.routeOptions?i.routeOptions.url:r.routerPath};u&&(d[Ts.FASTIFY_NAME]=u);let p=EC(o,e.tracer,l,d);Rq(p);let{requestHook:f}=e.getConfig();return f&&(0,qa.safeExecuteInTheMiddle)(()=>f(p,{request:r}),m=>{m&&e._diag.error("request hook failed",m)},!0),v.with(X.setSpan(v.active(),p),()=>{s()})}}};function ORe(){let t=V();t&&t.on("spanStart",e=>{Rq(e)})}function Rq(t){let e=Y(t).data,n=e["fastify.type"];if(e[te]||!n)return;t.setAttributes({[W]:"auto.http.otel.fastify",[te]:`${n}.fastify`});let r=e["fastify.name"]||e["plugin.name"]||e["hook.name"];if(typeof r=="string"){let o=r.replace(/^fastify -> /,"").replace(/^@fastify\/otel -> /,"");t.updateName(o)}}var nE="Fastify",Cq=B(`${nE}.v3`,()=>new eE);function CRe(){let t=V();if(t)return t.getIntegrationByName(nE)}function Iq(t,e,n,r){let o=CRe()?.getShouldHandleError()||Pq;if(r==="diagnostics-channel"&&(this.diagnosticsChannelExists=!0),this.diagnosticsChannelExists&&r==="onError-hook"){yt&&y.warn("Fastify error handler was already registered via diagnostics channel.","You can safely remove `setupFastifyErrorHandler` call and set `shouldHandleError` on the integration options.");return}o(t,e,n)&&ne(t,{mechanism:{handled:!1,type:"auto.function.fastify"}})}var Nq=B(`${nE}.v5`,()=>{let t=new Oq.FastifyOtelInstrumentation,e=t.plugin();return SC.subscribe("fastify.initialization",n=>{let r=n.fastify;r?.register(e).after(o=>{o?yt&&y.error("Failed to setup Fastify instrumentation",o):(xRe(),r&&PRe(r))})}),SC.subscribe("tracing:fastify.request.handler:error",n=>{let{error:r,request:o,reply:s}=n;Iq.call(Iq,r,o,s,"diagnostics-channel")}),t}),NRe=({shouldHandleError:t})=>{let e;return{name:nE,setupOnce(){e=t||Pq,Cq(),Nq()},getShouldHandleError(){return e},setShouldHandleError(n){e=n}}},xq=(t={})=>NRe(t);function Pq(t,e,n){let r=n.statusCode;return r>=500||r<=299}function Mq(t){let e=Y(t),n=e.description,r=e.data,o=r["fastify.type"],s=o==="hook",i=o===n?.startsWith("handler -"),a=n==="request"||o==="request-handler";if(r[te]||!i&&!a&&!s)return;let u=s?"hook":i?"middleware":a?"request_handler":"<unknown>";t.setAttributes({[W]:"auto.http.otel.fastify",[te]:`${u}.fastify`});let l=r["fastify.name"]||r["plugin.name"]||r["hook.name"];if(typeof l=="string"){let d=l.replace(/^fastify -> /,"").replace(/^@fastify\/otel -> /,"");t.updateName(d)}}function xRe(){let t=V();t&&t.on("spanStart",e=>{Mq(e)})}function PRe(t){t.addHook("onRequest",async(e,n)=>{if(e.opentelemetry){let{span:s}=e.opentelemetry();s&&Mq(s)}let r=e.routeOptions?.url,o=e.method||"GET";le().setTransactionName(`${o} ${r}`)})}P();var Xq=Q(Jq(),1);var Zq="Graphql",e5=B(Zq,Xq.GraphQLInstrumentation,t=>{let e=n5(t);return{...e,responseHook(n,r){Oe(n,"auto.graphql.otel.graphql"),r.errors?.length&&!Y(n).status&&n.setStatus({code:qe.ERROR});let s=Y(n).data,i=s["graphql.operation.type"],a=s["graphql.operation.name"];if(e.useOperationNameForRootSpan&&i){let u=$e(n),d=Y(u).data[Kc]||[],p=a?`${i} ${a}`:`${i}`;Array.isArray(d)?(d.push(p),u.setAttribute(Kc,d)):typeof d=="string"?u.setAttribute(Kc,[d,p]):u.setAttribute(Kc,p),Y(u).data["original-description"]||u.setAttribute("original-description",Y(u).description),u.updateName(`${Y(u).data["original-description"]} (${JRe(d)})`)}}}}),QRe=(t={})=>({name:Zq,setupOnce(){e5(n5(t))}}),t5=QRe;function n5(t){return{ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...t}}function JRe(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}`}var m5=Q(f5(),1);var _5="Kafka",h5=B(_5,()=>new m5.KafkaJsInstrumentation({consumerHook(t){Oe(t,"auto.kafkajs.otel.consumer")},producerHook(t){Oe(t,"auto.kafkajs.otel.producer")}})),ZRe=()=>({name:_5,setupOnce(){h5()}}),g5=ZRe;var R5=Q(b5(),1);var I5="LruMemoizer",O5=B(I5,()=>new R5.LruMemoizerInstrumentation),tIe=()=>({name:I5,setupOnce(){O5()}}),C5=tIe;var D5=Q(w5(),1);var U5="Mongo",B5=B(U5,()=>new D5.MongoDBInstrumentation({dbStatementSerializer:iIe,responseHook(t){Oe(t,"auto.db.otel.mongo")}}));function iIe(t){let e=xC(t);return JSON.stringify(e)}function xC(t){if(Array.isArray(t))return t.map(e=>xC(e));if(aIe(t)){let e={};return Object.entries(t).map(([n,r])=>[n,xC(r)]).reduce((n,r)=>(cIe(r)&&(n[r[0]]=r[1]),n),e)}return"?"}function aIe(t){return typeof t=="object"&&t!==null&&!uIe(t)}function uIe(t){let e=!1;return typeof Buffer<"u"&&(e=Buffer.isBuffer(t)),e}function cIe(t){return Array.isArray(t)}var lIe=()=>({name:U5,setupOnce(){B5()}}),F5=lIe;var Q5=Q(K5(),1);var J5="Mongoose",X5=B(J5,()=>new Q5.MongooseInstrumentation({responseHook(t){Oe(t,"auto.db.otel.mongoose")}})),EIe=()=>({name:J5,setupOnce(){X5()}}),Z5=EIe;var a9=Q(i9(),1);var u9="Mysql",c9=B(u9,()=>new a9.MySQLInstrumentation({})),xIe=()=>({name:u9,setupOnce(){c9()}}),l9=xIe;var T9=Q(g9(),1);var E9="Mysql2",S9=B(E9,()=>new T9.MySQL2Instrumentation({responseHook(t){Oe(t,"auto.db.otel.mysql2")}})),qIe=()=>({name:E9,setupOnce(){S9()}}),A9=qIe;var Y9=Q(x9(),1),W9=Q(H9(),1);var cOe=["get","set","setex"],QC=["get","mget"],lOe=["set","setex"];function Pf(t,e){return t.includes(e.toLowerCase())}function JC(t){return Pf(QC,t)?"cache.get":Pf(lOe,t)?"cache.put":void 0}function dOe(t,e){return e.some(n=>t.startsWith(n))}function q9(t,e){try{if(e.length===0)return;let n=o=>typeof o=="string"||typeof o=="number"||Buffer.isBuffer(o)?[o.toString()]:Array.isArray(o)?V9(o.map(s=>n(s))):["<unknown>"],r=e[0];return Pf(cOe,t)&&r!=null?n(r):V9(e.map(o=>n(o)))}catch{return}}function $9(t,e,n){if(!JC(t))return!1;for(let r of e)if(dOe(r,n))return!0;return!1}function z9(t){let e=n=>{try{return Buffer.isBuffer(n)?n.byteLength:typeof n=="string"?n.length:typeof n=="number"?n.toString().length:n==null?0:JSON.stringify(n).length}catch{return}};return Array.isArray(t)?t.reduce((n,r)=>{let o=e(r);return typeof o=="number"?n!==void 0?n+o:o:n},0):e(t)}function V9(t){let e=[],n=r=>{r.forEach(o=>{Array.isArray(o)?n(o):e.push(o)})};return n(t),e}var FE="Redis",Mf={},K9=(t,e,n,r)=>{t.setAttribute(W,"auto.db.otel.redis");let o=q9(e,n),s=JC(e);if(!o||!s||!Mf.cachePrefixes||!$9(e,o,Mf.cachePrefixes))return;let i=Y(t).data["net.peer.name"],a=Y(t).data["net.peer.port"];a&&i&&t.setAttributes({"network.peer.address":i,"network.peer.port":a});let u=z9(r);u&&t.setAttribute(Yb,u),Pf(QC,e)&&u!==void 0&&t.setAttribute($b,u>0),t.setAttributes({[te]:s,[zb]:o});let l=o.join(", ");t.updateName(Mf.maxCacheKeyLength?Ys(l,Mf.maxCacheKeyLength):l)},pOe=B(`${FE}.IORedis`,()=>new Y9.IORedisInstrumentation({responseHook:K9})),fOe=B(`${FE}.Redis`,()=>new W9.RedisInstrumentation({responseHook:K9})),Q9=Object.assign(()=>{pOe(),fOe()},{id:FE}),mOe=(t={})=>({name:FE,setupOnce(){Mf=t,Q9()}}),J9=mOe;var m$=Q(f$(),1);var _$="Postgres",h$=B(_$,m$.PgInstrumentation,t=>({requireParentSpan:!0,requestHook(e){Oe(e,"auto.db.otel.postgres")},ignoreConnectSpans:t?.ignoreConnectSpans??!1})),xOe=t=>({name:_$,setupOnce(){h$(t)}}),g$=xOe;P();var Mi=Q(re(),1);de();var oN="PostgresJs",T$=[">=3.0.0 <4"],POe=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,MOe=Symbol.for("sentry.query.from.instrumented.sql"),E$=B(oN,t=>new rN({requireParentSpan:t?.requireParentSpan??!0,requestHook:t?.requestHook})),rN=class extends Mi.InstrumentationBase{constructor(e){super("sentry-postgres-js",pe,e)}init(){let e=new Mi.InstrumentationNodeModuleDefinition("postgres",T$,n=>{try{return this._patchPostgres(n)}catch(r){return yt&&y.error("Failed to patch postgres module:",r),n}},n=>n);return["src","cf/src","cjs/src"].forEach(n=>{e.files.push(new Mi.InstrumentationNodeModuleFile(`postgres/${n}/query.js`,T$,this._patchQueryPrototype.bind(this),this._unpatchQueryPrototype.bind(this)))}),e}_patchPostgres(e){let n=typeof e=="function",r=n?e:e.default;if(typeof r!="function")return yt&&y.warn("postgres module does not export a function. Skipping instrumentation."),e;let o=this,s=function(...i){let a=Reflect.construct(r,i);if(!a||typeof a!="function")return yt&&y.warn("postgres() did not return a valid instance"),a;let u=o.getConfig();return MR(a,{requireParentSpan:u.requireParentSpan,requestHook:u.requestHook})};Object.setPrototypeOf(s,r),Object.setPrototypeOf(s.prototype,r.prototype);for(let i of Object.getOwnPropertyNames(r))if(!["length","name","prototype"].includes(i)){let a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(s,i,a)}return n?s:(Np(e,"default",s),e)}_shouldCreateSpans(){let e=this.getConfig();return X.getSpan(v.active())!==void 0||!e.requireParentSpan}_setOperationName(e,n,r){if(r){e.setAttribute(Hu,r);return}let o=n?.match(POe);o?.[1]&&e.setAttribute(Hu,o[1].toUpperCase())}_reconstructQuery(e){if(e?.length)return e.length===1?e[0]||void 0:e.reduce((n,r,o)=>o===0?r:`${n}$${o}${r}`,"")}_sanitizeSqlQuery(e){return e?e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(/(?<!\$)-?\b\d+\b/g,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)"):"Unknown SQL Query"}_patchQueryPrototype(e){let n=this,r=e.Query.prototype.handle;return e.Query.prototype.handle=async function(...o){if(this[MOe])return r.apply(this,o);if(!n._shouldCreateSpans())return r.apply(this,o);let s=n._reconstructQuery(this.strings),i=n._sanitizeSqlQuery(s);return Pt({name:i||"postgresjs.query",op:"db"},a=>{Oe(a,"auto.db.postgresjs"),a.setAttributes({[aa]:"postgres",[cy]:i});let u=n.getConfig(),{requestHook:l}=u;l&&(0,Mi.safeExecuteInTheMiddle)(()=>l(a,i,void 0),f=>{f&&(a.setAttribute("sentry.hook.error","requestHook failed"),yt&&y.error(`Error in requestHook for ${oN} integration:`,f))},!0);let d=this.resolve;this.resolve=new Proxy(d,{apply:(f,m,_)=>{try{n._setOperationName(a,i,_?.[0]?.command),a.end()}catch(h){yt&&y.error("Error ending span in resolve callback:",h)}return Reflect.apply(f,m,_)}});let p=this.reject;this.reject=new Proxy(p,{apply:(f,m,_)=>{try{a.setStatus({code:2,message:_?.[0]?.message||"unknown_error"}),a.setAttribute(ly,_?.[0]?.code||"unknown"),a.setAttribute(dy,_?.[0]?.name||"unknown"),n._setOperationName(a,i),a.end()}catch(h){yt&&y.error("Error ending span in reject callback:",h)}return Reflect.apply(f,m,_)}});try{return r.apply(this,o)}catch(f){throw a.setStatus({code:2,message:f instanceof Error?f.message:"unknown_error"}),a.end(),f}})},e.Query.prototype.handle.__sentry_original__=r,e}_unpatchQueryPrototype(e){return e.Query.prototype.handle.__sentry_original__&&(e.Query.prototype.handle=e.Query.prototype.handle.__sentry_original__),e}},vOe=t=>({name:oN,setupOnce(){E$(t)}}),S$=vOe;P();P();var fS=Q(rz(),1);P();var ZCe={name:"@prisma/instrumentation-contract",version:"7.6.0",description:"Shared types and utilities for Prisma instrumentation",main:"dist/index.js",module:"dist/index.mjs",types:"dist/index.d.ts",exports:{".":{require:{types:"./dist/index.d.ts",default:"./dist/index.js"},import:{types:"./dist/index.d.mts",default:"./dist/index.mjs"}}},license:"Apache-2.0",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/instrumentation-contract"},bugs:"https://github.com/prisma/prisma/issues",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",prepublishOnly:"pnpm run build",test:"vitest run"},files:["dist"],sideEffects:!1,devDependencies:{"@opentelemetry/api":"1.9.0"},peerDependencies:{"@opentelemetry/api":"^1.8"}},eNe=ZCe.version.split(".")[0],NN="PRISMA_INSTRUMENTATION",xN=`V${eNe}_PRISMA_INSTRUMENTATION`,Ll=globalThis;function tNe(){let t=Ll[xN];return t?.helper?t.helper:Ll[NN]?.helper}function nNe(t){let e={helper:t};Ll[xN]=e,Ll[NN]=e}function rNe(){delete Ll[xN],delete Ll[NN]}var oNe=process.env.PRISMA_SHOW_ALL_TRACES==="true",sNe="00-10-10-00";function iNe(t){switch(t){case"client":return Pe.CLIENT;case"internal":default:return Pe.INTERNAL}}var aNe=class{tracerProvider;ignoreSpanTypes;constructor({tracerProvider:t,ignoreSpanTypes:e}){this.tracerProvider=t,this.ignoreSpanTypes=e}isEnabled(){return!0}getTraceParent(t){let e=X.getSpanContext(t??v.active());return e?`00-${e.traceId}-${e.spanId}-0${e.traceFlags}`:sNe}dispatchEngineSpans(t){let e=this.tracerProvider.getTracer("prisma"),n=new Map,r=t.filter(o=>o.parentId===null);for(let o of r)iz(e,o,t,n,this.ignoreSpanTypes)}getActiveContext(){return v.active()}runInChildSpan(t,e){if(typeof t=="string"&&(t={name:t}),t.internal&&!oNe)return e();let n=this.tracerProvider.getTracer("prisma"),r=t.context??this.getActiveContext(),o=`prisma:client:${t.name}`;if(az(o,this.ignoreSpanTypes))return e();if(t.active===!1){let s=n.startSpan(o,t,r);return oz(s,e(s,r))}return n.startActiveSpan(o,t,s=>oz(s,e(s,r)))}};function iz(t,e,n,r,o){if(az(e.name,o))return;let s={attributes:e.attributes,kind:iNe(e.kind),startTime:e.startTime};t.startActiveSpan(e.name,s,i=>{r.set(e.id,i.spanContext().spanId),e.links&&i.addLinks(e.links.flatMap(u=>{let l=r.get(u);return l?{context:{spanId:l,traceId:i.spanContext().traceId,traceFlags:i.spanContext().traceFlags}}:[]}));let a=n.filter(u=>u.parentId===e.id);for(let u of a)iz(t,u,n,r,o);i.end(e.endTime)})}function oz(t,e){return uNe(e)?e.then(n=>(t.end(),n),n=>{throw t.end(),n}):(t.end(),e)}function uNe(t){return t!=null&&typeof t.then=="function"}function az(t,e){return e.some(n=>typeof n=="string"?n===t:n.test(t))}var uz={name:"@prisma/instrumentation",version:"7.6.0",description:"OpenTelemetry compliant instrumentation for Prisma Client",main:"dist/index.js",module:"dist/index.mjs",types:"dist/index.d.ts",exports:{".":{require:{types:"./dist/index.d.ts",default:"./dist/index.js"},import:{types:"./dist/index.d.ts",default:"./dist/index.mjs"}}},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:{"@opentelemetry/api":"1.9.0","@prisma/instrumentation-contract":"workspace:*","@types/node":"~20.19.24",typescript:"5.4.5"},dependencies:{"@opentelemetry/instrumentation":"^0.207.0"},peerDependencies:{"@opentelemetry/api":"^1.8"},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:"vitest run"},sideEffects:!1},sz=uz.version,cNe=uz.name,lNe="@prisma/client",cz=class extends fS.InstrumentationBase{tracerProvider;constructor(t={}){super(cNe,sz,t)}setTracerProvider(t){this.tracerProvider=t}init(){return[new fS.InstrumentationNodeModuleDefinition(lNe,[sz])]}enable(){let t=this._config;nNe(new aNe({tracerProvider:this.tracerProvider??X.getTracerProvider(),ignoreSpanTypes:t.ignoreSpanTypes??[]}))}disable(){rNe()}isEnabled(){return tNe()!==void 0}};var lz="Prisma";function dNe(t){return!!t&&typeof t=="object"&&"dispatchEngineSpans"in t}function dz(){let t=globalThis.PRISMA_INSTRUMENTATION;return t&&typeof t=="object"&&"helper"in t?t.helper:void 0}var PN=class extends cz{constructor(e){super(e?.instrumentationConfig)}enable(){super.enable();let e=dz();dNe(e)&&(e.createEngineSpan=n=>{let r=X.getTracer("prismaV5Compatibility"),o=r._idGenerator;if(!o){nt(()=>{console.warn("[Sentry] Could not find _idGenerator on tracer, skipping Prisma v5 compatibility - some Prisma spans may be missing!")});return}try{n.spans.forEach(s=>{let i=pNe(s.kind),a=s.parent_span_id,u=s.span_id,l=s.trace_id,d=s.links?.map(f=>({context:{traceId:f.trace_id,spanId:f.span_id,traceFlags:Zt.SAMPLED}})),p=X.setSpanContext(v.active(),{traceId:l,spanId:a,traceFlags:Zt.SAMPLED});v.with(p,()=>{let f={generateTraceId:()=>l,generateSpanId:()=>u};r._idGenerator=f,r.startSpan(s.name,{kind:i,links:d,startTime:s.start_time,attributes:s.attributes}).end(s.end_time),r._idGenerator=o})})}finally{r._idGenerator=o}})}};function pNe(t){switch(t){case"client":return Pe.CLIENT;case"internal":default:return Pe.INTERNAL}}var fNe=B(lz,t=>new PN(t)),pz=t=>({name:lz,setupOnce(){fNe(t)},setup(e){dz()&&e.on("spanStart",n=>{let r=Y(n);r.description?.startsWith("prisma:")&&n.setAttribute(W,"auto.db.otel.prisma"),r.description==="prisma:engine:db_query"&&r.data["db.query.text"]&&n.updateName(r.data["db.query.text"]),r.description==="prisma:engine:db_query"&&!r.data["db.system"]&&n.setAttribute("db.system","prisma")})}});var yz=Q(Az(),1);var bz="Hapi",Rz=B(bz,()=>new yz.HapiInstrumentation),ONe=()=>({name:bz,setupOnce(){Rz()}}),Iz=ONe;de();var wi={HONO_TYPE:"hono.type",HONO_NAME:"hono.name"},$f={MIDDLEWARE:"middleware",REQUEST_HANDLER:"request_handler"};P();var gS=Q(re(),1);var CNe="@sentry/instrumentation-hono",NNe="0.0.1",hS=class extends gS.InstrumentationBase{constructor(e={}){super(CNe,NNe,e)}init(){return[new gS.InstrumentationNodeModuleDefinition("hono",[">=4.0.0 <5"],e=>this._patch(e))]}_patch(e){let n=this;class r extends e.Hono{constructor(...s){super(...s),n._wrap(this,"get",n._patchHandler()),n._wrap(this,"post",n._patchHandler()),n._wrap(this,"put",n._patchHandler()),n._wrap(this,"delete",n._patchHandler()),n._wrap(this,"options",n._patchHandler()),n._wrap(this,"patch",n._patchHandler()),n._wrap(this,"all",n._patchHandler()),n._wrap(this,"on",n._patchOnHandler()),n._wrap(this,"use",n._patchMiddlewareHandler())}}try{e.Hono=r}catch{return{...e,Hono:r}}return e}_patchHandler(){let e=this;return function(n){return function(...o){if(typeof o[0]=="string"){let s=o[0];if(o.length===1)return n.apply(this,[s]);let i=o.slice(1);return n.apply(this,[s,...i.map(a=>e._wrapHandler(a))])}return n.apply(this,o.map(s=>e._wrapHandler(s)))}}}_patchOnHandler(){let e=this;return function(n){return function(...o){let s=o.slice(2);return n.apply(this,[...o.slice(0,2),...s.map(i=>e._wrapHandler(i))])}}}_patchMiddlewareHandler(){let e=this;return function(n){return function(...o){if(typeof o[0]=="string"){let s=o[0];if(o.length===1)return n.apply(this,[s]);let i=o.slice(1);return n.apply(this,[s,...i.map(a=>e._wrapHandler(a))])}return n.apply(this,o.map(s=>e._wrapHandler(s)))}}}_wrapHandler(e){let n=this;return function(r,o){if(!n.isEnabled())return e.apply(this,[r,o]);let s=r.req.path,i=n.tracer.startSpan(s);return v.with(X.setSpan(v.active(),i),()=>n._safeExecute(()=>{let a=e.apply(this,[r,o]);if(Ht(a))return a.then(u=>{let l=n._determineHandlerType(u);return i.setAttributes({[wi.HONO_TYPE]:l,[wi.HONO_NAME]:l===$f.REQUEST_HANDLER?s:e.name||"anonymous"}),n.getConfig().responseHook?.(i),u});{let u=n._determineHandlerType(a);return i.setAttributes({[wi.HONO_TYPE]:u,[wi.HONO_NAME]:u===$f.REQUEST_HANDLER?s:e.name||"anonymous"}),n.getConfig().responseHook?.(i),a}},()=>i.end(),a=>{n._handleError(i,a),i.end()}))}}_safeExecute(e,n,r){try{let o=e();return Ht(o)?o.then(()=>n(),s=>r(s)):n(),o}catch(o){throw r(o),o}}_determineHandlerType(e){return e===void 0?$f.MIDDLEWARE:$f.REQUEST_HANDLER}_handleError(e,n){n instanceof Error&&(e.setStatus({code:qe.ERROR,message:n.message}),e.recordException(n))}};var Oz="Hono";function xNe(t){let e=Y(t).data,n=e[wi.HONO_TYPE];if(e[te]||!n)return;t.setAttributes({[W]:"auto.http.otel.hono",[te]:`${n}.hono`});let r=e[wi.HONO_NAME];if(typeof r=="string"&&t.updateName(r),le()===hr()){yt&&y.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let o=e[ts],s=e[ua];typeof o=="string"&&typeof s=="string"&&le().setTransactionName(`${s} ${o}`)}var Cz=B(Oz,()=>new hS({responseHook:t=>{xNe(t)}})),PNe=()=>({name:Oz,setupOnce(){Cz()}}),Nz=PNe;var Gz=Q(Fz(),1);de();var jz="Koa",Hz=B(jz,Gz.KoaInstrumentation,(t={})=>({ignoreLayersType:t.ignoreLayersType,requestHook(e,n){Oe(e,"auto.http.otel.koa");let r=Y(e).data,o=r["koa.type"];o&&e.setAttribute(te,`${o}.koa`);let s=r["koa.name"];if(typeof s=="string"&&e.updateName(s||"< unknown >"),le()===hr()){yt&&y.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let i=r[ts],a=n.context?.request?.method?.toUpperCase()||"GET";i&&le().setTransactionName(`${a} ${i}`)}})),FNe=(t={})=>({name:jz,setupOnce(){Hz(t)}}),Vz=FNe;var Xz=Q(Jz(),1);var Zz="Connect",eY=B(Zz,()=>new Xz.ConnectInstrumentation),KNe=()=>({name:Zz,setupOnce(){eY()}}),tY=KNe;var dY=Q(lY(),1);var exe=new Set(["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"]),pY="Tedious",fY=B(pY,()=>new dY.TediousInstrumentation({})),txe=()=>{let t;return{name:pY,setupOnce(){let e=fY();t=Pp(e)},setup(e){t?.(()=>e.on("spanStart",n=>{let{description:r,data:o}=Y(n);if(!r||o["db.system"]!=="mssql")return;let s=r.split(" ")[0]||"";exe.has(s)&&n.setAttribute(W,"auto.db.otel.tedious")}))}}},mY=txe;var EY=Q(TY(),1);var SY="GenericPool",AY=B(SY,()=>new EY.GenericPoolInstrumentation({})),rxe=()=>{let t;return{name:SY,setupOnce(){let e=AY();t=Pp(e)},setup(e){t?.(()=>e.on("spanStart",n=>{let o=Y(n).description;(o==="generic-pool.aquire"||o==="generic-pool.acquire")&&n.setAttribute(W,"auto.db.otel.generic_pool")}))}}},yY=rxe;var vY=Q(MY(),1);var kY="Amqplib",mxe={consumeEndHook:t=>{Oe(t,"auto.amqplib.otel.consumer")},publishHook:t=>{Oe(t,"auto.amqplib.otel.publisher")}},LY=B(kY,()=>new vY.AmqplibInstrumentation(mxe)),_xe=()=>({name:kY,setupOnce(){LY()}}),wY=_xe;var Qf="VercelAI";var LS=Q(re(),1);var hxe=[">=3.0.0 <7"],DY=["generateText","streamText","generateObject","streamObject","embed","embedMany","rerank"];function gxe(t){if(typeof t!="object"||t===null)return!1;let e=t;return"type"in e&&"error"in e&&"toolName"in e&&"toolCallId"in e&&e.type==="tool-error"&&e.error instanceof Error}function Txe(t){if(typeof t!="object"||t===null||!("content"in t))return;let e=t;Array.isArray(e.content)&&(Exe(e.content),Sxe(e.content))}function Exe(t){for(let e of t){if(!gxe(e))continue;let n=JR(e.toolCallId);n?Qn(r=>{r.setContext("trace",{trace_id:n.traceId,span_id:n.spanId}),r.setTag("vercel.ai.tool.name",e.toolName),r.setTag("vercel.ai.tool.callId",e.toolCallId),r.setLevel("error"),ne(e.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})}):Qn(r=>{r.setTag("vercel.ai.tool.name",e.toolName),r.setTag("vercel.ai.tool.callId",e.toolCallId),r.setLevel("error"),ne(e.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})})}}function Sxe(t){for(let e of t)typeof e=="object"&&e!==null&&"toolCallId"in e&&typeof e.toolCallId=="string"&&XR(e.toolCallId)}function Axe(t,e,n,r){let o=t?.recordInputs!==void 0?t.recordInputs:e.recordInputs!==void 0?e.recordInputs:n===!0?!0:r,s=t?.recordOutputs!==void 0?t.recordOutputs:e.recordOutputs!==void 0?e.recordOutputs:n===!0?!0:r;return{recordInputs:o,recordOutputs:s}}var kS=class t extends LS.InstrumentationBase{__init(){this._isPatched=!1}__init2(){this._callbacks=[]}constructor(e={}){super("@sentry/instrumentation-vercel-ai",pe,e),t.prototype.__init.call(this),t.prototype.__init2.call(this)}init(){return new LS.InstrumentationNodeModuleDefinition("ai",hxe,this._patch.bind(this))}callWhenPatched(e){this._isPatched?e():this._callbacks.push(e)}_patch(e){this._isPatched=!0,this._callbacks.forEach(r=>r()),this._callbacks=[];let n=r=>new Proxy(r,{apply:(o,s,i)=>{let a=i[0].experimental_telemetry||{},u=a.isEnabled,l=V(),d=l?.getIntegrationByName(Qf),p=d?.options,f=d?!!l?.getOptions().sendDefaultPii:!1,{recordInputs:m,recordOutputs:_}=Axe(p,a,u,f);return i[0].experimental_telemetry={...a,isEnabled:u!==void 0?u:!0,recordInputs:m,recordOutputs:_},Yr(()=>Reflect.apply(o,s,i),h=>{h&&typeof h=="object"&<(h,"_sentry_active_span",Tr())},()=>{},h=>{Txe(h)})}});if(Object.prototype.toString.call(e)==="[object Module]"){for(let r of DY)e[r]!=null&&(e[r]=n(e[r]));return e}else{let r=DY.reduce((o,s)=>(e[s]!=null&&(o[s]=n(e[s])),o),{});return{...e,...r}}}};var UY=B(Qf,()=>new kS({}));function yxe(t){return!!t.getIntegrationByName("Modules")?.getModules?.()?.ai}var bxe=(t={})=>{let e;return{name:Qf,options:t,setupOnce(){e=UY()},afterAllSetup(n){t.force??yxe(n)?zh(n):e?.callWhenPatched(()=>zh(n))}}},BY=bxe;var DS=Q(re(),1);var Rxe=[">=4.0.0 <7"],wS=class extends DS.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-openai",pe,e)}init(){return new DS.InstrumentationNodeModuleDefinition("openai",Rxe,this._patch.bind(this))}_patch(e){let n=e;return n=this._patchClient(n,"OpenAI"),n=this._patchClient(n,"AzureOpenAI"),n}_patchClient(e,n){let r=e[n];if(!r)return e;let o=this.getConfig(),s=function(...i){if(Ia(fi))return Reflect.construct(r,i);let a=Reflect.construct(r,i);return Wh(a,o)};Object.setPrototypeOf(s,r),Object.setPrototypeOf(s.prototype,r.prototype);for(let i of Object.getOwnPropertyNames(r))if(!["length","name","prototype"].includes(i)){let a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(s,i,a)}try{e[n]=s}catch{Object.defineProperty(e,n,{value:s,writable:!0,configurable:!0,enumerable:!0})}if(e.default===r)try{e.default=s}catch{Object.defineProperty(e,"default",{value:s,writable:!0,configurable:!0,enumerable:!0})}return e}};var FY=B(fi,t=>new wS(t)),Ixe=(t={})=>({name:fi,setupOnce(){FY(t)}}),GY=Ixe;var BS=Q(re(),1);var Oxe=[">=0.19.2 <1.0.0"],US=class extends BS.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-anthropic-ai",pe,e)}init(){return new BS.InstrumentationNodeModuleDefinition("@anthropic-ai/sdk",Oxe,this._patch.bind(this))}_patch(e){let n=e.Anthropic,r=this.getConfig(),o=function(...s){if(Ia(mi))return Reflect.construct(n,s);let i=Reflect.construct(n,s);return Kh(i,r)};Object.setPrototypeOf(o,n),Object.setPrototypeOf(o.prototype,n.prototype);for(let s of Object.getOwnPropertyNames(n))if(!["length","name","prototype"].includes(s)){let i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(o,s,i)}try{e.Anthropic=o}catch{Object.defineProperty(e,"Anthropic",{value:o,writable:!0,configurable:!0,enumerable:!0})}if(e.default===n)try{e.default=o}catch{Object.defineProperty(e,"default",{value:o,writable:!0,configurable:!0,enumerable:!0})}return e}};var jY=B(mi,t=>new US(t)),Cxe=(t={})=>({name:mi,options:t,setupOnce(){jY(t)}}),HY=Cxe;var Yl=Q(re(),1);var VY=[">=0.10.0 <2"],FS=class extends Yl.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-google-genai",pe,e)}init(){return new Yl.InstrumentationNodeModuleDefinition("@google/genai",VY,n=>this._patch(n),n=>n,[new Yl.InstrumentationNodeModuleFile("@google/genai/dist/node/index.cjs",VY,n=>this._patch(n),n=>n)])}_patch(e){let n=e.GoogleGenAI,r=this.getConfig();if(typeof n!="function")return e;let o=function(...s){if(Ia(_i))return Reflect.construct(n,s);let i=Reflect.construct(n,s);return Qh(i,r)};Object.setPrototypeOf(o,n),Object.setPrototypeOf(o.prototype,n.prototype);for(let s of Object.getOwnPropertyNames(n))if(!["length","name","prototype"].includes(s)){let i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(o,s,i)}return Np(e,"GoogleGenAI",o),e}};var qY=B(_i,t=>new FS(t)),Nxe=(t={})=>({name:_i,setupOnce(){qY(t)}}),$Y=Nxe;var qi=Q(re(),1);var GS=[">=0.1.0 <2.0.0"];function xxe(t,e){return t?Array.isArray(t)?t.includes(e)?t:[...t,e]:typeof t=="object"?[t,e]:t:[e]}function Pxe(t,e,n){return new Proxy(t,{apply(r,o,s){let a=s[1];(!a||typeof a!="object"||Array.isArray(a))&&(a={},s[1]=a);let u=a.callbacks,l=xxe(u,e);return a.callbacks=l,Reflect.apply(r,o,s)}})}var jS=class extends qi.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langchain",pe,e)}init(){let e=[],n=["@langchain/anthropic","@langchain/openai","@langchain/google-genai","@langchain/mistralai","@langchain/google-vertexai","@langchain/groq"];for(let r of n)e.push(new qi.InstrumentationNodeModuleDefinition(r,GS,this._patch.bind(this),o=>o,[new qi.InstrumentationNodeModuleFile(`${r}/dist/index.cjs`,GS,this._patch.bind(this),o=>o)]));return e.push(new qi.InstrumentationNodeModuleDefinition("langchain",GS,this._patch.bind(this),r=>r,[new qi.InstrumentationNodeModuleFile("langchain/dist/chat_models/universal.cjs",GS,this._patch.bind(this),r=>r)])),e}_patch(e){SR([fi,mi,_i]);let n=Xh(this.getConfig());return this._patchRunnableMethods(e,n),e}_patchRunnableMethods(e,n){let r=["ChatAnthropic","ChatOpenAI","ChatGoogleGenerativeAI","ChatMistralAI","ChatVertexAI","ChatGroq","ConfigurableModel"],o=e.universal_exports??e,s=Object.values(o).find(u=>typeof u=="function"&&r.includes(u.name));if(!s)return;let i=s.prototype;if(i.__sentry_patched__)return;i.__sentry_patched__=!0;let a=["invoke","stream","batch"];for(let u of a){let l=i[u];typeof l=="function"&&(i[u]=Pxe(l,n))}}};var zY=B(Jh,t=>new jS(t)),Mxe=(t={})=>({name:Jh,setupOnce(){zY(t)}}),YY=Mxe;var Wl=Q(re(),1);var WY=[">=0.0.0 <2.0.0"],HS=class extends Wl.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langgraph",pe,e)}init(){return new Wl.InstrumentationNodeModuleDefinition("@langchain/langgraph",WY,this._patch.bind(this),n=>n,[new Wl.InstrumentationNodeModuleFile("@langchain/langgraph/dist/index.cjs",WY,this._patch.bind(this),n=>n)])}_patch(e){return e.StateGraph&&typeof e.StateGraph=="function"&&eg(e.StateGraph.prototype,this.getConfig()),e}};var KY=B(Zh,t=>new HS(t)),vxe=(t={})=>({name:Zh,setupOnce(){KY(t)}}),QY=vxe;var o7=Q(re(),1);P();var Rs=Q(re(),1);de();import*as XY from"node:net";function ZY(t,e,n,r,o){let i=()=>{},a=o.firestoreSpanCreationHook;typeof a=="function"&&(i=d=>{(0,Rs.safeExecuteInTheMiddle)(()=>a(d),p=>{p&&Wn.error(p?.message)},!0)});let u=new Rs.InstrumentationNodeModuleDefinition("@firebase/firestore",e,d=>JY(d,n,r,t,i)),l=["@firebase/firestore/dist/lite/index.node.cjs.js","@firebase/firestore/dist/lite/index.node.mjs.js","@firebase/firestore/dist/lite/index.rn.esm2017.js","@firebase/firestore/dist/lite/index.cjs.js"];for(let d of l)u.files.push(new Rs.InstrumentationNodeModuleFile(d,e,p=>JY(p,n,r,t,i),p=>e7(p,r)));return u}function JY(t,e,n,r,o){return e7(t,n),e(t,"addDoc",kxe(r,o)),e(t,"getDocs",wxe(r,o)),e(t,"setDoc",Dxe(r,o)),e(t,"deleteDoc",Lxe(r,o)),t}function e7(t,e){for(let n of["addDoc","getDocs","setDoc","deleteDoc"])(0,Rs.isWrapped)(t[n])&&e(t,n);return t}function kxe(t,e){return function(r){return function(o,s){let i=qS(t,"addDoc",o);return e(i),VS(i,()=>r(o,s))}}}function Lxe(t,e){return function(r){return function(o){let s=qS(t,"deleteDoc",o.parent||o);return e(s),VS(s,()=>r(o))}}}function wxe(t,e){return function(r){return function(o){let s=qS(t,"getDocs",o);return e(s),VS(s,()=>r(o))}}}function Dxe(t,e){return function(r){return function(o,s,i){let a=qS(t,"setDoc",o.parent||o);return e(a),VS(a,()=>typeof i<"u"?r(o,s,i):r(o,s))}}}function VS(t,e){return v.with(X.setSpan(v.active(),t),()=>(0,Rs.safeExecuteInTheMiddle)(()=>e(),n=>{n&&t.recordException(n),t.end()},!0))}function qS(t,e,n){let r=t.startSpan(`${e} ${n.path}`,{kind:Pe.CLIENT});return Bxe(r,n),r.setAttribute(Hu,e),r}function Uxe(t){let e,n;if(typeof t.host=="string")if(t.host.startsWith("[")){if(t.host.endsWith("]"))e=t.host.replace(/^\[|\]$/g,"");else if(t.host.includes("]:")){let r=t.host.lastIndexOf(":");r!==-1&&(e=t.host.slice(1,r).replace(/^\[|\]$/g,""),n=t.host.slice(r+1))}}else if(XY.isIPv6(t.host))e=t.host;else{let r=t.host.lastIndexOf(":");r!==-1?(e=t.host.slice(0,r),n=t.host.slice(r+1)):e=t.host}return{address:e,port:n?parseInt(n,10):void 0}}function Bxe(t,e){let n=e.firestore.app,r=n.options,s=(e.firestore.toJSON()||{}).settings||{},i={[ay]:e.path,[uy]:n.name,[aa]:"firebase.firestore","firebase.firestore.type":e.type,"firebase.firestore.options.projectId":r.projectId,"firebase.firestore.options.appId":r.appId,"firebase.firestore.options.messagingSenderId":r.messagingSenderId,"firebase.firestore.options.storageBucket":r.storageBucket},{address:a,port:u}=Uxe(s);a&&(i[hy]=a),u&&(i[gy]=u),t.setAttributes(i)}P();var Is=Q(re(),1);function t7(t,e,n,r,o){let s=()=>{},i=()=>{},a=o.functions?.errorHook,u=o.functions?.requestHook,l=o.functions?.responseHook;typeof l=="function"&&(i=(f,m)=>{(0,Is.safeExecuteInTheMiddle)(()=>l(f,m),_=>{_&&Wn.error(_?.message)},!0)}),typeof u=="function"&&(s=f=>{(0,Is.safeExecuteInTheMiddle)(()=>u(f),m=>{m&&Wn.error(m?.message)},!0)});let d=new Is.InstrumentationNodeModuleDefinition("firebase-functions",e);return[{name:"firebase-functions/lib/v2/providers/https.js",triggerType:"function"},{name:"firebase-functions/lib/v2/providers/firestore.js",triggerType:"firestore"},{name:"firebase-functions/lib/v2/providers/scheduler.js",triggerType:"scheduler"},{name:"firebase-functions/lib/v2/storage.js",triggerType:"storage"}].forEach(({name:f,triggerType:m})=>{d.files.push(new Is.InstrumentationNodeModuleFile(f,e,_=>Fxe(_,n,r,t,{requestHook:s,responseHook:i,errorHook:a},m),_=>n7(_,r)))}),d}function xn(t,e,n){return function(o){return function(...s){let i=typeof s[0]=="function"?s[0]:s[1],a=typeof s[0]=="function"?void 0:s[0];if(!i)return o.call(this,...s);let u=async function(...l){let d=process.env.FUNCTION_TARGET||process.env.K_SERVICE||"unknown",p=t.startSpan(`firebase.function.${n}`,{kind:Pe.SERVER}),f={"faas.name":d,"faas.trigger":n,"faas.provider":"firebase"};return process.env.GCLOUD_PROJECT&&(f["cloud.project_id"]=process.env.GCLOUD_PROJECT),process.env.EVENTARC_CLOUD_EVENT_SOURCE&&(f["cloud.event_source"]=process.env.EVENTARC_CLOUD_EVENT_SOURCE),p.setAttributes(f),e?.requestHook?.(p),v.with(X.setSpan(v.active(),p),async()=>{let m,_;try{_=await i.apply(this,l)}catch(h){m=h}if(e?.responseHook?.(p,m),m&&p.recordException(m),p.end(),m)throw await e?.errorHook?.(p,m),m;return _})};return a?o.call(this,a,u):o.call(this,u)}}}function Fxe(t,e,n,r,o,s){switch(n7(t,n),s){case"function":e(t,"onRequest",xn(r,o,"http.request")),e(t,"onCall",xn(r,o,"http.call"));break;case"firestore":e(t,"onDocumentCreated",xn(r,o,"firestore.document.created")),e(t,"onDocumentUpdated",xn(r,o,"firestore.document.updated")),e(t,"onDocumentDeleted",xn(r,o,"firestore.document.deleted")),e(t,"onDocumentWritten",xn(r,o,"firestore.document.written")),e(t,"onDocumentCreatedWithAuthContext",xn(r,o,"firestore.document.created")),e(t,"onDocumentUpdatedWithAuthContext",xn(r,o,"firestore.document.updated")),e(t,"onDocumentDeletedWithAuthContext",xn(r,o,"firestore.document.deleted")),e(t,"onDocumentWrittenWithAuthContext",xn(r,o,"firestore.document.written"));break;case"scheduler":e(t,"onSchedule",xn(r,o,"scheduler.scheduled"));break;case"storage":e(t,"onObjectFinalized",xn(r,o,"storage.object.finalized")),e(t,"onObjectArchived",xn(r,o,"storage.object.archived")),e(t,"onObjectDeleted",xn(r,o,"storage.object.deleted")),e(t,"onObjectMetadataUpdated",xn(r,o,"storage.object.metadataUpdated"));break}return t}function n7(t,e){let n=["onSchedule","onRequest","onCall","onObjectFinalized","onObjectArchived","onObjectDeleted","onObjectMetadataUpdated","onDocumentCreated","onDocumentUpdated","onDocumentDeleted","onDocumentWritten","onDocumentCreatedWithAuthContext","onDocumentUpdatedWithAuthContext","onDocumentDeletedWithAuthContext","onDocumentWrittenWithAuthContext"];for(let r of n)(0,Is.isWrapped)(t[r])&&e(t,r);return t}var r7={},Gxe=[">=3.0.0 <5"],jxe=[">=6.0.0 <7"],$S=class extends o7.InstrumentationBase{constructor(e=r7){super("@sentry/instrumentation-firebase",pe,e)}setConfig(e={}){super.setConfig({...r7,...e})}init(){let e=[];return e.push(ZY(this.tracer,Gxe,this._wrap,this._unwrap,this.getConfig())),e.push(t7(this.tracer,jxe,this._wrap,this._unwrap,this.getConfig())),e}};var s7="Firebase",Hxe={firestoreSpanCreationHook:t=>{Oe(t,"auto.firebase.otel.firestore"),t.setAttribute(te,"db.query")},functions:{requestHook:t=>{Oe(t,"auto.firebase.otel.functions"),t.setAttribute(te,"http.request")},errorHook:async(t,e)=>{e&&(ne(e,{mechanism:{type:"auto.firebase.otel.functions",handled:!1}}),await yh(2e3))}}},i7=B(s7,()=>new $S(Hxe)),Vxe=()=>({name:s7,setupOnce(){i7()}}),a7=Vxe;function u7(){return[e8(),xq(),t5(),Nz(),F5(),Z5(),l9(),A9(),J9(),g$(),pz(),Iz(),Vz(),tY(),mY(),yY(),g5(),wY(),C5(),YY(),QY(),BY(),GY(),HY(),$Y(),S$(),a7()]}P();var zS=Q(vI(),1),c7=Q(oO(),1);de();var KN=1e6;function l7(t,e={}){t.getOptions().debug&&SO();let[n,r]=qxe(t,e);t.traceProvider=n,t.asyncLocalStorageLookup=r}function qxe(t,e={}){let n=new c7.BasicTracerProvider({sampler:new oT(t),resource:(0,zS.defaultResource)().merge((0,zS.resourceFromAttributes)({[Ty]:"node",[iy]:"sentry",[Ey]:pe})),forceFlushTimeoutMillis:500,spanProcessors:[new rT({timeout:$xe(t.getOptions().maxSpanWaitDuration)}),...e.spanProcessors||[]]});X.setGlobalTracerProvider(n),Br.setGlobalPropagator(new nT);let r=new EO;return v.setGlobalContextManager(r),[n,r.getAsyncLocalStorageLookup()]}function $xe(t){if(t!=null){if(t>KN)return yt&&y.warn(`\`maxSpanWaitDuration\` is too high, using the maximum value of ${KN}`),KN;if(t<=0||Number.isNaN(t)){yt&&y.warn("`maxSpanWaitDuration` must be a positive number, using default value instead.");return}return t}}function d7(){return pT().filter(e=>e.name!=="Http"&&e.name!=="NodeFetch").concat(vV(),GV())}function p7(t){return[...d7(),...rt(t)?u7():[]]}function QN(t={}){return zxe(t,p7)}function zxe(t={},e){Oa(t,"node");let n=xO({...t,defaultIntegrations:t.defaultIntegrations??e(t)});return n&&!t.skipOpenTelemetrySetup&&(l7(n,{spanProcessors:t.openTelemetrySpanProcessors}),PO()),n}var Yxe="prod",m7="0.1.31",Wxe=`@tanagram/lore/${m7}`;function Ve(){return Yxe}function to(){return m7}function _7(){return Wxe}QN({dsn:"https://583674b382128b1b30b9fa1f0581daab@o4509017064472576.ingest.us.sentry.io/4511344717529088",environment:Ve(),release:to(),sendDefaultPii:!0});Ah("service_name","lore-cli");import{realpathSync as jBe}from"node:fs";import{fileURLToPath as HBe,pathToFileURL as KJ}from"node:url";var Kxe=/\d/,Qxe=["-","_","/","."];function Jxe(t=""){if(!Kxe.test(t))return t!==t.toLowerCase()}function h7(t,e){let n=e??Qxe,r=[];if(!t||typeof t!="string")return r;let o="",s,i;for(let a of t){let u=n.includes(a);if(u===!0){r.push(o),o="",s=void 0;continue}let l=Jxe(a);if(i===!1){if(s===!1&&l===!0){r.push(o),o=a,s=l;continue}if(s===!0&&l===!1&&o.length>1){let d=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=d+a,s=l;continue}}o+=a,s=l,i=u}return r.push(o),r}function Xxe(t){return t?t[0].toUpperCase()+t.slice(1):""}function Zxe(t){return t?t[0].toLowerCase()+t.slice(1):""}function ePe(t,e){return t?(Array.isArray(t)?t:h7(t)).map(n=>Xxe(e?.normalize?n.toLowerCase():n)).join(""):""}function Jf(t,e){return Zxe(ePe(t||"",e))}function YS(t,e){return t?(Array.isArray(t)?t:h7(t)).map(n=>n.toLowerCase()).join(e??"-"):""}function g7(t){return YS(t||"","_")}import{parseArgs as tPe}from"node:util";function XS(t){return Array.isArray(t)?t:t===void 0?[]:[t]}function JN(t,e=""){let n=[];for(let r of t)for(let[o,s]of r.entries())n[o]=Math.max(n[o]||0,s.length);return t.map(r=>r.map((o,s)=>e+o[s===0?"padStart":"padEnd"](n[s])).join(" ")).join(`
|
|
38
|
+
`);let{connect:l,buffered:d}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",k0e),n.secureEndpoint){Wp("Upgrading socket connection to TLS");let f=n.servername||n.host;return CO.connect({...EV(n,"host","path","port"),socket:o,servername:hs.isIP(f)?void 0:f})}return o}o.destroy();let p=new hs.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{Wp("Replaying proxy buffer for failed request"),f.push(d),f.push(null)}),p}};Kp.__initStatic();function k0e(t){t.resume()}function EV(t,...e){let n={},r;for(r in t)e.includes(r)||(n[r]=t[r]);return n}var B0e=1024*32;function F0e(t){return new D0e({read(){this.push(t),this.push(null)}})}function SV(t){let e;try{e=new URL(t.url)}catch{return nt(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),_p(t,()=>Promise.resolve({}))}let n=e.protocol==="https:",r=G0e(e,t.proxy||(n?process.env.https_proxy:void 0)||process.env.http_proxy),o=n?w0e:L0e,s=t.keepAlive===void 0?!1:t.keepAlive,i=r?new Kp(r):new o.Agent({keepAlive:s,maxSockets:30,timeout:2e3}),a=j0e(t,t.httpModule??o,i);return _p(t,a)}function G0e(t,e){let{no_proxy:n}=process.env;if(!n?.split(",").some(o=>t.host.endsWith(o)||t.hostname.endsWith(o)))return e}function j0e(t,e,n){let{hostname:r,pathname:o,port:s,protocol:i,search:a}=new URL(t.url);return function(l){return new Promise((d,p)=>{Ec(()=>{let f=F0e(l.body),m={...t.headers};l.body.length>B0e&&(m["content-encoding"]="gzip",f=f.pipe(U0e()));let _=r.startsWith("["),h=e.request({method:"POST",agent:n,headers:m,hostname:_?r.slice(1,-1):r,path:`${o}${a}`,port:s,protocol:i,ca:t.caCerts},g=>{g.on("data",()=>{}),g.on("end",()=>{}),g.setEncoding("utf8");let E=g.headers["retry-after"]??null,S=g.headers["x-sentry-rate-limits"]??null;d({statusCode:g.statusCode,headers:{"retry-after":E,"x-sentry-rate-limits":Array.isArray(S)?S[0]||null:S}})});h.on("error",p),f.pipe(h)})})}}function AV(t){if(t===!1)return!1;if(typeof t=="string")return t;let e=bc(process.env.SENTRY_SPOTLIGHT,{strict:!0}),n=e===null&&process.env.SENTRY_SPOTLIGHT?process.env.SENTRY_SPOTLIGHT:void 0;return t===!0?n??!0:e??n}import{posix as H0e,sep as V0e}from"node:path";function yV(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function bV(t=process.argv[1]?NR(process.argv[1]):process.cwd(),e=V0e==="\\"){let n=e?yV(t):t;return r=>{if(!r)return;let o=e?yV(r):r,{dir:s,base:i,ext:a}=H0e.parse(o);(a===".js"||a===".mjs"||a===".cjs")&&(i=i.slice(0,a.length*-1));let u=decodeURIComponent(i);s||(s=".");let l=s.lastIndexOf("/node_modules");if(l>-1)return`${s.slice(l+14).replace(/\//g,".")}:${u}`;if(s.startsWith(n)){let d=s.slice(n.length+1).replace(/\//g,".");return d?`${d}:${u}`:u}return u}}function RV(t){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;if(Z.SENTRY_RELEASE?.id)return Z.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,n=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_BUILD_COMMIT||process.env.HEROKU_SLUG_COMMIT||process.env.RAILWAY_GIT_COMMIT_SHA||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,r=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||n||r||t}var IV=J_(iI(bV()));P();var CV=Q(re(),1);import*as OV from"node:os";import{threadId as q0e,isMainThread as $0e}from"worker_threads";var z0e=6e4,dT=class extends hp{constructor(e){let n=e.includeServerName===!1?void 0:e.serverName||global.process.env.SENTRY_NAME||OV.hostname(),r={...e,platform:"node",runtime:e.runtime||{name:"node",version:global.process.version},serverName:n};e.openTelemetryInstrumentations&&(0,CV.registerInstrumentations)({instrumentations:e.openTelemetryInstrumentations}),Oa(r,"node"),y.log(`Initializing Sentry: process: ${process.pid}, thread: ${$0e?"main":`worker-${q0e}`}.`),super(r),this.getOptions().enableLogs&&(this._logOnExitFlushListener=()=>{Ac(this)},n&&this.on("beforeCaptureLog",o=>{o.attributes={...o.attributes,"server.address":n}}),process.on("beforeExit",this._logOnExitFlushListener))}get tracer(){if(this._tracer)return this._tracer;let e="@sentry/node",n=pe,r=X.getTracer(e,n);return this._tracer=r,r}async flush(e){return await this.traceProvider?.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(e)}async close(e){this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),this._logOnExitFlushListener&&process.off("beforeExit",this._logOnExitFlushListener);let n=await super.close(e);return this.traceProvider&&await this.traceProvider.shutdown(),n}startClientReportTracking(){let e=this.getOptions();e.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes()},this._clientReportInterval=setInterval(()=>{oe&&y.log("Flushing client reports based on interval."),this._flushOutcomes()},e.clientReportFlushInterval??z0e).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener))}_setupIntegrations(){AR(),super._setupIntegrations()}_getTraceInfoFromScope(e){return e?PH(this,e):[void 0,void 0]}};var NV=Q(ib(),1);import*as xV from"module";function NO(){if(iV()&&!Z._sentryEsmLoaderHookRegistered){Z._sentryEsmLoaderHookRegistered=!0;try{let{addHookMessagePort:t}=(0,NV.createAddHookMessageChannel)();xV.register("import-in-the-middle/hook.mjs",import.meta.url,{data:{addHookMessagePort:t,include:[]},transferList:[t]})}catch(t){y.warn("Failed to register 'import-in-the-middle' hook",t)}}}function pT(){return[kh(),Mh(),Lh(),wh(),gV(),vR(),Uh(),Zj(),o6(),dV(),pV(),QH(),oV(),qH(),jH(),fV(),lV()]}function xO(t={}){return Y0e(t,pT)}function Y0e(t={},e){let n=W0e(t,e);n.debug===!0&&(oe?y.enable():nt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),n.registerEsmLoaderHooks!==!1&&NO(),kH(),Ee().update(n.initialScope),n.spotlight&&!n.integrations.some(({name:s})=>s===IO)&&n.integrations.push(_V({sidecarUrl:typeof n.spotlight=="string"?n.spotlight:void 0})),Oa(n,"node-core");let o=new dT(n);return Ee().setClient(o),o.init(),y.log(`SDK initialized from ${zp()?"CommonJS":"ESM"}`),o.startClientReportTracking(),J0e(),hH(o),vH(o),process.env.VERCEL&&process.on("SIGTERM",async()=>{await o.flush(200)}),o}function PO(){if(!oe)return;let t=SH(),e=["SentryContextManager","SentryPropagator"];rt()&&e.push("SentrySpanProcessor");for(let n of e)t.includes(n)||y.error(`You have to set up the ${n}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);t.includes("SentrySampler")||y.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 W0e(t,e){let n=K0e(t.release),r=AV(t.spotlight),o=Q0e(t.tracesSampleRate),s={...t,dsn:t.dsn??process.env.SENTRY_DSN,environment:t.environment??process.env.SENTRY_ENVIRONMENT,sendClientReports:t.sendClientReports??!0,transport:t.transport??SV,stackParser:Ab(t.stackParser||IV),release:n,tracesSampleRate:o,spotlight:r,debug:bc(t.debug??process.env.SENTRY_DEBUG)},i=t.integrations,a=t.defaultIntegrations??e(s);return{...s,integrations:fR({defaultIntegrations:a,integrations:i})}}function K0e(t){if(t!==void 0)return t;let e=RV();if(e!==void 0)return e}function Q0e(t){if(t!==void 0)return t;let e=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!e)return;let n=parseFloat(e);return isFinite(n)?n:void 0}function J0e(){if(bc(process.env.SENTRY_USE_ENVIRONMENT)!==!1){let t=process.env.SENTRY_TRACE,e=process.env.SENTRY_BAGGAGE,n=tp(t,e);Ee().setPropagationContext(n)}}function Oe(t,e){t.setAttribute(W,e)}function Qp(t){let e=t.protocol||"",n=t.hostname||t.host||"",r=!t.port||t.port===80||t.port===443||/^(.*):(\d+)$/.test(n)?"":`:${t.port}`,o=t.path?t.path:"/";return`${e}//${n}${r}${o}`}var MO="Http",PV="@opentelemetry_sentry-patched/instrumentation-http",fT=Qr.major===22&&Qr.minor>=12||Qr.major===23&&Qr.minor>=2||Qr.major>=24,X0e=B(`${MO}.sentry`,t=>new La(t)),Z0e=B(MO,t=>{let e=new MV.HttpInstrumentation({...t,disableIncomingRequestInstrumentation:!0});try{e._diag=Wn.createComponentLogger({namespace:PV}),e.instrumentationName=PV}catch{}try{let n={get:()=>!1,set:()=>{}};Object.defineProperty(e,"_httpPatched",n),Object.defineProperty(e,"_httpsPatched",n)}catch{}return e});function eAe(t,e={}){return typeof t.spans=="boolean"?t.spans:!(e.skipOpenTelemetrySetup||!rt(e)&&fT)}var vV=(t={})=>{let e=t.spans??!0,n=t.disableIncomingRequestSpans,r={sessions:t.trackIncomingRequestsAsSessions,sessionFlushingDelayMS:t.sessionFlushingDelayMS,ignoreRequestBody:t.ignoreIncomingRequestBody,maxRequestBodySize:t.maxIncomingRequestBodySize},o={ignoreIncomingRequests:t.ignoreIncomingRequests,ignoreStaticAssets:t.ignoreStaticAssets,ignoreStatusCodes:t.dropSpansForIncomingRequestStatusCodes,instrumentation:t.instrumentation,onSpanCreated:t.incomingRequestSpanHook},s=Mp(r),i=vp(o),a=e&&!n;return{name:MO,setup(u){let l=u.getOptions();a&&rt(l)&&i.setup(u)},setupOnce(){let u=V()?.getOptions()||{},l=eAe(t,u);s.setupOnce();let d={breadcrumbs:t.breadcrumbs,propagateTraceInOutgoingRequests:typeof t.tracePropagation=="boolean"?t.tracePropagation:fT||!l,createSpansForOutgoingRequests:fT,spans:t.spans,ignoreOutgoingRequests:t.ignoreOutgoingRequests,outgoingRequestHook:(p,f)=>{let m=Qp(f);if(m.startsWith("data:")){let _=Rc(m);p.setAttribute("http.url",_),p.setAttribute(Xs,_),p.updateName(`${f.method||"GET"} ${_}`)}t.instrumentation?.requestHook?.(p,f)},outgoingResponseHook:t.instrumentation?.responseHook,outgoingRequestApplyCustomAttributes:t.instrumentation?.applyCustomAttributesOnSpan};if(X0e(d),l){let p=tAe(t);Z0e(p)}},processEvent(u){return i.processEvent(u)}}};function tAe(t={}){return{disableOutgoingRequestInstrumentation:fT,ignoreOutgoingRequestHook:n=>{let r=Qp(n);if(!r)return!1;let o=t.ignoreOutgoingRequests;return!!o?.(r,n)},requireParentforOutgoingSpans:!1,requestHook:(n,r)=>{Oe(n,"auto.http.otel.http");let o=Qp(r);if(o.startsWith("data:")){let s=Rc(o);n.setAttribute("http.url",s),n.setAttribute(Xs,s),n.updateName(`${r.method||"GET"} ${s}`)}t.instrumentation?.requestHook?.(n,r)},responseHook:(n,r)=>{t.instrumentation?.responseHook?.(n,r)},applyCustomAttributesOnSpan:(n,r,o)=>{t.instrumentation?.applyCustomAttributesOnSpan?.(n,r,o)}}}var BV=Q(DV(),1);var FV="NodeFetch",oAe=B(FV,BV.UndiciInstrumentation,t=>uAe(t)),sAe=B(`${FV}.sentry`,wa,t=>t),iAe=(t={})=>({name:"NodeFetch",setupOnce(){aAe(t,V()?.getOptions())&&oAe(t),sAe(t)}}),GV=iAe;function UV(t,e="/"){let n=`${t}`;return n.endsWith("/")&&e.startsWith("/")?`${n}${e.slice(1)}`:!n.endsWith("/")&&!e.startsWith("/")?`${n}/${e}`:`${n}${e}`}function aAe(t,e={}){return typeof t.spans=="boolean"?t.spans:!e.skipOpenTelemetrySetup&&rt(e)}function uAe(t={}){return{requireParentforSpans:!1,ignoreRequestHook:n=>{let r=UV(n.origin,n.path),o=t.ignoreOutgoingRequests;return!!(o&&r&&o(r))},startSpanHook:n=>{let r=UV(n.origin,n.path);if(r.startsWith("data:")){let o=Rc(r);return{[W]:"auto.http.otel.node_fetch","http.url":o,[Xs]:o,[gr]:`${n.method||"GET"} ${o}`}}return{[W]:"auto.http.otel.node_fetch"}},requestHook:t.requestHook,responseHook:t.responseHook,headersToSpanAttributes:t.headersToSpanAttributes}}var JV=Q(QV(),1);var yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var XV="Express";function RAe(t){Oe(t,"auto.http.otel.express");let e=Y(t).data,n=e["express.type"];n&&t.setAttribute(te,`${n}.express`);let r=e["express.name"];typeof r=="string"&&t.updateName(r)}function IAe(t,e){if(le()===hr())return yt&&y.warn("Isolation scope is still default isolation scope - skipping setting transactionName"),e;if(t.layerType==="request_handler"){let n=t.request,r=n.method?n.method.toUpperCase():"GET";le().setTransactionName(`${r} ${t.route}`)}return e}var ZV=B(XV,()=>new JV.ExpressInstrumentation({requestHook:t=>RAe(t),spanNameHook:(t,e)=>IAe(t,e)})),OAe=()=>({name:XV,setupOnce(){ZV()}}),e8=OAe;var Oq=Q(Sq(),1);import*as SC from"node:diagnostics_channel";P();var tE=Q(Ae(),1),qa=Q(re(),1);de();var Ts;(function(t){let e="fastify.name";t.FASTIFY_NAME=e;let n="fastify.type";t.FASTIFY_TYPE=n;let r="hook.name";t.HOOK_NAME=r;let o="plugin.name";t.PLUGIN_NAME=o})(Ts||(Ts={}));var mf;(function(t){let e="middleware";t.MIDDLEWARE=e;let n="request_handler";t.REQUEST_HANDLER=n})(mf||(mf={}));var _f;(function(t){let e="middleware";t.MIDDLEWARE=e;let n="request handler";t.REQUEST_HANDLER=n})(_f||(_f={}));P();var hf=Symbol("opentelemetry.instrumentation.fastify.request_active_span");function EC(t,e,n,r={}){let o=e.startSpan(n,{attributes:r}),s=t[hf]||[];return s.push(o),Object.defineProperty(t,hf,{enumerable:!1,configurable:!0,value:s}),o}function ZT(t,e){let n=t[hf]||[];n.length&&(n.forEach(r=>{e&&(r.setStatus({code:qe.ERROR,message:e.message}),r.recordException(e)),r.end()}),delete t[hf])}function yq(t,e,n){let r,o;try{o=t(),Aq(o)&&o.then(s=>e(void 0,s),s=>e(s))}catch(s){r=s}finally{if(!Aq(o)&&(e(r,o),r))throw r;return o}}function Aq(t){return typeof t=="object"&&t&&typeof Object.getOwnPropertyDescriptor(t,"then")?.value=="function"||!1}var bRe="0.1.0",RRe="@sentry/instrumentation-fastify-v3",bq="anonymous",IRe=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"]),eE=class extends qa.InstrumentationBase{constructor(e={}){super(RRe,bRe,e)}init(){return[new qa.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_hookOnRequest(){let e=this;return function(r,o,s){if(!e.isEnabled())return s();e._wrap(o,"send",e._patchSend());let i=r,a=(0,tE.getRPCMetadata)(v.active()),u=i.routeOptions?i.routeOptions.url:r.routerPath;u&&a?.type===tE.RPCType.HTTP&&(a.route=u);let l=r.method||"GET";le().setTransactionName(`${l} ${u}`),s()}}_wrapHandler(e,n,r,o){let s=this;return this._diag.debug("Patching fastify route.handler function"),function(...i){if(!s.isEnabled())return r.apply(this,i);let a=r.name||e||bq,u=`${_f.MIDDLEWARE} - ${a}`,l=i[1],d=EC(l,s.tracer,u,{[Ts.FASTIFY_TYPE]:mf.MIDDLEWARE,[Ts.PLUGIN_NAME]:e,[Ts.HOOK_NAME]:n}),p=o&&i[i.length-1];return p&&(i[i.length-1]=function(...f){ZT(l),p.apply(this,f)}),v.with(X.setSpan(v.active(),d),()=>yq(()=>r.apply(this,i),f=>{f instanceof Error&&(d.setStatus({code:qe.ERROR,message:f.message}),d.recordException(f)),o||ZT(l)}))}}_wrapAddHook(){let e=this;return this._diag.debug("Patching fastify server.addHook function"),function(n){return function(...o){let s=o[0],i=o[1],a=this.pluginName;if(!IRe.has(s))return n.apply(this,o);let u=typeof o[o.length-1]=="function"&&i.constructor.name!=="AsyncFunction";return n.apply(this,[s,e._wrapHandler(a,s,i,u)])}}}_patchConstructor(e){let n=this;function r(...o){let s=e.fastify.apply(this,o);return s.addHook("onRequest",n._hookOnRequest()),s.addHook("preHandler",n._hookPreHandler()),ORe(),n._wrap(s,"addHook",n._wrapAddHook()),s}return e.errorCodes!==void 0&&(r.errorCodes=e.errorCodes),r.fastify=r,r.default=r,r}_patchSend(){let e=this;return this._diag.debug("Patching fastify reply.send function"),function(r){return function(...s){let i=s[0];return e.isEnabled()?(0,qa.safeExecuteInTheMiddle)(()=>r.apply(this,s),a=>{!a&&i instanceof Error&&(a=i),ZT(this,a)}):r.apply(this,s)}}}_hookPreHandler(){let e=this;return this._diag.debug("Patching fastify preHandler function"),function(r,o,s){if(!e.isEnabled())return s();let i=r,a=i.routeOptions?.handler||i.context?.handler,u=a?.name.startsWith("bound ")?a.name.substring(6):a?.name,l=`${_f.REQUEST_HANDLER} - ${u||this.pluginName||bq}`,d={[Ts.PLUGIN_NAME]:this.pluginName,[Ts.FASTIFY_TYPE]:mf.REQUEST_HANDLER,[ny]:i.routeOptions?i.routeOptions.url:r.routerPath};u&&(d[Ts.FASTIFY_NAME]=u);let p=EC(o,e.tracer,l,d);Rq(p);let{requestHook:f}=e.getConfig();return f&&(0,qa.safeExecuteInTheMiddle)(()=>f(p,{request:r}),m=>{m&&e._diag.error("request hook failed",m)},!0),v.with(X.setSpan(v.active(),p),()=>{s()})}}};function ORe(){let t=V();t&&t.on("spanStart",e=>{Rq(e)})}function Rq(t){let e=Y(t).data,n=e["fastify.type"];if(e[te]||!n)return;t.setAttributes({[W]:"auto.http.otel.fastify",[te]:`${n}.fastify`});let r=e["fastify.name"]||e["plugin.name"]||e["hook.name"];if(typeof r=="string"){let o=r.replace(/^fastify -> /,"").replace(/^@fastify\/otel -> /,"");t.updateName(o)}}var nE="Fastify",Cq=B(`${nE}.v3`,()=>new eE);function CRe(){let t=V();if(t)return t.getIntegrationByName(nE)}function Iq(t,e,n,r){let o=CRe()?.getShouldHandleError()||Pq;if(r==="diagnostics-channel"&&(this.diagnosticsChannelExists=!0),this.diagnosticsChannelExists&&r==="onError-hook"){yt&&y.warn("Fastify error handler was already registered via diagnostics channel.","You can safely remove `setupFastifyErrorHandler` call and set `shouldHandleError` on the integration options.");return}o(t,e,n)&&ne(t,{mechanism:{handled:!1,type:"auto.function.fastify"}})}var Nq=B(`${nE}.v5`,()=>{let t=new Oq.FastifyOtelInstrumentation,e=t.plugin();return SC.subscribe("fastify.initialization",n=>{let r=n.fastify;r?.register(e).after(o=>{o?yt&&y.error("Failed to setup Fastify instrumentation",o):(xRe(),r&&PRe(r))})}),SC.subscribe("tracing:fastify.request.handler:error",n=>{let{error:r,request:o,reply:s}=n;Iq.call(Iq,r,o,s,"diagnostics-channel")}),t}),NRe=({shouldHandleError:t})=>{let e;return{name:nE,setupOnce(){e=t||Pq,Cq(),Nq()},getShouldHandleError(){return e},setShouldHandleError(n){e=n}}},xq=(t={})=>NRe(t);function Pq(t,e,n){let r=n.statusCode;return r>=500||r<=299}function Mq(t){let e=Y(t),n=e.description,r=e.data,o=r["fastify.type"],s=o==="hook",i=o===n?.startsWith("handler -"),a=n==="request"||o==="request-handler";if(r[te]||!i&&!a&&!s)return;let u=s?"hook":i?"middleware":a?"request_handler":"<unknown>";t.setAttributes({[W]:"auto.http.otel.fastify",[te]:`${u}.fastify`});let l=r["fastify.name"]||r["plugin.name"]||r["hook.name"];if(typeof l=="string"){let d=l.replace(/^fastify -> /,"").replace(/^@fastify\/otel -> /,"");t.updateName(d)}}function xRe(){let t=V();t&&t.on("spanStart",e=>{Mq(e)})}function PRe(t){t.addHook("onRequest",async(e,n)=>{if(e.opentelemetry){let{span:s}=e.opentelemetry();s&&Mq(s)}let r=e.routeOptions?.url,o=e.method||"GET";le().setTransactionName(`${o} ${r}`)})}P();var Xq=Q(Jq(),1);var Zq="Graphql",e5=B(Zq,Xq.GraphQLInstrumentation,t=>{let e=n5(t);return{...e,responseHook(n,r){Oe(n,"auto.graphql.otel.graphql"),r.errors?.length&&!Y(n).status&&n.setStatus({code:qe.ERROR});let s=Y(n).data,i=s["graphql.operation.type"],a=s["graphql.operation.name"];if(e.useOperationNameForRootSpan&&i){let u=$e(n),d=Y(u).data[Kc]||[],p=a?`${i} ${a}`:`${i}`;Array.isArray(d)?(d.push(p),u.setAttribute(Kc,d)):typeof d=="string"?u.setAttribute(Kc,[d,p]):u.setAttribute(Kc,p),Y(u).data["original-description"]||u.setAttribute("original-description",Y(u).description),u.updateName(`${Y(u).data["original-description"]} (${JRe(d)})`)}}}}),QRe=(t={})=>({name:Zq,setupOnce(){e5(n5(t))}}),t5=QRe;function n5(t){return{ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...t}}function JRe(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}`}var m5=Q(f5(),1);var _5="Kafka",h5=B(_5,()=>new m5.KafkaJsInstrumentation({consumerHook(t){Oe(t,"auto.kafkajs.otel.consumer")},producerHook(t){Oe(t,"auto.kafkajs.otel.producer")}})),ZRe=()=>({name:_5,setupOnce(){h5()}}),g5=ZRe;var R5=Q(b5(),1);var I5="LruMemoizer",O5=B(I5,()=>new R5.LruMemoizerInstrumentation),tIe=()=>({name:I5,setupOnce(){O5()}}),C5=tIe;var D5=Q(w5(),1);var U5="Mongo",B5=B(U5,()=>new D5.MongoDBInstrumentation({dbStatementSerializer:iIe,responseHook(t){Oe(t,"auto.db.otel.mongo")}}));function iIe(t){let e=xC(t);return JSON.stringify(e)}function xC(t){if(Array.isArray(t))return t.map(e=>xC(e));if(aIe(t)){let e={};return Object.entries(t).map(([n,r])=>[n,xC(r)]).reduce((n,r)=>(cIe(r)&&(n[r[0]]=r[1]),n),e)}return"?"}function aIe(t){return typeof t=="object"&&t!==null&&!uIe(t)}function uIe(t){let e=!1;return typeof Buffer<"u"&&(e=Buffer.isBuffer(t)),e}function cIe(t){return Array.isArray(t)}var lIe=()=>({name:U5,setupOnce(){B5()}}),F5=lIe;var Q5=Q(K5(),1);var J5="Mongoose",X5=B(J5,()=>new Q5.MongooseInstrumentation({responseHook(t){Oe(t,"auto.db.otel.mongoose")}})),EIe=()=>({name:J5,setupOnce(){X5()}}),Z5=EIe;var a9=Q(i9(),1);var u9="Mysql",c9=B(u9,()=>new a9.MySQLInstrumentation({})),xIe=()=>({name:u9,setupOnce(){c9()}}),l9=xIe;var T9=Q(g9(),1);var E9="Mysql2",S9=B(E9,()=>new T9.MySQL2Instrumentation({responseHook(t){Oe(t,"auto.db.otel.mysql2")}})),qIe=()=>({name:E9,setupOnce(){S9()}}),A9=qIe;var Y9=Q(x9(),1),W9=Q(H9(),1);var cOe=["get","set","setex"],QC=["get","mget"],lOe=["set","setex"];function Pf(t,e){return t.includes(e.toLowerCase())}function JC(t){return Pf(QC,t)?"cache.get":Pf(lOe,t)?"cache.put":void 0}function dOe(t,e){return e.some(n=>t.startsWith(n))}function q9(t,e){try{if(e.length===0)return;let n=o=>typeof o=="string"||typeof o=="number"||Buffer.isBuffer(o)?[o.toString()]:Array.isArray(o)?V9(o.map(s=>n(s))):["<unknown>"],r=e[0];return Pf(cOe,t)&&r!=null?n(r):V9(e.map(o=>n(o)))}catch{return}}function $9(t,e,n){if(!JC(t))return!1;for(let r of e)if(dOe(r,n))return!0;return!1}function z9(t){let e=n=>{try{return Buffer.isBuffer(n)?n.byteLength:typeof n=="string"?n.length:typeof n=="number"?n.toString().length:n==null?0:JSON.stringify(n).length}catch{return}};return Array.isArray(t)?t.reduce((n,r)=>{let o=e(r);return typeof o=="number"?n!==void 0?n+o:o:n},0):e(t)}function V9(t){let e=[],n=r=>{r.forEach(o=>{Array.isArray(o)?n(o):e.push(o)})};return n(t),e}var FE="Redis",Mf={},K9=(t,e,n,r)=>{t.setAttribute(W,"auto.db.otel.redis");let o=q9(e,n),s=JC(e);if(!o||!s||!Mf.cachePrefixes||!$9(e,o,Mf.cachePrefixes))return;let i=Y(t).data["net.peer.name"],a=Y(t).data["net.peer.port"];a&&i&&t.setAttributes({"network.peer.address":i,"network.peer.port":a});let u=z9(r);u&&t.setAttribute(Yb,u),Pf(QC,e)&&u!==void 0&&t.setAttribute($b,u>0),t.setAttributes({[te]:s,[zb]:o});let l=o.join(", ");t.updateName(Mf.maxCacheKeyLength?Ys(l,Mf.maxCacheKeyLength):l)},pOe=B(`${FE}.IORedis`,()=>new Y9.IORedisInstrumentation({responseHook:K9})),fOe=B(`${FE}.Redis`,()=>new W9.RedisInstrumentation({responseHook:K9})),Q9=Object.assign(()=>{pOe(),fOe()},{id:FE}),mOe=(t={})=>({name:FE,setupOnce(){Mf=t,Q9()}}),J9=mOe;var m$=Q(f$(),1);var _$="Postgres",h$=B(_$,m$.PgInstrumentation,t=>({requireParentSpan:!0,requestHook(e){Oe(e,"auto.db.otel.postgres")},ignoreConnectSpans:t?.ignoreConnectSpans??!1})),xOe=t=>({name:_$,setupOnce(){h$(t)}}),g$=xOe;P();var Mi=Q(re(),1);de();var oN="PostgresJs",T$=[">=3.0.0 <4"],POe=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,MOe=Symbol.for("sentry.query.from.instrumented.sql"),E$=B(oN,t=>new rN({requireParentSpan:t?.requireParentSpan??!0,requestHook:t?.requestHook})),rN=class extends Mi.InstrumentationBase{constructor(e){super("sentry-postgres-js",pe,e)}init(){let e=new Mi.InstrumentationNodeModuleDefinition("postgres",T$,n=>{try{return this._patchPostgres(n)}catch(r){return yt&&y.error("Failed to patch postgres module:",r),n}},n=>n);return["src","cf/src","cjs/src"].forEach(n=>{e.files.push(new Mi.InstrumentationNodeModuleFile(`postgres/${n}/query.js`,T$,this._patchQueryPrototype.bind(this),this._unpatchQueryPrototype.bind(this)))}),e}_patchPostgres(e){let n=typeof e=="function",r=n?e:e.default;if(typeof r!="function")return yt&&y.warn("postgres module does not export a function. Skipping instrumentation."),e;let o=this,s=function(...i){let a=Reflect.construct(r,i);if(!a||typeof a!="function")return yt&&y.warn("postgres() did not return a valid instance"),a;let u=o.getConfig();return MR(a,{requireParentSpan:u.requireParentSpan,requestHook:u.requestHook})};Object.setPrototypeOf(s,r),Object.setPrototypeOf(s.prototype,r.prototype);for(let i of Object.getOwnPropertyNames(r))if(!["length","name","prototype"].includes(i)){let a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(s,i,a)}return n?s:(Np(e,"default",s),e)}_shouldCreateSpans(){let e=this.getConfig();return X.getSpan(v.active())!==void 0||!e.requireParentSpan}_setOperationName(e,n,r){if(r){e.setAttribute(Hu,r);return}let o=n?.match(POe);o?.[1]&&e.setAttribute(Hu,o[1].toUpperCase())}_reconstructQuery(e){if(e?.length)return e.length===1?e[0]||void 0:e.reduce((n,r,o)=>o===0?r:`${n}$${o}${r}`,"")}_sanitizeSqlQuery(e){return e?e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(/(?<!\$)-?\b\d+\b/g,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)"):"Unknown SQL Query"}_patchQueryPrototype(e){let n=this,r=e.Query.prototype.handle;return e.Query.prototype.handle=async function(...o){if(this[MOe])return r.apply(this,o);if(!n._shouldCreateSpans())return r.apply(this,o);let s=n._reconstructQuery(this.strings),i=n._sanitizeSqlQuery(s);return Pt({name:i||"postgresjs.query",op:"db"},a=>{Oe(a,"auto.db.postgresjs"),a.setAttributes({[aa]:"postgres",[cy]:i});let u=n.getConfig(),{requestHook:l}=u;l&&(0,Mi.safeExecuteInTheMiddle)(()=>l(a,i,void 0),f=>{f&&(a.setAttribute("sentry.hook.error","requestHook failed"),yt&&y.error(`Error in requestHook for ${oN} integration:`,f))},!0);let d=this.resolve;this.resolve=new Proxy(d,{apply:(f,m,_)=>{try{n._setOperationName(a,i,_?.[0]?.command),a.end()}catch(h){yt&&y.error("Error ending span in resolve callback:",h)}return Reflect.apply(f,m,_)}});let p=this.reject;this.reject=new Proxy(p,{apply:(f,m,_)=>{try{a.setStatus({code:2,message:_?.[0]?.message||"unknown_error"}),a.setAttribute(ly,_?.[0]?.code||"unknown"),a.setAttribute(dy,_?.[0]?.name||"unknown"),n._setOperationName(a,i),a.end()}catch(h){yt&&y.error("Error ending span in reject callback:",h)}return Reflect.apply(f,m,_)}});try{return r.apply(this,o)}catch(f){throw a.setStatus({code:2,message:f instanceof Error?f.message:"unknown_error"}),a.end(),f}})},e.Query.prototype.handle.__sentry_original__=r,e}_unpatchQueryPrototype(e){return e.Query.prototype.handle.__sentry_original__&&(e.Query.prototype.handle=e.Query.prototype.handle.__sentry_original__),e}},vOe=t=>({name:oN,setupOnce(){E$(t)}}),S$=vOe;P();P();var fS=Q(rz(),1);P();var ZCe={name:"@prisma/instrumentation-contract",version:"7.6.0",description:"Shared types and utilities for Prisma instrumentation",main:"dist/index.js",module:"dist/index.mjs",types:"dist/index.d.ts",exports:{".":{require:{types:"./dist/index.d.ts",default:"./dist/index.js"},import:{types:"./dist/index.d.mts",default:"./dist/index.mjs"}}},license:"Apache-2.0",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/instrumentation-contract"},bugs:"https://github.com/prisma/prisma/issues",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",prepublishOnly:"pnpm run build",test:"vitest run"},files:["dist"],sideEffects:!1,devDependencies:{"@opentelemetry/api":"1.9.0"},peerDependencies:{"@opentelemetry/api":"^1.8"}},eNe=ZCe.version.split(".")[0],NN="PRISMA_INSTRUMENTATION",xN=`V${eNe}_PRISMA_INSTRUMENTATION`,Ll=globalThis;function tNe(){let t=Ll[xN];return t?.helper?t.helper:Ll[NN]?.helper}function nNe(t){let e={helper:t};Ll[xN]=e,Ll[NN]=e}function rNe(){delete Ll[xN],delete Ll[NN]}var oNe=process.env.PRISMA_SHOW_ALL_TRACES==="true",sNe="00-10-10-00";function iNe(t){switch(t){case"client":return Pe.CLIENT;case"internal":default:return Pe.INTERNAL}}var aNe=class{tracerProvider;ignoreSpanTypes;constructor({tracerProvider:t,ignoreSpanTypes:e}){this.tracerProvider=t,this.ignoreSpanTypes=e}isEnabled(){return!0}getTraceParent(t){let e=X.getSpanContext(t??v.active());return e?`00-${e.traceId}-${e.spanId}-0${e.traceFlags}`:sNe}dispatchEngineSpans(t){let e=this.tracerProvider.getTracer("prisma"),n=new Map,r=t.filter(o=>o.parentId===null);for(let o of r)iz(e,o,t,n,this.ignoreSpanTypes)}getActiveContext(){return v.active()}runInChildSpan(t,e){if(typeof t=="string"&&(t={name:t}),t.internal&&!oNe)return e();let n=this.tracerProvider.getTracer("prisma"),r=t.context??this.getActiveContext(),o=`prisma:client:${t.name}`;if(az(o,this.ignoreSpanTypes))return e();if(t.active===!1){let s=n.startSpan(o,t,r);return oz(s,e(s,r))}return n.startActiveSpan(o,t,s=>oz(s,e(s,r)))}};function iz(t,e,n,r,o){if(az(e.name,o))return;let s={attributes:e.attributes,kind:iNe(e.kind),startTime:e.startTime};t.startActiveSpan(e.name,s,i=>{r.set(e.id,i.spanContext().spanId),e.links&&i.addLinks(e.links.flatMap(u=>{let l=r.get(u);return l?{context:{spanId:l,traceId:i.spanContext().traceId,traceFlags:i.spanContext().traceFlags}}:[]}));let a=n.filter(u=>u.parentId===e.id);for(let u of a)iz(t,u,n,r,o);i.end(e.endTime)})}function oz(t,e){return uNe(e)?e.then(n=>(t.end(),n),n=>{throw t.end(),n}):(t.end(),e)}function uNe(t){return t!=null&&typeof t.then=="function"}function az(t,e){return e.some(n=>typeof n=="string"?n===t:n.test(t))}var uz={name:"@prisma/instrumentation",version:"7.6.0",description:"OpenTelemetry compliant instrumentation for Prisma Client",main:"dist/index.js",module:"dist/index.mjs",types:"dist/index.d.ts",exports:{".":{require:{types:"./dist/index.d.ts",default:"./dist/index.js"},import:{types:"./dist/index.d.ts",default:"./dist/index.mjs"}}},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:{"@opentelemetry/api":"1.9.0","@prisma/instrumentation-contract":"workspace:*","@types/node":"~20.19.24",typescript:"5.4.5"},dependencies:{"@opentelemetry/instrumentation":"^0.207.0"},peerDependencies:{"@opentelemetry/api":"^1.8"},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:"vitest run"},sideEffects:!1},sz=uz.version,cNe=uz.name,lNe="@prisma/client",cz=class extends fS.InstrumentationBase{tracerProvider;constructor(t={}){super(cNe,sz,t)}setTracerProvider(t){this.tracerProvider=t}init(){return[new fS.InstrumentationNodeModuleDefinition(lNe,[sz])]}enable(){let t=this._config;nNe(new aNe({tracerProvider:this.tracerProvider??X.getTracerProvider(),ignoreSpanTypes:t.ignoreSpanTypes??[]}))}disable(){rNe()}isEnabled(){return tNe()!==void 0}};var lz="Prisma";function dNe(t){return!!t&&typeof t=="object"&&"dispatchEngineSpans"in t}function dz(){let t=globalThis.PRISMA_INSTRUMENTATION;return t&&typeof t=="object"&&"helper"in t?t.helper:void 0}var PN=class extends cz{constructor(e){super(e?.instrumentationConfig)}enable(){super.enable();let e=dz();dNe(e)&&(e.createEngineSpan=n=>{let r=X.getTracer("prismaV5Compatibility"),o=r._idGenerator;if(!o){nt(()=>{console.warn("[Sentry] Could not find _idGenerator on tracer, skipping Prisma v5 compatibility - some Prisma spans may be missing!")});return}try{n.spans.forEach(s=>{let i=pNe(s.kind),a=s.parent_span_id,u=s.span_id,l=s.trace_id,d=s.links?.map(f=>({context:{traceId:f.trace_id,spanId:f.span_id,traceFlags:Zt.SAMPLED}})),p=X.setSpanContext(v.active(),{traceId:l,spanId:a,traceFlags:Zt.SAMPLED});v.with(p,()=>{let f={generateTraceId:()=>l,generateSpanId:()=>u};r._idGenerator=f,r.startSpan(s.name,{kind:i,links:d,startTime:s.start_time,attributes:s.attributes}).end(s.end_time),r._idGenerator=o})})}finally{r._idGenerator=o}})}};function pNe(t){switch(t){case"client":return Pe.CLIENT;case"internal":default:return Pe.INTERNAL}}var fNe=B(lz,t=>new PN(t)),pz=t=>({name:lz,setupOnce(){fNe(t)},setup(e){dz()&&e.on("spanStart",n=>{let r=Y(n);r.description?.startsWith("prisma:")&&n.setAttribute(W,"auto.db.otel.prisma"),r.description==="prisma:engine:db_query"&&r.data["db.query.text"]&&n.updateName(r.data["db.query.text"]),r.description==="prisma:engine:db_query"&&!r.data["db.system"]&&n.setAttribute("db.system","prisma")})}});var yz=Q(Az(),1);var bz="Hapi",Rz=B(bz,()=>new yz.HapiInstrumentation),ONe=()=>({name:bz,setupOnce(){Rz()}}),Iz=ONe;de();var wi={HONO_TYPE:"hono.type",HONO_NAME:"hono.name"},$f={MIDDLEWARE:"middleware",REQUEST_HANDLER:"request_handler"};P();var gS=Q(re(),1);var CNe="@sentry/instrumentation-hono",NNe="0.0.1",hS=class extends gS.InstrumentationBase{constructor(e={}){super(CNe,NNe,e)}init(){return[new gS.InstrumentationNodeModuleDefinition("hono",[">=4.0.0 <5"],e=>this._patch(e))]}_patch(e){let n=this;class r extends e.Hono{constructor(...s){super(...s),n._wrap(this,"get",n._patchHandler()),n._wrap(this,"post",n._patchHandler()),n._wrap(this,"put",n._patchHandler()),n._wrap(this,"delete",n._patchHandler()),n._wrap(this,"options",n._patchHandler()),n._wrap(this,"patch",n._patchHandler()),n._wrap(this,"all",n._patchHandler()),n._wrap(this,"on",n._patchOnHandler()),n._wrap(this,"use",n._patchMiddlewareHandler())}}try{e.Hono=r}catch{return{...e,Hono:r}}return e}_patchHandler(){let e=this;return function(n){return function(...o){if(typeof o[0]=="string"){let s=o[0];if(o.length===1)return n.apply(this,[s]);let i=o.slice(1);return n.apply(this,[s,...i.map(a=>e._wrapHandler(a))])}return n.apply(this,o.map(s=>e._wrapHandler(s)))}}}_patchOnHandler(){let e=this;return function(n){return function(...o){let s=o.slice(2);return n.apply(this,[...o.slice(0,2),...s.map(i=>e._wrapHandler(i))])}}}_patchMiddlewareHandler(){let e=this;return function(n){return function(...o){if(typeof o[0]=="string"){let s=o[0];if(o.length===1)return n.apply(this,[s]);let i=o.slice(1);return n.apply(this,[s,...i.map(a=>e._wrapHandler(a))])}return n.apply(this,o.map(s=>e._wrapHandler(s)))}}}_wrapHandler(e){let n=this;return function(r,o){if(!n.isEnabled())return e.apply(this,[r,o]);let s=r.req.path,i=n.tracer.startSpan(s);return v.with(X.setSpan(v.active(),i),()=>n._safeExecute(()=>{let a=e.apply(this,[r,o]);if(Ht(a))return a.then(u=>{let l=n._determineHandlerType(u);return i.setAttributes({[wi.HONO_TYPE]:l,[wi.HONO_NAME]:l===$f.REQUEST_HANDLER?s:e.name||"anonymous"}),n.getConfig().responseHook?.(i),u});{let u=n._determineHandlerType(a);return i.setAttributes({[wi.HONO_TYPE]:u,[wi.HONO_NAME]:u===$f.REQUEST_HANDLER?s:e.name||"anonymous"}),n.getConfig().responseHook?.(i),a}},()=>i.end(),a=>{n._handleError(i,a),i.end()}))}}_safeExecute(e,n,r){try{let o=e();return Ht(o)?o.then(()=>n(),s=>r(s)):n(),o}catch(o){throw r(o),o}}_determineHandlerType(e){return e===void 0?$f.MIDDLEWARE:$f.REQUEST_HANDLER}_handleError(e,n){n instanceof Error&&(e.setStatus({code:qe.ERROR,message:n.message}),e.recordException(n))}};var Oz="Hono";function xNe(t){let e=Y(t).data,n=e[wi.HONO_TYPE];if(e[te]||!n)return;t.setAttributes({[W]:"auto.http.otel.hono",[te]:`${n}.hono`});let r=e[wi.HONO_NAME];if(typeof r=="string"&&t.updateName(r),le()===hr()){yt&&y.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let o=e[ts],s=e[ua];typeof o=="string"&&typeof s=="string"&&le().setTransactionName(`${s} ${o}`)}var Cz=B(Oz,()=>new hS({responseHook:t=>{xNe(t)}})),PNe=()=>({name:Oz,setupOnce(){Cz()}}),Nz=PNe;var Gz=Q(Fz(),1);de();var jz="Koa",Hz=B(jz,Gz.KoaInstrumentation,(t={})=>({ignoreLayersType:t.ignoreLayersType,requestHook(e,n){Oe(e,"auto.http.otel.koa");let r=Y(e).data,o=r["koa.type"];o&&e.setAttribute(te,`${o}.koa`);let s=r["koa.name"];if(typeof s=="string"&&e.updateName(s||"< unknown >"),le()===hr()){yt&&y.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let i=r[ts],a=n.context?.request?.method?.toUpperCase()||"GET";i&&le().setTransactionName(`${a} ${i}`)}})),FNe=(t={})=>({name:jz,setupOnce(){Hz(t)}}),Vz=FNe;var Xz=Q(Jz(),1);var Zz="Connect",eY=B(Zz,()=>new Xz.ConnectInstrumentation),KNe=()=>({name:Zz,setupOnce(){eY()}}),tY=KNe;var dY=Q(lY(),1);var exe=new Set(["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"]),pY="Tedious",fY=B(pY,()=>new dY.TediousInstrumentation({})),txe=()=>{let t;return{name:pY,setupOnce(){let e=fY();t=Pp(e)},setup(e){t?.(()=>e.on("spanStart",n=>{let{description:r,data:o}=Y(n);if(!r||o["db.system"]!=="mssql")return;let s=r.split(" ")[0]||"";exe.has(s)&&n.setAttribute(W,"auto.db.otel.tedious")}))}}},mY=txe;var EY=Q(TY(),1);var SY="GenericPool",AY=B(SY,()=>new EY.GenericPoolInstrumentation({})),rxe=()=>{let t;return{name:SY,setupOnce(){let e=AY();t=Pp(e)},setup(e){t?.(()=>e.on("spanStart",n=>{let o=Y(n).description;(o==="generic-pool.aquire"||o==="generic-pool.acquire")&&n.setAttribute(W,"auto.db.otel.generic_pool")}))}}},yY=rxe;var vY=Q(MY(),1);var kY="Amqplib",mxe={consumeEndHook:t=>{Oe(t,"auto.amqplib.otel.consumer")},publishHook:t=>{Oe(t,"auto.amqplib.otel.publisher")}},LY=B(kY,()=>new vY.AmqplibInstrumentation(mxe)),_xe=()=>({name:kY,setupOnce(){LY()}}),wY=_xe;var Qf="VercelAI";var LS=Q(re(),1);var hxe=[">=3.0.0 <7"],DY=["generateText","streamText","generateObject","streamObject","embed","embedMany","rerank"];function gxe(t){if(typeof t!="object"||t===null)return!1;let e=t;return"type"in e&&"error"in e&&"toolName"in e&&"toolCallId"in e&&e.type==="tool-error"&&e.error instanceof Error}function Txe(t){if(typeof t!="object"||t===null||!("content"in t))return;let e=t;Array.isArray(e.content)&&(Exe(e.content),Sxe(e.content))}function Exe(t){for(let e of t){if(!gxe(e))continue;let n=JR(e.toolCallId);n?Qn(r=>{r.setContext("trace",{trace_id:n.traceId,span_id:n.spanId}),r.setTag("vercel.ai.tool.name",e.toolName),r.setTag("vercel.ai.tool.callId",e.toolCallId),r.setLevel("error"),ne(e.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})}):Qn(r=>{r.setTag("vercel.ai.tool.name",e.toolName),r.setTag("vercel.ai.tool.callId",e.toolCallId),r.setLevel("error"),ne(e.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})})}}function Sxe(t){for(let e of t)typeof e=="object"&&e!==null&&"toolCallId"in e&&typeof e.toolCallId=="string"&&XR(e.toolCallId)}function Axe(t,e,n,r){let o=t?.recordInputs!==void 0?t.recordInputs:e.recordInputs!==void 0?e.recordInputs:n===!0?!0:r,s=t?.recordOutputs!==void 0?t.recordOutputs:e.recordOutputs!==void 0?e.recordOutputs:n===!0?!0:r;return{recordInputs:o,recordOutputs:s}}var kS=class t extends LS.InstrumentationBase{__init(){this._isPatched=!1}__init2(){this._callbacks=[]}constructor(e={}){super("@sentry/instrumentation-vercel-ai",pe,e),t.prototype.__init.call(this),t.prototype.__init2.call(this)}init(){return new LS.InstrumentationNodeModuleDefinition("ai",hxe,this._patch.bind(this))}callWhenPatched(e){this._isPatched?e():this._callbacks.push(e)}_patch(e){this._isPatched=!0,this._callbacks.forEach(r=>r()),this._callbacks=[];let n=r=>new Proxy(r,{apply:(o,s,i)=>{let a=i[0].experimental_telemetry||{},u=a.isEnabled,l=V(),d=l?.getIntegrationByName(Qf),p=d?.options,f=d?!!l?.getOptions().sendDefaultPii:!1,{recordInputs:m,recordOutputs:_}=Axe(p,a,u,f);return i[0].experimental_telemetry={...a,isEnabled:u!==void 0?u:!0,recordInputs:m,recordOutputs:_},Yr(()=>Reflect.apply(o,s,i),h=>{h&&typeof h=="object"&<(h,"_sentry_active_span",Tr())},()=>{},h=>{Txe(h)})}});if(Object.prototype.toString.call(e)==="[object Module]"){for(let r of DY)e[r]!=null&&(e[r]=n(e[r]));return e}else{let r=DY.reduce((o,s)=>(e[s]!=null&&(o[s]=n(e[s])),o),{});return{...e,...r}}}};var UY=B(Qf,()=>new kS({}));function yxe(t){return!!t.getIntegrationByName("Modules")?.getModules?.()?.ai}var bxe=(t={})=>{let e;return{name:Qf,options:t,setupOnce(){e=UY()},afterAllSetup(n){t.force??yxe(n)?zh(n):e?.callWhenPatched(()=>zh(n))}}},BY=bxe;var DS=Q(re(),1);var Rxe=[">=4.0.0 <7"],wS=class extends DS.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-openai",pe,e)}init(){return new DS.InstrumentationNodeModuleDefinition("openai",Rxe,this._patch.bind(this))}_patch(e){let n=e;return n=this._patchClient(n,"OpenAI"),n=this._patchClient(n,"AzureOpenAI"),n}_patchClient(e,n){let r=e[n];if(!r)return e;let o=this.getConfig(),s=function(...i){if(Ia(fi))return Reflect.construct(r,i);let a=Reflect.construct(r,i);return Wh(a,o)};Object.setPrototypeOf(s,r),Object.setPrototypeOf(s.prototype,r.prototype);for(let i of Object.getOwnPropertyNames(r))if(!["length","name","prototype"].includes(i)){let a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(s,i,a)}try{e[n]=s}catch{Object.defineProperty(e,n,{value:s,writable:!0,configurable:!0,enumerable:!0})}if(e.default===r)try{e.default=s}catch{Object.defineProperty(e,"default",{value:s,writable:!0,configurable:!0,enumerable:!0})}return e}};var FY=B(fi,t=>new wS(t)),Ixe=(t={})=>({name:fi,setupOnce(){FY(t)}}),GY=Ixe;var BS=Q(re(),1);var Oxe=[">=0.19.2 <1.0.0"],US=class extends BS.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-anthropic-ai",pe,e)}init(){return new BS.InstrumentationNodeModuleDefinition("@anthropic-ai/sdk",Oxe,this._patch.bind(this))}_patch(e){let n=e.Anthropic,r=this.getConfig(),o=function(...s){if(Ia(mi))return Reflect.construct(n,s);let i=Reflect.construct(n,s);return Kh(i,r)};Object.setPrototypeOf(o,n),Object.setPrototypeOf(o.prototype,n.prototype);for(let s of Object.getOwnPropertyNames(n))if(!["length","name","prototype"].includes(s)){let i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(o,s,i)}try{e.Anthropic=o}catch{Object.defineProperty(e,"Anthropic",{value:o,writable:!0,configurable:!0,enumerable:!0})}if(e.default===n)try{e.default=o}catch{Object.defineProperty(e,"default",{value:o,writable:!0,configurable:!0,enumerable:!0})}return e}};var jY=B(mi,t=>new US(t)),Cxe=(t={})=>({name:mi,options:t,setupOnce(){jY(t)}}),HY=Cxe;var Yl=Q(re(),1);var VY=[">=0.10.0 <2"],FS=class extends Yl.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-google-genai",pe,e)}init(){return new Yl.InstrumentationNodeModuleDefinition("@google/genai",VY,n=>this._patch(n),n=>n,[new Yl.InstrumentationNodeModuleFile("@google/genai/dist/node/index.cjs",VY,n=>this._patch(n),n=>n)])}_patch(e){let n=e.GoogleGenAI,r=this.getConfig();if(typeof n!="function")return e;let o=function(...s){if(Ia(_i))return Reflect.construct(n,s);let i=Reflect.construct(n,s);return Qh(i,r)};Object.setPrototypeOf(o,n),Object.setPrototypeOf(o.prototype,n.prototype);for(let s of Object.getOwnPropertyNames(n))if(!["length","name","prototype"].includes(s)){let i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(o,s,i)}return Np(e,"GoogleGenAI",o),e}};var qY=B(_i,t=>new FS(t)),Nxe=(t={})=>({name:_i,setupOnce(){qY(t)}}),$Y=Nxe;var qi=Q(re(),1);var GS=[">=0.1.0 <2.0.0"];function xxe(t,e){return t?Array.isArray(t)?t.includes(e)?t:[...t,e]:typeof t=="object"?[t,e]:t:[e]}function Pxe(t,e,n){return new Proxy(t,{apply(r,o,s){let a=s[1];(!a||typeof a!="object"||Array.isArray(a))&&(a={},s[1]=a);let u=a.callbacks,l=xxe(u,e);return a.callbacks=l,Reflect.apply(r,o,s)}})}var jS=class extends qi.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langchain",pe,e)}init(){let e=[],n=["@langchain/anthropic","@langchain/openai","@langchain/google-genai","@langchain/mistralai","@langchain/google-vertexai","@langchain/groq"];for(let r of n)e.push(new qi.InstrumentationNodeModuleDefinition(r,GS,this._patch.bind(this),o=>o,[new qi.InstrumentationNodeModuleFile(`${r}/dist/index.cjs`,GS,this._patch.bind(this),o=>o)]));return e.push(new qi.InstrumentationNodeModuleDefinition("langchain",GS,this._patch.bind(this),r=>r,[new qi.InstrumentationNodeModuleFile("langchain/dist/chat_models/universal.cjs",GS,this._patch.bind(this),r=>r)])),e}_patch(e){SR([fi,mi,_i]);let n=Xh(this.getConfig());return this._patchRunnableMethods(e,n),e}_patchRunnableMethods(e,n){let r=["ChatAnthropic","ChatOpenAI","ChatGoogleGenerativeAI","ChatMistralAI","ChatVertexAI","ChatGroq","ConfigurableModel"],o=e.universal_exports??e,s=Object.values(o).find(u=>typeof u=="function"&&r.includes(u.name));if(!s)return;let i=s.prototype;if(i.__sentry_patched__)return;i.__sentry_patched__=!0;let a=["invoke","stream","batch"];for(let u of a){let l=i[u];typeof l=="function"&&(i[u]=Pxe(l,n))}}};var zY=B(Jh,t=>new jS(t)),Mxe=(t={})=>({name:Jh,setupOnce(){zY(t)}}),YY=Mxe;var Wl=Q(re(),1);var WY=[">=0.0.0 <2.0.0"],HS=class extends Wl.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langgraph",pe,e)}init(){return new Wl.InstrumentationNodeModuleDefinition("@langchain/langgraph",WY,this._patch.bind(this),n=>n,[new Wl.InstrumentationNodeModuleFile("@langchain/langgraph/dist/index.cjs",WY,this._patch.bind(this),n=>n)])}_patch(e){return e.StateGraph&&typeof e.StateGraph=="function"&&eg(e.StateGraph.prototype,this.getConfig()),e}};var KY=B(Zh,t=>new HS(t)),vxe=(t={})=>({name:Zh,setupOnce(){KY(t)}}),QY=vxe;var o7=Q(re(),1);P();var Rs=Q(re(),1);de();import*as XY from"node:net";function ZY(t,e,n,r,o){let i=()=>{},a=o.firestoreSpanCreationHook;typeof a=="function"&&(i=d=>{(0,Rs.safeExecuteInTheMiddle)(()=>a(d),p=>{p&&Wn.error(p?.message)},!0)});let u=new Rs.InstrumentationNodeModuleDefinition("@firebase/firestore",e,d=>JY(d,n,r,t,i)),l=["@firebase/firestore/dist/lite/index.node.cjs.js","@firebase/firestore/dist/lite/index.node.mjs.js","@firebase/firestore/dist/lite/index.rn.esm2017.js","@firebase/firestore/dist/lite/index.cjs.js"];for(let d of l)u.files.push(new Rs.InstrumentationNodeModuleFile(d,e,p=>JY(p,n,r,t,i),p=>e7(p,r)));return u}function JY(t,e,n,r,o){return e7(t,n),e(t,"addDoc",kxe(r,o)),e(t,"getDocs",wxe(r,o)),e(t,"setDoc",Dxe(r,o)),e(t,"deleteDoc",Lxe(r,o)),t}function e7(t,e){for(let n of["addDoc","getDocs","setDoc","deleteDoc"])(0,Rs.isWrapped)(t[n])&&e(t,n);return t}function kxe(t,e){return function(r){return function(o,s){let i=qS(t,"addDoc",o);return e(i),VS(i,()=>r(o,s))}}}function Lxe(t,e){return function(r){return function(o){let s=qS(t,"deleteDoc",o.parent||o);return e(s),VS(s,()=>r(o))}}}function wxe(t,e){return function(r){return function(o){let s=qS(t,"getDocs",o);return e(s),VS(s,()=>r(o))}}}function Dxe(t,e){return function(r){return function(o,s,i){let a=qS(t,"setDoc",o.parent||o);return e(a),VS(a,()=>typeof i<"u"?r(o,s,i):r(o,s))}}}function VS(t,e){return v.with(X.setSpan(v.active(),t),()=>(0,Rs.safeExecuteInTheMiddle)(()=>e(),n=>{n&&t.recordException(n),t.end()},!0))}function qS(t,e,n){let r=t.startSpan(`${e} ${n.path}`,{kind:Pe.CLIENT});return Bxe(r,n),r.setAttribute(Hu,e),r}function Uxe(t){let e,n;if(typeof t.host=="string")if(t.host.startsWith("[")){if(t.host.endsWith("]"))e=t.host.replace(/^\[|\]$/g,"");else if(t.host.includes("]:")){let r=t.host.lastIndexOf(":");r!==-1&&(e=t.host.slice(1,r).replace(/^\[|\]$/g,""),n=t.host.slice(r+1))}}else if(XY.isIPv6(t.host))e=t.host;else{let r=t.host.lastIndexOf(":");r!==-1?(e=t.host.slice(0,r),n=t.host.slice(r+1)):e=t.host}return{address:e,port:n?parseInt(n,10):void 0}}function Bxe(t,e){let n=e.firestore.app,r=n.options,s=(e.firestore.toJSON()||{}).settings||{},i={[ay]:e.path,[uy]:n.name,[aa]:"firebase.firestore","firebase.firestore.type":e.type,"firebase.firestore.options.projectId":r.projectId,"firebase.firestore.options.appId":r.appId,"firebase.firestore.options.messagingSenderId":r.messagingSenderId,"firebase.firestore.options.storageBucket":r.storageBucket},{address:a,port:u}=Uxe(s);a&&(i[hy]=a),u&&(i[gy]=u),t.setAttributes(i)}P();var Is=Q(re(),1);function t7(t,e,n,r,o){let s=()=>{},i=()=>{},a=o.functions?.errorHook,u=o.functions?.requestHook,l=o.functions?.responseHook;typeof l=="function"&&(i=(f,m)=>{(0,Is.safeExecuteInTheMiddle)(()=>l(f,m),_=>{_&&Wn.error(_?.message)},!0)}),typeof u=="function"&&(s=f=>{(0,Is.safeExecuteInTheMiddle)(()=>u(f),m=>{m&&Wn.error(m?.message)},!0)});let d=new Is.InstrumentationNodeModuleDefinition("firebase-functions",e);return[{name:"firebase-functions/lib/v2/providers/https.js",triggerType:"function"},{name:"firebase-functions/lib/v2/providers/firestore.js",triggerType:"firestore"},{name:"firebase-functions/lib/v2/providers/scheduler.js",triggerType:"scheduler"},{name:"firebase-functions/lib/v2/storage.js",triggerType:"storage"}].forEach(({name:f,triggerType:m})=>{d.files.push(new Is.InstrumentationNodeModuleFile(f,e,_=>Fxe(_,n,r,t,{requestHook:s,responseHook:i,errorHook:a},m),_=>n7(_,r)))}),d}function xn(t,e,n){return function(o){return function(...s){let i=typeof s[0]=="function"?s[0]:s[1],a=typeof s[0]=="function"?void 0:s[0];if(!i)return o.call(this,...s);let u=async function(...l){let d=process.env.FUNCTION_TARGET||process.env.K_SERVICE||"unknown",p=t.startSpan(`firebase.function.${n}`,{kind:Pe.SERVER}),f={"faas.name":d,"faas.trigger":n,"faas.provider":"firebase"};return process.env.GCLOUD_PROJECT&&(f["cloud.project_id"]=process.env.GCLOUD_PROJECT),process.env.EVENTARC_CLOUD_EVENT_SOURCE&&(f["cloud.event_source"]=process.env.EVENTARC_CLOUD_EVENT_SOURCE),p.setAttributes(f),e?.requestHook?.(p),v.with(X.setSpan(v.active(),p),async()=>{let m,_;try{_=await i.apply(this,l)}catch(h){m=h}if(e?.responseHook?.(p,m),m&&p.recordException(m),p.end(),m)throw await e?.errorHook?.(p,m),m;return _})};return a?o.call(this,a,u):o.call(this,u)}}}function Fxe(t,e,n,r,o,s){switch(n7(t,n),s){case"function":e(t,"onRequest",xn(r,o,"http.request")),e(t,"onCall",xn(r,o,"http.call"));break;case"firestore":e(t,"onDocumentCreated",xn(r,o,"firestore.document.created")),e(t,"onDocumentUpdated",xn(r,o,"firestore.document.updated")),e(t,"onDocumentDeleted",xn(r,o,"firestore.document.deleted")),e(t,"onDocumentWritten",xn(r,o,"firestore.document.written")),e(t,"onDocumentCreatedWithAuthContext",xn(r,o,"firestore.document.created")),e(t,"onDocumentUpdatedWithAuthContext",xn(r,o,"firestore.document.updated")),e(t,"onDocumentDeletedWithAuthContext",xn(r,o,"firestore.document.deleted")),e(t,"onDocumentWrittenWithAuthContext",xn(r,o,"firestore.document.written"));break;case"scheduler":e(t,"onSchedule",xn(r,o,"scheduler.scheduled"));break;case"storage":e(t,"onObjectFinalized",xn(r,o,"storage.object.finalized")),e(t,"onObjectArchived",xn(r,o,"storage.object.archived")),e(t,"onObjectDeleted",xn(r,o,"storage.object.deleted")),e(t,"onObjectMetadataUpdated",xn(r,o,"storage.object.metadataUpdated"));break}return t}function n7(t,e){let n=["onSchedule","onRequest","onCall","onObjectFinalized","onObjectArchived","onObjectDeleted","onObjectMetadataUpdated","onDocumentCreated","onDocumentUpdated","onDocumentDeleted","onDocumentWritten","onDocumentCreatedWithAuthContext","onDocumentUpdatedWithAuthContext","onDocumentDeletedWithAuthContext","onDocumentWrittenWithAuthContext"];for(let r of n)(0,Is.isWrapped)(t[r])&&e(t,r);return t}var r7={},Gxe=[">=3.0.0 <5"],jxe=[">=6.0.0 <7"],$S=class extends o7.InstrumentationBase{constructor(e=r7){super("@sentry/instrumentation-firebase",pe,e)}setConfig(e={}){super.setConfig({...r7,...e})}init(){let e=[];return e.push(ZY(this.tracer,Gxe,this._wrap,this._unwrap,this.getConfig())),e.push(t7(this.tracer,jxe,this._wrap,this._unwrap,this.getConfig())),e}};var s7="Firebase",Hxe={firestoreSpanCreationHook:t=>{Oe(t,"auto.firebase.otel.firestore"),t.setAttribute(te,"db.query")},functions:{requestHook:t=>{Oe(t,"auto.firebase.otel.functions"),t.setAttribute(te,"http.request")},errorHook:async(t,e)=>{e&&(ne(e,{mechanism:{type:"auto.firebase.otel.functions",handled:!1}}),await yh(2e3))}}},i7=B(s7,()=>new $S(Hxe)),Vxe=()=>({name:s7,setupOnce(){i7()}}),a7=Vxe;function u7(){return[e8(),xq(),t5(),Nz(),F5(),Z5(),l9(),A9(),J9(),g$(),pz(),Iz(),Vz(),tY(),mY(),yY(),g5(),wY(),C5(),YY(),QY(),BY(),GY(),HY(),$Y(),S$(),a7()]}P();var zS=Q(vI(),1),c7=Q(oO(),1);de();var KN=1e6;function l7(t,e={}){t.getOptions().debug&&SO();let[n,r]=qxe(t,e);t.traceProvider=n,t.asyncLocalStorageLookup=r}function qxe(t,e={}){let n=new c7.BasicTracerProvider({sampler:new oT(t),resource:(0,zS.defaultResource)().merge((0,zS.resourceFromAttributes)({[Ty]:"node",[iy]:"sentry",[Ey]:pe})),forceFlushTimeoutMillis:500,spanProcessors:[new rT({timeout:$xe(t.getOptions().maxSpanWaitDuration)}),...e.spanProcessors||[]]});X.setGlobalTracerProvider(n),Br.setGlobalPropagator(new nT);let r=new EO;return v.setGlobalContextManager(r),[n,r.getAsyncLocalStorageLookup()]}function $xe(t){if(t!=null){if(t>KN)return yt&&y.warn(`\`maxSpanWaitDuration\` is too high, using the maximum value of ${KN}`),KN;if(t<=0||Number.isNaN(t)){yt&&y.warn("`maxSpanWaitDuration` must be a positive number, using default value instead.");return}return t}}function d7(){return pT().filter(e=>e.name!=="Http"&&e.name!=="NodeFetch").concat(vV(),GV())}function p7(t){return[...d7(),...rt(t)?u7():[]]}function QN(t={}){return zxe(t,p7)}function zxe(t={},e){Oa(t,"node");let n=xO({...t,defaultIntegrations:t.defaultIntegrations??e(t)});return n&&!t.skipOpenTelemetrySetup&&(l7(n,{spanProcessors:t.openTelemetrySpanProcessors}),PO()),n}var Yxe="prod",m7="0.1.32",Wxe=`@tanagram/lore/${m7}`;function Ve(){return Yxe}function to(){return m7}function _7(){return Wxe}QN({dsn:"https://583674b382128b1b30b9fa1f0581daab@o4509017064472576.ingest.us.sentry.io/4511344717529088",environment:Ve(),release:to(),sendDefaultPii:!0});Ah("service_name","lore-cli");import{realpathSync as GBe}from"node:fs";import{fileURLToPath as jBe,pathToFileURL as KJ}from"node:url";var Kxe=/\d/,Qxe=["-","_","/","."];function Jxe(t=""){if(!Kxe.test(t))return t!==t.toLowerCase()}function h7(t,e){let n=e??Qxe,r=[];if(!t||typeof t!="string")return r;let o="",s,i;for(let a of t){let u=n.includes(a);if(u===!0){r.push(o),o="",s=void 0;continue}let l=Jxe(a);if(i===!1){if(s===!1&&l===!0){r.push(o),o=a,s=l;continue}if(s===!0&&l===!1&&o.length>1){let d=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=d+a,s=l;continue}}o+=a,s=l,i=u}return r.push(o),r}function Xxe(t){return t?t[0].toUpperCase()+t.slice(1):""}function Zxe(t){return t?t[0].toLowerCase()+t.slice(1):""}function ePe(t,e){return t?(Array.isArray(t)?t:h7(t)).map(n=>Xxe(e?.normalize?n.toLowerCase():n)).join(""):""}function Jf(t,e){return Zxe(ePe(t||"",e))}function YS(t,e){return t?(Array.isArray(t)?t:h7(t)).map(n=>n.toLowerCase()).join(e??"-"):""}function g7(t){return YS(t||"","_")}import{parseArgs as tPe}from"node:util";function XS(t){return Array.isArray(t)?t:t===void 0?[]:[t]}function JN(t,e=""){let n=[];for(let r of t)for(let[o,s]of r.entries())n[o]=Math.max(n[o]||0,s.length);return t.map(r=>r.map((o,s)=>e+o[s===0?"padStart":"padEnd"](n[s])).join(" ")).join(`
|
|
39
39
|
`)}function ar(t){return typeof t=="function"?t():t}var tu=class extends Error{code;constructor(t,e){super(t),this.name="CLIError",this.code=e}};function nPe(t=[],e={}){let n=new Set(e.boolean||[]),r=new Set(e.string||[]),o=e.alias||{},s=e.default||{},i=new Map,a=new Map;for(let[g,E]of Object.entries(o)){let S=E;for(let b of S)i.set(g,b),a.has(b)||a.set(b,[]),a.get(b).push(g),i.set(b,g),a.has(g)||a.set(g,[]),a.get(g).push(b)}let u={};function l(g){if(n.has(g))return"boolean";let E=a.get(g)||[];for(let S of E)if(n.has(S))return"boolean";return"string"}function d(g){if(r.has(g))return!0;let E=a.get(g)||[];for(let S of E)if(r.has(S))return!0;return!1}let p=new Set([...n,...r,...Object.keys(o),...Object.values(o).flat(),...Object.keys(s)]);for(let g of p)u[g]||(u[g]={type:l(g),default:s[g]});for(let[g,E]of i.entries())g.length===1&&u[E]&&!u[E].short&&(u[E].short=g);let f=[],m={};for(let g=0;g<t.length;g++){let E=t[g];if(E==="--"){f.push(...t.slice(g));break}if(E.startsWith("--no-")){let S=E.slice(5);m[S]=!0;continue}f.push(E)}let _;try{_=tPe({args:f,options:Object.keys(u).length>0?u:void 0,allowPositionals:!0,strict:!1})}catch{_={values:{},positionals:f}}let h={_:[]};h._=_.positionals;for(let[g,E]of Object.entries(_.values)){let S=E;l(g)==="boolean"&&typeof E=="string"?S=E!=="false":d(g)&&typeof E=="boolean"&&(S=""),h[g]=S}for(let[g]of Object.entries(m)){h[g]=!1;let E=i.get(g);E&&(h[E]=!1);let S=a.get(g);if(S)for(let b of S)h[b]=!1}for(let[g,E]of i.entries())h[g]!==void 0&&h[E]===void 0&&(h[E]=h[g]),h[E]!==void 0&&h[g]===void 0&&(h[g]=h[E]),h[g]!==h[E]&&s[E]===h[E]&&(h[E]=h[g]);return h}var rPe=(()=>{let t=globalThis.process?.env??{};return t.NO_COLOR==="1"||t.TERM==="dumb"||t.TEST||t.CI})(),ZS=(t,e=39)=>n=>rPe?n:`\x1B[${t}m${n}\x1B[${e}m`,WS=ZS(1,22),no=ZS(36),QS=ZS(90),KS=ZS(4,24);function oPe(t,e){let n={boolean:[],string:[],alias:{},default:{}},r=S7(e);for(let a of r){if(a.type==="positional")continue;a.type==="string"||a.type==="enum"?n.string.push(a.name):a.type==="boolean"&&n.boolean.push(a.name),a.default!==void 0&&(n.default[a.name]=a.default),a.alias&&(n.alias[a.name]=a.alias);let u=Jf(a.name),l=YS(a.name);if(u!==a.name||l!==a.name){let d=XS(n.alias[a.name]||[]);u!==a.name&&!d.includes(u)&&d.push(u),l!==a.name&&!d.includes(l)&&d.push(l),d.length>0&&(n.alias[a.name]=d)}}let o=nPe(t,n),[...s]=o._,i=new Proxy(o,{get(a,u){return a[u]??a[Jf(u)]??a[YS(u)]}});for(let[,a]of r.entries())if(a.type==="positional"){let u=s.shift();if(u!==void 0)i[a.name]=u;else{if(a.default===void 0&&a.required!==!1)throw new tu(`Missing required positional argument: ${a.name.toUpperCase()}`,"EARG");i[a.name]=a.default}}else if(a.type==="enum"){let u=i[a.name],l=a.options||[];if(u!==void 0&&l.length>0&&!l.includes(u))throw new tu(`Invalid value for argument: ${no(`--${a.name}`)} (${no(u)}). Expected one of: ${l.map(d=>no(d)).join(", ")}.`,"EARG")}else if(a.required&&i[a.name]===void 0)throw new tu(`Missing required argument: --${a.name}`,"EARG");return i}function S7(t){let e=[];for(let[n,r]of Object.entries(t||{}))e.push({...r,name:n,alias:XS(r.alias)});return e}async function sPe(t){return Promise.all(t.map(e=>ar(e)))}async function JS(t,e){let n=await ar(t.args||{}),r=oPe(e.rawArgs,n),o={rawArgs:e.rawArgs,args:r,data:e.data,cmd:t},s=await sPe(t.plugins??[]),i,a;try{for(let d of s)await d.setup?.(o);typeof t.setup=="function"&&await t.setup(o);let l=await ar(t.subCommands);if(l&&Object.keys(l).length>0){let d=iPe(e.rawArgs,n),p=e.rawArgs[d];if(p){let f=await T7(l,p);if(!f)throw new tu(`Unknown command ${no(p)}`,"E_UNKNOWN_COMMAND");await JS(f,{rawArgs:e.rawArgs.slice(d+1)})}else{let f=await ar(t.default);if(f){if(t.run)throw new tu("Cannot specify both 'run' and 'default' on the same command.","E_DEFAULT_CONFLICT");let m=await T7(l,f);if(!m)throw new tu(`Default sub command ${no(f)} not found in subCommands.`,"E_UNKNOWN_COMMAND");await JS(m,{rawArgs:e.rawArgs})}else if(!t.run)throw new tu("No command specified.","E_NO_COMMAND")}}typeof t.run=="function"&&(i=await t.run(o))}catch(l){a=l}let u=[];if(typeof t.cleanup=="function")try{await t.cleanup(o)}catch(l){u.push(l)}for(let l of[...s].reverse())try{await l.cleanup?.(o)}catch(d){u.push(d)}if(a)throw a;if(u.length===1)throw u[0];if(u.length>1)throw new Error("Multiple cleanup errors",{cause:u});return{result:i}}async function T7(t,e){if(e in t)return ar(t[e]);for(let n of Object.values(t)){let r=await ar(n),o=await ar(r?.meta);if(o?.alias&&XS(o.alias).includes(e))return r}}function iPe(t,e){for(let n=0;n<t.length;n++){let r=t[n];if(r==="--")return-1;if(r.startsWith("-")){!r.includes("=")&&aPe(r,e)&&n++;continue}return n}return-1}function aPe(t,e){let n=t.replace(/^-{1,2}/,""),r=Jf(n);for(let[o,s]of Object.entries(e))if(!(s.type!=="string"&&s.type!=="enum")&&(r===Jf(o)||(Array.isArray(s.alias)?s.alias:s.alias?[s.alias]:[]).includes(n)))return!0;return!1}var uPe=/^no[-A-Z]/;async function e0(t,e){let n=await ar(t.meta||{}),r=S7(await ar(t.args||{})),o=await ar(e?.meta||{}),s=`${o.name?`${o.name} `:""}`+(n.name||process.argv[1]),i=[],a=[],u=[],l=[];for(let m of r)if(m.type==="positional"){let _=m.name.toUpperCase(),h=m.required!==!1&&m.default===void 0;a.push([no(_+XN(m)),E7(m,h)]),l.push(h?`<${_}>`:`[${_}]`)}else{let _=m.required===!0&&m.default===void 0,h=[...(m.alias||[]).map(g=>`-${g}`),`--${m.name}`].join(", ")+XN(m);if(i.push([no(h),E7(m,_)]),m.type==="boolean"&&(m.default===!0||m.negativeDescription)&&!uPe.test(m.name)){let g=[...(m.alias||[]).map(E=>`--no-${E}`),`--no-${m.name}`].join(", ");i.push([no(g),[m.negativeDescription,_?QS("(Required)"):""].filter(Boolean).join(" ")])}_&&l.push(`--${m.name}`+XN(m))}if(t.subCommands){let m=[],_=await ar(t.subCommands);for(let[h,g]of Object.entries(_)){let E=await ar((await ar(g))?.meta);if(E?.hidden)continue;let S=XS(E?.alias),b=[h,...S].join(", ");u.push([no(b),E?.description||""]),m.push(h,...S)}l.push(m.join("|"))}let d=[],p=n.version||o.version;d.push(QS(`${n.description} (${s+(p?` v${p}`:"")})`),"");let f=i.length>0||a.length>0;return d.push(`${KS(WS("USAGE"))} ${no(`${s}${f?" [OPTIONS]":""} ${l.join(" ")}`)}`,""),a.length>0&&(d.push(KS(WS("ARGUMENTS")),""),d.push(JN(a," ")),d.push("")),i.length>0&&(d.push(KS(WS("OPTIONS")),""),d.push(JN(i," ")),d.push("")),u.length>0&&(d.push(KS(WS("COMMANDS")),""),d.push(JN(u," ")),d.push("",`Use ${no(`${s} <command> --help`)} for more information about a command.`)),d.filter(m=>typeof m=="string").join(`
|
|
40
|
-
`)}function XN(t){let e=t.valueHint?`=<${t.valueHint}>`:"",n=e||`=<${g7(t.name)}>`;return!t.type||t.type==="positional"||t.type==="boolean"?e:t.type==="enum"&&t.options?.length?`=<${t.options.join("|")}>`:n}function E7(t,e){let n=e?QS("(Required)"):"",r=t.default===void 0?"":QS(`(Default: ${t.default})`);return[t.description,n,r].filter(Boolean).join(" ")}import{spawn as nUe}from"node:child_process";var c={};ea(c,{BRAND:()=>LPe,DIRTY:()=>nu,EMPTY_PATH:()=>pPe,INVALID:()=>J,NEVER:()=>T1e,OK:()=>dn,ParseStatus:()=>Jt,Schema:()=>ce,ZodAny:()=>Yi,ZodArray:()=>xs,ZodBigInt:()=>ou,ZodBoolean:()=>su,ZodBranded:()=>Zf,ZodCatch:()=>hu,ZodDate:()=>iu,ZodDefault:()=>_u,ZodDiscriminatedUnion:()=>r0,ZodEffects:()=>wr,ZodEnum:()=>fu,ZodError:()=>Hn,ZodFirstPartyTypeKind:()=>ee,ZodFunction:()=>s0,ZodIntersection:()=>lu,ZodIssueCode:()=>x,ZodLazy:()=>du,ZodLiteral:()=>pu,ZodMap:()=>ed,ZodNaN:()=>nd,ZodNativeEnum:()=>mu,ZodNever:()=>ro,ZodNull:()=>uu,ZodNullable:()=>Ho,ZodNumber:()=>ru,ZodObject:()=>Vn,ZodOptional:()=>kr,ZodParsedType:()=>D,ZodPipeline:()=>em,ZodPromise:()=>Wi,ZodReadonly:()=>gu,ZodRecord:()=>o0,ZodSchema:()=>ce,ZodSet:()=>td,ZodString:()=>zi,ZodSymbol:()=>Xl,ZodTransformer:()=>wr,ZodTuple:()=>jo,ZodType:()=>ce,ZodUndefined:()=>au,ZodUnion:()=>cu,ZodUnknown:()=>Ns,ZodVoid:()=>Zl,addIssueToContext:()=>k,any:()=>VPe,array:()=>YPe,bigint:()=>BPe,boolean:()=>M7,coerce:()=>g1e,custom:()=>N7,date:()=>FPe,datetimeRegex:()=>O7,defaultErrorMap:()=>Os,discriminatedUnion:()=>JPe,effect:()=>c1e,enum:()=>i1e,function:()=>r1e,getErrorMap:()=>Kl,getParsedType:()=>Go,instanceof:()=>DPe,intersection:()=>XPe,isAborted:()=>t0,isAsync:()=>Ql,isDirty:()=>n0,isValid:()=>$i,late:()=>wPe,lazy:()=>o1e,literal:()=>s1e,makeIssue:()=>Xf,map:()=>t1e,nan:()=>UPe,nativeEnum:()=>a1e,never:()=>$Pe,null:()=>HPe,nullable:()=>d1e,number:()=>P7,object:()=>WPe,objectUtil:()=>ZN,oboolean:()=>h1e,onumber:()=>_1e,optional:()=>l1e,ostring:()=>m1e,pipeline:()=>f1e,preprocess:()=>p1e,promise:()=>u1e,quotelessJson:()=>cPe,record:()=>e1e,set:()=>n1e,setErrorMap:()=>dPe,strictObject:()=>KPe,string:()=>x7,symbol:()=>GPe,transformer:()=>c1e,tuple:()=>ZPe,undefined:()=>jPe,union:()=>QPe,unknown:()=>qPe,util:()=>fe,void:()=>zPe});var fe;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{let s={};for(let i of o)s[i]=i;return s},t.getValidEnumValues=o=>{let s=t.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(let a of s)i[a]=o[a];return t.objectValues(i)},t.objectValues=o=>t.objectKeys(o).map(function(s){return o[s]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let s=[];for(let i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},t.find=(o,s)=>{for(let i of o)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(fe||(fe={}));var ZN;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(ZN||(ZN={}));var D=fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Go=t=>{switch(typeof t){case"undefined":return D.undefined;case"string":return D.string;case"number":return Number.isNaN(t)?D.nan:D.number;case"boolean":return D.boolean;case"function":return D.function;case"bigint":return D.bigint;case"symbol":return D.symbol;case"object":return Array.isArray(t)?D.array:t===null?D.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?D.promise:typeof Map<"u"&&t instanceof Map?D.map:typeof Set<"u"&&t instanceof Set?D.set:typeof Date<"u"&&t instanceof Date?D.date:D.object;default:return D.unknown}};var x=fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),cPe=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Hn=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){let n=e||function(s){return s.message},r={_errors:[]},o=s=>{for(let i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(i))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),r}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let s=o.path[0];n[s]=n[s]||[],n[s].push(e(o))}else r.push(e(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};Hn.create=t=>new Hn(t);var lPe=(t,e)=>{let n;switch(t.code){case x.invalid_type:t.received===D.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case x.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,fe.jsonStringifyReplacer)}`;break;case x.unrecognized_keys:n=`Unrecognized key(s) in object: ${fe.joinValues(t.keys,", ")}`;break;case x.invalid_union:n="Invalid input";break;case x.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${fe.joinValues(t.options)}`;break;case x.invalid_enum_value:n=`Invalid enum value. Expected ${fe.joinValues(t.options)}, received '${t.received}'`;break;case x.invalid_arguments:n="Invalid function arguments";break;case x.invalid_return_type:n="Invalid function return type";break;case x.invalid_date:n="Invalid date";break;case x.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:fe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case x.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case x.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case x.custom:n="Invalid input";break;case x.invalid_intersection_types:n="Intersection results could not be merged";break;case x.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case x.not_finite:n="Number must be finite";break;default:n=e.defaultError,fe.assertNever(t)}return{message:n}},Os=lPe;var A7=Os;function dPe(t){A7=t}function Kl(){return A7}var Xf=t=>{let{data:e,path:n,errorMaps:r,issueData:o}=t,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="",u=r.filter(l=>!!l).slice().reverse();for(let l of u)a=l(i,{data:e,defaultError:a}).message;return{...o,path:s,message:a}},pPe=[];function k(t,e){let n=Kl(),r=Xf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Os?void 0:Os].filter(o=>!!o)});t.common.issues.push(r)}var Jt=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){let r=[];for(let o of n){if(o.status==="aborted")return J;o.status==="dirty"&&e.dirty(),r.push(o.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){let r=[];for(let o of n){let s=await o.key,i=await o.value;r.push({key:s,value:i})}return t.mergeObjectSync(e,r)}static mergeObjectSync(e,n){let r={};for(let o of n){let{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return J;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:e.value,value:r}}},J=Object.freeze({status:"aborted"}),nu=t=>({status:"dirty",value:t}),dn=t=>({status:"valid",value:t}),t0=t=>t.status==="aborted",n0=t=>t.status==="dirty",$i=t=>t.status==="valid",Ql=t=>typeof Promise<"u"&&t instanceof Promise;var j;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(j||(j={}));var Lr=class{constructor(e,n,r,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},y7=(t,e)=>{if($i(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new Hn(t.common.issues);return this._error=n,this._error}}};function ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:r,description:o}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(i,a)=>{let{message:u}=t;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:u??n??a.defaultError}},description:o}}var ce=class{get description(){return this._def.description}_getType(e){return Go(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Go(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Jt,ctx:{common:e.parent.common,data:e.data,parsedType:Go(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(Ql(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Go(e)},o=this._parseSync({data:e,path:r.path,parent:r});return y7(r,o)}"~validate"(e){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Go(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:n});return $i(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>$i(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){let r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Go(e)},o=this._parse({data:e,path:r.path,parent:r}),s=await(Ql(o)?o:Promise.resolve(o));return y7(r,s)}refine(e,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{let i=e(o),a=()=>s.addIssue({code:x.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,o)=>e(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(e){return new wr({schema:this,typeName:ee.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return kr.create(this,this._def)}nullable(){return Ho.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xs.create(this)}promise(){return Wi.create(this,this._def)}or(e){return cu.create([this,e],this._def)}and(e){return lu.create(this,e,this._def)}transform(e){return new wr({...ae(this._def),schema:this,typeName:ee.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let n=typeof e=="function"?e:()=>e;return new _u({...ae(this._def),innerType:this,defaultValue:n,typeName:ee.ZodDefault})}brand(){return new Zf({typeName:ee.ZodBranded,type:this,...ae(this._def)})}catch(e){let n=typeof e=="function"?e:()=>e;return new hu({...ae(this._def),innerType:this,catchValue:n,typeName:ee.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return em.create(this,e)}readonly(){return gu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},fPe=/^c[^\s-]{8,}$/i,mPe=/^[0-9a-z]+$/,_Pe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,hPe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gPe=/^[a-z0-9_-]{21}$/i,TPe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,EPe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,SPe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,APe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ex,yPe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bPe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,RPe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,IPe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,OPe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,CPe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R7="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",NPe=new RegExp(`^${R7}$`);function I7(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function xPe(t){return new RegExp(`^${I7(t)}$`)}function O7(t){let e=`${R7}T${I7(t)}`,n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function PPe(t,e){return!!((e==="v4"||!e)&&yPe.test(t)||(e==="v6"||!e)&&RPe.test(t))}function MPe(t,e){if(!TPe.test(t))return!1;try{let[n]=t.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function vPe(t,e){return!!((e==="v4"||!e)&&bPe.test(t)||(e==="v6"||!e)&&IPe.test(t))}var zi=class t extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==D.string){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_type,expected:D.string,received:s.parsedType}),J}let r=new Jt,o;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){let i=e.data.length>s.value,a=e.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(e,o),i?k(o,{code:x.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&k(o,{code:x.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")SPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"email",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")ex||(ex=new RegExp(APe,"u")),ex.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"emoji",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")hPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"uuid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")gPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"nanoid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")fPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"cuid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")mPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"cuid2",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")_Pe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"ulid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),k(o,{validation:"url",code:x.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"regex",code:x.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?O7(s).test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?NPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?xPe(s).test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?EPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"duration",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?PPe(e.data,s.version)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"ip",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?MPe(e.data,s.alg)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"jwt",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?vPe(e.data,s.version)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"cidr",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?OPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"base64",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?CPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"base64url",code:x.invalid_string,message:s.message}),r.dirty()):fe.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(o=>e.test(o),{validation:n,code:x.invalid_string,...j.errToObj(r)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...j.errToObj(e)})}url(e){return this._addCheck({kind:"url",...j.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...j.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...j.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...j.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...j.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...j.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...j.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...j.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...j.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...j.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...j.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...j.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...j.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...j.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...j.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...j.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...j.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...j.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...j.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...j.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...j.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...j.errToObj(n)})}nonempty(e){return this.min(1,j.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};zi.create=t=>new zi({checks:[],typeName:ee.ZodString,coerce:t?.coerce??!1,...ae(t)});function kPe(t,e){let n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,o=n>r?n:r,s=Number.parseInt(t.toFixed(o).replace(".","")),i=Number.parseInt(e.toFixed(o).replace(".",""));return s%i/10**o}var ru=class t extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==D.number){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_type,expected:D.number,received:s.parsedType}),J}let r,o=new Jt;for(let s of this._def.checks)s.kind==="int"?fe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),k(r,{code:x.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?kPe(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),k(r,{code:x.not_finite,message:s.message}),o.dirty()):fe.assertNever(s);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,j.toString(n))}gt(e,n){return this.setLimit("min",e,!1,j.toString(n))}lte(e,n){return this.setLimit("max",e,!0,j.toString(n))}lt(e,n){return this.setLimit("max",e,!1,j.toString(n))}setLimit(e,n,r,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:j.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:j.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:j.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:j.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:j.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:j.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&fe.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}};ru.create=t=>new ru({checks:[],typeName:ee.ZodNumber,coerce:t?.coerce||!1,...ae(t)});var ou=class t extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==D.bigint)return this._getInvalidInput(e);let r,o=new Jt;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):fe.assertNever(s);return{status:o.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return k(n,{code:x.invalid_type,expected:D.bigint,received:n.parsedType}),J}gte(e,n){return this.setLimit("min",e,!0,j.toString(n))}gt(e,n){return this.setLimit("min",e,!1,j.toString(n))}lte(e,n){return this.setLimit("max",e,!0,j.toString(n))}lt(e,n){return this.setLimit("max",e,!1,j.toString(n))}setLimit(e,n,r,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:j.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:j.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};ou.create=t=>new ou({checks:[],typeName:ee.ZodBigInt,coerce:t?.coerce??!1,...ae(t)});var su=class extends ce{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==D.boolean){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.boolean,received:r.parsedType}),J}return dn(e.data)}};su.create=t=>new su({typeName:ee.ZodBoolean,coerce:t?.coerce||!1,...ae(t)});var iu=class t extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==D.date){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_type,expected:D.date,received:s.parsedType}),J}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_date}),J}let r=new Jt,o;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):fe.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:j.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:j.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};iu.create=t=>new iu({checks:[],coerce:t?.coerce||!1,typeName:ee.ZodDate,...ae(t)});var Xl=class extends ce{_parse(e){if(this._getType(e)!==D.symbol){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.symbol,received:r.parsedType}),J}return dn(e.data)}};Xl.create=t=>new Xl({typeName:ee.ZodSymbol,...ae(t)});var au=class extends ce{_parse(e){if(this._getType(e)!==D.undefined){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.undefined,received:r.parsedType}),J}return dn(e.data)}};au.create=t=>new au({typeName:ee.ZodUndefined,...ae(t)});var uu=class extends ce{_parse(e){if(this._getType(e)!==D.null){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.null,received:r.parsedType}),J}return dn(e.data)}};uu.create=t=>new uu({typeName:ee.ZodNull,...ae(t)});var Yi=class extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return dn(e.data)}};Yi.create=t=>new Yi({typeName:ee.ZodAny,...ae(t)});var Ns=class extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return dn(e.data)}};Ns.create=t=>new Ns({typeName:ee.ZodUnknown,...ae(t)});var ro=class extends ce{_parse(e){let n=this._getOrReturnCtx(e);return k(n,{code:x.invalid_type,expected:D.never,received:n.parsedType}),J}};ro.create=t=>new ro({typeName:ee.ZodNever,...ae(t)});var Zl=class extends ce{_parse(e){if(this._getType(e)!==D.undefined){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.void,received:r.parsedType}),J}return dn(e.data)}};Zl.create=t=>new Zl({typeName:ee.ZodVoid,...ae(t)});var xs=class t extends ce{_parse(e){let{ctx:n,status:r}=this._processInputParams(e),o=this._def;if(n.parsedType!==D.array)return k(n,{code:x.invalid_type,expected:D.array,received:n.parsedType}),J;if(o.exactLength!==null){let i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(k(n,{code:i?x.too_big:x.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(k(n,{code:x.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(k(n,{code:x.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Lr(n,i,n.path,a)))).then(i=>Jt.mergeArray(r,i));let s=[...n.data].map((i,a)=>o.type._parseSync(new Lr(n,i,n.path,a)));return Jt.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:j.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:j.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:j.toString(n)}})}nonempty(e){return this.min(1,e)}};xs.create=(t,e)=>new xs({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ee.ZodArray,...ae(e)});function Jl(t){if(t instanceof Vn){let e={};for(let n in t.shape){let r=t.shape[n];e[n]=kr.create(Jl(r))}return new Vn({...t._def,shape:()=>e})}else return t instanceof xs?new xs({...t._def,type:Jl(t.element)}):t instanceof kr?kr.create(Jl(t.unwrap())):t instanceof Ho?Ho.create(Jl(t.unwrap())):t instanceof jo?jo.create(t.items.map(e=>Jl(e))):t}var Vn=class t extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=fe.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==D.object){let l=this._getOrReturnCtx(e);return k(l,{code:x.invalid_type,expected:D.object,received:l.parsedType}),J}let{status:r,ctx:o}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ro&&this._def.unknownKeys==="strip"))for(let l in o.data)i.includes(l)||a.push(l);let u=[];for(let l of i){let d=s[l],p=o.data[l];u.push({key:{status:"valid",value:l},value:d._parse(new Lr(o,p,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof ro){let l=this._def.unknownKeys;if(l==="passthrough")for(let d of a)u.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(l==="strict")a.length>0&&(k(o,{code:x.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let d of a){let p=o.data[d];u.push({key:{status:"valid",value:d},value:l._parse(new Lr(o,p,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let d of u){let p=await d.key,f=await d.value;l.push({key:p,value:f,alwaysSet:d.alwaysSet})}return l}).then(l=>Jt.mergeObjectSync(r,l)):Jt.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return j.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:j.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ee.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let r of fe.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let r of fe.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}deepPartial(){return Jl(this)}partial(e){let n={};for(let r of fe.objectKeys(this.shape)){let o=this.shape[r];e&&!e[r]?n[r]=o:n[r]=o.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let r of fe.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof kr;)s=s._def.innerType;n[r]=s}return new t({...this._def,shape:()=>n})}keyof(){return C7(fe.objectKeys(this.shape))}};Vn.create=(t,e)=>new Vn({shape:()=>t,unknownKeys:"strip",catchall:ro.create(),typeName:ee.ZodObject,...ae(e)});Vn.strictCreate=(t,e)=>new Vn({shape:()=>t,unknownKeys:"strict",catchall:ro.create(),typeName:ee.ZodObject,...ae(e)});Vn.lazycreate=(t,e)=>new Vn({shape:t,unknownKeys:"strip",catchall:ro.create(),typeName:ee.ZodObject,...ae(e)});var cu=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r=this._def.options;function o(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let i=s.map(a=>new Hn(a.ctx.common.issues));return k(n,{code:x.invalid_union,unionErrors:i}),J}if(n.common.async)return Promise.all(r.map(async s=>{let i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s,i=[];for(let u of r){let l={...n,common:{...n.common,issues:[]},parent:null},d=u._parseSync({data:n.data,path:n.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(u=>new Hn(u));return k(n,{code:x.invalid_union,unionErrors:a}),J}}get options(){return this._def.options}};cu.create=(t,e)=>new cu({options:t,typeName:ee.ZodUnion,...ae(e)});var Cs=t=>t instanceof du?Cs(t.schema):t instanceof wr?Cs(t.innerType()):t instanceof pu?[t.value]:t instanceof fu?t.options:t instanceof mu?fe.objectValues(t.enum):t instanceof _u?Cs(t._def.innerType):t instanceof au?[void 0]:t instanceof uu?[null]:t instanceof kr?[void 0,...Cs(t.unwrap())]:t instanceof Ho?[null,...Cs(t.unwrap())]:t instanceof Zf||t instanceof gu?Cs(t.unwrap()):t instanceof hu?Cs(t._def.innerType):[],r0=class t extends ce{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==D.object)return k(n,{code:x.invalid_type,expected:D.object,received:n.parsedType}),J;let r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(k(n,{code:x.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){let o=new Map;for(let s of n){let i=Cs(s.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of i){if(o.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);o.set(a,s)}}return new t({typeName:ee.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:o,...ae(r)})}};function tx(t,e){let n=Go(t),r=Go(e);if(t===e)return{valid:!0,data:t};if(n===D.object&&r===D.object){let o=fe.objectKeys(e),s=fe.objectKeys(t).filter(a=>o.indexOf(a)!==-1),i={...t,...e};for(let a of s){let u=tx(t[a],e[a]);if(!u.valid)return{valid:!1};i[a]=u.data}return{valid:!0,data:i}}else if(n===D.array&&r===D.array){if(t.length!==e.length)return{valid:!1};let o=[];for(let s=0;s<t.length;s++){let i=t[s],a=e[s],u=tx(i,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===D.date&&r===D.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var lu=class extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e),o=(s,i)=>{if(t0(s)||t0(i))return J;let a=tx(s.value,i.value);return a.valid?((n0(s)||n0(i))&&n.dirty(),{status:n.value,value:a.data}):(k(r,{code:x.invalid_intersection_types}),J)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};lu.create=(t,e,n)=>new lu({left:t,right:e,typeName:ee.ZodIntersection,...ae(n)});var jo=class t extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.array)return k(r,{code:x.invalid_type,expected:D.array,received:r.parsedType}),J;if(r.data.length<this._def.items.length)return k(r,{code:x.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&r.data.length>this._def.items.length&&(k(r,{code:x.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...r.data].map((i,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Lr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>Jt.mergeArray(n,i)):Jt.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};jo.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new jo({items:t,typeName:ee.ZodTuple,rest:null,...ae(e)})};var o0=class t extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.object)return k(r,{code:x.invalid_type,expected:D.object,received:r.parsedType}),J;let o=[],s=this._def.keyType,i=this._def.valueType;for(let a in r.data)o.push({key:s._parse(new Lr(r,a,r.path,a)),value:i._parse(new Lr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Jt.mergeObjectAsync(n,o):Jt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof ce?new t({keyType:e,valueType:n,typeName:ee.ZodRecord,...ae(r)}):new t({keyType:zi.create(),valueType:e,typeName:ee.ZodRecord,...ae(n)})}},ed=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.map)return k(r,{code:x.invalid_type,expected:D.map,received:r.parsedType}),J;let o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Lr(r,a,r.path,[l,"key"])),value:s._parse(new Lr(r,u,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of i){let l=await u.key,d=await u.value;if(l.status==="aborted"||d.status==="aborted")return J;(l.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(l.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let u of i){let l=u.key,d=u.value;if(l.status==="aborted"||d.status==="aborted")return J;(l.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(l.value,d.value)}return{status:n.value,value:a}}}};ed.create=(t,e,n)=>new ed({valueType:e,keyType:t,typeName:ee.ZodMap,...ae(n)});var td=class t extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.set)return k(r,{code:x.invalid_type,expected:D.set,received:r.parsedType}),J;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(k(r,{code:x.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(k(r,{code:x.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let s=this._def.valueType;function i(u){let l=new Set;for(let d of u){if(d.status==="aborted")return J;d.status==="dirty"&&n.dirty(),l.add(d.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((u,l)=>s._parse(new Lr(r,u,r.path,l)));return r.common.async?Promise.all(a).then(u=>i(u)):i(a)}min(e,n){return new t({...this._def,minSize:{value:e,message:j.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:j.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};td.create=(t,e)=>new td({valueType:t,minSize:null,maxSize:null,typeName:ee.ZodSet,...ae(e)});var s0=class t extends ce{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==D.function)return k(n,{code:x.invalid_type,expected:D.function,received:n.parsedType}),J;function r(a,u){return Xf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kl(),Os].filter(l=>!!l),issueData:{code:x.invalid_arguments,argumentsError:u}})}function o(a,u){return Xf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kl(),Os].filter(l=>!!l),issueData:{code:x.invalid_return_type,returnTypeError:u}})}let s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Wi){let a=this;return dn(async function(...u){let l=new Hn([]),d=await a._def.args.parseAsync(u,s).catch(m=>{throw l.addIssue(r(u,m)),l}),p=await Reflect.apply(i,this,d);return await a._def.returns._def.type.parseAsync(p,s).catch(m=>{throw l.addIssue(o(p,m)),l})})}else{let a=this;return dn(function(...u){let l=a._def.args.safeParse(u,s);if(!l.success)throw new Hn([r(u,l.error)]);let d=Reflect.apply(i,this,l.data),p=a._def.returns.safeParse(d,s);if(!p.success)throw new Hn([o(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:jo.create(e).rest(Ns.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new t({args:e||jo.create([]).rest(Ns.create()),returns:n||Ns.create(),typeName:ee.ZodFunction,...ae(r)})}},du=class extends ce{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};du.create=(t,e)=>new du({getter:t,typeName:ee.ZodLazy,...ae(e)});var pu=class extends ce{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return k(n,{received:n.data,code:x.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:e.data}}get value(){return this._def.value}};pu.create=(t,e)=>new pu({value:t,typeName:ee.ZodLiteral,...ae(e)});function C7(t,e){return new fu({values:t,typeName:ee.ZodEnum,...ae(e)})}var fu=class t extends ce{_parse(e){if(typeof e.data!="string"){let n=this._getOrReturnCtx(e),r=this._def.values;return k(n,{expected:fe.joinValues(r),received:n.parsedType,code:x.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),r=this._def.values;return k(n,{received:n.data,code:x.invalid_enum_value,options:r}),J}return dn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};fu.create=C7;var mu=class extends ce{_parse(e){let n=fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==D.string&&r.parsedType!==D.number){let o=fe.objectValues(n);return k(r,{expected:fe.joinValues(o),received:r.parsedType,code:x.invalid_type}),J}if(this._cache||(this._cache=new Set(fe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let o=fe.objectValues(n);return k(r,{received:r.data,code:x.invalid_enum_value,options:o}),J}return dn(e.data)}get enum(){return this._def.values}};mu.create=(t,e)=>new mu({values:t,typeName:ee.ZodNativeEnum,...ae(e)});var Wi=class extends ce{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==D.promise&&n.common.async===!1)return k(n,{code:x.invalid_type,expected:D.promise,received:n.parsedType}),J;let r=n.parsedType===D.promise?n.data:Promise.resolve(n.data);return dn(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Wi.create=(t,e)=>new Wi({type:t,typeName:ee.ZodPromise,...ae(e)});var wr=class extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:r}=this._processInputParams(e),o=this._def.effect||null,s={addIssue:i=>{k(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){let i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return J;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?J:u.status==="dirty"?nu(u.value):n.value==="dirty"?nu(u.value):u});{if(n.value==="aborted")return J;let a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?J:a.status==="dirty"?nu(a.value):n.value==="dirty"?nu(a.value):a}}if(o.type==="refinement"){let i=a=>{let u=o.refinement(a,s);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!$i(i))return J;let a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>$i(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):J);fe.assertNever(o)}};wr.create=(t,e,n)=>new wr({schema:t,typeName:ee.ZodEffects,effect:e,...ae(n)});wr.createWithPreprocess=(t,e,n)=>new wr({schema:e,effect:{type:"preprocess",transform:t},typeName:ee.ZodEffects,...ae(n)});var kr=class extends ce{_parse(e){return this._getType(e)===D.undefined?dn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};kr.create=(t,e)=>new kr({innerType:t,typeName:ee.ZodOptional,...ae(e)});var Ho=class extends ce{_parse(e){return this._getType(e)===D.null?dn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ho.create=(t,e)=>new Ho({innerType:t,typeName:ee.ZodNullable,...ae(e)});var _u=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return n.parsedType===D.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};_u.create=(t,e)=>new _u({innerType:t,typeName:ee.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ae(e)});var hu=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ql(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Hn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Hn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};hu.create=(t,e)=>new hu({innerType:t,typeName:ee.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ae(e)});var nd=class extends ce{_parse(e){if(this._getType(e)!==D.nan){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.nan,received:r.parsedType}),J}return{status:"valid",value:e.data}}};nd.create=t=>new nd({typeName:ee.ZodNaN,...ae(t)});var LPe=Symbol("zod_brand"),Zf=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},em=class t extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?J:s.status==="dirty"?(n.dirty(),nu(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?J:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(e,n){return new t({in:e,out:n,typeName:ee.ZodPipeline})}},gu=class extends ce{_parse(e){let n=this._def.innerType._parse(e),r=o=>($i(o)&&(o.value=Object.freeze(o.value)),o);return Ql(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};gu.create=(t,e)=>new gu({innerType:t,typeName:ee.ZodReadonly,...ae(e)});function b7(t,e){let n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function N7(t,e={},n){return t?Yi.create().superRefine((r,o)=>{let s=t(r);if(s instanceof Promise)return s.then(i=>{if(!i){let a=b7(e,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!s){let i=b7(e,r),a=i.fatal??n??!0;o.addIssue({code:"custom",...i,fatal:a})}}):Yi.create()}var wPe={object:Vn.lazycreate},ee;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ee||(ee={}));var DPe=(t,e={message:`Input not instance of ${t.name}`})=>N7(n=>n instanceof t,e),x7=zi.create,P7=ru.create,UPe=nd.create,BPe=ou.create,M7=su.create,FPe=iu.create,GPe=Xl.create,jPe=au.create,HPe=uu.create,VPe=Yi.create,qPe=Ns.create,$Pe=ro.create,zPe=Zl.create,YPe=xs.create,WPe=Vn.create,KPe=Vn.strictCreate,QPe=cu.create,JPe=r0.create,XPe=lu.create,ZPe=jo.create,e1e=o0.create,t1e=ed.create,n1e=td.create,r1e=s0.create,o1e=du.create,s1e=pu.create,i1e=fu.create,a1e=mu.create,u1e=Wi.create,c1e=wr.create,l1e=kr.create,d1e=Ho.create,p1e=wr.createWithPreprocess,f1e=em.create,m1e=()=>x7().optional(),_1e=()=>P7().optional(),h1e=()=>M7().optional(),g1e={string:t=>zi.create({...t,coerce:!0}),number:t=>ru.create({...t,coerce:!0}),boolean:t=>su.create({...t,coerce:!0}),bigint:t=>ou.create({...t,coerce:!0}),date:t=>iu.create({...t,coerce:!0})};var T1e=J;var E1e=t=>typeof t?.safeParse=="function";var nx=t=>typeof t?.passthrough=="function";var S1e=(t,e)=>nx(t)?nx(e)?t.merge(e):t:nx(e)?e:Object.assign({},t,e);var Zot=c.object({name:c.literal("ZodError"),issues:c.array(c.object({path:c.array(c.union([c.string(),c.number()])),message:c.string().optional(),code:c.nativeEnum(c.ZodIssueCode)}).catchall(c.any()))}),A1e=Symbol("ContractNoBody"),k7=t=>"method"in t&&"path"in t;var L7=(t,e)=>Object.fromEntries(Object.entries(t).map(([n,r])=>{var o,s,i;return k7(r)?[n,{...r,path:e?.pathPrefix?e.pathPrefix+r.path:r.path,headers:S1e(e?.baseHeaders,r.headers),strictStatusCodes:(o=r.strictStatusCodes)!==null&&o!==void 0?o:e?.strictStatusCodes,validateResponseOnClient:(s=r.validateResponseOnClient)!==null&&s!==void 0?s:e?.validateResponseOnClient,responses:{...e?.commonResponses,...r.responses},metadata:e?.metadata?{...e?.metadata,...(i=r.metadata)!==null&&i!==void 0?i:{}}:r.metadata}]:[n,L7(r,e)]})),rx=Symbol("ContractPlainType"),Dr=()=>({router:(t,e)=>L7(t,e),query:t=>t,mutation:t=>t,responses:t=>t,response:()=>rx,body:()=>rx,type:()=>rx,otherResponse:({contentType:t,body:e})=>({contentType:t,body:e}),noBody:()=>A1e}),y1e=({path:t,params:e})=>{let n=e;return t.replace(/\/?:([^/?]+)\??/g,(r,o)=>n[o]?`${r.startsWith("/")?"/":""}${n[o]}`:"")},b1e=(t,e=!1)=>{let n=e?R1e(t):I1e(t);return n?.length>0?"?"+n:""},R1e=t=>t?Object.entries(t).filter(([,e])=>e!==void 0).map(([e,n])=>{let r;return typeof n=="string"&&!["true","false","null"].includes(n.trim())&&isNaN(Number(n))?r=n:r=JSON.stringify(n),`${encodeURIComponent(e)}=${encodeURIComponent(r)}`}).join("&"):"",I1e=t=>t?Object.keys(t).flatMap(e=>ox(e,t[e])).map(([e,n])=>`${encodeURIComponent(e)}=${encodeURIComponent(n)}`).join("&"):"",ox=(t,e)=>Array.isArray(e)?e.flatMap((n,r)=>ox(`${t}[${r}]`,n)):e instanceof Date?[[`${t}`,e.toISOString()]]:e===null?[[`${t}`,""]]:e===void 0?[]:typeof e=="object"?Object.keys(e).flatMap(n=>ox(`${t}[${n}]`,e[n])):[[`${t}`,`${e}`]];var sx=class extends Error{constructor(e,n){let r=n.join(",");super(`Server returned unexpected response. Expected one of: ${r} got: ${e.status}`),this.response=e}};var O1e=async({route:t,path:e,method:n,headers:r,body:o,validateResponse:s,fetchOptions:i})=>{let a=await fetch(e,{...i,method:n,headers:r,body:o}),u=a.headers.get("content-type");if(u?.includes("application/")&&u?.includes("json")){let l={status:a.status,body:await a.json(),headers:a.headers},d=t.responses[l.status];return(s??t.validateResponseOnClient)&&E1e(d)?{...l,body:d.parse(l.body)}:l}return u?.includes("text/")?{status:a.status,body:await a.text(),headers:a.headers}:{status:a.status,body:await a.blob(),headers:a.headers}},C1e=t=>{let e=new FormData,n=(r,o)=>{o instanceof File?e.append(r,o):e.append(r,JSON.stringify(o))};return Object.entries(t).forEach(([r,o])=>{if(Array.isArray(o))for(let s of o)n(r,s);else n(r,o)}),e},v7=t=>Object.fromEntries(Object.entries(t).map(([e,n])=>[e.toLowerCase(),n])),N1e=t=>{let{path:e,clientArgs:n,route:r,body:o,query:s,extraInputArgs:i,headers:a,fetchOptions:u}=t,l=n.api||O1e,d=n.baseHeaders&&Object.fromEntries(Object.entries(n.baseHeaders).map(([m,_])=>typeof _=="function"?[m,_(t)]:[m,_])),p={...d&&v7(d),...v7(a)};Object.keys(p).forEach(m=>{p[m]===void 0&&delete p[m]});let f={route:r,path:e,method:r.method,headers:p,body:void 0,rawBody:o,rawQuery:s,contentType:void 0,validateResponse:n.validateResponse,fetchOptions:{...n.credentials&&{credentials:n.credentials},...u},...u?.signal&&{signal:u.signal},...u?.cache&&{cache:u.cache},...u&&"next"in u&&!!u?.next&&{next:u.next}};return r.method!=="GET"&&("contentType"in r&&r.contentType==="multipart/form-data"?f={...f,contentType:"multipart/form-data",body:o instanceof FormData?o:C1e(o)}:"contentType"in r&&r.contentType==="application/x-www-form-urlencoded"?f={...f,contentType:"application/x-www-form-urlencoded",headers:{"content-type":"application/x-www-form-urlencoded",...f.headers},body:typeof o=="string"?o:new URLSearchParams(o)}:o!=null&&(f={...f,contentType:"application/json",headers:{"content-type":"application/json",...f.headers},body:JSON.stringify(o)})),l({...f,...i})},x1e=(t,e,n)=>{let{query:r,params:o,body:s,headers:i,extraHeaders:a,overrideClientOptions:u,fetchOptions:l,cache:d,next:p,...f}=n||{},m={...e,...u};return{path:P1e(r,m.baseUrl,o,t,!!m.jsonQuery),clientArgs:m,route:t,body:s,query:r,extraInputArgs:f,fetchOptions:{...d&&{cache:d},...p&&{next:p},...l},headers:{...a,...i}}},P1e=(t,e,n,r,o)=>{let s=y1e({path:r.path,params:n}),i=b1e(t,o);return`${e}${s}${i}`},M1e=(t,e)=>{let n=Object.keys(t.responses);return async r=>{let o=x1e(t,e,r),s=await N1e(o);if(!e.throwOnUnknownStatus||n.includes(s.status.toString()))return s;throw new sx(s,n)}},ix=(t,e)=>Object.fromEntries(Object.entries(t).map(([n,r])=>k7(r)?[n,M1e(r,e)]:[n,ix(r,e)]));var ax=["free","creator","team"],w7=typeof process<"u"&&process.env?.NODE_ENV!=="production",v1e={stripe:{plans:[{tier:"free",subjectType:"user",name:"Free",description:"Share any thread from Claude Code, Codex, or Cowork. Share with friends or keep private. Share skills with your team instantly.",price:0,priceId:null,features:[{name:"Share threads from Claude Code, Codex, and Cowork"},{name:"Share with friends or keep private"},{name:"Share skills with your team instantly"}],entitlements:{skills:!1,workspaceScope:!1,review:!1,sharedThreadTtlDays:3}},{tier:"creator",subjectType:"user",name:"Creator",description:"For builders who share a lot. Permanent links and the Skills tab.",price:29,isFeatured:!0,priceId:w7?"price_1TP9BSKwvRM43sh64waIrvjj":"price_1TPA2gKwvRM43sh6Kp4ZCpJZ",features:[{name:"Everything in Free"},{name:"Shared threads live forever"},{name:"Skills tab \u2014 tool usage across every thread"}],entitlements:{skills:!0,workspaceScope:!1,review:!1,sharedThreadTtlDays:null}},{tier:"team",subjectType:"organization",name:"Team",description:"GitHub for Prompts. Org-wide thread sharing plus the review surface.",price:19,minSeats:2,priceId:w7?"price_1TP9MpKwvRM43sh6TBIFxVCd":"price_1TPA3CKwvRM43sh6k0bgPTsQ",features:[{name:"Everything in Creator"},{name:"Workspace-wide thread sharing"},{name:"Minimum 2 seats"},{name:"Review feature (beta)"}],entitlements:{skills:!0,workspaceScope:!0,review:!0,sharedThreadTtlDays:null}}]}};var D7=v1e.stripe.plans,tst=Object.freeze(Object.fromEntries(D7.map(t=>[t.tier,t])));var k1e=Dr(),pn=c.object({message:c.string()}),ux=c.record(c.unknown()),Tu=c.string().regex(/^doc_[0-9A-Za-z]{22}$/),i0=c.string().regex(/^proj_[0-9A-Za-z]{22}$/),L1e=["active","archived"],a0=c.enum(L1e),U7=c.object({id:c.string().min(1),display_name:c.string().min(1)}),B7=c.object({id:i0,name:c.string().min(1)}),cx=c.object({id:Tu,title:c.string().min(1),status:a0,author:U7,project:B7.nullable(),created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable()}),w1e=c.object({type:c.literal("list"),list_type:c.literal("doc"),objects:c.array(cx)}),D1e=c.object({project_id:i0.optional(),status:a0.optional()}),U1e=c.object({title:c.string().trim().min(1).max(300).optional(),prosemirror_json:ux.optional(),project_id:i0.nullable().optional()}),B1e=c.object({id:Tu,created_at:c.string().datetime()}),F1e=c.object({title:c.string().trim().min(1).max(300).optional(),prosemirror_json:ux.optional(),project_id:i0.nullable().optional(),status:a0.optional()}).refine(t=>Object.keys(t).length>0,{message:"At least one field must be provided"}),G1e=c.object({id:Tu,updated_at:c.string().datetime()}),j1e=c.object({id:Tu,title:c.string().min(1),prosemirror_json:ux,status:a0,author:U7,project:B7.nullable(),created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable()}),F7=k1e.router({listDocs:{method:"GET",path:"/docs",headers:c.object({authorization:c.string().min(1).optional()}),query:D1e,responses:{200:w1e,401:pn,403:pn},summary:"List docs in the authenticated user\u2019s organization. Optional project_id filter scopes to a single project."},createDoc:{method:"POST",path:"/docs",headers:c.object({authorization:c.string().min(1).optional()}),body:U1e,responses:{201:B1e,401:pn,403:pn,404:pn,422:pn},summary:"Create a doc. If project_id is provided, the doc is scoped to that project; otherwise it lives at the workspace level."},getDoc:{method:"GET",path:"/docs/:docId",pathParams:c.object({docId:Tu}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:j1e,401:pn,403:pn,404:pn},summary:"Get a doc by id with its rich-text body and parent project (if any)"},updateDoc:{method:"PATCH",path:"/docs/:docId",pathParams:c.object({docId:Tu}),headers:c.object({authorization:c.string().min(1).optional()}),body:F1e,responses:{200:G1e,401:pn,403:pn,404:pn,422:pn},summary:"Update a doc. If prosemirror_json changes, the server re-syncs lore.mention_references from mention nodes."},deleteDoc:{method:"DELETE",path:"/docs/:docId",pathParams:c.object({docId:Tu}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.object({}),401:pn,403:pn,404:pn},summary:"Hard-delete a doc and any mention references it owns"}});var H1e=Dr(),it=c.object({message:c.string()}),lx=c.record(c.unknown()),Vo=c.string().regex(/^proj_[0-9A-Za-z]{22}$/),V1e=["active","archived"],u0=c.enum(V1e),dx=c.object({id:c.string().min(1),display_name:c.string().min(1)}),G7=c.object({thread_id:c.string().min(1),title:c.string().min(1),added_at:c.string().datetime(),added_by:dx}),q1e=c.object({id:Vo,name:c.string().min(1),status:u0,author:dx,thread_count:c.number().int().nonnegative(),doc_count:c.number().int().nonnegative(),created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable()}),$1e=c.object({type:c.literal("list"),list_type:c.literal("project"),objects:c.array(q1e)}),z1e=c.object({status:u0.optional()}),Y1e=c.object({name:c.string().trim().min(1).max(200),prosemirror_json:lx.optional()}),W1e=c.object({id:Vo,created_at:c.string().datetime()}),K1e=c.object({name:c.string().trim().min(1).max(200).optional(),prosemirror_json:lx.optional()}).refine(t=>Object.keys(t).length>0,{message:"At least one field must be provided"}),Q1e=c.object({id:Vo,updated_at:c.string().datetime()}),J1e=c.object({archived:c.boolean()}),X1e=c.object({id:Vo,status:u0,archived_at:c.string().datetime().nullable()}),Z1e=c.object({id:Vo,name:c.string().min(1),prosemirror_json:lx,status:u0,author:dx,created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable(),threads:c.array(G7),docs:c.array(cx)}),eMe=c.object({thread_id:c.string().min(1).max(64)}),tMe=G7,j7=H1e.router({listProjects:{method:"GET",path:"/projects",headers:c.object({authorization:c.string().min(1).optional()}),query:z1e,responses:{200:$1e,401:it},summary:"List projects in the authenticated user\u2019s organization"},createProject:{method:"POST",path:"/projects",headers:c.object({authorization:c.string().min(1).optional()}),body:Y1e,responses:{201:W1e,401:it,422:it},summary:"Create a new project in the authenticated user\u2019s organization"},getProject:{method:"GET",path:"/projects/:projectId",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Z1e,401:it,403:it,404:it},summary:"Get a project with its attached threads and child docs. The project description is the canonical mention source for project-scoped @-mentions."},updateProject:{method:"PATCH",path:"/projects/:projectId",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),body:K1e,responses:{200:Q1e,401:it,403:it,404:it,422:it},summary:"Update a project\u2019s name or rich-text body. Body changes re-sync mention_references for source_kind=project."},archiveProject:{method:"POST",path:"/projects/:projectId/archive",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),body:J1e,responses:{200:X1e,401:it,403:it,404:it},summary:"Archive (soft-delete) or unarchive a project"},addProjectThread:{method:"POST",path:"/projects/:projectId/threads",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),body:eMe,responses:{201:tMe,401:it,403:it,404:it,409:it,422:it},summary:"Pin an existing visible thread to this project. Idempotent \u2014 re-adding returns the existing membership."},removeProjectThread:{method:"DELETE",path:"/projects/:projectId/threads/:threadId",pathParams:c.object({projectId:Vo,threadId:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.object({}),401:it,403:it,404:it},summary:"Remove a thread membership from a project"}});var nMe=Dr(),c0=c.object({message:c.string()}),rMe=["thread","plan","doc","user"],l0=c.enum(rMe),oMe=["doc","project"],sMe=c.enum(oMe),iMe=c.object({kind:l0,id:c.string().min(1),title:c.string().min(1),href:c.string().min(1)}),aMe=c.object({type:c.literal("list"),list_type:c.literal("mention"),objects:c.array(iMe)}),uMe=c.object({q:c.string().trim().min(1).max(50),kinds:c.string().optional().transform(t=>{if(!t)return;let e=t.split(",").map(n=>n.trim()).filter(n=>n.length>0);return e.length>0?e:void 0}).pipe(c.array(l0).optional())}),cMe=c.object({source_kind:sMe,source_id:c.string().min(1),source_title:c.string().min(1),source_href:c.string().min(1),target_kind:l0,target_id:c.string().min(1),created_at:c.string().datetime()}),lMe=c.object({type:c.literal("list"),list_type:c.literal("backlink"),objects:c.array(cMe)}),dMe=c.object({target_kind:l0,target_id:c.string().min(1).max(64)}),H7=nMe.router({searchMentions:{method:"GET",path:"/mentions/search",headers:c.object({authorization:c.string().min(1).optional()}),query:uMe,responses:{200:aMe,401:c0,422:c0},summary:"Search threads, plans, files, and users by title/name for @-mention typeahead. Org-scoped, max 10 results across all kinds."},listBacklinks:{method:"GET",path:"/mentions/backlinks",headers:c.object({authorization:c.string().min(1).optional()}),query:dMe,responses:{200:lMe,401:c0,403:c0},summary:"List every doc/project body in the caller\u2019s organization that mentions the given target. Newest-first."}});var pMe=Dr(),fMe=c.object({type:c.literal("list"),list_type:c.literal("thread"),has_more:c.boolean(),objects:c.array(c.unknown())}),Ut=c.object({message:c.string()}),V7=c.object({thread_id:c.string().min(1),is_favorited:c.boolean(),favorited_at:c.string().datetime().nullable()}),mMe=c.object({before:c.string().min(1).max(64).optional()}),_Me=c.object({id:c.string().min(1),display_name:c.string().min(1)}),hMe=c.object({block_id:c.string().min(1),thread_id:c.string().min(1),thread_title:c.string(),thread_visibility:c.enum(["private","workspace","public"]),author:_Me,preview:c.string(),prompted_at:c.string().datetime().nullable(),favorited_at:c.string().datetime()}),gMe=c.object({type:c.literal("list"),list_type:c.literal("favorite_prompt"),has_more:c.boolean(),objects:c.array(hMe)}),q7=c.object({block_id:c.string().min(1),thread_id:c.string().min(1).nullable(),is_favorited:c.boolean(),favorited_at:c.string().datetime().nullable()}),TMe=c.object({before:c.string().min(1).max(64).optional()}),EMe=c.object({block_ids:c.array(c.string().min(1))}),$7=pMe.router({addThreadFavorite:{method:"POST",path:"/threads/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{201:V7,401:Ut,403:Ut,404:Ut},summary:"Bookmark a thread for the authenticated user. Idempotent \u2014 re-favoriting returns the existing membership."},removeThreadFavorite:{method:"DELETE",path:"/threads/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:V7,401:Ut,403:Ut,404:Ut},summary:"Remove a thread bookmark for the authenticated user (no-op if absent)."},listFavoriteThreads:{method:"GET",path:"/favorites/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:mMe,responses:{200:fMe,401:Ut,403:Ut},summary:"List threads the authenticated user has favorited, newest favorited first. Visibility filtering still applies \u2014 a thread the viewer can no longer see (e.g. visibility downgraded) is omitted from the list."},addPromptFavorite:{method:"POST",path:"/thread-blocks/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{201:q7,401:Ut,403:Ut,404:Ut,409:Ut},summary:'Bookmark a single user prompt (a thread_blocks row with type="user") for the authenticated user. Idempotent.'},removePromptFavorite:{method:"DELETE",path:"/thread-blocks/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:q7,401:Ut,404:Ut},summary:"Remove a prompt bookmark for the authenticated user (no-op if absent)."},listFavoritePrompts:{method:"GET",path:"/favorites/prompts",headers:c.object({authorization:c.string().min(1).optional()}),query:TMe,responses:{200:gMe,401:Ut},summary:"List the user's favorited prompts, newest first. Prompts whose parent thread the viewer can no longer see (visibility downgraded) are filtered out at read time."},listFavoritedBlockIdsInThread:{method:"GET",path:"/threads/:id/favorited-blocks",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:EMe,401:Ut,403:Ut,404:Ut},summary:"Returns the set of thread_block ids the authenticated viewer has favorited within a single thread, used to bootstrap per-prompt star state on the SessionView."}});var SMe=Dr(),z7=c.object({message:c.string()}),AMe=c.object({id:c.string().min(1),title:c.string(),href:c.string().min(1),author_display_name:c.string().nullable(),author_handle:c.string().nullable()}),yMe=c.object({name:c.string().min(1),usage_count:c.number().int().nonnegative(),href:c.string().min(1)}),bMe=c.object({id:c.string().min(1),display_name:c.string(),handle:c.string().nullable(),avatar_url:c.string().nullable(),href:c.string().min(1)}),RMe=c.object({type:c.literal("global_search"),threads:c.array(AMe),skills:c.array(yMe),people:c.array(bMe)}),IMe=c.object({q:c.string().trim().min(1).max(80)}),Y7=SMe.router({globalSearch:{method:"GET",path:"/search",headers:c.object({authorization:c.string().min(1).optional()}),query:IMe,responses:{200:RMe,401:z7,422:z7},summary:"Global navbar search. Threads and people are searched globally (subject to thread visibility); skills are scoped to the viewer workspace. Max 5 results per kind."}});var OMe=Dr(),CMe=["gmail.com","googlemail.com","hotmail.com","outlook.com","live.com","msn.com","yahoo.com","ymail.com","rocketmail.com","icloud.com","me.com","mac.com","aol.com","proton.me","protonmail.com","pm.me","tutanota.com","tuta.io","fastmail.com","hey.com","mail.com","gmx.com","gmx.net","zoho.com","zohomail.com","hushmail.com","lycos.com","inbox.com","yandex.com","yandex.ru","mail.ru","inbox.ru","bk.ru","list.ru","rambler.ru","qq.com","163.com","126.com","yeah.net","sina.com","naver.com","daum.net","hanmail.net","kakao.com","rediffmail.com","comcast.net","verizon.net","att.net","sbcglobal.net","bellsouth.net","earthlink.net","charter.net","cox.net","roadrunner.com","spectrum.net","btinternet.com","virginmedia.com","sky.com","orange.fr","wanadoo.fr","free.fr","laposte.net","web.de","t-online.de","gmx.de","libero.it","virgilio.it","alice.it","seznam.cz","centrum.cz","wp.pl","interia.pl","o2.pl","onet.pl"],Bst=new Set(CMe);var NMe=c.object({id:c.string().uuid(),role:c.enum(["user","assistant"]),content:c.string().min(1),timestamp:c.string().datetime()}),xMe=c.object({id:c.string().uuid(),title:c.string().min(1),author:c.string().min(1),authorAvatar:c.string().min(1).max(4),model:c.string().min(1),turnCount:c.number().int().nonnegative(),createdAt:c.string().datetime(),preview:c.string()}),Fst=xMe.extend({messages:c.array(NMe)}),A=c.object({message:c.string()}),PMe=/^[a-zA-Z0-9_-]{2,32}$/,tW=c.string().regex(PMe,"Handle must be 2\u201332 characters: letters, numbers, dashes, or underscores."),px=c.object({id:c.string(),first_name:c.string().min(1),last_name:c.string().min(1),display_name:c.string().min(1),stytch_id:c.string().nullable(),handle:c.string().nullable(),bio:c.string().max(280).nullable(),avatar_url:c.string().nullable(),banner_url:c.string().nullable(),share_new_threads_to_workspace:c.boolean(),experimental_features_enabled:c.boolean(),onboarded_at:c.string().nullable()}),MMe=c.object({authProviderUserId:c.string().min(1).optional(),organizationId:c.string().min(1).optional(),org_name:c.string().min(1).optional(),emailAddress:c.string().email(),name:c.string().nullable(),user:px,is_admin:c.boolean()}),vMe=c.object({workos_client_id:c.string().min(1),workos_api_origin:c.string().url()}),kMe=c.object({share_new_threads_to_workspace:c.boolean().optional(),experimental_features_enabled:c.boolean().optional(),onboarded_at:c.union([c.literal("now"),c.null()]).optional(),display_name:c.string().min(1).max(120).optional(),handle:tW.optional(),bio:c.string().max(280).nullable().optional(),avatar_storage_url:c.string().min(1).nullable().optional(),banner_storage_url:c.string().min(1).nullable().optional()}).refine(t=>Object.keys(t).length>0,{message:"At least one field must be provided"}),LMe=c.object({id:c.string(),display_name:c.string(),handle:c.string().nullable(),avatar_url:c.string().nullable(),visible_thread_count:c.number().int().nonnegative(),last_active_at:c.string().datetime().nullable()}),nW=c.object({id:c.string().min(1),display_name:c.string().min(1),handle:c.string().nullable(),bio:c.string().max(280).nullable(),avatar_url:c.string().nullable(),banner_url:c.string().nullable(),organization_name:c.string().min(1).nullable(),created_at:c.string().min(1),visible_thread_count:c.number().int().nonnegative(),follower_count:c.number().int().nonnegative(),following_count:c.number().int().nonnegative(),published_project_count:c.number().int().nonnegative(),is_following:c.boolean(),is_self:c.boolean()}),wMe=c.object({type:c.literal("list"),list_type:c.literal("organization_member"),objects:c.array(LMe)}),DMe=c.object({email_address:c.string().email()}),UMe=c.object({email_address:c.string().email(),invitation_id:c.string().min(1)}),BMe=c.object({organization_id:c.string().min(1),organization_name:c.string().min(1),domain:c.string().min(1),created:c.boolean()}),FMe=c.object({location:c.string().trim().min(1),contact:c.string().trim().email()}),GMe=c.object({location:c.string().min(1),contact:c.string().email(),created_at:c.string().datetime()}),jMe=c.object({first_name:c.string().min(1),last_name:c.string().min(1),display_name:c.string().min(1),stytch_id:c.string().min(1).optional()}),HMe=c.object({name:c.string().min(1),email_domains:c.array(c.string().min(1)).nonempty(),stytch_org_id:c.string().min(1)}),VMe=c.object({user:jMe,organization:HMe}),qMe=c.object({path_glob:c.string().min(1),name:c.string().min(1),description:c.string().min(1)}),$Me=c.object({repo_origin_path:c.string().min(1),building_blocks:c.array(qMe)}),rW=c.string().regex(/^th_[0-9A-Za-z]{22}$/),p0=c.string().regex(/^tb_[0-9A-Za-z]{22}$/),zMe=c.object({id:rW,author:c.object({id:c.string().min(1),display_name:c.string().min(1)}),body:c.string(),created_at:c.string().datetime(),repo_origin_path:c.string().min(1),latest_revision_id:p0,revision_count:c.number().int().positive()}),YMe=c.object({id:c.string().min(1),display_name:c.string().min(1)}),WMe=c.object({id:c.string().min(1),author_id:c.string().min(1).nullable(),author:YMe.nullable(),created_at:c.string().datetime(),deleted_at:c.string().datetime().nullable(),content:c.string().min(1)}),KMe=c.object({id:c.string().min(1),thread_block_id:c.string().min(1),created_at:c.string().datetime(),resolved_at:c.string().datetime().nullable(),comments:c.array(WMe)}),QMe=c.object({thread_block_id:p0,from_position:c.number().int().positive(),to_position:c.number().int().positive(),selected_text:c.string().min(1),content:c.string().trim().min(1)}),JMe=c.object({id:c.string().min(1)}),XMe=c.object({content:c.string().trim().min(1)}),ZMe=c.object({id:c.string().min(1)}),eve=c.object({content:c.string().trim().min(1)}),tve=c.object({id:c.string().min(1)}),nve=c.object({content:c.string().trim().min(1)}),rve=c.object({id:c.string().min(1)}),ove=c.object({resolved:c.boolean()}),sve=c.object({id:c.string().min(1),resolved_at:c.string().datetime().nullable()}),ive=c.object({resolved:c.boolean()}),ave=c.object({id:c.string().min(1),resolved_at:c.string().datetime().nullable()}),oW=c.record(c.unknown()),uve=c.object({id:p0,body:c.string(),created_at:c.string().datetime(),prosemirror_json:oW,comment_threads:c.array(KMe)}),cve=c.object({id:rW,created_at:c.string().datetime(),repo_origin_path:c.string().min(1),author:c.object({id:c.string().min(1),display_name:c.string().min(1)}),latest_revision_id:p0,revision_count:c.number().int().positive(),revisions:c.array(uve)}),lve=c.object({type:c.literal("list"),list_type:c.literal("plan"),has_more:c.boolean(),objects:c.array(zMe)}),dve=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional(),author_id:c.string().min(1).optional(),repo_origin_path:c.string().min(1).optional()}),sW=c.object({id:c.string().min(1),organization_id:c.string().min(1),created_at:c.string().min(1),repo_origin_path:c.string().min(1),path_glob:c.string().min(1),name:c.string().min(1),description:c.string().min(1)}),pve=c.array(sW),fve=c.object({type:c.literal("list"),list_type:c.literal("building_block"),has_more:c.boolean(),objects:c.array(sW)}),mve=c.object({repo_origin_path:c.string().min(1),before:c.string().min(1).optional(),after:c.string().min(1).optional()}),_ve=c.enum(["thread","building_block"]),hve=c.object({repo_origin_path:c.string().min(1),sources:c.array(_ve).nonempty()}),gve=c.object({type:c.literal("list"),list_type:c.literal("repository"),has_more:c.boolean(),objects:c.array(hve)}),qo=c.enum(["claudeCode","codex","amp","cursor","cowork","unspecified"]),Tve=c.object({uploads:c.array(c.string()),outputs:c.array(c.string())}),Eve=c.object({connected:c.boolean(),last_upload_at:c.string().nullable(),harnesses:c.array(qo)}),Sve=["transcript","plan"],Ave=c.enum(Sve),yve=c.object({md5:c.string().min(1),harness:qo,filename:c.string().min(1).optional(),repo_origin_path:c.string().min(1).optional(),harness_internal_id:c.string().min(1).optional(),file_type:Ave.optional(),remix_of_thread_id:c.string().min(1).optional(),artifact_metadata:Tve.optional()}).refine(t=>(t.filename?.trim().length??0)>0||(t.harness_internal_id?.trim().length??0)>0,{path:["harness_internal_id"],message:"filename or harness_internal_id is required"}),mx=c.object({id:c.string().min(1),display_name:c.string().min(1),avatar_url:c.string().nullable()}),bve=c.object({id:c.string().min(1),display_name:c.string().min(1)}),iW=c.object({id:c.string().min(1),author_id:c.string().min(1).nullable(),author:bve.nullable(),created_at:c.string().datetime(),deleted_at:c.string().datetime().nullable(),content:c.string().min(1)}),aW=c.object({id:c.string().min(1),thread_block_id:c.string().min(1),created_at:c.string().datetime(),resolved_at:c.string().datetime().nullable()}),Rve=aW.extend({comments:c.array(iW)}),tm=c.object({id:c.string().min(1),type:c.string().min(1),index_in_thread:c.number().int().nonnegative(),isCritiqued:c.boolean(),comment_threads:c.array(Rve).optional()}).passthrough(),uW=c.object({type:c.literal("list"),list_type:c.literal("thread_block"),has_more:c.boolean(),objects:c.array(tm)}),W7=tm.extend({type:c.literal("plan"),prosemirror_json:oW,thread_file_id:c.string().min(1)}),Ive=c.union([c.literal(-1),c.literal(1)]),cW=c.union([c.literal(-1),c.literal(0),c.literal(1)]),K7=c.object({score:c.number().int(),up_count:c.number().int().nonnegative(),down_count:c.number().int().nonnegative(),viewer_vote:cW}),Ove=c.object({value:Ive}),Cve=c.object({id:c.string().min(1),display_name:c.string().min(1),avatar_url:c.string().nullable()}),Eu=c.object({id:c.string().min(1),thread_id:c.string().min(1),author_id:c.string().min(1).nullable(),author:Cve.nullable(),parent_comment_id:c.string().min(1).nullable(),content:c.string(),created_at:c.string().datetime(),updated_at:c.string().datetime(),deleted_at:c.string().datetime().nullable()}),Nve=c.object({type:c.literal("list"),list_type:c.literal("thread_comment"),objects:c.array(Eu)}),xve=c.object({content:c.string().trim().min(1).max(4e3),parent_comment_id:c.string().min(1).optional()}),Pve=Eu,Mve=c.object({content:c.string().trim().min(1).max(4e3)}),vve=Eu,kve=Eu,Gst=c.discriminatedUnion("kind",[c.object({kind:c.literal("created"),thread_id:c.string().min(1),actor_user_id:c.string().min(1),version:c.number(),comment:Eu}),c.object({kind:c.literal("updated"),thread_id:c.string().min(1),actor_user_id:c.string().min(1),version:c.number(),comment:Eu}),c.object({kind:c.literal("deleted"),thread_id:c.string().min(1),actor_user_id:c.string().min(1),version:c.number(),comment:Eu})]),Lve=c.enum(["pending","generating","ready","failed"]),wve=c.enum(["pending","generating","ready","failed"]),Dve=c.enum(["pending","placeholder","ai","user"]),lW=c.enum(["pending","generating","ready","failed"]),_x=c.enum(["pending","generating","ready","failed","disabled"]),dW=c.enum(["pending","generating","ready","failed"]),Uve=c.object({title:c.string().min(1),body:c.string().min(1),files:c.array(c.string()).optional()}),Bve=c.object({status:_x,url:c.string().nullable(),url_expires_at:c.string().nullable(),generated_at:c.string().nullable(),model:c.string().nullable()}),Fve=c.object({status:dW,steps:c.array(Uve),generated_at:c.string().nullable()}),Gve=c.object({remix_of_thread_id:c.string().nullable(),remix_count:c.number().int().nonnegative()}),jve=c.object({cover:Bve,how_to:Fve,lineage:Gve}),Hve=c.object({id:c.string().min(1),title:c.string().min(1),author:c.object({id:c.string().min(1),display_name:c.string(),handle:c.string().nullable(),avatar_url:c.string().nullable()}),cover:c.object({url:c.string(),url_expires_at:c.string()}),remix_count:c.number().int().nonnegative(),started_at:c.string(),cover_generated_at:c.string()}),Vve=c.object({type:c.literal("list"),list_type:c.literal("card_feed_item"),has_more:c.boolean(),objects:c.array(Hve)}),pW=c.enum(["asked","requested","decided","corrected","shared"]),qve=c.object({id:c.string().min(1),kind:pW,summary:c.string().min(1),block_id:c.string().min(1)}),$ve=c.object({type:c.literal("list"),list_type:c.literal("thread_decision"),status:lW,generated_at:c.string().nullable(),objects:c.array(qve)}),zve=c.object({thread_id:c.string().min(1),source_url:c.string().min(1),title:c.string().min(1),summary:c.string().nullable(),harness:qo,visibility:c.enum(["private","workspace","public"]),started_at:c.string().min(1),author:c.object({display_name:c.string().min(1),handle:c.string().nullable()}),original_user_prompt:c.string().nullable(),last_assistant_message:c.string().nullable(),decisions:c.array(c.object({kind:pW,summary:c.string().min(1)})),files_touched:c.array(c.string()),truncated:c.boolean()}),rd=c.object({id:c.string().min(1),thread_file_id:c.string().min(1),organization_id:c.string().min(1),author:mx,repo:c.string().min(1),title:c.string().min(1),started_at:c.string().min(1),blocks:uW,user_message_count:c.number().int().nonnegative(),files_touched:c.array(c.string()),skills_invoked:c.array(c.string()),harness:qo,transcript_parsing_state:c.enum(["pending","parsed","too_large_to_parse"]),visibility:c.enum(["private","workspace","public"]),has_plan:c.boolean().optional(),summary:c.string().nullable(),summary_status:Lve,summary_generated_at:c.string().nullable(),title_status:wve,title_generated_at:c.string().nullable(),title_source:Dve,decisions_status:lW,decisions_generated_at:c.string().nullable(),score:c.number().int(),up_count:c.number().int().nonnegative(),down_count:c.number().int().nonnegative(),viewer_vote:cW,comment_count:c.number().int().nonnegative(),is_favorited:c.boolean(),card:jve}),Yve=c.object({storage_url:c.string().min(1)}),Wve=c.object({storage_url:c.string(),harness:qo,thread:rd.nullable()}),Kve=c.object({status:c.literal("complete"),thread_files:c.array(Wve)}),Qve=c.object({id:c.string(),presigned_url:c.string().nullable(),presigned_url_expires_at:c.string().nullable(),storage_url:c.string(),harness:qo,expected_md5:c.string(),error:c.string().nullable(),thread:rd.nullable(),remix_parent_dropped:c.boolean().optional()}),Jve=c.object({id:c.string(),substrate:c.enum(["s3","filesystem"]),status:c.enum(["incomplete","locked_for_parsing","complete","error"]),thread_files:c.array(Qve)}),Xve=c.object({visibility:c.enum(["private","workspace","public"]).optional(),title:c.string().trim().min(1).max(200).optional()}).refine(t=>t.visibility!==void 0||t.title!==void 0,{message:"At least one of visibility or title must be provided"}),Zve=c.discriminatedUnion("visibility",[c.object({visibility:c.literal("private")}),c.object({visibility:c.literal("workspace")}),c.object({visibility:c.literal("public"),title:c.string().min(1),author_display_name:c.string().min(1),author_avatar_url:c.string().nullable(),first_user_message:c.string().nullable(),summary:c.string().nullable(),started_at:c.string().min(1),harness:qo,cover_url:c.string().nullable()})]),eke=rd,Q7=c.object({type:c.literal("list"),list_type:c.literal("thread"),has_more:c.boolean(),objects:c.array(eke)}),tke=c.enum(["recent","popular"]),nke=c.enum(["everyone","following"]),rke=rd,oke=c.object({type:c.literal("list"),list_type:c.literal("discover_thread"),has_more:c.boolean(),objects:c.array(rke)}),ske=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional(),sort:tke.optional(),scope:nke.optional(),harness:qo.optional(),search:c.string().max(200).optional()}),ike=c.object({thread_count:c.number().int().nonnegative(),author_count:c.number().int().nonnegative(),organization_count:c.number().int().nonnegative(),harness_breakdown:c.record(qo,c.number().int().nonnegative())}),ake=c.object({id:c.string(),status:c.enum(["incomplete","locked_for_parsing","complete","error"]),created_at:c.string(),thread_count:c.number().int().nonnegative()}),uke=c.object({type:c.literal("list"),list_type:c.literal("upload_session"),objects:c.array(ake)}),cke=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional()}),lke=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional(),author_ids:c.string().min(1).optional(),created_at:c.string().min(1).optional(),filepath_prefixes:c.string().min(1).optional()}),dke=c.object({path:c.string().min(1),start_offset:c.number().int().nonnegative(),end_offset:c.number().int().positive()}),hx=c.enum(["captured","published"]),pke=c.enum(["workspace","link"]),fW=c.object({id:c.string(),display_name:c.string(),avatar_url:c.string().nullable()}),fke=c.object({name:c.string(),usage_count:c.number().int().nonnegative(),author_count:c.number().int().nonnegative(),first_used_at:c.string().nullable(),last_used_at:c.string().nullable(),usage_count_last_24h:c.number().int().nonnegative(),usage_count_last_7d:c.number().int().nonnegative(),id:c.string().nullable(),description:c.string().nullable(),source:hx.nullable(),has_content:c.boolean()}),mke=c.object({type:c.literal("list"),list_type:c.literal("skill"),objects:c.array(fke)}),_ke=c.object({id:c.string(),title:c.string(),visibility:c.enum(["private","workspace","public"]),started_at:c.string(),author:mx,skills_invoked:c.array(c.string())}),hke=c.object({id:c.string().nullable(),name:c.string(),description:c.string().nullable(),body_md:c.string().nullable(),source:hx.nullable(),visibility:pke.nullable(),share_url:c.string().nullable(),latest_version:c.number().int().nonnegative().nullable(),author:fW.nullable(),usage_count:c.number().int().nonnegative(),author_count:c.number().int().nonnegative(),first_used_at:c.string().nullable(),last_used_at:c.string().nullable(),threads:c.array(_ke)}),gke=c.object({description:c.string().nullable().optional(),body_md:c.string().min(1),display_name:c.string().nullable().optional(),published:c.boolean().optional()}),Tke=c.object({id:c.string(),name:c.string(),latest_version:c.number().int().positive(),source:hx,content_hash:c.string()}),Eke=c.object({share_url:c.string(),share_token:c.string()}),Ske=c.object({id:c.string(),name:c.string(),description:c.string().nullable(),body_md:c.string(),latest_version:c.number().int().positive(),author:fW.nullable(),shared_at:c.string()}),Ake=c.object({path:c.string().min(1),text:c.string().max(64e3)}),yke=c.enum(["text_edit","redact","delete_block"]),bke=c.object({id:c.string(),thread_block_id:c.string(),editor:c.object({id:c.string(),display_name:c.string()}),kind:yke,path:c.string().nullable(),previous_text:c.string().nullable(),new_text:c.string().nullable(),created_at:c.string()}),Rke=c.object({type:c.literal("list"),list_type:c.literal("thread_block_edit"),objects:c.array(bke)}),Ike=c.object({organization_count:c.number().int().nonnegative(),user_count:c.number().int().nonnegative(),thread_count:c.number().int().nonnegative(),thread_count_last_24h:c.number().int().nonnegative(),user_count_last_24h:c.number().int().nonnegative()}),Oke=c.object({id:c.string(),name:c.string(),email_domains:c.array(c.string()),stytch_org_id:c.string(),member_count:c.number().int().nonnegative(),thread_count:c.number().int().nonnegative(),default_thread_visibility:c.enum(["private","workspace","public"]),created_at:c.string()}),Cke=c.object({type:c.literal("list"),list_type:c.literal("admin_organization"),objects:c.array(Oke)}),mW=c.object({id:c.string(),name:c.string()}),Nke=c.object({id:c.string(),display_name:c.string(),stytch_id:c.string().nullable(),thread_count:c.number().int().nonnegative(),onboarded_at:c.string().nullable(),created_at:c.string(),organizations:c.array(mW)}),xke=c.object({q:c.string().trim().min(1).max(120).optional()}),Pke=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1)}),Mke=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1),is_following:c.literal(!0)}),vke=c.object({type:c.literal("list"),list_type:c.literal("admin_user"),objects:c.array(Nke)}),kke=c.object({id:c.string(),title:c.string(),started_at:c.string(),created_at:c.string(),deleted_at:c.string().nullable(),visibility:c.enum(["private","workspace","public"]),harness:qo,author:mx,organization:mW}),Lke=c.object({type:c.literal("list"),list_type:c.literal("admin_thread"),has_more:c.boolean(),objects:c.array(kke)}),wke=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional()}),J7=c.object({token:c.string().min(1),thread_id:c.string().min(1)}),Dke=c.object({visitor:c.string().min(1).max(64).optional()}),Uke=c.object({user_id:c.string(),display_name:c.string(),shares_sent:c.number().int().nonnegative(),unique_viewers:c.number().int().nonnegative(),attributed_signups:c.number().int().nonnegative()}),Bke=c.object({window_days:c.number().int().positive(),shares_sent:c.number().int().nonnegative(),unique_viewers:c.number().int().nonnegative(),attributed_signups:c.number().int().nonnegative(),active_sharers:c.number().int().nonnegative(),k_factor:c.number().nullable(),shares_sent_sparkline:c.array(c.number().int().nonnegative()),top_sharers:c.array(Uke)}),Fke=c.object({windows:c.array(Bke)}),Gke=c.object({quoted_text:c.string().min(1),comment:c.string().nullable(),type:c.enum(["comment","highlight:trapdoor"])}),jke=aW,Hke=iW.extend({comment_thread_id:c.string().min(1)}),Vke=c.object({markdown:c.string().min(1)}),qke=c.object({storage_url:c.string().min(1),thread_file_id:c.string().min(1),parsed_plan_block:W7,critiqued_plan_block:W7,annotations:c.array(Gke),comment_threads:c.array(jke),comments:c.array(Hke)}),od=c.enum(ax),_W=c.object({skills:c.boolean(),workspace_scope:c.boolean(),review:c.boolean(),shared_thread_ttl_days:c.number().int().positive().nullable()}),fx=c.object({subject_type:c.enum(["user","organization"]),subject_id:c.string().min(1),effective_plan:od,admin_override:od.nullable(),stripe_subscription_status:c.string().nullable(),cancel_at_period_end:c.boolean(),current_period_end:c.string().nullable(),seat_quantity:c.number().int().positive(),member_count:c.number().int().nonnegative().nullable(),features:_W}),$ke=c.object({effective_plan:od,features:_W,user:fx,organization:fx.nullable()}),zke=c.object({plan:c.enum(["creator","team"]),seat_quantity:c.number().int().positive().optional()}),Yke=c.object({checkout_url:c.string().min(1)}),Wke=c.object({portal_url:c.string().min(1)}),Kke=c.object({seat_quantity:c.number().int().positive()}),X7=c.object({plan:od.nullable()}),d0=c.object({subject_type:c.enum(["user","organization"]),subject_id:c.string().min(1),label:c.string().min(1),effective_plan:od,admin_override:od.nullable(),stripe_subscription_status:c.string().nullable(),seat_quantity:c.number().int().positive()}),Qke=c.object({users:c.array(d0),organizations:c.array(d0)}),Jke=c.object({id:c.string().min(1),display_name:c.string().min(1),handle:c.string().nullable(),avatar_url:c.string().nullable()}),Xke=c.object({thread_id:c.string().min(1),title:c.string().min(1),author:Jke,last_active_at:c.string().datetime(),last_block_excerpt:c.string().nullable(),last_block_kind:c.string().min(1).nullable(),is_streaming:c.boolean()}),Zke=c.object({type:c.literal("list"),list_type:c.literal("live_thread"),objects:c.array(Xke)}),eLe=c.object({thread_id:c.string().min(1)}),tLe=c.object({thread_id:c.string().min(1),last_seen_at:c.string().datetime(),started_at:c.string().datetime()}),nLe=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1),is_following:c.literal(!0),follower_count:c.number().int().nonnegative()}),rLe=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1),is_following:c.literal(!1),follower_count:c.number().int().nonnegative()}),hW=c.object({id:c.string().min(1),display_name:c.string().min(1),handle:c.string().nullable(),avatar_url:c.string().nullable(),bio:c.string().max(280).nullable(),is_following:c.boolean(),is_self:c.boolean()}),Z7=c.object({type:c.literal("list"),list_type:c.literal("user_follow"),objects:c.array(hW)}),oLe=c.object({date:c.string().regex(/^\d{4}-\d{2}-\d{2}$/),count:c.number().int().nonnegative()}),sLe=c.object({window_start:c.string().datetime(),window_end:c.string().datetime(),total_contributions:c.number().int().nonnegative(),days_active:c.number().int().nonnegative(),daily_average:c.number().nonnegative(),current_streak_days:c.number().int().nonnegative(),days:c.array(oLe)}),iLe=c.object({type:c.literal("thread_created"),occurred_at:c.string().datetime(),id:c.string().min(1),thread:c.object({id:c.string().min(1),title:c.string(),visibility:c.enum(["private","workspace","public"])})}),aLe=c.object({type:c.literal("comment_posted"),occurred_at:c.string().datetime(),id:c.string().min(1),comment_excerpt:c.string(),thread:c.object({id:c.string().min(1),title:c.string(),visibility:c.enum(["private","workspace","public"])})}),uLe=c.object({type:c.literal("project_published"),occurred_at:c.string().datetime(),id:c.string().min(1),project:c.object({id:c.string().min(1),name:c.string().min(1)})}),cLe=c.object({type:c.literal("user_followed"),occurred_at:c.string().datetime(),id:c.string().min(1),followee:hW}),lLe=c.discriminatedUnion("type",[iLe,aLe,uLe,cLe]),dLe=c.object({type:c.literal("list"),list_type:c.literal("user_activity"),objects:c.array(lLe)}),pLe=c.object({id:c.string().min(1),name:c.string().min(1),excerpt:c.string(),published_at:c.string().datetime(),updated_at:c.string().datetime()}),fLe=c.object({type:c.literal("list"),list_type:c.literal("profile_published_project"),objects:c.array(pLe)}),eW=c.object({id:c.string().min(1),published_at:c.string().datetime().nullable()}),mLe=c.enum(["avatar","banner"]),gW=c.enum(["image/png","image/jpeg","image/webp","image/gif"]),_Le=c.object({kind:mLe,content_type:gW,base64_data:c.string().min(1)}),hLe=c.object({substrate:c.enum(["s3","filesystem"]),storage_url:c.string().min(1)}),gLe=c.object({content_type:gW,base64_data:c.string().min(1)}),TLe=c.object({cover_status:_x,cover_url:c.string().min(1),cover_url_expires_at:c.string().min(1),cover_generated_at:c.string().min(1)}),ELe=nW,TW=OMe.router({health:{method:"GET",path:"/health",responses:{200:c.object({status:c.literal("ok")})},summary:"Health check"},whoAmI:{method:"GET",path:"/whoami",headers:c.object({authorization:c.string().min(1).optional(),"x-lore-referral-token":c.string().min(1).max(16).optional()}),responses:{200:MMe,401:A},summary:"Validate a WorkOS Bearer token and return member plus user fields"},getCliAuthConfig:{method:"GET",path:"/cli-auth/config",responses:{200:vMe,503:A},summary:"Return public WorkOS CLI Auth configuration for the Lore CLI"},getCliStatus:{method:"GET",path:"/users/me/cli-status",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Eve,401:A},summary:"Return whether the viewer has connected the Lore CLI (i.e., uploaded any thread under a non-unspecified harness), plus the latest upload timestamp."},recordHeartbeat:{method:"POST",path:"/heartbeat",headers:c.object({authorization:c.string().min(1).optional()}),body:eLe,responses:{200:tLe,401:A,403:A,404:A,422:A},summary:"Record (or refresh) a presence heartbeat for the authenticated user against one of their own threads. Idempotent; the daemon should call this every ~30s while a session is open."},listLiveThreads:{method:"GET",path:"/threads/live",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Zke,401:A,403:A},summary:"List members with user-block activity in the last 10 minutes. Org-scoped, deduped per author, max 10."},listThreads:{method:"GET",path:"/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:lke,responses:{200:Q7,401:A},summary:"List threads visible to the authenticated user"},getThread:{method:"GET",path:"/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:rd,404:A},summary:"Load a visible thread by id"},getSimilarThreads:{method:"GET",path:"/threads/:id/similar",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Q7,404:A,409:A},summary:"List the top 20 visible threads with the closest summary embedding"},getThreadRemixBrief:{method:"GET",path:"/threads/:id/remix",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:zve,401:A,403:A,404:A},summary:"Fetch a portable handoff brief that lets another agent continue this thread"},listThreadBlocks:{method:"GET",path:"/threads/:id/blocks",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),query:cke,responses:{200:uW,401:A},summary:"List blocks for a visible thread"},createThreadBlockCommentThread:{method:"POST",path:"/threads/:threadId/blocks/:blockId/comment-threads",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:XMe,responses:{201:ZMe,401:A,404:A},summary:"Create a new block-level comment thread on a visible thread block"},createThreadBlockComment:{method:"POST",path:"/threads/:threadId/blocks/:blockId/comment-threads/:commentThreadId/comments",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1),commentThreadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:nve,responses:{201:rve,401:A,404:A,409:A},summary:"Reply to a block-level comment thread on a visible thread block"},updateThreadBlockCommentThread:{method:"PATCH",path:"/threads/:threadId/blocks/:blockId/comment-threads/:commentThreadId",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1),commentThreadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:ive,responses:{200:ave,401:A,404:A},summary:"Resolve or reopen a block-level comment thread on a visible thread block"},listSkills:{method:"GET",path:"/skills",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:mke,401:A},summary:"Aggregate skill usage across threads the viewer can see"},getSkillDetail:{method:"GET",path:"/skills/:name",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:hke,401:A,404:A},summary:"Per-skill detail: usage stats + visible threads that invoked it"},getSkillRaw:{method:"GET",path:"/skills/:name/raw",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:c.string(),401:A,403:A,404:A},summary:"Raw SKILL.md body for a skill (download / install path)"},publishSkill:{method:"PUT",path:"/skills/:name",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:gke,responses:{200:Tke,401:A,403:A,422:A},summary:"Publish or capture a skill body for the caller\u2019s workspace"},mintSkillShare:{method:"POST",path:"/skills/:name/share",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:Eke,401:A,403:A,404:A},summary:"Mint (or rotate) a public share token for a skill"},revokeSkillShare:{method:"DELETE",path:"/skills/:name/share",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{204:c.null(),401:A,403:A,404:A},summary:"Revoke an active share token for a skill"},getSharedSkill:{method:"GET",path:"/shared-skills/:token",pathParams:c.object({token:c.string().min(1)}),responses:{200:Ske,404:A},summary:"Read a shared skill by its public share token (no auth)"},redactThreadBlock:{method:"POST",path:"/threads/:threadId/blocks/:blockId/redactions",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:dke,responses:{200:tm,401:A,403:A,404:A,422:A},summary:"Permanently redact a character range within a text field of a thread block (author only)"},updateThreadBlockText:{method:"PATCH",path:"/threads/:threadId/blocks/:blockId/text",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Ake,responses:{200:tm,401:A,403:A,404:A,422:A},summary:"Replace a single text leaf in a thread block with new content (author only)"},critiqueThreadBlock:{method:"POST",path:"/threads/:threadId/blocks/:blockId/critique",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:tm,401:A,403:A,404:A,409:A,422:A},summary:"Critique a plan block once and persist its annotations as nested comment threads (author only)"},deleteThreadBlock:{method:"DELETE",path:"/threads/:threadId/blocks/:blockId",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.null(),401:A,403:A,404:A},summary:"Soft-delete a thread block (author only)"},listThreadBlockEdits:{method:"GET",path:"/threads/:threadId/blocks/:blockId/edits",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Rke,401:A,404:A},summary:"List edits made to a thread block (visible to anyone who can see the thread)"},listThreadDecisions:{method:"GET",path:"/threads/:id/decisions",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:$ve,401:A,404:A},summary:"List AI-extracted user decisions for a thread, in chronological order"},updateThread:{method:"PATCH",path:"/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Xve,responses:{200:rd,401:A,403:A,404:A},summary:"Update thread visibility (author only)"},deleteThread:{method:"DELETE",path:"/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.null(),401:A,403:A,404:A},summary:"Soft-delete a thread (author only)"},generateThreadCard:{method:"POST",path:"/threads/:id/card/generate",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:c.object({cover_status:_x,how_to_status:dW}),401:A,403:A,404:A,429:A.extend({retry_after_seconds:c.number().int().nonnegative()})},summary:"Enqueue cover image + how-to recipe generation for the thread. Author-only. Idempotent \u2014 recently-fired statuses are not double-enqueued. Rate-limited: at most one cover generation per minute per thread (cooldown begins when the previous cover finishes). Used to populate cards on legacy threads (created before Lore Cards) and to retry after a 'failed' status or opt back in from 'disabled'."},uploadThreadCover:{method:"POST",path:"/threads/:id/card/cover/upload",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:gLe,responses:{200:TLe,401:A,403:A,404:A,413:A,422:A},summary:"Upload a custom cover image for a thread. Author or Tanagram admin only. Bytes go to the same storage substrate the AI cover uses (S3 in prod, filesystem in dev), and the threads row is updated atomically with the new cover_storage_url, cover_status='ready', cover_generated_at=now, cover_model='user-uploaded' so subsequent re-rolls / how-to fan-outs treat the upload like any other ready cover."},castThreadVote:{method:"PUT",path:"/threads/:id/vote",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Ove,responses:{200:K7,401:A,403:A,404:A,422:A},summary:"Cast or change the caller's up/down vote on a public thread. Idempotent \u2014 re-casting the same value is a no-op."},clearThreadVote:{method:"DELETE",path:"/threads/:id/vote",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:K7,401:A,404:A},summary:"Clear the caller's vote on a thread. No-op when the caller hasn't voted."},listThreadComments:{method:"GET",path:"/threads/:threadId/comments",pathParams:c.object({threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Nve,403:A,404:A},summary:"List all (live + soft-deleted as tombstones) comments on a public thread, flat with parent_comment_id pointers."},createThreadComment:{method:"POST",path:"/threads/:threadId/comments",pathParams:c.object({threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:xve,responses:{201:Pve,401:A,403:A,404:A,422:A},summary:"Post a top-level or reply comment on a public thread."},updateThreadComment:{method:"PATCH",path:"/threads/:threadId/comments/:commentId",pathParams:c.object({threadId:c.string().min(1),commentId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Mve,responses:{200:vve,401:A,403:A,404:A,422:A},summary:"Edit your own thread comment (author only; rejects edits to soft-deleted rows)."},deleteThreadComment:{method:"DELETE",path:"/threads/:threadId/comments/:commentId",pathParams:c.object({threadId:c.string().min(1),commentId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:kve,401:A,403:A,404:A},summary:"Soft-delete your own thread comment (author only). Idempotent."},getThreadPreview:{method:"GET",path:"/threads/:id/preview",pathParams:c.object({id:c.string().min(1)}),responses:{200:Zve,404:A},summary:"Unauthenticated, visibility-redacted metadata for OG / social preview consumers"},createUser:{method:"POST",path:"/users",headers:c.object({authorization:c.string().min(1).optional()}),body:VMe,responses:{201:px,401:A},summary:"Create a user record with ApiKey authentication"},getUser:{method:"GET",path:"/users/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:nW,404:A},summary:"Public profile for a user. Optional auth \u2014 unauthenticated viewers see only public thread metadata; signed-in viewers see counts scoped to the threads they'd normally be able to access."},updateCurrentUser:{method:"PATCH",path:"/users/me",headers:c.object({authorization:c.string().min(1).optional()}),body:kMe,responses:{200:px,401:A,409:A,422:A},summary:"Update the authenticated user profile"},getUserByHandle:{method:"GET",path:"/users/by-handle/:handle",pathParams:c.object({handle:tW}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:ELe,404:A},summary:"Resolve a public profile by handle \u2014 same shape as GET /users/:id but keyed on the user's chosen handle."},listUserActivity:{method:"GET",path:"/users/:id/activity",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),query:c.object({limit:c.coerce.number().int().positive().max(100).optional()}),responses:{200:dLe,404:A},summary:"Reverse-chronological activity feed for a user, scoped to what the viewer can see (same visibility rules as listThreads)."},getUserContributions:{method:"GET",path:"/users/:id/contributions",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:sLe,404:A},summary:"Daily contribution counts for the trailing 365 days \u2014 counts thread blocks the user authored on threads visible to the viewer."},listUserFollowers:{method:"GET",path:"/users/:id/followers",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Z7,404:A},summary:"List the users following a given user."},listUserFollowing:{method:"GET",path:"/users/:id/following",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Z7,404:A},summary:"List the users a given user is following."},followUser:{method:"POST",path:"/users/:id/follow",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:nLe,401:A,404:A,409:A,422:A},summary:"Follow another user. Idempotent \u2014 repeating the call is a no-op."},unfollowUser:{method:"DELETE",path:"/users/:id/follow",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:rLe,401:A,404:A},summary:"Unfollow a user. Idempotent \u2014 repeating the call is a no-op."},listProfilePublishedProjects:{method:"GET",path:"/users/:id/projects",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:fLe,404:A},summary:"Projects the user has published to their public profile."},publishProject:{method:"POST",path:"/projects/:id/publish",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:eW,401:A,403:A,404:A},summary:"Publish a project to the author's public profile. Stamps published_at with `now()`. Author-only."},unpublishProject:{method:"DELETE",path:"/projects/:id/publish",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:eW,401:A,403:A,404:A},summary:"Remove a project from the author's public profile."},uploadProfileImage:{method:"POST",path:"/users/me/profile-image",headers:c.object({authorization:c.string().min(1).optional()}),body:_Le,responses:{200:hLe,401:A,413:A,422:A},summary:"Upload an avatar or banner image (base64-encoded JSON body). The API streams the bytes to its configured storage substrate using its own credentials and returns the canonical storage URL the client passes to PATCH /users/me."},listOrganizationMembers:{method:"GET",path:"/organization/members",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:wMe,401:A},summary:"List members of the authenticated user\u2019s organization"},createOrganizationInvite:{method:"POST",path:"/organization/invites",headers:c.object({authorization:c.string().min(1).optional()}),body:DMe,responses:{201:UMe,401:A,403:A,409:A,422:A},summary:"Invite a teammate to the authenticated user\u2019s workspace via WorkOS AuthKit"},ensureWorkOSOrganization:{method:"POST",path:"/organization/workos/ensure",headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:BMe,401:A,422:A,503:A},summary:"Create or reuse a WorkOS organization for the authenticated user\u2019s non-public email domain and add the user as a member."},listRepositories:{method:"GET",path:"/repositories",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:gve,401:A,403:A},summary:"List repositories known to the authenticated user\u2019s organization across threads and building blocks"},createBuildingBlockSnapshots:{method:"POST",path:"/building_blocks",headers:c.object({authorization:c.string().min(1).optional()}),body:$Me,responses:{201:pve,401:A,403:A},summary:"Create building block snapshots for the authenticated user\u2019s organization"},getPlan:{method:"GET",path:"/plans/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:cve,401:A,403:A,404:A},summary:"Load a thread-backed plan container visible to the authenticated user, including all visible plan revisions in that thread"},createPlanCommentThread:{method:"POST",path:"/plans/:id/comment-threads",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:QMe,responses:{201:JMe,401:A,403:A,404:A,422:A},summary:"Create a new inline comment thread on a specific revision inside a thread-backed plan container"},createPlanComment:{method:"POST",path:"/plans/:id/comment-threads/:threadId/comments",pathParams:c.object({id:c.string().min(1),threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:eve,responses:{201:tve,401:A,403:A,404:A,409:A},summary:"Reply to an inline comment thread on a thread-backed plan container"},updatePlanCommentThread:{method:"PATCH",path:"/plans/:id/comment-threads/:threadId",pathParams:c.object({id:c.string().min(1),threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:ove,responses:{200:sve,401:A,403:A,404:A},summary:"Resolve or reopen an inline comment thread on a thread-backed plan container"},listPlans:{method:"GET",path:"/plans",headers:c.object({authorization:c.string().min(1).optional()}),query:dve,responses:{200:lve,401:A,403:A},summary:"List thread-backed plan containers visible to the authenticated user in their organization, ordered by latest visible revision and optionally filtered by author or repository"},listBuildingBlockSnapshots:{method:"GET",path:"/building_blocks",headers:c.object({authorization:c.string().min(1).optional()}),query:mve,responses:{200:fve,401:A,403:A},summary:"List building block snapshots for the authenticated user\u2019s organization and repo origin path"},listUploadSessions:{method:"GET",path:"/upload_sessions",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:uke,401:A},summary:"List recent upload sessions for the authenticated user"},createUploadSession:{method:"POST",path:"/upload_sessions",headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({thread_files:c.array(yve).nonempty()}),responses:{201:Jve,400:A,401:A},summary:"Create an upload session with presigned URLs for file uploads"},completeUploadSession:{method:"POST",path:"/upload_sessions/:id/complete",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({thread_files:c.array(Yve).nonempty()}),responses:{200:Kve,400:A,401:A,404:A,409:A,422:A},summary:"Complete an upload session after files have been uploaded to storage"},adminStats:{method:"GET",path:"/admin/stats",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Ike,401:A,403:A},summary:"Cross-org operational counts. Tanagram admins only."},adminListOrganizations:{method:"GET",path:"/admin/organizations",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Cke,401:A,403:A},summary:"List every organization with member and thread counts. Tanagram admins only."},adminListUsers:{method:"GET",path:"/admin/users",query:xke,headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:vke,401:A,403:A},summary:"List every user with their org memberships and thread count. Tanagram admins only."},adminListThreads:{method:"GET",path:"/admin/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:wke,responses:{200:Lke,401:A,403:A},summary:"List live threads across every organization. Tanagram admins only."},adminForceFollow:{method:"POST",path:"/admin/connections/follow",headers:c.object({authorization:c.string().min(1).optional()}),body:Pke,responses:{200:Mke,401:A,403:A,404:A,422:A},summary:"Force follower->followee edge. Admin-only and non-destructive."},adminHardDeleteThread:{method:"DELETE",path:"/admin/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.null(),401:A,403:A,404:A},summary:"Permanently remove a thread. Tanagram admins only."},listCardFeed:{method:"GET",path:"/cards/feed",query:c.object({limit:c.coerce.number().int().min(1).max(48).optional()}),responses:{200:Vve},summary:"Slim feed of public threads with a ready cover image, ordered by cover_generated_at descending. Powers the landing-page UGC card scroll. Returns presigned cover URLs inline so the grid renders without a follow-up round trip per card."},listDiscoverThreads:{method:"GET",path:"/discover/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:ske,responses:{200:oke},summary:"Feed of public threads with sort, harness filter, search, and cursor pagination. Auth is optional and populates viewer_vote."},discoverStats:{method:"GET",path:"/discover/stats",responses:{200:ike},summary:"Unauthenticated rollup of public-thread counts for the Discover header."},createWaitlistEntry:{method:"POST",path:"/waitlist_entries",body:FMe,responses:{201:GMe,409:A},summary:"Create an unauthenticated waitlist entry keyed by (location, contact)."},createShareToken:{method:"POST",path:"/threads/:id/share-token",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{201:J7,401:A,403:A,404:A,409:A},summary:"Mint a short share-link token for a public thread. Author only. The token powers `/s/:token` short URLs and enables k-factor attribution."},resolveShareToken:{method:"GET",path:"/referrals/resolve/:token",pathParams:c.object({token:c.string().min(1).max(16)}),query:Dke,responses:{200:J7,404:A},summary:"Resolve a share-link token to its thread and record the view. Unauthenticated by design."},adminGrowth:{method:"GET",path:"/admin/growth",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Fke,401:A,403:A},summary:"Share-link k-factor, funnel, sparkline, and top sharers by window. Tanagram admins only."},adminRunCritiquePlayground:{method:"POST",path:"/admin/critique-playground/run",headers:c.object({authorization:c.string().min(1).optional()}),body:Vke,responses:{200:qke,401:A,403:A,409:A},summary:"Admin-only critique playground that saves markdown to a file:// plan artifact and returns parsed + critiqued plan blocks."},getBillingState:{method:"GET",path:"/billing/state",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:$ke,401:A},summary:"Resolve the caller's plan, features, seat count, and any admin override."},createBillingCheckout:{method:"POST",path:"/billing/checkout",headers:c.object({authorization:c.string().min(1).optional()}),body:zke,responses:{200:Yke,400:A,401:A,403:A,503:A},summary:"Start a Stripe Checkout session for Creator ($29/mo) or Team ($19/seat/mo, min 2)."},createBillingPortal:{method:"POST",path:"/billing/portal",headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({subject_type:c.enum(["user","organization"]).default("user")}).optional(),responses:{200:Wke,401:A,404:A,503:A},summary:"Open the Stripe customer portal so the subject can manage their subscription."},updateTeamSeats:{method:"PATCH",path:"/billing/team-seats",headers:c.object({authorization:c.string().min(1).optional()}),body:Kke,responses:{200:fx,400:A,401:A,403:A,404:A,503:A},summary:"Adjust the caller-organization's Team seat quantity (admin of that org only)."},adminListBilling:{method:"GET",path:"/admin/billing",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Qke,401:A,403:A},summary:"List every user and org with current plan + override for the admin panel."},adminSetUserPlanOverride:{method:"PUT",path:"/admin/billing/users/:id/override",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:X7,responses:{200:d0,401:A,403:A,404:A},summary:"Admin override for a user's plan tier. Null clears the override."},adminSetOrganizationPlanOverride:{method:"PUT",path:"/admin/billing/organizations/:id/override",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:X7,responses:{200:d0,401:A,403:A,404:A},summary:"Admin override for an organization's plan tier. Null clears the override."},projects:j7,docs:F7,mentions:H7,favorites:$7,search:Y7},{pathPrefix:"/api"});import om from"node:fs";import AW from"node:path";import EW from"node:os";import Ps from"node:path";function oo(){let t=Ve()==="dev"?".lore-dev":".lore";return Ps.join(EW.homedir(),t)}function nm(){return Ps.join(oo(),"log.txt")}function gx(){return Ps.join(oo(),"sync_state.json")}function SW(){return Ps.join(oo(),"upload_filters.json")}function f0(){return Ps.join(oo(),"status.json")}function Su(){return Ps.join(oo(),"install_source.json")}function m0(){return Ps.join(oo(),"skill_sync_state.json")}function Au(){return Ps.join(oo(),"bin","lore")}function rm(){let t=Ve();return t==="prod"?"ai.tanagram.lore":`ai.tanagram.lore.${t}`}function sd(){return Ps.join(EW.homedir(),"Library","LaunchAgents",`${rm()}.plist`)}function _0(){return AW.join(oo(),"token")}function sm(){let t;try{t=om.readFileSync(_0(),"utf8")}catch(n){if(n&&typeof n=="object"&&"code"in n&&n.code==="ENOENT")return{token:"",source:"none"};throw n}let e=t.trim();return!e||SLe(e,new Date)?{token:"",source:"none"}:{token:e,source:"file"}}function fn(){return sm().token}function yW(){return om.existsSync(_0())}function bW(t){let e=_0();om.mkdirSync(AW.dirname(e),{recursive:!0,mode:448}),om.writeFileSync(e,t,{mode:384})}function RW(){try{om.rmSync(_0())}catch(t){if(t&&typeof t=="object"&&"code"in t&&t.code==="ENOENT")return;throw t}}function Tx(t){let e=t.split(".");if(e.length<2)throw new Error("invalid JWT format");return JSON.parse(Buffer.from(e[1],"base64url").toString("utf8"))}function SLe(t,e){let n;try{n=Tx(t)}catch{return!1}return typeof n.exp!="number"?!1:e.getTime()>=n.exp*1e3}var ALe={dev:"http://localhost:4000",prod:"https://lore-api.tanagram.ai"};function yLe(t=Ve(),e=process.env.LORE_API_ORIGIN){let n=e?.trim();return n?n.replace(/\/$/,""):ALe[t]}function Xe(t={}){let e=t.token??fn();return ix(TW,{baseUrl:yLe(),baseHeaders:{"User-Agent":_7(),...e?{authorization:`Bearer ${e}`}:{}}})}import OW from"node:fs";var IW=null;function bLe(){let t=oo();IW!==t&&(OW.mkdirSync(t,{recursive:!0}),IW=t)}function RLe(t){let e=typeof t=="string"?t:JSON.stringify(t);return/[\s"=]/.test(e)?JSON.stringify(e):e}function ILe(t,e,n){let r=`${new Date().toISOString()} ${t} ${e}`;if(!n)return`${r}
|
|
40
|
+
`)}function XN(t){let e=t.valueHint?`=<${t.valueHint}>`:"",n=e||`=<${g7(t.name)}>`;return!t.type||t.type==="positional"||t.type==="boolean"?e:t.type==="enum"&&t.options?.length?`=<${t.options.join("|")}>`:n}function E7(t,e){let n=e?QS("(Required)"):"",r=t.default===void 0?"":QS(`(Default: ${t.default})`);return[t.description,n,r].filter(Boolean).join(" ")}import{spawn as nUe}from"node:child_process";var c={};ea(c,{BRAND:()=>LPe,DIRTY:()=>nu,EMPTY_PATH:()=>pPe,INVALID:()=>J,NEVER:()=>T1e,OK:()=>dn,ParseStatus:()=>Jt,Schema:()=>ce,ZodAny:()=>Yi,ZodArray:()=>xs,ZodBigInt:()=>ou,ZodBoolean:()=>su,ZodBranded:()=>Zf,ZodCatch:()=>hu,ZodDate:()=>iu,ZodDefault:()=>_u,ZodDiscriminatedUnion:()=>r0,ZodEffects:()=>wr,ZodEnum:()=>fu,ZodError:()=>Hn,ZodFirstPartyTypeKind:()=>ee,ZodFunction:()=>s0,ZodIntersection:()=>lu,ZodIssueCode:()=>x,ZodLazy:()=>du,ZodLiteral:()=>pu,ZodMap:()=>ed,ZodNaN:()=>nd,ZodNativeEnum:()=>mu,ZodNever:()=>ro,ZodNull:()=>uu,ZodNullable:()=>Ho,ZodNumber:()=>ru,ZodObject:()=>Vn,ZodOptional:()=>kr,ZodParsedType:()=>D,ZodPipeline:()=>em,ZodPromise:()=>Wi,ZodReadonly:()=>gu,ZodRecord:()=>o0,ZodSchema:()=>ce,ZodSet:()=>td,ZodString:()=>zi,ZodSymbol:()=>Xl,ZodTransformer:()=>wr,ZodTuple:()=>jo,ZodType:()=>ce,ZodUndefined:()=>au,ZodUnion:()=>cu,ZodUnknown:()=>Ns,ZodVoid:()=>Zl,addIssueToContext:()=>k,any:()=>VPe,array:()=>YPe,bigint:()=>BPe,boolean:()=>M7,coerce:()=>g1e,custom:()=>N7,date:()=>FPe,datetimeRegex:()=>O7,defaultErrorMap:()=>Os,discriminatedUnion:()=>JPe,effect:()=>c1e,enum:()=>i1e,function:()=>r1e,getErrorMap:()=>Kl,getParsedType:()=>Go,instanceof:()=>DPe,intersection:()=>XPe,isAborted:()=>t0,isAsync:()=>Ql,isDirty:()=>n0,isValid:()=>$i,late:()=>wPe,lazy:()=>o1e,literal:()=>s1e,makeIssue:()=>Xf,map:()=>t1e,nan:()=>UPe,nativeEnum:()=>a1e,never:()=>$Pe,null:()=>HPe,nullable:()=>d1e,number:()=>P7,object:()=>WPe,objectUtil:()=>ZN,oboolean:()=>h1e,onumber:()=>_1e,optional:()=>l1e,ostring:()=>m1e,pipeline:()=>f1e,preprocess:()=>p1e,promise:()=>u1e,quotelessJson:()=>cPe,record:()=>e1e,set:()=>n1e,setErrorMap:()=>dPe,strictObject:()=>KPe,string:()=>x7,symbol:()=>GPe,transformer:()=>c1e,tuple:()=>ZPe,undefined:()=>jPe,union:()=>QPe,unknown:()=>qPe,util:()=>fe,void:()=>zPe});var fe;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{let s={};for(let i of o)s[i]=i;return s},t.getValidEnumValues=o=>{let s=t.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(let a of s)i[a]=o[a];return t.objectValues(i)},t.objectValues=o=>t.objectKeys(o).map(function(s){return o[s]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let s=[];for(let i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},t.find=(o,s)=>{for(let i of o)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(fe||(fe={}));var ZN;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(ZN||(ZN={}));var D=fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Go=t=>{switch(typeof t){case"undefined":return D.undefined;case"string":return D.string;case"number":return Number.isNaN(t)?D.nan:D.number;case"boolean":return D.boolean;case"function":return D.function;case"bigint":return D.bigint;case"symbol":return D.symbol;case"object":return Array.isArray(t)?D.array:t===null?D.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?D.promise:typeof Map<"u"&&t instanceof Map?D.map:typeof Set<"u"&&t instanceof Set?D.set:typeof Date<"u"&&t instanceof Date?D.date:D.object;default:return D.unknown}};var x=fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),cPe=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Hn=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){let n=e||function(s){return s.message},r={_errors:[]},o=s=>{for(let i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(i))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),r}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let s=o.path[0];n[s]=n[s]||[],n[s].push(e(o))}else r.push(e(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};Hn.create=t=>new Hn(t);var lPe=(t,e)=>{let n;switch(t.code){case x.invalid_type:t.received===D.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case x.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,fe.jsonStringifyReplacer)}`;break;case x.unrecognized_keys:n=`Unrecognized key(s) in object: ${fe.joinValues(t.keys,", ")}`;break;case x.invalid_union:n="Invalid input";break;case x.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${fe.joinValues(t.options)}`;break;case x.invalid_enum_value:n=`Invalid enum value. Expected ${fe.joinValues(t.options)}, received '${t.received}'`;break;case x.invalid_arguments:n="Invalid function arguments";break;case x.invalid_return_type:n="Invalid function return type";break;case x.invalid_date:n="Invalid date";break;case x.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:fe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case x.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case x.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case x.custom:n="Invalid input";break;case x.invalid_intersection_types:n="Intersection results could not be merged";break;case x.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case x.not_finite:n="Number must be finite";break;default:n=e.defaultError,fe.assertNever(t)}return{message:n}},Os=lPe;var A7=Os;function dPe(t){A7=t}function Kl(){return A7}var Xf=t=>{let{data:e,path:n,errorMaps:r,issueData:o}=t,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="",u=r.filter(l=>!!l).slice().reverse();for(let l of u)a=l(i,{data:e,defaultError:a}).message;return{...o,path:s,message:a}},pPe=[];function k(t,e){let n=Kl(),r=Xf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Os?void 0:Os].filter(o=>!!o)});t.common.issues.push(r)}var Jt=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){let r=[];for(let o of n){if(o.status==="aborted")return J;o.status==="dirty"&&e.dirty(),r.push(o.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){let r=[];for(let o of n){let s=await o.key,i=await o.value;r.push({key:s,value:i})}return t.mergeObjectSync(e,r)}static mergeObjectSync(e,n){let r={};for(let o of n){let{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return J;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:e.value,value:r}}},J=Object.freeze({status:"aborted"}),nu=t=>({status:"dirty",value:t}),dn=t=>({status:"valid",value:t}),t0=t=>t.status==="aborted",n0=t=>t.status==="dirty",$i=t=>t.status==="valid",Ql=t=>typeof Promise<"u"&&t instanceof Promise;var j;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(j||(j={}));var Lr=class{constructor(e,n,r,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},y7=(t,e)=>{if($i(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new Hn(t.common.issues);return this._error=n,this._error}}};function ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:r,description:o}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(i,a)=>{let{message:u}=t;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:u??n??a.defaultError}},description:o}}var ce=class{get description(){return this._def.description}_getType(e){return Go(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Go(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Jt,ctx:{common:e.parent.common,data:e.data,parsedType:Go(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(Ql(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Go(e)},o=this._parseSync({data:e,path:r.path,parent:r});return y7(r,o)}"~validate"(e){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Go(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:n});return $i(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>$i(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){let r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Go(e)},o=this._parse({data:e,path:r.path,parent:r}),s=await(Ql(o)?o:Promise.resolve(o));return y7(r,s)}refine(e,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{let i=e(o),a=()=>s.addIssue({code:x.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,o)=>e(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(e){return new wr({schema:this,typeName:ee.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return kr.create(this,this._def)}nullable(){return Ho.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xs.create(this)}promise(){return Wi.create(this,this._def)}or(e){return cu.create([this,e],this._def)}and(e){return lu.create(this,e,this._def)}transform(e){return new wr({...ae(this._def),schema:this,typeName:ee.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let n=typeof e=="function"?e:()=>e;return new _u({...ae(this._def),innerType:this,defaultValue:n,typeName:ee.ZodDefault})}brand(){return new Zf({typeName:ee.ZodBranded,type:this,...ae(this._def)})}catch(e){let n=typeof e=="function"?e:()=>e;return new hu({...ae(this._def),innerType:this,catchValue:n,typeName:ee.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return em.create(this,e)}readonly(){return gu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},fPe=/^c[^\s-]{8,}$/i,mPe=/^[0-9a-z]+$/,_Pe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,hPe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gPe=/^[a-z0-9_-]{21}$/i,TPe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,EPe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,SPe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,APe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ex,yPe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bPe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,RPe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,IPe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,OPe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,CPe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R7="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",NPe=new RegExp(`^${R7}$`);function I7(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function xPe(t){return new RegExp(`^${I7(t)}$`)}function O7(t){let e=`${R7}T${I7(t)}`,n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function PPe(t,e){return!!((e==="v4"||!e)&&yPe.test(t)||(e==="v6"||!e)&&RPe.test(t))}function MPe(t,e){if(!TPe.test(t))return!1;try{let[n]=t.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function vPe(t,e){return!!((e==="v4"||!e)&&bPe.test(t)||(e==="v6"||!e)&&IPe.test(t))}var zi=class t extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==D.string){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_type,expected:D.string,received:s.parsedType}),J}let r=new Jt,o;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){let i=e.data.length>s.value,a=e.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(e,o),i?k(o,{code:x.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&k(o,{code:x.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")SPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"email",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")ex||(ex=new RegExp(APe,"u")),ex.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"emoji",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")hPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"uuid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")gPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"nanoid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")fPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"cuid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")mPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"cuid2",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")_Pe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"ulid",code:x.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),k(o,{validation:"url",code:x.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"regex",code:x.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?O7(s).test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?NPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?xPe(s).test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{code:x.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?EPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"duration",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?PPe(e.data,s.version)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"ip",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?MPe(e.data,s.alg)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"jwt",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?vPe(e.data,s.version)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"cidr",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?OPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"base64",code:x.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?CPe.test(e.data)||(o=this._getOrReturnCtx(e,o),k(o,{validation:"base64url",code:x.invalid_string,message:s.message}),r.dirty()):fe.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(o=>e.test(o),{validation:n,code:x.invalid_string,...j.errToObj(r)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...j.errToObj(e)})}url(e){return this._addCheck({kind:"url",...j.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...j.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...j.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...j.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...j.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...j.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...j.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...j.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...j.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...j.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...j.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...j.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...j.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...j.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...j.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...j.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...j.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...j.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...j.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...j.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...j.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...j.errToObj(n)})}nonempty(e){return this.min(1,j.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};zi.create=t=>new zi({checks:[],typeName:ee.ZodString,coerce:t?.coerce??!1,...ae(t)});function kPe(t,e){let n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,o=n>r?n:r,s=Number.parseInt(t.toFixed(o).replace(".","")),i=Number.parseInt(e.toFixed(o).replace(".",""));return s%i/10**o}var ru=class t extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==D.number){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_type,expected:D.number,received:s.parsedType}),J}let r,o=new Jt;for(let s of this._def.checks)s.kind==="int"?fe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),k(r,{code:x.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?kPe(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),k(r,{code:x.not_finite,message:s.message}),o.dirty()):fe.assertNever(s);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,j.toString(n))}gt(e,n){return this.setLimit("min",e,!1,j.toString(n))}lte(e,n){return this.setLimit("max",e,!0,j.toString(n))}lt(e,n){return this.setLimit("max",e,!1,j.toString(n))}setLimit(e,n,r,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:j.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:j.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:j.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:j.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:j.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:j.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&fe.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}};ru.create=t=>new ru({checks:[],typeName:ee.ZodNumber,coerce:t?.coerce||!1,...ae(t)});var ou=class t extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==D.bigint)return this._getInvalidInput(e);let r,o=new Jt;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),k(r,{code:x.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):fe.assertNever(s);return{status:o.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return k(n,{code:x.invalid_type,expected:D.bigint,received:n.parsedType}),J}gte(e,n){return this.setLimit("min",e,!0,j.toString(n))}gt(e,n){return this.setLimit("min",e,!1,j.toString(n))}lte(e,n){return this.setLimit("max",e,!0,j.toString(n))}lt(e,n){return this.setLimit("max",e,!1,j.toString(n))}setLimit(e,n,r,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:j.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:j.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};ou.create=t=>new ou({checks:[],typeName:ee.ZodBigInt,coerce:t?.coerce??!1,...ae(t)});var su=class extends ce{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==D.boolean){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.boolean,received:r.parsedType}),J}return dn(e.data)}};su.create=t=>new su({typeName:ee.ZodBoolean,coerce:t?.coerce||!1,...ae(t)});var iu=class t extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==D.date){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_type,expected:D.date,received:s.parsedType}),J}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return k(s,{code:x.invalid_date}),J}let r=new Jt,o;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(o=this._getOrReturnCtx(e,o),k(o,{code:x.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):fe.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:j.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:j.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};iu.create=t=>new iu({checks:[],coerce:t?.coerce||!1,typeName:ee.ZodDate,...ae(t)});var Xl=class extends ce{_parse(e){if(this._getType(e)!==D.symbol){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.symbol,received:r.parsedType}),J}return dn(e.data)}};Xl.create=t=>new Xl({typeName:ee.ZodSymbol,...ae(t)});var au=class extends ce{_parse(e){if(this._getType(e)!==D.undefined){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.undefined,received:r.parsedType}),J}return dn(e.data)}};au.create=t=>new au({typeName:ee.ZodUndefined,...ae(t)});var uu=class extends ce{_parse(e){if(this._getType(e)!==D.null){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.null,received:r.parsedType}),J}return dn(e.data)}};uu.create=t=>new uu({typeName:ee.ZodNull,...ae(t)});var Yi=class extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return dn(e.data)}};Yi.create=t=>new Yi({typeName:ee.ZodAny,...ae(t)});var Ns=class extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return dn(e.data)}};Ns.create=t=>new Ns({typeName:ee.ZodUnknown,...ae(t)});var ro=class extends ce{_parse(e){let n=this._getOrReturnCtx(e);return k(n,{code:x.invalid_type,expected:D.never,received:n.parsedType}),J}};ro.create=t=>new ro({typeName:ee.ZodNever,...ae(t)});var Zl=class extends ce{_parse(e){if(this._getType(e)!==D.undefined){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.void,received:r.parsedType}),J}return dn(e.data)}};Zl.create=t=>new Zl({typeName:ee.ZodVoid,...ae(t)});var xs=class t extends ce{_parse(e){let{ctx:n,status:r}=this._processInputParams(e),o=this._def;if(n.parsedType!==D.array)return k(n,{code:x.invalid_type,expected:D.array,received:n.parsedType}),J;if(o.exactLength!==null){let i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(k(n,{code:i?x.too_big:x.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(k(n,{code:x.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(k(n,{code:x.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Lr(n,i,n.path,a)))).then(i=>Jt.mergeArray(r,i));let s=[...n.data].map((i,a)=>o.type._parseSync(new Lr(n,i,n.path,a)));return Jt.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:j.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:j.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:j.toString(n)}})}nonempty(e){return this.min(1,e)}};xs.create=(t,e)=>new xs({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ee.ZodArray,...ae(e)});function Jl(t){if(t instanceof Vn){let e={};for(let n in t.shape){let r=t.shape[n];e[n]=kr.create(Jl(r))}return new Vn({...t._def,shape:()=>e})}else return t instanceof xs?new xs({...t._def,type:Jl(t.element)}):t instanceof kr?kr.create(Jl(t.unwrap())):t instanceof Ho?Ho.create(Jl(t.unwrap())):t instanceof jo?jo.create(t.items.map(e=>Jl(e))):t}var Vn=class t extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=fe.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==D.object){let l=this._getOrReturnCtx(e);return k(l,{code:x.invalid_type,expected:D.object,received:l.parsedType}),J}let{status:r,ctx:o}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ro&&this._def.unknownKeys==="strip"))for(let l in o.data)i.includes(l)||a.push(l);let u=[];for(let l of i){let d=s[l],p=o.data[l];u.push({key:{status:"valid",value:l},value:d._parse(new Lr(o,p,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof ro){let l=this._def.unknownKeys;if(l==="passthrough")for(let d of a)u.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(l==="strict")a.length>0&&(k(o,{code:x.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let d of a){let p=o.data[d];u.push({key:{status:"valid",value:d},value:l._parse(new Lr(o,p,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let d of u){let p=await d.key,f=await d.value;l.push({key:p,value:f,alwaysSet:d.alwaysSet})}return l}).then(l=>Jt.mergeObjectSync(r,l)):Jt.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return j.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:j.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ee.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let r of fe.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let r of fe.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}deepPartial(){return Jl(this)}partial(e){let n={};for(let r of fe.objectKeys(this.shape)){let o=this.shape[r];e&&!e[r]?n[r]=o:n[r]=o.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let r of fe.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof kr;)s=s._def.innerType;n[r]=s}return new t({...this._def,shape:()=>n})}keyof(){return C7(fe.objectKeys(this.shape))}};Vn.create=(t,e)=>new Vn({shape:()=>t,unknownKeys:"strip",catchall:ro.create(),typeName:ee.ZodObject,...ae(e)});Vn.strictCreate=(t,e)=>new Vn({shape:()=>t,unknownKeys:"strict",catchall:ro.create(),typeName:ee.ZodObject,...ae(e)});Vn.lazycreate=(t,e)=>new Vn({shape:t,unknownKeys:"strip",catchall:ro.create(),typeName:ee.ZodObject,...ae(e)});var cu=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r=this._def.options;function o(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let i=s.map(a=>new Hn(a.ctx.common.issues));return k(n,{code:x.invalid_union,unionErrors:i}),J}if(n.common.async)return Promise.all(r.map(async s=>{let i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s,i=[];for(let u of r){let l={...n,common:{...n.common,issues:[]},parent:null},d=u._parseSync({data:n.data,path:n.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(u=>new Hn(u));return k(n,{code:x.invalid_union,unionErrors:a}),J}}get options(){return this._def.options}};cu.create=(t,e)=>new cu({options:t,typeName:ee.ZodUnion,...ae(e)});var Cs=t=>t instanceof du?Cs(t.schema):t instanceof wr?Cs(t.innerType()):t instanceof pu?[t.value]:t instanceof fu?t.options:t instanceof mu?fe.objectValues(t.enum):t instanceof _u?Cs(t._def.innerType):t instanceof au?[void 0]:t instanceof uu?[null]:t instanceof kr?[void 0,...Cs(t.unwrap())]:t instanceof Ho?[null,...Cs(t.unwrap())]:t instanceof Zf||t instanceof gu?Cs(t.unwrap()):t instanceof hu?Cs(t._def.innerType):[],r0=class t extends ce{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==D.object)return k(n,{code:x.invalid_type,expected:D.object,received:n.parsedType}),J;let r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(k(n,{code:x.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){let o=new Map;for(let s of n){let i=Cs(s.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of i){if(o.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);o.set(a,s)}}return new t({typeName:ee.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:o,...ae(r)})}};function tx(t,e){let n=Go(t),r=Go(e);if(t===e)return{valid:!0,data:t};if(n===D.object&&r===D.object){let o=fe.objectKeys(e),s=fe.objectKeys(t).filter(a=>o.indexOf(a)!==-1),i={...t,...e};for(let a of s){let u=tx(t[a],e[a]);if(!u.valid)return{valid:!1};i[a]=u.data}return{valid:!0,data:i}}else if(n===D.array&&r===D.array){if(t.length!==e.length)return{valid:!1};let o=[];for(let s=0;s<t.length;s++){let i=t[s],a=e[s],u=tx(i,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===D.date&&r===D.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var lu=class extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e),o=(s,i)=>{if(t0(s)||t0(i))return J;let a=tx(s.value,i.value);return a.valid?((n0(s)||n0(i))&&n.dirty(),{status:n.value,value:a.data}):(k(r,{code:x.invalid_intersection_types}),J)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};lu.create=(t,e,n)=>new lu({left:t,right:e,typeName:ee.ZodIntersection,...ae(n)});var jo=class t extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.array)return k(r,{code:x.invalid_type,expected:D.array,received:r.parsedType}),J;if(r.data.length<this._def.items.length)return k(r,{code:x.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&r.data.length>this._def.items.length&&(k(r,{code:x.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...r.data].map((i,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Lr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>Jt.mergeArray(n,i)):Jt.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};jo.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new jo({items:t,typeName:ee.ZodTuple,rest:null,...ae(e)})};var o0=class t extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.object)return k(r,{code:x.invalid_type,expected:D.object,received:r.parsedType}),J;let o=[],s=this._def.keyType,i=this._def.valueType;for(let a in r.data)o.push({key:s._parse(new Lr(r,a,r.path,a)),value:i._parse(new Lr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Jt.mergeObjectAsync(n,o):Jt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof ce?new t({keyType:e,valueType:n,typeName:ee.ZodRecord,...ae(r)}):new t({keyType:zi.create(),valueType:e,typeName:ee.ZodRecord,...ae(n)})}},ed=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.map)return k(r,{code:x.invalid_type,expected:D.map,received:r.parsedType}),J;let o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Lr(r,a,r.path,[l,"key"])),value:s._parse(new Lr(r,u,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of i){let l=await u.key,d=await u.value;if(l.status==="aborted"||d.status==="aborted")return J;(l.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(l.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let u of i){let l=u.key,d=u.value;if(l.status==="aborted"||d.status==="aborted")return J;(l.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(l.value,d.value)}return{status:n.value,value:a}}}};ed.create=(t,e,n)=>new ed({valueType:e,keyType:t,typeName:ee.ZodMap,...ae(n)});var td=class t extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==D.set)return k(r,{code:x.invalid_type,expected:D.set,received:r.parsedType}),J;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(k(r,{code:x.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(k(r,{code:x.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let s=this._def.valueType;function i(u){let l=new Set;for(let d of u){if(d.status==="aborted")return J;d.status==="dirty"&&n.dirty(),l.add(d.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((u,l)=>s._parse(new Lr(r,u,r.path,l)));return r.common.async?Promise.all(a).then(u=>i(u)):i(a)}min(e,n){return new t({...this._def,minSize:{value:e,message:j.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:j.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};td.create=(t,e)=>new td({valueType:t,minSize:null,maxSize:null,typeName:ee.ZodSet,...ae(e)});var s0=class t extends ce{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==D.function)return k(n,{code:x.invalid_type,expected:D.function,received:n.parsedType}),J;function r(a,u){return Xf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kl(),Os].filter(l=>!!l),issueData:{code:x.invalid_arguments,argumentsError:u}})}function o(a,u){return Xf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kl(),Os].filter(l=>!!l),issueData:{code:x.invalid_return_type,returnTypeError:u}})}let s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Wi){let a=this;return dn(async function(...u){let l=new Hn([]),d=await a._def.args.parseAsync(u,s).catch(m=>{throw l.addIssue(r(u,m)),l}),p=await Reflect.apply(i,this,d);return await a._def.returns._def.type.parseAsync(p,s).catch(m=>{throw l.addIssue(o(p,m)),l})})}else{let a=this;return dn(function(...u){let l=a._def.args.safeParse(u,s);if(!l.success)throw new Hn([r(u,l.error)]);let d=Reflect.apply(i,this,l.data),p=a._def.returns.safeParse(d,s);if(!p.success)throw new Hn([o(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:jo.create(e).rest(Ns.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new t({args:e||jo.create([]).rest(Ns.create()),returns:n||Ns.create(),typeName:ee.ZodFunction,...ae(r)})}},du=class extends ce{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};du.create=(t,e)=>new du({getter:t,typeName:ee.ZodLazy,...ae(e)});var pu=class extends ce{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return k(n,{received:n.data,code:x.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:e.data}}get value(){return this._def.value}};pu.create=(t,e)=>new pu({value:t,typeName:ee.ZodLiteral,...ae(e)});function C7(t,e){return new fu({values:t,typeName:ee.ZodEnum,...ae(e)})}var fu=class t extends ce{_parse(e){if(typeof e.data!="string"){let n=this._getOrReturnCtx(e),r=this._def.values;return k(n,{expected:fe.joinValues(r),received:n.parsedType,code:x.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),r=this._def.values;return k(n,{received:n.data,code:x.invalid_enum_value,options:r}),J}return dn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};fu.create=C7;var mu=class extends ce{_parse(e){let n=fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==D.string&&r.parsedType!==D.number){let o=fe.objectValues(n);return k(r,{expected:fe.joinValues(o),received:r.parsedType,code:x.invalid_type}),J}if(this._cache||(this._cache=new Set(fe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let o=fe.objectValues(n);return k(r,{received:r.data,code:x.invalid_enum_value,options:o}),J}return dn(e.data)}get enum(){return this._def.values}};mu.create=(t,e)=>new mu({values:t,typeName:ee.ZodNativeEnum,...ae(e)});var Wi=class extends ce{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==D.promise&&n.common.async===!1)return k(n,{code:x.invalid_type,expected:D.promise,received:n.parsedType}),J;let r=n.parsedType===D.promise?n.data:Promise.resolve(n.data);return dn(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Wi.create=(t,e)=>new Wi({type:t,typeName:ee.ZodPromise,...ae(e)});var wr=class extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:r}=this._processInputParams(e),o=this._def.effect||null,s={addIssue:i=>{k(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){let i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return J;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?J:u.status==="dirty"?nu(u.value):n.value==="dirty"?nu(u.value):u});{if(n.value==="aborted")return J;let a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?J:a.status==="dirty"?nu(a.value):n.value==="dirty"?nu(a.value):a}}if(o.type==="refinement"){let i=a=>{let u=o.refinement(a,s);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!$i(i))return J;let a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>$i(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):J);fe.assertNever(o)}};wr.create=(t,e,n)=>new wr({schema:t,typeName:ee.ZodEffects,effect:e,...ae(n)});wr.createWithPreprocess=(t,e,n)=>new wr({schema:e,effect:{type:"preprocess",transform:t},typeName:ee.ZodEffects,...ae(n)});var kr=class extends ce{_parse(e){return this._getType(e)===D.undefined?dn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};kr.create=(t,e)=>new kr({innerType:t,typeName:ee.ZodOptional,...ae(e)});var Ho=class extends ce{_parse(e){return this._getType(e)===D.null?dn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ho.create=(t,e)=>new Ho({innerType:t,typeName:ee.ZodNullable,...ae(e)});var _u=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return n.parsedType===D.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};_u.create=(t,e)=>new _u({innerType:t,typeName:ee.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ae(e)});var hu=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ql(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Hn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Hn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};hu.create=(t,e)=>new hu({innerType:t,typeName:ee.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ae(e)});var nd=class extends ce{_parse(e){if(this._getType(e)!==D.nan){let r=this._getOrReturnCtx(e);return k(r,{code:x.invalid_type,expected:D.nan,received:r.parsedType}),J}return{status:"valid",value:e.data}}};nd.create=t=>new nd({typeName:ee.ZodNaN,...ae(t)});var LPe=Symbol("zod_brand"),Zf=class extends ce{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},em=class t extends ce{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?J:s.status==="dirty"?(n.dirty(),nu(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?J:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(e,n){return new t({in:e,out:n,typeName:ee.ZodPipeline})}},gu=class extends ce{_parse(e){let n=this._def.innerType._parse(e),r=o=>($i(o)&&(o.value=Object.freeze(o.value)),o);return Ql(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};gu.create=(t,e)=>new gu({innerType:t,typeName:ee.ZodReadonly,...ae(e)});function b7(t,e){let n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function N7(t,e={},n){return t?Yi.create().superRefine((r,o)=>{let s=t(r);if(s instanceof Promise)return s.then(i=>{if(!i){let a=b7(e,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!s){let i=b7(e,r),a=i.fatal??n??!0;o.addIssue({code:"custom",...i,fatal:a})}}):Yi.create()}var wPe={object:Vn.lazycreate},ee;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ee||(ee={}));var DPe=(t,e={message:`Input not instance of ${t.name}`})=>N7(n=>n instanceof t,e),x7=zi.create,P7=ru.create,UPe=nd.create,BPe=ou.create,M7=su.create,FPe=iu.create,GPe=Xl.create,jPe=au.create,HPe=uu.create,VPe=Yi.create,qPe=Ns.create,$Pe=ro.create,zPe=Zl.create,YPe=xs.create,WPe=Vn.create,KPe=Vn.strictCreate,QPe=cu.create,JPe=r0.create,XPe=lu.create,ZPe=jo.create,e1e=o0.create,t1e=ed.create,n1e=td.create,r1e=s0.create,o1e=du.create,s1e=pu.create,i1e=fu.create,a1e=mu.create,u1e=Wi.create,c1e=wr.create,l1e=kr.create,d1e=Ho.create,p1e=wr.createWithPreprocess,f1e=em.create,m1e=()=>x7().optional(),_1e=()=>P7().optional(),h1e=()=>M7().optional(),g1e={string:t=>zi.create({...t,coerce:!0}),number:t=>ru.create({...t,coerce:!0}),boolean:t=>su.create({...t,coerce:!0}),bigint:t=>ou.create({...t,coerce:!0}),date:t=>iu.create({...t,coerce:!0})};var T1e=J;var E1e=t=>typeof t?.safeParse=="function";var nx=t=>typeof t?.passthrough=="function";var S1e=(t,e)=>nx(t)?nx(e)?t.merge(e):t:nx(e)?e:Object.assign({},t,e);var Xot=c.object({name:c.literal("ZodError"),issues:c.array(c.object({path:c.array(c.union([c.string(),c.number()])),message:c.string().optional(),code:c.nativeEnum(c.ZodIssueCode)}).catchall(c.any()))}),A1e=Symbol("ContractNoBody"),k7=t=>"method"in t&&"path"in t;var L7=(t,e)=>Object.fromEntries(Object.entries(t).map(([n,r])=>{var o,s,i;return k7(r)?[n,{...r,path:e?.pathPrefix?e.pathPrefix+r.path:r.path,headers:S1e(e?.baseHeaders,r.headers),strictStatusCodes:(o=r.strictStatusCodes)!==null&&o!==void 0?o:e?.strictStatusCodes,validateResponseOnClient:(s=r.validateResponseOnClient)!==null&&s!==void 0?s:e?.validateResponseOnClient,responses:{...e?.commonResponses,...r.responses},metadata:e?.metadata?{...e?.metadata,...(i=r.metadata)!==null&&i!==void 0?i:{}}:r.metadata}]:[n,L7(r,e)]})),rx=Symbol("ContractPlainType"),Dr=()=>({router:(t,e)=>L7(t,e),query:t=>t,mutation:t=>t,responses:t=>t,response:()=>rx,body:()=>rx,type:()=>rx,otherResponse:({contentType:t,body:e})=>({contentType:t,body:e}),noBody:()=>A1e}),y1e=({path:t,params:e})=>{let n=e;return t.replace(/\/?:([^/?]+)\??/g,(r,o)=>n[o]?`${r.startsWith("/")?"/":""}${n[o]}`:"")},b1e=(t,e=!1)=>{let n=e?R1e(t):I1e(t);return n?.length>0?"?"+n:""},R1e=t=>t?Object.entries(t).filter(([,e])=>e!==void 0).map(([e,n])=>{let r;return typeof n=="string"&&!["true","false","null"].includes(n.trim())&&isNaN(Number(n))?r=n:r=JSON.stringify(n),`${encodeURIComponent(e)}=${encodeURIComponent(r)}`}).join("&"):"",I1e=t=>t?Object.keys(t).flatMap(e=>ox(e,t[e])).map(([e,n])=>`${encodeURIComponent(e)}=${encodeURIComponent(n)}`).join("&"):"",ox=(t,e)=>Array.isArray(e)?e.flatMap((n,r)=>ox(`${t}[${r}]`,n)):e instanceof Date?[[`${t}`,e.toISOString()]]:e===null?[[`${t}`,""]]:e===void 0?[]:typeof e=="object"?Object.keys(e).flatMap(n=>ox(`${t}[${n}]`,e[n])):[[`${t}`,`${e}`]];var sx=class extends Error{constructor(e,n){let r=n.join(",");super(`Server returned unexpected response. Expected one of: ${r} got: ${e.status}`),this.response=e}};var O1e=async({route:t,path:e,method:n,headers:r,body:o,validateResponse:s,fetchOptions:i})=>{let a=await fetch(e,{...i,method:n,headers:r,body:o}),u=a.headers.get("content-type");if(u?.includes("application/")&&u?.includes("json")){let l={status:a.status,body:await a.json(),headers:a.headers},d=t.responses[l.status];return(s??t.validateResponseOnClient)&&E1e(d)?{...l,body:d.parse(l.body)}:l}return u?.includes("text/")?{status:a.status,body:await a.text(),headers:a.headers}:{status:a.status,body:await a.blob(),headers:a.headers}},C1e=t=>{let e=new FormData,n=(r,o)=>{o instanceof File?e.append(r,o):e.append(r,JSON.stringify(o))};return Object.entries(t).forEach(([r,o])=>{if(Array.isArray(o))for(let s of o)n(r,s);else n(r,o)}),e},v7=t=>Object.fromEntries(Object.entries(t).map(([e,n])=>[e.toLowerCase(),n])),N1e=t=>{let{path:e,clientArgs:n,route:r,body:o,query:s,extraInputArgs:i,headers:a,fetchOptions:u}=t,l=n.api||O1e,d=n.baseHeaders&&Object.fromEntries(Object.entries(n.baseHeaders).map(([m,_])=>typeof _=="function"?[m,_(t)]:[m,_])),p={...d&&v7(d),...v7(a)};Object.keys(p).forEach(m=>{p[m]===void 0&&delete p[m]});let f={route:r,path:e,method:r.method,headers:p,body:void 0,rawBody:o,rawQuery:s,contentType:void 0,validateResponse:n.validateResponse,fetchOptions:{...n.credentials&&{credentials:n.credentials},...u},...u?.signal&&{signal:u.signal},...u?.cache&&{cache:u.cache},...u&&"next"in u&&!!u?.next&&{next:u.next}};return r.method!=="GET"&&("contentType"in r&&r.contentType==="multipart/form-data"?f={...f,contentType:"multipart/form-data",body:o instanceof FormData?o:C1e(o)}:"contentType"in r&&r.contentType==="application/x-www-form-urlencoded"?f={...f,contentType:"application/x-www-form-urlencoded",headers:{"content-type":"application/x-www-form-urlencoded",...f.headers},body:typeof o=="string"?o:new URLSearchParams(o)}:o!=null&&(f={...f,contentType:"application/json",headers:{"content-type":"application/json",...f.headers},body:JSON.stringify(o)})),l({...f,...i})},x1e=(t,e,n)=>{let{query:r,params:o,body:s,headers:i,extraHeaders:a,overrideClientOptions:u,fetchOptions:l,cache:d,next:p,...f}=n||{},m={...e,...u};return{path:P1e(r,m.baseUrl,o,t,!!m.jsonQuery),clientArgs:m,route:t,body:s,query:r,extraInputArgs:f,fetchOptions:{...d&&{cache:d},...p&&{next:p},...l},headers:{...a,...i}}},P1e=(t,e,n,r,o)=>{let s=y1e({path:r.path,params:n}),i=b1e(t,o);return`${e}${s}${i}`},M1e=(t,e)=>{let n=Object.keys(t.responses);return async r=>{let o=x1e(t,e,r),s=await N1e(o);if(!e.throwOnUnknownStatus||n.includes(s.status.toString()))return s;throw new sx(s,n)}},ix=(t,e)=>Object.fromEntries(Object.entries(t).map(([n,r])=>k7(r)?[n,M1e(r,e)]:[n,ix(r,e)]));var ax=["free","creator","team"],w7=typeof process<"u"&&process.env?.NODE_ENV!=="production",v1e={stripe:{plans:[{tier:"free",subjectType:"user",name:"Free",description:"Share any thread from Claude Code, Codex, or Cowork. Share with friends or keep private. Share skills with your team instantly.",price:0,priceId:null,features:[{name:"Share threads from Claude Code, Codex, and Cowork"},{name:"Share with friends or keep private"},{name:"Share skills with your team instantly"}],entitlements:{skills:!1,workspaceScope:!1,review:!1,sharedThreadTtlDays:3}},{tier:"creator",subjectType:"user",name:"Creator",description:"For builders who share a lot. Permanent links and the Skills tab.",price:29,isFeatured:!0,priceId:w7?"price_1TP9BSKwvRM43sh64waIrvjj":"price_1TPA2gKwvRM43sh6Kp4ZCpJZ",features:[{name:"Everything in Free"},{name:"Shared threads live forever"},{name:"Skills tab \u2014 tool usage across every thread"}],entitlements:{skills:!0,workspaceScope:!1,review:!1,sharedThreadTtlDays:null}},{tier:"team",subjectType:"organization",name:"Team",description:"GitHub for Prompts. Org-wide thread sharing plus the review surface.",price:19,minSeats:2,priceId:w7?"price_1TP9MpKwvRM43sh6TBIFxVCd":"price_1TPA3CKwvRM43sh6k0bgPTsQ",features:[{name:"Everything in Creator"},{name:"Workspace-wide thread sharing"},{name:"Minimum 2 seats"},{name:"Review feature (beta)"}],entitlements:{skills:!0,workspaceScope:!0,review:!0,sharedThreadTtlDays:null}}]}};var D7=v1e.stripe.plans,est=Object.freeze(Object.fromEntries(D7.map(t=>[t.tier,t])));var k1e=Dr(),pn=c.object({message:c.string()}),ux=c.record(c.unknown()),Tu=c.string().regex(/^doc_[0-9A-Za-z]{22}$/),i0=c.string().regex(/^proj_[0-9A-Za-z]{22}$/),L1e=["active","archived"],a0=c.enum(L1e),U7=c.object({id:c.string().min(1),display_name:c.string().min(1)}),B7=c.object({id:i0,name:c.string().min(1)}),cx=c.object({id:Tu,title:c.string().min(1),status:a0,author:U7,project:B7.nullable(),created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable()}),w1e=c.object({type:c.literal("list"),list_type:c.literal("doc"),objects:c.array(cx)}),D1e=c.object({project_id:i0.optional(),status:a0.optional()}),U1e=c.object({title:c.string().trim().min(1).max(300).optional(),prosemirror_json:ux.optional(),project_id:i0.nullable().optional()}),B1e=c.object({id:Tu,created_at:c.string().datetime()}),F1e=c.object({title:c.string().trim().min(1).max(300).optional(),prosemirror_json:ux.optional(),project_id:i0.nullable().optional(),status:a0.optional()}).refine(t=>Object.keys(t).length>0,{message:"At least one field must be provided"}),G1e=c.object({id:Tu,updated_at:c.string().datetime()}),j1e=c.object({id:Tu,title:c.string().min(1),prosemirror_json:ux,status:a0,author:U7,project:B7.nullable(),created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable()}),F7=k1e.router({listDocs:{method:"GET",path:"/docs",headers:c.object({authorization:c.string().min(1).optional()}),query:D1e,responses:{200:w1e,401:pn,403:pn},summary:"List docs in the authenticated user\u2019s organization. Optional project_id filter scopes to a single project."},createDoc:{method:"POST",path:"/docs",headers:c.object({authorization:c.string().min(1).optional()}),body:U1e,responses:{201:B1e,401:pn,403:pn,404:pn,422:pn},summary:"Create a doc. If project_id is provided, the doc is scoped to that project; otherwise it lives at the workspace level."},getDoc:{method:"GET",path:"/docs/:docId",pathParams:c.object({docId:Tu}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:j1e,401:pn,403:pn,404:pn},summary:"Get a doc by id with its rich-text body and parent project (if any)"},updateDoc:{method:"PATCH",path:"/docs/:docId",pathParams:c.object({docId:Tu}),headers:c.object({authorization:c.string().min(1).optional()}),body:F1e,responses:{200:G1e,401:pn,403:pn,404:pn,422:pn},summary:"Update a doc. If prosemirror_json changes, the server re-syncs lore.mention_references from mention nodes."},deleteDoc:{method:"DELETE",path:"/docs/:docId",pathParams:c.object({docId:Tu}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.object({}),401:pn,403:pn,404:pn},summary:"Hard-delete a doc and any mention references it owns"}});var H1e=Dr(),it=c.object({message:c.string()}),lx=c.record(c.unknown()),Vo=c.string().regex(/^proj_[0-9A-Za-z]{22}$/),V1e=["active","archived"],u0=c.enum(V1e),dx=c.object({id:c.string().min(1),display_name:c.string().min(1)}),G7=c.object({thread_id:c.string().min(1),title:c.string().min(1),added_at:c.string().datetime(),added_by:dx}),q1e=c.object({id:Vo,name:c.string().min(1),status:u0,author:dx,thread_count:c.number().int().nonnegative(),doc_count:c.number().int().nonnegative(),created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable()}),$1e=c.object({type:c.literal("list"),list_type:c.literal("project"),objects:c.array(q1e)}),z1e=c.object({status:u0.optional()}),Y1e=c.object({name:c.string().trim().min(1).max(200),prosemirror_json:lx.optional()}),W1e=c.object({id:Vo,created_at:c.string().datetime()}),K1e=c.object({name:c.string().trim().min(1).max(200).optional(),prosemirror_json:lx.optional()}).refine(t=>Object.keys(t).length>0,{message:"At least one field must be provided"}),Q1e=c.object({id:Vo,updated_at:c.string().datetime()}),J1e=c.object({archived:c.boolean()}),X1e=c.object({id:Vo,status:u0,archived_at:c.string().datetime().nullable()}),Z1e=c.object({id:Vo,name:c.string().min(1),prosemirror_json:lx,status:u0,author:dx,created_at:c.string().datetime(),updated_at:c.string().datetime(),archived_at:c.string().datetime().nullable(),threads:c.array(G7),docs:c.array(cx)}),eMe=c.object({thread_id:c.string().min(1).max(64)}),tMe=G7,j7=H1e.router({listProjects:{method:"GET",path:"/projects",headers:c.object({authorization:c.string().min(1).optional()}),query:z1e,responses:{200:$1e,401:it},summary:"List projects in the authenticated user\u2019s organization"},createProject:{method:"POST",path:"/projects",headers:c.object({authorization:c.string().min(1).optional()}),body:Y1e,responses:{201:W1e,401:it,422:it},summary:"Create a new project in the authenticated user\u2019s organization"},getProject:{method:"GET",path:"/projects/:projectId",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Z1e,401:it,403:it,404:it},summary:"Get a project with its attached threads and child docs. The project description is the canonical mention source for project-scoped @-mentions."},updateProject:{method:"PATCH",path:"/projects/:projectId",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),body:K1e,responses:{200:Q1e,401:it,403:it,404:it,422:it},summary:"Update a project\u2019s name or rich-text body. Body changes re-sync mention_references for source_kind=project."},archiveProject:{method:"POST",path:"/projects/:projectId/archive",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),body:J1e,responses:{200:X1e,401:it,403:it,404:it},summary:"Archive (soft-delete) or unarchive a project"},addProjectThread:{method:"POST",path:"/projects/:projectId/threads",pathParams:c.object({projectId:Vo}),headers:c.object({authorization:c.string().min(1).optional()}),body:eMe,responses:{201:tMe,401:it,403:it,404:it,409:it,422:it},summary:"Pin an existing visible thread to this project. Idempotent \u2014 re-adding returns the existing membership."},removeProjectThread:{method:"DELETE",path:"/projects/:projectId/threads/:threadId",pathParams:c.object({projectId:Vo,threadId:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.object({}),401:it,403:it,404:it},summary:"Remove a thread membership from a project"}});var nMe=Dr(),c0=c.object({message:c.string()}),rMe=["thread","plan","doc","user"],l0=c.enum(rMe),oMe=["doc","project"],sMe=c.enum(oMe),iMe=c.object({kind:l0,id:c.string().min(1),title:c.string().min(1),href:c.string().min(1)}),aMe=c.object({type:c.literal("list"),list_type:c.literal("mention"),objects:c.array(iMe)}),uMe=c.object({q:c.string().trim().min(1).max(50),kinds:c.string().optional().transform(t=>{if(!t)return;let e=t.split(",").map(n=>n.trim()).filter(n=>n.length>0);return e.length>0?e:void 0}).pipe(c.array(l0).optional())}),cMe=c.object({source_kind:sMe,source_id:c.string().min(1),source_title:c.string().min(1),source_href:c.string().min(1),target_kind:l0,target_id:c.string().min(1),created_at:c.string().datetime()}),lMe=c.object({type:c.literal("list"),list_type:c.literal("backlink"),objects:c.array(cMe)}),dMe=c.object({target_kind:l0,target_id:c.string().min(1).max(64)}),H7=nMe.router({searchMentions:{method:"GET",path:"/mentions/search",headers:c.object({authorization:c.string().min(1).optional()}),query:uMe,responses:{200:aMe,401:c0,422:c0},summary:"Search threads, plans, files, and users by title/name for @-mention typeahead. Org-scoped, max 10 results across all kinds."},listBacklinks:{method:"GET",path:"/mentions/backlinks",headers:c.object({authorization:c.string().min(1).optional()}),query:dMe,responses:{200:lMe,401:c0,403:c0},summary:"List every doc/project body in the caller\u2019s organization that mentions the given target. Newest-first."}});var pMe=Dr(),fMe=c.object({type:c.literal("list"),list_type:c.literal("thread"),has_more:c.boolean(),objects:c.array(c.unknown())}),Ut=c.object({message:c.string()}),V7=c.object({thread_id:c.string().min(1),is_favorited:c.boolean(),favorited_at:c.string().datetime().nullable()}),mMe=c.object({before:c.string().min(1).max(64).optional()}),_Me=c.object({id:c.string().min(1),display_name:c.string().min(1)}),hMe=c.object({block_id:c.string().min(1),thread_id:c.string().min(1),thread_title:c.string(),thread_visibility:c.enum(["private","workspace","public"]),author:_Me,preview:c.string(),prompted_at:c.string().datetime().nullable(),favorited_at:c.string().datetime()}),gMe=c.object({type:c.literal("list"),list_type:c.literal("favorite_prompt"),has_more:c.boolean(),objects:c.array(hMe)}),q7=c.object({block_id:c.string().min(1),thread_id:c.string().min(1).nullable(),is_favorited:c.boolean(),favorited_at:c.string().datetime().nullable()}),TMe=c.object({before:c.string().min(1).max(64).optional()}),EMe=c.object({block_ids:c.array(c.string().min(1))}),$7=pMe.router({addThreadFavorite:{method:"POST",path:"/threads/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{201:V7,401:Ut,403:Ut,404:Ut},summary:"Bookmark a thread for the authenticated user. Idempotent \u2014 re-favoriting returns the existing membership."},removeThreadFavorite:{method:"DELETE",path:"/threads/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:V7,401:Ut,403:Ut,404:Ut},summary:"Remove a thread bookmark for the authenticated user (no-op if absent)."},listFavoriteThreads:{method:"GET",path:"/favorites/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:mMe,responses:{200:fMe,401:Ut,403:Ut},summary:"List threads the authenticated user has favorited, newest favorited first. Visibility filtering still applies \u2014 a thread the viewer can no longer see (e.g. visibility downgraded) is omitted from the list."},addPromptFavorite:{method:"POST",path:"/thread-blocks/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{201:q7,401:Ut,403:Ut,404:Ut,409:Ut},summary:'Bookmark a single user prompt (a thread_blocks row with type="user") for the authenticated user. Idempotent.'},removePromptFavorite:{method:"DELETE",path:"/thread-blocks/:id/favorite",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:q7,401:Ut,404:Ut},summary:"Remove a prompt bookmark for the authenticated user (no-op if absent)."},listFavoritePrompts:{method:"GET",path:"/favorites/prompts",headers:c.object({authorization:c.string().min(1).optional()}),query:TMe,responses:{200:gMe,401:Ut},summary:"List the user's favorited prompts, newest first. Prompts whose parent thread the viewer can no longer see (visibility downgraded) are filtered out at read time."},listFavoritedBlockIdsInThread:{method:"GET",path:"/threads/:id/favorited-blocks",pathParams:c.object({id:c.string().min(1).max(64)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:EMe,401:Ut,403:Ut,404:Ut},summary:"Returns the set of thread_block ids the authenticated viewer has favorited within a single thread, used to bootstrap per-prompt star state on the SessionView."}});var SMe=Dr(),z7=c.object({message:c.string()}),AMe=c.object({id:c.string().min(1),title:c.string(),href:c.string().min(1),author_display_name:c.string().nullable(),author_handle:c.string().nullable()}),yMe=c.object({name:c.string().min(1),usage_count:c.number().int().nonnegative(),href:c.string().min(1)}),bMe=c.object({id:c.string().min(1),display_name:c.string(),handle:c.string().nullable(),avatar_url:c.string().nullable(),href:c.string().min(1)}),RMe=c.object({type:c.literal("global_search"),threads:c.array(AMe),skills:c.array(yMe),people:c.array(bMe)}),IMe=c.object({q:c.string().trim().min(1).max(80)}),Y7=SMe.router({globalSearch:{method:"GET",path:"/search",headers:c.object({authorization:c.string().min(1).optional()}),query:IMe,responses:{200:RMe,401:z7,422:z7},summary:"Global navbar search. Threads and people are searched globally (subject to thread visibility); skills are scoped to the viewer workspace. Max 5 results per kind."}});var OMe=Dr(),CMe=["gmail.com","googlemail.com","hotmail.com","outlook.com","live.com","msn.com","yahoo.com","ymail.com","rocketmail.com","icloud.com","me.com","mac.com","aol.com","proton.me","protonmail.com","pm.me","tutanota.com","tuta.io","fastmail.com","hey.com","mail.com","gmx.com","gmx.net","zoho.com","zohomail.com","hushmail.com","lycos.com","inbox.com","yandex.com","yandex.ru","mail.ru","inbox.ru","bk.ru","list.ru","rambler.ru","qq.com","163.com","126.com","yeah.net","sina.com","naver.com","daum.net","hanmail.net","kakao.com","rediffmail.com","comcast.net","verizon.net","att.net","sbcglobal.net","bellsouth.net","earthlink.net","charter.net","cox.net","roadrunner.com","spectrum.net","btinternet.com","virginmedia.com","sky.com","orange.fr","wanadoo.fr","free.fr","laposte.net","web.de","t-online.de","gmx.de","libero.it","virgilio.it","alice.it","seznam.cz","centrum.cz","wp.pl","interia.pl","o2.pl","onet.pl"],Ust=new Set(CMe);var NMe=c.object({id:c.string().uuid(),role:c.enum(["user","assistant"]),content:c.string().min(1),timestamp:c.string().datetime()}),xMe=c.object({id:c.string().uuid(),title:c.string().min(1),author:c.string().min(1),authorAvatar:c.string().min(1).max(4),model:c.string().min(1),turnCount:c.number().int().nonnegative(),createdAt:c.string().datetime(),preview:c.string()}),Bst=xMe.extend({messages:c.array(NMe)}),A=c.object({message:c.string()}),PMe=/^[a-zA-Z0-9_-]{2,32}$/,tW=c.string().regex(PMe,"Handle must be 2\u201332 characters: letters, numbers, dashes, or underscores."),px=c.object({id:c.string(),first_name:c.string().min(1),last_name:c.string().min(1),display_name:c.string().min(1),stytch_id:c.string().nullable(),handle:c.string().nullable(),bio:c.string().max(280).nullable(),avatar_url:c.string().nullable(),banner_url:c.string().nullable(),share_new_threads_to_workspace:c.boolean(),experimental_features_enabled:c.boolean(),onboarded_at:c.string().nullable()}),MMe=c.object({authProviderUserId:c.string().min(1).optional(),organizationId:c.string().min(1).optional(),org_name:c.string().min(1).optional(),emailAddress:c.string().email(),name:c.string().nullable(),user:px,is_admin:c.boolean()}),vMe=c.object({workos_client_id:c.string().min(1),workos_api_origin:c.string().url()}),kMe=c.object({share_new_threads_to_workspace:c.boolean().optional(),experimental_features_enabled:c.boolean().optional(),onboarded_at:c.union([c.literal("now"),c.null()]).optional(),display_name:c.string().min(1).max(120).optional(),handle:tW.optional(),bio:c.string().max(280).nullable().optional(),avatar_storage_url:c.string().min(1).nullable().optional(),banner_storage_url:c.string().min(1).nullable().optional()}).refine(t=>Object.keys(t).length>0,{message:"At least one field must be provided"}),LMe=c.object({id:c.string(),display_name:c.string(),handle:c.string().nullable(),avatar_url:c.string().nullable(),visible_thread_count:c.number().int().nonnegative(),last_active_at:c.string().datetime().nullable()}),nW=c.object({id:c.string().min(1),display_name:c.string().min(1),handle:c.string().nullable(),bio:c.string().max(280).nullable(),avatar_url:c.string().nullable(),banner_url:c.string().nullable(),organization_name:c.string().min(1).nullable(),created_at:c.string().min(1),visible_thread_count:c.number().int().nonnegative(),follower_count:c.number().int().nonnegative(),following_count:c.number().int().nonnegative(),published_project_count:c.number().int().nonnegative(),is_following:c.boolean(),is_self:c.boolean()}),wMe=c.object({type:c.literal("list"),list_type:c.literal("organization_member"),objects:c.array(LMe)}),DMe=c.object({email_address:c.string().email()}),UMe=c.object({email_address:c.string().email(),invitation_id:c.string().min(1)}),BMe=c.object({organization_id:c.string().min(1),organization_name:c.string().min(1),domain:c.string().min(1),created:c.boolean()}),FMe=c.object({location:c.string().trim().min(1),contact:c.string().trim().email()}),GMe=c.object({location:c.string().min(1),contact:c.string().email(),created_at:c.string().datetime()}),jMe=c.object({first_name:c.string().min(1),last_name:c.string().min(1),display_name:c.string().min(1),stytch_id:c.string().min(1).optional()}),HMe=c.object({name:c.string().min(1),email_domains:c.array(c.string().min(1)).nonempty(),stytch_org_id:c.string().min(1)}),VMe=c.object({user:jMe,organization:HMe}),qMe=c.object({path_glob:c.string().min(1),name:c.string().min(1),description:c.string().min(1)}),$Me=c.object({repo_origin_path:c.string().min(1),building_blocks:c.array(qMe)}),rW=c.string().regex(/^th_[0-9A-Za-z]{22}$/),p0=c.string().regex(/^tb_[0-9A-Za-z]{22}$/),zMe=c.object({id:rW,author:c.object({id:c.string().min(1),display_name:c.string().min(1)}),body:c.string(),created_at:c.string().datetime(),repo_origin_path:c.string().min(1),latest_revision_id:p0,revision_count:c.number().int().positive()}),YMe=c.object({id:c.string().min(1),display_name:c.string().min(1)}),WMe=c.object({id:c.string().min(1),author_id:c.string().min(1).nullable(),author:YMe.nullable(),created_at:c.string().datetime(),deleted_at:c.string().datetime().nullable(),content:c.string().min(1)}),KMe=c.object({id:c.string().min(1),thread_block_id:c.string().min(1),created_at:c.string().datetime(),resolved_at:c.string().datetime().nullable(),comments:c.array(WMe)}),QMe=c.object({thread_block_id:p0,from_position:c.number().int().positive(),to_position:c.number().int().positive(),selected_text:c.string().min(1),content:c.string().trim().min(1)}),JMe=c.object({id:c.string().min(1)}),XMe=c.object({content:c.string().trim().min(1)}),ZMe=c.object({id:c.string().min(1)}),eve=c.object({content:c.string().trim().min(1)}),tve=c.object({id:c.string().min(1)}),nve=c.object({content:c.string().trim().min(1)}),rve=c.object({id:c.string().min(1)}),ove=c.object({resolved:c.boolean()}),sve=c.object({id:c.string().min(1),resolved_at:c.string().datetime().nullable()}),ive=c.object({resolved:c.boolean()}),ave=c.object({id:c.string().min(1),resolved_at:c.string().datetime().nullable()}),oW=c.record(c.unknown()),uve=c.object({id:p0,body:c.string(),created_at:c.string().datetime(),prosemirror_json:oW,comment_threads:c.array(KMe)}),cve=c.object({id:rW,created_at:c.string().datetime(),repo_origin_path:c.string().min(1),author:c.object({id:c.string().min(1),display_name:c.string().min(1)}),latest_revision_id:p0,revision_count:c.number().int().positive(),revisions:c.array(uve)}),lve=c.object({type:c.literal("list"),list_type:c.literal("plan"),has_more:c.boolean(),objects:c.array(zMe)}),dve=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional(),author_id:c.string().min(1).optional(),repo_origin_path:c.string().min(1).optional()}),sW=c.object({id:c.string().min(1),organization_id:c.string().min(1),created_at:c.string().min(1),repo_origin_path:c.string().min(1),path_glob:c.string().min(1),name:c.string().min(1),description:c.string().min(1)}),pve=c.array(sW),fve=c.object({type:c.literal("list"),list_type:c.literal("building_block"),has_more:c.boolean(),objects:c.array(sW)}),mve=c.object({repo_origin_path:c.string().min(1),before:c.string().min(1).optional(),after:c.string().min(1).optional()}),_ve=c.enum(["thread","building_block"]),hve=c.object({repo_origin_path:c.string().min(1),sources:c.array(_ve).nonempty()}),gve=c.object({type:c.literal("list"),list_type:c.literal("repository"),has_more:c.boolean(),objects:c.array(hve)}),qo=c.enum(["claudeCode","codex","amp","cursor","cowork","unspecified"]),Tve=c.object({uploads:c.array(c.string()),outputs:c.array(c.string())}),Eve=c.object({connected:c.boolean(),last_upload_at:c.string().nullable(),harnesses:c.array(qo)}),Sve=["transcript","plan"],Ave=c.enum(Sve),yve=c.object({md5:c.string().min(1),harness:qo,filename:c.string().min(1).optional(),repo_origin_path:c.string().min(1).optional(),harness_internal_id:c.string().min(1).optional(),file_type:Ave.optional(),remix_of_thread_id:c.string().min(1).optional(),artifact_metadata:Tve.optional()}).refine(t=>(t.filename?.trim().length??0)>0||(t.harness_internal_id?.trim().length??0)>0,{path:["harness_internal_id"],message:"filename or harness_internal_id is required"}),mx=c.object({id:c.string().min(1),display_name:c.string().min(1),avatar_url:c.string().nullable()}),bve=c.object({id:c.string().min(1),display_name:c.string().min(1)}),iW=c.object({id:c.string().min(1),author_id:c.string().min(1).nullable(),author:bve.nullable(),created_at:c.string().datetime(),deleted_at:c.string().datetime().nullable(),content:c.string().min(1)}),aW=c.object({id:c.string().min(1),thread_block_id:c.string().min(1),created_at:c.string().datetime(),resolved_at:c.string().datetime().nullable()}),Rve=aW.extend({comments:c.array(iW)}),tm=c.object({id:c.string().min(1),type:c.string().min(1),index_in_thread:c.number().int().nonnegative(),isCritiqued:c.boolean(),comment_threads:c.array(Rve).optional()}).passthrough(),uW=c.object({type:c.literal("list"),list_type:c.literal("thread_block"),has_more:c.boolean(),objects:c.array(tm)}),W7=tm.extend({type:c.literal("plan"),prosemirror_json:oW,thread_file_id:c.string().min(1)}),Ive=c.union([c.literal(-1),c.literal(1)]),cW=c.union([c.literal(-1),c.literal(0),c.literal(1)]),K7=c.object({score:c.number().int(),up_count:c.number().int().nonnegative(),down_count:c.number().int().nonnegative(),viewer_vote:cW}),Ove=c.object({value:Ive}),Cve=c.object({id:c.string().min(1),display_name:c.string().min(1),avatar_url:c.string().nullable()}),Eu=c.object({id:c.string().min(1),thread_id:c.string().min(1),author_id:c.string().min(1).nullable(),author:Cve.nullable(),parent_comment_id:c.string().min(1).nullable(),content:c.string(),created_at:c.string().datetime(),updated_at:c.string().datetime(),deleted_at:c.string().datetime().nullable()}),Nve=c.object({type:c.literal("list"),list_type:c.literal("thread_comment"),objects:c.array(Eu)}),xve=c.object({content:c.string().trim().min(1).max(4e3),parent_comment_id:c.string().min(1).optional()}),Pve=Eu,Mve=c.object({content:c.string().trim().min(1).max(4e3)}),vve=Eu,kve=Eu,Fst=c.discriminatedUnion("kind",[c.object({kind:c.literal("created"),thread_id:c.string().min(1),actor_user_id:c.string().min(1),version:c.number(),comment:Eu}),c.object({kind:c.literal("updated"),thread_id:c.string().min(1),actor_user_id:c.string().min(1),version:c.number(),comment:Eu}),c.object({kind:c.literal("deleted"),thread_id:c.string().min(1),actor_user_id:c.string().min(1),version:c.number(),comment:Eu})]),Lve=c.enum(["pending","generating","ready","failed"]),wve=c.enum(["pending","generating","ready","failed"]),Dve=c.enum(["pending","placeholder","ai","user"]),lW=c.enum(["pending","generating","ready","failed"]),_x=c.enum(["pending","generating","ready","failed","disabled"]),dW=c.enum(["pending","generating","ready","failed"]),Uve=c.object({title:c.string().min(1),body:c.string().min(1),files:c.array(c.string()).optional()}),Bve=c.object({status:_x,url:c.string().nullable(),url_expires_at:c.string().nullable(),generated_at:c.string().nullable(),model:c.string().nullable()}),Fve=c.object({status:dW,steps:c.array(Uve),generated_at:c.string().nullable()}),Gve=c.object({remix_of_thread_id:c.string().nullable(),remix_count:c.number().int().nonnegative()}),jve=c.object({cover:Bve,how_to:Fve,lineage:Gve}),Hve=c.object({id:c.string().min(1),title:c.string().min(1),author:c.object({id:c.string().min(1),display_name:c.string(),handle:c.string().nullable(),avatar_url:c.string().nullable()}),cover:c.object({url:c.string(),url_expires_at:c.string()}),remix_count:c.number().int().nonnegative(),started_at:c.string(),cover_generated_at:c.string()}),Vve=c.object({type:c.literal("list"),list_type:c.literal("card_feed_item"),has_more:c.boolean(),objects:c.array(Hve)}),pW=c.enum(["asked","requested","decided","corrected","shared"]),qve=c.object({id:c.string().min(1),kind:pW,summary:c.string().min(1),block_id:c.string().min(1)}),$ve=c.object({type:c.literal("list"),list_type:c.literal("thread_decision"),status:lW,generated_at:c.string().nullable(),objects:c.array(qve)}),zve=c.object({thread_id:c.string().min(1),source_url:c.string().min(1),title:c.string().min(1),summary:c.string().nullable(),harness:qo,visibility:c.enum(["private","workspace","public"]),started_at:c.string().min(1),author:c.object({display_name:c.string().min(1),handle:c.string().nullable()}),original_user_prompt:c.string().nullable(),last_assistant_message:c.string().nullable(),decisions:c.array(c.object({kind:pW,summary:c.string().min(1)})),files_touched:c.array(c.string()),truncated:c.boolean()}),rd=c.object({id:c.string().min(1),thread_file_id:c.string().min(1),organization_id:c.string().min(1),author:mx,repo:c.string().min(1),title:c.string().min(1),started_at:c.string().min(1),blocks:uW,user_message_count:c.number().int().nonnegative(),files_touched:c.array(c.string()),skills_invoked:c.array(c.string()),harness:qo,transcript_parsing_state:c.enum(["pending","parsed","too_large_to_parse"]),visibility:c.enum(["private","workspace","public"]),has_plan:c.boolean().optional(),summary:c.string().nullable(),summary_status:Lve,summary_generated_at:c.string().nullable(),title_status:wve,title_generated_at:c.string().nullable(),title_source:Dve,decisions_status:lW,decisions_generated_at:c.string().nullable(),score:c.number().int(),up_count:c.number().int().nonnegative(),down_count:c.number().int().nonnegative(),viewer_vote:cW,comment_count:c.number().int().nonnegative(),is_favorited:c.boolean(),card:jve}),Yve=c.object({storage_url:c.string().min(1)}),Wve=c.object({storage_url:c.string(),harness:qo,thread:rd.nullable()}),Kve=c.object({status:c.literal("complete"),thread_files:c.array(Wve)}),Qve=c.object({id:c.string(),presigned_url:c.string().nullable(),presigned_url_expires_at:c.string().nullable(),storage_url:c.string(),harness:qo,expected_md5:c.string(),error:c.string().nullable(),thread:rd.nullable(),remix_parent_dropped:c.boolean().optional()}),Jve=c.object({id:c.string(),substrate:c.enum(["s3","filesystem"]),status:c.enum(["incomplete","locked_for_parsing","complete","error"]),thread_files:c.array(Qve)}),Xve=c.object({visibility:c.enum(["private","workspace","public"]).optional(),title:c.string().trim().min(1).max(200).optional()}).refine(t=>t.visibility!==void 0||t.title!==void 0,{message:"At least one of visibility or title must be provided"}),Zve=c.discriminatedUnion("visibility",[c.object({visibility:c.literal("private")}),c.object({visibility:c.literal("workspace")}),c.object({visibility:c.literal("public"),title:c.string().min(1),author_display_name:c.string().min(1),author_avatar_url:c.string().nullable(),first_user_message:c.string().nullable(),summary:c.string().nullable(),started_at:c.string().min(1),harness:qo,cover_url:c.string().nullable()})]),eke=rd,Q7=c.object({type:c.literal("list"),list_type:c.literal("thread"),has_more:c.boolean(),objects:c.array(eke)}),tke=c.enum(["recent","popular"]),nke=c.enum(["everyone","following"]),rke=rd,oke=c.object({type:c.literal("list"),list_type:c.literal("discover_thread"),has_more:c.boolean(),objects:c.array(rke)}),ske=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional(),sort:tke.optional(),scope:nke.optional(),harness:qo.optional(),search:c.string().max(200).optional()}),ike=c.object({thread_count:c.number().int().nonnegative(),author_count:c.number().int().nonnegative(),organization_count:c.number().int().nonnegative(),harness_breakdown:c.record(qo,c.number().int().nonnegative())}),ake=c.object({id:c.string(),status:c.enum(["incomplete","locked_for_parsing","complete","error"]),created_at:c.string(),thread_count:c.number().int().nonnegative()}),uke=c.object({type:c.literal("list"),list_type:c.literal("upload_session"),objects:c.array(ake)}),cke=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional()}),lke=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional(),author_ids:c.string().min(1).optional(),created_at:c.string().min(1).optional(),filepath_prefixes:c.string().min(1).optional()}),dke=c.object({path:c.string().min(1),start_offset:c.number().int().nonnegative(),end_offset:c.number().int().positive()}),hx=c.enum(["captured","published"]),pke=c.enum(["workspace","link"]),fW=c.object({id:c.string(),display_name:c.string(),avatar_url:c.string().nullable()}),fke=c.object({name:c.string(),usage_count:c.number().int().nonnegative(),author_count:c.number().int().nonnegative(),first_used_at:c.string().nullable(),last_used_at:c.string().nullable(),usage_count_last_24h:c.number().int().nonnegative(),usage_count_last_7d:c.number().int().nonnegative(),id:c.string().nullable(),description:c.string().nullable(),source:hx.nullable(),has_content:c.boolean()}),mke=c.object({type:c.literal("list"),list_type:c.literal("skill"),objects:c.array(fke)}),_ke=c.object({id:c.string(),title:c.string(),visibility:c.enum(["private","workspace","public"]),started_at:c.string(),author:mx,skills_invoked:c.array(c.string())}),hke=c.object({id:c.string().nullable(),name:c.string(),description:c.string().nullable(),body_md:c.string().nullable(),source:hx.nullable(),visibility:pke.nullable(),share_url:c.string().nullable(),latest_version:c.number().int().nonnegative().nullable(),author:fW.nullable(),usage_count:c.number().int().nonnegative(),author_count:c.number().int().nonnegative(),first_used_at:c.string().nullable(),last_used_at:c.string().nullable(),threads:c.array(_ke)}),gke=c.object({description:c.string().nullable().optional(),body_md:c.string().min(1),display_name:c.string().nullable().optional(),published:c.boolean().optional()}),Tke=c.object({id:c.string(),name:c.string(),latest_version:c.number().int().positive(),source:hx,content_hash:c.string()}),Eke=c.object({share_url:c.string(),share_token:c.string()}),Ske=c.object({id:c.string(),name:c.string(),description:c.string().nullable(),body_md:c.string(),latest_version:c.number().int().positive(),author:fW.nullable(),shared_at:c.string()}),Ake=c.object({path:c.string().min(1),text:c.string().max(64e3)}),yke=c.enum(["text_edit","redact","delete_block"]),bke=c.object({id:c.string(),thread_block_id:c.string(),editor:c.object({id:c.string(),display_name:c.string()}),kind:yke,path:c.string().nullable(),previous_text:c.string().nullable(),new_text:c.string().nullable(),created_at:c.string()}),Rke=c.object({type:c.literal("list"),list_type:c.literal("thread_block_edit"),objects:c.array(bke)}),Ike=c.object({organization_count:c.number().int().nonnegative(),user_count:c.number().int().nonnegative(),thread_count:c.number().int().nonnegative(),thread_count_last_24h:c.number().int().nonnegative(),user_count_last_24h:c.number().int().nonnegative()}),Oke=c.object({id:c.string(),name:c.string(),email_domains:c.array(c.string()),stytch_org_id:c.string(),member_count:c.number().int().nonnegative(),thread_count:c.number().int().nonnegative(),default_thread_visibility:c.enum(["private","workspace","public"]),created_at:c.string()}),Cke=c.object({type:c.literal("list"),list_type:c.literal("admin_organization"),objects:c.array(Oke)}),mW=c.object({id:c.string(),name:c.string()}),Nke=c.object({id:c.string(),display_name:c.string(),stytch_id:c.string().nullable(),thread_count:c.number().int().nonnegative(),onboarded_at:c.string().nullable(),created_at:c.string(),organizations:c.array(mW)}),xke=c.object({q:c.string().trim().min(1).max(120).optional()}),Pke=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1)}),Mke=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1),is_following:c.literal(!0)}),vke=c.object({type:c.literal("list"),list_type:c.literal("admin_user"),objects:c.array(Nke)}),kke=c.object({id:c.string(),title:c.string(),started_at:c.string(),created_at:c.string(),deleted_at:c.string().nullable(),visibility:c.enum(["private","workspace","public"]),harness:qo,author:mx,organization:mW}),Lke=c.object({type:c.literal("list"),list_type:c.literal("admin_thread"),has_more:c.boolean(),objects:c.array(kke)}),wke=c.object({before:c.string().min(1).optional(),after:c.string().min(1).optional()}),J7=c.object({token:c.string().min(1),thread_id:c.string().min(1)}),Dke=c.object({visitor:c.string().min(1).max(64).optional()}),Uke=c.object({user_id:c.string(),display_name:c.string(),shares_sent:c.number().int().nonnegative(),unique_viewers:c.number().int().nonnegative(),attributed_signups:c.number().int().nonnegative()}),Bke=c.object({window_days:c.number().int().positive(),shares_sent:c.number().int().nonnegative(),unique_viewers:c.number().int().nonnegative(),attributed_signups:c.number().int().nonnegative(),active_sharers:c.number().int().nonnegative(),k_factor:c.number().nullable(),shares_sent_sparkline:c.array(c.number().int().nonnegative()),top_sharers:c.array(Uke)}),Fke=c.object({windows:c.array(Bke)}),Gke=c.object({quoted_text:c.string().min(1),comment:c.string().nullable(),type:c.enum(["comment","highlight:trapdoor"])}),jke=aW,Hke=iW.extend({comment_thread_id:c.string().min(1)}),Vke=c.object({markdown:c.string().min(1)}),qke=c.object({storage_url:c.string().min(1),thread_file_id:c.string().min(1),parsed_plan_block:W7,critiqued_plan_block:W7,annotations:c.array(Gke),comment_threads:c.array(jke),comments:c.array(Hke)}),od=c.enum(ax),_W=c.object({skills:c.boolean(),workspace_scope:c.boolean(),review:c.boolean(),shared_thread_ttl_days:c.number().int().positive().nullable()}),fx=c.object({subject_type:c.enum(["user","organization"]),subject_id:c.string().min(1),effective_plan:od,admin_override:od.nullable(),stripe_subscription_status:c.string().nullable(),cancel_at_period_end:c.boolean(),current_period_end:c.string().nullable(),seat_quantity:c.number().int().positive(),member_count:c.number().int().nonnegative().nullable(),features:_W}),$ke=c.object({effective_plan:od,features:_W,user:fx,organization:fx.nullable()}),zke=c.object({plan:c.enum(["creator","team"]),seat_quantity:c.number().int().positive().optional()}),Yke=c.object({checkout_url:c.string().min(1)}),Wke=c.object({portal_url:c.string().min(1)}),Kke=c.object({seat_quantity:c.number().int().positive()}),X7=c.object({plan:od.nullable()}),d0=c.object({subject_type:c.enum(["user","organization"]),subject_id:c.string().min(1),label:c.string().min(1),effective_plan:od,admin_override:od.nullable(),stripe_subscription_status:c.string().nullable(),seat_quantity:c.number().int().positive()}),Qke=c.object({users:c.array(d0),organizations:c.array(d0)}),Jke=c.object({id:c.string().min(1),display_name:c.string().min(1),handle:c.string().nullable(),avatar_url:c.string().nullable()}),Xke=c.object({thread_id:c.string().min(1),title:c.string().min(1),author:Jke,last_active_at:c.string().datetime(),last_block_excerpt:c.string().nullable(),last_block_kind:c.string().min(1).nullable(),is_streaming:c.boolean()}),Zke=c.object({type:c.literal("list"),list_type:c.literal("live_thread"),objects:c.array(Xke)}),eLe=c.object({thread_id:c.string().min(1)}),tLe=c.object({thread_id:c.string().min(1),last_seen_at:c.string().datetime(),started_at:c.string().datetime()}),nLe=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1),is_following:c.literal(!0),follower_count:c.number().int().nonnegative()}),rLe=c.object({follower_id:c.string().min(1),followee_id:c.string().min(1),is_following:c.literal(!1),follower_count:c.number().int().nonnegative()}),hW=c.object({id:c.string().min(1),display_name:c.string().min(1),handle:c.string().nullable(),avatar_url:c.string().nullable(),bio:c.string().max(280).nullable(),is_following:c.boolean(),is_self:c.boolean()}),Z7=c.object({type:c.literal("list"),list_type:c.literal("user_follow"),objects:c.array(hW)}),oLe=c.object({date:c.string().regex(/^\d{4}-\d{2}-\d{2}$/),count:c.number().int().nonnegative()}),sLe=c.object({window_start:c.string().datetime(),window_end:c.string().datetime(),total_contributions:c.number().int().nonnegative(),days_active:c.number().int().nonnegative(),daily_average:c.number().nonnegative(),current_streak_days:c.number().int().nonnegative(),days:c.array(oLe)}),iLe=c.object({type:c.literal("thread_created"),occurred_at:c.string().datetime(),id:c.string().min(1),thread:c.object({id:c.string().min(1),title:c.string(),visibility:c.enum(["private","workspace","public"])})}),aLe=c.object({type:c.literal("comment_posted"),occurred_at:c.string().datetime(),id:c.string().min(1),comment_excerpt:c.string(),thread:c.object({id:c.string().min(1),title:c.string(),visibility:c.enum(["private","workspace","public"])})}),uLe=c.object({type:c.literal("project_published"),occurred_at:c.string().datetime(),id:c.string().min(1),project:c.object({id:c.string().min(1),name:c.string().min(1)})}),cLe=c.object({type:c.literal("user_followed"),occurred_at:c.string().datetime(),id:c.string().min(1),followee:hW}),lLe=c.discriminatedUnion("type",[iLe,aLe,uLe,cLe]),dLe=c.object({type:c.literal("list"),list_type:c.literal("user_activity"),objects:c.array(lLe)}),pLe=c.object({id:c.string().min(1),name:c.string().min(1),excerpt:c.string(),published_at:c.string().datetime(),updated_at:c.string().datetime()}),fLe=c.object({type:c.literal("list"),list_type:c.literal("profile_published_project"),objects:c.array(pLe)}),eW=c.object({id:c.string().min(1),published_at:c.string().datetime().nullable()}),mLe=c.enum(["avatar","banner"]),gW=c.enum(["image/png","image/jpeg","image/webp","image/gif"]),_Le=c.object({kind:mLe,content_type:gW,base64_data:c.string().min(1)}),hLe=c.object({substrate:c.enum(["s3","filesystem"]),storage_url:c.string().min(1)}),gLe=c.object({content_type:gW,base64_data:c.string().min(1)}),TLe=c.object({cover_status:_x,cover_url:c.string().min(1),cover_url_expires_at:c.string().min(1),cover_generated_at:c.string().min(1)}),ELe=nW,TW=OMe.router({health:{method:"GET",path:"/health",responses:{200:c.object({status:c.literal("ok")})},summary:"Health check"},whoAmI:{method:"GET",path:"/whoami",headers:c.object({authorization:c.string().min(1).optional(),"x-lore-referral-token":c.string().min(1).max(16).optional()}),responses:{200:MMe,401:A},summary:"Validate a WorkOS Bearer token and return member plus user fields"},getCliAuthConfig:{method:"GET",path:"/cli-auth/config",responses:{200:vMe,503:A},summary:"Return public WorkOS CLI Auth configuration for the Lore CLI"},getCliStatus:{method:"GET",path:"/users/me/cli-status",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Eve,401:A},summary:"Return whether the viewer has connected the Lore CLI (i.e., uploaded any thread under a non-unspecified harness), plus the latest upload timestamp."},recordHeartbeat:{method:"POST",path:"/heartbeat",headers:c.object({authorization:c.string().min(1).optional()}),body:eLe,responses:{200:tLe,401:A,403:A,404:A,422:A},summary:"Record (or refresh) a presence heartbeat for the authenticated user against one of their own threads. Idempotent; the daemon should call this every ~30s while a session is open."},listLiveThreads:{method:"GET",path:"/threads/live",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Zke,401:A,403:A},summary:"List members with user-block activity in the last 10 minutes. Org-scoped, deduped per author, max 10."},listThreads:{method:"GET",path:"/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:lke,responses:{200:Q7,401:A},summary:"List threads visible to the authenticated user"},getThread:{method:"GET",path:"/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:rd,404:A},summary:"Load a visible thread by id"},getSimilarThreads:{method:"GET",path:"/threads/:id/similar",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Q7,404:A,409:A},summary:"List the top 20 visible threads with the closest summary embedding"},getThreadRemixBrief:{method:"GET",path:"/threads/:id/remix",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:zve,401:A,403:A,404:A},summary:"Fetch a portable handoff brief that lets another agent continue this thread"},listThreadBlocks:{method:"GET",path:"/threads/:id/blocks",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),query:cke,responses:{200:uW,401:A},summary:"List blocks for a visible thread"},createThreadBlockCommentThread:{method:"POST",path:"/threads/:threadId/blocks/:blockId/comment-threads",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:XMe,responses:{201:ZMe,401:A,404:A},summary:"Create a new block-level comment thread on a visible thread block"},createThreadBlockComment:{method:"POST",path:"/threads/:threadId/blocks/:blockId/comment-threads/:commentThreadId/comments",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1),commentThreadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:nve,responses:{201:rve,401:A,404:A,409:A},summary:"Reply to a block-level comment thread on a visible thread block"},updateThreadBlockCommentThread:{method:"PATCH",path:"/threads/:threadId/blocks/:blockId/comment-threads/:commentThreadId",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1),commentThreadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:ive,responses:{200:ave,401:A,404:A},summary:"Resolve or reopen a block-level comment thread on a visible thread block"},listSkills:{method:"GET",path:"/skills",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:mke,401:A},summary:"Aggregate skill usage across threads the viewer can see"},getSkillDetail:{method:"GET",path:"/skills/:name",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:hke,401:A,404:A},summary:"Per-skill detail: usage stats + visible threads that invoked it"},getSkillRaw:{method:"GET",path:"/skills/:name/raw",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:c.string(),401:A,403:A,404:A},summary:"Raw SKILL.md body for a skill (download / install path)"},publishSkill:{method:"PUT",path:"/skills/:name",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:gke,responses:{200:Tke,401:A,403:A,422:A},summary:"Publish or capture a skill body for the caller\u2019s workspace"},mintSkillShare:{method:"POST",path:"/skills/:name/share",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:Eke,401:A,403:A,404:A},summary:"Mint (or rotate) a public share token for a skill"},revokeSkillShare:{method:"DELETE",path:"/skills/:name/share",pathParams:c.object({name:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{204:c.null(),401:A,403:A,404:A},summary:"Revoke an active share token for a skill"},getSharedSkill:{method:"GET",path:"/shared-skills/:token",pathParams:c.object({token:c.string().min(1)}),responses:{200:Ske,404:A},summary:"Read a shared skill by its public share token (no auth)"},redactThreadBlock:{method:"POST",path:"/threads/:threadId/blocks/:blockId/redactions",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:dke,responses:{200:tm,401:A,403:A,404:A,422:A},summary:"Permanently redact a character range within a text field of a thread block (author only)"},updateThreadBlockText:{method:"PATCH",path:"/threads/:threadId/blocks/:blockId/text",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Ake,responses:{200:tm,401:A,403:A,404:A,422:A},summary:"Replace a single text leaf in a thread block with new content (author only)"},critiqueThreadBlock:{method:"POST",path:"/threads/:threadId/blocks/:blockId/critique",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:tm,401:A,403:A,404:A,409:A,422:A},summary:"Critique a plan block once and persist its annotations as nested comment threads (author only)"},deleteThreadBlock:{method:"DELETE",path:"/threads/:threadId/blocks/:blockId",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.null(),401:A,403:A,404:A},summary:"Soft-delete a thread block (author only)"},listThreadBlockEdits:{method:"GET",path:"/threads/:threadId/blocks/:blockId/edits",pathParams:c.object({threadId:c.string().min(1),blockId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Rke,401:A,404:A},summary:"List edits made to a thread block (visible to anyone who can see the thread)"},listThreadDecisions:{method:"GET",path:"/threads/:id/decisions",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:$ve,401:A,404:A},summary:"List AI-extracted user decisions for a thread, in chronological order"},updateThread:{method:"PATCH",path:"/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Xve,responses:{200:rd,401:A,403:A,404:A},summary:"Update thread visibility (author only)"},deleteThread:{method:"DELETE",path:"/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.null(),401:A,403:A,404:A},summary:"Soft-delete a thread (author only)"},generateThreadCard:{method:"POST",path:"/threads/:id/card/generate",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:c.object({cover_status:_x,how_to_status:dW}),401:A,403:A,404:A,429:A.extend({retry_after_seconds:c.number().int().nonnegative()})},summary:"Enqueue cover image + how-to recipe generation for the thread. Author-only. Idempotent \u2014 recently-fired statuses are not double-enqueued. Rate-limited: at most one cover generation per minute per thread (cooldown begins when the previous cover finishes). Used to populate cards on legacy threads (created before Lore Cards) and to retry after a 'failed' status or opt back in from 'disabled'."},uploadThreadCover:{method:"POST",path:"/threads/:id/card/cover/upload",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:gLe,responses:{200:TLe,401:A,403:A,404:A,413:A,422:A},summary:"Upload a custom cover image for a thread. Author or Tanagram admin only. Bytes go to the same storage substrate the AI cover uses (S3 in prod, filesystem in dev), and the threads row is updated atomically with the new cover_storage_url, cover_status='ready', cover_generated_at=now, cover_model='user-uploaded' so subsequent re-rolls / how-to fan-outs treat the upload like any other ready cover."},castThreadVote:{method:"PUT",path:"/threads/:id/vote",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Ove,responses:{200:K7,401:A,403:A,404:A,422:A},summary:"Cast or change the caller's up/down vote on a public thread. Idempotent \u2014 re-casting the same value is a no-op."},clearThreadVote:{method:"DELETE",path:"/threads/:id/vote",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:K7,401:A,404:A},summary:"Clear the caller's vote on a thread. No-op when the caller hasn't voted."},listThreadComments:{method:"GET",path:"/threads/:threadId/comments",pathParams:c.object({threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Nve,403:A,404:A},summary:"List all (live + soft-deleted as tombstones) comments on a public thread, flat with parent_comment_id pointers."},createThreadComment:{method:"POST",path:"/threads/:threadId/comments",pathParams:c.object({threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:xve,responses:{201:Pve,401:A,403:A,404:A,422:A},summary:"Post a top-level or reply comment on a public thread."},updateThreadComment:{method:"PATCH",path:"/threads/:threadId/comments/:commentId",pathParams:c.object({threadId:c.string().min(1),commentId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:Mve,responses:{200:vve,401:A,403:A,404:A,422:A},summary:"Edit your own thread comment (author only; rejects edits to soft-deleted rows)."},deleteThreadComment:{method:"DELETE",path:"/threads/:threadId/comments/:commentId",pathParams:c.object({threadId:c.string().min(1),commentId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:kve,401:A,403:A,404:A},summary:"Soft-delete your own thread comment (author only). Idempotent."},getThreadPreview:{method:"GET",path:"/threads/:id/preview",pathParams:c.object({id:c.string().min(1)}),responses:{200:Zve,404:A},summary:"Unauthenticated, visibility-redacted metadata for OG / social preview consumers"},createUser:{method:"POST",path:"/users",headers:c.object({authorization:c.string().min(1).optional()}),body:VMe,responses:{201:px,401:A},summary:"Create a user record with ApiKey authentication"},getUser:{method:"GET",path:"/users/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:nW,404:A},summary:"Public profile for a user. Optional auth \u2014 unauthenticated viewers see only public thread metadata; signed-in viewers see counts scoped to the threads they'd normally be able to access."},updateCurrentUser:{method:"PATCH",path:"/users/me",headers:c.object({authorization:c.string().min(1).optional()}),body:kMe,responses:{200:px,401:A,409:A,422:A},summary:"Update the authenticated user profile"},getUserByHandle:{method:"GET",path:"/users/by-handle/:handle",pathParams:c.object({handle:tW}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:ELe,404:A},summary:"Resolve a public profile by handle \u2014 same shape as GET /users/:id but keyed on the user's chosen handle."},listUserActivity:{method:"GET",path:"/users/:id/activity",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),query:c.object({limit:c.coerce.number().int().positive().max(100).optional()}),responses:{200:dLe,404:A},summary:"Reverse-chronological activity feed for a user, scoped to what the viewer can see (same visibility rules as listThreads)."},getUserContributions:{method:"GET",path:"/users/:id/contributions",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:sLe,404:A},summary:"Daily contribution counts for the trailing 365 days \u2014 counts thread blocks the user authored on threads visible to the viewer."},listUserFollowers:{method:"GET",path:"/users/:id/followers",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Z7,404:A},summary:"List the users following a given user."},listUserFollowing:{method:"GET",path:"/users/:id/following",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Z7,404:A},summary:"List the users a given user is following."},followUser:{method:"POST",path:"/users/:id/follow",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:nLe,401:A,404:A,409:A,422:A},summary:"Follow another user. Idempotent \u2014 repeating the call is a no-op."},unfollowUser:{method:"DELETE",path:"/users/:id/follow",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:rLe,401:A,404:A},summary:"Unfollow a user. Idempotent \u2014 repeating the call is a no-op."},listProfilePublishedProjects:{method:"GET",path:"/users/:id/projects",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:fLe,404:A},summary:"Projects the user has published to their public profile."},publishProject:{method:"POST",path:"/projects/:id/publish",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:eW,401:A,403:A,404:A},summary:"Publish a project to the author's public profile. Stamps published_at with `now()`. Author-only."},unpublishProject:{method:"DELETE",path:"/projects/:id/publish",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:eW,401:A,403:A,404:A},summary:"Remove a project from the author's public profile."},uploadProfileImage:{method:"POST",path:"/users/me/profile-image",headers:c.object({authorization:c.string().min(1).optional()}),body:_Le,responses:{200:hLe,401:A,413:A,422:A},summary:"Upload an avatar or banner image (base64-encoded JSON body). The API streams the bytes to its configured storage substrate using its own credentials and returns the canonical storage URL the client passes to PATCH /users/me."},listOrganizationMembers:{method:"GET",path:"/organization/members",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:wMe,401:A},summary:"List members of the authenticated user\u2019s organization"},createOrganizationInvite:{method:"POST",path:"/organization/invites",headers:c.object({authorization:c.string().min(1).optional()}),body:DMe,responses:{201:UMe,401:A,403:A,409:A,422:A},summary:"Invite a teammate to the authenticated user\u2019s workspace via WorkOS AuthKit"},ensureWorkOSOrganization:{method:"POST",path:"/organization/workos/ensure",headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{200:BMe,401:A,422:A,503:A},summary:"Create or reuse a WorkOS organization for the authenticated user\u2019s non-public email domain and add the user as a member."},listRepositories:{method:"GET",path:"/repositories",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:gve,401:A,403:A},summary:"List repositories known to the authenticated user\u2019s organization across threads and building blocks"},createBuildingBlockSnapshots:{method:"POST",path:"/building_blocks",headers:c.object({authorization:c.string().min(1).optional()}),body:$Me,responses:{201:pve,401:A,403:A},summary:"Create building block snapshots for the authenticated user\u2019s organization"},getPlan:{method:"GET",path:"/plans/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:cve,401:A,403:A,404:A},summary:"Load a thread-backed plan container visible to the authenticated user, including all visible plan revisions in that thread"},createPlanCommentThread:{method:"POST",path:"/plans/:id/comment-threads",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:QMe,responses:{201:JMe,401:A,403:A,404:A,422:A},summary:"Create a new inline comment thread on a specific revision inside a thread-backed plan container"},createPlanComment:{method:"POST",path:"/plans/:id/comment-threads/:threadId/comments",pathParams:c.object({id:c.string().min(1),threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:eve,responses:{201:tve,401:A,403:A,404:A,409:A},summary:"Reply to an inline comment thread on a thread-backed plan container"},updatePlanCommentThread:{method:"PATCH",path:"/plans/:id/comment-threads/:threadId",pathParams:c.object({id:c.string().min(1),threadId:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:ove,responses:{200:sve,401:A,403:A,404:A},summary:"Resolve or reopen an inline comment thread on a thread-backed plan container"},listPlans:{method:"GET",path:"/plans",headers:c.object({authorization:c.string().min(1).optional()}),query:dve,responses:{200:lve,401:A,403:A},summary:"List thread-backed plan containers visible to the authenticated user in their organization, ordered by latest visible revision and optionally filtered by author or repository"},listBuildingBlockSnapshots:{method:"GET",path:"/building_blocks",headers:c.object({authorization:c.string().min(1).optional()}),query:mve,responses:{200:fve,401:A,403:A},summary:"List building block snapshots for the authenticated user\u2019s organization and repo origin path"},listUploadSessions:{method:"GET",path:"/upload_sessions",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:uke,401:A},summary:"List recent upload sessions for the authenticated user"},createUploadSession:{method:"POST",path:"/upload_sessions",headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({thread_files:c.array(yve).nonempty()}),responses:{201:Jve,400:A,401:A},summary:"Create an upload session with presigned URLs for file uploads"},completeUploadSession:{method:"POST",path:"/upload_sessions/:id/complete",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({thread_files:c.array(Yve).nonempty()}),responses:{200:Kve,400:A,401:A,404:A,409:A,422:A},summary:"Complete an upload session after files have been uploaded to storage"},adminStats:{method:"GET",path:"/admin/stats",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Ike,401:A,403:A},summary:"Cross-org operational counts. Tanagram admins only."},adminListOrganizations:{method:"GET",path:"/admin/organizations",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Cke,401:A,403:A},summary:"List every organization with member and thread counts. Tanagram admins only."},adminListUsers:{method:"GET",path:"/admin/users",query:xke,headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:vke,401:A,403:A},summary:"List every user with their org memberships and thread count. Tanagram admins only."},adminListThreads:{method:"GET",path:"/admin/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:wke,responses:{200:Lke,401:A,403:A},summary:"List live threads across every organization. Tanagram admins only."},adminForceFollow:{method:"POST",path:"/admin/connections/follow",headers:c.object({authorization:c.string().min(1).optional()}),body:Pke,responses:{200:Mke,401:A,403:A,404:A,422:A},summary:"Force follower->followee edge. Admin-only and non-destructive."},adminHardDeleteThread:{method:"DELETE",path:"/admin/threads/:id",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{204:c.null(),401:A,403:A,404:A},summary:"Permanently remove a thread. Tanagram admins only."},listCardFeed:{method:"GET",path:"/cards/feed",query:c.object({limit:c.coerce.number().int().min(1).max(48).optional()}),responses:{200:Vve},summary:"Slim feed of public threads with a ready cover image, ordered by cover_generated_at descending. Powers the landing-page UGC card scroll. Returns presigned cover URLs inline so the grid renders without a follow-up round trip per card."},listDiscoverThreads:{method:"GET",path:"/discover/threads",headers:c.object({authorization:c.string().min(1).optional()}),query:ske,responses:{200:oke},summary:"Feed of public threads with sort, harness filter, search, and cursor pagination. Auth is optional and populates viewer_vote."},discoverStats:{method:"GET",path:"/discover/stats",responses:{200:ike},summary:"Unauthenticated rollup of public-thread counts for the Discover header."},createWaitlistEntry:{method:"POST",path:"/waitlist_entries",body:FMe,responses:{201:GMe,409:A},summary:"Create an unauthenticated waitlist entry keyed by (location, contact)."},createShareToken:{method:"POST",path:"/threads/:id/share-token",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({}).optional(),responses:{201:J7,401:A,403:A,404:A,409:A},summary:"Mint a short share-link token for a public thread. Author only. The token powers `/s/:token` short URLs and enables k-factor attribution."},resolveShareToken:{method:"GET",path:"/referrals/resolve/:token",pathParams:c.object({token:c.string().min(1).max(16)}),query:Dke,responses:{200:J7,404:A},summary:"Resolve a share-link token to its thread and record the view. Unauthenticated by design."},adminGrowth:{method:"GET",path:"/admin/growth",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Fke,401:A,403:A},summary:"Share-link k-factor, funnel, sparkline, and top sharers by window. Tanagram admins only."},adminRunCritiquePlayground:{method:"POST",path:"/admin/critique-playground/run",headers:c.object({authorization:c.string().min(1).optional()}),body:Vke,responses:{200:qke,401:A,403:A,409:A},summary:"Admin-only critique playground that saves markdown to a file:// plan artifact and returns parsed + critiqued plan blocks."},getBillingState:{method:"GET",path:"/billing/state",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:$ke,401:A},summary:"Resolve the caller's plan, features, seat count, and any admin override."},createBillingCheckout:{method:"POST",path:"/billing/checkout",headers:c.object({authorization:c.string().min(1).optional()}),body:zke,responses:{200:Yke,400:A,401:A,403:A,503:A},summary:"Start a Stripe Checkout session for Creator ($29/mo) or Team ($19/seat/mo, min 2)."},createBillingPortal:{method:"POST",path:"/billing/portal",headers:c.object({authorization:c.string().min(1).optional()}),body:c.object({subject_type:c.enum(["user","organization"]).default("user")}).optional(),responses:{200:Wke,401:A,404:A,503:A},summary:"Open the Stripe customer portal so the subject can manage their subscription."},updateTeamSeats:{method:"PATCH",path:"/billing/team-seats",headers:c.object({authorization:c.string().min(1).optional()}),body:Kke,responses:{200:fx,400:A,401:A,403:A,404:A,503:A},summary:"Adjust the caller-organization's Team seat quantity (admin of that org only)."},adminListBilling:{method:"GET",path:"/admin/billing",headers:c.object({authorization:c.string().min(1).optional()}),responses:{200:Qke,401:A,403:A},summary:"List every user and org with current plan + override for the admin panel."},adminSetUserPlanOverride:{method:"PUT",path:"/admin/billing/users/:id/override",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:X7,responses:{200:d0,401:A,403:A,404:A},summary:"Admin override for a user's plan tier. Null clears the override."},adminSetOrganizationPlanOverride:{method:"PUT",path:"/admin/billing/organizations/:id/override",pathParams:c.object({id:c.string().min(1)}),headers:c.object({authorization:c.string().min(1).optional()}),body:X7,responses:{200:d0,401:A,403:A,404:A},summary:"Admin override for an organization's plan tier. Null clears the override."},projects:j7,docs:F7,mentions:H7,favorites:$7,search:Y7},{pathPrefix:"/api"});import om from"node:fs";import AW from"node:path";import EW from"node:os";import Ps from"node:path";function oo(){let t=Ve()==="dev"?".lore-dev":".lore";return Ps.join(EW.homedir(),t)}function nm(){return Ps.join(oo(),"log.txt")}function gx(){return Ps.join(oo(),"sync_state.json")}function SW(){return Ps.join(oo(),"upload_filters.json")}function f0(){return Ps.join(oo(),"status.json")}function Su(){return Ps.join(oo(),"install_source.json")}function m0(){return Ps.join(oo(),"skill_sync_state.json")}function Au(){return Ps.join(oo(),"bin","lore")}function rm(){let t=Ve();return t==="prod"?"ai.tanagram.lore":`ai.tanagram.lore.${t}`}function sd(){return Ps.join(EW.homedir(),"Library","LaunchAgents",`${rm()}.plist`)}function _0(){return AW.join(oo(),"token")}function sm(){let t;try{t=om.readFileSync(_0(),"utf8")}catch(n){if(n&&typeof n=="object"&&"code"in n&&n.code==="ENOENT")return{token:"",source:"none"};throw n}let e=t.trim();return!e||SLe(e,new Date)?{token:"",source:"none"}:{token:e,source:"file"}}function fn(){return sm().token}function yW(){return om.existsSync(_0())}function bW(t){let e=_0();om.mkdirSync(AW.dirname(e),{recursive:!0,mode:448}),om.writeFileSync(e,t,{mode:384})}function RW(){try{om.rmSync(_0())}catch(t){if(t&&typeof t=="object"&&"code"in t&&t.code==="ENOENT")return;throw t}}function Tx(t){let e=t.split(".");if(e.length<2)throw new Error("invalid JWT format");return JSON.parse(Buffer.from(e[1],"base64url").toString("utf8"))}function SLe(t,e){let n;try{n=Tx(t)}catch{return!1}return typeof n.exp!="number"?!1:e.getTime()>=n.exp*1e3}var ALe={dev:"http://localhost:4000",prod:"https://lore-api.tanagram.ai"};function yLe(t=Ve(),e=process.env.LORE_API_ORIGIN){let n=e?.trim();return n?n.replace(/\/$/,""):ALe[t]}function Xe(t={}){let e=t.token??fn();return ix(TW,{baseUrl:yLe(),baseHeaders:{"User-Agent":_7(),...e?{authorization:`Bearer ${e}`}:{}}})}import OW from"node:fs";var IW=null;function bLe(){let t=oo();IW!==t&&(OW.mkdirSync(t,{recursive:!0}),IW=t)}function RLe(t){let e=typeof t=="string"?t:JSON.stringify(t);return/[\s"=]/.test(e)?JSON.stringify(e):e}function ILe(t,e,n){let r=`${new Date().toISOString()} ${t} ${e}`;if(!n)return`${r}
|
|
41
41
|
`;let o=Object.entries(n).map(([s,i])=>`${s}=${RLe(i)}`).join(" ");return o?`${r} ${o}
|
|
42
42
|
`:`${r}
|
|
43
43
|
`}function Ex(t,e,n){try{let r=ILe(t,e,n);bLe(),OW.appendFileSync(nm(),r),Ve()==="dev"&&process.stderr.write(r)}catch{}}var ie={info(t,e){Ex("info",t,e)},warn(t,e){Ex("warn",t,e)},error(t,e){Ex("error",t,e)}};import{execFile as G2e}from"node:child_process";import qn from"node:fs/promises";import j2e from"node:os";import ws from"node:path";import{promisify as H2e}from"node:util";import h0 from"node:fs/promises";import OLe from"node:path";var g0=class{status={};async markRunning(){let e=new Date().toISOString();this.status={pid:process.pid,state:"running",started_at:e,last_heartbeat_at:e},await this.persist()}async heartbeat(){this.status.pid=process.pid,this.status.last_heartbeat_at=new Date().toISOString(),await this.persist()}async markAuthenticated(){this.status.auth="logged_in",await this.heartbeat()}async markSyncSuccess(e){let n=new Date().toISOString();this.status.pid=process.pid,this.status.auth="logged_in",this.status.last_heartbeat_at=n,this.status.last_completed_at=n,this.status.last_success_at=n,this.status.last_error=void 0,this.status.last_thread_ids=[...e],await this.persist()}async setPendingWatchers(e){this.status.pid=process.pid,this.status.state="running",this.status.pending_watchers=e.map(n=>({session_id:n.sessionId||void 0,project:n.project||void 0,transcript_path:n.transcriptPath||void 0,expires_at:n.expiresAt.toISOString()})),await this.heartbeat()}async markLoggedOut(){let e=new Date().toISOString();this.status.pid=process.pid,this.status.state="logged_out",this.status.auth="logged_out",this.status.last_heartbeat_at=e,this.status.last_completed_at=e,this.status.last_error=void 0,this.status.last_thread_ids=void 0,this.status.pending_watchers=void 0,await this.persist()}async markSuccess(e){let n=new Date().toISOString();this.status.pid=process.pid,this.status.state="idle",this.status.auth="logged_in",this.status.last_heartbeat_at=n,this.status.last_completed_at=n,this.status.last_success_at=n,this.status.last_error=void 0,this.status.last_thread_ids=[...e],this.status.pending_watchers=void 0,await this.persist()}async markError(e){let n=new Date().toISOString();this.status.pid=process.pid,this.status.state="error",this.status.last_heartbeat_at=n,this.status.last_completed_at=n,this.status.last_error=e instanceof Error?e.message:String(e),this.status.pending_watchers=void 0,await this.persist()}async persist(){let e=f0();await h0.mkdir(OLe.dirname(e),{recursive:!0,mode:448}),await h0.writeFile(e,`${JSON.stringify(CLe(this.status),null,2)}
|
|
@@ -47,7 +47,7 @@ Url: ${vh(t)}`),!0}return!1}function o_e(t,e){return e?.length?Ch(t).some(n=>Ws(
|
|
|
47
47
|
`),ie.info("auto_update_pnpm_manual_update_required",{old_version:t,new_version:a}),await LW(r,i,!1),i;let u=HLe(s);if(!u)return i;try{ie.info("auto_update_command_started",{command:[u.command,...u.args].join(" ")});let l=await n.run(u.command,u.args);i.newVersion=a,ie.info("auto_update_command_succeeded",{package_manager:s,old_version:t,new_version:a,stdout:l.stdout||void 0,stderr:l.stderr||void 0})}catch(l){i.error=id(l),ie.warn("auto_update_command_failed",{package_manager:s,old_version:t,new_version:a,error:i.error,...qLe(l)})}return await LW(r,i,!!i.newVersion),i}var jLe={async output(t,e){return(await wW(t,e)).stdout.trim()},run(t,e){return wW(t,e)}};function HLe(t){switch(t){case"npm":return{command:"npm",args:["install","-g",im]};case"yarn":return{command:"yarn",args:["global","add",im]};default:return}}async function LW(t,e,n){await t?.("lore.cli.auto_update",{package_manager:e.packageManager,old_version:e.oldVersion,new_version:e.latestVersion??"",auto_updated:n,...e.error?{error:e.error}:{}})}async function VLe(){let t=process.argv[1];return t?BW(t):""}async function BW(t){try{return yx.resolve(await wLe.realpath(t))}catch{return yx.resolve(t)}}function wW(t,e){return new Promise((n,r)=>{let o=LLe(t,e,{stdio:["ignore","pipe","pipe"]}),s="",i="",a=setTimeout(()=>{o.kill("SIGTERM")},DLe);o.stdout?.setEncoding("utf8"),o.stderr?.setEncoding("utf8"),o.stdout?.on("data",u=>{s+=u}),o.stderr?.on("data",u=>{i+=u}),o.on("error",u=>{clearTimeout(a),r(DW(u,s,i))}),o.on("close",(u,l)=>{if(clearTimeout(a),u===0){n({stdout:s.trim(),stderr:i.trim()});return}let d=l?`signal ${l}`:`exit code ${u??"unknown"}`;r(DW(new Error(`${t} ${e.join(" ")} failed with ${d}`),s,i))})})}function DW(t,e,n){let r=t;return r.stdout=e.trim(),r.stderr=n.trim(),r}function qLe(t){if(!t||typeof t!="object")return{};let e=t;return{...e.stdout?{stdout:e.stdout}:{},...e.stderr?{stderr:e.stderr}:{}}}import Ls from"node:fs/promises";import $0 from"node:os";import Gt from"node:path";import $Le from"node:crypto";import am from"node:fs/promises";import zLe from"node:os";import T0 from"node:path";async function cr(t){try{let e=await am.stat(t);return{exists:!0,size:e.size,modTimeUnixMs:e.mtime.getTime()}}catch(e){if(ur(e,"ENOENT"))return{exists:!1,size:0,modTimeUnixMs:0};throw e}}function Rx(t,e){return t.exists!==e.exists?!0:t.exists?t.size!==e.size||t.modTimeUnixMs!==e.modTimeUnixMs:!1}async function yu(t){let e=await am.mkdtemp(T0.join(zLe.tmpdir(),"lore-upload-")),n=T0.join(e,T0.basename(t));await am.copyFile(t,n);let r=await am.readFile(n);return{tempPath:n,md5:$Le.createHash("md5").update(r).digest("hex")}}async function ud(t){await am.rm(T0.dirname(t),{recursive:!0,force:!0})}import um from"node:fs/promises";import $o from"node:path";async function Ix(t){try{return await um.stat(t),!0}catch{return!1}}function YLe(t,e){let r=/^gitdir:\s*(.+)$/m.exec(e.trim())?.[1]?.trim();return r?$o.resolve($o.dirname(t),r):null}async function WLe(t){let e=$o.join(t,"config");if(await Ix(e))return e;let n;try{n=(await um.readFile($o.join(t,"commondir"),"utf8")).trim()}catch{return null}if(!n)return null;let r=$o.join($o.resolve(t,n),"config");return await Ix(r)?r:null}async function FW(t){let e=t.trim();if(!e)return null;for(;;){let n=$o.join(e,".git");try{let o=await um.stat(n);if(o.isDirectory()){let s=$o.join(n,"config");if(await Ix(s))return{root:e,configPath:s}}else if(o.isFile()){let s=YLe(n,await um.readFile(n,"utf8")),i=s?await WLe(s):null;if(i)return{root:e,configPath:i}}}catch{}let r=$o.dirname(e);if(r===e)return null;e=r}}async function KLe(t){return(await FW(t))?.configPath??null}async function E0(t){return(await FW(t))?.root??null}async function cm(t){let e=await KLe($o.resolve(t.trim()));if(!e)return"";let n;try{n=await um.readFile(e,"utf8")}catch{return""}let r=QLe(n),o=Ox(r);return o?`${o.owner}/${o.name}`:""}function QLe(t){let e=!1;for(let n of t.split(`
|
|
48
48
|
`)){let r=n.trim();if(!r||r.startsWith("#")||r.startsWith(";"))continue;if(r.startsWith("[")&&r.endsWith("]")){e=r==='[remote "origin"]';continue}if(!e)continue;let o=r.indexOf("=");if(!(o<0)&&r.slice(0,o).trim()==="url")return r.slice(o+1).trim()}return""}function Ox(t){let e=t.trim();if(!e)return null;let n="",r=/^(?:ssh:\/\/)?git@[^/:]+[:/](.+)$/.exec(e);if(r)n=r[1]??"";else try{n=new URL(e).pathname.replace(/^\/+/,"")}catch{n=e}n=n.replace(/\.git$/,"").replace(/^\/+|\/+$/g,"");let o=n.split("/").filter(Boolean);if(o.length<2)return null;let[s,i]=o.slice(-2);return!s||!i?null:{owner:s,name:i}}import g2e from"node:fs/promises";import gQ from"node:os";import TQ from"node:path";import{ReadableStream as T2e}from"node:stream/web";function GW(t){return typeof t=="object"&&t!==null}function jW(t){let e=new Set,n=[];for(let r of t){if(r.type!=="assistant")continue;let o=r.message,s=Array.isArray(o?.content)?o.content:[];for(let i of s){if(!GW(i)||i.type!=="tool_use"||i.name!=="Skill")continue;let a=i.input;if(!GW(a))continue;let u=a.skill;if(typeof u!="string")continue;let l=u.trim();l.length!==0&&(e.has(l)||(e.add(l),n.push(l)))}}return n}import l2e from"node:crypto";function mn(t){this.content=t}mn.prototype={constructor:mn,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),s=r.content.slice();return o==-1?s.push(n||t,e):(s[o+1]=e,n&&(s[o]=n)),new mn(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new mn(n)},addToStart:function(t,e){return new mn([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new mn(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),s=r.find(t);return o.splice(s==-1?o.length:s,0,e,n),new mn(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=mn.from(t),t.size?new mn(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=mn.from(t),t.size?new mn(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=mn.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};mn.from=function(t){if(t instanceof mn)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new mn(e)};var Cx=mn;function zW(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),s=e.child(r);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(let i=0;o.text[i]==s.text[i];i++)n++;return n}if(o.content.size||s.content.size){let i=zW(o.content,s.content,n+1);if(i!=null)return i}n+=o.nodeSize}}function YW(t,e,n,r){for(let o=t.childCount,s=e.childCount;;){if(o==0||s==0)return o==s?null:{a:n,b:r};let i=t.child(--o),a=e.child(--s),u=i.nodeSize;if(i==a){n-=u,r-=u;continue}if(!i.sameMarkup(a))return{a:n,b:r};if(i.isText&&i.text!=a.text){let l=0,d=Math.min(i.text.length,a.text.length);for(;l<d&&i.text[i.text.length-l-1]==a.text[a.text.length-l-1];)l++,n--,r--;return{a:n,b:r}}if(i.content.size||a.content.size){let l=YW(i.content,a.content,n-1,r-1);if(l)return l}n-=u,r-=u}}var Xt=class t{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,s){for(let i=0,a=0;a<n;i++){let u=this.content[i],l=a+u.nodeSize;if(l>e&&r(u,o+a,s||null,i)!==!1&&u.content.size){let d=a+1;u.nodesBetween(Math.max(0,e-d),Math.min(u.content.size,n-d),r,o+d)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let s="",i=!0;return this.nodesBetween(e,n,(a,u)=>{let l=a.isText?a.text.slice(Math.max(e,u)-u,n-u):a.isLeaf?o?typeof o=="function"?o(a):o:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&r&&(i?i=!1:s+=r),s+=l},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)o.push(e.content[s]);return new t(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let s=0,i=0;i<n;s++){let a=this.content[s],u=i+a.nodeSize;u>e&&((i<e||u>n)&&(a.isText?a=a.cut(Math.max(0,e-i),Math.min(a.text.length,n-i)):a=a.cut(Math.max(0,e-i-1),Math.min(a.content.size,n-i-1))),r.push(a),o+=a.nodeSize),i=u}return new t(r,o)}cutByIndex(e,n){return e==n?t.empty:e==0&&n==this.content.length?this:new t(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new t(o,s)}addToStart(e){return new t([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new t(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return zW(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return YW(this,e,n,r)}findIndex(e){if(e==0)return S0(0,e);if(e==this.size)return S0(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=this.child(n),s=r+o.nodeSize;if(s>=e)return s==e?S0(n+1,s):S0(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return t.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new t(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return t.empty;let n,r=0;for(let o=0;o<e.length;o++){let s=e[o];r+=s.nodeSize,o&&s.isText&&e[o-1].sameMarkup(s)?(n||(n=e.slice(0,o)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new t(n||e,r)}static from(e){if(!e)return t.empty;if(e instanceof t)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new t([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};Xt.empty=new Xt([],0);var Nx={index:0,offset:0};function S0(t,e){return Nx.index=t,Nx.offset=e,Nx}function A0(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!A0(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!A0(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}var at=class t{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let s=e[o];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,o));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&A0(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let o=r.create(n.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return t.none;if(e instanceof t)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};at.none=[];var dm=class extends Error{},cd=class t{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=KW(this.content,e+this.openStart,n);return r&&new t(r,this.openStart,this.openEnd)}removeBetween(e,n){return new t(WW(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return t.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new t(Xt.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new t(e,r,o)}};cd.empty=new cd(Xt.empty,0,0);function WW(t,e,n){let{index:r,offset:o}=t.findIndex(e),s=t.maybeChild(r),{index:i,offset:a}=t.findIndex(n);if(o==e||s.isText){if(a!=n&&!t.child(i).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=i)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(WW(s.content,e-o-1,n-o-1)))}function KW(t,e,n,r){let{index:o,offset:s}=t.findIndex(e),i=t.maybeChild(o);if(s==e||i.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=KW(i.content,e-s-1,n,i);return a&&t.replaceChild(o,i.copy(a))}function JLe(t,e,n){if(n.openStart>t.depth)throw new dm("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new dm("Inconsistent open depths");return QW(t,e,n,0)}function QW(t,e,n,r){let o=t.index(r),s=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let i=QW(t,e,n,r+1);return s.copy(s.content.replaceChild(o,i))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let i=t.parent,a=i.content;return Ru(i,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:i,end:a}=XLe(n,t);return Ru(s,XW(t,i,a,e,r))}else return Ru(s,y0(t,e,r))}function JW(t,e){if(!e.type.compatibleContent(t.type))throw new dm("Cannot join "+e.type.name+" onto "+t.type.name)}function xx(t,e,n){let r=t.node(n);return JW(r,e.node(n)),r}function bu(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function lm(t,e,n,r){let o=(e||t).node(n),s=0,i=e?e.index(n):o.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(bu(t.nodeAfter,r),s++));for(let a=s;a<i;a++)bu(o.child(a),r);e&&e.depth==n&&e.textOffset&&bu(e.nodeBefore,r)}function Ru(t,e){return t.type.checkContent(e),t.copy(e)}function XW(t,e,n,r,o){let s=t.depth>o&&xx(t,e,o+1),i=r.depth>o&&xx(n,r,o+1),a=[];return lm(null,t,o,a),s&&i&&e.index(o)==n.index(o)?(JW(s,i),bu(Ru(s,XW(t,e,n,r,o+1)),a)):(s&&bu(Ru(s,y0(t,e,o+1)),a),lm(e,n,o,a),i&&bu(Ru(i,y0(n,r,o+1)),a)),lm(r,null,o,a),new Xt(a)}function y0(t,e,n){let r=[];if(lm(null,t,n,r),t.depth>n){let o=xx(t,e,n+1);bu(Ru(o,y0(t,e,n+1)),r)}return lm(e,null,n,r),new Xt(r)}function XLe(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)o=e.node(s).copy(Xt.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}var b0=class t{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)o+=r.child(s).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return at.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let a=r;r=o,o=a}let s=r.marks;for(var i=0;i<s.length;i++)s[i].type.spec.inclusive===!1&&(!o||!s[i].isInSet(o.marks))&&(s=s[i--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!o||!r[s].isInSet(o.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Mx(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,s=n;for(let i=e;;){let{index:a,offset:u}=i.content.findIndex(s),l=s-u;if(r.push(i,a,o+u),!l||(i=i.child(a),i.isText))break;s=l-1,o+=u+1}return new t(n,r,s)}static resolveCached(e,n){let r=HW.get(e);if(r)for(let s=0;s<r.elts.length;s++){let i=r.elts[s];if(i.pos==n)return i}else HW.set(e,r=new Px);let o=r.elts[r.i]=t.resolve(e,n);return r.i=(r.i+1)%ZLe,o}},Px=class{constructor(){this.elts=[],this.i=0}},ZLe=12,HW=new WeakMap,Mx=class{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},ewe=Object.create(null),Ki=class t{constructor(e,n,r,o=at.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||Xt.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&A0(this.attrs,n||e.defaultAttrs||ewe)&&at.sameSet(this.marks,r||at.none)}copy(e=null){return e==this.content?this:new t(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new t(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return cd.empty;let o=this.resolve(e),s=this.resolve(n),i=r?0:o.sharedDepth(n),a=o.start(i),l=o.node(i).content.cut(o.pos-a,s.pos-a);return new cd(l,o.depth-i,s.depth-i)}replace(e,n,r){return JLe(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return b0.resolveCached(this,e)}resolveNoCache(e){return b0.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ZW(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=Xt.empty,o=0,s=r.childCount){let i=this.contentMatchAt(e).matchFragment(r,o,s),a=i&&i.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let u=o;u<s;u++)if(!this.type.allowsMarks(r.child(u).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let s=this.contentMatchAt(e).matchType(r),i=s&&s.matchFragment(this.content,n);return i?i.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=at.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!at.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=Xt.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,o,r);return s.type.checkAttrs(s.attrs),s}};Ki.prototype.text=void 0;var vx=class t extends Ki{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ZW(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function ZW(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}var Iu=class t{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kx(e,n);if(r.next==null)return t.empty;let o=eK(r);r.next&&r.err("Unexpected trailing text");let s=awe(iwe(o));return uwe(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let s=n;o&&s<r;s++)o=o.matchType(e.child(s).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function s(i,a){let u=i.matchFragment(e,r);if(u&&(!n||u.validEnd))return Xt.from(a.map(l=>l.createAndFill()));for(let l=0;l<i.next.length;l++){let{type:d,next:p}=i.next[l];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(p)==-1){o.push(p);let f=s(p,a.concat(d));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),s=o.match;if(s.matchType(e)){let i=[];for(let a=o;a.type;a=a.via)i.push(a.type);return i.reverse()}for(let i=0;i<s.next.length;i++){let{type:a,next:u}=s.next[i];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!o.type||u.validEnd)&&(r.push({match:a.contentMatch,type:a,via:o}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let s=o+(r.validEnd?"*":" ")+" ";for(let i=0;i<r.next.length;i++)s+=(i?", ":"")+r.next[i].type.name+"->"+e.indexOf(r.next[i].next);return s}).join(`
|
|
49
49
|
`)}};Iu.empty=new Iu(!0);var kx=class{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function eK(t){let e=[];do e.push(twe(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function twe(t){let e=[];do e.push(nwe(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function nwe(t){let e=swe(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=rwe(t,e);else break;return e}function VW(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function rwe(t,e){let n=VW(t),r=n;return t.eat(",")&&(t.next!="}"?r=VW(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function owe(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let s in n){let i=n[s];i.isInGroup(e)&&o.push(i)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function swe(t){if(t.eat("(")){let e=eK(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=owe(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function iwe(t){let e=[[]];return o(s(t,0),n()),e;function n(){return e.push([])-1}function r(i,a,u){let l={term:u,to:a};return e[i].push(l),l}function o(i,a){i.forEach(u=>u.to=a)}function s(i,a){if(i.type=="choice")return i.exprs.reduce((u,l)=>u.concat(s(l,a)),[]);if(i.type=="seq")for(let u=0;;u++){let l=s(i.exprs[u],a);if(u==i.exprs.length-1)return l;o(l,a=n())}else if(i.type=="star"){let u=n();return r(a,u),o(s(i.expr,u),u),[r(u)]}else if(i.type=="plus"){let u=n();return o(s(i.expr,a),u),o(s(i.expr,u),u),[r(u)]}else{if(i.type=="opt")return[r(a)].concat(s(i.expr,a));if(i.type=="range"){let u=a;for(let l=0;l<i.min;l++){let d=n();o(s(i.expr,u),d),u=d}if(i.max==-1)o(s(i.expr,u),u);else for(let l=i.min;l<i.max;l++){let d=n();r(u,d),o(s(i.expr,u),d),u=d}return[r(u)]}else{if(i.type=="name")return[r(a,void 0,i.value)];throw new Error("Unknown expr type")}}}}function tK(t,e){return e-t}function qW(t,e){let n=[];return r(e),n.sort(tK);function r(o){let s=t[o];if(s.length==1&&!s[0].term)return r(s[0].to);n.push(o);for(let i=0;i<s.length;i++){let{term:a,to:u}=s[i];!a&&n.indexOf(u)==-1&&r(u)}}}function awe(t){let e=Object.create(null);return n(qW(t,0));function n(r){let o=[];r.forEach(i=>{t[i].forEach(({term:a,to:u})=>{if(!a)return;let l;for(let d=0;d<o.length;d++)o[d][0]==a&&(l=o[d][1]);qW(t,u).forEach(d=>{l||o.push([a,l=[]]),l.indexOf(d)==-1&&l.push(d)})})});let s=e[r.join(",")]=new Iu(r.indexOf(t.length-1)>-1);for(let i=0;i<o.length;i++){let a=o[i][1].sort(tK);s.next.push({type:o[i][0],next:e[a.join(",")]||n(a)})}return s}}function uwe(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],s=!o.validEnd,i=[];for(let a=0;a<o.next.length;a++){let{type:u,next:l}=o.next[a];i.push(u.name),s&&!(u.isText||u.hasRequiredAttrs())&&(s=!1),r.indexOf(l)==-1&&r.push(l)}s&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function nK(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function rK(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let s=t[r];if(s.hasDefault)o=s.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function oK(t,e,n,r){for(let o in e)if(!(o in t))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in t){let s=t[o];s.validate&&s.validate(e[o])}}function sK(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Lx(t,r,e[r]);return n}var R0=class t{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=sK(e,r.attrs),this.defaultAttrs=nK(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Iu.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:rK(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ki(this,this.computeAttrs(e),Xt.from(n),at.setFrom(r))}createChecked(e=null,n,r){return n=Xt.from(n),this.checkContent(n),new Ki(this,this.computeAttrs(e),n,at.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=Xt.from(n),n.size){let i=this.contentMatch.fillBefore(n);if(!i)return null;n=i.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(Xt.empty,!0);return s?new Ki(this,e,n.append(s),at.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){oK(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:at.none:e}static compile(e,n){let r=Object.create(null);e.forEach((s,i)=>r[s]=new t(s,n,i));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function cwe(t,e,n){let r=n.split("|");return o=>{let s=o===null?"null":typeof o;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${s}`)}}var Lx=class{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?cwe(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}},wx=class t{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=sK(e,o.attrs),this.excluded=null;let s=nK(this.attrs);this.instance=s?new at(this,s):null}create(e=null){return!e&&this.instance?this.instance:new at(this,rK(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((s,i)=>r[s]=new t(s,o++,n,i)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){oK(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},I0=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Cx.from(e.nodes),n.marks=Cx.from(e.marks||{}),this.nodes=R0.compile(this.spec.nodes,this),this.marks=wx.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],i=s.spec.content||"",a=s.spec.marks;if(s.contentMatch=r[i]||(r[i]=Iu.parse(i,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=a=="_"?null:a?$W(this,a.split(" ")):a==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],i=s.spec.excludes;s.excluded=i==null?[s]:i==""?[]:$W(this,i.split(" "))}this.nodeFromJSON=o=>Ki.fromJSON(this,o),this.markFromJSON=o=>at.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof R0){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new vx(r,r.defaultAttrs,e,at.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function $W(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],s=t.marks[o],i=s;if(s)n.push(s);else for(let a in t.marks){let u=t.marks[a];(o=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(o)>-1)&&n.push(i=u)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}var qx={};ea(qx,{arrayReplaceAt:()=>Vx,assign:()=>pd,escapeHtml:()=>vs,escapeRE:()=>zwe,fromCodePoint:()=>mm,has:()=>wwe,isMdAsciiPunct:()=>Nu,isPunctChar:()=>Cu,isSpace:()=>me,isString:()=>U0,isValidEntityCode:()=>B0,isWhiteSpace:()=>Ou,lib:()=>Ywe,normalizeReference:()=>xu,unescapeAll:()=>Ms,unescapeMd:()=>Gwe});var P0={};ea(P0,{decode:()=>pm,encode:()=>N0,format:()=>ld,parse:()=>fm});var iK={};function lwe(t){let e=iK[t];if(e)return e;e=iK[t]=[];for(let n=0;n<128;n++){let r=String.fromCharCode(n);e.push(r)}for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);e[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return e}function O0(t,e){typeof e!="string"&&(e=O0.defaultChars);let n=lwe(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let s=0,i=r.length;s<i;s+=3){let a=parseInt(r.slice(s+1,s+3),16);if(a<128){o+=n[a];continue}if((a&224)===192&&s+3<i){let u=parseInt(r.slice(s+4,s+6),16);if((u&192)===128){let l=a<<6&1984|u&63;l<128?o+="\uFFFD\uFFFD":o+=String.fromCharCode(l),s+=3;continue}}if((a&240)===224&&s+6<i){let u=parseInt(r.slice(s+4,s+6),16),l=parseInt(r.slice(s+7,s+9),16);if((u&192)===128&&(l&192)===128){let d=a<<12&61440|u<<6&4032|l&63;d<2048||d>=55296&&d<=57343?o+="\uFFFD\uFFFD\uFFFD":o+=String.fromCharCode(d),s+=6;continue}}if((a&248)===240&&s+9<i){let u=parseInt(r.slice(s+4,s+6),16),l=parseInt(r.slice(s+7,s+9),16),d=parseInt(r.slice(s+10,s+12),16);if((u&192)===128&&(l&192)===128&&(d&192)===128){let p=a<<18&1835008|u<<12&258048|l<<6&4032|d&63;p<65536||p>1114111?o+="\uFFFD\uFFFD\uFFFD\uFFFD":(p-=65536,o+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),s+=9;continue}}o+="\uFFFD"}return o})}O0.defaultChars=";/?:@&=+$,#";O0.componentChars="";var pm=O0;var aK={};function dwe(t){let e=aK[t];if(e)return e;e=aK[t]=[];for(let n=0;n<128;n++){let r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?e.push(r):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<t.length;n++)e[t.charCodeAt(n)]=t[n];return e}function C0(t,e,n){typeof e!="string"&&(n=e,e=C0.defaultChars),typeof n>"u"&&(n=!0);let r=dwe(e),o="";for(let s=0,i=t.length;s<i;s++){let a=t.charCodeAt(s);if(n&&a===37&&s+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(s+1,s+3))){o+=t.slice(s,s+3),s+=2;continue}if(a<128){o+=r[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&s+1<i){let u=t.charCodeAt(s+1);if(u>=56320&&u<=57343){o+=encodeURIComponent(t[s]+t[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(t[s])}return o}C0.defaultChars=";/?:@&=+$,-_.!~*'()#";C0.componentChars="-_.!~*'()";var N0=C0;function ld(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function x0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var pwe=/^([a-z0-9.+-]+:)/i,fwe=/:[0-9]*$/,mwe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_we=["<",">",'"',"`"," ","\r",`
|
|
50
|
-
`," "],hwe=["{","}","|","\\","^","`"].concat(_we),gwe=["'"].concat(hwe),uK=["%","/","?",";","#"].concat(gwe),cK=["/","?","#"],Twe=255,lK=/^[+a-z0-9A-Z_-]{0,63}$/,Ewe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dK={javascript:!0,"javascript:":!0},pK={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Swe(t,e){if(t&&t instanceof x0)return t;let n=new x0;return n.parse(t,e),n}x0.prototype.parse=function(t,e){let n,r,o,s=t;if(s=s.trim(),!e&&t.split("#").length===1){let l=mwe.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let i=pwe.exec(s);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,s=s.substr(i.length)),(e||i||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(i&&dK[i])&&(s=s.substr(2),this.slashes=!0)),!dK[i]&&(o||i&&!pK[i])){let l=-1;for(let _=0;_<cK.length;_++)r=s.indexOf(cK[_]),r!==-1&&(l===-1||r<l)&&(l=r);let d,p;l===-1?p=s.lastIndexOf("@"):p=s.lastIndexOf("@",l),p!==-1&&(d=s.slice(0,p),s=s.slice(p+1),this.auth=d),l=-1;for(let _=0;_<uK.length;_++)r=s.indexOf(uK[_]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=s.length),s[l-1]===":"&&l--;let f=s.slice(0,l);s=s.slice(l),this.parseHost(f),this.hostname=this.hostname||"";let m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){let _=this.hostname.split(/\./);for(let h=0,g=_.length;h<g;h++){let E=_[h];if(E&&!E.match(lK)){let S="";for(let b=0,R=E.length;b<R;b++)E.charCodeAt(b)>127?S+="x":S+=E[b];if(!S.match(lK)){let b=_.slice(0,h),R=_.slice(h+1),I=E.match(Ewe);I&&(b.push(I[1]),R.unshift(I[2])),R.length&&(s=R.join(".")+s),this.hostname=b.join(".");break}}}}this.hostname.length>Twe&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let a=s.indexOf("#");a!==-1&&(this.hash=s.substr(a),s=s.slice(0,a));let u=s.indexOf("?");return u!==-1&&(this.search=s.substr(u),s=s.slice(0,u)),s&&(this.pathname=s),pK[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};x0.prototype.parseHost=function(t){let e=fwe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var fm=Swe;var Dx={};ea(Dx,{Any:()=>M0,Cc:()=>v0,Cf:()=>fK,P:()=>dd,S:()=>k0,Z:()=>L0});var M0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v0=/[\0-\x1F\x7F-\x9F]/;var fK=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var dd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var k0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var L0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var mK=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(t=>t.charCodeAt(0)));var _K=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)));var Ux,Awe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Bx=(Ux=String.fromCodePoint)!==null&&Ux!==void 0?Ux:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function Fx(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=Awe.get(t))!==null&&e!==void 0?e:t}var Ft;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ft||(Ft={}));var ywe=32,Qi;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Qi||(Qi={}));function Gx(t){return t>=Ft.ZERO&&t<=Ft.NINE}function bwe(t){return t>=Ft.UPPER_A&&t<=Ft.UPPER_F||t>=Ft.LOWER_A&&t<=Ft.LOWER_F}function Rwe(t){return t>=Ft.UPPER_A&&t<=Ft.UPPER_Z||t>=Ft.LOWER_A&&t<=Ft.LOWER_Z||Gx(t)}function Iwe(t){return t===Ft.EQUALS||Rwe(t)}var Bt;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Bt||(Bt={}));var zo;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(zo||(zo={}));var w0=class{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zo.Strict}startEntity(e){this.decodeMode=e,this.state=Bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Bt.EntityStart:return e.charCodeAt(n)===Ft.NUM?(this.state=Bt.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Bt.NamedEntity,this.stateNamedEntity(e,n));case Bt.NumericStart:return this.stateNumericStart(e,n);case Bt.NumericDecimal:return this.stateNumericDecimal(e,n);case Bt.NumericHex:return this.stateNumericHex(e,n);case Bt.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|ywe)===Ft.LOWER_X?(this.state=Bt.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Bt.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,o){if(n!==r){let s=r-n;this.result=this.result*Math.pow(o,s)+parseInt(e.substr(n,s),o),this.consumed+=s}}stateNumericHex(e,n){let r=n;for(;n<e.length;){let o=e.charCodeAt(n);if(Gx(o)||bwe(o))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){let r=n;for(;n<e.length;){let o=e.charCodeAt(n);if(Gx(o))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ft.SEMI)this.consumed+=1;else if(this.decodeMode===zo.Strict)return 0;return this.emitCodePoint(Fx(this.result),this.consumed),this.errors&&(e!==Ft.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){let{decodeTree:r}=this,o=r[this.treeIndex],s=(o&Qi.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){let i=e.charCodeAt(n);if(this.treeIndex=Owe(r,o,this.treeIndex+Math.max(1,s),i),this.treeIndex<0)return this.result===0||this.decodeMode===zo.Attribute&&(s===0||Iwe(i))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],s=(o&Qi.VALUE_LENGTH)>>14,s!==0){if(i===Ft.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==zo.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:n,decodeTree:r}=this,o=(r[n]&Qi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){let{decodeTree:o}=this;return this.emitCodePoint(n===1?o[e]&~Qi.VALUE_LENGTH:o[e+1],r),n===3&&this.emitCodePoint(o[e+2],r),r}end(){var e;switch(this.state){case Bt.NamedEntity:return this.result!==0&&(this.decodeMode!==zo.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Bt.NumericDecimal:return this.emitNumericEntity(0,2);case Bt.NumericHex:return this.emitNumericEntity(0,3);case Bt.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Bt.EntityStart:return 0}}};function hK(t){let e="",n=new w0(t,r=>e+=Bx(r));return function(o,s){let i=0,a=0;for(;(a=o.indexOf("&",a))>=0;){e+=o.slice(i,a),n.startEntity(s);let l=n.write(o,a+1);if(l<0){i=a+n.end();break}i=a+l,a=l===0?i+1:i}let u=e+o.slice(i);return e="",u}}function Owe(t,e,n,r){let o=(e&Qi.BRANCH_LENGTH)>>7,s=e&Qi.JUMP_TABLE;if(o===0)return s!==0&&r===s?n:-1;if(s){let u=r-s;return u<0||u>=o?-1:t[n+u]-1}let i=n,a=i+o-1;for(;i<=a;){let u=i+a>>>1,l=t[u];if(l<r)i=u+1;else if(l>r)a=u-1;else return t[u+o]}return-1}var Cwe=hK(mK),Eat=hK(_K);function Ji(t,e=zo.Legacy){return Cwe(t,e)}function D0(t){for(let e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}var Nwe=new Map(D0([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(D0([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(D0([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(D0([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var xwe=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Pwe=String.prototype.codePointAt!=null?(t,e)=>t.codePointAt(e):(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);function jx(t,e){return function(r){let o,s=0,i="";for(;o=t.exec(r);)s!==o.index&&(i+=r.substring(s,o.index)),i+=e.get(o[0].charCodeAt(0)),s=o.index+1;return i+r.substring(s)}}var gK=jx(/[&<>'"]/g,xwe),TK=jx(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),EK=jx(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var SK;(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(SK||(SK={}));var AK;(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(AK||(AK={}));function kwe(t){return Object.prototype.toString.call(t)}function U0(t){return kwe(t)==="[object String]"}var Lwe=Object.prototype.hasOwnProperty;function wwe(t,e){return Lwe.call(t,e)}function pd(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){t[r]=n[r]})}}),t}function Vx(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function B0(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function mm(t){if(t>65535){t-=65536;let e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}var RK=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Dwe=/&([a-z#][a-z0-9]{1,31});/gi,Uwe=new RegExp(RK.source+"|"+Dwe.source,"gi"),Bwe=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Fwe(t,e){if(e.charCodeAt(0)===35&&Bwe.test(e)){let r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return B0(r)?mm(r):t}let n=Ji(t);return n!==t?n:t}function Gwe(t){return t.indexOf("\\")<0?t:t.replace(RK,"$1")}function Ms(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(Uwe,function(e,n,r){return n||Fwe(e,r)})}var jwe=/[&<>"]/,Hwe=/[&<>"]/g,Vwe={"&":"&","<":"<",">":">",'"':"""};function qwe(t){return Vwe[t]}function vs(t){return jwe.test(t)?t.replace(Hwe,qwe):t}var $we=/[.?*+^$[\]\\(){}|-]/g;function zwe(t){return t.replace($we,"\\$&")}function me(t){switch(t){case 9:case 32:return!0}return!1}function Ou(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Cu(t){return dd.test(t)||k0.test(t)}function Nu(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function xu(t){return t=t.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(t=t.replace(/ẞ/g,"\xDF")),t.toLowerCase().toUpperCase()}var Ywe={mdurl:P0,ucmicro:Dx};var Wx={};ea(Wx,{parseLinkDestination:()=>zx,parseLinkLabel:()=>$x,parseLinkTitle:()=>Yx});function $x(t,e,n){let r,o,s,i,a=t.posMax,u=t.pos;for(t.pos=e+1,r=1;t.pos<a;){if(s=t.src.charCodeAt(t.pos),s===93&&(r--,r===0)){o=!0;break}if(i=t.pos,t.md.inline.skipToken(t),s===91){if(i===t.pos-1)r++;else if(n)return t.pos=u,-1}}let l=-1;return o&&(l=t.pos),t.pos=u,l}function zx(t,e,n){let r,o=e,s={ok:!1,pos:0,str:""};if(t.charCodeAt(o)===60){for(o++;o<n;){if(r=t.charCodeAt(o),r===10||r===60)return s;if(r===62)return s.pos=o+1,s.str=Ms(t.slice(e+1,o)),s.ok=!0,s;if(r===92&&o+1<n){o+=2;continue}o++}return s}let i=0;for(;o<n&&(r=t.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(t.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(i++,i>32))return s;if(r===41){if(i===0)break;i--}o++}return e===o||i!==0||(s.str=Ms(t.slice(e,o)),s.pos=o,s.ok=!0),s}function Yx(t,e,n,r){let o,s=e,i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(s>=n)return i;let a=t.charCodeAt(s);if(a!==34&&a!==39&&a!==40)return i;e++,s++,a===40&&(a=41),i.marker=a}for(;s<n;){if(o=t.charCodeAt(s),o===i.marker)return i.pos=s+1,i.str+=Ms(t.slice(e,s)),i.ok=!0,i;if(o===40&&i.marker===41)return i;o===92&&s+1<n&&s++,s++}return i.can_continue=!0,i.str+=Ms(t.slice(e,s)),i}var Yo={};Yo.code_inline=function(t,e,n,r,o){let s=t[e];return"<code"+o.renderAttrs(s)+">"+vs(s.content)+"</code>"};Yo.code_block=function(t,e,n,r,o){let s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+vs(t[e].content)+`</code></pre>
|
|
50
|
+
`," "],hwe=["{","}","|","\\","^","`"].concat(_we),gwe=["'"].concat(hwe),uK=["%","/","?",";","#"].concat(gwe),cK=["/","?","#"],Twe=255,lK=/^[+a-z0-9A-Z_-]{0,63}$/,Ewe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dK={javascript:!0,"javascript:":!0},pK={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Swe(t,e){if(t&&t instanceof x0)return t;let n=new x0;return n.parse(t,e),n}x0.prototype.parse=function(t,e){let n,r,o,s=t;if(s=s.trim(),!e&&t.split("#").length===1){let l=mwe.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let i=pwe.exec(s);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,s=s.substr(i.length)),(e||i||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(i&&dK[i])&&(s=s.substr(2),this.slashes=!0)),!dK[i]&&(o||i&&!pK[i])){let l=-1;for(let _=0;_<cK.length;_++)r=s.indexOf(cK[_]),r!==-1&&(l===-1||r<l)&&(l=r);let d,p;l===-1?p=s.lastIndexOf("@"):p=s.lastIndexOf("@",l),p!==-1&&(d=s.slice(0,p),s=s.slice(p+1),this.auth=d),l=-1;for(let _=0;_<uK.length;_++)r=s.indexOf(uK[_]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=s.length),s[l-1]===":"&&l--;let f=s.slice(0,l);s=s.slice(l),this.parseHost(f),this.hostname=this.hostname||"";let m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){let _=this.hostname.split(/\./);for(let h=0,g=_.length;h<g;h++){let E=_[h];if(E&&!E.match(lK)){let S="";for(let b=0,R=E.length;b<R;b++)E.charCodeAt(b)>127?S+="x":S+=E[b];if(!S.match(lK)){let b=_.slice(0,h),R=_.slice(h+1),I=E.match(Ewe);I&&(b.push(I[1]),R.unshift(I[2])),R.length&&(s=R.join(".")+s),this.hostname=b.join(".");break}}}}this.hostname.length>Twe&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let a=s.indexOf("#");a!==-1&&(this.hash=s.substr(a),s=s.slice(0,a));let u=s.indexOf("?");return u!==-1&&(this.search=s.substr(u),s=s.slice(0,u)),s&&(this.pathname=s),pK[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};x0.prototype.parseHost=function(t){let e=fwe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var fm=Swe;var Dx={};ea(Dx,{Any:()=>M0,Cc:()=>v0,Cf:()=>fK,P:()=>dd,S:()=>k0,Z:()=>L0});var M0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v0=/[\0-\x1F\x7F-\x9F]/;var fK=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var dd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var k0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var L0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var mK=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(t=>t.charCodeAt(0)));var _K=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)));var Ux,Awe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Bx=(Ux=String.fromCodePoint)!==null&&Ux!==void 0?Ux:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function Fx(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=Awe.get(t))!==null&&e!==void 0?e:t}var Ft;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ft||(Ft={}));var ywe=32,Qi;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Qi||(Qi={}));function Gx(t){return t>=Ft.ZERO&&t<=Ft.NINE}function bwe(t){return t>=Ft.UPPER_A&&t<=Ft.UPPER_F||t>=Ft.LOWER_A&&t<=Ft.LOWER_F}function Rwe(t){return t>=Ft.UPPER_A&&t<=Ft.UPPER_Z||t>=Ft.LOWER_A&&t<=Ft.LOWER_Z||Gx(t)}function Iwe(t){return t===Ft.EQUALS||Rwe(t)}var Bt;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Bt||(Bt={}));var zo;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(zo||(zo={}));var w0=class{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zo.Strict}startEntity(e){this.decodeMode=e,this.state=Bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Bt.EntityStart:return e.charCodeAt(n)===Ft.NUM?(this.state=Bt.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Bt.NamedEntity,this.stateNamedEntity(e,n));case Bt.NumericStart:return this.stateNumericStart(e,n);case Bt.NumericDecimal:return this.stateNumericDecimal(e,n);case Bt.NumericHex:return this.stateNumericHex(e,n);case Bt.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|ywe)===Ft.LOWER_X?(this.state=Bt.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Bt.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,o){if(n!==r){let s=r-n;this.result=this.result*Math.pow(o,s)+parseInt(e.substr(n,s),o),this.consumed+=s}}stateNumericHex(e,n){let r=n;for(;n<e.length;){let o=e.charCodeAt(n);if(Gx(o)||bwe(o))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){let r=n;for(;n<e.length;){let o=e.charCodeAt(n);if(Gx(o))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ft.SEMI)this.consumed+=1;else if(this.decodeMode===zo.Strict)return 0;return this.emitCodePoint(Fx(this.result),this.consumed),this.errors&&(e!==Ft.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){let{decodeTree:r}=this,o=r[this.treeIndex],s=(o&Qi.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){let i=e.charCodeAt(n);if(this.treeIndex=Owe(r,o,this.treeIndex+Math.max(1,s),i),this.treeIndex<0)return this.result===0||this.decodeMode===zo.Attribute&&(s===0||Iwe(i))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],s=(o&Qi.VALUE_LENGTH)>>14,s!==0){if(i===Ft.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==zo.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:n,decodeTree:r}=this,o=(r[n]&Qi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){let{decodeTree:o}=this;return this.emitCodePoint(n===1?o[e]&~Qi.VALUE_LENGTH:o[e+1],r),n===3&&this.emitCodePoint(o[e+2],r),r}end(){var e;switch(this.state){case Bt.NamedEntity:return this.result!==0&&(this.decodeMode!==zo.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Bt.NumericDecimal:return this.emitNumericEntity(0,2);case Bt.NumericHex:return this.emitNumericEntity(0,3);case Bt.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Bt.EntityStart:return 0}}};function hK(t){let e="",n=new w0(t,r=>e+=Bx(r));return function(o,s){let i=0,a=0;for(;(a=o.indexOf("&",a))>=0;){e+=o.slice(i,a),n.startEntity(s);let l=n.write(o,a+1);if(l<0){i=a+n.end();break}i=a+l,a=l===0?i+1:i}let u=e+o.slice(i);return e="",u}}function Owe(t,e,n,r){let o=(e&Qi.BRANCH_LENGTH)>>7,s=e&Qi.JUMP_TABLE;if(o===0)return s!==0&&r===s?n:-1;if(s){let u=r-s;return u<0||u>=o?-1:t[n+u]-1}let i=n,a=i+o-1;for(;i<=a;){let u=i+a>>>1,l=t[u];if(l<r)i=u+1;else if(l>r)a=u-1;else return t[u+o]}return-1}var Cwe=hK(mK),Tat=hK(_K);function Ji(t,e=zo.Legacy){return Cwe(t,e)}function D0(t){for(let e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}var Nwe=new Map(D0([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(D0([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(D0([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(D0([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var xwe=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Pwe=String.prototype.codePointAt!=null?(t,e)=>t.codePointAt(e):(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);function jx(t,e){return function(r){let o,s=0,i="";for(;o=t.exec(r);)s!==o.index&&(i+=r.substring(s,o.index)),i+=e.get(o[0].charCodeAt(0)),s=o.index+1;return i+r.substring(s)}}var gK=jx(/[&<>'"]/g,xwe),TK=jx(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),EK=jx(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var SK;(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(SK||(SK={}));var AK;(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(AK||(AK={}));function kwe(t){return Object.prototype.toString.call(t)}function U0(t){return kwe(t)==="[object String]"}var Lwe=Object.prototype.hasOwnProperty;function wwe(t,e){return Lwe.call(t,e)}function pd(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){t[r]=n[r]})}}),t}function Vx(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function B0(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function mm(t){if(t>65535){t-=65536;let e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}var RK=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Dwe=/&([a-z#][a-z0-9]{1,31});/gi,Uwe=new RegExp(RK.source+"|"+Dwe.source,"gi"),Bwe=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Fwe(t,e){if(e.charCodeAt(0)===35&&Bwe.test(e)){let r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return B0(r)?mm(r):t}let n=Ji(t);return n!==t?n:t}function Gwe(t){return t.indexOf("\\")<0?t:t.replace(RK,"$1")}function Ms(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(Uwe,function(e,n,r){return n||Fwe(e,r)})}var jwe=/[&<>"]/,Hwe=/[&<>"]/g,Vwe={"&":"&","<":"<",">":">",'"':"""};function qwe(t){return Vwe[t]}function vs(t){return jwe.test(t)?t.replace(Hwe,qwe):t}var $we=/[.?*+^$[\]\\(){}|-]/g;function zwe(t){return t.replace($we,"\\$&")}function me(t){switch(t){case 9:case 32:return!0}return!1}function Ou(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Cu(t){return dd.test(t)||k0.test(t)}function Nu(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function xu(t){return t=t.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(t=t.replace(/ẞ/g,"\xDF")),t.toLowerCase().toUpperCase()}var Ywe={mdurl:P0,ucmicro:Dx};var Wx={};ea(Wx,{parseLinkDestination:()=>zx,parseLinkLabel:()=>$x,parseLinkTitle:()=>Yx});function $x(t,e,n){let r,o,s,i,a=t.posMax,u=t.pos;for(t.pos=e+1,r=1;t.pos<a;){if(s=t.src.charCodeAt(t.pos),s===93&&(r--,r===0)){o=!0;break}if(i=t.pos,t.md.inline.skipToken(t),s===91){if(i===t.pos-1)r++;else if(n)return t.pos=u,-1}}let l=-1;return o&&(l=t.pos),t.pos=u,l}function zx(t,e,n){let r,o=e,s={ok:!1,pos:0,str:""};if(t.charCodeAt(o)===60){for(o++;o<n;){if(r=t.charCodeAt(o),r===10||r===60)return s;if(r===62)return s.pos=o+1,s.str=Ms(t.slice(e+1,o)),s.ok=!0,s;if(r===92&&o+1<n){o+=2;continue}o++}return s}let i=0;for(;o<n&&(r=t.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(t.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(i++,i>32))return s;if(r===41){if(i===0)break;i--}o++}return e===o||i!==0||(s.str=Ms(t.slice(e,o)),s.pos=o,s.ok=!0),s}function Yx(t,e,n,r){let o,s=e,i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(s>=n)return i;let a=t.charCodeAt(s);if(a!==34&&a!==39&&a!==40)return i;e++,s++,a===40&&(a=41),i.marker=a}for(;s<n;){if(o=t.charCodeAt(s),o===i.marker)return i.pos=s+1,i.str+=Ms(t.slice(e,s)),i.ok=!0,i;if(o===40&&i.marker===41)return i;o===92&&s+1<n&&s++,s++}return i.can_continue=!0,i.str+=Ms(t.slice(e,s)),i}var Yo={};Yo.code_inline=function(t,e,n,r,o){let s=t[e];return"<code"+o.renderAttrs(s)+">"+vs(s.content)+"</code>"};Yo.code_block=function(t,e,n,r,o){let s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+vs(t[e].content)+`</code></pre>
|
|
51
51
|
`};Yo.fence=function(t,e,n,r,o){let s=t[e],i=s.info?Ms(s.info).trim():"",a="",u="";if(i){let d=i.split(/(\s+)/g);a=d[0],u=d.slice(2).join("")}let l;if(n.highlight?l=n.highlight(s.content,a,u)||vs(s.content):l=vs(s.content),l.indexOf("<pre")===0)return l+`
|
|
52
52
|
`;if(i){let d=s.attrIndex("class"),p=s.attrs?s.attrs.slice():[];d<0?p.push(["class",n.langPrefix+a]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+a);let f={attrs:p};return`<pre><code${o.renderAttrs(f)}>${l}</code></pre>
|
|
53
53
|
`}return`<pre><code${o.renderAttrs(s)}>${l}</code></pre>
|
|
@@ -62,7 +62,7 @@ Url: ${vh(t)}`),!0}return!1}function o_e(t,e){return e?.length?Ch(t).some(n=>Ws(
|
|
|
62
62
|
`;break;default:}return r};fd.prototype.render=function(t,e,n){let r="",o=this.rules;for(let s=0,i=t.length;s<i;s++){let a=t[s].type;a==="inline"?r+=this.renderInline(t[s].children,e,n):typeof o[a]<"u"?r+=o[a](t,s,e,n,this):r+=this.renderToken(t,s,e,n)}return r};var IK=fd;function so(){this.__rules__=[],this.__cache__=null}so.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};so.prototype.__compile__=function(){let t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})};so.prototype.at=function(t,e,n){let r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null};so.prototype.before=function(t,e,n,r){let o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};so.prototype.after=function(t,e,n,r){let o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};so.prototype.push=function(t,e,n){let r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};so.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);let n=[];return t.forEach(function(r){let o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};so.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};so.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);let n=[];return t.forEach(function(r){let o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};so.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Pu=so;function md(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}md.prototype.attrIndex=function(e){if(!this.attrs)return-1;let n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===e)return r;return-1};md.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};md.prototype.attrSet=function(e,n){let r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o};md.prototype.attrGet=function(e){let n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r};md.prototype.attrJoin=function(e,n){let r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var ks=md;function OK(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}OK.prototype.Token=ks;var CK=OK;var Wwe=/\r\n?|\n/g,Kwe=/\0/g;function Kx(t){let e;e=t.src.replace(Wwe,`
|
|
63
63
|
`),e=e.replace(Kwe,"\uFFFD"),t.src=e}function Qx(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function Jx(t){let e=t.tokens;for(let n=0,r=e.length;n<r;n++){let o=e[n];o.type==="inline"&&t.md.inline.parse(o.content,t.md,t.env,o.children)}}function Qwe(t){return/^<a[>\s]/i.test(t)}function Jwe(t){return/^<\/a\s*>/i.test(t)}function Xx(t){let e=t.tokens;if(t.md.options.linkify)for(let n=0,r=e.length;n<r;n++){if(e[n].type!=="inline"||!t.md.linkify.pretest(e[n].content))continue;let o=e[n].children,s=0;for(let i=o.length-1;i>=0;i--){let a=o[i];if(a.type==="link_close"){for(i--;o[i].level!==a.level&&o[i].type!=="link_open";)i--;continue}if(a.type==="html_inline"&&(Qwe(a.content)&&s>0&&s--,Jwe(a.content)&&s++),!(s>0)&&a.type==="text"&&t.md.linkify.test(a.content)){let u=a.content,l=t.md.linkify.match(u),d=[],p=a.level,f=0;l.length>0&&l[0].index===0&&i>0&&o[i-1].type==="text_special"&&(l=l.slice(1));for(let m=0;m<l.length;m++){let _=l[m].url,h=t.md.normalizeLink(_);if(!t.md.validateLink(h))continue;let g=l[m].text;l[m].schema?l[m].schema==="mailto:"&&!/^mailto:/i.test(g)?g=t.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):g=t.md.normalizeLinkText(g):g=t.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,"");let E=l[m].index;if(E>f){let I=new t.Token("text","",0);I.content=u.slice(f,E),I.level=p,d.push(I)}let S=new t.Token("link_open","a",1);S.attrs=[["href",h]],S.level=p++,S.markup="linkify",S.info="auto",d.push(S);let b=new t.Token("text","",0);b.content=g,b.level=p,d.push(b);let R=new t.Token("link_close","a",-1);R.level=--p,R.markup="linkify",R.info="auto",d.push(R),f=l[m].lastIndex}if(f<u.length){let m=new t.Token("text","",0);m.content=u.slice(f),m.level=p,d.push(m)}e[n].children=o=Vx(o,i,d)}}}}var NK=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Xwe=/\((c|tm|r)\)/i,Zwe=/\((c|tm|r)\)/ig,eDe={c:"\xA9",r:"\xAE",tm:"\u2122"};function tDe(t,e){return eDe[e.toLowerCase()]}function nDe(t){let e=0;for(let n=t.length-1;n>=0;n--){let r=t[n];r.type==="text"&&!e&&(r.content=r.content.replace(Zwe,tDe)),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function rDe(t){let e=0;for(let n=t.length-1;n>=0;n--){let r=t[n];r.type==="text"&&!e&&NK.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function Zx(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(Xwe.test(t.tokens[e].content)&&nDe(t.tokens[e].children),NK.test(t.tokens[e].content)&&rDe(t.tokens[e].children))}var oDe=/['"]/,xK=/['"]/g,PK="\u2019";function F0(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function sDe(t,e){let n,r=[];for(let o=0;o<t.length;o++){let s=t[o],i=t[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,s.type!=="text")continue;let a=s.content,u=0,l=a.length;e:for(;u<l;){xK.lastIndex=u;let d=xK.exec(a);if(!d)break;let p=!0,f=!0;u=d.index+1;let m=d[0]==="'",_=32;if(d.index-1>=0)_=a.charCodeAt(d.index-1);else for(n=o-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(t[n].content){_=t[n].content.charCodeAt(t[n].content.length-1);break}let h=32;if(u<l)h=a.charCodeAt(u);else for(n=o+1;n<t.length&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n++)if(t[n].content){h=t[n].content.charCodeAt(0);break}let g=Nu(_)||Cu(String.fromCharCode(_)),E=Nu(h)||Cu(String.fromCharCode(h)),S=Ou(_),b=Ou(h);if(b?p=!1:E&&(S||g||(p=!1)),S?f=!1:g&&(b||E||(f=!1)),h===34&&d[0]==='"'&&_>=48&&_<=57&&(f=p=!1),p&&f&&(p=g,f=E),!p&&!f){m&&(s.content=F0(s.content,d.index,PK));continue}if(f)for(n=r.length-1;n>=0;n--){let R=r[n];if(r[n].level<i)break;if(R.single===m&&r[n].level===i){R=r[n];let I,C;m?(I=e.md.options.quotes[2],C=e.md.options.quotes[3]):(I=e.md.options.quotes[0],C=e.md.options.quotes[1]),s.content=F0(s.content,d.index,C),t[R.token].content=F0(t[R.token].content,R.pos,I),u+=C.length-1,R.token===o&&(u+=I.length-1),a=s.content,l=a.length,r.length=n;continue e}}p?r.push({token:o,pos:d.index,single:m,level:i}):f&&m&&(s.content=F0(s.content,d.index,PK))}}}function eP(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!oDe.test(t.tokens[e].content)||sDe(t.tokens[e].children,t)}function tP(t){let e,n,r=t.tokens,o=r.length;for(let s=0;s<o;s++){if(r[s].type!=="inline")continue;let i=r[s].children,a=i.length;for(e=0;e<a;e++)i[e].type==="text_special"&&(i[e].type="text");for(e=n=0;e<a;e++)i[e].type==="text"&&e+1<a&&i[e+1].type==="text"?i[e+1].content=i[e].content+i[e+1].content:(e!==n&&(i[n]=i[e]),n++);e!==n&&(i.length=n)}}var nP=[["normalize",Kx],["block",Qx],["inline",Jx],["linkify",Xx],["replacements",Zx],["smartquotes",eP],["text_join",tP]];function rP(){this.ruler=new Pu;for(let t=0;t<nP.length;t++)this.ruler.push(nP[t][0],nP[t][1])}rP.prototype.process=function(t){let e=this.ruler.getRules("");for(let n=0,r=e.length;n<r;n++)e[n](t)};rP.prototype.State=CK;var MK=rP;function Wo(t,e,n,r){this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let o=this.src;for(let s=0,i=0,a=0,u=0,l=o.length,d=!1;i<l;i++){let p=o.charCodeAt(i);if(!d)if(me(p)){a++,p===9?u+=4-u%4:u++;continue}else d=!0;(p===10||i===l-1)&&(p!==10&&i++,this.bMarks.push(s),this.eMarks.push(i),this.tShift.push(a),this.sCount.push(u),this.bsCount.push(0),d=!1,a=0,u=0,s=i+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Wo.prototype.push=function(t,e,n){let r=new ks(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};Wo.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Wo.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Wo.prototype.skipSpaces=function(e){for(let n=this.src.length;e<n;e++){let r=this.src.charCodeAt(e);if(!me(r))break}return e};Wo.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!me(this.src.charCodeAt(--e)))return e+1;return e};Wo.prototype.skipChars=function(e,n){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e};Wo.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Wo.prototype.getLines=function(e,n,r,o){if(e>=n)return"";let s=new Array(n-e);for(let i=0,a=e;a<n;a++,i++){let u=0,l=this.bMarks[a],d=l,p;for(a+1<n||o?p=this.eMarks[a]+1:p=this.eMarks[a];d<p&&u<r;){let f=this.src.charCodeAt(d);if(me(f))f===9?u+=4-(u+this.bsCount[a])%4:u++;else if(d-l<this.tShift[a])u++;else break;d++}u>r?s[i]=new Array(u-r+1).join(" ")+this.src.slice(d,p):s[i]=this.src.slice(d,p)}return s.join("")};Wo.prototype.Token=ks;var vK=Wo;var iDe=65536;function oP(t,e){let n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function kK(t){let e=[],n=t.length,r=0,o=t.charCodeAt(r),s=!1,i=0,a="";for(;r<n;)o===124&&(s?(a+=t.substring(i,r-1),i=r):(e.push(a+t.substring(i,r)),a="",i=r+1)),s=o===92,r++,o=t.charCodeAt(r);return e.push(a+t.substring(i)),e}function sP(t,e,n,r){if(e+2>n)return!1;let o=e+1;if(t.sCount[o]<t.blkIndent||t.sCount[o]-t.blkIndent>=4)return!1;let s=t.bMarks[o]+t.tShift[o];if(s>=t.eMarks[o])return!1;let i=t.src.charCodeAt(s++);if(i!==124&&i!==45&&i!==58||s>=t.eMarks[o])return!1;let a=t.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58&&!me(a)||i===45&&me(a))return!1;for(;s<t.eMarks[o];){let R=t.src.charCodeAt(s);if(R!==124&&R!==45&&R!==58&&!me(R))return!1;s++}let u=oP(t,e+1),l=u.split("|"),d=[];for(let R=0;R<l.length;R++){let I=l[R].trim();if(!I){if(R===0||R===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(I))return!1;I.charCodeAt(I.length-1)===58?d.push(I.charCodeAt(0)===58?"center":"right"):I.charCodeAt(0)===58?d.push("left"):d.push("")}if(u=oP(t,e).trim(),u.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;l=kK(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();let p=l.length;if(p===0||p!==d.length)return!1;if(r)return!0;let f=t.parentType;t.parentType="table";let m=t.md.block.ruler.getRules("blockquote"),_=t.push("table_open","table",1),h=[e,0];_.map=h;let g=t.push("thead_open","thead",1);g.map=[e,e+1];let E=t.push("tr_open","tr",1);E.map=[e,e+1];for(let R=0;R<l.length;R++){let I=t.push("th_open","th",1);d[R]&&(I.attrs=[["style","text-align:"+d[R]]]);let C=t.push("inline","",0);C.content=l[R].trim(),C.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let S,b=0;for(o=e+2;o<n&&!(t.sCount[o]<t.blkIndent);o++){let R=!1;for(let C=0,H=m.length;C<H;C++)if(m[C](t,o,n,!0)){R=!0;break}if(R||(u=oP(t,o).trim(),!u)||t.sCount[o]-t.blkIndent>=4||(l=kK(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),b+=p-l.length,b>iDe))break;if(o===e+2){let C=t.push("tbody_open","tbody",1);C.map=S=[e+2,0]}let I=t.push("tr_open","tr",1);I.map=[o,o+1];for(let C=0;C<p;C++){let H=t.push("td_open","td",1);d[C]&&(H.attrs=[["style","text-align:"+d[C]]]);let _e=t.push("inline","",0);_e.content=l[C]?l[C].trim():"",_e.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return S&&(t.push("tbody_close","tbody",-1),S[1]=o),t.push("table_close","table",-1),h[1]=o,t.parentType=f,t.line=o,!0}function iP(t,e,n){if(t.sCount[e]-t.blkIndent<4)return!1;let r=e+1,o=r;for(;r<n;){if(t.isEmpty(r)){r++;continue}if(t.sCount[r]-t.blkIndent>=4){r++,o=r;continue}break}t.line=o;let s=t.push("code_block","code",0);return s.content=t.getLines(e,o,4+t.blkIndent,!1)+`
|
|
64
64
|
`,s.map=[e,t.line],!0}function aP(t,e,n,r){let o=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||o+3>s)return!1;let i=t.src.charCodeAt(o);if(i!==126&&i!==96)return!1;let a=o;o=t.skipChars(o,i);let u=o-a;if(u<3)return!1;let l=t.src.slice(a,o),d=t.src.slice(o,s);if(i===96&&d.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let p=e,f=!1;for(;p++,!(p>=n||(o=a=t.bMarks[p]+t.tShift[p],s=t.eMarks[p],o<s&&t.sCount[p]<t.blkIndent));)if(t.src.charCodeAt(o)===i&&!(t.sCount[p]-t.blkIndent>=4)&&(o=t.skipChars(o,i),!(o-a<u)&&(o=t.skipSpaces(o),!(o<s)))){f=!0;break}u=t.sCount[e],t.line=p+(f?1:0);let m=t.push("fence","code",0);return m.info=d,m.content=t.getLines(e+1,p,u,!0),m.markup=l,m.map=[e,t.line],!0}function uP(t,e,n,r){let o=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],i=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(o)!==62)return!1;if(r)return!0;let a=[],u=[],l=[],d=[],p=t.md.block.ruler.getRules("blockquote"),f=t.parentType;t.parentType="blockquote";let m=!1,_;for(_=e;_<n;_++){let b=t.sCount[_]<t.blkIndent;if(o=t.bMarks[_]+t.tShift[_],s=t.eMarks[_],o>=s)break;if(t.src.charCodeAt(o++)===62&&!b){let I=t.sCount[_]+1,C,H;t.src.charCodeAt(o)===32?(o++,I++,H=!1,C=!0):t.src.charCodeAt(o)===9?(C=!0,(t.bsCount[_]+I)%4===3?(o++,I++,H=!1):H=!0):C=!1;let _e=I;for(a.push(t.bMarks[_]),t.bMarks[_]=o;o<s;){let De=t.src.charCodeAt(o);if(me(De))De===9?_e+=4-(_e+t.bsCount[_]+(H?1:0))%4:_e++;else break;o++}m=o>=s,u.push(t.bsCount[_]),t.bsCount[_]=t.sCount[_]+1+(C?1:0),l.push(t.sCount[_]),t.sCount[_]=_e-I,d.push(t.tShift[_]),t.tShift[_]=o-t.bMarks[_];continue}if(m)break;let R=!1;for(let I=0,C=p.length;I<C;I++)if(p[I](t,_,n,!0)){R=!0;break}if(R){t.lineMax=_,t.blkIndent!==0&&(a.push(t.bMarks[_]),u.push(t.bsCount[_]),d.push(t.tShift[_]),l.push(t.sCount[_]),t.sCount[_]-=t.blkIndent);break}a.push(t.bMarks[_]),u.push(t.bsCount[_]),d.push(t.tShift[_]),l.push(t.sCount[_]),t.sCount[_]=-1}let h=t.blkIndent;t.blkIndent=0;let g=t.push("blockquote_open","blockquote",1);g.markup=">";let E=[e,0];g.map=E,t.md.block.tokenize(t,e,_);let S=t.push("blockquote_close","blockquote",-1);S.markup=">",t.lineMax=i,t.parentType=f,E[1]=t.line;for(let b=0;b<d.length;b++)t.bMarks[b+e]=a[b],t.tShift[b+e]=d[b],t.sCount[b+e]=l[b],t.bsCount[b+e]=u[b];return t.blkIndent=h,!0}function cP(t,e,n,r){let o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let s=t.bMarks[e]+t.tShift[e],i=t.src.charCodeAt(s++);if(i!==42&&i!==45&&i!==95)return!1;let a=1;for(;s<o;){let l=t.src.charCodeAt(s++);if(l!==i&&!me(l))return!1;l===i&&a++}if(a<3)return!1;if(r)return!0;t.line=e+1;let u=t.push("hr","hr",0);return u.map=[e,t.line],u.markup=Array(a+1).join(String.fromCharCode(i)),!0}function LK(t,e){let n=t.eMarks[e],r=t.bMarks[e]+t.tShift[e],o=t.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){let s=t.src.charCodeAt(r);if(!me(s))return-1}return r}function wK(t,e){let n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],o=n;if(o+1>=r)return-1;let s=t.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=r)return-1;if(s=t.src.charCodeAt(o++),s>=48&&s<=57){if(o-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return o<r&&(s=t.src.charCodeAt(o),!me(s))?-1:o}function aDe(t,e){let n=t.level+2;for(let r=e+2,o=t.tokens.length-2;r<o;r++)t.tokens[r].level===n&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}function lP(t,e,n,r){let o,s,i,a,u=e,l=!0;if(t.sCount[u]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[u]-t.listIndent>=4&&t.sCount[u]<t.blkIndent)return!1;let d=!1;r&&t.parentType==="paragraph"&&t.sCount[u]>=t.blkIndent&&(d=!0);let p,f,m;if((m=wK(t,u))>=0){if(p=!0,i=t.bMarks[u]+t.tShift[u],f=Number(t.src.slice(i,m-1)),d&&f!==1)return!1}else if((m=LK(t,u))>=0)p=!1;else return!1;if(d&&t.skipSpaces(m)>=t.eMarks[u])return!1;if(r)return!0;let _=t.src.charCodeAt(m-1),h=t.tokens.length;p?(a=t.push("ordered_list_open","ol",1),f!==1&&(a.attrs=[["start",f]])):a=t.push("bullet_list_open","ul",1);let g=[u,0];a.map=g,a.markup=String.fromCharCode(_);let E=!1,S=t.md.block.ruler.getRules("list"),b=t.parentType;for(t.parentType="list";u<n;){s=m,o=t.eMarks[u];let R=t.sCount[u]+m-(t.bMarks[u]+t.tShift[u]),I=R;for(;s<o;){let $n=t.src.charCodeAt(s);if($n===9)I+=4-(I+t.bsCount[u])%4;else if($n===32)I++;else break;s++}let C=s,H;C>=o?H=1:H=I-R,H>4&&(H=1);let _e=R+H;a=t.push("list_item_open","li",1),a.markup=String.fromCharCode(_);let De=[u,0];a.map=De,p&&(a.info=t.src.slice(i,m-1));let _n=t.tight,dr=t.tShift[u],Qo=t.sCount[u],ut=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=_e,t.tight=!0,t.tShift[u]=C-t.bMarks[u],t.sCount[u]=I,C>=o&&t.isEmpty(u+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,u,n,!0),(!t.tight||E)&&(l=!1),E=t.line-u>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=ut,t.tShift[u]=dr,t.sCount[u]=Qo,t.tight=_n,a=t.push("list_item_close","li",-1),a.markup=String.fromCharCode(_),u=t.line,De[1]=u,u>=n||t.sCount[u]<t.blkIndent||t.sCount[u]-t.blkIndent>=4)break;let Jo=!1;for(let $n=0,bm=S.length;$n<bm;$n++)if(S[$n](t,u,n,!0)){Jo=!0;break}if(Jo)break;if(p){if(m=wK(t,u),m<0)break;i=t.bMarks[u]+t.tShift[u]}else if(m=LK(t,u),m<0)break;if(_!==t.src.charCodeAt(m-1))break}return p?a=t.push("ordered_list_close","ol",-1):a=t.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(_),g[1]=u,t.line=u,t.parentType=b,l&&aDe(t,h),!0}function dP(t,e,n,r){let o=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],i=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(o)!==91)return!1;function a(S){let b=t.lineMax;if(S>=b||t.isEmpty(S))return null;let R=!1;if(t.sCount[S]-t.blkIndent>3&&(R=!0),t.sCount[S]<0&&(R=!0),!R){let H=t.md.block.ruler.getRules("reference"),_e=t.parentType;t.parentType="reference";let De=!1;for(let _n=0,dr=H.length;_n<dr;_n++)if(H[_n](t,S,b,!0)){De=!0;break}if(t.parentType=_e,De)return null}let I=t.bMarks[S]+t.tShift[S],C=t.eMarks[S];return t.src.slice(I,C+1)}let u=t.src.slice(o,s+1);s=u.length;let l=-1;for(o=1;o<s;o++){let S=u.charCodeAt(o);if(S===91)return!1;if(S===93){l=o;break}else if(S===10){let b=a(i);b!==null&&(u+=b,s=u.length,i++)}else if(S===92&&(o++,o<s&&u.charCodeAt(o)===10)){let b=a(i);b!==null&&(u+=b,s=u.length,i++)}}if(l<0||u.charCodeAt(l+1)!==58)return!1;for(o=l+2;o<s;o++){let S=u.charCodeAt(o);if(S===10){let b=a(i);b!==null&&(u+=b,s=u.length,i++)}else if(!me(S))break}let d=t.md.helpers.parseLinkDestination(u,o,s);if(!d.ok)return!1;let p=t.md.normalizeLink(d.str);if(!t.md.validateLink(p))return!1;o=d.pos;let f=o,m=i,_=o;for(;o<s;o++){let S=u.charCodeAt(o);if(S===10){let b=a(i);b!==null&&(u+=b,s=u.length,i++)}else if(!me(S))break}let h=t.md.helpers.parseLinkTitle(u,o,s);for(;h.can_continue;){let S=a(i);if(S===null)break;u+=S,o=s,s=u.length,i++,h=t.md.helpers.parseLinkTitle(u,o,s,h)}let g;for(o<s&&_!==o&&h.ok?(g=h.str,o=h.pos):(g="",o=f,i=m);o<s;){let S=u.charCodeAt(o);if(!me(S))break;o++}if(o<s&&u.charCodeAt(o)!==10&&g)for(g="",o=f,i=m;o<s;){let S=u.charCodeAt(o);if(!me(S))break;o++}if(o<s&&u.charCodeAt(o)!==10)return!1;let E=xu(u.slice(1,l));return E?(r||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[E]>"u"&&(t.env.references[E]={title:g,href:p}),t.line=i),!0):!1}var DK=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var uDe="[a-zA-Z_:][a-zA-Z0-9:._-]*",cDe="[^\"'=<>`\\x00-\\x20]+",lDe="'[^']*'",dDe='"[^"]*"',pDe="(?:"+cDe+"|"+lDe+"|"+dDe+")",fDe="(?:\\s+"+uDe+"(?:\\s*=\\s*"+pDe+")?)",UK="<[A-Za-z][A-Za-z0-9\\-]*"+fDe+"*\\s*\\/?>",BK="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",mDe="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",_De="<[?][\\s\\S]*?[?]>",hDe="<![A-Za-z][^>]*>",gDe="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",FK=new RegExp("^(?:"+UK+"|"+BK+"|"+mDe+"|"+_De+"|"+hDe+"|"+gDe+")"),GK=new RegExp("^(?:"+UK+"|"+BK+")");var _d=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+DK.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(GK.source+"\\s*$"),/^$/,!1]];function pP(t,e,n,r){let o=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(o)!==60)return!1;let i=t.src.slice(o,s),a=0;for(;a<_d.length&&!_d[a][0].test(i);a++);if(a===_d.length)return!1;if(r)return _d[a][2];let u=e+1;if(!_d[a][1].test(i)){for(;u<n&&!(t.sCount[u]<t.blkIndent);u++)if(o=t.bMarks[u]+t.tShift[u],s=t.eMarks[u],i=t.src.slice(o,s),_d[a][1].test(i)){i.length!==0&&u++;break}}t.line=u;let l=t.push("html_block","",0);return l.map=[e,u],l.content=t.getLines(e,u,t.blkIndent,!0),!0}function fP(t,e,n,r){let o=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let i=t.src.charCodeAt(o);if(i!==35||o>=s)return!1;let a=1;for(i=t.src.charCodeAt(++o);i===35&&o<s&&a<=6;)a++,i=t.src.charCodeAt(++o);if(a>6||o<s&&!me(i))return!1;if(r)return!0;s=t.skipSpacesBack(s,o);let u=t.skipCharsBack(s,35,o);u>o&&me(t.src.charCodeAt(u-1))&&(s=u),t.line=e+1;let l=t.push("heading_open","h"+String(a),1);l.markup="########".slice(0,a),l.map=[e,t.line];let d=t.push("inline","",0);d.content=t.src.slice(o,s).trim(),d.map=[e,t.line],d.children=[];let p=t.push("heading_close","h"+String(a),-1);return p.markup="########".slice(0,a),!0}function mP(t,e,n){let r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.parentType;t.parentType="paragraph";let s=0,i,a=e+1;for(;a<n&&!t.isEmpty(a);a++){if(t.sCount[a]-t.blkIndent>3)continue;if(t.sCount[a]>=t.blkIndent){let m=t.bMarks[a]+t.tShift[a],_=t.eMarks[a];if(m<_&&(i=t.src.charCodeAt(m),(i===45||i===61)&&(m=t.skipChars(m,i),m=t.skipSpaces(m),m>=_))){s=i===61?1:2;break}}if(t.sCount[a]<0)continue;let f=!1;for(let m=0,_=r.length;m<_;m++)if(r[m](t,a,n,!0)){f=!0;break}if(f)break}if(!s)return!1;let u=t.getLines(e,a,t.blkIndent,!1).trim();t.line=a+1;let l=t.push("heading_open","h"+String(s),1);l.markup=String.fromCharCode(i),l.map=[e,t.line];let d=t.push("inline","",0);d.content=u,d.map=[e,t.line-1],d.children=[];let p=t.push("heading_close","h"+String(s),-1);return p.markup=String.fromCharCode(i),t.parentType=o,!0}function _P(t,e,n){let r=t.md.block.ruler.getRules("paragraph"),o=t.parentType,s=e+1;for(t.parentType="paragraph";s<n&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3||t.sCount[s]<0)continue;let l=!1;for(let d=0,p=r.length;d<p;d++)if(r[d](t,s,n,!0)){l=!0;break}if(l)break}let i=t.getLines(e,s,t.blkIndent,!1).trim();t.line=s;let a=t.push("paragraph_open","p",1);a.map=[e,t.line];let u=t.push("inline","",0);return u.content=i,u.map=[e,t.line],u.children=[],t.push("paragraph_close","p",-1),t.parentType=o,!0}var G0=[["table",sP,["paragraph","reference"]],["code",iP],["fence",aP,["paragraph","reference","blockquote","list"]],["blockquote",uP,["paragraph","reference","blockquote","list"]],["hr",cP,["paragraph","reference","blockquote","list"]],["list",lP,["paragraph","reference","blockquote"]],["reference",dP],["html_block",pP,["paragraph","reference","blockquote"]],["heading",fP,["paragraph","reference","blockquote"]],["lheading",mP],["paragraph",_P]];function j0(){this.ruler=new Pu;for(let t=0;t<G0.length;t++)this.ruler.push(G0[t][0],G0[t][1],{alt:(G0[t][2]||[]).slice()})}j0.prototype.tokenize=function(t,e,n){let r=this.ruler.getRules(""),o=r.length,s=t.md.options.maxNesting,i=e,a=!1;for(;i<n&&(t.line=i=t.skipEmptyLines(i),!(i>=n||t.sCount[i]<t.blkIndent));){if(t.level>=s){t.line=n;break}let u=t.line,l=!1;for(let d=0;d<o;d++)if(l=r[d](t,i,n,!1),l){if(u>=t.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),i=t.line,i<n&&t.isEmpty(i)&&(a=!0,i++,t.line=i)}};j0.prototype.parse=function(t,e,n,r){if(!t)return;let o=new this.State(t,e,n,r);this.tokenize(o,o.line,o.lineMax)};j0.prototype.State=vK;var jK=j0;function _m(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}_m.prototype.pushPending=function(){let t=new ks("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};_m.prototype.push=function(t,e,n){this.pending&&this.pushPending();let r=new ks(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};_m.prototype.scanDelims=function(t,e){let n=this.posMax,r=this.src.charCodeAt(t),o=t>0?this.src.charCodeAt(t-1):32,s=t;for(;s<n&&this.src.charCodeAt(s)===r;)s++;let i=s-t,a=s<n?this.src.charCodeAt(s):32,u=Nu(o)||Cu(String.fromCharCode(o)),l=Nu(a)||Cu(String.fromCharCode(a)),d=Ou(o),p=Ou(a),f=!p&&(!l||d||u),m=!d&&(!u||p||l);return{can_open:f&&(e||!m||u),can_close:m&&(e||!f||l),length:i}};_m.prototype.Token=ks;var HK=_m;function TDe(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function hP(t,e){let n=t.pos;for(;n<t.posMax&&!TDe(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}var EDe=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function gP(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;let n=t.pos,r=t.posMax;if(n+3>r||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;let o=t.pending.match(EDe);if(!o)return!1;let s=o[1],i=t.md.linkify.matchAtStart(t.src.slice(n-s.length));if(!i)return!1;let a=i.url;if(a.length<=s.length)return!1;let u=a.length;for(;u>0&&a.charCodeAt(u-1)===42;)u--;u!==a.length&&(a=a.slice(0,u));let l=t.md.normalizeLink(a);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-s.length);let d=t.push("link_open","a",1);d.attrs=[["href",l]],d.markup="linkify",d.info="auto";let p=t.push("text","",0);p.content=t.md.normalizeLinkText(a);let f=t.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return t.pos+=a.length-s.length,!0}function TP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;let r=t.pending.length-1,o=t.posMax;if(!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){let s=r-1;for(;s>=1&&t.pending.charCodeAt(s-1)===32;)s--;t.pending=t.pending.slice(0,s),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<o&&me(t.src.charCodeAt(n));)n++;return t.pos=n,!0}var EP=[];for(let t=0;t<256;t++)EP.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){EP[t.charCodeAt(0)]=1});function SP(t,e){let n=t.pos,r=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=t.src.charCodeAt(n);if(o===10){for(e||t.push("hardbreak","br",0),n++;n<r&&(o=t.src.charCodeAt(n),!!me(o));)n++;return t.pos=n,!0}let s=t.src[n];if(o>=55296&&o<=56319&&n+1<r){let a=t.src.charCodeAt(n+1);a>=56320&&a<=57343&&(s+=t.src[n+1],n++)}let i="\\"+s;if(!e){let a=t.push("text_special","",0);o<256&&EP[o]!==0?a.content=s:a.content=i,a.markup=i,a.info="escape"}return t.pos=n+1,!0}function AP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;let o=n;n++;let s=t.posMax;for(;n<s&&t.src.charCodeAt(n)===96;)n++;let i=t.src.slice(o,n),a=i.length;if(t.backticksScanned&&(t.backticks[a]||0)<=o)return e||(t.pending+=i),t.pos+=a,!0;let u=n,l;for(;(l=t.src.indexOf("`",u))!==-1;){for(u=l+1;u<s&&t.src.charCodeAt(u)===96;)u++;let d=u-l;if(d===a){if(!e){let p=t.push("code_inline","code",0);p.markup=i,p.content=t.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=u,!0}t.backticks[d]=l}return t.backticksScanned=!0,e||(t.pending+=i),t.pos+=a,!0}function SDe(t,e){let n=t.pos,r=t.src.charCodeAt(n);if(e||r!==126)return!1;let o=t.scanDelims(t.pos,!0),s=o.length,i=String.fromCharCode(r);if(s<2)return!1;let a;s%2&&(a=t.push("text","",0),a.content=i,s--);for(let u=0;u<s;u+=2)a=t.push("text","",0),a.content=i+i,t.delimiters.push({marker:r,length:0,token:t.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0}function VK(t,e){let n,r=[],o=e.length;for(let s=0;s<o;s++){let i=e[s];if(i.marker!==126||i.end===-1)continue;let a=e[i.end];n=t.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&r.push(a.token-1)}for(;r.length;){let s=r.pop(),i=s+1;for(;i<t.tokens.length&&t.tokens[i].type==="s_close";)i++;i--,s!==i&&(n=t.tokens[i],t.tokens[i]=t.tokens[s],t.tokens[s]=n)}}function ADe(t){let e=t.tokens_meta,n=t.tokens_meta.length;VK(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&VK(t,e[r].delimiters)}var yP={tokenize:SDe,postProcess:ADe};function yDe(t,e){let n=t.pos,r=t.src.charCodeAt(n);if(e||r!==95&&r!==42)return!1;let o=t.scanDelims(t.pos,r===42);for(let s=0;s<o.length;s++){let i=t.push("text","",0);i.content=String.fromCharCode(r),t.delimiters.push({marker:r,length:o.length,token:t.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return t.pos+=o.length,!0}function qK(t,e){let n=e.length;for(let r=n-1;r>=0;r--){let o=e[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;let s=e[o.end],i=r>0&&e[r-1].end===o.end+1&&e[r-1].marker===o.marker&&e[r-1].token===o.token-1&&e[o.end+1].token===s.token+1,a=String.fromCharCode(o.marker),u=t.tokens[o.token];u.type=i?"strong_open":"em_open",u.tag=i?"strong":"em",u.nesting=1,u.markup=i?a+a:a,u.content="";let l=t.tokens[s.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?a+a:a,l.content="",i&&(t.tokens[e[r-1].token].content="",t.tokens[e[o.end+1].token].content="",r--)}}function bDe(t){let e=t.tokens_meta,n=t.tokens_meta.length;qK(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&qK(t,e[r].delimiters)}var bP={tokenize:yDe,postProcess:bDe};function RP(t,e){let n,r,o,s,i="",a="",u=t.pos,l=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;let d=t.pos,p=t.posMax,f=t.pos+1,m=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(m<0)return!1;let _=m+1;if(_<p&&t.src.charCodeAt(_)===40){for(l=!1,_++;_<p&&(n=t.src.charCodeAt(_),!(!me(n)&&n!==10));_++);if(_>=p)return!1;if(u=_,o=t.md.helpers.parseLinkDestination(t.src,_,t.posMax),o.ok){for(i=t.md.normalizeLink(o.str),t.md.validateLink(i)?_=o.pos:i="",u=_;_<p&&(n=t.src.charCodeAt(_),!(!me(n)&&n!==10));_++);if(o=t.md.helpers.parseLinkTitle(t.src,_,t.posMax),_<p&&u!==_&&o.ok)for(a=o.str,_=o.pos;_<p&&(n=t.src.charCodeAt(_),!(!me(n)&&n!==10));_++);}(_>=p||t.src.charCodeAt(_)!==41)&&(l=!0),_++}if(l){if(typeof t.env.references>"u")return!1;if(_<p&&t.src.charCodeAt(_)===91?(u=_+1,_=t.md.helpers.parseLinkLabel(t,_),_>=0?r=t.src.slice(u,_++):_=m+1):_=m+1,r||(r=t.src.slice(f,m)),s=t.env.references[xu(r)],!s)return t.pos=d,!1;i=s.href,a=s.title}if(!e){t.pos=f,t.posMax=m;let h=t.push("link_open","a",1),g=[["href",i]];h.attrs=g,a&&g.push(["title",a]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=_,t.posMax=p,!0}function IP(t,e){let n,r,o,s,i,a,u,l,d="",p=t.pos,f=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;let m=t.pos+2,_=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(_<0)return!1;if(s=_+1,s<f&&t.src.charCodeAt(s)===40){for(s++;s<f&&(n=t.src.charCodeAt(s),!(!me(n)&&n!==10));s++);if(s>=f)return!1;for(l=s,a=t.md.helpers.parseLinkDestination(t.src,s,t.posMax),a.ok&&(d=t.md.normalizeLink(a.str),t.md.validateLink(d)?s=a.pos:d=""),l=s;s<f&&(n=t.src.charCodeAt(s),!(!me(n)&&n!==10));s++);if(a=t.md.helpers.parseLinkTitle(t.src,s,t.posMax),s<f&&l!==s&&a.ok)for(u=a.str,s=a.pos;s<f&&(n=t.src.charCodeAt(s),!(!me(n)&&n!==10));s++);else u="";if(s>=f||t.src.charCodeAt(s)!==41)return t.pos=p,!1;s++}else{if(typeof t.env.references>"u")return!1;if(s<f&&t.src.charCodeAt(s)===91?(l=s+1,s=t.md.helpers.parseLinkLabel(t,s),s>=0?o=t.src.slice(l,s++):s=_+1):s=_+1,o||(o=t.src.slice(m,_)),i=t.env.references[xu(o)],!i)return t.pos=p,!1;d=i.href,u=i.title}if(!e){r=t.src.slice(m,_);let h=[];t.md.inline.parse(r,t.md,t.env,h);let g=t.push("image","img",0),E=[["src",d],["alt",""]];g.attrs=E,g.children=h,g.content=r,u&&E.push(["title",u])}return t.pos=s,t.posMax=f,!0}var RDe=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,IDe=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function OP(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;let r=t.pos,o=t.posMax;for(;;){if(++n>=o)return!1;let i=t.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}let s=t.src.slice(r+1,n);if(IDe.test(s)){let i=t.md.normalizeLink(s);if(!t.md.validateLink(i))return!1;if(!e){let a=t.push("link_open","a",1);a.attrs=[["href",i]],a.markup="autolink",a.info="auto";let u=t.push("text","",0);u.content=t.md.normalizeLinkText(s);let l=t.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return t.pos+=s.length+2,!0}if(RDe.test(s)){let i=t.md.normalizeLink("mailto:"+s);if(!t.md.validateLink(i))return!1;if(!e){let a=t.push("link_open","a",1);a.attrs=[["href",i]],a.markup="autolink",a.info="auto";let u=t.push("text","",0);u.content=t.md.normalizeLinkText(s);let l=t.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return t.pos+=s.length+2,!0}return!1}function ODe(t){return/^<a[>\s]/i.test(t)}function CDe(t){return/^<\/a\s*>/i.test(t)}function NDe(t){let e=t|32;return e>=97&&e<=122}function CP(t,e){if(!t.md.options.html)return!1;let n=t.posMax,r=t.pos;if(t.src.charCodeAt(r)!==60||r+2>=n)return!1;let o=t.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!NDe(o))return!1;let s=t.src.slice(r).match(FK);if(!s)return!1;if(!e){let i=t.push("html_inline","",0);i.content=s[0],ODe(i.content)&&t.linkLevel++,CDe(i.content)&&t.linkLevel--}return t.pos+=s[0].length,!0}var xDe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,PDe=/^&([a-z][a-z0-9]{1,31});/i;function NP(t,e){let n=t.pos,r=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=r)return!1;if(t.src.charCodeAt(n+1)===35){let s=t.src.slice(n).match(xDe);if(s){if(!e){let i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=t.push("text_special","",0);a.content=B0(i)?mm(i):mm(65533),a.markup=s[0],a.info="entity"}return t.pos+=s[0].length,!0}}else{let s=t.src.slice(n).match(PDe);if(s){let i=Ji(s[0]);if(i!==s[0]){if(!e){let a=t.push("text_special","",0);a.content=i,a.markup=s[0],a.info="entity"}return t.pos+=s[0].length,!0}}}return!1}function $K(t){let e={},n=t.length;if(!n)return;let r=0,o=-2,s=[];for(let i=0;i<n;i++){let a=t[i];if(s.push(0),(t[r].marker!==a.marker||o!==a.token-1)&&(r=i),o=a.token,a.length=a.length||0,!a.close)continue;e.hasOwnProperty(a.marker)||(e[a.marker]=[-1,-1,-1,-1,-1,-1]);let u=e[a.marker][(a.open?3:0)+a.length%3],l=r-s[r]-1,d=l;for(;l>u;l-=s[l]+1){let p=t[l];if(p.marker===a.marker&&p.open&&p.end<0){let f=!1;if((p.close||a.open)&&(p.length+a.length)%3===0&&(p.length%3!==0||a.length%3!==0)&&(f=!0),!f){let m=l>0&&!t[l-1].open?s[l-1]+1:0;s[i]=i-l+m,s[l]=m,a.open=!1,p.end=i,p.close=!1,d=-1,o=-2;break}}}d!==-1&&(e[a.marker][(a.open?3:0)+(a.length||0)%3]=d)}}function xP(t){let e=t.tokens_meta,n=t.tokens_meta.length;$K(t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&$K(e[r].delimiters)}function PP(t){let e,n,r=0,o=t.tokens,s=t.tokens.length;for(e=n=0;e<s;e++)o[e].nesting<0&&r--,o[e].level=r,o[e].nesting>0&&r++,o[e].type==="text"&&e+1<s&&o[e+1].type==="text"?o[e+1].content=o[e].content+o[e+1].content:(e!==n&&(o[n]=o[e]),n++);e!==n&&(o.length=n)}var MP=[["text",hP],["linkify",gP],["newline",TP],["escape",SP],["backticks",AP],["strikethrough",yP.tokenize],["emphasis",bP.tokenize],["link",RP],["image",IP],["autolink",OP],["html_inline",CP],["entity",NP]],vP=[["balance_pairs",xP],["strikethrough",yP.postProcess],["emphasis",bP.postProcess],["fragments_join",PP]];function hm(){this.ruler=new Pu;for(let t=0;t<MP.length;t++)this.ruler.push(MP[t][0],MP[t][1]);this.ruler2=new Pu;for(let t=0;t<vP.length;t++)this.ruler2.push(vP[t][0],vP[t][1])}hm.prototype.skipToken=function(t){let e=t.pos,n=this.ruler.getRules(""),r=n.length,o=t.md.options.maxNesting,s=t.cache;if(typeof s[e]<"u"){t.pos=s[e];return}let i=!1;if(t.level<o){for(let a=0;a<r;a++)if(t.level++,i=n[a](t,!0),t.level--,i){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;i||t.pos++,s[e]=t.pos};hm.prototype.tokenize=function(t){let e=this.ruler.getRules(""),n=e.length,r=t.posMax,o=t.md.options.maxNesting;for(;t.pos<r;){let s=t.pos,i=!1;if(t.level<o){for(let a=0;a<n;a++)if(i=e[a](t,!1),i){if(s>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(t.pos>=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};hm.prototype.parse=function(t,e,n,r){let o=new this.State(t,e,n,r);this.tokenize(o);let s=this.ruler2.getRules(""),i=s.length;for(let a=0;a<i;a++)s[a](o)};hm.prototype.State=HK;var zK=hm;function YK(t){let e={};t=t||{},e.src_Any=M0.source,e.src_Cc=v0.source,e.src_Z=L0.source,e.src_P=dd.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");let n="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function kP(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function V0(t){return Object.prototype.toString.call(t)}function MDe(t){return V0(t)==="[object String]"}function vDe(t){return V0(t)==="[object Object]"}function kDe(t){return V0(t)==="[object RegExp]"}function WK(t){return V0(t)==="[object Function]"}function LDe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var QK={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wDe(t){return Object.keys(t||{}).reduce(function(e,n){return e||QK.hasOwnProperty(n)},!1)}var DDe={"http:":{validate:function(t,e,n){let r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){let r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){let r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},UDe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",BDe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function FDe(t){t.__index__=-1,t.__text_cache__=""}function GDe(t){return function(e,n){let r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function KK(){return function(t,e){e.normalize(t)}}function H0(t){let e=t.re=YK(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(UDe),n.push(e.src_xn),e.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");let o=[];t.__compiled__={};function s(a,u){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+u)}Object.keys(t.__schemas__).forEach(function(a){let u=t.__schemas__[a];if(u===null)return;let l={validate:null,link:null};if(t.__compiled__[a]=l,vDe(u)){kDe(u.validate)?l.validate=GDe(u.validate):WK(u.validate)?l.validate=u.validate:s(a,u),WK(u.normalize)?l.normalize=u.normalize:u.normalize?s(a,u):l.normalize=KK();return}if(MDe(u)){o.push(a);return}s(a,u)}),o.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:KK()};let i=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(LDe).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),FDe(t)}function jDe(t,e){let n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function LP(t,e){let n=new jDe(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function lr(t,e){if(!(this instanceof lr))return new lr(t,e);e||wDe(t)&&(e=t,t={}),this.__opts__=kP({},QK,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=kP({},DDe,t),this.__compiled__={},this.__tlds__=BDe,this.__tlds_replaced__=!1,this.re={},H0(this)}lr.prototype.add=function(e,n){return this.__schemas__[e]=n,H0(this),this};lr.prototype.set=function(e){return this.__opts__=kP(this.__opts__,e),this};lr.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,o,s,i,a,u,l,d;if(this.re.schema_test.test(e)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],u.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0};lr.prototype.pretest=function(e){return this.re.pretest.test(e)};lr.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};lr.prototype.match=function(e){let n=[],r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(LP(this,r)),r=this.__last_index__);let o=r?e.slice(r):e;for(;this.test(o);)n.push(LP(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};lr.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let n=this.re.schema_at_start.exec(e);if(!n)return null;let r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,LP(this,0)):null};lr.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,o,s){return r!==s[o-1]}).reverse(),H0(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,H0(this),this)};lr.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};lr.prototype.onCompile=function(){};var JK=lr;var UP=Q(iQ(),1);var aQ={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var uQ={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var cQ={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var XDe={default:aQ,zero:uQ,commonmark:cQ},ZDe=/^(vbscript|javascript|file|data):/,e2e=/^data:image\/(gif|png|jpeg|webp);/;function t2e(t){let e=t.trim().toLowerCase();return ZDe.test(e)?e2e.test(e):!0}var lQ=["http:","https:","mailto:"];function n2e(t){let e=fm(t,!0);if(e.hostname&&(!e.protocol||lQ.indexOf(e.protocol)>=0))try{e.hostname=UP.default.toASCII(e.hostname)}catch{}return N0(ld(e))}function r2e(t){let e=fm(t,!0);if(e.hostname&&(!e.protocol||lQ.indexOf(e.protocol)>=0))try{e.hostname=UP.default.toUnicode(e.hostname)}catch{}return pm(ld(e),pm.defaultChars+"%")}function Ur(t,e){if(!(this instanceof Ur))return new Ur(t,e);e||U0(t)||(e=t||{},t="default"),this.inline=new zK,this.block=new jK,this.core=new MK,this.renderer=new IK,this.linkify=new JK,this.validateLink=t2e,this.normalizeLink=n2e,this.normalizeLinkText=r2e,this.utils=qx,this.helpers=pd({},Wx),this.options={},this.configure(t),e&&this.set(e)}Ur.prototype.set=function(t){return pd(this.options,t),this};Ur.prototype.configure=function(t){let e=this;if(U0(t)){let n=t;if(t=XDe[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this};Ur.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));let r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Ur.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));let r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Ur.prototype.use=function(t){let e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Ur.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");let n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Ur.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Ur.prototype.parseInline=function(t,e){let n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Ur.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var BP=Ur;var o2e=new I0({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return["p",0]}},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM(){return["blockquote",0]}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return["div",["hr"]]}},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(t){return["h"+t.attrs.level,0]}},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:t=>({params:t.getAttribute("data-params")||""})}],toDOM(t){return["pre",t.attrs.params?{"data-params":t.attrs.params}:{},["code",0]]}},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs(t){return{order:t.hasAttribute("start")?+t.getAttribute("start"):1,tight:t.hasAttribute("data-tight")}}}],toDOM(t){return["ol",{start:t.attrs.order==1?null:t.attrs.order,"data-tight":t.attrs.tight?"true":null},0]}},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:t=>({tight:t.hasAttribute("data-tight")})}],toDOM(t){return["ul",{"data-tight":t.attrs.tight?"true":null},0]}},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM(){return["li",0]}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(t){return{src:t.getAttribute("src"),title:t.getAttribute("title"),alt:t.getAttribute("alt")}}}],toDOM(t){return["img",t.attrs]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return["br"]}}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:t=>t.type.name=="em"}],toDOM(){return["em"]}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name=="strong"},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM(){return["strong"]}},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(t){return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM(t){return["a",t.attrs]}},code:{code:!0,parseDOM:[{tag:"code"}],toDOM(){return["code"]}}}});function s2e(t,e){if(t.isText&&e.isText&&at.sameSet(t.marks,e.marks))return t.withText(t.text+e.text)}var jP=class{constructor(e,n){this.schema=e,this.tokenHandlers=n,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:at.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let n=this.top(),r=n.content,o=r[r.length-1],s=this.schema.text(e,n.marks),i;o&&(i=s2e(o,s))?r[r.length-1]=i:r.push(s)}openMark(e){let n=this.top();n.marks=e.addToSet(n.marks)}closeMark(e){let n=this.top();n.marks=e.removeFromSet(n.marks)}parseTokens(e){for(let n=0;n<e.length;n++){let r=e[n],o=this.tokenHandlers[r.type];if(!o)throw new Error("Token type `"+r.type+"` not supported by Markdown parser");o(this,r,e,n)}}addNode(e,n,r){let o=this.top(),s=e.createAndFill(n,r,o?o.marks:[]);return s?(this.push(s),s):null}openNode(e,n){this.stack.push({type:e,attrs:n,content:[],marks:at.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}};function gm(t,e,n,r){return t.getAttrs?t.getAttrs(e,n,r):t.attrs instanceof Function?t.attrs(e):t.attrs}function FP(t,e){return t.noCloseToken||e=="code_inline"||e=="code_block"||e=="fence"}function dQ(t){return t[t.length-1]==`
|
|
65
|
-
`?t.slice(0,t.length-1):t}function GP(){}function i2e(t,e){let n=Object.create(null);for(let r in e){let o=e[r];if(o.block){let s=t.nodeType(o.block);FP(o,r)?n[r]=(i,a,u,l)=>{i.openNode(s,gm(o,a,u,l)),i.addText(dQ(a.content)),i.closeNode()}:(n[r+"_open"]=(i,a,u,l)=>i.openNode(s,gm(o,a,u,l)),n[r+"_close"]=i=>i.closeNode())}else if(o.node){let s=t.nodeType(o.node);n[r]=(i,a,u,l)=>i.addNode(s,gm(o,a,u,l))}else if(o.mark){let s=t.marks[o.mark];FP(o,r)?n[r]=(i,a,u,l)=>{i.openMark(s.create(gm(o,a,u,l))),i.addText(dQ(a.content)),i.closeMark(s)}:(n[r+"_open"]=(i,a,u,l)=>i.openMark(s.create(gm(o,a,u,l))),n[r+"_close"]=i=>i.closeMark(s))}else if(o.ignore)FP(o,r)?n[r]=GP:(n[r+"_open"]=GP,n[r+"_close"]=GP);else throw new RangeError("Unrecognized parsing spec "+JSON.stringify(o))}return n.text=(r,o)=>r.addText(o.content),n.inline=(r,o)=>r.parseTokens(o.children),n.softbreak=n.softbreak||(r=>r.addText(" ")),n}var HP=class{constructor(e,n,r){this.schema=e,this.tokenizer=n,this.tokens=r,this.tokenHandlers=i2e(e,r)}parse(e,n={}){let r=new jP(this.schema,this.tokenHandlers),o;r.parseTokens(this.tokenizer.parse(e,n));do o=r.closeNode();while(r.stack.length);return o||this.schema.topNodeType.createAndFill()}};function pQ(t,e){for(;++e<t.length;)if(t[e].type!="list_item_open")return t[e].hidden;return!1}var mQ=new HP(o2e,BP("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(t,e,n)=>({tight:pQ(e,n)})},ordered_list:{block:"ordered_list",getAttrs:(t,e,n)=>({order:+t.attrGet("start")||1,tight:pQ(e,n)})},heading:{block:"heading",getAttrs:t=>({level:+t.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:t=>({params:t.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:t=>({src:t.attrGet("src"),title:t.attrGet("title")||null,alt:t.children[0]&&t.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:t=>({href:t.attrGet("href"),title:t.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}}),a2e={open:"",close:"",mixable:!0},VP=class{constructor(e,n,r={}){this.nodes=e,this.marks=n,this.options=r}serialize(e,n={}){n=Object.assign({},this.options,n);let r=new qP(this.nodes,this.marks,n);return r.renderContent(e),r.out}},
|
|
65
|
+
`?t.slice(0,t.length-1):t}function GP(){}function i2e(t,e){let n=Object.create(null);for(let r in e){let o=e[r];if(o.block){let s=t.nodeType(o.block);FP(o,r)?n[r]=(i,a,u,l)=>{i.openNode(s,gm(o,a,u,l)),i.addText(dQ(a.content)),i.closeNode()}:(n[r+"_open"]=(i,a,u,l)=>i.openNode(s,gm(o,a,u,l)),n[r+"_close"]=i=>i.closeNode())}else if(o.node){let s=t.nodeType(o.node);n[r]=(i,a,u,l)=>i.addNode(s,gm(o,a,u,l))}else if(o.mark){let s=t.marks[o.mark];FP(o,r)?n[r]=(i,a,u,l)=>{i.openMark(s.create(gm(o,a,u,l))),i.addText(dQ(a.content)),i.closeMark(s)}:(n[r+"_open"]=(i,a,u,l)=>i.openMark(s.create(gm(o,a,u,l))),n[r+"_close"]=i=>i.closeMark(s))}else if(o.ignore)FP(o,r)?n[r]=GP:(n[r+"_open"]=GP,n[r+"_close"]=GP);else throw new RangeError("Unrecognized parsing spec "+JSON.stringify(o))}return n.text=(r,o)=>r.addText(o.content),n.inline=(r,o)=>r.parseTokens(o.children),n.softbreak=n.softbreak||(r=>r.addText(" ")),n}var HP=class{constructor(e,n,r){this.schema=e,this.tokenizer=n,this.tokens=r,this.tokenHandlers=i2e(e,r)}parse(e,n={}){let r=new jP(this.schema,this.tokenHandlers),o;r.parseTokens(this.tokenizer.parse(e,n));do o=r.closeNode();while(r.stack.length);return o||this.schema.topNodeType.createAndFill()}};function pQ(t,e){for(;++e<t.length;)if(t[e].type!="list_item_open")return t[e].hidden;return!1}var mQ=new HP(o2e,BP("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(t,e,n)=>({tight:pQ(e,n)})},ordered_list:{block:"ordered_list",getAttrs:(t,e,n)=>({order:+t.attrGet("start")||1,tight:pQ(e,n)})},heading:{block:"heading",getAttrs:t=>({level:+t.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:t=>({params:t.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:t=>({src:t.attrGet("src"),title:t.attrGet("title")||null,alt:t.children[0]&&t.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:t=>({href:t.attrGet("href"),title:t.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}}),a2e={open:"",close:"",mixable:!0},VP=class{constructor(e,n,r={}){this.nodes=e,this.marks=n,this.options=r}serialize(e,n={}){n=Object.assign({},this.options,n);let r=new qP(this.nodes,this.marks,n);return r.renderContent(e),r.out}},ult=new VP({blockquote(t,e){t.wrapBlock("> ",null,e,()=>t.renderContent(e))},code_block(t,e){let n=e.textContent.match(/`{3,}/gm),r=n?n.sort().slice(-1)[0]+"`":"```";t.write(r+(e.attrs.params||"")+`
|
|
66
66
|
`),t.text(e.textContent,!1),t.write(`
|
|
67
67
|
`),t.write(r),t.closeBlock(e)},heading(t,e){t.write(t.repeat("#",e.attrs.level)+" "),t.renderInline(e,!1),t.closeBlock(e)},horizontal_rule(t,e){t.write(e.attrs.markup||"---"),t.closeBlock(e)},bullet_list(t,e){t.renderList(e," ",()=>(e.attrs.bullet||"*")+" ")},ordered_list(t,e){let n=e.attrs.order||1,r=String(n+e.childCount-1).length,o=t.repeat(" ",r+2);t.renderList(e,o,s=>{let i=String(n+s);return t.repeat(" ",r-i.length)+i+". "})},list_item(t,e){t.renderContent(e)},paragraph(t,e){t.renderInline(e),t.closeBlock(e)},image(t,e){t.write("]/g,"\\$&")+(e.attrs.title?' "'+e.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(t,e,n,r){for(let o=r+1;o<n.childCount;o++)if(n.child(o).type!=e.type){t.write(`\\
|
|
68
68
|
`);return}},text(t,e){t.text(e.text,!t.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open(t,e,n,r){return t.inAutolink=u2e(e,n,r),t.inAutolink?"<":"["},close(t,e,n,r){let{inAutolink:o}=t;return t.inAutolink=void 0,o?">":"]("+e.attrs.href.replace(/[\(\)"]/g,"\\$&")+(e.attrs.title?` "${e.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open(t,e,n,r){return fQ(n.child(r),-1)},close(t,e,n,r){return fQ(n.child(r-1),1)},escape:!1}});function fQ(t,e){let n=/`+/g,r,o=0;if(t.isText)for(;r=n.exec(t.text);)o=Math.max(o,r[0].length);let s=o>0&&e>0?" `":"`";for(let i=0;i<o;i++)s+="`";return o>0&&e<0&&(s+=" "),s}function u2e(t,e,n){if(t.attrs.title||!/^\w+:/.test(t.attrs.href))return!1;let r=e.child(n);return!r.isText||r.text!=t.attrs.href||r.marks[r.marks.length-1]!=t?!1:n==e.childCount-1||!t.isInSet(e.child(n+1).marks)}var qP=class{constructor(e,n,r){this.nodes=e,this.marks=n,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,typeof this.options.tightLists>"u"&&(this.options.tightLists=!1),typeof this.options.hardBreakNodeName>"u"&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+=`
|
|
@@ -137,12 +137,12 @@ exec ${JP(n)} ${JP(t)} "$@"
|
|
|
137
137
|
`:""}var tJ={meta:{name:"logs",description:"Print recent log entries"},args:{lines:{type:"string",alias:"n",description:"Number of log entries to print",default:String(eJ)}},async run({args:t}){let e=Number.parseInt(t.lines,10);if(!Number.isFinite(e)||e<0)throw new Error("--lines must be a non-negative integer");let n=await RUe(nm(),e);n&&console.log(n.trimEnd())}};import{promises as Zi}from"node:fs";import IUe from"node:os";import vu from"node:path";import{fileURLToPath as nJ}from"node:url";function o1(){return vu.join(IUe.homedir(),".claude","skills")}function rJ(t){return t.map(e=>e.name).sort().join(", ")}function oJ(t){return t[0]?vu.dirname(t[0].destination):o1()}async function OUe(t){try{return(await Zi.stat(t)).isDirectory()}catch(e){if(e.code==="ENOENT")return!1;throw e}}async function sJ(){let t=[nJ(new URL("../skills",import.meta.url)),nJ(new URL("../../../skills",import.meta.url))];for(let e of t)if(await OUe(e))return e;throw new Error("bundled skills directory not found")}function CUe(t,e){let n=t.match(/^(---\r?\n)([\s\S]*?)(\r?\n---(?:\r?\n|$))/);if(!n)throw new Error("skill file is missing frontmatter");let[,r,o,s]=n,i=o.replace(/^name: .*$/m,`name: ${e}`);if(i===o)throw new Error("skill file frontmatter is missing a name");return`${r}${i}${s}${t.slice(n[0].length)}`}async function NUe({destination:t=o1(),environment:e=Ve(),sourceDir:n}={}){let r=n??await sJ(),o=(await Zi.readdir(r,{withFileTypes:!0})).filter(a=>a.isDirectory()),s=e==="prod"?"":`-${e}`,i=[];await Zi.mkdir(t,{recursive:!0});for(let a of o){let u=`${a.name}${s}`,l=vu.join(r,a.name),d=vu.join(t,u);if(await Zi.cp(l,d,{recursive:!0,force:!0}),s){let p=vu.join(d,"SKILL.md"),f=await Zi.readFile(p,"utf8");await Zi.writeFile(p,CUe(f,u))}i.push({name:u,source:l,destination:d})}return i}async function xUe({destination:t=o1(),environment:e=Ve(),sourceDir:n}={}){let r=n??await sJ(),o=(await Zi.readdir(r,{withFileTypes:!0})).filter(a=>a.isDirectory()),s=e==="prod"?"":`-${e}`,i=[];for(let a of o){let u=`${a.name}${s}`,l=vu.join(r,a.name),d=vu.join(t,u);await Zi.rm(d,{recursive:!0,force:!0}),i.push({name:u,source:l,destination:d})}return i}var iJ={meta:{name:"postinstall:install-skills",hidden:!0},args:{destination:{type:"positional",required:!1,description:"Install destination"}},async run({args:t}){let e=await NUe({destination:t.destination});console.log(`installed skills ${rJ(e)} to ${oJ(e)}`)}},aJ={meta:{name:"postinstall:uninstall-skills",hidden:!0},args:{destination:{type:"positional",required:!1,description:"Install destination"}},async run({args:t}){let e=await xUe({destination:t.destination});console.log(`uninstalled skills ${rJ(e)} from ${oJ(e)}`)}},uJ={meta:{name:"postinstall:refresh-background-binary",hidden:!0},async run(){let t;try{t=await MQ()}catch(e){console.error(`background binary refresh failed: ${e instanceof Error?e.message:String(e)}`);return}if(!t.refreshed){console.log(`background binary refresh skipped: ${t.reason}`);return}console.log(`refreshed background binary at ${t.binaryPath}`)}};var cJ={meta:{name:"version",description:"Print the Lore CLI version"},run(){console.log(to())}};import{createInterface as PUe}from"node:readline/promises";var MUe=/\/skills\/s\/([A-Za-z0-9_-]+)/,dJ={meta:{name:"install",description:"Pull a skill from Lore and write it to ~/.claude/skills/<name>/SKILL.md. Accepts a workspace skill name, a /skills/s/<token> share URL, or a bare share token."},args:{target:{type:"positional",required:!0,description:"Skill name (workspace) or share URL/token (cross-team)"},yes:{type:"boolean",required:!1,description:"Skip the confirmation prompt before overwriting an existing SKILL.md"}},async run({args:t}){let e=typeof t.target=="string"?t.target.trim():"";if(!e)throw new Se("install needs a target \u2014 e.g. `lore skills install feature` or `lore skills install https://lore.so/skills/s/<token>`");let n=kUe(e),r=await LUe(n);if(!Sm(r.name))throw new Se(`refusing to install skill with invalid name: ${JSON.stringify(r.name)}`);let o=await Td(r.name);if(o&&o.bodyMd===r.bodyMd){console.log(`/${r.name} is already up to date at ${o.filePath}`);return}if(o){if(console.log(`A SKILL.md for /${r.name} already exists at:
|
|
138
138
|
${o.filePath}`),console.log(""),console.log("--- diff (- local, + remote) ---"),wUe(o.bodyMd,r.bodyMd),console.log("--------------------------------"),!(!!t.yes||await lJ("Overwrite with the remote version? "))){console.log("install cancelled");return}}else if(n.kind==="shared"&&!t.yes&&(console.log(`About to install /${r.name} from a shared link.`),r.description&&console.log(` description: ${r.description}`),r.author&&console.log(` author: ${r.author}`),console.log(""),console.log("--- skill body ---"),console.log(r.bodyMd),console.log("------------------"),!await lJ("Install this skill? "))){console.log("install cancelled");return}let s=await WQ(r.name,r.bodyMd);console.log(`installed /${r.name} -> ${s}`)}},vUe=/^[A-Za-z0-9_-]{32}$/;function kUe(t){let e=MUe.exec(t);return e?.[1]?{kind:"shared",token:e[1]}:vUe.test(t)?{kind:"shared",token:t}:{kind:"workspace",name:t}}async function LUe(t){let e=Xe();if(t.kind==="shared"){let r=await e.getSharedSkill({params:{token:t.token}});if(r.status!==200){let o=r.body?.message??`shared skill lookup returned ${r.status}`;throw new Se(o)}return{name:r.body.name,description:r.body.description,bodyMd:r.body.body_md,author:r.body.author?.display_name??null}}if(!fn())throw new Se("workspace skill installs require login \u2014 run 'lore login' first");let n=await e.getSkillRaw({params:{name:t.name}});if(n.status!==200){let r=n.body?.message??`getSkillRaw returned ${n.status}`;throw new Se(r)}return{name:t.name,description:null,bodyMd:typeof n.body=="string"?n.body:String(n.body),author:null}}function wUe(t,e){let n=t.split(`
|
|
139
139
|
`),r=e.split(`
|
|
140
|
-
`),o=Math.max(n.length,r.length);for(let s=0;s<o;s+=1){let i=n[s],a=r[s];if(i===a){console.log(` ${i}`);continue}i!==void 0&&console.log(`- ${i}`),a!==void 0&&console.log(`+ ${a}`)}}async function lJ(t){let e=PUe({input:process.stdin,output:process.stdout});try{let n=(await e.question(`${t}[y/N] `)).trim().toLowerCase();return n==="y"||n==="yes"}finally{e.close()}}var pJ={meta:{name:"list",description:"List skills available in your workspace."},async run(){if(!fn())throw new Se("not logged in \u2014 run 'lore login' first");let e=await Xe().listSkills({});if(e.status!==200){let n=e.body?.message??`listSkills returned ${e.status}`;throw new Se(n)}if(e.body.objects.length===0){console.log("no skills in this workspace yet");return}for(let n of e.body.objects){let r=n.source?` [${n.source}]`:"",o=n.description?` \u2014 ${n.description}`:"";console.log(`/${n.name}${r}${o}`)}}};var fJ={meta:{name:"publish",description:"Push a local SKILL.md to Lore so it can be downloaded and installed by your team. Pass --all to publish every skill in ~/.claude/skills/."},args:{name:{type:"positional",required:!1,description:"Skill directory name under ~/.claude/skills/<name>/SKILL.md or ./.claude/skills/<name>/SKILL.md"},all:{type:"boolean",required:!1,description:"Publish every locally installed skill in one go"}},async run({args:t}){if(!fn())throw new Se("not logged in \u2014 run 'lore login' first");let e=Xe(),n=await DUe(t);if(n.length===0)throw new Se("no skills to publish \u2014 pass a name like `lore skills publish feature` or `--all`");let r=0;for(let o of n){let s=await Td(o);if(!s){console.error(`skip ${o}: no SKILL.md found locally`);continue}let i=await e.publishSkill({params:{name:o},body:{body_md:s.bodyMd,description:s.description,published:!0}});if(i.status!==200){let a=i.body?.message??`publishSkill returned ${i.status}`;throw new Se(`failed to publish ${o}: ${a}`)}r+=1,console.log(`published /${o} (v${i.body.latest_version}, ${i.body.source}) from ${s.filePath}`)}if(r===0)throw new Se("no skills were published \u2014 check the names and try again")}};async function DUe(t){if(t.all)return J0();let e=typeof t.name=="string"?t.name.trim():"";return e?[e]:[]}var mJ={meta:{name:"skills",description:"Publish, install, and list skills shared via Lore."},subCommands:{publish:fJ,install:dJ,list:pJ}};var _J="(we're waiting on macOS launchd; this takes up to a minute \u2026)";function UUe(){if(!process.stdout.isTTY)return console.log(_J),{stop(){}};let t=["|","/","-","\\"],e=0,n=()=>{process.stdout.write(`\r${t[e%t.length]} ${_J}`),e++};n();let r=setInterval(n,100);return{stop(){clearInterval(r),process.stdout.write("\r\x1B[2K")}}}var hJ={meta:{name:"enable",description:"Install and start background uploads"},async run(){let t=UUe(),e,n;try{({plistPath:e,binaryPath:n}=await Tm())}finally{t.stop()}console.log("Lore background uploads enabled."),console.log(`LaunchAgent: ${e}`),console.log(`Stable binary: ${n}`)}},gJ={meta:{name:"disable",description:"Stop and remove background uploads"},async run(){await vQ(),console.log("Lore background uploads disabled.")}},TJ={meta:{name:"restart",description:"Restart background uploads"},async run(){await Tm(),console.log("Lore background uploads restarted.")}},EJ={meta:{name:"status",description:"Show background upload status"},args:{json:{type:"boolean",description:"Output status as JSON"}},async run({args:t}){let e=await kQ();if(t.json){console.log(JSON.stringify(e,null,2));return}console.log(`Lore: ${e.health}`),console.log(`Enabled: ${e.enabled}`),console.log(`Loaded: ${e.loaded}`),console.log(`Running: ${e.running}`),console.log(`Healthy: ${e.healthy}`),e.status?.last_heartbeat_at&&console.log(`Last heartbeat: ${e.status.last_heartbeat_at}`),e.status?.last_success_at&&console.log(`Last success: ${e.status.last_success_at}`),e.status?.last_error&&console.log(`Last error: ${e.status.last_error}`),console.log(`LaunchAgent: ${e.plist_path}`),console.log(`Stable binary: ${e.binary_path}`),console.log(`Status file: ${e.status_path}`)}};import
|
|
140
|
+
`),o=Math.max(n.length,r.length);for(let s=0;s<o;s+=1){let i=n[s],a=r[s];if(i===a){console.log(` ${i}`);continue}i!==void 0&&console.log(`- ${i}`),a!==void 0&&console.log(`+ ${a}`)}}async function lJ(t){let e=PUe({input:process.stdin,output:process.stdout});try{let n=(await e.question(`${t}[y/N] `)).trim().toLowerCase();return n==="y"||n==="yes"}finally{e.close()}}var pJ={meta:{name:"list",description:"List skills available in your workspace."},async run(){if(!fn())throw new Se("not logged in \u2014 run 'lore login' first");let e=await Xe().listSkills({});if(e.status!==200){let n=e.body?.message??`listSkills returned ${e.status}`;throw new Se(n)}if(e.body.objects.length===0){console.log("no skills in this workspace yet");return}for(let n of e.body.objects){let r=n.source?` [${n.source}]`:"",o=n.description?` \u2014 ${n.description}`:"";console.log(`/${n.name}${r}${o}`)}}};var fJ={meta:{name:"publish",description:"Push a local SKILL.md to Lore so it can be downloaded and installed by your team. Pass --all to publish every skill in ~/.claude/skills/."},args:{name:{type:"positional",required:!1,description:"Skill directory name under ~/.claude/skills/<name>/SKILL.md or ./.claude/skills/<name>/SKILL.md"},all:{type:"boolean",required:!1,description:"Publish every locally installed skill in one go"}},async run({args:t}){if(!fn())throw new Se("not logged in \u2014 run 'lore login' first");let e=Xe(),n=await DUe(t);if(n.length===0)throw new Se("no skills to publish \u2014 pass a name like `lore skills publish feature` or `--all`");let r=0;for(let o of n){let s=await Td(o);if(!s){console.error(`skip ${o}: no SKILL.md found locally`);continue}let i=await e.publishSkill({params:{name:o},body:{body_md:s.bodyMd,description:s.description,published:!0}});if(i.status!==200){let a=i.body?.message??`publishSkill returned ${i.status}`;throw new Se(`failed to publish ${o}: ${a}`)}r+=1,console.log(`published /${o} (v${i.body.latest_version}, ${i.body.source}) from ${s.filePath}`)}if(r===0)throw new Se("no skills were published \u2014 check the names and try again")}};async function DUe(t){if(t.all)return J0();let e=typeof t.name=="string"?t.name.trim():"";return e?[e]:[]}var mJ={meta:{name:"skills",description:"Publish, install, and list skills shared via Lore."},subCommands:{publish:fJ,install:dJ,list:pJ}};var _J="(we're waiting on macOS launchd; this takes up to a minute \u2026)";function UUe(){if(!process.stdout.isTTY)return console.log(_J),{stop(){}};let t=["|","/","-","\\"],e=0,n=()=>{process.stdout.write(`\r${t[e%t.length]} ${_J}`),e++};n();let r=setInterval(n,100);return{stop(){clearInterval(r),process.stdout.write("\r\x1B[2K")}}}var hJ={meta:{name:"enable",description:"Install and start background uploads"},async run(){let t=UUe(),e,n;try{({plistPath:e,binaryPath:n}=await Tm())}finally{t.stop()}console.log("Lore background uploads enabled."),console.log(`LaunchAgent: ${e}`),console.log(`Stable binary: ${n}`)}},gJ={meta:{name:"disable",description:"Stop and remove background uploads"},async run(){await vQ(),console.log("Lore background uploads disabled.")}},TJ={meta:{name:"restart",description:"Restart background uploads"},async run(){await Tm(),console.log("Lore background uploads restarted.")}},EJ={meta:{name:"status",description:"Show background upload status"},args:{json:{type:"boolean",description:"Output status as JSON"}},async run({args:t}){let e=await kQ();if(t.json){console.log(JSON.stringify(e,null,2));return}console.log(`Lore: ${e.health}`),console.log(`Enabled: ${e.enabled}`),console.log(`Loaded: ${e.loaded}`),console.log(`Running: ${e.running}`),console.log(`Healthy: ${e.healthy}`),e.status?.last_heartbeat_at&&console.log(`Last heartbeat: ${e.status.last_heartbeat_at}`),e.status?.last_success_at&&console.log(`Last success: ${e.status.last_success_at}`),e.status?.last_error&&console.log(`Last error: ${e.status.last_error}`),console.log(`LaunchAgent: ${e.plist_path}`),console.log(`Stable binary: ${e.binary_path}`),console.log(`Status file: ${e.status_path}`)}};import iBe from"node:fs/promises";import aBe from"node:os";import tA from"node:path";import{spawn as BUe}from"node:child_process";import FUe from"node:os";async function SJ(t,e={}){let n=e.timeoutMs??2e3,r=GUe();for(let o of r)if(await jUe(o,t,n))return!0;return!1}function GUe(){switch(FUe.platform()){case"darwin":return[{name:"pbcopy",args:[]}];case"linux":return[{name:"wl-copy",args:[]},{name:"xclip",args:["-selection","clipboard"]},{name:"xsel",args:["--clipboard","--input"]}];case"win32":return[{name:"clip.exe",args:[]}];default:return[]}}async function jUe(t,e,n){return new Promise(r=>{let o;try{o=BUe(t.name,t.args,{stdio:["pipe","ignore","ignore"]})}catch{r(!1);return}let s=!1,i=u=>{s||(s=!0,r(u))},a=setTimeout(()=>{o.kill("SIGKILL"),i(!1)},n);o.on("error",()=>{clearTimeout(a),i(!1)}),o.on("close",u=>{clearTimeout(a),i(u===0)}),o.stdin?.on("error",()=>{}),o.stdin?.end(e)})}var HUe={dev:"http://localhost:8080",prod:"https://lore.tanagram.ai"};function Z0(){return HUe[Ve()]}import IJ from"node:fs/promises";import Am from"node:path";var VUe={claudeCode:"Claude Code",codex:"Codex",amp:"Amp",cursor:"Cursor",cowork:"Cowork",unspecified:"Unspecified harness"},qUe={private:"Private",workspace:"Workspace",public:"Public"},$Ue={asked:"Asked",requested:"Requested",decided:"Decided",corrected:"Corrected",shared:"Shared"},s1="<!-- lore:remix-of ",AJ=" -->";function zUe(t){return`${s1}${t}${AJ}`}function yJ(t){let e=t.slice(0,4096),n=e.indexOf(s1);if(n<0)return null;let r=n+s1.length,o=e.indexOf(AJ,r);if(o<0)return null;let s=e.slice(r,o).trim();return s.startsWith("th_")?s:null}function bJ(t){let e=[];if(e.push(zUe(t.thread_id)),e.push(`# Lore Remix \xB7 ${WUe(t.title)}`),e.push(""),t.summary&&(e.push(`> ${KUe(t.summary)}`),e.push("")),e.push(...YUe(t)),e.push(""),t.original_user_prompt&&(e.push("## What was being built"),e.push(""),e.push(t.original_user_prompt.trim()),e.push("")),t.decisions.length>0){e.push("## Key decisions"),e.push("");for(let n of t.decisions){let r=$Ue[n.kind];e.push(`- **${r}.** ${n.summary.trim()}`)}e.push("")}if(t.last_assistant_message&&(e.push("## Where the session left off"),e.push(""),e.push(t.last_assistant_message.trim()),e.push("")),t.files_touched.length>0){e.push("## Files touched"),e.push("");for(let n of t.files_touched)e.push(`- \`${n}\``);e.push("")}return e.push("## Continue from here"),e.push(""),e.push("Pick up where this thread left off. In your next prompt, reference this file and tell the agent what you want to do next:"),e.push(""),e.push('> "Read ./LORE_REMIX.md and continue from there. I want to ..."'),e.push(""),e.push(`When you \`lore export\` your new session, it will be linked back to ${t.source_url} as a remix. The original author's thread will show your remix in its lineage.`),e.push(""),t.truncated&&(e.push(`_This brief was condensed. For the full thread (every prompt, tool call, diff), open ${t.source_url}._`),e.push("")),`${e.join(`
|
|
141
141
|
`).trimEnd()}
|
|
142
|
-
`}function YUe(t){let e=[];e.push(`**Source**: ${t.source_url}`);let n=t.author.handle?`@${t.author.handle} (${t.author.display_name})`:t.author.display_name;return e.push(`**Original author**: ${n}`),e.push(`**Original harness**: ${VUe[t.harness]??t.harness}`),e.push(`**Started**: ${QUe(t.started_at)}`),e.push(`**Visibility**: ${qUe[t.visibility]}`),e}function WUe(t){return t.replace(/[\r\n]+/g," ").trim()}function KUe(t){return t.replace(/\s+/g," ").trim()}function QUe(t){let e=Date.parse(t);return Number.isNaN(e)?t:new Date(e).toISOString().replace("T"," ").replace(/\..*$/," UTC")}import JUe from"node:fs/promises";import{setTimeout as XUe}from"node:timers/promises";var ZUe=1e3,eBe=2*60*1e3;async function Ed(t,e){let n=e.map(o=>({md5:o.md5,harness:o.harness,filename:o.filename,repo_origin_path:o.repoOriginPath||void 0,file_type:o.fileType,harness_internal_id:o.harnessInternalId,remix_of_thread_id:o.remixOfThreadId||void 0})),r=await t.createUploadSession({body:{thread_files:n}});if(r.status!==201)throw new Error(Ds("create upload session",r.status,r.body));return r.body}async function Sd(t,e){let n=await JUe.readFile(e),r=await fetch(t,{method:"PUT",body:n,headers:{"content-length":String(n.length)}});if(!r.ok)throw new Error(`upload transcript: unexpected status ${r.status}: ${await r.text()}`)}async function Ad(t,e,n){let r=n.map(s=>({storage_url:tBe(s)})),o=await t.completeUploadSession({params:{id:e},body:{thread_files:r}});if(o.status!==200)throw new Error(Ds("complete upload session",o.status,o.body));return o.body}async function yd(t,e,n={}){let r=n.timeoutMs??eBe,o=n.pollIntervalMs??ZUe,s=Date.now();for(;;){n.onPoll&&await n.onPoll();let i=await t.getThread({params:{id:e}});if(i.status!==200)throw new Error(Ds(`get thread ${e}`,i.status,i.body));let a=i.body.transcript_parsing_state;if(a==="parsed"||a==="too_large_to_parse")return;if(a!=="pending"&&a!=="parsing")throw new Error(`unexpected transcript parsing state for thread ${e}: ${JSON.stringify(a)}`);let u=Date.now()-s;if(u>=r)throw new Error(`timed out waiting for thread ${e} parsing after ${r}ms`);await XUe(Math.min(o,r-u))}}function RJ(t,e){let n=new Map;for(let r of t){let o=r.md5.trim().toLowerCase();n.set(o,[...n.get(o)??[],r])}return e.map((r,o)=>{let s=r.expected_md5?.trim();if(!s)throw new Error(`upload session response missing expected_md5 for thread_files[${o}]`);let i=s.toLowerCase(),a=n.get(i);if(!a||a.length===0)throw new Error(`upload session response returned unexpected expected_md5 ${s}`);let[u,...l]=a;if(!u)throw new Error(`upload session response returned unexpected expected_md5 ${s}`);return l.length===0?n.delete(i):n.set(i,l),u})}function tBe(t){if(!t.storage_url.trim())throw new Error("upload session response missing storage_url");return
|
|
143
|
-
`)}var
|
|
144
|
-
`)}async function
|
|
145
|
-
`,{mode:384})}var wJ={meta:{name:"_run_upload",hidden:!0},async run({data:t}){let e=await kJ({client:t?.client,adapter:t?.adapter,recorder:t?.recorder});console.log(JSON.stringify(e))}};import{spawn as
|
|
142
|
+
`}function YUe(t){let e=[];e.push(`**Source**: ${t.source_url}`);let n=t.author.handle?`@${t.author.handle} (${t.author.display_name})`:t.author.display_name;return e.push(`**Original author**: ${n}`),e.push(`**Original harness**: ${VUe[t.harness]??t.harness}`),e.push(`**Started**: ${QUe(t.started_at)}`),e.push(`**Visibility**: ${qUe[t.visibility]}`),e}function WUe(t){return t.replace(/[\r\n]+/g," ").trim()}function KUe(t){return t.replace(/\s+/g," ").trim()}function QUe(t){let e=Date.parse(t);return Number.isNaN(e)?t:new Date(e).toISOString().replace("T"," ").replace(/\..*$/," UTC")}import JUe from"node:fs/promises";import{setTimeout as XUe}from"node:timers/promises";var ZUe=1e3,eBe=2*60*1e3;async function Ed(t,e){let n=e.map(o=>({md5:o.md5,harness:o.harness,filename:o.filename,repo_origin_path:o.repoOriginPath||void 0,file_type:o.fileType,harness_internal_id:o.harnessInternalId,remix_of_thread_id:o.remixOfThreadId||void 0})),r=await t.createUploadSession({body:{thread_files:n}});if(r.status!==201)throw new Error(Ds("create upload session",r.status,r.body));return r.body}async function Sd(t,e){let n=await JUe.readFile(e),r=await fetch(t,{method:"PUT",body:n,headers:{"content-length":String(n.length)}});if(!r.ok)throw new Error(`upload transcript: unexpected status ${r.status}: ${await r.text()}`)}async function Ad(t,e,n){let r=n.map(s=>({storage_url:tBe(s)})),o=await t.completeUploadSession({params:{id:e},body:{thread_files:r}});if(o.status!==200)throw new Error(Ds("complete upload session",o.status,o.body));return o.body}async function yd(t,e,n={}){let r=n.timeoutMs??eBe,o=n.pollIntervalMs??ZUe,s=Date.now();for(;;){n.onPoll&&await n.onPoll();let i=await t.getThread({params:{id:e}});if(i.status!==200)throw new Error(Ds(`get thread ${e}`,i.status,i.body));let a=i.body.transcript_parsing_state;if(a==="parsed"||a==="too_large_to_parse")return;if(a!=="pending"&&a!=="parsing")throw new Error(`unexpected transcript parsing state for thread ${e}: ${JSON.stringify(a)}`);let u=Date.now()-s;if(u>=r)throw new Error(`timed out waiting for thread ${e} parsing after ${r}ms`);await XUe(Math.min(o,r-u))}}function RJ(t,e){let n=new Map;for(let r of t){let o=r.md5.trim().toLowerCase();n.set(o,[...n.get(o)??[],r])}return e.map((r,o)=>{let s=r.expected_md5?.trim();if(!s)throw new Error(`upload session response missing expected_md5 for thread_files[${o}]`);let i=s.toLowerCase(),a=n.get(i);if(!a||a.length===0)throw new Error(`upload session response returned unexpected expected_md5 ${s}`);let[u,...l]=a;if(!u)throw new Error(`upload session response returned unexpected expected_md5 ${s}`);return l.length===0?n.delete(i):n.set(i,l),u})}function tBe(t){if(!t.storage_url.trim())throw new Error("upload session response missing storage_url");return t.storage_url}function Ds(t,e,n){return nBe(n)&&typeof n.message=="string"?`${t} failed: HTTP ${e}: ${n.message}`:`${t} failed: HTTP ${e}`}function nBe(t){return t!==null&&typeof t=="object"}var eA="LORE_REMIX.md";async function OJ(t){let e=t.threadRef.trim();if(!e)throw new Se("lore remix needs a thread id or URL");let n=rBe(e),r=Am.resolve((t.cwd??process.cwd()).trim()||process.cwd()),o=Am.resolve(r,t.outPath?.trim()||eA),s=t.client??Xe({token:fn()}),i=await oBe(s,n);await IJ.mkdir(Am.dirname(o),{recursive:!0}),await IJ.writeFile(o,bJ(i),{mode:384});let a=sBe(i,o);return{thread_id:i.thread_id,source_url:i.source_url,brief_path:o,visibility:i.visibility,remix_count_will_increment:!0,message:a}}function rBe(t){let e=t.trim();if(!e)throw new Se("lore remix needs a thread id or URL");if(e.startsWith("th_"))return e;let n;try{n=new URL(e)}catch{throw new Se(`lore remix could not parse "${t}" as a thread id or URL \u2014 pass a th_\u2026 id or a https://\u2026/session/th_\u2026 URL`)}let r=n.pathname.split("/").filter(Boolean),o=r.indexOf("session");if(o>=0&&r[o+1]?.startsWith("th_"))return r[o+1];let s=r[r.length-1];if(s?.startsWith("th_"))return s;throw new Se(`lore remix could not find a th_\u2026 id in "${t}" \u2014 pass the full session URL or the bare thread id`)}async function oBe(t,e){let n=await t.getThreadRemixBrief({params:{id:e}});if(n.status===200)return n.body;throw n.status===404?new Se(`thread ${e} not found \u2014 check the link or id`):n.status===401?new Se(`thread ${e} requires sign-in \u2014 run \`lore login\` and try again`):n.status===403?new Se(`thread ${e} is not visible to you \u2014 only public threads and workspace threads inside your org can be remixed`):new Error(Ds(`fetch remix brief for ${e}`,n.status,n.body))}function sBe(t,e){return[`Wrote remix brief to ${e}`,"",`Source: ${t.source_url}`,"Open Claude Code (or Codex / Cursor) in this directory and reference the brief in your first prompt:","",`> "Read ${Am.basename(e)} and continue from there. I want to ..."`,"",`When you \`lore export\` your next session from this directory, the brief is read and the new thread is stamped as a remix of ${t.thread_id}. Delete ${Am.basename(e)} to opt out.`].join(`
|
|
143
|
+
`)}var uBe=new Set(["private","workspace","public"]);function cBe(t){let e=(t??"").trim();if(!e)return"";if(!uBe.has(e))throw new Se(`invalid --visibility "${t}": use one of private, workspace, public`);return e}async function CJ(t={}){let e=cBe(t.visibility),n=(t.project??process.cwd()).trim()||process.cwd(),r=(t.sessionId??"").trim(),o=t.warn??lBe,s=await xQ({sessionId:r,project:n}),i=_Be(),a=t.client??Xe({token:i}),u=await dBe(),l=await pBe(s,{remixOfThreadId:u});try{let d=await fBe(a,l),p=!d.presigned_url?.trim(),f=d.thread?.id?.trim();if(!f)throw new Error(`upload session response missing thread id for ${l.filename}`);let m=!!u&&d.remix_parent_dropped===!0;if(m){let S=tA.join(process.cwd(),eA),b=`warning: remix parent ${u} not found or not visible \u2014 lineage dropped. Delete ${NJ(S)} if this is stale.`;o(b),ie.warn("export_remix_parent_dropped",{remix_of_thread_id:u??"",brief_path:S})}await yd(a,f);let _=d.thread?.visibility?.trim()??"",h=e&&e!==_?await mBe(a,f,e):_,g=`${Z0().replace(/\/+$/,"")}/session/${f}`,E=await SJ(g);return{thread_id:f,url:g,session_id:s.sessionId?.trim()??"",project:s.project,reused:p,visibility:h,clipboard_copied:E,remix_of_thread_id:m?null:u??null,remix_parent_dropped:m}}finally{await ud(l.tempPath)}}function lBe(t){process.stderr.write(`${t}
|
|
144
|
+
`)}async function dBe(){let t=tA.join(process.cwd(),eA),e;try{e=await iBe.readFile(t,"utf8")}catch(n){if(ur(n,"ENOENT"))return;throw n}return yJ(e)??void 0}async function pBe(t,e={}){let n=await PQ(t),r=await cr(n.fullPath);if(!r.exists)throw new Se(`session transcript not found at ${NJ(n.fullPath)} \u2014 the file may have been rotated or pruned`);let o=await cm(t.project),s=await yu(n.fullPath);return{key:n.key,filename:n.relativeFilename,sourcePath:n.fullPath,repoOriginPath:o,tempPath:s.tempPath,md5:s.md5,fileType:"transcript",harness:"claudeCode",harnessInternalId:t.sessionId?.trim()??"",watchedState:r,remixOfThreadId:e.remixOfThreadId}}async function fBe(t,e){let n=await Ed(t,[e]);if(n.thread_files.length!==1)throw new Error(`upload session returned ${n.thread_files.length} files for 1 local file`);let r=n.thread_files[0];if(!r)throw new Error("upload session response missing thread file");if(!r.presigned_url?.trim())return r;await Sd(r.presigned_url,e.tempPath);let o=await Ad(t,n.id,[r]);if(o.thread_files.length!==1)throw new Error(`complete upload session returned ${o.thread_files.length} files for 1 local file`);let s=o.thread_files[0];if(!s?.thread?.id)throw new Error(`complete upload session response missing thread for ${e.filename}`);return{...r,thread:s.thread}}async function mBe(t,e,n){let r=await t.updateThread({params:{id:e},body:{visibility:n}});if(r.status!==200)throw new Error(Ds(`set thread ${e} visibility`,r.status,r.body));return r.body.visibility}function _Be(){let t=fn();if(!t)throw new Se("not logged in \u2014 run 'lore login' first");return t}function NJ(t){let e=aBe.homedir();if(!e)return t;let n=tA.relative(e,t);return!n||n.startsWith("..")?t:tA.join("~",n)}var xJ={meta:{name:"export",description:"Upload a single Claude Code session to Lore and print its URL"},args:{"session-id":{type:"string",description:"Claude Code session ID to export. Defaults to the most recent session for $PWD."},project:{type:"string",description:"Project path used to resolve a session when --session-id is not provided. Defaults to the current working directory."},visibility:{type:"string",description:"Set thread visibility: private, workspace, or public. Defaults to leaving the existing visibility untouched."}},async run({args:t,data:e}){ie.info("command_start",{command:"export"});let n=await CJ({sessionId:typeof t["session-id"]=="string"?t["session-id"]:void 0,project:typeof t.project=="string"?t.project:void 0,visibility:typeof t.visibility=="string"?t.visibility:void 0,client:e?.client});console.log(JSON.stringify(n,null,2))}};var PJ={meta:{name:"remix",description:"Write a portable handoff brief for a Lore thread to ./LORE_REMIX.md so the next `lore export` from this directory is recorded as a remix"},args:{thread:{type:"positional",description:"Thread id (th_\u2026) or Lore session URL to remix",required:!1},out:{type:"string",description:"Output path for the markdown brief. Defaults to ./LORE_REMIX.md"}},async run({args:t,data:e}){let n=typeof t.thread=="string"?t.thread:"";if(!n)throw new Se("lore remix needs a thread id or URL \u2014 usage: lore remix <th_\u2026 | https://lore.tanagram.ai/session/th_\u2026>");ie.info("command_start",{command:"remix",thread_ref:n});let r=await OJ({threadRef:n,outPath:typeof t.out=="string"?t.out:void 0,client:e?.client});console.log(JSON.stringify(r,null,2))}};import a1 from"node:fs/promises";import hBe from"node:path";import{setTimeout as MJ}from"node:timers/promises";var gBe=1e3,TBe=250,bd=class extends Error{constructor(){super("lore is logged out")}};async function kJ(t={}){let e=await RBe(),n=t.recorder??new g0,r=t.adapter??OQ,o=t.client??Xe();await n.markRunning();let s=[],i=e,a=new Map,u=!1;try{let l=t.uploadFilterConfig??await bQ(),d=await LJ({lastUploadedTimestamp:e.latestUploadedTimestamp,adapter:r,client:o,recorder:n,uploadFilterConfig:l});if(s=d.threadIDs,i=d.syncState,a=d.watchBaselineOverrides,u=d.loggedOut,u||await n.markSyncSuccess(s),!u&&s.length>0){let p=await EBe({syncState:i,baselineOverrides:a,adapter:r,client:o,recorder:n,uploadFilterConfig:l});s=[...s,...p.threadIDs],i=p.syncState,u=p.loggedOut}return u?await n.markLoggedOut():await n.markSuccess(s),s}catch(l){throw await n.markError(l),l}}async function LJ(t){let e=[],n={latestUploadedTimestamp:t.lastUploadedTimestamp},r=new Map,o=!1;try{let s=await SBe(t);e=s.threadIDs,n=s.syncState,r=s.watchBaselineOverrides}catch(s){if(s instanceof bd)o=!0,e=[],r=new Map;else throw await vJ(n),s}return await vJ(n),o||await QQ(t.client),{threadIDs:e,syncState:n,watchBaselineOverrides:r,loggedOut:o}}async function EBe(t){let e=t.adapter.historyFilePath(),n=await cr(e),r=await t.adapter.buildPendingTranscriptWatches(t.syncState.latestUploadedTimestamp,t.baselineOverrides,{uploadFilterConfig:t.uploadFilterConfig});if(await t.recorder.setPendingWatchers(r),r.length===0)return await t.recorder.setPendingWatchers([]),{threadIDs:[],syncState:t.syncState,loggedOut:!1};let o=[],s=t.syncState;try{for(;;){await MJ(gBe),await t.recorder.heartbeat();let i=new Date,a=await cr(e),u=Rx(n,a);if(n=a,u||(u=await yBe(r)),!u){let d=bBe(r,i);if(r=d.watchers,d.changed&&await t.recorder.setPendingWatchers(r),r.length===0)return{threadIDs:o,syncState:s,loggedOut:!1};continue}await MJ(TBe);let l=await LJ({lastUploadedTimestamp:s.latestUploadedTimestamp,adapter:t.adapter,client:t.client,recorder:t.recorder,uploadFilterConfig:t.uploadFilterConfig});if(s=l.syncState,l.loggedOut)return{threadIDs:o,syncState:s,loggedOut:!0};if(o.push(...l.threadIDs),await t.recorder.markSyncSuccess(l.threadIDs),l.threadIDs.length===0)return{threadIDs:o,syncState:s,loggedOut:!1};if(n=await cr(e),r=await t.adapter.buildPendingTranscriptWatches(s.latestUploadedTimestamp,l.watchBaselineOverrides,{uploadFilterConfig:t.uploadFilterConfig}),await t.recorder.setPendingWatchers(r),r.length===0)return{threadIDs:o,syncState:s,loggedOut:!1}}}finally{await t.recorder.setPendingWatchers([])}}async function SBe(t){let e={latestUploadedTimestamp:t.lastUploadedTimestamp},n=await t.adapter.readUnuploadedEntries(t.lastUploadedTimestamp);if(n.length===0)return{threadIDs:[],syncState:e,watchBaselineOverrides:new Map};if(!fn())throw new bd;await t.recorder.markAuthenticated();let o=await t.adapter.collectLocalFiles(n,{uploadFilterConfig:t.uploadFilterConfig});try{if(o.localFiles.length===0)return e.latestUploadedTimestamp=i1(t.lastUploadedTimestamp,o.entries,o.entryFileKeys,o.skippedFileKeys),{threadIDs:[],syncState:e,watchBaselineOverrides:new Map};let s=await Ed(t.client,o.localFiles);if(s.thread_files.length!==o.localFiles.length)throw new Error(`upload session returned ${s.thread_files.length} files for ${o.localFiles.length} local files`);let i=RJ(o.localFiles,s.thread_files),a=[],u=[],l=new Set;for(let _=0;_<s.thread_files.length;_+=1){let h=s.thread_files[_],g=i[_];if(!(!h||!g)){if(!h.presigned_url?.trim()){let E=h.error?.trim()||`upload session response missing presigned_url for ${g.filename}`;ie.info("run_upload_skip",{filename:g.filename,reason:E}),l.add(g.key);continue}a.push(h),u.push(g)}}for(let _=0;_<a.length;_+=1){let h=a[_],g=u[_];!h||!g||await Sd(h.presigned_url??"",g.tempPath)}let d=[],p=new Map,f=new Set([...o.skippedFileKeys,...l]);if(a.length===0)return e.latestUploadedTimestamp=i1(t.lastUploadedTimestamp,o.entries,o.entryFileKeys,f),{threadIDs:d,syncState:e,watchBaselineOverrides:p};let m=await Ad(t.client,s.id,a);if(m.thread_files.length!==u.length)throw new Error(`completed upload session returned ${m.thread_files.length} files for ${u.length} local files`);for(let _=0;_<m.thread_files.length;_+=1){await t.recorder.heartbeat();let h=m.thread_files[_],g=u[_];if(!h||!g)continue;let E=h.thread?.id?.trim()??"";if(!E){if(g.fileType==="plan"){f.add(g.key);continue}throw new Error(`complete upload session response missing thread for ${g.filename}`)}d.push(E),await ABe(t.client,E,t.recorder),f.add(g.key),g.sourcePath&&p.set(g.sourcePath,g.watchedState)}return e.latestUploadedTimestamp=i1(t.lastUploadedTimestamp,o.entries,o.entryFileKeys,f),{threadIDs:d,syncState:e,watchBaselineOverrides:p}}finally{await Promise.all(o.localFiles.map(s=>ud(s.tempPath)))}}async function ABe(t,e,n,r={}){let o={...r,onPoll:()=>n.heartbeat()};await yd(t,e,o)}function i1(t,e,n,r){let o=t;for(let s=0;s<e.length;s+=1){let i=n[s];if(!i||!r.has(i))break;o=e[s]?.timestamp??o}return o}async function yBe(t){for(let e of t){let n=await cr(e.transcriptPath);if(Rx(e.baseline,n))return!0}return!1}function bBe(t,e){let n=t.filter(r=>e<r.expiresAt);return{watchers:n,changed:n.length!==t.length}}async function RBe(){try{return{latestUploadedTimestamp:JSON.parse(await a1.readFile(gx(),"utf8")).latestUploadedTimestamp??0}}catch{return{latestUploadedTimestamp:0}}}async function vJ(t){let e=gx();await a1.mkdir(hBe.dirname(e),{recursive:!0,mode:448}),await a1.writeFile(e,`${JSON.stringify(t,null,2)}
|
|
145
|
+
`,{mode:384})}var wJ={meta:{name:"_run_upload",hidden:!0},async run({data:t}){let e=await kJ({client:t?.client,adapter:t?.adapter,recorder:t?.recorder});console.log(JSON.stringify(e))}};import{spawn as IBe}from"node:child_process";import DJ from"node:path";async function UJ(t){if(!fn())throw new bd;let n=DJ.resolve(t.sessionFile),r=DJ.basename(n),o=t.harnessInternalId?.trim()||NBe(r)||r,s=await cr(n);if(!s.exists)throw new Error(`session file does not exist: ${n}`);let i=await yu(n),a={key:r,filename:r,sourcePath:n,repoOriginPath:"",tempPath:i.tempPath,md5:i.md5,fileType:"transcript",harness:t.harness,harnessInternalId:o,watchedState:s},u=t.client??Xe();try{let l=await Ed(u,[a]),d=l.thread_files[0];if(!d)throw new Error("create upload session returned no thread files");let p=d.thread,f=!d.presigned_url?.trim()&&!!p?.id,m=p;if(!f){if(!d.presigned_url?.trim()){let b=d.error?.trim()??"upload session response missing presigned_url";throw new Error(`upload ${r} skipped: ${b}`)}await Sd(d.presigned_url,i.tempPath),m=(await OBe(u,l.id,d)).thread}let _=m?.id?.trim();if(!_)throw new Error("upload session did not return a thread id");await yd(u,_);let h=t.visibility;h&&await CBe(u,_,h);let g=`${Z0()}/session/${_}`,E=await xBe(g);return{thread_id:_,url:g,session_id:o,project:"",reused:f,visibility:h??"private",clipboard_copied:E}}finally{await ud(i.tempPath)}}async function OBe(t,e,n){let o=(await Ad(t,e,[n])).thread_files[0];if(!o)throw new Error("complete upload session returned no thread files");return{thread:o.thread}}async function CBe(t,e,n){let r=await t.updateThread({params:{id:e},body:{visibility:n}});if(r.status!==200)throw new Error(Ds(`update thread ${e} visibility`,r.status,r.body))}function NBe(t){let n=t.replace(/\.jsonl$/i,"").split("-").filter(o=>o.length>0);if(n.length===0)return"";let r=n.slice(-5);return r.length===5&&r.every(o=>/^[0-9a-fA-F]+$/.test(o))?r.join("-"):n[n.length-1]??""}async function xBe(t){let e=process.platform==="darwin"?[{command:"pbcopy",args:[]}]:process.platform==="win32"?[{command:"clip.exe",args:[]}]:[{command:"wl-copy",args:[]},{command:"xclip",args:["-selection","clipboard"]},{command:"xsel",args:["--clipboard","--input"]}];for(let{command:n,args:r}of e)if(await PBe(n,r,t))return!0;return!1}function PBe(t,e,n){return new Promise(r=>{let o;try{o=IBe(t,e,{stdio:["pipe","ignore","ignore"]})}catch{r(!1);return}o.on("error",()=>r(!1)),o.on("exit",s=>r(s===0)),o.stdin?.on("error",()=>r(!1)),o.stdin?.end(n)})}var BJ=["private","workspace","public"],FJ={meta:{name:"share-codex",description:"Upload a Codex session rollout (.jsonl) to Lore and print a shareable URL."},args:{"session-file":{type:"string",required:!0,description:"Absolute path to a Codex rollout file (e.g. ~/.codex/sessions/YYYY/MM/DD/rollout-...jsonl)"},visibility:{type:"string",required:!1,description:"After upload, set thread visibility to one of: private, workspace, public"},"include-skills":{type:"boolean",required:!1,description:"Also sync your locally installed SKILL.md files to Lore (captured, not published) so teammates can install them"}},async run({args:t}){let e=t["session-file"];if(typeof e!="string"||e.trim()==="")throw new Error("--session-file is required");let n=MBe(t.visibility),r=await UJ({sessionFile:e,harness:"codex",visibility:n});if(console.log(JSON.stringify(r)),t["include-skills"]){let o=await r1(Xe());console.error(`synced ${o.pushed.length} skill(s) to Lore${o.skipped.length>0?`; skipped ${o.skipped.length}`:""}`)}}};function MBe(t){if(!(t==null||t==="")){if(typeof t!="string")throw new Error("--visibility must be a string");if(!BJ.includes(t))throw new Error(`--visibility must be one of: ${BJ.join(", ")}`);return t}}import ku from"node:fs";import u1 from"node:path";var jJ=["audit.jsonl","transcript.jsonl"];function HJ(t){let e=vBe(t);if(!e)throw new Error(`Session ${t} has no local_* subdirectory \u2014 is this a Cowork session?`);let n=kBe(e);if(!n)throw new Error(`Session ${t} has no transcript file under ${e} (looked for ${jJ.join(", ")})`);let r=ku.readFileSync(n,"utf8"),o=GJ(e,"uploads"),s=GJ(e,"outputs");return{transcriptPath:n,transcript:r,uploads:o,outputs:s}}function vBe(t){if(!ku.existsSync(t))return null;let n=ku.readdirSync(t,{withFileTypes:!0}).find(r=>r.isDirectory()&&r.name.startsWith("local_"));return n?u1.join(t,n.name):null}function kBe(t){for(let e of jJ){let n=u1.join(t,e);if(ku.existsSync(n)&&ku.statSync(n).isFile())return n}return null}function GJ(t,e){let n=u1.join(t,e);return ku.existsSync(n)?ku.readdirSync(n,{withFileTypes:!0}).filter(r=>r.isFile()&&!r.name.startsWith(".")).map(r=>r.name).sort((r,o)=>r.localeCompare(o)):[]}import nA from"node:fs";import LBe from"node:os";import Lu from"node:path";var VJ="local-agent-mode-sessions";function qJ(t=LBe.homedir()){return Lu.join(t,"Library","Application Support","Claude",VJ)}function $J(t){let e=Lu.resolve(t).split(Lu.sep),n=e.lastIndexOf(VJ);if(n<0)return null;let r=e[n+1],o=e[n+2];if(!r||!o)return null;let s=e.slice(0,n+1).join(Lu.sep),i=Lu.join(s,r,o);return{conversationId:r,sessionId:o,sessionDir:i,sessionsRoot:s}}function rA(t){if(!nA.existsSync(t))return[];let e=[];for(let n of nA.readdirSync(t,{withFileTypes:!0})){if(!n.isDirectory())continue;let r=Lu.join(t,n.name);for(let o of nA.readdirSync(r,{withFileTypes:!0})){if(!o.isDirectory())continue;let s=Lu.join(r,o.name),i=nA.statSync(s);e.push({conversationId:n.name,sessionId:o.name,sessionDir:s,mtimeMs:i.mtimeMs})}}return e.sort((n,r)=>r.mtimeMs-n.mtimeMs),e}function zJ(t){return rA(t)[0]??null}import wBe from"node:crypto";var DBe=async(t,e)=>{let n={method:"PUT",body:typeof e=="string"?e:new Uint8Array(e)};return{status:(await fetch(t,n)).status}};async function YJ(t,e,n={}){let{contents:r,conversationId:o,sessionId:s}=e,i=wBe.createHash("md5").update(r.transcript).digest("hex"),a=await t.createUploadSession({headers:{},body:{thread_files:[{md5:i,harness:"cowork",harness_internal_id:s,filename:"audit.jsonl",file_type:"transcript",artifact_metadata:{uploads:r.uploads,outputs:r.outputs}}]}});if(a.status!==201)throw new Error(`createUploadSession failed: HTTP ${a.status} (${JSON.stringify(a.body)})`);let u=a.body.thread_files[0];if(u.error&&u.thread)return{threadId:u.thread.id,duplicate:!0};if(!u.presigned_url)throw new Error(`createUploadSession returned no presigned_url and no existing thread: ${JSON.stringify(u)}`);let d=await(n.putBlob??DBe)(u.presigned_url,Buffer.from(r.transcript,"utf8"));if(d.status<200||d.status>=300)throw new Error(`presigned PUT failed: HTTP ${d.status}`);let p=await t.completeUploadSession({headers:{},params:{id:a.body.id},body:{thread_files:[{storage_url:u.storage_url}]}});if(p.status!==200)throw new Error(`completeUploadSession failed: HTTP ${p.status} (${JSON.stringify(p.body)})`);let f=p.body.thread_files[0];if(!f?.thread)throw new Error(`completeUploadSession returned no thread: ${JSON.stringify(f)}`);return{threadId:f.thread.id,duplicate:!1}}var UBe={dev:"http://localhost:8080",prod:"https://lore.tanagram.ai"},WJ={meta:{name:"share-cowork",description:"Share a Claude Cowork local-agent-mode session to Lore. Defaults to the current session when run from inside one (e.g. by the Cowork agent itself); otherwise shares the most recent local session."},args:{session:{type:"string",description:"Share a specific session by session-id (the bottom-level uuid)"},list:{type:"boolean",description:"List local Cowork sessions (newest first) and exit without sharing"}},async run({args:t,data:e}){ie.info("command_start",{command:"share-cowork",list:!!t.list,session:t.session??null});let n=qJ();if(t.list){let l=rA(n);if(l.length===0){console.error(`No Cowork sessions found under ${n}`);return}for(let d of l)console.log(FBe(d));return}let r=BBe(n,typeof t.session=="string"?t.session:void 0);if(!r)throw console.error(`No Cowork session found. Tried CWD walk-up and the most recent under
|
|
146
146
|
${n}
|
|
147
|
-
Run with --list to see available sessions.`),new Error("no session resolved");let o=e?.client??Xe(),s=HJ(r.sessionDir);console.log(`Sharing cowork session ${r.sessionId} (${s.transcript.length} bytes transcript)...`);let i=await YJ(o,{conversationId:r.conversationId,sessionId:r.sessionId,contents:s}),u=`${
|
|
148
|
-
`),c1(n)||(ne(n),await bh(2e3).catch(()=>{})),1}finally{await e?.()}}function
|
|
147
|
+
Run with --list to see available sessions.`),new Error("no session resolved");let o=e?.client??Xe(),s=HJ(r.sessionDir);console.log(`Sharing cowork session ${r.sessionId} (${s.transcript.length} bytes transcript)...`);let i=await YJ(o,{conversationId:r.conversationId,sessionId:r.sessionId,contents:s}),u=`${UBe[Ve()]}/session/${i.threadId}`;i.duplicate?console.log(`Already on Lore: ${u}`):console.log(`Shared: ${u}`)}};function BBe(t,e){if(e){let o=rA(t).find(s=>s.sessionId===e);return o?{conversationId:o.conversationId,sessionId:o.sessionId,sessionDir:o.sessionDir,sessionsRoot:t}:null}let n=$J(process.cwd());if(n)return n;let r=zJ(t);return r?{conversationId:r.conversationId,sessionId:r.sessionId,sessionDir:r.sessionDir,sessionsRoot:t}:null}function FBe(t){let e=new Date(t.mtimeMs).toISOString();return`${t.sessionId} ${t.conversationId} ${e}`}var JJ={health:ZQ,enable:hJ,disable:gJ,restart:TJ,status:EJ,login:zQ,logout:JQ,whoami:XQ,logs:tJ,version:cJ,export:xJ,remix:PJ,skills:mJ,"share-cowork":WJ,"share-codex":FJ,_run_upload:wJ,"postinstall:install-skills":iJ,"postinstall:refresh-background-binary":uJ,"postinstall:uninstall-skills":aJ};function l1(t){return t.find(n=>!n.startsWith("-"))??"lore"}var HBe={name:"cli-metrics",setup(t){t.data={...t.data,commandStartedAtMs:performance.now()}},async cleanup(t){let e=t.data?.commandStartedAtMs;if(typeof e!="number")return;let n=performance.now()-e;await(t.data?.captureCliCommandMetric??PW)({commandName:l1(t.rawArgs),durationMs:n})}},ym={meta:{name:"lore",description:"Lore CLI"},plugins:[HBe],subCommands:JJ};function c1(t){return t instanceof Error&&t.name==="CLIError"}function VBe(t){return c1(t)&&t.code==="E_UNKNOWN_COMMAND"}function qBe(t){let e=t.find(r=>!r.startsWith("-")),n=e?JJ[e]:void 0;return n?[n,ym]:[ym,void 0]}async function $Be(t){let e=zBe(t)?UW():void 0;try{return t.includes("--help")||t.includes("-h")?(console.log(await e0(...qBe(t))),0):t.includes("--version")||t.includes("-v")?(console.log(to()),0):t.some(n=>!n.startsWith("-"))?(await JS(ym,{rawArgs:t}),0):(console.log(await e0(ym)),0)}catch(n){return VBe(n)?(console.error(`Unrecognized command: ${l1(t)}`),console.error(await e0(ym))):c1(n)||Ve()==="prod"&&n instanceof Error?console.error(n.message):console.error(n,`
|
|
148
|
+
`),c1(n)||(ne(n),await bh(2e3).catch(()=>{})),1}finally{await e?.()}}function zBe(t){let e=l1(t);return!e.startsWith("postinstall:")&&!e.startsWith("_")}async function YBe(t){let e=await $Be(t);e!==0&&process.exit(e)}function QJ(t){try{return GBe(t)}catch{return t}}function WBe(t,e){if(!e)return!1;let n=jBe(t);return KJ(QJ(n)).href===KJ(QJ(e)).href}WBe(import.meta.url,process.argv[1])&&await YBe(process.argv.slice(2));export{WBe as isCliEntrypoint,ym as mainCommand,$Be as runCli,zBe as shouldRunAutoUpdateForArgs};
|