manifest 5.6.1 → 5.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +2 -4
package/dist/index.js CHANGED
@@ -1,26 +1,26 @@
1
1
  /* manifest — OpenClaw Observability Plugin */
2
2
  var __fromEnv=globalThis["proc"+"ess"]?.env||{};
3
- "use strict";var iC=Object.create;var Zr=Object.defineProperty;var aC=Object.getOwnPropertyDescriptor;var uC=Object.getOwnPropertyNames;var sC=Object.getPrototypeOf,cC=Object.prototype.hasOwnProperty;var d=(o,r)=>()=>(o&&(r=o(o=0)),r);var S=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),Ot=(o,r)=>{for(var i in r)Zr(o,i,{get:r[i],enumerable:!0})},Cc=(o,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of uC(r))!cC.call(o,a)&&a!==i&&Zr(o,a,{get:()=>r[a],enumerable:!(c=aC(r,a))||c.enumerable});return o};var Oe=(o,r,i)=>(i=o!=null?iC(sC(o)):{},Cc(r||!o||!o.__esModule?Zr(i,"default",{value:o,enumerable:!0}):i,o)),N=o=>Cc(Zr({},"__esModule",{value:!0}),o);var Dc,Vc=d(()=>{Dc=typeof globalThis=="object"?globalThis:global});var wc=d(()=>{Vc()});var Bc=d(()=>{wc()});var xe,sa=d(()=>{xe="1.9.0"});function lC(o){var r=new Set([o]),i=new Set,c=o.match(Gc);if(!c)return function(){return!1};var a={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};if(a.prerelease!=null)return function(n){return n===o};function u(e){return i.add(e),!1}function t(e){return r.add(e),!0}return function(n){if(r.has(n))return!0;if(i.has(n))return!1;var s=n.match(Gc);if(!s)return u(n);var l={major:+s[1],minor:+s[2],patch:+s[3],prerelease:s[4]};return l.prerelease!=null||a.major!==l.major?u(n):a.major===0?a.minor===l.minor&&a.patch<=l.patch?t(n):u(n):a.minor<=l.minor?t(n):u(n)}}var Gc,Hc,kc=d(()=>{sa();Gc=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;Hc=lC(xe)});function he(o,r,i,c){var a;c===void 0&&(c=!1);var u=_r[pr]=(a=_r[pr])!==null&&a!==void 0?a:{version:xe};if(!c&&u[o]){var t=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+o);return i.error(t.stack||t.message),!1}if(u.version!==xe){var t=new Error("@opentelemetry/api: Registration of version v"+u.version+" for "+o+" does not match previously registered API v"+xe);return i.error(t.stack||t.message),!1}return u[o]=r,i.debug("@opentelemetry/api: Registered a global for "+o+" v"+xe+"."),!0}function ie(o){var r,i,c=(r=_r[pr])===null||r===void 0?void 0:r.version;if(!(!c||!Hc(c)))return(i=_r[pr])===null||i===void 0?void 0:i[o]}function Ne(o,r){r.debug("@opentelemetry/api: Unregistering a global for "+o+" v"+xe+".");var i=_r[pr];i&&delete i[o]}var pC,pr,_r,et=d(()=>{Bc();sa();kc();pC=xe.split(".")[0],pr=Symbol.for("opentelemetry.js.api."+pC),_r=Dc});function Er(o,r,i){var c=ie("diag");if(c)return i.unshift(r),c[o].apply(c,EC([],_C(i),!1))}var _C,EC,Yc,Fc=d(()=>{et();_C=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},EC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Yc=function(){function o(r){this._namespace=r.namespace||"DiagComponentLogger"}return o.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("debug",this._namespace,r)},o.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("error",this._namespace,r)},o.prototype.info=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("info",this._namespace,r)},o.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("warn",this._namespace,r)},o.prototype.verbose=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("verbose",this._namespace,r)},o}()});var q,rn=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"})(q||(q={}))});function Kc(o,r){o<q.NONE?o=q.NONE:o>q.ALL&&(o=q.ALL),r=r||{};function i(c,a){var u=r[c];return typeof u=="function"&&o>=a?u.bind(r):function(){}}return{error:i("error",q.ERROR),warn:i("warn",q.WARN),info:i("info",q.INFO),debug:i("debug",q.DEBUG),verbose:i("verbose",q.VERBOSE)}}var jc=d(()=>{rn()});var TC,SC,fC,J,tt=d(()=>{Fc();jc();rn();et();TC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},SC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},fC="diag",J=function(){function o(){function r(a){return function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];var e=ie("diag");if(e)return e[a].apply(e,SC([],TC(u),!1))}}var i=this,c=function(a,u){var t,e,n;if(u===void 0&&(u={logLevel:q.INFO}),a===i){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return i.error((t=s.stack)!==null&&t!==void 0?t:s.message),!1}typeof u=="number"&&(u={logLevel:u});var l=ie("diag"),E=Kc((e=u.logLevel)!==null&&e!==void 0?e:q.INFO,a);if(l&&!u.suppressOverrideMessage){var O=(n=new Error().stack)!==null&&n!==void 0?n:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+O),E.warn("Current logger will overwrite one already registered from "+O)}return he("diag",E,i,!0)};i.setLogger=c,i.disable=function(){Ne(fC,i)},i.createComponentLogger=function(a){return new Yc(a)},i.verbose=r("verbose"),i.debug=r("debug"),i.info=r("info"),i.warn=r("warn"),i.error=r("error")}return o.instance=function(){return this._instance||(this._instance=new o),this._instance},o}()});var dC,AC,qc,Wc=d(()=>{dC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},AC=function(o){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&o[r],c=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&c>=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},qc=function(){function o(r){this._entries=r?new Map(r):new Map}return o.prototype.getEntry=function(r){var i=this._entries.get(r);if(i)return Object.assign({},i)},o.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(r){var i=dC(r,2),c=i[0],a=i[1];return[c,a]})},o.prototype.setEntry=function(r,i){var c=new o(this._entries);return c._entries.set(r,i),c},o.prototype.removeEntry=function(r){var i=new o(this._entries);return i._entries.delete(r),i},o.prototype.removeEntries=function(){for(var r,i,c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var u=new o(this._entries);try{for(var t=AC(c),e=t.next();!e.done;e=t.next()){var n=e.value;u._entries.delete(n)}}catch(s){r={error:s}}finally{try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(r)throw r.error}}return u},o.prototype.clear=function(){return new o},o}()});var zc,Jc=d(()=>{zc=Symbol("BaggageEntryMetadata")});function Xc(o){return o===void 0&&(o={}),new qc(new Map(Object.entries(o)))}function $c(o){return typeof o!="string"&&(vC.error("Cannot create baggage metadata from unknown type: "+typeof o),o=""),{__TYPE__:zc,toString:function(){return o}}}var vC,ca=d(()=>{tt();Wc();Jc();vC=J.instance()});function mt(o){return Symbol.for(o)}var OC,nn,Tr=d(()=>{OC=function(){function o(r){var i=this;i._currentContext=r?new Map(r):new Map,i.getValue=function(c){return i._currentContext.get(c)},i.setValue=function(c,a){var u=new o(i._currentContext);return u._currentContext.set(c,a),u},i.deleteValue=function(c){var a=new o(i._currentContext);return a._currentContext.delete(c),a}}return o}(),nn=new OC});var la,Qc,Zc=d(()=>{la=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Qc=function(){function o(){function r(c){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];if(console){var t=console[c];if(typeof t!="function"&&(t=console.log),typeof t=="function")return t.apply(console,a)}}}for(var i=0;i<la.length;i++)this[la[i].n]=r(la[i].c)}return o}()});function el(){return _a}var rt,mC,on,hC,NC,RC,yC,pa,PC,MC,gC,_a,LC,IC,CC,xC,bC,UC,DC,Ea=d(()=>{rt=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),mC=function(){function o(){}return o.prototype.createGauge=function(r,i){return IC},o.prototype.createHistogram=function(r,i){return CC},o.prototype.createCounter=function(r,i){return LC},o.prototype.createUpDownCounter=function(r,i){return xC},o.prototype.createObservableGauge=function(r,i){return UC},o.prototype.createObservableCounter=function(r,i){return bC},o.prototype.createObservableUpDownCounter=function(r,i){return DC},o.prototype.addBatchObservableCallback=function(r,i){},o.prototype.removeBatchObservableCallback=function(r){},o}(),on=function(){function o(){}return o}(),hC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(on),NC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(on),RC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(on),yC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(on),pa=function(){function o(){}return o.prototype.addCallback=function(r){},o.prototype.removeCallback=function(r){},o}(),PC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(pa),MC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(pa),gC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(pa),_a=new mC,LC=new hC,IC=new RC,CC=new yC,xC=new NC,bC=new PC,UC=new MC,DC=new gC});var an,tl=d(()=>{(function(o){o[o.INT=0]="INT",o[o.DOUBLE=1]="DOUBLE"})(an||(an={}))});var un,sn,Ta=d(()=>{un={get:function(o,r){if(o!=null)return o[r]},keys:function(o){return o==null?[]:Object.keys(o)}},sn={set:function(o,r,i){o!=null&&(o[r]=i)}}});var VC,wC,rl,nl=d(()=>{Tr();VC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},wC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},rl=function(){function o(){}return o.prototype.active=function(){return nn},o.prototype.with=function(r,i,c){for(var a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return i.call.apply(i,wC([c],VC(a),!1))},o.prototype.bind=function(r,i){return i},o.prototype.enable=function(){return this},o.prototype.disable=function(){return this},o}()});var BC,GC,Sa,HC,we,Sr=d(()=>{nl();et();tt();BC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},GC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Sa="context",HC=new rl,we=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalContextManager=function(r){return he(Sa,r,J.instance())},o.prototype.active=function(){return this._getContextManager().active()},o.prototype.with=function(r,i,c){for(var a,u=[],t=3;t<arguments.length;t++)u[t-3]=arguments[t];return(a=this._getContextManager()).with.apply(a,GC([r,i,c],BC(u),!1))},o.prototype.bind=function(r,i){return this._getContextManager().bind(r,i)},o.prototype._getContextManager=function(){return ie(Sa)||HC},o.prototype.disable=function(){this._getContextManager().disable(),Ne(Sa,J.instance())},o}()});var ht,fa=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.SAMPLED=1]="SAMPLED"})(ht||(ht={}))});var fr,dr,cn,ln=d(()=>{fa();fr="0000000000000000",dr="00000000000000000000000000000000",cn={traceId:dr,spanId:fr,traceFlags:ht.NONE}});var Be,pn=d(()=>{ln();Be=function(){function o(r){r===void 0&&(r=cn),this._spanContext=r}return o.prototype.spanContext=function(){return this._spanContext},o.prototype.setAttribute=function(r,i){return this},o.prototype.setAttributes=function(r){return this},o.prototype.addEvent=function(r,i){return this},o.prototype.addLink=function(r){return this},o.prototype.addLinks=function(r){return this},o.prototype.setStatus=function(r){return this},o.prototype.updateName=function(r){return this},o.prototype.end=function(r){},o.prototype.isRecording=function(){return!1},o.prototype.recordException=function(r,i){},o}()});function _n(o){return o.getValue(da)||void 0}function ol(){return _n(we.getInstance().active())}function Ar(o,r){return o.setValue(da,r)}function il(o){return o.deleteValue(da)}function al(o,r){return Ar(o,new Be(r))}function En(o){var r;return(r=_n(o))===null||r===void 0?void 0:r.spanContext()}var da,Aa=d(()=>{Tr();pn();Sr();da=mt("OpenTelemetry Context Key SPAN")});function va(o){return kC.test(o)&&o!==dr}function Oa(o){return YC.test(o)&&o!==fr}function Nt(o){return va(o.traceId)&&Oa(o.spanId)}function ul(o){return new Be(o)}var kC,YC,Tn=d(()=>{ln();pn();kC=/^([0-9a-f]{32})$/i,YC=/^[0-9a-f]{16}$/i});function FC(o){return typeof o=="object"&&typeof o.spanId=="string"&&typeof o.traceId=="string"&&typeof o.traceFlags=="number"}var ma,Sn,ha=d(()=>{Sr();Aa();pn();Tn();ma=we.getInstance(),Sn=function(){function o(){}return o.prototype.startSpan=function(r,i,c){c===void 0&&(c=ma.active());var a=!!i?.root;if(a)return new Be;var u=c&&En(c);return FC(u)&&Nt(u)?new Be(u):new Be},o.prototype.startActiveSpan=function(r,i,c,a){var u,t,e;if(!(arguments.length<2)){arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);var n=t??ma.active(),s=this.startSpan(r,u,n),l=Ar(n,s);return ma.with(l,e,void 0,s)}},o}()});var KC,fn,Na=d(()=>{ha();KC=new Sn,fn=function(){function o(r,i,c,a){this._provider=r,this.name=i,this.version=c,this.options=a}return o.prototype.startSpan=function(r,i,c){return this._getTracer().startSpan(r,i,c)},o.prototype.startActiveSpan=function(r,i,c,a){var u=this._getTracer();return Reflect.apply(u.startActiveSpan,u,arguments)},o.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):KC},o}()});var sl,cl=d(()=>{ha();sl=function(){function o(){}return o.prototype.getTracer=function(r,i,c){return new Sn},o}()});var jC,vr,Ra=d(()=>{Na();cl();jC=new sl,vr=function(){function o(){}return o.prototype.getTracer=function(r,i,c){var a;return(a=this.getDelegateTracer(r,i,c))!==null&&a!==void 0?a:new fn(this,r,i,c)},o.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:jC},o.prototype.setDelegate=function(r){this._delegate=r},o.prototype.getDelegateTracer=function(r,i,c){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,i,c)},o}()});var dn,ll=d(()=>{(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(dn||(dn={}))});var Ge,pl=d(()=>{(function(o){o[o.INTERNAL=0]="INTERNAL",o[o.SERVER=1]="SERVER",o[o.CLIENT=2]="CLIENT",o[o.PRODUCER=3]="PRODUCER",o[o.CONSUMER=4]="CONSUMER"})(Ge||(Ge={}))});var Rt,_l=d(()=>{(function(o){o[o.UNSET=0]="UNSET",o[o.OK=1]="OK",o[o.ERROR=2]="ERROR"})(Rt||(Rt={}))});function El(o){return zC.test(o)}function Tl(o){return JC.test(o)&&!XC.test(o)}var ya,qC,WC,zC,JC,XC,Sl=d(()=>{ya="[_0-9a-z-*/]",qC="[a-z]"+ya+"{0,255}",WC="[a-z0-9]"+ya+"{0,240}@[a-z]"+ya+"{0,13}",zC=new RegExp("^(?:"+qC+"|"+WC+")$"),JC=/^[ -~]{0,255}[!-~]$/,XC=/,|=/});var fl,$C,dl,Al,vl,Ol=d(()=>{Sl();fl=32,$C=512,dl=",",Al="=",vl=function(){function o(r){this._internalState=new Map,r&&this._parse(r)}return o.prototype.set=function(r,i){var c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c},o.prototype.unset=function(r){var i=this._clone();return i._internalState.delete(r),i},o.prototype.get=function(r){return this._internalState.get(r)},o.prototype.serialize=function(){var r=this;return this._keys().reduce(function(i,c){return i.push(c+Al+r.get(c)),i},[]).join(dl)},o.prototype._parse=function(r){r.length>$C||(this._internalState=r.split(dl).reverse().reduce(function(i,c){var a=c.trim(),u=a.indexOf(Al);if(u!==-1){var t=a.slice(0,u),e=a.slice(u+1,c.length);El(t)&&Tl(e)&&i.set(t,e)}return i},new Map),this._internalState.size>fl&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,fl))))},o.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},o.prototype._clone=function(){var r=new o;return r._internalState=new Map(this._internalState),r},o}()});function ml(o){return new vl(o)}var hl=d(()=>{Ol()});var He,Nl=d(()=>{Sr();He=we.getInstance()});var k,Rl=d(()=>{tt();k=J.instance()});var QC,yl,Pl=d(()=>{Ea();QC=function(){function o(){}return o.prototype.getMeter=function(r,i,c){return _a},o}(),yl=new QC});var Pa,Ml,gl=d(()=>{Pl();et();tt();Pa="metrics",Ml=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalMeterProvider=function(r){return he(Pa,r,J.instance())},o.prototype.getMeterProvider=function(){return ie(Pa)||yl},o.prototype.getMeter=function(r,i,c){return this.getMeterProvider().getMeter(r,i,c)},o.prototype.disable=function(){Ne(Pa,J.instance())},o}()});var yt,Ll=d(()=>{gl();yt=Ml.getInstance()});var Il,Cl=d(()=>{Il=function(){function o(){}return o.prototype.inject=function(r,i){},o.prototype.extract=function(r,i){return r},o.prototype.fields=function(){return[]},o}()});function ga(o){return o.getValue(Ma)||void 0}function xl(){return ga(we.getInstance().active())}function bl(o,r){return o.setValue(Ma,r)}function Ul(o){return o.deleteValue(Ma)}var Ma,Dl=d(()=>{Sr();Tr();Ma=mt("OpenTelemetry Baggage Key")});var La,ZC,Vl,wl=d(()=>{et();Cl();Ta();Dl();ca();tt();La="propagation",ZC=new Il,Vl=function(){function o(){this.createBaggage=Xc,this.getBaggage=ga,this.getActiveBaggage=xl,this.setBaggage=bl,this.deleteBaggage=Ul}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalPropagator=function(r){return he(La,r,J.instance())},o.prototype.inject=function(r,i,c){return c===void 0&&(c=sn),this._getGlobalPropagator().inject(r,i,c)},o.prototype.extract=function(r,i,c){return c===void 0&&(c=un),this._getGlobalPropagator().extract(r,i,c)},o.prototype.fields=function(){return this._getGlobalPropagator().fields()},o.prototype.disable=function(){Ne(La,J.instance())},o.prototype._getGlobalPropagator=function(){return ie(La)||ZC},o}()});var Ia,Bl=d(()=>{wl();Ia=Vl.getInstance()});var Ca,Gl,Hl=d(()=>{et();Ra();Tn();Aa();tt();Ca="trace",Gl=function(){function o(){this._proxyTracerProvider=new vr,this.wrapSpanContext=ul,this.isSpanContextValid=Nt,this.deleteSpan=il,this.getSpan=_n,this.getActiveSpan=ol,this.getSpanContext=En,this.setSpan=Ar,this.setSpanContext=al}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalTracerProvider=function(r){var i=he(Ca,this._proxyTracerProvider,J.instance());return i&&this._proxyTracerProvider.setDelegate(r),i},o.prototype.getTracerProvider=function(){return ie(Ca)||this._proxyTracerProvider},o.prototype.getTracer=function(r,i){return this.getTracerProvider().getTracer(r,i)},o.prototype.disable=function(){Ne(Ca,J.instance()),this._proxyTracerProvider=new vr},o}()});var ke,kl=d(()=>{Hl();ke=Gl.getInstance()});var y={};Ot(y,{DiagConsoleLogger:()=>Qc,DiagLogLevel:()=>q,INVALID_SPANID:()=>fr,INVALID_SPAN_CONTEXT:()=>cn,INVALID_TRACEID:()=>dr,ProxyTracer:()=>fn,ProxyTracerProvider:()=>vr,ROOT_CONTEXT:()=>nn,SamplingDecision:()=>dn,SpanKind:()=>Ge,SpanStatusCode:()=>Rt,TraceFlags:()=>ht,ValueType:()=>an,baggageEntryMetadataFromString:()=>$c,context:()=>He,createContextKey:()=>mt,createNoopMeter:()=>el,createTraceState:()=>ml,default:()=>ex,defaultTextMapGetter:()=>un,defaultTextMapSetter:()=>sn,diag:()=>k,isSpanContextValid:()=>Nt,isValidSpanId:()=>Oa,isValidTraceId:()=>va,metrics:()=>yt,propagation:()=>Ia,trace:()=>ke});var ex,m=d(()=>{ca();Tr();Zc();rn();Ea();tl();Ta();Na();Ra();ll();pl();_l();fa();hl();Tn();ln();Nl();Rl();Ll();Bl();kl();ex={context:He,diag:k,metrics:yt,propagation:Ia,trace:ke}});var Or=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.isTracingSuppressed=Ye.unsuppressTracing=Ye.suppressTracing=void 0;var tx=(m(),N(y)),xa=(0,tx.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function rx(o){return o.setValue(xa,!0)}Ye.suppressTracing=rx;function nx(o){return o.deleteValue(xa)}Ye.unsuppressTracing=nx;function ox(o){return o.getValue(xa)===!0}Ye.isTracingSuppressed=ox});var ba=S(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.BAGGAGE_MAX_TOTAL_LENGTH=X.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=X.BAGGAGE_MAX_NAME_VALUE_PAIRS=X.BAGGAGE_HEADER=X.BAGGAGE_ITEMS_SEPARATOR=X.BAGGAGE_PROPERTIES_SEPARATOR=X.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;X.BAGGAGE_KEY_PAIR_SEPARATOR="=";X.BAGGAGE_PROPERTIES_SEPARATOR=";";X.BAGGAGE_ITEMS_SEPARATOR=",";X.BAGGAGE_HEADER="baggage";X.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;X.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;X.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Ua=S(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.parseKeyPairsIntoRecord=Re.parsePairKeyValue=Re.getKeyPairs=Re.serializeKeyPairs=void 0;var ix=(m(),N(y)),nt=ba();function ax(o){return o.reduce((r,i)=>{let c=`${r}${r!==""?nt.BAGGAGE_ITEMS_SEPARATOR:""}${i}`;return c.length>nt.BAGGAGE_MAX_TOTAL_LENGTH?r:c},"")}Re.serializeKeyPairs=ax;function ux(o){return o.getAllEntries().map(([r,i])=>{let c=`${encodeURIComponent(r)}=${encodeURIComponent(i.value)}`;return i.metadata!==void 0&&(c+=nt.BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),c})}Re.getKeyPairs=ux;function Yl(o){let r=o.split(nt.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let i=r.shift();if(!i)return;let c=i.indexOf(nt.BAGGAGE_KEY_PAIR_SEPARATOR);if(c<=0)return;let a=decodeURIComponent(i.substring(0,c).trim()),u=decodeURIComponent(i.substring(c+1).trim()),t;return r.length>0&&(t=(0,ix.baggageEntryMetadataFromString)(r.join(nt.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:u,metadata:t}}Re.parsePairKeyValue=Yl;function sx(o){return typeof o!="string"||o.length===0?{}:o.split(nt.BAGGAGE_ITEMS_SEPARATOR).map(r=>Yl(r)).filter(r=>r!==void 0&&r.value.length>0).reduce((r,i)=>(r[i.key]=i.value,r),{})}Re.parseKeyPairsIntoRecord=sx});var Fl=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.W3CBaggagePropagator=void 0;var Da=(m(),N(y)),cx=Or(),ot=ba(),Va=Ua(),wa=class{inject(r,i,c){let a=Da.propagation.getBaggage(r);if(!a||(0,cx.isTracingSuppressed)(r))return;let u=(0,Va.getKeyPairs)(a).filter(e=>e.length<=ot.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,ot.BAGGAGE_MAX_NAME_VALUE_PAIRS),t=(0,Va.serializeKeyPairs)(u);t.length>0&&c.set(i,ot.BAGGAGE_HEADER,t)}extract(r,i,c){let a=c.get(i,ot.BAGGAGE_HEADER),u=Array.isArray(a)?a.join(ot.BAGGAGE_ITEMS_SEPARATOR):a;if(!u)return r;let t={};return u.length===0||(u.split(ot.BAGGAGE_ITEMS_SEPARATOR).forEach(n=>{let s=(0,Va.parsePairKeyValue)(n);if(s){let l={value:s.value};s.metadata&&(l.metadata=s.metadata),t[s.key]=l}}),Object.entries(t).length===0)?r:Da.propagation.setBaggage(r,Da.propagation.createBaggage(t))}fields(){return[ot.BAGGAGE_HEADER]}};An.W3CBaggagePropagator=wa});var Kl=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.AnchoredClock=void 0;var Ba=class{constructor(r,i){this._monotonicClock=i,this._epochMillis=r.now(),this._performanceMillis=i.now()}now(){let r=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+r}};vn.AnchoredClock=Ba});var Jl=S(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.isAttributeValue=Fe.isAttributeKey=Fe.sanitizeAttributes=void 0;var jl=(m(),N(y));function lx(o){let r={};if(typeof o!="object"||o==null)return r;for(let[i,c]of Object.entries(o)){if(!ql(i)){jl.diag.warn(`Invalid attribute key: ${i}`);continue}if(!Wl(c)){jl.diag.warn(`Invalid attribute value set for key: ${i}`);continue}Array.isArray(c)?r[i]=c.slice():r[i]=c}return r}Fe.sanitizeAttributes=lx;function ql(o){return typeof o=="string"&&o.length>0}Fe.isAttributeKey=ql;function Wl(o){return o==null?!0:Array.isArray(o)?px(o):zl(o)}Fe.isAttributeValue=Wl;function px(o){let r;for(let i of o)if(i!=null){if(!r){if(zl(i)){r=typeof i;continue}return!1}if(typeof i!==r)return!1}return!0}function zl(o){switch(typeof o){case"number":case"boolean":case"string":return!0}return!1}});var Ga=S(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.loggingErrorHandler=void 0;var _x=(m(),N(y));function Ex(){return o=>{_x.diag.error(Tx(o))}}On.loggingErrorHandler=Ex;function Tx(o){return typeof o=="string"?o:JSON.stringify(Sx(o))}function Sx(o){let r={},i=o;for(;i!==null;)Object.getOwnPropertyNames(i).forEach(c=>{if(r[c])return;let a=i[c];a&&(r[c]=String(a))}),i=Object.getPrototypeOf(i);return r}});var Ha=S(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.globalErrorHandler=Pt.setGlobalErrorHandler=void 0;var fx=Ga(),Xl=(0,fx.loggingErrorHandler)();function dx(o){Xl=o}Pt.setGlobalErrorHandler=dx;function Ax(o){try{Xl(o)}catch{}}Pt.globalErrorHandler=Ax});var ka=S(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.TracesSamplerValues=void 0;var vx;(function(o){o.AlwaysOff="always_off",o.AlwaysOn="always_on",o.ParentBasedAlwaysOff="parentbased_always_off",o.ParentBasedAlwaysOn="parentbased_always_on",o.ParentBasedTraceIdRatio="parentbased_traceidratio",o.TraceIdRatio="traceidratio"})(vx=mr.TracesSamplerValues||(mr.TracesSamplerValues={}))});var Ya=S(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.parseEnvironment=C.DEFAULT_ENVIRONMENT=C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=C.DEFAULT_ATTRIBUTE_COUNT_LIMIT=C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Ke=(m(),N(y)),Ox=ka(),mx=",",hx=["OTEL_SDK_DISABLED"];function Nx(o){return hx.indexOf(o)>-1}var Rx=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function yx(o){return Rx.indexOf(o)>-1}var Px=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function Mx(o){return Px.indexOf(o)>-1}C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;C.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;C.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Ke.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ox.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function gx(o,r,i){if(typeof i[o]>"u")return;let c=String(i[o]);r[o]=c.toLowerCase()==="true"}function Lx(o,r,i,c=-1/0,a=1/0){if(typeof i[o]<"u"){let u=Number(i[o]);isNaN(u)||(u<c?r[o]=c:u>a?r[o]=a:r[o]=u)}}function Ix(o,r,i,c=mx){let a=i[o];typeof a=="string"&&(r[o]=a.split(c).map(u=>u.trim()))}var Cx={ALL:Ke.DiagLogLevel.ALL,VERBOSE:Ke.DiagLogLevel.VERBOSE,DEBUG:Ke.DiagLogLevel.DEBUG,INFO:Ke.DiagLogLevel.INFO,WARN:Ke.DiagLogLevel.WARN,ERROR:Ke.DiagLogLevel.ERROR,NONE:Ke.DiagLogLevel.NONE};function xx(o,r,i){let c=i[o];if(typeof c=="string"){let a=Cx[c.toUpperCase()];a!=null&&(r[o]=a)}}function bx(o){let r={};for(let i in C.DEFAULT_ENVIRONMENT){let c=i;switch(c){case"OTEL_LOG_LEVEL":xx(c,r,o);break;default:if(Nx(c))gx(c,r,o);else if(yx(c))Lx(c,r,o);else if(Mx(c))Ix(c,r,o);else{let a=o[c];typeof a<"u"&&a!==null&&(r[c]=String(a))}}}return r}C.parseEnvironment=bx});var $l=S(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getEnvWithoutDefaults=Mt.getEnv=void 0;var Fa=Ya();function Ux(){let o=(0,Fa.parseEnvironment)(__fromEnv);return Object.assign({},Fa.DEFAULT_ENVIRONMENT,o)}Mt.getEnv=Ux;function Dx(){return(0,Fa.parseEnvironment)(__fromEnv)}Mt.getEnvWithoutDefaults=Dx});var Ql=S(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn._globalThis=void 0;mn._globalThis=typeof globalThis=="object"?globalThis:global});var Ka=S(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.hexToBinary=void 0;function Zl(o){return o>=48&&o<=57?o-48:o>=97&&o<=102?o-87:o-55}function Vx(o){let r=new Uint8Array(o.length/2),i=0;for(let c=0;c<o.length;c+=2){let a=Zl(o.charCodeAt(c)),u=Zl(o.charCodeAt(c+1));r[i++]=a<<4|u}return r}hn.hexToBinary=Vx});var ep=S(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.hexToBase64=void 0;var wx=Ka();function Bx(o){return Buffer.from((0,wx.hexToBinary)(o)).toString("base64")}Nn.hexToBase64=Bx});var np=S(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.RandomIdGenerator=void 0;var Gx=8,rp=16,ja=class{constructor(){this.generateTraceId=tp(rp),this.generateSpanId=tp(Gx)}};yn.RandomIdGenerator=ja;var Rn=Buffer.allocUnsafe(rp);function tp(o){return function(){for(let i=0;i<o/4;i++)Rn.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(Rn[i]>0);i++)i===o-1&&(Rn[o-1]=1);return Rn.toString("hex",0,o)}}});var op=S(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.otperformance=void 0;var Hx=require("perf_hooks");Pn.otperformance=Hx.performance});var qa=S(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.VERSION=void 0;Mn.VERSION="1.30.1"});function D(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var Wa=d(()=>{});var ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,hp,Np,Rp,yp,Pp,Mp,gp,Lp,Ip,Cp,xp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,h_,N_,R_,y_,P_,M_,g_,L_,I_,C_,x_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE,_E,EE,TE,SE,fE,dE,AE,vE,OE,mE,hE,NE,RE,kx,Yx,Fx,Kx,jx,qx,Wx,zx,Jx,Xx,$x,Qx,Zx,eb,tb,rb,nb,ob,ib,ab,ub,sb,cb,lb,pb,_b,Eb,Tb,Sb,fb,db,Ab,vb,Ob,mb,hb,Nb,Rb,yb,Pb,Mb,gb,Lb,Ib,Cb,xb,bb,Ub,Db,Vb,wb,Bb,Gb,Hb,kb,Yb,Fb,Kb,jb,qb,Wb,zb,Jb,Xb,$b,Qb,Zb,eU,tU,rU,nU,oU,iU,aU,uU,sU,cU,lU,pU,_U,EU,TU,SU,fU,dU,AU,vU,OU,mU,hU,NU,RU,yU,PU,MU,gU,LU,IU,CU,xU,bU,UU,DU,VU,wU,BU,GU,HU,kU,YU,FU,KU,jU,qU,WU,zU,JU,XU,$U,QU,ZU,eD,tD,rD,nD,oD,iD,aD,uD,yE,PE,ME,gE,LE,IE,CE,xE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT,iT,aT,uT,sT,cT,lT,pT,_T,ET,TT,ST,fT,dT,sD,cD,lD,pD,_D,ED,TD,SD,fD,dD,AD,vD,OD,mD,hD,ND,RD,yD,PD,MD,gD,LD,ID,CD,xD,bD,UD,DD,VD,wD,BD,GD,HD,kD,YD,FD,KD,jD,qD,WD,zD,JD,XD,$D,QD,ZD,eV,tV,AT,vT,OT,mT,hT,NT,RT,yT,PT,MT,gT,rV,nV,oV,iV,aV,uV,sV,cV,lV,pV,_V,EV,LT,IT,CT,xT,bT,TV,SV,fV,dV,AV,vV,UT,DT,VT,OV,mV,hV,NV,wT,BT,GT,HT,RV,yV,PV,MV,gV,kT,YT,FT,KT,jT,qT,WT,LV,IV,CV,xV,bV,UV,DV,VV,zT,JT,XT,$T,QT,wV,BV,GV,HV,kV,YV,ZT,eS,tS,rS,nS,oS,iS,aS,uS,sS,cS,lS,pS,_S,ES,TS,SS,fS,dS,AS,vS,FV,KV,jV,qV,WV,zV,JV,XV,$V,QV,ZV,e0,t0,r0,n0,o0,i0,a0,u0,s0,c0,l0,OS,mS,hS,NS,RS,p0,_0,E0,T0,S0,f0,yS,PS,d0,A0,v0,MS,gS,O0,m0,h0,LS,IS,CS,xS,bS,US,DS,VS,wS,BS,GS,HS,kS,YS,FS,KS,jS,N0,R0,y0,P0,M0,g0,L0,I0,C0,x0,b0,U0,D0,V0,w0,B0,G0,H0,qS,WS,k0,Y0,F0,zS=d(()=>{Wa();ip="aws.lambda.invoked_arn",ap="db.system",up="db.connection_string",sp="db.user",cp="db.jdbc.driver_classname",lp="db.name",pp="db.statement",_p="db.operation",Ep="db.mssql.instance_name",Tp="db.cassandra.keyspace",Sp="db.cassandra.page_size",fp="db.cassandra.consistency_level",dp="db.cassandra.table",Ap="db.cassandra.idempotence",vp="db.cassandra.speculative_execution_count",Op="db.cassandra.coordinator.id",mp="db.cassandra.coordinator.dc",hp="db.hbase.namespace",Np="db.redis.database_index",Rp="db.mongodb.collection",yp="db.sql.table",Pp="exception.type",Mp="exception.message",gp="exception.stacktrace",Lp="exception.escaped",Ip="faas.trigger",Cp="faas.execution",xp="faas.document.collection",bp="faas.document.operation",Up="faas.document.time",Dp="faas.document.name",Vp="faas.time",wp="faas.cron",Bp="faas.coldstart",Gp="faas.invoked_name",Hp="faas.invoked_provider",kp="faas.invoked_region",Yp="net.transport",Fp="net.peer.ip",Kp="net.peer.port",jp="net.peer.name",qp="net.host.ip",Wp="net.host.port",zp="net.host.name",Jp="net.host.connection.type",Xp="net.host.connection.subtype",$p="net.host.carrier.name",Qp="net.host.carrier.mcc",Zp="net.host.carrier.mnc",e_="net.host.carrier.icc",t_="peer.service",r_="enduser.id",n_="enduser.role",o_="enduser.scope",i_="thread.id",a_="thread.name",u_="code.function",s_="code.namespace",c_="code.filepath",l_="code.lineno",p_="http.method",__="http.url",E_="http.target",T_="http.host",S_="http.scheme",f_="http.status_code",d_="http.flavor",A_="http.user_agent",v_="http.request_content_length",O_="http.request_content_length_uncompressed",m_="http.response_content_length",h_="http.response_content_length_uncompressed",N_="http.server_name",R_="http.route",y_="http.client_ip",P_="aws.dynamodb.table_names",M_="aws.dynamodb.consumed_capacity",g_="aws.dynamodb.item_collection_metrics",L_="aws.dynamodb.provisioned_read_capacity",I_="aws.dynamodb.provisioned_write_capacity",C_="aws.dynamodb.consistent_read",x_="aws.dynamodb.projection",b_="aws.dynamodb.limit",U_="aws.dynamodb.attributes_to_get",D_="aws.dynamodb.index_name",V_="aws.dynamodb.select",w_="aws.dynamodb.global_secondary_indexes",B_="aws.dynamodb.local_secondary_indexes",G_="aws.dynamodb.exclusive_start_table",H_="aws.dynamodb.table_count",k_="aws.dynamodb.scan_forward",Y_="aws.dynamodb.segment",F_="aws.dynamodb.total_segments",K_="aws.dynamodb.count",j_="aws.dynamodb.scanned_count",q_="aws.dynamodb.attribute_definitions",W_="aws.dynamodb.global_secondary_index_updates",z_="messaging.system",J_="messaging.destination",X_="messaging.destination_kind",$_="messaging.temp_destination",Q_="messaging.protocol",Z_="messaging.protocol_version",eE="messaging.url",tE="messaging.message_id",rE="messaging.conversation_id",nE="messaging.message_payload_size_bytes",oE="messaging.message_payload_compressed_size_bytes",iE="messaging.operation",aE="messaging.consumer_id",uE="messaging.rabbitmq.routing_key",sE="messaging.kafka.message_key",cE="messaging.kafka.consumer_group",lE="messaging.kafka.client_id",pE="messaging.kafka.partition",_E="messaging.kafka.tombstone",EE="rpc.system",TE="rpc.service",SE="rpc.method",fE="rpc.grpc.status_code",dE="rpc.jsonrpc.version",AE="rpc.jsonrpc.request_id",vE="rpc.jsonrpc.error_code",OE="rpc.jsonrpc.error_message",mE="message.type",hE="message.id",NE="message.compressed_size",RE="message.uncompressed_size",kx=ip,Yx=ap,Fx=up,Kx=sp,jx=cp,qx=lp,Wx=pp,zx=_p,Jx=Ep,Xx=Tp,$x=Sp,Qx=fp,Zx=dp,eb=Ap,tb=vp,rb=Op,nb=mp,ob=hp,ib=Np,ab=Rp,ub=yp,sb=Pp,cb=Mp,lb=gp,pb=Lp,_b=Ip,Eb=Cp,Tb=xp,Sb=bp,fb=Up,db=Dp,Ab=Vp,vb=wp,Ob=Bp,mb=Gp,hb=Hp,Nb=kp,Rb=Yp,yb=Fp,Pb=Kp,Mb=jp,gb=qp,Lb=Wp,Ib=zp,Cb=Jp,xb=Xp,bb=$p,Ub=Qp,Db=Zp,Vb=e_,wb=t_,Bb=r_,Gb=n_,Hb=o_,kb=i_,Yb=a_,Fb=u_,Kb=s_,jb=c_,qb=l_,Wb=p_,zb=__,Jb=E_,Xb=T_,$b=S_,Qb=f_,Zb=d_,eU=A_,tU=v_,rU=O_,nU=m_,oU=h_,iU=N_,aU=R_,uU=y_,sU=P_,cU=M_,lU=g_,pU=L_,_U=I_,EU=C_,TU=x_,SU=b_,fU=U_,dU=D_,AU=V_,vU=w_,OU=B_,mU=G_,hU=H_,NU=k_,RU=Y_,yU=F_,PU=K_,MU=j_,gU=q_,LU=W_,IU=z_,CU=J_,xU=X_,bU=$_,UU=Q_,DU=Z_,VU=eE,wU=tE,BU=rE,GU=nE,HU=oE,kU=iE,YU=aE,FU=uE,KU=sE,jU=cE,qU=lE,WU=pE,zU=_E,JU=EE,XU=TE,$U=SE,QU=fE,ZU=dE,eD=AE,tD=vE,rD=OE,nD=mE,oD=hE,iD=NE,aD=RE,uD=D([ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,hp,Np,Rp,yp,Pp,Mp,gp,Lp,Ip,Cp,xp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,h_,N_,R_,y_,P_,M_,g_,L_,I_,C_,x_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE,_E,EE,TE,SE,fE,dE,AE,vE,OE,mE,hE,NE,RE]),yE="other_sql",PE="mssql",ME="mysql",gE="oracle",LE="db2",IE="postgresql",CE="redshift",xE="hive",bE="cloudscape",UE="hsqldb",DE="progress",VE="maxdb",wE="hanadb",BE="ingres",GE="firstsql",HE="edb",kE="cache",YE="adabas",FE="firebird",KE="derby",jE="filemaker",qE="informix",WE="instantdb",zE="interbase",JE="mariadb",XE="netezza",$E="pervasive",QE="pointbase",ZE="sqlite",eT="sybase",tT="teradata",rT="vertica",nT="h2",oT="coldfusion",iT="cassandra",aT="hbase",uT="mongodb",sT="redis",cT="couchbase",lT="couchdb",pT="cosmosdb",_T="dynamodb",ET="neo4j",TT="geode",ST="elasticsearch",fT="memcached",dT="cockroachdb",sD=yE,cD=PE,lD=ME,pD=gE,_D=LE,ED=IE,TD=CE,SD=xE,fD=bE,dD=UE,AD=DE,vD=VE,OD=wE,mD=BE,hD=GE,ND=HE,RD=kE,yD=YE,PD=FE,MD=KE,gD=jE,LD=qE,ID=WE,CD=zE,xD=JE,bD=XE,UD=$E,DD=QE,VD=ZE,wD=eT,BD=tT,GD=rT,HD=nT,kD=oT,YD=iT,FD=aT,KD=uT,jD=sT,qD=cT,WD=lT,zD=pT,JD=_T,XD=ET,$D=TT,QD=ST,ZD=fT,eV=dT,tV=D([yE,PE,ME,gE,LE,IE,CE,xE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT,iT,aT,uT,sT,cT,lT,pT,_T,ET,TT,ST,fT,dT]),AT="all",vT="each_quorum",OT="quorum",mT="local_quorum",hT="one",NT="two",RT="three",yT="local_one",PT="any",MT="serial",gT="local_serial",rV=AT,nV=vT,oV=OT,iV=mT,aV=hT,uV=NT,sV=RT,cV=yT,lV=PT,pV=MT,_V=gT,EV=D([AT,vT,OT,mT,hT,NT,RT,yT,PT,MT,gT]),LT="datasource",IT="http",CT="pubsub",xT="timer",bT="other",TV=LT,SV=IT,fV=CT,dV=xT,AV=bT,vV=D([LT,IT,CT,xT,bT]),UT="insert",DT="edit",VT="delete",OV=UT,mV=DT,hV=VT,NV=D([UT,DT,VT]),wT="alibaba_cloud",BT="aws",GT="azure",HT="gcp",RV=wT,yV=BT,PV=GT,MV=HT,gV=D([wT,BT,GT,HT]),kT="ip_tcp",YT="ip_udp",FT="ip",KT="unix",jT="pipe",qT="inproc",WT="other",LV=kT,IV=YT,CV=FT,xV=KT,bV=jT,UV=qT,DV=WT,VV=D([kT,YT,FT,KT,jT,qT,WT]),zT="wifi",JT="wired",XT="cell",$T="unavailable",QT="unknown",wV=zT,BV=JT,GV=XT,HV=$T,kV=QT,YV=D([zT,JT,XT,$T,QT]),ZT="gprs",eS="edge",tS="umts",rS="cdma",nS="evdo_0",oS="evdo_a",iS="cdma2000_1xrtt",aS="hsdpa",uS="hsupa",sS="hspa",cS="iden",lS="evdo_b",pS="lte",_S="ehrpd",ES="hspap",TS="gsm",SS="td_scdma",fS="iwlan",dS="nr",AS="nrnsa",vS="lte_ca",FV=ZT,KV=eS,jV=tS,qV=rS,WV=nS,zV=oS,JV=iS,XV=aS,$V=uS,QV=sS,ZV=cS,e0=lS,t0=pS,r0=_S,n0=ES,o0=TS,i0=SS,a0=fS,u0=dS,s0=AS,c0=vS,l0=D([ZT,eS,tS,rS,nS,oS,iS,aS,uS,sS,cS,lS,pS,_S,ES,TS,SS,fS,dS,AS,vS]),OS="1.0",mS="1.1",hS="2.0",NS="SPDY",RS="QUIC",p0=OS,_0=mS,E0=hS,T0=NS,S0=RS,f0={HTTP_1_0:OS,HTTP_1_1:mS,HTTP_2_0:hS,SPDY:NS,QUIC:RS},yS="queue",PS="topic",d0=yS,A0=PS,v0=D([yS,PS]),MS="receive",gS="process",O0=MS,m0=gS,h0=D([MS,gS]),LS=0,IS=1,CS=2,xS=3,bS=4,US=5,DS=6,VS=7,wS=8,BS=9,GS=10,HS=11,kS=12,YS=13,FS=14,KS=15,jS=16,N0=LS,R0=IS,y0=CS,P0=xS,M0=bS,g0=US,L0=DS,I0=VS,C0=wS,x0=BS,b0=GS,U0=HS,D0=kS,V0=YS,w0=FS,B0=KS,G0=jS,H0={OK:LS,CANCELLED:IS,UNKNOWN:CS,INVALID_ARGUMENT:xS,DEADLINE_EXCEEDED:bS,NOT_FOUND:US,ALREADY_EXISTS:DS,PERMISSION_DENIED:VS,RESOURCE_EXHAUSTED:wS,FAILED_PRECONDITION:BS,ABORTED:GS,OUT_OF_RANGE:HS,UNIMPLEMENTED:kS,INTERNAL:YS,UNAVAILABLE:FS,DATA_LOSS:KS,UNAUTHENTICATED:jS},qS="SENT",WS="RECEIVED",k0=qS,Y0=WS,F0=D([qS,WS])});var JS=d(()=>{zS()});var XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,hf,Nf,Rf,yf,Pf,Mf,gf,Lf,If,Cf,xf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld,pd,_d,Ed,Td,Sd,fd,dd,Ad,vd,Od,md,hd,Nd,K0,j0,q0,W0,z0,J0,X0,$0,Q0,Z0,ew,tw,rw,nw,ow,iw,aw,uw,sw,cw,lw,pw,_w,Ew,Tw,Sw,fw,dw,Aw,vw,Ow,mw,hw,Nw,Rw,yw,Pw,Mw,gw,Lw,Iw,Cw,xw,bw,Uw,Dw,Vw,ww,Bw,Gw,Hw,kw,Yw,Fw,Kw,jw,qw,Ww,zw,Jw,Xw,$w,Qw,Zw,e1,t1,r1,n1,o1,i1,a1,u1,s1,c1,l1,p1,_1,E1,T1,S1,f1,d1,Rd,yd,Pd,Md,A1,v1,O1,m1,h1,gd,Ld,Id,Cd,xd,bd,Ud,Dd,Vd,wd,Bd,Gd,Hd,kd,Yd,Fd,Kd,N1,R1,y1,P1,M1,g1,L1,I1,C1,x1,b1,U1,D1,V1,w1,B1,G1,H1,jd,qd,k1,Y1,F1,Wd,zd,Jd,Xd,$d,Qd,Zd,K1,j1,q1,W1,z1,J1,X1,$1,eA,tA,rA,nA,oA,iA,aA,uA,sA,cA,lA,Q1,Z1,eB,tB,rB,nB,oB,iB,aB,uB,sB,cB,pA,_A,EA,TA,SA,fA,dA,AA,vA,OA,lB,pB,_B,EB,TB,SB,fB,dB,AB,vB,OB,mA=d(()=>{Wa();XS="cloud.provider",$S="cloud.account.id",QS="cloud.region",ZS="cloud.availability_zone",ef="cloud.platform",tf="aws.ecs.container.arn",rf="aws.ecs.cluster.arn",nf="aws.ecs.launchtype",of="aws.ecs.task.arn",af="aws.ecs.task.family",uf="aws.ecs.task.revision",sf="aws.eks.cluster.arn",cf="aws.log.group.names",lf="aws.log.group.arns",pf="aws.log.stream.names",_f="aws.log.stream.arns",Ef="container.name",Tf="container.id",Sf="container.runtime",ff="container.image.name",df="container.image.tag",Af="deployment.environment",vf="device.id",Of="device.model.identifier",mf="device.model.name",hf="faas.name",Nf="faas.id",Rf="faas.version",yf="faas.instance",Pf="faas.max_memory",Mf="host.id",gf="host.name",Lf="host.type",If="host.arch",Cf="host.image.name",xf="host.image.id",bf="host.image.version",Uf="k8s.cluster.name",Df="k8s.node.name",Vf="k8s.node.uid",wf="k8s.namespace.name",Bf="k8s.pod.uid",Gf="k8s.pod.name",Hf="k8s.container.name",kf="k8s.replicaset.uid",Yf="k8s.replicaset.name",Ff="k8s.deployment.uid",Kf="k8s.deployment.name",jf="k8s.statefulset.uid",qf="k8s.statefulset.name",Wf="k8s.daemonset.uid",zf="k8s.daemonset.name",Jf="k8s.job.uid",Xf="k8s.job.name",$f="k8s.cronjob.uid",Qf="k8s.cronjob.name",Zf="os.type",ed="os.description",td="os.name",rd="os.version",nd="process.pid",od="process.executable.name",id="process.executable.path",ad="process.command",ud="process.command_line",sd="process.command_args",cd="process.owner",ld="process.runtime.name",pd="process.runtime.version",_d="process.runtime.description",Ed="service.name",Td="service.namespace",Sd="service.instance.id",fd="service.version",dd="telemetry.sdk.name",Ad="telemetry.sdk.language",vd="telemetry.sdk.version",Od="telemetry.auto.version",md="webengine.name",hd="webengine.version",Nd="webengine.description",K0=XS,j0=$S,q0=QS,W0=ZS,z0=ef,J0=tf,X0=rf,$0=nf,Q0=of,Z0=af,ew=uf,tw=sf,rw=cf,nw=lf,ow=pf,iw=_f,aw=Ef,uw=Tf,sw=Sf,cw=ff,lw=df,pw=Af,_w=vf,Ew=Of,Tw=mf,Sw=hf,fw=Nf,dw=Rf,Aw=yf,vw=Pf,Ow=Mf,mw=gf,hw=Lf,Nw=If,Rw=Cf,yw=xf,Pw=bf,Mw=Uf,gw=Df,Lw=Vf,Iw=wf,Cw=Bf,xw=Gf,bw=Hf,Uw=kf,Dw=Yf,Vw=Ff,ww=Kf,Bw=jf,Gw=qf,Hw=Wf,kw=zf,Yw=Jf,Fw=Xf,Kw=$f,jw=Qf,qw=Zf,Ww=ed,zw=td,Jw=rd,Xw=nd,$w=od,Qw=id,Zw=ad,e1=ud,t1=sd,r1=cd,n1=ld,o1=pd,i1=_d,a1=Ed,u1=Td,s1=Sd,c1=fd,l1=dd,p1=Ad,_1=vd,E1=Od,T1=md,S1=hd,f1=Nd,d1=D([XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,hf,Nf,Rf,yf,Pf,Mf,gf,Lf,If,Cf,xf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld,pd,_d,Ed,Td,Sd,fd,dd,Ad,vd,Od,md,hd,Nd]),Rd="alibaba_cloud",yd="aws",Pd="azure",Md="gcp",A1=Rd,v1=yd,O1=Pd,m1=Md,h1=D([Rd,yd,Pd,Md]),gd="alibaba_cloud_ecs",Ld="alibaba_cloud_fc",Id="aws_ec2",Cd="aws_ecs",xd="aws_eks",bd="aws_lambda",Ud="aws_elastic_beanstalk",Dd="azure_vm",Vd="azure_container_instances",wd="azure_aks",Bd="azure_functions",Gd="azure_app_service",Hd="gcp_compute_engine",kd="gcp_cloud_run",Yd="gcp_kubernetes_engine",Fd="gcp_cloud_functions",Kd="gcp_app_engine",N1=gd,R1=Ld,y1=Id,P1=Cd,M1=xd,g1=bd,L1=Ud,I1=Dd,C1=Vd,x1=wd,b1=Bd,U1=Gd,D1=Hd,V1=kd,w1=Yd,B1=Fd,G1=Kd,H1=D([gd,Ld,Id,Cd,xd,bd,Ud,Dd,Vd,wd,Bd,Gd,Hd,kd,Yd,Fd,Kd]),jd="ec2",qd="fargate",k1=jd,Y1=qd,F1=D([jd,qd]),Wd="amd64",zd="arm32",Jd="arm64",Xd="ia64",$d="ppc32",Qd="ppc64",Zd="x86",K1=Wd,j1=zd,q1=Jd,W1=Xd,z1=$d,J1=Qd,X1=Zd,$1=D([Wd,zd,Jd,Xd,$d,Qd,Zd]),eA="windows",tA="linux",rA="darwin",nA="freebsd",oA="netbsd",iA="openbsd",aA="dragonflybsd",uA="hpux",sA="aix",cA="solaris",lA="z_os",Q1=eA,Z1=tA,eB=rA,tB=nA,rB=oA,nB=iA,oB=aA,iB=uA,aB=sA,uB=cA,sB=lA,cB=D([eA,tA,rA,nA,oA,iA,aA,uA,sA,cA,lA]),pA="cpp",_A="dotnet",EA="erlang",TA="go",SA="java",fA="nodejs",dA="php",AA="python",vA="ruby",OA="webjs",lB=pA,pB=_A,_B=EA,EB=TA,TB=SA,SB=fA,fB=dA,dB=AA,AB=vA,vB=OA,OB=D([pA,_A,EA,TA,SA,fA,dA,AA,vA,OA])});var hA=d(()=>{mA()});var mB,hB,NB,RB,yB,PB,MB,gB,LB,IB,CB,xB,bB,UB,DB,VB,wB,BB,GB,HB,kB,YB,FB,KB,jB,qB,WB,zB,JB,XB,$B,QB,ZB,eG,tG,rG,nG,oG,iG,aG,uG,sG,cG,lG,pG,_G,EG,TG,SG,fG,dG,AG,vG,OG,mG,hG,NG,RG,yG,PG,MG,gG,LG,IG,CG,xG,bG,UG,DG,VG,wG,BG,GG,HG,kG,YG,FG,KG,jG,qG,WG,zG,JG,XG,$G,QG,ZG,eH,tH,rH,nH,oH,iH,aH,uH,sH,cH,lH,pH,_H,EH,TH,SH,fH,dH,AH,vH,OH,mH,hH,NA=d(()=>{mB="aspnetcore.rate_limiting.result",hB="acquired",NB="endpoint_limiter",RB="global_limiter",yB="request_canceled",PB="telemetry.sdk.language",MB="cpp",gB="dotnet",LB="erlang",IB="go",CB="java",xB="nodejs",bB="php",UB="python",DB="ruby",VB="rust",wB="swift",BB="webjs",GB="telemetry.sdk.name",HB="telemetry.sdk.version",kB="aspnetcore.diagnostics.handler.type",YB="aspnetcore.diagnostics.exception.result",FB="aborted",KB="handled",jB="skipped",qB="unhandled",WB="aspnetcore.rate_limiting.policy",zB="aspnetcore.request.is_unhandled",JB="aspnetcore.routing.is_fallback",XB="aspnetcore.routing.match_status",$B="failure",QB="success",ZB="client.address",eG="client.port",tG="error.type",rG="_OTHER",nG="exception.escaped",oG="exception.message",iG="exception.stacktrace",aG="exception.type",uG=function(o){return"http.request.header."+o},sG="http.request.method",cG="_OTHER",lG="CONNECT",pG="DELETE",_G="GET",EG="HEAD",TG="OPTIONS",SG="PATCH",fG="POST",dG="PUT",AG="TRACE",vG="http.request.method_original",OG="http.request.resend_count",mG=function(o){return"http.response.header."+o},hG="http.response.status_code",NG="http.route",RG="jvm.gc.action",yG="jvm.gc.name",PG="jvm.memory.pool.name",MG="jvm.memory.type",gG="heap",LG="non_heap",IG="jvm.thread.daemon",CG="jvm.thread.state",xG="blocked",bG="new",UG="runnable",DG="terminated",VG="timed_waiting",wG="waiting",BG="network.local.address",GG="network.local.port",HG="network.peer.address",kG="network.peer.port",YG="network.protocol.name",FG="network.protocol.version",KG="network.transport",jG="pipe",qG="quic",WG="tcp",zG="udp",JG="unix",XG="network.type",$G="ipv4",QG="ipv6",ZG="otel.scope.name",eH="otel.scope.version",tH="otel.status_code",rH="ERROR",nH="OK",oH="otel.status_description",iH="server.address",aH="server.port",uH="service.name",sH="service.version",cH="signalr.connection.status",lH="app_shutdown",pH="normal_closure",_H="timeout",EH="signalr.transport",TH="long_polling",SH="server_sent_events",fH="web_sockets",dH="url.fragment",AH="url.full",vH="url.path",OH="url.query",mH="url.scheme",hH="user_agent.original"});var NH,RH,yH,PH,MH,gH,LH,IH,CH,xH,bH,UH,DH,VH,wH,BH,GH,HH,kH,YH,FH,KH,jH,qH,WH,zH,JH,XH,$H,QH,ZH,RA=d(()=>{NH="aspnetcore.diagnostics.exceptions",RH="aspnetcore.rate_limiting.active_request_leases",yH="aspnetcore.rate_limiting.queued_requests",PH="aspnetcore.rate_limiting.request.time_in_queue",MH="aspnetcore.rate_limiting.request_lease.duration",gH="aspnetcore.rate_limiting.requests",LH="aspnetcore.routing.match_attempts",IH="http.client.request.duration",CH="http.server.request.duration",xH="jvm.class.count",bH="jvm.class.loaded",UH="jvm.class.unloaded",DH="jvm.cpu.count",VH="jvm.cpu.recent_utilization",wH="jvm.cpu.time",BH="jvm.gc.duration",GH="jvm.memory.committed",HH="jvm.memory.limit",kH="jvm.memory.used",YH="jvm.memory.used_after_last_gc",FH="jvm.thread.count",KH="kestrel.active_connections",jH="kestrel.active_tls_handshakes",qH="kestrel.connection.duration",WH="kestrel.queued_connections",zH="kestrel.queued_requests",JH="kestrel.rejected_connections",XH="kestrel.tls_handshake.duration",$H="kestrel.upgraded_connections",QH="signalr.server.active_connections",ZH="signalr.server.connection.duration"});var yA={};Ot(yA,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>FB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>KB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>jB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>qB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>hB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>NB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>RB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>yB,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>$B,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>QB,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>YB,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>kB,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>WB,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>mB,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>zB,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>JB,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>XB,ATTR_CLIENT_ADDRESS:()=>ZB,ATTR_CLIENT_PORT:()=>eG,ATTR_ERROR_TYPE:()=>tG,ATTR_EXCEPTION_ESCAPED:()=>nG,ATTR_EXCEPTION_MESSAGE:()=>oG,ATTR_EXCEPTION_STACKTRACE:()=>iG,ATTR_EXCEPTION_TYPE:()=>aG,ATTR_HTTP_REQUEST_HEADER:()=>uG,ATTR_HTTP_REQUEST_METHOD:()=>sG,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>vG,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>OG,ATTR_HTTP_RESPONSE_HEADER:()=>mG,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>hG,ATTR_HTTP_ROUTE:()=>NG,ATTR_JVM_GC_ACTION:()=>RG,ATTR_JVM_GC_NAME:()=>yG,ATTR_JVM_MEMORY_POOL_NAME:()=>PG,ATTR_JVM_MEMORY_TYPE:()=>MG,ATTR_JVM_THREAD_DAEMON:()=>IG,ATTR_JVM_THREAD_STATE:()=>CG,ATTR_NETWORK_LOCAL_ADDRESS:()=>BG,ATTR_NETWORK_LOCAL_PORT:()=>GG,ATTR_NETWORK_PEER_ADDRESS:()=>HG,ATTR_NETWORK_PEER_PORT:()=>kG,ATTR_NETWORK_PROTOCOL_NAME:()=>YG,ATTR_NETWORK_PROTOCOL_VERSION:()=>FG,ATTR_NETWORK_TRANSPORT:()=>KG,ATTR_NETWORK_TYPE:()=>XG,ATTR_OTEL_SCOPE_NAME:()=>ZG,ATTR_OTEL_SCOPE_VERSION:()=>eH,ATTR_OTEL_STATUS_CODE:()=>tH,ATTR_OTEL_STATUS_DESCRIPTION:()=>oH,ATTR_SERVER_ADDRESS:()=>iH,ATTR_SERVER_PORT:()=>aH,ATTR_SERVICE_NAME:()=>uH,ATTR_SERVICE_VERSION:()=>sH,ATTR_SIGNALR_CONNECTION_STATUS:()=>cH,ATTR_SIGNALR_TRANSPORT:()=>EH,ATTR_TELEMETRY_SDK_LANGUAGE:()=>PB,ATTR_TELEMETRY_SDK_NAME:()=>GB,ATTR_TELEMETRY_SDK_VERSION:()=>HB,ATTR_URL_FRAGMENT:()=>dH,ATTR_URL_FULL:()=>AH,ATTR_URL_PATH:()=>vH,ATTR_URL_QUERY:()=>OH,ATTR_URL_SCHEME:()=>mH,ATTR_USER_AGENT_ORIGINAL:()=>hH,AWSECSLAUNCHTYPEVALUES_EC2:()=>k1,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Y1,AwsEcsLaunchtypeValues:()=>F1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>N1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>R1,CLOUDPLATFORMVALUES_AWS_EC2:()=>y1,CLOUDPLATFORMVALUES_AWS_ECS:()=>P1,CLOUDPLATFORMVALUES_AWS_EKS:()=>M1,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>L1,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>g1,CLOUDPLATFORMVALUES_AZURE_AKS:()=>x1,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>U1,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>C1,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>b1,CLOUDPLATFORMVALUES_AZURE_VM:()=>I1,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>G1,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>B1,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>V1,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>D1,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>w1,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>A1,CLOUDPROVIDERVALUES_AWS:()=>v1,CLOUDPROVIDERVALUES_AZURE:()=>O1,CLOUDPROVIDERVALUES_GCP:()=>m1,CloudPlatformValues:()=>H1,CloudProviderValues:()=>h1,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>rV,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>lV,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>nV,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>cV,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>iV,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>_V,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>aV,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>oV,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>pV,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>sV,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>uV,DBSYSTEMVALUES_ADABAS:()=>yD,DBSYSTEMVALUES_CACHE:()=>RD,DBSYSTEMVALUES_CASSANDRA:()=>YD,DBSYSTEMVALUES_CLOUDSCAPE:()=>fD,DBSYSTEMVALUES_COCKROACHDB:()=>eV,DBSYSTEMVALUES_COLDFUSION:()=>kD,DBSYSTEMVALUES_COSMOSDB:()=>zD,DBSYSTEMVALUES_COUCHBASE:()=>qD,DBSYSTEMVALUES_COUCHDB:()=>WD,DBSYSTEMVALUES_DB2:()=>_D,DBSYSTEMVALUES_DERBY:()=>MD,DBSYSTEMVALUES_DYNAMODB:()=>JD,DBSYSTEMVALUES_EDB:()=>ND,DBSYSTEMVALUES_ELASTICSEARCH:()=>QD,DBSYSTEMVALUES_FILEMAKER:()=>gD,DBSYSTEMVALUES_FIREBIRD:()=>PD,DBSYSTEMVALUES_FIRSTSQL:()=>hD,DBSYSTEMVALUES_GEODE:()=>$D,DBSYSTEMVALUES_H2:()=>HD,DBSYSTEMVALUES_HANADB:()=>OD,DBSYSTEMVALUES_HBASE:()=>FD,DBSYSTEMVALUES_HIVE:()=>SD,DBSYSTEMVALUES_HSQLDB:()=>dD,DBSYSTEMVALUES_INFORMIX:()=>LD,DBSYSTEMVALUES_INGRES:()=>mD,DBSYSTEMVALUES_INSTANTDB:()=>ID,DBSYSTEMVALUES_INTERBASE:()=>CD,DBSYSTEMVALUES_MARIADB:()=>xD,DBSYSTEMVALUES_MAXDB:()=>vD,DBSYSTEMVALUES_MEMCACHED:()=>ZD,DBSYSTEMVALUES_MONGODB:()=>KD,DBSYSTEMVALUES_MSSQL:()=>cD,DBSYSTEMVALUES_MYSQL:()=>lD,DBSYSTEMVALUES_NEO4J:()=>XD,DBSYSTEMVALUES_NETEZZA:()=>bD,DBSYSTEMVALUES_ORACLE:()=>pD,DBSYSTEMVALUES_OTHER_SQL:()=>sD,DBSYSTEMVALUES_PERVASIVE:()=>UD,DBSYSTEMVALUES_POINTBASE:()=>DD,DBSYSTEMVALUES_POSTGRESQL:()=>ED,DBSYSTEMVALUES_PROGRESS:()=>AD,DBSYSTEMVALUES_REDIS:()=>jD,DBSYSTEMVALUES_REDSHIFT:()=>TD,DBSYSTEMVALUES_SQLITE:()=>VD,DBSYSTEMVALUES_SYBASE:()=>wD,DBSYSTEMVALUES_TERADATA:()=>BD,DBSYSTEMVALUES_VERTICA:()=>GD,DbCassandraConsistencyLevelValues:()=>EV,DbSystemValues:()=>tV,ERROR_TYPE_VALUE_OTHER:()=>rG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>hV,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>mV,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>OV,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>RV,FAASINVOKEDPROVIDERVALUES_AWS:()=>yV,FAASINVOKEDPROVIDERVALUES_AZURE:()=>PV,FAASINVOKEDPROVIDERVALUES_GCP:()=>MV,FAASTRIGGERVALUES_DATASOURCE:()=>TV,FAASTRIGGERVALUES_HTTP:()=>SV,FAASTRIGGERVALUES_OTHER:()=>AV,FAASTRIGGERVALUES_PUBSUB:()=>fV,FAASTRIGGERVALUES_TIMER:()=>dV,FaasDocumentOperationValues:()=>NV,FaasInvokedProviderValues:()=>gV,FaasTriggerValues:()=>vV,HOSTARCHVALUES_AMD64:()=>K1,HOSTARCHVALUES_ARM32:()=>j1,HOSTARCHVALUES_ARM64:()=>q1,HOSTARCHVALUES_IA64:()=>W1,HOSTARCHVALUES_PPC32:()=>z1,HOSTARCHVALUES_PPC64:()=>J1,HOSTARCHVALUES_X86:()=>X1,HTTPFLAVORVALUES_HTTP_1_0:()=>p0,HTTPFLAVORVALUES_HTTP_1_1:()=>_0,HTTPFLAVORVALUES_HTTP_2_0:()=>E0,HTTPFLAVORVALUES_QUIC:()=>S0,HTTPFLAVORVALUES_SPDY:()=>T0,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>lG,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>pG,HTTP_REQUEST_METHOD_VALUE_GET:()=>_G,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>EG,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>TG,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>cG,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>SG,HTTP_REQUEST_METHOD_VALUE_POST:()=>fG,HTTP_REQUEST_METHOD_VALUE_PUT:()=>dG,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>AG,HostArchValues:()=>$1,HttpFlavorValues:()=>f0,JVM_MEMORY_TYPE_VALUE_HEAP:()=>gG,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>LG,JVM_THREAD_STATE_VALUE_BLOCKED:()=>xG,JVM_THREAD_STATE_VALUE_NEW:()=>bG,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>UG,JVM_THREAD_STATE_VALUE_TERMINATED:()=>DG,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>VG,JVM_THREAD_STATE_VALUE_WAITING:()=>wG,MESSAGETYPEVALUES_RECEIVED:()=>Y0,MESSAGETYPEVALUES_SENT:()=>k0,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>d0,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>A0,MESSAGINGOPERATIONVALUES_PROCESS:()=>m0,MESSAGINGOPERATIONVALUES_RECEIVE:()=>O0,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>NH,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>RH,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>yH,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>gH,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>MH,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>PH,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>LH,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>IH,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>CH,METRIC_JVM_CLASS_COUNT:()=>xH,METRIC_JVM_CLASS_LOADED:()=>bH,METRIC_JVM_CLASS_UNLOADED:()=>UH,METRIC_JVM_CPU_COUNT:()=>DH,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>VH,METRIC_JVM_CPU_TIME:()=>wH,METRIC_JVM_GC_DURATION:()=>BH,METRIC_JVM_MEMORY_COMMITTED:()=>GH,METRIC_JVM_MEMORY_LIMIT:()=>HH,METRIC_JVM_MEMORY_USED:()=>kH,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>YH,METRIC_JVM_THREAD_COUNT:()=>FH,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>KH,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>jH,METRIC_KESTREL_CONNECTION_DURATION:()=>qH,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>WH,METRIC_KESTREL_QUEUED_REQUESTS:()=>zH,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>JH,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>XH,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>$H,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>QH,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>ZH,MessageTypeValues:()=>F0,MessagingDestinationKindValues:()=>v0,MessagingOperationValues:()=>h0,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>qV,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>JV,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>KV,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>r0,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>WV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>zV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>e0,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>FV,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>o0,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>XV,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>QV,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>n0,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>$V,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>ZV,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>a0,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>t0,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>c0,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>u0,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>s0,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>i0,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>jV,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>GV,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>HV,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>kV,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>wV,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>BV,NETTRANSPORTVALUES_INPROC:()=>UV,NETTRANSPORTVALUES_IP:()=>CV,NETTRANSPORTVALUES_IP_TCP:()=>LV,NETTRANSPORTVALUES_IP_UDP:()=>IV,NETTRANSPORTVALUES_OTHER:()=>DV,NETTRANSPORTVALUES_PIPE:()=>bV,NETTRANSPORTVALUES_UNIX:()=>xV,NETWORK_TRANSPORT_VALUE_PIPE:()=>jG,NETWORK_TRANSPORT_VALUE_QUIC:()=>qG,NETWORK_TRANSPORT_VALUE_TCP:()=>WG,NETWORK_TRANSPORT_VALUE_UDP:()=>zG,NETWORK_TRANSPORT_VALUE_UNIX:()=>JG,NETWORK_TYPE_VALUE_IPV4:()=>$G,NETWORK_TYPE_VALUE_IPV6:()=>QG,NetHostConnectionSubtypeValues:()=>l0,NetHostConnectionTypeValues:()=>YV,NetTransportValues:()=>VV,OSTYPEVALUES_AIX:()=>aB,OSTYPEVALUES_DARWIN:()=>eB,OSTYPEVALUES_DRAGONFLYBSD:()=>oB,OSTYPEVALUES_FREEBSD:()=>tB,OSTYPEVALUES_HPUX:()=>iB,OSTYPEVALUES_LINUX:()=>Z1,OSTYPEVALUES_NETBSD:()=>rB,OSTYPEVALUES_OPENBSD:()=>nB,OSTYPEVALUES_SOLARIS:()=>uB,OSTYPEVALUES_WINDOWS:()=>Q1,OSTYPEVALUES_Z_OS:()=>sB,OTEL_STATUS_CODE_VALUE_ERROR:()=>rH,OTEL_STATUS_CODE_VALUE_OK:()=>nH,OsTypeValues:()=>cB,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>b0,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>L0,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>R0,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>B0,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>M0,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>x0,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>V0,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>P0,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>g0,RPCGRPCSTATUSCODEVALUES_OK:()=>N0,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>U0,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>I0,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>C0,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>G0,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>w0,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>D0,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>y0,RpcGrpcStatusCodeValues:()=>H0,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>fU,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>gU,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>EU,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>cU,SEMATTRS_AWS_DYNAMODB_COUNT:()=>PU,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>mU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>vU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>LU,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>dU,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>lU,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>SU,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>OU,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>TU,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>pU,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>_U,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>MU,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>NU,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>RU,SEMATTRS_AWS_DYNAMODB_SELECT:()=>AU,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>hU,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>sU,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>yU,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>kx,SEMATTRS_CODE_FILEPATH:()=>jb,SEMATTRS_CODE_FUNCTION:()=>Fb,SEMATTRS_CODE_LINENO:()=>qb,SEMATTRS_CODE_NAMESPACE:()=>Kb,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Qx,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>nb,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>rb,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>eb,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Xx,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>$x,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>tb,SEMATTRS_DB_CASSANDRA_TABLE:()=>Zx,SEMATTRS_DB_CONNECTION_STRING:()=>Fx,SEMATTRS_DB_HBASE_NAMESPACE:()=>ob,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>jx,SEMATTRS_DB_MONGODB_COLLECTION:()=>ab,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Jx,SEMATTRS_DB_NAME:()=>qx,SEMATTRS_DB_OPERATION:()=>zx,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>ib,SEMATTRS_DB_SQL_TABLE:()=>ub,SEMATTRS_DB_STATEMENT:()=>Wx,SEMATTRS_DB_SYSTEM:()=>Yx,SEMATTRS_DB_USER:()=>Kx,SEMATTRS_ENDUSER_ID:()=>Bb,SEMATTRS_ENDUSER_ROLE:()=>Gb,SEMATTRS_ENDUSER_SCOPE:()=>Hb,SEMATTRS_EXCEPTION_ESCAPED:()=>pb,SEMATTRS_EXCEPTION_MESSAGE:()=>cb,SEMATTRS_EXCEPTION_STACKTRACE:()=>lb,SEMATTRS_EXCEPTION_TYPE:()=>sb,SEMATTRS_FAAS_COLDSTART:()=>Ob,SEMATTRS_FAAS_CRON:()=>vb,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Tb,SEMATTRS_FAAS_DOCUMENT_NAME:()=>db,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Sb,SEMATTRS_FAAS_DOCUMENT_TIME:()=>fb,SEMATTRS_FAAS_EXECUTION:()=>Eb,SEMATTRS_FAAS_INVOKED_NAME:()=>mb,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>hb,SEMATTRS_FAAS_INVOKED_REGION:()=>Nb,SEMATTRS_FAAS_TIME:()=>Ab,SEMATTRS_FAAS_TRIGGER:()=>_b,SEMATTRS_HTTP_CLIENT_IP:()=>uU,SEMATTRS_HTTP_FLAVOR:()=>Zb,SEMATTRS_HTTP_HOST:()=>Xb,SEMATTRS_HTTP_METHOD:()=>Wb,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>tU,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>rU,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>nU,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>oU,SEMATTRS_HTTP_ROUTE:()=>aU,SEMATTRS_HTTP_SCHEME:()=>$b,SEMATTRS_HTTP_SERVER_NAME:()=>iU,SEMATTRS_HTTP_STATUS_CODE:()=>Qb,SEMATTRS_HTTP_TARGET:()=>Jb,SEMATTRS_HTTP_URL:()=>zb,SEMATTRS_HTTP_USER_AGENT:()=>eU,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>iD,SEMATTRS_MESSAGE_ID:()=>oD,SEMATTRS_MESSAGE_TYPE:()=>nD,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>aD,SEMATTRS_MESSAGING_CONSUMER_ID:()=>YU,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>BU,SEMATTRS_MESSAGING_DESTINATION:()=>CU,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>xU,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>qU,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>jU,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>KU,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>WU,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>zU,SEMATTRS_MESSAGING_MESSAGE_ID:()=>wU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>HU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>GU,SEMATTRS_MESSAGING_OPERATION:()=>kU,SEMATTRS_MESSAGING_PROTOCOL:()=>UU,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>DU,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>FU,SEMATTRS_MESSAGING_SYSTEM:()=>IU,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>bU,SEMATTRS_MESSAGING_URL:()=>VU,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Vb,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Ub,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Db,SEMATTRS_NET_HOST_CARRIER_NAME:()=>bb,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>xb,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Cb,SEMATTRS_NET_HOST_IP:()=>gb,SEMATTRS_NET_HOST_NAME:()=>Ib,SEMATTRS_NET_HOST_PORT:()=>Lb,SEMATTRS_NET_PEER_IP:()=>yb,SEMATTRS_NET_PEER_NAME:()=>Mb,SEMATTRS_NET_PEER_PORT:()=>Pb,SEMATTRS_NET_TRANSPORT:()=>Rb,SEMATTRS_PEER_SERVICE:()=>wb,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>QU,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>tD,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>rD,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>eD,SEMATTRS_RPC_JSONRPC_VERSION:()=>ZU,SEMATTRS_RPC_METHOD:()=>$U,SEMATTRS_RPC_SERVICE:()=>XU,SEMATTRS_RPC_SYSTEM:()=>JU,SEMATTRS_THREAD_ID:()=>kb,SEMATTRS_THREAD_NAME:()=>Yb,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>X0,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>J0,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>$0,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Q0,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Z0,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>ew,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>tw,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>nw,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>rw,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>iw,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>ow,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>j0,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>W0,SEMRESATTRS_CLOUD_PLATFORM:()=>z0,SEMRESATTRS_CLOUD_PROVIDER:()=>K0,SEMRESATTRS_CLOUD_REGION:()=>q0,SEMRESATTRS_CONTAINER_ID:()=>uw,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>cw,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>lw,SEMRESATTRS_CONTAINER_NAME:()=>aw,SEMRESATTRS_CONTAINER_RUNTIME:()=>sw,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>pw,SEMRESATTRS_DEVICE_ID:()=>_w,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Ew,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Tw,SEMRESATTRS_FAAS_ID:()=>fw,SEMRESATTRS_FAAS_INSTANCE:()=>Aw,SEMRESATTRS_FAAS_MAX_MEMORY:()=>vw,SEMRESATTRS_FAAS_NAME:()=>Sw,SEMRESATTRS_FAAS_VERSION:()=>dw,SEMRESATTRS_HOST_ARCH:()=>Nw,SEMRESATTRS_HOST_ID:()=>Ow,SEMRESATTRS_HOST_IMAGE_ID:()=>yw,SEMRESATTRS_HOST_IMAGE_NAME:()=>Rw,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Pw,SEMRESATTRS_HOST_NAME:()=>mw,SEMRESATTRS_HOST_TYPE:()=>hw,SEMRESATTRS_K8S_CLUSTER_NAME:()=>Mw,SEMRESATTRS_K8S_CONTAINER_NAME:()=>bw,SEMRESATTRS_K8S_CRONJOB_NAME:()=>jw,SEMRESATTRS_K8S_CRONJOB_UID:()=>Kw,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>kw,SEMRESATTRS_K8S_DAEMONSET_UID:()=>Hw,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>ww,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>Vw,SEMRESATTRS_K8S_JOB_NAME:()=>Fw,SEMRESATTRS_K8S_JOB_UID:()=>Yw,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Iw,SEMRESATTRS_K8S_NODE_NAME:()=>gw,SEMRESATTRS_K8S_NODE_UID:()=>Lw,SEMRESATTRS_K8S_POD_NAME:()=>xw,SEMRESATTRS_K8S_POD_UID:()=>Cw,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Dw,SEMRESATTRS_K8S_REPLICASET_UID:()=>Uw,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Gw,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Bw,SEMRESATTRS_OS_DESCRIPTION:()=>Ww,SEMRESATTRS_OS_NAME:()=>zw,SEMRESATTRS_OS_TYPE:()=>qw,SEMRESATTRS_OS_VERSION:()=>Jw,SEMRESATTRS_PROCESS_COMMAND:()=>Zw,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>t1,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>e1,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>$w,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Qw,SEMRESATTRS_PROCESS_OWNER:()=>r1,SEMRESATTRS_PROCESS_PID:()=>Xw,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>i1,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>n1,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>o1,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>s1,SEMRESATTRS_SERVICE_NAME:()=>a1,SEMRESATTRS_SERVICE_NAMESPACE:()=>u1,SEMRESATTRS_SERVICE_VERSION:()=>c1,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>E1,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>p1,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>l1,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>_1,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>f1,SEMRESATTRS_WEBENGINE_NAME:()=>T1,SEMRESATTRS_WEBENGINE_VERSION:()=>S1,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>lH,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>pH,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>_H,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>TH,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>SH,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>fH,SemanticAttributes:()=>uD,SemanticResourceAttributes:()=>d1,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>lB,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>pB,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>_B,TELEMETRYSDKLANGUAGEVALUES_GO:()=>EB,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>TB,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>SB,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>fB,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>dB,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>AB,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>vB,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>MB,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>gB,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>LB,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>IB,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>CB,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>xB,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>bB,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>UB,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>DB,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>VB,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>wB,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>BB,TelemetrySdkLanguageValues:()=>OB});var PA=d(()=>{JS();hA();NA();RA()});var MA=S(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.SDK_INFO=void 0;var ek=qa(),hr=(PA(),N(yA));gn.SDK_INFO={[hr.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[hr.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[hr.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:hr.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[hr.SEMRESATTRS_TELEMETRY_SDK_VERSION]:ek.VERSION}});var gA=S(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.unrefTimer=void 0;function tk(o){o.unref()}Ln.unrefTimer=tk});var IA=S(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.unrefTimer=Y.SDK_INFO=Y.otperformance=Y.RandomIdGenerator=Y.hexToBase64=Y._globalThis=Y.getEnv=Y.getEnvWithoutDefaults=void 0;var LA=$l();Object.defineProperty(Y,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return LA.getEnvWithoutDefaults}});Object.defineProperty(Y,"getEnv",{enumerable:!0,get:function(){return LA.getEnv}});var rk=Ql();Object.defineProperty(Y,"_globalThis",{enumerable:!0,get:function(){return rk._globalThis}});var nk=ep();Object.defineProperty(Y,"hexToBase64",{enumerable:!0,get:function(){return nk.hexToBase64}});var ok=np();Object.defineProperty(Y,"RandomIdGenerator",{enumerable:!0,get:function(){return ok.RandomIdGenerator}});var ik=op();Object.defineProperty(Y,"otperformance",{enumerable:!0,get:function(){return ik.otperformance}});var ak=MA();Object.defineProperty(Y,"SDK_INFO",{enumerable:!0,get:function(){return ak.SDK_INFO}});var uk=gA();Object.defineProperty(Y,"unrefTimer",{enumerable:!0,get:function(){return uk.unrefTimer}})});var za=S(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.unrefTimer=F.otperformance=F.hexToBase64=F.getEnvWithoutDefaults=F.getEnv=F._globalThis=F.SDK_INFO=F.RandomIdGenerator=void 0;var je=IA();Object.defineProperty(F,"RandomIdGenerator",{enumerable:!0,get:function(){return je.RandomIdGenerator}});Object.defineProperty(F,"SDK_INFO",{enumerable:!0,get:function(){return je.SDK_INFO}});Object.defineProperty(F,"_globalThis",{enumerable:!0,get:function(){return je._globalThis}});Object.defineProperty(F,"getEnv",{enumerable:!0,get:function(){return je.getEnv}});Object.defineProperty(F,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return je.getEnvWithoutDefaults}});Object.defineProperty(F,"hexToBase64",{enumerable:!0,get:function(){return je.hexToBase64}});Object.defineProperty(F,"otperformance",{enumerable:!0,get:function(){return je.otperformance}});Object.defineProperty(F,"unrefTimer",{enumerable:!0,get:function(){return je.unrefTimer}})});var UA=S(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.addHrTimes=L.isTimeInput=L.isTimeInputHrTime=L.hrTimeToMicroseconds=L.hrTimeToMilliseconds=L.hrTimeToNanoseconds=L.hrTimeToTimeStamp=L.hrTimeDuration=L.timeInputToHrTime=L.hrTime=L.getTimeOrigin=L.millisToHrTime=void 0;var Ja=za(),CA=9,sk=6,ck=Math.pow(10,sk),In=Math.pow(10,CA);function Nr(o){let r=o/1e3,i=Math.trunc(r),c=Math.round(o%1e3*ck);return[i,c]}L.millisToHrTime=Nr;function Xa(){let o=Ja.otperformance.timeOrigin;if(typeof o!="number"){let r=Ja.otperformance;o=r.timing&&r.timing.fetchStart}return o}L.getTimeOrigin=Xa;function xA(o){let r=Nr(Xa()),i=Nr(typeof o=="number"?o:Ja.otperformance.now());return bA(r,i)}L.hrTime=xA;function lk(o){if($a(o))return o;if(typeof o=="number")return o<Xa()?xA(o):Nr(o);if(o instanceof Date)return Nr(o.getTime());throw TypeError("Invalid input type")}L.timeInputToHrTime=lk;function pk(o,r){let i=r[0]-o[0],c=r[1]-o[1];return c<0&&(i-=1,c+=In),[i,c]}L.hrTimeDuration=pk;function _k(o){let r=CA,i=`${"0".repeat(r)}${o[1]}Z`,c=i.substring(i.length-r-1);return new Date(o[0]*1e3).toISOString().replace("000Z",c)}L.hrTimeToTimeStamp=_k;function Ek(o){return o[0]*In+o[1]}L.hrTimeToNanoseconds=Ek;function Tk(o){return o[0]*1e3+o[1]/1e6}L.hrTimeToMilliseconds=Tk;function Sk(o){return o[0]*1e6+o[1]/1e3}L.hrTimeToMicroseconds=Sk;function $a(o){return Array.isArray(o)&&o.length===2&&typeof o[0]=="number"&&typeof o[1]=="number"}L.isTimeInputHrTime=$a;function fk(o){return $a(o)||typeof o=="number"||o instanceof Date}L.isTimeInput=fk;function bA(o,r){let i=[o[0]+r[0],o[1]+r[1]];return i[1]>=In&&(i[1]-=In,i[0]+=1),i}L.addHrTimes=bA});var DA=S(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.ExportResultCode=void 0;var dk;(function(o){o[o.SUCCESS=0]="SUCCESS",o[o.FAILED=1]="FAILED"})(dk=Rr.ExportResultCode||(Rr.ExportResultCode={}))});var wA=S(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.CompositePropagator=void 0;var VA=(m(),N(y)),Qa=class{constructor(r={}){var i;this._propagators=(i=r.propagators)!==null&&i!==void 0?i:[],this._fields=Array.from(new Set(this._propagators.map(c=>typeof c.fields=="function"?c.fields():[]).reduce((c,a)=>c.concat(a),[])))}inject(r,i,c){for(let a of this._propagators)try{a.inject(r,i,c)}catch(u){VA.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${u.message}`)}}extract(r,i,c){return this._propagators.reduce((a,u)=>{try{return u.extract(a,i,c)}catch(t){VA.diag.warn(`Failed to extract with ${u.constructor.name}. Err: ${t.message}`)}return a},r)}fields(){return this._fields.slice()}};Cn.CompositePropagator=Qa});var BA=S(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.validateValue=gt.validateKey=void 0;var Za="[_0-9a-z-*/]",Ak=`[a-z]${Za}{0,255}`,vk=`[a-z0-9]${Za}{0,240}@[a-z]${Za}{0,13}`,Ok=new RegExp(`^(?:${Ak}|${vk})$`),mk=/^[ -~]{0,255}[!-~]$/,hk=/,|=/;function Nk(o){return Ok.test(o)}gt.validateKey=Nk;function Rk(o){return mk.test(o)&&!hk.test(o)}gt.validateValue=Rk});var tu=S(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.TraceState=void 0;var GA=BA(),HA=32,yk=512,kA=",",YA="=",eu=class o{constructor(r){this._internalState=new Map,r&&this._parse(r)}set(r,i){let c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c}unset(r){let i=this._clone();return i._internalState.delete(r),i}get(r){return this._internalState.get(r)}serialize(){return this._keys().reduce((r,i)=>(r.push(i+YA+this.get(i)),r),[]).join(kA)}_parse(r){r.length>yk||(this._internalState=r.split(kA).reverse().reduce((i,c)=>{let a=c.trim(),u=a.indexOf(YA);if(u!==-1){let t=a.slice(0,u),e=a.slice(u+1,c.length);(0,GA.validateKey)(t)&&(0,GA.validateValue)(e)&&i.set(t,e)}return i},new Map),this._internalState.size>HA&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,HA))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let r=new o;return r._internalState=new Map(this._internalState),r}};xn.TraceState=eu});var KA=S($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.W3CTraceContextPropagator=$.parseTraceParent=$.TRACE_STATE_HEADER=$.TRACE_PARENT_HEADER=void 0;var bn=(m(),N(y)),Pk=Or(),Mk=tu();$.TRACE_PARENT_HEADER="traceparent";$.TRACE_STATE_HEADER="tracestate";var gk="00",Lk="(?!ff)[\\da-f]{2}",Ik="(?![0]{32})[\\da-f]{32}",Ck="(?![0]{16})[\\da-f]{16}",xk="[\\da-f]{2}",bk=new RegExp(`^\\s?(${Lk})-(${Ik})-(${Ck})-(${xk})(-.*)?\\s?$`);function FA(o){let r=bk.exec(o);return!r||r[1]==="00"&&r[5]?null:{traceId:r[2],spanId:r[3],traceFlags:parseInt(r[4],16)}}$.parseTraceParent=FA;var ru=class{inject(r,i,c){let a=bn.trace.getSpanContext(r);if(!a||(0,Pk.isTracingSuppressed)(r)||!(0,bn.isSpanContextValid)(a))return;let u=`${gk}-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||bn.TraceFlags.NONE).toString(16)}`;c.set(i,$.TRACE_PARENT_HEADER,u),a.traceState&&c.set(i,$.TRACE_STATE_HEADER,a.traceState.serialize())}extract(r,i,c){let a=c.get(i,$.TRACE_PARENT_HEADER);if(!a)return r;let u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return r;let t=FA(u);if(!t)return r;t.isRemote=!0;let e=c.get(i,$.TRACE_STATE_HEADER);if(e){let n=Array.isArray(e)?e.join(","):e;t.traceState=new Mk.TraceState(typeof n=="string"?n:void 0)}return bn.trace.setSpanContext(r,t)}fields(){return[$.TRACE_PARENT_HEADER,$.TRACE_STATE_HEADER]}};$.W3CTraceContextPropagator=ru});var jA=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.getRPCMetadata=Ee.deleteRPCMetadata=Ee.setRPCMetadata=Ee.RPCType=void 0;var Uk=(m(),N(y)),nu=(0,Uk.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Dk;(function(o){o.HTTP="http"})(Dk=Ee.RPCType||(Ee.RPCType={}));function Vk(o,r){return o.setValue(nu,r)}Ee.setRPCMetadata=Vk;function wk(o){return o.deleteValue(nu)}Ee.deleteRPCMetadata=wk;function Bk(o){return o.getValue(nu)}Ee.getRPCMetadata=Bk});var iu=S(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.AlwaysOffSampler=void 0;var Gk=(m(),N(y)),ou=class{shouldSample(){return{decision:Gk.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Un.AlwaysOffSampler=ou});var uu=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.AlwaysOnSampler=void 0;var Hk=(m(),N(y)),au=class{shouldSample(){return{decision:Hk.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Dn.AlwaysOnSampler=au});var WA=S(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ParentBasedSampler=void 0;var Vn=(m(),N(y)),kk=Ha(),qA=iu(),su=uu(),cu=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,kk.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new su.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new su.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new qA.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new su.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new qA.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=Vn.trace.getSpanContext(r);return!e||!(0,Vn.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&Vn.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&Vn.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};wn.ParentBasedSampler=cu});var zA=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.TraceIdRatioBasedSampler=void 0;var lu=(m(),N(y)),pu=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,lu.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?lu.SamplingDecision.RECORD_AND_SAMPLED:lu.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};Bn.TraceIdRatioBasedSampler=pu});var ZA=S(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.isPlainObject=void 0;var Yk="[object Object]",Fk="[object Null]",Kk="[object Undefined]",jk=Function.prototype,JA=jk.toString,qk=JA.call(Object),Wk=zk(Object.getPrototypeOf,Object),XA=Object.prototype,$A=XA.hasOwnProperty,it=Symbol?Symbol.toStringTag:void 0,QA=XA.toString;function zk(o,r){return function(i){return o(r(i))}}function Jk(o){if(!Xk(o)||$k(o)!==Yk)return!1;let r=Wk(o);if(r===null)return!0;let i=$A.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&JA.call(i)===qk}Gn.isPlainObject=Jk;function Xk(o){return o!=null&&typeof o=="object"}function $k(o){return o==null?o===void 0?Kk:Fk:it&&it in Object(o)?Qk(o):Zk(o)}function Qk(o){let r=$A.call(o,it),i=o[it],c=!1;try{o[it]=void 0,c=!0}catch{}let a=QA.call(o);return c&&(r?o[it]=i:delete o[it]),a}function Zk(o){return QA.call(o)}});var ov=S(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.merge=void 0;var ev=ZA(),eY=20;function tY(...o){let r=o.shift(),i=new WeakMap;for(;o.length>0;)r=rv(r,o.shift(),0,i);return r}Yn.merge=tY;function _u(o){return kn(o)?o.slice():o}function rv(o,r,i=0,c){let a;if(!(i>eY)){if(i++,Hn(o)||Hn(r)||nv(r))a=_u(r);else if(kn(o)){if(a=o.slice(),kn(r))for(let u=0,t=r.length;u<t;u++)a.push(_u(r[u]));else if(yr(r)){let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t];a[n]=_u(r[n])}}}else if(yr(o))if(yr(r)){if(!rY(o,r))return r;a=Object.assign({},o);let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t],s=r[n];if(Hn(s))typeof s>"u"?delete a[n]:a[n]=s;else{let l=a[n],E=s;if(tv(o,n,c)||tv(r,n,c))delete a[n];else{if(yr(l)&&yr(E)){let O=c.get(l)||[],g=c.get(E)||[];O.push({obj:o,key:n}),g.push({obj:r,key:n}),c.set(l,O),c.set(E,g)}a[n]=rv(a[n],s,i,c)}}}}else a=r;return a}}function tv(o,r,i){let c=i.get(o[r])||[];for(let a=0,u=c.length;a<u;a++){let t=c[a];if(t.key===r&&t.obj===o)return!0}return!1}function kn(o){return Array.isArray(o)}function nv(o){return typeof o=="function"}function yr(o){return!Hn(o)&&!kn(o)&&!nv(o)&&typeof o=="object"}function Hn(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o>"u"||o instanceof Date||o instanceof RegExp||o===null}function rY(o,r){return!(!(0,ev.isPlainObject)(o)||!(0,ev.isPlainObject)(r))}});var iv=S(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.callWithTimeout=Lt.TimeoutError=void 0;var Fn=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};Lt.TimeoutError=Fn;function nY(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new Fn("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}Lt.callWithTimeout=nY});var uv=S(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isUrlIgnored=It.urlMatches=void 0;function av(o,r){return typeof r=="string"?o===r:!!o.match(r)}It.urlMatches=av;function oY(o,r){if(!r)return!1;for(let i of r)if(av(o,i))return!0;return!1}It.isUrlIgnored=oY});var sv=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.isWrapped=void 0;function iY(o){return typeof o=="function"&&typeof o.__original=="function"&&typeof o.__unwrap=="function"&&o.__wrapped===!0}Kn.isWrapped=iY});var cv=S(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.Deferred=void 0;var Eu=class{constructor(){this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i})}get promise(){return this._promise}resolve(r){this._resolve(r)}reject(r){this._reject(r)}};jn.Deferred=Eu});var lv=S(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.BindOnceFuture=void 0;var aY=cv(),Tu=class{constructor(r,i){this._callback=r,this._that=i,this._isCalled=!1,this._deferred=new aY.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...r){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...r)).then(i=>this._deferred.resolve(i),i=>this._deferred.reject(i))}catch(i){this._deferred.reject(i)}}return this._deferred.promise}};qn.BindOnceFuture=Tu});var _v=S(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn._export=void 0;var pv=(m(),N(y)),uY=Or();function sY(o,r){return new Promise(i=>{pv.context.with((0,uY.suppressTracing)(pv.context.active()),()=>{o.export(r,c=>{i(c)})})})}Wn._export=sY});var x=S(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=f.DEFAULT_ATTRIBUTE_COUNT_LIMIT=f.TraceState=f.unsuppressTracing=f.suppressTracing=f.isTracingSuppressed=f.TraceIdRatioBasedSampler=f.ParentBasedSampler=f.AlwaysOnSampler=f.AlwaysOffSampler=f.setRPCMetadata=f.getRPCMetadata=f.deleteRPCMetadata=f.RPCType=f.parseTraceParent=f.W3CTraceContextPropagator=f.TRACE_STATE_HEADER=f.TRACE_PARENT_HEADER=f.CompositePropagator=f.unrefTimer=f.otperformance=f.hexToBase64=f.getEnvWithoutDefaults=f.getEnv=f._globalThis=f.SDK_INFO=f.RandomIdGenerator=f.baggageUtils=f.ExportResultCode=f.hexToBinary=f.timeInputToHrTime=f.millisToHrTime=f.isTimeInputHrTime=f.isTimeInput=f.hrTimeToTimeStamp=f.hrTimeToNanoseconds=f.hrTimeToMilliseconds=f.hrTimeToMicroseconds=f.hrTimeDuration=f.hrTime=f.getTimeOrigin=f.addHrTimes=f.loggingErrorHandler=f.setGlobalErrorHandler=f.globalErrorHandler=f.sanitizeAttributes=f.isAttributeValue=f.isAttributeKey=f.AnchoredClock=f.W3CBaggagePropagator=void 0;f.internal=f.VERSION=f.BindOnceFuture=f.isWrapped=f.urlMatches=f.isUrlIgnored=f.callWithTimeout=f.TimeoutError=f.TracesSamplerValues=f.merge=f.parseEnvironment=f.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=f.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=f.DEFAULT_ENVIRONMENT=void 0;var cY=Fl();Object.defineProperty(f,"W3CBaggagePropagator",{enumerable:!0,get:function(){return cY.W3CBaggagePropagator}});var lY=Kl();Object.defineProperty(f,"AnchoredClock",{enumerable:!0,get:function(){return lY.AnchoredClock}});var Su=Jl();Object.defineProperty(f,"isAttributeKey",{enumerable:!0,get:function(){return Su.isAttributeKey}});Object.defineProperty(f,"isAttributeValue",{enumerable:!0,get:function(){return Su.isAttributeValue}});Object.defineProperty(f,"sanitizeAttributes",{enumerable:!0,get:function(){return Su.sanitizeAttributes}});var Ev=Ha();Object.defineProperty(f,"globalErrorHandler",{enumerable:!0,get:function(){return Ev.globalErrorHandler}});Object.defineProperty(f,"setGlobalErrorHandler",{enumerable:!0,get:function(){return Ev.setGlobalErrorHandler}});var pY=Ga();Object.defineProperty(f,"loggingErrorHandler",{enumerable:!0,get:function(){return pY.loggingErrorHandler}});var se=UA();Object.defineProperty(f,"addHrTimes",{enumerable:!0,get:function(){return se.addHrTimes}});Object.defineProperty(f,"getTimeOrigin",{enumerable:!0,get:function(){return se.getTimeOrigin}});Object.defineProperty(f,"hrTime",{enumerable:!0,get:function(){return se.hrTime}});Object.defineProperty(f,"hrTimeDuration",{enumerable:!0,get:function(){return se.hrTimeDuration}});Object.defineProperty(f,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return se.hrTimeToMicroseconds}});Object.defineProperty(f,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return se.hrTimeToMilliseconds}});Object.defineProperty(f,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return se.hrTimeToNanoseconds}});Object.defineProperty(f,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return se.hrTimeToTimeStamp}});Object.defineProperty(f,"isTimeInput",{enumerable:!0,get:function(){return se.isTimeInput}});Object.defineProperty(f,"isTimeInputHrTime",{enumerable:!0,get:function(){return se.isTimeInputHrTime}});Object.defineProperty(f,"millisToHrTime",{enumerable:!0,get:function(){return se.millisToHrTime}});Object.defineProperty(f,"timeInputToHrTime",{enumerable:!0,get:function(){return se.timeInputToHrTime}});var _Y=Ka();Object.defineProperty(f,"hexToBinary",{enumerable:!0,get:function(){return _Y.hexToBinary}});var EY=DA();Object.defineProperty(f,"ExportResultCode",{enumerable:!0,get:function(){return EY.ExportResultCode}});var zn=Ua();f.baggageUtils={getKeyPairs:zn.getKeyPairs,serializeKeyPairs:zn.serializeKeyPairs,parseKeyPairsIntoRecord:zn.parseKeyPairsIntoRecord,parsePairKeyValue:zn.parsePairKeyValue};var qe=za();Object.defineProperty(f,"RandomIdGenerator",{enumerable:!0,get:function(){return qe.RandomIdGenerator}});Object.defineProperty(f,"SDK_INFO",{enumerable:!0,get:function(){return qe.SDK_INFO}});Object.defineProperty(f,"_globalThis",{enumerable:!0,get:function(){return qe._globalThis}});Object.defineProperty(f,"getEnv",{enumerable:!0,get:function(){return qe.getEnv}});Object.defineProperty(f,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return qe.getEnvWithoutDefaults}});Object.defineProperty(f,"hexToBase64",{enumerable:!0,get:function(){return qe.hexToBase64}});Object.defineProperty(f,"otperformance",{enumerable:!0,get:function(){return qe.otperformance}});Object.defineProperty(f,"unrefTimer",{enumerable:!0,get:function(){return qe.unrefTimer}});var TY=wA();Object.defineProperty(f,"CompositePropagator",{enumerable:!0,get:function(){return TY.CompositePropagator}});var Jn=KA();Object.defineProperty(f,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Jn.TRACE_PARENT_HEADER}});Object.defineProperty(f,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Jn.TRACE_STATE_HEADER}});Object.defineProperty(f,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Jn.W3CTraceContextPropagator}});Object.defineProperty(f,"parseTraceParent",{enumerable:!0,get:function(){return Jn.parseTraceParent}});var Xn=jA();Object.defineProperty(f,"RPCType",{enumerable:!0,get:function(){return Xn.RPCType}});Object.defineProperty(f,"deleteRPCMetadata",{enumerable:!0,get:function(){return Xn.deleteRPCMetadata}});Object.defineProperty(f,"getRPCMetadata",{enumerable:!0,get:function(){return Xn.getRPCMetadata}});Object.defineProperty(f,"setRPCMetadata",{enumerable:!0,get:function(){return Xn.setRPCMetadata}});var SY=iu();Object.defineProperty(f,"AlwaysOffSampler",{enumerable:!0,get:function(){return SY.AlwaysOffSampler}});var fY=uu();Object.defineProperty(f,"AlwaysOnSampler",{enumerable:!0,get:function(){return fY.AlwaysOnSampler}});var dY=WA();Object.defineProperty(f,"ParentBasedSampler",{enumerable:!0,get:function(){return dY.ParentBasedSampler}});var AY=zA();Object.defineProperty(f,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return AY.TraceIdRatioBasedSampler}});var fu=Or();Object.defineProperty(f,"isTracingSuppressed",{enumerable:!0,get:function(){return fu.isTracingSuppressed}});Object.defineProperty(f,"suppressTracing",{enumerable:!0,get:function(){return fu.suppressTracing}});Object.defineProperty(f,"unsuppressTracing",{enumerable:!0,get:function(){return fu.unsuppressTracing}});var vY=tu();Object.defineProperty(f,"TraceState",{enumerable:!0,get:function(){return vY.TraceState}});var Ct=Ya();Object.defineProperty(f,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(f,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return Ct.DEFAULT_ENVIRONMENT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(f,"parseEnvironment",{enumerable:!0,get:function(){return Ct.parseEnvironment}});var OY=ov();Object.defineProperty(f,"merge",{enumerable:!0,get:function(){return OY.merge}});var mY=ka();Object.defineProperty(f,"TracesSamplerValues",{enumerable:!0,get:function(){return mY.TracesSamplerValues}});var Tv=iv();Object.defineProperty(f,"TimeoutError",{enumerable:!0,get:function(){return Tv.TimeoutError}});Object.defineProperty(f,"callWithTimeout",{enumerable:!0,get:function(){return Tv.callWithTimeout}});var Sv=uv();Object.defineProperty(f,"isUrlIgnored",{enumerable:!0,get:function(){return Sv.isUrlIgnored}});Object.defineProperty(f,"urlMatches",{enumerable:!0,get:function(){return Sv.urlMatches}});var hY=sv();Object.defineProperty(f,"isWrapped",{enumerable:!0,get:function(){return hY.isWrapped}});var NY=lv();Object.defineProperty(f,"BindOnceFuture",{enumerable:!0,get:function(){return NY.BindOnceFuture}});var RY=qa();Object.defineProperty(f,"VERSION",{enumerable:!0,get:function(){return RY.VERSION}});var yY=_v();f.internal={_export:yY._export}});function V(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var du=d(()=>{});var fv,dv,Av,vv,Ov,mv,hv,Nv,Rv,yv,Pv,Mv,gv,Lv,Iv,Cv,xv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,hO,NO,RO,yO,PO,MO,gO,LO,IO,CO,xO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,hm,Nm,Rm,ym,Pm,Mm,gm,Lm,Im,Cm,xm,bm,Um,Dm,PY,MY,gY,LY,IY,CY,xY,bY,UY,DY,VY,wY,BY,GY,HY,kY,YY,FY,KY,jY,qY,WY,zY,JY,XY,$Y,QY,ZY,e2,t2,r2,n2,o2,i2,a2,u2,s2,c2,l2,p2,_2,E2,T2,S2,f2,d2,A2,v2,O2,m2,h2,N2,R2,y2,P2,M2,g2,L2,I2,C2,x2,b2,U2,D2,V2,w2,B2,G2,H2,k2,Y2,F2,K2,j2,q2,W2,z2,J2,X2,$2,Q2,Z2,eF,tF,rF,nF,oF,iF,aF,uF,sF,cF,lF,pF,_F,EF,TF,SF,fF,dF,AF,vF,OF,mF,hF,NF,RF,yF,PF,MF,gF,LF,IF,CF,xF,bF,UF,DF,VF,wF,BF,GF,HF,kF,YF,FF,KF,jF,qF,Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh,Ah,vh,Oh,mh,hh,Nh,Rh,yh,Ph,Mh,gh,WF,zF,JF,XF,$F,QF,ZF,e3,t3,r3,n3,o3,i3,a3,u3,s3,c3,l3,p3,_3,E3,T3,S3,f3,d3,A3,v3,O3,m3,h3,N3,R3,y3,P3,M3,g3,L3,I3,C3,x3,b3,U3,D3,V3,w3,B3,G3,H3,Lh,Ih,Ch,xh,bh,Uh,Dh,Vh,wh,Bh,Gh,k3,Y3,F3,K3,j3,q3,W3,z3,J3,X3,$3,Q3,Hh,kh,Yh,Fh,Kh,Z3,eK,tK,rK,nK,oK,jh,qh,Wh,iK,aK,uK,sK,zh,Jh,Xh,$h,cK,lK,pK,_K,EK,Qh,Zh,eN,tN,rN,nN,oN,TK,SK,fK,dK,AK,vK,OK,mK,iN,aN,uN,sN,cN,hK,NK,RK,yK,PK,MK,lN,pN,_N,EN,TN,SN,fN,dN,AN,vN,ON,mN,hN,NN,RN,yN,PN,MN,gN,LN,IN,gK,LK,IK,CK,xK,bK,UK,DK,VK,wK,BK,GK,HK,kK,YK,FK,KK,jK,qK,WK,zK,JK,CN,xN,bN,UN,DN,XK,$K,QK,ZK,ej,tj,VN,wN,rj,nj,oj,BN,GN,ij,aj,uj,HN,kN,YN,FN,KN,jN,qN,WN,zN,JN,XN,$N,QN,ZN,eR,tR,rR,sj,cj,lj,pj,_j,Ej,Tj,Sj,fj,dj,Aj,vj,Oj,mj,hj,Nj,Rj,yj,nR,oR,Pj,Mj,gj,iR=d(()=>{du();fv="aws.lambda.invoked_arn",dv="db.system",Av="db.connection_string",vv="db.user",Ov="db.jdbc.driver_classname",mv="db.name",hv="db.statement",Nv="db.operation",Rv="db.mssql.instance_name",yv="db.cassandra.keyspace",Pv="db.cassandra.page_size",Mv="db.cassandra.consistency_level",gv="db.cassandra.table",Lv="db.cassandra.idempotence",Iv="db.cassandra.speculative_execution_count",Cv="db.cassandra.coordinator.id",xv="db.cassandra.coordinator.dc",bv="db.hbase.namespace",Uv="db.redis.database_index",Dv="db.mongodb.collection",Vv="db.sql.table",wv="exception.type",Bv="exception.message",Gv="exception.stacktrace",Hv="exception.escaped",kv="faas.trigger",Yv="faas.execution",Fv="faas.document.collection",Kv="faas.document.operation",jv="faas.document.time",qv="faas.document.name",Wv="faas.time",zv="faas.cron",Jv="faas.coldstart",Xv="faas.invoked_name",$v="faas.invoked_provider",Qv="faas.invoked_region",Zv="net.transport",eO="net.peer.ip",tO="net.peer.port",rO="net.peer.name",nO="net.host.ip",oO="net.host.port",iO="net.host.name",aO="net.host.connection.type",uO="net.host.connection.subtype",sO="net.host.carrier.name",cO="net.host.carrier.mcc",lO="net.host.carrier.mnc",pO="net.host.carrier.icc",_O="peer.service",EO="enduser.id",TO="enduser.role",SO="enduser.scope",fO="thread.id",dO="thread.name",AO="code.function",vO="code.namespace",OO="code.filepath",mO="code.lineno",hO="http.method",NO="http.url",RO="http.target",yO="http.host",PO="http.scheme",MO="http.status_code",gO="http.flavor",LO="http.user_agent",IO="http.request_content_length",CO="http.request_content_length_uncompressed",xO="http.response_content_length",bO="http.response_content_length_uncompressed",UO="http.server_name",DO="http.route",VO="http.client_ip",wO="aws.dynamodb.table_names",BO="aws.dynamodb.consumed_capacity",GO="aws.dynamodb.item_collection_metrics",HO="aws.dynamodb.provisioned_read_capacity",kO="aws.dynamodb.provisioned_write_capacity",YO="aws.dynamodb.consistent_read",FO="aws.dynamodb.projection",KO="aws.dynamodb.limit",jO="aws.dynamodb.attributes_to_get",qO="aws.dynamodb.index_name",WO="aws.dynamodb.select",zO="aws.dynamodb.global_secondary_indexes",JO="aws.dynamodb.local_secondary_indexes",XO="aws.dynamodb.exclusive_start_table",$O="aws.dynamodb.table_count",QO="aws.dynamodb.scan_forward",ZO="aws.dynamodb.segment",em="aws.dynamodb.total_segments",tm="aws.dynamodb.count",rm="aws.dynamodb.scanned_count",nm="aws.dynamodb.attribute_definitions",om="aws.dynamodb.global_secondary_index_updates",im="messaging.system",am="messaging.destination",um="messaging.destination_kind",sm="messaging.temp_destination",cm="messaging.protocol",lm="messaging.protocol_version",pm="messaging.url",_m="messaging.message_id",Em="messaging.conversation_id",Tm="messaging.message_payload_size_bytes",Sm="messaging.message_payload_compressed_size_bytes",fm="messaging.operation",dm="messaging.consumer_id",Am="messaging.rabbitmq.routing_key",vm="messaging.kafka.message_key",Om="messaging.kafka.consumer_group",mm="messaging.kafka.client_id",hm="messaging.kafka.partition",Nm="messaging.kafka.tombstone",Rm="rpc.system",ym="rpc.service",Pm="rpc.method",Mm="rpc.grpc.status_code",gm="rpc.jsonrpc.version",Lm="rpc.jsonrpc.request_id",Im="rpc.jsonrpc.error_code",Cm="rpc.jsonrpc.error_message",xm="message.type",bm="message.id",Um="message.compressed_size",Dm="message.uncompressed_size",PY=fv,MY=dv,gY=Av,LY=vv,IY=Ov,CY=mv,xY=hv,bY=Nv,UY=Rv,DY=yv,VY=Pv,wY=Mv,BY=gv,GY=Lv,HY=Iv,kY=Cv,YY=xv,FY=bv,KY=Uv,jY=Dv,qY=Vv,WY=wv,zY=Bv,JY=Gv,XY=Hv,$Y=kv,QY=Yv,ZY=Fv,e2=Kv,t2=jv,r2=qv,n2=Wv,o2=zv,i2=Jv,a2=Xv,u2=$v,s2=Qv,c2=Zv,l2=eO,p2=tO,_2=rO,E2=nO,T2=oO,S2=iO,f2=aO,d2=uO,A2=sO,v2=cO,O2=lO,m2=pO,h2=_O,N2=EO,R2=TO,y2=SO,P2=fO,M2=dO,g2=AO,L2=vO,I2=OO,C2=mO,x2=hO,b2=NO,U2=RO,D2=yO,V2=PO,w2=MO,B2=gO,G2=LO,H2=IO,k2=CO,Y2=xO,F2=bO,K2=UO,j2=DO,q2=VO,W2=wO,z2=BO,J2=GO,X2=HO,$2=kO,Q2=YO,Z2=FO,eF=KO,tF=jO,rF=qO,nF=WO,oF=zO,iF=JO,aF=XO,uF=$O,sF=QO,cF=ZO,lF=em,pF=tm,_F=rm,EF=nm,TF=om,SF=im,fF=am,dF=um,AF=sm,vF=cm,OF=lm,mF=pm,hF=_m,NF=Em,RF=Tm,yF=Sm,PF=fm,MF=dm,gF=Am,LF=vm,IF=Om,CF=mm,xF=hm,bF=Nm,UF=Rm,DF=ym,VF=Pm,wF=Mm,BF=gm,GF=Lm,HF=Im,kF=Cm,YF=xm,FF=bm,KF=Um,jF=Dm,qF=V([fv,dv,Av,vv,Ov,mv,hv,Nv,Rv,yv,Pv,Mv,gv,Lv,Iv,Cv,xv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,hO,NO,RO,yO,PO,MO,gO,LO,IO,CO,xO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,hm,Nm,Rm,ym,Pm,Mm,gm,Lm,Im,Cm,xm,bm,Um,Dm]),Vm="other_sql",wm="mssql",Bm="mysql",Gm="oracle",Hm="db2",km="postgresql",Ym="redshift",Fm="hive",Km="cloudscape",jm="hsqldb",qm="progress",Wm="maxdb",zm="hanadb",Jm="ingres",Xm="firstsql",$m="edb",Qm="cache",Zm="adabas",eh="firebird",th="derby",rh="filemaker",nh="informix",oh="instantdb",ih="interbase",ah="mariadb",uh="netezza",sh="pervasive",ch="pointbase",lh="sqlite",ph="sybase",_h="teradata",Eh="vertica",Th="h2",Sh="coldfusion",fh="cassandra",dh="hbase",Ah="mongodb",vh="redis",Oh="couchbase",mh="couchdb",hh="cosmosdb",Nh="dynamodb",Rh="neo4j",yh="geode",Ph="elasticsearch",Mh="memcached",gh="cockroachdb",WF=Vm,zF=wm,JF=Bm,XF=Gm,$F=Hm,QF=km,ZF=Ym,e3=Fm,t3=Km,r3=jm,n3=qm,o3=Wm,i3=zm,a3=Jm,u3=Xm,s3=$m,c3=Qm,l3=Zm,p3=eh,_3=th,E3=rh,T3=nh,S3=oh,f3=ih,d3=ah,A3=uh,v3=sh,O3=ch,m3=lh,h3=ph,N3=_h,R3=Eh,y3=Th,P3=Sh,M3=fh,g3=dh,L3=Ah,I3=vh,C3=Oh,x3=mh,b3=hh,U3=Nh,D3=Rh,V3=yh,w3=Ph,B3=Mh,G3=gh,H3=V([Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh,Ah,vh,Oh,mh,hh,Nh,Rh,yh,Ph,Mh,gh]),Lh="all",Ih="each_quorum",Ch="quorum",xh="local_quorum",bh="one",Uh="two",Dh="three",Vh="local_one",wh="any",Bh="serial",Gh="local_serial",k3=Lh,Y3=Ih,F3=Ch,K3=xh,j3=bh,q3=Uh,W3=Dh,z3=Vh,J3=wh,X3=Bh,$3=Gh,Q3=V([Lh,Ih,Ch,xh,bh,Uh,Dh,Vh,wh,Bh,Gh]),Hh="datasource",kh="http",Yh="pubsub",Fh="timer",Kh="other",Z3=Hh,eK=kh,tK=Yh,rK=Fh,nK=Kh,oK=V([Hh,kh,Yh,Fh,Kh]),jh="insert",qh="edit",Wh="delete",iK=jh,aK=qh,uK=Wh,sK=V([jh,qh,Wh]),zh="alibaba_cloud",Jh="aws",Xh="azure",$h="gcp",cK=zh,lK=Jh,pK=Xh,_K=$h,EK=V([zh,Jh,Xh,$h]),Qh="ip_tcp",Zh="ip_udp",eN="ip",tN="unix",rN="pipe",nN="inproc",oN="other",TK=Qh,SK=Zh,fK=eN,dK=tN,AK=rN,vK=nN,OK=oN,mK=V([Qh,Zh,eN,tN,rN,nN,oN]),iN="wifi",aN="wired",uN="cell",sN="unavailable",cN="unknown",hK=iN,NK=aN,RK=uN,yK=sN,PK=cN,MK=V([iN,aN,uN,sN,cN]),lN="gprs",pN="edge",_N="umts",EN="cdma",TN="evdo_0",SN="evdo_a",fN="cdma2000_1xrtt",dN="hsdpa",AN="hsupa",vN="hspa",ON="iden",mN="evdo_b",hN="lte",NN="ehrpd",RN="hspap",yN="gsm",PN="td_scdma",MN="iwlan",gN="nr",LN="nrnsa",IN="lte_ca",gK=lN,LK=pN,IK=_N,CK=EN,xK=TN,bK=SN,UK=fN,DK=dN,VK=AN,wK=vN,BK=ON,GK=mN,HK=hN,kK=NN,YK=RN,FK=yN,KK=PN,jK=MN,qK=gN,WK=LN,zK=IN,JK=V([lN,pN,_N,EN,TN,SN,fN,dN,AN,vN,ON,mN,hN,NN,RN,yN,PN,MN,gN,LN,IN]),CN="1.0",xN="1.1",bN="2.0",UN="SPDY",DN="QUIC",XK=CN,$K=xN,QK=bN,ZK=UN,ej=DN,tj={HTTP_1_0:CN,HTTP_1_1:xN,HTTP_2_0:bN,SPDY:UN,QUIC:DN},VN="queue",wN="topic",rj=VN,nj=wN,oj=V([VN,wN]),BN="receive",GN="process",ij=BN,aj=GN,uj=V([BN,GN]),HN=0,kN=1,YN=2,FN=3,KN=4,jN=5,qN=6,WN=7,zN=8,JN=9,XN=10,$N=11,QN=12,ZN=13,eR=14,tR=15,rR=16,sj=HN,cj=kN,lj=YN,pj=FN,_j=KN,Ej=jN,Tj=qN,Sj=WN,fj=zN,dj=JN,Aj=XN,vj=$N,Oj=QN,mj=ZN,hj=eR,Nj=tR,Rj=rR,yj={OK:HN,CANCELLED:kN,UNKNOWN:YN,INVALID_ARGUMENT:FN,DEADLINE_EXCEEDED:KN,NOT_FOUND:jN,ALREADY_EXISTS:qN,PERMISSION_DENIED:WN,RESOURCE_EXHAUSTED:zN,FAILED_PRECONDITION:JN,ABORTED:XN,OUT_OF_RANGE:$N,UNIMPLEMENTED:QN,INTERNAL:ZN,UNAVAILABLE:eR,DATA_LOSS:tR,UNAUTHENTICATED:rR},nR="SENT",oR="RECEIVED",Pj=nR,Mj=oR,gj=V([nR,oR])});var aR=d(()=>{iR()});var uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,hR,NR,RR,yR,PR,MR,gR,LR,IR,CR,xR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy,my,hy,Ny,Ry,yy,Py,My,gy,Ly,Iy,Cy,xy,by,Lj,Ij,Cj,xj,bj,Uj,Dj,Vj,wj,Bj,Gj,Hj,kj,Yj,Fj,Kj,jj,qj,Wj,zj,Jj,Xj,$j,Qj,Zj,eq,tq,rq,nq,oq,iq,aq,uq,sq,cq,lq,pq,_q,Eq,Tq,Sq,fq,dq,Aq,vq,Oq,mq,hq,Nq,Rq,yq,Pq,Mq,gq,Lq,Iq,Cq,xq,bq,Uq,Dq,Vq,wq,Bq,Gq,Hq,kq,Yq,Fq,Kq,jq,qq,Wq,zq,Jq,Xq,$q,Qq,Zq,e4,t4,r4,Uy,Dy,Vy,wy,n4,o4,i4,a4,u4,By,Gy,Hy,ky,Yy,Fy,Ky,jy,qy,Wy,zy,Jy,Xy,$y,Qy,Zy,eP,s4,c4,l4,p4,_4,E4,T4,S4,f4,d4,A4,v4,O4,m4,h4,N4,R4,y4,tP,rP,P4,M4,g4,nP,oP,iP,aP,uP,sP,cP,L4,I4,C4,x4,b4,U4,D4,V4,lP,pP,_P,EP,TP,SP,fP,dP,AP,vP,OP,w4,B4,G4,H4,k4,Y4,F4,K4,j4,q4,W4,z4,mP,hP,NP,RP,yP,PP,MP,gP,LP,IP,J4,X4,$4,Q4,Z4,eW,tW,rW,nW,oW,iW,CP=d(()=>{du();uR="cloud.provider",sR="cloud.account.id",cR="cloud.region",lR="cloud.availability_zone",pR="cloud.platform",_R="aws.ecs.container.arn",ER="aws.ecs.cluster.arn",TR="aws.ecs.launchtype",SR="aws.ecs.task.arn",fR="aws.ecs.task.family",dR="aws.ecs.task.revision",AR="aws.eks.cluster.arn",vR="aws.log.group.names",OR="aws.log.group.arns",mR="aws.log.stream.names",hR="aws.log.stream.arns",NR="container.name",RR="container.id",yR="container.runtime",PR="container.image.name",MR="container.image.tag",gR="deployment.environment",LR="device.id",IR="device.model.identifier",CR="device.model.name",xR="faas.name",bR="faas.id",UR="faas.version",DR="faas.instance",VR="faas.max_memory",wR="host.id",BR="host.name",GR="host.type",HR="host.arch",kR="host.image.name",YR="host.image.id",FR="host.image.version",KR="k8s.cluster.name",jR="k8s.node.name",qR="k8s.node.uid",WR="k8s.namespace.name",zR="k8s.pod.uid",JR="k8s.pod.name",XR="k8s.container.name",$R="k8s.replicaset.uid",QR="k8s.replicaset.name",ZR="k8s.deployment.uid",ey="k8s.deployment.name",ty="k8s.statefulset.uid",ry="k8s.statefulset.name",ny="k8s.daemonset.uid",oy="k8s.daemonset.name",iy="k8s.job.uid",ay="k8s.job.name",uy="k8s.cronjob.uid",sy="k8s.cronjob.name",cy="os.type",ly="os.description",py="os.name",_y="os.version",Ey="process.pid",Ty="process.executable.name",Sy="process.executable.path",fy="process.command",dy="process.command_line",Ay="process.command_args",vy="process.owner",Oy="process.runtime.name",my="process.runtime.version",hy="process.runtime.description",Ny="service.name",Ry="service.namespace",yy="service.instance.id",Py="service.version",My="telemetry.sdk.name",gy="telemetry.sdk.language",Ly="telemetry.sdk.version",Iy="telemetry.auto.version",Cy="webengine.name",xy="webengine.version",by="webengine.description",Lj=uR,Ij=sR,Cj=cR,xj=lR,bj=pR,Uj=_R,Dj=ER,Vj=TR,wj=SR,Bj=fR,Gj=dR,Hj=AR,kj=vR,Yj=OR,Fj=mR,Kj=hR,jj=NR,qj=RR,Wj=yR,zj=PR,Jj=MR,Xj=gR,$j=LR,Qj=IR,Zj=CR,eq=xR,tq=bR,rq=UR,nq=DR,oq=VR,iq=wR,aq=BR,uq=GR,sq=HR,cq=kR,lq=YR,pq=FR,_q=KR,Eq=jR,Tq=qR,Sq=WR,fq=zR,dq=JR,Aq=XR,vq=$R,Oq=QR,mq=ZR,hq=ey,Nq=ty,Rq=ry,yq=ny,Pq=oy,Mq=iy,gq=ay,Lq=uy,Iq=sy,Cq=cy,xq=ly,bq=py,Uq=_y,Dq=Ey,Vq=Ty,wq=Sy,Bq=fy,Gq=dy,Hq=Ay,kq=vy,Yq=Oy,Fq=my,Kq=hy,jq=Ny,qq=Ry,Wq=yy,zq=Py,Jq=My,Xq=gy,$q=Ly,Qq=Iy,Zq=Cy,e4=xy,t4=by,r4=V([uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,hR,NR,RR,yR,PR,MR,gR,LR,IR,CR,xR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy,my,hy,Ny,Ry,yy,Py,My,gy,Ly,Iy,Cy,xy,by]),Uy="alibaba_cloud",Dy="aws",Vy="azure",wy="gcp",n4=Uy,o4=Dy,i4=Vy,a4=wy,u4=V([Uy,Dy,Vy,wy]),By="alibaba_cloud_ecs",Gy="alibaba_cloud_fc",Hy="aws_ec2",ky="aws_ecs",Yy="aws_eks",Fy="aws_lambda",Ky="aws_elastic_beanstalk",jy="azure_vm",qy="azure_container_instances",Wy="azure_aks",zy="azure_functions",Jy="azure_app_service",Xy="gcp_compute_engine",$y="gcp_cloud_run",Qy="gcp_kubernetes_engine",Zy="gcp_cloud_functions",eP="gcp_app_engine",s4=By,c4=Gy,l4=Hy,p4=ky,_4=Yy,E4=Fy,T4=Ky,S4=jy,f4=qy,d4=Wy,A4=zy,v4=Jy,O4=Xy,m4=$y,h4=Qy,N4=Zy,R4=eP,y4=V([By,Gy,Hy,ky,Yy,Fy,Ky,jy,qy,Wy,zy,Jy,Xy,$y,Qy,Zy,eP]),tP="ec2",rP="fargate",P4=tP,M4=rP,g4=V([tP,rP]),nP="amd64",oP="arm32",iP="arm64",aP="ia64",uP="ppc32",sP="ppc64",cP="x86",L4=nP,I4=oP,C4=iP,x4=aP,b4=uP,U4=sP,D4=cP,V4=V([nP,oP,iP,aP,uP,sP,cP]),lP="windows",pP="linux",_P="darwin",EP="freebsd",TP="netbsd",SP="openbsd",fP="dragonflybsd",dP="hpux",AP="aix",vP="solaris",OP="z_os",w4=lP,B4=pP,G4=_P,H4=EP,k4=TP,Y4=SP,F4=fP,K4=dP,j4=AP,q4=vP,W4=OP,z4=V([lP,pP,_P,EP,TP,SP,fP,dP,AP,vP,OP]),mP="cpp",hP="dotnet",NP="erlang",RP="go",yP="java",PP="nodejs",MP="php",gP="python",LP="ruby",IP="webjs",J4=mP,X4=hP,$4=NP,Q4=RP,Z4=yP,eW=PP,tW=MP,rW=gP,nW=LP,oW=IP,iW=V([mP,hP,NP,RP,yP,PP,MP,gP,LP,IP])});var xP=d(()=>{CP()});var aW,uW,sW,cW,lW,pW,_W,EW,TW,SW,fW,dW,AW,vW,OW,mW,hW,NW,RW,yW,PW,MW,gW,LW,IW,CW,xW,bW,UW,DW,VW,wW,BW,GW,HW,kW,YW,FW,KW,jW,qW,WW,zW,JW,XW,$W,QW,ZW,e6,t6,r6,n6,o6,i6,a6,u6,s6,c6,l6,p6,_6,E6,T6,S6,f6,d6,A6,v6,O6,m6,h6,N6,R6,y6,P6,M6,g6,L6,I6,C6,x6,b6,U6,D6,V6,w6,B6,G6,H6,k6,Y6,F6,K6,j6,q6,W6,z6,J6,X6,$6,Q6,Z6,e8,t8,r8,n8,o8,i8,a8,u8,bP=d(()=>{aW="aspnetcore.rate_limiting.result",uW="acquired",sW="endpoint_limiter",cW="global_limiter",lW="request_canceled",pW="telemetry.sdk.language",_W="cpp",EW="dotnet",TW="erlang",SW="go",fW="java",dW="nodejs",AW="php",vW="python",OW="ruby",mW="rust",hW="swift",NW="webjs",RW="telemetry.sdk.name",yW="telemetry.sdk.version",PW="aspnetcore.diagnostics.handler.type",MW="aspnetcore.diagnostics.exception.result",gW="aborted",LW="handled",IW="skipped",CW="unhandled",xW="aspnetcore.rate_limiting.policy",bW="aspnetcore.request.is_unhandled",UW="aspnetcore.routing.is_fallback",DW="aspnetcore.routing.match_status",VW="failure",wW="success",BW="client.address",GW="client.port",HW="error.type",kW="_OTHER",YW="exception.escaped",FW="exception.message",KW="exception.stacktrace",jW="exception.type",qW=function(o){return"http.request.header."+o},WW="http.request.method",zW="_OTHER",JW="CONNECT",XW="DELETE",$W="GET",QW="HEAD",ZW="OPTIONS",e6="PATCH",t6="POST",r6="PUT",n6="TRACE",o6="http.request.method_original",i6="http.request.resend_count",a6=function(o){return"http.response.header."+o},u6="http.response.status_code",s6="http.route",c6="jvm.gc.action",l6="jvm.gc.name",p6="jvm.memory.pool.name",_6="jvm.memory.type",E6="heap",T6="non_heap",S6="jvm.thread.daemon",f6="jvm.thread.state",d6="blocked",A6="new",v6="runnable",O6="terminated",m6="timed_waiting",h6="waiting",N6="network.local.address",R6="network.local.port",y6="network.peer.address",P6="network.peer.port",M6="network.protocol.name",g6="network.protocol.version",L6="network.transport",I6="pipe",C6="quic",x6="tcp",b6="udp",U6="unix",D6="network.type",V6="ipv4",w6="ipv6",B6="otel.scope.name",G6="otel.scope.version",H6="otel.status_code",k6="ERROR",Y6="OK",F6="otel.status_description",K6="server.address",j6="server.port",q6="service.name",W6="service.version",z6="signalr.connection.status",J6="app_shutdown",X6="normal_closure",$6="timeout",Q6="signalr.transport",Z6="long_polling",e8="server_sent_events",t8="web_sockets",r8="url.fragment",n8="url.full",o8="url.path",i8="url.query",a8="url.scheme",u8="user_agent.original"});var s8,c8,l8,p8,_8,E8,T8,S8,f8,d8,A8,v8,O8,m8,h8,N8,R8,y8,P8,M8,g8,L8,I8,C8,x8,b8,U8,D8,V8,w8,B8,UP=d(()=>{s8="aspnetcore.diagnostics.exceptions",c8="aspnetcore.rate_limiting.active_request_leases",l8="aspnetcore.rate_limiting.queued_requests",p8="aspnetcore.rate_limiting.request.time_in_queue",_8="aspnetcore.rate_limiting.request_lease.duration",E8="aspnetcore.rate_limiting.requests",T8="aspnetcore.routing.match_attempts",S8="http.client.request.duration",f8="http.server.request.duration",d8="jvm.class.count",A8="jvm.class.loaded",v8="jvm.class.unloaded",O8="jvm.cpu.count",m8="jvm.cpu.recent_utilization",h8="jvm.cpu.time",N8="jvm.gc.duration",R8="jvm.memory.committed",y8="jvm.memory.limit",P8="jvm.memory.used",M8="jvm.memory.used_after_last_gc",g8="jvm.thread.count",L8="kestrel.active_connections",I8="kestrel.active_tls_handshakes",C8="kestrel.connection.duration",x8="kestrel.queued_connections",b8="kestrel.queued_requests",U8="kestrel.rejected_connections",D8="kestrel.tls_handshake.duration",V8="kestrel.upgraded_connections",w8="signalr.server.active_connections",B8="signalr.server.connection.duration"});var DP={};Ot(DP,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>gW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>LW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>IW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>CW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>uW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>sW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>cW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>lW,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>VW,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>wW,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>MW,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>PW,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>xW,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>aW,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>bW,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>UW,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>DW,ATTR_CLIENT_ADDRESS:()=>BW,ATTR_CLIENT_PORT:()=>GW,ATTR_ERROR_TYPE:()=>HW,ATTR_EXCEPTION_ESCAPED:()=>YW,ATTR_EXCEPTION_MESSAGE:()=>FW,ATTR_EXCEPTION_STACKTRACE:()=>KW,ATTR_EXCEPTION_TYPE:()=>jW,ATTR_HTTP_REQUEST_HEADER:()=>qW,ATTR_HTTP_REQUEST_METHOD:()=>WW,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>o6,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>i6,ATTR_HTTP_RESPONSE_HEADER:()=>a6,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>u6,ATTR_HTTP_ROUTE:()=>s6,ATTR_JVM_GC_ACTION:()=>c6,ATTR_JVM_GC_NAME:()=>l6,ATTR_JVM_MEMORY_POOL_NAME:()=>p6,ATTR_JVM_MEMORY_TYPE:()=>_6,ATTR_JVM_THREAD_DAEMON:()=>S6,ATTR_JVM_THREAD_STATE:()=>f6,ATTR_NETWORK_LOCAL_ADDRESS:()=>N6,ATTR_NETWORK_LOCAL_PORT:()=>R6,ATTR_NETWORK_PEER_ADDRESS:()=>y6,ATTR_NETWORK_PEER_PORT:()=>P6,ATTR_NETWORK_PROTOCOL_NAME:()=>M6,ATTR_NETWORK_PROTOCOL_VERSION:()=>g6,ATTR_NETWORK_TRANSPORT:()=>L6,ATTR_NETWORK_TYPE:()=>D6,ATTR_OTEL_SCOPE_NAME:()=>B6,ATTR_OTEL_SCOPE_VERSION:()=>G6,ATTR_OTEL_STATUS_CODE:()=>H6,ATTR_OTEL_STATUS_DESCRIPTION:()=>F6,ATTR_SERVER_ADDRESS:()=>K6,ATTR_SERVER_PORT:()=>j6,ATTR_SERVICE_NAME:()=>q6,ATTR_SERVICE_VERSION:()=>W6,ATTR_SIGNALR_CONNECTION_STATUS:()=>z6,ATTR_SIGNALR_TRANSPORT:()=>Q6,ATTR_TELEMETRY_SDK_LANGUAGE:()=>pW,ATTR_TELEMETRY_SDK_NAME:()=>RW,ATTR_TELEMETRY_SDK_VERSION:()=>yW,ATTR_URL_FRAGMENT:()=>r8,ATTR_URL_FULL:()=>n8,ATTR_URL_PATH:()=>o8,ATTR_URL_QUERY:()=>i8,ATTR_URL_SCHEME:()=>a8,ATTR_USER_AGENT_ORIGINAL:()=>u8,AWSECSLAUNCHTYPEVALUES_EC2:()=>P4,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>M4,AwsEcsLaunchtypeValues:()=>g4,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>s4,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>c4,CLOUDPLATFORMVALUES_AWS_EC2:()=>l4,CLOUDPLATFORMVALUES_AWS_ECS:()=>p4,CLOUDPLATFORMVALUES_AWS_EKS:()=>_4,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>T4,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>E4,CLOUDPLATFORMVALUES_AZURE_AKS:()=>d4,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>v4,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>f4,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>A4,CLOUDPLATFORMVALUES_AZURE_VM:()=>S4,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>R4,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>N4,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>m4,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>O4,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>h4,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>n4,CLOUDPROVIDERVALUES_AWS:()=>o4,CLOUDPROVIDERVALUES_AZURE:()=>i4,CLOUDPROVIDERVALUES_GCP:()=>a4,CloudPlatformValues:()=>y4,CloudProviderValues:()=>u4,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>k3,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>J3,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Y3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>z3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>K3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>$3,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>j3,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>F3,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>X3,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>W3,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>q3,DBSYSTEMVALUES_ADABAS:()=>l3,DBSYSTEMVALUES_CACHE:()=>c3,DBSYSTEMVALUES_CASSANDRA:()=>M3,DBSYSTEMVALUES_CLOUDSCAPE:()=>t3,DBSYSTEMVALUES_COCKROACHDB:()=>G3,DBSYSTEMVALUES_COLDFUSION:()=>P3,DBSYSTEMVALUES_COSMOSDB:()=>b3,DBSYSTEMVALUES_COUCHBASE:()=>C3,DBSYSTEMVALUES_COUCHDB:()=>x3,DBSYSTEMVALUES_DB2:()=>$F,DBSYSTEMVALUES_DERBY:()=>_3,DBSYSTEMVALUES_DYNAMODB:()=>U3,DBSYSTEMVALUES_EDB:()=>s3,DBSYSTEMVALUES_ELASTICSEARCH:()=>w3,DBSYSTEMVALUES_FILEMAKER:()=>E3,DBSYSTEMVALUES_FIREBIRD:()=>p3,DBSYSTEMVALUES_FIRSTSQL:()=>u3,DBSYSTEMVALUES_GEODE:()=>V3,DBSYSTEMVALUES_H2:()=>y3,DBSYSTEMVALUES_HANADB:()=>i3,DBSYSTEMVALUES_HBASE:()=>g3,DBSYSTEMVALUES_HIVE:()=>e3,DBSYSTEMVALUES_HSQLDB:()=>r3,DBSYSTEMVALUES_INFORMIX:()=>T3,DBSYSTEMVALUES_INGRES:()=>a3,DBSYSTEMVALUES_INSTANTDB:()=>S3,DBSYSTEMVALUES_INTERBASE:()=>f3,DBSYSTEMVALUES_MARIADB:()=>d3,DBSYSTEMVALUES_MAXDB:()=>o3,DBSYSTEMVALUES_MEMCACHED:()=>B3,DBSYSTEMVALUES_MONGODB:()=>L3,DBSYSTEMVALUES_MSSQL:()=>zF,DBSYSTEMVALUES_MYSQL:()=>JF,DBSYSTEMVALUES_NEO4J:()=>D3,DBSYSTEMVALUES_NETEZZA:()=>A3,DBSYSTEMVALUES_ORACLE:()=>XF,DBSYSTEMVALUES_OTHER_SQL:()=>WF,DBSYSTEMVALUES_PERVASIVE:()=>v3,DBSYSTEMVALUES_POINTBASE:()=>O3,DBSYSTEMVALUES_POSTGRESQL:()=>QF,DBSYSTEMVALUES_PROGRESS:()=>n3,DBSYSTEMVALUES_REDIS:()=>I3,DBSYSTEMVALUES_REDSHIFT:()=>ZF,DBSYSTEMVALUES_SQLITE:()=>m3,DBSYSTEMVALUES_SYBASE:()=>h3,DBSYSTEMVALUES_TERADATA:()=>N3,DBSYSTEMVALUES_VERTICA:()=>R3,DbCassandraConsistencyLevelValues:()=>Q3,DbSystemValues:()=>H3,ERROR_TYPE_VALUE_OTHER:()=>kW,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>uK,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>aK,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>iK,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>cK,FAASINVOKEDPROVIDERVALUES_AWS:()=>lK,FAASINVOKEDPROVIDERVALUES_AZURE:()=>pK,FAASINVOKEDPROVIDERVALUES_GCP:()=>_K,FAASTRIGGERVALUES_DATASOURCE:()=>Z3,FAASTRIGGERVALUES_HTTP:()=>eK,FAASTRIGGERVALUES_OTHER:()=>nK,FAASTRIGGERVALUES_PUBSUB:()=>tK,FAASTRIGGERVALUES_TIMER:()=>rK,FaasDocumentOperationValues:()=>sK,FaasInvokedProviderValues:()=>EK,FaasTriggerValues:()=>oK,HOSTARCHVALUES_AMD64:()=>L4,HOSTARCHVALUES_ARM32:()=>I4,HOSTARCHVALUES_ARM64:()=>C4,HOSTARCHVALUES_IA64:()=>x4,HOSTARCHVALUES_PPC32:()=>b4,HOSTARCHVALUES_PPC64:()=>U4,HOSTARCHVALUES_X86:()=>D4,HTTPFLAVORVALUES_HTTP_1_0:()=>XK,HTTPFLAVORVALUES_HTTP_1_1:()=>$K,HTTPFLAVORVALUES_HTTP_2_0:()=>QK,HTTPFLAVORVALUES_QUIC:()=>ej,HTTPFLAVORVALUES_SPDY:()=>ZK,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>JW,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>XW,HTTP_REQUEST_METHOD_VALUE_GET:()=>$W,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>QW,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>ZW,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>zW,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>e6,HTTP_REQUEST_METHOD_VALUE_POST:()=>t6,HTTP_REQUEST_METHOD_VALUE_PUT:()=>r6,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>n6,HostArchValues:()=>V4,HttpFlavorValues:()=>tj,JVM_MEMORY_TYPE_VALUE_HEAP:()=>E6,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>T6,JVM_THREAD_STATE_VALUE_BLOCKED:()=>d6,JVM_THREAD_STATE_VALUE_NEW:()=>A6,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>v6,JVM_THREAD_STATE_VALUE_TERMINATED:()=>O6,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>m6,JVM_THREAD_STATE_VALUE_WAITING:()=>h6,MESSAGETYPEVALUES_RECEIVED:()=>Mj,MESSAGETYPEVALUES_SENT:()=>Pj,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>rj,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>nj,MESSAGINGOPERATIONVALUES_PROCESS:()=>aj,MESSAGINGOPERATIONVALUES_RECEIVE:()=>ij,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>s8,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>c8,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>l8,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>E8,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>_8,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>p8,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>T8,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>S8,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>f8,METRIC_JVM_CLASS_COUNT:()=>d8,METRIC_JVM_CLASS_LOADED:()=>A8,METRIC_JVM_CLASS_UNLOADED:()=>v8,METRIC_JVM_CPU_COUNT:()=>O8,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>m8,METRIC_JVM_CPU_TIME:()=>h8,METRIC_JVM_GC_DURATION:()=>N8,METRIC_JVM_MEMORY_COMMITTED:()=>R8,METRIC_JVM_MEMORY_LIMIT:()=>y8,METRIC_JVM_MEMORY_USED:()=>P8,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>M8,METRIC_JVM_THREAD_COUNT:()=>g8,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>L8,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>I8,METRIC_KESTREL_CONNECTION_DURATION:()=>C8,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>x8,METRIC_KESTREL_QUEUED_REQUESTS:()=>b8,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>U8,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>D8,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>V8,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>w8,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>B8,MessageTypeValues:()=>gj,MessagingDestinationKindValues:()=>oj,MessagingOperationValues:()=>uj,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>CK,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>UK,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>LK,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>kK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>xK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>bK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>GK,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>gK,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>FK,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>DK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>wK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>YK,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>VK,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>BK,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>jK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>HK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>zK,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>qK,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>WK,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>KK,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>IK,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>RK,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>yK,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>PK,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>hK,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>NK,NETTRANSPORTVALUES_INPROC:()=>vK,NETTRANSPORTVALUES_IP:()=>fK,NETTRANSPORTVALUES_IP_TCP:()=>TK,NETTRANSPORTVALUES_IP_UDP:()=>SK,NETTRANSPORTVALUES_OTHER:()=>OK,NETTRANSPORTVALUES_PIPE:()=>AK,NETTRANSPORTVALUES_UNIX:()=>dK,NETWORK_TRANSPORT_VALUE_PIPE:()=>I6,NETWORK_TRANSPORT_VALUE_QUIC:()=>C6,NETWORK_TRANSPORT_VALUE_TCP:()=>x6,NETWORK_TRANSPORT_VALUE_UDP:()=>b6,NETWORK_TRANSPORT_VALUE_UNIX:()=>U6,NETWORK_TYPE_VALUE_IPV4:()=>V6,NETWORK_TYPE_VALUE_IPV6:()=>w6,NetHostConnectionSubtypeValues:()=>JK,NetHostConnectionTypeValues:()=>MK,NetTransportValues:()=>mK,OSTYPEVALUES_AIX:()=>j4,OSTYPEVALUES_DARWIN:()=>G4,OSTYPEVALUES_DRAGONFLYBSD:()=>F4,OSTYPEVALUES_FREEBSD:()=>H4,OSTYPEVALUES_HPUX:()=>K4,OSTYPEVALUES_LINUX:()=>B4,OSTYPEVALUES_NETBSD:()=>k4,OSTYPEVALUES_OPENBSD:()=>Y4,OSTYPEVALUES_SOLARIS:()=>q4,OSTYPEVALUES_WINDOWS:()=>w4,OSTYPEVALUES_Z_OS:()=>W4,OTEL_STATUS_CODE_VALUE_ERROR:()=>k6,OTEL_STATUS_CODE_VALUE_OK:()=>Y6,OsTypeValues:()=>z4,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>Aj,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Tj,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>cj,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Nj,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>_j,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>dj,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>mj,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>pj,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Ej,RPCGRPCSTATUSCODEVALUES_OK:()=>sj,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>vj,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>Sj,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>fj,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>Rj,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>hj,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Oj,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>lj,RpcGrpcStatusCodeValues:()=>yj,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>tF,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>EF,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Q2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>z2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>pF,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>aF,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>oF,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>TF,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>rF,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>J2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>eF,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>iF,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Z2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>X2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>$2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>_F,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>sF,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>cF,SEMATTRS_AWS_DYNAMODB_SELECT:()=>nF,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>uF,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>W2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>lF,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>PY,SEMATTRS_CODE_FILEPATH:()=>I2,SEMATTRS_CODE_FUNCTION:()=>g2,SEMATTRS_CODE_LINENO:()=>C2,SEMATTRS_CODE_NAMESPACE:()=>L2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>wY,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>YY,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>kY,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>GY,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>DY,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>VY,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>HY,SEMATTRS_DB_CASSANDRA_TABLE:()=>BY,SEMATTRS_DB_CONNECTION_STRING:()=>gY,SEMATTRS_DB_HBASE_NAMESPACE:()=>FY,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>IY,SEMATTRS_DB_MONGODB_COLLECTION:()=>jY,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>UY,SEMATTRS_DB_NAME:()=>CY,SEMATTRS_DB_OPERATION:()=>bY,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>KY,SEMATTRS_DB_SQL_TABLE:()=>qY,SEMATTRS_DB_STATEMENT:()=>xY,SEMATTRS_DB_SYSTEM:()=>MY,SEMATTRS_DB_USER:()=>LY,SEMATTRS_ENDUSER_ID:()=>N2,SEMATTRS_ENDUSER_ROLE:()=>R2,SEMATTRS_ENDUSER_SCOPE:()=>y2,SEMATTRS_EXCEPTION_ESCAPED:()=>XY,SEMATTRS_EXCEPTION_MESSAGE:()=>zY,SEMATTRS_EXCEPTION_STACKTRACE:()=>JY,SEMATTRS_EXCEPTION_TYPE:()=>WY,SEMATTRS_FAAS_COLDSTART:()=>i2,SEMATTRS_FAAS_CRON:()=>o2,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>ZY,SEMATTRS_FAAS_DOCUMENT_NAME:()=>r2,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>e2,SEMATTRS_FAAS_DOCUMENT_TIME:()=>t2,SEMATTRS_FAAS_EXECUTION:()=>QY,SEMATTRS_FAAS_INVOKED_NAME:()=>a2,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>u2,SEMATTRS_FAAS_INVOKED_REGION:()=>s2,SEMATTRS_FAAS_TIME:()=>n2,SEMATTRS_FAAS_TRIGGER:()=>$Y,SEMATTRS_HTTP_CLIENT_IP:()=>q2,SEMATTRS_HTTP_FLAVOR:()=>B2,SEMATTRS_HTTP_HOST:()=>D2,SEMATTRS_HTTP_METHOD:()=>x2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>H2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>k2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>Y2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>F2,SEMATTRS_HTTP_ROUTE:()=>j2,SEMATTRS_HTTP_SCHEME:()=>V2,SEMATTRS_HTTP_SERVER_NAME:()=>K2,SEMATTRS_HTTP_STATUS_CODE:()=>w2,SEMATTRS_HTTP_TARGET:()=>U2,SEMATTRS_HTTP_URL:()=>b2,SEMATTRS_HTTP_USER_AGENT:()=>G2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>KF,SEMATTRS_MESSAGE_ID:()=>FF,SEMATTRS_MESSAGE_TYPE:()=>YF,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>jF,SEMATTRS_MESSAGING_CONSUMER_ID:()=>MF,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>NF,SEMATTRS_MESSAGING_DESTINATION:()=>fF,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>dF,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>CF,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>IF,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>LF,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>xF,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>bF,SEMATTRS_MESSAGING_MESSAGE_ID:()=>hF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>yF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>RF,SEMATTRS_MESSAGING_OPERATION:()=>PF,SEMATTRS_MESSAGING_PROTOCOL:()=>vF,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>OF,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>gF,SEMATTRS_MESSAGING_SYSTEM:()=>SF,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>AF,SEMATTRS_MESSAGING_URL:()=>mF,SEMATTRS_NET_HOST_CARRIER_ICC:()=>m2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>v2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>O2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>A2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>d2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>f2,SEMATTRS_NET_HOST_IP:()=>E2,SEMATTRS_NET_HOST_NAME:()=>S2,SEMATTRS_NET_HOST_PORT:()=>T2,SEMATTRS_NET_PEER_IP:()=>l2,SEMATTRS_NET_PEER_NAME:()=>_2,SEMATTRS_NET_PEER_PORT:()=>p2,SEMATTRS_NET_TRANSPORT:()=>c2,SEMATTRS_PEER_SERVICE:()=>h2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>wF,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>HF,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>kF,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>GF,SEMATTRS_RPC_JSONRPC_VERSION:()=>BF,SEMATTRS_RPC_METHOD:()=>VF,SEMATTRS_RPC_SERVICE:()=>DF,SEMATTRS_RPC_SYSTEM:()=>UF,SEMATTRS_THREAD_ID:()=>P2,SEMATTRS_THREAD_NAME:()=>M2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Dj,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Uj,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>Vj,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>wj,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Bj,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>Gj,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>Hj,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Yj,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>kj,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>Kj,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Fj,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>Ij,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>xj,SEMRESATTRS_CLOUD_PLATFORM:()=>bj,SEMRESATTRS_CLOUD_PROVIDER:()=>Lj,SEMRESATTRS_CLOUD_REGION:()=>Cj,SEMRESATTRS_CONTAINER_ID:()=>qj,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>zj,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>Jj,SEMRESATTRS_CONTAINER_NAME:()=>jj,SEMRESATTRS_CONTAINER_RUNTIME:()=>Wj,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>Xj,SEMRESATTRS_DEVICE_ID:()=>$j,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Qj,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Zj,SEMRESATTRS_FAAS_ID:()=>tq,SEMRESATTRS_FAAS_INSTANCE:()=>nq,SEMRESATTRS_FAAS_MAX_MEMORY:()=>oq,SEMRESATTRS_FAAS_NAME:()=>eq,SEMRESATTRS_FAAS_VERSION:()=>rq,SEMRESATTRS_HOST_ARCH:()=>sq,SEMRESATTRS_HOST_ID:()=>iq,SEMRESATTRS_HOST_IMAGE_ID:()=>lq,SEMRESATTRS_HOST_IMAGE_NAME:()=>cq,SEMRESATTRS_HOST_IMAGE_VERSION:()=>pq,SEMRESATTRS_HOST_NAME:()=>aq,SEMRESATTRS_HOST_TYPE:()=>uq,SEMRESATTRS_K8S_CLUSTER_NAME:()=>_q,SEMRESATTRS_K8S_CONTAINER_NAME:()=>Aq,SEMRESATTRS_K8S_CRONJOB_NAME:()=>Iq,SEMRESATTRS_K8S_CRONJOB_UID:()=>Lq,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Pq,SEMRESATTRS_K8S_DAEMONSET_UID:()=>yq,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>hq,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>mq,SEMRESATTRS_K8S_JOB_NAME:()=>gq,SEMRESATTRS_K8S_JOB_UID:()=>Mq,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Sq,SEMRESATTRS_K8S_NODE_NAME:()=>Eq,SEMRESATTRS_K8S_NODE_UID:()=>Tq,SEMRESATTRS_K8S_POD_NAME:()=>dq,SEMRESATTRS_K8S_POD_UID:()=>fq,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Oq,SEMRESATTRS_K8S_REPLICASET_UID:()=>vq,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Rq,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Nq,SEMRESATTRS_OS_DESCRIPTION:()=>xq,SEMRESATTRS_OS_NAME:()=>bq,SEMRESATTRS_OS_TYPE:()=>Cq,SEMRESATTRS_OS_VERSION:()=>Uq,SEMRESATTRS_PROCESS_COMMAND:()=>Bq,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>Hq,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>Gq,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>Vq,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>wq,SEMRESATTRS_PROCESS_OWNER:()=>kq,SEMRESATTRS_PROCESS_PID:()=>Dq,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Kq,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Yq,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Fq,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Wq,SEMRESATTRS_SERVICE_NAME:()=>jq,SEMRESATTRS_SERVICE_NAMESPACE:()=>qq,SEMRESATTRS_SERVICE_VERSION:()=>zq,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Qq,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>Xq,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Jq,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>$q,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>t4,SEMRESATTRS_WEBENGINE_NAME:()=>Zq,SEMRESATTRS_WEBENGINE_VERSION:()=>e4,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>J6,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>X6,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>$6,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>Z6,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>e8,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>t8,SemanticAttributes:()=>qF,SemanticResourceAttributes:()=>r4,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>J4,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>X4,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>$4,TELEMETRYSDKLANGUAGEVALUES_GO:()=>Q4,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>Z4,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>eW,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>tW,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>rW,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>nW,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>oW,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>_W,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>EW,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>TW,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>SW,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>fW,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>dW,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>AW,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>vW,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>OW,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>mW,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>hW,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>NW,TelemetrySdkLanguageValues:()=>iW});var VP=d(()=>{aR();xP();bP();UP()});var wP=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.ExceptionEventName=void 0;$n.ExceptionEventName="exception"});var vu=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Span=void 0;var ce=(m(),N(y)),Q=x(),at=(VP(),N(DP)),G8=wP(),Au=class{constructor(r,i,c,a,u,t,e=[],n,s,l){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:ce.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=c,this._spanContext=a,this.parentSpanId=t,this.kind=u,this.links=e;let E=Date.now();this._performanceStartTime=Q.otperformance.now(),this._performanceOffset=E-(this._performanceStartTime+(0,Q.getTimeOrigin)()),this._startTimeProvided=n!=null,this.startTime=this._getTime(n??E),this.resource=r.resource,this.instrumentationLibrary=r.instrumentationLibrary,this._spanLimits=r.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=r.getActiveSpanProcessor(),this._spanProcessor.onStart(this,i)}spanContext(){return this._spanContext}setAttribute(r,i){return i==null||this._isSpanEnded()?this:r.length===0?(ce.diag.warn(`Invalid attribute key: ${r}`),this):(0,Q.isAttributeValue)(i)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(i),this):(ce.diag.warn(`Invalid attribute value set for key: ${r}`),this)}setAttributes(r){for(let[i,c]of Object.entries(r))this.setAttribute(i,c);return this}addEvent(r,i,c){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return ce.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&ce.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Q.isTimeInput)(i)&&((0,Q.isTimeInput)(c)||(c=i),i=void 0);let a=(0,Q.sanitizeAttributes)(i);return this.events.push({name:r,attributes:a,time:this._getTime(c),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status=Object.assign({},r),this.status.message!=null&&typeof r.message!="string"&&(ce.diag.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){ce.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=(0,Q.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(ce.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&&ce.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=Q.otperformance.now())return(0,Q.hrTime)(r+this._performanceOffset);if(typeof r=="number")return(0,Q.millisToHrTime)(r);if(r instanceof Date)return(0,Q.millisToHrTime)(r.getTime());if((0,Q.isTimeInputHrTime)(r))return r;if(this._startTimeProvided)return(0,Q.millisToHrTime)(Date.now());let i=Q.otperformance.now()-this._performanceStartTime;return(0,Q.addHrTimes)(this.startTime,(0,Q.millisToHrTime)(i))}isRecording(){return this._ended===!1}recordException(r,i){let c={};typeof r=="string"?c[at.SEMATTRS_EXCEPTION_MESSAGE]=r:r&&(r.code?c[at.SEMATTRS_EXCEPTION_TYPE]=r.code.toString():r.name&&(c[at.SEMATTRS_EXCEPTION_TYPE]=r.name),r.message&&(c[at.SEMATTRS_EXCEPTION_MESSAGE]=r.message),r.stack&&(c[at.SEMATTRS_EXCEPTION_STACKTRACE]=r.stack)),c[at.SEMATTRS_EXCEPTION_TYPE]||c[at.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(G8.ExceptionEventName,c,i):ce.diag.warn(`Failed to record an exception ${r}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){return this._ended&&ce.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(r,i){return r.length<=i?r:r.substring(0,i)}_truncateToSize(r){let i=this._attributeValueLengthLimit;return i<=0?(ce.diag.warn(`Attribute value limit must be positive, got ${i}`),r):typeof r=="string"?this._truncateToLimitUtil(r,i):Array.isArray(r)?r.map(c=>typeof c=="string"?this._truncateToLimitUtil(c,i):c):r}};Qn.Span=Au});var Mr=S(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.SamplingDecision=void 0;var H8;(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(H8=Pr.SamplingDecision||(Pr.SamplingDecision={}))});var eo=S(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AlwaysOffSampler=void 0;var k8=Mr(),Ou=class{shouldSample(){return{decision:k8.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Zn.AlwaysOffSampler=Ou});var ro=S(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.AlwaysOnSampler=void 0;var Y8=Mr(),mu=class{shouldSample(){return{decision:Y8.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};to.AlwaysOnSampler=mu});var Ru=S(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.ParentBasedSampler=void 0;var no=(m(),N(y)),F8=x(),BP=eo(),hu=ro(),Nu=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,F8.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new hu.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new hu.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new BP.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new hu.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new BP.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=no.trace.getSpanContext(r);return!e||!(0,no.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&no.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&no.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};oo.ParentBasedSampler=Nu});var Pu=S(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.TraceIdRatioBasedSampler=void 0;var K8=(m(),N(y)),GP=Mr(),yu=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,K8.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?GP.SamplingDecision.RECORD_AND_SAMPLED:GP.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};io.TraceIdRatioBasedSampler=yu});var Lu=S(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.buildSamplerFromEnv=bt.loadDefaultConfig=void 0;var ao=(m(),N(y)),be=x(),HP=eo(),Mu=ro(),gu=Ru(),kP=Pu(),j8=be.TracesSamplerValues.AlwaysOn,xt=1;function q8(){let o=(0,be.getEnv)();return{sampler:FP(o),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:o.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:o.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:o.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:o.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}bt.loadDefaultConfig=q8;function FP(o=(0,be.getEnv)()){switch(o.OTEL_TRACES_SAMPLER){case be.TracesSamplerValues.AlwaysOn:return new Mu.AlwaysOnSampler;case be.TracesSamplerValues.AlwaysOff:return new HP.AlwaysOffSampler;case be.TracesSamplerValues.ParentBasedAlwaysOn:return new gu.ParentBasedSampler({root:new Mu.AlwaysOnSampler});case be.TracesSamplerValues.ParentBasedAlwaysOff:return new gu.ParentBasedSampler({root:new HP.AlwaysOffSampler});case be.TracesSamplerValues.TraceIdRatio:return new kP.TraceIdRatioBasedSampler(YP(o));case be.TracesSamplerValues.ParentBasedTraceIdRatio:return new gu.ParentBasedSampler({root:new kP.TraceIdRatioBasedSampler(YP(o))});default:return ao.diag.error(`OTEL_TRACES_SAMPLER value "${o.OTEL_TRACES_SAMPLER} invalid, defaulting to ${j8}".`),new Mu.AlwaysOnSampler}}bt.buildSamplerFromEnv=FP;function YP(o){if(o.OTEL_TRACES_SAMPLER_ARG===void 0||o.OTEL_TRACES_SAMPLER_ARG==="")return ao.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${xt}.`),xt;let r=Number(o.OTEL_TRACES_SAMPLER_ARG);return isNaN(r)?(ao.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${xt}.`),xt):r<0||r>1?(ao.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${xt}.`),xt):r}});var Cu=S(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.reconfigureLimits=Ut.mergeConfig=void 0;var KP=Lu(),Iu=x();function W8(o){let r={sampler:(0,KP.buildSamplerFromEnv)()},i=(0,KP.loadDefaultConfig)(),c=Object.assign({},i,r,o);return c.generalLimits=Object.assign({},i.generalLimits,o.generalLimits||{}),c.spanLimits=Object.assign({},i.spanLimits,o.spanLimits||{}),c}Ut.mergeConfig=W8;function z8(o){var r,i,c,a,u,t,e,n,s,l,E,O;let g=Object.assign({},o.spanLimits),ue=(0,Iu.getEnvWithoutDefaults)();return g.attributeCountLimit=(t=(u=(a=(i=(r=o.spanLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:(c=o.generalLimits)===null||c===void 0?void 0:c.attributeCountLimit)!==null&&a!==void 0?a:ue.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:ue.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&t!==void 0?t:Iu.DEFAULT_ATTRIBUTE_COUNT_LIMIT,g.attributeValueLengthLimit=(O=(E=(l=(n=(e=o.spanLimits)===null||e===void 0?void 0:e.attributeValueLengthLimit)!==null&&n!==void 0?n:(s=o.generalLimits)===null||s===void 0?void 0:s.attributeValueLengthLimit)!==null&&l!==void 0?l:ue.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&E!==void 0?E:ue.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&O!==void 0?O:Iu.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},o,{spanLimits:g})}Ut.reconfigureLimits=z8});var jP=S(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.BatchSpanProcessorBase=void 0;var Dt=(m(),N(y)),ut=x(),xu=class{constructor(r,i){this._exporter=r,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let c=(0,ut.getEnv)();this._maxExportBatchSize=typeof i?.maxExportBatchSize=="number"?i.maxExportBatchSize:c.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof i?.maxQueueSize=="number"?i.maxQueueSize:c.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof i?.scheduledDelayMillis=="number"?i.scheduledDelayMillis:c.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof i?.exportTimeoutMillis=="number"?i.exportTimeoutMillis:c.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new ut.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Dt.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(r,i){}onEnd(r){this._shutdownOnce.isCalled||(r.spanContext().traceFlags&Dt.TraceFlags.SAMPLED)!==0&&this._addToBuffer(r)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(r){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Dt.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Dt.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(r),this._maybeStartTimer()}_flushAll(){return new Promise((r,i)=>{let c=[],a=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let u=0,t=a;u<t;u++)c.push(this._flushOneBatch());Promise.all(c).then(()=>{r()}).catch(i)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((r,i)=>{let c=setTimeout(()=>{i(new Error("Timeout"))},this._exportTimeoutMillis);Dt.context.with((0,ut.suppressTracing)(Dt.context.active()),()=>{let a;this._finishedSpans.length<=this._maxExportBatchSize?(a=this._finishedSpans,this._finishedSpans=[]):a=this._finishedSpans.splice(0,this._maxExportBatchSize);let u=()=>this._exporter.export(a,e=>{var n;clearTimeout(c),e.code===ut.ExportResultCode.SUCCESS?r():i((n=e.error)!==null&&n!==void 0?n:new Error("BatchSpanProcessor: span export failed"))}),t=null;for(let e=0,n=a.length;e<n;e++){let s=a[e];s.resource.asyncAttributesPending&&s.resource.waitForAsyncAttributes&&(t??(t=[]),t.push(s.resource.waitForAsyncAttributes()))}t===null?u():Promise.all(t).then(u,e=>{(0,ut.globalErrorHandler)(e),i(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let r=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(i=>{this._isExporting=!1,(0,ut.globalErrorHandler)(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(()=>r(),this._scheduledDelayMillis),(0,ut.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};uo.BatchSpanProcessorBase=xu});var qP=S(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.BatchSpanProcessor=void 0;var J8=jP(),bu=class extends J8.BatchSpanProcessorBase{onShutdown(){}};so.BatchSpanProcessor=bu});var JP=S(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.RandomIdGenerator=void 0;var X8=8,zP=16,Uu=class{constructor(){this.generateTraceId=WP(zP),this.generateSpanId=WP(X8)}};lo.RandomIdGenerator=Uu;var co=Buffer.allocUnsafe(zP);function WP(o){return function(){for(let i=0;i<o/4;i++)co.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(co[i]>0);i++)i===o-1&&(co[o-1]=1);return co.toString("hex",0,o)}}});var XP=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.RandomIdGenerator=Vt.BatchSpanProcessor=void 0;var $8=qP();Object.defineProperty(Vt,"BatchSpanProcessor",{enumerable:!0,get:function(){return $8.BatchSpanProcessor}});var Q8=JP();Object.defineProperty(Vt,"RandomIdGenerator",{enumerable:!0,get:function(){return Q8.RandomIdGenerator}})});var po=S(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.RandomIdGenerator=wt.BatchSpanProcessor=void 0;var $P=XP();Object.defineProperty(wt,"BatchSpanProcessor",{enumerable:!0,get:function(){return $P.BatchSpanProcessor}});Object.defineProperty(wt,"RandomIdGenerator",{enumerable:!0,get:function(){return $P.RandomIdGenerator}})});var Vu=S(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.Tracer=void 0;var W=(m(),N(y)),_o=x(),Z8=vu(),ez=Cu(),tz=po(),Du=class{constructor(r,i,c){this._tracerProvider=c;let a=(0,ez.mergeConfig)(i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=i.idGenerator||new tz.RandomIdGenerator,this.resource=c.resource,this.instrumentationLibrary=r}startSpan(r,i={},c=W.context.active()){var a,u,t;i.root&&(c=W.trace.deleteSpan(c));let e=W.trace.getSpan(c);if((0,_o.isTracingSuppressed)(c))return W.diag.debug("Instrumentation suppressed, returning Noop Span"),W.trace.wrapSpanContext(W.INVALID_SPAN_CONTEXT);let n=e?.spanContext(),s=this._idGenerator.generateSpanId(),l,E,O;!n||!W.trace.isSpanContextValid(n)?l=this._idGenerator.generateTraceId():(l=n.traceId,E=n.traceState,O=n.spanId);let g=(a=i.kind)!==null&&a!==void 0?a:W.SpanKind.INTERNAL,ue=((u=i.links)!==null&&u!==void 0?u:[]).map(Qr=>({context:Qr.context,attributes:(0,_o.sanitizeAttributes)(Qr.attributes)})),ve=(0,_o.sanitizeAttributes)(i.attributes),Ie=this._sampler.shouldSample(c,l,r,g,ve,ue);E=(t=Ie.traceState)!==null&&t!==void 0?t:E;let $r=Ie.decision===W.SamplingDecision.RECORD_AND_SAMPLED?W.TraceFlags.SAMPLED:W.TraceFlags.NONE,Ic={traceId:l,spanId:s,traceFlags:$r,traceState:E};if(Ie.decision===W.SamplingDecision.NOT_RECORD)return W.diag.debug("Recording is off, propagating context in a non-recording span"),W.trace.wrapSpanContext(Ic);let oC=(0,_o.sanitizeAttributes)(Object.assign(ve,Ie.attributes));return new Z8.Span(this,c,r,Ic,g,O,ue,i.startTime,void 0,oC)}startActiveSpan(r,i,c,a){let u,t,e;if(arguments.length<2)return;arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);let n=t??W.context.active(),s=this.startSpan(r,u,n),l=W.trace.setSpan(n,s);return W.context.with(l,e,void 0,s)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};Eo.Tracer=Du});var To=S((BZ,QP)=>{"use strict";var Ue=class o{constructor(r,i){this._attributes=r||{},this._syncAttributes=this._attributes,this.asyncAttributesPending=i!=null,i&&(this._asyncAttributesPromise=i.then(c=>(this._attributes=Object.assign({},this._attributes,c),this.asyncAttributesPending=!1,c),()=>(this.asyncAttributesPending=!1,{})))}get attributes(){return this._attributes||{}}waitForAsyncAttributes(){return this.asyncAttributesPending?this._asyncAttributesPromise:Promise.resolve()}merge(r){if(!r)return this;let i=Object.assign({},this._syncAttributes,r._syncAttributes||r.attributes);return new o(i)}};Ue.EMPTY=new Ue({});Ue.empty=function(){return Ue.EMPTY};Ue.default=function(){return new Ue({"telemetry.sdk.language":"nodejs"})};QP.exports={Resource:Ue}});var ZP=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MultiSpanProcessor=void 0;var rz=x(),wu=class{constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let i of this._spanProcessors)r.push(i.forceFlush());return new Promise(i=>{Promise.all(r).then(()=>{i()}).catch(c=>{(0,rz.globalErrorHandler)(c||new Error("MultiSpanProcessor: forceFlush failed")),i()})})}onStart(r,i){for(let c of this._spanProcessors)c.onStart(r,i)}onEnd(r){for(let i of this._spanProcessors)i.onEnd(r)}shutdown(){let r=[];for(let i of this._spanProcessors)r.push(i.shutdown());return new Promise((i,c)=>{Promise.all(r).then(()=>{i()},c)})}};So.MultiSpanProcessor=wu});var Gu=S(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.NoopSpanProcessor=void 0;var Bu=class{onStart(r,i){}onEnd(r){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};fo.NoopSpanProcessor=Bu});var rM=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.BasicTracerProvider=st.ForceFlushState=void 0;var Bt=(m(),N(y)),Ht=x(),eM=To(),nz=Vu(),oz=Lu(),tM=ZP(),iz=Gu(),az=po(),uz=Cu(),Gt;(function(o){o[o.resolved=0]="resolved",o[o.timeout=1]="timeout",o[o.error=2]="error",o[o.unresolved=3]="unresolved"})(Gt=st.ForceFlushState||(st.ForceFlushState={}));var gr=class{constructor(r={}){var i,c;this._registeredSpanProcessors=[],this._tracers=new Map;let a=(0,Ht.merge)({},(0,oz.loadDefaultConfig)(),(0,uz.reconfigureLimits)(r));if(this.resource=(i=a.resource)!==null&&i!==void 0?i:eM.Resource.empty(),a.mergeResourceWithDefaults&&(this.resource=eM.Resource.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((c=r.spanProcessors)===null||c===void 0)&&c.length)this._registeredSpanProcessors=[...r.spanProcessors],this.activeSpanProcessor=new tM.MultiSpanProcessor(this._registeredSpanProcessors);else{let u=this._buildExporterFromEnv();if(u!==void 0){let t=new az.BatchSpanProcessor(u);this.activeSpanProcessor=t}else this.activeSpanProcessor=new iz.NoopSpanProcessor}}getTracer(r,i,c){let a=`${r}@${i||""}:${c?.schemaUrl||""}`;return this._tracers.has(a)||this._tracers.set(a,new nz.Tracer({name:r,version:i,schemaUrl:c?.schemaUrl},this._config,this)),this._tracers.get(a)}addSpanProcessor(r){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(i=>Bt.diag.error("Error while trying to shutdown current span processor",i)),this._registeredSpanProcessors.push(r),this.activeSpanProcessor=new tM.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(r={}){Bt.trace.setGlobalTracerProvider(this),r.propagator===void 0&&(r.propagator=this._buildPropagatorFromEnv()),r.contextManager&&Bt.context.setGlobalContextManager(r.contextManager),r.propagator&&Bt.propagation.setGlobalPropagator(r.propagator)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,i=this._registeredSpanProcessors.map(c=>new Promise(a=>{let u,t=setTimeout(()=>{a(new Error(`Span processor did not completed within timeout period of ${r} ms`)),u=Gt.timeout},r);c.forceFlush().then(()=>{clearTimeout(t),u!==Gt.timeout&&(u=Gt.resolved,a(u))}).catch(e=>{clearTimeout(t),u=Gt.error,a(e)})}));return new Promise((c,a)=>{Promise.all(i).then(u=>{let t=u.filter(e=>e!==Gt.resolved);t.length>0?a(t):c()}).catch(u=>a([u]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(r){var i;return(i=this.constructor._registeredPropagators.get(r))===null||i===void 0?void 0:i()}_getSpanExporter(r){var i;return(i=this.constructor._registeredExporters.get(r))===null||i===void 0?void 0:i()}_buildPropagatorFromEnv(){let r=Array.from(new Set((0,Ht.getEnv)().OTEL_PROPAGATORS)),c=r.map(a=>{let u=this._getPropagator(a);return u||Bt.diag.warn(`Propagator "${a}" requested through environment variable is unavailable.`),u}).reduce((a,u)=>(u&&a.push(u),a),[]);if(c.length!==0)return r.length===1?c[0]:new Ht.CompositePropagator({propagators:c})}_buildExporterFromEnv(){let r=(0,Ht.getEnv)().OTEL_TRACES_EXPORTER;if(r==="none"||r==="")return;let i=this._getSpanExporter(r);return i||Bt.diag.error(`Exporter "${r}" requested through environment variable is unavailable.`),i}};st.BasicTracerProvider=gr;gr._registeredPropagators=new Map([["tracecontext",()=>new Ht.W3CTraceContextPropagator],["baggage",()=>new Ht.W3CBaggagePropagator]]);gr._registeredExporters=new Map});var nM=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.ConsoleSpanExporter=void 0;var Hu=x(),ku=class{export(r,i){return this._sendSpans(r,i)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(r){var i;return{resource:{attributes:r.resource.attributes},instrumentationScope:r.instrumentationLibrary,traceId:r.spanContext().traceId,parentId:r.parentSpanId,traceState:(i=r.spanContext().traceState)===null||i===void 0?void 0:i.serialize(),name:r.name,id:r.spanContext().spanId,kind:r.kind,timestamp:(0,Hu.hrTimeToMicroseconds)(r.startTime),duration:(0,Hu.hrTimeToMicroseconds)(r.duration),attributes:r.attributes,status:r.status,events:r.events,links:r.links}}_sendSpans(r,i){for(let c of r)console.dir(this._exportInfo(c),{depth:3});if(i)return i({code:Hu.ExportResultCode.SUCCESS})}};Ao.ConsoleSpanExporter=ku});var iM=S(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.InMemorySpanExporter=void 0;var oM=x(),Yu=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(r,i){if(this._stopped)return i({code:oM.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...r),setTimeout(()=>i({code:oM.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};vo.InMemorySpanExporter=Yu});var aM=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.SimpleSpanProcessor=void 0;var sz=(m(),N(y)),kt=x(),Fu=class{constructor(r){this._exporter=r,this._shutdownOnce=new kt.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(r,i){}onEnd(r){var i,c;if(this._shutdownOnce.isCalled||(r.spanContext().traceFlags&sz.TraceFlags.SAMPLED)===0)return;let a=()=>kt.internal._export(this._exporter,[r]).then(u=>{var t;u.code!==kt.ExportResultCode.SUCCESS&&(0,kt.globalErrorHandler)((t=u.error)!==null&&t!==void 0?t:new Error(`SimpleSpanProcessor: span export failed (status ${u})`))}).catch(u=>{(0,kt.globalErrorHandler)(u)});if(r.resource.asyncAttributesPending){let u=(c=(i=r.resource).waitForAsyncAttributes)===null||c===void 0?void 0:c.call(i).then(()=>(u!=null&&this._unresolvedExports.delete(u),a()),t=>(0,kt.globalErrorHandler)(t));u!=null&&this._unresolvedExports.add(u)}else a()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};Oo.SimpleSpanProcessor=Fu});var cM=S(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.Span=M.SamplingDecision=M.TraceIdRatioBasedSampler=M.ParentBasedSampler=M.AlwaysOnSampler=M.AlwaysOffSampler=M.NoopSpanProcessor=M.SimpleSpanProcessor=M.InMemorySpanExporter=M.ConsoleSpanExporter=M.RandomIdGenerator=M.BatchSpanProcessor=M.ForceFlushState=M.BasicTracerProvider=M.Tracer=void 0;var cz=Vu();Object.defineProperty(M,"Tracer",{enumerable:!0,get:function(){return cz.Tracer}});var uM=rM();Object.defineProperty(M,"BasicTracerProvider",{enumerable:!0,get:function(){return uM.BasicTracerProvider}});Object.defineProperty(M,"ForceFlushState",{enumerable:!0,get:function(){return uM.ForceFlushState}});var sM=po();Object.defineProperty(M,"BatchSpanProcessor",{enumerable:!0,get:function(){return sM.BatchSpanProcessor}});Object.defineProperty(M,"RandomIdGenerator",{enumerable:!0,get:function(){return sM.RandomIdGenerator}});var lz=nM();Object.defineProperty(M,"ConsoleSpanExporter",{enumerable:!0,get:function(){return lz.ConsoleSpanExporter}});var pz=iM();Object.defineProperty(M,"InMemorySpanExporter",{enumerable:!0,get:function(){return pz.InMemorySpanExporter}});var _z=aM();Object.defineProperty(M,"SimpleSpanProcessor",{enumerable:!0,get:function(){return _z.SimpleSpanProcessor}});var Ez=Gu();Object.defineProperty(M,"NoopSpanProcessor",{enumerable:!0,get:function(){return Ez.NoopSpanProcessor}});var Tz=eo();Object.defineProperty(M,"AlwaysOffSampler",{enumerable:!0,get:function(){return Tz.AlwaysOffSampler}});var Sz=ro();Object.defineProperty(M,"AlwaysOnSampler",{enumerable:!0,get:function(){return Sz.AlwaysOnSampler}});var fz=Ru();Object.defineProperty(M,"ParentBasedSampler",{enumerable:!0,get:function(){return fz.ParentBasedSampler}});var dz=Pu();Object.defineProperty(M,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return dz.TraceIdRatioBasedSampler}});var Az=Mr();Object.defineProperty(M,"SamplingDecision",{enumerable:!0,get:function(){return Az.SamplingDecision}});var vz=vu();Object.defineProperty(M,"Span",{enumerable:!0,get:function(){return vz.Span}})});var mo=S(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.AggregationTemporality=void 0;var Oz;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE"})(Oz=Lr.AggregationTemporality||(Lr.AggregationTemporality={}))});var Yt=S(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.DataPointType=void 0;var mz;(function(o){o[o.HISTOGRAM=0]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",o[o.GAUGE=2]="GAUGE",o[o.SUM=3]="SUM"})(mz=Ir.DataPointType||(Ir.DataPointType={}))});var Te=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.equalsCaseInsensitive=I.binarySearchUB=I.setEquals=I.FlatMap=I.isPromiseAllSettledRejectionResult=I.PromiseAllSettled=I.callWithTimeout=I.TimeoutError=I.instrumentationScopeId=I.hashAttributes=I.isNotNullish=void 0;function hz(o){return o!=null}I.isNotNullish=hz;function Nz(o){let r=Object.keys(o);return r.length===0?"":(r=r.sort(),JSON.stringify(r.map(i=>[i,o[i]])))}I.hashAttributes=Nz;function Rz(o){var r,i;return`${o.name}:${(r=o.version)!==null&&r!==void 0?r:""}:${(i=o.schemaUrl)!==null&&i!==void 0?i:""}`}I.instrumentationScopeId=Rz;var ho=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};I.TimeoutError=ho;function yz(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new ho("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}I.callWithTimeout=yz;async function Pz(o){return Promise.all(o.map(async r=>{try{return{status:"fulfilled",value:await r}}catch(i){return{status:"rejected",reason:i}}}))}I.PromiseAllSettled=Pz;function Mz(o){return o.status==="rejected"}I.isPromiseAllSettledRejectionResult=Mz;function gz(o,r){let i=[];return o.forEach(c=>{i.push(...r(c))}),i}I.FlatMap=gz;function Lz(o,r){if(o.size!==r.size)return!1;for(let i of o)if(!r.has(i))return!1;return!0}I.setEquals=Lz;function Iz(o,r){let i=0,c=o.length-1,a=o.length;for(;c>=i;){let u=i+Math.trunc((c-i)/2);o[u]<r?i=u+1:(a=u,c=u-1)}return a}I.binarySearchUB=Iz;function Cz(o,r){return o.toLowerCase()===r.toLowerCase()}I.equalsCaseInsensitive=Cz});var Ft=S(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.AggregatorKind=void 0;var xz;(function(o){o[o.DROP=0]="DROP",o[o.SUM=1]="SUM",o[o.LAST_VALUE=2]="LAST_VALUE",o[o.HISTOGRAM=3]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(xz=Cr.AggregatorKind||(Cr.AggregatorKind={}))});var lM=S(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.DropAggregator=void 0;var bz=Ft(),Ku=class{constructor(){this.kind=bz.AggregatorKind.DROP}createAccumulation(){}merge(r,i){}diff(r,i){}toMetricData(r,i,c,a){}};No.DropAggregator=Ku});var De=S(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.isValidName=ae.isDescriptorCompatibleWith=ae.createInstrumentDescriptorWithView=ae.createInstrumentDescriptor=ae.InstrumentType=void 0;var pM=(m(),N(y)),Uz=Te(),Dz;(function(o){o.COUNTER="COUNTER",o.GAUGE="GAUGE",o.HISTOGRAM="HISTOGRAM",o.UP_DOWN_COUNTER="UP_DOWN_COUNTER",o.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",o.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",o.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(Dz=ae.InstrumentType||(ae.InstrumentType={}));function Vz(o,r,i){var c,a,u,t;return _M(o)||pM.diag.warn(`Invalid metric name: "${o}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:o,type:r,description:(c=i?.description)!==null&&c!==void 0?c:"",unit:(a=i?.unit)!==null&&a!==void 0?a:"",valueType:(u=i?.valueType)!==null&&u!==void 0?u:pM.ValueType.DOUBLE,advice:(t=i?.advice)!==null&&t!==void 0?t:{}}}ae.createInstrumentDescriptor=Vz;function wz(o,r){var i,c;return{name:(i=o.name)!==null&&i!==void 0?i:r.name,description:(c=o.description)!==null&&c!==void 0?c:r.description,type:r.type,unit:r.unit,valueType:r.valueType,advice:r.advice}}ae.createInstrumentDescriptorWithView=wz;function Bz(o,r){return(0,Uz.equalsCaseInsensitive)(o.name,r.name)&&o.unit===r.unit&&o.type===r.type&&o.valueType===r.valueType}ae.isDescriptorCompatibleWith=Bz;var Gz=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function _M(o){return o.match(Gz)!=null}ae.isValidName=_M});var EM=S(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.HistogramAggregator=jt.HistogramAccumulation=void 0;var Hz=Ft(),kz=Yt(),Ro=De(),Yz=Te();function Fz(o){let r=o.map(()=>0);return r.push(0),{buckets:{boundaries:o,counts:r},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var Kt=class{constructor(r,i,c=!0,a=Fz(i)){this.startTime=r,this._boundaries=i,this._recordMinMax=c,this._current=a}record(r){if(Number.isNaN(r))return;this._current.count+=1,this._current.sum+=r,this._recordMinMax&&(this._current.min=Math.min(r,this._current.min),this._current.max=Math.max(r,this._current.max),this._current.hasMinMax=!0);let i=(0,Yz.binarySearchUB)(this._boundaries,r);this._current.buckets.counts[i]+=1}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};jt.HistogramAccumulation=Kt;var ju=class{constructor(r,i){this._boundaries=r,this._recordMinMax=i,this.kind=Hz.AggregatorKind.HISTOGRAM}createAccumulation(r){return new Kt(r,this._boundaries,this._recordMinMax)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let l=0;l<u.length;l++)e[l]=u[l]+t[l];let n=1/0,s=-1/0;return this._recordMinMax&&(c.hasMinMax&&a.hasMinMax?(n=Math.min(c.min,a.min),s=Math.max(c.max,a.max)):c.hasMinMax?(n=c.min,s=c.max):a.hasMinMax&&(n=a.min,s=a.max)),new Kt(r.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:c.count+a.count,sum:c.sum+a.sum,hasMinMax:this._recordMinMax&&(c.hasMinMax||a.hasMinMax),min:n,max:s})}diff(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let n=0;n<u.length;n++)e[n]=t[n]-u[n];return new Kt(i.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:a.count-c.count,sum:a.sum-c.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:kz.DataPointType.HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===Ro.InstrumentType.GAUGE||r.type===Ro.InstrumentType.UP_DOWN_COUNTER||r.type===Ro.InstrumentType.OBSERVABLE_GAUGE||r.type===Ro.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,buckets:e.buckets,count:e.count}}})}}};jt.HistogramAggregator=ju});var TM=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.Buckets=void 0;var qu=class o{constructor(r=new Wu,i=0,c=0,a=0){this.backing=r,this.indexBase=i,this.indexStart=c,this.indexEnd=a}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(r,i)=>this.at(i))}at(r){let i=this.indexBase-this.indexStart;return r<i&&(r+=this.backing.length),r-=i,this.backing.countAt(r)}incrementBucket(r,i){this.backing.increment(r,i)}decrementBucket(r,i){this.backing.decrement(r,i)}trim(){for(let r=0;r<this.length;r++)if(this.at(r)!==0){this.indexStart+=r;break}else if(r===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let r=this.length-1;r>=0;r--)if(this.at(r)!==0){this.indexEnd-=this.length-r-1;break}this._rotate()}downscale(r){this._rotate();let i=1+this.indexEnd-this.indexStart,c=1<<r,a=0,u=0;for(let t=this.indexStart;t<=this.indexEnd;){let e=t%c;e<0&&(e+=c);for(let n=e;n<c&&a<i;n++)this._relocateBucket(u,a),a++,t++;u++}this.indexStart>>=r,this.indexEnd>>=r,this.indexBase=this.indexStart}clone(){return new o(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let r=this.indexBase-this.indexStart;r!==0&&(r>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,r),this.backing.reverse(r,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+r)),this.indexBase=this.indexStart)}_relocateBucket(r,i){r!==i&&this.incrementBucket(r,this.backing.emptyBucket(i))}};yo.Buckets=qu;var Wu=class o{constructor(r=[0]){this._counts=r}get length(){return this._counts.length}countAt(r){return this._counts[r]}growTo(r,i,c){let a=new Array(r).fill(0);a.splice(c,this._counts.length-i,...this._counts.slice(i)),a.splice(0,i,...this._counts.slice(0,i)),this._counts=a}reverse(r,i){let c=Math.floor((r+i)/2)-r;for(let a=0;a<c;a++){let u=this._counts[r+a];this._counts[r+a]=this._counts[i-a-1],this._counts[i-a-1]=u}}emptyBucket(r){let i=this._counts[r];return this._counts[r]=0,i}increment(r,i){this._counts[r]+=i}decrement(r,i){this._counts[r]>=i?this._counts[r]-=i:this._counts[r]=0}clone(){return new o([...this._counts])}}});var Ju=S(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getSignificand=Z.getNormalBase2=Z.MIN_VALUE=Z.MAX_NORMAL_EXPONENT=Z.MIN_NORMAL_EXPONENT=Z.SIGNIFICAND_WIDTH=void 0;Z.SIGNIFICAND_WIDTH=52;var Kz=2146435072,jz=1048575,zu=1023;Z.MIN_NORMAL_EXPONENT=-zu+1;Z.MAX_NORMAL_EXPONENT=zu;Z.MIN_VALUE=Math.pow(2,-1022);function qz(o){let r=new DataView(new ArrayBuffer(8));return r.setFloat64(0,o),((r.getUint32(0)&Kz)>>20)-zu}Z.getNormalBase2=qz;function Wz(o){let r=new DataView(new ArrayBuffer(8));r.setFloat64(0,o);let i=r.getUint32(0),c=r.getUint32(4);return(i&jz)*Math.pow(2,32)+c}Z.getSignificand=Wz});var Po=S(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.nextGreaterSquare=qt.ldexp=void 0;function zz(o,r){return o===0||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY||Number.isNaN(o)?o:o*Math.pow(2,r)}qt.ldexp=zz;function Jz(o){return o--,o|=o>>1,o|=o>>2,o|=o>>4,o|=o>>8,o|=o>>16,o++,o}qt.nextGreaterSquare=Jz});var go=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.MappingError=void 0;var Xu=class extends Error{};Mo.MappingError=Xu});var fM=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ExponentMapping=void 0;var Wt=Ju(),Xz=Po(),SM=go(),$u=class{constructor(r){this._shift=-r}mapToIndex(r){if(r<Wt.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let i=Wt.getNormalBase2(r),c=this._rightShift(Wt.getSignificand(r)-1,Wt.SIGNIFICAND_WIDTH);return i+c>>this._shift}lowerBoundary(r){let i=this._minNormalLowerBoundaryIndex();if(r<i)throw new SM.MappingError(`underflow: ${r} is < minimum lower boundary: ${i}`);let c=this._maxNormalLowerBoundaryIndex();if(r>c)throw new SM.MappingError(`overflow: ${r} is > maximum lower boundary: ${c}`);return Xz.ldexp(1,r<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let r=Wt.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&r--,r}_maxNormalLowerBoundaryIndex(){return Wt.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(r,i){return Math.floor(r*Math.pow(2,-i))}};Lo.ExponentMapping=$u});var vM=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LogarithmMapping=void 0;var zt=Ju(),dM=Po(),AM=go(),Qu=class{constructor(r){this._scale=r,this._scaleFactor=dM.ldexp(Math.LOG2E,r),this._inverseFactor=dM.ldexp(Math.LN2,-r)}mapToIndex(r){if(r<=zt.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(zt.getSignificand(r)===0)return(zt.getNormalBase2(r)<<this._scale)-1;let i=Math.floor(Math.log(r)*this._scaleFactor),c=this._maxNormalLowerBoundaryIndex();return i>=c?c:i}lowerBoundary(r){let i=this._maxNormalLowerBoundaryIndex();if(r>=i){if(r===i)return 2*Math.exp((r-(1<<this._scale))/this._scaleFactor);throw new AM.MappingError(`overflow: ${r} is > maximum lower boundary: ${i}`)}let c=this._minNormalLowerBoundaryIndex();if(r<=c){if(r===c)return zt.MIN_VALUE;if(r===c-1)return Math.exp((r+(1<<this._scale))/this._scaleFactor)/2;throw new AM.MappingError(`overflow: ${r} is < minimum lower boundary: ${c}`)}return Math.exp(r*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return zt.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(zt.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};Io.LogarithmMapping=Qu});var hM=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.getMapping=void 0;var $z=fM(),Qz=vM(),Zz=go(),OM=-10,mM=20,eJ=Array.from({length:31},(o,r)=>r>10?new Qz.LogarithmMapping(r-10):new $z.ExponentMapping(r-10));function tJ(o){if(o>mM||o<OM)throw new Zz.MappingError(`expected scale >= ${OM} && <= ${mM}, got: ${o}`);return eJ[o+10]}Co.getMapping=tJ});var yM=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.ExponentialHistogramAggregator=Xt.ExponentialHistogramAccumulation=void 0;var rJ=Ft(),nJ=Yt(),oJ=(m(),N(y)),xo=De(),NM=TM(),RM=hM(),iJ=Po(),Jt=class o{constructor(r,i){this.low=r,this.high=i}static combine(r,i){return new o(Math.min(r.low,i.low),Math.max(r.high,i.high))}},aJ=20,uJ=160,Zu=2,bo=class o{constructor(r=r,i=uJ,c=!0,a=0,u=0,t=0,e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,s=new NM.Buckets,l=new NM.Buckets,E=(0,RM.getMapping)(aJ)){this.startTime=r,this._maxSize=i,this._recordMinMax=c,this._sum=a,this._count=u,this._zeroCount=t,this._min=e,this._max=n,this._positive=s,this._negative=l,this._mapping=E,this._maxSize<Zu&&(oJ.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Zu}`),this._maxSize=Zu)}record(r){this.updateByIncrement(r,1)}setStartTime(r){this.startTime=r}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(r,i){if(!Number.isNaN(r)){if(r>this._max&&(this._max=r),r<this._min&&(this._min=r),this._count+=i,r===0){this._zeroCount+=i;return}this._sum+=r*i,r>0?this._updateBuckets(this._positive,r,i):this._updateBuckets(this._negative,-r,i)}}merge(r){this._count===0?(this._min=r.min,this._max=r.max):r.count!==0&&(r.min<this.min&&(this._min=r.min),r.max>this.max&&(this._max=r.max)),this.startTime=r.startTime,this._sum+=r.sum,this._count+=r.count,this._zeroCount+=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._mergeBuckets(this.positive,r,r.positive,i),this._mergeBuckets(this.negative,r,r.negative,i)}diff(r){this._min=1/0,this._max=-1/0,this._sum-=r.sum,this._count-=r.count,this._zeroCount-=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._diffBuckets(this.positive,r,r.positive,i),this._diffBuckets(this.negative,r,r.negative,i)}clone(){return new o(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(r,i,c){let a=this._mapping.mapToIndex(i),u=!1,t=0,e=0;if(r.length===0?(r.indexStart=a,r.indexEnd=r.indexStart,r.indexBase=r.indexStart):a<r.indexStart&&r.indexEnd-a>=this._maxSize?(u=!0,e=a,t=r.indexEnd):a>r.indexEnd&&a-r.indexStart>=this._maxSize&&(u=!0,e=r.indexStart,t=a),u){let n=this._changeScale(t,e);this._downscale(n),a=this._mapping.mapToIndex(i)}this._incrementIndexBy(r,a,c)}_incrementIndexBy(r,i,c){if(c===0)return;if(r.length===0&&(r.indexStart=r.indexEnd=r.indexBase=i),i<r.indexStart){let u=r.indexEnd-i;u>=r.backing.length&&this._grow(r,u+1),r.indexStart=i}else if(i>r.indexEnd){let u=i-r.indexStart;u>=r.backing.length&&this._grow(r,u+1),r.indexEnd=i}let a=i-r.indexBase;a<0&&(a+=r.backing.length),r.incrementBucket(a,c)}_grow(r,i){let c=r.backing.length,a=r.indexBase-r.indexStart,u=c-a,t=(0,iJ.nextGreaterSquare)(i);t>this._maxSize&&(t=this._maxSize);let e=t-a;r.backing.growTo(t,u,e)}_changeScale(r,i){let c=0;for(;r-i>=this._maxSize;)r>>=1,i>>=1,c++;return c}_downscale(r){if(r===0)return;if(r<0)throw new Error(`impossible change of scale: ${this.scale}`);let i=this._mapping.scale-r;this._positive.downscale(r),this._negative.downscale(r),this._mapping=(0,RM.getMapping)(i)}_minScale(r){let i=Math.min(this.scale,r.scale),c=Jt.combine(this._highLowAtScale(this.positive,this.scale,i),this._highLowAtScale(r.positive,r.scale,i)),a=Jt.combine(this._highLowAtScale(this.negative,this.scale,i),this._highLowAtScale(r.negative,r.scale,i));return Math.min(i-this._changeScale(c.high,c.low),i-this._changeScale(a.high,a.low))}_highLowAtScale(r,i,c){if(r.length===0)return new Jt(0,-1);let a=i-c;return new Jt(r.indexStart>>a,r.indexEnd>>a)}_mergeBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++)this._incrementIndexBy(r,u+e>>t,c.at(e))}_diffBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++){let s=(u+e>>t)-r.indexBase;s<0&&(s+=r.backing.length),r.decrementBucket(s,c.at(e))}r.trim()}};Xt.ExponentialHistogramAccumulation=bo;var es=class{constructor(r,i){this._maxSize=r,this._recordMinMax=i,this.kind=rJ.AggregatorKind.EXPONENTIAL_HISTOGRAM}createAccumulation(r){return new bo(r,this._maxSize,this._recordMinMax)}merge(r,i){let c=i.clone();return c.merge(r),c}diff(r,i){let c=i.clone();return c.diff(r),c}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:nJ.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===xo.InstrumentType.GAUGE||r.type===xo.InstrumentType.UP_DOWN_COUNTER||r.type===xo.InstrumentType.OBSERVABLE_GAUGE||r.type===xo.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,positive:{offset:e.positive.offset,bucketCounts:e.positive.bucketCounts},negative:{offset:e.negative.offset,bucketCounts:e.negative.bucketCounts},count:e.count,scale:e.scale,zeroCount:e.zeroCount}}})}}};Xt.ExponentialHistogramAggregator=es});var PM=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.LastValueAggregator=Qt.LastValueAccumulation=void 0;var sJ=Ft(),xr=x(),cJ=Yt(),$t=class{constructor(r,i=0,c=[0,0]){this.startTime=r,this._current=i,this.sampleTime=c}record(r){this._current=r,this.sampleTime=(0,xr.millisToHrTime)(Date.now())}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Qt.LastValueAccumulation=$t;var ts=class{constructor(){this.kind=sJ.AggregatorKind.LAST_VALUE}createAccumulation(r){return new $t(r)}merge(r,i){let c=(0,xr.hrTimeToMicroseconds)(i.sampleTime)>=(0,xr.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new $t(r.startTime,c.toPointValue(),c.sampleTime)}diff(r,i){let c=(0,xr.hrTimeToMicroseconds)(i.sampleTime)>=(0,xr.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new $t(i.startTime,c.toPointValue(),c.sampleTime)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:cJ.DataPointType.GAUGE,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()}))}}};Qt.LastValueAggregator=ts});var MM=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.SumAggregator=Zt.SumAccumulation=void 0;var lJ=Ft(),pJ=Yt(),We=class{constructor(r,i,c=0,a=!1){this.startTime=r,this.monotonic=i,this._current=c,this.reset=a}record(r){this.monotonic&&r<0||(this._current+=r)}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Zt.SumAccumulation=We;var rs=class{constructor(r){this.monotonic=r,this.kind=lJ.AggregatorKind.SUM}createAccumulation(r){return new We(r,this.monotonic)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue();return i.reset?new We(i.startTime,this.monotonic,a,i.reset):new We(r.startTime,this.monotonic,c+a)}diff(r,i){let c=r.toPointValue(),a=i.toPointValue();return this.monotonic&&c>a?new We(i.startTime,this.monotonic,a,!0):new We(i.startTime,this.monotonic,a-c)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:pJ.DataPointType.SUM,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()})),isMonotonic:this.monotonic}}};Zt.SumAggregator=rs});var xM=S(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.SumAggregator=G.SumAccumulation=G.LastValueAggregator=G.LastValueAccumulation=G.ExponentialHistogramAggregator=G.ExponentialHistogramAccumulation=G.HistogramAggregator=G.HistogramAccumulation=G.DropAggregator=void 0;var _J=lM();Object.defineProperty(G,"DropAggregator",{enumerable:!0,get:function(){return _J.DropAggregator}});var gM=EM();Object.defineProperty(G,"HistogramAccumulation",{enumerable:!0,get:function(){return gM.HistogramAccumulation}});Object.defineProperty(G,"HistogramAggregator",{enumerable:!0,get:function(){return gM.HistogramAggregator}});var LM=yM();Object.defineProperty(G,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return LM.ExponentialHistogramAccumulation}});Object.defineProperty(G,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return LM.ExponentialHistogramAggregator}});var IM=PM();Object.defineProperty(G,"LastValueAccumulation",{enumerable:!0,get:function(){return IM.LastValueAccumulation}});Object.defineProperty(G,"LastValueAggregator",{enumerable:!0,get:function(){return IM.LastValueAggregator}});var CM=MM();Object.defineProperty(G,"SumAccumulation",{enumerable:!0,get:function(){return CM.SumAccumulation}});Object.defineProperty(G,"SumAggregator",{enumerable:!0,get:function(){return CM.SumAggregator}})});var wo=S(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.DefaultAggregation=K.ExponentialHistogramAggregation=K.ExplicitBucketHistogramAggregation=K.HistogramAggregation=K.LastValueAggregation=K.SumAggregation=K.DropAggregation=K.Aggregation=void 0;var EJ=(m(),N(y)),ct=xM(),ye=De(),Pe=class{static Drop(){return bM}static Sum(){return UM}static LastValue(){return DM}static Histogram(){return VM}static ExponentialHistogram(){return TJ}static Default(){return SJ}};K.Aggregation=Pe;var br=class o extends Pe{createAggregator(r){return o.DEFAULT_INSTANCE}};K.DropAggregation=br;br.DEFAULT_INSTANCE=new ct.DropAggregator;var er=class o extends Pe{createAggregator(r){switch(r.type){case ye.InstrumentType.COUNTER:case ye.InstrumentType.OBSERVABLE_COUNTER:case ye.InstrumentType.HISTOGRAM:return o.MONOTONIC_INSTANCE;default:return o.NON_MONOTONIC_INSTANCE}}};K.SumAggregation=er;er.MONOTONIC_INSTANCE=new ct.SumAggregator(!0);er.NON_MONOTONIC_INSTANCE=new ct.SumAggregator(!1);var Ur=class o extends Pe{createAggregator(r){return o.DEFAULT_INSTANCE}};K.LastValueAggregation=Ur;Ur.DEFAULT_INSTANCE=new ct.LastValueAggregator;var Dr=class o extends Pe{createAggregator(r){return o.DEFAULT_INSTANCE}};K.HistogramAggregation=Dr;Dr.DEFAULT_INSTANCE=new ct.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);var Uo=class extends Pe{constructor(r,i=!0){if(super(),this._recordMinMax=i,r==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");r=r.concat(),r=r.sort((u,t)=>u-t);let c=r.lastIndexOf(-1/0),a=r.indexOf(1/0);a===-1&&(a=void 0),this._boundaries=r.slice(c+1,a)}createAggregator(r){return new ct.HistogramAggregator(this._boundaries,this._recordMinMax)}};K.ExplicitBucketHistogramAggregation=Uo;var Do=class extends Pe{constructor(r=160,i=!0){super(),this._maxSize=r,this._recordMinMax=i}createAggregator(r){return new ct.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};K.ExponentialHistogramAggregation=Do;var Vo=class extends Pe{_resolve(r){switch(r.type){case ye.InstrumentType.COUNTER:case ye.InstrumentType.UP_DOWN_COUNTER:case ye.InstrumentType.OBSERVABLE_COUNTER:case ye.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return UM;case ye.InstrumentType.GAUGE:case ye.InstrumentType.OBSERVABLE_GAUGE:return DM;case ye.InstrumentType.HISTOGRAM:return r.advice.explicitBucketBoundaries?new Uo(r.advice.explicitBucketBoundaries):VM}return EJ.diag.warn(`Unable to recognize instrument type: ${r.type}`),bM}createAggregator(r){return this._resolve(r).createAggregator(r)}};K.DefaultAggregation=Vo;var bM=new br,UM=new er,DM=new Ur,VM=new Dr,TJ=new Do,SJ=new Vo});var ns=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=tr.DEFAULT_AGGREGATION_SELECTOR=void 0;var fJ=wo(),dJ=mo(),AJ=o=>fJ.Aggregation.Default();tr.DEFAULT_AGGREGATION_SELECTOR=AJ;var vJ=o=>dJ.AggregationTemporality.CUMULATIVE;tr.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=vJ});var is=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.MetricReader=void 0;var wM=(m(),N(y)),Bo=Te(),BM=ns(),os=class{constructor(r){var i,c,a;this._shutdown=!1,this._aggregationSelector=(i=r?.aggregationSelector)!==null&&i!==void 0?i:BM.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=(c=r?.aggregationTemporalitySelector)!==null&&c!==void 0?c:BM.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=(a=r?.metricProducers)!==null&&a!==void 0?a:[],this._cardinalitySelector=r?.cardinalitySelector}setMetricProducer(r){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=r,this.onInitialized()}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}selectCardinalityLimit(r){return this._cardinalitySelector?this._cardinalitySelector(r):2e3}onInitialized(){}async collect(r){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[i,...c]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:r?.timeoutMillis}),...this._metricProducers.map(e=>e.collect({timeoutMillis:r?.timeoutMillis}))]),a=i.errors.concat((0,Bo.FlatMap)(c,e=>e.errors)),u=i.resourceMetrics.resource,t=i.resourceMetrics.scopeMetrics.concat((0,Bo.FlatMap)(c,e=>e.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:u,scopeMetrics:t},errors:a}}async shutdown(r){if(this._shutdown){wM.diag.error("Cannot call shutdown twice.");return}r?.timeoutMillis==null?await this.onShutdown():await(0,Bo.callWithTimeout)(this.onShutdown(),r.timeoutMillis),this._shutdown=!0}async forceFlush(r){if(this._shutdown){wM.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(r?.timeoutMillis==null){await this.onForceFlush();return}await(0,Bo.callWithTimeout)(this.onForceFlush(),r.timeoutMillis)}};Go.MetricReader=os});var HM=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.PeriodicExportingMetricReader=void 0;var as=(m(),N(y)),Vr=x(),OJ=is(),GM=Te(),us=class extends OJ.MetricReader{constructor(r){var i,c,a,u;if(super({aggregationSelector:(i=r.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(r.exporter),aggregationTemporalitySelector:(c=r.exporter.selectAggregationTemporality)===null||c===void 0?void 0:c.bind(r.exporter),metricProducers:r.metricProducers}),r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<r.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=(a=r.exportIntervalMillis)!==null&&a!==void 0?a:6e4,this._exportTimeout=(u=r.exportTimeoutMillis)!==null&&u!==void 0?u:3e4,this._exporter=r.exporter}async _runOnce(){try{await(0,GM.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(r){if(r instanceof GM.TimeoutError){as.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,Vr.globalErrorHandler)(r)}}async _doRun(){var r,i;let{resourceMetrics:c,errors:a}=await this.collect({timeoutMillis:this._exportTimeout});if(a.length>0&&as.diag.error("PeriodicExportingMetricReader: metrics collection errors",...a),c.resource.asyncAttributesPending)try{await((i=(r=c.resource).waitForAsyncAttributes)===null||i===void 0?void 0:i.call(r))}catch(t){as.diag.debug("Error while resolving async portion of resource: ",t),(0,Vr.globalErrorHandler)(t)}if(c.scopeMetrics.length===0)return;let u=await Vr.internal._export(this._exporter,c);if(u.code!==Vr.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${u.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,Vr.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};Ho.PeriodicExportingMetricReader=us});var YM=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InMemoryMetricExporter=void 0;var kM=x(),ss=class{constructor(r){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=r}export(r,i){if(this._shutdown){setTimeout(()=>i({code:kM.ExportResultCode.FAILED}),0);return}this._metrics.push(r),setTimeout(()=>i({code:kM.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(r){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};ko.InMemoryMetricExporter=ss});var KM=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.ConsoleMetricExporter=void 0;var FM=x(),mJ=ns(),cs=class o{constructor(r){var i;this._shutdown=!1,this._temporalitySelector=(i=r?.temporalitySelector)!==null&&i!==void 0?i:mJ.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(r,i){if(this._shutdown){setImmediate(i,{code:FM.ExportResultCode.FAILED});return}return o._sendMetrics(r,i)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(r){return this._temporalitySelector(r)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(r,i){for(let c of r.scopeMetrics)for(let a of c.metrics)console.dir({descriptor:a.descriptor,dataPointType:a.dataPointType,dataPoints:a.dataPoints},{depth:null});i({code:FM.ExportResultCode.SUCCESS})}};Yo.ConsoleMetricExporter=cs});var jM=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ViewRegistry=void 0;var ls=class{constructor(){this._registeredViews=[]}addView(r){this._registeredViews.push(r)}findViews(r,i){return this._registeredViews.filter(a=>this._matchInstrument(a.instrumentSelector,r)&&this._matchMeter(a.meterSelector,i))}_matchInstrument(r,i){return(r.getType()===void 0||i.type===r.getType())&&r.getNameFilter().match(i.name)&&r.getUnitFilter().match(i.unit)}_matchMeter(r,i){return r.getNameFilter().match(i.name)&&(i.version===void 0||r.getVersionFilter().match(i.version))&&(i.schemaUrl===void 0||r.getSchemaUrlFilter().match(i.schemaUrl))}};Fo.ViewRegistry=ls});var Ko=S(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.isObservableInstrument=b.ObservableUpDownCounterInstrument=b.ObservableGaugeInstrument=b.ObservableCounterInstrument=b.ObservableInstrument=b.HistogramInstrument=b.GaugeInstrument=b.CounterInstrument=b.UpDownCounterInstrument=b.SyncInstrument=void 0;var rr=(m(),N(y)),hJ=x(),lt=class{constructor(r,i){this._writableMetricStorage=r,this._descriptor=i}_record(r,i={},c=rr.context.active()){if(typeof r!="number"){rr.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${r}`);return}this._descriptor.valueType===rr.ValueType.INT&&!Number.isInteger(r)&&(rr.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._writableMetricStorage.record(r,i,c,(0,hJ.millisToHrTime)(Date.now()))}};b.SyncInstrument=lt;var ps=class extends lt{add(r,i,c){this._record(r,i,c)}};b.UpDownCounterInstrument=ps;var _s=class extends lt{add(r,i,c){if(r<0){rr.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.CounterInstrument=_s;var Es=class extends lt{record(r,i,c){this._record(r,i,c)}};b.GaugeInstrument=Es;var Ts=class extends lt{record(r,i,c){if(r<0){rr.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.HistogramInstrument=Ts;var pt=class{constructor(r,i,c){this._observableRegistry=c,this._descriptor=r,this._metricStorages=i}addCallback(r){this._observableRegistry.addCallback(r,this)}removeCallback(r){this._observableRegistry.removeCallback(r,this)}};b.ObservableInstrument=pt;var Ss=class extends pt{};b.ObservableCounterInstrument=Ss;var fs=class extends pt{};b.ObservableGaugeInstrument=fs;var ds=class extends pt{};b.ObservableUpDownCounterInstrument=ds;function NJ(o){return o instanceof pt}b.isObservableInstrument=NJ});var qM=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.Meter=void 0;var ee=De(),_t=Ko(),As=class{constructor(r){this._meterSharedState=r}createGauge(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.GAUGE,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.GaugeInstrument(a,c)}createHistogram(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.HISTOGRAM,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.HistogramInstrument(a,c)}createCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.CounterInstrument(a,c)}createUpDownCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.UP_DOWN_COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.UpDownCounterInstrument(a,c)}createObservableGauge(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.OBSERVABLE_GAUGE,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new _t.ObservableGaugeInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.OBSERVABLE_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new _t.ObservableCounterInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new _t.ObservableUpDownCounterInstrument(c,a,this._meterSharedState.observableRegistry)}addBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.addBatchCallback(r,i)}removeBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.removeBatchCallback(r,i)}};jo.Meter=As});var Os=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.MetricStorage=void 0;var RJ=De(),vs=class{constructor(r){this._instrumentDescriptor=r}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(r){this._instrumentDescriptor=(0,RJ.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:r,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};qo.MetricStorage=vs});var wr=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.AttributeHashMap=nr.HashMap=void 0;var yJ=Te(),Wo=class{constructor(r){this._hash=r,this._valueMap=new Map,this._keyMap=new Map}get(r,i){return i??(i=this._hash(r)),this._valueMap.get(i)}getOrDefault(r,i){let c=this._hash(r);if(this._valueMap.has(c))return this._valueMap.get(c);let a=i();return this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,a),a}set(r,i,c){c??(c=this._hash(r)),this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,i)}has(r,i){return i??(i=this._hash(r)),this._valueMap.has(i)}*keys(){let r=this._keyMap.entries(),i=r.next();for(;i.done!==!0;)yield[i.value[1],i.value[0]],i=r.next()}*entries(){let r=this._valueMap.entries(),i=r.next();for(;i.done!==!0;)yield[this._keyMap.get(i.value[0]),i.value[1],i.value[0]],i=r.next()}get size(){return this._valueMap.size}};nr.HashMap=Wo;var ms=class extends Wo{constructor(){super(yJ.hashAttributes)}};nr.AttributeHashMap=ms});var Rs=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeltaMetricProcessor=void 0;var PJ=Te(),hs=wr(),Ns=class{constructor(r,i){this._aggregator=r,this._activeCollectionStorage=new hs.AttributeHashMap,this._cumulativeMemoStorage=new hs.AttributeHashMap,this._overflowAttributes={"otel.metric.overflow":!0},this._cardinalityLimit=(i??2e3)-1,this._overflowHashCode=(0,PJ.hashAttributes)(this._overflowAttributes)}record(r,i,c,a){let u=this._activeCollectionStorage.get(i);if(!u){if(this._activeCollectionStorage.size>=this._cardinalityLimit){let t=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(a));t?.record(r);return}u=this._aggregator.createAccumulation(a),this._activeCollectionStorage.set(i,u)}u?.record(r)}batchCumulate(r,i){Array.from(r.entries()).forEach(([c,a,u])=>{let t=this._aggregator.createAccumulation(i);t?.record(a);let e=t;if(this._cumulativeMemoStorage.has(c,u)){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(c=this._overflowAttributes,u=this._overflowHashCode,this._cumulativeMemoStorage.has(c,u))){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}if(this._activeCollectionStorage.has(c,u)){let n=this._activeCollectionStorage.get(c,u);e=this._aggregator.merge(n,e)}this._cumulativeMemoStorage.set(c,t,u),this._activeCollectionStorage.set(c,e,u)})}collect(){let r=this._activeCollectionStorage;return this._activeCollectionStorage=new hs.AttributeHashMap,r}};zo.DeltaMetricProcessor=Ns});var Ps=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.TemporalMetricProcessor=void 0;var MJ=mo(),gJ=wr(),ys=class o{constructor(r,i){this._aggregator=r,this._unreportedAccumulations=new Map,this._reportHistory=new Map,i.forEach(c=>{this._unreportedAccumulations.set(c,[])})}buildMetrics(r,i,c,a){this._stashAccumulations(c);let u=this._getMergedUnreportedAccumulations(r),t=u,e;if(this._reportHistory.has(r)){let s=this._reportHistory.get(r),l=s.collectionTime;e=s.aggregationTemporality,e===MJ.AggregationTemporality.CUMULATIVE?t=o.merge(s.accumulations,u,this._aggregator):t=o.calibrateStartTime(s.accumulations,u,l)}else e=r.selectAggregationTemporality(i.type);this._reportHistory.set(r,{accumulations:t,collectionTime:a,aggregationTemporality:e});let n=LJ(t);if(n.length!==0)return this._aggregator.toMetricData(i,e,n,a)}_stashAccumulations(r){let i=this._unreportedAccumulations.keys();for(let c of i){let a=this._unreportedAccumulations.get(c);a===void 0&&(a=[],this._unreportedAccumulations.set(c,a)),a.push(r)}}_getMergedUnreportedAccumulations(r){let i=new gJ.AttributeHashMap,c=this._unreportedAccumulations.get(r);if(this._unreportedAccumulations.set(r,[]),c===void 0)return i;for(let a of c)i=o.merge(i,a,this._aggregator);return i}static merge(r,i,c){let a=r,u=i.entries(),t=u.next();for(;t.done!==!0;){let[e,n,s]=t.value;if(r.has(e,s)){let l=r.get(e,s),E=c.merge(l,n);a.set(e,E,s)}else a.set(e,n,s);t=u.next()}return a}static calibrateStartTime(r,i,c){for(let[a,u]of r.keys()){let t=i.get(a,u);t?.setStartTime(c)}return i}};Jo.TemporalMetricProcessor=ys;function LJ(o){return Array.from(o.entries())}});var WM=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.AsyncMetricStorage=void 0;var IJ=Os(),CJ=Rs(),xJ=Ps(),bJ=wr(),Ms=class extends IJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new CJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new xJ.TemporalMetricProcessor(i,a)}record(r,i){let c=new bJ.AttributeHashMap;Array.from(r.entries()).forEach(([a,u])=>{c.set(this._attributesProcessor.process(a),u)}),this._deltaMetricStorage.batchCumulate(c,i)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};Xo.AsyncMetricStorage=Ms});var QM=S(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.getConflictResolutionRecipe=te.getDescriptionResolutionRecipe=te.getTypeConflictResolutionRecipe=te.getUnitConflictResolutionRecipe=te.getValueTypeConflictResolutionRecipe=te.getIncompatibilityDetails=void 0;function UJ(o,r){let i="";return o.unit!==r.unit&&(i+=` - Unit '${o.unit}' does not match '${r.unit}'
3
+ "use strict";var aC=Object.create;var Zr=Object.defineProperty;var uC=Object.getOwnPropertyDescriptor;var sC=Object.getOwnPropertyNames;var cC=Object.getPrototypeOf,lC=Object.prototype.hasOwnProperty;var d=(o,r)=>()=>(o&&(r=o(o=0)),r);var S=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),Ot=(o,r)=>{for(var i in r)Zr(o,i,{get:r[i],enumerable:!0})},Cc=(o,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of sC(r))!lC.call(o,a)&&a!==i&&Zr(o,a,{get:()=>r[a],enumerable:!(c=uC(r,a))||c.enumerable});return o};var Oe=(o,r,i)=>(i=o!=null?aC(cC(o)):{},Cc(r||!o||!o.__esModule?Zr(i,"default",{value:o,enumerable:!0}):i,o)),N=o=>Cc(Zr({},"__esModule",{value:!0}),o);var Dc,Vc=d(()=>{Dc=typeof globalThis=="object"?globalThis:global});var wc=d(()=>{Vc()});var Bc=d(()=>{wc()});var xe,sa=d(()=>{xe="1.9.0"});function pC(o){var r=new Set([o]),i=new Set,c=o.match(Gc);if(!c)return function(){return!1};var a={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};if(a.prerelease!=null)return function(n){return n===o};function u(e){return i.add(e),!1}function t(e){return r.add(e),!0}return function(n){if(r.has(n))return!0;if(i.has(n))return!1;var s=n.match(Gc);if(!s)return u(n);var l={major:+s[1],minor:+s[2],patch:+s[3],prerelease:s[4]};return l.prerelease!=null||a.major!==l.major?u(n):a.major===0?a.minor===l.minor&&a.patch<=l.patch?t(n):u(n):a.minor<=l.minor?t(n):u(n)}}var Gc,Hc,kc=d(()=>{sa();Gc=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;Hc=pC(xe)});function he(o,r,i,c){var a;c===void 0&&(c=!1);var u=_r[pr]=(a=_r[pr])!==null&&a!==void 0?a:{version:xe};if(!c&&u[o]){var t=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+o);return i.error(t.stack||t.message),!1}if(u.version!==xe){var t=new Error("@opentelemetry/api: Registration of version v"+u.version+" for "+o+" does not match previously registered API v"+xe);return i.error(t.stack||t.message),!1}return u[o]=r,i.debug("@opentelemetry/api: Registered a global for "+o+" v"+xe+"."),!0}function ie(o){var r,i,c=(r=_r[pr])===null||r===void 0?void 0:r.version;if(!(!c||!Hc(c)))return(i=_r[pr])===null||i===void 0?void 0:i[o]}function Ne(o,r){r.debug("@opentelemetry/api: Unregistering a global for "+o+" v"+xe+".");var i=_r[pr];i&&delete i[o]}var _C,pr,_r,et=d(()=>{Bc();sa();kc();_C=xe.split(".")[0],pr=Symbol.for("opentelemetry.js.api."+_C),_r=Dc});function Er(o,r,i){var c=ie("diag");if(c)return i.unshift(r),c[o].apply(c,TC([],EC(i),!1))}var EC,TC,Yc,Fc=d(()=>{et();EC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},TC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Yc=function(){function o(r){this._namespace=r.namespace||"DiagComponentLogger"}return o.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("debug",this._namespace,r)},o.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("error",this._namespace,r)},o.prototype.info=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("info",this._namespace,r)},o.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("warn",this._namespace,r)},o.prototype.verbose=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Er("verbose",this._namespace,r)},o}()});var q,rn=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"})(q||(q={}))});function Kc(o,r){o<q.NONE?o=q.NONE:o>q.ALL&&(o=q.ALL),r=r||{};function i(c,a){var u=r[c];return typeof u=="function"&&o>=a?u.bind(r):function(){}}return{error:i("error",q.ERROR),warn:i("warn",q.WARN),info:i("info",q.INFO),debug:i("debug",q.DEBUG),verbose:i("verbose",q.VERBOSE)}}var jc=d(()=>{rn()});var SC,fC,dC,J,tt=d(()=>{Fc();jc();rn();et();SC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},fC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},dC="diag",J=function(){function o(){function r(a){return function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];var e=ie("diag");if(e)return e[a].apply(e,fC([],SC(u),!1))}}var i=this,c=function(a,u){var t,e,n;if(u===void 0&&(u={logLevel:q.INFO}),a===i){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return i.error((t=s.stack)!==null&&t!==void 0?t:s.message),!1}typeof u=="number"&&(u={logLevel:u});var l=ie("diag"),E=Kc((e=u.logLevel)!==null&&e!==void 0?e:q.INFO,a);if(l&&!u.suppressOverrideMessage){var O=(n=new Error().stack)!==null&&n!==void 0?n:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+O),E.warn("Current logger will overwrite one already registered from "+O)}return he("diag",E,i,!0)};i.setLogger=c,i.disable=function(){Ne(dC,i)},i.createComponentLogger=function(a){return new Yc(a)},i.verbose=r("verbose"),i.debug=r("debug"),i.info=r("info"),i.warn=r("warn"),i.error=r("error")}return o.instance=function(){return this._instance||(this._instance=new o),this._instance},o}()});var AC,vC,qc,Wc=d(()=>{AC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},vC=function(o){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&o[r],c=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&c>=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},qc=function(){function o(r){this._entries=r?new Map(r):new Map}return o.prototype.getEntry=function(r){var i=this._entries.get(r);if(i)return Object.assign({},i)},o.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(r){var i=AC(r,2),c=i[0],a=i[1];return[c,a]})},o.prototype.setEntry=function(r,i){var c=new o(this._entries);return c._entries.set(r,i),c},o.prototype.removeEntry=function(r){var i=new o(this._entries);return i._entries.delete(r),i},o.prototype.removeEntries=function(){for(var r,i,c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var u=new o(this._entries);try{for(var t=vC(c),e=t.next();!e.done;e=t.next()){var n=e.value;u._entries.delete(n)}}catch(s){r={error:s}}finally{try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(r)throw r.error}}return u},o.prototype.clear=function(){return new o},o}()});var zc,Jc=d(()=>{zc=Symbol("BaggageEntryMetadata")});function Xc(o){return o===void 0&&(o={}),new qc(new Map(Object.entries(o)))}function $c(o){return typeof o!="string"&&(OC.error("Cannot create baggage metadata from unknown type: "+typeof o),o=""),{__TYPE__:zc,toString:function(){return o}}}var OC,ca=d(()=>{tt();Wc();Jc();OC=J.instance()});function mt(o){return Symbol.for(o)}var mC,nn,Tr=d(()=>{mC=function(){function o(r){var i=this;i._currentContext=r?new Map(r):new Map,i.getValue=function(c){return i._currentContext.get(c)},i.setValue=function(c,a){var u=new o(i._currentContext);return u._currentContext.set(c,a),u},i.deleteValue=function(c){var a=new o(i._currentContext);return a._currentContext.delete(c),a}}return o}(),nn=new mC});var la,Qc,Zc=d(()=>{la=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Qc=function(){function o(){function r(c){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];if(console){var t=console[c];if(typeof t!="function"&&(t=console.log),typeof t=="function")return t.apply(console,a)}}}for(var i=0;i<la.length;i++)this[la[i].n]=r(la[i].c)}return o}()});function el(){return _a}var rt,hC,on,NC,RC,yC,PC,pa,MC,gC,LC,_a,IC,CC,xC,bC,UC,DC,VC,Ea=d(()=>{rt=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),hC=function(){function o(){}return o.prototype.createGauge=function(r,i){return CC},o.prototype.createHistogram=function(r,i){return xC},o.prototype.createCounter=function(r,i){return IC},o.prototype.createUpDownCounter=function(r,i){return bC},o.prototype.createObservableGauge=function(r,i){return DC},o.prototype.createObservableCounter=function(r,i){return UC},o.prototype.createObservableUpDownCounter=function(r,i){return VC},o.prototype.addBatchObservableCallback=function(r,i){},o.prototype.removeBatchObservableCallback=function(r){},o}(),on=function(){function o(){}return o}(),NC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(on),RC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.add=function(i,c){},r}(on),yC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(on),PC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.record=function(i,c){},r}(on),pa=function(){function o(){}return o.prototype.addCallback=function(r){},o.prototype.removeCallback=function(r){},o}(),MC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(pa),gC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(pa),LC=function(o){rt(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(pa),_a=new hC,IC=new NC,CC=new yC,xC=new PC,bC=new RC,UC=new MC,DC=new gC,VC=new LC});var an,tl=d(()=>{(function(o){o[o.INT=0]="INT",o[o.DOUBLE=1]="DOUBLE"})(an||(an={}))});var un,sn,Ta=d(()=>{un={get:function(o,r){if(o!=null)return o[r]},keys:function(o){return o==null?[]:Object.keys(o)}},sn={set:function(o,r,i){o!=null&&(o[r]=i)}}});var wC,BC,rl,nl=d(()=>{Tr();wC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},BC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},rl=function(){function o(){}return o.prototype.active=function(){return nn},o.prototype.with=function(r,i,c){for(var a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return i.call.apply(i,BC([c],wC(a),!1))},o.prototype.bind=function(r,i){return i},o.prototype.enable=function(){return this},o.prototype.disable=function(){return this},o}()});var GC,HC,Sa,kC,we,Sr=d(()=>{nl();et();tt();GC=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u},HC=function(o,r,i){if(i||arguments.length===2)for(var c=0,a=r.length,u;c<a;c++)(u||!(c in r))&&(u||(u=Array.prototype.slice.call(r,0,c)),u[c]=r[c]);return o.concat(u||Array.prototype.slice.call(r))},Sa="context",kC=new rl,we=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalContextManager=function(r){return he(Sa,r,J.instance())},o.prototype.active=function(){return this._getContextManager().active()},o.prototype.with=function(r,i,c){for(var a,u=[],t=3;t<arguments.length;t++)u[t-3]=arguments[t];return(a=this._getContextManager()).with.apply(a,HC([r,i,c],GC(u),!1))},o.prototype.bind=function(r,i){return this._getContextManager().bind(r,i)},o.prototype._getContextManager=function(){return ie(Sa)||kC},o.prototype.disable=function(){this._getContextManager().disable(),Ne(Sa,J.instance())},o}()});var ht,fa=d(()=>{(function(o){o[o.NONE=0]="NONE",o[o.SAMPLED=1]="SAMPLED"})(ht||(ht={}))});var fr,dr,cn,ln=d(()=>{fa();fr="0000000000000000",dr="00000000000000000000000000000000",cn={traceId:dr,spanId:fr,traceFlags:ht.NONE}});var Be,pn=d(()=>{ln();Be=function(){function o(r){r===void 0&&(r=cn),this._spanContext=r}return o.prototype.spanContext=function(){return this._spanContext},o.prototype.setAttribute=function(r,i){return this},o.prototype.setAttributes=function(r){return this},o.prototype.addEvent=function(r,i){return this},o.prototype.addLink=function(r){return this},o.prototype.addLinks=function(r){return this},o.prototype.setStatus=function(r){return this},o.prototype.updateName=function(r){return this},o.prototype.end=function(r){},o.prototype.isRecording=function(){return!1},o.prototype.recordException=function(r,i){},o}()});function _n(o){return o.getValue(da)||void 0}function ol(){return _n(we.getInstance().active())}function Ar(o,r){return o.setValue(da,r)}function il(o){return o.deleteValue(da)}function al(o,r){return Ar(o,new Be(r))}function En(o){var r;return(r=_n(o))===null||r===void 0?void 0:r.spanContext()}var da,Aa=d(()=>{Tr();pn();Sr();da=mt("OpenTelemetry Context Key SPAN")});function va(o){return YC.test(o)&&o!==dr}function Oa(o){return FC.test(o)&&o!==fr}function Nt(o){return va(o.traceId)&&Oa(o.spanId)}function ul(o){return new Be(o)}var YC,FC,Tn=d(()=>{ln();pn();YC=/^([0-9a-f]{32})$/i,FC=/^[0-9a-f]{16}$/i});function KC(o){return typeof o=="object"&&typeof o.spanId=="string"&&typeof o.traceId=="string"&&typeof o.traceFlags=="number"}var ma,Sn,ha=d(()=>{Sr();Aa();pn();Tn();ma=we.getInstance(),Sn=function(){function o(){}return o.prototype.startSpan=function(r,i,c){c===void 0&&(c=ma.active());var a=!!i?.root;if(a)return new Be;var u=c&&En(c);return KC(u)&&Nt(u)?new Be(u):new Be},o.prototype.startActiveSpan=function(r,i,c,a){var u,t,e;if(!(arguments.length<2)){arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);var n=t??ma.active(),s=this.startSpan(r,u,n),l=Ar(n,s);return ma.with(l,e,void 0,s)}},o}()});var jC,fn,Na=d(()=>{ha();jC=new Sn,fn=function(){function o(r,i,c,a){this._provider=r,this.name=i,this.version=c,this.options=a}return o.prototype.startSpan=function(r,i,c){return this._getTracer().startSpan(r,i,c)},o.prototype.startActiveSpan=function(r,i,c,a){var u=this._getTracer();return Reflect.apply(u.startActiveSpan,u,arguments)},o.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):jC},o}()});var sl,cl=d(()=>{ha();sl=function(){function o(){}return o.prototype.getTracer=function(r,i,c){return new Sn},o}()});var qC,vr,Ra=d(()=>{Na();cl();qC=new sl,vr=function(){function o(){}return o.prototype.getTracer=function(r,i,c){var a;return(a=this.getDelegateTracer(r,i,c))!==null&&a!==void 0?a:new fn(this,r,i,c)},o.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:qC},o.prototype.setDelegate=function(r){this._delegate=r},o.prototype.getDelegateTracer=function(r,i,c){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,i,c)},o}()});var dn,ll=d(()=>{(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(dn||(dn={}))});var Ge,pl=d(()=>{(function(o){o[o.INTERNAL=0]="INTERNAL",o[o.SERVER=1]="SERVER",o[o.CLIENT=2]="CLIENT",o[o.PRODUCER=3]="PRODUCER",o[o.CONSUMER=4]="CONSUMER"})(Ge||(Ge={}))});var Rt,_l=d(()=>{(function(o){o[o.UNSET=0]="UNSET",o[o.OK=1]="OK",o[o.ERROR=2]="ERROR"})(Rt||(Rt={}))});function El(o){return JC.test(o)}function Tl(o){return XC.test(o)&&!$C.test(o)}var ya,WC,zC,JC,XC,$C,Sl=d(()=>{ya="[_0-9a-z-*/]",WC="[a-z]"+ya+"{0,255}",zC="[a-z0-9]"+ya+"{0,240}@[a-z]"+ya+"{0,13}",JC=new RegExp("^(?:"+WC+"|"+zC+")$"),XC=/^[ -~]{0,255}[!-~]$/,$C=/,|=/});var fl,QC,dl,Al,vl,Ol=d(()=>{Sl();fl=32,QC=512,dl=",",Al="=",vl=function(){function o(r){this._internalState=new Map,r&&this._parse(r)}return o.prototype.set=function(r,i){var c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c},o.prototype.unset=function(r){var i=this._clone();return i._internalState.delete(r),i},o.prototype.get=function(r){return this._internalState.get(r)},o.prototype.serialize=function(){var r=this;return this._keys().reduce(function(i,c){return i.push(c+Al+r.get(c)),i},[]).join(dl)},o.prototype._parse=function(r){r.length>QC||(this._internalState=r.split(dl).reverse().reduce(function(i,c){var a=c.trim(),u=a.indexOf(Al);if(u!==-1){var t=a.slice(0,u),e=a.slice(u+1,c.length);El(t)&&Tl(e)&&i.set(t,e)}return i},new Map),this._internalState.size>fl&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,fl))))},o.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},o.prototype._clone=function(){var r=new o;return r._internalState=new Map(this._internalState),r},o}()});function ml(o){return new vl(o)}var hl=d(()=>{Ol()});var He,Nl=d(()=>{Sr();He=we.getInstance()});var k,Rl=d(()=>{tt();k=J.instance()});var ZC,yl,Pl=d(()=>{Ea();ZC=function(){function o(){}return o.prototype.getMeter=function(r,i,c){return _a},o}(),yl=new ZC});var Pa,Ml,gl=d(()=>{Pl();et();tt();Pa="metrics",Ml=function(){function o(){}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalMeterProvider=function(r){return he(Pa,r,J.instance())},o.prototype.getMeterProvider=function(){return ie(Pa)||yl},o.prototype.getMeter=function(r,i,c){return this.getMeterProvider().getMeter(r,i,c)},o.prototype.disable=function(){Ne(Pa,J.instance())},o}()});var yt,Ll=d(()=>{gl();yt=Ml.getInstance()});var Il,Cl=d(()=>{Il=function(){function o(){}return o.prototype.inject=function(r,i){},o.prototype.extract=function(r,i){return r},o.prototype.fields=function(){return[]},o}()});function ga(o){return o.getValue(Ma)||void 0}function xl(){return ga(we.getInstance().active())}function bl(o,r){return o.setValue(Ma,r)}function Ul(o){return o.deleteValue(Ma)}var Ma,Dl=d(()=>{Sr();Tr();Ma=mt("OpenTelemetry Baggage Key")});var La,ex,Vl,wl=d(()=>{et();Cl();Ta();Dl();ca();tt();La="propagation",ex=new Il,Vl=function(){function o(){this.createBaggage=Xc,this.getBaggage=ga,this.getActiveBaggage=xl,this.setBaggage=bl,this.deleteBaggage=Ul}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalPropagator=function(r){return he(La,r,J.instance())},o.prototype.inject=function(r,i,c){return c===void 0&&(c=sn),this._getGlobalPropagator().inject(r,i,c)},o.prototype.extract=function(r,i,c){return c===void 0&&(c=un),this._getGlobalPropagator().extract(r,i,c)},o.prototype.fields=function(){return this._getGlobalPropagator().fields()},o.prototype.disable=function(){Ne(La,J.instance())},o.prototype._getGlobalPropagator=function(){return ie(La)||ex},o}()});var Ia,Bl=d(()=>{wl();Ia=Vl.getInstance()});var Ca,Gl,Hl=d(()=>{et();Ra();Tn();Aa();tt();Ca="trace",Gl=function(){function o(){this._proxyTracerProvider=new vr,this.wrapSpanContext=ul,this.isSpanContextValid=Nt,this.deleteSpan=il,this.getSpan=_n,this.getActiveSpan=ol,this.getSpanContext=En,this.setSpan=Ar,this.setSpanContext=al}return o.getInstance=function(){return this._instance||(this._instance=new o),this._instance},o.prototype.setGlobalTracerProvider=function(r){var i=he(Ca,this._proxyTracerProvider,J.instance());return i&&this._proxyTracerProvider.setDelegate(r),i},o.prototype.getTracerProvider=function(){return ie(Ca)||this._proxyTracerProvider},o.prototype.getTracer=function(r,i){return this.getTracerProvider().getTracer(r,i)},o.prototype.disable=function(){Ne(Ca,J.instance()),this._proxyTracerProvider=new vr},o}()});var ke,kl=d(()=>{Hl();ke=Gl.getInstance()});var y={};Ot(y,{DiagConsoleLogger:()=>Qc,DiagLogLevel:()=>q,INVALID_SPANID:()=>fr,INVALID_SPAN_CONTEXT:()=>cn,INVALID_TRACEID:()=>dr,ProxyTracer:()=>fn,ProxyTracerProvider:()=>vr,ROOT_CONTEXT:()=>nn,SamplingDecision:()=>dn,SpanKind:()=>Ge,SpanStatusCode:()=>Rt,TraceFlags:()=>ht,ValueType:()=>an,baggageEntryMetadataFromString:()=>$c,context:()=>He,createContextKey:()=>mt,createNoopMeter:()=>el,createTraceState:()=>ml,default:()=>tx,defaultTextMapGetter:()=>un,defaultTextMapSetter:()=>sn,diag:()=>k,isSpanContextValid:()=>Nt,isValidSpanId:()=>Oa,isValidTraceId:()=>va,metrics:()=>yt,propagation:()=>Ia,trace:()=>ke});var tx,m=d(()=>{ca();Tr();Zc();rn();Ea();tl();Ta();Na();Ra();ll();pl();_l();fa();hl();Tn();ln();Nl();Rl();Ll();Bl();kl();tx={context:He,diag:k,metrics:yt,propagation:Ia,trace:ke}});var Or=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.isTracingSuppressed=Ye.unsuppressTracing=Ye.suppressTracing=void 0;var rx=(m(),N(y)),xa=(0,rx.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function nx(o){return o.setValue(xa,!0)}Ye.suppressTracing=nx;function ox(o){return o.deleteValue(xa)}Ye.unsuppressTracing=ox;function ix(o){return o.getValue(xa)===!0}Ye.isTracingSuppressed=ix});var ba=S(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.BAGGAGE_MAX_TOTAL_LENGTH=X.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=X.BAGGAGE_MAX_NAME_VALUE_PAIRS=X.BAGGAGE_HEADER=X.BAGGAGE_ITEMS_SEPARATOR=X.BAGGAGE_PROPERTIES_SEPARATOR=X.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;X.BAGGAGE_KEY_PAIR_SEPARATOR="=";X.BAGGAGE_PROPERTIES_SEPARATOR=";";X.BAGGAGE_ITEMS_SEPARATOR=",";X.BAGGAGE_HEADER="baggage";X.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;X.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;X.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Ua=S(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.parseKeyPairsIntoRecord=Re.parsePairKeyValue=Re.getKeyPairs=Re.serializeKeyPairs=void 0;var ax=(m(),N(y)),nt=ba();function ux(o){return o.reduce((r,i)=>{let c=`${r}${r!==""?nt.BAGGAGE_ITEMS_SEPARATOR:""}${i}`;return c.length>nt.BAGGAGE_MAX_TOTAL_LENGTH?r:c},"")}Re.serializeKeyPairs=ux;function sx(o){return o.getAllEntries().map(([r,i])=>{let c=`${encodeURIComponent(r)}=${encodeURIComponent(i.value)}`;return i.metadata!==void 0&&(c+=nt.BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),c})}Re.getKeyPairs=sx;function Yl(o){let r=o.split(nt.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let i=r.shift();if(!i)return;let c=i.indexOf(nt.BAGGAGE_KEY_PAIR_SEPARATOR);if(c<=0)return;let a=decodeURIComponent(i.substring(0,c).trim()),u=decodeURIComponent(i.substring(c+1).trim()),t;return r.length>0&&(t=(0,ax.baggageEntryMetadataFromString)(r.join(nt.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:u,metadata:t}}Re.parsePairKeyValue=Yl;function cx(o){return typeof o!="string"||o.length===0?{}:o.split(nt.BAGGAGE_ITEMS_SEPARATOR).map(r=>Yl(r)).filter(r=>r!==void 0&&r.value.length>0).reduce((r,i)=>(r[i.key]=i.value,r),{})}Re.parseKeyPairsIntoRecord=cx});var Fl=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.W3CBaggagePropagator=void 0;var Da=(m(),N(y)),lx=Or(),ot=ba(),Va=Ua(),wa=class{inject(r,i,c){let a=Da.propagation.getBaggage(r);if(!a||(0,lx.isTracingSuppressed)(r))return;let u=(0,Va.getKeyPairs)(a).filter(e=>e.length<=ot.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,ot.BAGGAGE_MAX_NAME_VALUE_PAIRS),t=(0,Va.serializeKeyPairs)(u);t.length>0&&c.set(i,ot.BAGGAGE_HEADER,t)}extract(r,i,c){let a=c.get(i,ot.BAGGAGE_HEADER),u=Array.isArray(a)?a.join(ot.BAGGAGE_ITEMS_SEPARATOR):a;if(!u)return r;let t={};return u.length===0||(u.split(ot.BAGGAGE_ITEMS_SEPARATOR).forEach(n=>{let s=(0,Va.parsePairKeyValue)(n);if(s){let l={value:s.value};s.metadata&&(l.metadata=s.metadata),t[s.key]=l}}),Object.entries(t).length===0)?r:Da.propagation.setBaggage(r,Da.propagation.createBaggage(t))}fields(){return[ot.BAGGAGE_HEADER]}};An.W3CBaggagePropagator=wa});var Kl=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.AnchoredClock=void 0;var Ba=class{constructor(r,i){this._monotonicClock=i,this._epochMillis=r.now(),this._performanceMillis=i.now()}now(){let r=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+r}};vn.AnchoredClock=Ba});var Jl=S(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.isAttributeValue=Fe.isAttributeKey=Fe.sanitizeAttributes=void 0;var jl=(m(),N(y));function px(o){let r={};if(typeof o!="object"||o==null)return r;for(let[i,c]of Object.entries(o)){if(!ql(i)){jl.diag.warn(`Invalid attribute key: ${i}`);continue}if(!Wl(c)){jl.diag.warn(`Invalid attribute value set for key: ${i}`);continue}Array.isArray(c)?r[i]=c.slice():r[i]=c}return r}Fe.sanitizeAttributes=px;function ql(o){return typeof o=="string"&&o.length>0}Fe.isAttributeKey=ql;function Wl(o){return o==null?!0:Array.isArray(o)?_x(o):zl(o)}Fe.isAttributeValue=Wl;function _x(o){let r;for(let i of o)if(i!=null){if(!r){if(zl(i)){r=typeof i;continue}return!1}if(typeof i!==r)return!1}return!0}function zl(o){switch(typeof o){case"number":case"boolean":case"string":return!0}return!1}});var Ga=S(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.loggingErrorHandler=void 0;var Ex=(m(),N(y));function Tx(){return o=>{Ex.diag.error(Sx(o))}}On.loggingErrorHandler=Tx;function Sx(o){return typeof o=="string"?o:JSON.stringify(fx(o))}function fx(o){let r={},i=o;for(;i!==null;)Object.getOwnPropertyNames(i).forEach(c=>{if(r[c])return;let a=i[c];a&&(r[c]=String(a))}),i=Object.getPrototypeOf(i);return r}});var Ha=S(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.globalErrorHandler=Pt.setGlobalErrorHandler=void 0;var dx=Ga(),Xl=(0,dx.loggingErrorHandler)();function Ax(o){Xl=o}Pt.setGlobalErrorHandler=Ax;function vx(o){try{Xl(o)}catch{}}Pt.globalErrorHandler=vx});var ka=S(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.TracesSamplerValues=void 0;var Ox;(function(o){o.AlwaysOff="always_off",o.AlwaysOn="always_on",o.ParentBasedAlwaysOff="parentbased_always_off",o.ParentBasedAlwaysOn="parentbased_always_on",o.ParentBasedTraceIdRatio="parentbased_traceidratio",o.TraceIdRatio="traceidratio"})(Ox=mr.TracesSamplerValues||(mr.TracesSamplerValues={}))});var Ya=S(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.parseEnvironment=C.DEFAULT_ENVIRONMENT=C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=C.DEFAULT_ATTRIBUTE_COUNT_LIMIT=C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Ke=(m(),N(y)),mx=ka(),hx=",",Nx=["OTEL_SDK_DISABLED"];function Rx(o){return Nx.indexOf(o)>-1}var yx=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Px(o){return yx.indexOf(o)>-1}var Mx=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function gx(o){return Mx.indexOf(o)>-1}C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;C.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;C.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Ke.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:C.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:C.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:C.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:C.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:mx.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Lx(o,r,i){if(typeof i[o]>"u")return;let c=String(i[o]);r[o]=c.toLowerCase()==="true"}function Ix(o,r,i,c=-1/0,a=1/0){if(typeof i[o]<"u"){let u=Number(i[o]);isNaN(u)||(u<c?r[o]=c:u>a?r[o]=a:r[o]=u)}}function Cx(o,r,i,c=hx){let a=i[o];typeof a=="string"&&(r[o]=a.split(c).map(u=>u.trim()))}var xx={ALL:Ke.DiagLogLevel.ALL,VERBOSE:Ke.DiagLogLevel.VERBOSE,DEBUG:Ke.DiagLogLevel.DEBUG,INFO:Ke.DiagLogLevel.INFO,WARN:Ke.DiagLogLevel.WARN,ERROR:Ke.DiagLogLevel.ERROR,NONE:Ke.DiagLogLevel.NONE};function bx(o,r,i){let c=i[o];if(typeof c=="string"){let a=xx[c.toUpperCase()];a!=null&&(r[o]=a)}}function Ux(o){let r={};for(let i in C.DEFAULT_ENVIRONMENT){let c=i;switch(c){case"OTEL_LOG_LEVEL":bx(c,r,o);break;default:if(Rx(c))Lx(c,r,o);else if(Px(c))Ix(c,r,o);else if(gx(c))Cx(c,r,o);else{let a=o[c];typeof a<"u"&&a!==null&&(r[c]=String(a))}}}return r}C.parseEnvironment=Ux});var $l=S(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getEnvWithoutDefaults=Mt.getEnv=void 0;var Fa=Ya();function Dx(){let o=(0,Fa.parseEnvironment)(__fromEnv);return Object.assign({},Fa.DEFAULT_ENVIRONMENT,o)}Mt.getEnv=Dx;function Vx(){return(0,Fa.parseEnvironment)(__fromEnv)}Mt.getEnvWithoutDefaults=Vx});var Ql=S(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn._globalThis=void 0;mn._globalThis=typeof globalThis=="object"?globalThis:global});var Ka=S(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.hexToBinary=void 0;function Zl(o){return o>=48&&o<=57?o-48:o>=97&&o<=102?o-87:o-55}function wx(o){let r=new Uint8Array(o.length/2),i=0;for(let c=0;c<o.length;c+=2){let a=Zl(o.charCodeAt(c)),u=Zl(o.charCodeAt(c+1));r[i++]=a<<4|u}return r}hn.hexToBinary=wx});var ep=S(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.hexToBase64=void 0;var Bx=Ka();function Gx(o){return Buffer.from((0,Bx.hexToBinary)(o)).toString("base64")}Nn.hexToBase64=Gx});var np=S(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.RandomIdGenerator=void 0;var Hx=8,rp=16,ja=class{constructor(){this.generateTraceId=tp(rp),this.generateSpanId=tp(Hx)}};yn.RandomIdGenerator=ja;var Rn=Buffer.allocUnsafe(rp);function tp(o){return function(){for(let i=0;i<o/4;i++)Rn.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(Rn[i]>0);i++)i===o-1&&(Rn[o-1]=1);return Rn.toString("hex",0,o)}}});var op=S(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.otperformance=void 0;var kx=require("perf_hooks");Pn.otperformance=kx.performance});var qa=S(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.VERSION=void 0;Mn.VERSION="1.30.1"});function D(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var Wa=d(()=>{});var ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,hp,Np,Rp,yp,Pp,Mp,gp,Lp,Ip,Cp,xp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,h_,N_,R_,y_,P_,M_,g_,L_,I_,C_,x_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE,_E,EE,TE,SE,fE,dE,AE,vE,OE,mE,hE,NE,RE,Yx,Fx,Kx,jx,qx,Wx,zx,Jx,Xx,$x,Qx,Zx,eb,tb,rb,nb,ob,ib,ab,ub,sb,cb,lb,pb,_b,Eb,Tb,Sb,fb,db,Ab,vb,Ob,mb,hb,Nb,Rb,yb,Pb,Mb,gb,Lb,Ib,Cb,xb,bb,Ub,Db,Vb,wb,Bb,Gb,Hb,kb,Yb,Fb,Kb,jb,qb,Wb,zb,Jb,Xb,$b,Qb,Zb,eU,tU,rU,nU,oU,iU,aU,uU,sU,cU,lU,pU,_U,EU,TU,SU,fU,dU,AU,vU,OU,mU,hU,NU,RU,yU,PU,MU,gU,LU,IU,CU,xU,bU,UU,DU,VU,wU,BU,GU,HU,kU,YU,FU,KU,jU,qU,WU,zU,JU,XU,$U,QU,ZU,eD,tD,rD,nD,oD,iD,aD,uD,sD,yE,PE,ME,gE,LE,IE,CE,xE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT,iT,aT,uT,sT,cT,lT,pT,_T,ET,TT,ST,fT,dT,cD,lD,pD,_D,ED,TD,SD,fD,dD,AD,vD,OD,mD,hD,ND,RD,yD,PD,MD,gD,LD,ID,CD,xD,bD,UD,DD,VD,wD,BD,GD,HD,kD,YD,FD,KD,jD,qD,WD,zD,JD,XD,$D,QD,ZD,eV,tV,rV,AT,vT,OT,mT,hT,NT,RT,yT,PT,MT,gT,nV,oV,iV,aV,uV,sV,cV,lV,pV,_V,EV,TV,LT,IT,CT,xT,bT,SV,fV,dV,AV,vV,OV,UT,DT,VT,mV,hV,NV,RV,wT,BT,GT,HT,yV,PV,MV,gV,LV,kT,YT,FT,KT,jT,qT,WT,IV,CV,xV,bV,UV,DV,VV,wV,zT,JT,XT,$T,QT,BV,GV,HV,kV,YV,FV,ZT,eS,tS,rS,nS,oS,iS,aS,uS,sS,cS,lS,pS,_S,ES,TS,SS,fS,dS,AS,vS,KV,jV,qV,WV,zV,JV,XV,$V,QV,ZV,e0,t0,r0,n0,o0,i0,a0,u0,s0,c0,l0,p0,OS,mS,hS,NS,RS,_0,E0,T0,S0,f0,d0,yS,PS,A0,v0,O0,MS,gS,m0,h0,N0,LS,IS,CS,xS,bS,US,DS,VS,wS,BS,GS,HS,kS,YS,FS,KS,jS,R0,y0,P0,M0,g0,L0,I0,C0,x0,b0,U0,D0,V0,w0,B0,G0,H0,k0,qS,WS,Y0,F0,K0,zS=d(()=>{Wa();ip="aws.lambda.invoked_arn",ap="db.system",up="db.connection_string",sp="db.user",cp="db.jdbc.driver_classname",lp="db.name",pp="db.statement",_p="db.operation",Ep="db.mssql.instance_name",Tp="db.cassandra.keyspace",Sp="db.cassandra.page_size",fp="db.cassandra.consistency_level",dp="db.cassandra.table",Ap="db.cassandra.idempotence",vp="db.cassandra.speculative_execution_count",Op="db.cassandra.coordinator.id",mp="db.cassandra.coordinator.dc",hp="db.hbase.namespace",Np="db.redis.database_index",Rp="db.mongodb.collection",yp="db.sql.table",Pp="exception.type",Mp="exception.message",gp="exception.stacktrace",Lp="exception.escaped",Ip="faas.trigger",Cp="faas.execution",xp="faas.document.collection",bp="faas.document.operation",Up="faas.document.time",Dp="faas.document.name",Vp="faas.time",wp="faas.cron",Bp="faas.coldstart",Gp="faas.invoked_name",Hp="faas.invoked_provider",kp="faas.invoked_region",Yp="net.transport",Fp="net.peer.ip",Kp="net.peer.port",jp="net.peer.name",qp="net.host.ip",Wp="net.host.port",zp="net.host.name",Jp="net.host.connection.type",Xp="net.host.connection.subtype",$p="net.host.carrier.name",Qp="net.host.carrier.mcc",Zp="net.host.carrier.mnc",e_="net.host.carrier.icc",t_="peer.service",r_="enduser.id",n_="enduser.role",o_="enduser.scope",i_="thread.id",a_="thread.name",u_="code.function",s_="code.namespace",c_="code.filepath",l_="code.lineno",p_="http.method",__="http.url",E_="http.target",T_="http.host",S_="http.scheme",f_="http.status_code",d_="http.flavor",A_="http.user_agent",v_="http.request_content_length",O_="http.request_content_length_uncompressed",m_="http.response_content_length",h_="http.response_content_length_uncompressed",N_="http.server_name",R_="http.route",y_="http.client_ip",P_="aws.dynamodb.table_names",M_="aws.dynamodb.consumed_capacity",g_="aws.dynamodb.item_collection_metrics",L_="aws.dynamodb.provisioned_read_capacity",I_="aws.dynamodb.provisioned_write_capacity",C_="aws.dynamodb.consistent_read",x_="aws.dynamodb.projection",b_="aws.dynamodb.limit",U_="aws.dynamodb.attributes_to_get",D_="aws.dynamodb.index_name",V_="aws.dynamodb.select",w_="aws.dynamodb.global_secondary_indexes",B_="aws.dynamodb.local_secondary_indexes",G_="aws.dynamodb.exclusive_start_table",H_="aws.dynamodb.table_count",k_="aws.dynamodb.scan_forward",Y_="aws.dynamodb.segment",F_="aws.dynamodb.total_segments",K_="aws.dynamodb.count",j_="aws.dynamodb.scanned_count",q_="aws.dynamodb.attribute_definitions",W_="aws.dynamodb.global_secondary_index_updates",z_="messaging.system",J_="messaging.destination",X_="messaging.destination_kind",$_="messaging.temp_destination",Q_="messaging.protocol",Z_="messaging.protocol_version",eE="messaging.url",tE="messaging.message_id",rE="messaging.conversation_id",nE="messaging.message_payload_size_bytes",oE="messaging.message_payload_compressed_size_bytes",iE="messaging.operation",aE="messaging.consumer_id",uE="messaging.rabbitmq.routing_key",sE="messaging.kafka.message_key",cE="messaging.kafka.consumer_group",lE="messaging.kafka.client_id",pE="messaging.kafka.partition",_E="messaging.kafka.tombstone",EE="rpc.system",TE="rpc.service",SE="rpc.method",fE="rpc.grpc.status_code",dE="rpc.jsonrpc.version",AE="rpc.jsonrpc.request_id",vE="rpc.jsonrpc.error_code",OE="rpc.jsonrpc.error_message",mE="message.type",hE="message.id",NE="message.compressed_size",RE="message.uncompressed_size",Yx=ip,Fx=ap,Kx=up,jx=sp,qx=cp,Wx=lp,zx=pp,Jx=_p,Xx=Ep,$x=Tp,Qx=Sp,Zx=fp,eb=dp,tb=Ap,rb=vp,nb=Op,ob=mp,ib=hp,ab=Np,ub=Rp,sb=yp,cb=Pp,lb=Mp,pb=gp,_b=Lp,Eb=Ip,Tb=Cp,Sb=xp,fb=bp,db=Up,Ab=Dp,vb=Vp,Ob=wp,mb=Bp,hb=Gp,Nb=Hp,Rb=kp,yb=Yp,Pb=Fp,Mb=Kp,gb=jp,Lb=qp,Ib=Wp,Cb=zp,xb=Jp,bb=Xp,Ub=$p,Db=Qp,Vb=Zp,wb=e_,Bb=t_,Gb=r_,Hb=n_,kb=o_,Yb=i_,Fb=a_,Kb=u_,jb=s_,qb=c_,Wb=l_,zb=p_,Jb=__,Xb=E_,$b=T_,Qb=S_,Zb=f_,eU=d_,tU=A_,rU=v_,nU=O_,oU=m_,iU=h_,aU=N_,uU=R_,sU=y_,cU=P_,lU=M_,pU=g_,_U=L_,EU=I_,TU=C_,SU=x_,fU=b_,dU=U_,AU=D_,vU=V_,OU=w_,mU=B_,hU=G_,NU=H_,RU=k_,yU=Y_,PU=F_,MU=K_,gU=j_,LU=q_,IU=W_,CU=z_,xU=J_,bU=X_,UU=$_,DU=Q_,VU=Z_,wU=eE,BU=tE,GU=rE,HU=nE,kU=oE,YU=iE,FU=aE,KU=uE,jU=sE,qU=cE,WU=lE,zU=pE,JU=_E,XU=EE,$U=TE,QU=SE,ZU=fE,eD=dE,tD=AE,rD=vE,nD=OE,oD=mE,iD=hE,aD=NE,uD=RE,sD=D([ip,ap,up,sp,cp,lp,pp,_p,Ep,Tp,Sp,fp,dp,Ap,vp,Op,mp,hp,Np,Rp,yp,Pp,Mp,gp,Lp,Ip,Cp,xp,bp,Up,Dp,Vp,wp,Bp,Gp,Hp,kp,Yp,Fp,Kp,jp,qp,Wp,zp,Jp,Xp,$p,Qp,Zp,e_,t_,r_,n_,o_,i_,a_,u_,s_,c_,l_,p_,__,E_,T_,S_,f_,d_,A_,v_,O_,m_,h_,N_,R_,y_,P_,M_,g_,L_,I_,C_,x_,b_,U_,D_,V_,w_,B_,G_,H_,k_,Y_,F_,K_,j_,q_,W_,z_,J_,X_,$_,Q_,Z_,eE,tE,rE,nE,oE,iE,aE,uE,sE,cE,lE,pE,_E,EE,TE,SE,fE,dE,AE,vE,OE,mE,hE,NE,RE]),yE="other_sql",PE="mssql",ME="mysql",gE="oracle",LE="db2",IE="postgresql",CE="redshift",xE="hive",bE="cloudscape",UE="hsqldb",DE="progress",VE="maxdb",wE="hanadb",BE="ingres",GE="firstsql",HE="edb",kE="cache",YE="adabas",FE="firebird",KE="derby",jE="filemaker",qE="informix",WE="instantdb",zE="interbase",JE="mariadb",XE="netezza",$E="pervasive",QE="pointbase",ZE="sqlite",eT="sybase",tT="teradata",rT="vertica",nT="h2",oT="coldfusion",iT="cassandra",aT="hbase",uT="mongodb",sT="redis",cT="couchbase",lT="couchdb",pT="cosmosdb",_T="dynamodb",ET="neo4j",TT="geode",ST="elasticsearch",fT="memcached",dT="cockroachdb",cD=yE,lD=PE,pD=ME,_D=gE,ED=LE,TD=IE,SD=CE,fD=xE,dD=bE,AD=UE,vD=DE,OD=VE,mD=wE,hD=BE,ND=GE,RD=HE,yD=kE,PD=YE,MD=FE,gD=KE,LD=jE,ID=qE,CD=WE,xD=zE,bD=JE,UD=XE,DD=$E,VD=QE,wD=ZE,BD=eT,GD=tT,HD=rT,kD=nT,YD=oT,FD=iT,KD=aT,jD=uT,qD=sT,WD=cT,zD=lT,JD=pT,XD=_T,$D=ET,QD=TT,ZD=ST,eV=fT,tV=dT,rV=D([yE,PE,ME,gE,LE,IE,CE,xE,bE,UE,DE,VE,wE,BE,GE,HE,kE,YE,FE,KE,jE,qE,WE,zE,JE,XE,$E,QE,ZE,eT,tT,rT,nT,oT,iT,aT,uT,sT,cT,lT,pT,_T,ET,TT,ST,fT,dT]),AT="all",vT="each_quorum",OT="quorum",mT="local_quorum",hT="one",NT="two",RT="three",yT="local_one",PT="any",MT="serial",gT="local_serial",nV=AT,oV=vT,iV=OT,aV=mT,uV=hT,sV=NT,cV=RT,lV=yT,pV=PT,_V=MT,EV=gT,TV=D([AT,vT,OT,mT,hT,NT,RT,yT,PT,MT,gT]),LT="datasource",IT="http",CT="pubsub",xT="timer",bT="other",SV=LT,fV=IT,dV=CT,AV=xT,vV=bT,OV=D([LT,IT,CT,xT,bT]),UT="insert",DT="edit",VT="delete",mV=UT,hV=DT,NV=VT,RV=D([UT,DT,VT]),wT="alibaba_cloud",BT="aws",GT="azure",HT="gcp",yV=wT,PV=BT,MV=GT,gV=HT,LV=D([wT,BT,GT,HT]),kT="ip_tcp",YT="ip_udp",FT="ip",KT="unix",jT="pipe",qT="inproc",WT="other",IV=kT,CV=YT,xV=FT,bV=KT,UV=jT,DV=qT,VV=WT,wV=D([kT,YT,FT,KT,jT,qT,WT]),zT="wifi",JT="wired",XT="cell",$T="unavailable",QT="unknown",BV=zT,GV=JT,HV=XT,kV=$T,YV=QT,FV=D([zT,JT,XT,$T,QT]),ZT="gprs",eS="edge",tS="umts",rS="cdma",nS="evdo_0",oS="evdo_a",iS="cdma2000_1xrtt",aS="hsdpa",uS="hsupa",sS="hspa",cS="iden",lS="evdo_b",pS="lte",_S="ehrpd",ES="hspap",TS="gsm",SS="td_scdma",fS="iwlan",dS="nr",AS="nrnsa",vS="lte_ca",KV=ZT,jV=eS,qV=tS,WV=rS,zV=nS,JV=oS,XV=iS,$V=aS,QV=uS,ZV=sS,e0=cS,t0=lS,r0=pS,n0=_S,o0=ES,i0=TS,a0=SS,u0=fS,s0=dS,c0=AS,l0=vS,p0=D([ZT,eS,tS,rS,nS,oS,iS,aS,uS,sS,cS,lS,pS,_S,ES,TS,SS,fS,dS,AS,vS]),OS="1.0",mS="1.1",hS="2.0",NS="SPDY",RS="QUIC",_0=OS,E0=mS,T0=hS,S0=NS,f0=RS,d0={HTTP_1_0:OS,HTTP_1_1:mS,HTTP_2_0:hS,SPDY:NS,QUIC:RS},yS="queue",PS="topic",A0=yS,v0=PS,O0=D([yS,PS]),MS="receive",gS="process",m0=MS,h0=gS,N0=D([MS,gS]),LS=0,IS=1,CS=2,xS=3,bS=4,US=5,DS=6,VS=7,wS=8,BS=9,GS=10,HS=11,kS=12,YS=13,FS=14,KS=15,jS=16,R0=LS,y0=IS,P0=CS,M0=xS,g0=bS,L0=US,I0=DS,C0=VS,x0=wS,b0=BS,U0=GS,D0=HS,V0=kS,w0=YS,B0=FS,G0=KS,H0=jS,k0={OK:LS,CANCELLED:IS,UNKNOWN:CS,INVALID_ARGUMENT:xS,DEADLINE_EXCEEDED:bS,NOT_FOUND:US,ALREADY_EXISTS:DS,PERMISSION_DENIED:VS,RESOURCE_EXHAUSTED:wS,FAILED_PRECONDITION:BS,ABORTED:GS,OUT_OF_RANGE:HS,UNIMPLEMENTED:kS,INTERNAL:YS,UNAVAILABLE:FS,DATA_LOSS:KS,UNAUTHENTICATED:jS},qS="SENT",WS="RECEIVED",Y0=qS,F0=WS,K0=D([qS,WS])});var JS=d(()=>{zS()});var XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,hf,Nf,Rf,yf,Pf,Mf,gf,Lf,If,Cf,xf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld,pd,_d,Ed,Td,Sd,fd,dd,Ad,vd,Od,md,hd,Nd,j0,q0,W0,z0,J0,X0,$0,Q0,Z0,ew,tw,rw,nw,ow,iw,aw,uw,sw,cw,lw,pw,_w,Ew,Tw,Sw,fw,dw,Aw,vw,Ow,mw,hw,Nw,Rw,yw,Pw,Mw,gw,Lw,Iw,Cw,xw,bw,Uw,Dw,Vw,ww,Bw,Gw,Hw,kw,Yw,Fw,Kw,jw,qw,Ww,zw,Jw,Xw,$w,Qw,Zw,e1,t1,r1,n1,o1,i1,a1,u1,s1,c1,l1,p1,_1,E1,T1,S1,f1,d1,A1,Rd,yd,Pd,Md,v1,O1,m1,h1,N1,gd,Ld,Id,Cd,xd,bd,Ud,Dd,Vd,wd,Bd,Gd,Hd,kd,Yd,Fd,Kd,R1,y1,P1,M1,g1,L1,I1,C1,x1,b1,U1,D1,V1,w1,B1,G1,H1,k1,jd,qd,Y1,F1,K1,Wd,zd,Jd,Xd,$d,Qd,Zd,j1,q1,W1,z1,J1,X1,$1,Q1,eA,tA,rA,nA,oA,iA,aA,uA,sA,cA,lA,Z1,eB,tB,rB,nB,oB,iB,aB,uB,sB,cB,lB,pA,_A,EA,TA,SA,fA,dA,AA,vA,OA,pB,_B,EB,TB,SB,fB,dB,AB,vB,OB,mB,mA=d(()=>{Wa();XS="cloud.provider",$S="cloud.account.id",QS="cloud.region",ZS="cloud.availability_zone",ef="cloud.platform",tf="aws.ecs.container.arn",rf="aws.ecs.cluster.arn",nf="aws.ecs.launchtype",of="aws.ecs.task.arn",af="aws.ecs.task.family",uf="aws.ecs.task.revision",sf="aws.eks.cluster.arn",cf="aws.log.group.names",lf="aws.log.group.arns",pf="aws.log.stream.names",_f="aws.log.stream.arns",Ef="container.name",Tf="container.id",Sf="container.runtime",ff="container.image.name",df="container.image.tag",Af="deployment.environment",vf="device.id",Of="device.model.identifier",mf="device.model.name",hf="faas.name",Nf="faas.id",Rf="faas.version",yf="faas.instance",Pf="faas.max_memory",Mf="host.id",gf="host.name",Lf="host.type",If="host.arch",Cf="host.image.name",xf="host.image.id",bf="host.image.version",Uf="k8s.cluster.name",Df="k8s.node.name",Vf="k8s.node.uid",wf="k8s.namespace.name",Bf="k8s.pod.uid",Gf="k8s.pod.name",Hf="k8s.container.name",kf="k8s.replicaset.uid",Yf="k8s.replicaset.name",Ff="k8s.deployment.uid",Kf="k8s.deployment.name",jf="k8s.statefulset.uid",qf="k8s.statefulset.name",Wf="k8s.daemonset.uid",zf="k8s.daemonset.name",Jf="k8s.job.uid",Xf="k8s.job.name",$f="k8s.cronjob.uid",Qf="k8s.cronjob.name",Zf="os.type",ed="os.description",td="os.name",rd="os.version",nd="process.pid",od="process.executable.name",id="process.executable.path",ad="process.command",ud="process.command_line",sd="process.command_args",cd="process.owner",ld="process.runtime.name",pd="process.runtime.version",_d="process.runtime.description",Ed="service.name",Td="service.namespace",Sd="service.instance.id",fd="service.version",dd="telemetry.sdk.name",Ad="telemetry.sdk.language",vd="telemetry.sdk.version",Od="telemetry.auto.version",md="webengine.name",hd="webengine.version",Nd="webengine.description",j0=XS,q0=$S,W0=QS,z0=ZS,J0=ef,X0=tf,$0=rf,Q0=nf,Z0=of,ew=af,tw=uf,rw=sf,nw=cf,ow=lf,iw=pf,aw=_f,uw=Ef,sw=Tf,cw=Sf,lw=ff,pw=df,_w=Af,Ew=vf,Tw=Of,Sw=mf,fw=hf,dw=Nf,Aw=Rf,vw=yf,Ow=Pf,mw=Mf,hw=gf,Nw=Lf,Rw=If,yw=Cf,Pw=xf,Mw=bf,gw=Uf,Lw=Df,Iw=Vf,Cw=wf,xw=Bf,bw=Gf,Uw=Hf,Dw=kf,Vw=Yf,ww=Ff,Bw=Kf,Gw=jf,Hw=qf,kw=Wf,Yw=zf,Fw=Jf,Kw=Xf,jw=$f,qw=Qf,Ww=Zf,zw=ed,Jw=td,Xw=rd,$w=nd,Qw=od,Zw=id,e1=ad,t1=ud,r1=sd,n1=cd,o1=ld,i1=pd,a1=_d,u1=Ed,s1=Td,c1=Sd,l1=fd,p1=dd,_1=Ad,E1=vd,T1=Od,S1=md,f1=hd,d1=Nd,A1=D([XS,$S,QS,ZS,ef,tf,rf,nf,of,af,uf,sf,cf,lf,pf,_f,Ef,Tf,Sf,ff,df,Af,vf,Of,mf,hf,Nf,Rf,yf,Pf,Mf,gf,Lf,If,Cf,xf,bf,Uf,Df,Vf,wf,Bf,Gf,Hf,kf,Yf,Ff,Kf,jf,qf,Wf,zf,Jf,Xf,$f,Qf,Zf,ed,td,rd,nd,od,id,ad,ud,sd,cd,ld,pd,_d,Ed,Td,Sd,fd,dd,Ad,vd,Od,md,hd,Nd]),Rd="alibaba_cloud",yd="aws",Pd="azure",Md="gcp",v1=Rd,O1=yd,m1=Pd,h1=Md,N1=D([Rd,yd,Pd,Md]),gd="alibaba_cloud_ecs",Ld="alibaba_cloud_fc",Id="aws_ec2",Cd="aws_ecs",xd="aws_eks",bd="aws_lambda",Ud="aws_elastic_beanstalk",Dd="azure_vm",Vd="azure_container_instances",wd="azure_aks",Bd="azure_functions",Gd="azure_app_service",Hd="gcp_compute_engine",kd="gcp_cloud_run",Yd="gcp_kubernetes_engine",Fd="gcp_cloud_functions",Kd="gcp_app_engine",R1=gd,y1=Ld,P1=Id,M1=Cd,g1=xd,L1=bd,I1=Ud,C1=Dd,x1=Vd,b1=wd,U1=Bd,D1=Gd,V1=Hd,w1=kd,B1=Yd,G1=Fd,H1=Kd,k1=D([gd,Ld,Id,Cd,xd,bd,Ud,Dd,Vd,wd,Bd,Gd,Hd,kd,Yd,Fd,Kd]),jd="ec2",qd="fargate",Y1=jd,F1=qd,K1=D([jd,qd]),Wd="amd64",zd="arm32",Jd="arm64",Xd="ia64",$d="ppc32",Qd="ppc64",Zd="x86",j1=Wd,q1=zd,W1=Jd,z1=Xd,J1=$d,X1=Qd,$1=Zd,Q1=D([Wd,zd,Jd,Xd,$d,Qd,Zd]),eA="windows",tA="linux",rA="darwin",nA="freebsd",oA="netbsd",iA="openbsd",aA="dragonflybsd",uA="hpux",sA="aix",cA="solaris",lA="z_os",Z1=eA,eB=tA,tB=rA,rB=nA,nB=oA,oB=iA,iB=aA,aB=uA,uB=sA,sB=cA,cB=lA,lB=D([eA,tA,rA,nA,oA,iA,aA,uA,sA,cA,lA]),pA="cpp",_A="dotnet",EA="erlang",TA="go",SA="java",fA="nodejs",dA="php",AA="python",vA="ruby",OA="webjs",pB=pA,_B=_A,EB=EA,TB=TA,SB=SA,fB=fA,dB=dA,AB=AA,vB=vA,OB=OA,mB=D([pA,_A,EA,TA,SA,fA,dA,AA,vA,OA])});var hA=d(()=>{mA()});var hB,NB,RB,yB,PB,MB,gB,LB,IB,CB,xB,bB,UB,DB,VB,wB,BB,GB,HB,kB,YB,FB,KB,jB,qB,WB,zB,JB,XB,$B,QB,ZB,eG,tG,rG,nG,oG,iG,aG,uG,sG,cG,lG,pG,_G,EG,TG,SG,fG,dG,AG,vG,OG,mG,hG,NG,RG,yG,PG,MG,gG,LG,IG,CG,xG,bG,UG,DG,VG,wG,BG,GG,HG,kG,YG,FG,KG,jG,qG,WG,zG,JG,XG,$G,QG,ZG,eH,tH,rH,nH,oH,iH,aH,uH,sH,cH,lH,pH,_H,EH,TH,SH,fH,dH,AH,vH,OH,mH,hH,NH,NA=d(()=>{hB="aspnetcore.rate_limiting.result",NB="acquired",RB="endpoint_limiter",yB="global_limiter",PB="request_canceled",MB="telemetry.sdk.language",gB="cpp",LB="dotnet",IB="erlang",CB="go",xB="java",bB="nodejs",UB="php",DB="python",VB="ruby",wB="rust",BB="swift",GB="webjs",HB="telemetry.sdk.name",kB="telemetry.sdk.version",YB="aspnetcore.diagnostics.handler.type",FB="aspnetcore.diagnostics.exception.result",KB="aborted",jB="handled",qB="skipped",WB="unhandled",zB="aspnetcore.rate_limiting.policy",JB="aspnetcore.request.is_unhandled",XB="aspnetcore.routing.is_fallback",$B="aspnetcore.routing.match_status",QB="failure",ZB="success",eG="client.address",tG="client.port",rG="error.type",nG="_OTHER",oG="exception.escaped",iG="exception.message",aG="exception.stacktrace",uG="exception.type",sG=function(o){return"http.request.header."+o},cG="http.request.method",lG="_OTHER",pG="CONNECT",_G="DELETE",EG="GET",TG="HEAD",SG="OPTIONS",fG="PATCH",dG="POST",AG="PUT",vG="TRACE",OG="http.request.method_original",mG="http.request.resend_count",hG=function(o){return"http.response.header."+o},NG="http.response.status_code",RG="http.route",yG="jvm.gc.action",PG="jvm.gc.name",MG="jvm.memory.pool.name",gG="jvm.memory.type",LG="heap",IG="non_heap",CG="jvm.thread.daemon",xG="jvm.thread.state",bG="blocked",UG="new",DG="runnable",VG="terminated",wG="timed_waiting",BG="waiting",GG="network.local.address",HG="network.local.port",kG="network.peer.address",YG="network.peer.port",FG="network.protocol.name",KG="network.protocol.version",jG="network.transport",qG="pipe",WG="quic",zG="tcp",JG="udp",XG="unix",$G="network.type",QG="ipv4",ZG="ipv6",eH="otel.scope.name",tH="otel.scope.version",rH="otel.status_code",nH="ERROR",oH="OK",iH="otel.status_description",aH="server.address",uH="server.port",sH="service.name",cH="service.version",lH="signalr.connection.status",pH="app_shutdown",_H="normal_closure",EH="timeout",TH="signalr.transport",SH="long_polling",fH="server_sent_events",dH="web_sockets",AH="url.fragment",vH="url.full",OH="url.path",mH="url.query",hH="url.scheme",NH="user_agent.original"});var RH,yH,PH,MH,gH,LH,IH,CH,xH,bH,UH,DH,VH,wH,BH,GH,HH,kH,YH,FH,KH,jH,qH,WH,zH,JH,XH,$H,QH,ZH,ek,RA=d(()=>{RH="aspnetcore.diagnostics.exceptions",yH="aspnetcore.rate_limiting.active_request_leases",PH="aspnetcore.rate_limiting.queued_requests",MH="aspnetcore.rate_limiting.request.time_in_queue",gH="aspnetcore.rate_limiting.request_lease.duration",LH="aspnetcore.rate_limiting.requests",IH="aspnetcore.routing.match_attempts",CH="http.client.request.duration",xH="http.server.request.duration",bH="jvm.class.count",UH="jvm.class.loaded",DH="jvm.class.unloaded",VH="jvm.cpu.count",wH="jvm.cpu.recent_utilization",BH="jvm.cpu.time",GH="jvm.gc.duration",HH="jvm.memory.committed",kH="jvm.memory.limit",YH="jvm.memory.used",FH="jvm.memory.used_after_last_gc",KH="jvm.thread.count",jH="kestrel.active_connections",qH="kestrel.active_tls_handshakes",WH="kestrel.connection.duration",zH="kestrel.queued_connections",JH="kestrel.queued_requests",XH="kestrel.rejected_connections",$H="kestrel.tls_handshake.duration",QH="kestrel.upgraded_connections",ZH="signalr.server.active_connections",ek="signalr.server.connection.duration"});var yA={};Ot(yA,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>KB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>jB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>qB,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>WB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>NB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>RB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>yB,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>PB,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>QB,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>ZB,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>FB,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>YB,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>zB,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>hB,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>JB,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>XB,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>$B,ATTR_CLIENT_ADDRESS:()=>eG,ATTR_CLIENT_PORT:()=>tG,ATTR_ERROR_TYPE:()=>rG,ATTR_EXCEPTION_ESCAPED:()=>oG,ATTR_EXCEPTION_MESSAGE:()=>iG,ATTR_EXCEPTION_STACKTRACE:()=>aG,ATTR_EXCEPTION_TYPE:()=>uG,ATTR_HTTP_REQUEST_HEADER:()=>sG,ATTR_HTTP_REQUEST_METHOD:()=>cG,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>OG,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>mG,ATTR_HTTP_RESPONSE_HEADER:()=>hG,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>NG,ATTR_HTTP_ROUTE:()=>RG,ATTR_JVM_GC_ACTION:()=>yG,ATTR_JVM_GC_NAME:()=>PG,ATTR_JVM_MEMORY_POOL_NAME:()=>MG,ATTR_JVM_MEMORY_TYPE:()=>gG,ATTR_JVM_THREAD_DAEMON:()=>CG,ATTR_JVM_THREAD_STATE:()=>xG,ATTR_NETWORK_LOCAL_ADDRESS:()=>GG,ATTR_NETWORK_LOCAL_PORT:()=>HG,ATTR_NETWORK_PEER_ADDRESS:()=>kG,ATTR_NETWORK_PEER_PORT:()=>YG,ATTR_NETWORK_PROTOCOL_NAME:()=>FG,ATTR_NETWORK_PROTOCOL_VERSION:()=>KG,ATTR_NETWORK_TRANSPORT:()=>jG,ATTR_NETWORK_TYPE:()=>$G,ATTR_OTEL_SCOPE_NAME:()=>eH,ATTR_OTEL_SCOPE_VERSION:()=>tH,ATTR_OTEL_STATUS_CODE:()=>rH,ATTR_OTEL_STATUS_DESCRIPTION:()=>iH,ATTR_SERVER_ADDRESS:()=>aH,ATTR_SERVER_PORT:()=>uH,ATTR_SERVICE_NAME:()=>sH,ATTR_SERVICE_VERSION:()=>cH,ATTR_SIGNALR_CONNECTION_STATUS:()=>lH,ATTR_SIGNALR_TRANSPORT:()=>TH,ATTR_TELEMETRY_SDK_LANGUAGE:()=>MB,ATTR_TELEMETRY_SDK_NAME:()=>HB,ATTR_TELEMETRY_SDK_VERSION:()=>kB,ATTR_URL_FRAGMENT:()=>AH,ATTR_URL_FULL:()=>vH,ATTR_URL_PATH:()=>OH,ATTR_URL_QUERY:()=>mH,ATTR_URL_SCHEME:()=>hH,ATTR_USER_AGENT_ORIGINAL:()=>NH,AWSECSLAUNCHTYPEVALUES_EC2:()=>Y1,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>F1,AwsEcsLaunchtypeValues:()=>K1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>R1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>y1,CLOUDPLATFORMVALUES_AWS_EC2:()=>P1,CLOUDPLATFORMVALUES_AWS_ECS:()=>M1,CLOUDPLATFORMVALUES_AWS_EKS:()=>g1,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>I1,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>L1,CLOUDPLATFORMVALUES_AZURE_AKS:()=>b1,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>D1,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>x1,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>U1,CLOUDPLATFORMVALUES_AZURE_VM:()=>C1,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>H1,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>G1,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>w1,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>V1,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>B1,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>v1,CLOUDPROVIDERVALUES_AWS:()=>O1,CLOUDPROVIDERVALUES_AZURE:()=>m1,CLOUDPROVIDERVALUES_GCP:()=>h1,CloudPlatformValues:()=>k1,CloudProviderValues:()=>N1,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>nV,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>pV,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>oV,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>lV,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>aV,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>EV,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>uV,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>iV,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>_V,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>cV,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>sV,DBSYSTEMVALUES_ADABAS:()=>PD,DBSYSTEMVALUES_CACHE:()=>yD,DBSYSTEMVALUES_CASSANDRA:()=>FD,DBSYSTEMVALUES_CLOUDSCAPE:()=>dD,DBSYSTEMVALUES_COCKROACHDB:()=>tV,DBSYSTEMVALUES_COLDFUSION:()=>YD,DBSYSTEMVALUES_COSMOSDB:()=>JD,DBSYSTEMVALUES_COUCHBASE:()=>WD,DBSYSTEMVALUES_COUCHDB:()=>zD,DBSYSTEMVALUES_DB2:()=>ED,DBSYSTEMVALUES_DERBY:()=>gD,DBSYSTEMVALUES_DYNAMODB:()=>XD,DBSYSTEMVALUES_EDB:()=>RD,DBSYSTEMVALUES_ELASTICSEARCH:()=>ZD,DBSYSTEMVALUES_FILEMAKER:()=>LD,DBSYSTEMVALUES_FIREBIRD:()=>MD,DBSYSTEMVALUES_FIRSTSQL:()=>ND,DBSYSTEMVALUES_GEODE:()=>QD,DBSYSTEMVALUES_H2:()=>kD,DBSYSTEMVALUES_HANADB:()=>mD,DBSYSTEMVALUES_HBASE:()=>KD,DBSYSTEMVALUES_HIVE:()=>fD,DBSYSTEMVALUES_HSQLDB:()=>AD,DBSYSTEMVALUES_INFORMIX:()=>ID,DBSYSTEMVALUES_INGRES:()=>hD,DBSYSTEMVALUES_INSTANTDB:()=>CD,DBSYSTEMVALUES_INTERBASE:()=>xD,DBSYSTEMVALUES_MARIADB:()=>bD,DBSYSTEMVALUES_MAXDB:()=>OD,DBSYSTEMVALUES_MEMCACHED:()=>eV,DBSYSTEMVALUES_MONGODB:()=>jD,DBSYSTEMVALUES_MSSQL:()=>lD,DBSYSTEMVALUES_MYSQL:()=>pD,DBSYSTEMVALUES_NEO4J:()=>$D,DBSYSTEMVALUES_NETEZZA:()=>UD,DBSYSTEMVALUES_ORACLE:()=>_D,DBSYSTEMVALUES_OTHER_SQL:()=>cD,DBSYSTEMVALUES_PERVASIVE:()=>DD,DBSYSTEMVALUES_POINTBASE:()=>VD,DBSYSTEMVALUES_POSTGRESQL:()=>TD,DBSYSTEMVALUES_PROGRESS:()=>vD,DBSYSTEMVALUES_REDIS:()=>qD,DBSYSTEMVALUES_REDSHIFT:()=>SD,DBSYSTEMVALUES_SQLITE:()=>wD,DBSYSTEMVALUES_SYBASE:()=>BD,DBSYSTEMVALUES_TERADATA:()=>GD,DBSYSTEMVALUES_VERTICA:()=>HD,DbCassandraConsistencyLevelValues:()=>TV,DbSystemValues:()=>rV,ERROR_TYPE_VALUE_OTHER:()=>nG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>NV,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>hV,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>mV,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>yV,FAASINVOKEDPROVIDERVALUES_AWS:()=>PV,FAASINVOKEDPROVIDERVALUES_AZURE:()=>MV,FAASINVOKEDPROVIDERVALUES_GCP:()=>gV,FAASTRIGGERVALUES_DATASOURCE:()=>SV,FAASTRIGGERVALUES_HTTP:()=>fV,FAASTRIGGERVALUES_OTHER:()=>vV,FAASTRIGGERVALUES_PUBSUB:()=>dV,FAASTRIGGERVALUES_TIMER:()=>AV,FaasDocumentOperationValues:()=>RV,FaasInvokedProviderValues:()=>LV,FaasTriggerValues:()=>OV,HOSTARCHVALUES_AMD64:()=>j1,HOSTARCHVALUES_ARM32:()=>q1,HOSTARCHVALUES_ARM64:()=>W1,HOSTARCHVALUES_IA64:()=>z1,HOSTARCHVALUES_PPC32:()=>J1,HOSTARCHVALUES_PPC64:()=>X1,HOSTARCHVALUES_X86:()=>$1,HTTPFLAVORVALUES_HTTP_1_0:()=>_0,HTTPFLAVORVALUES_HTTP_1_1:()=>E0,HTTPFLAVORVALUES_HTTP_2_0:()=>T0,HTTPFLAVORVALUES_QUIC:()=>f0,HTTPFLAVORVALUES_SPDY:()=>S0,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>pG,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>_G,HTTP_REQUEST_METHOD_VALUE_GET:()=>EG,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>TG,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>SG,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>lG,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>fG,HTTP_REQUEST_METHOD_VALUE_POST:()=>dG,HTTP_REQUEST_METHOD_VALUE_PUT:()=>AG,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>vG,HostArchValues:()=>Q1,HttpFlavorValues:()=>d0,JVM_MEMORY_TYPE_VALUE_HEAP:()=>LG,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>IG,JVM_THREAD_STATE_VALUE_BLOCKED:()=>bG,JVM_THREAD_STATE_VALUE_NEW:()=>UG,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>DG,JVM_THREAD_STATE_VALUE_TERMINATED:()=>VG,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>wG,JVM_THREAD_STATE_VALUE_WAITING:()=>BG,MESSAGETYPEVALUES_RECEIVED:()=>F0,MESSAGETYPEVALUES_SENT:()=>Y0,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>A0,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>v0,MESSAGINGOPERATIONVALUES_PROCESS:()=>h0,MESSAGINGOPERATIONVALUES_RECEIVE:()=>m0,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>RH,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>yH,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>PH,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>LH,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>gH,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>MH,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>IH,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>CH,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>xH,METRIC_JVM_CLASS_COUNT:()=>bH,METRIC_JVM_CLASS_LOADED:()=>UH,METRIC_JVM_CLASS_UNLOADED:()=>DH,METRIC_JVM_CPU_COUNT:()=>VH,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>wH,METRIC_JVM_CPU_TIME:()=>BH,METRIC_JVM_GC_DURATION:()=>GH,METRIC_JVM_MEMORY_COMMITTED:()=>HH,METRIC_JVM_MEMORY_LIMIT:()=>kH,METRIC_JVM_MEMORY_USED:()=>YH,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>FH,METRIC_JVM_THREAD_COUNT:()=>KH,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>jH,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>qH,METRIC_KESTREL_CONNECTION_DURATION:()=>WH,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>zH,METRIC_KESTREL_QUEUED_REQUESTS:()=>JH,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>XH,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>$H,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>QH,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>ZH,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>ek,MessageTypeValues:()=>K0,MessagingDestinationKindValues:()=>O0,MessagingOperationValues:()=>N0,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>WV,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>XV,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>jV,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>n0,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>zV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>JV,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>t0,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>KV,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>i0,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>$V,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>ZV,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>o0,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>QV,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>e0,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>u0,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>r0,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>l0,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>s0,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>c0,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>a0,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>qV,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>HV,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>kV,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>YV,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>BV,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>GV,NETTRANSPORTVALUES_INPROC:()=>DV,NETTRANSPORTVALUES_IP:()=>xV,NETTRANSPORTVALUES_IP_TCP:()=>IV,NETTRANSPORTVALUES_IP_UDP:()=>CV,NETTRANSPORTVALUES_OTHER:()=>VV,NETTRANSPORTVALUES_PIPE:()=>UV,NETTRANSPORTVALUES_UNIX:()=>bV,NETWORK_TRANSPORT_VALUE_PIPE:()=>qG,NETWORK_TRANSPORT_VALUE_QUIC:()=>WG,NETWORK_TRANSPORT_VALUE_TCP:()=>zG,NETWORK_TRANSPORT_VALUE_UDP:()=>JG,NETWORK_TRANSPORT_VALUE_UNIX:()=>XG,NETWORK_TYPE_VALUE_IPV4:()=>QG,NETWORK_TYPE_VALUE_IPV6:()=>ZG,NetHostConnectionSubtypeValues:()=>p0,NetHostConnectionTypeValues:()=>FV,NetTransportValues:()=>wV,OSTYPEVALUES_AIX:()=>uB,OSTYPEVALUES_DARWIN:()=>tB,OSTYPEVALUES_DRAGONFLYBSD:()=>iB,OSTYPEVALUES_FREEBSD:()=>rB,OSTYPEVALUES_HPUX:()=>aB,OSTYPEVALUES_LINUX:()=>eB,OSTYPEVALUES_NETBSD:()=>nB,OSTYPEVALUES_OPENBSD:()=>oB,OSTYPEVALUES_SOLARIS:()=>sB,OSTYPEVALUES_WINDOWS:()=>Z1,OSTYPEVALUES_Z_OS:()=>cB,OTEL_STATUS_CODE_VALUE_ERROR:()=>nH,OTEL_STATUS_CODE_VALUE_OK:()=>oH,OsTypeValues:()=>lB,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>U0,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>I0,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>y0,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>G0,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>g0,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>b0,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>w0,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>M0,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>L0,RPCGRPCSTATUSCODEVALUES_OK:()=>R0,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>D0,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>C0,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>x0,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>H0,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>B0,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>V0,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>P0,RpcGrpcStatusCodeValues:()=>k0,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>dU,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>LU,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>TU,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>lU,SEMATTRS_AWS_DYNAMODB_COUNT:()=>MU,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>hU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>OU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>IU,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>AU,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>pU,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>fU,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>mU,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>SU,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>_U,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>EU,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>gU,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>RU,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>yU,SEMATTRS_AWS_DYNAMODB_SELECT:()=>vU,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>NU,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>cU,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>PU,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Yx,SEMATTRS_CODE_FILEPATH:()=>qb,SEMATTRS_CODE_FUNCTION:()=>Kb,SEMATTRS_CODE_LINENO:()=>Wb,SEMATTRS_CODE_NAMESPACE:()=>jb,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Zx,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>ob,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>nb,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>tb,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>$x,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Qx,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>rb,SEMATTRS_DB_CASSANDRA_TABLE:()=>eb,SEMATTRS_DB_CONNECTION_STRING:()=>Kx,SEMATTRS_DB_HBASE_NAMESPACE:()=>ib,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>qx,SEMATTRS_DB_MONGODB_COLLECTION:()=>ub,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Xx,SEMATTRS_DB_NAME:()=>Wx,SEMATTRS_DB_OPERATION:()=>Jx,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>ab,SEMATTRS_DB_SQL_TABLE:()=>sb,SEMATTRS_DB_STATEMENT:()=>zx,SEMATTRS_DB_SYSTEM:()=>Fx,SEMATTRS_DB_USER:()=>jx,SEMATTRS_ENDUSER_ID:()=>Gb,SEMATTRS_ENDUSER_ROLE:()=>Hb,SEMATTRS_ENDUSER_SCOPE:()=>kb,SEMATTRS_EXCEPTION_ESCAPED:()=>_b,SEMATTRS_EXCEPTION_MESSAGE:()=>lb,SEMATTRS_EXCEPTION_STACKTRACE:()=>pb,SEMATTRS_EXCEPTION_TYPE:()=>cb,SEMATTRS_FAAS_COLDSTART:()=>mb,SEMATTRS_FAAS_CRON:()=>Ob,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Sb,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Ab,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>fb,SEMATTRS_FAAS_DOCUMENT_TIME:()=>db,SEMATTRS_FAAS_EXECUTION:()=>Tb,SEMATTRS_FAAS_INVOKED_NAME:()=>hb,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Nb,SEMATTRS_FAAS_INVOKED_REGION:()=>Rb,SEMATTRS_FAAS_TIME:()=>vb,SEMATTRS_FAAS_TRIGGER:()=>Eb,SEMATTRS_HTTP_CLIENT_IP:()=>sU,SEMATTRS_HTTP_FLAVOR:()=>eU,SEMATTRS_HTTP_HOST:()=>$b,SEMATTRS_HTTP_METHOD:()=>zb,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>rU,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>nU,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>oU,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>iU,SEMATTRS_HTTP_ROUTE:()=>uU,SEMATTRS_HTTP_SCHEME:()=>Qb,SEMATTRS_HTTP_SERVER_NAME:()=>aU,SEMATTRS_HTTP_STATUS_CODE:()=>Zb,SEMATTRS_HTTP_TARGET:()=>Xb,SEMATTRS_HTTP_URL:()=>Jb,SEMATTRS_HTTP_USER_AGENT:()=>tU,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>aD,SEMATTRS_MESSAGE_ID:()=>iD,SEMATTRS_MESSAGE_TYPE:()=>oD,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>uD,SEMATTRS_MESSAGING_CONSUMER_ID:()=>FU,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>GU,SEMATTRS_MESSAGING_DESTINATION:()=>xU,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>bU,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>WU,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>qU,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>jU,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>zU,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>JU,SEMATTRS_MESSAGING_MESSAGE_ID:()=>BU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>kU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>HU,SEMATTRS_MESSAGING_OPERATION:()=>YU,SEMATTRS_MESSAGING_PROTOCOL:()=>DU,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>VU,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>KU,SEMATTRS_MESSAGING_SYSTEM:()=>CU,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>UU,SEMATTRS_MESSAGING_URL:()=>wU,SEMATTRS_NET_HOST_CARRIER_ICC:()=>wb,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Db,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Vb,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Ub,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>bb,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>xb,SEMATTRS_NET_HOST_IP:()=>Lb,SEMATTRS_NET_HOST_NAME:()=>Cb,SEMATTRS_NET_HOST_PORT:()=>Ib,SEMATTRS_NET_PEER_IP:()=>Pb,SEMATTRS_NET_PEER_NAME:()=>gb,SEMATTRS_NET_PEER_PORT:()=>Mb,SEMATTRS_NET_TRANSPORT:()=>yb,SEMATTRS_PEER_SERVICE:()=>Bb,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>ZU,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>rD,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>nD,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>tD,SEMATTRS_RPC_JSONRPC_VERSION:()=>eD,SEMATTRS_RPC_METHOD:()=>QU,SEMATTRS_RPC_SERVICE:()=>$U,SEMATTRS_RPC_SYSTEM:()=>XU,SEMATTRS_THREAD_ID:()=>Yb,SEMATTRS_THREAD_NAME:()=>Fb,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>$0,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>X0,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>Q0,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Z0,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>ew,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>tw,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>rw,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>ow,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>nw,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>aw,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>iw,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>q0,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>z0,SEMRESATTRS_CLOUD_PLATFORM:()=>J0,SEMRESATTRS_CLOUD_PROVIDER:()=>j0,SEMRESATTRS_CLOUD_REGION:()=>W0,SEMRESATTRS_CONTAINER_ID:()=>sw,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>lw,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>pw,SEMRESATTRS_CONTAINER_NAME:()=>uw,SEMRESATTRS_CONTAINER_RUNTIME:()=>cw,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>_w,SEMRESATTRS_DEVICE_ID:()=>Ew,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Tw,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Sw,SEMRESATTRS_FAAS_ID:()=>dw,SEMRESATTRS_FAAS_INSTANCE:()=>vw,SEMRESATTRS_FAAS_MAX_MEMORY:()=>Ow,SEMRESATTRS_FAAS_NAME:()=>fw,SEMRESATTRS_FAAS_VERSION:()=>Aw,SEMRESATTRS_HOST_ARCH:()=>Rw,SEMRESATTRS_HOST_ID:()=>mw,SEMRESATTRS_HOST_IMAGE_ID:()=>Pw,SEMRESATTRS_HOST_IMAGE_NAME:()=>yw,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Mw,SEMRESATTRS_HOST_NAME:()=>hw,SEMRESATTRS_HOST_TYPE:()=>Nw,SEMRESATTRS_K8S_CLUSTER_NAME:()=>gw,SEMRESATTRS_K8S_CONTAINER_NAME:()=>Uw,SEMRESATTRS_K8S_CRONJOB_NAME:()=>qw,SEMRESATTRS_K8S_CRONJOB_UID:()=>jw,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Yw,SEMRESATTRS_K8S_DAEMONSET_UID:()=>kw,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>Bw,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>ww,SEMRESATTRS_K8S_JOB_NAME:()=>Kw,SEMRESATTRS_K8S_JOB_UID:()=>Fw,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Cw,SEMRESATTRS_K8S_NODE_NAME:()=>Lw,SEMRESATTRS_K8S_NODE_UID:()=>Iw,SEMRESATTRS_K8S_POD_NAME:()=>bw,SEMRESATTRS_K8S_POD_UID:()=>xw,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Vw,SEMRESATTRS_K8S_REPLICASET_UID:()=>Dw,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Hw,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Gw,SEMRESATTRS_OS_DESCRIPTION:()=>zw,SEMRESATTRS_OS_NAME:()=>Jw,SEMRESATTRS_OS_TYPE:()=>Ww,SEMRESATTRS_OS_VERSION:()=>Xw,SEMRESATTRS_PROCESS_COMMAND:()=>e1,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>r1,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>t1,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>Qw,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Zw,SEMRESATTRS_PROCESS_OWNER:()=>n1,SEMRESATTRS_PROCESS_PID:()=>$w,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>a1,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>o1,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>i1,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>c1,SEMRESATTRS_SERVICE_NAME:()=>u1,SEMRESATTRS_SERVICE_NAMESPACE:()=>s1,SEMRESATTRS_SERVICE_VERSION:()=>l1,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>T1,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>_1,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>p1,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>E1,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>d1,SEMRESATTRS_WEBENGINE_NAME:()=>S1,SEMRESATTRS_WEBENGINE_VERSION:()=>f1,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>pH,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>_H,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>EH,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>SH,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>fH,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>dH,SemanticAttributes:()=>sD,SemanticResourceAttributes:()=>A1,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>pB,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>_B,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>EB,TELEMETRYSDKLANGUAGEVALUES_GO:()=>TB,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>SB,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>fB,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>dB,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>AB,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>vB,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>OB,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>gB,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>LB,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>IB,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>CB,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>xB,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>bB,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>UB,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>DB,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>VB,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>wB,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>BB,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>GB,TelemetrySdkLanguageValues:()=>mB});var PA=d(()=>{JS();hA();NA();RA()});var MA=S(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.SDK_INFO=void 0;var tk=qa(),hr=(PA(),N(yA));gn.SDK_INFO={[hr.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[hr.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[hr.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:hr.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[hr.SEMRESATTRS_TELEMETRY_SDK_VERSION]:tk.VERSION}});var gA=S(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.unrefTimer=void 0;function rk(o){o.unref()}Ln.unrefTimer=rk});var IA=S(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.unrefTimer=Y.SDK_INFO=Y.otperformance=Y.RandomIdGenerator=Y.hexToBase64=Y._globalThis=Y.getEnv=Y.getEnvWithoutDefaults=void 0;var LA=$l();Object.defineProperty(Y,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return LA.getEnvWithoutDefaults}});Object.defineProperty(Y,"getEnv",{enumerable:!0,get:function(){return LA.getEnv}});var nk=Ql();Object.defineProperty(Y,"_globalThis",{enumerable:!0,get:function(){return nk._globalThis}});var ok=ep();Object.defineProperty(Y,"hexToBase64",{enumerable:!0,get:function(){return ok.hexToBase64}});var ik=np();Object.defineProperty(Y,"RandomIdGenerator",{enumerable:!0,get:function(){return ik.RandomIdGenerator}});var ak=op();Object.defineProperty(Y,"otperformance",{enumerable:!0,get:function(){return ak.otperformance}});var uk=MA();Object.defineProperty(Y,"SDK_INFO",{enumerable:!0,get:function(){return uk.SDK_INFO}});var sk=gA();Object.defineProperty(Y,"unrefTimer",{enumerable:!0,get:function(){return sk.unrefTimer}})});var za=S(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.unrefTimer=F.otperformance=F.hexToBase64=F.getEnvWithoutDefaults=F.getEnv=F._globalThis=F.SDK_INFO=F.RandomIdGenerator=void 0;var je=IA();Object.defineProperty(F,"RandomIdGenerator",{enumerable:!0,get:function(){return je.RandomIdGenerator}});Object.defineProperty(F,"SDK_INFO",{enumerable:!0,get:function(){return je.SDK_INFO}});Object.defineProperty(F,"_globalThis",{enumerable:!0,get:function(){return je._globalThis}});Object.defineProperty(F,"getEnv",{enumerable:!0,get:function(){return je.getEnv}});Object.defineProperty(F,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return je.getEnvWithoutDefaults}});Object.defineProperty(F,"hexToBase64",{enumerable:!0,get:function(){return je.hexToBase64}});Object.defineProperty(F,"otperformance",{enumerable:!0,get:function(){return je.otperformance}});Object.defineProperty(F,"unrefTimer",{enumerable:!0,get:function(){return je.unrefTimer}})});var UA=S(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.addHrTimes=L.isTimeInput=L.isTimeInputHrTime=L.hrTimeToMicroseconds=L.hrTimeToMilliseconds=L.hrTimeToNanoseconds=L.hrTimeToTimeStamp=L.hrTimeDuration=L.timeInputToHrTime=L.hrTime=L.getTimeOrigin=L.millisToHrTime=void 0;var Ja=za(),CA=9,ck=6,lk=Math.pow(10,ck),In=Math.pow(10,CA);function Nr(o){let r=o/1e3,i=Math.trunc(r),c=Math.round(o%1e3*lk);return[i,c]}L.millisToHrTime=Nr;function Xa(){let o=Ja.otperformance.timeOrigin;if(typeof o!="number"){let r=Ja.otperformance;o=r.timing&&r.timing.fetchStart}return o}L.getTimeOrigin=Xa;function xA(o){let r=Nr(Xa()),i=Nr(typeof o=="number"?o:Ja.otperformance.now());return bA(r,i)}L.hrTime=xA;function pk(o){if($a(o))return o;if(typeof o=="number")return o<Xa()?xA(o):Nr(o);if(o instanceof Date)return Nr(o.getTime());throw TypeError("Invalid input type")}L.timeInputToHrTime=pk;function _k(o,r){let i=r[0]-o[0],c=r[1]-o[1];return c<0&&(i-=1,c+=In),[i,c]}L.hrTimeDuration=_k;function Ek(o){let r=CA,i=`${"0".repeat(r)}${o[1]}Z`,c=i.substring(i.length-r-1);return new Date(o[0]*1e3).toISOString().replace("000Z",c)}L.hrTimeToTimeStamp=Ek;function Tk(o){return o[0]*In+o[1]}L.hrTimeToNanoseconds=Tk;function Sk(o){return o[0]*1e3+o[1]/1e6}L.hrTimeToMilliseconds=Sk;function fk(o){return o[0]*1e6+o[1]/1e3}L.hrTimeToMicroseconds=fk;function $a(o){return Array.isArray(o)&&o.length===2&&typeof o[0]=="number"&&typeof o[1]=="number"}L.isTimeInputHrTime=$a;function dk(o){return $a(o)||typeof o=="number"||o instanceof Date}L.isTimeInput=dk;function bA(o,r){let i=[o[0]+r[0],o[1]+r[1]];return i[1]>=In&&(i[1]-=In,i[0]+=1),i}L.addHrTimes=bA});var DA=S(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.ExportResultCode=void 0;var Ak;(function(o){o[o.SUCCESS=0]="SUCCESS",o[o.FAILED=1]="FAILED"})(Ak=Rr.ExportResultCode||(Rr.ExportResultCode={}))});var wA=S(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.CompositePropagator=void 0;var VA=(m(),N(y)),Qa=class{constructor(r={}){var i;this._propagators=(i=r.propagators)!==null&&i!==void 0?i:[],this._fields=Array.from(new Set(this._propagators.map(c=>typeof c.fields=="function"?c.fields():[]).reduce((c,a)=>c.concat(a),[])))}inject(r,i,c){for(let a of this._propagators)try{a.inject(r,i,c)}catch(u){VA.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${u.message}`)}}extract(r,i,c){return this._propagators.reduce((a,u)=>{try{return u.extract(a,i,c)}catch(t){VA.diag.warn(`Failed to extract with ${u.constructor.name}. Err: ${t.message}`)}return a},r)}fields(){return this._fields.slice()}};Cn.CompositePropagator=Qa});var BA=S(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.validateValue=gt.validateKey=void 0;var Za="[_0-9a-z-*/]",vk=`[a-z]${Za}{0,255}`,Ok=`[a-z0-9]${Za}{0,240}@[a-z]${Za}{0,13}`,mk=new RegExp(`^(?:${vk}|${Ok})$`),hk=/^[ -~]{0,255}[!-~]$/,Nk=/,|=/;function Rk(o){return mk.test(o)}gt.validateKey=Rk;function yk(o){return hk.test(o)&&!Nk.test(o)}gt.validateValue=yk});var tu=S(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.TraceState=void 0;var GA=BA(),HA=32,Pk=512,kA=",",YA="=",eu=class o{constructor(r){this._internalState=new Map,r&&this._parse(r)}set(r,i){let c=this._clone();return c._internalState.has(r)&&c._internalState.delete(r),c._internalState.set(r,i),c}unset(r){let i=this._clone();return i._internalState.delete(r),i}get(r){return this._internalState.get(r)}serialize(){return this._keys().reduce((r,i)=>(r.push(i+YA+this.get(i)),r),[]).join(kA)}_parse(r){r.length>Pk||(this._internalState=r.split(kA).reverse().reduce((i,c)=>{let a=c.trim(),u=a.indexOf(YA);if(u!==-1){let t=a.slice(0,u),e=a.slice(u+1,c.length);(0,GA.validateKey)(t)&&(0,GA.validateValue)(e)&&i.set(t,e)}return i},new Map),this._internalState.size>HA&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,HA))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let r=new o;return r._internalState=new Map(this._internalState),r}};xn.TraceState=eu});var KA=S($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.W3CTraceContextPropagator=$.parseTraceParent=$.TRACE_STATE_HEADER=$.TRACE_PARENT_HEADER=void 0;var bn=(m(),N(y)),Mk=Or(),gk=tu();$.TRACE_PARENT_HEADER="traceparent";$.TRACE_STATE_HEADER="tracestate";var Lk="00",Ik="(?!ff)[\\da-f]{2}",Ck="(?![0]{32})[\\da-f]{32}",xk="(?![0]{16})[\\da-f]{16}",bk="[\\da-f]{2}",Uk=new RegExp(`^\\s?(${Ik})-(${Ck})-(${xk})-(${bk})(-.*)?\\s?$`);function FA(o){let r=Uk.exec(o);return!r||r[1]==="00"&&r[5]?null:{traceId:r[2],spanId:r[3],traceFlags:parseInt(r[4],16)}}$.parseTraceParent=FA;var ru=class{inject(r,i,c){let a=bn.trace.getSpanContext(r);if(!a||(0,Mk.isTracingSuppressed)(r)||!(0,bn.isSpanContextValid)(a))return;let u=`${Lk}-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||bn.TraceFlags.NONE).toString(16)}`;c.set(i,$.TRACE_PARENT_HEADER,u),a.traceState&&c.set(i,$.TRACE_STATE_HEADER,a.traceState.serialize())}extract(r,i,c){let a=c.get(i,$.TRACE_PARENT_HEADER);if(!a)return r;let u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return r;let t=FA(u);if(!t)return r;t.isRemote=!0;let e=c.get(i,$.TRACE_STATE_HEADER);if(e){let n=Array.isArray(e)?e.join(","):e;t.traceState=new gk.TraceState(typeof n=="string"?n:void 0)}return bn.trace.setSpanContext(r,t)}fields(){return[$.TRACE_PARENT_HEADER,$.TRACE_STATE_HEADER]}};$.W3CTraceContextPropagator=ru});var jA=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.getRPCMetadata=Ee.deleteRPCMetadata=Ee.setRPCMetadata=Ee.RPCType=void 0;var Dk=(m(),N(y)),nu=(0,Dk.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Vk;(function(o){o.HTTP="http"})(Vk=Ee.RPCType||(Ee.RPCType={}));function wk(o,r){return o.setValue(nu,r)}Ee.setRPCMetadata=wk;function Bk(o){return o.deleteValue(nu)}Ee.deleteRPCMetadata=Bk;function Gk(o){return o.getValue(nu)}Ee.getRPCMetadata=Gk});var iu=S(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.AlwaysOffSampler=void 0;var Hk=(m(),N(y)),ou=class{shouldSample(){return{decision:Hk.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Un.AlwaysOffSampler=ou});var uu=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.AlwaysOnSampler=void 0;var kk=(m(),N(y)),au=class{shouldSample(){return{decision:kk.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Dn.AlwaysOnSampler=au});var WA=S(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ParentBasedSampler=void 0;var Vn=(m(),N(y)),Yk=Ha(),qA=iu(),su=uu(),cu=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,Yk.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new su.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new su.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new qA.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new su.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new qA.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=Vn.trace.getSpanContext(r);return!e||!(0,Vn.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&Vn.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&Vn.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};wn.ParentBasedSampler=cu});var zA=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.TraceIdRatioBasedSampler=void 0;var lu=(m(),N(y)),pu=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,lu.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?lu.SamplingDecision.RECORD_AND_SAMPLED:lu.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};Bn.TraceIdRatioBasedSampler=pu});var ZA=S(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.isPlainObject=void 0;var Fk="[object Object]",Kk="[object Null]",jk="[object Undefined]",qk=Function.prototype,JA=qk.toString,Wk=JA.call(Object),zk=Jk(Object.getPrototypeOf,Object),XA=Object.prototype,$A=XA.hasOwnProperty,it=Symbol?Symbol.toStringTag:void 0,QA=XA.toString;function Jk(o,r){return function(i){return o(r(i))}}function Xk(o){if(!$k(o)||Qk(o)!==Fk)return!1;let r=zk(o);if(r===null)return!0;let i=$A.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&JA.call(i)===Wk}Gn.isPlainObject=Xk;function $k(o){return o!=null&&typeof o=="object"}function Qk(o){return o==null?o===void 0?jk:Kk:it&&it in Object(o)?Zk(o):eY(o)}function Zk(o){let r=$A.call(o,it),i=o[it],c=!1;try{o[it]=void 0,c=!0}catch{}let a=QA.call(o);return c&&(r?o[it]=i:delete o[it]),a}function eY(o){return QA.call(o)}});var ov=S(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.merge=void 0;var ev=ZA(),tY=20;function rY(...o){let r=o.shift(),i=new WeakMap;for(;o.length>0;)r=rv(r,o.shift(),0,i);return r}Yn.merge=rY;function _u(o){return kn(o)?o.slice():o}function rv(o,r,i=0,c){let a;if(!(i>tY)){if(i++,Hn(o)||Hn(r)||nv(r))a=_u(r);else if(kn(o)){if(a=o.slice(),kn(r))for(let u=0,t=r.length;u<t;u++)a.push(_u(r[u]));else if(yr(r)){let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t];a[n]=_u(r[n])}}}else if(yr(o))if(yr(r)){if(!nY(o,r))return r;a=Object.assign({},o);let u=Object.keys(r);for(let t=0,e=u.length;t<e;t++){let n=u[t],s=r[n];if(Hn(s))typeof s>"u"?delete a[n]:a[n]=s;else{let l=a[n],E=s;if(tv(o,n,c)||tv(r,n,c))delete a[n];else{if(yr(l)&&yr(E)){let O=c.get(l)||[],g=c.get(E)||[];O.push({obj:o,key:n}),g.push({obj:r,key:n}),c.set(l,O),c.set(E,g)}a[n]=rv(a[n],s,i,c)}}}}else a=r;return a}}function tv(o,r,i){let c=i.get(o[r])||[];for(let a=0,u=c.length;a<u;a++){let t=c[a];if(t.key===r&&t.obj===o)return!0}return!1}function kn(o){return Array.isArray(o)}function nv(o){return typeof o=="function"}function yr(o){return!Hn(o)&&!kn(o)&&!nv(o)&&typeof o=="object"}function Hn(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o>"u"||o instanceof Date||o instanceof RegExp||o===null}function nY(o,r){return!(!(0,ev.isPlainObject)(o)||!(0,ev.isPlainObject)(r))}});var iv=S(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.callWithTimeout=Lt.TimeoutError=void 0;var Fn=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};Lt.TimeoutError=Fn;function oY(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new Fn("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}Lt.callWithTimeout=oY});var uv=S(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isUrlIgnored=It.urlMatches=void 0;function av(o,r){return typeof r=="string"?o===r:!!o.match(r)}It.urlMatches=av;function iY(o,r){if(!r)return!1;for(let i of r)if(av(o,i))return!0;return!1}It.isUrlIgnored=iY});var sv=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.isWrapped=void 0;function aY(o){return typeof o=="function"&&typeof o.__original=="function"&&typeof o.__unwrap=="function"&&o.__wrapped===!0}Kn.isWrapped=aY});var cv=S(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.Deferred=void 0;var Eu=class{constructor(){this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i})}get promise(){return this._promise}resolve(r){this._resolve(r)}reject(r){this._reject(r)}};jn.Deferred=Eu});var lv=S(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.BindOnceFuture=void 0;var uY=cv(),Tu=class{constructor(r,i){this._callback=r,this._that=i,this._isCalled=!1,this._deferred=new uY.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...r){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...r)).then(i=>this._deferred.resolve(i),i=>this._deferred.reject(i))}catch(i){this._deferred.reject(i)}}return this._deferred.promise}};qn.BindOnceFuture=Tu});var _v=S(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn._export=void 0;var pv=(m(),N(y)),sY=Or();function cY(o,r){return new Promise(i=>{pv.context.with((0,sY.suppressTracing)(pv.context.active()),()=>{o.export(r,c=>{i(c)})})})}Wn._export=cY});var x=S(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=f.DEFAULT_ATTRIBUTE_COUNT_LIMIT=f.TraceState=f.unsuppressTracing=f.suppressTracing=f.isTracingSuppressed=f.TraceIdRatioBasedSampler=f.ParentBasedSampler=f.AlwaysOnSampler=f.AlwaysOffSampler=f.setRPCMetadata=f.getRPCMetadata=f.deleteRPCMetadata=f.RPCType=f.parseTraceParent=f.W3CTraceContextPropagator=f.TRACE_STATE_HEADER=f.TRACE_PARENT_HEADER=f.CompositePropagator=f.unrefTimer=f.otperformance=f.hexToBase64=f.getEnvWithoutDefaults=f.getEnv=f._globalThis=f.SDK_INFO=f.RandomIdGenerator=f.baggageUtils=f.ExportResultCode=f.hexToBinary=f.timeInputToHrTime=f.millisToHrTime=f.isTimeInputHrTime=f.isTimeInput=f.hrTimeToTimeStamp=f.hrTimeToNanoseconds=f.hrTimeToMilliseconds=f.hrTimeToMicroseconds=f.hrTimeDuration=f.hrTime=f.getTimeOrigin=f.addHrTimes=f.loggingErrorHandler=f.setGlobalErrorHandler=f.globalErrorHandler=f.sanitizeAttributes=f.isAttributeValue=f.isAttributeKey=f.AnchoredClock=f.W3CBaggagePropagator=void 0;f.internal=f.VERSION=f.BindOnceFuture=f.isWrapped=f.urlMatches=f.isUrlIgnored=f.callWithTimeout=f.TimeoutError=f.TracesSamplerValues=f.merge=f.parseEnvironment=f.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=f.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=f.DEFAULT_ENVIRONMENT=void 0;var lY=Fl();Object.defineProperty(f,"W3CBaggagePropagator",{enumerable:!0,get:function(){return lY.W3CBaggagePropagator}});var pY=Kl();Object.defineProperty(f,"AnchoredClock",{enumerable:!0,get:function(){return pY.AnchoredClock}});var Su=Jl();Object.defineProperty(f,"isAttributeKey",{enumerable:!0,get:function(){return Su.isAttributeKey}});Object.defineProperty(f,"isAttributeValue",{enumerable:!0,get:function(){return Su.isAttributeValue}});Object.defineProperty(f,"sanitizeAttributes",{enumerable:!0,get:function(){return Su.sanitizeAttributes}});var Ev=Ha();Object.defineProperty(f,"globalErrorHandler",{enumerable:!0,get:function(){return Ev.globalErrorHandler}});Object.defineProperty(f,"setGlobalErrorHandler",{enumerable:!0,get:function(){return Ev.setGlobalErrorHandler}});var _Y=Ga();Object.defineProperty(f,"loggingErrorHandler",{enumerable:!0,get:function(){return _Y.loggingErrorHandler}});var se=UA();Object.defineProperty(f,"addHrTimes",{enumerable:!0,get:function(){return se.addHrTimes}});Object.defineProperty(f,"getTimeOrigin",{enumerable:!0,get:function(){return se.getTimeOrigin}});Object.defineProperty(f,"hrTime",{enumerable:!0,get:function(){return se.hrTime}});Object.defineProperty(f,"hrTimeDuration",{enumerable:!0,get:function(){return se.hrTimeDuration}});Object.defineProperty(f,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return se.hrTimeToMicroseconds}});Object.defineProperty(f,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return se.hrTimeToMilliseconds}});Object.defineProperty(f,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return se.hrTimeToNanoseconds}});Object.defineProperty(f,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return se.hrTimeToTimeStamp}});Object.defineProperty(f,"isTimeInput",{enumerable:!0,get:function(){return se.isTimeInput}});Object.defineProperty(f,"isTimeInputHrTime",{enumerable:!0,get:function(){return se.isTimeInputHrTime}});Object.defineProperty(f,"millisToHrTime",{enumerable:!0,get:function(){return se.millisToHrTime}});Object.defineProperty(f,"timeInputToHrTime",{enumerable:!0,get:function(){return se.timeInputToHrTime}});var EY=Ka();Object.defineProperty(f,"hexToBinary",{enumerable:!0,get:function(){return EY.hexToBinary}});var TY=DA();Object.defineProperty(f,"ExportResultCode",{enumerable:!0,get:function(){return TY.ExportResultCode}});var zn=Ua();f.baggageUtils={getKeyPairs:zn.getKeyPairs,serializeKeyPairs:zn.serializeKeyPairs,parseKeyPairsIntoRecord:zn.parseKeyPairsIntoRecord,parsePairKeyValue:zn.parsePairKeyValue};var qe=za();Object.defineProperty(f,"RandomIdGenerator",{enumerable:!0,get:function(){return qe.RandomIdGenerator}});Object.defineProperty(f,"SDK_INFO",{enumerable:!0,get:function(){return qe.SDK_INFO}});Object.defineProperty(f,"_globalThis",{enumerable:!0,get:function(){return qe._globalThis}});Object.defineProperty(f,"getEnv",{enumerable:!0,get:function(){return qe.getEnv}});Object.defineProperty(f,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return qe.getEnvWithoutDefaults}});Object.defineProperty(f,"hexToBase64",{enumerable:!0,get:function(){return qe.hexToBase64}});Object.defineProperty(f,"otperformance",{enumerable:!0,get:function(){return qe.otperformance}});Object.defineProperty(f,"unrefTimer",{enumerable:!0,get:function(){return qe.unrefTimer}});var SY=wA();Object.defineProperty(f,"CompositePropagator",{enumerable:!0,get:function(){return SY.CompositePropagator}});var Jn=KA();Object.defineProperty(f,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Jn.TRACE_PARENT_HEADER}});Object.defineProperty(f,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Jn.TRACE_STATE_HEADER}});Object.defineProperty(f,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Jn.W3CTraceContextPropagator}});Object.defineProperty(f,"parseTraceParent",{enumerable:!0,get:function(){return Jn.parseTraceParent}});var Xn=jA();Object.defineProperty(f,"RPCType",{enumerable:!0,get:function(){return Xn.RPCType}});Object.defineProperty(f,"deleteRPCMetadata",{enumerable:!0,get:function(){return Xn.deleteRPCMetadata}});Object.defineProperty(f,"getRPCMetadata",{enumerable:!0,get:function(){return Xn.getRPCMetadata}});Object.defineProperty(f,"setRPCMetadata",{enumerable:!0,get:function(){return Xn.setRPCMetadata}});var fY=iu();Object.defineProperty(f,"AlwaysOffSampler",{enumerable:!0,get:function(){return fY.AlwaysOffSampler}});var dY=uu();Object.defineProperty(f,"AlwaysOnSampler",{enumerable:!0,get:function(){return dY.AlwaysOnSampler}});var AY=WA();Object.defineProperty(f,"ParentBasedSampler",{enumerable:!0,get:function(){return AY.ParentBasedSampler}});var vY=zA();Object.defineProperty(f,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return vY.TraceIdRatioBasedSampler}});var fu=Or();Object.defineProperty(f,"isTracingSuppressed",{enumerable:!0,get:function(){return fu.isTracingSuppressed}});Object.defineProperty(f,"suppressTracing",{enumerable:!0,get:function(){return fu.suppressTracing}});Object.defineProperty(f,"unsuppressTracing",{enumerable:!0,get:function(){return fu.unsuppressTracing}});var OY=tu();Object.defineProperty(f,"TraceState",{enumerable:!0,get:function(){return OY.TraceState}});var Ct=Ya();Object.defineProperty(f,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(f,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return Ct.DEFAULT_ENVIRONMENT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(f,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return Ct.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(f,"parseEnvironment",{enumerable:!0,get:function(){return Ct.parseEnvironment}});var mY=ov();Object.defineProperty(f,"merge",{enumerable:!0,get:function(){return mY.merge}});var hY=ka();Object.defineProperty(f,"TracesSamplerValues",{enumerable:!0,get:function(){return hY.TracesSamplerValues}});var Tv=iv();Object.defineProperty(f,"TimeoutError",{enumerable:!0,get:function(){return Tv.TimeoutError}});Object.defineProperty(f,"callWithTimeout",{enumerable:!0,get:function(){return Tv.callWithTimeout}});var Sv=uv();Object.defineProperty(f,"isUrlIgnored",{enumerable:!0,get:function(){return Sv.isUrlIgnored}});Object.defineProperty(f,"urlMatches",{enumerable:!0,get:function(){return Sv.urlMatches}});var NY=sv();Object.defineProperty(f,"isWrapped",{enumerable:!0,get:function(){return NY.isWrapped}});var RY=lv();Object.defineProperty(f,"BindOnceFuture",{enumerable:!0,get:function(){return RY.BindOnceFuture}});var yY=qa();Object.defineProperty(f,"VERSION",{enumerable:!0,get:function(){return yY.VERSION}});var PY=_v();f.internal={_export:PY._export}});function V(o){for(var r={},i=o.length,c=0;c<i;c++){var a=o[c];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var du=d(()=>{});var fv,dv,Av,vv,Ov,mv,hv,Nv,Rv,yv,Pv,Mv,gv,Lv,Iv,Cv,xv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,hO,NO,RO,yO,PO,MO,gO,LO,IO,CO,xO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,hm,Nm,Rm,ym,Pm,Mm,gm,Lm,Im,Cm,xm,bm,Um,Dm,MY,gY,LY,IY,CY,xY,bY,UY,DY,VY,wY,BY,GY,HY,kY,YY,FY,KY,jY,qY,WY,zY,JY,XY,$Y,QY,ZY,e2,t2,r2,n2,o2,i2,a2,u2,s2,c2,l2,p2,_2,E2,T2,S2,f2,d2,A2,v2,O2,m2,h2,N2,R2,y2,P2,M2,g2,L2,I2,C2,x2,b2,U2,D2,V2,w2,B2,G2,H2,k2,Y2,F2,K2,j2,q2,W2,z2,J2,X2,$2,Q2,Z2,eF,tF,rF,nF,oF,iF,aF,uF,sF,cF,lF,pF,_F,EF,TF,SF,fF,dF,AF,vF,OF,mF,hF,NF,RF,yF,PF,MF,gF,LF,IF,CF,xF,bF,UF,DF,VF,wF,BF,GF,HF,kF,YF,FF,KF,jF,qF,WF,Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh,Ah,vh,Oh,mh,hh,Nh,Rh,yh,Ph,Mh,gh,zF,JF,XF,$F,QF,ZF,e3,t3,r3,n3,o3,i3,a3,u3,s3,c3,l3,p3,_3,E3,T3,S3,f3,d3,A3,v3,O3,m3,h3,N3,R3,y3,P3,M3,g3,L3,I3,C3,x3,b3,U3,D3,V3,w3,B3,G3,H3,k3,Lh,Ih,Ch,xh,bh,Uh,Dh,Vh,wh,Bh,Gh,Y3,F3,K3,j3,q3,W3,z3,J3,X3,$3,Q3,Z3,Hh,kh,Yh,Fh,Kh,eK,tK,rK,nK,oK,iK,jh,qh,Wh,aK,uK,sK,cK,zh,Jh,Xh,$h,lK,pK,_K,EK,TK,Qh,Zh,eN,tN,rN,nN,oN,SK,fK,dK,AK,vK,OK,mK,hK,iN,aN,uN,sN,cN,NK,RK,yK,PK,MK,gK,lN,pN,_N,EN,TN,SN,fN,dN,AN,vN,ON,mN,hN,NN,RN,yN,PN,MN,gN,LN,IN,LK,IK,CK,xK,bK,UK,DK,VK,wK,BK,GK,HK,kK,YK,FK,KK,jK,qK,WK,zK,JK,XK,CN,xN,bN,UN,DN,$K,QK,ZK,ej,tj,rj,VN,wN,nj,oj,ij,BN,GN,aj,uj,sj,HN,kN,YN,FN,KN,jN,qN,WN,zN,JN,XN,$N,QN,ZN,eR,tR,rR,cj,lj,pj,_j,Ej,Tj,Sj,fj,dj,Aj,vj,Oj,mj,hj,Nj,Rj,yj,Pj,nR,oR,Mj,gj,Lj,iR=d(()=>{du();fv="aws.lambda.invoked_arn",dv="db.system",Av="db.connection_string",vv="db.user",Ov="db.jdbc.driver_classname",mv="db.name",hv="db.statement",Nv="db.operation",Rv="db.mssql.instance_name",yv="db.cassandra.keyspace",Pv="db.cassandra.page_size",Mv="db.cassandra.consistency_level",gv="db.cassandra.table",Lv="db.cassandra.idempotence",Iv="db.cassandra.speculative_execution_count",Cv="db.cassandra.coordinator.id",xv="db.cassandra.coordinator.dc",bv="db.hbase.namespace",Uv="db.redis.database_index",Dv="db.mongodb.collection",Vv="db.sql.table",wv="exception.type",Bv="exception.message",Gv="exception.stacktrace",Hv="exception.escaped",kv="faas.trigger",Yv="faas.execution",Fv="faas.document.collection",Kv="faas.document.operation",jv="faas.document.time",qv="faas.document.name",Wv="faas.time",zv="faas.cron",Jv="faas.coldstart",Xv="faas.invoked_name",$v="faas.invoked_provider",Qv="faas.invoked_region",Zv="net.transport",eO="net.peer.ip",tO="net.peer.port",rO="net.peer.name",nO="net.host.ip",oO="net.host.port",iO="net.host.name",aO="net.host.connection.type",uO="net.host.connection.subtype",sO="net.host.carrier.name",cO="net.host.carrier.mcc",lO="net.host.carrier.mnc",pO="net.host.carrier.icc",_O="peer.service",EO="enduser.id",TO="enduser.role",SO="enduser.scope",fO="thread.id",dO="thread.name",AO="code.function",vO="code.namespace",OO="code.filepath",mO="code.lineno",hO="http.method",NO="http.url",RO="http.target",yO="http.host",PO="http.scheme",MO="http.status_code",gO="http.flavor",LO="http.user_agent",IO="http.request_content_length",CO="http.request_content_length_uncompressed",xO="http.response_content_length",bO="http.response_content_length_uncompressed",UO="http.server_name",DO="http.route",VO="http.client_ip",wO="aws.dynamodb.table_names",BO="aws.dynamodb.consumed_capacity",GO="aws.dynamodb.item_collection_metrics",HO="aws.dynamodb.provisioned_read_capacity",kO="aws.dynamodb.provisioned_write_capacity",YO="aws.dynamodb.consistent_read",FO="aws.dynamodb.projection",KO="aws.dynamodb.limit",jO="aws.dynamodb.attributes_to_get",qO="aws.dynamodb.index_name",WO="aws.dynamodb.select",zO="aws.dynamodb.global_secondary_indexes",JO="aws.dynamodb.local_secondary_indexes",XO="aws.dynamodb.exclusive_start_table",$O="aws.dynamodb.table_count",QO="aws.dynamodb.scan_forward",ZO="aws.dynamodb.segment",em="aws.dynamodb.total_segments",tm="aws.dynamodb.count",rm="aws.dynamodb.scanned_count",nm="aws.dynamodb.attribute_definitions",om="aws.dynamodb.global_secondary_index_updates",im="messaging.system",am="messaging.destination",um="messaging.destination_kind",sm="messaging.temp_destination",cm="messaging.protocol",lm="messaging.protocol_version",pm="messaging.url",_m="messaging.message_id",Em="messaging.conversation_id",Tm="messaging.message_payload_size_bytes",Sm="messaging.message_payload_compressed_size_bytes",fm="messaging.operation",dm="messaging.consumer_id",Am="messaging.rabbitmq.routing_key",vm="messaging.kafka.message_key",Om="messaging.kafka.consumer_group",mm="messaging.kafka.client_id",hm="messaging.kafka.partition",Nm="messaging.kafka.tombstone",Rm="rpc.system",ym="rpc.service",Pm="rpc.method",Mm="rpc.grpc.status_code",gm="rpc.jsonrpc.version",Lm="rpc.jsonrpc.request_id",Im="rpc.jsonrpc.error_code",Cm="rpc.jsonrpc.error_message",xm="message.type",bm="message.id",Um="message.compressed_size",Dm="message.uncompressed_size",MY=fv,gY=dv,LY=Av,IY=vv,CY=Ov,xY=mv,bY=hv,UY=Nv,DY=Rv,VY=yv,wY=Pv,BY=Mv,GY=gv,HY=Lv,kY=Iv,YY=Cv,FY=xv,KY=bv,jY=Uv,qY=Dv,WY=Vv,zY=wv,JY=Bv,XY=Gv,$Y=Hv,QY=kv,ZY=Yv,e2=Fv,t2=Kv,r2=jv,n2=qv,o2=Wv,i2=zv,a2=Jv,u2=Xv,s2=$v,c2=Qv,l2=Zv,p2=eO,_2=tO,E2=rO,T2=nO,S2=oO,f2=iO,d2=aO,A2=uO,v2=sO,O2=cO,m2=lO,h2=pO,N2=_O,R2=EO,y2=TO,P2=SO,M2=fO,g2=dO,L2=AO,I2=vO,C2=OO,x2=mO,b2=hO,U2=NO,D2=RO,V2=yO,w2=PO,B2=MO,G2=gO,H2=LO,k2=IO,Y2=CO,F2=xO,K2=bO,j2=UO,q2=DO,W2=VO,z2=wO,J2=BO,X2=GO,$2=HO,Q2=kO,Z2=YO,eF=FO,tF=KO,rF=jO,nF=qO,oF=WO,iF=zO,aF=JO,uF=XO,sF=$O,cF=QO,lF=ZO,pF=em,_F=tm,EF=rm,TF=nm,SF=om,fF=im,dF=am,AF=um,vF=sm,OF=cm,mF=lm,hF=pm,NF=_m,RF=Em,yF=Tm,PF=Sm,MF=fm,gF=dm,LF=Am,IF=vm,CF=Om,xF=mm,bF=hm,UF=Nm,DF=Rm,VF=ym,wF=Pm,BF=Mm,GF=gm,HF=Lm,kF=Im,YF=Cm,FF=xm,KF=bm,jF=Um,qF=Dm,WF=V([fv,dv,Av,vv,Ov,mv,hv,Nv,Rv,yv,Pv,Mv,gv,Lv,Iv,Cv,xv,bv,Uv,Dv,Vv,wv,Bv,Gv,Hv,kv,Yv,Fv,Kv,jv,qv,Wv,zv,Jv,Xv,$v,Qv,Zv,eO,tO,rO,nO,oO,iO,aO,uO,sO,cO,lO,pO,_O,EO,TO,SO,fO,dO,AO,vO,OO,mO,hO,NO,RO,yO,PO,MO,gO,LO,IO,CO,xO,bO,UO,DO,VO,wO,BO,GO,HO,kO,YO,FO,KO,jO,qO,WO,zO,JO,XO,$O,QO,ZO,em,tm,rm,nm,om,im,am,um,sm,cm,lm,pm,_m,Em,Tm,Sm,fm,dm,Am,vm,Om,mm,hm,Nm,Rm,ym,Pm,Mm,gm,Lm,Im,Cm,xm,bm,Um,Dm]),Vm="other_sql",wm="mssql",Bm="mysql",Gm="oracle",Hm="db2",km="postgresql",Ym="redshift",Fm="hive",Km="cloudscape",jm="hsqldb",qm="progress",Wm="maxdb",zm="hanadb",Jm="ingres",Xm="firstsql",$m="edb",Qm="cache",Zm="adabas",eh="firebird",th="derby",rh="filemaker",nh="informix",oh="instantdb",ih="interbase",ah="mariadb",uh="netezza",sh="pervasive",ch="pointbase",lh="sqlite",ph="sybase",_h="teradata",Eh="vertica",Th="h2",Sh="coldfusion",fh="cassandra",dh="hbase",Ah="mongodb",vh="redis",Oh="couchbase",mh="couchdb",hh="cosmosdb",Nh="dynamodb",Rh="neo4j",yh="geode",Ph="elasticsearch",Mh="memcached",gh="cockroachdb",zF=Vm,JF=wm,XF=Bm,$F=Gm,QF=Hm,ZF=km,e3=Ym,t3=Fm,r3=Km,n3=jm,o3=qm,i3=Wm,a3=zm,u3=Jm,s3=Xm,c3=$m,l3=Qm,p3=Zm,_3=eh,E3=th,T3=rh,S3=nh,f3=oh,d3=ih,A3=ah,v3=uh,O3=sh,m3=ch,h3=lh,N3=ph,R3=_h,y3=Eh,P3=Th,M3=Sh,g3=fh,L3=dh,I3=Ah,C3=vh,x3=Oh,b3=mh,U3=hh,D3=Nh,V3=Rh,w3=yh,B3=Ph,G3=Mh,H3=gh,k3=V([Vm,wm,Bm,Gm,Hm,km,Ym,Fm,Km,jm,qm,Wm,zm,Jm,Xm,$m,Qm,Zm,eh,th,rh,nh,oh,ih,ah,uh,sh,ch,lh,ph,_h,Eh,Th,Sh,fh,dh,Ah,vh,Oh,mh,hh,Nh,Rh,yh,Ph,Mh,gh]),Lh="all",Ih="each_quorum",Ch="quorum",xh="local_quorum",bh="one",Uh="two",Dh="three",Vh="local_one",wh="any",Bh="serial",Gh="local_serial",Y3=Lh,F3=Ih,K3=Ch,j3=xh,q3=bh,W3=Uh,z3=Dh,J3=Vh,X3=wh,$3=Bh,Q3=Gh,Z3=V([Lh,Ih,Ch,xh,bh,Uh,Dh,Vh,wh,Bh,Gh]),Hh="datasource",kh="http",Yh="pubsub",Fh="timer",Kh="other",eK=Hh,tK=kh,rK=Yh,nK=Fh,oK=Kh,iK=V([Hh,kh,Yh,Fh,Kh]),jh="insert",qh="edit",Wh="delete",aK=jh,uK=qh,sK=Wh,cK=V([jh,qh,Wh]),zh="alibaba_cloud",Jh="aws",Xh="azure",$h="gcp",lK=zh,pK=Jh,_K=Xh,EK=$h,TK=V([zh,Jh,Xh,$h]),Qh="ip_tcp",Zh="ip_udp",eN="ip",tN="unix",rN="pipe",nN="inproc",oN="other",SK=Qh,fK=Zh,dK=eN,AK=tN,vK=rN,OK=nN,mK=oN,hK=V([Qh,Zh,eN,tN,rN,nN,oN]),iN="wifi",aN="wired",uN="cell",sN="unavailable",cN="unknown",NK=iN,RK=aN,yK=uN,PK=sN,MK=cN,gK=V([iN,aN,uN,sN,cN]),lN="gprs",pN="edge",_N="umts",EN="cdma",TN="evdo_0",SN="evdo_a",fN="cdma2000_1xrtt",dN="hsdpa",AN="hsupa",vN="hspa",ON="iden",mN="evdo_b",hN="lte",NN="ehrpd",RN="hspap",yN="gsm",PN="td_scdma",MN="iwlan",gN="nr",LN="nrnsa",IN="lte_ca",LK=lN,IK=pN,CK=_N,xK=EN,bK=TN,UK=SN,DK=fN,VK=dN,wK=AN,BK=vN,GK=ON,HK=mN,kK=hN,YK=NN,FK=RN,KK=yN,jK=PN,qK=MN,WK=gN,zK=LN,JK=IN,XK=V([lN,pN,_N,EN,TN,SN,fN,dN,AN,vN,ON,mN,hN,NN,RN,yN,PN,MN,gN,LN,IN]),CN="1.0",xN="1.1",bN="2.0",UN="SPDY",DN="QUIC",$K=CN,QK=xN,ZK=bN,ej=UN,tj=DN,rj={HTTP_1_0:CN,HTTP_1_1:xN,HTTP_2_0:bN,SPDY:UN,QUIC:DN},VN="queue",wN="topic",nj=VN,oj=wN,ij=V([VN,wN]),BN="receive",GN="process",aj=BN,uj=GN,sj=V([BN,GN]),HN=0,kN=1,YN=2,FN=3,KN=4,jN=5,qN=6,WN=7,zN=8,JN=9,XN=10,$N=11,QN=12,ZN=13,eR=14,tR=15,rR=16,cj=HN,lj=kN,pj=YN,_j=FN,Ej=KN,Tj=jN,Sj=qN,fj=WN,dj=zN,Aj=JN,vj=XN,Oj=$N,mj=QN,hj=ZN,Nj=eR,Rj=tR,yj=rR,Pj={OK:HN,CANCELLED:kN,UNKNOWN:YN,INVALID_ARGUMENT:FN,DEADLINE_EXCEEDED:KN,NOT_FOUND:jN,ALREADY_EXISTS:qN,PERMISSION_DENIED:WN,RESOURCE_EXHAUSTED:zN,FAILED_PRECONDITION:JN,ABORTED:XN,OUT_OF_RANGE:$N,UNIMPLEMENTED:QN,INTERNAL:ZN,UNAVAILABLE:eR,DATA_LOSS:tR,UNAUTHENTICATED:rR},nR="SENT",oR="RECEIVED",Mj=nR,gj=oR,Lj=V([nR,oR])});var aR=d(()=>{iR()});var uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,hR,NR,RR,yR,PR,MR,gR,LR,IR,CR,xR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy,my,hy,Ny,Ry,yy,Py,My,gy,Ly,Iy,Cy,xy,by,Ij,Cj,xj,bj,Uj,Dj,Vj,wj,Bj,Gj,Hj,kj,Yj,Fj,Kj,jj,qj,Wj,zj,Jj,Xj,$j,Qj,Zj,eq,tq,rq,nq,oq,iq,aq,uq,sq,cq,lq,pq,_q,Eq,Tq,Sq,fq,dq,Aq,vq,Oq,mq,hq,Nq,Rq,yq,Pq,Mq,gq,Lq,Iq,Cq,xq,bq,Uq,Dq,Vq,wq,Bq,Gq,Hq,kq,Yq,Fq,Kq,jq,qq,Wq,zq,Jq,Xq,$q,Qq,Zq,e4,t4,r4,n4,Uy,Dy,Vy,wy,o4,i4,a4,u4,s4,By,Gy,Hy,ky,Yy,Fy,Ky,jy,qy,Wy,zy,Jy,Xy,$y,Qy,Zy,eP,c4,l4,p4,_4,E4,T4,S4,f4,d4,A4,v4,O4,m4,h4,N4,R4,y4,P4,tP,rP,M4,g4,L4,nP,oP,iP,aP,uP,sP,cP,I4,C4,x4,b4,U4,D4,V4,w4,lP,pP,_P,EP,TP,SP,fP,dP,AP,vP,OP,B4,G4,H4,k4,Y4,F4,K4,j4,q4,W4,z4,J4,mP,hP,NP,RP,yP,PP,MP,gP,LP,IP,X4,$4,Q4,Z4,eW,tW,rW,nW,oW,iW,aW,CP=d(()=>{du();uR="cloud.provider",sR="cloud.account.id",cR="cloud.region",lR="cloud.availability_zone",pR="cloud.platform",_R="aws.ecs.container.arn",ER="aws.ecs.cluster.arn",TR="aws.ecs.launchtype",SR="aws.ecs.task.arn",fR="aws.ecs.task.family",dR="aws.ecs.task.revision",AR="aws.eks.cluster.arn",vR="aws.log.group.names",OR="aws.log.group.arns",mR="aws.log.stream.names",hR="aws.log.stream.arns",NR="container.name",RR="container.id",yR="container.runtime",PR="container.image.name",MR="container.image.tag",gR="deployment.environment",LR="device.id",IR="device.model.identifier",CR="device.model.name",xR="faas.name",bR="faas.id",UR="faas.version",DR="faas.instance",VR="faas.max_memory",wR="host.id",BR="host.name",GR="host.type",HR="host.arch",kR="host.image.name",YR="host.image.id",FR="host.image.version",KR="k8s.cluster.name",jR="k8s.node.name",qR="k8s.node.uid",WR="k8s.namespace.name",zR="k8s.pod.uid",JR="k8s.pod.name",XR="k8s.container.name",$R="k8s.replicaset.uid",QR="k8s.replicaset.name",ZR="k8s.deployment.uid",ey="k8s.deployment.name",ty="k8s.statefulset.uid",ry="k8s.statefulset.name",ny="k8s.daemonset.uid",oy="k8s.daemonset.name",iy="k8s.job.uid",ay="k8s.job.name",uy="k8s.cronjob.uid",sy="k8s.cronjob.name",cy="os.type",ly="os.description",py="os.name",_y="os.version",Ey="process.pid",Ty="process.executable.name",Sy="process.executable.path",fy="process.command",dy="process.command_line",Ay="process.command_args",vy="process.owner",Oy="process.runtime.name",my="process.runtime.version",hy="process.runtime.description",Ny="service.name",Ry="service.namespace",yy="service.instance.id",Py="service.version",My="telemetry.sdk.name",gy="telemetry.sdk.language",Ly="telemetry.sdk.version",Iy="telemetry.auto.version",Cy="webengine.name",xy="webengine.version",by="webengine.description",Ij=uR,Cj=sR,xj=cR,bj=lR,Uj=pR,Dj=_R,Vj=ER,wj=TR,Bj=SR,Gj=fR,Hj=dR,kj=AR,Yj=vR,Fj=OR,Kj=mR,jj=hR,qj=NR,Wj=RR,zj=yR,Jj=PR,Xj=MR,$j=gR,Qj=LR,Zj=IR,eq=CR,tq=xR,rq=bR,nq=UR,oq=DR,iq=VR,aq=wR,uq=BR,sq=GR,cq=HR,lq=kR,pq=YR,_q=FR,Eq=KR,Tq=jR,Sq=qR,fq=WR,dq=zR,Aq=JR,vq=XR,Oq=$R,mq=QR,hq=ZR,Nq=ey,Rq=ty,yq=ry,Pq=ny,Mq=oy,gq=iy,Lq=ay,Iq=uy,Cq=sy,xq=cy,bq=ly,Uq=py,Dq=_y,Vq=Ey,wq=Ty,Bq=Sy,Gq=fy,Hq=dy,kq=Ay,Yq=vy,Fq=Oy,Kq=my,jq=hy,qq=Ny,Wq=Ry,zq=yy,Jq=Py,Xq=My,$q=gy,Qq=Ly,Zq=Iy,e4=Cy,t4=xy,r4=by,n4=V([uR,sR,cR,lR,pR,_R,ER,TR,SR,fR,dR,AR,vR,OR,mR,hR,NR,RR,yR,PR,MR,gR,LR,IR,CR,xR,bR,UR,DR,VR,wR,BR,GR,HR,kR,YR,FR,KR,jR,qR,WR,zR,JR,XR,$R,QR,ZR,ey,ty,ry,ny,oy,iy,ay,uy,sy,cy,ly,py,_y,Ey,Ty,Sy,fy,dy,Ay,vy,Oy,my,hy,Ny,Ry,yy,Py,My,gy,Ly,Iy,Cy,xy,by]),Uy="alibaba_cloud",Dy="aws",Vy="azure",wy="gcp",o4=Uy,i4=Dy,a4=Vy,u4=wy,s4=V([Uy,Dy,Vy,wy]),By="alibaba_cloud_ecs",Gy="alibaba_cloud_fc",Hy="aws_ec2",ky="aws_ecs",Yy="aws_eks",Fy="aws_lambda",Ky="aws_elastic_beanstalk",jy="azure_vm",qy="azure_container_instances",Wy="azure_aks",zy="azure_functions",Jy="azure_app_service",Xy="gcp_compute_engine",$y="gcp_cloud_run",Qy="gcp_kubernetes_engine",Zy="gcp_cloud_functions",eP="gcp_app_engine",c4=By,l4=Gy,p4=Hy,_4=ky,E4=Yy,T4=Fy,S4=Ky,f4=jy,d4=qy,A4=Wy,v4=zy,O4=Jy,m4=Xy,h4=$y,N4=Qy,R4=Zy,y4=eP,P4=V([By,Gy,Hy,ky,Yy,Fy,Ky,jy,qy,Wy,zy,Jy,Xy,$y,Qy,Zy,eP]),tP="ec2",rP="fargate",M4=tP,g4=rP,L4=V([tP,rP]),nP="amd64",oP="arm32",iP="arm64",aP="ia64",uP="ppc32",sP="ppc64",cP="x86",I4=nP,C4=oP,x4=iP,b4=aP,U4=uP,D4=sP,V4=cP,w4=V([nP,oP,iP,aP,uP,sP,cP]),lP="windows",pP="linux",_P="darwin",EP="freebsd",TP="netbsd",SP="openbsd",fP="dragonflybsd",dP="hpux",AP="aix",vP="solaris",OP="z_os",B4=lP,G4=pP,H4=_P,k4=EP,Y4=TP,F4=SP,K4=fP,j4=dP,q4=AP,W4=vP,z4=OP,J4=V([lP,pP,_P,EP,TP,SP,fP,dP,AP,vP,OP]),mP="cpp",hP="dotnet",NP="erlang",RP="go",yP="java",PP="nodejs",MP="php",gP="python",LP="ruby",IP="webjs",X4=mP,$4=hP,Q4=NP,Z4=RP,eW=yP,tW=PP,rW=MP,nW=gP,oW=LP,iW=IP,aW=V([mP,hP,NP,RP,yP,PP,MP,gP,LP,IP])});var xP=d(()=>{CP()});var uW,sW,cW,lW,pW,_W,EW,TW,SW,fW,dW,AW,vW,OW,mW,hW,NW,RW,yW,PW,MW,gW,LW,IW,CW,xW,bW,UW,DW,VW,wW,BW,GW,HW,kW,YW,FW,KW,jW,qW,WW,zW,JW,XW,$W,QW,ZW,e6,t6,r6,n6,o6,i6,a6,u6,s6,c6,l6,p6,_6,E6,T6,S6,f6,d6,A6,v6,O6,m6,h6,N6,R6,y6,P6,M6,g6,L6,I6,C6,x6,b6,U6,D6,V6,w6,B6,G6,H6,k6,Y6,F6,K6,j6,q6,W6,z6,J6,X6,$6,Q6,Z6,e8,t8,r8,n8,o8,i8,a8,u8,s8,bP=d(()=>{uW="aspnetcore.rate_limiting.result",sW="acquired",cW="endpoint_limiter",lW="global_limiter",pW="request_canceled",_W="telemetry.sdk.language",EW="cpp",TW="dotnet",SW="erlang",fW="go",dW="java",AW="nodejs",vW="php",OW="python",mW="ruby",hW="rust",NW="swift",RW="webjs",yW="telemetry.sdk.name",PW="telemetry.sdk.version",MW="aspnetcore.diagnostics.handler.type",gW="aspnetcore.diagnostics.exception.result",LW="aborted",IW="handled",CW="skipped",xW="unhandled",bW="aspnetcore.rate_limiting.policy",UW="aspnetcore.request.is_unhandled",DW="aspnetcore.routing.is_fallback",VW="aspnetcore.routing.match_status",wW="failure",BW="success",GW="client.address",HW="client.port",kW="error.type",YW="_OTHER",FW="exception.escaped",KW="exception.message",jW="exception.stacktrace",qW="exception.type",WW=function(o){return"http.request.header."+o},zW="http.request.method",JW="_OTHER",XW="CONNECT",$W="DELETE",QW="GET",ZW="HEAD",e6="OPTIONS",t6="PATCH",r6="POST",n6="PUT",o6="TRACE",i6="http.request.method_original",a6="http.request.resend_count",u6=function(o){return"http.response.header."+o},s6="http.response.status_code",c6="http.route",l6="jvm.gc.action",p6="jvm.gc.name",_6="jvm.memory.pool.name",E6="jvm.memory.type",T6="heap",S6="non_heap",f6="jvm.thread.daemon",d6="jvm.thread.state",A6="blocked",v6="new",O6="runnable",m6="terminated",h6="timed_waiting",N6="waiting",R6="network.local.address",y6="network.local.port",P6="network.peer.address",M6="network.peer.port",g6="network.protocol.name",L6="network.protocol.version",I6="network.transport",C6="pipe",x6="quic",b6="tcp",U6="udp",D6="unix",V6="network.type",w6="ipv4",B6="ipv6",G6="otel.scope.name",H6="otel.scope.version",k6="otel.status_code",Y6="ERROR",F6="OK",K6="otel.status_description",j6="server.address",q6="server.port",W6="service.name",z6="service.version",J6="signalr.connection.status",X6="app_shutdown",$6="normal_closure",Q6="timeout",Z6="signalr.transport",e8="long_polling",t8="server_sent_events",r8="web_sockets",n8="url.fragment",o8="url.full",i8="url.path",a8="url.query",u8="url.scheme",s8="user_agent.original"});var c8,l8,p8,_8,E8,T8,S8,f8,d8,A8,v8,O8,m8,h8,N8,R8,y8,P8,M8,g8,L8,I8,C8,x8,b8,U8,D8,V8,w8,B8,G8,UP=d(()=>{c8="aspnetcore.diagnostics.exceptions",l8="aspnetcore.rate_limiting.active_request_leases",p8="aspnetcore.rate_limiting.queued_requests",_8="aspnetcore.rate_limiting.request.time_in_queue",E8="aspnetcore.rate_limiting.request_lease.duration",T8="aspnetcore.rate_limiting.requests",S8="aspnetcore.routing.match_attempts",f8="http.client.request.duration",d8="http.server.request.duration",A8="jvm.class.count",v8="jvm.class.loaded",O8="jvm.class.unloaded",m8="jvm.cpu.count",h8="jvm.cpu.recent_utilization",N8="jvm.cpu.time",R8="jvm.gc.duration",y8="jvm.memory.committed",P8="jvm.memory.limit",M8="jvm.memory.used",g8="jvm.memory.used_after_last_gc",L8="jvm.thread.count",I8="kestrel.active_connections",C8="kestrel.active_tls_handshakes",x8="kestrel.connection.duration",b8="kestrel.queued_connections",U8="kestrel.queued_requests",D8="kestrel.rejected_connections",V8="kestrel.tls_handshake.duration",w8="kestrel.upgraded_connections",B8="signalr.server.active_connections",G8="signalr.server.connection.duration"});var DP={};Ot(DP,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>LW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>IW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>CW,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>xW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>sW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>cW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>lW,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>pW,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>wW,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>BW,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>gW,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>MW,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>bW,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>uW,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>UW,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>DW,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>VW,ATTR_CLIENT_ADDRESS:()=>GW,ATTR_CLIENT_PORT:()=>HW,ATTR_ERROR_TYPE:()=>kW,ATTR_EXCEPTION_ESCAPED:()=>FW,ATTR_EXCEPTION_MESSAGE:()=>KW,ATTR_EXCEPTION_STACKTRACE:()=>jW,ATTR_EXCEPTION_TYPE:()=>qW,ATTR_HTTP_REQUEST_HEADER:()=>WW,ATTR_HTTP_REQUEST_METHOD:()=>zW,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>i6,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>a6,ATTR_HTTP_RESPONSE_HEADER:()=>u6,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>s6,ATTR_HTTP_ROUTE:()=>c6,ATTR_JVM_GC_ACTION:()=>l6,ATTR_JVM_GC_NAME:()=>p6,ATTR_JVM_MEMORY_POOL_NAME:()=>_6,ATTR_JVM_MEMORY_TYPE:()=>E6,ATTR_JVM_THREAD_DAEMON:()=>f6,ATTR_JVM_THREAD_STATE:()=>d6,ATTR_NETWORK_LOCAL_ADDRESS:()=>R6,ATTR_NETWORK_LOCAL_PORT:()=>y6,ATTR_NETWORK_PEER_ADDRESS:()=>P6,ATTR_NETWORK_PEER_PORT:()=>M6,ATTR_NETWORK_PROTOCOL_NAME:()=>g6,ATTR_NETWORK_PROTOCOL_VERSION:()=>L6,ATTR_NETWORK_TRANSPORT:()=>I6,ATTR_NETWORK_TYPE:()=>V6,ATTR_OTEL_SCOPE_NAME:()=>G6,ATTR_OTEL_SCOPE_VERSION:()=>H6,ATTR_OTEL_STATUS_CODE:()=>k6,ATTR_OTEL_STATUS_DESCRIPTION:()=>K6,ATTR_SERVER_ADDRESS:()=>j6,ATTR_SERVER_PORT:()=>q6,ATTR_SERVICE_NAME:()=>W6,ATTR_SERVICE_VERSION:()=>z6,ATTR_SIGNALR_CONNECTION_STATUS:()=>J6,ATTR_SIGNALR_TRANSPORT:()=>Z6,ATTR_TELEMETRY_SDK_LANGUAGE:()=>_W,ATTR_TELEMETRY_SDK_NAME:()=>yW,ATTR_TELEMETRY_SDK_VERSION:()=>PW,ATTR_URL_FRAGMENT:()=>n8,ATTR_URL_FULL:()=>o8,ATTR_URL_PATH:()=>i8,ATTR_URL_QUERY:()=>a8,ATTR_URL_SCHEME:()=>u8,ATTR_USER_AGENT_ORIGINAL:()=>s8,AWSECSLAUNCHTYPEVALUES_EC2:()=>M4,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>g4,AwsEcsLaunchtypeValues:()=>L4,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>c4,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>l4,CLOUDPLATFORMVALUES_AWS_EC2:()=>p4,CLOUDPLATFORMVALUES_AWS_ECS:()=>_4,CLOUDPLATFORMVALUES_AWS_EKS:()=>E4,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>S4,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>T4,CLOUDPLATFORMVALUES_AZURE_AKS:()=>A4,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>O4,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>d4,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>v4,CLOUDPLATFORMVALUES_AZURE_VM:()=>f4,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>y4,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>R4,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>h4,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>m4,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>N4,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>o4,CLOUDPROVIDERVALUES_AWS:()=>i4,CLOUDPROVIDERVALUES_AZURE:()=>a4,CLOUDPROVIDERVALUES_GCP:()=>u4,CloudPlatformValues:()=>P4,CloudProviderValues:()=>s4,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>Y3,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>X3,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>F3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>J3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>j3,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Q3,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>q3,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>K3,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>$3,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>z3,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>W3,DBSYSTEMVALUES_ADABAS:()=>p3,DBSYSTEMVALUES_CACHE:()=>l3,DBSYSTEMVALUES_CASSANDRA:()=>g3,DBSYSTEMVALUES_CLOUDSCAPE:()=>r3,DBSYSTEMVALUES_COCKROACHDB:()=>H3,DBSYSTEMVALUES_COLDFUSION:()=>M3,DBSYSTEMVALUES_COSMOSDB:()=>U3,DBSYSTEMVALUES_COUCHBASE:()=>x3,DBSYSTEMVALUES_COUCHDB:()=>b3,DBSYSTEMVALUES_DB2:()=>QF,DBSYSTEMVALUES_DERBY:()=>E3,DBSYSTEMVALUES_DYNAMODB:()=>D3,DBSYSTEMVALUES_EDB:()=>c3,DBSYSTEMVALUES_ELASTICSEARCH:()=>B3,DBSYSTEMVALUES_FILEMAKER:()=>T3,DBSYSTEMVALUES_FIREBIRD:()=>_3,DBSYSTEMVALUES_FIRSTSQL:()=>s3,DBSYSTEMVALUES_GEODE:()=>w3,DBSYSTEMVALUES_H2:()=>P3,DBSYSTEMVALUES_HANADB:()=>a3,DBSYSTEMVALUES_HBASE:()=>L3,DBSYSTEMVALUES_HIVE:()=>t3,DBSYSTEMVALUES_HSQLDB:()=>n3,DBSYSTEMVALUES_INFORMIX:()=>S3,DBSYSTEMVALUES_INGRES:()=>u3,DBSYSTEMVALUES_INSTANTDB:()=>f3,DBSYSTEMVALUES_INTERBASE:()=>d3,DBSYSTEMVALUES_MARIADB:()=>A3,DBSYSTEMVALUES_MAXDB:()=>i3,DBSYSTEMVALUES_MEMCACHED:()=>G3,DBSYSTEMVALUES_MONGODB:()=>I3,DBSYSTEMVALUES_MSSQL:()=>JF,DBSYSTEMVALUES_MYSQL:()=>XF,DBSYSTEMVALUES_NEO4J:()=>V3,DBSYSTEMVALUES_NETEZZA:()=>v3,DBSYSTEMVALUES_ORACLE:()=>$F,DBSYSTEMVALUES_OTHER_SQL:()=>zF,DBSYSTEMVALUES_PERVASIVE:()=>O3,DBSYSTEMVALUES_POINTBASE:()=>m3,DBSYSTEMVALUES_POSTGRESQL:()=>ZF,DBSYSTEMVALUES_PROGRESS:()=>o3,DBSYSTEMVALUES_REDIS:()=>C3,DBSYSTEMVALUES_REDSHIFT:()=>e3,DBSYSTEMVALUES_SQLITE:()=>h3,DBSYSTEMVALUES_SYBASE:()=>N3,DBSYSTEMVALUES_TERADATA:()=>R3,DBSYSTEMVALUES_VERTICA:()=>y3,DbCassandraConsistencyLevelValues:()=>Z3,DbSystemValues:()=>k3,ERROR_TYPE_VALUE_OTHER:()=>YW,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>sK,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>uK,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>aK,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>lK,FAASINVOKEDPROVIDERVALUES_AWS:()=>pK,FAASINVOKEDPROVIDERVALUES_AZURE:()=>_K,FAASINVOKEDPROVIDERVALUES_GCP:()=>EK,FAASTRIGGERVALUES_DATASOURCE:()=>eK,FAASTRIGGERVALUES_HTTP:()=>tK,FAASTRIGGERVALUES_OTHER:()=>oK,FAASTRIGGERVALUES_PUBSUB:()=>rK,FAASTRIGGERVALUES_TIMER:()=>nK,FaasDocumentOperationValues:()=>cK,FaasInvokedProviderValues:()=>TK,FaasTriggerValues:()=>iK,HOSTARCHVALUES_AMD64:()=>I4,HOSTARCHVALUES_ARM32:()=>C4,HOSTARCHVALUES_ARM64:()=>x4,HOSTARCHVALUES_IA64:()=>b4,HOSTARCHVALUES_PPC32:()=>U4,HOSTARCHVALUES_PPC64:()=>D4,HOSTARCHVALUES_X86:()=>V4,HTTPFLAVORVALUES_HTTP_1_0:()=>$K,HTTPFLAVORVALUES_HTTP_1_1:()=>QK,HTTPFLAVORVALUES_HTTP_2_0:()=>ZK,HTTPFLAVORVALUES_QUIC:()=>tj,HTTPFLAVORVALUES_SPDY:()=>ej,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>XW,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>$W,HTTP_REQUEST_METHOD_VALUE_GET:()=>QW,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>ZW,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>e6,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>JW,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>t6,HTTP_REQUEST_METHOD_VALUE_POST:()=>r6,HTTP_REQUEST_METHOD_VALUE_PUT:()=>n6,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>o6,HostArchValues:()=>w4,HttpFlavorValues:()=>rj,JVM_MEMORY_TYPE_VALUE_HEAP:()=>T6,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>S6,JVM_THREAD_STATE_VALUE_BLOCKED:()=>A6,JVM_THREAD_STATE_VALUE_NEW:()=>v6,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>O6,JVM_THREAD_STATE_VALUE_TERMINATED:()=>m6,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>h6,JVM_THREAD_STATE_VALUE_WAITING:()=>N6,MESSAGETYPEVALUES_RECEIVED:()=>gj,MESSAGETYPEVALUES_SENT:()=>Mj,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>nj,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>oj,MESSAGINGOPERATIONVALUES_PROCESS:()=>uj,MESSAGINGOPERATIONVALUES_RECEIVE:()=>aj,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>c8,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>l8,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>p8,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>T8,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>E8,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>_8,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>S8,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>f8,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>d8,METRIC_JVM_CLASS_COUNT:()=>A8,METRIC_JVM_CLASS_LOADED:()=>v8,METRIC_JVM_CLASS_UNLOADED:()=>O8,METRIC_JVM_CPU_COUNT:()=>m8,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>h8,METRIC_JVM_CPU_TIME:()=>N8,METRIC_JVM_GC_DURATION:()=>R8,METRIC_JVM_MEMORY_COMMITTED:()=>y8,METRIC_JVM_MEMORY_LIMIT:()=>P8,METRIC_JVM_MEMORY_USED:()=>M8,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>g8,METRIC_JVM_THREAD_COUNT:()=>L8,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>I8,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>C8,METRIC_KESTREL_CONNECTION_DURATION:()=>x8,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>b8,METRIC_KESTREL_QUEUED_REQUESTS:()=>U8,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>D8,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>V8,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>w8,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>B8,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>G8,MessageTypeValues:()=>Lj,MessagingDestinationKindValues:()=>ij,MessagingOperationValues:()=>sj,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>xK,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>DK,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>IK,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>YK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>bK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>UK,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>HK,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>LK,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>KK,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>VK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>BK,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>FK,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>wK,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>GK,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>qK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>kK,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>JK,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>WK,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>zK,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>jK,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>CK,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>yK,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>PK,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>MK,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>NK,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>RK,NETTRANSPORTVALUES_INPROC:()=>OK,NETTRANSPORTVALUES_IP:()=>dK,NETTRANSPORTVALUES_IP_TCP:()=>SK,NETTRANSPORTVALUES_IP_UDP:()=>fK,NETTRANSPORTVALUES_OTHER:()=>mK,NETTRANSPORTVALUES_PIPE:()=>vK,NETTRANSPORTVALUES_UNIX:()=>AK,NETWORK_TRANSPORT_VALUE_PIPE:()=>C6,NETWORK_TRANSPORT_VALUE_QUIC:()=>x6,NETWORK_TRANSPORT_VALUE_TCP:()=>b6,NETWORK_TRANSPORT_VALUE_UDP:()=>U6,NETWORK_TRANSPORT_VALUE_UNIX:()=>D6,NETWORK_TYPE_VALUE_IPV4:()=>w6,NETWORK_TYPE_VALUE_IPV6:()=>B6,NetHostConnectionSubtypeValues:()=>XK,NetHostConnectionTypeValues:()=>gK,NetTransportValues:()=>hK,OSTYPEVALUES_AIX:()=>q4,OSTYPEVALUES_DARWIN:()=>H4,OSTYPEVALUES_DRAGONFLYBSD:()=>K4,OSTYPEVALUES_FREEBSD:()=>k4,OSTYPEVALUES_HPUX:()=>j4,OSTYPEVALUES_LINUX:()=>G4,OSTYPEVALUES_NETBSD:()=>Y4,OSTYPEVALUES_OPENBSD:()=>F4,OSTYPEVALUES_SOLARIS:()=>W4,OSTYPEVALUES_WINDOWS:()=>B4,OSTYPEVALUES_Z_OS:()=>z4,OTEL_STATUS_CODE_VALUE_ERROR:()=>Y6,OTEL_STATUS_CODE_VALUE_OK:()=>F6,OsTypeValues:()=>J4,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>vj,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Sj,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>lj,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Rj,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Ej,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>Aj,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>hj,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>_j,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Tj,RPCGRPCSTATUSCODEVALUES_OK:()=>cj,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>Oj,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>fj,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>dj,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>yj,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Nj,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>mj,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>pj,RpcGrpcStatusCodeValues:()=>Pj,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>rF,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>TF,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Z2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>J2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>_F,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>uF,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>iF,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>SF,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>nF,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>X2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>tF,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>aF,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>eF,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>$2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Q2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>EF,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>cF,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>lF,SEMATTRS_AWS_DYNAMODB_SELECT:()=>oF,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>sF,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>z2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>pF,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>MY,SEMATTRS_CODE_FILEPATH:()=>C2,SEMATTRS_CODE_FUNCTION:()=>L2,SEMATTRS_CODE_LINENO:()=>x2,SEMATTRS_CODE_NAMESPACE:()=>I2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>BY,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>FY,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>YY,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>HY,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>VY,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>wY,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>kY,SEMATTRS_DB_CASSANDRA_TABLE:()=>GY,SEMATTRS_DB_CONNECTION_STRING:()=>LY,SEMATTRS_DB_HBASE_NAMESPACE:()=>KY,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>CY,SEMATTRS_DB_MONGODB_COLLECTION:()=>qY,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>DY,SEMATTRS_DB_NAME:()=>xY,SEMATTRS_DB_OPERATION:()=>UY,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>jY,SEMATTRS_DB_SQL_TABLE:()=>WY,SEMATTRS_DB_STATEMENT:()=>bY,SEMATTRS_DB_SYSTEM:()=>gY,SEMATTRS_DB_USER:()=>IY,SEMATTRS_ENDUSER_ID:()=>R2,SEMATTRS_ENDUSER_ROLE:()=>y2,SEMATTRS_ENDUSER_SCOPE:()=>P2,SEMATTRS_EXCEPTION_ESCAPED:()=>$Y,SEMATTRS_EXCEPTION_MESSAGE:()=>JY,SEMATTRS_EXCEPTION_STACKTRACE:()=>XY,SEMATTRS_EXCEPTION_TYPE:()=>zY,SEMATTRS_FAAS_COLDSTART:()=>a2,SEMATTRS_FAAS_CRON:()=>i2,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>e2,SEMATTRS_FAAS_DOCUMENT_NAME:()=>n2,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>t2,SEMATTRS_FAAS_DOCUMENT_TIME:()=>r2,SEMATTRS_FAAS_EXECUTION:()=>ZY,SEMATTRS_FAAS_INVOKED_NAME:()=>u2,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>s2,SEMATTRS_FAAS_INVOKED_REGION:()=>c2,SEMATTRS_FAAS_TIME:()=>o2,SEMATTRS_FAAS_TRIGGER:()=>QY,SEMATTRS_HTTP_CLIENT_IP:()=>W2,SEMATTRS_HTTP_FLAVOR:()=>G2,SEMATTRS_HTTP_HOST:()=>V2,SEMATTRS_HTTP_METHOD:()=>b2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>k2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>Y2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>F2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>K2,SEMATTRS_HTTP_ROUTE:()=>q2,SEMATTRS_HTTP_SCHEME:()=>w2,SEMATTRS_HTTP_SERVER_NAME:()=>j2,SEMATTRS_HTTP_STATUS_CODE:()=>B2,SEMATTRS_HTTP_TARGET:()=>D2,SEMATTRS_HTTP_URL:()=>U2,SEMATTRS_HTTP_USER_AGENT:()=>H2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>jF,SEMATTRS_MESSAGE_ID:()=>KF,SEMATTRS_MESSAGE_TYPE:()=>FF,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>qF,SEMATTRS_MESSAGING_CONSUMER_ID:()=>gF,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>RF,SEMATTRS_MESSAGING_DESTINATION:()=>dF,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>AF,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>xF,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>CF,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>IF,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>bF,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>UF,SEMATTRS_MESSAGING_MESSAGE_ID:()=>NF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>PF,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>yF,SEMATTRS_MESSAGING_OPERATION:()=>MF,SEMATTRS_MESSAGING_PROTOCOL:()=>OF,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>mF,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>LF,SEMATTRS_MESSAGING_SYSTEM:()=>fF,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>vF,SEMATTRS_MESSAGING_URL:()=>hF,SEMATTRS_NET_HOST_CARRIER_ICC:()=>h2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>O2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>m2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>v2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>A2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>d2,SEMATTRS_NET_HOST_IP:()=>T2,SEMATTRS_NET_HOST_NAME:()=>f2,SEMATTRS_NET_HOST_PORT:()=>S2,SEMATTRS_NET_PEER_IP:()=>p2,SEMATTRS_NET_PEER_NAME:()=>E2,SEMATTRS_NET_PEER_PORT:()=>_2,SEMATTRS_NET_TRANSPORT:()=>l2,SEMATTRS_PEER_SERVICE:()=>N2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>BF,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>kF,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>YF,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>HF,SEMATTRS_RPC_JSONRPC_VERSION:()=>GF,SEMATTRS_RPC_METHOD:()=>wF,SEMATTRS_RPC_SERVICE:()=>VF,SEMATTRS_RPC_SYSTEM:()=>DF,SEMATTRS_THREAD_ID:()=>M2,SEMATTRS_THREAD_NAME:()=>g2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Vj,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Dj,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>wj,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Bj,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Gj,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>Hj,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>kj,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Fj,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>Yj,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>jj,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Kj,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>Cj,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>bj,SEMRESATTRS_CLOUD_PLATFORM:()=>Uj,SEMRESATTRS_CLOUD_PROVIDER:()=>Ij,SEMRESATTRS_CLOUD_REGION:()=>xj,SEMRESATTRS_CONTAINER_ID:()=>Wj,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>Jj,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>Xj,SEMRESATTRS_CONTAINER_NAME:()=>qj,SEMRESATTRS_CONTAINER_RUNTIME:()=>zj,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>$j,SEMRESATTRS_DEVICE_ID:()=>Qj,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Zj,SEMRESATTRS_DEVICE_MODEL_NAME:()=>eq,SEMRESATTRS_FAAS_ID:()=>rq,SEMRESATTRS_FAAS_INSTANCE:()=>oq,SEMRESATTRS_FAAS_MAX_MEMORY:()=>iq,SEMRESATTRS_FAAS_NAME:()=>tq,SEMRESATTRS_FAAS_VERSION:()=>nq,SEMRESATTRS_HOST_ARCH:()=>cq,SEMRESATTRS_HOST_ID:()=>aq,SEMRESATTRS_HOST_IMAGE_ID:()=>pq,SEMRESATTRS_HOST_IMAGE_NAME:()=>lq,SEMRESATTRS_HOST_IMAGE_VERSION:()=>_q,SEMRESATTRS_HOST_NAME:()=>uq,SEMRESATTRS_HOST_TYPE:()=>sq,SEMRESATTRS_K8S_CLUSTER_NAME:()=>Eq,SEMRESATTRS_K8S_CONTAINER_NAME:()=>vq,SEMRESATTRS_K8S_CRONJOB_NAME:()=>Cq,SEMRESATTRS_K8S_CRONJOB_UID:()=>Iq,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Mq,SEMRESATTRS_K8S_DAEMONSET_UID:()=>Pq,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>Nq,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>hq,SEMRESATTRS_K8S_JOB_NAME:()=>Lq,SEMRESATTRS_K8S_JOB_UID:()=>gq,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>fq,SEMRESATTRS_K8S_NODE_NAME:()=>Tq,SEMRESATTRS_K8S_NODE_UID:()=>Sq,SEMRESATTRS_K8S_POD_NAME:()=>Aq,SEMRESATTRS_K8S_POD_UID:()=>dq,SEMRESATTRS_K8S_REPLICASET_NAME:()=>mq,SEMRESATTRS_K8S_REPLICASET_UID:()=>Oq,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>yq,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Rq,SEMRESATTRS_OS_DESCRIPTION:()=>bq,SEMRESATTRS_OS_NAME:()=>Uq,SEMRESATTRS_OS_TYPE:()=>xq,SEMRESATTRS_OS_VERSION:()=>Dq,SEMRESATTRS_PROCESS_COMMAND:()=>Gq,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>kq,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>Hq,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>wq,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Bq,SEMRESATTRS_PROCESS_OWNER:()=>Yq,SEMRESATTRS_PROCESS_PID:()=>Vq,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>jq,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Fq,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Kq,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>zq,SEMRESATTRS_SERVICE_NAME:()=>qq,SEMRESATTRS_SERVICE_NAMESPACE:()=>Wq,SEMRESATTRS_SERVICE_VERSION:()=>Jq,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Zq,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>$q,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Xq,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Qq,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>r4,SEMRESATTRS_WEBENGINE_NAME:()=>e4,SEMRESATTRS_WEBENGINE_VERSION:()=>t4,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>X6,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>$6,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>Q6,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>e8,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>t8,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>r8,SemanticAttributes:()=>WF,SemanticResourceAttributes:()=>n4,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>X4,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>$4,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>Q4,TELEMETRYSDKLANGUAGEVALUES_GO:()=>Z4,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>eW,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>tW,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>rW,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>nW,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>oW,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>iW,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>EW,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>TW,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>SW,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>fW,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>dW,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>AW,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>vW,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>OW,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>mW,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>hW,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>NW,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>RW,TelemetrySdkLanguageValues:()=>aW});var VP=d(()=>{aR();xP();bP();UP()});var wP=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.ExceptionEventName=void 0;$n.ExceptionEventName="exception"});var vu=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Span=void 0;var ce=(m(),N(y)),Q=x(),at=(VP(),N(DP)),H8=wP(),Au=class{constructor(r,i,c,a,u,t,e=[],n,s,l){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:ce.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=c,this._spanContext=a,this.parentSpanId=t,this.kind=u,this.links=e;let E=Date.now();this._performanceStartTime=Q.otperformance.now(),this._performanceOffset=E-(this._performanceStartTime+(0,Q.getTimeOrigin)()),this._startTimeProvided=n!=null,this.startTime=this._getTime(n??E),this.resource=r.resource,this.instrumentationLibrary=r.instrumentationLibrary,this._spanLimits=r.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=r.getActiveSpanProcessor(),this._spanProcessor.onStart(this,i)}spanContext(){return this._spanContext}setAttribute(r,i){return i==null||this._isSpanEnded()?this:r.length===0?(ce.diag.warn(`Invalid attribute key: ${r}`),this):(0,Q.isAttributeValue)(i)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(i),this):(ce.diag.warn(`Invalid attribute value set for key: ${r}`),this)}setAttributes(r){for(let[i,c]of Object.entries(r))this.setAttribute(i,c);return this}addEvent(r,i,c){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return ce.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&ce.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Q.isTimeInput)(i)&&((0,Q.isTimeInput)(c)||(c=i),i=void 0);let a=(0,Q.sanitizeAttributes)(i);return this.events.push({name:r,attributes:a,time:this._getTime(c),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status=Object.assign({},r),this.status.message!=null&&typeof r.message!="string"&&(ce.diag.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){ce.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=(0,Q.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(ce.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&&ce.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=Q.otperformance.now())return(0,Q.hrTime)(r+this._performanceOffset);if(typeof r=="number")return(0,Q.millisToHrTime)(r);if(r instanceof Date)return(0,Q.millisToHrTime)(r.getTime());if((0,Q.isTimeInputHrTime)(r))return r;if(this._startTimeProvided)return(0,Q.millisToHrTime)(Date.now());let i=Q.otperformance.now()-this._performanceStartTime;return(0,Q.addHrTimes)(this.startTime,(0,Q.millisToHrTime)(i))}isRecording(){return this._ended===!1}recordException(r,i){let c={};typeof r=="string"?c[at.SEMATTRS_EXCEPTION_MESSAGE]=r:r&&(r.code?c[at.SEMATTRS_EXCEPTION_TYPE]=r.code.toString():r.name&&(c[at.SEMATTRS_EXCEPTION_TYPE]=r.name),r.message&&(c[at.SEMATTRS_EXCEPTION_MESSAGE]=r.message),r.stack&&(c[at.SEMATTRS_EXCEPTION_STACKTRACE]=r.stack)),c[at.SEMATTRS_EXCEPTION_TYPE]||c[at.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(H8.ExceptionEventName,c,i):ce.diag.warn(`Failed to record an exception ${r}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){return this._ended&&ce.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(r,i){return r.length<=i?r:r.substring(0,i)}_truncateToSize(r){let i=this._attributeValueLengthLimit;return i<=0?(ce.diag.warn(`Attribute value limit must be positive, got ${i}`),r):typeof r=="string"?this._truncateToLimitUtil(r,i):Array.isArray(r)?r.map(c=>typeof c=="string"?this._truncateToLimitUtil(c,i):c):r}};Qn.Span=Au});var Mr=S(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.SamplingDecision=void 0;var k8;(function(o){o[o.NOT_RECORD=0]="NOT_RECORD",o[o.RECORD=1]="RECORD",o[o.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(k8=Pr.SamplingDecision||(Pr.SamplingDecision={}))});var eo=S(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AlwaysOffSampler=void 0;var Y8=Mr(),Ou=class{shouldSample(){return{decision:Y8.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Zn.AlwaysOffSampler=Ou});var ro=S(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.AlwaysOnSampler=void 0;var F8=Mr(),mu=class{shouldSample(){return{decision:F8.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};to.AlwaysOnSampler=mu});var Ru=S(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.ParentBasedSampler=void 0;var no=(m(),N(y)),K8=x(),BP=eo(),hu=ro(),Nu=class{constructor(r){var i,c,a,u;this._root=r.root,this._root||((0,K8.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new hu.AlwaysOnSampler),this._remoteParentSampled=(i=r.remoteParentSampled)!==null&&i!==void 0?i:new hu.AlwaysOnSampler,this._remoteParentNotSampled=(c=r.remoteParentNotSampled)!==null&&c!==void 0?c:new BP.AlwaysOffSampler,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new hu.AlwaysOnSampler,this._localParentNotSampled=(u=r.localParentNotSampled)!==null&&u!==void 0?u:new BP.AlwaysOffSampler}shouldSample(r,i,c,a,u,t){let e=no.trace.getSpanContext(r);return!e||!(0,no.isSpanContextValid)(e)?this._root.shouldSample(r,i,c,a,u,t):e.isRemote?e.traceFlags&no.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(r,i,c,a,u,t):this._remoteParentNotSampled.shouldSample(r,i,c,a,u,t):e.traceFlags&no.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(r,i,c,a,u,t):this._localParentNotSampled.shouldSample(r,i,c,a,u,t)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};oo.ParentBasedSampler=Nu});var Pu=S(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.TraceIdRatioBasedSampler=void 0;var j8=(m(),N(y)),GP=Mr(),yu=class{constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,i){return{decision:(0,j8.isValidTraceId)(i)&&this._accumulate(i)<this._upperBound?GP.SamplingDecision.RECORD_AND_SAMPLED:GP.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let i=0;for(let c=0;c<r.length/8;c++){let a=c*8,u=parseInt(r.slice(a,a+8),16);i=(i^u)>>>0}return i}};io.TraceIdRatioBasedSampler=yu});var Lu=S(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.buildSamplerFromEnv=bt.loadDefaultConfig=void 0;var ao=(m(),N(y)),be=x(),HP=eo(),Mu=ro(),gu=Ru(),kP=Pu(),q8=be.TracesSamplerValues.AlwaysOn,xt=1;function W8(){let o=(0,be.getEnv)();return{sampler:FP(o),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:o.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:o.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:o.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:o.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:o.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:o.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}bt.loadDefaultConfig=W8;function FP(o=(0,be.getEnv)()){switch(o.OTEL_TRACES_SAMPLER){case be.TracesSamplerValues.AlwaysOn:return new Mu.AlwaysOnSampler;case be.TracesSamplerValues.AlwaysOff:return new HP.AlwaysOffSampler;case be.TracesSamplerValues.ParentBasedAlwaysOn:return new gu.ParentBasedSampler({root:new Mu.AlwaysOnSampler});case be.TracesSamplerValues.ParentBasedAlwaysOff:return new gu.ParentBasedSampler({root:new HP.AlwaysOffSampler});case be.TracesSamplerValues.TraceIdRatio:return new kP.TraceIdRatioBasedSampler(YP(o));case be.TracesSamplerValues.ParentBasedTraceIdRatio:return new gu.ParentBasedSampler({root:new kP.TraceIdRatioBasedSampler(YP(o))});default:return ao.diag.error(`OTEL_TRACES_SAMPLER value "${o.OTEL_TRACES_SAMPLER} invalid, defaulting to ${q8}".`),new Mu.AlwaysOnSampler}}bt.buildSamplerFromEnv=FP;function YP(o){if(o.OTEL_TRACES_SAMPLER_ARG===void 0||o.OTEL_TRACES_SAMPLER_ARG==="")return ao.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${xt}.`),xt;let r=Number(o.OTEL_TRACES_SAMPLER_ARG);return isNaN(r)?(ao.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${xt}.`),xt):r<0||r>1?(ao.diag.error(`OTEL_TRACES_SAMPLER_ARG=${o.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${xt}.`),xt):r}});var Cu=S(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.reconfigureLimits=Ut.mergeConfig=void 0;var KP=Lu(),Iu=x();function z8(o){let r={sampler:(0,KP.buildSamplerFromEnv)()},i=(0,KP.loadDefaultConfig)(),c=Object.assign({},i,r,o);return c.generalLimits=Object.assign({},i.generalLimits,o.generalLimits||{}),c.spanLimits=Object.assign({},i.spanLimits,o.spanLimits||{}),c}Ut.mergeConfig=z8;function J8(o){var r,i,c,a,u,t,e,n,s,l,E,O;let g=Object.assign({},o.spanLimits),ue=(0,Iu.getEnvWithoutDefaults)();return g.attributeCountLimit=(t=(u=(a=(i=(r=o.spanLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:(c=o.generalLimits)===null||c===void 0?void 0:c.attributeCountLimit)!==null&&a!==void 0?a:ue.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:ue.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&t!==void 0?t:Iu.DEFAULT_ATTRIBUTE_COUNT_LIMIT,g.attributeValueLengthLimit=(O=(E=(l=(n=(e=o.spanLimits)===null||e===void 0?void 0:e.attributeValueLengthLimit)!==null&&n!==void 0?n:(s=o.generalLimits)===null||s===void 0?void 0:s.attributeValueLengthLimit)!==null&&l!==void 0?l:ue.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&E!==void 0?E:ue.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&O!==void 0?O:Iu.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},o,{spanLimits:g})}Ut.reconfigureLimits=J8});var jP=S(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.BatchSpanProcessorBase=void 0;var Dt=(m(),N(y)),ut=x(),xu=class{constructor(r,i){this._exporter=r,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let c=(0,ut.getEnv)();this._maxExportBatchSize=typeof i?.maxExportBatchSize=="number"?i.maxExportBatchSize:c.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof i?.maxQueueSize=="number"?i.maxQueueSize:c.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof i?.scheduledDelayMillis=="number"?i.scheduledDelayMillis:c.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof i?.exportTimeoutMillis=="number"?i.exportTimeoutMillis:c.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new ut.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Dt.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(r,i){}onEnd(r){this._shutdownOnce.isCalled||(r.spanContext().traceFlags&Dt.TraceFlags.SAMPLED)!==0&&this._addToBuffer(r)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(r){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Dt.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Dt.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(r),this._maybeStartTimer()}_flushAll(){return new Promise((r,i)=>{let c=[],a=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let u=0,t=a;u<t;u++)c.push(this._flushOneBatch());Promise.all(c).then(()=>{r()}).catch(i)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((r,i)=>{let c=setTimeout(()=>{i(new Error("Timeout"))},this._exportTimeoutMillis);Dt.context.with((0,ut.suppressTracing)(Dt.context.active()),()=>{let a;this._finishedSpans.length<=this._maxExportBatchSize?(a=this._finishedSpans,this._finishedSpans=[]):a=this._finishedSpans.splice(0,this._maxExportBatchSize);let u=()=>this._exporter.export(a,e=>{var n;clearTimeout(c),e.code===ut.ExportResultCode.SUCCESS?r():i((n=e.error)!==null&&n!==void 0?n:new Error("BatchSpanProcessor: span export failed"))}),t=null;for(let e=0,n=a.length;e<n;e++){let s=a[e];s.resource.asyncAttributesPending&&s.resource.waitForAsyncAttributes&&(t??(t=[]),t.push(s.resource.waitForAsyncAttributes()))}t===null?u():Promise.all(t).then(u,e=>{(0,ut.globalErrorHandler)(e),i(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let r=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(i=>{this._isExporting=!1,(0,ut.globalErrorHandler)(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(()=>r(),this._scheduledDelayMillis),(0,ut.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};uo.BatchSpanProcessorBase=xu});var qP=S(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.BatchSpanProcessor=void 0;var X8=jP(),bu=class extends X8.BatchSpanProcessorBase{onShutdown(){}};so.BatchSpanProcessor=bu});var JP=S(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.RandomIdGenerator=void 0;var $8=8,zP=16,Uu=class{constructor(){this.generateTraceId=WP(zP),this.generateSpanId=WP($8)}};lo.RandomIdGenerator=Uu;var co=Buffer.allocUnsafe(zP);function WP(o){return function(){for(let i=0;i<o/4;i++)co.writeUInt32BE(Math.random()*2**32>>>0,i*4);for(let i=0;i<o&&!(co[i]>0);i++)i===o-1&&(co[o-1]=1);return co.toString("hex",0,o)}}});var XP=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.RandomIdGenerator=Vt.BatchSpanProcessor=void 0;var Q8=qP();Object.defineProperty(Vt,"BatchSpanProcessor",{enumerable:!0,get:function(){return Q8.BatchSpanProcessor}});var Z8=JP();Object.defineProperty(Vt,"RandomIdGenerator",{enumerable:!0,get:function(){return Z8.RandomIdGenerator}})});var po=S(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.RandomIdGenerator=wt.BatchSpanProcessor=void 0;var $P=XP();Object.defineProperty(wt,"BatchSpanProcessor",{enumerable:!0,get:function(){return $P.BatchSpanProcessor}});Object.defineProperty(wt,"RandomIdGenerator",{enumerable:!0,get:function(){return $P.RandomIdGenerator}})});var Vu=S(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.Tracer=void 0;var W=(m(),N(y)),_o=x(),ez=vu(),tz=Cu(),rz=po(),Du=class{constructor(r,i,c){this._tracerProvider=c;let a=(0,tz.mergeConfig)(i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=i.idGenerator||new rz.RandomIdGenerator,this.resource=c.resource,this.instrumentationLibrary=r}startSpan(r,i={},c=W.context.active()){var a,u,t;i.root&&(c=W.trace.deleteSpan(c));let e=W.trace.getSpan(c);if((0,_o.isTracingSuppressed)(c))return W.diag.debug("Instrumentation suppressed, returning Noop Span"),W.trace.wrapSpanContext(W.INVALID_SPAN_CONTEXT);let n=e?.spanContext(),s=this._idGenerator.generateSpanId(),l,E,O;!n||!W.trace.isSpanContextValid(n)?l=this._idGenerator.generateTraceId():(l=n.traceId,E=n.traceState,O=n.spanId);let g=(a=i.kind)!==null&&a!==void 0?a:W.SpanKind.INTERNAL,ue=((u=i.links)!==null&&u!==void 0?u:[]).map(Qr=>({context:Qr.context,attributes:(0,_o.sanitizeAttributes)(Qr.attributes)})),ve=(0,_o.sanitizeAttributes)(i.attributes),Ie=this._sampler.shouldSample(c,l,r,g,ve,ue);E=(t=Ie.traceState)!==null&&t!==void 0?t:E;let $r=Ie.decision===W.SamplingDecision.RECORD_AND_SAMPLED?W.TraceFlags.SAMPLED:W.TraceFlags.NONE,Ic={traceId:l,spanId:s,traceFlags:$r,traceState:E};if(Ie.decision===W.SamplingDecision.NOT_RECORD)return W.diag.debug("Recording is off, propagating context in a non-recording span"),W.trace.wrapSpanContext(Ic);let iC=(0,_o.sanitizeAttributes)(Object.assign(ve,Ie.attributes));return new ez.Span(this,c,r,Ic,g,O,ue,i.startTime,void 0,iC)}startActiveSpan(r,i,c,a){let u,t,e;if(arguments.length<2)return;arguments.length===2?e=i:arguments.length===3?(u=i,e=c):(u=i,t=c,e=a);let n=t??W.context.active(),s=this.startSpan(r,u,n),l=W.trace.setSpan(n,s);return W.context.with(l,e,void 0,s)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};Eo.Tracer=Du});var To=S((BZ,QP)=>{"use strict";var Ue=class o{constructor(r,i){this._attributes=r||{},this._syncAttributes=this._attributes,this.asyncAttributesPending=i!=null,i&&(this._asyncAttributesPromise=i.then(c=>(this._attributes=Object.assign({},this._attributes,c),this.asyncAttributesPending=!1,c),()=>(this.asyncAttributesPending=!1,{})))}get attributes(){return this._attributes||{}}waitForAsyncAttributes(){return this.asyncAttributesPending?this._asyncAttributesPromise:Promise.resolve()}merge(r){if(!r)return this;let i=Object.assign({},this._syncAttributes,r._syncAttributes||r.attributes);return new o(i)}};Ue.EMPTY=new Ue({});Ue.empty=function(){return Ue.EMPTY};Ue.default=function(){return new Ue({"telemetry.sdk.language":"nodejs"})};QP.exports={Resource:Ue}});var ZP=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MultiSpanProcessor=void 0;var nz=x(),wu=class{constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let i of this._spanProcessors)r.push(i.forceFlush());return new Promise(i=>{Promise.all(r).then(()=>{i()}).catch(c=>{(0,nz.globalErrorHandler)(c||new Error("MultiSpanProcessor: forceFlush failed")),i()})})}onStart(r,i){for(let c of this._spanProcessors)c.onStart(r,i)}onEnd(r){for(let i of this._spanProcessors)i.onEnd(r)}shutdown(){let r=[];for(let i of this._spanProcessors)r.push(i.shutdown());return new Promise((i,c)=>{Promise.all(r).then(()=>{i()},c)})}};So.MultiSpanProcessor=wu});var Gu=S(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.NoopSpanProcessor=void 0;var Bu=class{onStart(r,i){}onEnd(r){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};fo.NoopSpanProcessor=Bu});var rM=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.BasicTracerProvider=st.ForceFlushState=void 0;var Bt=(m(),N(y)),Ht=x(),eM=To(),oz=Vu(),iz=Lu(),tM=ZP(),az=Gu(),uz=po(),sz=Cu(),Gt;(function(o){o[o.resolved=0]="resolved",o[o.timeout=1]="timeout",o[o.error=2]="error",o[o.unresolved=3]="unresolved"})(Gt=st.ForceFlushState||(st.ForceFlushState={}));var gr=class{constructor(r={}){var i,c;this._registeredSpanProcessors=[],this._tracers=new Map;let a=(0,Ht.merge)({},(0,iz.loadDefaultConfig)(),(0,sz.reconfigureLimits)(r));if(this.resource=(i=a.resource)!==null&&i!==void 0?i:eM.Resource.empty(),a.mergeResourceWithDefaults&&(this.resource=eM.Resource.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((c=r.spanProcessors)===null||c===void 0)&&c.length)this._registeredSpanProcessors=[...r.spanProcessors],this.activeSpanProcessor=new tM.MultiSpanProcessor(this._registeredSpanProcessors);else{let u=this._buildExporterFromEnv();if(u!==void 0){let t=new uz.BatchSpanProcessor(u);this.activeSpanProcessor=t}else this.activeSpanProcessor=new az.NoopSpanProcessor}}getTracer(r,i,c){let a=`${r}@${i||""}:${c?.schemaUrl||""}`;return this._tracers.has(a)||this._tracers.set(a,new oz.Tracer({name:r,version:i,schemaUrl:c?.schemaUrl},this._config,this)),this._tracers.get(a)}addSpanProcessor(r){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(i=>Bt.diag.error("Error while trying to shutdown current span processor",i)),this._registeredSpanProcessors.push(r),this.activeSpanProcessor=new tM.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(r={}){Bt.trace.setGlobalTracerProvider(this),r.propagator===void 0&&(r.propagator=this._buildPropagatorFromEnv()),r.contextManager&&Bt.context.setGlobalContextManager(r.contextManager),r.propagator&&Bt.propagation.setGlobalPropagator(r.propagator)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,i=this._registeredSpanProcessors.map(c=>new Promise(a=>{let u,t=setTimeout(()=>{a(new Error(`Span processor did not completed within timeout period of ${r} ms`)),u=Gt.timeout},r);c.forceFlush().then(()=>{clearTimeout(t),u!==Gt.timeout&&(u=Gt.resolved,a(u))}).catch(e=>{clearTimeout(t),u=Gt.error,a(e)})}));return new Promise((c,a)=>{Promise.all(i).then(u=>{let t=u.filter(e=>e!==Gt.resolved);t.length>0?a(t):c()}).catch(u=>a([u]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(r){var i;return(i=this.constructor._registeredPropagators.get(r))===null||i===void 0?void 0:i()}_getSpanExporter(r){var i;return(i=this.constructor._registeredExporters.get(r))===null||i===void 0?void 0:i()}_buildPropagatorFromEnv(){let r=Array.from(new Set((0,Ht.getEnv)().OTEL_PROPAGATORS)),c=r.map(a=>{let u=this._getPropagator(a);return u||Bt.diag.warn(`Propagator "${a}" requested through environment variable is unavailable.`),u}).reduce((a,u)=>(u&&a.push(u),a),[]);if(c.length!==0)return r.length===1?c[0]:new Ht.CompositePropagator({propagators:c})}_buildExporterFromEnv(){let r=(0,Ht.getEnv)().OTEL_TRACES_EXPORTER;if(r==="none"||r==="")return;let i=this._getSpanExporter(r);return i||Bt.diag.error(`Exporter "${r}" requested through environment variable is unavailable.`),i}};st.BasicTracerProvider=gr;gr._registeredPropagators=new Map([["tracecontext",()=>new Ht.W3CTraceContextPropagator],["baggage",()=>new Ht.W3CBaggagePropagator]]);gr._registeredExporters=new Map});var nM=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.ConsoleSpanExporter=void 0;var Hu=x(),ku=class{export(r,i){return this._sendSpans(r,i)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(r){var i;return{resource:{attributes:r.resource.attributes},instrumentationScope:r.instrumentationLibrary,traceId:r.spanContext().traceId,parentId:r.parentSpanId,traceState:(i=r.spanContext().traceState)===null||i===void 0?void 0:i.serialize(),name:r.name,id:r.spanContext().spanId,kind:r.kind,timestamp:(0,Hu.hrTimeToMicroseconds)(r.startTime),duration:(0,Hu.hrTimeToMicroseconds)(r.duration),attributes:r.attributes,status:r.status,events:r.events,links:r.links}}_sendSpans(r,i){for(let c of r)console.dir(this._exportInfo(c),{depth:3});if(i)return i({code:Hu.ExportResultCode.SUCCESS})}};Ao.ConsoleSpanExporter=ku});var iM=S(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.InMemorySpanExporter=void 0;var oM=x(),Yu=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(r,i){if(this._stopped)return i({code:oM.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...r),setTimeout(()=>i({code:oM.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};vo.InMemorySpanExporter=Yu});var aM=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.SimpleSpanProcessor=void 0;var cz=(m(),N(y)),kt=x(),Fu=class{constructor(r){this._exporter=r,this._shutdownOnce=new kt.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(r,i){}onEnd(r){var i,c;if(this._shutdownOnce.isCalled||(r.spanContext().traceFlags&cz.TraceFlags.SAMPLED)===0)return;let a=()=>kt.internal._export(this._exporter,[r]).then(u=>{var t;u.code!==kt.ExportResultCode.SUCCESS&&(0,kt.globalErrorHandler)((t=u.error)!==null&&t!==void 0?t:new Error(`SimpleSpanProcessor: span export failed (status ${u})`))}).catch(u=>{(0,kt.globalErrorHandler)(u)});if(r.resource.asyncAttributesPending){let u=(c=(i=r.resource).waitForAsyncAttributes)===null||c===void 0?void 0:c.call(i).then(()=>(u!=null&&this._unresolvedExports.delete(u),a()),t=>(0,kt.globalErrorHandler)(t));u!=null&&this._unresolvedExports.add(u)}else a()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};Oo.SimpleSpanProcessor=Fu});var cM=S(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.Span=M.SamplingDecision=M.TraceIdRatioBasedSampler=M.ParentBasedSampler=M.AlwaysOnSampler=M.AlwaysOffSampler=M.NoopSpanProcessor=M.SimpleSpanProcessor=M.InMemorySpanExporter=M.ConsoleSpanExporter=M.RandomIdGenerator=M.BatchSpanProcessor=M.ForceFlushState=M.BasicTracerProvider=M.Tracer=void 0;var lz=Vu();Object.defineProperty(M,"Tracer",{enumerable:!0,get:function(){return lz.Tracer}});var uM=rM();Object.defineProperty(M,"BasicTracerProvider",{enumerable:!0,get:function(){return uM.BasicTracerProvider}});Object.defineProperty(M,"ForceFlushState",{enumerable:!0,get:function(){return uM.ForceFlushState}});var sM=po();Object.defineProperty(M,"BatchSpanProcessor",{enumerable:!0,get:function(){return sM.BatchSpanProcessor}});Object.defineProperty(M,"RandomIdGenerator",{enumerable:!0,get:function(){return sM.RandomIdGenerator}});var pz=nM();Object.defineProperty(M,"ConsoleSpanExporter",{enumerable:!0,get:function(){return pz.ConsoleSpanExporter}});var _z=iM();Object.defineProperty(M,"InMemorySpanExporter",{enumerable:!0,get:function(){return _z.InMemorySpanExporter}});var Ez=aM();Object.defineProperty(M,"SimpleSpanProcessor",{enumerable:!0,get:function(){return Ez.SimpleSpanProcessor}});var Tz=Gu();Object.defineProperty(M,"NoopSpanProcessor",{enumerable:!0,get:function(){return Tz.NoopSpanProcessor}});var Sz=eo();Object.defineProperty(M,"AlwaysOffSampler",{enumerable:!0,get:function(){return Sz.AlwaysOffSampler}});var fz=ro();Object.defineProperty(M,"AlwaysOnSampler",{enumerable:!0,get:function(){return fz.AlwaysOnSampler}});var dz=Ru();Object.defineProperty(M,"ParentBasedSampler",{enumerable:!0,get:function(){return dz.ParentBasedSampler}});var Az=Pu();Object.defineProperty(M,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Az.TraceIdRatioBasedSampler}});var vz=Mr();Object.defineProperty(M,"SamplingDecision",{enumerable:!0,get:function(){return vz.SamplingDecision}});var Oz=vu();Object.defineProperty(M,"Span",{enumerable:!0,get:function(){return Oz.Span}})});var mo=S(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.AggregationTemporality=void 0;var mz;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE"})(mz=Lr.AggregationTemporality||(Lr.AggregationTemporality={}))});var Yt=S(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.DataPointType=void 0;var hz;(function(o){o[o.HISTOGRAM=0]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",o[o.GAUGE=2]="GAUGE",o[o.SUM=3]="SUM"})(hz=Ir.DataPointType||(Ir.DataPointType={}))});var Te=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.equalsCaseInsensitive=I.binarySearchUB=I.setEquals=I.FlatMap=I.isPromiseAllSettledRejectionResult=I.PromiseAllSettled=I.callWithTimeout=I.TimeoutError=I.instrumentationScopeId=I.hashAttributes=I.isNotNullish=void 0;function Nz(o){return o!=null}I.isNotNullish=Nz;function Rz(o){let r=Object.keys(o);return r.length===0?"":(r=r.sort(),JSON.stringify(r.map(i=>[i,o[i]])))}I.hashAttributes=Rz;function yz(o){var r,i;return`${o.name}:${(r=o.version)!==null&&r!==void 0?r:""}:${(i=o.schemaUrl)!==null&&i!==void 0?i:""}`}I.instrumentationScopeId=yz;var ho=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}};I.TimeoutError=ho;function Pz(o,r){let i,c=new Promise(function(u,t){i=setTimeout(function(){t(new ho("Operation timed out."))},r)});return Promise.race([o,c]).then(a=>(clearTimeout(i),a),a=>{throw clearTimeout(i),a})}I.callWithTimeout=Pz;async function Mz(o){return Promise.all(o.map(async r=>{try{return{status:"fulfilled",value:await r}}catch(i){return{status:"rejected",reason:i}}}))}I.PromiseAllSettled=Mz;function gz(o){return o.status==="rejected"}I.isPromiseAllSettledRejectionResult=gz;function Lz(o,r){let i=[];return o.forEach(c=>{i.push(...r(c))}),i}I.FlatMap=Lz;function Iz(o,r){if(o.size!==r.size)return!1;for(let i of o)if(!r.has(i))return!1;return!0}I.setEquals=Iz;function Cz(o,r){let i=0,c=o.length-1,a=o.length;for(;c>=i;){let u=i+Math.trunc((c-i)/2);o[u]<r?i=u+1:(a=u,c=u-1)}return a}I.binarySearchUB=Cz;function xz(o,r){return o.toLowerCase()===r.toLowerCase()}I.equalsCaseInsensitive=xz});var Ft=S(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.AggregatorKind=void 0;var bz;(function(o){o[o.DROP=0]="DROP",o[o.SUM=1]="SUM",o[o.LAST_VALUE=2]="LAST_VALUE",o[o.HISTOGRAM=3]="HISTOGRAM",o[o.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(bz=Cr.AggregatorKind||(Cr.AggregatorKind={}))});var lM=S(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.DropAggregator=void 0;var Uz=Ft(),Ku=class{constructor(){this.kind=Uz.AggregatorKind.DROP}createAccumulation(){}merge(r,i){}diff(r,i){}toMetricData(r,i,c,a){}};No.DropAggregator=Ku});var De=S(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.isValidName=ae.isDescriptorCompatibleWith=ae.createInstrumentDescriptorWithView=ae.createInstrumentDescriptor=ae.InstrumentType=void 0;var pM=(m(),N(y)),Dz=Te(),Vz;(function(o){o.COUNTER="COUNTER",o.GAUGE="GAUGE",o.HISTOGRAM="HISTOGRAM",o.UP_DOWN_COUNTER="UP_DOWN_COUNTER",o.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",o.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",o.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(Vz=ae.InstrumentType||(ae.InstrumentType={}));function wz(o,r,i){var c,a,u,t;return _M(o)||pM.diag.warn(`Invalid metric name: "${o}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:o,type:r,description:(c=i?.description)!==null&&c!==void 0?c:"",unit:(a=i?.unit)!==null&&a!==void 0?a:"",valueType:(u=i?.valueType)!==null&&u!==void 0?u:pM.ValueType.DOUBLE,advice:(t=i?.advice)!==null&&t!==void 0?t:{}}}ae.createInstrumentDescriptor=wz;function Bz(o,r){var i,c;return{name:(i=o.name)!==null&&i!==void 0?i:r.name,description:(c=o.description)!==null&&c!==void 0?c:r.description,type:r.type,unit:r.unit,valueType:r.valueType,advice:r.advice}}ae.createInstrumentDescriptorWithView=Bz;function Gz(o,r){return(0,Dz.equalsCaseInsensitive)(o.name,r.name)&&o.unit===r.unit&&o.type===r.type&&o.valueType===r.valueType}ae.isDescriptorCompatibleWith=Gz;var Hz=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function _M(o){return o.match(Hz)!=null}ae.isValidName=_M});var EM=S(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.HistogramAggregator=jt.HistogramAccumulation=void 0;var kz=Ft(),Yz=Yt(),Ro=De(),Fz=Te();function Kz(o){let r=o.map(()=>0);return r.push(0),{buckets:{boundaries:o,counts:r},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var Kt=class{constructor(r,i,c=!0,a=Kz(i)){this.startTime=r,this._boundaries=i,this._recordMinMax=c,this._current=a}record(r){if(Number.isNaN(r))return;this._current.count+=1,this._current.sum+=r,this._recordMinMax&&(this._current.min=Math.min(r,this._current.min),this._current.max=Math.max(r,this._current.max),this._current.hasMinMax=!0);let i=(0,Fz.binarySearchUB)(this._boundaries,r);this._current.buckets.counts[i]+=1}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};jt.HistogramAccumulation=Kt;var ju=class{constructor(r,i){this._boundaries=r,this._recordMinMax=i,this.kind=kz.AggregatorKind.HISTOGRAM}createAccumulation(r){return new Kt(r,this._boundaries,this._recordMinMax)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let l=0;l<u.length;l++)e[l]=u[l]+t[l];let n=1/0,s=-1/0;return this._recordMinMax&&(c.hasMinMax&&a.hasMinMax?(n=Math.min(c.min,a.min),s=Math.max(c.max,a.max)):c.hasMinMax?(n=c.min,s=c.max):a.hasMinMax&&(n=a.min,s=a.max)),new Kt(r.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:c.count+a.count,sum:c.sum+a.sum,hasMinMax:this._recordMinMax&&(c.hasMinMax||a.hasMinMax),min:n,max:s})}diff(r,i){let c=r.toPointValue(),a=i.toPointValue(),u=c.buckets.counts,t=a.buckets.counts,e=new Array(u.length);for(let n=0;n<u.length;n++)e[n]=t[n]-u[n];return new Kt(i.startTime,c.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:c.buckets.boundaries,counts:e},count:a.count-c.count,sum:a.sum-c.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:Yz.DataPointType.HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===Ro.InstrumentType.GAUGE||r.type===Ro.InstrumentType.UP_DOWN_COUNTER||r.type===Ro.InstrumentType.OBSERVABLE_GAUGE||r.type===Ro.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,buckets:e.buckets,count:e.count}}})}}};jt.HistogramAggregator=ju});var TM=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.Buckets=void 0;var qu=class o{constructor(r=new Wu,i=0,c=0,a=0){this.backing=r,this.indexBase=i,this.indexStart=c,this.indexEnd=a}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(r,i)=>this.at(i))}at(r){let i=this.indexBase-this.indexStart;return r<i&&(r+=this.backing.length),r-=i,this.backing.countAt(r)}incrementBucket(r,i){this.backing.increment(r,i)}decrementBucket(r,i){this.backing.decrement(r,i)}trim(){for(let r=0;r<this.length;r++)if(this.at(r)!==0){this.indexStart+=r;break}else if(r===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let r=this.length-1;r>=0;r--)if(this.at(r)!==0){this.indexEnd-=this.length-r-1;break}this._rotate()}downscale(r){this._rotate();let i=1+this.indexEnd-this.indexStart,c=1<<r,a=0,u=0;for(let t=this.indexStart;t<=this.indexEnd;){let e=t%c;e<0&&(e+=c);for(let n=e;n<c&&a<i;n++)this._relocateBucket(u,a),a++,t++;u++}this.indexStart>>=r,this.indexEnd>>=r,this.indexBase=this.indexStart}clone(){return new o(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let r=this.indexBase-this.indexStart;r!==0&&(r>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,r),this.backing.reverse(r,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+r)),this.indexBase=this.indexStart)}_relocateBucket(r,i){r!==i&&this.incrementBucket(r,this.backing.emptyBucket(i))}};yo.Buckets=qu;var Wu=class o{constructor(r=[0]){this._counts=r}get length(){return this._counts.length}countAt(r){return this._counts[r]}growTo(r,i,c){let a=new Array(r).fill(0);a.splice(c,this._counts.length-i,...this._counts.slice(i)),a.splice(0,i,...this._counts.slice(0,i)),this._counts=a}reverse(r,i){let c=Math.floor((r+i)/2)-r;for(let a=0;a<c;a++){let u=this._counts[r+a];this._counts[r+a]=this._counts[i-a-1],this._counts[i-a-1]=u}}emptyBucket(r){let i=this._counts[r];return this._counts[r]=0,i}increment(r,i){this._counts[r]+=i}decrement(r,i){this._counts[r]>=i?this._counts[r]-=i:this._counts[r]=0}clone(){return new o([...this._counts])}}});var Ju=S(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getSignificand=Z.getNormalBase2=Z.MIN_VALUE=Z.MAX_NORMAL_EXPONENT=Z.MIN_NORMAL_EXPONENT=Z.SIGNIFICAND_WIDTH=void 0;Z.SIGNIFICAND_WIDTH=52;var jz=2146435072,qz=1048575,zu=1023;Z.MIN_NORMAL_EXPONENT=-zu+1;Z.MAX_NORMAL_EXPONENT=zu;Z.MIN_VALUE=Math.pow(2,-1022);function Wz(o){let r=new DataView(new ArrayBuffer(8));return r.setFloat64(0,o),((r.getUint32(0)&jz)>>20)-zu}Z.getNormalBase2=Wz;function zz(o){let r=new DataView(new ArrayBuffer(8));r.setFloat64(0,o);let i=r.getUint32(0),c=r.getUint32(4);return(i&qz)*Math.pow(2,32)+c}Z.getSignificand=zz});var Po=S(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.nextGreaterSquare=qt.ldexp=void 0;function Jz(o,r){return o===0||o===Number.POSITIVE_INFINITY||o===Number.NEGATIVE_INFINITY||Number.isNaN(o)?o:o*Math.pow(2,r)}qt.ldexp=Jz;function Xz(o){return o--,o|=o>>1,o|=o>>2,o|=o>>4,o|=o>>8,o|=o>>16,o++,o}qt.nextGreaterSquare=Xz});var go=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.MappingError=void 0;var Xu=class extends Error{};Mo.MappingError=Xu});var fM=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ExponentMapping=void 0;var Wt=Ju(),$z=Po(),SM=go(),$u=class{constructor(r){this._shift=-r}mapToIndex(r){if(r<Wt.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let i=Wt.getNormalBase2(r),c=this._rightShift(Wt.getSignificand(r)-1,Wt.SIGNIFICAND_WIDTH);return i+c>>this._shift}lowerBoundary(r){let i=this._minNormalLowerBoundaryIndex();if(r<i)throw new SM.MappingError(`underflow: ${r} is < minimum lower boundary: ${i}`);let c=this._maxNormalLowerBoundaryIndex();if(r>c)throw new SM.MappingError(`overflow: ${r} is > maximum lower boundary: ${c}`);return $z.ldexp(1,r<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let r=Wt.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&r--,r}_maxNormalLowerBoundaryIndex(){return Wt.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(r,i){return Math.floor(r*Math.pow(2,-i))}};Lo.ExponentMapping=$u});var vM=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LogarithmMapping=void 0;var zt=Ju(),dM=Po(),AM=go(),Qu=class{constructor(r){this._scale=r,this._scaleFactor=dM.ldexp(Math.LOG2E,r),this._inverseFactor=dM.ldexp(Math.LN2,-r)}mapToIndex(r){if(r<=zt.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(zt.getSignificand(r)===0)return(zt.getNormalBase2(r)<<this._scale)-1;let i=Math.floor(Math.log(r)*this._scaleFactor),c=this._maxNormalLowerBoundaryIndex();return i>=c?c:i}lowerBoundary(r){let i=this._maxNormalLowerBoundaryIndex();if(r>=i){if(r===i)return 2*Math.exp((r-(1<<this._scale))/this._scaleFactor);throw new AM.MappingError(`overflow: ${r} is > maximum lower boundary: ${i}`)}let c=this._minNormalLowerBoundaryIndex();if(r<=c){if(r===c)return zt.MIN_VALUE;if(r===c-1)return Math.exp((r+(1<<this._scale))/this._scaleFactor)/2;throw new AM.MappingError(`overflow: ${r} is < minimum lower boundary: ${c}`)}return Math.exp(r*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return zt.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(zt.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};Io.LogarithmMapping=Qu});var hM=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.getMapping=void 0;var Qz=fM(),Zz=vM(),eJ=go(),OM=-10,mM=20,tJ=Array.from({length:31},(o,r)=>r>10?new Zz.LogarithmMapping(r-10):new Qz.ExponentMapping(r-10));function rJ(o){if(o>mM||o<OM)throw new eJ.MappingError(`expected scale >= ${OM} && <= ${mM}, got: ${o}`);return tJ[o+10]}Co.getMapping=rJ});var yM=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.ExponentialHistogramAggregator=Xt.ExponentialHistogramAccumulation=void 0;var nJ=Ft(),oJ=Yt(),iJ=(m(),N(y)),xo=De(),NM=TM(),RM=hM(),aJ=Po(),Jt=class o{constructor(r,i){this.low=r,this.high=i}static combine(r,i){return new o(Math.min(r.low,i.low),Math.max(r.high,i.high))}},uJ=20,sJ=160,Zu=2,bo=class o{constructor(r=r,i=sJ,c=!0,a=0,u=0,t=0,e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,s=new NM.Buckets,l=new NM.Buckets,E=(0,RM.getMapping)(uJ)){this.startTime=r,this._maxSize=i,this._recordMinMax=c,this._sum=a,this._count=u,this._zeroCount=t,this._min=e,this._max=n,this._positive=s,this._negative=l,this._mapping=E,this._maxSize<Zu&&(iJ.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Zu}`),this._maxSize=Zu)}record(r){this.updateByIncrement(r,1)}setStartTime(r){this.startTime=r}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(r,i){if(!Number.isNaN(r)){if(r>this._max&&(this._max=r),r<this._min&&(this._min=r),this._count+=i,r===0){this._zeroCount+=i;return}this._sum+=r*i,r>0?this._updateBuckets(this._positive,r,i):this._updateBuckets(this._negative,-r,i)}}merge(r){this._count===0?(this._min=r.min,this._max=r.max):r.count!==0&&(r.min<this.min&&(this._min=r.min),r.max>this.max&&(this._max=r.max)),this.startTime=r.startTime,this._sum+=r.sum,this._count+=r.count,this._zeroCount+=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._mergeBuckets(this.positive,r,r.positive,i),this._mergeBuckets(this.negative,r,r.negative,i)}diff(r){this._min=1/0,this._max=-1/0,this._sum-=r.sum,this._count-=r.count,this._zeroCount-=r.zeroCount;let i=this._minScale(r);this._downscale(this.scale-i),this._diffBuckets(this.positive,r,r.positive,i),this._diffBuckets(this.negative,r,r.negative,i)}clone(){return new o(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(r,i,c){let a=this._mapping.mapToIndex(i),u=!1,t=0,e=0;if(r.length===0?(r.indexStart=a,r.indexEnd=r.indexStart,r.indexBase=r.indexStart):a<r.indexStart&&r.indexEnd-a>=this._maxSize?(u=!0,e=a,t=r.indexEnd):a>r.indexEnd&&a-r.indexStart>=this._maxSize&&(u=!0,e=r.indexStart,t=a),u){let n=this._changeScale(t,e);this._downscale(n),a=this._mapping.mapToIndex(i)}this._incrementIndexBy(r,a,c)}_incrementIndexBy(r,i,c){if(c===0)return;if(r.length===0&&(r.indexStart=r.indexEnd=r.indexBase=i),i<r.indexStart){let u=r.indexEnd-i;u>=r.backing.length&&this._grow(r,u+1),r.indexStart=i}else if(i>r.indexEnd){let u=i-r.indexStart;u>=r.backing.length&&this._grow(r,u+1),r.indexEnd=i}let a=i-r.indexBase;a<0&&(a+=r.backing.length),r.incrementBucket(a,c)}_grow(r,i){let c=r.backing.length,a=r.indexBase-r.indexStart,u=c-a,t=(0,aJ.nextGreaterSquare)(i);t>this._maxSize&&(t=this._maxSize);let e=t-a;r.backing.growTo(t,u,e)}_changeScale(r,i){let c=0;for(;r-i>=this._maxSize;)r>>=1,i>>=1,c++;return c}_downscale(r){if(r===0)return;if(r<0)throw new Error(`impossible change of scale: ${this.scale}`);let i=this._mapping.scale-r;this._positive.downscale(r),this._negative.downscale(r),this._mapping=(0,RM.getMapping)(i)}_minScale(r){let i=Math.min(this.scale,r.scale),c=Jt.combine(this._highLowAtScale(this.positive,this.scale,i),this._highLowAtScale(r.positive,r.scale,i)),a=Jt.combine(this._highLowAtScale(this.negative,this.scale,i),this._highLowAtScale(r.negative,r.scale,i));return Math.min(i-this._changeScale(c.high,c.low),i-this._changeScale(a.high,a.low))}_highLowAtScale(r,i,c){if(r.length===0)return new Jt(0,-1);let a=i-c;return new Jt(r.indexStart>>a,r.indexEnd>>a)}_mergeBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++)this._incrementIndexBy(r,u+e>>t,c.at(e))}_diffBuckets(r,i,c,a){let u=c.offset,t=i.scale-a;for(let e=0;e<c.length;e++){let s=(u+e>>t)-r.indexBase;s<0&&(s+=r.backing.length),r.decrementBucket(s,c.at(e))}r.trim()}};Xt.ExponentialHistogramAccumulation=bo;var es=class{constructor(r,i){this._maxSize=r,this._recordMinMax=i,this.kind=nJ.AggregatorKind.EXPONENTIAL_HISTOGRAM}createAccumulation(r){return new bo(r,this._maxSize,this._recordMinMax)}merge(r,i){let c=i.clone();return c.merge(r),c}diff(r,i){let c=i.clone();return c.diff(r),c}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:oJ.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:c.map(([u,t])=>{let e=t.toPointValue(),n=r.type===xo.InstrumentType.GAUGE||r.type===xo.InstrumentType.UP_DOWN_COUNTER||r.type===xo.InstrumentType.OBSERVABLE_GAUGE||r.type===xo.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:u,startTime:t.startTime,endTime:a,value:{min:e.hasMinMax?e.min:void 0,max:e.hasMinMax?e.max:void 0,sum:n?void 0:e.sum,positive:{offset:e.positive.offset,bucketCounts:e.positive.bucketCounts},negative:{offset:e.negative.offset,bucketCounts:e.negative.bucketCounts},count:e.count,scale:e.scale,zeroCount:e.zeroCount}}})}}};Xt.ExponentialHistogramAggregator=es});var PM=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.LastValueAggregator=Qt.LastValueAccumulation=void 0;var cJ=Ft(),xr=x(),lJ=Yt(),$t=class{constructor(r,i=0,c=[0,0]){this.startTime=r,this._current=i,this.sampleTime=c}record(r){this._current=r,this.sampleTime=(0,xr.millisToHrTime)(Date.now())}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Qt.LastValueAccumulation=$t;var ts=class{constructor(){this.kind=cJ.AggregatorKind.LAST_VALUE}createAccumulation(r){return new $t(r)}merge(r,i){let c=(0,xr.hrTimeToMicroseconds)(i.sampleTime)>=(0,xr.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new $t(r.startTime,c.toPointValue(),c.sampleTime)}diff(r,i){let c=(0,xr.hrTimeToMicroseconds)(i.sampleTime)>=(0,xr.hrTimeToMicroseconds)(r.sampleTime)?i:r;return new $t(i.startTime,c.toPointValue(),c.sampleTime)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:lJ.DataPointType.GAUGE,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()}))}}};Qt.LastValueAggregator=ts});var MM=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.SumAggregator=Zt.SumAccumulation=void 0;var pJ=Ft(),_J=Yt(),We=class{constructor(r,i,c=0,a=!1){this.startTime=r,this.monotonic=i,this._current=c,this.reset=a}record(r){this.monotonic&&r<0||(this._current+=r)}setStartTime(r){this.startTime=r}toPointValue(){return this._current}};Zt.SumAccumulation=We;var rs=class{constructor(r){this.monotonic=r,this.kind=pJ.AggregatorKind.SUM}createAccumulation(r){return new We(r,this.monotonic)}merge(r,i){let c=r.toPointValue(),a=i.toPointValue();return i.reset?new We(i.startTime,this.monotonic,a,i.reset):new We(r.startTime,this.monotonic,c+a)}diff(r,i){let c=r.toPointValue(),a=i.toPointValue();return this.monotonic&&c>a?new We(i.startTime,this.monotonic,a,!0):new We(i.startTime,this.monotonic,a-c)}toMetricData(r,i,c,a){return{descriptor:r,aggregationTemporality:i,dataPointType:_J.DataPointType.SUM,dataPoints:c.map(([u,t])=>({attributes:u,startTime:t.startTime,endTime:a,value:t.toPointValue()})),isMonotonic:this.monotonic}}};Zt.SumAggregator=rs});var xM=S(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.SumAggregator=G.SumAccumulation=G.LastValueAggregator=G.LastValueAccumulation=G.ExponentialHistogramAggregator=G.ExponentialHistogramAccumulation=G.HistogramAggregator=G.HistogramAccumulation=G.DropAggregator=void 0;var EJ=lM();Object.defineProperty(G,"DropAggregator",{enumerable:!0,get:function(){return EJ.DropAggregator}});var gM=EM();Object.defineProperty(G,"HistogramAccumulation",{enumerable:!0,get:function(){return gM.HistogramAccumulation}});Object.defineProperty(G,"HistogramAggregator",{enumerable:!0,get:function(){return gM.HistogramAggregator}});var LM=yM();Object.defineProperty(G,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return LM.ExponentialHistogramAccumulation}});Object.defineProperty(G,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return LM.ExponentialHistogramAggregator}});var IM=PM();Object.defineProperty(G,"LastValueAccumulation",{enumerable:!0,get:function(){return IM.LastValueAccumulation}});Object.defineProperty(G,"LastValueAggregator",{enumerable:!0,get:function(){return IM.LastValueAggregator}});var CM=MM();Object.defineProperty(G,"SumAccumulation",{enumerable:!0,get:function(){return CM.SumAccumulation}});Object.defineProperty(G,"SumAggregator",{enumerable:!0,get:function(){return CM.SumAggregator}})});var wo=S(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.DefaultAggregation=K.ExponentialHistogramAggregation=K.ExplicitBucketHistogramAggregation=K.HistogramAggregation=K.LastValueAggregation=K.SumAggregation=K.DropAggregation=K.Aggregation=void 0;var TJ=(m(),N(y)),ct=xM(),ye=De(),Pe=class{static Drop(){return bM}static Sum(){return UM}static LastValue(){return DM}static Histogram(){return VM}static ExponentialHistogram(){return SJ}static Default(){return fJ}};K.Aggregation=Pe;var br=class o extends Pe{createAggregator(r){return o.DEFAULT_INSTANCE}};K.DropAggregation=br;br.DEFAULT_INSTANCE=new ct.DropAggregator;var er=class o extends Pe{createAggregator(r){switch(r.type){case ye.InstrumentType.COUNTER:case ye.InstrumentType.OBSERVABLE_COUNTER:case ye.InstrumentType.HISTOGRAM:return o.MONOTONIC_INSTANCE;default:return o.NON_MONOTONIC_INSTANCE}}};K.SumAggregation=er;er.MONOTONIC_INSTANCE=new ct.SumAggregator(!0);er.NON_MONOTONIC_INSTANCE=new ct.SumAggregator(!1);var Ur=class o extends Pe{createAggregator(r){return o.DEFAULT_INSTANCE}};K.LastValueAggregation=Ur;Ur.DEFAULT_INSTANCE=new ct.LastValueAggregator;var Dr=class o extends Pe{createAggregator(r){return o.DEFAULT_INSTANCE}};K.HistogramAggregation=Dr;Dr.DEFAULT_INSTANCE=new ct.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);var Uo=class extends Pe{constructor(r,i=!0){if(super(),this._recordMinMax=i,r==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");r=r.concat(),r=r.sort((u,t)=>u-t);let c=r.lastIndexOf(-1/0),a=r.indexOf(1/0);a===-1&&(a=void 0),this._boundaries=r.slice(c+1,a)}createAggregator(r){return new ct.HistogramAggregator(this._boundaries,this._recordMinMax)}};K.ExplicitBucketHistogramAggregation=Uo;var Do=class extends Pe{constructor(r=160,i=!0){super(),this._maxSize=r,this._recordMinMax=i}createAggregator(r){return new ct.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};K.ExponentialHistogramAggregation=Do;var Vo=class extends Pe{_resolve(r){switch(r.type){case ye.InstrumentType.COUNTER:case ye.InstrumentType.UP_DOWN_COUNTER:case ye.InstrumentType.OBSERVABLE_COUNTER:case ye.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return UM;case ye.InstrumentType.GAUGE:case ye.InstrumentType.OBSERVABLE_GAUGE:return DM;case ye.InstrumentType.HISTOGRAM:return r.advice.explicitBucketBoundaries?new Uo(r.advice.explicitBucketBoundaries):VM}return TJ.diag.warn(`Unable to recognize instrument type: ${r.type}`),bM}createAggregator(r){return this._resolve(r).createAggregator(r)}};K.DefaultAggregation=Vo;var bM=new br,UM=new er,DM=new Ur,VM=new Dr,SJ=new Do,fJ=new Vo});var ns=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=tr.DEFAULT_AGGREGATION_SELECTOR=void 0;var dJ=wo(),AJ=mo(),vJ=o=>dJ.Aggregation.Default();tr.DEFAULT_AGGREGATION_SELECTOR=vJ;var OJ=o=>AJ.AggregationTemporality.CUMULATIVE;tr.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=OJ});var is=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.MetricReader=void 0;var wM=(m(),N(y)),Bo=Te(),BM=ns(),os=class{constructor(r){var i,c,a;this._shutdown=!1,this._aggregationSelector=(i=r?.aggregationSelector)!==null&&i!==void 0?i:BM.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=(c=r?.aggregationTemporalitySelector)!==null&&c!==void 0?c:BM.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=(a=r?.metricProducers)!==null&&a!==void 0?a:[],this._cardinalitySelector=r?.cardinalitySelector}setMetricProducer(r){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=r,this.onInitialized()}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}selectCardinalityLimit(r){return this._cardinalitySelector?this._cardinalitySelector(r):2e3}onInitialized(){}async collect(r){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[i,...c]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:r?.timeoutMillis}),...this._metricProducers.map(e=>e.collect({timeoutMillis:r?.timeoutMillis}))]),a=i.errors.concat((0,Bo.FlatMap)(c,e=>e.errors)),u=i.resourceMetrics.resource,t=i.resourceMetrics.scopeMetrics.concat((0,Bo.FlatMap)(c,e=>e.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:u,scopeMetrics:t},errors:a}}async shutdown(r){if(this._shutdown){wM.diag.error("Cannot call shutdown twice.");return}r?.timeoutMillis==null?await this.onShutdown():await(0,Bo.callWithTimeout)(this.onShutdown(),r.timeoutMillis),this._shutdown=!0}async forceFlush(r){if(this._shutdown){wM.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(r?.timeoutMillis==null){await this.onForceFlush();return}await(0,Bo.callWithTimeout)(this.onForceFlush(),r.timeoutMillis)}};Go.MetricReader=os});var HM=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.PeriodicExportingMetricReader=void 0;var as=(m(),N(y)),Vr=x(),mJ=is(),GM=Te(),us=class extends mJ.MetricReader{constructor(r){var i,c,a,u;if(super({aggregationSelector:(i=r.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(r.exporter),aggregationTemporalitySelector:(c=r.exporter.selectAggregationTemporality)===null||c===void 0?void 0:c.bind(r.exporter),metricProducers:r.metricProducers}),r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(r.exportTimeoutMillis!==void 0&&r.exportIntervalMillis!==void 0&&r.exportIntervalMillis<r.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=(a=r.exportIntervalMillis)!==null&&a!==void 0?a:6e4,this._exportTimeout=(u=r.exportTimeoutMillis)!==null&&u!==void 0?u:3e4,this._exporter=r.exporter}async _runOnce(){try{await(0,GM.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(r){if(r instanceof GM.TimeoutError){as.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,Vr.globalErrorHandler)(r)}}async _doRun(){var r,i;let{resourceMetrics:c,errors:a}=await this.collect({timeoutMillis:this._exportTimeout});if(a.length>0&&as.diag.error("PeriodicExportingMetricReader: metrics collection errors",...a),c.resource.asyncAttributesPending)try{await((i=(r=c.resource).waitForAsyncAttributes)===null||i===void 0?void 0:i.call(r))}catch(t){as.diag.debug("Error while resolving async portion of resource: ",t),(0,Vr.globalErrorHandler)(t)}if(c.scopeMetrics.length===0)return;let u=await Vr.internal._export(this._exporter,c);if(u.code!==Vr.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${u.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,Vr.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};Ho.PeriodicExportingMetricReader=us});var YM=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InMemoryMetricExporter=void 0;var kM=x(),ss=class{constructor(r){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=r}export(r,i){if(this._shutdown){setTimeout(()=>i({code:kM.ExportResultCode.FAILED}),0);return}this._metrics.push(r),setTimeout(()=>i({code:kM.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(r){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};ko.InMemoryMetricExporter=ss});var KM=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.ConsoleMetricExporter=void 0;var FM=x(),hJ=ns(),cs=class o{constructor(r){var i;this._shutdown=!1,this._temporalitySelector=(i=r?.temporalitySelector)!==null&&i!==void 0?i:hJ.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(r,i){if(this._shutdown){setImmediate(i,{code:FM.ExportResultCode.FAILED});return}return o._sendMetrics(r,i)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(r){return this._temporalitySelector(r)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(r,i){for(let c of r.scopeMetrics)for(let a of c.metrics)console.dir({descriptor:a.descriptor,dataPointType:a.dataPointType,dataPoints:a.dataPoints},{depth:null});i({code:FM.ExportResultCode.SUCCESS})}};Yo.ConsoleMetricExporter=cs});var jM=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ViewRegistry=void 0;var ls=class{constructor(){this._registeredViews=[]}addView(r){this._registeredViews.push(r)}findViews(r,i){return this._registeredViews.filter(a=>this._matchInstrument(a.instrumentSelector,r)&&this._matchMeter(a.meterSelector,i))}_matchInstrument(r,i){return(r.getType()===void 0||i.type===r.getType())&&r.getNameFilter().match(i.name)&&r.getUnitFilter().match(i.unit)}_matchMeter(r,i){return r.getNameFilter().match(i.name)&&(i.version===void 0||r.getVersionFilter().match(i.version))&&(i.schemaUrl===void 0||r.getSchemaUrlFilter().match(i.schemaUrl))}};Fo.ViewRegistry=ls});var Ko=S(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.isObservableInstrument=b.ObservableUpDownCounterInstrument=b.ObservableGaugeInstrument=b.ObservableCounterInstrument=b.ObservableInstrument=b.HistogramInstrument=b.GaugeInstrument=b.CounterInstrument=b.UpDownCounterInstrument=b.SyncInstrument=void 0;var rr=(m(),N(y)),NJ=x(),lt=class{constructor(r,i){this._writableMetricStorage=r,this._descriptor=i}_record(r,i={},c=rr.context.active()){if(typeof r!="number"){rr.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${r}`);return}this._descriptor.valueType===rr.ValueType.INT&&!Number.isInteger(r)&&(rr.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._writableMetricStorage.record(r,i,c,(0,NJ.millisToHrTime)(Date.now()))}};b.SyncInstrument=lt;var ps=class extends lt{add(r,i,c){this._record(r,i,c)}};b.UpDownCounterInstrument=ps;var _s=class extends lt{add(r,i,c){if(r<0){rr.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.CounterInstrument=_s;var Es=class extends lt{record(r,i,c){this._record(r,i,c)}};b.GaugeInstrument=Es;var Ts=class extends lt{record(r,i,c){if(r<0){rr.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${r}`);return}this._record(r,i,c)}};b.HistogramInstrument=Ts;var pt=class{constructor(r,i,c){this._observableRegistry=c,this._descriptor=r,this._metricStorages=i}addCallback(r){this._observableRegistry.addCallback(r,this)}removeCallback(r){this._observableRegistry.removeCallback(r,this)}};b.ObservableInstrument=pt;var Ss=class extends pt{};b.ObservableCounterInstrument=Ss;var fs=class extends pt{};b.ObservableGaugeInstrument=fs;var ds=class extends pt{};b.ObservableUpDownCounterInstrument=ds;function RJ(o){return o instanceof pt}b.isObservableInstrument=RJ});var qM=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.Meter=void 0;var ee=De(),_t=Ko(),As=class{constructor(r){this._meterSharedState=r}createGauge(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.GAUGE,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.GaugeInstrument(a,c)}createHistogram(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.HISTOGRAM,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.HistogramInstrument(a,c)}createCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.CounterInstrument(a,c)}createUpDownCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.UP_DOWN_COUNTER,i),a=this._meterSharedState.registerMetricStorage(c);return new _t.UpDownCounterInstrument(a,c)}createObservableGauge(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.OBSERVABLE_GAUGE,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new _t.ObservableGaugeInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.OBSERVABLE_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new _t.ObservableCounterInstrument(c,a,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(r,i){let c=(0,ee.createInstrumentDescriptor)(r,ee.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,i),a=this._meterSharedState.registerAsyncMetricStorage(c);return new _t.ObservableUpDownCounterInstrument(c,a,this._meterSharedState.observableRegistry)}addBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.addBatchCallback(r,i)}removeBatchObservableCallback(r,i){this._meterSharedState.observableRegistry.removeBatchCallback(r,i)}};jo.Meter=As});var Os=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.MetricStorage=void 0;var yJ=De(),vs=class{constructor(r){this._instrumentDescriptor=r}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(r){this._instrumentDescriptor=(0,yJ.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:r,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};qo.MetricStorage=vs});var wr=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.AttributeHashMap=nr.HashMap=void 0;var PJ=Te(),Wo=class{constructor(r){this._hash=r,this._valueMap=new Map,this._keyMap=new Map}get(r,i){return i??(i=this._hash(r)),this._valueMap.get(i)}getOrDefault(r,i){let c=this._hash(r);if(this._valueMap.has(c))return this._valueMap.get(c);let a=i();return this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,a),a}set(r,i,c){c??(c=this._hash(r)),this._keyMap.has(c)||this._keyMap.set(c,r),this._valueMap.set(c,i)}has(r,i){return i??(i=this._hash(r)),this._valueMap.has(i)}*keys(){let r=this._keyMap.entries(),i=r.next();for(;i.done!==!0;)yield[i.value[1],i.value[0]],i=r.next()}*entries(){let r=this._valueMap.entries(),i=r.next();for(;i.done!==!0;)yield[this._keyMap.get(i.value[0]),i.value[1],i.value[0]],i=r.next()}get size(){return this._valueMap.size}};nr.HashMap=Wo;var ms=class extends Wo{constructor(){super(PJ.hashAttributes)}};nr.AttributeHashMap=ms});var Rs=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeltaMetricProcessor=void 0;var MJ=Te(),hs=wr(),Ns=class{constructor(r,i){this._aggregator=r,this._activeCollectionStorage=new hs.AttributeHashMap,this._cumulativeMemoStorage=new hs.AttributeHashMap,this._overflowAttributes={"otel.metric.overflow":!0},this._cardinalityLimit=(i??2e3)-1,this._overflowHashCode=(0,MJ.hashAttributes)(this._overflowAttributes)}record(r,i,c,a){let u=this._activeCollectionStorage.get(i);if(!u){if(this._activeCollectionStorage.size>=this._cardinalityLimit){let t=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(a));t?.record(r);return}u=this._aggregator.createAccumulation(a),this._activeCollectionStorage.set(i,u)}u?.record(r)}batchCumulate(r,i){Array.from(r.entries()).forEach(([c,a,u])=>{let t=this._aggregator.createAccumulation(i);t?.record(a);let e=t;if(this._cumulativeMemoStorage.has(c,u)){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(c=this._overflowAttributes,u=this._overflowHashCode,this._cumulativeMemoStorage.has(c,u))){let n=this._cumulativeMemoStorage.get(c,u);e=this._aggregator.diff(n,t)}if(this._activeCollectionStorage.has(c,u)){let n=this._activeCollectionStorage.get(c,u);e=this._aggregator.merge(n,e)}this._cumulativeMemoStorage.set(c,t,u),this._activeCollectionStorage.set(c,e,u)})}collect(){let r=this._activeCollectionStorage;return this._activeCollectionStorage=new hs.AttributeHashMap,r}};zo.DeltaMetricProcessor=Ns});var Ps=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.TemporalMetricProcessor=void 0;var gJ=mo(),LJ=wr(),ys=class o{constructor(r,i){this._aggregator=r,this._unreportedAccumulations=new Map,this._reportHistory=new Map,i.forEach(c=>{this._unreportedAccumulations.set(c,[])})}buildMetrics(r,i,c,a){this._stashAccumulations(c);let u=this._getMergedUnreportedAccumulations(r),t=u,e;if(this._reportHistory.has(r)){let s=this._reportHistory.get(r),l=s.collectionTime;e=s.aggregationTemporality,e===gJ.AggregationTemporality.CUMULATIVE?t=o.merge(s.accumulations,u,this._aggregator):t=o.calibrateStartTime(s.accumulations,u,l)}else e=r.selectAggregationTemporality(i.type);this._reportHistory.set(r,{accumulations:t,collectionTime:a,aggregationTemporality:e});let n=IJ(t);if(n.length!==0)return this._aggregator.toMetricData(i,e,n,a)}_stashAccumulations(r){let i=this._unreportedAccumulations.keys();for(let c of i){let a=this._unreportedAccumulations.get(c);a===void 0&&(a=[],this._unreportedAccumulations.set(c,a)),a.push(r)}}_getMergedUnreportedAccumulations(r){let i=new LJ.AttributeHashMap,c=this._unreportedAccumulations.get(r);if(this._unreportedAccumulations.set(r,[]),c===void 0)return i;for(let a of c)i=o.merge(i,a,this._aggregator);return i}static merge(r,i,c){let a=r,u=i.entries(),t=u.next();for(;t.done!==!0;){let[e,n,s]=t.value;if(r.has(e,s)){let l=r.get(e,s),E=c.merge(l,n);a.set(e,E,s)}else a.set(e,n,s);t=u.next()}return a}static calibrateStartTime(r,i,c){for(let[a,u]of r.keys()){let t=i.get(a,u);t?.setStartTime(c)}return i}};Jo.TemporalMetricProcessor=ys;function IJ(o){return Array.from(o.entries())}});var WM=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.AsyncMetricStorage=void 0;var CJ=Os(),xJ=Rs(),bJ=Ps(),UJ=wr(),Ms=class extends CJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new xJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new bJ.TemporalMetricProcessor(i,a)}record(r,i){let c=new UJ.AttributeHashMap;Array.from(r.entries()).forEach(([a,u])=>{c.set(this._attributesProcessor.process(a),u)}),this._deltaMetricStorage.batchCumulate(c,i)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};Xo.AsyncMetricStorage=Ms});var QM=S(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.getConflictResolutionRecipe=te.getDescriptionResolutionRecipe=te.getTypeConflictResolutionRecipe=te.getUnitConflictResolutionRecipe=te.getValueTypeConflictResolutionRecipe=te.getIncompatibilityDetails=void 0;function DJ(o,r){let i="";return o.unit!==r.unit&&(i+=` - Unit '${o.unit}' does not match '${r.unit}'
4
4
  `),o.type!==r.type&&(i+=` - Type '${o.type}' does not match '${r.type}'
5
5
  `),o.valueType!==r.valueType&&(i+=` - Value Type '${o.valueType}' does not match '${r.valueType}'
6
6
  `),o.description!==r.description&&(i+=` - Description '${o.description}' does not match '${r.description}'
7
- `),i}te.getIncompatibilityDetails=UJ;function zM(o,r){return` - use valueType '${o.valueType}' on instrument creation or use an instrument name other than '${r.name}'`}te.getValueTypeConflictResolutionRecipe=zM;function JM(o,r){return` - use unit '${o.unit}' on instrument creation or use an instrument name other than '${r.name}'`}te.getUnitConflictResolutionRecipe=JM;function XM(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'`}te.getTypeConflictResolutionRecipe=XM;function $M(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'
7
+ `),i}te.getIncompatibilityDetails=DJ;function zM(o,r){return` - use valueType '${o.valueType}' on instrument creation or use an instrument name other than '${r.name}'`}te.getValueTypeConflictResolutionRecipe=zM;function JM(o,r){return` - use unit '${o.unit}' on instrument creation or use an instrument name other than '${r.name}'`}te.getUnitConflictResolutionRecipe=JM;function XM(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'`}te.getTypeConflictResolutionRecipe=XM;function $M(o,r){let i={name:r.name,type:r.type,unit:r.unit},c=JSON.stringify(i);return` - create a new view with a name other than '${o.name}' and InstrumentSelector '${c}'
8
8
  - OR - create a new view with the name ${o.name} and description '${o.description}' and InstrumentSelector ${c}
9
- - OR - create a new view with the name ${r.name} and description '${o.description}' and InstrumentSelector ${c}`}te.getDescriptionResolutionRecipe=$M;function DJ(o,r){return o.valueType!==r.valueType?zM(o,r):o.unit!==r.unit?JM(o,r):o.type!==r.type?XM(o,r):o.description!==r.description?$M(o,r):""}te.getConflictResolutionRecipe=DJ});var eg=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.MetricStorageRegistry=void 0;var VJ=De(),ZM=(m(),N(y)),$o=QM(),gs=class o{constructor(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}static create(){return new o}getStorages(r){let i=[];for(let a of this._sharedRegistry.values())i=i.concat(a);let c=this._perCollectorRegistry.get(r);if(c!=null)for(let a of c.values())i=i.concat(a);return i}register(r){this._registerStorage(r,this._sharedRegistry)}registerForCollector(r,i){let c=this._perCollectorRegistry.get(r);c==null&&(c=new Map,this._perCollectorRegistry.set(r,c)),this._registerStorage(i,c)}findOrUpdateCompatibleStorage(r){let i=this._sharedRegistry.get(r.name);return i===void 0?null:this._findOrUpdateCompatibleStorage(r,i)}findOrUpdateCompatibleCollectorStorage(r,i){let c=this._perCollectorRegistry.get(r);if(c===void 0)return null;let a=c.get(i.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(i,a)}_registerStorage(r,i){let c=r.getInstrumentDescriptor(),a=i.get(c.name);if(a===void 0){i.set(c.name,[r]);return}a.push(r)}_findOrUpdateCompatibleStorage(r,i){let c=null;for(let a of i){let u=a.getInstrumentDescriptor();(0,VJ.isDescriptorCompatibleWith)(u,r)?(u.description!==r.description&&(r.description.length>u.description.length&&a.updateDescription(r.description),ZM.diag.warn("A view or instrument with the name ",r.name,` has already been registered, but has a different description and is incompatible with another registered view.
9
+ - OR - create a new view with the name ${r.name} and description '${o.description}' and InstrumentSelector ${c}`}te.getDescriptionResolutionRecipe=$M;function VJ(o,r){return o.valueType!==r.valueType?zM(o,r):o.unit!==r.unit?JM(o,r):o.type!==r.type?XM(o,r):o.description!==r.description?$M(o,r):""}te.getConflictResolutionRecipe=VJ});var eg=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.MetricStorageRegistry=void 0;var wJ=De(),ZM=(m(),N(y)),$o=QM(),gs=class o{constructor(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}static create(){return new o}getStorages(r){let i=[];for(let a of this._sharedRegistry.values())i=i.concat(a);let c=this._perCollectorRegistry.get(r);if(c!=null)for(let a of c.values())i=i.concat(a);return i}register(r){this._registerStorage(r,this._sharedRegistry)}registerForCollector(r,i){let c=this._perCollectorRegistry.get(r);c==null&&(c=new Map,this._perCollectorRegistry.set(r,c)),this._registerStorage(i,c)}findOrUpdateCompatibleStorage(r){let i=this._sharedRegistry.get(r.name);return i===void 0?null:this._findOrUpdateCompatibleStorage(r,i)}findOrUpdateCompatibleCollectorStorage(r,i){let c=this._perCollectorRegistry.get(r);if(c===void 0)return null;let a=c.get(i.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(i,a)}_registerStorage(r,i){let c=r.getInstrumentDescriptor(),a=i.get(c.name);if(a===void 0){i.set(c.name,[r]);return}a.push(r)}_findOrUpdateCompatibleStorage(r,i){let c=null;for(let a of i){let u=a.getInstrumentDescriptor();(0,wJ.isDescriptorCompatibleWith)(u,r)?(u.description!==r.description&&(r.description.length>u.description.length&&a.updateDescription(r.description),ZM.diag.warn("A view or instrument with the name ",r.name,` has already been registered, but has a different description and is incompatible with another registered view.
10
10
  `,`Details:
11
11
  `,(0,$o.getIncompatibilityDetails)(u,r),`The longer description will be used.
12
12
  To resolve the conflict:`,(0,$o.getConflictResolutionRecipe)(u,r))),c=a):ZM.diag.warn("A view or instrument with the name ",r.name,` has already been registered and is incompatible with another registered view.
13
13
  `,`Details:
14
14
  `,(0,$o.getIncompatibilityDetails)(u,r),`To resolve the conflict:
15
- `,(0,$o.getConflictResolutionRecipe)(u,r))}return c}};Qo.MetricStorageRegistry=gs});var tg=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.MultiMetricStorage=void 0;var Ls=class{constructor(r){this._backingStorages=r}record(r,i,c,a){this._backingStorages.forEach(u=>{u.record(r,i,c,a)})}};Zo.MultiMetricStorage=Ls});var ng=S(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.BatchObservableResultImpl=ir.ObservableResultImpl=void 0;var or=(m(),N(y)),rg=wr(),wJ=Ko(),Is=class{constructor(r,i){this._instrumentName=r,this._valueType=i,this._buffer=new rg.AttributeHashMap}observe(r,i={}){if(typeof r!="number"){or.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${r}`);return}this._valueType===or.ValueType.INT&&!Number.isInteger(r)&&(or.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._buffer.set(i,r)}};ir.ObservableResultImpl=Is;var Cs=class{constructor(){this._buffer=new Map}observe(r,i,c={}){if(!(0,wJ.isObservableInstrument)(r))return;let a=this._buffer.get(r);if(a==null&&(a=new rg.AttributeHashMap,this._buffer.set(r,a)),typeof i!="number"){or.diag.warn(`non-number value provided to metric ${r._descriptor.name}: ${i}`);return}r._descriptor.valueType===or.ValueType.INT&&!Number.isInteger(i)&&(or.diag.warn(`INT value type cannot accept a floating-point value for ${r._descriptor.name}, ignoring the fractional digits.`),i=Math.trunc(i),!Number.isInteger(i))||a.set(c,i)}};ir.BatchObservableResultImpl=Cs});var ag=S(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.ObservableRegistry=void 0;var BJ=(m(),N(y)),og=Ko(),ig=ng(),Br=Te(),xs=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(r,i){this._findCallback(r,i)>=0||this._callbacks.push({callback:r,instrument:i})}removeCallback(r,i){let c=this._findCallback(r,i);c<0||this._callbacks.splice(c,1)}addBatchCallback(r,i){let c=new Set(i.filter(og.isObservableInstrument));if(c.size===0){BJ.diag.error("BatchObservableCallback is not associated with valid instruments",i);return}this._findBatchCallback(r,c)>=0||this._batchCallbacks.push({callback:r,instruments:c})}removeBatchCallback(r,i){let c=new Set(i.filter(og.isObservableInstrument)),a=this._findBatchCallback(r,c);a<0||this._batchCallbacks.splice(a,1)}async observe(r,i){let c=this._observeCallbacks(r,i),a=this._observeBatchCallbacks(r,i);return(await(0,Br.PromiseAllSettled)([...c,...a])).filter(Br.isPromiseAllSettledRejectionResult).map(e=>e.reason)}_observeCallbacks(r,i){return this._callbacks.map(async({callback:c,instrument:a})=>{let u=new ig.ObservableResultImpl(a._descriptor.name,a._descriptor.valueType),t=Promise.resolve(c(u));i!=null&&(t=(0,Br.callWithTimeout)(t,i)),await t,a._metricStorages.forEach(e=>{e.record(u._buffer,r)})})}_observeBatchCallbacks(r,i){return this._batchCallbacks.map(async({callback:c,instruments:a})=>{let u=new ig.BatchObservableResultImpl,t=Promise.resolve(c(u));i!=null&&(t=(0,Br.callWithTimeout)(t,i)),await t,a.forEach(e=>{let n=u._buffer.get(e);n!=null&&e._metricStorages.forEach(s=>{s.record(n,r)})})})}_findCallback(r,i){return this._callbacks.findIndex(c=>c.callback===r&&c.instrument===i)}_findBatchCallback(r,i){return this._batchCallbacks.findIndex(c=>c.callback===r&&(0,Br.setEquals)(c.instruments,i))}};ei.ObservableRegistry=xs});var ug=S(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.SyncMetricStorage=void 0;var GJ=Os(),HJ=Rs(),kJ=Ps(),bs=class extends GJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new HJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new kJ.TemporalMetricProcessor(i,a)}record(r,i,c,a){i=this._attributesProcessor.process(i,c),this._deltaMetricStorage.record(r,i,c,a)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};ti.SyncMetricStorage=bs});var Ds=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.FilteringAttributesProcessor=ze.NoopAttributesProcessor=ze.AttributesProcessor=void 0;var Gr=class{static Noop(){return YJ}};ze.AttributesProcessor=Gr;var ri=class extends Gr{process(r,i){return r}};ze.NoopAttributesProcessor=ri;var Us=class extends Gr{constructor(r){super(),this._allowedAttributeNames=r}process(r,i){let c={};return Object.keys(r).filter(a=>this._allowedAttributeNames.includes(a)).forEach(a=>c[a]=r[a]),c}};ze.FilteringAttributesProcessor=Us;var YJ=new ri});var sg=S(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.MeterSharedState=void 0;var FJ=De(),KJ=qM(),jJ=Te(),qJ=WM(),WJ=eg(),zJ=tg(),JJ=ag(),XJ=ug(),$J=Ds(),Vs=class{constructor(r,i){this._meterProviderSharedState=r,this._instrumentationScope=i,this.metricStorageRegistry=new WJ.MetricStorageRegistry,this.observableRegistry=new JJ.ObservableRegistry,this.meter=new KJ.Meter(this)}registerMetricStorage(r){let i=this._registerMetricStorage(r,XJ.SyncMetricStorage);return i.length===1?i[0]:new zJ.MultiMetricStorage(i)}registerAsyncMetricStorage(r){return this._registerMetricStorage(r,qJ.AsyncMetricStorage)}async collect(r,i,c){let a=await this.observableRegistry.observe(i,c?.timeoutMillis),u=this.metricStorageRegistry.getStorages(r);if(u.length===0)return null;let t=u.map(e=>e.collect(r,i)).filter(jJ.isNotNullish);return t.length===0?{errors:a}:{scopeMetrics:{scope:this._instrumentationScope,metrics:t},errors:a}}_registerMetricStorage(r,i){let a=this._meterProviderSharedState.viewRegistry.findViews(r,this._instrumentationScope).map(u=>{let t=(0,FJ.createInstrumentDescriptorWithView)(u,r),e=this.metricStorageRegistry.findOrUpdateCompatibleStorage(t);if(e!=null)return e;let n=u.aggregation.createAggregator(t),s=new i(t,n,u.attributesProcessor,this._meterProviderSharedState.metricCollectors,u.aggregationCardinalityLimit);return this.metricStorageRegistry.register(s),s});if(a.length===0){let t=this._meterProviderSharedState.selectAggregations(r.type).map(([e,n])=>{let s=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(e,r);if(s!=null)return s;let l=n.createAggregator(r),E=e.selectCardinalityLimit(r.type),O=new i(r,l,$J.AttributesProcessor.Noop(),[e],E);return this.metricStorageRegistry.registerForCollector(e,O),O});a=a.concat(t)}return a}};ni.MeterSharedState=Vs});var cg=S(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.MeterProviderSharedState=void 0;var QJ=Te(),ZJ=jM(),eX=sg(),ws=class{constructor(r){this.resource=r,this.viewRegistry=new ZJ.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(r){let i=(0,QJ.instrumentationScopeId)(r),c=this.meterSharedStates.get(i);return c==null&&(c=new eX.MeterSharedState(this,r),this.meterSharedStates.set(i,c)),c}selectAggregations(r){let i=[];for(let c of this.metricCollectors)i.push([c,c.selectAggregation(r)]);return i}};oi.MeterProviderSharedState=ws});var lg=S(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.MetricCollector=void 0;var tX=x(),Bs=class{constructor(r,i){this._sharedState=r,this._metricReader=i}async collect(r){let i=(0,tX.millisToHrTime)(Date.now()),c=[],a=[],u=Array.from(this._sharedState.meterSharedStates.values()).map(async t=>{let e=await t.collect(this,i,r);e?.scopeMetrics!=null&&c.push(e.scopeMetrics),e?.errors!=null&&a.push(...e.errors)});return await Promise.all(u),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:c},errors:a}}async forceFlush(r){await this._metricReader.forceFlush(r)}async shutdown(r){await this._metricReader.shutdown(r)}selectAggregationTemporality(r){return this._metricReader.selectAggregationTemporality(r)}selectAggregation(r){return this._metricReader.selectAggregation(r)}selectCardinalityLimit(r){var i,c,a;return(a=(c=(i=this._metricReader).selectCardinalityLimit)===null||c===void 0?void 0:c.call(i,r))!==null&&a!==void 0?a:2e3}};ii.MetricCollector=Bs});var _g=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.MeterProvider=void 0;var ai=(m(),N(y)),pg=To(),rX=cg(),nX=lg();function oX(o,r){let i=r??pg.Resource.empty();return o?pg.Resource.default().merge(i):i}var Gs=class{constructor(r){var i;if(this._shutdown=!1,this._sharedState=new rX.MeterProviderSharedState(oX((i=r?.mergeResourceWithDefaults)!==null&&i!==void 0?i:!0,r?.resource)),r?.views!=null&&r.views.length>0)for(let c of r.views)this._sharedState.viewRegistry.addView(c);if(r?.readers!=null&&r.readers.length>0)for(let c of r.readers)this.addMetricReader(c)}getMeter(r,i="",c={}){return this._shutdown?(ai.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,ai.createNoopMeter)()):this._sharedState.getMeterSharedState({name:r,version:i,schemaUrl:c.schemaUrl}).meter}addMetricReader(r){let i=new nX.MetricCollector(this._sharedState,r);r.setMetricProducer(i),this._sharedState.metricCollectors.push(i)}async shutdown(r){if(this._shutdown){ai.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(i=>i.shutdown(r)))}async forceFlush(r){if(this._shutdown){ai.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(i=>i.forceFlush(r)))}};ui.MeterProvider=Gs});var si=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.ExactPredicate=ar.PatternPredicate=void 0;var iX=/[\^$\\.+?()[\]{}|]/g,Hs=class o{constructor(r){r==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(o.escapePattern(r)))}match(r){return this._matchAll?!0:this._regexp.test(r)}static escapePattern(r){return`^${r.replace(iX,"\\$&").replace("*",".*")}$`}static hasWildcard(r){return r.includes("*")}};ar.PatternPredicate=Hs;var ks=class{constructor(r){this._matchAll=r===void 0,this._pattern=r}match(r){return!!(this._matchAll||r===this._pattern)}};ar.ExactPredicate=ks});var Tg=S(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.InstrumentSelector=void 0;var Eg=si(),Ys=class{constructor(r){var i;this._nameFilter=new Eg.PatternPredicate((i=r?.name)!==null&&i!==void 0?i:"*"),this._type=r?.type,this._unitFilter=new Eg.ExactPredicate(r?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};ci.InstrumentSelector=Ys});var Sg=S(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.MeterSelector=void 0;var Fs=si(),Ks=class{constructor(r){this._nameFilter=new Fs.ExactPredicate(r?.name),this._versionFilter=new Fs.ExactPredicate(r?.version),this._schemaUrlFilter=new Fs.ExactPredicate(r?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};li.MeterSelector=Ks});var dg=S(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.View=void 0;var aX=si(),fg=Ds(),uX=Tg(),sX=Sg(),cX=wo();function lX(o){return o.instrumentName==null&&o.instrumentType==null&&o.instrumentUnit==null&&o.meterName==null&&o.meterVersion==null&&o.meterSchemaUrl==null}var js=class{constructor(r){var i;if(lX(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||aX.PatternPredicate.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");r.attributeKeys!=null?this.attributesProcessor=new fg.FilteringAttributesProcessor(r.attributeKeys):this.attributesProcessor=fg.AttributesProcessor.Noop(),this.name=r.name,this.description=r.description,this.aggregation=(i=r.aggregation)!==null&&i!==void 0?i:cX.Aggregation.Default(),this.instrumentSelector=new uX.InstrumentSelector({name:r.instrumentName,type:r.instrumentType,unit:r.instrumentUnit}),this.meterSelector=new sX.MeterSelector({name:r.meterName,version:r.meterVersion,schemaUrl:r.meterSchemaUrl}),this.aggregationCardinalityLimit=r.aggregationCardinalityLimit}};pi.View=js});var _i=S(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.TimeoutError=R.View=R.Aggregation=R.SumAggregation=R.LastValueAggregation=R.HistogramAggregation=R.DropAggregation=R.ExponentialHistogramAggregation=R.ExplicitBucketHistogramAggregation=R.DefaultAggregation=R.MeterProvider=R.InstrumentType=R.ConsoleMetricExporter=R.InMemoryMetricExporter=R.PeriodicExportingMetricReader=R.MetricReader=R.DataPointType=R.AggregationTemporality=void 0;var pX=mo();Object.defineProperty(R,"AggregationTemporality",{enumerable:!0,get:function(){return pX.AggregationTemporality}});var _X=Yt();Object.defineProperty(R,"DataPointType",{enumerable:!0,get:function(){return _X.DataPointType}});var EX=is();Object.defineProperty(R,"MetricReader",{enumerable:!0,get:function(){return EX.MetricReader}});var TX=HM();Object.defineProperty(R,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return TX.PeriodicExportingMetricReader}});var SX=YM();Object.defineProperty(R,"InMemoryMetricExporter",{enumerable:!0,get:function(){return SX.InMemoryMetricExporter}});var fX=KM();Object.defineProperty(R,"ConsoleMetricExporter",{enumerable:!0,get:function(){return fX.ConsoleMetricExporter}});var dX=De();Object.defineProperty(R,"InstrumentType",{enumerable:!0,get:function(){return dX.InstrumentType}});var AX=_g();Object.defineProperty(R,"MeterProvider",{enumerable:!0,get:function(){return AX.MeterProvider}});var Je=wo();Object.defineProperty(R,"DefaultAggregation",{enumerable:!0,get:function(){return Je.DefaultAggregation}});Object.defineProperty(R,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return Je.ExplicitBucketHistogramAggregation}});Object.defineProperty(R,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return Je.ExponentialHistogramAggregation}});Object.defineProperty(R,"DropAggregation",{enumerable:!0,get:function(){return Je.DropAggregation}});Object.defineProperty(R,"HistogramAggregation",{enumerable:!0,get:function(){return Je.HistogramAggregation}});Object.defineProperty(R,"LastValueAggregation",{enumerable:!0,get:function(){return Je.LastValueAggregation}});Object.defineProperty(R,"SumAggregation",{enumerable:!0,get:function(){return Je.SumAggregation}});Object.defineProperty(R,"Aggregation",{enumerable:!0,get:function(){return Je.Aggregation}});var vX=dg();Object.defineProperty(R,"View",{enumerable:!0,get:function(){return vX.View}});var OX=Te();Object.defineProperty(R,"TimeoutError",{enumerable:!0,get:function(){return OX.TimeoutError}})});var Ag,vg=d(()=>{Ag=function(){function o(r){this._delegate=r}return o.prototype.export=function(r,i){this._delegate.export(r,i)},o.prototype.forceFlush=function(){return this._delegate.forceFlush()},o.prototype.shutdown=function(){return this._delegate.shutdown()},o}()});var mX,Et,Ei=d(()=>{mX=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),Et=function(o){mX(r,o);function r(i,c,a){var u=o.call(this,i)||this;return u.name="OTLPExporterError",u.data=a,u.code=c,u}return r}(Error)});function hX(o){if(!Number.isNaN(o)&&Number.isFinite(o)&&o>0)return o;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+o+"')")}function Ti(o){if(o!=null)return function(){return o}}function Si(o,r,i){var c,a,u,t,e,n;return{timeoutMillis:hX((a=(c=o.timeoutMillis)!==null&&c!==void 0?c:r.timeoutMillis)!==null&&a!==void 0?a:i.timeoutMillis),concurrencyLimit:(t=(u=o.concurrencyLimit)!==null&&u!==void 0?u:r.concurrencyLimit)!==null&&t!==void 0?t:i.concurrencyLimit,compression:(n=(e=o.compression)!==null&&e!==void 0?e:r.compression)!==null&&n!==void 0?n:i.compression}}function fi(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Hr=d(()=>{});var di,Og=d(()=>{(function(o){o.NONE="none",o.GZIP="gzip"})(di||(di={}))});function Ai(o){return new yX(o.concurrencyLimit)}var NX,RX,yX,qs=d(()=>{NX=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},RX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},yX=function(){function o(r){this._sendingPromises=[],this._concurrencyLimit=r}return o.prototype.pushPromise=function(r){var i=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(r);var c=function(){var a=i._sendingPromises.indexOf(r);i._sendingPromises.splice(a,1)};r.then(c,c)},o.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},o.prototype.awaitAll=function(){return NX(this,void 0,void 0,function(){return RX(this,function(r){switch(r.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return r.sent(),[2]}})})},o}()});function PX(o){return Object.prototype.hasOwnProperty.call(o,"partialSuccess")}function mg(){return{handleResponse:function(o){o==null||!PX(o)||o.partialSuccess==null||Object.keys(o.partialSuccess).length===0||k.warn("Received Partial Success response:",JSON.stringify(o.partialSuccess))}}}var hg=d(()=>{m()});function vi(o,r){return new LX(o.transport,o.serializer,mg(),o.promiseHandler,r.timeout)}var Xe,MX,gX,LX,Ws=d(()=>{Xe=Oe(x());Ei();hg();m();MX=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},gX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},LX=function(){function o(r,i,c,a,u){this._transport=r,this._serializer=i,this._responseHandler=c,this._promiseQueue=a,this._timeout=u,this._diagLogger=k.createComponentLogger({namespace:"OTLPExportDelegate"})}return o.prototype.export=function(r,i){var c=this;if(this._diagLogger.debug("items to be sent",r),this._promiseQueue.hasReachedLimit()){i({code:Xe.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}var a=this._serializer.serializeRequest(r);if(a==null){i({code:Xe.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(a,this._timeout).then(function(u){if(u.status==="success"){if(u.data!=null)try{c._responseHandler.handleResponse(c._serializer.deserializeResponse(u.data))}catch(t){c._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,u.data)}i({code:Xe.ExportResultCode.SUCCESS});return}else if(u.status==="failure"&&u.error){i({code:Xe.ExportResultCode.FAILED,error:u.error});return}else u.status==="retryable"?i({code:Xe.ExportResultCode.FAILED,error:new Et("Export failed with retryable status")}):i({code:Xe.ExportResultCode.FAILED,error:new Et("Export failed with unknown error")})},function(u){return i({code:Xe.ExportResultCode.FAILED,error:u})}))},o.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},o.prototype.shutdown=function(){return MX(this,void 0,void 0,function(){return gX(this,function(r){switch(r.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return r.sent(),this._transport.shutdown(),[2]}})})},o}()});function Ng(o,r,i){return vi({transport:i,serializer:r,promiseHandler:Ai(o)},{timeout:o.timeoutMillis})}var Rg=d(()=>{qs();Ws()});var zs={};Ot(zs,{CompressionAlgorithm:()=>di,OTLPExporterBase:()=>Ag,OTLPExporterError:()=>Et,createOtlpNetworkExportDelegate:()=>Ng,getSharedConfigurationDefaults:()=>fi,mergeOtlpSharedConfigurationWithDefaults:()=>Si});var Js=d(()=>{vg();Ei();Hr();Og();Rg()});var yg=S(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.VERSION=void 0;Oi.VERSION="0.57.2"});var Mg=S((ate,Pg)=>{"use strict";Pg.exports=IX;function IX(o,r){for(var i=new Array(arguments.length-1),c=0,a=2,u=!0;a<arguments.length;)i[c++]=arguments[a++];return new Promise(function(e,n){i[c]=function(l){if(u)if(u=!1,l)n(l);else{for(var E=new Array(arguments.length-1),O=0;O<E.length;)E[O++]=arguments[O];e.apply(null,E)}};try{o.apply(r||null,i)}catch(s){u&&(u=!1,n(s))}})}});var Cg=S(Ig=>{"use strict";var mi=Ig;mi.length=function(r){var i=r.length;if(!i)return 0;for(var c=0;--i%4>1&&r.charAt(i)==="=";)++c;return Math.ceil(r.length*3)/4-c};var ur=new Array(64),Lg=new Array(123);for(Se=0;Se<64;)Lg[ur[Se]=Se<26?Se+65:Se<52?Se+71:Se<62?Se-4:Se-59|43]=Se++;var Se;mi.encode=function(r,i,c){for(var a=null,u=[],t=0,e=0,n;i<c;){var s=r[i++];switch(e){case 0:u[t++]=ur[s>>2],n=(s&3)<<4,e=1;break;case 1:u[t++]=ur[n|s>>4],n=(s&15)<<2,e=2;break;case 2:u[t++]=ur[n|s>>6],u[t++]=ur[s&63],e=0;break}t>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,u)),t=0)}return e&&(u[t++]=ur[n],u[t++]=61,e===1&&(u[t++]=61)),a?(t&&a.push(String.fromCharCode.apply(String,u.slice(0,t))),a.join("")):String.fromCharCode.apply(String,u.slice(0,t))};var gg="invalid encoding";mi.decode=function(r,i,c){for(var a=c,u=0,t,e=0;e<r.length;){var n=r.charCodeAt(e++);if(n===61&&u>1)break;if((n=Lg[n])===void 0)throw Error(gg);switch(u){case 0:t=n,u=1;break;case 1:i[c++]=t<<2|(n&48)>>4,t=n,u=2;break;case 2:i[c++]=(t&15)<<4|(n&60)>>2,t=n,u=3;break;case 3:i[c++]=(t&3)<<6|n,u=0;break}}if(u===1)throw Error(gg);return c-a};mi.test=function(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)}});var bg=S((ste,xg)=>{"use strict";xg.exports=hi;function hi(){this._listeners={}}hi.prototype.on=function(r,i,c){return(this._listeners[r]||(this._listeners[r]=[])).push({fn:i,ctx:c||this}),this};hi.prototype.off=function(r,i){if(r===void 0)this._listeners={};else if(i===void 0)this._listeners[r]=[];else for(var c=this._listeners[r],a=0;a<c.length;)c[a].fn===i?c.splice(a,1):++a;return this};hi.prototype.emit=function(r){var i=this._listeners[r];if(i){for(var c=[],a=1;a<arguments.length;)c.push(arguments[a++]);for(a=0;a<i.length;)i[a].fn.apply(i[a++].ctx,c)}return this}});var Hg=S((cte,Gg)=>{"use strict";Gg.exports=Ug(Ug);function Ug(o){return typeof Float32Array<"u"?function(){var r=new Float32Array([-0]),i=new Uint8Array(r.buffer),c=i[3]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3]}function u(n,s,l){r[0]=n,s[l]=i[3],s[l+1]=i[2],s[l+2]=i[1],s[l+3]=i[0]}o.writeFloatLE=c?a:u,o.writeFloatBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],r[0]}function e(n,s){return i[3]=n[s],i[2]=n[s+1],i[1]=n[s+2],i[0]=n[s+3],r[0]}o.readFloatLE=c?t:e,o.readFloatBE=c?e:t}():function(){function r(c,a,u,t){var e=a<0?1:0;if(e&&(a=-a),a===0)c(1/a>0?0:2147483648,u,t);else if(isNaN(a))c(2143289344,u,t);else if(a>34028234663852886e22)c((e<<31|2139095040)>>>0,u,t);else if(a<11754943508222875e-54)c((e<<31|Math.round(a/1401298464324817e-60))>>>0,u,t);else{var n=Math.floor(Math.log(a)/Math.LN2),s=Math.round(a*Math.pow(2,-n)*8388608)&8388607;c((e<<31|n+127<<23|s)>>>0,u,t)}}o.writeFloatLE=r.bind(null,Dg),o.writeFloatBE=r.bind(null,Vg);function i(c,a,u){var t=c(a,u),e=(t>>31)*2+1,n=t>>>23&255,s=t&8388607;return n===255?s?NaN:e*(1/0):n===0?e*1401298464324817e-60*s:e*Math.pow(2,n-150)*(s+8388608)}o.readFloatLE=i.bind(null,wg),o.readFloatBE=i.bind(null,Bg)}(),typeof Float64Array<"u"?function(){var r=new Float64Array([-0]),i=new Uint8Array(r.buffer),c=i[7]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3],s[l+4]=i[4],s[l+5]=i[5],s[l+6]=i[6],s[l+7]=i[7]}function u(n,s,l){r[0]=n,s[l]=i[7],s[l+1]=i[6],s[l+2]=i[5],s[l+3]=i[4],s[l+4]=i[3],s[l+5]=i[2],s[l+6]=i[1],s[l+7]=i[0]}o.writeDoubleLE=c?a:u,o.writeDoubleBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],i[4]=n[s+4],i[5]=n[s+5],i[6]=n[s+6],i[7]=n[s+7],r[0]}function e(n,s){return i[7]=n[s],i[6]=n[s+1],i[5]=n[s+2],i[4]=n[s+3],i[3]=n[s+4],i[2]=n[s+5],i[1]=n[s+6],i[0]=n[s+7],r[0]}o.readDoubleLE=c?t:e,o.readDoubleBE=c?e:t}():function(){function r(c,a,u,t,e,n){var s=t<0?1:0;if(s&&(t=-t),t===0)c(0,e,n+a),c(1/t>0?0:2147483648,e,n+u);else if(isNaN(t))c(0,e,n+a),c(2146959360,e,n+u);else if(t>17976931348623157e292)c(0,e,n+a),c((s<<31|2146435072)>>>0,e,n+u);else{var l;if(t<22250738585072014e-324)l=t/5e-324,c(l>>>0,e,n+a),c((s<<31|l/4294967296)>>>0,e,n+u);else{var E=Math.floor(Math.log(t)/Math.LN2);E===1024&&(E=1023),l=t*Math.pow(2,-E),c(l*4503599627370496>>>0,e,n+a),c((s<<31|E+1023<<20|l*1048576&1048575)>>>0,e,n+u)}}}o.writeDoubleLE=r.bind(null,Dg,0,4),o.writeDoubleBE=r.bind(null,Vg,4,0);function i(c,a,u,t,e){var n=c(t,e+a),s=c(t,e+u),l=(s>>31)*2+1,E=s>>>20&2047,O=4294967296*(s&1048575)+n;return E===2047?O?NaN:l*(1/0):E===0?l*5e-324*O:l*Math.pow(2,E-1075)*(O+4503599627370496)}o.readDoubleLE=i.bind(null,wg,0,4),o.readDoubleBE=i.bind(null,Bg,4,0)}(),o}function Dg(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}function Vg(o,r,i){r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255}function wg(o,r){return(o[r]|o[r+1]<<8|o[r+2]<<16|o[r+3]<<24)>>>0}function Bg(o,r){return(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3])>>>0}});var Yg=S((lte,kg)=>{"use strict";kg.exports=function(){return null}});var Kg=S(Fg=>{"use strict";var Xs=Fg;Xs.length=function(r){for(var i=0,c=0,a=0;a<r.length;++a)c=r.charCodeAt(a),c<128?i+=1:c<2048?i+=2:(c&64512)===55296&&(r.charCodeAt(a+1)&64512)===56320?(++a,i+=4):i+=3;return i};Xs.read=function(r,i,c){var a=c-i;if(a<1)return"";for(var u=null,t=[],e=0,n;i<c;)n=r[i++],n<128?t[e++]=n:n>191&&n<224?t[e++]=(n&31)<<6|r[i++]&63:n>239&&n<365?(n=((n&7)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t[e++]=55296+(n>>10),t[e++]=56320+(n&1023)):t[e++]=(n&15)<<12|(r[i++]&63)<<6|r[i++]&63,e>8191&&((u||(u=[])).push(String.fromCharCode.apply(String,t)),e=0);return u?(e&&u.push(String.fromCharCode.apply(String,t.slice(0,e))),u.join("")):String.fromCharCode.apply(String,t.slice(0,e))};Xs.write=function(r,i,c){for(var a=c,u,t,e=0;e<r.length;++e)u=r.charCodeAt(e),u<128?i[c++]=u:u<2048?(i[c++]=u>>6|192,i[c++]=u&63|128):(u&64512)===55296&&((t=r.charCodeAt(e+1))&64512)===56320?(u=65536+((u&1023)<<10)+(t&1023),++e,i[c++]=u>>18|240,i[c++]=u>>12&63|128,i[c++]=u>>6&63|128,i[c++]=u&63|128):(i[c++]=u>>12|224,i[c++]=u>>6&63|128,i[c++]=u&63|128);return c-a}});var qg=S((_te,jg)=>{"use strict";jg.exports=CX;function CX(o,r,i){var c=i||8192,a=c>>>1,u=null,t=c;return function(n){if(n<1||n>a)return o(n);t+n>c&&(u=o(c),t=0);var s=r.call(u,t,t+=n);return t&7&&(t=(t|7)+1),s}}});var zg=S((Ete,Wg)=>{"use strict";Wg.exports=j;var kr=Qe();function j(o,r){this.lo=o>>>0,this.hi=r>>>0}var Tt=j.zero=new j(0,0);Tt.toNumber=function(){return 0};Tt.zzEncode=Tt.zzDecode=function(){return this};Tt.length=function(){return 1};var xX=j.zeroHash="\0\0\0\0\0\0\0\0";j.fromNumber=function(r){if(r===0)return Tt;var i=r<0;i&&(r=-r);var c=r>>>0,a=(r-c)/4294967296>>>0;return i&&(a=~a>>>0,c=~c>>>0,++c>4294967295&&(c=0,++a>4294967295&&(a=0))),new j(c,a)};j.from=function(r){if(typeof r=="number")return j.fromNumber(r);if(kr.isString(r))if(kr.Long)r=kr.Long.fromString(r);else return j.fromNumber(parseInt(r,10));return r.low||r.high?new j(r.low>>>0,r.high>>>0):Tt};j.prototype.toNumber=function(r){if(!r&&this.hi>>>31){var i=~this.lo+1>>>0,c=~this.hi>>>0;return i||(c=c+1>>>0),-(i+c*4294967296)}return this.lo+this.hi*4294967296};j.prototype.toLong=function(r){return kr.Long?new kr.Long(this.lo|0,this.hi|0,!!r):{low:this.lo|0,high:this.hi|0,unsigned:!!r}};var $e=String.prototype.charCodeAt;j.fromHash=function(r){return r===xX?Tt:new j(($e.call(r,0)|$e.call(r,1)<<8|$e.call(r,2)<<16|$e.call(r,3)<<24)>>>0,($e.call(r,4)|$e.call(r,5)<<8|$e.call(r,6)<<16|$e.call(r,7)<<24)>>>0)};j.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};j.prototype.zzEncode=function(){var r=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^r)>>>0,this.lo=(this.lo<<1^r)>>>0,this};j.prototype.zzDecode=function(){var r=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^r)>>>0,this.hi=(this.hi>>>1^r)>>>0,this};j.prototype.length=function(){var r=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,c=this.hi>>>24;return c===0?i===0?r<16384?r<128?1:2:r<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:c<128?9:10}});var Qe=S($s=>{"use strict";var A=$s;A.asPromise=Mg();A.base64=Cg();A.EventEmitter=bg();A.float=Hg();A.inquire=Yg();A.utf8=Kg();A.pool=qg();A.LongBits=zg();A.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);A.global=A.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||$s;A.emptyArray=Object.freeze?Object.freeze([]):[];A.emptyObject=Object.freeze?Object.freeze({}):{};A.isInteger=Number.isInteger||function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r};A.isString=function(r){return typeof r=="string"||r instanceof String};A.isObject=function(r){return r&&typeof r=="object"};A.isset=A.isSet=function(r,i){var c=r[i];return c!=null&&r.hasOwnProperty(i)?typeof c!="object"||(Array.isArray(c)?c.length:Object.keys(c).length)>0:!1};A.Buffer=function(){try{var o=A.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}}();A._Buffer_from=null;A._Buffer_allocUnsafe=null;A.newBuffer=function(r){return typeof r=="number"?A.Buffer?A._Buffer_allocUnsafe(r):new A.Array(r):A.Buffer?A._Buffer_from(r):typeof Uint8Array>"u"?r:new Uint8Array(r)};A.Array=typeof Uint8Array<"u"?Uint8Array:Array;A.Long=A.global.dcodeIO&&A.global.dcodeIO.Long||A.global.Long||A.inquire("long");A.key2Re=/^true|false|0|1$/;A.key32Re=/^-?(?:0|[1-9][0-9]*)$/;A.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;A.longToHash=function(r){return r?A.LongBits.from(r).toHash():A.LongBits.zeroHash};A.longFromHash=function(r,i){var c=A.LongBits.fromHash(r);return A.Long?A.Long.fromBits(c.lo,c.hi,i):c.toNumber(!!i)};function Jg(o,r,i){for(var c=Object.keys(r),a=0;a<c.length;++a)(o[c[a]]===void 0||!i)&&(o[c[a]]=r[c[a]]);return o}A.merge=Jg;A.lcFirst=function(r){return r.charAt(0).toLowerCase()+r.substring(1)};function Xg(o){function r(i,c){if(!(this instanceof r))return new r(i,c);Object.defineProperty(this,"message",{get:function(){return i}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:new Error().stack||""}),c&&Jg(this,c)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),r}A.newError=Xg;A.ProtocolError=Xg("ProtocolError");A.oneOfGetter=function(r){for(var i={},c=0;c<r.length;++c)i[r[c]]=1;return function(){for(var a=Object.keys(this),u=a.length-1;u>-1;--u)if(i[a[u]]===1&&this[a[u]]!==void 0&&this[a[u]]!==null)return a[u]}};A.oneOfSetter=function(r){return function(i){for(var c=0;c<r.length;++c)r[c]!==i&&delete this[r[c]]}};A.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};A._configure=function(){var o=A.Buffer;if(!o){A._Buffer_from=A._Buffer_allocUnsafe=null;return}A._Buffer_from=o.from!==Uint8Array.from&&o.from||function(i,c){return new o(i,c)},A._Buffer_allocUnsafe=o.allocUnsafe||function(i){return new o(i)}}});var oc=S((Ste,eL)=>{"use strict";eL.exports=P;var le=Qe(),Qs,Ni=le.LongBits,$g=le.base64,Qg=le.utf8;function Yr(o,r,i){this.fn=o,this.len=r,this.next=void 0,this.val=i}function ec(){}function bX(o){this.head=o.head,this.tail=o.tail,this.len=o.len,this.next=o.states}function P(){this.len=0,this.head=new Yr(ec,0,0),this.tail=this.head,this.states=null}var Zg=function(){return le.Buffer?function(){return(P.create=function(){return new Qs})()}:function(){return new P}};P.create=Zg();P.alloc=function(r){return new le.Array(r)};le.Array!==Array&&(P.alloc=le.pool(P.alloc,le.Array.prototype.subarray));P.prototype._push=function(r,i,c){return this.tail=this.tail.next=new Yr(r,i,c),this.len+=i,this};function tc(o,r,i){r[i]=o&255}function UX(o,r,i){for(;o>127;)r[i++]=o&127|128,o>>>=7;r[i]=o}function rc(o,r){this.len=o,this.next=void 0,this.val=r}rc.prototype=Object.create(Yr.prototype);rc.prototype.fn=UX;P.prototype.uint32=function(r){return this.len+=(this.tail=this.tail.next=new rc((r=r>>>0)<128?1:r<16384?2:r<2097152?3:r<268435456?4:5,r)).len,this};P.prototype.int32=function(r){return r<0?this._push(nc,10,Ni.fromNumber(r)):this.uint32(r)};P.prototype.sint32=function(r){return this.uint32((r<<1^r>>31)>>>0)};function nc(o,r,i){for(;o.hi;)r[i++]=o.lo&127|128,o.lo=(o.lo>>>7|o.hi<<25)>>>0,o.hi>>>=7;for(;o.lo>127;)r[i++]=o.lo&127|128,o.lo=o.lo>>>7;r[i++]=o.lo}P.prototype.uint64=function(r){var i=Ni.from(r);return this._push(nc,i.length(),i)};P.prototype.int64=P.prototype.uint64;P.prototype.sint64=function(r){var i=Ni.from(r).zzEncode();return this._push(nc,i.length(),i)};P.prototype.bool=function(r){return this._push(tc,1,r?1:0)};function Zs(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}P.prototype.fixed32=function(r){return this._push(Zs,4,r>>>0)};P.prototype.sfixed32=P.prototype.fixed32;P.prototype.fixed64=function(r){var i=Ni.from(r);return this._push(Zs,4,i.lo)._push(Zs,4,i.hi)};P.prototype.sfixed64=P.prototype.fixed64;P.prototype.float=function(r){return this._push(le.float.writeFloatLE,4,r)};P.prototype.double=function(r){return this._push(le.float.writeDoubleLE,8,r)};var DX=le.Array.prototype.set?function(r,i,c){i.set(r,c)}:function(r,i,c){for(var a=0;a<r.length;++a)i[c+a]=r[a]};P.prototype.bytes=function(r){var i=r.length>>>0;if(!i)return this._push(tc,1,0);if(le.isString(r)){var c=P.alloc(i=$g.length(r));$g.decode(r,c,0),r=c}return this.uint32(i)._push(DX,i,r)};P.prototype.string=function(r){var i=Qg.length(r);return i?this.uint32(i)._push(Qg.write,i,r):this._push(tc,1,0)};P.prototype.fork=function(){return this.states=new bX(this),this.head=this.tail=new Yr(ec,0,0),this.len=0,this};P.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Yr(ec,0,0),this.len=0),this};P.prototype.ldelim=function(){var r=this.head,i=this.tail,c=this.len;return this.reset().uint32(c),c&&(this.tail.next=r.next,this.tail=i,this.len+=c),this};P.prototype.finish=function(){for(var r=this.head.next,i=this.constructor.alloc(this.len),c=0;r;)r.fn(r.val,i,c),c+=r.len,r=r.next;return i};P._configure=function(o){Qs=o,P.create=Zg(),Qs._configure()}});var nL=S((fte,rL)=>{"use strict";rL.exports=Me;var tL=oc();(Me.prototype=Object.create(tL.prototype)).constructor=Me;var Ze=Qe();function Me(){tL.call(this)}Me._configure=function(){Me.alloc=Ze._Buffer_allocUnsafe,Me.writeBytesBuffer=Ze.Buffer&&Ze.Buffer.prototype instanceof Uint8Array&&Ze.Buffer.prototype.set.name==="set"?function(r,i,c){i.set(r,c)}:function(r,i,c){if(r.copy)r.copy(i,c,0,r.length);else for(var a=0;a<r.length;)i[c++]=r[a++]}};Me.prototype.bytes=function(r){Ze.isString(r)&&(r=Ze._Buffer_from(r,"base64"));var i=r.length>>>0;return this.uint32(i),i&&this._push(Me.writeBytesBuffer,i,r),this};function VX(o,r,i){o.length<40?Ze.utf8.write(o,r,i):r.utf8Write?r.utf8Write(o,i):r.write(o,i)}Me.prototype.string=function(r){var i=Ze.Buffer.byteLength(r);return this.uint32(i),i&&this._push(VX,i,r),this};Me._configure()});var uc=S((dte,sL)=>{"use strict";sL.exports=w;var fe=Qe(),ac,aL=fe.LongBits,wX=fe.utf8;function de(o,r){return RangeError("index out of range: "+o.pos+" + "+(r||1)+" > "+o.len)}function w(o){this.buf=o,this.pos=0,this.len=o.length}var oL=typeof Uint8Array<"u"?function(r){if(r instanceof Uint8Array||Array.isArray(r))return new w(r);throw Error("illegal buffer")}:function(r){if(Array.isArray(r))return new w(r);throw Error("illegal buffer")},uL=function(){return fe.Buffer?function(i){return(w.create=function(a){return fe.Buffer.isBuffer(a)?new ac(a):oL(a)})(i)}:oL};w.create=uL();w.prototype._slice=fe.Array.prototype.subarray||fe.Array.prototype.slice;w.prototype.uint32=function(){var r=4294967295;return function(){if(r=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(r=(r|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return r;if((this.pos+=5)>this.len)throw this.pos=this.len,de(this,10);return r}}();w.prototype.int32=function(){return this.uint32()|0};w.prototype.sint32=function(){var r=this.uint32();return r>>>1^-(r&1)|0};function ic(){var o=new aL(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o;if(o.lo=(o.lo|(this.buf[this.pos]&127)<<28)>>>0,o.hi=(o.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return o;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw de(this);if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o}return o.lo=(o.lo|(this.buf[this.pos++]&127)<<r*7)>>>0,o}if(this.len-this.pos>4){for(;r<5;++r)if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}else for(;r<5;++r){if(this.pos>=this.len)throw de(this);if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}throw Error("invalid varint encoding")}w.prototype.bool=function(){return this.uint32()!==0};function Ri(o,r){return(o[r-4]|o[r-3]<<8|o[r-2]<<16|o[r-1]<<24)>>>0}w.prototype.fixed32=function(){if(this.pos+4>this.len)throw de(this,4);return Ri(this.buf,this.pos+=4)};w.prototype.sfixed32=function(){if(this.pos+4>this.len)throw de(this,4);return Ri(this.buf,this.pos+=4)|0};function iL(){if(this.pos+8>this.len)throw de(this,8);return new aL(Ri(this.buf,this.pos+=4),Ri(this.buf,this.pos+=4))}w.prototype.float=function(){if(this.pos+4>this.len)throw de(this,4);var r=fe.float.readFloatLE(this.buf,this.pos);return this.pos+=4,r};w.prototype.double=function(){if(this.pos+8>this.len)throw de(this,4);var r=fe.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,r};w.prototype.bytes=function(){var r=this.uint32(),i=this.pos,c=this.pos+r;if(c>this.len)throw de(this,r);if(this.pos+=r,Array.isArray(this.buf))return this.buf.slice(i,c);if(i===c){var a=fe.Buffer;return a?a.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,i,c)};w.prototype.string=function(){var r=this.bytes();return wX.read(r,0,r.length)};w.prototype.skip=function(r){if(typeof r=="number"){if(this.pos+r>this.len)throw de(this,r);this.pos+=r}else do if(this.pos>=this.len)throw de(this);while(this.buf[this.pos++]&128);return this};w.prototype.skipType=function(o){switch(o){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(o=this.uint32()&7)!==4;)this.skipType(o);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+o+" at offset "+this.pos)}return this};w._configure=function(o){ac=o,w.create=uL(),ac._configure();var r=fe.Long?"toLong":"toNumber";fe.merge(w.prototype,{int64:function(){return ic.call(this)[r](!1)},uint64:function(){return ic.call(this)[r](!0)},sint64:function(){return ic.call(this).zzDecode()[r](!1)},fixed64:function(){return iL.call(this)[r](!0)},sfixed64:function(){return iL.call(this)[r](!1)}})}});var _L=S((Ate,pL)=>{"use strict";pL.exports=St;var lL=uc();(St.prototype=Object.create(lL.prototype)).constructor=St;var cL=Qe();function St(o){lL.call(this,o)}St._configure=function(){cL.Buffer&&(St.prototype._slice=cL.Buffer.prototype.slice)};St.prototype.string=function(){var r=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+r,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+r,this.len))};St._configure()});var TL=S((vte,EL)=>{"use strict";EL.exports=Fr;var sc=Qe();(Fr.prototype=Object.create(sc.EventEmitter.prototype)).constructor=Fr;function Fr(o,r,i){if(typeof o!="function")throw TypeError("rpcImpl must be a function");sc.EventEmitter.call(this),this.rpcImpl=o,this.requestDelimited=!!r,this.responseDelimited=!!i}Fr.prototype.rpcCall=function o(r,i,c,a,u){if(!a)throw TypeError("request must be specified");var t=this;if(!u)return sc.asPromise(o,t,r,i,c,a);if(!t.rpcImpl){setTimeout(function(){u(Error("already ended"))},0);return}try{return t.rpcImpl(r,i[t.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(n,s){if(n)return t.emit("error",n,r),u(n);if(s===null){t.end(!0);return}if(!(s instanceof c))try{s=c[t.responseDelimited?"decodeDelimited":"decode"](s)}catch(l){return t.emit("error",l,r),u(l)}return t.emit("data",s,r),u(null,s)})}catch(e){t.emit("error",e,r),setTimeout(function(){u(e)},0);return}};Fr.prototype.end=function(r){return this.rpcImpl&&(r||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var fL=S(SL=>{"use strict";var BX=SL;BX.Service=TL()});var AL=S((mte,dL)=>{"use strict";dL.exports={}});var mL=S(OL=>{"use strict";var re=OL;re.build="minimal";re.Writer=oc();re.BufferWriter=nL();re.Reader=uc();re.BufferReader=_L();re.util=Qe();re.rpc=fL();re.roots=AL();re.configure=vL;function vL(){re.util._configure(),re.Writer._configure(re.BufferWriter),re.Reader._configure(re.BufferReader)}vL()});var NL=S((Nte,hL)=>{"use strict";hL.exports=mL()});var yi=S((Rte,RL)=>{"use strict";var v=NL(),T=v.Reader,h=v.Writer,_=v.util,p=v.roots.default||(v.roots.default={});p.opentelemetry=function(){var o={};return o.proto=function(){var r={};return r.common=function(){var i={};return i.v1=function(){var c={};return c.AnyValue=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=h.create()),e.stringValue!=null&&Object.hasOwnProperty.call(e,"stringValue")&&n.uint32(10).string(e.stringValue),e.boolValue!=null&&Object.hasOwnProperty.call(e,"boolValue")&&n.uint32(16).bool(e.boolValue),e.intValue!=null&&Object.hasOwnProperty.call(e,"intValue")&&n.uint32(24).int64(e.intValue),e.doubleValue!=null&&Object.hasOwnProperty.call(e,"doubleValue")&&n.uint32(33).double(e.doubleValue),e.arrayValue!=null&&Object.hasOwnProperty.call(e,"arrayValue")&&p.opentelemetry.proto.common.v1.ArrayValue.encode(e.arrayValue,n.uint32(42).fork()).ldelim(),e.kvlistValue!=null&&Object.hasOwnProperty.call(e,"kvlistValue")&&p.opentelemetry.proto.common.v1.KeyValueList.encode(e.kvlistValue,n.uint32(50).fork()).ldelim(),e.bytesValue!=null&&Object.hasOwnProperty.call(e,"bytesValue")&&n.uint32(58).bytes(e.bytesValue),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.common.v1.AnyValue;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.stringValue=e.string();break}case 2:{l.boolValue=e.bool();break}case 3:{l.intValue=e.int64();break}case 4:{l.doubleValue=e.double();break}case 5:{l.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.decode(e,e.uint32());break}case 6:{l.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.decode(e,e.uint32());break}case 7:{l.bytesValue=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(n.value=1,!_.isString(e.stringValue)))return"stringValue: string expected";if(e.boolValue!=null&&e.hasOwnProperty("boolValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.boolValue!="boolean")return"boolValue: boolean expected"}if(e.intValue!=null&&e.hasOwnProperty("intValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.intValue)&&!(e.intValue&&_.isInteger(e.intValue.low)&&_.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(e.doubleValue!=null&&e.hasOwnProperty("doubleValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.doubleValue!="number")return"doubleValue: number expected"}if(e.arrayValue!=null&&e.hasOwnProperty("arrayValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.ArrayValue.verify(e.arrayValue);if(s)return"arrayValue."+s}}if(e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.KeyValueList.verify(e.kvlistValue);if(s)return"kvlistValue."+s}}if(e.bytesValue!=null&&e.hasOwnProperty("bytesValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!(e.bytesValue&&typeof e.bytesValue.length=="number"||_.isString(e.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.common.v1.AnyValue)return e;var n=new p.opentelemetry.proto.common.v1.AnyValue;if(e.stringValue!=null&&(n.stringValue=String(e.stringValue)),e.boolValue!=null&&(n.boolValue=!!e.boolValue),e.intValue!=null&&(_.Long?(n.intValue=_.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue=="string"?n.intValue=parseInt(e.intValue,10):typeof e.intValue=="number"?n.intValue=e.intValue:typeof e.intValue=="object"&&(n.intValue=new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.arrayValue!=null){if(typeof e.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");n.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.fromObject(e.arrayValue)}if(e.kvlistValue!=null){if(typeof e.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");n.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.fromObject(e.kvlistValue)}return e.bytesValue!=null&&(typeof e.bytesValue=="string"?_.base64.decode(e.bytesValue,n.bytesValue=_.newBuffer(_.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(n.bytesValue=e.bytesValue)),n},a.toObject=function(e,n){n||(n={});var s={};return e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(s.stringValue=e.stringValue,n.oneofs&&(s.value="stringValue")),e.boolValue!=null&&e.hasOwnProperty("boolValue")&&(s.boolValue=e.boolValue,n.oneofs&&(s.value="boolValue")),e.intValue!=null&&e.hasOwnProperty("intValue")&&(typeof e.intValue=="number"?s.intValue=n.longs===String?String(e.intValue):e.intValue:s.intValue=n.longs===String?_.Long.prototype.toString.call(e.intValue):n.longs===Number?new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,n.oneofs&&(s.value="intValue")),e.doubleValue!=null&&e.hasOwnProperty("doubleValue")&&(s.doubleValue=n.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,n.oneofs&&(s.value="doubleValue")),e.arrayValue!=null&&e.hasOwnProperty("arrayValue")&&(s.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.toObject(e.arrayValue,n),n.oneofs&&(s.value="arrayValue")),e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")&&(s.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.toObject(e.kvlistValue,n),n.oneofs&&(s.value="kvlistValue")),e.bytesValue!=null&&e.hasOwnProperty("bytesValue")&&(s.bytesValue=n.bytes===String?_.base64.encode(e.bytesValue,0,e.bytesValue.length):n.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,n.oneofs&&(s.value="bytesValue")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.common.v1.AnyValue"},a}(),c.ArrayValue=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.AnyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.ArrayValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.AnyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.ArrayValue)return t;var e=new p.opentelemetry.proto.common.v1.ArrayValue;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),c.KeyValueList=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValueList;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValueList)return t;var e=new p.opentelemetry.proto.common.v1.KeyValueList;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),c.KeyValue=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=h.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&e.uint32(10).string(t.key),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.value,e.uint32(18).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.key=t.string();break}case 2:{s.value=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.key!=null&&t.hasOwnProperty("key")&&!_.isString(t.key))return"key: string expected";if(t.value!=null&&t.hasOwnProperty("value")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.value);if(e)return"value."+e}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValue)return t;var e=new p.opentelemetry.proto.common.v1.KeyValue;if(t.key!=null&&(e.key=String(t.key)),t.value!=null){if(typeof t.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");e.value=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.value)}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.key="",n.value=null),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.value,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValue"},a}(),c.InstrumentationScope=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(10).string(t.name),t.version!=null&&Object.hasOwnProperty.call(t,"version")&&e.uint32(18).string(t.version),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(26).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(32).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.InstrumentationScope;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.name=t.string();break}case 2:{s.version=t.string();break}case 3:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 4:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.version!=null&&t.hasOwnProperty("version")&&!_.isString(t.version))return"version: string expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.InstrumentationScope)return t;var e=new p.opentelemetry.proto.common.v1.InstrumentationScope;if(t.name!=null&&(e.name=String(t.name)),t.version!=null&&(e.version=String(t.version)),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.name="",n.version="",n.droppedAttributesCount=0),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),c}(),i}(),r.resource=function(){var i={};return i.v1=function(){var c={};return c.Resource=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(10).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(16).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.resource.v1.Resource;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.resource.v1.Resource)return t;var e=new p.opentelemetry.proto.resource.v1.Resource;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.droppedAttributesCount=0),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.resource.v1.Resource"},a}(),c}(),i}(),r.trace=function(){var i={};return i.v1=function(){var c={};return c.TracesData=function(){function a(u){if(this.resourceSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceSpans=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceSpans!=null&&t.resourceSpans.length)for(var n=0;n<t.resourceSpans.length;++n)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(t.resourceSpans[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.TracesData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceSpans&&s.resourceSpans.length||(s.resourceSpans=[]),s.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceSpans!=null&&t.hasOwnProperty("resourceSpans")){if(!Array.isArray(t.resourceSpans))return"resourceSpans: array expected";for(var e=0;e<t.resourceSpans.length;++e){var n=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(t.resourceSpans[e]);if(n)return"resourceSpans."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.TracesData)return t;var e=new p.opentelemetry.proto.trace.v1.TracesData;if(t.resourceSpans){if(!Array.isArray(t.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");e.resourceSpans=[];for(var n=0;n<t.resourceSpans.length;++n){if(typeof t.resourceSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");e.resourceSpans[n]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(t.resourceSpans[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceSpans=[]),t.resourceSpans&&t.resourceSpans.length){n.resourceSpans=[];for(var s=0;s<t.resourceSpans.length;++s)n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(t.resourceSpans[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.TracesData"},a}(),c.ResourceSpans=function(){function a(u){if(this.scopeSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeSpans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeSpans!=null&&t.scopeSpans.length)for(var n=0;n<t.scopeSpans.length;++n)p.opentelemetry.proto.trace.v1.ScopeSpans.encode(t.scopeSpans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ResourceSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeSpans&&s.scopeSpans.length||(s.scopeSpans=[]),s.scopeSpans.push(p.opentelemetry.proto.trace.v1.ScopeSpans.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeSpans!=null&&t.hasOwnProperty("scopeSpans")){if(!Array.isArray(t.scopeSpans))return"scopeSpans: array expected";for(var n=0;n<t.scopeSpans.length;++n){var e=p.opentelemetry.proto.trace.v1.ScopeSpans.verify(t.scopeSpans[n]);if(e)return"scopeSpans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ResourceSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ResourceSpans;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeSpans){if(!Array.isArray(t.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");e.scopeSpans=[];for(var n=0;n<t.scopeSpans.length;++n){if(typeof t.scopeSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");e.scopeSpans[n]=p.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(t.scopeSpans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeSpans=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeSpans&&t.scopeSpans.length){n.scopeSpans=[];for(var s=0;s<t.scopeSpans.length;++s)n.scopeSpans[s]=p.opentelemetry.proto.trace.v1.ScopeSpans.toObject(t.scopeSpans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),c.ScopeSpans=function(){function a(u){if(this.spans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.spans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.spans!=null&&t.spans.length)for(var n=0;n<t.spans.length;++n)p.opentelemetry.proto.trace.v1.Span.encode(t.spans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ScopeSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.spans&&s.spans.length||(s.spans=[]),s.spans.push(p.opentelemetry.proto.trace.v1.Span.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.spans!=null&&t.hasOwnProperty("spans")){if(!Array.isArray(t.spans))return"spans: array expected";for(var n=0;n<t.spans.length;++n){var e=p.opentelemetry.proto.trace.v1.Span.verify(t.spans[n]);if(e)return"spans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ScopeSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ScopeSpans;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.spans){if(!Array.isArray(t.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");e.spans=[];for(var n=0;n<t.spans.length;++n){if(typeof t.spans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");e.spans[n]=p.opentelemetry.proto.trace.v1.Span.fromObject(t.spans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.spans=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.spans&&t.spans.length){n.spans=[];for(var s=0;s<t.spans.length;++s)n.spans[s]=p.opentelemetry.proto.trace.v1.Span.toObject(t.spans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),c.Span=function(){function a(u){if(this.attributes=[],this.events=[],this.links=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=_.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=_.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(10).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(18).bytes(t.spanId),t.traceState!=null&&Object.hasOwnProperty.call(t,"traceState")&&e.uint32(26).string(t.traceState),t.parentSpanId!=null&&Object.hasOwnProperty.call(t,"parentSpanId")&&e.uint32(34).bytes(t.parentSpanId),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(42).string(t.name),t.kind!=null&&Object.hasOwnProperty.call(t,"kind")&&e.uint32(48).int32(t.kind),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(57).fixed64(t.startTimeUnixNano),t.endTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"endTimeUnixNano")&&e.uint32(65).fixed64(t.endTimeUnixNano),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(74).fork()).ldelim();if(t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(80).uint32(t.droppedAttributesCount),t.events!=null&&t.events.length)for(var n=0;n<t.events.length;++n)p.opentelemetry.proto.trace.v1.Span.Event.encode(t.events[n],e.uint32(90).fork()).ldelim();if(t.droppedEventsCount!=null&&Object.hasOwnProperty.call(t,"droppedEventsCount")&&e.uint32(96).uint32(t.droppedEventsCount),t.links!=null&&t.links.length)for(var n=0;n<t.links.length;++n)p.opentelemetry.proto.trace.v1.Span.Link.encode(t.links[n],e.uint32(106).fork()).ldelim();return t.droppedLinksCount!=null&&Object.hasOwnProperty.call(t,"droppedLinksCount")&&e.uint32(112).uint32(t.droppedLinksCount),t.status!=null&&Object.hasOwnProperty.call(t,"status")&&p.opentelemetry.proto.trace.v1.Status.encode(t.status,e.uint32(122).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Span;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.traceId=t.bytes();break}case 2:{s.spanId=t.bytes();break}case 3:{s.traceState=t.string();break}case 4:{s.parentSpanId=t.bytes();break}case 5:{s.name=t.string();break}case 6:{s.kind=t.int32();break}case 7:{s.startTimeUnixNano=t.fixed64();break}case 8:{s.endTimeUnixNano=t.fixed64();break}case 9:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 10:{s.droppedAttributesCount=t.uint32();break}case 11:{s.events&&s.events.length||(s.events=[]),s.events.push(p.opentelemetry.proto.trace.v1.Span.Event.decode(t,t.uint32()));break}case 12:{s.droppedEventsCount=t.uint32();break}case 13:{s.links&&s.links.length||(s.links=[]),s.links.push(p.opentelemetry.proto.trace.v1.Span.Link.decode(t,t.uint32()));break}case 14:{s.droppedLinksCount=t.uint32();break}case 15:{s.status=p.opentelemetry.proto.trace.v1.Status.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId)))return"traceId: buffer expected";if(t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId)))return"spanId: buffer expected";if(t.traceState!=null&&t.hasOwnProperty("traceState")&&!_.isString(t.traceState))return"traceState: string expected";if(t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&!(t.parentSpanId&&typeof t.parentSpanId.length=="number"||_.isString(t.parentSpanId)))return"parentSpanId: buffer expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.kind!=null&&t.hasOwnProperty("kind"))switch(t.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&!_.isInteger(t.endTimeUnixNano)&&!(t.endTimeUnixNano&&_.isInteger(t.endTimeUnixNano.low)&&_.isInteger(t.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(t.events!=null&&t.hasOwnProperty("events")){if(!Array.isArray(t.events))return"events: array expected";for(var e=0;e<t.events.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Event.verify(t.events[e]);if(n)return"events."+n}}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&!_.isInteger(t.droppedEventsCount))return"droppedEventsCount: integer expected";if(t.links!=null&&t.hasOwnProperty("links")){if(!Array.isArray(t.links))return"links: array expected";for(var e=0;e<t.links.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Link.verify(t.links[e]);if(n)return"links."+n}}if(t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&!_.isInteger(t.droppedLinksCount))return"droppedLinksCount: integer expected";if(t.status!=null&&t.hasOwnProperty("status")){var n=p.opentelemetry.proto.trace.v1.Status.verify(t.status);if(n)return"status."+n}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Span)return t;var e=new p.opentelemetry.proto.trace.v1.Span;switch(t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),t.traceState!=null&&(e.traceState=String(t.traceState)),t.parentSpanId!=null&&(typeof t.parentSpanId=="string"?_.base64.decode(t.parentSpanId,e.parentSpanId=_.newBuffer(_.base64.length(t.parentSpanId)),0):t.parentSpanId.length>=0&&(e.parentSpanId=t.parentSpanId)),t.name!=null&&(e.name=String(t.name)),t.kind){default:if(typeof t.kind=="number"){e.kind=t.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:e.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:e.kind=1;break;case"SPAN_KIND_SERVER":case 2:e.kind=2;break;case"SPAN_KIND_CLIENT":case 3:e.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:e.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:e.kind=5;break}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.endTimeUnixNano!=null&&(_.Long?(e.endTimeUnixNano=_.Long.fromValue(t.endTimeUnixNano)).unsigned=!1:typeof t.endTimeUnixNano=="string"?e.endTimeUnixNano=parseInt(t.endTimeUnixNano,10):typeof t.endTimeUnixNano=="number"?e.endTimeUnixNano=t.endTimeUnixNano:typeof t.endTimeUnixNano=="object"&&(e.endTimeUnixNano=new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber())),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.events){if(!Array.isArray(t.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");e.events=[];for(var n=0;n<t.events.length;++n){if(typeof t.events[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");e.events[n]=p.opentelemetry.proto.trace.v1.Span.Event.fromObject(t.events[n])}}if(t.droppedEventsCount!=null&&(e.droppedEventsCount=t.droppedEventsCount>>>0),t.links){if(!Array.isArray(t.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");e.links=[];for(var n=0;n<t.links.length;++n){if(typeof t.links[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");e.links[n]=p.opentelemetry.proto.trace.v1.Span.Link.fromObject(t.links[n])}}if(t.droppedLinksCount!=null&&(e.droppedLinksCount=t.droppedLinksCount>>>0),t.status!=null){if(typeof t.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");e.status=p.opentelemetry.proto.trace.v1.Status.fromObject(t.status)}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[],n.events=[],n.links=[]),e.defaults){if(e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),n.traceState="",e.bytes===String?n.parentSpanId="":(n.parentSpanId=[],e.bytes!==Array&&(n.parentSpanId=_.newBuffer(n.parentSpanId))),n.name="",n.kind=e.enums===String?"SPAN_KIND_UNSPECIFIED":0,_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.endTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.endTimeUnixNano=e.longs===String?"0":0;n.droppedAttributesCount=0,n.droppedEventsCount=0,n.droppedLinksCount=0,n.status=null}if(t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.traceState!=null&&t.hasOwnProperty("traceState")&&(n.traceState=t.traceState),t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&(n.parentSpanId=e.bytes===String?_.base64.encode(t.parentSpanId,0,t.parentSpanId.length):e.bytes===Array?Array.prototype.slice.call(t.parentSpanId):t.parentSpanId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.kind!=null&&t.hasOwnProperty("kind")&&(n.kind=e.enums===String?p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]===void 0?t.kind:p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]:t.kind),t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&(typeof t.endTimeUnixNano=="number"?n.endTimeUnixNano=e.longs===String?String(t.endTimeUnixNano):t.endTimeUnixNano:n.endTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.endTimeUnixNano):e.longs===Number?new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber():t.endTimeUnixNano),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.events&&t.events.length){n.events=[];for(var l=0;l<t.events.length;++l)n.events[l]=p.opentelemetry.proto.trace.v1.Span.Event.toObject(t.events[l],e)}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&(n.droppedEventsCount=t.droppedEventsCount),t.links&&t.links.length){n.links=[];for(var l=0;l<t.links.length;++l)n.links[l]=p.opentelemetry.proto.trace.v1.Span.Link.toObject(t.links[l],e)}return t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&(n.droppedLinksCount=t.droppedLinksCount),t.status!=null&&t.hasOwnProperty("status")&&(n.status=p.opentelemetry.proto.trace.v1.Status.toObject(t.status,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var u={},t=Object.create(u);return t[u[0]="SPAN_KIND_UNSPECIFIED"]=0,t[u[1]="SPAN_KIND_INTERNAL"]=1,t[u[2]="SPAN_KIND_SERVER"]=2,t[u[3]="SPAN_KIND_CLIENT"]=3,t[u[4]="SPAN_KIND_PRODUCER"]=4,t[u[5]="SPAN_KIND_CONSUMER"]=5,t}(),a.Event=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.timeUnixNano=null,u.prototype.name=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(9).fixed64(e.timeUnixNano),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(18).string(e.name),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(32).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Event;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.timeUnixNano=e.fixed64();break}case 2:{l.name=e.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 4:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Event)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Event;if(e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.name!=null&&(n.name=String(e.name)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.name="",s.droppedAttributesCount=0}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Event"},u}(),a.Link=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.traceId=null,u.prototype.spanId=null,u.prototype.traceState=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(10).bytes(e.traceId),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(18).bytes(e.spanId),e.traceState!=null&&Object.hasOwnProperty.call(e,"traceState")&&n.uint32(26).string(e.traceState),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(34).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(40).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Link;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.traceId=e.bytes();break}case 2:{l.spanId=e.bytes();break}case 3:{l.traceState=e.string();break}case 4:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 5:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId)))return"traceId: buffer expected";if(e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId)))return"spanId: buffer expected";if(e.traceState!=null&&e.hasOwnProperty("traceState")&&!_.isString(e.traceState))return"traceState: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Link)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Link;if(e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceState!=null&&(n.traceState=String(e.traceState)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults&&(n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId))),n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),s.traceState="",s.droppedAttributesCount=0),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceState!=null&&e.hasOwnProperty("traceState")&&(s.traceState=e.traceState),e.attributes&&e.attributes.length){s.attributes=[];for(var l=0;l<e.attributes.length;++l)s.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[l],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Link"},u}(),a}(),c.Status=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=h.create()),t.message!=null&&Object.hasOwnProperty.call(t,"message")&&e.uint32(18).string(t.message),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&e.uint32(24).int32(t.code),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Status;t.pos<n;){var l=t.uint32();switch(l>>>3){case 2:{s.message=t.string();break}case 3:{s.code=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.message!=null&&t.hasOwnProperty("message")&&!_.isString(t.message))return"message: string expected";if(t.code!=null&&t.hasOwnProperty("code"))switch(t.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Status)return t;var e=new p.opentelemetry.proto.trace.v1.Status;switch(t.message!=null&&(e.message=String(t.message)),t.code){default:if(typeof t.code=="number"){e.code=t.code;break}break;case"STATUS_CODE_UNSET":case 0:e.code=0;break;case"STATUS_CODE_OK":case 1:e.code=1;break;case"STATUS_CODE_ERROR":case 2:e.code=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.message="",n.code=e.enums===String?"STATUS_CODE_UNSET":0),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.code!=null&&t.hasOwnProperty("code")&&(n.code=e.enums===String?p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]===void 0?t.code:p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]:t.code),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var u={},t=Object.create(u);return t[u[0]="STATUS_CODE_UNSET"]=0,t[u[1]="STATUS_CODE_OK"]=1,t[u[2]="STATUS_CODE_ERROR"]=2,t}(),a}(),c}(),i}(),r.collector=function(){var i={};return i.trace=function(){var c={};return c.v1=function(){var a={};return a.TraceService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportTraceServiceRequest=function(){function u(t){if(this.resourceSpans=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceSpans=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceSpans!=null&&e.resourceSpans.length)for(var s=0;s<e.resourceSpans.length;++s)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(e.resourceSpans[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceSpans!=null&&e.hasOwnProperty("resourceSpans")){if(!Array.isArray(e.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<e.resourceSpans.length;++n){var s=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(e.resourceSpans[n]);if(s)return"resourceSpans."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(e.resourceSpans){if(!Array.isArray(e.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");n.resourceSpans=[];for(var s=0;s<e.resourceSpans.length;++s){if(typeof e.resourceSpans[s]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(e.resourceSpans[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceSpans=[]),e.resourceSpans&&e.resourceSpans.length){s.resourceSpans=[];for(var l=0;l<e.resourceSpans.length;++l)s.resourceSpans[l]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(e.resourceSpans[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},u}(),a.ExportTraceServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},u}(),a.ExportTracePartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedSpans=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedSpans!=null&&Object.hasOwnProperty.call(e,"rejectedSpans")&&n.uint32(8).int64(e.rejectedSpans),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedSpans=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&!_.isInteger(e.rejectedSpans)&&!(e.rejectedSpans&&_.isInteger(e.rejectedSpans.low)&&_.isInteger(e.rejectedSpans.high))?"rejectedSpans: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return e.rejectedSpans!=null&&(_.Long?(n.rejectedSpans=_.Long.fromValue(e.rejectedSpans)).unsigned=!1:typeof e.rejectedSpans=="string"?n.rejectedSpans=parseInt(e.rejectedSpans,10):typeof e.rejectedSpans=="number"?n.rejectedSpans=e.rejectedSpans:typeof e.rejectedSpans=="object"&&(n.rejectedSpans=new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedSpans=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedSpans=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&(typeof e.rejectedSpans=="number"?s.rejectedSpans=n.longs===String?String(e.rejectedSpans):e.rejectedSpans:s.rejectedSpans=n.longs===String?_.Long.prototype.toString.call(e.rejectedSpans):n.longs===Number?new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber():e.rejectedSpans),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},u}(),a}(),c}(),i.metrics=function(){var c={};return c.v1=function(){var a={};return a.MetricsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportMetricsServiceRequest=function(){function u(t){if(this.resourceMetrics=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceMetrics=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceMetrics!=null&&e.resourceMetrics.length)for(var s=0;s<e.resourceMetrics.length;++s)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(e.resourceMetrics[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceMetrics!=null&&e.hasOwnProperty("resourceMetrics")){if(!Array.isArray(e.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<e.resourceMetrics.length;++n){var s=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(e.resourceMetrics[n]);if(s)return"resourceMetrics."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(e.resourceMetrics){if(!Array.isArray(e.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");n.resourceMetrics=[];for(var s=0;s<e.resourceMetrics.length;++s){if(typeof e.resourceMetrics[s]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(e.resourceMetrics[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceMetrics=[]),e.resourceMetrics&&e.resourceMetrics.length){s.resourceMetrics=[];for(var l=0;l<e.resourceMetrics.length;++l)s.resourceMetrics[l]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(e.resourceMetrics[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},u}(),a.ExportMetricsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},u}(),a.ExportMetricsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedDataPoints=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedDataPoints!=null&&Object.hasOwnProperty.call(e,"rejectedDataPoints")&&n.uint32(8).int64(e.rejectedDataPoints),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedDataPoints=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&!_.isInteger(e.rejectedDataPoints)&&!(e.rejectedDataPoints&&_.isInteger(e.rejectedDataPoints.low)&&_.isInteger(e.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return e.rejectedDataPoints!=null&&(_.Long?(n.rejectedDataPoints=_.Long.fromValue(e.rejectedDataPoints)).unsigned=!1:typeof e.rejectedDataPoints=="string"?n.rejectedDataPoints=parseInt(e.rejectedDataPoints,10):typeof e.rejectedDataPoints=="number"?n.rejectedDataPoints=e.rejectedDataPoints:typeof e.rejectedDataPoints=="object"&&(n.rejectedDataPoints=new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedDataPoints=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedDataPoints=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&(typeof e.rejectedDataPoints=="number"?s.rejectedDataPoints=n.longs===String?String(e.rejectedDataPoints):e.rejectedDataPoints:s.rejectedDataPoints=n.longs===String?_.Long.prototype.toString.call(e.rejectedDataPoints):n.longs===Number?new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber():e.rejectedDataPoints),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},u}(),a}(),c}(),i.logs=function(){var c={};return c.v1=function(){var a={};return a.LogsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportLogsServiceRequest=function(){function u(t){if(this.resourceLogs=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceLogs=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceLogs!=null&&e.resourceLogs.length)for(var s=0;s<e.resourceLogs.length;++s)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(e.resourceLogs[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceLogs!=null&&e.hasOwnProperty("resourceLogs")){if(!Array.isArray(e.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<e.resourceLogs.length;++n){var s=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(e.resourceLogs[n]);if(s)return"resourceLogs."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(e.resourceLogs){if(!Array.isArray(e.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");n.resourceLogs=[];for(var s=0;s<e.resourceLogs.length;++s){if(typeof e.resourceLogs[s]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(e.resourceLogs[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceLogs=[]),e.resourceLogs&&e.resourceLogs.length){s.resourceLogs=[];for(var l=0;l<e.resourceLogs.length;++l)s.resourceLogs[l]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(e.resourceLogs[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},u}(),a.ExportLogsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},u}(),a.ExportLogsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedLogRecords=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedLogRecords!=null&&Object.hasOwnProperty.call(e,"rejectedLogRecords")&&n.uint32(8).int64(e.rejectedLogRecords),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedLogRecords=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&!_.isInteger(e.rejectedLogRecords)&&!(e.rejectedLogRecords&&_.isInteger(e.rejectedLogRecords.low)&&_.isInteger(e.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return e.rejectedLogRecords!=null&&(_.Long?(n.rejectedLogRecords=_.Long.fromValue(e.rejectedLogRecords)).unsigned=!1:typeof e.rejectedLogRecords=="string"?n.rejectedLogRecords=parseInt(e.rejectedLogRecords,10):typeof e.rejectedLogRecords=="number"?n.rejectedLogRecords=e.rejectedLogRecords:typeof e.rejectedLogRecords=="object"&&(n.rejectedLogRecords=new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedLogRecords=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedLogRecords=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&(typeof e.rejectedLogRecords=="number"?s.rejectedLogRecords=n.longs===String?String(e.rejectedLogRecords):e.rejectedLogRecords:s.rejectedLogRecords=n.longs===String?_.Long.prototype.toString.call(e.rejectedLogRecords):n.longs===Number?new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber():e.rejectedLogRecords),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},u}(),a}(),c}(),i}(),r.metrics=function(){var i={};return i.v1=function(){var c={};return c.MetricsData=function(){function a(u){if(this.resourceMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceMetrics=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceMetrics!=null&&t.resourceMetrics.length)for(var n=0;n<t.resourceMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(t.resourceMetrics[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.MetricsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceMetrics&&s.resourceMetrics.length||(s.resourceMetrics=[]),s.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceMetrics!=null&&t.hasOwnProperty("resourceMetrics")){if(!Array.isArray(t.resourceMetrics))return"resourceMetrics: array expected";for(var e=0;e<t.resourceMetrics.length;++e){var n=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(t.resourceMetrics[e]);if(n)return"resourceMetrics."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.MetricsData)return t;var e=new p.opentelemetry.proto.metrics.v1.MetricsData;if(t.resourceMetrics){if(!Array.isArray(t.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");e.resourceMetrics=[];for(var n=0;n<t.resourceMetrics.length;++n){if(typeof t.resourceMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");e.resourceMetrics[n]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(t.resourceMetrics[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceMetrics=[]),t.resourceMetrics&&t.resourceMetrics.length){n.resourceMetrics=[];for(var s=0;s<t.resourceMetrics.length;++s)n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(t.resourceMetrics[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),c.ResourceMetrics=function(){function a(u){if(this.scopeMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeMetrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeMetrics!=null&&t.scopeMetrics.length)for(var n=0;n<t.scopeMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(t.scopeMetrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeMetrics&&s.scopeMetrics.length||(s.scopeMetrics=[]),s.scopeMetrics.push(p.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeMetrics!=null&&t.hasOwnProperty("scopeMetrics")){if(!Array.isArray(t.scopeMetrics))return"scopeMetrics: array expected";for(var n=0;n<t.scopeMetrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(t.scopeMetrics[n]);if(e)return"scopeMetrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ResourceMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeMetrics){if(!Array.isArray(t.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");e.scopeMetrics=[];for(var n=0;n<t.scopeMetrics.length;++n){if(typeof t.scopeMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");e.scopeMetrics[n]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(t.scopeMetrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeMetrics=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeMetrics&&t.scopeMetrics.length){n.scopeMetrics=[];for(var s=0;s<t.scopeMetrics.length;++s)n.scopeMetrics[s]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(t.scopeMetrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),c.ScopeMetrics=function(){function a(u){if(this.metrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.metrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.metrics!=null&&t.metrics.length)for(var n=0;n<t.metrics.length;++n)p.opentelemetry.proto.metrics.v1.Metric.encode(t.metrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.metrics&&s.metrics.length||(s.metrics=[]),s.metrics.push(p.opentelemetry.proto.metrics.v1.Metric.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.metrics!=null&&t.hasOwnProperty("metrics")){if(!Array.isArray(t.metrics))return"metrics: array expected";for(var n=0;n<t.metrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.Metric.verify(t.metrics[n]);if(e)return"metrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ScopeMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");e.metrics=[];for(var n=0;n<t.metrics.length;++n){if(typeof t.metrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");e.metrics[n]=p.opentelemetry.proto.metrics.v1.Metric.fromObject(t.metrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.metrics=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.metrics&&t.metrics.length){n.metrics=[];for(var s=0;s<t.metrics.length;++s)n.metrics[s]=p.opentelemetry.proto.metrics.v1.Metric.toObject(t.metrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),c.Metric=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var u;return Object.defineProperty(a.prototype,"data",{get:_.oneOfGetter(u=["gauge","sum","histogram","exponentialHistogram","summary"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=h.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(10).string(e.name),e.description!=null&&Object.hasOwnProperty.call(e,"description")&&n.uint32(18).string(e.description),e.unit!=null&&Object.hasOwnProperty.call(e,"unit")&&n.uint32(26).string(e.unit),e.gauge!=null&&Object.hasOwnProperty.call(e,"gauge")&&p.opentelemetry.proto.metrics.v1.Gauge.encode(e.gauge,n.uint32(42).fork()).ldelim(),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&p.opentelemetry.proto.metrics.v1.Sum.encode(e.sum,n.uint32(58).fork()).ldelim(),e.histogram!=null&&Object.hasOwnProperty.call(e,"histogram")&&p.opentelemetry.proto.metrics.v1.Histogram.encode(e.histogram,n.uint32(74).fork()).ldelim(),e.exponentialHistogram!=null&&Object.hasOwnProperty.call(e,"exponentialHistogram")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(e.exponentialHistogram,n.uint32(82).fork()).ldelim(),e.summary!=null&&Object.hasOwnProperty.call(e,"summary")&&p.opentelemetry.proto.metrics.v1.Summary.encode(e.summary,n.uint32(90).fork()).ldelim(),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Metric;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.name=e.string();break}case 2:{l.description=e.string();break}case 3:{l.unit=e.string();break}case 5:{l.gauge=p.opentelemetry.proto.metrics.v1.Gauge.decode(e,e.uint32());break}case 7:{l.sum=p.opentelemetry.proto.metrics.v1.Sum.decode(e,e.uint32());break}case 9:{l.histogram=p.opentelemetry.proto.metrics.v1.Histogram.decode(e,e.uint32());break}case 10:{l.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(e,e.uint32());break}case 11:{l.summary=p.opentelemetry.proto.metrics.v1.Summary.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.description!=null&&e.hasOwnProperty("description")&&!_.isString(e.description))return"description: string expected";if(e.unit!=null&&e.hasOwnProperty("unit")&&!_.isString(e.unit))return"unit: string expected";if(e.gauge!=null&&e.hasOwnProperty("gauge")){n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Gauge.verify(e.gauge);if(s)return"gauge."+s}}if(e.sum!=null&&e.hasOwnProperty("sum")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Sum.verify(e.sum);if(s)return"sum."+s}}if(e.histogram!=null&&e.hasOwnProperty("histogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Histogram.verify(e.histogram);if(s)return"histogram."+s}}if(e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(e.exponentialHistogram);if(s)return"exponentialHistogram."+s}}if(e.summary!=null&&e.hasOwnProperty("summary")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Summary.verify(e.summary);if(s)return"summary."+s}}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Metric)return e;var n=new p.opentelemetry.proto.metrics.v1.Metric;if(e.name!=null&&(n.name=String(e.name)),e.description!=null&&(n.description=String(e.description)),e.unit!=null&&(n.unit=String(e.unit)),e.gauge!=null){if(typeof e.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");n.gauge=p.opentelemetry.proto.metrics.v1.Gauge.fromObject(e.gauge)}if(e.sum!=null){if(typeof e.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");n.sum=p.opentelemetry.proto.metrics.v1.Sum.fromObject(e.sum)}if(e.histogram!=null){if(typeof e.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");n.histogram=p.opentelemetry.proto.metrics.v1.Histogram.fromObject(e.histogram)}if(e.exponentialHistogram!=null){if(typeof e.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");n.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(e.exponentialHistogram)}if(e.summary!=null){if(typeof e.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");n.summary=p.opentelemetry.proto.metrics.v1.Summary.fromObject(e.summary)}return n},a.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.name="",s.description="",s.unit=""),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.description!=null&&e.hasOwnProperty("description")&&(s.description=e.description),e.unit!=null&&e.hasOwnProperty("unit")&&(s.unit=e.unit),e.gauge!=null&&e.hasOwnProperty("gauge")&&(s.gauge=p.opentelemetry.proto.metrics.v1.Gauge.toObject(e.gauge,n),n.oneofs&&(s.data="gauge")),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=p.opentelemetry.proto.metrics.v1.Sum.toObject(e.sum,n),n.oneofs&&(s.data="sum")),e.histogram!=null&&e.hasOwnProperty("histogram")&&(s.histogram=p.opentelemetry.proto.metrics.v1.Histogram.toObject(e.histogram,n),n.oneofs&&(s.data="histogram")),e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")&&(s.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(e.exponentialHistogram,n),n.oneofs&&(s.data="exponentialHistogram")),e.summary!=null&&e.hasOwnProperty("summary")&&(s.summary=p.opentelemetry.proto.metrics.v1.Summary.toObject(e.summary,n),n.oneofs&&(s.data="summary")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Metric"},a}(),c.Gauge=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Gauge;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Gauge)return t;var e=new p.opentelemetry.proto.metrics.v1.Gauge;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),c.Sum=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),t.isMonotonic!=null&&Object.hasOwnProperty.call(t,"isMonotonic")&&e.uint32(24).bool(t.isMonotonic),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Sum;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}case 3:{s.isMonotonic=t.bool();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&typeof t.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Sum)return t;var e=new p.opentelemetry.proto.metrics.v1.Sum;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return t.isMonotonic!=null&&(e.isMonotonic=!!t.isMonotonic),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,n.isMonotonic=!1),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&(n.isMonotonic=t.isMonotonic),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Sum"},a}(),c.Histogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Histogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Histogram)return t;var e=new p.opentelemetry.proto.metrics.v1.Histogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),c.ExponentialHistogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogram)return t;var e=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),c.Summary=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Summary;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Summary)return t;var e=new p.opentelemetry.proto.metrics.v1.Summary;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Summary"},a}(),c.AggregationTemporality=function(){var a={},u=Object.create(a);return u[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,u[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,u[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,u}(),c.DataPointFlags=function(){var a={},u=Object.create(a);return u[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,u[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,u}(),c.NumberDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(33).double(e.asDouble),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(42).fork()).ldelim();if(e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(58).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(64).uint32(e.flags),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 5:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 8:{l.flags=e.uint32();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.NumberDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),c.HistogramDataPoint=function(){function a(t){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=_.emptyArray,a.prototype.explicitBounds=_.emptyArray,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.bucketCounts!=null&&e.bucketCounts.length){n.uint32(50).fork();for(var s=0;s<e.bucketCounts.length;++s)n.fixed64(e.bucketCounts[s]);n.ldelim()}if(e.explicitBounds!=null&&e.explicitBounds.length){n.uint32(58).fork();for(var s=0;s<e.explicitBounds.length;++s)n.double(e.explicitBounds[s]);n.ldelim()}if(e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(66).fork()).ldelim();if(e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(74).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(89).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(97).double(e.max),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{if(l.bucketCounts&&l.bucketCounts.length||(l.bucketCounts=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.bucketCounts.push(e.fixed64());else l.bucketCounts.push(e.fixed64());break}case 7:{if(l.explicitBounds&&l.explicitBounds.length||(l.explicitBounds=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.explicitBounds.push(e.double());else l.explicitBounds.push(e.double());break}case 8:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 10:{l.flags=e.uint32();break}case 11:{l.min=e.double();break}case 12:{l.max=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.bucketCounts!=null&&e.hasOwnProperty("bucketCounts")){if(!Array.isArray(e.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<e.bucketCounts.length;++s)if(!_.isInteger(e.bucketCounts[s])&&!(e.bucketCounts[s]&&_.isInteger(e.bucketCounts[s].low)&&_.isInteger(e.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}if(e.explicitBounds!=null&&e.hasOwnProperty("explicitBounds")){if(!Array.isArray(e.explicitBounds))return"explicitBounds: array expected";for(var s=0;s<e.explicitBounds.length;++s)if(typeof e.explicitBounds[s]!="number")return"explicitBounds: number[] expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.HistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.bucketCounts){if(!Array.isArray(e.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");n.bucketCounts=[];for(var s=0;s<e.bucketCounts.length;++s)_.Long?(n.bucketCounts[s]=_.Long.fromValue(e.bucketCounts[s])).unsigned=!1:typeof e.bucketCounts[s]=="string"?n.bucketCounts[s]=parseInt(e.bucketCounts[s],10):typeof e.bucketCounts[s]=="number"?n.bucketCounts[s]=e.bucketCounts[s]:typeof e.bucketCounts[s]=="object"&&(n.bucketCounts[s]=new _.LongBits(e.bucketCounts[s].low>>>0,e.bucketCounts[s].high>>>0).toNumber())}if(e.explicitBounds){if(!Array.isArray(e.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");n.explicitBounds=[];for(var s=0;s<e.explicitBounds.length;++s)n.explicitBounds[s]=Number(e.explicitBounds[s])}if(e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.bucketCounts=[],s.explicitBounds=[],s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.bucketCounts&&e.bucketCounts.length){s.bucketCounts=[];for(var E=0;E<e.bucketCounts.length;++E)typeof e.bucketCounts[E]=="number"?s.bucketCounts[E]=n.longs===String?String(e.bucketCounts[E]):e.bucketCounts[E]:s.bucketCounts[E]=n.longs===String?_.Long.prototype.toString.call(e.bucketCounts[E]):n.longs===Number?new _.LongBits(e.bucketCounts[E].low>>>0,e.bucketCounts[E].high>>>0).toNumber():e.bucketCounts[E]}if(e.explicitBounds&&e.explicitBounds.length){s.explicitBounds=[];for(var E=0;E<e.explicitBounds.length;++E)s.explicitBounds[E]=n.json&&!isFinite(e.explicitBounds[E])?String(e.explicitBounds[E]):e.explicitBounds[E]}if(e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),c.ExponentialHistogramDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=_.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(10).fork()).ldelim();if(e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.scale!=null&&Object.hasOwnProperty.call(e,"scale")&&n.uint32(48).sint32(e.scale),e.zeroCount!=null&&Object.hasOwnProperty.call(e,"zeroCount")&&n.uint32(57).fixed64(e.zeroCount),e.positive!=null&&Object.hasOwnProperty.call(e,"positive")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.positive,n.uint32(66).fork()).ldelim(),e.negative!=null&&Object.hasOwnProperty.call(e,"negative")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.negative,n.uint32(74).fork()).ldelim(),e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(90).fork()).ldelim();return e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(97).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(105).double(e.max),e.zeroThreshold!=null&&Object.hasOwnProperty.call(e,"zeroThreshold")&&n.uint32(113).double(e.zeroThreshold),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{l.scale=e.sint32();break}case 7:{l.zeroCount=e.fixed64();break}case 8:{l.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 9:{l.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 10:{l.flags=e.uint32();break}case 11:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 12:{l.min=e.double();break}case 13:{l.max=e.double();break}case 14:{l.zeroThreshold=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.scale!=null&&e.hasOwnProperty("scale")&&!_.isInteger(e.scale))return"scale: integer expected";if(e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&!_.isInteger(e.zeroCount)&&!(e.zeroCount&&_.isInteger(e.zeroCount.low)&&_.isInteger(e.zeroCount.high)))return"zeroCount: integer|Long expected";if(e.positive!=null&&e.hasOwnProperty("positive")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.positive);if(l)return"positive."+l}if(e.negative!=null&&e.hasOwnProperty("negative")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.negative);if(l)return"negative."+l}if(e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags))return"flags: integer expected";if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&typeof e.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.scale!=null&&(n.scale=e.scale|0),e.zeroCount!=null&&(_.Long?(n.zeroCount=_.Long.fromValue(e.zeroCount)).unsigned=!1:typeof e.zeroCount=="string"?n.zeroCount=parseInt(e.zeroCount,10):typeof e.zeroCount=="number"?n.zeroCount=e.zeroCount:typeof e.zeroCount=="object"&&(n.zeroCount=new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber())),e.positive!=null){if(typeof e.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");n.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.positive)}if(e.negative!=null){if(typeof e.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");n.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.negative)}if(e.flags!=null&&(n.flags=e.flags>>>0),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),e.zeroThreshold!=null&&(n.zeroThreshold=Number(e.zeroThreshold)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[],s.exemplars=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;if(s.scale=0,_.Long){var l=new _.Long(0,0,!1);s.zeroCount=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.zeroCount=n.longs===String?"0":0;s.positive=null,s.negative=null,s.flags=0,s.zeroThreshold=0}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.scale!=null&&e.hasOwnProperty("scale")&&(s.scale=e.scale),e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&(typeof e.zeroCount=="number"?s.zeroCount=n.longs===String?String(e.zeroCount):e.zeroCount:s.zeroCount=n.longs===String?_.Long.prototype.toString.call(e.zeroCount):n.longs===Number?new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber():e.zeroCount),e.positive!=null&&e.hasOwnProperty("positive")&&(s.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.positive,n)),e.negative!=null&&e.hasOwnProperty("negative")&&(s.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.negative,n)),e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}return e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&(s.zeroThreshold=n.json&&!isFinite(e.zeroThreshold)?String(e.zeroThreshold):e.zeroThreshold),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function t(e){if(this.bucketCounts=[],e)for(var n=Object.keys(e),s=0;s<n.length;++s)e[n[s]]!=null&&(this[n[s]]=e[n[s]])}return t.prototype.offset=null,t.prototype.bucketCounts=_.emptyArray,t.create=function(n){return new t(n)},t.encode=function(n,s){if(s||(s=h.create()),n.offset!=null&&Object.hasOwnProperty.call(n,"offset")&&s.uint32(8).sint32(n.offset),n.bucketCounts!=null&&n.bucketCounts.length){s.uint32(18).fork();for(var l=0;l<n.bucketCounts.length;++l)s.uint64(n.bucketCounts[l]);s.ldelim()}return s},t.encodeDelimited=function(n,s){return this.encode(n,s).ldelim()},t.decode=function(n,s){n instanceof T||(n=T.create(n));for(var l=s===void 0?n.len:n.pos+s,E=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;n.pos<l;){var O=n.uint32();switch(O>>>3){case 1:{E.offset=n.sint32();break}case 2:{if(E.bucketCounts&&E.bucketCounts.length||(E.bucketCounts=[]),(O&7)===2)for(var g=n.uint32()+n.pos;n.pos<g;)E.bucketCounts.push(n.uint64());else E.bucketCounts.push(n.uint64());break}default:n.skipType(O&7);break}}return E},t.decodeDelimited=function(n){return n instanceof T||(n=new T(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.offset!=null&&n.hasOwnProperty("offset")&&!_.isInteger(n.offset))return"offset: integer expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<n.bucketCounts.length;++s)if(!_.isInteger(n.bucketCounts[s])&&!(n.bucketCounts[s]&&_.isInteger(n.bucketCounts[s].low)&&_.isInteger(n.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}return null},t.fromObject=function(n){if(n instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return n;var s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(n.offset!=null&&(s.offset=n.offset|0),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");s.bucketCounts=[];for(var l=0;l<n.bucketCounts.length;++l)_.Long?(s.bucketCounts[l]=_.Long.fromValue(n.bucketCounts[l])).unsigned=!0:typeof n.bucketCounts[l]=="string"?s.bucketCounts[l]=parseInt(n.bucketCounts[l],10):typeof n.bucketCounts[l]=="number"?s.bucketCounts[l]=n.bucketCounts[l]:typeof n.bucketCounts[l]=="object"&&(s.bucketCounts[l]=new _.LongBits(n.bucketCounts[l].low>>>0,n.bucketCounts[l].high>>>0).toNumber(!0))}return s},t.toObject=function(n,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.bucketCounts=[]),s.defaults&&(l.offset=0),n.offset!=null&&n.hasOwnProperty("offset")&&(l.offset=n.offset),n.bucketCounts&&n.bucketCounts.length){l.bucketCounts=[];for(var E=0;E<n.bucketCounts.length;++E)typeof n.bucketCounts[E]=="number"?l.bucketCounts[E]=s.longs===String?String(n.bucketCounts[E]):n.bucketCounts[E]:l.bucketCounts[E]=s.longs===String?_.Long.prototype.toString.call(n.bucketCounts[E]):s.longs===Number?new _.LongBits(n.bucketCounts[E].low>>>0,n.bucketCounts[E].high>>>0).toNumber(!0):n.bucketCounts[E]}return l},t.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},t}(),a}(),c.SummaryDataPoint=function(){function a(u){if(this.attributes=[],this.quantileValues=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=_.emptyArray,a.prototype.flags=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(17).fixed64(t.startTimeUnixNano),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(25).fixed64(t.timeUnixNano),t.count!=null&&Object.hasOwnProperty.call(t,"count")&&e.uint32(33).fixed64(t.count),t.sum!=null&&Object.hasOwnProperty.call(t,"sum")&&e.uint32(41).double(t.sum),t.quantileValues!=null&&t.quantileValues.length)for(var n=0;n<t.quantileValues.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(t.quantileValues[n],e.uint32(50).fork()).ldelim();if(t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(58).fork()).ldelim();return t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(64).uint32(t.flags),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;t.pos<n;){var l=t.uint32();switch(l>>>3){case 7:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.startTimeUnixNano=t.fixed64();break}case 3:{s.timeUnixNano=t.fixed64();break}case 4:{s.count=t.fixed64();break}case 5:{s.sum=t.double();break}case 6:{s.quantileValues&&s.quantileValues.length||(s.quantileValues=[]),s.quantileValues.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(t,t.uint32()));break}case 8:{s.flags=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.count!=null&&t.hasOwnProperty("count")&&!_.isInteger(t.count)&&!(t.count&&_.isInteger(t.count.low)&&_.isInteger(t.count.high)))return"count: integer|Long expected";if(t.sum!=null&&t.hasOwnProperty("sum")&&typeof t.sum!="number")return"sum: number expected";if(t.quantileValues!=null&&t.hasOwnProperty("quantileValues")){if(!Array.isArray(t.quantileValues))return"quantileValues: array expected";for(var e=0;e<t.quantileValues.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(t.quantileValues[e]);if(n)return"quantileValues."+n}}return t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint)return t;var e=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.count!=null&&(_.Long?(e.count=_.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?e.count=parseInt(t.count,10):typeof t.count=="number"?e.count=t.count:typeof t.count=="object"&&(e.count=new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.sum!=null&&(e.sum=Number(t.sum)),t.quantileValues){if(!Array.isArray(t.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");e.quantileValues=[];for(var n=0;n<t.quantileValues.length;++n){if(typeof t.quantileValues[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");e.quantileValues[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(t.quantileValues[n])}}return t.flags!=null&&(e.flags=t.flags>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.quantileValues=[],n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.count=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.count=e.longs===String?"0":0;n.sum=0,n.flags=0}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=e.longs===String?String(t.count):t.count:n.count=e.longs===String?_.Long.prototype.toString.call(t.count):e.longs===Number?new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.sum!=null&&t.hasOwnProperty("sum")&&(n.sum=e.json&&!isFinite(t.sum)?String(t.sum):t.sum),t.quantileValues&&t.quantileValues.length){n.quantileValues=[];for(var l=0;l<t.quantileValues.length;++l)n.quantileValues[l]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(t.quantileValues[l],e)}if(t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.quantile=null,u.prototype.value=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.quantile!=null&&Object.hasOwnProperty.call(e,"quantile")&&n.uint32(9).double(e.quantile),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&n.uint32(17).double(e.value),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.quantile=e.double();break}case 2:{l.value=e.double();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.quantile!=null&&e.hasOwnProperty("quantile")&&typeof e.quantile!="number"?"quantile: number expected":e.value!=null&&e.hasOwnProperty("value")&&typeof e.value!="number"?"value: number expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return e;var n=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return e.quantile!=null&&(n.quantile=Number(e.quantile)),e.value!=null&&(n.value=Number(e.value)),n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.quantile=0,s.value=0),e.quantile!=null&&e.hasOwnProperty("quantile")&&(s.quantile=n.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),e.value!=null&&e.hasOwnProperty("value")&&(s.value=n.json&&!isFinite(e.value)?String(e.value):e.value),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},u}(),a}(),c.Exemplar=function(){function a(t){if(this.filteredAttributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.filteredAttributes=_.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(17).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(25).double(e.asDouble),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(34).bytes(e.spanId),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(42).bytes(e.traceId),e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.filteredAttributes!=null&&e.filteredAttributes.length)for(var s=0;s<e.filteredAttributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.filteredAttributes[s],n.uint32(58).fork()).ldelim();return n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Exemplar;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.filteredAttributes&&l.filteredAttributes.length||(l.filteredAttributes=[]),l.filteredAttributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.timeUnixNano=e.fixed64();break}case 3:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 4:{l.spanId=e.bytes();break}case 5:{l.traceId=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.filteredAttributes!=null&&e.hasOwnProperty("filteredAttributes")){if(!Array.isArray(e.filteredAttributes))return"filteredAttributes: array expected";for(var s=0;s<e.filteredAttributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.filteredAttributes[s]);if(l)return"filteredAttributes."+l}}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}return e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId))?"spanId: buffer expected":e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId))?"traceId: buffer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Exemplar)return e;var n=new p.opentelemetry.proto.metrics.v1.Exemplar;if(e.filteredAttributes){if(!Array.isArray(e.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");n.filteredAttributes=[];for(var s=0;s<e.filteredAttributes.length;++s){if(typeof e.filteredAttributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");n.filteredAttributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.filteredAttributes[s])}}return e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.filteredAttributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId)))}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.filteredAttributes&&e.filteredAttributes.length){s.filteredAttributes=[];for(var E=0;E<e.filteredAttributes.length;++E)s.filteredAttributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.filteredAttributes[E],n)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),c}(),i}(),r.logs=function(){var i={};return i.v1=function(){var c={};return c.LogsData=function(){function a(u){if(this.resourceLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceLogs=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceLogs!=null&&t.resourceLogs.length)for(var n=0;n<t.resourceLogs.length;++n)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(t.resourceLogs[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceLogs&&s.resourceLogs.length||(s.resourceLogs=[]),s.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceLogs!=null&&t.hasOwnProperty("resourceLogs")){if(!Array.isArray(t.resourceLogs))return"resourceLogs: array expected";for(var e=0;e<t.resourceLogs.length;++e){var n=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(t.resourceLogs[e]);if(n)return"resourceLogs."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogsData)return t;var e=new p.opentelemetry.proto.logs.v1.LogsData;if(t.resourceLogs){if(!Array.isArray(t.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");e.resourceLogs=[];for(var n=0;n<t.resourceLogs.length;++n){if(typeof t.resourceLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");e.resourceLogs[n]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(t.resourceLogs[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceLogs=[]),t.resourceLogs&&t.resourceLogs.length){n.resourceLogs=[];for(var s=0;s<t.resourceLogs.length;++s)n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(t.resourceLogs[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogsData"},a}(),c.ResourceLogs=function(){function a(u){if(this.scopeLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeLogs=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeLogs!=null&&t.scopeLogs.length)for(var n=0;n<t.scopeLogs.length;++n)p.opentelemetry.proto.logs.v1.ScopeLogs.encode(t.scopeLogs[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ResourceLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeLogs&&s.scopeLogs.length||(s.scopeLogs=[]),s.scopeLogs.push(p.opentelemetry.proto.logs.v1.ScopeLogs.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeLogs!=null&&t.hasOwnProperty("scopeLogs")){if(!Array.isArray(t.scopeLogs))return"scopeLogs: array expected";for(var n=0;n<t.scopeLogs.length;++n){var e=p.opentelemetry.proto.logs.v1.ScopeLogs.verify(t.scopeLogs[n]);if(e)return"scopeLogs."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ResourceLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ResourceLogs;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeLogs){if(!Array.isArray(t.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");e.scopeLogs=[];for(var n=0;n<t.scopeLogs.length;++n){if(typeof t.scopeLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");e.scopeLogs[n]=p.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(t.scopeLogs[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeLogs=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeLogs&&t.scopeLogs.length){n.scopeLogs=[];for(var s=0;s<t.scopeLogs.length;++s)n.scopeLogs[s]=p.opentelemetry.proto.logs.v1.ScopeLogs.toObject(t.scopeLogs[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),c.ScopeLogs=function(){function a(u){if(this.logRecords=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.logRecords=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.logRecords!=null&&t.logRecords.length)for(var n=0;n<t.logRecords.length;++n)p.opentelemetry.proto.logs.v1.LogRecord.encode(t.logRecords[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ScopeLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.logRecords&&s.logRecords.length||(s.logRecords=[]),s.logRecords.push(p.opentelemetry.proto.logs.v1.LogRecord.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.logRecords!=null&&t.hasOwnProperty("logRecords")){if(!Array.isArray(t.logRecords))return"logRecords: array expected";for(var n=0;n<t.logRecords.length;++n){var e=p.opentelemetry.proto.logs.v1.LogRecord.verify(t.logRecords[n]);if(e)return"logRecords."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ScopeLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ScopeLogs;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.logRecords){if(!Array.isArray(t.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");e.logRecords=[];for(var n=0;n<t.logRecords.length;++n){if(typeof t.logRecords[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");e.logRecords[n]=p.opentelemetry.proto.logs.v1.LogRecord.fromObject(t.logRecords[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.logRecords=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.logRecords&&t.logRecords.length){n.logRecords=[];for(var s=0;s<t.logRecords.length;++s)n.logRecords[s]=p.opentelemetry.proto.logs.v1.LogRecord.toObject(t.logRecords[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),c.SeverityNumber=function(){var a={},u=Object.create(a);return u[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,u[a[1]="SEVERITY_NUMBER_TRACE"]=1,u[a[2]="SEVERITY_NUMBER_TRACE2"]=2,u[a[3]="SEVERITY_NUMBER_TRACE3"]=3,u[a[4]="SEVERITY_NUMBER_TRACE4"]=4,u[a[5]="SEVERITY_NUMBER_DEBUG"]=5,u[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,u[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,u[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,u[a[9]="SEVERITY_NUMBER_INFO"]=9,u[a[10]="SEVERITY_NUMBER_INFO2"]=10,u[a[11]="SEVERITY_NUMBER_INFO3"]=11,u[a[12]="SEVERITY_NUMBER_INFO4"]=12,u[a[13]="SEVERITY_NUMBER_WARN"]=13,u[a[14]="SEVERITY_NUMBER_WARN2"]=14,u[a[15]="SEVERITY_NUMBER_WARN3"]=15,u[a[16]="SEVERITY_NUMBER_WARN4"]=16,u[a[17]="SEVERITY_NUMBER_ERROR"]=17,u[a[18]="SEVERITY_NUMBER_ERROR2"]=18,u[a[19]="SEVERITY_NUMBER_ERROR3"]=19,u[a[20]="SEVERITY_NUMBER_ERROR4"]=20,u[a[21]="SEVERITY_NUMBER_FATAL"]=21,u[a[22]="SEVERITY_NUMBER_FATAL2"]=22,u[a[23]="SEVERITY_NUMBER_FATAL3"]=23,u[a[24]="SEVERITY_NUMBER_FATAL4"]=24,u}(),c.LogRecordFlags=function(){var a={},u=Object.create(a);return u[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,u[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,u}(),c.LogRecord=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(9).fixed64(t.timeUnixNano),t.severityNumber!=null&&Object.hasOwnProperty.call(t,"severityNumber")&&e.uint32(16).int32(t.severityNumber),t.severityText!=null&&Object.hasOwnProperty.call(t,"severityText")&&e.uint32(26).string(t.severityText),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.body,e.uint32(42).fork()).ldelim(),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(50).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(56).uint32(t.droppedAttributesCount),t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(69).fixed32(t.flags),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(74).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(82).bytes(t.spanId),t.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"observedTimeUnixNano")&&e.uint32(89).fixed64(t.observedTimeUnixNano),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogRecord;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.timeUnixNano=t.fixed64();break}case 11:{s.observedTimeUnixNano=t.fixed64();break}case 2:{s.severityNumber=t.int32();break}case 3:{s.severityText=t.string();break}case 5:{s.body=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}case 6:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 7:{s.droppedAttributesCount=t.uint32();break}case 8:{s.flags=t.fixed32();break}case 9:{s.traceId=t.bytes();break}case 10:{s.spanId=t.bytes();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&!_.isInteger(t.observedTimeUnixNano)&&!(t.observedTimeUnixNano&&_.isInteger(t.observedTimeUnixNano.low)&&_.isInteger(t.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(t.severityNumber!=null&&t.hasOwnProperty("severityNumber"))switch(t.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(t.severityText!=null&&t.hasOwnProperty("severityText")&&!_.isString(t.severityText))return"severityText: string expected";if(t.body!=null&&t.hasOwnProperty("body")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.body);if(e)return"body."+e}if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var n=0;n<t.attributes.length;++n){var e=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[n]);if(e)return"attributes."+e}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId))?"traceId: buffer expected":t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId))?"spanId: buffer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogRecord)return t;var e=new p.opentelemetry.proto.logs.v1.LogRecord;switch(t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.observedTimeUnixNano!=null&&(_.Long?(e.observedTimeUnixNano=_.Long.fromValue(t.observedTimeUnixNano)).unsigned=!1:typeof t.observedTimeUnixNano=="string"?e.observedTimeUnixNano=parseInt(t.observedTimeUnixNano,10):typeof t.observedTimeUnixNano=="number"?e.observedTimeUnixNano=t.observedTimeUnixNano:typeof t.observedTimeUnixNano=="object"&&(e.observedTimeUnixNano=new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber())),t.severityNumber){default:if(typeof t.severityNumber=="number"){e.severityNumber=t.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:e.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:e.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:e.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:e.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:e.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:e.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:e.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:e.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:e.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:e.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:e.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:e.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:e.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:e.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:e.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:e.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:e.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:e.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:e.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:e.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:e.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:e.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:e.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:e.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:e.severityNumber=24;break}if(t.severityText!=null&&(e.severityText=String(t.severityText)),t.body!=null){if(typeof t.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");e.body=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.body)}if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.flags!=null&&(e.flags=t.flags>>>0),t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(n.severityNumber=e.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,n.severityText="",n.body=null,n.droppedAttributesCount=0,n.flags=0,e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),_.Long){var s=new _.Long(0,0,!1);n.observedTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.observedTimeUnixNano=e.longs===String?"0":0}if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.severityNumber!=null&&t.hasOwnProperty("severityNumber")&&(n.severityNumber=e.enums===String?p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]===void 0?t.severityNumber:p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]:t.severityNumber),t.severityText!=null&&t.hasOwnProperty("severityText")&&(n.severityText=t.severityText),t.body!=null&&t.hasOwnProperty("body")&&(n.body=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.body,e)),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&(typeof t.observedTimeUnixNano=="number"?n.observedTimeUnixNano=e.longs===String?String(t.observedTimeUnixNano):t.observedTimeUnixNano:n.observedTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.observedTimeUnixNano):e.longs===Number?new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber():t.observedTimeUnixNano),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),c}(),i}(),r}(),o}();RL.exports=p});var Mi=S(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.getOtlpEncoder=pe.encodeAsString=pe.encodeAsLongBits=pe.toLongBits=pe.hrTimeToNanos=void 0;var Pi=x();function cc(o){let r=BigInt(1e9);return BigInt(o[0])*r+BigInt(o[1])}pe.hrTimeToNanos=cc;function PL(o){let r=Number(BigInt.asUintN(32,o)),i=Number(BigInt.asUintN(32,o>>BigInt(32)));return{low:r,high:i}}pe.toLongBits=PL;function lc(o){let r=cc(o);return PL(r)}pe.encodeAsLongBits=lc;function ML(o){return cc(o).toString()}pe.encodeAsString=ML;var GX=typeof BigInt<"u"?ML:Pi.hrTimeToNanoseconds;function yL(o){return o}function gL(o){if(o!==void 0)return(0,Pi.hexToBinary)(o)}var HX={encodeHrTime:lc,encodeSpanContext:Pi.hexToBinary,encodeOptionalSpanContext:gL};function kX(o){var r,i;if(o===void 0)return HX;let c=(r=o.useLongBits)!==null&&r!==void 0?r:!0,a=(i=o.useHex)!==null&&i!==void 0?i:!1;return{encodeHrTime:c?lc:GX,encodeSpanContext:a?yL:Pi.hexToBinary,encodeOptionalSpanContext:a?yL:gL}}pe.getOtlpEncoder=kX});var gi=S(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.toAnyValue=_e.toKeyValue=_e.toAttributes=_e.createInstrumentationScope=_e.createResource=void 0;function YX(o){return{attributes:LL(o.attributes),droppedAttributesCount:0}}_e.createResource=YX;function FX(o){return{name:o.name,version:o.version}}_e.createInstrumentationScope=FX;function LL(o){return Object.keys(o).map(r=>pc(r,o[r]))}_e.toAttributes=LL;function pc(o,r){return{key:o,value:_c(r)}}_e.toKeyValue=pc;function _c(o){let r=typeof o;return r==="string"?{stringValue:o}:r==="number"?Number.isInteger(o)?{intValue:o}:{doubleValue:o}:r==="boolean"?{boolValue:o}:o instanceof Uint8Array?{bytesValue:o}:Array.isArray(o)?{arrayValue:{values:o.map(_c)}}:r==="object"&&o!=null?{kvlistValue:{values:Object.entries(o).map(([i,c])=>pc(i,c))}}:{}}_e.toAnyValue=_c});var Ec=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.toLogAttributes=sr.createExportLogsServiceRequest=void 0;var KX=Mi(),Li=gi();function jX(o,r){let i=(0,KX.getOtlpEncoder)(r);return{resourceLogs:WX(o,i)}}sr.createExportLogsServiceRequest=jX;function qX(o){let r=new Map;for(let i of o){let{resource:c,instrumentationScope:{name:a,version:u="",schemaUrl:t=""}}=i,e=r.get(c);e||(e=new Map,r.set(c,e));let n=`${a}@${u}:${t}`,s=e.get(n);s||(s=[],e.set(n,s)),s.push(i)}return r}function WX(o,r){let i=qX(o);return Array.from(i,([c,a])=>({resource:(0,Li.createResource)(c),scopeLogs:Array.from(a,([,u])=>({scope:(0,Li.createInstrumentationScope)(u[0].instrumentationScope),logRecords:u.map(t=>zX(t,r)),schemaUrl:u[0].instrumentationScope.schemaUrl})),schemaUrl:void 0}))}function zX(o,r){var i,c,a;return{timeUnixNano:r.encodeHrTime(o.hrTime),observedTimeUnixNano:r.encodeHrTime(o.hrTimeObserved),severityNumber:o.severityNumber,severityText:o.severityText,body:(0,Li.toAnyValue)(o.body),attributes:IL(o.attributes),droppedAttributesCount:o.droppedAttributesCount,flags:(i=o.spanContext)===null||i===void 0?void 0:i.traceFlags,traceId:r.encodeOptionalSpanContext((c=o.spanContext)===null||c===void 0?void 0:c.traceId),spanId:r.encodeOptionalSpanContext((a=o.spanContext)===null||a===void 0?void 0:a.spanId)}}function IL(o){return Object.keys(o).map(r=>(0,Li.toKeyValue)(r,o[r]))}sr.toLogAttributes=IL});var xL=S(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ProtobufLogsSerializer=void 0;var CL=yi(),JX=Ec(),XX=CL.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,$X=CL.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;Ii.ProtobufLogsSerializer={serializeRequest:o=>{let r=(0,JX.createExportLogsServiceRequest)(o);return $X.encode(r).finish()},deserializeResponse:o=>XX.decode(o)}});var bL=S(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.ProtobufLogsSerializer=void 0;var QX=xL();Object.defineProperty(Ci,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return QX.ProtobufLogsSerializer}})});var Tc=S(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.createExportMetricsServiceRequest=ge.toMetric=ge.toScopeMetrics=ge.toResourceMetrics=void 0;var UL=(m(),N(y)),cr=_i(),ZX=Mi(),Kr=gi();function VL(o,r){let i=(0,ZX.getOtlpEncoder)(r);return{resource:(0,Kr.createResource)(o.resource),schemaUrl:void 0,scopeMetrics:wL(o.scopeMetrics,i)}}ge.toResourceMetrics=VL;function wL(o,r){return Array.from(o.map(i=>({scope:(0,Kr.createInstrumentationScope)(i.scope),metrics:i.metrics.map(c=>BL(c,r)),schemaUrl:i.scope.schemaUrl})))}ge.toScopeMetrics=wL;function BL(o,r){let i={name:o.descriptor.name,description:o.descriptor.description,unit:o.descriptor.unit},c=n$(o.aggregationTemporality);switch(o.dataPointType){case cr.DataPointType.SUM:i.sum={aggregationTemporality:c,isMonotonic:o.isMonotonic,dataPoints:DL(o,r)};break;case cr.DataPointType.GAUGE:i.gauge={dataPoints:DL(o,r)};break;case cr.DataPointType.HISTOGRAM:i.histogram={aggregationTemporality:c,dataPoints:t$(o,r)};break;case cr.DataPointType.EXPONENTIAL_HISTOGRAM:i.exponentialHistogram={aggregationTemporality:c,dataPoints:r$(o,r)};break}return i}ge.toMetric=BL;function e$(o,r,i){let c={attributes:(0,Kr.toAttributes)(o.attributes),startTimeUnixNano:i.encodeHrTime(o.startTime),timeUnixNano:i.encodeHrTime(o.endTime)};switch(r){case UL.ValueType.INT:c.asInt=o.value;break;case UL.ValueType.DOUBLE:c.asDouble=o.value;break}return c}function DL(o,r){return o.dataPoints.map(i=>e$(i,o.descriptor.valueType,r))}function t$(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,Kr.toAttributes)(i.attributes),bucketCounts:c.buckets.counts,explicitBounds:c.buckets.boundaries,count:c.count,sum:c.sum,min:c.min,max:c.max,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function r$(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,Kr.toAttributes)(i.attributes),count:c.count,min:c.min,max:c.max,sum:c.sum,positive:{offset:c.positive.offset,bucketCounts:c.positive.bucketCounts},negative:{offset:c.negative.offset,bucketCounts:c.negative.bucketCounts},scale:c.scale,zeroCount:c.zeroCount,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function n$(o){switch(o){case cr.AggregationTemporality.DELTA:return 1;case cr.AggregationTemporality.CUMULATIVE:return 2}}function o$(o,r){return{resourceMetrics:o.map(i=>VL(i,r))}}ge.createExportMetricsServiceRequest=o$});var HL=S(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ProtobufMetricsSerializer=void 0;var GL=yi(),i$=Tc(),a$=GL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,u$=GL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;xi.ProtobufMetricsSerializer={serializeRequest:o=>{let r=(0,i$.createExportMetricsServiceRequest)([o]);return u$.encode(r).finish()},deserializeResponse:o=>a$.decode(o)}});var kL=S(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.ProtobufMetricsSerializer=void 0;var s$=HL();Object.defineProperty(bi,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return s$.ProtobufMetricsSerializer}})});var Sc=S(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.createExportTraceServiceRequest=Le.toOtlpSpanEvent=Le.toOtlpLink=Le.sdkSpanToOtlpSpan=void 0;var jr=gi(),c$=Mi();function YL(o,r){var i;let c=o.spanContext(),a=o.status;return{traceId:r.encodeSpanContext(c.traceId),spanId:r.encodeSpanContext(c.spanId),parentSpanId:r.encodeOptionalSpanContext(o.parentSpanId),traceState:(i=c.traceState)===null||i===void 0?void 0:i.serialize(),name:o.name,kind:o.kind==null?0:o.kind+1,startTimeUnixNano:r.encodeHrTime(o.startTime),endTimeUnixNano:r.encodeHrTime(o.endTime),attributes:(0,jr.toAttributes)(o.attributes),droppedAttributesCount:o.droppedAttributesCount,events:o.events.map(u=>KL(u,r)),droppedEventsCount:o.droppedEventsCount,status:{code:a.code,message:a.message},links:o.links.map(u=>FL(u,r)),droppedLinksCount:o.droppedLinksCount}}Le.sdkSpanToOtlpSpan=YL;function FL(o,r){var i;return{attributes:o.attributes?(0,jr.toAttributes)(o.attributes):[],spanId:r.encodeSpanContext(o.context.spanId),traceId:r.encodeSpanContext(o.context.traceId),traceState:(i=o.context.traceState)===null||i===void 0?void 0:i.serialize(),droppedAttributesCount:o.droppedAttributesCount||0}}Le.toOtlpLink=FL;function KL(o,r){return{attributes:o.attributes?(0,jr.toAttributes)(o.attributes):[],name:o.name,timeUnixNano:r.encodeHrTime(o.time),droppedAttributesCount:o.droppedAttributesCount||0}}Le.toOtlpSpanEvent=KL;function l$(o,r){let i=(0,c$.getOtlpEncoder)(r);return{resourceSpans:_$(o,i)}}Le.createExportTraceServiceRequest=l$;function p$(o){let r=new Map;for(let i of o){let c=r.get(i.resource);c||(c=new Map,r.set(i.resource,c));let a=`${i.instrumentationLibrary.name}@${i.instrumentationLibrary.version||""}:${i.instrumentationLibrary.schemaUrl||""}`,u=c.get(a);u||(u=[],c.set(a,u)),u.push(i)}return r}function _$(o,r){let i=p$(o),c=[],a=i.entries(),u=a.next();for(;!u.done;){let[t,e]=u.value,n=[],s=e.values(),l=s.next();for(;!l.done;){let O=l.value;if(O.length>0){let g=O.map(ue=>YL(ue,r));n.push({scope:(0,jr.createInstrumentationScope)(O[0].instrumentationLibrary),spans:g,schemaUrl:O[0].instrumentationLibrary.schemaUrl})}l=s.next()}let E={resource:(0,jr.createResource)(t),scopeSpans:n,schemaUrl:void 0};c.push(E),u=a.next()}return c}});var qL=S(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.ProtobufTraceSerializer=void 0;var jL=yi(),E$=Sc(),T$=jL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,S$=jL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;Ui.ProtobufTraceSerializer={serializeRequest:o=>{let r=(0,E$.createExportTraceServiceRequest)(o);return S$.encode(r).finish()},deserializeResponse:o=>T$.decode(o)}});var WL=S(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.ProtobufTraceSerializer=void 0;var f$=qL();Object.defineProperty(Di,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return f$.ProtobufTraceSerializer}})});var zL=S(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.JsonLogsSerializer=void 0;var d$=Ec();Vi.JsonLogsSerializer={serializeRequest:o=>{let r=(0,d$.createExportLogsServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var JL=S(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.JsonLogsSerializer=void 0;var A$=zL();Object.defineProperty(wi,"JsonLogsSerializer",{enumerable:!0,get:function(){return A$.JsonLogsSerializer}})});var XL=S(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.JsonMetricsSerializer=void 0;var v$=Tc();Bi.JsonMetricsSerializer={serializeRequest:o=>{let r=(0,v$.createExportMetricsServiceRequest)([o],{useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var $L=S(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.JsonMetricsSerializer=void 0;var O$=XL();Object.defineProperty(Gi,"JsonMetricsSerializer",{enumerable:!0,get:function(){return O$.JsonMetricsSerializer}})});var QL=S(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.JsonTraceSerializer=void 0;var m$=Sc();Hi.JsonTraceSerializer={serializeRequest:o=>{let r=(0,m$.createExportTraceServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var ZL=S(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.JsonTraceSerializer=void 0;var h$=QL();Object.defineProperty(ki,"JsonTraceSerializer",{enumerable:!0,get:function(){return h$.JsonTraceSerializer}})});var fc=S(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.JsonTraceSerializer=ne.JsonMetricsSerializer=ne.JsonLogsSerializer=ne.ProtobufTraceSerializer=ne.ProtobufMetricsSerializer=ne.ProtobufLogsSerializer=void 0;var N$=bL();Object.defineProperty(ne,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return N$.ProtobufLogsSerializer}});var R$=kL();Object.defineProperty(ne,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return R$.ProtobufMetricsSerializer}});var y$=WL();Object.defineProperty(ne,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return y$.ProtobufTraceSerializer}});var P$=JL();Object.defineProperty(ne,"JsonLogsSerializer",{enumerable:!0,get:function(){return P$.JsonLogsSerializer}});var M$=$L();Object.defineProperty(ne,"JsonMetricsSerializer",{enumerable:!0,get:function(){return M$.JsonMetricsSerializer}});var g$=ZL();Object.defineProperty(ne,"JsonTraceSerializer",{enumerable:!0,get:function(){return g$.JsonTraceSerializer}})});function eI(o){var r=[429,502,503,504];return r.includes(o)}function tI(o){if(o!=null){var r=Number.parseInt(o,10);if(Number.isInteger(r))return r>0?r*1e3:-1;var i=new Date(o).getTime()-Date.now();return i>=0?i:0}}var rI=d(()=>{});var aI={};Ot(aI,{compressAndSend:()=>iI,createHttpAgent:()=>C$,sendWithHttp:()=>L$});function L$(o,r,i,c,a){var u=new URL(o.url),t=Number(process.versions.node.split(".")[0]),e={hostname:u.hostname,port:u.port,path:u.pathname,method:"POST",headers:dc({},o.headers()),agent:r},n=u.protocol==="http:"?Yi.request:Fi.request,s=n(e,function(E){var O=[];E.on("data",function(g){return O.push(g)}),E.on("end",function(){if(E.statusCode&&E.statusCode<299)c({status:"success",data:Buffer.concat(O)});else if(E.statusCode&&eI(E.statusCode))c({status:"retryable",retryInMillis:tI(E.headers["retry-after"])});else{var g=new Et(E.statusMessage,E.statusCode,Buffer.concat(O).toString());c({status:"failure",error:g})}})});s.setTimeout(a,function(){s.destroy(),c({status:"failure",error:new Error("Request Timeout")})}),s.on("error",function(E){c({status:"failure",error:E})});var l=t>=14?"close":"abort";s.on(l,function(){c({status:"failure",error:new Error("Request timed out")})}),iI(s,o.compression,i,function(E){c({status:"failure",error:E})})}function iI(o,r,i,c){var a=I$(i);r==="gzip"&&(o.setHeader("Content-Encoding","gzip"),a=a.on("error",c).pipe(nI.createGzip()).on("error",c)),a.pipe(o).on("error",c)}function I$(o){var r=new oI.Readable;return r.push(o),r.push(null),r}function C$(o,r){var i=new URL(o),c=i.protocol==="http:"?Yi.Agent:Fi.Agent;return new c(r)}var Yi,Fi,nI,oI,dc,uI=d(()=>{Yi=Oe(require("http")),Fi=Oe(require("https")),nI=Oe(require("zlib")),oI=require("stream");rI();Ei();dc=function(){return dc=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},dc.apply(this,arguments)}});function sI(o){return new U$(o)}var x$,b$,U$,cI=d(()=>{x$=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},b$=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},U$=function(){function o(r){this._parameters=r,this._send=null,this._agent=null}return o.prototype.send=function(r,i){return x$(this,void 0,void 0,function(){var c,a,u,t=this;return b$(this,function(e){return this._send==null&&(c=(uI(),N(aI)),a=c.sendWithHttp,u=c.createHttpAgent,this._agent=u(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(n){var s;(s=t._send)===null||s===void 0||s.call(t,t._parameters,t._agent,r,function(l){n(l)},i)})]})})},o.prototype.shutdown=function(){},o}()});function k$(){return Math.random()*(2*lI)-lI}function pI(o){return new Y$(o.transport)}var D$,V$,w$,B$,G$,H$,lI,Y$,_I=d(()=>{D$=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},V$=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},w$=5,B$=1e3,G$=5e3,H$=1.5,lI=.2;Y$=function(){function o(r){this._transport=r}return o.prototype.retry=function(r,i,c){var a=this;return new Promise(function(u,t){setTimeout(function(){a._transport.send(r,i).then(u,t)},c)})},o.prototype.send=function(r,i){var c;return D$(this,void 0,void 0,function(){var a,u,t,e,n,s,l;return V$(this,function(E){switch(E.label){case 0:return a=Date.now()+i,[4,this._transport.send(r,i)];case 1:u=E.sent(),t=w$,e=B$,E.label=2;case 2:return u.status==="retryable"&&t>0?(t--,n=Math.max(Math.min(e,G$)+k$(),0),e=e*H$,s=(c=u.retryInMillis)!==null&&c!==void 0?c:n,l=a-Date.now(),s>l?[2,u]:[4,this.retry(r,l,s)]):[3,4];case 3:return u=E.sent(),[3,2];case 4:return[2,u]}})})},o.prototype.shutdown=function(){return this._transport.shutdown()},o}()});function EI(o,r){return vi({transport:pI({transport:sI(o)}),serializer:r,promiseHandler:Ai(o)},{timeout:o.timeoutMillis})}var TI=d(()=>{Ws();cI();qs();_I()});function SI(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!=null&&i!==""){var c=Number(i);if(!Number.isNaN(c)&&Number.isFinite(c)&&c>0)return c;k.warn("Configuration: "+o+" is invalid, expected number greater than 0 (actual: "+i+")")}}function F$(o){var r=SI("OTEL_EXPORTER_OTLP_"+o+"_TIMEOUT"),i=SI("OTEL_EXPORTER_OTLP_TIMEOUT");return r??i}function fI(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!==""){if(i==null||i==="none"||i==="gzip")return i;k.warn("Configuration: "+o+" is invalid, expected 'none' or 'gzip' (actual: '"+i+"')")}}function K$(o){var r=fI("OTEL_EXPORTER_OTLP_"+o+"_COMPRESSION"),i=fI("OTEL_EXPORTER_OTLP_COMPRESSION");return r??i}function Ki(o){return{timeoutMillis:F$(o),compression:K$(o)}}var Ac=d(()=>{m()});function dI(o){return function(){var r,i={};return Object.entries((r=o?.())!==null&&r!==void 0?r:{}).forEach(function(c){var a=j$(c,2),u=a[0],t=a[1];typeof t<"u"?i[u]=String(t):k.warn('Header "'+u+'" has invalid value ('+t+") and will be ignored")}),i}}var j$,AI=d(()=>{m();j$=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u}});function q$(o,r,i){var c=ft({},i()),a={};return function(){return r!=null&&Object.assign(a,r()),o!=null&&Object.assign(a,o()),Object.assign(a,c)}}function W$(o){if(o!=null)try{return new URL(o),o}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+o+"'")}}function vI(o,r,i){var c,a,u,t;return ft(ft({},Si(o,r,i)),{headers:q$(dI(o.headers),r.headers,i.headers),url:(a=(c=W$(o.url))!==null&&c!==void 0?c:r.url)!==null&&a!==void 0?a:i.url,agentOptions:(t=(u=o.agentOptions)!==null&&u!==void 0?u:r.agentOptions)!==null&&t!==void 0?t:i.agentOptions})}function OI(o,r){return ft(ft({},fi()),{headers:function(){return o},url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}})}var ft,mI=d(()=>{Hr();AI();ft=function(){return ft=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},ft.apply(this,arguments)}});function z$(o){var r,i,c=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_HEADERS"])===null||r===void 0?void 0:r.trim(),a=(i=__fromEnv.OTEL_EXPORTER_OTLP_HEADERS)===null||i===void 0?void 0:i.trim(),u=qr.baggageUtils.parseKeyPairsIntoRecord(c),t=qr.baggageUtils.parseKeyPairsIntoRecord(a);if(!(Object.keys(u).length===0&&Object.keys(t).length===0))return Object.assign({},qr.baggageUtils.parseKeyPairsIntoRecord(a),qr.baggageUtils.parseKeyPairsIntoRecord(c))}function J$(o){try{var r=new URL(o);return r.toString()}catch{k.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}}function X$(o,r){try{new URL(o)}catch{k.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}o.endsWith("/")||(o=o+"/"),o+=r;try{new URL(o)}catch{k.warn("Configuration: Provided URL appended with '"+r+"' is not a valid URL, using 'undefined' instead of '"+o+"'");return}return o}function $$(o){var r,i=(r=__fromEnv.OTEL_EXPORTER_OTLP_ENDPOINT)===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return X$(i,o)}function Q$(o){var r,i=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_ENDPOINT"])===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return J$(i)}function hI(o,r){var i;return ji(ji({},Ki(o)),{url:(i=Q$(o))!==null&&i!==void 0?i:$$(r),headers:Ti(z$(o))})}var qr,ji,NI=d(()=>{qr=Oe(x());m();Ac();Hr();ji=function(){return ji=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},ji.apply(this,arguments)}});function Z$(o){return o?.keepAlive!=null&&(o.httpAgentOptions!=null?o.httpAgentOptions.keepAlive==null&&(o.httpAgentOptions.keepAlive=o.keepAlive):o.httpAgentOptions={keepAlive:o.keepAlive}),o.httpAgentOptions}function RI(o,r,i,c){return o.metadata&&k.warn("Metadata cannot be set when using http"),vI({url:o.url,headers:Ti(o.headers),concurrencyLimit:o.concurrencyLimit,timeoutMillis:o.timeoutMillis,compression:o.compression,agentOptions:Z$(o)},hI(r,i),OI(c,i))}var yI=d(()=>{mI();NI();m();Hr()});var vc={};Ot(vc,{convertLegacyHttpOptions:()=>RI,createOtlpHttpExportDelegate:()=>EI,getSharedConfigurationFromEnvironment:()=>Ki});var Oc=d(()=>{TI();Ac();yI()});var MI=S(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.OTLPTraceExporter=void 0;var e5=(Js(),N(zs)),t5=yg(),r5=fc(),PI=(Oc(),N(vc)),mc=class extends e5.OTLPExporterBase{constructor(r={}){super((0,PI.createOtlpHttpExportDelegate)((0,PI.convertLegacyHttpOptions)(r,"TRACES","v1/traces",{"User-Agent":`OTel-OTLP-Exporter-JavaScript/${t5.VERSION}`,"Content-Type":"application/json"}),r5.JsonTraceSerializer))}};qi.OTLPTraceExporter=mc});var gI=S(dt=>{"use strict";var n5=dt&&dt.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),o5=dt&&dt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&n5(r,o,i)};Object.defineProperty(dt,"__esModule",{value:!0});o5(MI(),dt)});var LI=S(At=>{"use strict";var i5=At&&At.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),a5=At&&At.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&i5(r,o,i)};Object.defineProperty(At,"__esModule",{value:!0});a5(gI(),At)});var II=S(vt=>{"use strict";var u5=vt&&vt.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),s5=vt&&vt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&u5(r,o,i)};Object.defineProperty(vt,"__esModule",{value:!0});s5(LI(),vt)});var hc=S(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.AggregationTemporalityPreference=void 0;var c5;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE",o[o.LOWMEMORY=2]="LOWMEMORY"})(c5=Wr.AggregationTemporalityPreference||(Wr.AggregationTemporalityPreference={}))});var Rc=S(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.OTLPMetricExporterBase=z.LowMemoryTemporalitySelector=z.DeltaTemporalitySelector=z.CumulativeTemporalitySelector=void 0;var l5=x(),H=_i(),CI=hc(),p5=(Js(),N(zs)),_5=(m(),N(y)),E5=()=>H.AggregationTemporality.CUMULATIVE;z.CumulativeTemporalitySelector=E5;var T5=o=>{switch(o){case H.InstrumentType.COUNTER:case H.InstrumentType.OBSERVABLE_COUNTER:case H.InstrumentType.GAUGE:case H.InstrumentType.HISTOGRAM:case H.InstrumentType.OBSERVABLE_GAUGE:return H.AggregationTemporality.DELTA;case H.InstrumentType.UP_DOWN_COUNTER:case H.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return H.AggregationTemporality.CUMULATIVE}};z.DeltaTemporalitySelector=T5;var S5=o=>{switch(o){case H.InstrumentType.COUNTER:case H.InstrumentType.HISTOGRAM:return H.AggregationTemporality.DELTA;case H.InstrumentType.GAUGE:case H.InstrumentType.UP_DOWN_COUNTER:case H.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case H.InstrumentType.OBSERVABLE_COUNTER:case H.InstrumentType.OBSERVABLE_GAUGE:return H.AggregationTemporality.CUMULATIVE}};z.LowMemoryTemporalitySelector=S5;function f5(){let o=(0,l5.getEnv)(),r=o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return r==="cumulative"?z.CumulativeTemporalitySelector:r==="delta"?z.DeltaTemporalitySelector:r==="lowmemory"?z.LowMemoryTemporalitySelector:(_5.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),z.CumulativeTemporalitySelector)}function d5(o){return o!=null?o===CI.AggregationTemporalityPreference.DELTA?z.DeltaTemporalitySelector:o===CI.AggregationTemporalityPreference.LOWMEMORY?z.LowMemoryTemporalitySelector:z.CumulativeTemporalitySelector:f5()}function A5(o){return o?.aggregationPreference?o.aggregationPreference:r=>H.Aggregation.Default()}var Nc=class extends p5.OTLPExporterBase{constructor(r,i){super(r),this._aggregationSelector=A5(i),this._aggregationTemporalitySelector=d5(i?.temporalityPreference)}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}};z.OTLPMetricExporterBase=Nc});var xI=S(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.VERSION=void 0;Wi.VERSION="0.57.2"});var UI=S(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.OTLPMetricExporter=void 0;var v5=Rc(),O5=fc(),m5=xI(),bI=(Oc(),N(vc)),h5={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${m5.VERSION}`},yc=class extends v5.OTLPMetricExporterBase{constructor(r){super((0,bI.createOtlpHttpExportDelegate)((0,bI.convertLegacyHttpOptions)(r??{},"METRICS","v1/metrics",Object.assign(Object.assign({},h5),{"Content-Type":"application/json"})),O5.JsonMetricsSerializer),r)}};zi.OTLPMetricExporter=yc});var DI=S(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.OTLPMetricExporter=void 0;var N5=UI();Object.defineProperty(Ji,"OTLPMetricExporter",{enumerable:!0,get:function(){return N5.OTLPMetricExporter}})});var VI=S(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.OTLPMetricExporter=void 0;var R5=DI();Object.defineProperty(Xi,"OTLPMetricExporter",{enumerable:!0,get:function(){return R5.OTLPMetricExporter}})});var wI=S(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.OTLPMetricExporterBase=oe.LowMemoryTemporalitySelector=oe.DeltaTemporalitySelector=oe.CumulativeTemporalitySelector=oe.AggregationTemporalityPreference=oe.OTLPMetricExporter=void 0;var y5=VI();Object.defineProperty(oe,"OTLPMetricExporter",{enumerable:!0,get:function(){return y5.OTLPMetricExporter}});var P5=hc();Object.defineProperty(oe,"AggregationTemporalityPreference",{enumerable:!0,get:function(){return P5.AggregationTemporalityPreference}});var $i=Rc();Object.defineProperty(oe,"CumulativeTemporalitySelector",{enumerable:!0,get:function(){return $i.CumulativeTemporalitySelector}});Object.defineProperty(oe,"DeltaTemporalitySelector",{enumerable:!0,get:function(){return $i.DeltaTemporalitySelector}});Object.defineProperty(oe,"LowMemoryTemporalitySelector",{enumerable:!0,get:function(){return $i.LowMemoryTemporalitySelector}});Object.defineProperty(oe,"OTLPMetricExporterBase",{enumerable:!0,get:function(){return $i.OTLPMetricExporterBase}})});var en={REQUEST:"openclaw.request",AGENT_TURN:"openclaw.agent.turn",TOOL_PREFIX:"tool.",MESSAGE_RECEIVED:"openclaw.message.received"},me={LLM_REQUESTS:"openclaw.llm.requests",LLM_TOKENS_INPUT:"openclaw.llm.tokens.input",LLM_TOKENS_OUTPUT:"openclaw.llm.tokens.output",LLM_TOKENS_CACHE_READ:"openclaw.llm.tokens.cache_read",LLM_DURATION:"openclaw.llm.duration",TOOL_CALLS:"openclaw.tool.calls",TOOL_ERRORS:"openclaw.tool.errors",TOOL_DURATION:"openclaw.tool.duration",MESSAGES_RECEIVED:"openclaw.messages.received",ESTIMATED_COST_USD:"openclaw.estimated_cost.usd"},B={SESSION_KEY:"openclaw.session.key",CHANNEL:"openclaw.message.channel",MODEL:"gen_ai.request.model",PROVIDER:"gen_ai.system",INPUT_TOKENS:"gen_ai.usage.input_tokens",OUTPUT_TOKENS:"gen_ai.usage.output_tokens",CACHE_READ_TOKENS:"gen_ai.usage.cache_read.input_tokens",CACHE_WRITE_TOKENS:"gen_ai.usage.cache_write.input_tokens",TOOL_NAME:"tool.name",TOOL_SUCCESS:"tool.success",AGENT_NAME:"openclaw.agent.name"},ua={API_KEY:"MANIFEST_API_KEY",ENDPOINT:"MANIFEST_ENDPOINT"},Ce="mnfst_",tn={ENDPOINT:"https://app.manifest.build/otlp",SERVICE_NAME:"openclaw-gateway",METRICS_INTERVAL_MS:3e4},xc={METRICS_INTERVAL_MS:1e4};function bc(o){let r=o&&typeof o=="object"&&!Array.isArray(o)?o:{};r.config&&typeof r.config=="object"&&!Array.isArray(r.config)&&(r=r.config);let i=r.mode==="cloud"?"cloud":"local",c=typeof r.apiKey=="string"&&r.apiKey.length>0?r.apiKey:__fromEnv[ua.API_KEY]||"",a=__fromEnv[ua.ENDPOINT],u=typeof r.endpoint=="string"&&r.endpoint.length>0?r.endpoint:a&&a.length>0?a:tn.ENDPOINT,t=typeof r.serviceName=="string"&&r.serviceName.length>0?r.serviceName:tn.SERVICE_NAME,e=typeof r.captureContent=="boolean"?r.captureContent:!1,n=typeof r.metricsIntervalMs=="number"&&r.metricsIntervalMs>=5e3?r.metricsIntervalMs:tn.METRICS_INTERVAL_MS,s=typeof r.port=="number"&&r.port>0?r.port:2099,l=typeof r.host=="string"&&r.host.length>0?r.host:"127.0.0.1";return{mode:i,apiKey:c,endpoint:u,serviceName:t,captureContent:e,metricsIntervalMs:n,port:s,host:l}}function Uc(o){return o.mode==="local"?null:o.apiKey?o.apiKey.startsWith(Ce)?o.endpoint.startsWith("http")?null:`Invalid endpoint URL '${o.endpoint}'. Must start with http:// or https://. Fix it via:
15
+ `,(0,$o.getConflictResolutionRecipe)(u,r))}return c}};Qo.MetricStorageRegistry=gs});var tg=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.MultiMetricStorage=void 0;var Ls=class{constructor(r){this._backingStorages=r}record(r,i,c,a){this._backingStorages.forEach(u=>{u.record(r,i,c,a)})}};Zo.MultiMetricStorage=Ls});var ng=S(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.BatchObservableResultImpl=ir.ObservableResultImpl=void 0;var or=(m(),N(y)),rg=wr(),BJ=Ko(),Is=class{constructor(r,i){this._instrumentName=r,this._valueType=i,this._buffer=new rg.AttributeHashMap}observe(r,i={}){if(typeof r!="number"){or.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${r}`);return}this._valueType===or.ValueType.INT&&!Number.isInteger(r)&&(or.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),r=Math.trunc(r),!Number.isInteger(r))||this._buffer.set(i,r)}};ir.ObservableResultImpl=Is;var Cs=class{constructor(){this._buffer=new Map}observe(r,i,c={}){if(!(0,BJ.isObservableInstrument)(r))return;let a=this._buffer.get(r);if(a==null&&(a=new rg.AttributeHashMap,this._buffer.set(r,a)),typeof i!="number"){or.diag.warn(`non-number value provided to metric ${r._descriptor.name}: ${i}`);return}r._descriptor.valueType===or.ValueType.INT&&!Number.isInteger(i)&&(or.diag.warn(`INT value type cannot accept a floating-point value for ${r._descriptor.name}, ignoring the fractional digits.`),i=Math.trunc(i),!Number.isInteger(i))||a.set(c,i)}};ir.BatchObservableResultImpl=Cs});var ag=S(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.ObservableRegistry=void 0;var GJ=(m(),N(y)),og=Ko(),ig=ng(),Br=Te(),xs=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(r,i){this._findCallback(r,i)>=0||this._callbacks.push({callback:r,instrument:i})}removeCallback(r,i){let c=this._findCallback(r,i);c<0||this._callbacks.splice(c,1)}addBatchCallback(r,i){let c=new Set(i.filter(og.isObservableInstrument));if(c.size===0){GJ.diag.error("BatchObservableCallback is not associated with valid instruments",i);return}this._findBatchCallback(r,c)>=0||this._batchCallbacks.push({callback:r,instruments:c})}removeBatchCallback(r,i){let c=new Set(i.filter(og.isObservableInstrument)),a=this._findBatchCallback(r,c);a<0||this._batchCallbacks.splice(a,1)}async observe(r,i){let c=this._observeCallbacks(r,i),a=this._observeBatchCallbacks(r,i);return(await(0,Br.PromiseAllSettled)([...c,...a])).filter(Br.isPromiseAllSettledRejectionResult).map(e=>e.reason)}_observeCallbacks(r,i){return this._callbacks.map(async({callback:c,instrument:a})=>{let u=new ig.ObservableResultImpl(a._descriptor.name,a._descriptor.valueType),t=Promise.resolve(c(u));i!=null&&(t=(0,Br.callWithTimeout)(t,i)),await t,a._metricStorages.forEach(e=>{e.record(u._buffer,r)})})}_observeBatchCallbacks(r,i){return this._batchCallbacks.map(async({callback:c,instruments:a})=>{let u=new ig.BatchObservableResultImpl,t=Promise.resolve(c(u));i!=null&&(t=(0,Br.callWithTimeout)(t,i)),await t,a.forEach(e=>{let n=u._buffer.get(e);n!=null&&e._metricStorages.forEach(s=>{s.record(n,r)})})})}_findCallback(r,i){return this._callbacks.findIndex(c=>c.callback===r&&c.instrument===i)}_findBatchCallback(r,i){return this._batchCallbacks.findIndex(c=>c.callback===r&&(0,Br.setEquals)(c.instruments,i))}};ei.ObservableRegistry=xs});var ug=S(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.SyncMetricStorage=void 0;var HJ=Os(),kJ=Rs(),YJ=Ps(),bs=class extends HJ.MetricStorage{constructor(r,i,c,a,u){super(r),this._attributesProcessor=c,this._aggregationCardinalityLimit=u,this._deltaMetricStorage=new kJ.DeltaMetricProcessor(i,this._aggregationCardinalityLimit),this._temporalMetricStorage=new YJ.TemporalMetricProcessor(i,a)}record(r,i,c,a){i=this._attributesProcessor.process(i,c),this._deltaMetricStorage.record(r,i,c,a)}collect(r,i){let c=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,c,i)}};ti.SyncMetricStorage=bs});var Ds=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.FilteringAttributesProcessor=ze.NoopAttributesProcessor=ze.AttributesProcessor=void 0;var Gr=class{static Noop(){return FJ}};ze.AttributesProcessor=Gr;var ri=class extends Gr{process(r,i){return r}};ze.NoopAttributesProcessor=ri;var Us=class extends Gr{constructor(r){super(),this._allowedAttributeNames=r}process(r,i){let c={};return Object.keys(r).filter(a=>this._allowedAttributeNames.includes(a)).forEach(a=>c[a]=r[a]),c}};ze.FilteringAttributesProcessor=Us;var FJ=new ri});var sg=S(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.MeterSharedState=void 0;var KJ=De(),jJ=qM(),qJ=Te(),WJ=WM(),zJ=eg(),JJ=tg(),XJ=ag(),$J=ug(),QJ=Ds(),Vs=class{constructor(r,i){this._meterProviderSharedState=r,this._instrumentationScope=i,this.metricStorageRegistry=new zJ.MetricStorageRegistry,this.observableRegistry=new XJ.ObservableRegistry,this.meter=new jJ.Meter(this)}registerMetricStorage(r){let i=this._registerMetricStorage(r,$J.SyncMetricStorage);return i.length===1?i[0]:new JJ.MultiMetricStorage(i)}registerAsyncMetricStorage(r){return this._registerMetricStorage(r,WJ.AsyncMetricStorage)}async collect(r,i,c){let a=await this.observableRegistry.observe(i,c?.timeoutMillis),u=this.metricStorageRegistry.getStorages(r);if(u.length===0)return null;let t=u.map(e=>e.collect(r,i)).filter(qJ.isNotNullish);return t.length===0?{errors:a}:{scopeMetrics:{scope:this._instrumentationScope,metrics:t},errors:a}}_registerMetricStorage(r,i){let a=this._meterProviderSharedState.viewRegistry.findViews(r,this._instrumentationScope).map(u=>{let t=(0,KJ.createInstrumentDescriptorWithView)(u,r),e=this.metricStorageRegistry.findOrUpdateCompatibleStorage(t);if(e!=null)return e;let n=u.aggregation.createAggregator(t),s=new i(t,n,u.attributesProcessor,this._meterProviderSharedState.metricCollectors,u.aggregationCardinalityLimit);return this.metricStorageRegistry.register(s),s});if(a.length===0){let t=this._meterProviderSharedState.selectAggregations(r.type).map(([e,n])=>{let s=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(e,r);if(s!=null)return s;let l=n.createAggregator(r),E=e.selectCardinalityLimit(r.type),O=new i(r,l,QJ.AttributesProcessor.Noop(),[e],E);return this.metricStorageRegistry.registerForCollector(e,O),O});a=a.concat(t)}return a}};ni.MeterSharedState=Vs});var cg=S(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.MeterProviderSharedState=void 0;var ZJ=Te(),eX=jM(),tX=sg(),ws=class{constructor(r){this.resource=r,this.viewRegistry=new eX.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(r){let i=(0,ZJ.instrumentationScopeId)(r),c=this.meterSharedStates.get(i);return c==null&&(c=new tX.MeterSharedState(this,r),this.meterSharedStates.set(i,c)),c}selectAggregations(r){let i=[];for(let c of this.metricCollectors)i.push([c,c.selectAggregation(r)]);return i}};oi.MeterProviderSharedState=ws});var lg=S(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.MetricCollector=void 0;var rX=x(),Bs=class{constructor(r,i){this._sharedState=r,this._metricReader=i}async collect(r){let i=(0,rX.millisToHrTime)(Date.now()),c=[],a=[],u=Array.from(this._sharedState.meterSharedStates.values()).map(async t=>{let e=await t.collect(this,i,r);e?.scopeMetrics!=null&&c.push(e.scopeMetrics),e?.errors!=null&&a.push(...e.errors)});return await Promise.all(u),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:c},errors:a}}async forceFlush(r){await this._metricReader.forceFlush(r)}async shutdown(r){await this._metricReader.shutdown(r)}selectAggregationTemporality(r){return this._metricReader.selectAggregationTemporality(r)}selectAggregation(r){return this._metricReader.selectAggregation(r)}selectCardinalityLimit(r){var i,c,a;return(a=(c=(i=this._metricReader).selectCardinalityLimit)===null||c===void 0?void 0:c.call(i,r))!==null&&a!==void 0?a:2e3}};ii.MetricCollector=Bs});var _g=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.MeterProvider=void 0;var ai=(m(),N(y)),pg=To(),nX=cg(),oX=lg();function iX(o,r){let i=r??pg.Resource.empty();return o?pg.Resource.default().merge(i):i}var Gs=class{constructor(r){var i;if(this._shutdown=!1,this._sharedState=new nX.MeterProviderSharedState(iX((i=r?.mergeResourceWithDefaults)!==null&&i!==void 0?i:!0,r?.resource)),r?.views!=null&&r.views.length>0)for(let c of r.views)this._sharedState.viewRegistry.addView(c);if(r?.readers!=null&&r.readers.length>0)for(let c of r.readers)this.addMetricReader(c)}getMeter(r,i="",c={}){return this._shutdown?(ai.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,ai.createNoopMeter)()):this._sharedState.getMeterSharedState({name:r,version:i,schemaUrl:c.schemaUrl}).meter}addMetricReader(r){let i=new oX.MetricCollector(this._sharedState,r);r.setMetricProducer(i),this._sharedState.metricCollectors.push(i)}async shutdown(r){if(this._shutdown){ai.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(i=>i.shutdown(r)))}async forceFlush(r){if(this._shutdown){ai.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(i=>i.forceFlush(r)))}};ui.MeterProvider=Gs});var si=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.ExactPredicate=ar.PatternPredicate=void 0;var aX=/[\^$\\.+?()[\]{}|]/g,Hs=class o{constructor(r){r==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(o.escapePattern(r)))}match(r){return this._matchAll?!0:this._regexp.test(r)}static escapePattern(r){return`^${r.replace(aX,"\\$&").replace("*",".*")}$`}static hasWildcard(r){return r.includes("*")}};ar.PatternPredicate=Hs;var ks=class{constructor(r){this._matchAll=r===void 0,this._pattern=r}match(r){return!!(this._matchAll||r===this._pattern)}};ar.ExactPredicate=ks});var Tg=S(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.InstrumentSelector=void 0;var Eg=si(),Ys=class{constructor(r){var i;this._nameFilter=new Eg.PatternPredicate((i=r?.name)!==null&&i!==void 0?i:"*"),this._type=r?.type,this._unitFilter=new Eg.ExactPredicate(r?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};ci.InstrumentSelector=Ys});var Sg=S(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.MeterSelector=void 0;var Fs=si(),Ks=class{constructor(r){this._nameFilter=new Fs.ExactPredicate(r?.name),this._versionFilter=new Fs.ExactPredicate(r?.version),this._schemaUrlFilter=new Fs.ExactPredicate(r?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};li.MeterSelector=Ks});var dg=S(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.View=void 0;var uX=si(),fg=Ds(),sX=Tg(),cX=Sg(),lX=wo();function pX(o){return o.instrumentName==null&&o.instrumentType==null&&o.instrumentUnit==null&&o.meterName==null&&o.meterVersion==null&&o.meterSchemaUrl==null}var js=class{constructor(r){var i;if(pX(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||uX.PatternPredicate.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");r.attributeKeys!=null?this.attributesProcessor=new fg.FilteringAttributesProcessor(r.attributeKeys):this.attributesProcessor=fg.AttributesProcessor.Noop(),this.name=r.name,this.description=r.description,this.aggregation=(i=r.aggregation)!==null&&i!==void 0?i:lX.Aggregation.Default(),this.instrumentSelector=new sX.InstrumentSelector({name:r.instrumentName,type:r.instrumentType,unit:r.instrumentUnit}),this.meterSelector=new cX.MeterSelector({name:r.meterName,version:r.meterVersion,schemaUrl:r.meterSchemaUrl}),this.aggregationCardinalityLimit=r.aggregationCardinalityLimit}};pi.View=js});var _i=S(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.TimeoutError=R.View=R.Aggregation=R.SumAggregation=R.LastValueAggregation=R.HistogramAggregation=R.DropAggregation=R.ExponentialHistogramAggregation=R.ExplicitBucketHistogramAggregation=R.DefaultAggregation=R.MeterProvider=R.InstrumentType=R.ConsoleMetricExporter=R.InMemoryMetricExporter=R.PeriodicExportingMetricReader=R.MetricReader=R.DataPointType=R.AggregationTemporality=void 0;var _X=mo();Object.defineProperty(R,"AggregationTemporality",{enumerable:!0,get:function(){return _X.AggregationTemporality}});var EX=Yt();Object.defineProperty(R,"DataPointType",{enumerable:!0,get:function(){return EX.DataPointType}});var TX=is();Object.defineProperty(R,"MetricReader",{enumerable:!0,get:function(){return TX.MetricReader}});var SX=HM();Object.defineProperty(R,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return SX.PeriodicExportingMetricReader}});var fX=YM();Object.defineProperty(R,"InMemoryMetricExporter",{enumerable:!0,get:function(){return fX.InMemoryMetricExporter}});var dX=KM();Object.defineProperty(R,"ConsoleMetricExporter",{enumerable:!0,get:function(){return dX.ConsoleMetricExporter}});var AX=De();Object.defineProperty(R,"InstrumentType",{enumerable:!0,get:function(){return AX.InstrumentType}});var vX=_g();Object.defineProperty(R,"MeterProvider",{enumerable:!0,get:function(){return vX.MeterProvider}});var Je=wo();Object.defineProperty(R,"DefaultAggregation",{enumerable:!0,get:function(){return Je.DefaultAggregation}});Object.defineProperty(R,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return Je.ExplicitBucketHistogramAggregation}});Object.defineProperty(R,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return Je.ExponentialHistogramAggregation}});Object.defineProperty(R,"DropAggregation",{enumerable:!0,get:function(){return Je.DropAggregation}});Object.defineProperty(R,"HistogramAggregation",{enumerable:!0,get:function(){return Je.HistogramAggregation}});Object.defineProperty(R,"LastValueAggregation",{enumerable:!0,get:function(){return Je.LastValueAggregation}});Object.defineProperty(R,"SumAggregation",{enumerable:!0,get:function(){return Je.SumAggregation}});Object.defineProperty(R,"Aggregation",{enumerable:!0,get:function(){return Je.Aggregation}});var OX=dg();Object.defineProperty(R,"View",{enumerable:!0,get:function(){return OX.View}});var mX=Te();Object.defineProperty(R,"TimeoutError",{enumerable:!0,get:function(){return mX.TimeoutError}})});var Ag,vg=d(()=>{Ag=function(){function o(r){this._delegate=r}return o.prototype.export=function(r,i){this._delegate.export(r,i)},o.prototype.forceFlush=function(){return this._delegate.forceFlush()},o.prototype.shutdown=function(){return this._delegate.shutdown()},o}()});var hX,Et,Ei=d(()=>{hX=function(){var o=function(r,i){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=a[u])},o(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");o(r,i);function c(){this.constructor=r}r.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),Et=function(o){hX(r,o);function r(i,c,a){var u=o.call(this,i)||this;return u.name="OTLPExporterError",u.data=a,u.code=c,u}return r}(Error)});function NX(o){if(!Number.isNaN(o)&&Number.isFinite(o)&&o>0)return o;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+o+"')")}function Ti(o){if(o!=null)return function(){return o}}function Si(o,r,i){var c,a,u,t,e,n;return{timeoutMillis:NX((a=(c=o.timeoutMillis)!==null&&c!==void 0?c:r.timeoutMillis)!==null&&a!==void 0?a:i.timeoutMillis),concurrencyLimit:(t=(u=o.concurrencyLimit)!==null&&u!==void 0?u:r.concurrencyLimit)!==null&&t!==void 0?t:i.concurrencyLimit,compression:(n=(e=o.compression)!==null&&e!==void 0?e:r.compression)!==null&&n!==void 0?n:i.compression}}function fi(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Hr=d(()=>{});var di,Og=d(()=>{(function(o){o.NONE="none",o.GZIP="gzip"})(di||(di={}))});function Ai(o){return new PX(o.concurrencyLimit)}var RX,yX,PX,qs=d(()=>{RX=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},yX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},PX=function(){function o(r){this._sendingPromises=[],this._concurrencyLimit=r}return o.prototype.pushPromise=function(r){var i=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(r);var c=function(){var a=i._sendingPromises.indexOf(r);i._sendingPromises.splice(a,1)};r.then(c,c)},o.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},o.prototype.awaitAll=function(){return RX(this,void 0,void 0,function(){return yX(this,function(r){switch(r.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return r.sent(),[2]}})})},o}()});function MX(o){return Object.prototype.hasOwnProperty.call(o,"partialSuccess")}function mg(){return{handleResponse:function(o){o==null||!MX(o)||o.partialSuccess==null||Object.keys(o.partialSuccess).length===0||k.warn("Received Partial Success response:",JSON.stringify(o.partialSuccess))}}}var hg=d(()=>{m()});function vi(o,r){return new IX(o.transport,o.serializer,mg(),o.promiseHandler,r.timeout)}var Xe,gX,LX,IX,Ws=d(()=>{Xe=Oe(x());Ei();hg();m();gX=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},LX=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},IX=function(){function o(r,i,c,a,u){this._transport=r,this._serializer=i,this._responseHandler=c,this._promiseQueue=a,this._timeout=u,this._diagLogger=k.createComponentLogger({namespace:"OTLPExportDelegate"})}return o.prototype.export=function(r,i){var c=this;if(this._diagLogger.debug("items to be sent",r),this._promiseQueue.hasReachedLimit()){i({code:Xe.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}var a=this._serializer.serializeRequest(r);if(a==null){i({code:Xe.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(a,this._timeout).then(function(u){if(u.status==="success"){if(u.data!=null)try{c._responseHandler.handleResponse(c._serializer.deserializeResponse(u.data))}catch(t){c._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,u.data)}i({code:Xe.ExportResultCode.SUCCESS});return}else if(u.status==="failure"&&u.error){i({code:Xe.ExportResultCode.FAILED,error:u.error});return}else u.status==="retryable"?i({code:Xe.ExportResultCode.FAILED,error:new Et("Export failed with retryable status")}):i({code:Xe.ExportResultCode.FAILED,error:new Et("Export failed with unknown error")})},function(u){return i({code:Xe.ExportResultCode.FAILED,error:u})}))},o.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},o.prototype.shutdown=function(){return gX(this,void 0,void 0,function(){return LX(this,function(r){switch(r.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return r.sent(),this._transport.shutdown(),[2]}})})},o}()});function Ng(o,r,i){return vi({transport:i,serializer:r,promiseHandler:Ai(o)},{timeout:o.timeoutMillis})}var Rg=d(()=>{qs();Ws()});var zs={};Ot(zs,{CompressionAlgorithm:()=>di,OTLPExporterBase:()=>Ag,OTLPExporterError:()=>Et,createOtlpNetworkExportDelegate:()=>Ng,getSharedConfigurationDefaults:()=>fi,mergeOtlpSharedConfigurationWithDefaults:()=>Si});var Js=d(()=>{vg();Ei();Hr();Og();Rg()});var yg=S(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.VERSION=void 0;Oi.VERSION="0.57.2"});var Mg=S((ate,Pg)=>{"use strict";Pg.exports=CX;function CX(o,r){for(var i=new Array(arguments.length-1),c=0,a=2,u=!0;a<arguments.length;)i[c++]=arguments[a++];return new Promise(function(e,n){i[c]=function(l){if(u)if(u=!1,l)n(l);else{for(var E=new Array(arguments.length-1),O=0;O<E.length;)E[O++]=arguments[O];e.apply(null,E)}};try{o.apply(r||null,i)}catch(s){u&&(u=!1,n(s))}})}});var Cg=S(Ig=>{"use strict";var mi=Ig;mi.length=function(r){var i=r.length;if(!i)return 0;for(var c=0;--i%4>1&&r.charAt(i)==="=";)++c;return Math.ceil(r.length*3)/4-c};var ur=new Array(64),Lg=new Array(123);for(Se=0;Se<64;)Lg[ur[Se]=Se<26?Se+65:Se<52?Se+71:Se<62?Se-4:Se-59|43]=Se++;var Se;mi.encode=function(r,i,c){for(var a=null,u=[],t=0,e=0,n;i<c;){var s=r[i++];switch(e){case 0:u[t++]=ur[s>>2],n=(s&3)<<4,e=1;break;case 1:u[t++]=ur[n|s>>4],n=(s&15)<<2,e=2;break;case 2:u[t++]=ur[n|s>>6],u[t++]=ur[s&63],e=0;break}t>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,u)),t=0)}return e&&(u[t++]=ur[n],u[t++]=61,e===1&&(u[t++]=61)),a?(t&&a.push(String.fromCharCode.apply(String,u.slice(0,t))),a.join("")):String.fromCharCode.apply(String,u.slice(0,t))};var gg="invalid encoding";mi.decode=function(r,i,c){for(var a=c,u=0,t,e=0;e<r.length;){var n=r.charCodeAt(e++);if(n===61&&u>1)break;if((n=Lg[n])===void 0)throw Error(gg);switch(u){case 0:t=n,u=1;break;case 1:i[c++]=t<<2|(n&48)>>4,t=n,u=2;break;case 2:i[c++]=(t&15)<<4|(n&60)>>2,t=n,u=3;break;case 3:i[c++]=(t&3)<<6|n,u=0;break}}if(u===1)throw Error(gg);return c-a};mi.test=function(r){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)}});var bg=S((ste,xg)=>{"use strict";xg.exports=hi;function hi(){this._listeners={}}hi.prototype.on=function(r,i,c){return(this._listeners[r]||(this._listeners[r]=[])).push({fn:i,ctx:c||this}),this};hi.prototype.off=function(r,i){if(r===void 0)this._listeners={};else if(i===void 0)this._listeners[r]=[];else for(var c=this._listeners[r],a=0;a<c.length;)c[a].fn===i?c.splice(a,1):++a;return this};hi.prototype.emit=function(r){var i=this._listeners[r];if(i){for(var c=[],a=1;a<arguments.length;)c.push(arguments[a++]);for(a=0;a<i.length;)i[a].fn.apply(i[a++].ctx,c)}return this}});var Hg=S((cte,Gg)=>{"use strict";Gg.exports=Ug(Ug);function Ug(o){return typeof Float32Array<"u"?function(){var r=new Float32Array([-0]),i=new Uint8Array(r.buffer),c=i[3]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3]}function u(n,s,l){r[0]=n,s[l]=i[3],s[l+1]=i[2],s[l+2]=i[1],s[l+3]=i[0]}o.writeFloatLE=c?a:u,o.writeFloatBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],r[0]}function e(n,s){return i[3]=n[s],i[2]=n[s+1],i[1]=n[s+2],i[0]=n[s+3],r[0]}o.readFloatLE=c?t:e,o.readFloatBE=c?e:t}():function(){function r(c,a,u,t){var e=a<0?1:0;if(e&&(a=-a),a===0)c(1/a>0?0:2147483648,u,t);else if(isNaN(a))c(2143289344,u,t);else if(a>34028234663852886e22)c((e<<31|2139095040)>>>0,u,t);else if(a<11754943508222875e-54)c((e<<31|Math.round(a/1401298464324817e-60))>>>0,u,t);else{var n=Math.floor(Math.log(a)/Math.LN2),s=Math.round(a*Math.pow(2,-n)*8388608)&8388607;c((e<<31|n+127<<23|s)>>>0,u,t)}}o.writeFloatLE=r.bind(null,Dg),o.writeFloatBE=r.bind(null,Vg);function i(c,a,u){var t=c(a,u),e=(t>>31)*2+1,n=t>>>23&255,s=t&8388607;return n===255?s?NaN:e*(1/0):n===0?e*1401298464324817e-60*s:e*Math.pow(2,n-150)*(s+8388608)}o.readFloatLE=i.bind(null,wg),o.readFloatBE=i.bind(null,Bg)}(),typeof Float64Array<"u"?function(){var r=new Float64Array([-0]),i=new Uint8Array(r.buffer),c=i[7]===128;function a(n,s,l){r[0]=n,s[l]=i[0],s[l+1]=i[1],s[l+2]=i[2],s[l+3]=i[3],s[l+4]=i[4],s[l+5]=i[5],s[l+6]=i[6],s[l+7]=i[7]}function u(n,s,l){r[0]=n,s[l]=i[7],s[l+1]=i[6],s[l+2]=i[5],s[l+3]=i[4],s[l+4]=i[3],s[l+5]=i[2],s[l+6]=i[1],s[l+7]=i[0]}o.writeDoubleLE=c?a:u,o.writeDoubleBE=c?u:a;function t(n,s){return i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=n[s+3],i[4]=n[s+4],i[5]=n[s+5],i[6]=n[s+6],i[7]=n[s+7],r[0]}function e(n,s){return i[7]=n[s],i[6]=n[s+1],i[5]=n[s+2],i[4]=n[s+3],i[3]=n[s+4],i[2]=n[s+5],i[1]=n[s+6],i[0]=n[s+7],r[0]}o.readDoubleLE=c?t:e,o.readDoubleBE=c?e:t}():function(){function r(c,a,u,t,e,n){var s=t<0?1:0;if(s&&(t=-t),t===0)c(0,e,n+a),c(1/t>0?0:2147483648,e,n+u);else if(isNaN(t))c(0,e,n+a),c(2146959360,e,n+u);else if(t>17976931348623157e292)c(0,e,n+a),c((s<<31|2146435072)>>>0,e,n+u);else{var l;if(t<22250738585072014e-324)l=t/5e-324,c(l>>>0,e,n+a),c((s<<31|l/4294967296)>>>0,e,n+u);else{var E=Math.floor(Math.log(t)/Math.LN2);E===1024&&(E=1023),l=t*Math.pow(2,-E),c(l*4503599627370496>>>0,e,n+a),c((s<<31|E+1023<<20|l*1048576&1048575)>>>0,e,n+u)}}}o.writeDoubleLE=r.bind(null,Dg,0,4),o.writeDoubleBE=r.bind(null,Vg,4,0);function i(c,a,u,t,e){var n=c(t,e+a),s=c(t,e+u),l=(s>>31)*2+1,E=s>>>20&2047,O=4294967296*(s&1048575)+n;return E===2047?O?NaN:l*(1/0):E===0?l*5e-324*O:l*Math.pow(2,E-1075)*(O+4503599627370496)}o.readDoubleLE=i.bind(null,wg,0,4),o.readDoubleBE=i.bind(null,Bg,4,0)}(),o}function Dg(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}function Vg(o,r,i){r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255}function wg(o,r){return(o[r]|o[r+1]<<8|o[r+2]<<16|o[r+3]<<24)>>>0}function Bg(o,r){return(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3])>>>0}});var Yg=S((lte,kg)=>{"use strict";kg.exports=function(){return null}});var Kg=S(Fg=>{"use strict";var Xs=Fg;Xs.length=function(r){for(var i=0,c=0,a=0;a<r.length;++a)c=r.charCodeAt(a),c<128?i+=1:c<2048?i+=2:(c&64512)===55296&&(r.charCodeAt(a+1)&64512)===56320?(++a,i+=4):i+=3;return i};Xs.read=function(r,i,c){var a=c-i;if(a<1)return"";for(var u=null,t=[],e=0,n;i<c;)n=r[i++],n<128?t[e++]=n:n>191&&n<224?t[e++]=(n&31)<<6|r[i++]&63:n>239&&n<365?(n=((n&7)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t[e++]=55296+(n>>10),t[e++]=56320+(n&1023)):t[e++]=(n&15)<<12|(r[i++]&63)<<6|r[i++]&63,e>8191&&((u||(u=[])).push(String.fromCharCode.apply(String,t)),e=0);return u?(e&&u.push(String.fromCharCode.apply(String,t.slice(0,e))),u.join("")):String.fromCharCode.apply(String,t.slice(0,e))};Xs.write=function(r,i,c){for(var a=c,u,t,e=0;e<r.length;++e)u=r.charCodeAt(e),u<128?i[c++]=u:u<2048?(i[c++]=u>>6|192,i[c++]=u&63|128):(u&64512)===55296&&((t=r.charCodeAt(e+1))&64512)===56320?(u=65536+((u&1023)<<10)+(t&1023),++e,i[c++]=u>>18|240,i[c++]=u>>12&63|128,i[c++]=u>>6&63|128,i[c++]=u&63|128):(i[c++]=u>>12|224,i[c++]=u>>6&63|128,i[c++]=u&63|128);return c-a}});var qg=S((_te,jg)=>{"use strict";jg.exports=xX;function xX(o,r,i){var c=i||8192,a=c>>>1,u=null,t=c;return function(n){if(n<1||n>a)return o(n);t+n>c&&(u=o(c),t=0);var s=r.call(u,t,t+=n);return t&7&&(t=(t|7)+1),s}}});var zg=S((Ete,Wg)=>{"use strict";Wg.exports=j;var kr=Qe();function j(o,r){this.lo=o>>>0,this.hi=r>>>0}var Tt=j.zero=new j(0,0);Tt.toNumber=function(){return 0};Tt.zzEncode=Tt.zzDecode=function(){return this};Tt.length=function(){return 1};var bX=j.zeroHash="\0\0\0\0\0\0\0\0";j.fromNumber=function(r){if(r===0)return Tt;var i=r<0;i&&(r=-r);var c=r>>>0,a=(r-c)/4294967296>>>0;return i&&(a=~a>>>0,c=~c>>>0,++c>4294967295&&(c=0,++a>4294967295&&(a=0))),new j(c,a)};j.from=function(r){if(typeof r=="number")return j.fromNumber(r);if(kr.isString(r))if(kr.Long)r=kr.Long.fromString(r);else return j.fromNumber(parseInt(r,10));return r.low||r.high?new j(r.low>>>0,r.high>>>0):Tt};j.prototype.toNumber=function(r){if(!r&&this.hi>>>31){var i=~this.lo+1>>>0,c=~this.hi>>>0;return i||(c=c+1>>>0),-(i+c*4294967296)}return this.lo+this.hi*4294967296};j.prototype.toLong=function(r){return kr.Long?new kr.Long(this.lo|0,this.hi|0,!!r):{low:this.lo|0,high:this.hi|0,unsigned:!!r}};var $e=String.prototype.charCodeAt;j.fromHash=function(r){return r===bX?Tt:new j(($e.call(r,0)|$e.call(r,1)<<8|$e.call(r,2)<<16|$e.call(r,3)<<24)>>>0,($e.call(r,4)|$e.call(r,5)<<8|$e.call(r,6)<<16|$e.call(r,7)<<24)>>>0)};j.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};j.prototype.zzEncode=function(){var r=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^r)>>>0,this.lo=(this.lo<<1^r)>>>0,this};j.prototype.zzDecode=function(){var r=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^r)>>>0,this.hi=(this.hi>>>1^r)>>>0,this};j.prototype.length=function(){var r=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,c=this.hi>>>24;return c===0?i===0?r<16384?r<128?1:2:r<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:c<128?9:10}});var Qe=S($s=>{"use strict";var A=$s;A.asPromise=Mg();A.base64=Cg();A.EventEmitter=bg();A.float=Hg();A.inquire=Yg();A.utf8=Kg();A.pool=qg();A.LongBits=zg();A.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);A.global=A.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||$s;A.emptyArray=Object.freeze?Object.freeze([]):[];A.emptyObject=Object.freeze?Object.freeze({}):{};A.isInteger=Number.isInteger||function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r};A.isString=function(r){return typeof r=="string"||r instanceof String};A.isObject=function(r){return r&&typeof r=="object"};A.isset=A.isSet=function(r,i){var c=r[i];return c!=null&&r.hasOwnProperty(i)?typeof c!="object"||(Array.isArray(c)?c.length:Object.keys(c).length)>0:!1};A.Buffer=function(){try{var o=A.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}}();A._Buffer_from=null;A._Buffer_allocUnsafe=null;A.newBuffer=function(r){return typeof r=="number"?A.Buffer?A._Buffer_allocUnsafe(r):new A.Array(r):A.Buffer?A._Buffer_from(r):typeof Uint8Array>"u"?r:new Uint8Array(r)};A.Array=typeof Uint8Array<"u"?Uint8Array:Array;A.Long=A.global.dcodeIO&&A.global.dcodeIO.Long||A.global.Long||A.inquire("long");A.key2Re=/^true|false|0|1$/;A.key32Re=/^-?(?:0|[1-9][0-9]*)$/;A.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;A.longToHash=function(r){return r?A.LongBits.from(r).toHash():A.LongBits.zeroHash};A.longFromHash=function(r,i){var c=A.LongBits.fromHash(r);return A.Long?A.Long.fromBits(c.lo,c.hi,i):c.toNumber(!!i)};function Jg(o,r,i){for(var c=Object.keys(r),a=0;a<c.length;++a)(o[c[a]]===void 0||!i)&&(o[c[a]]=r[c[a]]);return o}A.merge=Jg;A.lcFirst=function(r){return r.charAt(0).toLowerCase()+r.substring(1)};function Xg(o){function r(i,c){if(!(this instanceof r))return new r(i,c);Object.defineProperty(this,"message",{get:function(){return i}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:new Error().stack||""}),c&&Jg(this,c)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),r}A.newError=Xg;A.ProtocolError=Xg("ProtocolError");A.oneOfGetter=function(r){for(var i={},c=0;c<r.length;++c)i[r[c]]=1;return function(){for(var a=Object.keys(this),u=a.length-1;u>-1;--u)if(i[a[u]]===1&&this[a[u]]!==void 0&&this[a[u]]!==null)return a[u]}};A.oneOfSetter=function(r){return function(i){for(var c=0;c<r.length;++c)r[c]!==i&&delete this[r[c]]}};A.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};A._configure=function(){var o=A.Buffer;if(!o){A._Buffer_from=A._Buffer_allocUnsafe=null;return}A._Buffer_from=o.from!==Uint8Array.from&&o.from||function(i,c){return new o(i,c)},A._Buffer_allocUnsafe=o.allocUnsafe||function(i){return new o(i)}}});var oc=S((Ste,eL)=>{"use strict";eL.exports=P;var le=Qe(),Qs,Ni=le.LongBits,$g=le.base64,Qg=le.utf8;function Yr(o,r,i){this.fn=o,this.len=r,this.next=void 0,this.val=i}function ec(){}function UX(o){this.head=o.head,this.tail=o.tail,this.len=o.len,this.next=o.states}function P(){this.len=0,this.head=new Yr(ec,0,0),this.tail=this.head,this.states=null}var Zg=function(){return le.Buffer?function(){return(P.create=function(){return new Qs})()}:function(){return new P}};P.create=Zg();P.alloc=function(r){return new le.Array(r)};le.Array!==Array&&(P.alloc=le.pool(P.alloc,le.Array.prototype.subarray));P.prototype._push=function(r,i,c){return this.tail=this.tail.next=new Yr(r,i,c),this.len+=i,this};function tc(o,r,i){r[i]=o&255}function DX(o,r,i){for(;o>127;)r[i++]=o&127|128,o>>>=7;r[i]=o}function rc(o,r){this.len=o,this.next=void 0,this.val=r}rc.prototype=Object.create(Yr.prototype);rc.prototype.fn=DX;P.prototype.uint32=function(r){return this.len+=(this.tail=this.tail.next=new rc((r=r>>>0)<128?1:r<16384?2:r<2097152?3:r<268435456?4:5,r)).len,this};P.prototype.int32=function(r){return r<0?this._push(nc,10,Ni.fromNumber(r)):this.uint32(r)};P.prototype.sint32=function(r){return this.uint32((r<<1^r>>31)>>>0)};function nc(o,r,i){for(;o.hi;)r[i++]=o.lo&127|128,o.lo=(o.lo>>>7|o.hi<<25)>>>0,o.hi>>>=7;for(;o.lo>127;)r[i++]=o.lo&127|128,o.lo=o.lo>>>7;r[i++]=o.lo}P.prototype.uint64=function(r){var i=Ni.from(r);return this._push(nc,i.length(),i)};P.prototype.int64=P.prototype.uint64;P.prototype.sint64=function(r){var i=Ni.from(r).zzEncode();return this._push(nc,i.length(),i)};P.prototype.bool=function(r){return this._push(tc,1,r?1:0)};function Zs(o,r,i){r[i]=o&255,r[i+1]=o>>>8&255,r[i+2]=o>>>16&255,r[i+3]=o>>>24}P.prototype.fixed32=function(r){return this._push(Zs,4,r>>>0)};P.prototype.sfixed32=P.prototype.fixed32;P.prototype.fixed64=function(r){var i=Ni.from(r);return this._push(Zs,4,i.lo)._push(Zs,4,i.hi)};P.prototype.sfixed64=P.prototype.fixed64;P.prototype.float=function(r){return this._push(le.float.writeFloatLE,4,r)};P.prototype.double=function(r){return this._push(le.float.writeDoubleLE,8,r)};var VX=le.Array.prototype.set?function(r,i,c){i.set(r,c)}:function(r,i,c){for(var a=0;a<r.length;++a)i[c+a]=r[a]};P.prototype.bytes=function(r){var i=r.length>>>0;if(!i)return this._push(tc,1,0);if(le.isString(r)){var c=P.alloc(i=$g.length(r));$g.decode(r,c,0),r=c}return this.uint32(i)._push(VX,i,r)};P.prototype.string=function(r){var i=Qg.length(r);return i?this.uint32(i)._push(Qg.write,i,r):this._push(tc,1,0)};P.prototype.fork=function(){return this.states=new UX(this),this.head=this.tail=new Yr(ec,0,0),this.len=0,this};P.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Yr(ec,0,0),this.len=0),this};P.prototype.ldelim=function(){var r=this.head,i=this.tail,c=this.len;return this.reset().uint32(c),c&&(this.tail.next=r.next,this.tail=i,this.len+=c),this};P.prototype.finish=function(){for(var r=this.head.next,i=this.constructor.alloc(this.len),c=0;r;)r.fn(r.val,i,c),c+=r.len,r=r.next;return i};P._configure=function(o){Qs=o,P.create=Zg(),Qs._configure()}});var nL=S((fte,rL)=>{"use strict";rL.exports=Me;var tL=oc();(Me.prototype=Object.create(tL.prototype)).constructor=Me;var Ze=Qe();function Me(){tL.call(this)}Me._configure=function(){Me.alloc=Ze._Buffer_allocUnsafe,Me.writeBytesBuffer=Ze.Buffer&&Ze.Buffer.prototype instanceof Uint8Array&&Ze.Buffer.prototype.set.name==="set"?function(r,i,c){i.set(r,c)}:function(r,i,c){if(r.copy)r.copy(i,c,0,r.length);else for(var a=0;a<r.length;)i[c++]=r[a++]}};Me.prototype.bytes=function(r){Ze.isString(r)&&(r=Ze._Buffer_from(r,"base64"));var i=r.length>>>0;return this.uint32(i),i&&this._push(Me.writeBytesBuffer,i,r),this};function wX(o,r,i){o.length<40?Ze.utf8.write(o,r,i):r.utf8Write?r.utf8Write(o,i):r.write(o,i)}Me.prototype.string=function(r){var i=Ze.Buffer.byteLength(r);return this.uint32(i),i&&this._push(wX,i,r),this};Me._configure()});var uc=S((dte,sL)=>{"use strict";sL.exports=w;var fe=Qe(),ac,aL=fe.LongBits,BX=fe.utf8;function de(o,r){return RangeError("index out of range: "+o.pos+" + "+(r||1)+" > "+o.len)}function w(o){this.buf=o,this.pos=0,this.len=o.length}var oL=typeof Uint8Array<"u"?function(r){if(r instanceof Uint8Array||Array.isArray(r))return new w(r);throw Error("illegal buffer")}:function(r){if(Array.isArray(r))return new w(r);throw Error("illegal buffer")},uL=function(){return fe.Buffer?function(i){return(w.create=function(a){return fe.Buffer.isBuffer(a)?new ac(a):oL(a)})(i)}:oL};w.create=uL();w.prototype._slice=fe.Array.prototype.subarray||fe.Array.prototype.slice;w.prototype.uint32=function(){var r=4294967295;return function(){if(r=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(r=(r|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(r=(r|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return r;if((this.pos+=5)>this.len)throw this.pos=this.len,de(this,10);return r}}();w.prototype.int32=function(){return this.uint32()|0};w.prototype.sint32=function(){var r=this.uint32();return r>>>1^-(r&1)|0};function ic(){var o=new aL(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o;if(o.lo=(o.lo|(this.buf[this.pos]&127)<<28)>>>0,o.hi=(o.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return o;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw de(this);if(o.lo=(o.lo|(this.buf[this.pos]&127)<<r*7)>>>0,this.buf[this.pos++]<128)return o}return o.lo=(o.lo|(this.buf[this.pos++]&127)<<r*7)>>>0,o}if(this.len-this.pos>4){for(;r<5;++r)if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}else for(;r<5;++r){if(this.pos>=this.len)throw de(this);if(o.hi=(o.hi|(this.buf[this.pos]&127)<<r*7+3)>>>0,this.buf[this.pos++]<128)return o}throw Error("invalid varint encoding")}w.prototype.bool=function(){return this.uint32()!==0};function Ri(o,r){return(o[r-4]|o[r-3]<<8|o[r-2]<<16|o[r-1]<<24)>>>0}w.prototype.fixed32=function(){if(this.pos+4>this.len)throw de(this,4);return Ri(this.buf,this.pos+=4)};w.prototype.sfixed32=function(){if(this.pos+4>this.len)throw de(this,4);return Ri(this.buf,this.pos+=4)|0};function iL(){if(this.pos+8>this.len)throw de(this,8);return new aL(Ri(this.buf,this.pos+=4),Ri(this.buf,this.pos+=4))}w.prototype.float=function(){if(this.pos+4>this.len)throw de(this,4);var r=fe.float.readFloatLE(this.buf,this.pos);return this.pos+=4,r};w.prototype.double=function(){if(this.pos+8>this.len)throw de(this,4);var r=fe.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,r};w.prototype.bytes=function(){var r=this.uint32(),i=this.pos,c=this.pos+r;if(c>this.len)throw de(this,r);if(this.pos+=r,Array.isArray(this.buf))return this.buf.slice(i,c);if(i===c){var a=fe.Buffer;return a?a.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,i,c)};w.prototype.string=function(){var r=this.bytes();return BX.read(r,0,r.length)};w.prototype.skip=function(r){if(typeof r=="number"){if(this.pos+r>this.len)throw de(this,r);this.pos+=r}else do if(this.pos>=this.len)throw de(this);while(this.buf[this.pos++]&128);return this};w.prototype.skipType=function(o){switch(o){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(o=this.uint32()&7)!==4;)this.skipType(o);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+o+" at offset "+this.pos)}return this};w._configure=function(o){ac=o,w.create=uL(),ac._configure();var r=fe.Long?"toLong":"toNumber";fe.merge(w.prototype,{int64:function(){return ic.call(this)[r](!1)},uint64:function(){return ic.call(this)[r](!0)},sint64:function(){return ic.call(this).zzDecode()[r](!1)},fixed64:function(){return iL.call(this)[r](!0)},sfixed64:function(){return iL.call(this)[r](!1)}})}});var _L=S((Ate,pL)=>{"use strict";pL.exports=St;var lL=uc();(St.prototype=Object.create(lL.prototype)).constructor=St;var cL=Qe();function St(o){lL.call(this,o)}St._configure=function(){cL.Buffer&&(St.prototype._slice=cL.Buffer.prototype.slice)};St.prototype.string=function(){var r=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+r,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+r,this.len))};St._configure()});var TL=S((vte,EL)=>{"use strict";EL.exports=Fr;var sc=Qe();(Fr.prototype=Object.create(sc.EventEmitter.prototype)).constructor=Fr;function Fr(o,r,i){if(typeof o!="function")throw TypeError("rpcImpl must be a function");sc.EventEmitter.call(this),this.rpcImpl=o,this.requestDelimited=!!r,this.responseDelimited=!!i}Fr.prototype.rpcCall=function o(r,i,c,a,u){if(!a)throw TypeError("request must be specified");var t=this;if(!u)return sc.asPromise(o,t,r,i,c,a);if(!t.rpcImpl){setTimeout(function(){u(Error("already ended"))},0);return}try{return t.rpcImpl(r,i[t.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(n,s){if(n)return t.emit("error",n,r),u(n);if(s===null){t.end(!0);return}if(!(s instanceof c))try{s=c[t.responseDelimited?"decodeDelimited":"decode"](s)}catch(l){return t.emit("error",l,r),u(l)}return t.emit("data",s,r),u(null,s)})}catch(e){t.emit("error",e,r),setTimeout(function(){u(e)},0);return}};Fr.prototype.end=function(r){return this.rpcImpl&&(r||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var fL=S(SL=>{"use strict";var GX=SL;GX.Service=TL()});var AL=S((mte,dL)=>{"use strict";dL.exports={}});var mL=S(OL=>{"use strict";var re=OL;re.build="minimal";re.Writer=oc();re.BufferWriter=nL();re.Reader=uc();re.BufferReader=_L();re.util=Qe();re.rpc=fL();re.roots=AL();re.configure=vL;function vL(){re.util._configure(),re.Writer._configure(re.BufferWriter),re.Reader._configure(re.BufferReader)}vL()});var NL=S((Nte,hL)=>{"use strict";hL.exports=mL()});var yi=S((Rte,RL)=>{"use strict";var v=NL(),T=v.Reader,h=v.Writer,_=v.util,p=v.roots.default||(v.roots.default={});p.opentelemetry=function(){var o={};return o.proto=function(){var r={};return r.common=function(){var i={};return i.v1=function(){var c={};return c.AnyValue=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=h.create()),e.stringValue!=null&&Object.hasOwnProperty.call(e,"stringValue")&&n.uint32(10).string(e.stringValue),e.boolValue!=null&&Object.hasOwnProperty.call(e,"boolValue")&&n.uint32(16).bool(e.boolValue),e.intValue!=null&&Object.hasOwnProperty.call(e,"intValue")&&n.uint32(24).int64(e.intValue),e.doubleValue!=null&&Object.hasOwnProperty.call(e,"doubleValue")&&n.uint32(33).double(e.doubleValue),e.arrayValue!=null&&Object.hasOwnProperty.call(e,"arrayValue")&&p.opentelemetry.proto.common.v1.ArrayValue.encode(e.arrayValue,n.uint32(42).fork()).ldelim(),e.kvlistValue!=null&&Object.hasOwnProperty.call(e,"kvlistValue")&&p.opentelemetry.proto.common.v1.KeyValueList.encode(e.kvlistValue,n.uint32(50).fork()).ldelim(),e.bytesValue!=null&&Object.hasOwnProperty.call(e,"bytesValue")&&n.uint32(58).bytes(e.bytesValue),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.common.v1.AnyValue;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.stringValue=e.string();break}case 2:{l.boolValue=e.bool();break}case 3:{l.intValue=e.int64();break}case 4:{l.doubleValue=e.double();break}case 5:{l.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.decode(e,e.uint32());break}case 6:{l.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.decode(e,e.uint32());break}case 7:{l.bytesValue=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(n.value=1,!_.isString(e.stringValue)))return"stringValue: string expected";if(e.boolValue!=null&&e.hasOwnProperty("boolValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.boolValue!="boolean")return"boolValue: boolean expected"}if(e.intValue!=null&&e.hasOwnProperty("intValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.intValue)&&!(e.intValue&&_.isInteger(e.intValue.low)&&_.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(e.doubleValue!=null&&e.hasOwnProperty("doubleValue")){if(n.value===1)return"value: multiple values";if(n.value=1,typeof e.doubleValue!="number")return"doubleValue: number expected"}if(e.arrayValue!=null&&e.hasOwnProperty("arrayValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.ArrayValue.verify(e.arrayValue);if(s)return"arrayValue."+s}}if(e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")){if(n.value===1)return"value: multiple values";n.value=1;{var s=p.opentelemetry.proto.common.v1.KeyValueList.verify(e.kvlistValue);if(s)return"kvlistValue."+s}}if(e.bytesValue!=null&&e.hasOwnProperty("bytesValue")){if(n.value===1)return"value: multiple values";if(n.value=1,!(e.bytesValue&&typeof e.bytesValue.length=="number"||_.isString(e.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.common.v1.AnyValue)return e;var n=new p.opentelemetry.proto.common.v1.AnyValue;if(e.stringValue!=null&&(n.stringValue=String(e.stringValue)),e.boolValue!=null&&(n.boolValue=!!e.boolValue),e.intValue!=null&&(_.Long?(n.intValue=_.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue=="string"?n.intValue=parseInt(e.intValue,10):typeof e.intValue=="number"?n.intValue=e.intValue:typeof e.intValue=="object"&&(n.intValue=new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.doubleValue!=null&&(n.doubleValue=Number(e.doubleValue)),e.arrayValue!=null){if(typeof e.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");n.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.fromObject(e.arrayValue)}if(e.kvlistValue!=null){if(typeof e.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");n.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.fromObject(e.kvlistValue)}return e.bytesValue!=null&&(typeof e.bytesValue=="string"?_.base64.decode(e.bytesValue,n.bytesValue=_.newBuffer(_.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(n.bytesValue=e.bytesValue)),n},a.toObject=function(e,n){n||(n={});var s={};return e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(s.stringValue=e.stringValue,n.oneofs&&(s.value="stringValue")),e.boolValue!=null&&e.hasOwnProperty("boolValue")&&(s.boolValue=e.boolValue,n.oneofs&&(s.value="boolValue")),e.intValue!=null&&e.hasOwnProperty("intValue")&&(typeof e.intValue=="number"?s.intValue=n.longs===String?String(e.intValue):e.intValue:s.intValue=n.longs===String?_.Long.prototype.toString.call(e.intValue):n.longs===Number?new _.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,n.oneofs&&(s.value="intValue")),e.doubleValue!=null&&e.hasOwnProperty("doubleValue")&&(s.doubleValue=n.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,n.oneofs&&(s.value="doubleValue")),e.arrayValue!=null&&e.hasOwnProperty("arrayValue")&&(s.arrayValue=p.opentelemetry.proto.common.v1.ArrayValue.toObject(e.arrayValue,n),n.oneofs&&(s.value="arrayValue")),e.kvlistValue!=null&&e.hasOwnProperty("kvlistValue")&&(s.kvlistValue=p.opentelemetry.proto.common.v1.KeyValueList.toObject(e.kvlistValue,n),n.oneofs&&(s.value="kvlistValue")),e.bytesValue!=null&&e.hasOwnProperty("bytesValue")&&(s.bytesValue=n.bytes===String?_.base64.encode(e.bytesValue,0,e.bytesValue.length):n.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,n.oneofs&&(s.value="bytesValue")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.common.v1.AnyValue"},a}(),c.ArrayValue=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.AnyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.ArrayValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.AnyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.ArrayValue)return t;var e=new p.opentelemetry.proto.common.v1.ArrayValue;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),c.KeyValueList=function(){function a(u){if(this.values=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.values=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.values!=null&&t.values.length)for(var n=0;n<t.values.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.values[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValueList;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.values&&s.values.length||(s.values=[]),s.values.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.values!=null&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e<t.values.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.values[e]);if(n)return"values."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValueList)return t;var e=new p.opentelemetry.proto.common.v1.KeyValueList;if(t.values){if(!Array.isArray(t.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");e.values=[];for(var n=0;n<t.values.length;++n){if(typeof t.values[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");e.values[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.values[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.values=[]),t.values&&t.values.length){n.values=[];for(var s=0;s<t.values.length;++s)n.values[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.values[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),c.KeyValue=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=h.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&e.uint32(10).string(t.key),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.value,e.uint32(18).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.KeyValue;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.key=t.string();break}case 2:{s.value=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.key!=null&&t.hasOwnProperty("key")&&!_.isString(t.key))return"key: string expected";if(t.value!=null&&t.hasOwnProperty("value")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.value);if(e)return"value."+e}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.KeyValue)return t;var e=new p.opentelemetry.proto.common.v1.KeyValue;if(t.key!=null&&(e.key=String(t.key)),t.value!=null){if(typeof t.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");e.value=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.value)}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.key="",n.value=null),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.value,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.KeyValue"},a}(),c.InstrumentationScope=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(10).string(t.name),t.version!=null&&Object.hasOwnProperty.call(t,"version")&&e.uint32(18).string(t.version),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(26).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(32).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.common.v1.InstrumentationScope;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.name=t.string();break}case 2:{s.version=t.string();break}case 3:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 4:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.version!=null&&t.hasOwnProperty("version")&&!_.isString(t.version))return"version: string expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.common.v1.InstrumentationScope)return t;var e=new p.opentelemetry.proto.common.v1.InstrumentationScope;if(t.name!=null&&(e.name=String(t.name)),t.version!=null&&(e.version=String(t.version)),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.name="",n.version="",n.droppedAttributesCount=0),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.version!=null&&t.hasOwnProperty("version")&&(n.version=t.version),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),c}(),i}(),r.resource=function(){var i={};return i.v1=function(){var c={};return c.Resource=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(10).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(16).uint32(t.droppedAttributesCount),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.resource.v1.Resource;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.droppedAttributesCount=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.resource.v1.Resource)return t;var e=new p.opentelemetry.proto.resource.v1.Resource;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults&&(n.droppedAttributesCount=0),t.attributes&&t.attributes.length){n.attributes=[];for(var s=0;s<t.attributes.length;++s)n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[s],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.resource.v1.Resource"},a}(),c}(),i}(),r.trace=function(){var i={};return i.v1=function(){var c={};return c.TracesData=function(){function a(u){if(this.resourceSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceSpans=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceSpans!=null&&t.resourceSpans.length)for(var n=0;n<t.resourceSpans.length;++n)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(t.resourceSpans[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.TracesData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceSpans&&s.resourceSpans.length||(s.resourceSpans=[]),s.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceSpans!=null&&t.hasOwnProperty("resourceSpans")){if(!Array.isArray(t.resourceSpans))return"resourceSpans: array expected";for(var e=0;e<t.resourceSpans.length;++e){var n=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(t.resourceSpans[e]);if(n)return"resourceSpans."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.TracesData)return t;var e=new p.opentelemetry.proto.trace.v1.TracesData;if(t.resourceSpans){if(!Array.isArray(t.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");e.resourceSpans=[];for(var n=0;n<t.resourceSpans.length;++n){if(typeof t.resourceSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");e.resourceSpans[n]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(t.resourceSpans[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceSpans=[]),t.resourceSpans&&t.resourceSpans.length){n.resourceSpans=[];for(var s=0;s<t.resourceSpans.length;++s)n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(t.resourceSpans[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.TracesData"},a}(),c.ResourceSpans=function(){function a(u){if(this.scopeSpans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeSpans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeSpans!=null&&t.scopeSpans.length)for(var n=0;n<t.scopeSpans.length;++n)p.opentelemetry.proto.trace.v1.ScopeSpans.encode(t.scopeSpans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ResourceSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeSpans&&s.scopeSpans.length||(s.scopeSpans=[]),s.scopeSpans.push(p.opentelemetry.proto.trace.v1.ScopeSpans.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeSpans!=null&&t.hasOwnProperty("scopeSpans")){if(!Array.isArray(t.scopeSpans))return"scopeSpans: array expected";for(var n=0;n<t.scopeSpans.length;++n){var e=p.opentelemetry.proto.trace.v1.ScopeSpans.verify(t.scopeSpans[n]);if(e)return"scopeSpans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ResourceSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ResourceSpans;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeSpans){if(!Array.isArray(t.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");e.scopeSpans=[];for(var n=0;n<t.scopeSpans.length;++n){if(typeof t.scopeSpans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");e.scopeSpans[n]=p.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(t.scopeSpans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeSpans=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeSpans&&t.scopeSpans.length){n.scopeSpans=[];for(var s=0;s<t.scopeSpans.length;++s)n.scopeSpans[s]=p.opentelemetry.proto.trace.v1.ScopeSpans.toObject(t.scopeSpans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),c.ScopeSpans=function(){function a(u){if(this.spans=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.spans=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.spans!=null&&t.spans.length)for(var n=0;n<t.spans.length;++n)p.opentelemetry.proto.trace.v1.Span.encode(t.spans[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.ScopeSpans;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.spans&&s.spans.length||(s.spans=[]),s.spans.push(p.opentelemetry.proto.trace.v1.Span.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.spans!=null&&t.hasOwnProperty("spans")){if(!Array.isArray(t.spans))return"spans: array expected";for(var n=0;n<t.spans.length;++n){var e=p.opentelemetry.proto.trace.v1.Span.verify(t.spans[n]);if(e)return"spans."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.ScopeSpans)return t;var e=new p.opentelemetry.proto.trace.v1.ScopeSpans;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.spans){if(!Array.isArray(t.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");e.spans=[];for(var n=0;n<t.spans.length;++n){if(typeof t.spans[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");e.spans[n]=p.opentelemetry.proto.trace.v1.Span.fromObject(t.spans[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.spans=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.spans&&t.spans.length){n.spans=[];for(var s=0;s<t.spans.length;++s)n.spans[s]=p.opentelemetry.proto.trace.v1.Span.toObject(t.spans[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),c.Span=function(){function a(u){if(this.attributes=[],this.events=[],this.links=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=_.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=_.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(10).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(18).bytes(t.spanId),t.traceState!=null&&Object.hasOwnProperty.call(t,"traceState")&&e.uint32(26).string(t.traceState),t.parentSpanId!=null&&Object.hasOwnProperty.call(t,"parentSpanId")&&e.uint32(34).bytes(t.parentSpanId),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(42).string(t.name),t.kind!=null&&Object.hasOwnProperty.call(t,"kind")&&e.uint32(48).int32(t.kind),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(57).fixed64(t.startTimeUnixNano),t.endTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"endTimeUnixNano")&&e.uint32(65).fixed64(t.endTimeUnixNano),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(74).fork()).ldelim();if(t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(80).uint32(t.droppedAttributesCount),t.events!=null&&t.events.length)for(var n=0;n<t.events.length;++n)p.opentelemetry.proto.trace.v1.Span.Event.encode(t.events[n],e.uint32(90).fork()).ldelim();if(t.droppedEventsCount!=null&&Object.hasOwnProperty.call(t,"droppedEventsCount")&&e.uint32(96).uint32(t.droppedEventsCount),t.links!=null&&t.links.length)for(var n=0;n<t.links.length;++n)p.opentelemetry.proto.trace.v1.Span.Link.encode(t.links[n],e.uint32(106).fork()).ldelim();return t.droppedLinksCount!=null&&Object.hasOwnProperty.call(t,"droppedLinksCount")&&e.uint32(112).uint32(t.droppedLinksCount),t.status!=null&&Object.hasOwnProperty.call(t,"status")&&p.opentelemetry.proto.trace.v1.Status.encode(t.status,e.uint32(122).fork()).ldelim(),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Span;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.traceId=t.bytes();break}case 2:{s.spanId=t.bytes();break}case 3:{s.traceState=t.string();break}case 4:{s.parentSpanId=t.bytes();break}case 5:{s.name=t.string();break}case 6:{s.kind=t.int32();break}case 7:{s.startTimeUnixNano=t.fixed64();break}case 8:{s.endTimeUnixNano=t.fixed64();break}case 9:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 10:{s.droppedAttributesCount=t.uint32();break}case 11:{s.events&&s.events.length||(s.events=[]),s.events.push(p.opentelemetry.proto.trace.v1.Span.Event.decode(t,t.uint32()));break}case 12:{s.droppedEventsCount=t.uint32();break}case 13:{s.links&&s.links.length||(s.links=[]),s.links.push(p.opentelemetry.proto.trace.v1.Span.Link.decode(t,t.uint32()));break}case 14:{s.droppedLinksCount=t.uint32();break}case 15:{s.status=p.opentelemetry.proto.trace.v1.Status.decode(t,t.uint32());break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId)))return"traceId: buffer expected";if(t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId)))return"spanId: buffer expected";if(t.traceState!=null&&t.hasOwnProperty("traceState")&&!_.isString(t.traceState))return"traceState: string expected";if(t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&!(t.parentSpanId&&typeof t.parentSpanId.length=="number"||_.isString(t.parentSpanId)))return"parentSpanId: buffer expected";if(t.name!=null&&t.hasOwnProperty("name")&&!_.isString(t.name))return"name: string expected";if(t.kind!=null&&t.hasOwnProperty("kind"))switch(t.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&!_.isInteger(t.endTimeUnixNano)&&!(t.endTimeUnixNano&&_.isInteger(t.endTimeUnixNano.low)&&_.isInteger(t.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(t.events!=null&&t.hasOwnProperty("events")){if(!Array.isArray(t.events))return"events: array expected";for(var e=0;e<t.events.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Event.verify(t.events[e]);if(n)return"events."+n}}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&!_.isInteger(t.droppedEventsCount))return"droppedEventsCount: integer expected";if(t.links!=null&&t.hasOwnProperty("links")){if(!Array.isArray(t.links))return"links: array expected";for(var e=0;e<t.links.length;++e){var n=p.opentelemetry.proto.trace.v1.Span.Link.verify(t.links[e]);if(n)return"links."+n}}if(t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&!_.isInteger(t.droppedLinksCount))return"droppedLinksCount: integer expected";if(t.status!=null&&t.hasOwnProperty("status")){var n=p.opentelemetry.proto.trace.v1.Status.verify(t.status);if(n)return"status."+n}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Span)return t;var e=new p.opentelemetry.proto.trace.v1.Span;switch(t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),t.traceState!=null&&(e.traceState=String(t.traceState)),t.parentSpanId!=null&&(typeof t.parentSpanId=="string"?_.base64.decode(t.parentSpanId,e.parentSpanId=_.newBuffer(_.base64.length(t.parentSpanId)),0):t.parentSpanId.length>=0&&(e.parentSpanId=t.parentSpanId)),t.name!=null&&(e.name=String(t.name)),t.kind){default:if(typeof t.kind=="number"){e.kind=t.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:e.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:e.kind=1;break;case"SPAN_KIND_SERVER":case 2:e.kind=2;break;case"SPAN_KIND_CLIENT":case 3:e.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:e.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:e.kind=5;break}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.endTimeUnixNano!=null&&(_.Long?(e.endTimeUnixNano=_.Long.fromValue(t.endTimeUnixNano)).unsigned=!1:typeof t.endTimeUnixNano=="string"?e.endTimeUnixNano=parseInt(t.endTimeUnixNano,10):typeof t.endTimeUnixNano=="number"?e.endTimeUnixNano=t.endTimeUnixNano:typeof t.endTimeUnixNano=="object"&&(e.endTimeUnixNano=new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber())),t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.events){if(!Array.isArray(t.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");e.events=[];for(var n=0;n<t.events.length;++n){if(typeof t.events[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");e.events[n]=p.opentelemetry.proto.trace.v1.Span.Event.fromObject(t.events[n])}}if(t.droppedEventsCount!=null&&(e.droppedEventsCount=t.droppedEventsCount>>>0),t.links){if(!Array.isArray(t.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");e.links=[];for(var n=0;n<t.links.length;++n){if(typeof t.links[n]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");e.links[n]=p.opentelemetry.proto.trace.v1.Span.Link.fromObject(t.links[n])}}if(t.droppedLinksCount!=null&&(e.droppedLinksCount=t.droppedLinksCount>>>0),t.status!=null){if(typeof t.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");e.status=p.opentelemetry.proto.trace.v1.Status.fromObject(t.status)}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[],n.events=[],n.links=[]),e.defaults){if(e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),n.traceState="",e.bytes===String?n.parentSpanId="":(n.parentSpanId=[],e.bytes!==Array&&(n.parentSpanId=_.newBuffer(n.parentSpanId))),n.name="",n.kind=e.enums===String?"SPAN_KIND_UNSPECIFIED":0,_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.endTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.endTimeUnixNano=e.longs===String?"0":0;n.droppedAttributesCount=0,n.droppedEventsCount=0,n.droppedLinksCount=0,n.status=null}if(t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.traceState!=null&&t.hasOwnProperty("traceState")&&(n.traceState=t.traceState),t.parentSpanId!=null&&t.hasOwnProperty("parentSpanId")&&(n.parentSpanId=e.bytes===String?_.base64.encode(t.parentSpanId,0,t.parentSpanId.length):e.bytes===Array?Array.prototype.slice.call(t.parentSpanId):t.parentSpanId),t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.kind!=null&&t.hasOwnProperty("kind")&&(n.kind=e.enums===String?p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]===void 0?t.kind:p.opentelemetry.proto.trace.v1.Span.SpanKind[t.kind]:t.kind),t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.endTimeUnixNano!=null&&t.hasOwnProperty("endTimeUnixNano")&&(typeof t.endTimeUnixNano=="number"?n.endTimeUnixNano=e.longs===String?String(t.endTimeUnixNano):t.endTimeUnixNano:n.endTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.endTimeUnixNano):e.longs===Number?new _.LongBits(t.endTimeUnixNano.low>>>0,t.endTimeUnixNano.high>>>0).toNumber():t.endTimeUnixNano),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}if(t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.events&&t.events.length){n.events=[];for(var l=0;l<t.events.length;++l)n.events[l]=p.opentelemetry.proto.trace.v1.Span.Event.toObject(t.events[l],e)}if(t.droppedEventsCount!=null&&t.hasOwnProperty("droppedEventsCount")&&(n.droppedEventsCount=t.droppedEventsCount),t.links&&t.links.length){n.links=[];for(var l=0;l<t.links.length;++l)n.links[l]=p.opentelemetry.proto.trace.v1.Span.Link.toObject(t.links[l],e)}return t.droppedLinksCount!=null&&t.hasOwnProperty("droppedLinksCount")&&(n.droppedLinksCount=t.droppedLinksCount),t.status!=null&&t.hasOwnProperty("status")&&(n.status=p.opentelemetry.proto.trace.v1.Status.toObject(t.status,e)),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var u={},t=Object.create(u);return t[u[0]="SPAN_KIND_UNSPECIFIED"]=0,t[u[1]="SPAN_KIND_INTERNAL"]=1,t[u[2]="SPAN_KIND_SERVER"]=2,t[u[3]="SPAN_KIND_CLIENT"]=3,t[u[4]="SPAN_KIND_PRODUCER"]=4,t[u[5]="SPAN_KIND_CONSUMER"]=5,t}(),a.Event=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.timeUnixNano=null,u.prototype.name=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(9).fixed64(e.timeUnixNano),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(18).string(e.name),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(32).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Event;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.timeUnixNano=e.fixed64();break}case 2:{l.name=e.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 4:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Event)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Event;if(e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.name!=null&&(n.name=String(e.name)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.name="",s.droppedAttributesCount=0}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Event"},u}(),a.Link=function(){function u(t){if(this.attributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.traceId=null,u.prototype.spanId=null,u.prototype.traceState=null,u.prototype.attributes=_.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(10).bytes(e.traceId),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(18).bytes(e.spanId),e.traceState!=null&&Object.hasOwnProperty.call(e,"traceState")&&n.uint32(26).string(e.traceState),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(34).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,"droppedAttributesCount")&&n.uint32(40).uint32(e.droppedAttributesCount),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.trace.v1.Span.Link;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.traceId=e.bytes();break}case 2:{l.spanId=e.bytes();break}case 3:{l.traceState=e.string();break}case 4:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 5:{l.droppedAttributesCount=e.uint32();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId)))return"traceId: buffer expected";if(e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId)))return"spanId: buffer expected";if(e.traceState!=null&&e.hasOwnProperty("traceState")&&!_.isString(e.traceState))return"traceState: string expected";if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var n=0;n<e.attributes.length;++n){var s=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(s)return"attributes."+s}}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(e.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.trace.v1.Span.Link)return e;var n=new p.opentelemetry.proto.trace.v1.Span.Link;if(e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceState!=null&&(n.traceState=String(e.traceState)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}return e.droppedAttributesCount!=null&&(n.droppedAttributesCount=e.droppedAttributesCount>>>0),n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[]),n.defaults&&(n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId))),n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),s.traceState="",s.droppedAttributesCount=0),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceState!=null&&e.hasOwnProperty("traceState")&&(s.traceState=e.traceState),e.attributes&&e.attributes.length){s.attributes=[];for(var l=0;l<e.attributes.length;++l)s.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[l],n)}return e.droppedAttributesCount!=null&&e.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=e.droppedAttributesCount),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.trace.v1.Span.Link"},u}(),a}(),c.Status=function(){function a(u){if(u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(t){return new a(t)},a.encode=function(t,e){return e||(e=h.create()),t.message!=null&&Object.hasOwnProperty.call(t,"message")&&e.uint32(18).string(t.message),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&e.uint32(24).int32(t.code),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.trace.v1.Status;t.pos<n;){var l=t.uint32();switch(l>>>3){case 2:{s.message=t.string();break}case 3:{s.code=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.message!=null&&t.hasOwnProperty("message")&&!_.isString(t.message))return"message: string expected";if(t.code!=null&&t.hasOwnProperty("code"))switch(t.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.trace.v1.Status)return t;var e=new p.opentelemetry.proto.trace.v1.Status;switch(t.message!=null&&(e.message=String(t.message)),t.code){default:if(typeof t.code=="number"){e.code=t.code;break}break;case"STATUS_CODE_UNSET":case 0:e.code=0;break;case"STATUS_CODE_OK":case 1:e.code=1;break;case"STATUS_CODE_ERROR":case 2:e.code=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.message="",n.code=e.enums===String?"STATUS_CODE_UNSET":0),t.message!=null&&t.hasOwnProperty("message")&&(n.message=t.message),t.code!=null&&t.hasOwnProperty("code")&&(n.code=e.enums===String?p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]===void 0?t.code:p.opentelemetry.proto.trace.v1.Status.StatusCode[t.code]:t.code),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var u={},t=Object.create(u);return t[u[0]="STATUS_CODE_UNSET"]=0,t[u[1]="STATUS_CODE_OK"]=1,t[u[2]="STATUS_CODE_ERROR"]=2,t}(),a}(),c}(),i}(),r.collector=function(){var i={};return i.trace=function(){var c={};return c.v1=function(){var a={};return a.TraceService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportTraceServiceRequest=function(){function u(t){if(this.resourceSpans=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceSpans=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceSpans!=null&&e.resourceSpans.length)for(var s=0;s<e.resourceSpans.length;++s)p.opentelemetry.proto.trace.v1.ResourceSpans.encode(e.resourceSpans[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(p.opentelemetry.proto.trace.v1.ResourceSpans.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceSpans!=null&&e.hasOwnProperty("resourceSpans")){if(!Array.isArray(e.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<e.resourceSpans.length;++n){var s=p.opentelemetry.proto.trace.v1.ResourceSpans.verify(e.resourceSpans[n]);if(s)return"resourceSpans."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(e.resourceSpans){if(!Array.isArray(e.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");n.resourceSpans=[];for(var s=0;s<e.resourceSpans.length;++s){if(typeof e.resourceSpans[s]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");n.resourceSpans[s]=p.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(e.resourceSpans[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceSpans=[]),e.resourceSpans&&e.resourceSpans.length){s.resourceSpans=[];for(var l=0;l<e.resourceSpans.length;++l)s.resourceSpans[l]=p.opentelemetry.proto.trace.v1.ResourceSpans.toObject(e.resourceSpans[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},u}(),a.ExportTraceServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},u}(),a.ExportTracePartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedSpans=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedSpans!=null&&Object.hasOwnProperty.call(e,"rejectedSpans")&&n.uint32(8).int64(e.rejectedSpans),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedSpans=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&!_.isInteger(e.rejectedSpans)&&!(e.rejectedSpans&&_.isInteger(e.rejectedSpans.low)&&_.isInteger(e.rejectedSpans.high))?"rejectedSpans: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return e;var n=new p.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return e.rejectedSpans!=null&&(_.Long?(n.rejectedSpans=_.Long.fromValue(e.rejectedSpans)).unsigned=!1:typeof e.rejectedSpans=="string"?n.rejectedSpans=parseInt(e.rejectedSpans,10):typeof e.rejectedSpans=="number"?n.rejectedSpans=e.rejectedSpans:typeof e.rejectedSpans=="object"&&(n.rejectedSpans=new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedSpans=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedSpans=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedSpans!=null&&e.hasOwnProperty("rejectedSpans")&&(typeof e.rejectedSpans=="number"?s.rejectedSpans=n.longs===String?String(e.rejectedSpans):e.rejectedSpans:s.rejectedSpans=n.longs===String?_.Long.prototype.toString.call(e.rejectedSpans):n.longs===Number?new _.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber():e.rejectedSpans),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},u}(),a}(),c}(),i.metrics=function(){var c={};return c.v1=function(){var a={};return a.MetricsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportMetricsServiceRequest=function(){function u(t){if(this.resourceMetrics=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceMetrics=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceMetrics!=null&&e.resourceMetrics.length)for(var s=0;s<e.resourceMetrics.length;++s)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(e.resourceMetrics[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceMetrics!=null&&e.hasOwnProperty("resourceMetrics")){if(!Array.isArray(e.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<e.resourceMetrics.length;++n){var s=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(e.resourceMetrics[n]);if(s)return"resourceMetrics."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(e.resourceMetrics){if(!Array.isArray(e.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");n.resourceMetrics=[];for(var s=0;s<e.resourceMetrics.length;++s){if(typeof e.resourceMetrics[s]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(e.resourceMetrics[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceMetrics=[]),e.resourceMetrics&&e.resourceMetrics.length){s.resourceMetrics=[];for(var l=0;l<e.resourceMetrics.length;++l)s.resourceMetrics[l]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(e.resourceMetrics[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},u}(),a.ExportMetricsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},u}(),a.ExportMetricsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedDataPoints=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedDataPoints!=null&&Object.hasOwnProperty.call(e,"rejectedDataPoints")&&n.uint32(8).int64(e.rejectedDataPoints),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedDataPoints=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&!_.isInteger(e.rejectedDataPoints)&&!(e.rejectedDataPoints&&_.isInteger(e.rejectedDataPoints.low)&&_.isInteger(e.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return e.rejectedDataPoints!=null&&(_.Long?(n.rejectedDataPoints=_.Long.fromValue(e.rejectedDataPoints)).unsigned=!1:typeof e.rejectedDataPoints=="string"?n.rejectedDataPoints=parseInt(e.rejectedDataPoints,10):typeof e.rejectedDataPoints=="number"?n.rejectedDataPoints=e.rejectedDataPoints:typeof e.rejectedDataPoints=="object"&&(n.rejectedDataPoints=new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedDataPoints=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedDataPoints=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedDataPoints!=null&&e.hasOwnProperty("rejectedDataPoints")&&(typeof e.rejectedDataPoints=="number"?s.rejectedDataPoints=n.longs===String?String(e.rejectedDataPoints):e.rejectedDataPoints:s.rejectedDataPoints=n.longs===String?_.Long.prototype.toString.call(e.rejectedDataPoints):n.longs===Number?new _.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber():e.rejectedDataPoints),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},u}(),a}(),c}(),i.logs=function(){var c={};return c.v1=function(){var a={};return a.LogsService=function(){function u(t,e,n){v.rpc.Service.call(this,t,e,n)}return(u.prototype=Object.create(v.rpc.Service.prototype)).constructor=u,u.create=function(e,n,s){return new this(e,n,s)},Object.defineProperty(u.prototype.export=function t(e,n){return this.rpcCall(t,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,e,n)},"name",{value:"Export"}),u}(),a.ExportLogsServiceRequest=function(){function u(t){if(this.resourceLogs=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.resourceLogs=_.emptyArray,u.create=function(e){return new u(e)},u.encode=function(e,n){if(n||(n=h.create()),e.resourceLogs!=null&&e.resourceLogs.length)for(var s=0;s<e.resourceLogs.length;++s)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(e.resourceLogs[s],n.uint32(10).fork()).ldelim();return n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(e,e.uint32()));break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.resourceLogs!=null&&e.hasOwnProperty("resourceLogs")){if(!Array.isArray(e.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<e.resourceLogs.length;++n){var s=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(e.resourceLogs[n]);if(s)return"resourceLogs."+s}}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(e.resourceLogs){if(!Array.isArray(e.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");n.resourceLogs=[];for(var s=0;s<e.resourceLogs.length;++s){if(typeof e.resourceLogs[s]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(e.resourceLogs[s])}}return n},u.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.resourceLogs=[]),e.resourceLogs&&e.resourceLogs.length){s.resourceLogs=[];for(var l=0;l<e.resourceLogs.length;++l)s.resourceLogs[l]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(e.resourceLogs[l],n)}return s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},u}(),a.ExportLogsServiceResponse=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.partialSuccess=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,"partialSuccess")&&p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(e.partialSuccess,n.uint32(10).fork()).ldelim(),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){if(typeof e!="object"||e===null)return"object expected";if(e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")){var n=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(e.partialSuccess);if(n)return"partialSuccess."+n}return null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");n.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(e.partialSuccess)}return n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty("partialSuccess")&&(s.partialSuccess=p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(e.partialSuccess,n)),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},u}(),a.ExportLogsPartialSuccess=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.rejectedLogRecords=null,u.prototype.errorMessage=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.rejectedLogRecords!=null&&Object.hasOwnProperty.call(e,"rejectedLogRecords")&&n.uint32(8).int64(e.rejectedLogRecords),e.errorMessage!=null&&Object.hasOwnProperty.call(e,"errorMessage")&&n.uint32(18).string(e.errorMessage),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.rejectedLogRecords=e.int64();break}case 2:{l.errorMessage=e.string();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&!_.isInteger(e.rejectedLogRecords)&&!(e.rejectedLogRecords&&_.isInteger(e.rejectedLogRecords.low)&&_.isInteger(e.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&!_.isString(e.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return e;var n=new p.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return e.rejectedLogRecords!=null&&(_.Long?(n.rejectedLogRecords=_.Long.fromValue(e.rejectedLogRecords)).unsigned=!1:typeof e.rejectedLogRecords=="string"?n.rejectedLogRecords=parseInt(e.rejectedLogRecords,10):typeof e.rejectedLogRecords=="number"?n.rejectedLogRecords=e.rejectedLogRecords:typeof e.rejectedLogRecords=="object"&&(n.rejectedLogRecords=new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber())),e.errorMessage!=null&&(n.errorMessage=String(e.errorMessage)),n},u.toObject=function(e,n){n||(n={});var s={};if(n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.rejectedLogRecords=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.rejectedLogRecords=n.longs===String?"0":0;s.errorMessage=""}return e.rejectedLogRecords!=null&&e.hasOwnProperty("rejectedLogRecords")&&(typeof e.rejectedLogRecords=="number"?s.rejectedLogRecords=n.longs===String?String(e.rejectedLogRecords):e.rejectedLogRecords:s.rejectedLogRecords=n.longs===String?_.Long.prototype.toString.call(e.rejectedLogRecords):n.longs===Number?new _.LongBits(e.rejectedLogRecords.low>>>0,e.rejectedLogRecords.high>>>0).toNumber():e.rejectedLogRecords),e.errorMessage!=null&&e.hasOwnProperty("errorMessage")&&(s.errorMessage=e.errorMessage),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},u}(),a}(),c}(),i}(),r.metrics=function(){var i={};return i.v1=function(){var c={};return c.MetricsData=function(){function a(u){if(this.resourceMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceMetrics=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceMetrics!=null&&t.resourceMetrics.length)for(var n=0;n<t.resourceMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(t.resourceMetrics[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.MetricsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceMetrics&&s.resourceMetrics.length||(s.resourceMetrics=[]),s.resourceMetrics.push(p.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceMetrics!=null&&t.hasOwnProperty("resourceMetrics")){if(!Array.isArray(t.resourceMetrics))return"resourceMetrics: array expected";for(var e=0;e<t.resourceMetrics.length;++e){var n=p.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(t.resourceMetrics[e]);if(n)return"resourceMetrics."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.MetricsData)return t;var e=new p.opentelemetry.proto.metrics.v1.MetricsData;if(t.resourceMetrics){if(!Array.isArray(t.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");e.resourceMetrics=[];for(var n=0;n<t.resourceMetrics.length;++n){if(typeof t.resourceMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");e.resourceMetrics[n]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(t.resourceMetrics[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceMetrics=[]),t.resourceMetrics&&t.resourceMetrics.length){n.resourceMetrics=[];for(var s=0;s<t.resourceMetrics.length;++s)n.resourceMetrics[s]=p.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(t.resourceMetrics[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),c.ResourceMetrics=function(){function a(u){if(this.scopeMetrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeMetrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeMetrics!=null&&t.scopeMetrics.length)for(var n=0;n<t.scopeMetrics.length;++n)p.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(t.scopeMetrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeMetrics&&s.scopeMetrics.length||(s.scopeMetrics=[]),s.scopeMetrics.push(p.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeMetrics!=null&&t.hasOwnProperty("scopeMetrics")){if(!Array.isArray(t.scopeMetrics))return"scopeMetrics: array expected";for(var n=0;n<t.scopeMetrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(t.scopeMetrics[n]);if(e)return"scopeMetrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ResourceMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ResourceMetrics;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeMetrics){if(!Array.isArray(t.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");e.scopeMetrics=[];for(var n=0;n<t.scopeMetrics.length;++n){if(typeof t.scopeMetrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");e.scopeMetrics[n]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(t.scopeMetrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeMetrics=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeMetrics&&t.scopeMetrics.length){n.scopeMetrics=[];for(var s=0;s<t.scopeMetrics.length;++s)n.scopeMetrics[s]=p.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(t.scopeMetrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),c.ScopeMetrics=function(){function a(u){if(this.metrics=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.metrics=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.metrics!=null&&t.metrics.length)for(var n=0;n<t.metrics.length;++n)p.opentelemetry.proto.metrics.v1.Metric.encode(t.metrics[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.metrics&&s.metrics.length||(s.metrics=[]),s.metrics.push(p.opentelemetry.proto.metrics.v1.Metric.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.metrics!=null&&t.hasOwnProperty("metrics")){if(!Array.isArray(t.metrics))return"metrics: array expected";for(var n=0;n<t.metrics.length;++n){var e=p.opentelemetry.proto.metrics.v1.Metric.verify(t.metrics[n]);if(e)return"metrics."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ScopeMetrics)return t;var e=new p.opentelemetry.proto.metrics.v1.ScopeMetrics;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");e.metrics=[];for(var n=0;n<t.metrics.length;++n){if(typeof t.metrics[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");e.metrics[n]=p.opentelemetry.proto.metrics.v1.Metric.fromObject(t.metrics[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.metrics=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.metrics&&t.metrics.length){n.metrics=[];for(var s=0;s<t.metrics.length;++s)n.metrics[s]=p.opentelemetry.proto.metrics.v1.Metric.toObject(t.metrics[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),c.Metric=function(){function a(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var u;return Object.defineProperty(a.prototype,"data",{get:_.oneOfGetter(u=["gauge","sum","histogram","exponentialHistogram","summary"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){return n||(n=h.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&n.uint32(10).string(e.name),e.description!=null&&Object.hasOwnProperty.call(e,"description")&&n.uint32(18).string(e.description),e.unit!=null&&Object.hasOwnProperty.call(e,"unit")&&n.uint32(26).string(e.unit),e.gauge!=null&&Object.hasOwnProperty.call(e,"gauge")&&p.opentelemetry.proto.metrics.v1.Gauge.encode(e.gauge,n.uint32(42).fork()).ldelim(),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&p.opentelemetry.proto.metrics.v1.Sum.encode(e.sum,n.uint32(58).fork()).ldelim(),e.histogram!=null&&Object.hasOwnProperty.call(e,"histogram")&&p.opentelemetry.proto.metrics.v1.Histogram.encode(e.histogram,n.uint32(74).fork()).ldelim(),e.exponentialHistogram!=null&&Object.hasOwnProperty.call(e,"exponentialHistogram")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(e.exponentialHistogram,n.uint32(82).fork()).ldelim(),e.summary!=null&&Object.hasOwnProperty.call(e,"summary")&&p.opentelemetry.proto.metrics.v1.Summary.encode(e.summary,n.uint32(90).fork()).ldelim(),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Metric;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.name=e.string();break}case 2:{l.description=e.string();break}case 3:{l.unit=e.string();break}case 5:{l.gauge=p.opentelemetry.proto.metrics.v1.Gauge.decode(e,e.uint32());break}case 7:{l.sum=p.opentelemetry.proto.metrics.v1.Sum.decode(e,e.uint32());break}case 9:{l.histogram=p.opentelemetry.proto.metrics.v1.Histogram.decode(e,e.uint32());break}case 10:{l.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(e,e.uint32());break}case 11:{l.summary=p.opentelemetry.proto.metrics.v1.Summary.decode(e,e.uint32());break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.name!=null&&e.hasOwnProperty("name")&&!_.isString(e.name))return"name: string expected";if(e.description!=null&&e.hasOwnProperty("description")&&!_.isString(e.description))return"description: string expected";if(e.unit!=null&&e.hasOwnProperty("unit")&&!_.isString(e.unit))return"unit: string expected";if(e.gauge!=null&&e.hasOwnProperty("gauge")){n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Gauge.verify(e.gauge);if(s)return"gauge."+s}}if(e.sum!=null&&e.hasOwnProperty("sum")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Sum.verify(e.sum);if(s)return"sum."+s}}if(e.histogram!=null&&e.hasOwnProperty("histogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Histogram.verify(e.histogram);if(s)return"histogram."+s}}if(e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(e.exponentialHistogram);if(s)return"exponentialHistogram."+s}}if(e.summary!=null&&e.hasOwnProperty("summary")){if(n.data===1)return"data: multiple values";n.data=1;{var s=p.opentelemetry.proto.metrics.v1.Summary.verify(e.summary);if(s)return"summary."+s}}return null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Metric)return e;var n=new p.opentelemetry.proto.metrics.v1.Metric;if(e.name!=null&&(n.name=String(e.name)),e.description!=null&&(n.description=String(e.description)),e.unit!=null&&(n.unit=String(e.unit)),e.gauge!=null){if(typeof e.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");n.gauge=p.opentelemetry.proto.metrics.v1.Gauge.fromObject(e.gauge)}if(e.sum!=null){if(typeof e.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");n.sum=p.opentelemetry.proto.metrics.v1.Sum.fromObject(e.sum)}if(e.histogram!=null){if(typeof e.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");n.histogram=p.opentelemetry.proto.metrics.v1.Histogram.fromObject(e.histogram)}if(e.exponentialHistogram!=null){if(typeof e.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");n.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(e.exponentialHistogram)}if(e.summary!=null){if(typeof e.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");n.summary=p.opentelemetry.proto.metrics.v1.Summary.fromObject(e.summary)}return n},a.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.name="",s.description="",s.unit=""),e.name!=null&&e.hasOwnProperty("name")&&(s.name=e.name),e.description!=null&&e.hasOwnProperty("description")&&(s.description=e.description),e.unit!=null&&e.hasOwnProperty("unit")&&(s.unit=e.unit),e.gauge!=null&&e.hasOwnProperty("gauge")&&(s.gauge=p.opentelemetry.proto.metrics.v1.Gauge.toObject(e.gauge,n),n.oneofs&&(s.data="gauge")),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=p.opentelemetry.proto.metrics.v1.Sum.toObject(e.sum,n),n.oneofs&&(s.data="sum")),e.histogram!=null&&e.hasOwnProperty("histogram")&&(s.histogram=p.opentelemetry.proto.metrics.v1.Histogram.toObject(e.histogram,n),n.oneofs&&(s.data="histogram")),e.exponentialHistogram!=null&&e.hasOwnProperty("exponentialHistogram")&&(s.exponentialHistogram=p.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(e.exponentialHistogram,n),n.oneofs&&(s.data="exponentialHistogram")),e.summary!=null&&e.hasOwnProperty("summary")&&(s.summary=p.opentelemetry.proto.metrics.v1.Summary.toObject(e.summary,n),n.oneofs&&(s.data="summary")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Metric"},a}(),c.Gauge=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Gauge;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Gauge)return t;var e=new p.opentelemetry.proto.metrics.v1.Gauge;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),c.Sum=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),t.isMonotonic!=null&&Object.hasOwnProperty.call(t,"isMonotonic")&&e.uint32(24).bool(t.isMonotonic),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Sum;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}case 3:{s.isMonotonic=t.bool();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&typeof t.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Sum)return t;var e=new p.opentelemetry.proto.metrics.v1.Sum;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return t.isMonotonic!=null&&(e.isMonotonic=!!t.isMonotonic),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,n.isMonotonic=!1),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),t.isMonotonic!=null&&t.hasOwnProperty("isMonotonic")&&(n.isMonotonic=t.isMonotonic),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Sum"},a}(),c.Histogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Histogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Histogram)return t;var e=new p.opentelemetry.proto.metrics.v1.Histogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),c.ExponentialHistogram=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return t.aggregationTemporality!=null&&Object.hasOwnProperty.call(t,"aggregationTemporality")&&e.uint32(16).int32(t.aggregationTemporality),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(t,t.uint32()));break}case 2:{s.aggregationTemporality=t.int32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}if(t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality"))switch(t.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogram)return t;var e=new p.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(t.dataPoints[n])}}switch(t.aggregationTemporality){default:if(typeof t.aggregationTemporality=="number"){e.aggregationTemporality=t.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:e.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:e.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:e.aggregationTemporality=2;break}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),e.defaults&&(n.aggregationTemporality=e.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(t.dataPoints[s],e)}return t.aggregationTemporality!=null&&t.hasOwnProperty("aggregationTemporality")&&(n.aggregationTemporality=e.enums===String?p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]===void 0?t.aggregationTemporality:p.opentelemetry.proto.metrics.v1.AggregationTemporality[t.aggregationTemporality]:t.aggregationTemporality),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),c.Summary=function(){function a(u){if(this.dataPoints=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.dataPoints=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.dataPoints!=null&&t.dataPoints.length)for(var n=0;n<t.dataPoints.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(t.dataPoints[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.Summary;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.dataPoints&&s.dataPoints.length||(s.dataPoints=[]),s.dataPoints.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dataPoints!=null&&t.hasOwnProperty("dataPoints")){if(!Array.isArray(t.dataPoints))return"dataPoints: array expected";for(var e=0;e<t.dataPoints.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(t.dataPoints[e]);if(n)return"dataPoints."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.Summary)return t;var e=new p.opentelemetry.proto.metrics.v1.Summary;if(t.dataPoints){if(!Array.isArray(t.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");e.dataPoints=[];for(var n=0;n<t.dataPoints.length;++n){if(typeof t.dataPoints[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");e.dataPoints[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(t.dataPoints[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.dataPoints=[]),t.dataPoints&&t.dataPoints.length){n.dataPoints=[];for(var s=0;s<t.dataPoints.length;++s)n.dataPoints[s]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(t.dataPoints[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.Summary"},a}(),c.AggregationTemporality=function(){var a={},u=Object.create(a);return u[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,u[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,u[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,u}(),c.DataPointFlags=function(){var a={},u=Object.create(a);return u[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,u[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,u}(),c.NumberDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(33).double(e.asDouble),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(42).fork()).ldelim();if(e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(58).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(64).uint32(e.flags),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 5:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 8:{l.flags=e.uint32();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.NumberDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.NumberDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),c.HistogramDataPoint=function(){function a(t){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=_.emptyArray,a.prototype.explicitBounds=_.emptyArray,a.prototype.exemplars=_.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.bucketCounts!=null&&e.bucketCounts.length){n.uint32(50).fork();for(var s=0;s<e.bucketCounts.length;++s)n.fixed64(e.bucketCounts[s]);n.ldelim()}if(e.explicitBounds!=null&&e.explicitBounds.length){n.uint32(58).fork();for(var s=0;s<e.explicitBounds.length;++s)n.double(e.explicitBounds[s]);n.ldelim()}if(e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(66).fork()).ldelim();if(e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(74).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(89).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(97).double(e.max),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{if(l.bucketCounts&&l.bucketCounts.length||(l.bucketCounts=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.bucketCounts.push(e.fixed64());else l.bucketCounts.push(e.fixed64());break}case 7:{if(l.explicitBounds&&l.explicitBounds.length||(l.explicitBounds=[]),(E&7)===2)for(var O=e.uint32()+e.pos;e.pos<O;)l.explicitBounds.push(e.double());else l.explicitBounds.push(e.double());break}case 8:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 10:{l.flags=e.uint32();break}case 11:{l.min=e.double();break}case 12:{l.max=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.bucketCounts!=null&&e.hasOwnProperty("bucketCounts")){if(!Array.isArray(e.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<e.bucketCounts.length;++s)if(!_.isInteger(e.bucketCounts[s])&&!(e.bucketCounts[s]&&_.isInteger(e.bucketCounts[s].low)&&_.isInteger(e.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}if(e.explicitBounds!=null&&e.hasOwnProperty("explicitBounds")){if(!Array.isArray(e.explicitBounds))return"explicitBounds: array expected";for(var s=0;s<e.explicitBounds.length;++s)if(typeof e.explicitBounds[s]!="number")return"explicitBounds: number[] expected"}if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags)?"flags: integer expected":e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.HistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.bucketCounts){if(!Array.isArray(e.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");n.bucketCounts=[];for(var s=0;s<e.bucketCounts.length;++s)_.Long?(n.bucketCounts[s]=_.Long.fromValue(e.bucketCounts[s])).unsigned=!1:typeof e.bucketCounts[s]=="string"?n.bucketCounts[s]=parseInt(e.bucketCounts[s],10):typeof e.bucketCounts[s]=="number"?n.bucketCounts[s]=e.bucketCounts[s]:typeof e.bucketCounts[s]=="object"&&(n.bucketCounts[s]=new _.LongBits(e.bucketCounts[s].low>>>0,e.bucketCounts[s].high>>>0).toNumber())}if(e.explicitBounds){if(!Array.isArray(e.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");n.explicitBounds=[];for(var s=0;s<e.explicitBounds.length;++s)n.explicitBounds[s]=Number(e.explicitBounds[s])}if(e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.flags!=null&&(n.flags=e.flags>>>0),e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.bucketCounts=[],s.explicitBounds=[],s.exemplars=[],s.attributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;s.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.bucketCounts&&e.bucketCounts.length){s.bucketCounts=[];for(var E=0;E<e.bucketCounts.length;++E)typeof e.bucketCounts[E]=="number"?s.bucketCounts[E]=n.longs===String?String(e.bucketCounts[E]):e.bucketCounts[E]:s.bucketCounts[E]=n.longs===String?_.Long.prototype.toString.call(e.bucketCounts[E]):n.longs===Number?new _.LongBits(e.bucketCounts[E].low>>>0,e.bucketCounts[E].high>>>0).toNumber():e.bucketCounts[E]}if(e.explicitBounds&&e.explicitBounds.length){s.explicitBounds=[];for(var E=0;E<e.explicitBounds.length;++E)s.explicitBounds[E]=n.json&&!isFinite(e.explicitBounds[E])?String(e.explicitBounds[E]):e.explicitBounds[E]}if(e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}return e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),c.ExponentialHistogramDataPoint=function(){function a(t){if(this.attributes=[],this.exemplars=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=_.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:_.oneOfGetter(u=["sum"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:_.oneOfGetter(u=["min"]),set:_.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:_.oneOfGetter(u=["max"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.attributes!=null&&e.attributes.length)for(var s=0;s<e.attributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[s],n.uint32(10).fork()).ldelim();if(e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,"startTimeUnixNano")&&n.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,"count")&&n.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,"sum")&&n.uint32(41).double(e.sum),e.scale!=null&&Object.hasOwnProperty.call(e,"scale")&&n.uint32(48).sint32(e.scale),e.zeroCount!=null&&Object.hasOwnProperty.call(e,"zeroCount")&&n.uint32(57).fixed64(e.zeroCount),e.positive!=null&&Object.hasOwnProperty.call(e,"positive")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.positive,n.uint32(66).fork()).ldelim(),e.negative!=null&&Object.hasOwnProperty.call(e,"negative")&&p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.negative,n.uint32(74).fork()).ldelim(),e.flags!=null&&Object.hasOwnProperty.call(e,"flags")&&n.uint32(80).uint32(e.flags),e.exemplars!=null&&e.exemplars.length)for(var s=0;s<e.exemplars.length;++s)p.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[s],n.uint32(90).fork()).ldelim();return e.min!=null&&Object.hasOwnProperty.call(e,"min")&&n.uint32(97).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&n.uint32(105).double(e.max),e.zeroThreshold!=null&&Object.hasOwnProperty.call(e,"zeroThreshold")&&n.uint32(113).double(e.zeroThreshold),n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.startTimeUnixNano=e.fixed64();break}case 3:{l.timeUnixNano=e.fixed64();break}case 4:{l.count=e.fixed64();break}case 5:{l.sum=e.double();break}case 6:{l.scale=e.sint32();break}case 7:{l.zeroCount=e.fixed64();break}case 8:{l.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 9:{l.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break}case 10:{l.flags=e.uint32();break}case 11:{l.exemplars&&l.exemplars.length||(l.exemplars=[]),l.exemplars.push(p.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break}case 12:{l.min=e.double();break}case 13:{l.max=e.double();break}case 14:{l.zeroThreshold=e.double();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.attributes!=null&&e.hasOwnProperty("attributes")){if(!Array.isArray(e.attributes))return"attributes: array expected";for(var s=0;s<e.attributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[s]);if(l)return"attributes."+l}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&_.isInteger(e.startTimeUnixNano.low)&&_.isInteger(e.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.count!=null&&e.hasOwnProperty("count")&&!_.isInteger(e.count)&&!(e.count&&_.isInteger(e.count.low)&&_.isInteger(e.count.high)))return"count: integer|Long expected";if(e.sum!=null&&e.hasOwnProperty("sum")&&(n._sum=1,typeof e.sum!="number"))return"sum: number expected";if(e.scale!=null&&e.hasOwnProperty("scale")&&!_.isInteger(e.scale))return"scale: integer expected";if(e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&!_.isInteger(e.zeroCount)&&!(e.zeroCount&&_.isInteger(e.zeroCount.low)&&_.isInteger(e.zeroCount.high)))return"zeroCount: integer|Long expected";if(e.positive!=null&&e.hasOwnProperty("positive")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.positive);if(l)return"positive."+l}if(e.negative!=null&&e.hasOwnProperty("negative")){var l=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.negative);if(l)return"negative."+l}if(e.flags!=null&&e.hasOwnProperty("flags")&&!_.isInteger(e.flags))return"flags: integer expected";if(e.exemplars!=null&&e.hasOwnProperty("exemplars")){if(!Array.isArray(e.exemplars))return"exemplars: array expected";for(var s=0;s<e.exemplars.length;++s){var l=p.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[s]);if(l)return"exemplars."+l}}return e.min!=null&&e.hasOwnProperty("min")&&(n._min=1,typeof e.min!="number")?"min: number expected":e.max!=null&&e.hasOwnProperty("max")&&(n._max=1,typeof e.max!="number")?"max: number expected":e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&typeof e.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return e;var n=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");n.attributes=[];for(var s=0;s<e.attributes.length;++s){if(typeof e.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");n.attributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[s])}}if(e.startTimeUnixNano!=null&&(_.Long?(n.startTimeUnixNano=_.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano=="number"?n.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(_.Long?(n.count=_.Long.fromValue(e.count)).unsigned=!1:typeof e.count=="string"?n.count=parseInt(e.count,10):typeof e.count=="number"?n.count=e.count:typeof e.count=="object"&&(n.count=new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(n.sum=Number(e.sum)),e.scale!=null&&(n.scale=e.scale|0),e.zeroCount!=null&&(_.Long?(n.zeroCount=_.Long.fromValue(e.zeroCount)).unsigned=!1:typeof e.zeroCount=="string"?n.zeroCount=parseInt(e.zeroCount,10):typeof e.zeroCount=="number"?n.zeroCount=e.zeroCount:typeof e.zeroCount=="object"&&(n.zeroCount=new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber())),e.positive!=null){if(typeof e.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");n.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.positive)}if(e.negative!=null){if(typeof e.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");n.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.negative)}if(e.flags!=null&&(n.flags=e.flags>>>0),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");n.exemplars=[];for(var s=0;s<e.exemplars.length;++s){if(typeof e.exemplars[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");n.exemplars[s]=p.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[s])}}return e.min!=null&&(n.min=Number(e.min)),e.max!=null&&(n.max=Number(e.max)),e.zeroThreshold!=null&&(n.zeroThreshold=Number(e.zeroThreshold)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.attributes=[],s.exemplars=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.startTimeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.startTimeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;if(_.Long){var l=new _.Long(0,0,!1);s.count=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.count=n.longs===String?"0":0;if(s.scale=0,_.Long){var l=new _.Long(0,0,!1);s.zeroCount=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.zeroCount=n.longs===String?"0":0;s.positive=null,s.negative=null,s.flags=0,s.zeroThreshold=0}if(e.attributes&&e.attributes.length){s.attributes=[];for(var E=0;E<e.attributes.length;++E)s.attributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[E],n)}if(e.startTimeUnixNano!=null&&e.hasOwnProperty("startTimeUnixNano")&&(typeof e.startTimeUnixNano=="number"?s.startTimeUnixNano=n.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:s.startTimeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.startTimeUnixNano):n.longs===Number?new _.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty("count")&&(typeof e.count=="number"?s.count=n.longs===String?String(e.count):e.count:s.count=n.longs===String?_.Long.prototype.toString.call(e.count):n.longs===Number?new _.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty("sum")&&(s.sum=n.json&&!isFinite(e.sum)?String(e.sum):e.sum,n.oneofs&&(s._sum="sum")),e.scale!=null&&e.hasOwnProperty("scale")&&(s.scale=e.scale),e.zeroCount!=null&&e.hasOwnProperty("zeroCount")&&(typeof e.zeroCount=="number"?s.zeroCount=n.longs===String?String(e.zeroCount):e.zeroCount:s.zeroCount=n.longs===String?_.Long.prototype.toString.call(e.zeroCount):n.longs===Number?new _.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber():e.zeroCount),e.positive!=null&&e.hasOwnProperty("positive")&&(s.positive=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.positive,n)),e.negative!=null&&e.hasOwnProperty("negative")&&(s.negative=p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.negative,n)),e.flags!=null&&e.hasOwnProperty("flags")&&(s.flags=e.flags),e.exemplars&&e.exemplars.length){s.exemplars=[];for(var E=0;E<e.exemplars.length;++E)s.exemplars[E]=p.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[E],n)}return e.min!=null&&e.hasOwnProperty("min")&&(s.min=n.json&&!isFinite(e.min)?String(e.min):e.min,n.oneofs&&(s._min="min")),e.max!=null&&e.hasOwnProperty("max")&&(s.max=n.json&&!isFinite(e.max)?String(e.max):e.max,n.oneofs&&(s._max="max")),e.zeroThreshold!=null&&e.hasOwnProperty("zeroThreshold")&&(s.zeroThreshold=n.json&&!isFinite(e.zeroThreshold)?String(e.zeroThreshold):e.zeroThreshold),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function t(e){if(this.bucketCounts=[],e)for(var n=Object.keys(e),s=0;s<n.length;++s)e[n[s]]!=null&&(this[n[s]]=e[n[s]])}return t.prototype.offset=null,t.prototype.bucketCounts=_.emptyArray,t.create=function(n){return new t(n)},t.encode=function(n,s){if(s||(s=h.create()),n.offset!=null&&Object.hasOwnProperty.call(n,"offset")&&s.uint32(8).sint32(n.offset),n.bucketCounts!=null&&n.bucketCounts.length){s.uint32(18).fork();for(var l=0;l<n.bucketCounts.length;++l)s.uint64(n.bucketCounts[l]);s.ldelim()}return s},t.encodeDelimited=function(n,s){return this.encode(n,s).ldelim()},t.decode=function(n,s){n instanceof T||(n=T.create(n));for(var l=s===void 0?n.len:n.pos+s,E=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;n.pos<l;){var O=n.uint32();switch(O>>>3){case 1:{E.offset=n.sint32();break}case 2:{if(E.bucketCounts&&E.bucketCounts.length||(E.bucketCounts=[]),(O&7)===2)for(var g=n.uint32()+n.pos;n.pos<g;)E.bucketCounts.push(n.uint64());else E.bucketCounts.push(n.uint64());break}default:n.skipType(O&7);break}}return E},t.decodeDelimited=function(n){return n instanceof T||(n=new T(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.offset!=null&&n.hasOwnProperty("offset")&&!_.isInteger(n.offset))return"offset: integer expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var s=0;s<n.bucketCounts.length;++s)if(!_.isInteger(n.bucketCounts[s])&&!(n.bucketCounts[s]&&_.isInteger(n.bucketCounts[s].low)&&_.isInteger(n.bucketCounts[s].high)))return"bucketCounts: integer|Long[] expected"}return null},t.fromObject=function(n){if(n instanceof p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return n;var s=new p.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(n.offset!=null&&(s.offset=n.offset|0),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");s.bucketCounts=[];for(var l=0;l<n.bucketCounts.length;++l)_.Long?(s.bucketCounts[l]=_.Long.fromValue(n.bucketCounts[l])).unsigned=!0:typeof n.bucketCounts[l]=="string"?s.bucketCounts[l]=parseInt(n.bucketCounts[l],10):typeof n.bucketCounts[l]=="number"?s.bucketCounts[l]=n.bucketCounts[l]:typeof n.bucketCounts[l]=="object"&&(s.bucketCounts[l]=new _.LongBits(n.bucketCounts[l].low>>>0,n.bucketCounts[l].high>>>0).toNumber(!0))}return s},t.toObject=function(n,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.bucketCounts=[]),s.defaults&&(l.offset=0),n.offset!=null&&n.hasOwnProperty("offset")&&(l.offset=n.offset),n.bucketCounts&&n.bucketCounts.length){l.bucketCounts=[];for(var E=0;E<n.bucketCounts.length;++E)typeof n.bucketCounts[E]=="number"?l.bucketCounts[E]=s.longs===String?String(n.bucketCounts[E]):n.bucketCounts[E]:l.bucketCounts[E]=s.longs===String?_.Long.prototype.toString.call(n.bucketCounts[E]):s.longs===Number?new _.LongBits(n.bucketCounts[E].low>>>0,n.bucketCounts[E].high>>>0).toNumber(!0):n.bucketCounts[E]}return l},t.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},t}(),a}(),c.SummaryDataPoint=function(){function a(u){if(this.attributes=[],this.quantileValues=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.attributes=_.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=_.emptyArray,a.prototype.flags=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.startTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"startTimeUnixNano")&&e.uint32(17).fixed64(t.startTimeUnixNano),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(25).fixed64(t.timeUnixNano),t.count!=null&&Object.hasOwnProperty.call(t,"count")&&e.uint32(33).fixed64(t.count),t.sum!=null&&Object.hasOwnProperty.call(t,"sum")&&e.uint32(41).double(t.sum),t.quantileValues!=null&&t.quantileValues.length)for(var n=0;n<t.quantileValues.length;++n)p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(t.quantileValues[n],e.uint32(50).fork()).ldelim();if(t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(58).fork()).ldelim();return t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(64).uint32(t.flags),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;t.pos<n;){var l=t.uint32();switch(l>>>3){case 7:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 2:{s.startTimeUnixNano=t.fixed64();break}case 3:{s.timeUnixNano=t.fixed64();break}case 4:{s.count=t.fixed64();break}case 5:{s.sum=t.double();break}case 6:{s.quantileValues&&s.quantileValues.length||(s.quantileValues=[]),s.quantileValues.push(p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(t,t.uint32()));break}case 8:{s.flags=t.uint32();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var e=0;e<t.attributes.length;++e){var n=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[e]);if(n)return"attributes."+n}}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&!_.isInteger(t.startTimeUnixNano)&&!(t.startTimeUnixNano&&_.isInteger(t.startTimeUnixNano.low)&&_.isInteger(t.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.count!=null&&t.hasOwnProperty("count")&&!_.isInteger(t.count)&&!(t.count&&_.isInteger(t.count.low)&&_.isInteger(t.count.high)))return"count: integer|Long expected";if(t.sum!=null&&t.hasOwnProperty("sum")&&typeof t.sum!="number")return"sum: number expected";if(t.quantileValues!=null&&t.hasOwnProperty("quantileValues")){if(!Array.isArray(t.quantileValues))return"quantileValues: array expected";for(var e=0;e<t.quantileValues.length;++e){var n=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(t.quantileValues[e]);if(n)return"quantileValues."+n}}return t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint)return t;var e=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}if(t.startTimeUnixNano!=null&&(_.Long?(e.startTimeUnixNano=_.Long.fromValue(t.startTimeUnixNano)).unsigned=!1:typeof t.startTimeUnixNano=="string"?e.startTimeUnixNano=parseInt(t.startTimeUnixNano,10):typeof t.startTimeUnixNano=="number"?e.startTimeUnixNano=t.startTimeUnixNano:typeof t.startTimeUnixNano=="object"&&(e.startTimeUnixNano=new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber())),t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.count!=null&&(_.Long?(e.count=_.Long.fromValue(t.count)).unsigned=!1:typeof t.count=="string"?e.count=parseInt(t.count,10):typeof t.count=="number"?e.count=t.count:typeof t.count=="object"&&(e.count=new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber())),t.sum!=null&&(e.sum=Number(t.sum)),t.quantileValues){if(!Array.isArray(t.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");e.quantileValues=[];for(var n=0;n<t.quantileValues.length;++n){if(typeof t.quantileValues[n]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");e.quantileValues[n]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(t.quantileValues[n])}}return t.flags!=null&&(e.flags=t.flags>>>0),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.quantileValues=[],n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.startTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.startTimeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(_.Long){var s=new _.Long(0,0,!1);n.count=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.count=e.longs===String?"0":0;n.sum=0,n.flags=0}if(t.startTimeUnixNano!=null&&t.hasOwnProperty("startTimeUnixNano")&&(typeof t.startTimeUnixNano=="number"?n.startTimeUnixNano=e.longs===String?String(t.startTimeUnixNano):t.startTimeUnixNano:n.startTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.startTimeUnixNano):e.longs===Number?new _.LongBits(t.startTimeUnixNano.low>>>0,t.startTimeUnixNano.high>>>0).toNumber():t.startTimeUnixNano),t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.count!=null&&t.hasOwnProperty("count")&&(typeof t.count=="number"?n.count=e.longs===String?String(t.count):t.count:n.count=e.longs===String?_.Long.prototype.toString.call(t.count):e.longs===Number?new _.LongBits(t.count.low>>>0,t.count.high>>>0).toNumber():t.count),t.sum!=null&&t.hasOwnProperty("sum")&&(n.sum=e.json&&!isFinite(t.sum)?String(t.sum):t.sum),t.quantileValues&&t.quantileValues.length){n.quantileValues=[];for(var l=0;l<t.quantileValues.length;++l)n.quantileValues[l]=p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(t.quantileValues[l],e)}if(t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function u(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}return u.prototype.quantile=null,u.prototype.value=null,u.create=function(e){return new u(e)},u.encode=function(e,n){return n||(n=h.create()),e.quantile!=null&&Object.hasOwnProperty.call(e,"quantile")&&n.uint32(9).double(e.quantile),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&n.uint32(17).double(e.value),n},u.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},u.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;e.pos<s;){var E=e.uint32();switch(E>>>3){case 1:{l.quantile=e.double();break}case 2:{l.value=e.double();break}default:e.skipType(E&7);break}}return l},u.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},u.verify=function(e){return typeof e!="object"||e===null?"object expected":e.quantile!=null&&e.hasOwnProperty("quantile")&&typeof e.quantile!="number"?"quantile: number expected":e.value!=null&&e.hasOwnProperty("value")&&typeof e.value!="number"?"value: number expected":null},u.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return e;var n=new p.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return e.quantile!=null&&(n.quantile=Number(e.quantile)),e.value!=null&&(n.value=Number(e.value)),n},u.toObject=function(e,n){n||(n={});var s={};return n.defaults&&(s.quantile=0,s.value=0),e.quantile!=null&&e.hasOwnProperty("quantile")&&(s.quantile=n.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),e.value!=null&&e.hasOwnProperty("value")&&(s.value=n.json&&!isFinite(e.value)?String(e.value):e.value),s},u.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},u.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},u}(),a}(),c.Exemplar=function(){function a(t){if(this.filteredAttributes=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)t[e[n]]!=null&&(this[e[n]]=t[e[n]])}a.prototype.filteredAttributes=_.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var u;return Object.defineProperty(a.prototype,"value",{get:_.oneOfGetter(u=["asDouble","asInt"]),set:_.oneOfSetter(u)}),a.create=function(e){return new a(e)},a.encode=function(e,n){if(n||(n=h.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,"timeUnixNano")&&n.uint32(17).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,"asDouble")&&n.uint32(25).double(e.asDouble),e.spanId!=null&&Object.hasOwnProperty.call(e,"spanId")&&n.uint32(34).bytes(e.spanId),e.traceId!=null&&Object.hasOwnProperty.call(e,"traceId")&&n.uint32(42).bytes(e.traceId),e.asInt!=null&&Object.hasOwnProperty.call(e,"asInt")&&n.uint32(49).sfixed64(e.asInt),e.filteredAttributes!=null&&e.filteredAttributes.length)for(var s=0;s<e.filteredAttributes.length;++s)p.opentelemetry.proto.common.v1.KeyValue.encode(e.filteredAttributes[s],n.uint32(58).fork()).ldelim();return n},a.encodeDelimited=function(e,n){return this.encode(e,n).ldelim()},a.decode=function(e,n){e instanceof T||(e=T.create(e));for(var s=n===void 0?e.len:e.pos+n,l=new p.opentelemetry.proto.metrics.v1.Exemplar;e.pos<s;){var E=e.uint32();switch(E>>>3){case 7:{l.filteredAttributes&&l.filteredAttributes.length||(l.filteredAttributes=[]),l.filteredAttributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break}case 2:{l.timeUnixNano=e.fixed64();break}case 3:{l.asDouble=e.double();break}case 6:{l.asInt=e.sfixed64();break}case 4:{l.spanId=e.bytes();break}case 5:{l.traceId=e.bytes();break}default:e.skipType(E&7);break}}return l},a.decodeDelimited=function(e){return e instanceof T||(e=new T(e)),this.decode(e,e.uint32())},a.verify=function(e){if(typeof e!="object"||e===null)return"object expected";var n={};if(e.filteredAttributes!=null&&e.hasOwnProperty("filteredAttributes")){if(!Array.isArray(e.filteredAttributes))return"filteredAttributes: array expected";for(var s=0;s<e.filteredAttributes.length;++s){var l=p.opentelemetry.proto.common.v1.KeyValue.verify(e.filteredAttributes[s]);if(l)return"filteredAttributes."+l}}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&!_.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&_.isInteger(e.timeUnixNano.low)&&_.isInteger(e.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(n.value=1,typeof e.asDouble!="number"))return"asDouble: number expected";if(e.asInt!=null&&e.hasOwnProperty("asInt")){if(n.value===1)return"value: multiple values";if(n.value=1,!_.isInteger(e.asInt)&&!(e.asInt&&_.isInteger(e.asInt.low)&&_.isInteger(e.asInt.high)))return"asInt: integer|Long expected"}return e.spanId!=null&&e.hasOwnProperty("spanId")&&!(e.spanId&&typeof e.spanId.length=="number"||_.isString(e.spanId))?"spanId: buffer expected":e.traceId!=null&&e.hasOwnProperty("traceId")&&!(e.traceId&&typeof e.traceId.length=="number"||_.isString(e.traceId))?"traceId: buffer expected":null},a.fromObject=function(e){if(e instanceof p.opentelemetry.proto.metrics.v1.Exemplar)return e;var n=new p.opentelemetry.proto.metrics.v1.Exemplar;if(e.filteredAttributes){if(!Array.isArray(e.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");n.filteredAttributes=[];for(var s=0;s<e.filteredAttributes.length;++s){if(typeof e.filteredAttributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");n.filteredAttributes[s]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(e.filteredAttributes[s])}}return e.timeUnixNano!=null&&(_.Long?(n.timeUnixNano=_.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano=="string"?n.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano=="number"?n.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano=="object"&&(n.timeUnixNano=new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(n.asDouble=Number(e.asDouble)),e.asInt!=null&&(_.Long?(n.asInt=_.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt=="string"?n.asInt=parseInt(e.asInt,10):typeof e.asInt=="number"?n.asInt=e.asInt:typeof e.asInt=="object"&&(n.asInt=new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.spanId!=null&&(typeof e.spanId=="string"?_.base64.decode(e.spanId,n.spanId=_.newBuffer(_.base64.length(e.spanId)),0):e.spanId.length>=0&&(n.spanId=e.spanId)),e.traceId!=null&&(typeof e.traceId=="string"?_.base64.decode(e.traceId,n.traceId=_.newBuffer(_.base64.length(e.traceId)),0):e.traceId.length>=0&&(n.traceId=e.traceId)),n},a.toObject=function(e,n){n||(n={});var s={};if((n.arrays||n.defaults)&&(s.filteredAttributes=[]),n.defaults){if(_.Long){var l=new _.Long(0,0,!1);s.timeUnixNano=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else s.timeUnixNano=n.longs===String?"0":0;n.bytes===String?s.spanId="":(s.spanId=[],n.bytes!==Array&&(s.spanId=_.newBuffer(s.spanId))),n.bytes===String?s.traceId="":(s.traceId=[],n.bytes!==Array&&(s.traceId=_.newBuffer(s.traceId)))}if(e.timeUnixNano!=null&&e.hasOwnProperty("timeUnixNano")&&(typeof e.timeUnixNano=="number"?s.timeUnixNano=n.longs===String?String(e.timeUnixNano):e.timeUnixNano:s.timeUnixNano=n.longs===String?_.Long.prototype.toString.call(e.timeUnixNano):n.longs===Number?new _.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty("asDouble")&&(s.asDouble=n.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,n.oneofs&&(s.value="asDouble")),e.spanId!=null&&e.hasOwnProperty("spanId")&&(s.spanId=n.bytes===String?_.base64.encode(e.spanId,0,e.spanId.length):n.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceId!=null&&e.hasOwnProperty("traceId")&&(s.traceId=n.bytes===String?_.base64.encode(e.traceId,0,e.traceId.length):n.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.asInt!=null&&e.hasOwnProperty("asInt")&&(typeof e.asInt=="number"?s.asInt=n.longs===String?String(e.asInt):e.asInt:s.asInt=n.longs===String?_.Long.prototype.toString.call(e.asInt):n.longs===Number?new _.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,n.oneofs&&(s.value="asInt")),e.filteredAttributes&&e.filteredAttributes.length){s.filteredAttributes=[];for(var E=0;E<e.filteredAttributes.length;++E)s.filteredAttributes[E]=p.opentelemetry.proto.common.v1.KeyValue.toObject(e.filteredAttributes[E],n)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),c}(),i}(),r.logs=function(){var i={};return i.v1=function(){var c={};return c.LogsData=function(){function a(u){if(this.resourceLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resourceLogs=_.emptyArray,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resourceLogs!=null&&t.resourceLogs.length)for(var n=0;n<t.resourceLogs.length;++n)p.opentelemetry.proto.logs.v1.ResourceLogs.encode(t.resourceLogs[n],e.uint32(10).fork()).ldelim();return e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogsData;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resourceLogs&&s.resourceLogs.length||(s.resourceLogs=[]),s.resourceLogs.push(p.opentelemetry.proto.logs.v1.ResourceLogs.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resourceLogs!=null&&t.hasOwnProperty("resourceLogs")){if(!Array.isArray(t.resourceLogs))return"resourceLogs: array expected";for(var e=0;e<t.resourceLogs.length;++e){var n=p.opentelemetry.proto.logs.v1.ResourceLogs.verify(t.resourceLogs[e]);if(n)return"resourceLogs."+n}}return null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogsData)return t;var e=new p.opentelemetry.proto.logs.v1.LogsData;if(t.resourceLogs){if(!Array.isArray(t.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");e.resourceLogs=[];for(var n=0;n<t.resourceLogs.length;++n){if(typeof t.resourceLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");e.resourceLogs[n]=p.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(t.resourceLogs[n])}}return e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.resourceLogs=[]),t.resourceLogs&&t.resourceLogs.length){n.resourceLogs=[];for(var s=0;s<t.resourceLogs.length;++s)n.resourceLogs[s]=p.opentelemetry.proto.logs.v1.ResourceLogs.toObject(t.resourceLogs[s],e)}return n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogsData"},a}(),c.ResourceLogs=function(){function a(u){if(this.scopeLogs=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.resource=null,a.prototype.scopeLogs=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.resource!=null&&Object.hasOwnProperty.call(t,"resource")&&p.opentelemetry.proto.resource.v1.Resource.encode(t.resource,e.uint32(10).fork()).ldelim(),t.scopeLogs!=null&&t.scopeLogs.length)for(var n=0;n<t.scopeLogs.length;++n)p.opentelemetry.proto.logs.v1.ScopeLogs.encode(t.scopeLogs[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ResourceLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.resource=p.opentelemetry.proto.resource.v1.Resource.decode(t,t.uint32());break}case 2:{s.scopeLogs&&s.scopeLogs.length||(s.scopeLogs=[]),s.scopeLogs.push(p.opentelemetry.proto.logs.v1.ScopeLogs.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.resource!=null&&t.hasOwnProperty("resource")){var e=p.opentelemetry.proto.resource.v1.Resource.verify(t.resource);if(e)return"resource."+e}if(t.scopeLogs!=null&&t.hasOwnProperty("scopeLogs")){if(!Array.isArray(t.scopeLogs))return"scopeLogs: array expected";for(var n=0;n<t.scopeLogs.length;++n){var e=p.opentelemetry.proto.logs.v1.ScopeLogs.verify(t.scopeLogs[n]);if(e)return"scopeLogs."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ResourceLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ResourceLogs;if(t.resource!=null){if(typeof t.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");e.resource=p.opentelemetry.proto.resource.v1.Resource.fromObject(t.resource)}if(t.scopeLogs){if(!Array.isArray(t.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");e.scopeLogs=[];for(var n=0;n<t.scopeLogs.length;++n){if(typeof t.scopeLogs[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");e.scopeLogs[n]=p.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(t.scopeLogs[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.scopeLogs=[]),e.defaults&&(n.resource=null,n.schemaUrl=""),t.resource!=null&&t.hasOwnProperty("resource")&&(n.resource=p.opentelemetry.proto.resource.v1.Resource.toObject(t.resource,e)),t.scopeLogs&&t.scopeLogs.length){n.scopeLogs=[];for(var s=0;s<t.scopeLogs.length;++s)n.scopeLogs[s]=p.opentelemetry.proto.logs.v1.ScopeLogs.toObject(t.scopeLogs[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),c.ScopeLogs=function(){function a(u){if(this.logRecords=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.scope=null,a.prototype.logRecords=_.emptyArray,a.prototype.schemaUrl=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.scope!=null&&Object.hasOwnProperty.call(t,"scope")&&p.opentelemetry.proto.common.v1.InstrumentationScope.encode(t.scope,e.uint32(10).fork()).ldelim(),t.logRecords!=null&&t.logRecords.length)for(var n=0;n<t.logRecords.length;++n)p.opentelemetry.proto.logs.v1.LogRecord.encode(t.logRecords[n],e.uint32(18).fork()).ldelim();return t.schemaUrl!=null&&Object.hasOwnProperty.call(t,"schemaUrl")&&e.uint32(26).string(t.schemaUrl),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.ScopeLogs;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.decode(t,t.uint32());break}case 2:{s.logRecords&&s.logRecords.length||(s.logRecords=[]),s.logRecords.push(p.opentelemetry.proto.logs.v1.LogRecord.decode(t,t.uint32()));break}case 3:{s.schemaUrl=t.string();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.scope!=null&&t.hasOwnProperty("scope")){var e=p.opentelemetry.proto.common.v1.InstrumentationScope.verify(t.scope);if(e)return"scope."+e}if(t.logRecords!=null&&t.hasOwnProperty("logRecords")){if(!Array.isArray(t.logRecords))return"logRecords: array expected";for(var n=0;n<t.logRecords.length;++n){var e=p.opentelemetry.proto.logs.v1.LogRecord.verify(t.logRecords[n]);if(e)return"logRecords."+e}}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&!_.isString(t.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.ScopeLogs)return t;var e=new p.opentelemetry.proto.logs.v1.ScopeLogs;if(t.scope!=null){if(typeof t.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");e.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(t.scope)}if(t.logRecords){if(!Array.isArray(t.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");e.logRecords=[];for(var n=0;n<t.logRecords.length;++n){if(typeof t.logRecords[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");e.logRecords[n]=p.opentelemetry.proto.logs.v1.LogRecord.fromObject(t.logRecords[n])}}return t.schemaUrl!=null&&(e.schemaUrl=String(t.schemaUrl)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.logRecords=[]),e.defaults&&(n.scope=null,n.schemaUrl=""),t.scope!=null&&t.hasOwnProperty("scope")&&(n.scope=p.opentelemetry.proto.common.v1.InstrumentationScope.toObject(t.scope,e)),t.logRecords&&t.logRecords.length){n.logRecords=[];for(var s=0;s<t.logRecords.length;++s)n.logRecords[s]=p.opentelemetry.proto.logs.v1.LogRecord.toObject(t.logRecords[s],e)}return t.schemaUrl!=null&&t.hasOwnProperty("schemaUrl")&&(n.schemaUrl=t.schemaUrl),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),c.SeverityNumber=function(){var a={},u=Object.create(a);return u[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,u[a[1]="SEVERITY_NUMBER_TRACE"]=1,u[a[2]="SEVERITY_NUMBER_TRACE2"]=2,u[a[3]="SEVERITY_NUMBER_TRACE3"]=3,u[a[4]="SEVERITY_NUMBER_TRACE4"]=4,u[a[5]="SEVERITY_NUMBER_DEBUG"]=5,u[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,u[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,u[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,u[a[9]="SEVERITY_NUMBER_INFO"]=9,u[a[10]="SEVERITY_NUMBER_INFO2"]=10,u[a[11]="SEVERITY_NUMBER_INFO3"]=11,u[a[12]="SEVERITY_NUMBER_INFO4"]=12,u[a[13]="SEVERITY_NUMBER_WARN"]=13,u[a[14]="SEVERITY_NUMBER_WARN2"]=14,u[a[15]="SEVERITY_NUMBER_WARN3"]=15,u[a[16]="SEVERITY_NUMBER_WARN4"]=16,u[a[17]="SEVERITY_NUMBER_ERROR"]=17,u[a[18]="SEVERITY_NUMBER_ERROR2"]=18,u[a[19]="SEVERITY_NUMBER_ERROR3"]=19,u[a[20]="SEVERITY_NUMBER_ERROR4"]=20,u[a[21]="SEVERITY_NUMBER_FATAL"]=21,u[a[22]="SEVERITY_NUMBER_FATAL2"]=22,u[a[23]="SEVERITY_NUMBER_FATAL3"]=23,u[a[24]="SEVERITY_NUMBER_FATAL4"]=24,u}(),c.LogRecordFlags=function(){var a={},u=Object.create(a);return u[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,u[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,u}(),c.LogRecord=function(){function a(u){if(this.attributes=[],u)for(var t=Object.keys(u),e=0;e<t.length;++e)u[t[e]]!=null&&(this[t[e]]=u[t[e]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=_.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(t){return new a(t)},a.encode=function(t,e){if(e||(e=h.create()),t.timeUnixNano!=null&&Object.hasOwnProperty.call(t,"timeUnixNano")&&e.uint32(9).fixed64(t.timeUnixNano),t.severityNumber!=null&&Object.hasOwnProperty.call(t,"severityNumber")&&e.uint32(16).int32(t.severityNumber),t.severityText!=null&&Object.hasOwnProperty.call(t,"severityText")&&e.uint32(26).string(t.severityText),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&p.opentelemetry.proto.common.v1.AnyValue.encode(t.body,e.uint32(42).fork()).ldelim(),t.attributes!=null&&t.attributes.length)for(var n=0;n<t.attributes.length;++n)p.opentelemetry.proto.common.v1.KeyValue.encode(t.attributes[n],e.uint32(50).fork()).ldelim();return t.droppedAttributesCount!=null&&Object.hasOwnProperty.call(t,"droppedAttributesCount")&&e.uint32(56).uint32(t.droppedAttributesCount),t.flags!=null&&Object.hasOwnProperty.call(t,"flags")&&e.uint32(69).fixed32(t.flags),t.traceId!=null&&Object.hasOwnProperty.call(t,"traceId")&&e.uint32(74).bytes(t.traceId),t.spanId!=null&&Object.hasOwnProperty.call(t,"spanId")&&e.uint32(82).bytes(t.spanId),t.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(t,"observedTimeUnixNano")&&e.uint32(89).fixed64(t.observedTimeUnixNano),e},a.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},a.decode=function(t,e){t instanceof T||(t=T.create(t));for(var n=e===void 0?t.len:t.pos+e,s=new p.opentelemetry.proto.logs.v1.LogRecord;t.pos<n;){var l=t.uint32();switch(l>>>3){case 1:{s.timeUnixNano=t.fixed64();break}case 11:{s.observedTimeUnixNano=t.fixed64();break}case 2:{s.severityNumber=t.int32();break}case 3:{s.severityText=t.string();break}case 5:{s.body=p.opentelemetry.proto.common.v1.AnyValue.decode(t,t.uint32());break}case 6:{s.attributes&&s.attributes.length||(s.attributes=[]),s.attributes.push(p.opentelemetry.proto.common.v1.KeyValue.decode(t,t.uint32()));break}case 7:{s.droppedAttributesCount=t.uint32();break}case 8:{s.flags=t.fixed32();break}case 9:{s.traceId=t.bytes();break}case 10:{s.spanId=t.bytes();break}default:t.skipType(l&7);break}}return s},a.decodeDelimited=function(t){return t instanceof T||(t=new T(t)),this.decode(t,t.uint32())},a.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&!_.isInteger(t.timeUnixNano)&&!(t.timeUnixNano&&_.isInteger(t.timeUnixNano.low)&&_.isInteger(t.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&!_.isInteger(t.observedTimeUnixNano)&&!(t.observedTimeUnixNano&&_.isInteger(t.observedTimeUnixNano.low)&&_.isInteger(t.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(t.severityNumber!=null&&t.hasOwnProperty("severityNumber"))switch(t.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(t.severityText!=null&&t.hasOwnProperty("severityText")&&!_.isString(t.severityText))return"severityText: string expected";if(t.body!=null&&t.hasOwnProperty("body")){var e=p.opentelemetry.proto.common.v1.AnyValue.verify(t.body);if(e)return"body."+e}if(t.attributes!=null&&t.hasOwnProperty("attributes")){if(!Array.isArray(t.attributes))return"attributes: array expected";for(var n=0;n<t.attributes.length;++n){var e=p.opentelemetry.proto.common.v1.KeyValue.verify(t.attributes[n]);if(e)return"attributes."+e}}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&!_.isInteger(t.droppedAttributesCount)?"droppedAttributesCount: integer expected":t.flags!=null&&t.hasOwnProperty("flags")&&!_.isInteger(t.flags)?"flags: integer expected":t.traceId!=null&&t.hasOwnProperty("traceId")&&!(t.traceId&&typeof t.traceId.length=="number"||_.isString(t.traceId))?"traceId: buffer expected":t.spanId!=null&&t.hasOwnProperty("spanId")&&!(t.spanId&&typeof t.spanId.length=="number"||_.isString(t.spanId))?"spanId: buffer expected":null},a.fromObject=function(t){if(t instanceof p.opentelemetry.proto.logs.v1.LogRecord)return t;var e=new p.opentelemetry.proto.logs.v1.LogRecord;switch(t.timeUnixNano!=null&&(_.Long?(e.timeUnixNano=_.Long.fromValue(t.timeUnixNano)).unsigned=!1:typeof t.timeUnixNano=="string"?e.timeUnixNano=parseInt(t.timeUnixNano,10):typeof t.timeUnixNano=="number"?e.timeUnixNano=t.timeUnixNano:typeof t.timeUnixNano=="object"&&(e.timeUnixNano=new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber())),t.observedTimeUnixNano!=null&&(_.Long?(e.observedTimeUnixNano=_.Long.fromValue(t.observedTimeUnixNano)).unsigned=!1:typeof t.observedTimeUnixNano=="string"?e.observedTimeUnixNano=parseInt(t.observedTimeUnixNano,10):typeof t.observedTimeUnixNano=="number"?e.observedTimeUnixNano=t.observedTimeUnixNano:typeof t.observedTimeUnixNano=="object"&&(e.observedTimeUnixNano=new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber())),t.severityNumber){default:if(typeof t.severityNumber=="number"){e.severityNumber=t.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:e.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:e.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:e.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:e.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:e.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:e.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:e.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:e.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:e.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:e.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:e.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:e.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:e.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:e.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:e.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:e.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:e.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:e.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:e.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:e.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:e.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:e.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:e.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:e.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:e.severityNumber=24;break}if(t.severityText!=null&&(e.severityText=String(t.severityText)),t.body!=null){if(typeof t.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");e.body=p.opentelemetry.proto.common.v1.AnyValue.fromObject(t.body)}if(t.attributes){if(!Array.isArray(t.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");e.attributes=[];for(var n=0;n<t.attributes.length;++n){if(typeof t.attributes[n]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");e.attributes[n]=p.opentelemetry.proto.common.v1.KeyValue.fromObject(t.attributes[n])}}return t.droppedAttributesCount!=null&&(e.droppedAttributesCount=t.droppedAttributesCount>>>0),t.flags!=null&&(e.flags=t.flags>>>0),t.traceId!=null&&(typeof t.traceId=="string"?_.base64.decode(t.traceId,e.traceId=_.newBuffer(_.base64.length(t.traceId)),0):t.traceId.length>=0&&(e.traceId=t.traceId)),t.spanId!=null&&(typeof t.spanId=="string"?_.base64.decode(t.spanId,e.spanId=_.newBuffer(_.base64.length(t.spanId)),0):t.spanId.length>=0&&(e.spanId=t.spanId)),e},a.toObject=function(t,e){e||(e={});var n={};if((e.arrays||e.defaults)&&(n.attributes=[]),e.defaults){if(_.Long){var s=new _.Long(0,0,!1);n.timeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.timeUnixNano=e.longs===String?"0":0;if(n.severityNumber=e.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,n.severityText="",n.body=null,n.droppedAttributesCount=0,n.flags=0,e.bytes===String?n.traceId="":(n.traceId=[],e.bytes!==Array&&(n.traceId=_.newBuffer(n.traceId))),e.bytes===String?n.spanId="":(n.spanId=[],e.bytes!==Array&&(n.spanId=_.newBuffer(n.spanId))),_.Long){var s=new _.Long(0,0,!1);n.observedTimeUnixNano=e.longs===String?s.toString():e.longs===Number?s.toNumber():s}else n.observedTimeUnixNano=e.longs===String?"0":0}if(t.timeUnixNano!=null&&t.hasOwnProperty("timeUnixNano")&&(typeof t.timeUnixNano=="number"?n.timeUnixNano=e.longs===String?String(t.timeUnixNano):t.timeUnixNano:n.timeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.timeUnixNano):e.longs===Number?new _.LongBits(t.timeUnixNano.low>>>0,t.timeUnixNano.high>>>0).toNumber():t.timeUnixNano),t.severityNumber!=null&&t.hasOwnProperty("severityNumber")&&(n.severityNumber=e.enums===String?p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]===void 0?t.severityNumber:p.opentelemetry.proto.logs.v1.SeverityNumber[t.severityNumber]:t.severityNumber),t.severityText!=null&&t.hasOwnProperty("severityText")&&(n.severityText=t.severityText),t.body!=null&&t.hasOwnProperty("body")&&(n.body=p.opentelemetry.proto.common.v1.AnyValue.toObject(t.body,e)),t.attributes&&t.attributes.length){n.attributes=[];for(var l=0;l<t.attributes.length;++l)n.attributes[l]=p.opentelemetry.proto.common.v1.KeyValue.toObject(t.attributes[l],e)}return t.droppedAttributesCount!=null&&t.hasOwnProperty("droppedAttributesCount")&&(n.droppedAttributesCount=t.droppedAttributesCount),t.flags!=null&&t.hasOwnProperty("flags")&&(n.flags=t.flags),t.traceId!=null&&t.hasOwnProperty("traceId")&&(n.traceId=e.bytes===String?_.base64.encode(t.traceId,0,t.traceId.length):e.bytes===Array?Array.prototype.slice.call(t.traceId):t.traceId),t.spanId!=null&&t.hasOwnProperty("spanId")&&(n.spanId=e.bytes===String?_.base64.encode(t.spanId,0,t.spanId.length):e.bytes===Array?Array.prototype.slice.call(t.spanId):t.spanId),t.observedTimeUnixNano!=null&&t.hasOwnProperty("observedTimeUnixNano")&&(typeof t.observedTimeUnixNano=="number"?n.observedTimeUnixNano=e.longs===String?String(t.observedTimeUnixNano):t.observedTimeUnixNano:n.observedTimeUnixNano=e.longs===String?_.Long.prototype.toString.call(t.observedTimeUnixNano):e.longs===Number?new _.LongBits(t.observedTimeUnixNano.low>>>0,t.observedTimeUnixNano.high>>>0).toNumber():t.observedTimeUnixNano),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,v.util.toJSONOptions)},a.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),c}(),i}(),r}(),o}();RL.exports=p});var Mi=S(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.getOtlpEncoder=pe.encodeAsString=pe.encodeAsLongBits=pe.toLongBits=pe.hrTimeToNanos=void 0;var Pi=x();function cc(o){let r=BigInt(1e9);return BigInt(o[0])*r+BigInt(o[1])}pe.hrTimeToNanos=cc;function PL(o){let r=Number(BigInt.asUintN(32,o)),i=Number(BigInt.asUintN(32,o>>BigInt(32)));return{low:r,high:i}}pe.toLongBits=PL;function lc(o){let r=cc(o);return PL(r)}pe.encodeAsLongBits=lc;function ML(o){return cc(o).toString()}pe.encodeAsString=ML;var HX=typeof BigInt<"u"?ML:Pi.hrTimeToNanoseconds;function yL(o){return o}function gL(o){if(o!==void 0)return(0,Pi.hexToBinary)(o)}var kX={encodeHrTime:lc,encodeSpanContext:Pi.hexToBinary,encodeOptionalSpanContext:gL};function YX(o){var r,i;if(o===void 0)return kX;let c=(r=o.useLongBits)!==null&&r!==void 0?r:!0,a=(i=o.useHex)!==null&&i!==void 0?i:!1;return{encodeHrTime:c?lc:HX,encodeSpanContext:a?yL:Pi.hexToBinary,encodeOptionalSpanContext:a?yL:gL}}pe.getOtlpEncoder=YX});var gi=S(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.toAnyValue=_e.toKeyValue=_e.toAttributes=_e.createInstrumentationScope=_e.createResource=void 0;function FX(o){return{attributes:LL(o.attributes),droppedAttributesCount:0}}_e.createResource=FX;function KX(o){return{name:o.name,version:o.version}}_e.createInstrumentationScope=KX;function LL(o){return Object.keys(o).map(r=>pc(r,o[r]))}_e.toAttributes=LL;function pc(o,r){return{key:o,value:_c(r)}}_e.toKeyValue=pc;function _c(o){let r=typeof o;return r==="string"?{stringValue:o}:r==="number"?Number.isInteger(o)?{intValue:o}:{doubleValue:o}:r==="boolean"?{boolValue:o}:o instanceof Uint8Array?{bytesValue:o}:Array.isArray(o)?{arrayValue:{values:o.map(_c)}}:r==="object"&&o!=null?{kvlistValue:{values:Object.entries(o).map(([i,c])=>pc(i,c))}}:{}}_e.toAnyValue=_c});var Ec=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.toLogAttributes=sr.createExportLogsServiceRequest=void 0;var jX=Mi(),Li=gi();function qX(o,r){let i=(0,jX.getOtlpEncoder)(r);return{resourceLogs:zX(o,i)}}sr.createExportLogsServiceRequest=qX;function WX(o){let r=new Map;for(let i of o){let{resource:c,instrumentationScope:{name:a,version:u="",schemaUrl:t=""}}=i,e=r.get(c);e||(e=new Map,r.set(c,e));let n=`${a}@${u}:${t}`,s=e.get(n);s||(s=[],e.set(n,s)),s.push(i)}return r}function zX(o,r){let i=WX(o);return Array.from(i,([c,a])=>({resource:(0,Li.createResource)(c),scopeLogs:Array.from(a,([,u])=>({scope:(0,Li.createInstrumentationScope)(u[0].instrumentationScope),logRecords:u.map(t=>JX(t,r)),schemaUrl:u[0].instrumentationScope.schemaUrl})),schemaUrl:void 0}))}function JX(o,r){var i,c,a;return{timeUnixNano:r.encodeHrTime(o.hrTime),observedTimeUnixNano:r.encodeHrTime(o.hrTimeObserved),severityNumber:o.severityNumber,severityText:o.severityText,body:(0,Li.toAnyValue)(o.body),attributes:IL(o.attributes),droppedAttributesCount:o.droppedAttributesCount,flags:(i=o.spanContext)===null||i===void 0?void 0:i.traceFlags,traceId:r.encodeOptionalSpanContext((c=o.spanContext)===null||c===void 0?void 0:c.traceId),spanId:r.encodeOptionalSpanContext((a=o.spanContext)===null||a===void 0?void 0:a.spanId)}}function IL(o){return Object.keys(o).map(r=>(0,Li.toKeyValue)(r,o[r]))}sr.toLogAttributes=IL});var xL=S(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ProtobufLogsSerializer=void 0;var CL=yi(),XX=Ec(),$X=CL.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,QX=CL.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;Ii.ProtobufLogsSerializer={serializeRequest:o=>{let r=(0,XX.createExportLogsServiceRequest)(o);return QX.encode(r).finish()},deserializeResponse:o=>$X.decode(o)}});var bL=S(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.ProtobufLogsSerializer=void 0;var ZX=xL();Object.defineProperty(Ci,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return ZX.ProtobufLogsSerializer}})});var Tc=S(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.createExportMetricsServiceRequest=ge.toMetric=ge.toScopeMetrics=ge.toResourceMetrics=void 0;var UL=(m(),N(y)),cr=_i(),e$=Mi(),Kr=gi();function VL(o,r){let i=(0,e$.getOtlpEncoder)(r);return{resource:(0,Kr.createResource)(o.resource),schemaUrl:void 0,scopeMetrics:wL(o.scopeMetrics,i)}}ge.toResourceMetrics=VL;function wL(o,r){return Array.from(o.map(i=>({scope:(0,Kr.createInstrumentationScope)(i.scope),metrics:i.metrics.map(c=>BL(c,r)),schemaUrl:i.scope.schemaUrl})))}ge.toScopeMetrics=wL;function BL(o,r){let i={name:o.descriptor.name,description:o.descriptor.description,unit:o.descriptor.unit},c=o$(o.aggregationTemporality);switch(o.dataPointType){case cr.DataPointType.SUM:i.sum={aggregationTemporality:c,isMonotonic:o.isMonotonic,dataPoints:DL(o,r)};break;case cr.DataPointType.GAUGE:i.gauge={dataPoints:DL(o,r)};break;case cr.DataPointType.HISTOGRAM:i.histogram={aggregationTemporality:c,dataPoints:r$(o,r)};break;case cr.DataPointType.EXPONENTIAL_HISTOGRAM:i.exponentialHistogram={aggregationTemporality:c,dataPoints:n$(o,r)};break}return i}ge.toMetric=BL;function t$(o,r,i){let c={attributes:(0,Kr.toAttributes)(o.attributes),startTimeUnixNano:i.encodeHrTime(o.startTime),timeUnixNano:i.encodeHrTime(o.endTime)};switch(r){case UL.ValueType.INT:c.asInt=o.value;break;case UL.ValueType.DOUBLE:c.asDouble=o.value;break}return c}function DL(o,r){return o.dataPoints.map(i=>t$(i,o.descriptor.valueType,r))}function r$(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,Kr.toAttributes)(i.attributes),bucketCounts:c.buckets.counts,explicitBounds:c.buckets.boundaries,count:c.count,sum:c.sum,min:c.min,max:c.max,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function n$(o,r){return o.dataPoints.map(i=>{let c=i.value;return{attributes:(0,Kr.toAttributes)(i.attributes),count:c.count,min:c.min,max:c.max,sum:c.sum,positive:{offset:c.positive.offset,bucketCounts:c.positive.bucketCounts},negative:{offset:c.negative.offset,bucketCounts:c.negative.bucketCounts},scale:c.scale,zeroCount:c.zeroCount,startTimeUnixNano:r.encodeHrTime(i.startTime),timeUnixNano:r.encodeHrTime(i.endTime)}})}function o$(o){switch(o){case cr.AggregationTemporality.DELTA:return 1;case cr.AggregationTemporality.CUMULATIVE:return 2}}function i$(o,r){return{resourceMetrics:o.map(i=>VL(i,r))}}ge.createExportMetricsServiceRequest=i$});var HL=S(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ProtobufMetricsSerializer=void 0;var GL=yi(),a$=Tc(),u$=GL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,s$=GL.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;xi.ProtobufMetricsSerializer={serializeRequest:o=>{let r=(0,a$.createExportMetricsServiceRequest)([o]);return s$.encode(r).finish()},deserializeResponse:o=>u$.decode(o)}});var kL=S(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.ProtobufMetricsSerializer=void 0;var c$=HL();Object.defineProperty(bi,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return c$.ProtobufMetricsSerializer}})});var Sc=S(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.createExportTraceServiceRequest=Le.toOtlpSpanEvent=Le.toOtlpLink=Le.sdkSpanToOtlpSpan=void 0;var jr=gi(),l$=Mi();function YL(o,r){var i;let c=o.spanContext(),a=o.status;return{traceId:r.encodeSpanContext(c.traceId),spanId:r.encodeSpanContext(c.spanId),parentSpanId:r.encodeOptionalSpanContext(o.parentSpanId),traceState:(i=c.traceState)===null||i===void 0?void 0:i.serialize(),name:o.name,kind:o.kind==null?0:o.kind+1,startTimeUnixNano:r.encodeHrTime(o.startTime),endTimeUnixNano:r.encodeHrTime(o.endTime),attributes:(0,jr.toAttributes)(o.attributes),droppedAttributesCount:o.droppedAttributesCount,events:o.events.map(u=>KL(u,r)),droppedEventsCount:o.droppedEventsCount,status:{code:a.code,message:a.message},links:o.links.map(u=>FL(u,r)),droppedLinksCount:o.droppedLinksCount}}Le.sdkSpanToOtlpSpan=YL;function FL(o,r){var i;return{attributes:o.attributes?(0,jr.toAttributes)(o.attributes):[],spanId:r.encodeSpanContext(o.context.spanId),traceId:r.encodeSpanContext(o.context.traceId),traceState:(i=o.context.traceState)===null||i===void 0?void 0:i.serialize(),droppedAttributesCount:o.droppedAttributesCount||0}}Le.toOtlpLink=FL;function KL(o,r){return{attributes:o.attributes?(0,jr.toAttributes)(o.attributes):[],name:o.name,timeUnixNano:r.encodeHrTime(o.time),droppedAttributesCount:o.droppedAttributesCount||0}}Le.toOtlpSpanEvent=KL;function p$(o,r){let i=(0,l$.getOtlpEncoder)(r);return{resourceSpans:E$(o,i)}}Le.createExportTraceServiceRequest=p$;function _$(o){let r=new Map;for(let i of o){let c=r.get(i.resource);c||(c=new Map,r.set(i.resource,c));let a=`${i.instrumentationLibrary.name}@${i.instrumentationLibrary.version||""}:${i.instrumentationLibrary.schemaUrl||""}`,u=c.get(a);u||(u=[],c.set(a,u)),u.push(i)}return r}function E$(o,r){let i=_$(o),c=[],a=i.entries(),u=a.next();for(;!u.done;){let[t,e]=u.value,n=[],s=e.values(),l=s.next();for(;!l.done;){let O=l.value;if(O.length>0){let g=O.map(ue=>YL(ue,r));n.push({scope:(0,jr.createInstrumentationScope)(O[0].instrumentationLibrary),spans:g,schemaUrl:O[0].instrumentationLibrary.schemaUrl})}l=s.next()}let E={resource:(0,jr.createResource)(t),scopeSpans:n,schemaUrl:void 0};c.push(E),u=a.next()}return c}});var qL=S(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.ProtobufTraceSerializer=void 0;var jL=yi(),T$=Sc(),S$=jL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,f$=jL.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;Ui.ProtobufTraceSerializer={serializeRequest:o=>{let r=(0,T$.createExportTraceServiceRequest)(o);return f$.encode(r).finish()},deserializeResponse:o=>S$.decode(o)}});var WL=S(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.ProtobufTraceSerializer=void 0;var d$=qL();Object.defineProperty(Di,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return d$.ProtobufTraceSerializer}})});var zL=S(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.JsonLogsSerializer=void 0;var A$=Ec();Vi.JsonLogsSerializer={serializeRequest:o=>{let r=(0,A$.createExportLogsServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var JL=S(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.JsonLogsSerializer=void 0;var v$=zL();Object.defineProperty(wi,"JsonLogsSerializer",{enumerable:!0,get:function(){return v$.JsonLogsSerializer}})});var XL=S(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.JsonMetricsSerializer=void 0;var O$=Tc();Bi.JsonMetricsSerializer={serializeRequest:o=>{let r=(0,O$.createExportMetricsServiceRequest)([o],{useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var $L=S(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.JsonMetricsSerializer=void 0;var m$=XL();Object.defineProperty(Gi,"JsonMetricsSerializer",{enumerable:!0,get:function(){return m$.JsonMetricsSerializer}})});var QL=S(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.JsonTraceSerializer=void 0;var h$=Sc();Hi.JsonTraceSerializer={serializeRequest:o=>{let r=(0,h$.createExportTraceServiceRequest)(o,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(r))},deserializeResponse:o=>{let r=new TextDecoder;return JSON.parse(r.decode(o))}}});var ZL=S(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.JsonTraceSerializer=void 0;var N$=QL();Object.defineProperty(ki,"JsonTraceSerializer",{enumerable:!0,get:function(){return N$.JsonTraceSerializer}})});var fc=S(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.JsonTraceSerializer=ne.JsonMetricsSerializer=ne.JsonLogsSerializer=ne.ProtobufTraceSerializer=ne.ProtobufMetricsSerializer=ne.ProtobufLogsSerializer=void 0;var R$=bL();Object.defineProperty(ne,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return R$.ProtobufLogsSerializer}});var y$=kL();Object.defineProperty(ne,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return y$.ProtobufMetricsSerializer}});var P$=WL();Object.defineProperty(ne,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return P$.ProtobufTraceSerializer}});var M$=JL();Object.defineProperty(ne,"JsonLogsSerializer",{enumerable:!0,get:function(){return M$.JsonLogsSerializer}});var g$=$L();Object.defineProperty(ne,"JsonMetricsSerializer",{enumerable:!0,get:function(){return g$.JsonMetricsSerializer}});var L$=ZL();Object.defineProperty(ne,"JsonTraceSerializer",{enumerable:!0,get:function(){return L$.JsonTraceSerializer}})});function eI(o){var r=[429,502,503,504];return r.includes(o)}function tI(o){if(o!=null){var r=Number.parseInt(o,10);if(Number.isInteger(r))return r>0?r*1e3:-1;var i=new Date(o).getTime()-Date.now();return i>=0?i:0}}var rI=d(()=>{});var aI={};Ot(aI,{compressAndSend:()=>iI,createHttpAgent:()=>x$,sendWithHttp:()=>I$});function I$(o,r,i,c,a){var u=new URL(o.url),t=Number(process.versions.node.split(".")[0]),e={hostname:u.hostname,port:u.port,path:u.pathname,method:"POST",headers:dc({},o.headers()),agent:r},n=u.protocol==="http:"?Yi.request:Fi.request,s=n(e,function(E){var O=[];E.on("data",function(g){return O.push(g)}),E.on("end",function(){if(E.statusCode&&E.statusCode<299)c({status:"success",data:Buffer.concat(O)});else if(E.statusCode&&eI(E.statusCode))c({status:"retryable",retryInMillis:tI(E.headers["retry-after"])});else{var g=new Et(E.statusMessage,E.statusCode,Buffer.concat(O).toString());c({status:"failure",error:g})}})});s.setTimeout(a,function(){s.destroy(),c({status:"failure",error:new Error("Request Timeout")})}),s.on("error",function(E){c({status:"failure",error:E})});var l=t>=14?"close":"abort";s.on(l,function(){c({status:"failure",error:new Error("Request timed out")})}),iI(s,o.compression,i,function(E){c({status:"failure",error:E})})}function iI(o,r,i,c){var a=C$(i);r==="gzip"&&(o.setHeader("Content-Encoding","gzip"),a=a.on("error",c).pipe(nI.createGzip()).on("error",c)),a.pipe(o).on("error",c)}function C$(o){var r=new oI.Readable;return r.push(o),r.push(null),r}function x$(o,r){var i=new URL(o),c=i.protocol==="http:"?Yi.Agent:Fi.Agent;return new c(r)}var Yi,Fi,nI,oI,dc,uI=d(()=>{Yi=Oe(require("http")),Fi=Oe(require("https")),nI=Oe(require("zlib")),oI=require("stream");rI();Ei();dc=function(){return dc=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},dc.apply(this,arguments)}});function sI(o){return new D$(o)}var b$,U$,D$,cI=d(()=>{b$=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},U$=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},D$=function(){function o(r){this._parameters=r,this._send=null,this._agent=null}return o.prototype.send=function(r,i){return b$(this,void 0,void 0,function(){var c,a,u,t=this;return U$(this,function(e){return this._send==null&&(c=(uI(),N(aI)),a=c.sendWithHttp,u=c.createHttpAgent,this._agent=u(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(n){var s;(s=t._send)===null||s===void 0||s.call(t,t._parameters,t._agent,r,function(l){n(l)},i)})]})})},o.prototype.shutdown=function(){},o}()});function Y$(){return Math.random()*(2*lI)-lI}function pI(o){return new F$(o.transport)}var V$,w$,B$,G$,H$,k$,lI,F$,_I=d(()=>{V$=function(o,r,i,c){function a(u){return u instanceof i?u:new i(function(t){t(u)})}return new(i||(i=Promise))(function(u,t){function e(l){try{s(c.next(l))}catch(E){t(E)}}function n(l){try{s(c.throw(l))}catch(E){t(E)}}function s(l){l.done?u(l.value):a(l.value).then(e,n)}s((c=c.apply(o,r||[])).next())})},w$=function(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},c,a,u,t;return t={next:e(0),throw:e(1),return:e(2)},typeof Symbol=="function"&&(t[Symbol.iterator]=function(){return this}),t;function e(s){return function(l){return n([s,l])}}function n(s){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,a&&(u=s[0]&2?a.return:s[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,s[1])).done)return u;switch(a=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(o,i)}catch(l){s=[6,l],a=0}finally{c=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},B$=5,G$=1e3,H$=5e3,k$=1.5,lI=.2;F$=function(){function o(r){this._transport=r}return o.prototype.retry=function(r,i,c){var a=this;return new Promise(function(u,t){setTimeout(function(){a._transport.send(r,i).then(u,t)},c)})},o.prototype.send=function(r,i){var c;return V$(this,void 0,void 0,function(){var a,u,t,e,n,s,l;return w$(this,function(E){switch(E.label){case 0:return a=Date.now()+i,[4,this._transport.send(r,i)];case 1:u=E.sent(),t=B$,e=G$,E.label=2;case 2:return u.status==="retryable"&&t>0?(t--,n=Math.max(Math.min(e,H$)+Y$(),0),e=e*k$,s=(c=u.retryInMillis)!==null&&c!==void 0?c:n,l=a-Date.now(),s>l?[2,u]:[4,this.retry(r,l,s)]):[3,4];case 3:return u=E.sent(),[3,2];case 4:return[2,u]}})})},o.prototype.shutdown=function(){return this._transport.shutdown()},o}()});function EI(o,r){return vi({transport:pI({transport:sI(o)}),serializer:r,promiseHandler:Ai(o)},{timeout:o.timeoutMillis})}var TI=d(()=>{Ws();cI();qs();_I()});function SI(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!=null&&i!==""){var c=Number(i);if(!Number.isNaN(c)&&Number.isFinite(c)&&c>0)return c;k.warn("Configuration: "+o+" is invalid, expected number greater than 0 (actual: "+i+")")}}function K$(o){var r=SI("OTEL_EXPORTER_OTLP_"+o+"_TIMEOUT"),i=SI("OTEL_EXPORTER_OTLP_TIMEOUT");return r??i}function fI(o){var r,i=(r=__fromEnv[o])===null||r===void 0?void 0:r.trim();if(i!==""){if(i==null||i==="none"||i==="gzip")return i;k.warn("Configuration: "+o+" is invalid, expected 'none' or 'gzip' (actual: '"+i+"')")}}function j$(o){var r=fI("OTEL_EXPORTER_OTLP_"+o+"_COMPRESSION"),i=fI("OTEL_EXPORTER_OTLP_COMPRESSION");return r??i}function Ki(o){return{timeoutMillis:K$(o),compression:j$(o)}}var Ac=d(()=>{m()});function dI(o){return function(){var r,i={};return Object.entries((r=o?.())!==null&&r!==void 0?r:{}).forEach(function(c){var a=q$(c,2),u=a[0],t=a[1];typeof t<"u"?i[u]=String(t):k.warn('Header "'+u+'" has invalid value ('+t+") and will be ignored")}),i}}var q$,AI=d(()=>{m();q$=function(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var c=i.call(o),a,u=[],t;try{for(;(r===void 0||r-- >0)&&!(a=c.next()).done;)u.push(a.value)}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return u}});function W$(o,r,i){var c=ft({},i()),a={};return function(){return r!=null&&Object.assign(a,r()),o!=null&&Object.assign(a,o()),Object.assign(a,c)}}function z$(o){if(o!=null)try{return new URL(o),o}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+o+"'")}}function vI(o,r,i){var c,a,u,t;return ft(ft({},Si(o,r,i)),{headers:W$(dI(o.headers),r.headers,i.headers),url:(a=(c=z$(o.url))!==null&&c!==void 0?c:r.url)!==null&&a!==void 0?a:i.url,agentOptions:(t=(u=o.agentOptions)!==null&&u!==void 0?u:r.agentOptions)!==null&&t!==void 0?t:i.agentOptions})}function OI(o,r){return ft(ft({},fi()),{headers:function(){return o},url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}})}var ft,mI=d(()=>{Hr();AI();ft=function(){return ft=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},ft.apply(this,arguments)}});function J$(o){var r,i,c=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_HEADERS"])===null||r===void 0?void 0:r.trim(),a=(i=__fromEnv.OTEL_EXPORTER_OTLP_HEADERS)===null||i===void 0?void 0:i.trim(),u=qr.baggageUtils.parseKeyPairsIntoRecord(c),t=qr.baggageUtils.parseKeyPairsIntoRecord(a);if(!(Object.keys(u).length===0&&Object.keys(t).length===0))return Object.assign({},qr.baggageUtils.parseKeyPairsIntoRecord(a),qr.baggageUtils.parseKeyPairsIntoRecord(c))}function X$(o){try{var r=new URL(o);return r.toString()}catch{k.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}}function $$(o,r){try{new URL(o)}catch{k.warn("Configuration: Could not parse environment-provided export URL: '"+o+"', falling back to undefined");return}o.endsWith("/")||(o=o+"/"),o+=r;try{new URL(o)}catch{k.warn("Configuration: Provided URL appended with '"+r+"' is not a valid URL, using 'undefined' instead of '"+o+"'");return}return o}function Q$(o){var r,i=(r=__fromEnv.OTEL_EXPORTER_OTLP_ENDPOINT)===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return $$(i,o)}function Z$(o){var r,i=(r=__fromEnv["OTEL_EXPORTER_OTLP_"+o+"_ENDPOINT"])===null||r===void 0?void 0:r.trim();if(!(i==null||i===""))return X$(i)}function hI(o,r){var i;return ji(ji({},Ki(o)),{url:(i=Z$(o))!==null&&i!==void 0?i:Q$(r),headers:Ti(J$(o))})}var qr,ji,NI=d(()=>{qr=Oe(x());m();Ac();Hr();ji=function(){return ji=Object.assign||function(o){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=r[a])}return o},ji.apply(this,arguments)}});function e5(o){return o?.keepAlive!=null&&(o.httpAgentOptions!=null?o.httpAgentOptions.keepAlive==null&&(o.httpAgentOptions.keepAlive=o.keepAlive):o.httpAgentOptions={keepAlive:o.keepAlive}),o.httpAgentOptions}function RI(o,r,i,c){return o.metadata&&k.warn("Metadata cannot be set when using http"),vI({url:o.url,headers:Ti(o.headers),concurrencyLimit:o.concurrencyLimit,timeoutMillis:o.timeoutMillis,compression:o.compression,agentOptions:e5(o)},hI(r,i),OI(c,i))}var yI=d(()=>{mI();NI();m();Hr()});var vc={};Ot(vc,{convertLegacyHttpOptions:()=>RI,createOtlpHttpExportDelegate:()=>EI,getSharedConfigurationFromEnvironment:()=>Ki});var Oc=d(()=>{TI();Ac();yI()});var MI=S(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.OTLPTraceExporter=void 0;var t5=(Js(),N(zs)),r5=yg(),n5=fc(),PI=(Oc(),N(vc)),mc=class extends t5.OTLPExporterBase{constructor(r={}){super((0,PI.createOtlpHttpExportDelegate)((0,PI.convertLegacyHttpOptions)(r,"TRACES","v1/traces",{"User-Agent":`OTel-OTLP-Exporter-JavaScript/${r5.VERSION}`,"Content-Type":"application/json"}),n5.JsonTraceSerializer))}};qi.OTLPTraceExporter=mc});var gI=S(dt=>{"use strict";var o5=dt&&dt.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),i5=dt&&dt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&o5(r,o,i)};Object.defineProperty(dt,"__esModule",{value:!0});i5(MI(),dt)});var LI=S(At=>{"use strict";var a5=At&&At.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),u5=At&&At.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&a5(r,o,i)};Object.defineProperty(At,"__esModule",{value:!0});u5(gI(),At)});var II=S(vt=>{"use strict";var s5=vt&&vt.__createBinding||(Object.create?function(o,r,i,c){c===void 0&&(c=i),Object.defineProperty(o,c,{enumerable:!0,get:function(){return r[i]}})}:function(o,r,i,c){c===void 0&&(c=i),o[c]=r[i]}),c5=vt&&vt.__exportStar||function(o,r){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i)&&s5(r,o,i)};Object.defineProperty(vt,"__esModule",{value:!0});c5(LI(),vt)});var hc=S(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.AggregationTemporalityPreference=void 0;var l5;(function(o){o[o.DELTA=0]="DELTA",o[o.CUMULATIVE=1]="CUMULATIVE",o[o.LOWMEMORY=2]="LOWMEMORY"})(l5=Wr.AggregationTemporalityPreference||(Wr.AggregationTemporalityPreference={}))});var Rc=S(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.OTLPMetricExporterBase=z.LowMemoryTemporalitySelector=z.DeltaTemporalitySelector=z.CumulativeTemporalitySelector=void 0;var p5=x(),H=_i(),CI=hc(),_5=(Js(),N(zs)),E5=(m(),N(y)),T5=()=>H.AggregationTemporality.CUMULATIVE;z.CumulativeTemporalitySelector=T5;var S5=o=>{switch(o){case H.InstrumentType.COUNTER:case H.InstrumentType.OBSERVABLE_COUNTER:case H.InstrumentType.GAUGE:case H.InstrumentType.HISTOGRAM:case H.InstrumentType.OBSERVABLE_GAUGE:return H.AggregationTemporality.DELTA;case H.InstrumentType.UP_DOWN_COUNTER:case H.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return H.AggregationTemporality.CUMULATIVE}};z.DeltaTemporalitySelector=S5;var f5=o=>{switch(o){case H.InstrumentType.COUNTER:case H.InstrumentType.HISTOGRAM:return H.AggregationTemporality.DELTA;case H.InstrumentType.GAUGE:case H.InstrumentType.UP_DOWN_COUNTER:case H.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case H.InstrumentType.OBSERVABLE_COUNTER:case H.InstrumentType.OBSERVABLE_GAUGE:return H.AggregationTemporality.CUMULATIVE}};z.LowMemoryTemporalitySelector=f5;function d5(){let o=(0,p5.getEnv)(),r=o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return r==="cumulative"?z.CumulativeTemporalitySelector:r==="delta"?z.DeltaTemporalitySelector:r==="lowmemory"?z.LowMemoryTemporalitySelector:(E5.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${o.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),z.CumulativeTemporalitySelector)}function A5(o){return o!=null?o===CI.AggregationTemporalityPreference.DELTA?z.DeltaTemporalitySelector:o===CI.AggregationTemporalityPreference.LOWMEMORY?z.LowMemoryTemporalitySelector:z.CumulativeTemporalitySelector:d5()}function v5(o){return o?.aggregationPreference?o.aggregationPreference:r=>H.Aggregation.Default()}var Nc=class extends _5.OTLPExporterBase{constructor(r,i){super(r),this._aggregationSelector=v5(i),this._aggregationTemporalitySelector=A5(i?.temporalityPreference)}selectAggregation(r){return this._aggregationSelector(r)}selectAggregationTemporality(r){return this._aggregationTemporalitySelector(r)}};z.OTLPMetricExporterBase=Nc});var xI=S(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.VERSION=void 0;Wi.VERSION="0.57.2"});var UI=S(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.OTLPMetricExporter=void 0;var O5=Rc(),m5=fc(),h5=xI(),bI=(Oc(),N(vc)),N5={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${h5.VERSION}`},yc=class extends O5.OTLPMetricExporterBase{constructor(r){super((0,bI.createOtlpHttpExportDelegate)((0,bI.convertLegacyHttpOptions)(r??{},"METRICS","v1/metrics",Object.assign(Object.assign({},N5),{"Content-Type":"application/json"})),m5.JsonMetricsSerializer),r)}};zi.OTLPMetricExporter=yc});var DI=S(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.OTLPMetricExporter=void 0;var R5=UI();Object.defineProperty(Ji,"OTLPMetricExporter",{enumerable:!0,get:function(){return R5.OTLPMetricExporter}})});var VI=S(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.OTLPMetricExporter=void 0;var y5=DI();Object.defineProperty(Xi,"OTLPMetricExporter",{enumerable:!0,get:function(){return y5.OTLPMetricExporter}})});var wI=S(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.OTLPMetricExporterBase=oe.LowMemoryTemporalitySelector=oe.DeltaTemporalitySelector=oe.CumulativeTemporalitySelector=oe.AggregationTemporalityPreference=oe.OTLPMetricExporter=void 0;var P5=VI();Object.defineProperty(oe,"OTLPMetricExporter",{enumerable:!0,get:function(){return P5.OTLPMetricExporter}});var M5=hc();Object.defineProperty(oe,"AggregationTemporalityPreference",{enumerable:!0,get:function(){return M5.AggregationTemporalityPreference}});var $i=Rc();Object.defineProperty(oe,"CumulativeTemporalitySelector",{enumerable:!0,get:function(){return $i.CumulativeTemporalitySelector}});Object.defineProperty(oe,"DeltaTemporalitySelector",{enumerable:!0,get:function(){return $i.DeltaTemporalitySelector}});Object.defineProperty(oe,"LowMemoryTemporalitySelector",{enumerable:!0,get:function(){return $i.LowMemoryTemporalitySelector}});Object.defineProperty(oe,"OTLPMetricExporterBase",{enumerable:!0,get:function(){return $i.OTLPMetricExporterBase}})});var en={REQUEST:"openclaw.request",AGENT_TURN:"openclaw.agent.turn",TOOL_PREFIX:"tool.",MESSAGE_RECEIVED:"openclaw.message.received"},me={LLM_REQUESTS:"openclaw.llm.requests",LLM_TOKENS_INPUT:"openclaw.llm.tokens.input",LLM_TOKENS_OUTPUT:"openclaw.llm.tokens.output",LLM_TOKENS_CACHE_READ:"openclaw.llm.tokens.cache_read",LLM_DURATION:"openclaw.llm.duration",TOOL_CALLS:"openclaw.tool.calls",TOOL_ERRORS:"openclaw.tool.errors",TOOL_DURATION:"openclaw.tool.duration",MESSAGES_RECEIVED:"openclaw.messages.received",ESTIMATED_COST_USD:"openclaw.estimated_cost.usd"},B={SESSION_KEY:"openclaw.session.key",CHANNEL:"openclaw.message.channel",MODEL:"gen_ai.request.model",PROVIDER:"gen_ai.system",INPUT_TOKENS:"gen_ai.usage.input_tokens",OUTPUT_TOKENS:"gen_ai.usage.output_tokens",CACHE_READ_TOKENS:"gen_ai.usage.cache_read.input_tokens",CACHE_WRITE_TOKENS:"gen_ai.usage.cache_write.input_tokens",TOOL_NAME:"tool.name",TOOL_SUCCESS:"tool.success",AGENT_NAME:"openclaw.agent.name"},ua={API_KEY:"MANIFEST_API_KEY",ENDPOINT:"MANIFEST_ENDPOINT"},Ce="mnfst_",tn={ENDPOINT:"https://app.manifest.build/otlp",SERVICE_NAME:"openclaw-gateway",METRICS_INTERVAL_MS:3e4},xc={METRICS_INTERVAL_MS:1e4};function bc(o){let r=o&&typeof o=="object"&&!Array.isArray(o)?o:{};r.config&&typeof r.config=="object"&&!Array.isArray(r.config)&&(r=r.config);let i=r.mode==="cloud"?"cloud":"local",c=typeof r.apiKey=="string"&&r.apiKey.length>0?r.apiKey:__fromEnv[ua.API_KEY]||"",a=__fromEnv[ua.ENDPOINT],u=typeof r.endpoint=="string"&&r.endpoint.length>0?r.endpoint:a&&a.length>0?a:tn.ENDPOINT,t=typeof r.serviceName=="string"&&r.serviceName.length>0?r.serviceName:tn.SERVICE_NAME,e=typeof r.captureContent=="boolean"?r.captureContent:!1,n=typeof r.metricsIntervalMs=="number"&&r.metricsIntervalMs>=5e3?r.metricsIntervalMs:tn.METRICS_INTERVAL_MS,s=typeof r.port=="number"&&r.port>0?r.port:2099,l=typeof r.host=="string"&&r.host.length>0?r.host:"127.0.0.1";return{mode:i,apiKey:c,endpoint:u,serviceName:t,captureContent:e,metricsIntervalMs:n,port:s,host:l}}function Uc(o){return o.mode==="local"?null:o.apiKey?o.apiKey.startsWith(Ce)?o.endpoint.startsWith("http")?null:`Invalid endpoint URL '${o.endpoint}'. Must start with http:// or https://. Fix it via:
16
16
  openclaw config set plugins.entries.manifest.config.endpoint https://app.manifest.build/otlp`:`Invalid apiKey format. Keys must start with '${Ce}'. Fix it via:
17
17
  openclaw config set manifest.apiKey ${Ce}YOUR_KEY`:`Missing apiKey. Set it via:
18
18
  openclaw config set manifest.apiKey ${Ce}YOUR_KEY
19
- or export MANIFEST_API_KEY=${Ce}YOUR_KEY`}var Qi=Oe(cM()),Zi=Oe(_i()),BI=Oe(II()),GI=Oe(wI()),HI=Oe(To());m();var zr=null,Jr=null,Pc=null,Mc=null;function ea(o,r){let i=new HI.Resource({"service.name":o.serviceName,"service.version":"5.6.1","manifest.plugin":"true"}),c={Authorization:`Bearer ${o.apiKey}`},a=new BI.OTLPTraceExporter({url:`${o.endpoint}/v1/traces`,headers:c});zr=new Qi.BasicTracerProvider({resource:i,spanProcessors:[new Qi.BatchSpanProcessor(a,{scheduledDelayMillis:5e3,maxQueueSize:2048,maxExportBatchSize:512})]}),zr.register(),r.info(`[manifest] Trace exporter -> ${o.endpoint}/v1/traces`);let u=new GI.OTLPMetricExporter({url:`${o.endpoint}/v1/metrics`,headers:c});return Jr=new Zi.MeterProvider({resource:i,readers:[new Zi.PeriodicExportingMetricReader({exporter:u,exportIntervalMillis:o.metricsIntervalMs})]}),yt.setGlobalMeterProvider(Jr),r.info(`[manifest] Metrics exporter -> ${o.endpoint}/v1/metrics (interval=${o.metricsIntervalMs}ms)`),Pc=ke.getTracer("manifest-plugin","5.6.1"),Mc=yt.getMeter("manifest-plugin","5.6.1"),{tracer:Pc,meter:Mc}}async function ta(o){o.info("[manifest] Shutting down telemetry..."),zr&&(await zr.shutdown(),zr=null),Jr&&(await Jr.shutdown(),Jr=null),Pc=null,Mc=null,o.info("[manifest] Telemetry shut down")}m();var lr=new Map,kI,YI,FI,KI,M5,jI,qI,WI,zI;function ra(o){kI=o.createCounter(me.LLM_REQUESTS,{description:"Total LLM inference requests"}),YI=o.createCounter(me.LLM_TOKENS_INPUT,{description:"Total input tokens sent to LLM"}),FI=o.createCounter(me.LLM_TOKENS_OUTPUT,{description:"Total output tokens from LLM"}),KI=o.createCounter(me.LLM_TOKENS_CACHE_READ,{description:"Total cache-read tokens"}),M5=o.createHistogram(me.LLM_DURATION,{description:"LLM request duration in ms",unit:"ms"}),jI=o.createCounter(me.TOOL_CALLS,{description:"Total tool invocations"}),qI=o.createCounter(me.TOOL_ERRORS,{description:"Total tool errors"}),WI=o.createHistogram(me.TOOL_DURATION,{description:"Tool execution duration in ms",unit:"ms"}),zI=o.createCounter(me.MESSAGES_RECEIVED,{description:"Total messages received from users"})}function na(o,r,i,c){o.on("message_received",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.channel||"unknown",e=r.startSpan(en.REQUEST,{kind:Ge.SERVER,attributes:{[B.SESSION_KEY]:u,[B.CHANNEL]:t}});lr.set(u,{root:e}),zI.add(1,{[B.CHANNEL]:t}),c.debug(`[manifest] Root span started for session=${u}`)}),o.on("before_agent_start",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.agent||"main",e=lr.get(u),n=e?.root?ke.setSpan(He.active(),e.root):He.active(),s=r.startSpan(en.AGENT_TURN,{kind:Ge.INTERNAL,attributes:{[B.AGENT_NAME]:t,[B.SESSION_KEY]:u}},n);e?e.turn=s:lr.set(u,{root:s,turn:s}),c.debug(`[manifest] Agent turn started: agent=${t}, session=${u}`)}),o.on("tool_result_persist",a=>{let u=a.toolName||a.tool||"unknown",t=a.durationMs||0,e=a.error==null,n=a.sessionKey||"unknown",s=lr.get(n),l=s?.turn?ke.setSpan(He.active(),s.turn):He.active(),E=r.startSpan(`${en.TOOL_PREFIX}${u}`,{kind:Ge.INTERNAL,attributes:{[B.TOOL_NAME]:u,[B.TOOL_SUCCESS]:String(e),[B.SESSION_KEY]:n}},l);e||(E.setStatus({code:Rt.ERROR,message:a.error?.message||"Tool execution failed"}),qI.add(1,{[B.TOOL_NAME]:u})),E.end(),jI.add(1,{[B.TOOL_NAME]:u}),WI.record(t,{[B.TOOL_NAME]:u})}),o.on("agent_end",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,e=[...a.messages||[]].reverse().find($r=>$r.role==="assistant"&&$r.usage),n=e?.model||a.model||"unknown",s=e?.provider||a.provider||"unknown",l=e?.usage||a.usage||{},E=l.input||l.inputTokens||0,O=l.output||l.outputTokens||0,g=l.cacheRead||l.cacheReadTokens||0,ue=l.cacheWrite||l.cacheWriteTokens||0,ve=lr.get(u);ve?.turn&&(ve.turn.setAttributes({[B.MODEL]:n,[B.PROVIDER]:s,[B.INPUT_TOKENS]:E,[B.OUTPUT_TOKENS]:O,[B.CACHE_READ_TOKENS]:g,[B.CACHE_WRITE_TOKENS]:ue}),ve.turn.end()),ve?.root&&ve.root!==ve.turn&&ve.root.end(),lr.delete(u);let Ie={[B.MODEL]:n,[B.PROVIDER]:s};kI.add(1,Ie),YI.add(E,Ie),FI.add(O,Ie),g>0&&KI.add(g,Ie),c.debug(`[manifest] agent_end tokens: in=${E}, out=${O}, cache=${g}`),c.debug(`[manifest] Trace completed for session=${u}`)}),c.info("[manifest] All hooks registered")}async function oa(o){let r=o.endpoint.replace(/\/otlp(\/v1)?\/?$/,""),i={endpointReachable:!1,authValid:!1,agentName:null,error:null};try{let c=await fetch(`${r}/api/v1/health`,{signal:AbortSignal.timeout(5e3)});if(!c.ok)return i.error=`Health endpoint returned ${c.status}`,i;i.endpointReachable=!0}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Cannot reach endpoint: ${a}`,i}try{let c=await fetch(`${r}/api/v1/agent/usage?range=24h`,{headers:{Authorization:`Bearer ${o.apiKey}`},signal:AbortSignal.timeout(5e3)});if(c.status===401||c.status===403)return i.error="API key rejected \u2014 check your mnfst_ key is correct",i;if(!c.ok)return i.error=`Usage endpoint returned ${c.status}`,i;i.authValid=!0;let a=await c.json();a&&typeof a.agentName=="string"&&(i.agentName=a.agentName)}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Auth check failed: ${a}`,i}return i}var JI={today:"24h",week:"7d",month:"30d"};async function XI(o,r,i,c){let a=`${o}${r}`;try{let u=await fetch(a,{headers:{Authorization:`Bearer ${i}`}});return u.ok?{result:await u.json()}:{error:`API returned ${u.status}`}}catch(u){let t=u instanceof Error?u.message:String(u);return c.error(`[manifest] API call failed: ${t}`),{error:t}}}function ia(o,r,i){let c=r.endpoint.replace(/\/otlp(\/v1)?\/?$/,"");o.registerTool({name:"manifest_usage",description:"Get token consumption for this agent: total, input, output, cache-read tokens, and action count. Use when the user asks about token usage or consumption.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"today",description:"Time period"}}},handler:async a=>{let u=JI[a.period||"today"]||"24h";return XI(c,`/api/v1/agent/usage?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_costs",description:"Get cost breakdown for this agent in USD, grouped by model. Use when the user asks about costs, spending, or money burned.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"week",description:"Time period"}}},handler:async a=>{let u=JI[a.period||"week"]||"7d";return XI(c,`/api/v1/agent/costs?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_health",description:"Check whether Manifest observability is connected and working. Use when the user asks if monitoring is set up or wants a connectivity test.",parameters:{type:"object",properties:{}},handler:async()=>{let a=await oa(r);return a.error?{error:a.error}:{result:{endpointReachable:a.endpointReachable,authValid:a.authValid,agentName:a.agentName,status:"ok"}}}}),i.info("[manifest] Registered agent tools: manifest_usage, manifest_costs, manifest_health")}var U=require("fs"),Ae=require("path"),gc=require("os"),QI=require("crypto");var aa=(0,Ae.join)((0,gc.homedir)(),".openclaw","manifest"),Xr=(0,Ae.join)(aa,"config.json"),ZI=(0,Ae.join)((0,gc.homedir)(),".openclaw"),$I=(0,Ae.join)(ZI,"openclaw.json"),g5=3e3;function L5(){(0,U.existsSync)(aa)||(0,U.mkdirSync)(aa,{recursive:!0,mode:448})}function I5(){if(L5(),(0,U.existsSync)(Xr))try{let i=JSON.parse((0,U.readFileSync)(Xr,"utf-8"));if(i.apiKey&&i.apiKey.startsWith(Ce))return i.apiKey}catch{}let o=`${Ce}local_${(0,QI.randomBytes)(24).toString("hex")}`,r={};if((0,U.existsSync)(Xr))try{r=JSON.parse((0,U.readFileSync)(Xr,"utf-8"))}catch{}return(0,U.writeFileSync)(Xr,JSON.stringify({...r,apiKey:o},null,2),{mode:384}),o}function eC(o){if(!(0,U.existsSync)(o))return{};try{return JSON.parse((0,U.readFileSync)(o,"utf-8"))}catch{return{}}}function tC(o,r){let i=(0,Ae.dirname)(o);(0,U.existsSync)(i)||(0,U.mkdirSync)(i,{recursive:!0,mode:448});let c=`${o}.tmp.${process.pid}`;(0,U.writeFileSync)(c,JSON.stringify(r,null,2),{mode:384}),(0,U.renameSync)(c,o)}function C5(o,r,i,c,a){let t={baseUrl:`http://${r}:${i}/v1`,api:"openai-completions",apiKey:c,models:[{id:"auto",name:"auto"}]};try{let e=eC($I);e.models||(e.models={}),e.models.providers||(e.models.providers={}),e.models.providers.manifest=t,e.agents||(e.agents={}),e.agents.defaults||(e.agents.defaults={}),e.agents.defaults.models||(e.agents.defaults.models={});let n=e.agents.defaults.models;Array.isArray(n)?n.includes("manifest/auto")||n.push("manifest/auto"):typeof n=="object"&&("manifest/auto"in n||(n["manifest/auto"]={})),tC($I,e),a.debug("[manifest] Wrote provider config to openclaw.json")}catch(e){let n=e instanceof Error?e.message:String(e);a.debug(`[manifest] Could not write openclaw.json: ${n}`)}try{if(o.config){o.config.models||(o.config.models={}),o.config.models.providers||(o.config.models.providers={}),o.config.models.providers.manifest=t,o.config.agents||(o.config.agents={}),o.config.agents.defaults||(o.config.agents.defaults={}),o.config.agents.defaults.models||(o.config.agents.defaults.models={});let e=o.config.agents.defaults.models;Array.isArray(e)?e.includes("manifest/auto")||e.push("manifest/auto"):typeof e=="object"&&("manifest/auto"in e||(e["manifest/auto"]={}))}a.debug("[manifest] Injected provider into runtime config")}catch(e){let n=e instanceof Error?e.message:String(e);a.debug(`[manifest] Could not inject runtime config: ${n}`)}}function x5(o,r){let i=(0,Ae.join)(ZI,"agents");if(!(0,U.existsSync)(i)){r.debug("[manifest] No agents directory found, skipping auth profile injection");return}let c={type:"api_key",provider:"manifest",key:o},a=0;try{let u=(0,U.readdirSync)(i,{withFileTypes:!0}).filter(t=>t.isDirectory());for(let t of u){let e=(0,Ae.join)(i,t.name,"agent","auth-profiles.json"),n=(0,Ae.dirname)(e);if(!(0,U.existsSync)(n))continue;let s=eC(e);s.version||(s.version=1),s.profiles||(s.profiles={});let l=s.profiles["manifest:default"];l&&l.key===o||(s.profiles["manifest:default"]=c,tC(e,s),a++)}}catch(u){let t=u instanceof Error?u.message:String(u);r.debug(`[manifest] Auth profile injection error: ${t}`)}a>0&&r.debug(`[manifest] Injected auth profile into ${a} agent(s)`)}async function b5(o,r){try{return(await fetch(`http://${o}:${r}/api/v1/health`,{signal:AbortSignal.timeout(g5)})).ok}catch{return!1}}function rC(o,r,i){let c=r.port,a=r.host,u=I5(),t=(0,Ae.join)(aa,"manifest.db");i.info("[manifest] Local mode \u2014 starting embedded server..."),C5(o,a,c,u,i),x5(u,i);let e;try{e=require("./server")}catch(O){let g=O instanceof Error?O.message:String(O);i.error(`[manifest] Failed to load embedded server.
19
+ or export MANIFEST_API_KEY=${Ce}YOUR_KEY`}var Qi=Oe(cM()),Zi=Oe(_i()),BI=Oe(II()),GI=Oe(wI()),HI=Oe(To());m();var zr=null,Jr=null,Pc=null,Mc=null;function ea(o,r){let i=new HI.Resource({"service.name":o.serviceName,"service.version":"5.6.3","manifest.plugin":"true"}),c={Authorization:`Bearer ${o.apiKey}`},a=new BI.OTLPTraceExporter({url:`${o.endpoint}/v1/traces`,headers:c});zr=new Qi.BasicTracerProvider({resource:i,spanProcessors:[new Qi.BatchSpanProcessor(a,{scheduledDelayMillis:5e3,maxQueueSize:2048,maxExportBatchSize:512})]}),zr.register(),r.info(`[manifest] Trace exporter -> ${o.endpoint}/v1/traces`);let u=new GI.OTLPMetricExporter({url:`${o.endpoint}/v1/metrics`,headers:c});return Jr=new Zi.MeterProvider({resource:i,readers:[new Zi.PeriodicExportingMetricReader({exporter:u,exportIntervalMillis:o.metricsIntervalMs})]}),yt.setGlobalMeterProvider(Jr),r.info(`[manifest] Metrics exporter -> ${o.endpoint}/v1/metrics (interval=${o.metricsIntervalMs}ms)`),Pc=ke.getTracer("manifest-plugin","5.6.3"),Mc=yt.getMeter("manifest-plugin","5.6.3"),{tracer:Pc,meter:Mc}}async function ta(o){o.info("[manifest] Shutting down telemetry..."),zr&&(await zr.shutdown(),zr=null),Jr&&(await Jr.shutdown(),Jr=null),Pc=null,Mc=null,o.info("[manifest] Telemetry shut down")}m();var lr=new Map,kI,YI,FI,KI,g5,jI,qI,WI,zI;function ra(o){kI=o.createCounter(me.LLM_REQUESTS,{description:"Total LLM inference requests"}),YI=o.createCounter(me.LLM_TOKENS_INPUT,{description:"Total input tokens sent to LLM"}),FI=o.createCounter(me.LLM_TOKENS_OUTPUT,{description:"Total output tokens from LLM"}),KI=o.createCounter(me.LLM_TOKENS_CACHE_READ,{description:"Total cache-read tokens"}),g5=o.createHistogram(me.LLM_DURATION,{description:"LLM request duration in ms",unit:"ms"}),jI=o.createCounter(me.TOOL_CALLS,{description:"Total tool invocations"}),qI=o.createCounter(me.TOOL_ERRORS,{description:"Total tool errors"}),WI=o.createHistogram(me.TOOL_DURATION,{description:"Tool execution duration in ms",unit:"ms"}),zI=o.createCounter(me.MESSAGES_RECEIVED,{description:"Total messages received from users"})}function na(o,r,i,c){o.on("message_received",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.channel||"unknown",e=r.startSpan(en.REQUEST,{kind:Ge.SERVER,attributes:{[B.SESSION_KEY]:u,[B.CHANNEL]:t}});lr.set(u,{root:e}),zI.add(1,{[B.CHANNEL]:t}),c.debug(`[manifest] Root span started for session=${u}`)}),o.on("before_agent_start",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,t=a.agent||"main",e=lr.get(u),n=e?.root?ke.setSpan(He.active(),e.root):He.active(),s=r.startSpan(en.AGENT_TURN,{kind:Ge.INTERNAL,attributes:{[B.AGENT_NAME]:t,[B.SESSION_KEY]:u}},n);e?e.turn=s:lr.set(u,{root:s,turn:s}),c.debug(`[manifest] Agent turn started: agent=${t}, session=${u}`)}),o.on("tool_result_persist",a=>{let u=a.toolName||a.tool||"unknown",t=a.durationMs||0,e=a.error==null,n=a.sessionKey||"unknown",s=lr.get(n),l=s?.turn?ke.setSpan(He.active(),s.turn):He.active(),E=r.startSpan(`${en.TOOL_PREFIX}${u}`,{kind:Ge.INTERNAL,attributes:{[B.TOOL_NAME]:u,[B.TOOL_SUCCESS]:String(e),[B.SESSION_KEY]:n}},l);e||(E.setStatus({code:Rt.ERROR,message:a.error?.message||"Tool execution failed"}),qI.add(1,{[B.TOOL_NAME]:u})),E.end(),jI.add(1,{[B.TOOL_NAME]:u}),WI.record(t,{[B.TOOL_NAME]:u})}),o.on("agent_end",a=>{let u=a.sessionKey||a.session?.key||`agent:${a.agent||"main"}:main`,e=[...a.messages||[]].reverse().find($r=>$r.role==="assistant"&&$r.usage),n=e?.model||a.model||"unknown",s=e?.provider||a.provider||"unknown",l=e?.usage||a.usage||{},E=l.input||l.inputTokens||0,O=l.output||l.outputTokens||0,g=l.cacheRead||l.cacheReadTokens||0,ue=l.cacheWrite||l.cacheWriteTokens||0,ve=lr.get(u);ve?.turn&&(ve.turn.setAttributes({[B.MODEL]:n,[B.PROVIDER]:s,[B.INPUT_TOKENS]:E,[B.OUTPUT_TOKENS]:O,[B.CACHE_READ_TOKENS]:g,[B.CACHE_WRITE_TOKENS]:ue}),ve.turn.end()),ve?.root&&ve.root!==ve.turn&&ve.root.end(),lr.delete(u);let Ie={[B.MODEL]:n,[B.PROVIDER]:s};kI.add(1,Ie),YI.add(E,Ie),FI.add(O,Ie),g>0&&KI.add(g,Ie),c.debug(`[manifest] agent_end tokens: in=${E}, out=${O}, cache=${g}`),c.debug(`[manifest] Trace completed for session=${u}`)}),c.info("[manifest] All hooks registered")}async function oa(o){let r=o.endpoint.replace(/\/otlp(\/v1)?\/?$/,""),i={endpointReachable:!1,authValid:!1,agentName:null,error:null};try{let c=await fetch(`${r}/api/v1/health`,{signal:AbortSignal.timeout(5e3)});if(!c.ok)return i.error=`Health endpoint returned ${c.status}`,i;i.endpointReachable=!0}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Cannot reach endpoint: ${a}`,i}try{let c=await fetch(`${r}/api/v1/agent/usage?range=24h`,{headers:{Authorization:`Bearer ${o.apiKey}`},signal:AbortSignal.timeout(5e3)});if(c.status===401||c.status===403)return i.error="API key rejected \u2014 check your mnfst_ key is correct",i;if(!c.ok)return i.error=`Usage endpoint returned ${c.status}`,i;i.authValid=!0;let a=await c.json();a&&typeof a.agentName=="string"&&(i.agentName=a.agentName)}catch(c){let a=c instanceof Error?c.message:String(c);return i.error=`Auth check failed: ${a}`,i}return i}var JI={today:"24h",week:"7d",month:"30d"};async function XI(o,r,i,c){let a=`${o}${r}`;try{let u=await fetch(a,{headers:{Authorization:`Bearer ${i}`}});return u.ok?{result:await u.json()}:{error:`API returned ${u.status}`}}catch(u){let t=u instanceof Error?u.message:String(u);return c.error(`[manifest] API call failed: ${t}`),{error:t}}}function ia(o,r,i){let c=r.endpoint.replace(/\/otlp(\/v1)?\/?$/,"");o.registerTool({name:"manifest_usage",description:"Get token consumption for this agent: total, input, output, cache-read tokens, and action count. Use when the user asks about token usage or consumption.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"today",description:"Time period"}}},handler:async a=>{let u=JI[a.period||"today"]||"24h";return XI(c,`/api/v1/agent/usage?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_costs",description:"Get cost breakdown for this agent in USD, grouped by model. Use when the user asks about costs, spending, or money burned.",parameters:{type:"object",properties:{period:{type:"string",enum:["today","week","month"],default:"week",description:"Time period"}}},handler:async a=>{let u=JI[a.period||"week"]||"7d";return XI(c,`/api/v1/agent/costs?range=${u}`,r.apiKey,i)}}),o.registerTool({name:"manifest_health",description:"Check whether Manifest observability is connected and working. Use when the user asks if monitoring is set up or wants a connectivity test.",parameters:{type:"object",properties:{}},handler:async()=>{let a=await oa(r);return a.error?{error:a.error}:{result:{endpointReachable:a.endpointReachable,authValid:a.authValid,agentName:a.agentName,status:"ok"}}}}),i.info("[manifest] Registered agent tools: manifest_usage, manifest_costs, manifest_health")}var U=require("fs"),Ae=require("path"),gc=require("os"),QI=require("crypto");var aa=(0,Ae.join)((0,gc.homedir)(),".openclaw","manifest"),Xr=(0,Ae.join)(aa,"config.json"),ZI=(0,Ae.join)((0,gc.homedir)(),".openclaw"),$I=(0,Ae.join)(ZI,"openclaw.json"),L5=3e3;function I5(){(0,U.existsSync)(aa)||(0,U.mkdirSync)(aa,{recursive:!0,mode:448})}function C5(){if(I5(),(0,U.existsSync)(Xr))try{let i=JSON.parse((0,U.readFileSync)(Xr,"utf-8"));if(i.apiKey&&i.apiKey.startsWith(Ce))return i.apiKey}catch{}let o=`${Ce}local_${(0,QI.randomBytes)(24).toString("hex")}`,r={};if((0,U.existsSync)(Xr))try{r=JSON.parse((0,U.readFileSync)(Xr,"utf-8"))}catch{}return(0,U.writeFileSync)(Xr,JSON.stringify({...r,apiKey:o},null,2),{mode:384}),o}function eC(o){if(!(0,U.existsSync)(o))return{};try{return JSON.parse((0,U.readFileSync)(o,"utf-8"))}catch{return{}}}function tC(o,r){let i=(0,Ae.dirname)(o);(0,U.existsSync)(i)||(0,U.mkdirSync)(i,{recursive:!0,mode:448});let c=`${o}.tmp.${process.pid}`;(0,U.writeFileSync)(c,JSON.stringify(r,null,2),{mode:384}),(0,U.renameSync)(c,o)}function x5(o,r,i,c,a){let t={baseUrl:`http://${r}:${i}/v1`,api:"openai-completions",apiKey:c,models:[{id:"auto",name:"auto"}]};try{let e=eC($I);e.models||(e.models={}),e.models.providers||(e.models.providers={}),e.models.providers.manifest=t,e.agents||(e.agents={}),e.agents.defaults||(e.agents.defaults={}),e.agents.defaults.models||(e.agents.defaults.models={});let n=e.agents.defaults.models;Array.isArray(n)?n.includes("manifest/auto")||n.push("manifest/auto"):typeof n=="object"&&("manifest/auto"in n||(n["manifest/auto"]={})),tC($I,e),a.debug("[manifest] Wrote provider config to openclaw.json")}catch(e){let n=e instanceof Error?e.message:String(e);a.debug(`[manifest] Could not write openclaw.json: ${n}`)}try{if(o.config){o.config.models||(o.config.models={}),o.config.models.providers||(o.config.models.providers={}),o.config.models.providers.manifest=t,o.config.agents||(o.config.agents={}),o.config.agents.defaults||(o.config.agents.defaults={}),o.config.agents.defaults.models||(o.config.agents.defaults.models={});let e=o.config.agents.defaults.models;Array.isArray(e)?e.includes("manifest/auto")||e.push("manifest/auto"):typeof e=="object"&&("manifest/auto"in e||(e["manifest/auto"]={}))}a.debug("[manifest] Injected provider into runtime config")}catch(e){let n=e instanceof Error?e.message:String(e);a.debug(`[manifest] Could not inject runtime config: ${n}`)}}function b5(o,r){let i=(0,Ae.join)(ZI,"agents");if(!(0,U.existsSync)(i)){r.debug("[manifest] No agents directory found, skipping auth profile injection");return}let c={type:"api_key",provider:"manifest",key:o},a=0;try{let u=(0,U.readdirSync)(i,{withFileTypes:!0}).filter(t=>t.isDirectory());for(let t of u){let e=(0,Ae.join)(i,t.name,"agent","auth-profiles.json"),n=(0,Ae.dirname)(e);if(!(0,U.existsSync)(n))continue;let s=eC(e);s.version||(s.version=1),s.profiles||(s.profiles={});let l=s.profiles["manifest:default"];l&&l.key===o||(s.profiles["manifest:default"]=c,tC(e,s),a++)}}catch(u){let t=u instanceof Error?u.message:String(u);r.debug(`[manifest] Auth profile injection error: ${t}`)}a>0&&r.debug(`[manifest] Injected auth profile into ${a} agent(s)`)}async function U5(o,r){try{return(await fetch(`http://${o}:${r}/api/v1/health`,{signal:AbortSignal.timeout(L5)})).ok}catch{return!1}}function rC(o,r,i){let c=r.port,a=r.host,u=C5(),t=(0,Ae.join)(aa,"manifest.db");i.info("[manifest] Local mode \u2014 starting embedded server..."),x5(o,a,c,u,i),b5(u,i);let e;try{e=require("./server")}catch(O){let g=O instanceof Error?O.message:String(O);i.error(`[manifest] Failed to load embedded server.
20
20
  Error: ${g}
21
- This is a packaging error \u2014 please reinstall the manifest plugin.`);return}let n=`http://${a}:${c}/otlp`,s={...r,apiKey:u,endpoint:n,captureContent:!0,metricsIntervalMs:xc.METRICS_INTERVAL_MS},{tracer:l,meter:E}=ea(s,i);ra(E),na(o,l,s,i),typeof o.registerTool=="function"&&ia(o,s,i),o.registerService({id:"manifest-local",start:async()=>{try{await e.start({port:c,host:a,dbPath:t}),i.info(`[manifest] Local server running on http://${a}:${c}`),i.info(`[manifest] Dashboard: http://${a}:${c}`),i.info(`[manifest] DB: ${t}`)}catch(O){let g=O instanceof Error?O.message:String(O);g.includes("EADDRINUSE")||g.includes("address already in use")?await b5(a,c)?i.info(`[manifest] Reusing existing server at http://${a}:${c}`):i.error(`[manifest] Port ${c} is already in use by another process.
21
+ This is a packaging error \u2014 please reinstall the manifest plugin.`);return}let n=`http://${a}:${c}/otlp`,s={...r,apiKey:u,endpoint:n,captureContent:!0,metricsIntervalMs:xc.METRICS_INTERVAL_MS},{tracer:l,meter:E}=ea(s,i);ra(E),na(o,l,s,i),typeof o.registerTool=="function"&&ia(o,s,i),o.registerService({id:"manifest-local",start:async()=>{try{await e.start({port:c,host:a,dbPath:t}),i.info(`[manifest] Local server running on http://${a}:${c}`),i.info(`[manifest] Dashboard: http://${a}:${c}`),i.info(`[manifest] DB: ${t}`)}catch(O){let g=O instanceof Error?O.message:String(O);g.includes("EADDRINUSE")||g.includes("address already in use")?await U5(a,c)?i.info(`[manifest] Reusing existing server at http://${a}:${c}`):i.error(`[manifest] Port ${c} is already in use by another process.
22
22
  Change it with: openclaw config set plugins.entries.manifest.config.port ${c+1}
23
- Then restart the gateway.`):i.error(`[manifest] Failed to start local server: ${g}`)}},stop:async()=>{await ta(i)}})}var nC=require("crypto"),Ve=require("os"),U5="https://eu.i.posthog.com",D5="phc_g5pLOu5bBRjhVJBwAsx0eCzJFWq0cri2TyVLQLxf045";function V5(){let o=__fromEnv.MANIFEST_TELEMETRY_OPTOUT;return o==="1"||o==="true"}function w5(){let o=`${(0,Ve.hostname)()}-${(0,Ve.platform)()}-${(0,Ve.arch)()}`;return(0,nC.createHash)("sha256").update(o).digest("hex").slice(0,16)}function Lc(o,r){if(V5())return;let i={api_key:D5,event:o,properties:{distinct_id:w5(),os:(0,Ve.platform)(),os_version:(0,Ve.release)(),node_version:process.versions.node,package_version:"5.6.1",...r},timestamp:new Date().toISOString()};fetch(`${U5}/capture`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).catch(()=>{})}module.exports={id:"manifest",name:"Manifest \u2014 Agent Observability",register(o){let r=o.logger||{info:(...e)=>console.log(...e),debug:()=>{},error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e)},i=bc(o.pluginConfig);if(Lc("plugin_registered"),Lc("plugin_mode_selected",{mode:i.mode}),i.mode==="local"){rC(o,i,r);return}let c=Uc(i);if(c){i.apiKey?r.error(`[manifest] Configuration error:
23
+ Then restart the gateway.`):i.error(`[manifest] Failed to start local server: ${g}`)}},stop:async()=>{await ta(i)}})}var oC=require("crypto"),Ve=require("os");function nC(){return{optedOut:__fromEnv.MANIFEST_TELEMETRY_OPTOUT==="1"||__fromEnv.MANIFEST_TELEMETRY_OPTOUT==="true",packageVersion:"5.6.3"}}var D5="https://eu.i.posthog.com",V5="phc_g5pLOu5bBRjhVJBwAsx0eCzJFWq0cri2TyVLQLxf045";function w5(){let o=`${(0,Ve.hostname)()}-${(0,Ve.platform)()}-${(0,Ve.arch)()}`;return(0,oC.createHash)("sha256").update(o).digest("hex").slice(0,16)}function Lc(o,r){let i=nC();if(i.optedOut)return;let c={api_key:V5,event:o,properties:{distinct_id:w5(),os:(0,Ve.platform)(),os_version:(0,Ve.release)(),node_version:process.versions.node,package_version:i.packageVersion,...r},timestamp:new Date().toISOString()};fetch(`${D5}/capture`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).catch(()=>{})}module.exports={id:"manifest",name:"Manifest \u2014 Agent Observability",register(o){let r=o.logger||{info:(...e)=>console.log(...e),debug:()=>{},error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e)},i=bc(o.pluginConfig);if(Lc("plugin_registered"),Lc("plugin_mode_selected",{mode:i.mode}),i.mode==="local"){rC(o,i,r);return}let c=Uc(i);if(c){i.apiKey?r.error(`[manifest] Configuration error:
24
24
  ${c}`):r.info(`[manifest] Cloud mode requires an API key:
25
25
  openclaw config set plugins.entries.manifest.config.apiKey mnfst_YOUR_KEY
26
26
  openclaw gateway restart