UNPKG

solarwinds-apm

Version:

OpenTelemetry-based SolarWinds APM library

1 lines 464 kB
var nE=Object.create;var ra=Object.defineProperty;var oE=Object.getOwnPropertyDescriptor;var iE=Object.getOwnPropertyNames;var sE=Object.getPrototypeOf,aE=Object.prototype.hasOwnProperty;var c=(n,e)=>ra(n,"name",{value:e,configurable:!0});var _t=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var cE=(n,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of iE(e))!aE.call(n,s)&&s!==o&&ra(n,s,{get:()=>e[s],enumerable:!(a=oE(e,s))||a.enumerable});return n};var sr=(n,e,o)=>(o=n!=null?nE(sE(n)):{},cE(e||!n||!n.__esModule?ra(o,"default",{value:n,enumerable:!0}):o,n));var ql=_t((rN,Wl)=>{"use strict";function Fa(n){return typeof n=="function"}c(Fa,"isFunction");var wt=console.error.bind(console);function Xn(n,e,o){var a=!!n[e]&&n.propertyIsEnumerable(e);Object.defineProperty(n,e,{configurable:!0,enumerable:a,writable:!0,value:o})}c(Xn,"defineProperty");function Jn(n){n&&n.logger&&(Fa(n.logger)?wt=n.logger:wt("new logger isn't a function, not replacing"))}c(Jn,"shimmer");function Kl(n,e,o){if(!n||!n[e]){wt("no original function "+e+" to wrap");return}if(!o){wt("no wrapper function"),wt(new Error().stack);return}if(!Fa(n[e])||!Fa(o)){wt("original object and wrapper must be functions");return}var a=n[e],s=o(a,e);return Xn(s,"__original",a),Xn(s,"__unwrap",function(){n[e]===s&&Xn(n,e,a)}),Xn(s,"__wrapped",!0),Xn(n,e,s),s}c(Kl,"wrap");function _d(n,e,o){if(n)Array.isArray(n)||(n=[n]);else{wt("must provide one or more modules to patch"),wt(new Error().stack);return}if(!(e&&Array.isArray(e))){wt("must provide one or more functions to wrap on modules");return}n.forEach(function(a){e.forEach(function(s){Kl(a,s,o)})})}c(_d,"massWrap");function jl(n,e){if(!n||!n[e]){wt("no function to unwrap."),wt(new Error().stack);return}if(!n[e].__unwrap)wt("no original to unwrap to -- has "+e+" already been unwrapped?");else return n[e].__unwrap()}c(jl,"unwrap");function fd(n,e){if(n)Array.isArray(n)||(n=[n]);else{wt("must provide one or more modules to patch"),wt(new Error().stack);return}if(!(e&&Array.isArray(e))){wt("must provide one or more functions to unwrap on modules");return}n.forEach(function(o){e.forEach(function(a){jl(o,a)})})}c(fd,"massUnwrap");Jn.wrap=Kl;Jn.massWrap=_d;Jn.unwrap=jl;Jn.massUnwrap=fd;Wl.exports=Jn});var Cp=_t(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.ATTR_HTTP_USER_AGENT=At.ATTR_HTTP_URL=At.ATTR_HTTP_STATUS_CODE=At.ATTR_HTTP_SCHEME=At.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=At.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=At.ATTR_HTTP_REQUEST_BODY_SIZE=At.ATTR_HTTP_METHOD=At.ATTR_HTTP_HOST=void 0;At.ATTR_HTTP_HOST="http.host";At.ATTR_HTTP_METHOD="http.method";At.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size";At.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed";At.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length";At.ATTR_HTTP_SCHEME="http.scheme";At.ATTR_HTTP_STATUS_CODE="http.status_code";At.ATTR_HTTP_URL="http.url";At.ATTR_HTTP_USER_AGENT="http.user_agent"});var Ts=_t(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.unref=uS;Es.load=lS;function uS(n){return typeof n=="object"&&n.unref(),n}c(uS,"unref");async function lS(n){let e=await import(n);return"default"in e&&["module.exports","__esModule"].reduce((s,u)=>u in e?s-1:s,Object.keys(e).length)===1?e.default:e}c(lS,"load")});var m_=_t((MU,A_)=>{"use strict";A_.exports=LS;function LS(n,e){for(var o=new Array(arguments.length-1),a=0,s=2,u=!0;s<arguments.length;)o[a++]=arguments[s++];return new Promise(c(function(t,i){o[a]=c(function(p){if(u)if(u=!1,p)i(p);else{for(var E=new Array(arguments.length-1),y=0;y<E.length;)E[y++]=arguments[y];t.apply(null,E)}},"callback");try{n.apply(e||null,o)}catch(l){u&&(u=!1,i(l))}},"executor"))}c(LS,"asPromise")});var N_=_t(R_=>{"use strict";var ys=R_;ys.length=c(function(e){var o=e.length;if(!o)return 0;for(var a=0;--o%4>1&&e.charAt(o)==="=";)++a;return Math.ceil(e.length*3)/4-a},"length");var Tn=new Array(64),O_=new Array(123);for(pe=0;pe<64;)O_[Tn[pe]=pe<26?pe+65:pe<52?pe+71:pe<62?pe-4:pe-59|43]=pe++;var pe;ys.encode=c(function(e,o,a){for(var s=null,u=[],r=0,t=0,i;o<a;){var l=e[o++];switch(t){case 0:u[r++]=Tn[l>>2],i=(l&3)<<4,t=1;break;case 1:u[r++]=Tn[i|l>>4],i=(l&15)<<2,t=2;break;case 2:u[r++]=Tn[i|l>>6],u[r++]=Tn[l&63],t=0;break}r>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,u)),r=0)}return t&&(u[r++]=Tn[i],u[r++]=61,t===1&&(u[r++]=61)),s?(r&&s.push(String.fromCharCode.apply(String,u.slice(0,r))),s.join("")):String.fromCharCode.apply(String,u.slice(0,r))},"encode");var y_="invalid encoding";ys.decode=c(function(e,o,a){for(var s=a,u=0,r,t=0;t<e.length;){var i=e.charCodeAt(t++);if(i===61&&u>1)break;if((i=O_[i])===void 0)throw Error(y_);switch(u){case 0:r=i,u=1;break;case 1:o[a++]=r<<2|(i&48)>>4,r=i,u=2;break;case 2:o[a++]=(r&15)<<4|(i&60)>>2,r=i,u=3;break;case 3:o[a++]=(r&3)<<6|i,u=0;break}}if(u===1)throw Error(y_);return a-s},"decode");ys.test=c(function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},"test")});var g_=_t((kU,x_)=>{"use strict";x_.exports=Os;function Os(){this._listeners={}}c(Os,"EventEmitter");Os.prototype.on=c(function(e,o,a){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:o,ctx:a||this}),this},"on");Os.prototype.off=c(function(e,o){if(e===void 0)this._listeners={};else if(o===void 0)this._listeners[e]=[];else for(var a=this._listeners[e],s=0;s<a.length;)a[s].fn===o?a.splice(s,1):++s;return this},"off");Os.prototype.emit=c(function(e){var o=this._listeners[e];if(o){for(var a=[],s=1;s<arguments.length;)a.push(arguments[s++]);for(s=0;s<o.length;)o[s].fn.apply(o[s++].ctx,a)}return this},"emit")});var U_=_t((GU,C_)=>{"use strict";C_.exports=v_(v_);function v_(n){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),o=new Uint8Array(e.buffer),a=o[3]===128;function s(i,l,p){e[0]=i,l[p]=o[0],l[p+1]=o[1],l[p+2]=o[2],l[p+3]=o[3]}c(s,"writeFloat_f32_cpy");function u(i,l,p){e[0]=i,l[p]=o[3],l[p+1]=o[2],l[p+2]=o[1],l[p+3]=o[0]}c(u,"writeFloat_f32_rev"),n.writeFloatLE=a?s:u,n.writeFloatBE=a?u:s;function r(i,l){return o[0]=i[l],o[1]=i[l+1],o[2]=i[l+2],o[3]=i[l+3],e[0]}c(r,"readFloat_f32_cpy");function t(i,l){return o[3]=i[l],o[2]=i[l+1],o[1]=i[l+2],o[0]=i[l+3],e[0]}c(t,"readFloat_f32_rev"),n.readFloatLE=a?r:t,n.readFloatBE=a?t:r}():function(){function e(a,s,u,r){var t=s<0?1:0;if(t&&(s=-s),s===0)a(1/s>0?0:2147483648,u,r);else if(isNaN(s))a(2143289344,u,r);else if(s>34028234663852886e22)a((t<<31|2139095040)>>>0,u,r);else if(s<11754943508222875e-54)a((t<<31|Math.round(s/1401298464324817e-60))>>>0,u,r);else{var i=Math.floor(Math.log(s)/Math.LN2),l=Math.round(s*Math.pow(2,-i)*8388608)&8388607;a((t<<31|i+127<<23|l)>>>0,u,r)}}c(e,"writeFloat_ieee754"),n.writeFloatLE=e.bind(null,L_),n.writeFloatBE=e.bind(null,I_);function o(a,s,u){var r=a(s,u),t=(r>>31)*2+1,i=r>>>23&255,l=r&8388607;return i===255?l?NaN:t*(1/0):i===0?t*1401298464324817e-60*l:t*Math.pow(2,i-150)*(l+8388608)}c(o,"readFloat_ieee754"),n.readFloatLE=o.bind(null,b_),n.readFloatBE=o.bind(null,P_)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),o=new Uint8Array(e.buffer),a=o[7]===128;function s(i,l,p){e[0]=i,l[p]=o[0],l[p+1]=o[1],l[p+2]=o[2],l[p+3]=o[3],l[p+4]=o[4],l[p+5]=o[5],l[p+6]=o[6],l[p+7]=o[7]}c(s,"writeDouble_f64_cpy");function u(i,l,p){e[0]=i,l[p]=o[7],l[p+1]=o[6],l[p+2]=o[5],l[p+3]=o[4],l[p+4]=o[3],l[p+5]=o[2],l[p+6]=o[1],l[p+7]=o[0]}c(u,"writeDouble_f64_rev"),n.writeDoubleLE=a?s:u,n.writeDoubleBE=a?u:s;function r(i,l){return o[0]=i[l],o[1]=i[l+1],o[2]=i[l+2],o[3]=i[l+3],o[4]=i[l+4],o[5]=i[l+5],o[6]=i[l+6],o[7]=i[l+7],e[0]}c(r,"readDouble_f64_cpy");function t(i,l){return o[7]=i[l],o[6]=i[l+1],o[5]=i[l+2],o[4]=i[l+3],o[3]=i[l+4],o[2]=i[l+5],o[1]=i[l+6],o[0]=i[l+7],e[0]}c(t,"readDouble_f64_rev"),n.readDoubleLE=a?r:t,n.readDoubleBE=a?t:r}():function(){function e(a,s,u,r,t,i){var l=r<0?1:0;if(l&&(r=-r),r===0)a(0,t,i+s),a(1/r>0?0:2147483648,t,i+u);else if(isNaN(r))a(0,t,i+s),a(2146959360,t,i+u);else if(r>17976931348623157e292)a(0,t,i+s),a((l<<31|2146435072)>>>0,t,i+u);else{var p;if(r<22250738585072014e-324)p=r/5e-324,a(p>>>0,t,i+s),a((l<<31|p/4294967296)>>>0,t,i+u);else{var E=Math.floor(Math.log(r)/Math.LN2);E===1024&&(E=1023),p=r*Math.pow(2,-E),a(p*4503599627370496>>>0,t,i+s),a((l<<31|E+1023<<20|p*1048576&1048575)>>>0,t,i+u)}}}c(e,"writeDouble_ieee754"),n.writeDoubleLE=e.bind(null,L_,0,4),n.writeDoubleBE=e.bind(null,I_,4,0);function o(a,s,u,r,t){var i=a(r,t+s),l=a(r,t+u),p=(l>>31)*2+1,E=l>>>20&2047,y=4294967296*(l&1048575)+i;return E===2047?y?NaN:p*(1/0):E===0?p*5e-324*y:p*Math.pow(2,E-1075)*(y+4503599627370496)}c(o,"readDouble_ieee754"),n.readDoubleLE=o.bind(null,b_,0,4),n.readDoubleBE=o.bind(null,P_,4,0)}(),n}c(v_,"factory");function L_(n,e,o){e[o]=n&255,e[o+1]=n>>>8&255,e[o+2]=n>>>16&255,e[o+3]=n>>>24}c(L_,"writeUintLE");function I_(n,e,o){e[o]=n>>>24,e[o+1]=n>>>16&255,e[o+2]=n>>>8&255,e[o+3]=n&255}c(I_,"writeUintBE");function b_(n,e){return(n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24)>>>0}c(b_,"readUintLE");function P_(n,e){return(n[e]<<24|n[e+1]<<16|n[e+2]<<8|n[e+3])>>>0}c(P_,"readUintBE")});var M_=_t((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(n){}return null}c(inquire,"inquire")});var w_=_t(D_=>{"use strict";var Lc=D_;Lc.length=c(function(e){for(var o=0,a=0,s=0;s<e.length;++s)a=e.charCodeAt(s),a<128?o+=1:a<2048?o+=2:(a&64512)===55296&&(e.charCodeAt(s+1)&64512)===56320?(++s,o+=4):o+=3;return o},"utf8_length");Lc.read=c(function(e,o,a){var s=a-o;if(s<1)return"";for(var u=null,r=[],t=0,i;o<a;)i=e[o++],i<128?r[t++]=i:i>191&&i<224?r[t++]=(i&31)<<6|e[o++]&63:i>239&&i<365?(i=((i&7)<<18|(e[o++]&63)<<12|(e[o++]&63)<<6|e[o++]&63)-65536,r[t++]=55296+(i>>10),r[t++]=56320+(i&1023)):r[t++]=(i&15)<<12|(e[o++]&63)<<6|e[o++]&63,t>8191&&((u||(u=[])).push(String.fromCharCode.apply(String,r)),t=0);return u?(t&&u.push(String.fromCharCode.apply(String,r.slice(0,t))),u.join("")):String.fromCharCode.apply(String,r.slice(0,t))},"utf8_read");Lc.write=c(function(e,o,a){for(var s=a,u,r,t=0;t<e.length;++t)u=e.charCodeAt(t),u<128?o[a++]=u:u<2048?(o[a++]=u>>6|192,o[a++]=u&63|128):(u&64512)===55296&&((r=e.charCodeAt(t+1))&64512)===56320?(u=65536+((u&1023)<<10)+(r&1023),++t,o[a++]=u>>18|240,o[a++]=u>>12&63|128,o[a++]=u>>6&63|128,o[a++]=u&63|128):(o[a++]=u>>12|224,o[a++]=u>>6&63|128,o[a++]=u&63|128);return a-s},"utf8_write")});var k_=_t((jU,V_)=>{"use strict";V_.exports=IS;function IS(n,e,o){var a=o||8192,s=a>>>1,u=null,r=a;return c(function(i){if(i<1||i>s)return n(i);r+i>a&&(u=n(a),r=0);var l=e.call(u,r,r+=i);return r&7&&(r=(r|7)+1),l},"pool_alloc")}c(IS,"pool")});var G_=_t((qU,B_)=>{"use strict";B_.exports=vt;var vo=tr();function vt(n,e){this.lo=n>>>0,this.hi=e>>>0}c(vt,"LongBits");var xr=vt.zero=new vt(0,0);xr.toNumber=function(){return 0};xr.zzEncode=xr.zzDecode=function(){return this};xr.length=function(){return 1};var bS=vt.zeroHash="\0\0\0\0\0\0\0\0";vt.fromNumber=c(function(e){if(e===0)return xr;var o=e<0;o&&(e=-e);var a=e>>>0,s=(e-a)/4294967296>>>0;return o&&(s=~s>>>0,a=~a>>>0,++a>4294967295&&(a=0,++s>4294967295&&(s=0))),new vt(a,s)},"fromNumber");vt.from=c(function(e){if(typeof e=="number")return vt.fromNumber(e);if(vo.isString(e))if(vo.Long)e=vo.Long.fromString(e);else return vt.fromNumber(parseInt(e,10));return e.low||e.high?new vt(e.low>>>0,e.high>>>0):xr},"from");vt.prototype.toNumber=c(function(e){if(!e&&this.hi>>>31){var o=~this.lo+1>>>0,a=~this.hi>>>0;return o||(a=a+1>>>0),-(o+a*4294967296)}return this.lo+this.hi*4294967296},"toNumber");vt.prototype.toLong=c(function(e){return vo.Long?new vo.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}},"toLong");var Qe=String.prototype.charCodeAt;vt.fromHash=c(function(e){return e===bS?xr:new vt((Qe.call(e,0)|Qe.call(e,1)<<8|Qe.call(e,2)<<16|Qe.call(e,3)<<24)>>>0,(Qe.call(e,4)|Qe.call(e,5)<<8|Qe.call(e,6)<<16|Qe.call(e,7)<<24)>>>0)},"fromHash");vt.prototype.toHash=c(function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},"toHash");vt.prototype.zzEncode=c(function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},"zzEncode");vt.prototype.zzDecode=c(function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},"zzDecode");vt.prototype.length=c(function(){var e=this.lo,o=(this.lo>>>28|this.hi<<4)>>>0,a=this.hi>>>24;return a===0?o===0?e<16384?e<128?1:2:e<2097152?3:4:o<16384?o<128?5:6:o<2097152?7:8:a<128?9:10},"length")});var tr=_t(Ic=>{"use strict";var b=Ic;b.asPromise=m_();b.base64=N_();b.EventEmitter=g_();b.float=U_();b.inquire=M_();b.utf8=w_();b.pool=k_();b.LongBits=G_();b.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);b.global=b.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Ic;b.emptyArray=Object.freeze?Object.freeze([]):[];b.emptyObject=Object.freeze?Object.freeze({}):{};b.isInteger=Number.isInteger||c(function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},"isInteger");b.isString=c(function(e){return typeof e=="string"||e instanceof String},"isString");b.isObject=c(function(e){return e&&typeof e=="object"},"isObject");b.isset=b.isSet=c(function(e,o){var a=e[o];return a!=null&&e.hasOwnProperty(o)?typeof a!="object"||(Array.isArray(a)?a.length:Object.keys(a).length)>0:!1},"isSet");b.Buffer=function(){try{var n=b.inquire("buffer").Buffer;return n.prototype.utf8Write?n:null}catch{return null}}();b._Buffer_from=null;b._Buffer_allocUnsafe=null;b.newBuffer=c(function(e){return typeof e=="number"?b.Buffer?b._Buffer_allocUnsafe(e):new b.Array(e):b.Buffer?b._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)},"newBuffer");b.Array=typeof Uint8Array<"u"?Uint8Array:Array;b.Long=b.global.dcodeIO&&b.global.dcodeIO.Long||b.global.Long||b.inquire("long");b.key2Re=/^true|false|0|1$/;b.key32Re=/^-?(?:0|[1-9][0-9]*)$/;b.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;b.longToHash=c(function(e){return e?b.LongBits.from(e).toHash():b.LongBits.zeroHash},"longToHash");b.longFromHash=c(function(e,o){var a=b.LongBits.fromHash(e);return b.Long?b.Long.fromBits(a.lo,a.hi,o):a.toNumber(!!o)},"longFromHash");function H_(n,e,o){for(var a=Object.keys(e),s=0;s<a.length;++s)(n[a[s]]===void 0||!o)&&(n[a[s]]=e[a[s]]);return n}c(H_,"merge");b.merge=H_;b.lcFirst=c(function(e){return e.charAt(0).toLowerCase()+e.substring(1)},"lcFirst");function Y_(n){function e(o,a){if(!(this instanceof e))return new e(o,a);Object.defineProperty(this,"message",{get:c(function(){return o},"get")}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),a&&H_(this,a)}return c(e,"CustomError"),e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:c(function(){return n},"get"),set:void 0,enumerable:!1,configurable:!0},toString:{value:c(function(){return this.name+": "+this.message},"value"),writable:!0,enumerable:!1,configurable:!0}}),e}c(Y_,"newError");b.newError=Y_;b.ProtocolError=Y_("ProtocolError");b.oneOfGetter=c(function(e){for(var o={},a=0;a<e.length;++a)o[e[a]]=1;return function(){for(var s=Object.keys(this),u=s.length-1;u>-1;--u)if(o[s[u]]===1&&this[s[u]]!==void 0&&this[s[u]]!==null)return s[u]}},"getOneOf");b.oneOfSetter=c(function(e){return function(o){for(var a=0;a<e.length;++a)e[a]!==o&&delete this[e[a]]}},"setOneOf");b.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};b._configure=function(){var n=b.Buffer;if(!n){b._Buffer_from=b._Buffer_allocUnsafe=null;return}b._Buffer_from=n.from!==Uint8Array.from&&n.from||c(function(o,a){return new n(o,a)},"Buffer_from"),b._Buffer_allocUnsafe=n.allocUnsafe||c(function(o){return new n(o)},"Buffer_allocUnsafe")}});var wc=_t((JU,W_)=>{"use strict";W_.exports=Q;var ne=tr(),bc,Rs=ne.LongBits,F_=ne.base64,K_=ne.utf8;function Lo(n,e,o){this.fn=n,this.len=e,this.next=void 0,this.val=o}c(Lo,"Op");function Cc(){}c(Cc,"noop");function PS(n){this.head=n.head,this.tail=n.tail,this.len=n.len,this.next=n.states}c(PS,"State");function Q(){this.len=0,this.head=new Lo(Cc,0,0),this.tail=this.head,this.states=null}c(Q,"Writer");var j_=c(function(){return ne.Buffer?c(function(){return(Q.create=c(function(){return new bc},"create_buffer"))()},"create_buffer_setup"):c(function(){return new Q},"create_array")},"create");Q.create=j_();Q.alloc=c(function(e){return new ne.Array(e)},"alloc");ne.Array!==Array&&(Q.alloc=ne.pool(Q.alloc,ne.Array.prototype.subarray));Q.prototype._push=c(function(e,o,a){return this.tail=this.tail.next=new Lo(e,o,a),this.len+=o,this},"push");function Uc(n,e,o){e[o]=n&255}c(Uc,"writeByte");function CS(n,e,o){for(;n>127;)e[o++]=n&127|128,n>>>=7;e[o]=n}c(CS,"writeVarint32");function Mc(n,e){this.len=n,this.next=void 0,this.val=e}c(Mc,"VarintOp");Mc.prototype=Object.create(Lo.prototype);Mc.prototype.fn=CS;Q.prototype.uint32=c(function(e){return this.len+=(this.tail=this.tail.next=new Mc((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},"write_uint32");Q.prototype.int32=c(function(e){return e<0?this._push(Dc,10,Rs.fromNumber(e)):this.uint32(e)},"write_int32");Q.prototype.sint32=c(function(e){return this.uint32((e<<1^e>>31)>>>0)},"write_sint32");function Dc(n,e,o){for(;n.hi;)e[o++]=n.lo&127|128,n.lo=(n.lo>>>7|n.hi<<25)>>>0,n.hi>>>=7;for(;n.lo>127;)e[o++]=n.lo&127|128,n.lo=n.lo>>>7;e[o++]=n.lo}c(Dc,"writeVarint64");Q.prototype.uint64=c(function(e){var o=Rs.from(e);return this._push(Dc,o.length(),o)},"write_uint64");Q.prototype.int64=Q.prototype.uint64;Q.prototype.sint64=c(function(e){var o=Rs.from(e).zzEncode();return this._push(Dc,o.length(),o)},"write_sint64");Q.prototype.bool=c(function(e){return this._push(Uc,1,e?1:0)},"write_bool");function Pc(n,e,o){e[o]=n&255,e[o+1]=n>>>8&255,e[o+2]=n>>>16&255,e[o+3]=n>>>24}c(Pc,"writeFixed32");Q.prototype.fixed32=c(function(e){return this._push(Pc,4,e>>>0)},"write_fixed32");Q.prototype.sfixed32=Q.prototype.fixed32;Q.prototype.fixed64=c(function(e){var o=Rs.from(e);return this._push(Pc,4,o.lo)._push(Pc,4,o.hi)},"write_fixed64");Q.prototype.sfixed64=Q.prototype.fixed64;Q.prototype.float=c(function(e){return this._push(ne.float.writeFloatLE,4,e)},"write_float");Q.prototype.double=c(function(e){return this._push(ne.float.writeDoubleLE,8,e)},"write_double");var US=ne.Array.prototype.set?c(function(e,o,a){o.set(e,a)},"writeBytes_set"):c(function(e,o,a){for(var s=0;s<e.length;++s)o[a+s]=e[s]},"writeBytes_for");Q.prototype.bytes=c(function(e){var o=e.length>>>0;if(!o)return this._push(Uc,1,0);if(ne.isString(e)){var a=Q.alloc(o=F_.length(e));F_.decode(e,a,0),e=a}return this.uint32(o)._push(US,o,e)},"write_bytes");Q.prototype.string=c(function(e){var o=K_.length(e);return o?this.uint32(o)._push(K_.write,o,e):this._push(Uc,1,0)},"write_string");Q.prototype.fork=c(function(){return this.states=new PS(this),this.head=this.tail=new Lo(Cc,0,0),this.len=0,this},"fork");Q.prototype.reset=c(function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Lo(Cc,0,0),this.len=0),this},"reset");Q.prototype.ldelim=c(function(){var e=this.head,o=this.tail,a=this.len;return this.reset().uint32(a),a&&(this.tail.next=e.next,this.tail=o,this.len+=a),this},"ldelim");Q.prototype.finish=c(function(){for(var e=this.head.next,o=this.constructor.alloc(this.len),a=0;e;)e.fn(e.val,o,a),a+=e.len,e=e.next;return o},"finish");Q._configure=function(n){bc=n,Q.create=j_(),bc._configure()}});var $_=_t((QU,z_)=>{"use strict";z_.exports=xe;var q_=wc();(xe.prototype=Object.create(q_.prototype)).constructor=xe;var er=tr();function xe(){q_.call(this)}c(xe,"BufferWriter");xe._configure=function(){xe.alloc=er._Buffer_allocUnsafe,xe.writeBytesBuffer=er.Buffer&&er.Buffer.prototype instanceof Uint8Array&&er.Buffer.prototype.set.name==="set"?c(function(e,o,a){o.set(e,a)},"writeBytesBuffer_set"):c(function(e,o,a){if(e.copy)e.copy(o,a,0,e.length);else for(var s=0;s<e.length;)o[a++]=e[s++]},"writeBytesBuffer_copy")};xe.prototype.bytes=c(function(e){er.isString(e)&&(e=er._Buffer_from(e,"base64"));var o=e.length>>>0;return this.uint32(o),o&&this._push(xe.writeBytesBuffer,o,e),this},"write_bytes_buffer");function MS(n,e,o){n.length<40?er.utf8.write(n,e,o):e.utf8Write?e.utf8Write(n,o):e.write(n,o)}c(MS,"writeStringBuffer");xe.prototype.string=c(function(e){var o=er.Buffer.byteLength(e);return this.uint32(o),o&&this._push(MS,o,e),this},"write_string_buffer");xe._configure()});var Bc=_t((eM,tf)=>{"use strict";tf.exports=St;var _e=tr(),kc,Z_=_e.LongBits,DS=_e.utf8;function fe(n,e){return RangeError("index out of range: "+n.pos+" + "+(e||1)+" > "+n.len)}c(fe,"indexOutOfRange");function St(n){this.buf=n,this.pos=0,this.len=n.length}c(St,"Reader");var X_=typeof Uint8Array<"u"?c(function(e){if(e instanceof Uint8Array||Array.isArray(e))return new St(e);throw Error("illegal buffer")},"create_typed_array"):c(function(e){if(Array.isArray(e))return new St(e);throw Error("illegal buffer")},"create_array"),Q_=c(function(){return _e.Buffer?c(function(o){return(St.create=c(function(s){return _e.Buffer.isBuffer(s)?new kc(s):X_(s)},"create_buffer"))(o)},"create_buffer_setup"):X_},"create");St.create=Q_();St.prototype._slice=_e.Array.prototype.subarray||_e.Array.prototype.slice;St.prototype.uint32=c(function(){var e=4294967295;return c(function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,fe(this,10);return e},"read_uint32")},"read_uint32_setup")();St.prototype.int32=c(function(){return this.uint32()|0},"read_int32");St.prototype.sint32=c(function(){var e=this.uint32();return e>>>1^-(e&1)|0},"read_sint32");function Vc(){var n=new Z_(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(n.lo=(n.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return n;if(n.lo=(n.lo|(this.buf[this.pos]&127)<<28)>>>0,n.hi=(n.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return n;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw fe(this);if(n.lo=(n.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return n}return n.lo=(n.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,n}if(this.len-this.pos>4){for(;e<5;++e)if(n.hi=(n.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return n}else for(;e<5;++e){if(this.pos>=this.len)throw fe(this);if(n.hi=(n.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return n}throw Error("invalid varint encoding")}c(Vc,"readLongVarint");St.prototype.bool=c(function(){return this.uint32()!==0},"read_bool");function Ns(n,e){return(n[e-4]|n[e-3]<<8|n[e-2]<<16|n[e-1]<<24)>>>0}c(Ns,"readFixed32_end");St.prototype.fixed32=c(function(){if(this.pos+4>this.len)throw fe(this,4);return Ns(this.buf,this.pos+=4)},"read_fixed32");St.prototype.sfixed32=c(function(){if(this.pos+4>this.len)throw fe(this,4);return Ns(this.buf,this.pos+=4)|0},"read_sfixed32");function J_(){if(this.pos+8>this.len)throw fe(this,8);return new Z_(Ns(this.buf,this.pos+=4),Ns(this.buf,this.pos+=4))}c(J_,"readFixed64");St.prototype.float=c(function(){if(this.pos+4>this.len)throw fe(this,4);var e=_e.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},"read_float");St.prototype.double=c(function(){if(this.pos+8>this.len)throw fe(this,4);var e=_e.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},"read_double");St.prototype.bytes=c(function(){var e=this.uint32(),o=this.pos,a=this.pos+e;if(a>this.len)throw fe(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(o,a);if(o===a){var s=_e.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,o,a)},"read_bytes");St.prototype.string=c(function(){var e=this.bytes();return DS.read(e,0,e.length)},"read_string");St.prototype.skip=c(function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw fe(this,e);this.pos+=e}else do if(this.pos>=this.len)throw fe(this);while(this.buf[this.pos++]&128);return this},"skip");St.prototype.skipType=function(n){switch(n){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(n=this.uint32()&7)!==4;)this.skipType(n);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+n+" at offset "+this.pos)}return this};St._configure=function(n){kc=n,St.create=Q_(),kc._configure();var e=_e.Long?"toLong":"toNumber";_e.merge(St.prototype,{int64:c(function(){return Vc.call(this)[e](!1)},"read_int64"),uint64:c(function(){return Vc.call(this)[e](!0)},"read_uint64"),sint64:c(function(){return Vc.call(this).zzDecode()[e](!1)},"read_sint64"),fixed64:c(function(){return J_.call(this)[e](!0)},"read_fixed64"),sfixed64:c(function(){return J_.call(this)[e](!1)},"read_sfixed64")})}});var of=_t((nM,nf)=>{"use strict";nf.exports=gr;var rf=Bc();(gr.prototype=Object.create(rf.prototype)).constructor=gr;var ef=tr();function gr(n){rf.call(this,n)}c(gr,"BufferReader");gr._configure=function(){ef.Buffer&&(gr.prototype._slice=ef.Buffer.prototype.slice)};gr.prototype.string=c(function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},"read_string_buffer");gr._configure()});var af=_t((iM,sf)=>{"use strict";sf.exports=Io;var Gc=tr();(Io.prototype=Object.create(Gc.EventEmitter.prototype)).constructor=Io;function Io(n,e,o){if(typeof n!="function")throw TypeError("rpcImpl must be a function");Gc.EventEmitter.call(this),this.rpcImpl=n,this.requestDelimited=!!e,this.responseDelimited=!!o}c(Io,"Service");Io.prototype.rpcCall=c(function n(e,o,a,s,u){if(!s)throw TypeError("request must be specified");var r=this;if(!u)return Gc.asPromise(n,r,e,o,a,s);if(!r.rpcImpl){setTimeout(function(){u(Error("already ended"))},0);return}try{return r.rpcImpl(e,o[r.requestDelimited?"encodeDelimited":"encode"](s).finish(),c(function(i,l){if(i)return r.emit("error",i,e),u(i);if(l===null){r.end(!0);return}if(!(l instanceof a))try{l=a[r.responseDelimited?"decodeDelimited":"decode"](l)}catch(p){return r.emit("error",p,e),u(p)}return r.emit("data",l,e),u(null,l)},"rpcCallback"))}catch(t){r.emit("error",t,e),setTimeout(function(){u(t)},0);return}},"rpcCall");Io.prototype.end=c(function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},"end")});var uf=_t(cf=>{"use strict";var wS=cf;wS.Service=af()});var pf=_t((cM,lf)=>{"use strict";lf.exports={}});var Ef=_t(ff=>{"use strict";var Ht=ff;Ht.build="minimal";Ht.Writer=wc();Ht.BufferWriter=$_();Ht.Reader=Bc();Ht.BufferReader=of();Ht.util=tr();Ht.rpc=uf();Ht.roots=pf();Ht.configure=_f;function _f(){Ht.util._configure(),Ht.Writer._configure(Ht.BufferWriter),Ht.Reader._configure(Ht.BufferReader)}c(_f,"configure");_f()});var df=_t((pM,Tf)=>{"use strict";Tf.exports=Ef()});var Hc=_t((_M,Sf)=>{"use strict";var U=df(),T=U.Reader,K=U.Writer,f=U.util,_=U.roots.default||(U.roots.default={});_.opentelemetry=function(){var n={};return n.proto=function(){var e={};return e.common=function(){var o={};return o.v1=function(){var a={};return a.AnyValue=function(){function s(r){if(r)for(var t=Object.keys(r),i=0;i<t.length;++i)r[t[i]]!=null&&(this[t[i]]=r[t[i]])}c(s,"AnyValue"),s.prototype.stringValue=null,s.prototype.boolValue=null,s.prototype.intValue=null,s.prototype.doubleValue=null,s.prototype.arrayValue=null,s.prototype.kvlistValue=null,s.prototype.bytesValue=null;var u;return Object.defineProperty(s.prototype,"value",{get:f.oneOfGetter(u=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:f.oneOfSetter(u)}),s.create=c(function(t){return new s(t)},"create"),s.encode=c(function(t,i){return i||(i=K.create()),t.stringValue!=null&&Object.hasOwnProperty.call(t,"stringValue")&&i.uint32(10).string(t.stringValue),t.boolValue!=null&&Object.hasOwnProperty.call(t,"boolValue")&&i.uint32(16).bool(t.boolValue),t.intValue!=null&&Object.hasOwnProperty.call(t,"intValue")&&i.uint32(24).int64(t.intValue),t.doubleValue!=null&&Object.hasOwnProperty.call(t,"doubleValue")&&i.uint32(33).double(t.doubleValue),t.arrayValue!=null&&Object.hasOwnProperty.call(t,"arrayValue")&&_.opentelemetry.proto.common.v1.ArrayValue.encode(t.arrayValue,i.uint32(42).fork()).ldelim(),t.kvlistValue!=null&&Object.hasOwnProperty.call(t,"kvlistValue")&&_.opentelemetry.proto.common.v1.KeyValueList.encode(t.kvlistValue,i.uint32(50).fork()).ldelim(),t.bytesValue!=null&&Object.hasOwnProperty.call(t,"bytesValue")&&i.uint32(58).bytes(t.bytesValue),i},"encode"),s.encodeDelimited=c(function(t,i){return this.encode(t,i).ldelim()},"encodeDelimited"),s.decode=c(function(t,i){t instanceof T||(t=T.create(t));for(var l=i===void 0?t.len:t.pos+i,p=new _.opentelemetry.proto.common.v1.AnyValue;t.pos<l;){var E=t.uint32();switch(E>>>3){case 1:{p.stringValue=t.string();break}case 2:{p.boolValue=t.bool();break}case 3:{p.intValue=t.int64();break}case 4:{p.doubleValue=t.double();break}case 5:{p.arrayValue=_.opentelemetry.proto.common.v1.ArrayValue.decode(t,t.uint32());break}case 6:{p.kvlistValue=_.opentelemetry.proto.common.v1.KeyValueList.decode(t,t.uint32());break}case 7:{p.bytesValue=t.bytes();break}default:t.skipType(E&7);break}}return p},"decode"),s.decodeDelimited=c(function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},"decodeDelimited"),s.verify=c(function(t){if(typeof t!="object"||t===null)return"object expected";var i={};if(t.stringValue!=null&&t.hasOwnProperty("stringValue")&&(i.value=1,!f.isString(t.stringValue)))return"stringValue: string expected";if(t.boolValue!=null&&t.hasOwnProperty("boolValue")){if(i.value===1)return"value: multiple values";if(i.value=1,typeof t.boolValue!="boolean")return"boolValue: boolean expected"}if(t.intValue!=null&&t.hasOwnProperty("intValue")){if(i.value===1)return"value: multiple values";if(i.value=1,!f.isInteger(t.intValue)&&!(t.intValue&&f.isInteger(t.intValue.low)&&f.isInteger(t.intValue.high)))return"intValue: integer|Long expected"}if(t.doubleValue!=null&&t.hasOwnProperty("doubleValue")){if(i.value===1)return"value: multiple values";if(i.value=1,typeof t.doubleValue!="number")return"doubleValue: number expected"}if(t.arrayValue!=null&&t.hasOwnProperty("arrayValue")){if(i.value===1)return"value: multiple values";i.value=1;{var l=_.opentelemetry.proto.common.v1.ArrayValue.verify(t.arrayValue);if(l)return"arrayValue."+l}}if(t.kvlistValue!=null&&t.hasOwnProperty("kvlistValue")){if(i.value===1)return"value: multiple values";i.value=1;{var l=_.opentelemetry.proto.common.v1.KeyValueList.verify(t.kvlistValue);if(l)return"kvlistValue."+l}}if(t.bytesValue!=null&&t.hasOwnProperty("bytesValue")){if(i.value===1)return"value: multiple values";if(i.value=1,!(t.bytesValue&&typeof t.bytesValue.length=="number"||f.isString(t.bytesValue)))return"bytesValue: buffer expected"}return null},"verify"),s.fromObject=c(function(t){if(t instanceof _.opentelemetry.proto.common.v1.AnyValue)return t;var i=new _.opentelemetry.proto.common.v1.AnyValue;if(t.stringValue!=null&&(i.stringValue=String(t.stringValue)),t.boolValue!=null&&(i.boolValue=!!t.boolValue),t.intValue!=null&&(f.Long?(i.intValue=f.Long.fromValue(t.intValue)).unsigned=!1:typeof t.intValue=="string"?i.intValue=parseInt(t.intValue,10):typeof t.intValue=="number"?i.intValue=t.intValue:typeof t.intValue=="object"&&(i.intValue=new f.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber())),t.doubleValue!=null&&(i.doubleValue=Number(t.doubleValue)),t.arrayValue!=null){if(typeof t.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");i.arrayValue=_.opentelemetry.proto.common.v1.ArrayValue.fromObject(t.arrayValue)}if(t.kvlistValue!=null){if(typeof t.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");i.kvlistValue=_.opentelemetry.proto.common.v1.KeyValueList.fromObject(t.kvlistValue)}return t.bytesValue!=null&&(typeof t.bytesValue=="string"?f.base64.decode(t.bytesValue,i.bytesValue=f.newBuffer(f.base64.length(t.bytesValue)),0):t.bytesValue.length>=0&&(i.bytesValue=t.bytesValue)),i},"fromObject"),s.toObject=c(function(t,i){i||(i={});var l={};return t.stringValue!=null&&t.hasOwnProperty("stringValue")&&(l.stringValue=t.stringValue,i.oneofs&&(l.value="stringValue")),t.boolValue!=null&&t.hasOwnProperty("boolValue")&&(l.boolValue=t.boolValue,i.oneofs&&(l.value="boolValue")),t.intValue!=null&&t.hasOwnProperty("intValue")&&(typeof t.intValue=="number"?l.intValue=i.longs===String?String(t.intValue):t.intValue:l.intValue=i.longs===String?f.Long.prototype.toString.call(t.intValue):i.longs===Number?new f.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber():t.intValue,i.oneofs&&(l.value="intValue")),t.doubleValue!=null&&t.hasOwnProperty("doubleValue")&&(l.doubleValue=i.json&&!isFinite(t.doubleValue)?String(t.doubleValue):t.doubleValue,i.oneofs&&(l.value="doubleValue")),t.arrayValue!=null&&t.hasOwnProperty("arrayValue")&&(l.arrayValue=_.opentelemetry.proto.common.v1.ArrayValue.toObject(t.arrayValue,i),i.oneofs&&(l.value="arrayValue")),t.kvlistValue!=null&&t.hasOwnProperty("kvlistValue")&&(l.kvlistValue=_.opentelemetry.proto.common.v1.KeyValueList.toObject(t.kvlistValue,i),i.oneofs&&(l.value="kvlistValue")),t.bytesValue!=null&&t.hasOwnProperty("bytesValue")&&(l.bytesValue=i.bytes===String?f.base64.encode(t.bytesValue,0,t.bytesValue.length):i.bytes===Array?Array.prototype.slice.call(t.bytesValue):t.bytesValue,i.oneofs&&(l.value="bytesValue")),l},"toObject"),s.prototype.toJSON=c(function(){return this.constructor.toObject(this,U.util.toJSONOptions)},"toJSON"),s.getTypeUrl=c(function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.AnyValue"},"getTypeUrl"),s}(),a.ArrayValue=function(){function s(u){if(this.values=[],u)for(var r=Object.keys(u),t=0;t<r.length;++t)u[r[t]]!=null&&(this[r[t]]=u[r[t]])}return c(s,"ArrayValue"),s.prototype.values=f.emptyArray,s.create=c(function(r){return new s(r)},"create"),s.encode=c(function(r,t){if(t||(t=K.create()),r.values!=null&&r.values.length)for(var i=0;i<r.values.length;++i)_.opentelemetry.proto.common.v1.AnyValue.encode(r.values[i],t.uint32(10).fork()).ldelim();return t},"encode"),s.encodeDelimited=c(function(r,t){return this.encode(r,t).ldelim()},"encodeDelimited"),s.decode=c(function(r,t){r instanceof T||(r=T.create(r));for(var i=t===void 0?r.len:r.pos+t,l=new _.opentelemetry.proto.common.v1.ArrayValue;r.pos<i;){var p=r.uint32();switch(p>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(_.opentelemetry.proto.common.v1.AnyValue.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return l},"decode"),s.decodeDelimited=c(function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},"decodeDelimited"),s.verify=c(function(r){if(typeof r!="object"||r===null)return"object expected";if(r.values!=null&&r.hasOwnProperty("values")){if(!Array.isArray(r.values))return"values: array expected";for(var t=0;t<r.values.length;++t){var i=_.opentelemetry.proto.common.v1.AnyValue.verify(r.values[t]);if(i)return"values."+i}}return null},"verify"),s.fromObject=c(function(r){if(r instanceof _.opentelemetry.proto.common.v1.ArrayValue)return r;var t=new _.opentelemetry.proto.common.v1.ArrayValue;if(r.values){if(!Array.isArray(r.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");t.values=[];for(var i=0;i<r.values.length;++i){if(typeof r.values[i]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");t.values[i]=_.opentelemetry.proto.common.v1.AnyValue.fromObject(r.values[i])}}return t},"fromObject"),s.toObject=c(function(r,t){t||(t={});var i={};if((t.arrays||t.defaults)&&(i.values=[]),r.values&&r.values.length){i.values=[];for(var l=0;l<r.values.length;++l)i.values[l]=_.opentelemetry.proto.common.v1.AnyValue.toObject(r.values[l],t)}return i},"toObject"),s.prototype.toJSON=c(function(){return this.constructor.toObject(this,U.util.toJSONOptions)},"toJSON"),s.getTypeUrl=c(function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.ArrayValue"},"getTypeUrl"),s}(),a.KeyValueList=function(){function s(u){if(this.values=[],u)for(var r=Object.keys(u),t=0;t<r.length;++t)u[r[t]]!=null&&(this[r[t]]=u[r[t]])}return c(s,"KeyValueList"),s.prototype.values=f.emptyArray,s.create=c(function(r){return new s(r)},"create"),s.encode=c(function(r,t){if(t||(t=K.create()),r.values!=null&&r.values.length)for(var i=0;i<r.values.length;++i)_.opentelemetry.proto.common.v1.KeyValue.encode(r.values[i],t.uint32(10).fork()).ldelim();return t},"encode"),s.encodeDelimited=c(function(r,t){return this.encode(r,t).ldelim()},"encodeDelimited"),s.decode=c(function(r,t){r instanceof T||(r=T.create(r));for(var i=t===void 0?r.len:r.pos+t,l=new _.opentelemetry.proto.common.v1.KeyValueList;r.pos<i;){var p=r.uint32();switch(p>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(_.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return l},"decode"),s.decodeDelimited=c(function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},"decodeDelimited"),s.verify=c(function(r){if(typeof r!="object"||r===null)return"object expected";if(r.values!=null&&r.hasOwnProperty("values")){if(!Array.isArray(r.values))return"values: array expected";for(var t=0;t<r.values.length;++t){var i=_.opentelemetry.proto.common.v1.KeyValue.verify(r.values[t]);if(i)return"values."+i}}return null},"verify"),s.fromObject=c(function(r){if(r instanceof _.opentelemetry.proto.common.v1.KeyValueList)return r;var t=new _.opentelemetry.proto.common.v1.KeyValueList;if(r.values){if(!Array.isArray(r.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");t.values=[];for(var i=0;i<r.values.length;++i){if(typeof r.values[i]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");t.values[i]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(r.values[i])}}return t},"fromObject"),s.toObject=c(function(r,t){t||(t={});var i={};if((t.arrays||t.defaults)&&(i.values=[]),r.values&&r.values.length){i.values=[];for(var l=0;l<r.values.length;++l)i.values[l]=_.opentelemetry.proto.common.v1.KeyValue.toObject(r.values[l],t)}return i},"toObject"),s.prototype.toJSON=c(function(){return this.constructor.toObject(this,U.util.toJSONOptions)},"toJSON"),s.getTypeUrl=c(function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.KeyValueList"},"getTypeUrl"),s}(),a.KeyValue=function(){function s(u){if(u)for(var r=Object.keys(u),t=0;t<r.length;++t)u[r[t]]!=null&&(this[r[t]]=u[r[t]])}return c(s,"KeyValue"),s.prototype.key=null,s.prototype.value=null,s.create=c(function(r){return new s(r)},"create"),s.encode=c(function(r,t){return t||(t=K.create()),r.key!=null&&Object.hasOwnProperty.call(r,"key")&&t.uint32(10).string(r.key),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&_.opentelemetry.proto.common.v1.AnyValue.encode(r.value,t.uint32(18).fork()).ldelim(),t},"encode"),s.encodeDelimited=c(function(r,t){return this.encode(r,t).ldelim()},"encodeDelimited"),s.decode=c(function(r,t){r instanceof T||(r=T.create(r));for(var i=t===void 0?r.len:r.pos+t,l=new _.opentelemetry.proto.common.v1.KeyValue;r.pos<i;){var p=r.uint32();switch(p>>>3){case 1:{l.key=r.string();break}case 2:{l.value=_.opentelemetry.proto.common.v1.AnyValue.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return l},"decode"),s.decodeDelimited=c(function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},"decodeDelimited"),s.verify=c(function(r){if(typeof r!="object"||r===null)return"object expected";if(r.key!=null&&r.hasOwnProperty("key")&&!f.isString(r.key))return"key: string expected";if(r.value!=null&&r.hasOwnProperty("value")){var t=_.opentelemetry.proto.common.v1.AnyValue.verify(r.value);if(t)return"value."+t}return null},"verify"),s.fromObject=c(function(r){if(r instanceof _.opentelemetry.proto.common.v1.KeyValue)return r;var t=new _.opentelemetry.proto.common.v1.KeyValue;if(r.key!=null&&(t.key=String(r.key)),r.value!=null){if(typeof r.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");t.value=_.opentelemetry.proto.common.v1.AnyValue.fromObject(r.value)}return t},"fromObject"),s.toObject=c(function(r,t){t||(t={});var i={};return t.defaults&&(i.key="",i.value=null),r.key!=null&&r.hasOwnProperty("key")&&(i.key=r.key),r.value!=null&&r.hasOwnProperty("value")&&(i.value=_.opentelemetry.proto.common.v1.AnyValue.toObject(r.value,t)),i},"toObject"),s.prototype.toJSON=c(function(){return this.constructor.toObject(this,U.util.toJSONOptions)},"toJSON"),s.getTypeUrl=c(function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.KeyValue"},"getTypeUrl"),s}(),a.InstrumentationScope=function(){function s(u){if(this.attributes=[],u)for(var r=Object.keys(u),t=0;t<r.length;++t)u[r[t]]!=null&&(this[r[t]]=u[r[t]])}return c(s,"InstrumentationScope"),s.prototype.name=null,s.prototype.version=null,s.prototype.attributes=f.emptyArray,s.prototype.droppedAttributesCount=null,s.create=c(function(r){return new s(r)},"create"),s.encode=c(function(r,t){if(t||(t=K.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&t.uint32(10).string(r.name),r.version!=null&&Object.hasOwnProperty.call(r,"version")&&t.uint32(18).string(r.version),r.attributes!=null&&r.attributes.length)for(var i=0;i<r.attributes.length;++i)_.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[i],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&t.uint32(32).uint32(r.droppedAttributesCount),t},"encode"),s.encodeDelimited=c(function(r,t){return this.encode(r,t).ldelim()},"encodeDelimited"),s.decode=c(function(r,t){r instanceof T||(r=T.create(r));for(var i=t===void 0?r.len:r.pos+t,l=new _.opentelemetry.proto.common.v1.InstrumentationScope;r.pos<i;){var p=r.uint32();switch(p>>>3){case 1:{l.name=r.string();break}case 2:{l.version=r.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{l.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return l},"decode"),s.decodeDelimited=c(function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},"decodeDelimited"),s.verify=c(function(r){if(typeof r!="object"||r===null)return"object expected";if(r.name!=null&&r.hasOwnProperty("name")&&!f.isString(r.name))return"name: string expected";if(r.version!=null&&r.hasOwnProperty("version")&&!f.isString(r.version))return"version: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var t=0;t<r.attributes.length;++t){var i=_.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[t]);if(i)return"attributes."+i}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!f.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},"verify"),s.fromObject=c(function(r){if(r instanceof _.opentelemetry.proto.common.v1.InstrumentationScope)return r;var t=new _.opentelemetry.proto.common.v1.InstrumentationScope;if(r.name!=null&&(t.name=String(r.name)),r.version!=null&&(t.version=String(r.version)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");t.attributes=[];for(var i=0;i<r.attributes.length;++i){if(typeof r.attributes[i]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");t.attributes[i]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[i])}}return r.droppedAttributesCount!=null&&(t.droppedAttributesCount=r.droppedAttributesCount>>>0),t},"fromObject"),s.toObject=c(function(r,t){t||(t={});var i={};if((t.arrays||t.defaults)&&(i.attributes=[]),t.defaults&&(i.name="",i.version="",i.droppedAttributesCount=0),r.name!=null&&r.hasOwnProperty("name")&&(i.name=r.name),r.version!=null&&r.hasOwnProperty("version")&&(i.version=r.version),r.attributes&&r.attributes.length){i.attributes=[];for(var l=0;l<r.attributes.length;++l)i.attributes[l]=_.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[l],t)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(i.droppedAttributesCount=r.droppedAttributesCount),i},"toObject"),s.prototype.toJSON=c(function(){return this.constructor.toObject(this,U.util.toJSONOptions)},"toJSON"),s.getTypeUrl=c(function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.InstrumentationScope"},"getTypeUrl"),s}(),a}(),o}(),e.resource=function(){var o={};return o.v1=function(){var a={};return a.Resource=function(){function s(u){if(this.attributes=[],u)for(var r=Object.keys(u),t=0;t<r.length;++t)u[r[t]]!=null&&(this[r[t]]=u[r[t]])}return c(s,"Resource"),s.prototype.attributes=f.emptyArray,s.prototype.droppedAttributesCount=null,s.create=c(function(r){return new s(r)},"create"),s.encode=c(function(r,t){if(t||(t=K.create()),r.attributes!=null&&r.attributes.length)for(var i=0;i<r.attributes.length;++i)_.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[i],t.uint32(10).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&t.uint32(16).uint32(r.droppedAttributesCount),t},"encode"),s.encodeDelimited=c(function(r,t){return this.encode(r,t).ldelim()},"encodeDelimited"),s.decode=c(function(r,t){r instanceof T||(r=T.create(r));for(var i=t===void 0?r.len:r.pos+t,l=new _.opentelemetry.proto.resource.v1.Resource;r.pos<i;){var p=r.uint32();switch(p>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{l.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return l},"decode"),s.decodeDelimited=c(function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},"decodeDelimited"),s.verify=c(function(r){if(typeof r!="object"||r===null)return"object expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var t=0;t<r.attributes.length;++t){var i=_.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[t]);if(i)return"attributes."+i}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!f.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},"verify"),s.fromObject=c(function(r){if(r instanceof _.opentelemetry.proto.resource.v1.Resource)return r;var t=new _.opentelemetry.proto.resource.v1.Resource;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");t.attributes=[];for(var i=0;i<r.attributes.length;++i){if(typeof r.attributes[i]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");t.attributes[i]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[i])}}return r.droppedAttributesCount!=null&&(t.droppedAttributesCount=r.droppedAttributesCount>>>0),t},"fromObject"),s.toObject=c(function(r,t){t||(t={});var i={};if((t.arrays||t.defaults)&&(i.attributes=[]),t.defaults&&(i.droppedAttributesCount=0),r.attributes&&r.attributes.length){i.attributes=[];for(var l=0;l<r.attributes.length;++l)i.attributes[l]=_.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[l],t)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(i.droppedAttributesCount=r.droppedAttributesCount),i},"toObject"),s.prototype.toJSON=c(function(){return this.constructor.toObject(this,U.util.toJSONOptions)},"toJSON"),s.getTypeUrl=c(function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.resource.v1.Resource"},"getTypeUrl"),s}(),a}(),o}(),e.trace=function(){var o={};return o.v1=function(){var a={};return a.TracesData=function(){function s(u){if(this.resourceSpans=[],u)for(var r=Object.keys(u),t=0;t<r.length;++t)u[r[t]]!=null&&(this[r[t]]=u[r[t]])}return c(s,"TracesData"),s.prototype.resourceSpans=f.emptyArray,s.create=c(function(r){return new s(r)},"create"),s.encode=c(function(r,t){if(t||(t=K.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var i=0;i<r.resourceSpans.length;++i)_.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[i],t.uint32(10).fork()).ldelim();return t},"encode"),s.encodeDelimited=c(function(r,t){return this.encode(r,t).ldelim()},"encodeDelimited"),s.decode=c(function(r,t){r instanceof T||(r=T.create(r));for(var i=t===void 0?r.len:r.pos+t,l=new _.opentelemetry.proto.trace.v1.TracesData;r.pos<i;){var p=r.uint32();switch(p>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(_.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return l},"decode"),s.decodeDelimited=c(function(r){return r instanceof T||(r=new T(r)),this.decode(r,r.uint32())},"decodeDelimited"),s.verify=c(function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray